Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
0d702cfe | 3 | # Generated by GNU Autoconf 2.64 for gas 2.29.51. |
81ecdfbb RW |
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 | ## -------------------- ## | |
13b2be9c | 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 : | |
13b2be9c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
13b2be9c DJ |
31 | fi |
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 | } | |
13b2be9c DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
13b2be9c DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
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 | |
13b2be9c | 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." | |
13b2be9c | 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." | |
13b2be9c | 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 | |
13b2be9c | 380 | |
81ecdfbb RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
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 |
13b2be9c DJ |
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 | |
13b2be9c | 399 | |
81ecdfbb | 400 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
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'` | |
13b2be9c | 418 | |
13b2be9c DJ |
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 | ||
13b2be9c | 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 | | |
13b2be9c | 436 | sed ' |
81ecdfbb RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
13b2be9c | 441 | N |
81ecdfbb RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13b2be9c | 444 | t loop |
81ecdfbb | 445 | s/-\n.*// |
13b2be9c | 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; } | |
13b2be9c DJ |
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" | |
13b2be9c DJ |
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';; | |
13b2be9c DJ |
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 | |
13b2be9c | 474 | else |
81ecdfbb RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
13b2be9c | 477 | fi |
81ecdfbb RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 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' | |
13b2be9c | 491 | fi |
13b2be9c DJ |
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 | |
13b2be9c DJ |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
13b2be9c | 500 | else |
ab509236 | 501 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
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 | |
13b2be9c DJ |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
530 | |
531 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c | 533 | |
d7040cdb SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
d7040cdb | 536 | |
81ecdfbb RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
13b2be9c DJ |
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 | |
13b2be9c DJ |
544 | # |
545 | # Initializations. | |
546 | # | |
252b5132 | 547 | ac_default_prefix=/usr/local |
81ecdfbb | 548 | ac_clean_files= |
13b2be9c | 549 | ac_config_libobj_dir=. |
81ecdfbb | 550 | LIBOBJS= |
13b2be9c DJ |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
13b2be9c DJ |
555 | |
556 | # Identity of this package. | |
2e98a7bd AM |
557 | PACKAGE_NAME='gas' |
558 | PACKAGE_TARNAME='gas' | |
0d702cfe TG |
559 | PACKAGE_VERSION='2.29.51' |
560 | PACKAGE_STRING='gas 2.29.51' | |
2e98a7bd AM |
561 | PACKAGE_BUGREPORT='' |
562 | PACKAGE_URL='' | |
13b2be9c DJ |
563 | |
564 | ac_unique_file="as.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
81ecdfbb | 568 | #ifdef HAVE_SYS_TYPES_H |
13b2be9c DJ |
569 | # include <sys/types.h> |
570 | #endif | |
81ecdfbb | 571 | #ifdef HAVE_SYS_STAT_H |
13b2be9c DJ |
572 | # include <sys/stat.h> |
573 | #endif | |
81ecdfbb | 574 | #ifdef STDC_HEADERS |
13b2be9c DJ |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
81ecdfbb | 578 | # ifdef HAVE_STDLIB_H |
13b2be9c DJ |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
81ecdfbb RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
13b2be9c DJ |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
81ecdfbb | 588 | #ifdef HAVE_STRINGS_H |
13b2be9c DJ |
589 | # include <strings.h> |
590 | #endif | |
81ecdfbb | 591 | #ifdef HAVE_INTTYPES_H |
13b2be9c | 592 | # include <inttypes.h> |
13b2be9c | 593 | #endif |
81ecdfbb RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
13b2be9c DJ |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
81ecdfbb RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
0138187e | 605 | zlibinc |
543b7933 | 606 | zlibdir |
81ecdfbb RW |
607 | LIBM |
608 | ALLOCA | |
609 | GENINSRC_NEVER_FALSE | |
610 | GENINSRC_NEVER_TRUE | |
611 | MAINT | |
612 | MAINTAINER_MODE_FALSE | |
613 | MAINTAINER_MODE_TRUE | |
614 | MSGMERGE | |
615 | MSGFMT | |
616 | MKINSTALLDIRS | |
617 | CATOBJEXT | |
618 | GENCAT | |
619 | INSTOBJEXT | |
620 | DATADIRNAME | |
621 | CATALOGS | |
622 | POSUB | |
623 | GMSGFMT | |
624 | XGETTEXT | |
625 | INCINTL | |
626 | LIBINTL_DEP | |
627 | LIBINTL | |
628 | USE_NLS | |
629 | LEXLIB | |
630 | LEX_OUTPUT_ROOT | |
631 | LEX | |
632 | YFLAGS | |
633 | YACC | |
634 | OPCODES_LIB | |
635 | atof | |
636 | install_tooldir | |
637 | te_file | |
638 | obj_format | |
639 | target_cpu_type | |
640 | extra_objects | |
641 | cgen_cpu_prefix | |
642 | GDBINIT | |
6757cf57 | 643 | WARN_WRITE_STRINGS |
81ecdfbb | 644 | NO_WERROR |
c5da1932 | 645 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb | 646 | WARN_CFLAGS |
2d7f2507 | 647 | do_compare |
81ecdfbb RW |
648 | OTOOL64 |
649 | OTOOL | |
650 | LIPO | |
651 | NMEDIT | |
652 | DSYMUTIL | |
81ecdfbb RW |
653 | RANLIB |
654 | AR | |
655 | OBJDUMP | |
656 | LN_S | |
657 | NM | |
658 | ac_ct_DUMPBIN | |
659 | DUMPBIN | |
660 | LD | |
661 | FGREP | |
662 | SED | |
663 | LIBTOOL | |
664 | EGREP | |
665 | GREP | |
666 | CPP | |
667 | am__fastdepCC_FALSE | |
668 | am__fastdepCC_TRUE | |
669 | CCDEPMODE | |
6eb7d830 | 670 | am__nodep |
81ecdfbb RW |
671 | AMDEPBACKSLASH |
672 | AMDEP_FALSE | |
673 | AMDEP_TRUE | |
674 | am__quote | |
675 | am__include | |
676 | DEPDIR | |
677 | am__untar | |
678 | am__tar | |
679 | AMTAR | |
680 | am__leading_dot | |
681 | SET_MAKE | |
682 | AWK | |
683 | mkdir_p | |
684 | MKDIR_P | |
685 | INSTALL_STRIP_PROGRAM | |
686 | STRIP | |
687 | install_sh | |
688 | MAKEINFO | |
689 | AUTOHEADER | |
690 | AUTOMAKE | |
691 | AUTOCONF | |
692 | ACLOCAL | |
693 | VERSION | |
694 | PACKAGE | |
695 | CYGPATH_W | |
696 | am__isrc | |
697 | INSTALL_DATA | |
698 | INSTALL_SCRIPT | |
699 | INSTALL_PROGRAM | |
700 | OBJEXT | |
701 | EXEEXT | |
702 | ac_ct_CC | |
703 | CPPFLAGS | |
704 | LDFLAGS | |
705 | CFLAGS | |
706 | CC | |
707 | target_os | |
708 | target_vendor | |
709 | target_cpu | |
710 | target | |
711 | host_os | |
712 | host_vendor | |
713 | host_cpu | |
714 | host | |
715 | build_os | |
716 | build_vendor | |
717 | build_cpu | |
718 | build | |
719 | target_alias | |
720 | host_alias | |
721 | build_alias | |
722 | LIBS | |
723 | ECHO_T | |
724 | ECHO_N | |
725 | ECHO_C | |
726 | DEFS | |
727 | mandir | |
728 | localedir | |
729 | libdir | |
730 | psdir | |
731 | pdfdir | |
732 | dvidir | |
733 | htmldir | |
734 | infodir | |
735 | docdir | |
736 | oldincludedir | |
737 | includedir | |
738 | localstatedir | |
739 | sharedstatedir | |
740 | sysconfdir | |
741 | datadir | |
742 | datarootdir | |
743 | libexecdir | |
744 | sbindir | |
745 | bindir | |
746 | program_transform_name | |
747 | prefix | |
748 | exec_prefix | |
749 | PACKAGE_URL | |
750 | PACKAGE_BUGREPORT | |
751 | PACKAGE_STRING | |
752 | PACKAGE_VERSION | |
753 | PACKAGE_TARNAME | |
754 | PACKAGE_NAME | |
755 | PATH_SEPARATOR | |
756 | SHELL' | |
13b2be9c | 757 | ac_subst_files='' |
81ecdfbb RW |
758 | ac_user_opts=' |
759 | enable_option_checking | |
760 | enable_dependency_tracking | |
81ecdfbb RW |
761 | enable_shared |
762 | enable_static | |
763 | with_pic | |
764 | enable_fast_install | |
765 | with_gnu_ld | |
766 | enable_libtool_lock | |
b879806f AM |
767 | enable_plugins |
768 | enable_largefile | |
81ecdfbb RW |
769 | enable_targets |
770 | enable_checking | |
6c3bc0f8 | 771 | enable_compressed_debug_sections |
0cb4071e | 772 | enable_x86_relax_relocations |
b8871f35 | 773 | enable_elf_stt_common |
81ecdfbb RW |
774 | enable_werror |
775 | enable_build_warnings | |
9004b6bd | 776 | with_cpu |
81ecdfbb RW |
777 | enable_nls |
778 | enable_maintainer_mode | |
0138187e | 779 | with_system_zlib |
81ecdfbb RW |
780 | ' |
781 | ac_precious_vars='build_alias | |
782 | host_alias | |
783 | target_alias | |
784 | CC | |
785 | CFLAGS | |
786 | LDFLAGS | |
787 | LIBS | |
788 | CPPFLAGS | |
789 | CPP | |
790 | YACC | |
791 | YFLAGS' | |
792 | ||
252b5132 RH |
793 | |
794 | # Initialize some variables set by options. | |
13b2be9c DJ |
795 | ac_init_help= |
796 | ac_init_version=false | |
81ecdfbb RW |
797 | ac_unrecognized_opts= |
798 | ac_unrecognized_sep= | |
252b5132 RH |
799 | # The variables have the same names as the options, with |
800 | # dashes changed to underlines. | |
13b2be9c | 801 | cache_file=/dev/null |
252b5132 | 802 | exec_prefix=NONE |
252b5132 | 803 | no_create= |
252b5132 RH |
804 | no_recursion= |
805 | prefix=NONE | |
806 | program_prefix=NONE | |
807 | program_suffix=NONE | |
808 | program_transform_name=s,x,x, | |
809 | silent= | |
810 | site= | |
811 | srcdir= | |
252b5132 RH |
812 | verbose= |
813 | x_includes=NONE | |
814 | x_libraries=NONE | |
13b2be9c DJ |
815 | |
816 | # Installation directory options. | |
817 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
818 | # and all the variables that are supposed to be based on exec_prefix | |
819 | # by default will actually change. | |
820 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 821 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
822 | bindir='${exec_prefix}/bin' |
823 | sbindir='${exec_prefix}/sbin' | |
824 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
825 | datarootdir='${prefix}/share' |
826 | datadir='${datarootdir}' | |
252b5132 RH |
827 | sysconfdir='${prefix}/etc' |
828 | sharedstatedir='${prefix}/com' | |
829 | localstatedir='${prefix}/var' | |
252b5132 RH |
830 | includedir='${prefix}/include' |
831 | oldincludedir='/usr/include' | |
2e98a7bd | 832 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
833 | infodir='${datarootdir}/info' |
834 | htmldir='${docdir}' | |
835 | dvidir='${docdir}' | |
836 | pdfdir='${docdir}' | |
837 | psdir='${docdir}' | |
838 | libdir='${exec_prefix}/lib' | |
839 | localedir='${datarootdir}/locale' | |
840 | mandir='${datarootdir}/man' | |
252b5132 | 841 | |
252b5132 | 842 | ac_prev= |
81ecdfbb | 843 | ac_dashdash= |
252b5132 RH |
844 | for ac_option |
845 | do | |
252b5132 RH |
846 | # If the previous option needs an argument, assign it. |
847 | if test -n "$ac_prev"; then | |
81ecdfbb | 848 | eval $ac_prev=\$ac_option |
252b5132 RH |
849 | ac_prev= |
850 | continue | |
851 | fi | |
852 | ||
81ecdfbb RW |
853 | case $ac_option in |
854 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
855 | *) ac_optarg=yes ;; | |
856 | esac | |
252b5132 RH |
857 | |
858 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
859 | ||
81ecdfbb RW |
860 | case $ac_dashdash$ac_option in |
861 | --) | |
862 | ac_dashdash=yes ;; | |
252b5132 RH |
863 | |
864 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
865 | ac_prev=bindir ;; | |
866 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 867 | bindir=$ac_optarg ;; |
252b5132 RH |
868 | |
869 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 870 | ac_prev=build_alias ;; |
252b5132 | 871 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 872 | build_alias=$ac_optarg ;; |
252b5132 RH |
873 | |
874 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
875 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
876 | ac_prev=cache_file ;; | |
877 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
878 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
879 | cache_file=$ac_optarg ;; |
880 | ||
881 | --config-cache | -C) | |
882 | cache_file=config.cache ;; | |
252b5132 | 883 | |
81ecdfbb | 884 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 885 | ac_prev=datadir ;; |
81ecdfbb | 886 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
13b2be9c | 887 | datadir=$ac_optarg ;; |
252b5132 | 888 | |
81ecdfbb RW |
889 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
890 | | --dataroo | --dataro | --datar) | |
891 | ac_prev=datarootdir ;; | |
892 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
893 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
894 | datarootdir=$ac_optarg ;; | |
895 | ||
252b5132 | 896 | -disable-* | --disable-*) |
81ecdfbb | 897 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 898 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
899 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
900 | as_fn_error "invalid feature name: $ac_useropt" | |
901 | ac_useropt_orig=$ac_useropt | |
902 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
903 | case $ac_user_opts in | |
904 | *" | |
905 | "enable_$ac_useropt" | |
906 | "*) ;; | |
907 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
908 | ac_unrecognized_sep=', ';; | |
909 | esac | |
910 | eval enable_$ac_useropt=no ;; | |
911 | ||
912 | -docdir | --docdir | --docdi | --doc | --do) | |
913 | ac_prev=docdir ;; | |
914 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
915 | docdir=$ac_optarg ;; | |
916 | ||
917 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
918 | ac_prev=dvidir ;; | |
919 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
920 | dvidir=$ac_optarg ;; | |
252b5132 RH |
921 | |
922 | -enable-* | --enable-*) | |
81ecdfbb | 923 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 924 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
925 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
926 | as_fn_error "invalid feature name: $ac_useropt" | |
927 | ac_useropt_orig=$ac_useropt | |
928 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
929 | case $ac_user_opts in | |
930 | *" | |
931 | "enable_$ac_useropt" | |
932 | "*) ;; | |
933 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
934 | ac_unrecognized_sep=', ';; | |
252b5132 | 935 | esac |
81ecdfbb | 936 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
937 | |
938 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
939 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
940 | | --exec | --exe | --ex) | |
941 | ac_prev=exec_prefix ;; | |
942 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
943 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
944 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 945 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
946 | |
947 | -gas | --gas | --ga | --g) | |
948 | # Obsolete; use --with-gas. | |
949 | with_gas=yes ;; | |
950 | ||
13b2be9c DJ |
951 | -help | --help | --hel | --he | -h) |
952 | ac_init_help=long ;; | |
953 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
954 | ac_init_help=recursive ;; | |
955 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
956 | ac_init_help=short ;; | |
252b5132 RH |
957 | |
958 | -host | --host | --hos | --ho) | |
13b2be9c | 959 | ac_prev=host_alias ;; |
252b5132 | 960 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 961 | host_alias=$ac_optarg ;; |
252b5132 | 962 | |
81ecdfbb RW |
963 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
964 | ac_prev=htmldir ;; | |
965 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
966 | | --ht=*) | |
967 | htmldir=$ac_optarg ;; | |
968 | ||
252b5132 RH |
969 | -includedir | --includedir | --includedi | --included | --include \ |
970 | | --includ | --inclu | --incl | --inc) | |
971 | ac_prev=includedir ;; | |
972 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
973 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 974 | includedir=$ac_optarg ;; |
252b5132 RH |
975 | |
976 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
977 | ac_prev=infodir ;; | |
978 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 979 | infodir=$ac_optarg ;; |
252b5132 RH |
980 | |
981 | -libdir | --libdir | --libdi | --libd) | |
982 | ac_prev=libdir ;; | |
983 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 984 | libdir=$ac_optarg ;; |
252b5132 RH |
985 | |
986 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
987 | | --libexe | --libex | --libe) | |
988 | ac_prev=libexecdir ;; | |
989 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
990 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 991 | libexecdir=$ac_optarg ;; |
252b5132 | 992 | |
81ecdfbb RW |
993 | -localedir | --localedir | --localedi | --localed | --locale) |
994 | ac_prev=localedir ;; | |
995 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
996 | localedir=$ac_optarg ;; | |
997 | ||
252b5132 | 998 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 999 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1000 | ac_prev=localstatedir ;; |
1001 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1002 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
13b2be9c | 1003 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1004 | |
1005 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1006 | ac_prev=mandir ;; | |
1007 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 1008 | mandir=$ac_optarg ;; |
252b5132 RH |
1009 | |
1010 | -nfp | --nfp | --nf) | |
1011 | # Obsolete; use --without-fp. | |
1012 | with_fp=no ;; | |
1013 | ||
1014 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 1015 | | --no-cr | --no-c | -n) |
252b5132 RH |
1016 | no_create=yes ;; |
1017 | ||
1018 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1019 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1020 | no_recursion=yes ;; | |
1021 | ||
1022 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1023 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1024 | | --oldin | --oldi | --old | --ol | --o) | |
1025 | ac_prev=oldincludedir ;; | |
1026 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1027 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1028 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 1029 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1030 | |
1031 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1032 | ac_prev=prefix ;; | |
1033 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 1034 | prefix=$ac_optarg ;; |
252b5132 RH |
1035 | |
1036 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1037 | | --program-pre | --program-pr | --program-p) | |
1038 | ac_prev=program_prefix ;; | |
1039 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1040 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 1041 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1042 | |
1043 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1044 | | --program-suf | --program-su | --program-s) | |
1045 | ac_prev=program_suffix ;; | |
1046 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1047 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 1048 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1049 | |
1050 | -program-transform-name | --program-transform-name \ | |
1051 | | --program-transform-nam | --program-transform-na \ | |
1052 | | --program-transform-n | --program-transform- \ | |
1053 | | --program-transform | --program-transfor \ | |
1054 | | --program-transfo | --program-transf \ | |
1055 | | --program-trans | --program-tran \ | |
1056 | | --progr-tra | --program-tr | --program-t) | |
1057 | ac_prev=program_transform_name ;; | |
1058 | -program-transform-name=* | --program-transform-name=* \ | |
1059 | | --program-transform-nam=* | --program-transform-na=* \ | |
1060 | | --program-transform-n=* | --program-transform-=* \ | |
1061 | | --program-transform=* | --program-transfor=* \ | |
1062 | | --program-transfo=* | --program-transf=* \ | |
1063 | | --program-trans=* | --program-tran=* \ | |
1064 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 1065 | program_transform_name=$ac_optarg ;; |
252b5132 | 1066 | |
81ecdfbb RW |
1067 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1068 | ac_prev=pdfdir ;; | |
1069 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1070 | pdfdir=$ac_optarg ;; | |
1071 | ||
1072 | -psdir | --psdir | --psdi | --psd | --ps) | |
1073 | ac_prev=psdir ;; | |
1074 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1075 | psdir=$ac_optarg ;; | |
1076 | ||
252b5132 RH |
1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1078 | | -silent | --silent | --silen | --sile | --sil) | |
1079 | silent=yes ;; | |
1080 | ||
1081 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1082 | ac_prev=sbindir ;; | |
1083 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1084 | | --sbi=* | --sb=*) | |
13b2be9c | 1085 | sbindir=$ac_optarg ;; |
252b5132 RH |
1086 | |
1087 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1088 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1089 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1090 | | --sha | --sh) | |
1091 | ac_prev=sharedstatedir ;; | |
1092 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1093 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1094 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1095 | | --sha=* | --sh=*) | |
13b2be9c | 1096 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1097 | |
1098 | -site | --site | --sit) | |
1099 | ac_prev=site ;; | |
1100 | -site=* | --site=* | --sit=*) | |
13b2be9c | 1101 | site=$ac_optarg ;; |
76bff705 | 1102 | |
252b5132 RH |
1103 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1104 | ac_prev=srcdir ;; | |
1105 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 1106 | srcdir=$ac_optarg ;; |
252b5132 RH |
1107 | |
1108 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1109 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1110 | ac_prev=sysconfdir ;; | |
1111 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1112 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 1113 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1114 | |
1115 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 1116 | ac_prev=target_alias ;; |
252b5132 | 1117 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 1118 | target_alias=$ac_optarg ;; |
252b5132 RH |
1119 | |
1120 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1121 | verbose=yes ;; | |
1122 | ||
13b2be9c DJ |
1123 | -version | --version | --versio | --versi | --vers | -V) |
1124 | ac_init_version=: ;; | |
252b5132 RH |
1125 | |
1126 | -with-* | --with-*) | |
81ecdfbb | 1127 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1128 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1129 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1130 | as_fn_error "invalid package name: $ac_useropt" | |
1131 | ac_useropt_orig=$ac_useropt | |
1132 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1133 | case $ac_user_opts in | |
1134 | *" | |
1135 | "with_$ac_useropt" | |
1136 | "*) ;; | |
1137 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1138 | ac_unrecognized_sep=', ';; | |
252b5132 | 1139 | esac |
81ecdfbb | 1140 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1141 | |
1142 | -without-* | --without-*) | |
81ecdfbb | 1143 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1144 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1146 | as_fn_error "invalid package name: $ac_useropt" | |
1147 | ac_useropt_orig=$ac_useropt | |
1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1149 | case $ac_user_opts in | |
1150 | *" | |
1151 | "with_$ac_useropt" | |
1152 | "*) ;; | |
1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1154 | ac_unrecognized_sep=', ';; | |
1155 | esac | |
1156 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1157 | |
1158 | --x) | |
1159 | # Obsolete; use --with-x. | |
1160 | with_x=yes ;; | |
1161 | ||
1162 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1163 | | --x-incl | --x-inc | --x-in | --x-i) | |
1164 | ac_prev=x_includes ;; | |
1165 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1166 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 1167 | x_includes=$ac_optarg ;; |
252b5132 RH |
1168 | |
1169 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1170 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1171 | ac_prev=x_libraries ;; | |
1172 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1173 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 1174 | x_libraries=$ac_optarg ;; |
252b5132 | 1175 | |
81ecdfbb RW |
1176 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1177 | Try \`$0 --help' for more information." | |
252b5132 RH |
1178 | ;; |
1179 | ||
13b2be9c DJ |
1180 | *=*) |
1181 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1182 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1183 | case $ac_envvar in #( |
1184 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1185 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1186 | esac | |
1187 | eval $ac_envvar=\$ac_optarg | |
13b2be9c DJ |
1188 | export $ac_envvar ;; |
1189 | ||
252b5132 | 1190 | *) |
13b2be9c | 1191 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1192 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
13b2be9c | 1193 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1194 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
13b2be9c | 1195 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1196 | ;; |
1197 | ||
1198 | esac | |
1199 | done | |
1200 | ||
1201 | if test -n "$ac_prev"; then | |
13b2be9c | 1202 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1203 | as_fn_error "missing argument to $ac_option" |
c8615825 | 1204 | fi |
c8615825 | 1205 | |
81ecdfbb RW |
1206 | if test -n "$ac_unrecognized_opts"; then |
1207 | case $enable_option_checking in | |
1208 | no) ;; | |
1209 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1210 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
13b2be9c | 1211 | esac |
81ecdfbb | 1212 | fi |
252b5132 | 1213 | |
81ecdfbb RW |
1214 | # Check all directory arguments for consistency. |
1215 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1216 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1217 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1218 | libdir localedir mandir | |
252b5132 | 1219 | do |
81ecdfbb RW |
1220 | eval ac_val=\$$ac_var |
1221 | # Remove trailing slashes. | |
1222 | case $ac_val in | |
1223 | */ ) | |
1224 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1225 | eval $ac_var=\$ac_val;; | |
1226 | esac | |
1227 | # Be sure to have absolute directory names. | |
13b2be9c | 1228 | case $ac_val in |
81ecdfbb RW |
1229 | [\\/$]* | ?:[\\/]* ) continue;; |
1230 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1231 | esac |
81ecdfbb | 1232 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1233 | done |
1234 | ||
13b2be9c DJ |
1235 | # There might be people who depend on the old broken behavior: `$host' |
1236 | # used to hold the argument of --host etc. | |
1237 | # FIXME: To remove some day. | |
1238 | build=$build_alias | |
1239 | host=$host_alias | |
1240 | target=$target_alias | |
1241 | ||
1242 | # FIXME: To remove some day. | |
1243 | if test "x$host_alias" != x; then | |
1244 | if test "x$build_alias" = x; then | |
1245 | cross_compiling=maybe | |
81ecdfbb | 1246 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
13b2be9c DJ |
1247 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1248 | elif test "x$build_alias" != "x$host_alias"; then | |
1249 | cross_compiling=yes | |
1250 | fi | |
1251 | fi | |
9b2b7d69 | 1252 | |
13b2be9c DJ |
1253 | ac_tool_prefix= |
1254 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1255 | ||
1256 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1257 | |
252b5132 | 1258 | |
81ecdfbb RW |
1259 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1260 | ac_ls_di=`ls -di .` && | |
1261 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1262 | as_fn_error "working directory cannot be determined" | |
1263 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1264 | as_fn_error "pwd does not report name of working directory" | |
1265 | ||
1266 | ||
252b5132 RH |
1267 | # Find the source files, if location was not specified. |
1268 | if test -z "$srcdir"; then | |
1269 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1270 | # Try the directory containing this script, then the parent directory. |
1271 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1274 | X"$as_myself" : 'X\(//\)$' \| \ | |
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1276 | $as_echo X"$as_myself" | | |
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\/\)[^/].*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)$/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\).*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | s/.*/./; q'` | |
252b5132 | 1294 | srcdir=$ac_confdir |
81ecdfbb | 1295 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1296 | srcdir=.. |
1297 | fi | |
1298 | else | |
1299 | ac_srcdir_defaulted=no | |
1300 | fi | |
81ecdfbb RW |
1301 | if test ! -r "$srcdir/$ac_unique_file"; then |
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1303 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1304 | fi | |
1305 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1306 | ac_abs_confdir=`( | |
1307 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1308 | pwd)` | |
1309 | # When building in place, set srcdir=. | |
1310 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1311 | srcdir=. | |
1312 | fi | |
1313 | # Remove unnecessary trailing slashes from srcdir. | |
1314 | # Double slashes in file names in object file debugging info | |
1315 | # mess up M-x gdb in Emacs. | |
1316 | case $srcdir in | |
1317 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1318 | esac | |
1319 | for ac_var in $ac_precious_vars; do | |
1320 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1321 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1322 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1324 | done | |
d6d788bd | 1325 | |
13b2be9c DJ |
1326 | # |
1327 | # Report the --help message. | |
1328 | # | |
1329 | if test "$ac_init_help" = "long"; then | |
1330 | # Omit some internal or obsolete options to make the list less imposing. | |
1331 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1332 | cat <<_ACEOF | |
0d702cfe | 1333 | \`configure' configures gas 2.29.51 to adapt to many kinds of systems. |
9b2b7d69 | 1334 | |
13b2be9c | 1335 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 1336 | |
13b2be9c DJ |
1337 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1338 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 1339 | |
13b2be9c | 1340 | Defaults for the options are specified in brackets. |
9b2b7d69 | 1341 | |
13b2be9c DJ |
1342 | Configuration: |
1343 | -h, --help display this help and exit | |
1344 | --help=short display options specific to this package | |
1345 | --help=recursive display the short help of all the included packages | |
1346 | -V, --version display version information and exit | |
1347 | -q, --quiet, --silent do not print \`checking...' messages | |
1348 | --cache-file=FILE cache test results in FILE [disabled] | |
1349 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1350 | -n, --no-create do not create output files | |
1351 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1352 | ||
13b2be9c DJ |
1353 | Installation directories: |
1354 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1355 | [$ac_default_prefix] |
13b2be9c | 1356 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1357 | [PREFIX] |
9b2b7d69 | 1358 | |
13b2be9c DJ |
1359 | By default, \`make install' will install all the files in |
1360 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1361 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1362 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 1363 | |
13b2be9c | 1364 | For better control, use the options below. |
9b2b7d69 | 1365 | |
13b2be9c | 1366 | Fine tuning of the installation directories: |
81ecdfbb RW |
1367 | --bindir=DIR user executables [EPREFIX/bin] |
1368 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1369 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1370 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1371 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1372 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1373 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1374 | --includedir=DIR C header files [PREFIX/include] | |
1375 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1376 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1377 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1378 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1379 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1380 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1381 | --docdir=DIR documentation root [DATAROOTDIR/doc/gas] |
81ecdfbb RW |
1382 | --htmldir=DIR html documentation [DOCDIR] |
1383 | --dvidir=DIR dvi documentation [DOCDIR] | |
1384 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1385 | --psdir=DIR ps documentation [DOCDIR] | |
13b2be9c | 1386 | _ACEOF |
9b2b7d69 | 1387 | |
13b2be9c | 1388 | cat <<\_ACEOF |
9b2b7d69 | 1389 | |
13b2be9c DJ |
1390 | Program names: |
1391 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1392 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1393 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 1394 | |
13b2be9c DJ |
1395 | System types: |
1396 | --build=BUILD configure for building on BUILD [guessed] | |
1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1398 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1399 | _ACEOF | |
9b2b7d69 | 1400 | fi |
9b2b7d69 | 1401 | |
13b2be9c | 1402 | if test -n "$ac_init_help"; then |
2e98a7bd | 1403 | case $ac_init_help in |
0d702cfe | 1404 | short | recursive ) echo "Configuration of gas 2.29.51:";; |
2e98a7bd | 1405 | esac |
13b2be9c | 1406 | cat <<\_ACEOF |
9b2b7d69 | 1407 | |
13b2be9c | 1408 | Optional Features: |
81ecdfbb | 1409 | --disable-option-checking ignore unrecognized --enable/--with options |
13b2be9c DJ |
1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
1412 | --disable-dependency-tracking speeds up one-time build |
1413 | --enable-dependency-tracking do not reject slow dependency extractors | |
81ecdfbb RW |
1414 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1415 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1416 | --enable-fast-install[=PKGS] |
1417 | optimize for fast installation [default=yes] | |
13b2be9c | 1418 | --disable-libtool-lock avoid locking (might break parallel builds) |
b879806f AM |
1419 | --enable-plugins Enable support for plugins |
1420 | --disable-largefile omit support for large files | |
241a6c40 | 1421 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1422 | --enable-checking enable run-time checks |
4894d80b | 1423 | --enable-compressed-debug-sections={all,gas,none} |
27ba7c94 | 1424 | compress debug sections by default |
0cb4071e L |
1425 | --enable-x86-relax-relocations |
1426 | generate x86 relax relocations by default | |
b8871f35 L |
1427 | --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by |
1428 | default | |
241a6c40 AM |
1429 | --enable-werror treat compile warnings as errors |
1430 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1431 | --disable-nls do not use Native Language Support |
ab509236 L |
1432 | --enable-maintainer-mode enable make rules and dependencies not useful |
1433 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 1434 | |
13b2be9c DJ |
1435 | Optional Packages: |
1436 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1437 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1438 | --with-pic try to use only PIC/non-PIC objects [default=use |
1439 | both] | |
1440 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9004b6bd AB |
1441 | --with-cpu=CPU default cpu variant is CPU (currently only supported |
1442 | on ARC) | |
0138187e | 1443 | --with-system-zlib use installed libz |
9b2b7d69 | 1444 | |
13b2be9c DJ |
1445 | Some influential environment variables: |
1446 | CC C compiler command | |
1447 | CFLAGS C compiler flags | |
1448 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1449 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1450 | LIBS libraries to pass to the linker, e.g. -l<library> |
1451 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1452 | you have headers in a nonstandard directory <include dir> | |
13b2be9c | 1453 | CPP C preprocessor |
81ecdfbb RW |
1454 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1455 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1456 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1457 | This script will default YFLAGS to the empty string to avoid a | |
1458 | default value of `-d' given by some make applications. | |
13b2be9c DJ |
1459 | |
1460 | Use these variables to override the choices made by `configure' or to help | |
1461 | it to find libraries and programs with nonstandard names/locations. | |
1462 | ||
81ecdfbb | 1463 | Report bugs to the package provider. |
13b2be9c | 1464 | _ACEOF |
81ecdfbb | 1465 | ac_status=$? |
9b2b7d69 | 1466 | fi |
9b2b7d69 | 1467 | |
13b2be9c DJ |
1468 | if test "$ac_init_help" = "recursive"; then |
1469 | # If there are subdirs, report their specific --help. | |
13b2be9c | 1470 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1471 | test -d "$ac_dir" || |
1472 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1473 | continue | |
13b2be9c DJ |
1474 | ac_builddir=. |
1475 | ||
81ecdfbb RW |
1476 | case "$ac_dir" in |
1477 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1478 | *) | |
1479 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1480 | # A ".." for each directory in $ac_dir_suffix. | |
1481 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1482 | case $ac_top_builddir_sub in | |
1483 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1484 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1485 | esac ;; | |
1486 | esac | |
1487 | ac_abs_top_builddir=$ac_pwd | |
1488 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1489 | # for backward compatibility: | |
1490 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 1491 | |
13b2be9c | 1492 | case $srcdir in |
81ecdfbb | 1493 | .) # We are building in place. |
13b2be9c | 1494 | ac_srcdir=. |
81ecdfbb RW |
1495 | ac_top_srcdir=$ac_top_builddir_sub |
1496 | ac_abs_top_srcdir=$ac_pwd ;; | |
1497 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 1498 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1499 | ac_top_srcdir=$srcdir |
1500 | ac_abs_top_srcdir=$srcdir ;; | |
1501 | *) # Relative name. | |
1502 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1503 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1504 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ab509236 | 1505 | esac |
81ecdfbb RW |
1506 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1507 | ||
1508 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1509 | # Check for guested configure. | |
1510 | if test -f "$ac_srcdir/configure.gnu"; then | |
1511 | echo && | |
1512 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1513 | elif test -f "$ac_srcdir/configure"; then | |
1514 | echo && | |
1515 | $SHELL "$ac_srcdir/configure" --help=recursive | |
13b2be9c | 1516 | else |
81ecdfbb RW |
1517 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1518 | fi || ac_status=$? | |
1519 | cd "$ac_pwd" || { ac_status=$?; break; } | |
13b2be9c DJ |
1520 | done |
1521 | fi | |
6840198f | 1522 | |
81ecdfbb | 1523 | test -n "$ac_init_help" && exit $ac_status |
13b2be9c DJ |
1524 | if $ac_init_version; then |
1525 | cat <<\_ACEOF | |
0d702cfe | 1526 | gas configure 2.29.51 |
81ecdfbb | 1527 | generated by GNU Autoconf 2.64 |
c8615825 | 1528 | |
81ecdfbb | 1529 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
1530 | This configure script is free software; the Free Software Foundation |
1531 | gives unlimited permission to copy, distribute and modify it. | |
1532 | _ACEOF | |
81ecdfbb | 1533 | exit |
13b2be9c | 1534 | fi |
c8615825 | 1535 | |
81ecdfbb RW |
1536 | ## ------------------------ ## |
1537 | ## Autoconf initialization. ## | |
1538 | ## ------------------------ ## | |
c8615825 | 1539 | |
81ecdfbb RW |
1540 | # ac_fn_c_try_compile LINENO |
1541 | # -------------------------- | |
1542 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1543 | ac_fn_c_try_compile () | |
13b2be9c | 1544 | { |
81ecdfbb RW |
1545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1546 | rm -f conftest.$ac_objext | |
1547 | if { { ac_try="$ac_compile" | |
1548 | case "(($ac_try" in | |
1549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1550 | *) ac_try_echo=$ac_try;; | |
1551 | esac | |
1552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1553 | $as_echo "$ac_try_echo"; } >&5 | |
1554 | (eval "$ac_compile") 2>conftest.err | |
1555 | ac_status=$? | |
1556 | if test -s conftest.err; then | |
1557 | grep -v '^ *+' conftest.err >conftest.er1 | |
1558 | cat conftest.er1 >&5 | |
1559 | mv -f conftest.er1 conftest.err | |
1560 | fi | |
1561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1562 | test $ac_status = 0; } && { | |
1563 | test -z "$ac_c_werror_flag" || | |
1564 | test ! -s conftest.err | |
1565 | } && test -s conftest.$ac_objext; then : | |
1566 | ac_retval=0 | |
1567 | else | |
1568 | $as_echo "$as_me: failed program was:" >&5 | |
1569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13b2be9c | 1570 | |
81ecdfbb RW |
1571 | ac_retval=1 |
1572 | fi | |
1573 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1574 | return $ac_retval | |
13b2be9c | 1575 | |
81ecdfbb | 1576 | } # ac_fn_c_try_compile |
13b2be9c | 1577 | |
81ecdfbb RW |
1578 | # ac_fn_c_try_link LINENO |
1579 | # ----------------------- | |
1580 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1581 | ac_fn_c_try_link () | |
1582 | { | |
1583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1585 | if { { ac_try="$ac_link" | |
1586 | case "(($ac_try" in | |
1587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1588 | *) ac_try_echo=$ac_try;; | |
1589 | esac | |
1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1591 | $as_echo "$ac_try_echo"; } >&5 | |
1592 | (eval "$ac_link") 2>conftest.err | |
1593 | ac_status=$? | |
1594 | if test -s conftest.err; then | |
1595 | grep -v '^ *+' conftest.err >conftest.er1 | |
1596 | cat conftest.er1 >&5 | |
1597 | mv -f conftest.er1 conftest.err | |
1598 | fi | |
1599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1600 | test $ac_status = 0; } && { | |
1601 | test -z "$ac_c_werror_flag" || | |
1602 | test ! -s conftest.err | |
1603 | } && test -s conftest$ac_exeext && { | |
1604 | test "$cross_compiling" = yes || | |
1605 | $as_test_x conftest$ac_exeext | |
1606 | }; then : | |
1607 | ac_retval=0 | |
1608 | else | |
1609 | $as_echo "$as_me: failed program was:" >&5 | |
1610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1611 | ||
1612 | ac_retval=1 | |
1613 | fi | |
1614 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1615 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1616 | # interfere with the next link command; also delete a directory that is | |
1617 | # left behind by Apple's compiler. We do this before executing the actions. | |
1618 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1619 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1620 | return $ac_retval | |
1621 | ||
1622 | } # ac_fn_c_try_link | |
1623 | ||
1624 | # ac_fn_c_try_cpp LINENO | |
1625 | # ---------------------- | |
1626 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1627 | ac_fn_c_try_cpp () | |
1628 | { | |
1629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1630 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1631 | case "(($ac_try" in | |
1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1633 | *) ac_try_echo=$ac_try;; | |
1634 | esac | |
1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1636 | $as_echo "$ac_try_echo"; } >&5 | |
1637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1638 | ac_status=$? | |
1639 | if test -s conftest.err; then | |
1640 | grep -v '^ *+' conftest.err >conftest.er1 | |
1641 | cat conftest.er1 >&5 | |
1642 | mv -f conftest.er1 conftest.err | |
1643 | fi | |
1644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1645 | test $ac_status = 0; } >/dev/null && { | |
1646 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1647 | test ! -s conftest.err | |
1648 | }; then : | |
1649 | ac_retval=0 | |
1650 | else | |
1651 | $as_echo "$as_me: failed program was:" >&5 | |
1652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1653 | ||
1654 | ac_retval=1 | |
1655 | fi | |
1656 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1657 | return $ac_retval | |
1658 | ||
1659 | } # ac_fn_c_try_cpp | |
1660 | ||
1661 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1662 | # ------------------------------------------------------- | |
1663 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1664 | # the include files in INCLUDES and setting the cache variable VAR | |
1665 | # accordingly. | |
1666 | ac_fn_c_check_header_mongrel () | |
1667 | { | |
1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1669 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1671 | $as_echo_n "checking for $2... " >&6; } | |
1672 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1673 | $as_echo_n "(cached) " >&6 | |
1674 | fi | |
1675 | eval ac_res=\$$3 | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1677 | $as_echo "$ac_res" >&6; } | |
1678 | else | |
1679 | # Is the header compilable? | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1681 | $as_echo_n "checking $2 usability... " >&6; } | |
1682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1683 | /* end confdefs.h. */ | |
1684 | $4 | |
1685 | #include <$2> | |
1686 | _ACEOF | |
1687 | if ac_fn_c_try_compile "$LINENO"; then : | |
1688 | ac_header_compiler=yes | |
1689 | else | |
1690 | ac_header_compiler=no | |
1691 | fi | |
1692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1694 | $as_echo "$ac_header_compiler" >&6; } | |
1695 | ||
1696 | # Is the header present? | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1698 | $as_echo_n "checking $2 presence... " >&6; } | |
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | /* end confdefs.h. */ | |
1701 | #include <$2> | |
1702 | _ACEOF | |
1703 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1704 | ac_header_preproc=yes | |
1705 | else | |
1706 | ac_header_preproc=no | |
1707 | fi | |
1708 | rm -f conftest.err conftest.$ac_ext | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1710 | $as_echo "$ac_header_preproc" >&6; } | |
1711 | ||
1712 | # So? What about this header? | |
1713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1714 | yes:no: ) | |
1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1716 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1718 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1719 | ;; | |
1720 | no:yes:* ) | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1722 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1724 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1726 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1728 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1730 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1731 | ;; | |
1732 | esac | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1734 | $as_echo_n "checking for $2... " >&6; } | |
1735 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1736 | $as_echo_n "(cached) " >&6 | |
1737 | else | |
1738 | eval "$3=\$ac_header_compiler" | |
1739 | fi | |
1740 | eval ac_res=\$$3 | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1742 | $as_echo "$ac_res" >&6; } | |
1743 | fi | |
1744 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1745 | ||
1746 | } # ac_fn_c_check_header_mongrel | |
1747 | ||
1748 | # ac_fn_c_try_run LINENO | |
1749 | # ---------------------- | |
1750 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1751 | # that executables *can* be run. | |
1752 | ac_fn_c_try_run () | |
1753 | { | |
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1755 | if { { ac_try="$ac_link" | |
1756 | case "(($ac_try" in | |
1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1758 | *) ac_try_echo=$ac_try;; | |
1759 | esac | |
1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1761 | $as_echo "$ac_try_echo"; } >&5 | |
1762 | (eval "$ac_link") 2>&5 | |
1763 | ac_status=$? | |
1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1765 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1766 | { { case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_try") 2>&5 | |
1773 | ac_status=$? | |
1774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1775 | test $ac_status = 0; }; }; then : | |
1776 | ac_retval=0 | |
1777 | else | |
1778 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1779 | $as_echo "$as_me: failed program was:" >&5 | |
1780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1781 | ||
1782 | ac_retval=$ac_status | |
1783 | fi | |
1784 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1786 | return $ac_retval | |
1787 | ||
1788 | } # ac_fn_c_try_run | |
1789 | ||
1790 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1791 | # ------------------------------------------------------- | |
1792 | # Tests whether HEADER exists and can be compiled using the include files in | |
1793 | # INCLUDES, setting the cache variable VAR accordingly. | |
1794 | ac_fn_c_check_header_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1798 | $as_echo_n "checking for $2... " >&6; } | |
1799 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1800 | $as_echo_n "(cached) " >&6 | |
1801 | else | |
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1803 | /* end confdefs.h. */ | |
1804 | $4 | |
1805 | #include <$2> | |
1806 | _ACEOF | |
1807 | if ac_fn_c_try_compile "$LINENO"; then : | |
1808 | eval "$3=yes" | |
1809 | else | |
1810 | eval "$3=no" | |
1811 | fi | |
1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1813 | fi | |
1814 | eval ac_res=\$$3 | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1816 | $as_echo "$ac_res" >&6; } | |
1817 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1818 | ||
1819 | } # ac_fn_c_check_header_compile | |
1820 | ||
1821 | # ac_fn_c_check_func LINENO FUNC VAR | |
1822 | # ---------------------------------- | |
1823 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1824 | ac_fn_c_check_func () | |
1825 | { | |
1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1828 | $as_echo_n "checking for $2... " >&6; } | |
1829 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1830 | $as_echo_n "(cached) " >&6 | |
1831 | else | |
1832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1833 | /* end confdefs.h. */ | |
1834 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1836 | #define $2 innocuous_$2 | |
1837 | ||
1838 | /* System header to define __stub macros and hopefully few prototypes, | |
1839 | which can conflict with char $2 (); below. | |
1840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1841 | <limits.h> exists even on freestanding compilers. */ | |
1842 | ||
1843 | #ifdef __STDC__ | |
1844 | # include <limits.h> | |
1845 | #else | |
1846 | # include <assert.h> | |
1847 | #endif | |
1848 | ||
1849 | #undef $2 | |
1850 | ||
1851 | /* Override any GCC internal prototype to avoid an error. | |
1852 | Use char because int might match the return type of a GCC | |
1853 | builtin and then its argument prototype would still apply. */ | |
1854 | #ifdef __cplusplus | |
1855 | extern "C" | |
1856 | #endif | |
1857 | char $2 (); | |
1858 | /* The GNU C library defines this for functions which it implements | |
1859 | to always fail with ENOSYS. Some functions are actually named | |
1860 | something starting with __ and the normal name is an alias. */ | |
1861 | #if defined __stub_$2 || defined __stub___$2 | |
1862 | choke me | |
1863 | #endif | |
1864 | ||
1865 | int | |
1866 | main () | |
1867 | { | |
1868 | return $2 (); | |
1869 | ; | |
1870 | return 0; | |
1871 | } | |
1872 | _ACEOF | |
1873 | if ac_fn_c_try_link "$LINENO"; then : | |
1874 | eval "$3=yes" | |
1875 | else | |
1876 | eval "$3=no" | |
1877 | fi | |
1878 | rm -f core conftest.err conftest.$ac_objext \ | |
1879 | conftest$ac_exeext conftest.$ac_ext | |
1880 | fi | |
1881 | eval ac_res=\$$3 | |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1883 | $as_echo "$ac_res" >&6; } | |
1884 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1885 | ||
1886 | } # ac_fn_c_check_func | |
1887 | ||
1888 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1889 | # ------------------------------------ | |
1890 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1891 | ac_fn_c_check_decl () | |
1892 | { | |
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
1894 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1895 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1897 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1898 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1899 | $as_echo_n "(cached) " >&6 | |
1900 | else | |
1901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1902 | /* end confdefs.h. */ | |
1903 | $4 | |
1904 | int | |
1905 | main () | |
1906 | { | |
360cfc9c AM |
1907 | #ifndef $as_decl_name |
1908 | #ifdef __cplusplus | |
1909 | (void) $as_decl_use; | |
1910 | #else | |
1911 | (void) $as_decl_name; | |
1912 | #endif | |
81ecdfbb RW |
1913 | #endif |
1914 | ||
1915 | ; | |
1916 | return 0; | |
1917 | } | |
1918 | _ACEOF | |
1919 | if ac_fn_c_try_compile "$LINENO"; then : | |
1920 | eval "$3=yes" | |
1921 | else | |
1922 | eval "$3=no" | |
1923 | fi | |
1924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1925 | fi | |
1926 | eval ac_res=\$$3 | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1928 | $as_echo "$ac_res" >&6; } | |
1929 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1930 | ||
1931 | } # ac_fn_c_check_decl | |
1932 | cat >config.log <<_ACEOF | |
1933 | This file contains any messages produced by compilers while | |
1934 | running configure, to aid debugging if configure makes a mistake. | |
1935 | ||
0d702cfe | 1936 | It was created by gas $as_me 2.29.51, which was |
81ecdfbb RW |
1937 | generated by GNU Autoconf 2.64. Invocation command line was |
1938 | ||
1939 | $ $0 $@ | |
1940 | ||
1941 | _ACEOF | |
1942 | exec 5>>config.log | |
1943 | { | |
1944 | cat <<_ASUNAME | |
1945 | ## --------- ## | |
1946 | ## Platform. ## | |
1947 | ## --------- ## | |
1948 | ||
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
13b2be9c DJ |
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
13b2be9c DJ |
1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1965 | ||
1966 | _ASUNAME | |
1967 | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1969 | for as_dir in $PATH | |
1970 | do | |
1971 | IFS=$as_save_IFS | |
1972 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1973 | $as_echo "PATH: $as_dir" |
1974 | done | |
1975 | IFS=$as_save_IFS | |
9b2b7d69 | 1976 | |
13b2be9c | 1977 | } >&5 |
6840198f | 1978 | |
13b2be9c | 1979 | cat >&5 <<_ACEOF |
c8615825 | 1980 | |
9b2b7d69 | 1981 | |
13b2be9c DJ |
1982 | ## ----------- ## |
1983 | ## Core tests. ## | |
1984 | ## ----------- ## | |
87ccc1b0 | 1985 | |
13b2be9c | 1986 | _ACEOF |
9b2b7d69 | 1987 | |
13b2be9c DJ |
1988 | |
1989 | # Keep a trace of the command line. | |
1990 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1991 | # Strip out --silent because we don't want to record it for future runs. | |
1992 | # Also quote any args containing shell meta-characters. | |
1993 | # Make two passes to allow for proper duplicate-argument suppression. | |
1994 | ac_configure_args= | |
1995 | ac_configure_args0= | |
1996 | ac_configure_args1= | |
13b2be9c DJ |
1997 | ac_must_keep_next=false |
1998 | for ac_pass in 1 2 | |
1999 | do | |
2000 | for ac_arg | |
2001 | do | |
2002 | case $ac_arg in | |
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2005 | | -silent | --silent | --silen | --sile | --sil) | |
2006 | continue ;; | |
81ecdfbb RW |
2007 | *\'*) |
2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13b2be9c DJ |
2009 | esac |
2010 | case $ac_pass in | |
81ecdfbb | 2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
13b2be9c | 2012 | 2) |
81ecdfbb | 2013 | as_fn_append ac_configure_args1 " '$ac_arg'" |
13b2be9c | 2014 | if test $ac_must_keep_next = true; then |
ab509236 | 2015 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 2016 | else |
ab509236 L |
2017 | case $ac_arg in |
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2022 | case "$ac_configure_args0 " in | |
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2024 | esac | |
2025 | ;; | |
2026 | -* ) ac_must_keep_next=true ;; | |
2027 | esac | |
13b2be9c | 2028 | fi |
81ecdfbb | 2029 | as_fn_append ac_configure_args " '$ac_arg'" |
c8615825 AM |
2030 | ;; |
2031 | esac | |
2032 | done | |
13b2be9c | 2033 | done |
81ecdfbb RW |
2034 | { ac_configure_args0=; unset ac_configure_args0;} |
2035 | { ac_configure_args1=; unset ac_configure_args1;} | |
13b2be9c DJ |
2036 | |
2037 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2038 | # config.log. We remove comments because anyway the quotes in there | |
2039 | # would cause problems or look ugly. | |
81ecdfbb RW |
2040 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
13b2be9c DJ |
2042 | trap 'exit_status=$? |
2043 | # Save into config.log some information that might help in debugging. | |
2044 | { | |
2045 | echo | |
2046 | ||
2047 | cat <<\_ASBOX | |
2048 | ## ---------------- ## | |
2049 | ## Cache variables. ## | |
2050 | ## ---------------- ## | |
2051 | _ASBOX | |
2052 | echo | |
2053 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2054 | ( |
2055 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2056 | eval ac_val=\$$ac_var | |
2057 | case $ac_val in #( | |
2058 | *${as_nl}*) | |
2059 | case $ac_var in #( | |
2060 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2061 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2062 | esac | |
2063 | case $ac_var in #( | |
2064 | _ | IFS | as_nl) ;; #( | |
2065 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2066 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2067 | esac ;; | |
2068 | esac | |
2069 | done | |
13b2be9c | 2070 | (set) 2>&1 | |
81ecdfbb RW |
2071 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2072 | *${as_nl}ac_space=\ *) | |
13b2be9c | 2073 | sed -n \ |
81ecdfbb RW |
2074 | "s/'\''/'\''\\\\'\'''\''/g; |
2075 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2076 | ;; #( | |
13b2be9c | 2077 | *) |
81ecdfbb | 2078 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 2079 | ;; |
81ecdfbb RW |
2080 | esac | |
2081 | sort | |
2082 | ) | |
13b2be9c DJ |
2083 | echo |
2084 | ||
2085 | cat <<\_ASBOX | |
2086 | ## ----------------- ## | |
2087 | ## Output variables. ## | |
2088 | ## ----------------- ## | |
2089 | _ASBOX | |
2090 | echo | |
2091 | for ac_var in $ac_subst_vars | |
2092 | do | |
81ecdfbb RW |
2093 | eval ac_val=\$$ac_var |
2094 | case $ac_val in | |
2095 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2096 | esac | |
2097 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2098 | done | sort |
2099 | echo | |
2100 | ||
2101 | if test -n "$ac_subst_files"; then | |
2102 | cat <<\_ASBOX | |
81ecdfbb RW |
2103 | ## ------------------- ## |
2104 | ## File substitutions. ## | |
2105 | ## ------------------- ## | |
13b2be9c DJ |
2106 | _ASBOX |
2107 | echo | |
2108 | for ac_var in $ac_subst_files | |
2109 | do | |
81ecdfbb RW |
2110 | eval ac_val=\$$ac_var |
2111 | case $ac_val in | |
2112 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2113 | esac | |
2114 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2115 | done | sort |
2116 | echo | |
2117 | fi | |
2118 | ||
2119 | if test -s confdefs.h; then | |
2120 | cat <<\_ASBOX | |
2121 | ## ----------- ## | |
2122 | ## confdefs.h. ## | |
2123 | ## ----------- ## | |
2124 | _ASBOX | |
2125 | echo | |
81ecdfbb | 2126 | cat confdefs.h |
13b2be9c DJ |
2127 | echo |
2128 | fi | |
2129 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2130 | $as_echo "$as_me: caught signal $ac_signal" |
2131 | $as_echo "$as_me: exit $exit_status" | |
13b2be9c | 2132 | } >&5 |
81ecdfbb RW |
2133 | rm -f core *.core core.conftest.* && |
2134 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
13b2be9c | 2135 | exit $exit_status |
81ecdfbb | 2136 | ' 0 |
13b2be9c | 2137 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2138 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
13b2be9c DJ |
2139 | done |
2140 | ac_signal=0 | |
2141 | ||
2142 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2143 | rm -f -r conftest* confdefs.h |
2144 | ||
2145 | $as_echo "/* confdefs.h */" > confdefs.h | |
13b2be9c DJ |
2146 | |
2147 | # Predefined preprocessor variables. | |
2148 | ||
2149 | cat >>confdefs.h <<_ACEOF | |
2150 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2151 | _ACEOF | |
2152 | ||
13b2be9c DJ |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2155 | _ACEOF | |
2156 | ||
13b2be9c DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2159 | _ACEOF | |
2160 | ||
13b2be9c DJ |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2163 | _ACEOF | |
2164 | ||
13b2be9c DJ |
2165 | cat >>confdefs.h <<_ACEOF |
2166 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2167 | _ACEOF | |
2168 | ||
81ecdfbb RW |
2169 | cat >>confdefs.h <<_ACEOF |
2170 | #define PACKAGE_URL "$PACKAGE_URL" | |
2171 | _ACEOF | |
2172 | ||
13b2be9c DJ |
2173 | |
2174 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2175 | # Prefer an explicitly selected file to automatically selected ones. |
2176 | ac_site_file1=NONE | |
2177 | ac_site_file2=NONE | |
2178 | if test -n "$CONFIG_SITE"; then | |
2179 | ac_site_file1=$CONFIG_SITE | |
2180 | elif test "x$prefix" != xNONE; then | |
2181 | ac_site_file1=$prefix/share/config.site | |
2182 | ac_site_file2=$prefix/etc/config.site | |
2183 | else | |
2184 | ac_site_file1=$ac_default_prefix/share/config.site | |
2185 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2186 | fi | |
2187 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2188 | do | |
2189 | test "x$ac_site_file" = xNONE && continue | |
13b2be9c | 2190 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2192 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
13b2be9c DJ |
2193 | sed 's/^/| /' "$ac_site_file" >&5 |
2194 | . "$ac_site_file" | |
2195 | fi | |
2196 | done | |
2197 | ||
2198 | if test -r "$cache_file"; then | |
2199 | # Some versions of bash will fail to source /dev/null (special | |
2200 | # files actually), so we avoid doing that. | |
2201 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2203 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
13b2be9c | 2204 | case $cache_file in |
81ecdfbb RW |
2205 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2206 | *) . "./$cache_file";; | |
13b2be9c DJ |
2207 | esac |
2208 | fi | |
2209 | else | |
81ecdfbb RW |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2211 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
13b2be9c DJ |
2212 | >$cache_file |
2213 | fi | |
2214 | ||
2215 | # Check that the precious variables saved in the cache have kept the same | |
2216 | # value. | |
2217 | ac_cache_corrupted=false | |
81ecdfbb | 2218 | for ac_var in $ac_precious_vars; do |
13b2be9c DJ |
2219 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2220 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2221 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2222 | eval ac_new_val=\$ac_env_${ac_var}_value | |
13b2be9c DJ |
2223 | case $ac_old_set,$ac_new_set in |
2224 | set,) | |
81ecdfbb RW |
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2226 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
13b2be9c DJ |
2227 | ac_cache_corrupted=: ;; |
2228 | ,set) | |
81ecdfbb RW |
2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2230 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
13b2be9c DJ |
2231 | ac_cache_corrupted=: ;; |
2232 | ,);; | |
2233 | *) | |
2234 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2235 | # differences in whitespace do not lead to failure. |
2236 | ac_old_val_w=`echo x $ac_old_val` | |
2237 | ac_new_val_w=`echo x $ac_new_val` | |
2238 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2240 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2241 | ac_cache_corrupted=: | |
2242 | else | |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2244 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2245 | eval $ac_var=\$ac_old_val | |
2246 | fi | |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2248 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2250 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
2251 | fi;; |
2252 | esac | |
2253 | # Pass precious variables to config.status. | |
2254 | if test "$ac_new_set" = set; then | |
2255 | case $ac_new_val in | |
81ecdfbb | 2256 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
13b2be9c DJ |
2257 | *) ac_arg=$ac_var=$ac_new_val ;; |
2258 | esac | |
2259 | case " $ac_configure_args " in | |
2260 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2261 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
13b2be9c DJ |
2262 | esac |
2263 | fi | |
2264 | done | |
2265 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2267 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2269 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2270 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
13b2be9c | 2271 | fi |
81ecdfbb RW |
2272 | ## -------------------- ## |
2273 | ## Main body of script. ## | |
2274 | ## -------------------- ## | |
13b2be9c DJ |
2275 | |
2276 | ac_ext=c | |
2277 | ac_cpp='$CPP $CPPFLAGS' | |
2278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2281 | ||
2282 | ||
2283 | ||
13b2be9c | 2284 | |
da594c4a | 2285 | |
13b2be9c DJ |
2286 | |
2287 | ||
2288 | ac_aux_dir= | |
81ecdfbb RW |
2289 | for ac_dir in .. "$srcdir"/..; do |
2290 | for ac_t in install-sh install.sh shtool; do | |
2291 | if test -f "$ac_dir/$ac_t"; then | |
2292 | ac_aux_dir=$ac_dir | |
2293 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2294 | break 2 | |
2295 | fi | |
2296 | done | |
13b2be9c DJ |
2297 | done |
2298 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2299 | as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
13b2be9c | 2300 | fi |
81ecdfbb RW |
2301 | |
2302 | # These three variables are undocumented and unsupported, | |
2303 | # and are intended to be withdrawn in a future Autoconf release. | |
2304 | # They can cause serious problems if a builder's source tree is in a directory | |
2305 | # whose full name contains unusual characters. | |
2306 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2307 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2308 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2309 | ||
13b2be9c DJ |
2310 | |
2311 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2312 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2313 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2314 | ||
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2316 | $as_echo_n "checking build system type... " >&6; } | |
2317 | if test "${ac_cv_build+set}" = set; then : | |
2318 | $as_echo_n "(cached) " >&6 | |
2319 | else | |
2320 | ac_build_alias=$build_alias | |
2321 | test "x$ac_build_alias" = x && | |
2322 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2323 | test "x$ac_build_alias" = x && | |
2324 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2325 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2326 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2327 | ||
2328 | fi | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2330 | $as_echo "$ac_cv_build" >&6; } | |
2331 | case $ac_cv_build in | |
2332 | *-*-*) ;; | |
2333 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2334 | esac | |
13b2be9c | 2335 | build=$ac_cv_build |
81ecdfbb RW |
2336 | ac_save_IFS=$IFS; IFS='-' |
2337 | set x $ac_cv_build | |
2338 | shift | |
2339 | build_cpu=$1 | |
2340 | build_vendor=$2 | |
2341 | shift; shift | |
2342 | # Remember, the first character of IFS is used to create $*, | |
2343 | # except with old shells: | |
2344 | build_os=$* | |
2345 | IFS=$ac_save_IFS | |
2346 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2347 | |
2348 | ||
81ecdfbb RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2350 | $as_echo_n "checking host system type... " >&6; } | |
2351 | if test "${ac_cv_host+set}" = set; then : | |
2352 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2353 | else |
81ecdfbb RW |
2354 | if test "x$host_alias" = x; then |
2355 | ac_cv_host=$ac_cv_build | |
2356 | else | |
2357 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2358 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2359 | fi | |
13b2be9c DJ |
2360 | |
2361 | fi | |
81ecdfbb RW |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2363 | $as_echo "$ac_cv_host" >&6; } | |
2364 | case $ac_cv_host in | |
2365 | *-*-*) ;; | |
2366 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2367 | esac | |
13b2be9c | 2368 | host=$ac_cv_host |
81ecdfbb RW |
2369 | ac_save_IFS=$IFS; IFS='-' |
2370 | set x $ac_cv_host | |
2371 | shift | |
2372 | host_cpu=$1 | |
2373 | host_vendor=$2 | |
2374 | shift; shift | |
2375 | # Remember, the first character of IFS is used to create $*, | |
2376 | # except with old shells: | |
2377 | host_os=$* | |
2378 | IFS=$ac_save_IFS | |
2379 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2380 | |
2381 | ||
81ecdfbb RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2383 | $as_echo_n "checking target system type... " >&6; } | |
2384 | if test "${ac_cv_target+set}" = set; then : | |
2385 | $as_echo_n "(cached) " >&6 | |
2386 | else | |
2387 | if test "x$target_alias" = x; then | |
2388 | ac_cv_target=$ac_cv_host | |
13b2be9c | 2389 | else |
81ecdfbb RW |
2390 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2391 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2392 | fi | |
13b2be9c DJ |
2393 | |
2394 | fi | |
81ecdfbb RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2396 | $as_echo "$ac_cv_target" >&6; } | |
2397 | case $ac_cv_target in | |
2398 | *-*-*) ;; | |
2399 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2400 | esac | |
13b2be9c | 2401 | target=$ac_cv_target |
81ecdfbb RW |
2402 | ac_save_IFS=$IFS; IFS='-' |
2403 | set x $ac_cv_target | |
2404 | shift | |
2405 | target_cpu=$1 | |
2406 | target_vendor=$2 | |
2407 | shift; shift | |
2408 | # Remember, the first character of IFS is used to create $*, | |
2409 | # except with old shells: | |
2410 | target_os=$* | |
2411 | IFS=$ac_save_IFS | |
2412 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2413 | |
2414 | ||
2415 | # The aliases save the names the user supplied, while $host etc. | |
2416 | # will get canonicalized. | |
2417 | test -n "$target_alias" && | |
2418 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2419 | NONENONEs,x,x, && | |
2420 | program_prefix=${target_alias}- | |
2421 | ac_ext=c | |
2422 | ac_cpp='$CPP $CPPFLAGS' | |
2423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2426 | if test -n "$ac_tool_prefix"; then | |
2427 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2428 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2430 | $as_echo_n "checking for $ac_word... " >&6; } | |
2431 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2432 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2433 | else |
2434 | if test -n "$CC"; then | |
2435 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2436 | else | |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
2440 | IFS=$as_save_IFS | |
2441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2442 | for ac_exec_ext in '' $ac_executable_extensions; do |
2443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2444 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2446 | break 2 |
2447 | fi | |
2448 | done | |
81ecdfbb RW |
2449 | done |
2450 | IFS=$as_save_IFS | |
13b2be9c DJ |
2451 | |
2452 | fi | |
2453 | fi | |
2454 | CC=$ac_cv_prog_CC | |
2455 | if test -n "$CC"; then | |
81ecdfbb RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2457 | $as_echo "$CC" >&6; } | |
13b2be9c | 2458 | else |
81ecdfbb RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2460 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2461 | fi |
2462 | ||
81ecdfbb | 2463 | |
13b2be9c DJ |
2464 | fi |
2465 | if test -z "$ac_cv_prog_CC"; then | |
2466 | ac_ct_CC=$CC | |
2467 | # Extract the first word of "gcc", so it can be a program name with args. | |
2468 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2470 | $as_echo_n "checking for $ac_word... " >&6; } | |
2471 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2472 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2473 | else |
2474 | if test -n "$ac_ct_CC"; then | |
2475 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2476 | else | |
2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2478 | for as_dir in $PATH | |
2479 | do | |
2480 | IFS=$as_save_IFS | |
2481 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do |
2483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2484 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2486 | break 2 |
2487 | fi | |
2488 | done | |
81ecdfbb RW |
2489 | done |
2490 | IFS=$as_save_IFS | |
13b2be9c DJ |
2491 | |
2492 | fi | |
2493 | fi | |
2494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2495 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2497 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2498 | else |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2500 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2501 | fi |
2502 | ||
81ecdfbb RW |
2503 | if test "x$ac_ct_CC" = x; then |
2504 | CC="" | |
2505 | else | |
2506 | case $cross_compiling:$ac_tool_warned in | |
2507 | yes:) | |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2510 | ac_tool_warned=yes ;; | |
2511 | esac | |
2512 | CC=$ac_ct_CC | |
2513 | fi | |
13b2be9c DJ |
2514 | else |
2515 | CC="$ac_cv_prog_CC" | |
2516 | fi | |
2517 | ||
2518 | if test -z "$CC"; then | |
81ecdfbb RW |
2519 | if test -n "$ac_tool_prefix"; then |
2520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
13b2be9c | 2521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2523 | $as_echo_n "checking for $ac_word... " >&6; } | |
2524 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2525 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2526 | else |
2527 | if test -n "$CC"; then | |
2528 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2529 | else | |
2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2531 | for as_dir in $PATH | |
2532 | do | |
2533 | IFS=$as_save_IFS | |
2534 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do |
2536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2537 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2539 | break 2 |
2540 | fi | |
2541 | done | |
81ecdfbb RW |
2542 | done |
2543 | IFS=$as_save_IFS | |
13b2be9c DJ |
2544 | |
2545 | fi | |
2546 | fi | |
2547 | CC=$ac_cv_prog_CC | |
2548 | if test -n "$CC"; then | |
81ecdfbb RW |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2550 | $as_echo "$CC" >&6; } | |
13b2be9c | 2551 | else |
81ecdfbb RW |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2553 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2554 | fi |
2555 | ||
13b2be9c | 2556 | |
81ecdfbb | 2557 | fi |
13b2be9c DJ |
2558 | fi |
2559 | if test -z "$CC"; then | |
2560 | # Extract the first word of "cc", so it can be a program name with args. | |
2561 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2563 | $as_echo_n "checking for $ac_word... " >&6; } | |
2564 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2565 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2566 | else |
2567 | if test -n "$CC"; then | |
2568 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2569 | else | |
2570 | ac_prog_rejected=no | |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2572 | for as_dir in $PATH | |
2573 | do | |
2574 | IFS=$as_save_IFS | |
2575 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c DJ |
2578 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2579 | ac_prog_rejected=yes | |
2580 | continue | |
2581 | fi | |
2582 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2584 | break 2 |
2585 | fi | |
2586 | done | |
81ecdfbb RW |
2587 | done |
2588 | IFS=$as_save_IFS | |
2589 | ||
13b2be9c DJ |
2590 | if test $ac_prog_rejected = yes; then |
2591 | # We found a bogon in the path, so make sure we never use it. | |
2592 | set dummy $ac_cv_prog_CC | |
2593 | shift | |
2594 | if test $# != 0; then | |
2595 | # We chose a different compiler from the bogus one. | |
2596 | # However, it has the same basename, so the bogon will be chosen | |
2597 | # first if we set CC to just the basename; use the full file name. | |
2598 | shift | |
2599 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2600 | fi | |
2601 | fi | |
2602 | fi | |
2603 | fi | |
2604 | CC=$ac_cv_prog_CC | |
2605 | if test -n "$CC"; then | |
81ecdfbb RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2607 | $as_echo "$CC" >&6; } | |
13b2be9c | 2608 | else |
81ecdfbb RW |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2610 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2611 | fi |
2612 | ||
81ecdfbb | 2613 | |
13b2be9c DJ |
2614 | fi |
2615 | if test -z "$CC"; then | |
2616 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2617 | for ac_prog in cl.exe |
13b2be9c DJ |
2618 | do |
2619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2622 | $as_echo_n "checking for $ac_word... " >&6; } | |
2623 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2624 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2625 | else |
2626 | if test -n "$CC"; then | |
2627 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2628 | else | |
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2630 | for as_dir in $PATH | |
2631 | do | |
2632 | IFS=$as_save_IFS | |
2633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2634 | for ac_exec_ext in '' $ac_executable_extensions; do |
2635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2636 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2638 | break 2 |
2639 | fi | |
2640 | done | |
81ecdfbb RW |
2641 | done |
2642 | IFS=$as_save_IFS | |
13b2be9c DJ |
2643 | |
2644 | fi | |
2645 | fi | |
2646 | CC=$ac_cv_prog_CC | |
2647 | if test -n "$CC"; then | |
81ecdfbb RW |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2649 | $as_echo "$CC" >&6; } | |
13b2be9c | 2650 | else |
81ecdfbb RW |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2652 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2653 | fi |
2654 | ||
81ecdfbb | 2655 | |
13b2be9c DJ |
2656 | test -n "$CC" && break |
2657 | done | |
2658 | fi | |
2659 | if test -z "$CC"; then | |
2660 | ac_ct_CC=$CC | |
81ecdfbb | 2661 | for ac_prog in cl.exe |
13b2be9c DJ |
2662 | do |
2663 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2664 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2666 | $as_echo_n "checking for $ac_word... " >&6; } | |
2667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2668 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2669 | else |
2670 | if test -n "$ac_ct_CC"; then | |
2671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2672 | else | |
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2674 | for as_dir in $PATH | |
2675 | do | |
2676 | IFS=$as_save_IFS | |
2677 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do |
2679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2680 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2682 | break 2 |
2683 | fi | |
2684 | done | |
81ecdfbb RW |
2685 | done |
2686 | IFS=$as_save_IFS | |
13b2be9c DJ |
2687 | |
2688 | fi | |
2689 | fi | |
2690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2691 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2693 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2694 | else |
81ecdfbb RW |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2696 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2697 | fi |
2698 | ||
81ecdfbb | 2699 | |
13b2be9c DJ |
2700 | test -n "$ac_ct_CC" && break |
2701 | done | |
2702 | ||
81ecdfbb RW |
2703 | if test "x$ac_ct_CC" = x; then |
2704 | CC="" | |
2705 | else | |
2706 | case $cross_compiling:$ac_tool_warned in | |
2707 | yes:) | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2710 | ac_tool_warned=yes ;; | |
2711 | esac | |
2712 | CC=$ac_ct_CC | |
2713 | fi | |
13b2be9c DJ |
2714 | fi |
2715 | ||
2716 | fi | |
2717 | ||
2718 | ||
81ecdfbb RW |
2719 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2721 | as_fn_error "no acceptable C compiler found in \$PATH | |
2722 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c DJ |
2723 | |
2724 | # Provide some information about the compiler. | |
81ecdfbb RW |
2725 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2726 | set X $ac_compile | |
2727 | ac_compiler=$2 | |
2728 | for ac_option in --version -v -V -qversion; do | |
2729 | { { ac_try="$ac_compiler $ac_option >&5" | |
2730 | case "(($ac_try" in | |
2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2732 | *) ac_try_echo=$ac_try;; | |
2733 | esac | |
2734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2735 | $as_echo "$ac_try_echo"; } >&5 | |
2736 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
13b2be9c | 2737 | ac_status=$? |
81ecdfbb RW |
2738 | if test -s conftest.err; then |
2739 | sed '10a\ | |
2740 | ... rest of stderr output deleted ... | |
2741 | 10q' conftest.err >conftest.er1 | |
2742 | cat conftest.er1 >&5 | |
2743 | rm -f conftest.er1 conftest.err | |
2744 | fi | |
2745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2746 | test $ac_status = 0; } | |
2747 | done | |
13b2be9c | 2748 | |
81ecdfbb | 2749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2750 | /* end confdefs.h. */ |
2751 | ||
2752 | int | |
2753 | main () | |
2754 | { | |
2755 | ||
2756 | ; | |
2757 | return 0; | |
2758 | } | |
2759 | _ACEOF | |
2760 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2761 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
13b2be9c DJ |
2762 | # Try to create an executable without -o first, disregard a.out. |
2763 | # It will help us diagnose broken compilers, and finding out an intuition | |
2764 | # of exeext. | |
81ecdfbb RW |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2766 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2767 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2768 | ||
2769 | # The possible output files: | |
2770 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2771 | ||
2772 | ac_rmfiles= | |
2773 | for ac_file in $ac_files | |
2774 | do | |
2775 | case $ac_file in | |
2776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2777 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2778 | esac | |
2779 | done | |
2780 | rm -f $ac_rmfiles | |
2781 | ||
2782 | if { { ac_try="$ac_link_default" | |
2783 | case "(($ac_try" in | |
2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2785 | *) ac_try_echo=$ac_try;; | |
2786 | esac | |
2787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2788 | $as_echo "$ac_try_echo"; } >&5 | |
2789 | (eval "$ac_link_default") 2>&5 | |
2790 | ac_status=$? | |
2791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2792 | test $ac_status = 0; }; then : | |
2793 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2794 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2795 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2796 | # so that the user can short-circuit this test for compilers unknown to | |
2797 | # Autoconf. | |
2798 | for ac_file in $ac_files '' | |
13b2be9c DJ |
2799 | do |
2800 | test -f "$ac_file" || continue | |
2801 | case $ac_file in | |
81ecdfbb | 2802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
ab509236 | 2803 | ;; |
13b2be9c | 2804 | [ab].out ) |
ab509236 L |
2805 | # We found the default executable, but exeext='' is most |
2806 | # certainly right. | |
2807 | break;; | |
13b2be9c | 2808 | *.* ) |
81ecdfbb RW |
2809 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2810 | then :; else | |
2811 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2812 | fi | |
2813 | # We set ac_cv_exeext here because the later test for it is not | |
2814 | # safe: cross compilers may not add the suffix if given an `-o' | |
2815 | # argument, so we may need to know it at that point already. | |
2816 | # Even if this section looks crufty: it has the advantage of | |
2817 | # actually working. | |
ab509236 | 2818 | break;; |
13b2be9c | 2819 | * ) |
ab509236 | 2820 | break;; |
13b2be9c DJ |
2821 | esac |
2822 | done | |
81ecdfbb RW |
2823 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2824 | ||
13b2be9c | 2825 | else |
81ecdfbb RW |
2826 | ac_file='' |
2827 | fi | |
2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2829 | $as_echo "$ac_file" >&6; } | |
2830 | if test -z "$ac_file"; then : | |
2831 | $as_echo "$as_me: failed program was:" >&5 | |
13b2be9c DJ |
2832 | sed 's/^/| /' conftest.$ac_ext >&5 |
2833 | ||
81ecdfbb RW |
2834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2836 | { as_fn_set_status 77 | |
2837 | as_fn_error "C compiler cannot create executables | |
2838 | See \`config.log' for more details." "$LINENO" 5; }; } | |
13b2be9c | 2839 | fi |
13b2be9c | 2840 | ac_exeext=$ac_cv_exeext |
13b2be9c | 2841 | |
81ecdfbb | 2842 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2843 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2845 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
13b2be9c DJ |
2846 | # If not cross compiling, check that we can run a simple program. |
2847 | if test "$cross_compiling" != yes; then | |
2848 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2849 | { { case "(($ac_try" in |
2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2851 | *) ac_try_echo=$ac_try;; | |
2852 | esac | |
2853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2854 | $as_echo "$ac_try_echo"; } >&5 | |
2855 | (eval "$ac_try") 2>&5 | |
13b2be9c | 2856 | ac_status=$? |
81ecdfbb RW |
2857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2858 | test $ac_status = 0; }; }; then | |
13b2be9c DJ |
2859 | cross_compiling=no |
2860 | else | |
2861 | if test "$cross_compiling" = maybe; then | |
2862 | cross_compiling=yes | |
2863 | else | |
81ecdfbb RW |
2864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2866 | as_fn_error "cannot run C compiled programs. | |
13b2be9c | 2867 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2868 | See \`config.log' for more details." "$LINENO" 5; } |
13b2be9c DJ |
2869 | fi |
2870 | fi | |
2871 | fi | |
81ecdfbb RW |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2873 | $as_echo "yes" >&6; } | |
13b2be9c | 2874 | |
81ecdfbb | 2875 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
13b2be9c | 2876 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2877 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2878 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2880 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2882 | $as_echo "$cross_compiling" >&6; } | |
2883 | ||
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2885 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2886 | if { { ac_try="$ac_link" | |
2887 | case "(($ac_try" in | |
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2889 | *) ac_try_echo=$ac_try;; | |
2890 | esac | |
2891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2892 | $as_echo "$ac_try_echo"; } >&5 | |
2893 | (eval "$ac_link") 2>&5 | |
13b2be9c | 2894 | ac_status=$? |
81ecdfbb RW |
2895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2896 | test $ac_status = 0; }; then : | |
13b2be9c DJ |
2897 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2898 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2899 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2900 | # `rm'. | |
2901 | for ac_file in conftest.exe conftest conftest.*; do | |
2902 | test -f "$ac_file" || continue | |
2903 | case $ac_file in | |
81ecdfbb | 2904 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
13b2be9c | 2905 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ab509236 | 2906 | break;; |
13b2be9c DJ |
2907 | * ) break;; |
2908 | esac | |
2909 | done | |
2910 | else | |
81ecdfbb RW |
2911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2913 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2914 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 2915 | fi |
13b2be9c | 2916 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2918 | $as_echo "$ac_cv_exeext" >&6; } | |
13b2be9c DJ |
2919 | |
2920 | rm -f conftest.$ac_ext | |
2921 | EXEEXT=$ac_cv_exeext | |
2922 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2924 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2925 | if test "${ac_cv_objext+set}" = set; then : | |
2926 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2927 | else |
81ecdfbb | 2928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2929 | /* end confdefs.h. */ |
2930 | ||
2931 | int | |
2932 | main () | |
2933 | { | |
2934 | ||
2935 | ; | |
2936 | return 0; | |
2937 | } | |
2938 | _ACEOF | |
2939 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2940 | if { { ac_try="$ac_compile" |
2941 | case "(($ac_try" in | |
2942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2943 | *) ac_try_echo=$ac_try;; | |
2944 | esac | |
2945 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2946 | $as_echo "$ac_try_echo"; } >&5 | |
2947 | (eval "$ac_compile") 2>&5 | |
2948 | ac_status=$? | |
2949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2950 | test $ac_status = 0; }; then : | |
2951 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2952 | test -f "$ac_file" || continue; | |
13b2be9c | 2953 | case $ac_file in |
81ecdfbb | 2954 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
13b2be9c DJ |
2955 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2956 | break;; | |
2957 | esac | |
2958 | done | |
2959 | else | |
81ecdfbb | 2960 | $as_echo "$as_me: failed program was:" >&5 |
13b2be9c DJ |
2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
2962 | ||
81ecdfbb RW |
2963 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2964 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2965 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2966 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 2967 | fi |
13b2be9c DJ |
2968 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2969 | fi | |
81ecdfbb RW |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2971 | $as_echo "$ac_cv_objext" >&6; } | |
13b2be9c DJ |
2972 | OBJEXT=$ac_cv_objext |
2973 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2975 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2976 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2977 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2978 | else |
81ecdfbb | 2979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2980 | /* end confdefs.h. */ |
2981 | ||
2982 | int | |
2983 | main () | |
2984 | { | |
2985 | #ifndef __GNUC__ | |
2986 | choke me | |
2987 | #endif | |
2988 | ||
2989 | ; | |
2990 | return 0; | |
2991 | } | |
2992 | _ACEOF | |
81ecdfbb | 2993 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
2994 | ac_compiler_gnu=yes |
2995 | else | |
81ecdfbb | 2996 | ac_compiler_gnu=no |
13b2be9c | 2997 | fi |
81ecdfbb | 2998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2999 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3000 | ||
3001 | fi | |
81ecdfbb RW |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3003 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3004 | if test $ac_compiler_gnu = yes; then | |
3005 | GCC=yes | |
3006 | else | |
3007 | GCC= | |
3008 | fi | |
13b2be9c DJ |
3009 | ac_test_CFLAGS=${CFLAGS+set} |
3010 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3012 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3013 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3014 | $as_echo_n "(cached) " >&6 | |
3015 | else | |
3016 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3017 | ac_c_werror_flag=yes | |
3018 | ac_cv_prog_cc_g=no | |
3019 | CFLAGS="-g" | |
3020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13b2be9c DJ |
3021 | /* end confdefs.h. */ |
3022 | ||
3023 | int | |
3024 | main () | |
3025 | { | |
3026 | ||
3027 | ; | |
3028 | return 0; | |
3029 | } | |
3030 | _ACEOF | |
81ecdfbb | 3031 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
3032 | ac_cv_prog_cc_g=yes |
3033 | else | |
81ecdfbb RW |
3034 | CFLAGS="" |
3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3036 | /* end confdefs.h. */ | |
13b2be9c | 3037 | |
81ecdfbb RW |
3038 | int |
3039 | main () | |
3040 | { | |
3041 | ||
3042 | ; | |
3043 | return 0; | |
3044 | } | |
3045 | _ACEOF | |
3046 | if ac_fn_c_try_compile "$LINENO"; then : | |
3047 | ||
3048 | else | |
3049 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3050 | CFLAGS="-g" | |
3051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3052 | /* end confdefs.h. */ | |
3053 | ||
3054 | int | |
3055 | main () | |
3056 | { | |
3057 | ||
3058 | ; | |
3059 | return 0; | |
3060 | } | |
3061 | _ACEOF | |
3062 | if ac_fn_c_try_compile "$LINENO"; then : | |
3063 | ac_cv_prog_cc_g=yes | |
3064 | fi | |
3065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13b2be9c | 3066 | fi |
81ecdfbb | 3067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 3068 | fi |
81ecdfbb RW |
3069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3070 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3071 | fi | |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3073 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
13b2be9c DJ |
3074 | if test "$ac_test_CFLAGS" = set; then |
3075 | CFLAGS=$ac_save_CFLAGS | |
3076 | elif test $ac_cv_prog_cc_g = yes; then | |
3077 | if test "$GCC" = yes; then | |
3078 | CFLAGS="-g -O2" | |
3079 | else | |
3080 | CFLAGS="-g" | |
3081 | fi | |
3082 | else | |
3083 | if test "$GCC" = yes; then | |
3084 | CFLAGS="-O2" | |
3085 | else | |
3086 | CFLAGS= | |
3087 | fi | |
3088 | fi | |
81ecdfbb RW |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3090 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3091 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3092 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3093 | else |
81ecdfbb | 3094 | ac_cv_prog_cc_c89=no |
13b2be9c | 3095 | ac_save_CC=$CC |
81ecdfbb | 3096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3097 | /* end confdefs.h. */ |
3098 | #include <stdarg.h> | |
3099 | #include <stdio.h> | |
3100 | #include <sys/types.h> | |
3101 | #include <sys/stat.h> | |
3102 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3103 | struct buf { int x; }; | |
3104 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3105 | static char *e (p, i) | |
3106 | char **p; | |
3107 | int i; | |
3108 | { | |
3109 | return p[i]; | |
3110 | } | |
3111 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3112 | { | |
3113 | char *s; | |
3114 | va_list v; | |
3115 | va_start (v,p); | |
3116 | s = g (p, va_arg (v,int)); | |
3117 | va_end (v); | |
3118 | return s; | |
3119 | } | |
ab509236 L |
3120 | |
3121 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3122 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3123 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3124 | as 'x'. The following induces an error, until -std is added to get |
ab509236 L |
3125 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3126 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3127 | that's true only with -std. */ |
ab509236 L |
3128 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3129 | ||
81ecdfbb RW |
3130 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3131 | inside strings and character constants. */ | |
3132 | #define FOO(x) 'x' | |
3133 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3134 | ||
13b2be9c DJ |
3135 | int test (int i, double x); |
3136 | struct s1 {int (*f) (int a);}; | |
3137 | struct s2 {int (*f) (double a);}; | |
3138 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3139 | int argc; | |
3140 | char **argv; | |
3141 | int | |
3142 | main () | |
3143 | { | |
3144 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3145 | ; | |
3146 | return 0; | |
3147 | } | |
3148 | _ACEOF | |
81ecdfbb RW |
3149 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3150 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
13b2be9c DJ |
3151 | do |
3152 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3153 | if ac_fn_c_try_compile "$LINENO"; then : |
3154 | ac_cv_prog_cc_c89=$ac_arg | |
13b2be9c | 3155 | fi |
81ecdfbb RW |
3156 | rm -f core conftest.err conftest.$ac_objext |
3157 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
13b2be9c | 3158 | done |
81ecdfbb | 3159 | rm -f conftest.$ac_ext |
13b2be9c DJ |
3160 | CC=$ac_save_CC |
3161 | ||
3162 | fi | |
81ecdfbb RW |
3163 | # AC_CACHE_VAL |
3164 | case "x$ac_cv_prog_cc_c89" in | |
3165 | x) | |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3167 | $as_echo "none needed" >&6; } ;; | |
3168 | xno) | |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3170 | $as_echo "unsupported" >&6; } ;; | |
13b2be9c | 3171 | *) |
81ecdfbb RW |
3172 | CC="$CC $ac_cv_prog_cc_c89" |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3174 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
13b2be9c | 3175 | esac |
81ecdfbb | 3176 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
13b2be9c | 3177 | |
13b2be9c DJ |
3178 | fi |
3179 | ||
13b2be9c DJ |
3180 | ac_ext=c |
3181 | ac_cpp='$CPP $CPPFLAGS' | |
3182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3185 | ||
3186 | ||
81ecdfbb RW |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3188 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3189 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3190 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3191 | else |
ab509236 | 3192 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 3193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3194 | /* end confdefs.h. */ |
3195 | ||
81ecdfbb RW |
3196 | /* Override any GCC internal prototype to avoid an error. |
3197 | Use char because int might match the return type of a GCC | |
3198 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
3199 | #ifdef __cplusplus |
3200 | extern "C" | |
3201 | #endif | |
13b2be9c DJ |
3202 | char strerror (); |
3203 | int | |
3204 | main () | |
3205 | { | |
81ecdfbb | 3206 | return strerror (); |
13b2be9c DJ |
3207 | ; |
3208 | return 0; | |
3209 | } | |
3210 | _ACEOF | |
81ecdfbb RW |
3211 | for ac_lib in '' cposix; do |
3212 | if test -z "$ac_lib"; then | |
3213 | ac_res="none required" | |
3214 | else | |
3215 | ac_res=-l$ac_lib | |
ab509236 | 3216 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3217 | fi |
3218 | if ac_fn_c_try_link "$LINENO"; then : | |
3219 | ac_cv_search_strerror=$ac_res | |
3220 | fi | |
3221 | rm -f core conftest.err conftest.$ac_objext \ | |
3222 | conftest$ac_exeext | |
3223 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3224 | break | |
3225 | fi | |
3226 | done | |
3227 | if test "${ac_cv_search_strerror+set}" = set; then : | |
ab509236 | 3228 | |
ab509236 | 3229 | else |
81ecdfbb | 3230 | ac_cv_search_strerror=no |
13b2be9c | 3231 | fi |
81ecdfbb | 3232 | rm conftest.$ac_ext |
ab509236 L |
3233 | LIBS=$ac_func_search_save_LIBS |
3234 | fi | |
81ecdfbb RW |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3236 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3237 | ac_res=$ac_cv_search_strerror | |
3238 | if test "$ac_res" != no; then : | |
3239 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13b2be9c | 3240 | |
ab509236 | 3241 | fi |
13b2be9c DJ |
3242 | |
3243 | ||
81ecdfbb RW |
3244 | am__api_version='1.11' |
3245 | ||
13b2be9c DJ |
3246 | # Find a good install program. We prefer a C program (faster), |
3247 | # so one script is as good as another. But avoid the broken or | |
3248 | # incompatible versions: | |
3249 | # SysV /etc/install, /usr/sbin/install | |
3250 | # SunOS /usr/etc/install | |
3251 | # IRIX /sbin/install | |
3252 | # AIX /bin/install | |
3253 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3254 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3255 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3256 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 3257 | # OS/2's system install, which has a completely different semantic |
13b2be9c | 3258 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3259 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3261 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
13b2be9c | 3262 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3263 | if test "${ac_cv_path_install+set}" = set; then : |
3264 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
3265 | else |
3266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3267 | for as_dir in $PATH | |
3268 | do | |
3269 | IFS=$as_save_IFS | |
3270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3271 | # Account for people who put trailing slashes in PATH elements. |
3272 | case $as_dir/ in #(( | |
3273 | ./ | .// | /[cC]/* | \ | |
13b2be9c | 3274 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3275 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
13b2be9c DJ |
3276 | /usr/ucb/* ) ;; |
3277 | *) | |
3278 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3279 | # Don't use installbsd from OSF since it installs stuff as root | |
3280 | # by default. | |
3281 | for ac_prog in ginstall scoinst install; do | |
3282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3283 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
ab509236 L |
3284 | if test $ac_prog = install && |
3285 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3286 | # AIX install. It has an incompatible calling convention. | |
3287 | : | |
3288 | elif test $ac_prog = install && | |
3289 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3290 | # program-specific install script used by HP pwplus--don't use. | |
3291 | : | |
3292 | else | |
58c85be7 RW |
3293 | rm -rf conftest.one conftest.two conftest.dir |
3294 | echo one > conftest.one | |
3295 | echo two > conftest.two | |
3296 | mkdir conftest.dir | |
3297 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3298 | test -s conftest.one && test -s conftest.two && | |
3299 | test -s conftest.dir/conftest.one && | |
3300 | test -s conftest.dir/conftest.two | |
3301 | then | |
3302 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3303 | break 3 | |
3304 | fi | |
ab509236 L |
3305 | fi |
3306 | fi | |
13b2be9c DJ |
3307 | done |
3308 | done | |
3309 | ;; | |
3310 | esac | |
81ecdfbb RW |
3311 | |
3312 | done | |
3313 | IFS=$as_save_IFS | |
13b2be9c | 3314 | |
58c85be7 | 3315 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3316 | |
3317 | fi | |
3318 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 3319 | INSTALL=$ac_cv_path_install |
252b5132 | 3320 | else |
58c85be7 RW |
3321 | # As a last resort, use the slow shell script. Don't cache a |
3322 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3323 | # break other packages using the cache if that directory is |
58c85be7 | 3324 | # removed, or if the value is a relative name. |
13b2be9c | 3325 | INSTALL=$ac_install_sh |
252b5132 RH |
3326 | fi |
3327 | fi | |
81ecdfbb RW |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3329 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3330 | |
3331 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3332 | # It thinks the first close brace ends the variable substitution. | |
3333 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3334 | ||
13b2be9c | 3335 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3336 | |
3337 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3338 | ||
81ecdfbb RW |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3340 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3341 | # Just in case |
3342 | sleep 1 | |
13b2be9c | 3343 | echo timestamp > conftest.file |
81ecdfbb RW |
3344 | # Reject unsafe characters in $srcdir or the absolute working directory |
3345 | # name. Accept space and tab only in the latter. | |
3346 | am_lf=' | |
3347 | ' | |
3348 | case `pwd` in | |
3349 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3350 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3351 | esac | |
3352 | case $srcdir in | |
3353 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3354 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3355 | esac | |
3356 | ||
252b5132 RH |
3357 | # Do `set' in a subshell so we don't clobber the current shell's |
3358 | # arguments. Must try -L first in case configure is actually a | |
3359 | # symlink; some systems play weird games with the mod time of symlinks | |
3360 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3361 | # directory). | |
3362 | if ( | |
81ecdfbb | 3363 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3364 | if test "$*" = "X"; then |
3365 | # -L didn't work. | |
81ecdfbb | 3366 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3367 | fi |
13b2be9c DJ |
3368 | rm -f conftest.file |
3369 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3370 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3371 | |
3372 | # If neither matched, then we have a broken ls. This can happen | |
3373 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3374 | # broken ls alias from the environment. This has actually | |
3375 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3376 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3377 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3378 | fi |
3379 | ||
13b2be9c DJ |
3380 | test "$2" = conftest.file |
3381 | ) | |
3382 | then | |
3383 | # Ok. | |
3384 | : | |
3385 | else | |
81ecdfbb RW |
3386 | as_fn_error "newly created file is older than distributed files! |
3387 | Check your system clock" "$LINENO" 5 | |
13b2be9c | 3388 | fi |
81ecdfbb RW |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3390 | $as_echo "yes" >&6; } | |
13b2be9c | 3391 | test "$program_prefix" != NONE && |
81ecdfbb | 3392 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
13b2be9c DJ |
3393 | # Use a double $ so make ignores it. |
3394 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3395 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3396 | # Double any \ or $. | |
13b2be9c | 3397 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3398 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3399 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
13b2be9c | 3400 | |
13b2be9c DJ |
3401 | # expand $ac_aux_dir to an absolute path |
3402 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3403 | ||
81ecdfbb RW |
3404 | if test x"${MISSING+set}" != xset; then |
3405 | case $am_aux_dir in | |
3406 | *\ * | *\ *) | |
3407 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3408 | *) | |
3409 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3410 | esac | |
3411 | fi | |
13b2be9c DJ |
3412 | # Use eval to expand $SHELL |
3413 | if eval "$MISSING --run true"; then | |
3414 | am_missing_run="$MISSING --run " | |
3415 | else | |
3416 | am_missing_run= | |
81ecdfbb RW |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3418 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
ab509236 L |
3419 | fi |
3420 | ||
81ecdfbb RW |
3421 | if test x"${install_sh}" != xset; then |
3422 | case $am_aux_dir in | |
3423 | *\ * | *\ *) | |
3424 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3425 | *) | |
3426 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3427 | esac | |
3428 | fi | |
3429 | ||
3430 | # Installed binaries are usually stripped using `strip' when the user | |
3431 | # run `make install-strip'. However `strip' might not be the right | |
3432 | # tool to use in cross-compilation environments, therefore Automake | |
3433 | # will honor the `STRIP' environment variable to overrule this program. | |
3434 | if test "$cross_compiling" != no; then | |
3435 | if test -n "$ac_tool_prefix"; then | |
3436 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3437 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3439 | $as_echo_n "checking for $ac_word... " >&6; } | |
3440 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3441 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3442 | else |
81ecdfbb RW |
3443 | if test -n "$STRIP"; then |
3444 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13b2be9c DJ |
3445 | else |
3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3447 | for as_dir in $PATH | |
3448 | do | |
3449 | IFS=$as_save_IFS | |
3450 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3451 | for ac_exec_ext in '' $ac_executable_extensions; do |
3452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3453 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13b2be9c DJ |
3455 | break 2 |
3456 | fi | |
3457 | done | |
81ecdfbb RW |
3458 | done |
3459 | IFS=$as_save_IFS | |
13b2be9c DJ |
3460 | |
3461 | fi | |
3462 | fi | |
81ecdfbb RW |
3463 | STRIP=$ac_cv_prog_STRIP |
3464 | if test -n "$STRIP"; then | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3466 | $as_echo "$STRIP" >&6; } | |
13b2be9c | 3467 | else |
81ecdfbb RW |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3469 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3470 | fi |
3471 | ||
13b2be9c | 3472 | |
81ecdfbb RW |
3473 | fi |
3474 | if test -z "$ac_cv_prog_STRIP"; then | |
3475 | ac_ct_STRIP=$STRIP | |
3476 | # Extract the first word of "strip", so it can be a program name with args. | |
3477 | set dummy strip; ac_word=$2 | |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3479 | $as_echo_n "checking for $ac_word... " >&6; } | |
3480 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3481 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3482 | else |
81ecdfbb RW |
3483 | if test -n "$ac_ct_STRIP"; then |
3484 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13b2be9c | 3485 | else |
81ecdfbb RW |
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3487 | for as_dir in $PATH | |
3488 | do | |
3489 | IFS=$as_save_IFS | |
3490 | test -z "$as_dir" && as_dir=. | |
3491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3493 | ac_cv_prog_ac_ct_STRIP="strip" | |
3494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3495 | break 2 | |
3496 | fi | |
3497 | done | |
3498 | done | |
3499 | IFS=$as_save_IFS | |
3500 | ||
3501 | fi | |
3502 | fi | |
3503 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3504 | if test -n "$ac_ct_STRIP"; then | |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3506 | $as_echo "$ac_ct_STRIP" >&6; } | |
3507 | else | |
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3509 | $as_echo "no" >&6; } | |
3510 | fi | |
3511 | ||
3512 | if test "x$ac_ct_STRIP" = x; then | |
3513 | STRIP=":" | |
3514 | else | |
3515 | case $cross_compiling:$ac_tool_warned in | |
3516 | yes:) | |
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3518 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3519 | ac_tool_warned=yes ;; | |
3520 | esac | |
3521 | STRIP=$ac_ct_STRIP | |
3522 | fi | |
3523 | else | |
3524 | STRIP="$ac_cv_prog_STRIP" | |
3525 | fi | |
3526 | ||
3527 | fi | |
3528 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3529 | ||
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3531 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3532 | if test -z "$MKDIR_P"; then | |
3533 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3534 | $as_echo_n "(cached) " >&6 | |
3535 | else | |
3536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3537 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3538 | do | |
3539 | IFS=$as_save_IFS | |
3540 | test -z "$as_dir" && as_dir=. | |
3541 | for ac_prog in mkdir gmkdir; do | |
3542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3543 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3544 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3545 | 'mkdir (GNU coreutils) '* | \ | |
3546 | 'mkdir (coreutils) '* | \ | |
3547 | 'mkdir (fileutils) '4.1*) | |
3548 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3549 | break 3;; | |
3550 | esac | |
3551 | done | |
3552 | done | |
3553 | done | |
3554 | IFS=$as_save_IFS | |
3555 | ||
3556 | fi | |
3557 | ||
3558 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3559 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3560 | else | |
3561 | # As a last resort, use the slow shell script. Don't cache a | |
3562 | # value for MKDIR_P within a source directory, because that will | |
3563 | # break other packages using the cache if that directory is | |
3564 | # removed, or if the value is a relative name. | |
3565 | test -d ./--version && rmdir ./--version | |
3566 | MKDIR_P="$ac_install_sh -d" | |
3567 | fi | |
3568 | fi | |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3570 | $as_echo "$MKDIR_P" >&6; } | |
3571 | ||
3572 | mkdir_p="$MKDIR_P" | |
3573 | case $mkdir_p in | |
3574 | [\\/$]* | ?:[\\/]*) ;; | |
3575 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3576 | esac | |
3577 | ||
3578 | for ac_prog in gawk mawk nawk awk | |
3579 | do | |
3580 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3581 | set dummy $ac_prog; ac_word=$2 | |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3583 | $as_echo_n "checking for $ac_word... " >&6; } | |
3584 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3585 | $as_echo_n "(cached) " >&6 | |
3586 | else | |
3587 | if test -n "$AWK"; then | |
3588 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3589 | else | |
3590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3591 | for as_dir in $PATH | |
3592 | do | |
3593 | IFS=$as_save_IFS | |
3594 | test -z "$as_dir" && as_dir=. | |
3595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3597 | ac_cv_prog_AWK="$ac_prog" | |
3598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3599 | break 2 | |
3600 | fi | |
3601 | done | |
3602 | done | |
3603 | IFS=$as_save_IFS | |
3604 | ||
3605 | fi | |
3606 | fi | |
3607 | AWK=$ac_cv_prog_AWK | |
3608 | if test -n "$AWK"; then | |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3610 | $as_echo "$AWK" >&6; } | |
3611 | else | |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3613 | $as_echo "no" >&6; } | |
13b2be9c | 3614 | fi |
81ecdfbb RW |
3615 | |
3616 | ||
3617 | test -n "$AWK" && break | |
3618 | done | |
3619 | ||
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3621 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3622 | set x ${MAKE-make} | |
3623 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3624 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3625 | $as_echo_n "(cached) " >&6 | |
3626 | else | |
3627 | cat >conftest.make <<\_ACEOF | |
3628 | SHELL = /bin/sh | |
3629 | all: | |
3630 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3631 | _ACEOF | |
3632 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3633 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3634 | *@@@%%%=?*=@@@%%%*) | |
3635 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3636 | *) | |
3637 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3638 | esac | |
13b2be9c DJ |
3639 | rm -f conftest.make |
3640 | fi | |
81ecdfbb RW |
3641 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3643 | $as_echo "yes" >&6; } | |
13b2be9c DJ |
3644 | SET_MAKE= |
3645 | else | |
81ecdfbb RW |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3647 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3648 | SET_MAKE="MAKE=${MAKE-make}" |
3649 | fi | |
3650 | ||
3651 | rm -rf .tst 2>/dev/null | |
3652 | mkdir .tst 2>/dev/null | |
3653 | if test -d .tst; then | |
3654 | am__leading_dot=. | |
3655 | else | |
3656 | am__leading_dot=_ | |
3657 | fi | |
3658 | rmdir .tst 2>/dev/null | |
3659 | ||
3660 | DEPDIR="${am__leading_dot}deps" | |
3661 | ||
81ecdfbb | 3662 | ac_config_commands="$ac_config_commands depfiles" |
13b2be9c DJ |
3663 | |
3664 | ||
3665 | am_make=${MAKE-make} | |
3666 | cat > confinc << 'END' | |
3667 | am__doit: | |
81ecdfbb | 3668 | @echo this is the am__doit target |
13b2be9c DJ |
3669 | .PHONY: am__doit |
3670 | END | |
3671 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3673 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
13b2be9c DJ |
3674 | am__include="#" |
3675 | am__quote= | |
3676 | _am_result=none | |
3677 | # First try GNU make style include. | |
3678 | echo "include confinc" > confmf | |
81ecdfbb RW |
3679 | # Ignore all kinds of additional output from `make'. |
3680 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3681 | *the\ am__doit\ target*) | |
3682 | am__include=include | |
3683 | am__quote= | |
3684 | _am_result=GNU | |
3685 | ;; | |
3686 | esac | |
13b2be9c DJ |
3687 | # Now try BSD make style include. |
3688 | if test "$am__include" = "#"; then | |
3689 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3690 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3691 | *the\ am__doit\ target*) | |
3692 | am__include=.include | |
3693 | am__quote="\"" | |
3694 | _am_result=BSD | |
3695 | ;; | |
3696 | esac | |
13b2be9c DJ |
3697 | fi |
3698 | ||
3699 | ||
81ecdfbb RW |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3701 | $as_echo "$_am_result" >&6; } | |
13b2be9c DJ |
3702 | rm -f confinc confmf |
3703 | ||
81ecdfbb RW |
3704 | # Check whether --enable-dependency-tracking was given. |
3705 | if test "${enable_dependency_tracking+set}" = set; then : | |
3706 | enableval=$enable_dependency_tracking; | |
3707 | fi | |
13b2be9c | 3708 | |
13b2be9c DJ |
3709 | if test "x$enable_dependency_tracking" != xno; then |
3710 | am_depcomp="$ac_aux_dir/depcomp" | |
3711 | AMDEPBACKSLASH='\' | |
6eb7d830 | 3712 | am__nodep='_no' |
13b2be9c | 3713 | fi |
81ecdfbb | 3714 | if test "x$enable_dependency_tracking" != xno; then |
13b2be9c DJ |
3715 | AMDEP_TRUE= |
3716 | AMDEP_FALSE='#' | |
3717 | else | |
3718 | AMDEP_TRUE='#' | |
3719 | AMDEP_FALSE= | |
3720 | fi | |
3721 | ||
3722 | ||
81ecdfbb RW |
3723 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3724 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3725 | # is not polluted with repeated "-I." | |
3726 | am__isrc=' -I$(srcdir)' | |
3727 | # test to see if srcdir already configured | |
3728 | if test -f $srcdir/config.status; then | |
3729 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3730 | fi | |
13b2be9c DJ |
3731 | fi |
3732 | ||
3733 | # test whether we have cygpath | |
3734 | if test -z "$CYGPATH_W"; then | |
3735 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3736 | CYGPATH_W='cygpath -w' | |
3737 | else | |
3738 | CYGPATH_W=echo | |
3739 | fi | |
3740 | fi | |
3741 | ||
3742 | ||
3743 | # Define the identity of the package. | |
2e98a7bd | 3744 | PACKAGE='gas' |
0d702cfe | 3745 | VERSION='2.29.51' |
13b2be9c DJ |
3746 | |
3747 | ||
3748 | cat >>confdefs.h <<_ACEOF | |
3749 | #define PACKAGE "$PACKAGE" | |
3750 | _ACEOF | |
3751 | ||
3752 | ||
3753 | cat >>confdefs.h <<_ACEOF | |
3754 | #define VERSION "$VERSION" | |
3755 | _ACEOF | |
3756 | ||
3757 | # Some tools Automake needs. | |
3758 | ||
3759 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3760 | ||
3761 | ||
3762 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3763 | ||
3764 | ||
3765 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3766 | ||
3767 | ||
3768 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3769 | ||
3770 | ||
3771 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3772 | ||
13b2be9c DJ |
3773 | # We need awk for the "check" target. The system "awk" is bad on |
3774 | # some platforms. | |
6eb7d830 AM |
3775 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3776 | # in the wild :-( We should find a proper way to deprecate it ... | |
3777 | AMTAR='$${TAR-tar}' | |
8ea2b00f | 3778 | |
6eb7d830 | 3779 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
8ea2b00f AM |
3780 | |
3781 | ||
252b5132 | 3782 | |
d6d788bd | 3783 | |
13b2be9c | 3784 | depcc="$CC" am_compiler_list= |
d6d788bd | 3785 | |
81ecdfbb RW |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3787 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3788 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3789 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3790 | else |
13b2be9c DJ |
3791 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3792 | # We make a subdir and do the tests there. Otherwise we can end up | |
3793 | # making bogus files that we don't know about and never remove. For | |
3794 | # instance it was reported that on HP-UX the gcc test will end up | |
3795 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3796 | # in D'. | |
6eb7d830 | 3797 | rm -rf conftest.dir |
13b2be9c DJ |
3798 | mkdir conftest.dir |
3799 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3800 | # using a relative directory. | |
3801 | cp "$am_depcomp" conftest.dir | |
3802 | cd conftest.dir | |
3803 | # We will build objects and dependencies in a subdirectory because | |
3804 | # it helps to detect inapplicable dependency modes. For instance | |
3805 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3806 | # side effect of compilation, but ICC will put the dependencies in | |
3807 | # the current directory while Tru64 will put them in the object | |
3808 | # directory. | |
3809 | mkdir sub | |
252b5132 | 3810 | |
13b2be9c DJ |
3811 | am_cv_CC_dependencies_compiler_type=none |
3812 | if test "$am_compiler_list" = ""; then | |
3813 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3814 | fi | |
81ecdfbb RW |
3815 | am__universal=false |
3816 | case " $depcc " in #( | |
3817 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3818 | esac | |
3819 | ||
13b2be9c DJ |
3820 | for depmode in $am_compiler_list; do |
3821 | # Setup a source with many dependencies, because some compilers | |
3822 | # like to wrap large dependency lists on column 80 (with \), and | |
3823 | # we should not choose a depcomp mode which is confused by this. | |
3824 | # | |
3825 | # We need to recreate these files for each test, as the compiler may | |
3826 | # overwrite some of them when testing with obscure command lines. | |
3827 | # This happens at least with the AIX C compiler. | |
3828 | : > sub/conftest.c | |
3829 | for i in 1 2 3 4 5 6; do | |
3830 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3831 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3832 | # Solaris 8's {/usr,}/bin/sh. | |
3833 | touch sub/conftst$i.h | |
13b2be9c DJ |
3834 | done |
3835 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3836 | ||
81ecdfbb RW |
3837 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3838 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3839 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3840 | # versions had trouble with output in subdirs | |
3841 | am__obj=sub/conftest.${OBJEXT-o} | |
3842 | am__minus_obj="-o $am__obj" | |
13b2be9c | 3843 | case $depmode in |
81ecdfbb RW |
3844 | gcc) |
3845 | # This depmode causes a compiler race in universal mode. | |
3846 | test "$am__universal" = false || continue | |
3847 | ;; | |
13b2be9c DJ |
3848 | nosideeffect) |
3849 | # after this tag, mechanisms are not by side-effect, so they'll | |
3850 | # only be used when explicitly requested | |
3851 | if test "x$enable_dependency_tracking" = xyes; then | |
3852 | continue | |
3853 | else | |
3854 | break | |
3855 | fi | |
3856 | ;; | |
6eb7d830 | 3857 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
81ecdfbb RW |
3858 | # This compiler won't grok `-c -o', but also, the minuso test has |
3859 | # not run yet. These depmodes are late enough in the game, and | |
3860 | # so weak that their functioning should not be impacted. | |
3861 | am__obj=conftest.${OBJEXT-o} | |
3862 | am__minus_obj= | |
3863 | ;; | |
13b2be9c DJ |
3864 | none) break ;; |
3865 | esac | |
13b2be9c | 3866 | if depmode=$depmode \ |
81ecdfbb | 3867 | source=sub/conftest.c object=$am__obj \ |
13b2be9c | 3868 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3869 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
13b2be9c | 3870 | >/dev/null 2>conftest.err && |
81ecdfbb | 3871 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c | 3872 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3873 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c DJ |
3874 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3875 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3876 | # or remarks (even with -Werror). So we grep stderr for any message |
3877 | # that says an option was ignored or not supported. | |
3878 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3879 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3880 | # The diagnosis changed in icc 8.0: | |
3881 | # icc: Command line remark: option '-MP' not supported | |
3882 | if (grep 'ignoring option' conftest.err || | |
3883 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3884 | am_cv_CC_dependencies_compiler_type=$depmode |
3885 | break | |
3886 | fi | |
3887 | fi | |
3888 | done | |
252b5132 | 3889 | |
13b2be9c DJ |
3890 | cd .. |
3891 | rm -rf conftest.dir | |
252b5132 | 3892 | else |
13b2be9c | 3893 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3894 | fi |
3895 | ||
252b5132 | 3896 | fi |
81ecdfbb RW |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3898 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
13b2be9c | 3899 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
252b5132 | 3900 | |
81ecdfbb | 3901 | if |
13b2be9c DJ |
3902 | test "x$enable_dependency_tracking" != xno \ |
3903 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3904 | am__fastdepCC_TRUE= | |
3905 | am__fastdepCC_FALSE='#' | |
252b5132 | 3906 | else |
13b2be9c DJ |
3907 | am__fastdepCC_TRUE='#' |
3908 | am__fastdepCC_FALSE= | |
252b5132 RH |
3909 | fi |
3910 | ||
d6d788bd L |
3911 | |
3912 | ||
13b2be9c | 3913 | |
ce2cded5 L |
3914 | ac_ext=c |
3915 | ac_cpp='$CPP $CPPFLAGS' | |
3916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3919 | if test -n "$ac_tool_prefix"; then | |
3920 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3921 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
3924 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3925 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3926 | else |
ce2cded5 L |
3927 | if test -n "$CC"; then |
3928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3929 | else |
ce2cded5 L |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3931 | for as_dir in $PATH | |
3932 | do | |
3933 | IFS=$as_save_IFS | |
3934 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
3936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 3937 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3939 | break 2 |
3940 | fi | |
3941 | done | |
81ecdfbb RW |
3942 | done |
3943 | IFS=$as_save_IFS | |
d7040cdb | 3944 | |
ce2cded5 L |
3945 | fi |
3946 | fi | |
3947 | CC=$ac_cv_prog_CC | |
3948 | if test -n "$CC"; then | |
81ecdfbb RW |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3950 | $as_echo "$CC" >&6; } | |
bedf545c | 3951 | else |
81ecdfbb RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3953 | $as_echo "no" >&6; } | |
ce2cded5 | 3954 | fi |
d7040cdb | 3955 | |
81ecdfbb | 3956 | |
ce2cded5 L |
3957 | fi |
3958 | if test -z "$ac_cv_prog_CC"; then | |
3959 | ac_ct_CC=$CC | |
3960 | # Extract the first word of "gcc", so it can be a program name with args. | |
3961 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3963 | $as_echo_n "checking for $ac_word... " >&6; } | |
3964 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3965 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 3966 | else |
ce2cded5 L |
3967 | if test -n "$ac_ct_CC"; then |
3968 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3969 | else | |
d7040cdb SE |
3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3971 | for as_dir in $PATH | |
3972 | do | |
3973 | IFS=$as_save_IFS | |
3974 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3975 | for ac_exec_ext in '' $ac_executable_extensions; do |
3976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 3977 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 3979 | break 2 |
d7040cdb | 3980 | fi |
ce2cded5 | 3981 | done |
81ecdfbb RW |
3982 | done |
3983 | IFS=$as_save_IFS | |
d7040cdb | 3984 | |
ce2cded5 L |
3985 | fi |
3986 | fi | |
3987 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3988 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3990 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 3991 | else |
81ecdfbb RW |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3993 | $as_echo "no" >&6; } | |
d7040cdb SE |
3994 | fi |
3995 | ||
81ecdfbb RW |
3996 | if test "x$ac_ct_CC" = x; then |
3997 | CC="" | |
3998 | else | |
3999 | case $cross_compiling:$ac_tool_warned in | |
4000 | yes:) | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4003 | ac_tool_warned=yes ;; | |
4004 | esac | |
4005 | CC=$ac_ct_CC | |
4006 | fi | |
ce2cded5 L |
4007 | else |
4008 | CC="$ac_cv_prog_CC" | |
4009 | fi | |
d7040cdb | 4010 | |
ce2cded5 | 4011 | if test -z "$CC"; then |
81ecdfbb RW |
4012 | if test -n "$ac_tool_prefix"; then |
4013 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4014 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4016 | $as_echo_n "checking for $ac_word... " >&6; } | |
4017 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4018 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4019 | else |
ce2cded5 L |
4020 | if test -n "$CC"; then |
4021 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 4022 | else |
ce2cded5 L |
4023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4024 | for as_dir in $PATH | |
4025 | do | |
4026 | IFS=$as_save_IFS | |
4027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4028 | for ac_exec_ext in '' $ac_executable_extensions; do |
4029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4030 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4032 | break 2 |
4033 | fi | |
4034 | done | |
81ecdfbb RW |
4035 | done |
4036 | IFS=$as_save_IFS | |
d7040cdb | 4037 | |
252b5132 RH |
4038 | fi |
4039 | fi | |
ce2cded5 L |
4040 | CC=$ac_cv_prog_CC |
4041 | if test -n "$CC"; then | |
81ecdfbb RW |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4043 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4044 | else |
81ecdfbb RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4046 | $as_echo "no" >&6; } | |
d7040cdb | 4047 | fi |
f9c19112 | 4048 | |
ce2cded5 | 4049 | |
81ecdfbb | 4050 | fi |
ce2cded5 L |
4051 | fi |
4052 | if test -z "$CC"; then | |
4053 | # Extract the first word of "cc", so it can be a program name with args. | |
4054 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4056 | $as_echo_n "checking for $ac_word... " >&6; } | |
4057 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4058 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4059 | else |
4060 | if test -n "$CC"; then | |
4061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4062 | else | |
4063 | ac_prog_rejected=no | |
4064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4065 | for as_dir in $PATH | |
4066 | do | |
4067 | IFS=$as_save_IFS | |
4068 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4069 | for ac_exec_ext in '' $ac_executable_extensions; do |
4070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4071 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4072 | ac_prog_rejected=yes | |
4073 | continue | |
4074 | fi | |
4075 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4077 | break 2 |
4078 | fi | |
4079 | done | |
81ecdfbb RW |
4080 | done |
4081 | IFS=$as_save_IFS | |
ce2cded5 L |
4082 | |
4083 | if test $ac_prog_rejected = yes; then | |
4084 | # We found a bogon in the path, so make sure we never use it. | |
4085 | set dummy $ac_cv_prog_CC | |
4086 | shift | |
4087 | if test $# != 0; then | |
4088 | # We chose a different compiler from the bogus one. | |
4089 | # However, it has the same basename, so the bogon will be chosen | |
4090 | # first if we set CC to just the basename; use the full file name. | |
4091 | shift | |
4092 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4093 | fi | |
4094 | fi | |
4095 | fi | |
4096 | fi | |
4097 | CC=$ac_cv_prog_CC | |
4098 | if test -n "$CC"; then | |
81ecdfbb RW |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4100 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4101 | else |
81ecdfbb RW |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4103 | $as_echo "no" >&6; } | |
ce2cded5 L |
4104 | fi |
4105 | ||
81ecdfbb | 4106 | |
ce2cded5 L |
4107 | fi |
4108 | if test -z "$CC"; then | |
4109 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4110 | for ac_prog in cl.exe |
ce2cded5 L |
4111 | do |
4112 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4113 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4115 | $as_echo_n "checking for $ac_word... " >&6; } | |
4116 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4117 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4118 | else |
4119 | if test -n "$CC"; then | |
4120 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4121 | else | |
4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4123 | for as_dir in $PATH | |
4124 | do | |
4125 | IFS=$as_save_IFS | |
4126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4127 | for ac_exec_ext in '' $ac_executable_extensions; do |
4128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4129 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4131 | break 2 |
4132 | fi | |
4133 | done | |
81ecdfbb RW |
4134 | done |
4135 | IFS=$as_save_IFS | |
ce2cded5 L |
4136 | |
4137 | fi | |
4138 | fi | |
4139 | CC=$ac_cv_prog_CC | |
4140 | if test -n "$CC"; then | |
81ecdfbb RW |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4142 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4143 | else |
81ecdfbb RW |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4145 | $as_echo "no" >&6; } | |
ce2cded5 L |
4146 | fi |
4147 | ||
81ecdfbb | 4148 | |
ce2cded5 | 4149 | test -n "$CC" && break |
d7040cdb SE |
4150 | done |
4151 | fi | |
ce2cded5 L |
4152 | if test -z "$CC"; then |
4153 | ac_ct_CC=$CC | |
81ecdfbb | 4154 | for ac_prog in cl.exe |
d7040cdb SE |
4155 | do |
4156 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4157 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4159 | $as_echo_n "checking for $ac_word... " >&6; } | |
4160 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4161 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4162 | else |
ce2cded5 L |
4163 | if test -n "$ac_ct_CC"; then |
4164 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4165 | else |
4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4167 | for as_dir in $PATH | |
4168 | do | |
4169 | IFS=$as_save_IFS | |
4170 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4171 | for ac_exec_ext in '' $ac_executable_extensions; do |
4172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4173 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 4175 | break 2 |
ac48eca1 | 4176 | fi |
d7040cdb | 4177 | done |
81ecdfbb RW |
4178 | done |
4179 | IFS=$as_save_IFS | |
ac48eca1 | 4180 | |
d7040cdb SE |
4181 | fi |
4182 | fi | |
ce2cded5 L |
4183 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4184 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4186 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4187 | else |
81ecdfbb RW |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4189 | $as_echo "no" >&6; } | |
d7040cdb | 4190 | fi |
ac48eca1 | 4191 | |
81ecdfbb | 4192 | |
ce2cded5 | 4193 | test -n "$ac_ct_CC" && break |
d7040cdb | 4194 | done |
ac48eca1 | 4195 | |
81ecdfbb RW |
4196 | if test "x$ac_ct_CC" = x; then |
4197 | CC="" | |
4198 | else | |
4199 | case $cross_compiling:$ac_tool_warned in | |
4200 | yes:) | |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4202 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4203 | ac_tool_warned=yes ;; | |
4204 | esac | |
4205 | CC=$ac_ct_CC | |
4206 | fi | |
d7040cdb | 4207 | fi |
ac48eca1 | 4208 | |
d7040cdb | 4209 | fi |
ac48eca1 | 4210 | |
ac48eca1 | 4211 | |
81ecdfbb RW |
4212 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4214 | as_fn_error "no acceptable C compiler found in \$PATH | |
4215 | See \`config.log' for more details." "$LINENO" 5; } | |
6be7c12c | 4216 | |
ce2cded5 | 4217 | # Provide some information about the compiler. |
81ecdfbb RW |
4218 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4219 | set X $ac_compile | |
4220 | ac_compiler=$2 | |
4221 | for ac_option in --version -v -V -qversion; do | |
4222 | { { ac_try="$ac_compiler $ac_option >&5" | |
4223 | case "(($ac_try" in | |
4224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4225 | *) ac_try_echo=$ac_try;; | |
4226 | esac | |
4227 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4228 | $as_echo "$ac_try_echo"; } >&5 | |
4229 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4230 | ac_status=$? |
81ecdfbb RW |
4231 | if test -s conftest.err; then |
4232 | sed '10a\ | |
4233 | ... rest of stderr output deleted ... | |
4234 | 10q' conftest.err >conftest.er1 | |
4235 | cat conftest.er1 >&5 | |
4236 | rm -f conftest.er1 conftest.err | |
4237 | fi | |
4238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4239 | test $ac_status = 0; } | |
4240 | done | |
ac48eca1 | 4241 | |
81ecdfbb RW |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4243 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4244 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4245 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4246 | else |
81ecdfbb | 4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4248 | /* end confdefs.h. */ |
c8615825 | 4249 | |
ce2cded5 L |
4250 | int |
4251 | main () | |
4252 | { | |
4253 | #ifndef __GNUC__ | |
4254 | choke me | |
4255 | #endif | |
4256 | ||
4257 | ; | |
4258 | return 0; | |
4259 | } | |
4260 | _ACEOF | |
81ecdfbb | 4261 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4262 | ac_compiler_gnu=yes |
d7040cdb | 4263 | else |
81ecdfbb | 4264 | ac_compiler_gnu=no |
d7040cdb | 4265 | fi |
81ecdfbb | 4266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4267 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 4268 | |
ce2cded5 | 4269 | fi |
81ecdfbb RW |
4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4271 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4272 | if test $ac_compiler_gnu = yes; then | |
4273 | GCC=yes | |
4274 | else | |
4275 | GCC= | |
4276 | fi | |
ce2cded5 L |
4277 | ac_test_CFLAGS=${CFLAGS+set} |
4278 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4280 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4281 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4282 | $as_echo_n "(cached) " >&6 | |
4283 | else | |
4284 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4285 | ac_c_werror_flag=yes | |
4286 | ac_cv_prog_cc_g=no | |
4287 | CFLAGS="-g" | |
4288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4289 | /* end confdefs.h. */ |
d7040cdb | 4290 | |
ce2cded5 L |
4291 | int |
4292 | main () | |
4293 | { | |
d7040cdb | 4294 | |
ce2cded5 L |
4295 | ; |
4296 | return 0; | |
4297 | } | |
4298 | _ACEOF | |
81ecdfbb | 4299 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4300 | ac_cv_prog_cc_g=yes |
4301 | else | |
81ecdfbb RW |
4302 | CFLAGS="" |
4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4304 | /* end confdefs.h. */ | |
4305 | ||
4306 | int | |
4307 | main () | |
4308 | { | |
4309 | ||
4310 | ; | |
4311 | return 0; | |
4312 | } | |
4313 | _ACEOF | |
4314 | if ac_fn_c_try_compile "$LINENO"; then : | |
4315 | ||
4316 | else | |
4317 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4318 | CFLAGS="-g" | |
4319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4320 | /* end confdefs.h. */ | |
d70c5fc7 | 4321 | |
81ecdfbb RW |
4322 | int |
4323 | main () | |
4324 | { | |
4325 | ||
4326 | ; | |
4327 | return 0; | |
4328 | } | |
4329 | _ACEOF | |
4330 | if ac_fn_c_try_compile "$LINENO"; then : | |
4331 | ac_cv_prog_cc_g=yes | |
4332 | fi | |
4333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d70c5fc7 | 4334 | fi |
81ecdfbb | 4335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 4336 | fi |
81ecdfbb RW |
4337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4338 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4339 | fi | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4341 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
4342 | if test "$ac_test_CFLAGS" = set; then |
4343 | CFLAGS=$ac_save_CFLAGS | |
4344 | elif test $ac_cv_prog_cc_g = yes; then | |
4345 | if test "$GCC" = yes; then | |
4346 | CFLAGS="-g -O2" | |
4347 | else | |
4348 | CFLAGS="-g" | |
4349 | fi | |
ac48eca1 | 4350 | else |
ce2cded5 L |
4351 | if test "$GCC" = yes; then |
4352 | CFLAGS="-O2" | |
4353 | else | |
4354 | CFLAGS= | |
4355 | fi | |
ac48eca1 | 4356 | fi |
81ecdfbb RW |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4358 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4359 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4360 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4361 | else |
81ecdfbb | 4362 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4363 | ac_save_CC=$CC |
81ecdfbb | 4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4365 | /* end confdefs.h. */ |
4366 | #include <stdarg.h> | |
4367 | #include <stdio.h> | |
4368 | #include <sys/types.h> | |
4369 | #include <sys/stat.h> | |
4370 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4371 | struct buf { int x; }; | |
4372 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4373 | static char *e (p, i) | |
4374 | char **p; | |
4375 | int i; | |
4376 | { | |
4377 | return p[i]; | |
4378 | } | |
4379 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4380 | { | |
4381 | char *s; | |
4382 | va_list v; | |
4383 | va_start (v,p); | |
4384 | s = g (p, va_arg (v,int)); | |
4385 | va_end (v); | |
4386 | return s; | |
4387 | } | |
4388 | ||
4389 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4390 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4391 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4392 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4393 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4394 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4395 | that's true only with -std. */ |
ce2cded5 L |
4396 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4397 | ||
81ecdfbb RW |
4398 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4399 | inside strings and character constants. */ | |
4400 | #define FOO(x) 'x' | |
4401 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4402 | ||
ce2cded5 L |
4403 | int test (int i, double x); |
4404 | struct s1 {int (*f) (int a);}; | |
4405 | struct s2 {int (*f) (double a);}; | |
4406 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4407 | int argc; | |
4408 | char **argv; | |
4409 | int | |
4410 | main () | |
4411 | { | |
4412 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4413 | ; | |
4414 | return 0; | |
4415 | } | |
4416 | _ACEOF | |
81ecdfbb RW |
4417 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4418 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4419 | do |
4420 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4421 | if ac_fn_c_try_compile "$LINENO"; then : |
4422 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4423 | fi |
81ecdfbb RW |
4424 | rm -f core conftest.err conftest.$ac_objext |
4425 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4426 | done |
81ecdfbb | 4427 | rm -f conftest.$ac_ext |
ce2cded5 L |
4428 | CC=$ac_save_CC |
4429 | ||
4430 | fi | |
81ecdfbb RW |
4431 | # AC_CACHE_VAL |
4432 | case "x$ac_cv_prog_cc_c89" in | |
4433 | x) | |
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4435 | $as_echo "none needed" >&6; } ;; | |
4436 | xno) | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4438 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4439 | *) |
81ecdfbb RW |
4440 | CC="$CC $ac_cv_prog_cc_c89" |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4442 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 4443 | esac |
81ecdfbb | 4444 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4445 | |
ce2cded5 | 4446 | fi |
d7040cdb | 4447 | |
ce2cded5 L |
4448 | ac_ext=c |
4449 | ac_cpp='$CPP $CPPFLAGS' | |
4450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4453 | |
7357c5b6 AM |
4454 | ac_ext=c |
4455 | ac_cpp='$CPP $CPPFLAGS' | |
4456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4460 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4461 | # On Suns, sometimes $CPP names a directory. |
4462 | if test -n "$CPP" && test -d "$CPP"; then | |
4463 | CPP= | |
4464 | fi | |
4465 | if test -z "$CPP"; then | |
81ecdfbb RW |
4466 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4467 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
4468 | else |
4469 | # Double quotes because CPP needs to be expanded | |
4470 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4471 | do | |
4472 | ac_preproc_ok=false | |
4473 | for ac_c_preproc_warn_flag in '' yes | |
4474 | do | |
4475 | # Use a header file that comes with gcc, so configuring glibc | |
4476 | # with a fresh cross-compiler works. | |
4477 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4478 | # <limits.h> exists even on freestanding compilers. | |
4479 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4480 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4482 | /* end confdefs.h. */ |
4483 | #ifdef __STDC__ | |
4484 | # include <limits.h> | |
4485 | #else | |
4486 | # include <assert.h> | |
4487 | #endif | |
4488 | Syntax error | |
4489 | _ACEOF | |
81ecdfbb | 4490 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4491 | |
81ecdfbb | 4492 | else |
7357c5b6 AM |
4493 | # Broken: fails on valid input. |
4494 | continue | |
4495 | fi | |
4496 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4497 | |
81ecdfbb | 4498 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4499 | # can be detected and how. |
81ecdfbb | 4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4501 | /* end confdefs.h. */ |
4502 | #include <ac_nonexistent.h> | |
4503 | _ACEOF | |
81ecdfbb | 4504 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4505 | # Broken: success on invalid input. |
4506 | continue | |
4507 | else | |
7357c5b6 AM |
4508 | # Passes both tests. |
4509 | ac_preproc_ok=: | |
4510 | break | |
4511 | fi | |
4512 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4513 | |
7357c5b6 AM |
4514 | done |
4515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4516 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4517 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4518 | break |
4519 | fi | |
d7040cdb | 4520 | |
7357c5b6 AM |
4521 | done |
4522 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4523 | |
7357c5b6 AM |
4524 | fi |
4525 | CPP=$ac_cv_prog_CPP | |
4526 | else | |
4527 | ac_cv_prog_CPP=$CPP | |
4528 | fi | |
81ecdfbb RW |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4530 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4531 | ac_preproc_ok=false |
4532 | for ac_c_preproc_warn_flag in '' yes | |
4533 | do | |
4534 | # Use a header file that comes with gcc, so configuring glibc | |
4535 | # with a fresh cross-compiler works. | |
4536 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4537 | # <limits.h> exists even on freestanding compilers. | |
4538 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4539 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4541 | /* end confdefs.h. */ |
4542 | #ifdef __STDC__ | |
4543 | # include <limits.h> | |
4544 | #else | |
4545 | # include <assert.h> | |
4546 | #endif | |
4547 | Syntax error | |
4548 | _ACEOF | |
81ecdfbb | 4549 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4550 | |
81ecdfbb | 4551 | else |
7357c5b6 AM |
4552 | # Broken: fails on valid input. |
4553 | continue | |
4554 | fi | |
4555 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4556 | |
81ecdfbb | 4557 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4558 | # can be detected and how. |
81ecdfbb | 4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4560 | /* end confdefs.h. */ |
4561 | #include <ac_nonexistent.h> | |
4562 | _ACEOF | |
81ecdfbb | 4563 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4564 | # Broken: success on invalid input. |
4565 | continue | |
4566 | else | |
7357c5b6 AM |
4567 | # Passes both tests. |
4568 | ac_preproc_ok=: | |
4569 | break | |
4570 | fi | |
4571 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4572 | |
7357c5b6 AM |
4573 | done |
4574 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4575 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4576 | if $ac_preproc_ok; then : |
4577 | ||
7357c5b6 | 4578 | else |
81ecdfbb RW |
4579 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4581 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4582 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 4583 | fi |
ac48eca1 | 4584 | |
7357c5b6 AM |
4585 | ac_ext=c |
4586 | ac_cpp='$CPP $CPPFLAGS' | |
4587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4590 | |
ac48eca1 | 4591 | |
81ecdfbb RW |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4593 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4594 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4595 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4596 | else |
81ecdfbb RW |
4597 | if test -z "$GREP"; then |
4598 | ac_path_GREP_found=false | |
4599 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
4605 | for ac_prog in grep ggrep; do | |
4606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4607 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4608 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4609 | # Check for GNU ac_path_GREP and select it if it is found. | |
4610 | # Check for GNU $ac_path_GREP | |
4611 | case `"$ac_path_GREP" --version 2>&1` in | |
4612 | *GNU*) | |
4613 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4614 | *) | |
4615 | ac_count=0 | |
4616 | $as_echo_n 0123456789 >"conftest.in" | |
4617 | while : | |
4618 | do | |
4619 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4620 | mv "conftest.tmp" "conftest.in" | |
4621 | cp "conftest.in" "conftest.nl" | |
4622 | $as_echo 'GREP' >> "conftest.nl" | |
4623 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4624 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4625 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4626 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4627 | # Best one so far, save it but keep looking for a better one | |
4628 | ac_cv_path_GREP="$ac_path_GREP" | |
4629 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4630 | fi |
81ecdfbb RW |
4631 | # 10*(2^10) chars as input seems more than enough |
4632 | test $ac_count -gt 10 && break | |
4633 | done | |
4634 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4635 | esac | |
4636 | ||
4637 | $ac_path_GREP_found && break 3 | |
4638 | done | |
4639 | done | |
4640 | done | |
4641 | IFS=$as_save_IFS | |
4642 | if test -z "$ac_cv_path_GREP"; then | |
4643 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4644 | fi | |
4645 | else | |
4646 | ac_cv_path_GREP=$GREP | |
7357c5b6 | 4647 | fi |
81ecdfbb RW |
4648 | |
4649 | fi | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4651 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4652 | GREP="$ac_cv_path_GREP" | |
ac48eca1 | 4653 | |
d7040cdb | 4654 | |
81ecdfbb RW |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4656 | $as_echo_n "checking for egrep... " >&6; } | |
4657 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4658 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4659 | else |
81ecdfbb RW |
4660 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4661 | then ac_cv_path_EGREP="$GREP -E" | |
4662 | else | |
4663 | if test -z "$EGREP"; then | |
4664 | ac_path_EGREP_found=false | |
4665 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4667 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4668 | do | |
4669 | IFS=$as_save_IFS | |
4670 | test -z "$as_dir" && as_dir=. | |
4671 | for ac_prog in egrep; do | |
4672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4673 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4674 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4675 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4676 | # Check for GNU $ac_path_EGREP | |
4677 | case `"$ac_path_EGREP" --version 2>&1` in | |
4678 | *GNU*) | |
4679 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4680 | *) | |
4681 | ac_count=0 | |
4682 | $as_echo_n 0123456789 >"conftest.in" | |
4683 | while : | |
4684 | do | |
4685 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4686 | mv "conftest.tmp" "conftest.in" | |
4687 | cp "conftest.in" "conftest.nl" | |
4688 | $as_echo 'EGREP' >> "conftest.nl" | |
4689 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4690 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4691 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4692 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4693 | # Best one so far, save it but keep looking for a better one | |
4694 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4695 | ac_path_EGREP_max=$ac_count | |
4696 | fi | |
4697 | # 10*(2^10) chars as input seems more than enough | |
4698 | test $ac_count -gt 10 && break | |
4699 | done | |
4700 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4701 | esac | |
4702 | ||
4703 | $ac_path_EGREP_found && break 3 | |
4704 | done | |
4705 | done | |
4706 | done | |
4707 | IFS=$as_save_IFS | |
4708 | if test -z "$ac_cv_path_EGREP"; then | |
4709 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4710 | fi | |
4711 | else | |
4712 | ac_cv_path_EGREP=$EGREP | |
4713 | fi | |
4714 | ||
4715 | fi | |
4716 | fi | |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4718 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4719 | EGREP="$ac_cv_path_EGREP" | |
4720 | ||
4721 | ||
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4723 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4724 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4725 | $as_echo_n "(cached) " >&6 | |
4726 | else | |
4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4728 | /* end confdefs.h. */ |
4729 | #include <stdlib.h> | |
4730 | #include <stdarg.h> | |
4731 | #include <string.h> | |
4732 | #include <float.h> | |
d7040cdb | 4733 | |
7357c5b6 AM |
4734 | int |
4735 | main () | |
4736 | { | |
d7040cdb | 4737 | |
7357c5b6 AM |
4738 | ; |
4739 | return 0; | |
4740 | } | |
4741 | _ACEOF | |
81ecdfbb | 4742 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4743 | ac_cv_header_stdc=yes |
4744 | else | |
81ecdfbb | 4745 | ac_cv_header_stdc=no |
7357c5b6 | 4746 | fi |
81ecdfbb | 4747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4748 | |
7357c5b6 AM |
4749 | if test $ac_cv_header_stdc = yes; then |
4750 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4752 | /* end confdefs.h. */ |
4753 | #include <string.h> | |
d7040cdb | 4754 | |
7357c5b6 AM |
4755 | _ACEOF |
4756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4757 | $EGREP "memchr" >/dev/null 2>&1; then : |
4758 | ||
ce2cded5 | 4759 | else |
7357c5b6 AM |
4760 | ac_cv_header_stdc=no |
4761 | fi | |
4762 | rm -f conftest* | |
d7040cdb | 4763 | |
7357c5b6 | 4764 | fi |
d7040cdb | 4765 | |
7357c5b6 AM |
4766 | if test $ac_cv_header_stdc = yes; then |
4767 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4769 | /* end confdefs.h. */ |
4770 | #include <stdlib.h> | |
ac48eca1 | 4771 | |
7357c5b6 AM |
4772 | _ACEOF |
4773 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4774 | $EGREP "free" >/dev/null 2>&1; then : |
4775 | ||
7357c5b6 AM |
4776 | else |
4777 | ac_cv_header_stdc=no | |
4778 | fi | |
4779 | rm -f conftest* | |
d7040cdb | 4780 | |
7357c5b6 | 4781 | fi |
d7040cdb | 4782 | |
7357c5b6 AM |
4783 | if test $ac_cv_header_stdc = yes; then |
4784 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4785 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4786 | : |
4787 | else | |
81ecdfbb | 4788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4789 | /* end confdefs.h. */ |
4790 | #include <ctype.h> | |
81ecdfbb | 4791 | #include <stdlib.h> |
7357c5b6 AM |
4792 | #if ((' ' & 0x0FF) == 0x020) |
4793 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4794 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4795 | #else | |
4796 | # define ISLOWER(c) \ | |
4797 | (('a' <= (c) && (c) <= 'i') \ | |
4798 | || ('j' <= (c) && (c) <= 'r') \ | |
4799 | || ('s' <= (c) && (c) <= 'z')) | |
4800 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4801 | #endif | |
d7040cdb | 4802 | |
7357c5b6 AM |
4803 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4804 | int | |
4805 | main () | |
4806 | { | |
4807 | int i; | |
4808 | for (i = 0; i < 256; i++) | |
4809 | if (XOR (islower (i), ISLOWER (i)) | |
4810 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4811 | return 2; |
4812 | return 0; | |
7357c5b6 AM |
4813 | } |
4814 | _ACEOF | |
81ecdfbb | 4815 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4816 | |
81ecdfbb RW |
4817 | else |
4818 | ac_cv_header_stdc=no | |
7357c5b6 | 4819 | fi |
81ecdfbb RW |
4820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4821 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4822 | fi |
81ecdfbb | 4823 | |
7357c5b6 AM |
4824 | fi |
4825 | fi | |
81ecdfbb RW |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4827 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4828 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4829 | |
81ecdfbb | 4830 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4831 | |
7357c5b6 | 4832 | fi |
d7040cdb | 4833 | |
7357c5b6 | 4834 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4835 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4836 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4837 | do : |
4838 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4839 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4840 | " | |
4841 | eval as_val=\$$as_ac_Header | |
4842 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4843 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4844 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4845 | _ACEOF |
ce2cded5 | 4846 | |
7357c5b6 | 4847 | fi |
ce2cded5 | 4848 | |
7357c5b6 | 4849 | done |
ce2cded5 L |
4850 | |
4851 | ||
4852 | ||
81ecdfbb RW |
4853 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4854 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4855 | MINIX=yes |
4856 | else | |
4857 | MINIX= | |
4858 | fi | |
d7040cdb SE |
4859 | |
4860 | ||
7357c5b6 | 4861 | if test "$MINIX" = yes; then |
d7040cdb | 4862 | |
81ecdfbb | 4863 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4864 | |
4865 | ||
81ecdfbb | 4866 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4867 | |
4868 | ||
81ecdfbb | 4869 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4870 | |
7357c5b6 | 4871 | fi |
d7040cdb SE |
4872 | |
4873 | ||
81ecdfbb RW |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4875 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4876 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4877 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4878 | else |
81ecdfbb | 4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4880 | /* end confdefs.h. */ |
ac48eca1 | 4881 | |
7357c5b6 AM |
4882 | # define __EXTENSIONS__ 1 |
4883 | $ac_includes_default | |
4884 | int | |
4885 | main () | |
4886 | { | |
13b2be9c | 4887 | |
7357c5b6 AM |
4888 | ; |
4889 | return 0; | |
4890 | } | |
4891 | _ACEOF | |
81ecdfbb | 4892 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4893 | ac_cv_safe_to_define___extensions__=yes |
d6d788bd | 4894 | else |
81ecdfbb | 4895 | ac_cv_safe_to_define___extensions__=no |
d6d788bd | 4896 | fi |
81ecdfbb | 4897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4898 | fi |
81ecdfbb RW |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4900 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4901 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4902 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d6d788bd | 4903 | |
81ecdfbb | 4904 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d6d788bd | 4905 | |
81ecdfbb | 4906 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
252b5132 | 4907 | |
81ecdfbb | 4908 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
252b5132 | 4909 | |
81ecdfbb | 4910 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d6d788bd | 4911 | |
a74801ba | 4912 | |
d053aef8 | 4913 | |
81ecdfbb | 4914 | |
da2f07f1 | 4915 | |
718a6fd8 SE |
4916 | case `pwd` in |
4917 | *\ * | *\ *) | |
81ecdfbb RW |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4919 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 4920 | esac |
13b2be9c | 4921 | |
252b5132 | 4922 | |
7357c5b6 | 4923 | |
f2c621e4 AS |
4924 | macro_version='2.2.7a' |
4925 | macro_revision='1.3134' | |
7357c5b6 AM |
4926 | |
4927 | ||
4928 | ||
4929 | ||
4930 | ||
4931 | ||
7357c5b6 AM |
4932 | |
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
718a6fd8 | 4939 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 4940 | |
3725885a RW |
4941 | # Backslashify metacharacters that are still active within |
4942 | # double-quoted strings. | |
4943 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4944 | ||
4945 | # Same as above, but do not quote variable references. | |
4946 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4947 | ||
4948 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4949 | # double_quote_subst'ed string. | |
4950 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4951 | ||
4952 | # Sed substitution to delay expansion of an escaped single quote. | |
4953 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4954 | ||
4955 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4956 | no_glob_subst='s/\*/\\\*/g' | |
4957 | ||
4958 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4959 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4960 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4961 | ||
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4963 | $as_echo_n "checking how to print strings... " >&6; } | |
4964 | # Test print first, because it will be a builtin if present. | |
f2c621e4 | 4965 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
3725885a RW |
4966 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4967 | ECHO='print -r --' | |
4968 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4969 | ECHO='printf %s\n' | |
4970 | else | |
4971 | # Use this function as a fallback that always works. | |
4972 | func_fallback_echo () | |
4973 | { | |
4974 | eval 'cat <<_LTECHO_EOF | |
4975 | $1 | |
4976 | _LTECHO_EOF' | |
4977 | } | |
4978 | ECHO='func_fallback_echo' | |
4979 | fi | |
4980 | ||
4981 | # func_echo_all arg... | |
4982 | # Invoke $ECHO with all args, space-separated. | |
4983 | func_echo_all () | |
4984 | { | |
4985 | $ECHO "" | |
4986 | } | |
4987 | ||
4988 | case "$ECHO" in | |
4989 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4990 | $as_echo "printf" >&6; } ;; | |
4991 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4992 | $as_echo "print -r" >&6; } ;; | |
4993 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4994 | $as_echo "cat" >&6; } ;; | |
4995 | esac | |
4996 | ||
4997 | ||
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
81ecdfbb RW |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5011 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5012 | if test "${ac_cv_path_SED+set}" = set; then : | |
5013 | $as_echo_n "(cached) " >&6 | |
5014 | else | |
5015 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5016 | for ac_i in 1 2 3 4 5 6 7; do | |
5017 | ac_script="$ac_script$as_nl$ac_script" | |
5018 | done | |
5019 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5020 | { ac_script=; unset ac_script;} | |
5021 | if test -z "$SED"; then | |
5022 | ac_path_SED_found=false | |
5023 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5025 | for as_dir in $PATH |
5026 | do | |
5027 | IFS=$as_save_IFS | |
5028 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5029 | for ac_prog in sed gsed; do |
7357c5b6 | 5030 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5031 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5032 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5033 | # Check for GNU ac_path_SED and select it if it is found. | |
5034 | # Check for GNU $ac_path_SED | |
5035 | case `"$ac_path_SED" --version 2>&1` in | |
5036 | *GNU*) | |
5037 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5038 | *) | |
5039 | ac_count=0 | |
5040 | $as_echo_n 0123456789 >"conftest.in" | |
5041 | while : | |
5042 | do | |
5043 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5044 | mv "conftest.tmp" "conftest.in" | |
5045 | cp "conftest.in" "conftest.nl" | |
5046 | $as_echo '' >> "conftest.nl" | |
5047 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5048 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5049 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5050 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5051 | # Best one so far, save it but keep looking for a better one | |
5052 | ac_cv_path_SED="$ac_path_SED" | |
5053 | ac_path_SED_max=$ac_count | |
5054 | fi | |
5055 | # 10*(2^10) chars as input seems more than enough | |
5056 | test $ac_count -gt 10 && break | |
5057 | done | |
5058 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5059 | esac | |
5060 | ||
5061 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5062 | done |
5063 | done | |
81ecdfbb | 5064 | done |
7357c5b6 | 5065 | IFS=$as_save_IFS |
81ecdfbb RW |
5066 | if test -z "$ac_cv_path_SED"; then |
5067 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5068 | fi |
81ecdfbb RW |
5069 | else |
5070 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5071 | fi |
5072 | ||
81ecdfbb RW |
5073 | fi |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5075 | $as_echo "$ac_cv_path_SED" >&6; } | |
5076 | SED="$ac_cv_path_SED" | |
5077 | rm -f conftest.sed | |
7357c5b6 AM |
5078 | |
5079 | test -z "$SED" && SED=sed | |
5080 | Xsed="$SED -e 1s/^X//" | |
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | ||
5086 | ||
5087 | ||
5088 | ||
5089 | ||
5090 | ||
5091 | ||
81ecdfbb RW |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5093 | $as_echo_n "checking for fgrep... " >&6; } | |
5094 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5095 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5096 | else |
81ecdfbb RW |
5097 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5098 | then ac_cv_path_FGREP="$GREP -F" | |
5099 | else | |
5100 | if test -z "$FGREP"; then | |
5101 | ac_path_FGREP_found=false | |
5102 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5104 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5105 | do | |
5106 | IFS=$as_save_IFS | |
5107 | test -z "$as_dir" && as_dir=. | |
5108 | for ac_prog in fgrep; do | |
5109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5110 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5111 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5112 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5113 | # Check for GNU $ac_path_FGREP | |
5114 | case `"$ac_path_FGREP" --version 2>&1` in | |
5115 | *GNU*) | |
5116 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5117 | *) | |
5118 | ac_count=0 | |
5119 | $as_echo_n 0123456789 >"conftest.in" | |
5120 | while : | |
5121 | do | |
5122 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5123 | mv "conftest.tmp" "conftest.in" | |
5124 | cp "conftest.in" "conftest.nl" | |
5125 | $as_echo 'FGREP' >> "conftest.nl" | |
5126 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5127 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5128 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5129 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5130 | # Best one so far, save it but keep looking for a better one | |
5131 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5132 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5133 | fi |
81ecdfbb RW |
5134 | # 10*(2^10) chars as input seems more than enough |
5135 | test $ac_count -gt 10 && break | |
5136 | done | |
5137 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5138 | esac | |
5139 | ||
5140 | $ac_path_FGREP_found && break 3 | |
5141 | done | |
5142 | done | |
5143 | done | |
5144 | IFS=$as_save_IFS | |
5145 | if test -z "$ac_cv_path_FGREP"; then | |
5146 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5147 | fi | |
5148 | else | |
5149 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 5150 | fi |
81ecdfbb RW |
5151 | |
5152 | fi | |
5153 | fi | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5155 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5156 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5157 | |
5158 | ||
5159 | test -z "$GREP" && GREP=grep | |
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
5168 | ||
5169 | ||
5170 | ||
5171 | ||
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | ||
81ecdfbb RW |
5179 | # Check whether --with-gnu-ld was given. |
5180 | if test "${with_gnu_ld+set}" = set; then : | |
5181 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5182 | else |
5183 | with_gnu_ld=no | |
81ecdfbb RW |
5184 | fi |
5185 | ||
ce2cded5 L |
5186 | ac_prog=ld |
5187 | if test "$GCC" = yes; then | |
5188 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5190 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
ce2cded5 L |
5191 | case $host in |
5192 | *-*-mingw*) | |
5193 | # gcc leaves a trailing carriage return which upsets mingw | |
5194 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5195 | *) | |
5196 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5197 | esac | |
5198 | case $ac_prog in | |
5199 | # Accept absolute paths. | |
5200 | [\\/]* | ?:[\\/]*) | |
5201 | re_direlt='/[^/][^/]*/\.\./' | |
5202 | # Canonicalize the pathname of ld | |
5203 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5204 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5205 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5206 | done | |
5207 | test -z "$LD" && LD="$ac_prog" | |
5208 | ;; | |
5209 | "") | |
5210 | # If it fails, then pretend we aren't using GCC. | |
5211 | ac_prog=ld | |
5212 | ;; | |
5213 | *) | |
5214 | # If it is relative, then search for the first ld in PATH. | |
5215 | with_gnu_ld=unknown | |
5216 | ;; | |
5217 | esac | |
5218 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5220 | $as_echo_n "checking for GNU ld... " >&6; } | |
ce2cded5 | 5221 | else |
81ecdfbb RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5223 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5224 | fi |
81ecdfbb RW |
5225 | if test "${lt_cv_path_LD+set}" = set; then : |
5226 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5227 | else |
5228 | if test -z "$LD"; then | |
5229 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5230 | for ac_dir in $PATH; do | |
5231 | IFS="$lt_save_ifs" | |
5232 | test -z "$ac_dir" && ac_dir=. | |
5233 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5234 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5235 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5236 | # but apparently some variants of GNU ld only accept -v. | |
5237 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5238 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5239 | *GNU* | *'with BFD'*) | |
5240 | test "$with_gnu_ld" != no && break | |
5241 | ;; | |
5242 | *) | |
5243 | test "$with_gnu_ld" != yes && break | |
5244 | ;; | |
5245 | esac | |
5246 | fi | |
5247 | done | |
5248 | IFS="$lt_save_ifs" | |
5249 | else | |
5250 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5251 | fi | |
5252 | fi | |
5253 | ||
5254 | LD="$lt_cv_path_LD" | |
5255 | if test -n "$LD"; then | |
81ecdfbb RW |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5257 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5258 | else |
81ecdfbb RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5260 | $as_echo "no" >&6; } | |
ce2cded5 | 5261 | fi |
81ecdfbb RW |
5262 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5264 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5265 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5266 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5267 | else |
5268 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5269 | case `$LD -v 2>&1 </dev/null` in | |
5270 | *GNU* | *'with BFD'*) | |
5271 | lt_cv_prog_gnu_ld=yes | |
5272 | ;; | |
5273 | *) | |
5274 | lt_cv_prog_gnu_ld=no | |
5275 | ;; | |
5276 | esac | |
5277 | fi | |
81ecdfbb RW |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5279 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
ce2cded5 L |
5280 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | ||
5289 | ||
81ecdfbb RW |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5291 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5292 | if test "${lt_cv_path_NM+set}" = set; then : | |
5293 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5294 | else |
5295 | if test -n "$NM"; then | |
5296 | # Let the user override the test. | |
5297 | lt_cv_path_NM="$NM" | |
5298 | else | |
5299 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5300 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5301 | lt_nm_to_check="$lt_nm_to_check nm" | |
5302 | fi | |
5303 | for lt_tmp_nm in $lt_nm_to_check; do | |
5304 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5305 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5306 | IFS="$lt_save_ifs" | |
5307 | test -z "$ac_dir" && ac_dir=. | |
5308 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5309 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5310 | # Check to see if the nm accepts a BSD-compat flag. | |
5311 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5312 | # nm: unknown option "B" ignored | |
5313 | # Tru64's nm complains that /dev/null is an invalid object file | |
5314 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5315 | */dev/null* | *'Invalid file or object type'*) | |
5316 | lt_cv_path_NM="$tmp_nm -B" | |
5317 | break | |
5318 | ;; | |
5319 | *) | |
5320 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5321 | */dev/null*) | |
5322 | lt_cv_path_NM="$tmp_nm -p" | |
5323 | break | |
5324 | ;; | |
5325 | *) | |
5326 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5327 | continue # so that we can try to find one that supports BSD flags | |
5328 | ;; | |
5329 | esac | |
5330 | ;; | |
5331 | esac | |
5332 | fi | |
5333 | done | |
5334 | IFS="$lt_save_ifs" | |
5335 | done | |
5336 | : ${lt_cv_path_NM=no} | |
5337 | fi | |
5338 | fi | |
81ecdfbb RW |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5340 | $as_echo "$lt_cv_path_NM" >&6; } | |
ce2cded5 L |
5341 | if test "$lt_cv_path_NM" != "no"; then |
5342 | NM="$lt_cv_path_NM" | |
5343 | else | |
5344 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3725885a RW |
5345 | if test -n "$DUMPBIN"; then : |
5346 | # Let the user override the test. | |
5347 | else | |
5348 | if test -n "$ac_tool_prefix"; then | |
5349 | for ac_prog in dumpbin "link -dump" | |
ce2cded5 L |
5350 | do |
5351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5354 | $as_echo_n "checking for $ac_word... " >&6; } | |
5355 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5356 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5357 | else |
ce2cded5 L |
5358 | if test -n "$DUMPBIN"; then |
5359 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5360 | else |
5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5362 | for as_dir in $PATH | |
5363 | do | |
5364 | IFS=$as_save_IFS | |
5365 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5366 | for ac_exec_ext in '' $ac_executable_extensions; do |
5367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5368 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5370 | break 2 |
d70c5fc7 | 5371 | fi |
d7040cdb | 5372 | done |
81ecdfbb RW |
5373 | done |
5374 | IFS=$as_save_IFS | |
d70c5fc7 | 5375 | |
d7040cdb SE |
5376 | fi |
5377 | fi | |
ce2cded5 L |
5378 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5379 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5381 | $as_echo "$DUMPBIN" >&6; } | |
bedf545c | 5382 | else |
81ecdfbb RW |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5384 | $as_echo "no" >&6; } | |
d7040cdb | 5385 | fi |
13b2be9c | 5386 | |
81ecdfbb | 5387 | |
ce2cded5 L |
5388 | test -n "$DUMPBIN" && break |
5389 | done | |
5390 | fi | |
5391 | if test -z "$DUMPBIN"; then | |
5392 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5393 | for ac_prog in dumpbin "link -dump" |
ce2cded5 L |
5394 | do |
5395 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5396 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5398 | $as_echo_n "checking for $ac_word... " >&6; } | |
5399 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5400 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5401 | else |
ce2cded5 L |
5402 | if test -n "$ac_ct_DUMPBIN"; then |
5403 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5404 | else | |
5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5406 | for as_dir in $PATH | |
5407 | do | |
5408 | IFS=$as_save_IFS | |
5409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
5411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5412 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5414 | break 2 |
5415 | fi | |
5416 | done | |
81ecdfbb RW |
5417 | done |
5418 | IFS=$as_save_IFS | |
ce2cded5 L |
5419 | |
5420 | fi | |
5421 | fi | |
5422 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5423 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5425 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5426 | else |
81ecdfbb RW |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5428 | $as_echo "no" >&6; } | |
d7040cdb SE |
5429 | fi |
5430 | ||
81ecdfbb | 5431 | |
ce2cded5 L |
5432 | test -n "$ac_ct_DUMPBIN" && break |
5433 | done | |
13b2be9c | 5434 | |
81ecdfbb RW |
5435 | if test "x$ac_ct_DUMPBIN" = x; then |
5436 | DUMPBIN=":" | |
5437 | else | |
5438 | case $cross_compiling:$ac_tool_warned in | |
5439 | yes:) | |
5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5442 | ac_tool_warned=yes ;; | |
5443 | esac | |
5444 | DUMPBIN=$ac_ct_DUMPBIN | |
5445 | fi | |
ce2cded5 | 5446 | fi |
13b2be9c | 5447 | |
3725885a RW |
5448 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5449 | *COFF*) | |
5450 | DUMPBIN="$DUMPBIN -symbols" | |
5451 | ;; | |
5452 | *) | |
5453 | DUMPBIN=: | |
5454 | ;; | |
5455 | esac | |
5456 | fi | |
bedf545c | 5457 | |
ce2cded5 L |
5458 | if test "$DUMPBIN" != ":"; then |
5459 | NM="$DUMPBIN" | |
5460 | fi | |
5461 | fi | |
5462 | test -z "$NM" && NM=nm | |
6840198f | 5463 | |
13b2be9c | 5464 | |
ac48eca1 | 5465 | |
d7040cdb | 5466 | |
ce2cded5 L |
5467 | |
5468 | ||
81ecdfbb RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5470 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5471 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5472 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5473 | else |
5474 | lt_cv_nm_interface="BSD nm" | |
5475 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5476 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
ce2cded5 L |
5477 | (eval "$ac_compile" 2>conftest.err) |
5478 | cat conftest.err >&5 | |
3725885a | 5479 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5480 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5481 | cat conftest.err >&5 | |
3725885a | 5482 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
ce2cded5 L |
5483 | cat conftest.out >&5 |
5484 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5485 | lt_cv_nm_interface="MS dumpbin" | |
5486 | fi | |
5487 | rm -f conftest* | |
5488 | fi | |
81ecdfbb RW |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5490 | $as_echo "$lt_cv_nm_interface" >&6; } | |
ce2cded5 | 5491 | |
81ecdfbb RW |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5493 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ce2cded5 L |
5494 | LN_S=$as_ln_s |
5495 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5497 | $as_echo "yes" >&6; } | |
ce2cded5 | 5498 | else |
81ecdfbb RW |
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5500 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 L |
5501 | fi |
5502 | ||
5503 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5505 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5506 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5507 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5508 | else |
5509 | i=0 | |
5510 | teststring="ABCD" | |
5511 | ||
5512 | case $build_os in | |
5513 | msdosdjgpp*) | |
5514 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5515 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5516 | # during glob expansion). Even if it were fixed, the result of this | |
5517 | # check would be larger than it should be. | |
5518 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5519 | ;; | |
5520 | ||
5521 | gnu*) | |
5522 | # Under GNU Hurd, this test is not required because there is | |
5523 | # no limit to the length of command line arguments. | |
5524 | # Libtool will interpret -1 as no limit whatsoever | |
5525 | lt_cv_sys_max_cmd_len=-1; | |
5526 | ;; | |
5527 | ||
718a6fd8 | 5528 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5529 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5530 | # about 5 minutes as the teststring grows exponentially. | |
5531 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5532 | # you end up with a "frozen" computer, even though with patience | |
5533 | # the test eventually succeeds (with a max line length of 256k). | |
5534 | # Instead, let's just punt: use the minimum linelength reported by | |
5535 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5536 | lt_cv_sys_max_cmd_len=8192; | |
5537 | ;; | |
5538 | ||
3725885a RW |
5539 | mint*) |
5540 | # On MiNT this can take a long time and run out of memory. | |
5541 | lt_cv_sys_max_cmd_len=8192; | |
5542 | ;; | |
5543 | ||
ce2cded5 L |
5544 | amigaos*) |
5545 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5546 | # So we just punt and use a minimum line length of 8192. | |
5547 | lt_cv_sys_max_cmd_len=8192; | |
5548 | ;; | |
5549 | ||
5550 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5551 | # This has been around since 386BSD, at least. Likely further. | |
5552 | if test -x /sbin/sysctl; then | |
5553 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5554 | elif test -x /usr/sbin/sysctl; then | |
5555 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5556 | else | |
5557 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5558 | fi | |
5559 | # And add a safety zone | |
5560 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5561 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5562 | ;; | |
5563 | ||
5564 | interix*) | |
5565 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5566 | lt_cv_sys_max_cmd_len=196608 | |
5567 | ;; | |
5568 | ||
5569 | osf*) | |
5570 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5571 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5572 | # nice to cause kernel panics so lets avoid the loop below. | |
5573 | # First set a reasonable default. | |
5574 | lt_cv_sys_max_cmd_len=16384 | |
5575 | # | |
5576 | if test -x /sbin/sysconfig; then | |
5577 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5578 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5579 | esac | |
5580 | fi | |
5581 | ;; | |
5582 | sco3.2v5*) | |
5583 | lt_cv_sys_max_cmd_len=102400 | |
5584 | ;; | |
5585 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5586 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5587 | if test -n "$kargmax"; then | |
5588 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5589 | else | |
5590 | lt_cv_sys_max_cmd_len=32768 | |
5591 | fi | |
d7040cdb SE |
5592 | ;; |
5593 | *) | |
718a6fd8 SE |
5594 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5595 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5596 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5597 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5598 | else | |
5599 | # Make teststring a little bigger before we do anything with it. | |
5600 | # a 1K string should be a reasonable start. | |
5601 | for i in 1 2 3 4 5 6 7 8 ; do | |
5602 | teststring=$teststring$teststring | |
5603 | done | |
5604 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5605 | # If test is not a shell built-in, we'll probably end up computing a | |
5606 | # maximum length that is only half of the actual maximum length, but | |
5607 | # we can't tell. | |
3725885a RW |
5608 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5609 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
ce2cded5 L |
5610 | test $i != 17 # 1/2 MB should be enough |
5611 | do | |
5612 | i=`expr $i + 1` | |
5613 | teststring=$teststring$teststring | |
5614 | done | |
5615 | # Only check the string length outside the loop. | |
5616 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5617 | teststring= | |
5618 | # Add a significant safety factor because C++ compilers can tack on | |
5619 | # massive amounts of additional arguments before passing them to the | |
5620 | # linker. It appears as though 1/2 is a usable value. | |
5621 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5622 | fi | |
d7040cdb SE |
5623 | ;; |
5624 | esac | |
252b5132 | 5625 | |
ce2cded5 | 5626 | fi |
d6d788bd | 5627 | |
ce2cded5 | 5628 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5630 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
ce2cded5 | 5631 | else |
81ecdfbb RW |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5633 | $as_echo "none" >&6; } | |
ce2cded5 L |
5634 | fi |
5635 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5636 | |
d6d788bd | 5637 | |
13b2be9c | 5638 | |
13b2be9c | 5639 | |
bedf545c | 5640 | |
252b5132 | 5641 | |
ce2cded5 L |
5642 | : ${CP="cp -f"} |
5643 | : ${MV="mv -f"} | |
5644 | : ${RM="rm -f"} | |
d6d788bd | 5645 | |
81ecdfbb RW |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5647 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
ce2cded5 L |
5648 | # Try some XSI features |
5649 | xsi_shell=no | |
5650 | ( _lt_dummy="a/b/c" | |
f2c621e4 AS |
5651 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
5652 | = c,a/b,, \ | |
718a6fd8 SE |
5653 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5654 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 | 5655 | && xsi_shell=yes |
81ecdfbb RW |
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5657 | $as_echo "$xsi_shell" >&6; } | |
bedf545c | 5658 | |
bedf545c | 5659 | |
81ecdfbb RW |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5661 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
ce2cded5 L |
5662 | lt_shell_append=no |
5663 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5664 | >/dev/null 2>&1 \ | |
5665 | && lt_shell_append=yes | |
81ecdfbb RW |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5667 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5668 | |
d6d788bd | 5669 | |
ce2cded5 L |
5670 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5671 | lt_unset=unset | |
5672 | else | |
5673 | lt_unset=false | |
5674 | fi | |
13b2be9c DJ |
5675 | |
5676 | ||
5677 | ||
5678 | ||
d6d788bd | 5679 | |
ce2cded5 L |
5680 | # test EBCDIC or ASCII |
5681 | case `echo X|tr X '\101'` in | |
5682 | A) # ASCII based system | |
5683 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5684 | lt_SP2NL='tr \040 \012' | |
5685 | lt_NL2SP='tr \015\012 \040\040' | |
5686 | ;; | |
5687 | *) # EBCDIC based system | |
5688 | lt_SP2NL='tr \100 \n' | |
5689 | lt_NL2SP='tr \r\n \100\100' | |
5690 | ;; | |
5691 | esac | |
c43a438d | 5692 | |
c43a438d | 5693 | |
c43a438d | 5694 | |
252b5132 | 5695 | |
ad22bfe8 | 5696 | |
1ad12f97 | 5697 | |
1ad12f97 | 5698 | |
9e9b66a9 | 5699 | |
1ad12f97 | 5700 | |
81ecdfbb RW |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5702 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5703 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5704 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5705 | else |
5706 | lt_cv_ld_reload_flag='-r' | |
5707 | fi | |
81ecdfbb RW |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5709 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
ce2cded5 L |
5710 | reload_flag=$lt_cv_ld_reload_flag |
5711 | case $reload_flag in | |
5712 | "" | " "*) ;; | |
5713 | *) reload_flag=" $reload_flag" ;; | |
5714 | esac | |
5715 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5716 | case $host_os in | |
5717 | darwin*) | |
5718 | if test "$GCC" = yes; then | |
5719 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5720 | else | |
5721 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5722 | fi | |
5723 | ;; | |
5724 | esac | |
a541e3ce | 5725 | |
9e9b66a9 | 5726 | |
a2d91340 | 5727 | |
d6d788bd | 5728 | |
9e9b66a9 AM |
5729 | |
5730 | ||
5731 | ||
d6d788bd | 5732 | |
252b5132 | 5733 | |
718a6fd8 SE |
5734 | if test -n "$ac_tool_prefix"; then |
5735 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5736 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5738 | $as_echo_n "checking for $ac_word... " >&6; } | |
5739 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5740 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
5741 | else |
5742 | if test -n "$OBJDUMP"; then | |
5743 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5744 | else | |
5745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5746 | for as_dir in $PATH | |
5747 | do | |
5748 | IFS=$as_save_IFS | |
5749 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5750 | for ac_exec_ext in '' $ac_executable_extensions; do |
5751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 5752 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5754 | break 2 |
5755 | fi | |
5756 | done | |
81ecdfbb RW |
5757 | done |
5758 | IFS=$as_save_IFS | |
718a6fd8 SE |
5759 | |
5760 | fi | |
5761 | fi | |
5762 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5763 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5765 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5766 | else |
81ecdfbb RW |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5768 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5769 | fi |
5770 | ||
81ecdfbb | 5771 | |
718a6fd8 SE |
5772 | fi |
5773 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5774 | ac_ct_OBJDUMP=$OBJDUMP | |
5775 | # Extract the first word of "objdump", so it can be a program name with args. | |
5776 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5778 | $as_echo_n "checking for $ac_word... " >&6; } | |
5779 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5780 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
5781 | else |
5782 | if test -n "$ac_ct_OBJDUMP"; then | |
5783 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5784 | else | |
5785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5786 | for as_dir in $PATH | |
5787 | do | |
5788 | IFS=$as_save_IFS | |
5789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5790 | for ac_exec_ext in '' $ac_executable_extensions; do |
5791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 5792 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5794 | break 2 |
5795 | fi | |
5796 | done | |
81ecdfbb RW |
5797 | done |
5798 | IFS=$as_save_IFS | |
718a6fd8 | 5799 | |
718a6fd8 SE |
5800 | fi |
5801 | fi | |
5802 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5803 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5805 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 5806 | else |
81ecdfbb RW |
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5808 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5809 | fi |
5810 | ||
81ecdfbb RW |
5811 | if test "x$ac_ct_OBJDUMP" = x; then |
5812 | OBJDUMP="false" | |
5813 | else | |
5814 | case $cross_compiling:$ac_tool_warned in | |
5815 | yes:) | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5818 | ac_tool_warned=yes ;; | |
5819 | esac | |
5820 | OBJDUMP=$ac_ct_OBJDUMP | |
5821 | fi | |
718a6fd8 SE |
5822 | else |
5823 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5824 | fi | |
5825 | ||
5826 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
13b2be9c | 5835 | |
81ecdfbb RW |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5837 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5838 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5839 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5840 | else |
ce2cded5 L |
5841 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5842 | lt_cv_file_magic_test_file= | |
5843 | lt_cv_deplibs_check_method='unknown' | |
5844 | # Need to set the preceding variable on all platforms that support | |
5845 | # interlibrary dependencies. | |
5846 | # 'none' -- dependencies not supported. | |
5847 | # `unknown' -- same as none, but documents that we really don't know. | |
5848 | # 'pass_all' -- all dependencies passed with no checks. | |
5849 | # 'test_compile' -- check by making test program. | |
5850 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5851 | # which responds to the $file_magic_cmd with a given extended regex. | |
5852 | # If you have `file' or equivalent on your system and you're not sure | |
5853 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 5854 | |
ce2cded5 | 5855 | case $host_os in |
50e7d84b | 5856 | aix[4-9]*) |
ce2cded5 L |
5857 | lt_cv_deplibs_check_method=pass_all |
5858 | ;; | |
d7040cdb | 5859 | |
ce2cded5 L |
5860 | beos*) |
5861 | lt_cv_deplibs_check_method=pass_all | |
5862 | ;; | |
d7040cdb | 5863 | |
ce2cded5 L |
5864 | bsdi[45]*) |
5865 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5866 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5867 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5868 | ;; | |
d7040cdb | 5869 | |
ce2cded5 L |
5870 | cygwin*) |
5871 | # func_win32_libid is a shell function defined in ltmain.sh | |
5872 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5873 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5874 | ;; |
ce2cded5 L |
5875 | |
5876 | mingw* | pw32*) | |
5877 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5878 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5879 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5880 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5881 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
ce2cded5 L |
5882 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5883 | lt_cv_file_magic_cmd='func_win32_libid' | |
5884 | else | |
f2c621e4 | 5885 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
ce2cded5 L |
5886 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5887 | fi | |
d7040cdb | 5888 | ;; |
ce2cded5 | 5889 | |
3725885a | 5890 | cegcc*) |
718a6fd8 SE |
5891 | # use the weaker test based on 'objdump'. See mingw*. |
5892 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5893 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5894 | ;; | |
5895 | ||
ce2cded5 L |
5896 | darwin* | rhapsody*) |
5897 | lt_cv_deplibs_check_method=pass_all | |
5898 | ;; | |
5899 | ||
5900 | freebsd* | dragonfly*) | |
5901 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5902 | case $host_cpu in | |
5903 | i*86 ) | |
5904 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5905 | # Let's accept both of them until this is cleared up. | |
5906 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5907 | lt_cv_file_magic_cmd=/usr/bin/file | |
5908 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5909 | ;; | |
5910 | esac | |
5911 | else | |
5912 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5913 | fi |
5914 | ;; | |
ce2cded5 L |
5915 | |
5916 | gnu*) | |
5917 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5918 | ;; |
ce2cded5 | 5919 | |
3725885a RW |
5920 | haiku*) |
5921 | lt_cv_deplibs_check_method=pass_all | |
5922 | ;; | |
5923 | ||
ce2cded5 L |
5924 | hpux10.20* | hpux11*) |
5925 | lt_cv_file_magic_cmd=/usr/bin/file | |
5926 | case $host_cpu in | |
5927 | ia64*) | |
5928 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5929 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5930 | ;; | |
5931 | hppa*64*) | |
3725885a | 5932 | 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]' |
ce2cded5 L |
5933 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5934 | ;; | |
5935 | *) | |
3725885a | 5936 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
ce2cded5 L |
5937 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5938 | ;; | |
5939 | esac | |
d7040cdb | 5940 | ;; |
ce2cded5 L |
5941 | |
5942 | interix[3-9]*) | |
5943 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5944 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 5945 | ;; |
ce2cded5 L |
5946 | |
5947 | irix5* | irix6* | nonstopux*) | |
5948 | case $LD in | |
5949 | *-32|*"-32 ") libmagic=32-bit;; | |
5950 | *-n32|*"-n32 ") libmagic=N32;; | |
5951 | *-64|*"-64 ") libmagic=64-bit;; | |
5952 | *) libmagic=never-match;; | |
5953 | esac | |
5954 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5955 | ;; |
ce2cded5 L |
5956 | |
5957 | # This must be Linux ELF. | |
58e24671 | 5958 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 5959 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 5960 | ;; |
ce2cded5 L |
5961 | |
5962 | netbsd*) | |
5963 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5964 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5965 | else | |
5966 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5967 | fi | |
d7040cdb | 5968 | ;; |
ce2cded5 L |
5969 | |
5970 | newos6*) | |
5971 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5972 | lt_cv_file_magic_cmd=/usr/bin/file | |
5973 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 5974 | ;; |
76a27922 | 5975 | |
ce2cded5 L |
5976 | *nto* | *qnx*) |
5977 | lt_cv_deplibs_check_method=pass_all | |
5978 | ;; | |
d6d788bd | 5979 | |
ce2cded5 L |
5980 | openbsd*) |
5981 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5982 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5983 | else | |
5984 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5985 | fi | |
5986 | ;; | |
44f2f9d2 | 5987 | |
ce2cded5 L |
5988 | osf3* | osf4* | osf5*) |
5989 | lt_cv_deplibs_check_method=pass_all | |
5990 | ;; | |
44f2f9d2 | 5991 | |
ce2cded5 L |
5992 | rdos*) |
5993 | lt_cv_deplibs_check_method=pass_all | |
5994 | ;; | |
5995 | ||
5996 | solaris*) | |
5997 | lt_cv_deplibs_check_method=pass_all | |
5998 | ;; | |
5999 | ||
6000 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6001 | lt_cv_deplibs_check_method=pass_all | |
6002 | ;; | |
6003 | ||
6004 | sysv4 | sysv4.3*) | |
6005 | case $host_vendor in | |
6006 | motorola) | |
6007 | 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]' | |
6008 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6009 | ;; | |
6010 | ncr) | |
6011 | lt_cv_deplibs_check_method=pass_all | |
6012 | ;; | |
6013 | sequent) | |
6014 | lt_cv_file_magic_cmd='/bin/file' | |
6015 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6016 | ;; | |
6017 | sni) | |
6018 | lt_cv_file_magic_cmd='/bin/file' | |
6019 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6020 | lt_cv_file_magic_test_file=/lib/libc.so | |
6021 | ;; | |
6022 | siemens) | |
6023 | lt_cv_deplibs_check_method=pass_all | |
6024 | ;; | |
6025 | pc) | |
6026 | lt_cv_deplibs_check_method=pass_all | |
6027 | ;; | |
6028 | esac | |
6029 | ;; | |
6030 | ||
6031 | tpf*) | |
6032 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6033 | ;; |
6034 | esac | |
6035 | ||
ce2cded5 | 6036 | fi |
81ecdfbb RW |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6038 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
ce2cded5 L |
6039 | file_magic_cmd=$lt_cv_file_magic_cmd |
6040 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6041 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6042 | |
d7040cdb | 6043 | |
d7040cdb | 6044 | |
d7040cdb | 6045 | |
d7040cdb | 6046 | |
44f2f9d2 | 6047 | |
d7040cdb | 6048 | |
d7040cdb | 6049 | |
d7040cdb | 6050 | |
d7040cdb | 6051 | |
44f2f9d2 | 6052 | |
d7040cdb | 6053 | |
ce2cded5 | 6054 | if test -n "$ac_tool_prefix"; then |
f2c621e4 AS |
6055 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6056 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6058 | $as_echo_n "checking for $ac_word... " >&6; } | |
6059 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6060 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6061 | else |
6062 | if test -n "$AR"; then | |
6063 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6064 | else | |
6065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6066 | for as_dir in $PATH | |
6067 | do | |
6068 | IFS=$as_save_IFS | |
6069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6070 | for ac_exec_ext in '' $ac_executable_extensions; do |
6071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f2c621e4 | 6072 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6074 | break 2 |
d7040cdb SE |
6075 | fi |
6076 | done | |
81ecdfbb RW |
6077 | done |
6078 | IFS=$as_save_IFS | |
44f2f9d2 | 6079 | |
ce2cded5 L |
6080 | fi |
6081 | fi | |
6082 | AR=$ac_cv_prog_AR | |
6083 | if test -n "$AR"; then | |
81ecdfbb RW |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6085 | $as_echo "$AR" >&6; } | |
ce2cded5 | 6086 | else |
81ecdfbb RW |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6088 | $as_echo "no" >&6; } | |
44f2f9d2 | 6089 | fi |
d7040cdb | 6090 | |
81ecdfbb | 6091 | |
d7040cdb | 6092 | fi |
f2c621e4 | 6093 | if test -z "$ac_cv_prog_AR"; then |
ce2cded5 | 6094 | ac_ct_AR=$AR |
f2c621e4 AS |
6095 | # Extract the first word of "ar", so it can be a program name with args. |
6096 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6098 | $as_echo_n "checking for $ac_word... " >&6; } | |
6099 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6100 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6101 | else |
ce2cded5 L |
6102 | if test -n "$ac_ct_AR"; then |
6103 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6104 | else | |
6105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6106 | for as_dir in $PATH | |
6107 | do | |
6108 | IFS=$as_save_IFS | |
6109 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6110 | for ac_exec_ext in '' $ac_executable_extensions; do |
6111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f2c621e4 | 6112 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6114 | break 2 |
6115 | fi | |
6116 | done | |
81ecdfbb RW |
6117 | done |
6118 | IFS=$as_save_IFS | |
ce2cded5 | 6119 | |
ce2cded5 L |
6120 | fi |
6121 | fi | |
6122 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6123 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6125 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 6126 | else |
81ecdfbb RW |
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6128 | $as_echo "no" >&6; } | |
d7040cdb | 6129 | fi |
44f2f9d2 | 6130 | |
81ecdfbb RW |
6131 | if test "x$ac_ct_AR" = x; then |
6132 | AR="false" | |
6133 | else | |
6134 | case $cross_compiling:$ac_tool_warned in | |
6135 | yes:) | |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6137 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6138 | ac_tool_warned=yes ;; | |
6139 | esac | |
6140 | AR=$ac_ct_AR | |
6141 | fi | |
df7b86aa | 6142 | else |
f2c621e4 AS |
6143 | AR="$ac_cv_prog_AR" |
6144 | fi | |
df7b86aa | 6145 | |
f2c621e4 AS |
6146 | test -z "$AR" && AR=ar |
6147 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
df7b86aa | 6148 | |
df7b86aa | 6149 | |
df7b86aa | 6150 | |
df7b86aa | 6151 | |
df7b86aa NC |
6152 | |
6153 | ||
6154 | ||
6155 | ||
6156 | ||
6157 | ||
d7040cdb | 6158 | |
ce2cded5 L |
6159 | if test -n "$ac_tool_prefix"; then |
6160 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6161 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6163 | $as_echo_n "checking for $ac_word... " >&6; } | |
6164 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6165 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6166 | else |
6167 | if test -n "$STRIP"; then | |
6168 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6169 | else | |
6170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6171 | for as_dir in $PATH | |
6172 | do | |
6173 | IFS=$as_save_IFS | |
6174 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6175 | for ac_exec_ext in '' $ac_executable_extensions; do |
6176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6177 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6179 | break 2 |
6180 | fi | |
6181 | done | |
81ecdfbb RW |
6182 | done |
6183 | IFS=$as_save_IFS | |
d7040cdb | 6184 | |
ce2cded5 L |
6185 | fi |
6186 | fi | |
6187 | STRIP=$ac_cv_prog_STRIP | |
6188 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6190 | $as_echo "$STRIP" >&6; } | |
ce2cded5 | 6191 | else |
81ecdfbb RW |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6193 | $as_echo "no" >&6; } | |
ce2cded5 | 6194 | fi |
d7040cdb | 6195 | |
81ecdfbb | 6196 | |
ce2cded5 L |
6197 | fi |
6198 | if test -z "$ac_cv_prog_STRIP"; then | |
6199 | ac_ct_STRIP=$STRIP | |
6200 | # Extract the first word of "strip", so it can be a program name with args. | |
6201 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6203 | $as_echo_n "checking for $ac_word... " >&6; } | |
6204 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6205 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6206 | else |
6207 | if test -n "$ac_ct_STRIP"; then | |
6208 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6209 | else | |
6210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6211 | for as_dir in $PATH | |
6212 | do | |
6213 | IFS=$as_save_IFS | |
6214 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6215 | for ac_exec_ext in '' $ac_executable_extensions; do |
6216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6217 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6219 | break 2 |
6220 | fi | |
6221 | done | |
81ecdfbb RW |
6222 | done |
6223 | IFS=$as_save_IFS | |
d7040cdb | 6224 | |
ce2cded5 L |
6225 | fi |
6226 | fi | |
6227 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6228 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6230 | $as_echo "$ac_ct_STRIP" >&6; } | |
ce2cded5 | 6231 | else |
81ecdfbb RW |
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6233 | $as_echo "no" >&6; } | |
ce2cded5 | 6234 | fi |
d7040cdb | 6235 | |
81ecdfbb RW |
6236 | if test "x$ac_ct_STRIP" = x; then |
6237 | STRIP=":" | |
6238 | else | |
6239 | case $cross_compiling:$ac_tool_warned in | |
6240 | yes:) | |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6243 | ac_tool_warned=yes ;; | |
6244 | esac | |
6245 | STRIP=$ac_ct_STRIP | |
6246 | fi | |
ce2cded5 L |
6247 | else |
6248 | STRIP="$ac_cv_prog_STRIP" | |
6249 | fi | |
d7040cdb | 6250 | |
ce2cded5 | 6251 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6252 | |
d7040cdb | 6253 | |
d7040cdb | 6254 | |
d7040cdb | 6255 | |
d7040cdb | 6256 | |
d7040cdb | 6257 | |
ce2cded5 L |
6258 | if test -n "$ac_tool_prefix"; then |
6259 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6260 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6262 | $as_echo_n "checking for $ac_word... " >&6; } | |
6263 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6264 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6265 | else |
ce2cded5 L |
6266 | if test -n "$RANLIB"; then |
6267 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6268 | else | |
6269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6270 | for as_dir in $PATH | |
6271 | do | |
6272 | IFS=$as_save_IFS | |
6273 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6274 | for ac_exec_ext in '' $ac_executable_extensions; do |
6275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6276 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6278 | break 2 |
6279 | fi | |
6280 | done | |
81ecdfbb RW |
6281 | done |
6282 | IFS=$as_save_IFS | |
44f2f9d2 | 6283 | |
d7040cdb | 6284 | fi |
44f2f9d2 | 6285 | fi |
ce2cded5 L |
6286 | RANLIB=$ac_cv_prog_RANLIB |
6287 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6289 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6290 | else |
81ecdfbb RW |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6292 | $as_echo "no" >&6; } | |
ce2cded5 | 6293 | fi |
d7040cdb | 6294 | |
81ecdfbb | 6295 | |
d7040cdb | 6296 | fi |
ce2cded5 L |
6297 | if test -z "$ac_cv_prog_RANLIB"; then |
6298 | ac_ct_RANLIB=$RANLIB | |
6299 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6300 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6302 | $as_echo_n "checking for $ac_word... " >&6; } | |
6303 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6304 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6305 | else |
ce2cded5 L |
6306 | if test -n "$ac_ct_RANLIB"; then |
6307 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6308 | else | |
6309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6310 | for as_dir in $PATH | |
d7040cdb | 6311 | do |
ce2cded5 L |
6312 | IFS=$as_save_IFS |
6313 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6314 | for ac_exec_ext in '' $ac_executable_extensions; do |
6315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6316 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6318 | break 2 |
d7040cdb | 6319 | fi |
ce2cded5 | 6320 | done |
81ecdfbb RW |
6321 | done |
6322 | IFS=$as_save_IFS | |
ce2cded5 | 6323 | |
d7040cdb | 6324 | fi |
ce2cded5 L |
6325 | fi |
6326 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6327 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6329 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 6330 | else |
81ecdfbb RW |
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6332 | $as_echo "no" >&6; } | |
44f2f9d2 | 6333 | fi |
44f2f9d2 | 6334 | |
81ecdfbb RW |
6335 | if test "x$ac_ct_RANLIB" = x; then |
6336 | RANLIB=":" | |
6337 | else | |
6338 | case $cross_compiling:$ac_tool_warned in | |
6339 | yes:) | |
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6342 | ac_tool_warned=yes ;; | |
6343 | esac | |
6344 | RANLIB=$ac_ct_RANLIB | |
6345 | fi | |
d7040cdb | 6346 | else |
ce2cded5 | 6347 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6348 | fi |
252b5132 | 6349 | |
ce2cded5 | 6350 | test -z "$RANLIB" && RANLIB=: |
252b5132 | 6351 | |
252b5132 | 6352 | |
ae57792d | 6353 | |
252b5132 | 6354 | |
13b2be9c | 6355 | |
14ee9f48 | 6356 | |
ce2cded5 | 6357 | # Determine commands to create old-style static archives. |
718a6fd8 | 6358 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6359 | old_postinstall_cmds='chmod 644 $oldlib' |
6360 | old_postuninstall_cmds= | |
14ee9f48 | 6361 | |
ce2cded5 L |
6362 | if test -n "$RANLIB"; then |
6363 | case $host_os in | |
6364 | openbsd*) | |
6365 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6366 | ;; | |
6367 | *) | |
6368 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6369 | ;; | |
6370 | esac | |
6371 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6372 | fi |
14ee9f48 | 6373 | |
3725885a RW |
6374 | case $host_os in |
6375 | darwin*) | |
6376 | lock_old_archive_extraction=yes ;; | |
6377 | *) | |
6378 | lock_old_archive_extraction=no ;; | |
6379 | esac | |
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
f8fc3443 | 6386 | |
f8fc3443 | 6387 | |
252b5132 | 6388 | |
85fbca6a | 6389 | |
85fbca6a | 6390 | |
13b2be9c | 6391 | |
13b2be9c | 6392 | |
d7040cdb | 6393 | |
d7040cdb SE |
6394 | |
6395 | ||
6396 | ||
252b5132 | 6397 | |
93fbbb04 | 6398 | |
93fbbb04 | 6399 | |
d70c5fc7 | 6400 | |
e0001a05 | 6401 | |
252b5132 | 6402 | |
252b5132 | 6403 | |
252b5132 | 6404 | |
252b5132 | 6405 | |
252b5132 | 6406 | |
3bcbcc3d | 6407 | |
252b5132 | 6408 | |
252b5132 | 6409 | |
252b5132 | 6410 | |
15886821 | 6411 | |
252b5132 | 6412 | |
252b5132 | 6413 | |
13b2be9c DJ |
6414 | |
6415 | ||
252b5132 | 6416 | |
252b5132 | 6417 | |
d6d788bd | 6418 | |
ce2cded5 L |
6419 | # If no C compiler was specified, use CC. |
6420 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6421 | |
ce2cded5 L |
6422 | # If no C compiler flags were specified, use CFLAGS. |
6423 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6424 | |
ce2cded5 L |
6425 | # Allow CC to be a program name with arguments. |
6426 | compiler=$CC | |
252b5132 | 6427 | |
252b5132 | 6428 | |
ce2cded5 | 6429 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6431 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6432 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6433 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6434 | else |
252b5132 | 6435 | |
ce2cded5 L |
6436 | # These are sane defaults that work on at least a few old systems. |
6437 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6438 | |
ce2cded5 L |
6439 | # Character class describing NM global symbol codes. |
6440 | symcode='[BCDEGRST]' | |
252b5132 | 6441 | |
ce2cded5 L |
6442 | # Regexp to match symbols that can be accessed directly from C. |
6443 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6444 | |
ce2cded5 L |
6445 | # Define system-specific variables. |
6446 | case $host_os in | |
6447 | aix*) | |
6448 | symcode='[BCDT]' | |
6449 | ;; | |
718a6fd8 | 6450 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6451 | symcode='[ABCDGISTW]' |
6452 | ;; | |
6453 | hpux*) | |
6454 | if test "$host_cpu" = ia64; then | |
6455 | symcode='[ABCDEGRST]' | |
6456 | fi | |
6457 | ;; | |
6458 | irix* | nonstopux*) | |
6459 | symcode='[BCDEGRST]' | |
6460 | ;; | |
6461 | osf*) | |
6462 | symcode='[BCDEGQRST]' | |
6463 | ;; | |
6464 | solaris*) | |
6465 | symcode='[BDRT]' | |
6466 | ;; | |
6467 | sco3.2v5*) | |
6468 | symcode='[DT]' | |
6469 | ;; | |
6470 | sysv4.2uw2*) | |
6471 | symcode='[DT]' | |
6472 | ;; | |
6473 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6474 | symcode='[ABDT]' | |
6475 | ;; | |
6476 | sysv4) | |
6477 | symcode='[DFNSTU]' | |
6478 | ;; | |
6479 | esac | |
6480 | ||
6481 | # If we're using GNU nm, then use its standard symbol codes. | |
6482 | case `$NM -V 2>&1` in | |
6483 | *GNU* | *'with BFD'*) | |
6484 | symcode='[ABCDGIRSTW]' ;; | |
6485 | esac | |
252b5132 | 6486 | |
ce2cded5 L |
6487 | # Transform an extracted symbol line into a proper C declaration. |
6488 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6489 | # so use this general approach. | |
6490 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6491 | |
ce2cded5 | 6492 | # Transform an extracted symbol line into symbol name and symbol address |
f2c621e4 AS |
6493 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6494 | 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 | 6495 | |
7357c5b6 AM |
6496 | # Handle CRLF in mingw tool chain |
6497 | opt_cr= | |
6498 | case $build_os in | |
6499 | mingw*) | |
6500 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6501 | ;; | |
6502 | esac | |
d7040cdb | 6503 | |
7357c5b6 AM |
6504 | # Try without a prefix underscore, then with it. |
6505 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6506 | |
7357c5b6 AM |
6507 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6508 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6509 | |
7357c5b6 AM |
6510 | # Write the raw and C identifiers. |
6511 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6512 | # Fake it for dumpbin and say T for any non-static function | |
6513 | # and D for any global variable. | |
6514 | # Also find C++ and __fastcall symbols from MSVC++, | |
6515 | # which start with @ or ?. | |
6516 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6517 | " {last_section=section; section=\$ 3};"\ | |
6518 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6519 | " \$ 0!~/External *\|/{next};"\ | |
6520 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6521 | " {if(hide[section]) next};"\ | |
6522 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6523 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6524 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6525 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6526 | " ' prfx=^$ac_symprfx" | |
6527 | else | |
6528 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6529 | fi | |
d7040cdb | 6530 | |
7357c5b6 AM |
6531 | # Check to see that the pipe works correctly. |
6532 | pipe_works=no | |
d7040cdb | 6533 | |
7357c5b6 AM |
6534 | rm -f conftest* |
6535 | cat > conftest.$ac_ext <<_LT_EOF | |
6536 | #ifdef __cplusplus | |
6537 | extern "C" { | |
6538 | #endif | |
6539 | char nm_test_var; | |
6540 | void nm_test_func(void); | |
6541 | void nm_test_func(void){} | |
6542 | #ifdef __cplusplus | |
ce2cded5 | 6543 | } |
7357c5b6 AM |
6544 | #endif |
6545 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6546 | _LT_EOF | |
6547 | ||
81ecdfbb | 6548 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6549 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6550 | ac_status=$? |
81ecdfbb RW |
6551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6552 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6553 | # Now try to grab the symbols. |
6554 | nlist=conftest.nm | |
3725885a RW |
6555 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6556 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
ce2cded5 | 6557 | ac_status=$? |
81ecdfbb RW |
6558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6559 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6560 | # Try sorting and uniquifying the output. |
6561 | if sort "$nlist" | uniq > "$nlist"T; then | |
6562 | mv -f "$nlist"T "$nlist" | |
6563 | else | |
6564 | rm -f "$nlist"T | |
6565 | fi | |
13b2be9c | 6566 | |
7357c5b6 AM |
6567 | # Make sure that we snagged all the symbols we need. |
6568 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6569 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6570 | cat <<_LT_EOF > conftest.$ac_ext | |
6571 | #ifdef __cplusplus | |
6572 | extern "C" { | |
6573 | #endif | |
13b2be9c | 6574 | |
7357c5b6 AM |
6575 | _LT_EOF |
6576 | # Now generate the symbol file. | |
6577 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6578 | |
7357c5b6 | 6579 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6580 | |
7357c5b6 | 6581 | /* The mapping between symbol names and symbols. */ |
f2c621e4 | 6582 | const struct { |
7357c5b6 AM |
6583 | const char *name; |
6584 | void *address; | |
6585 | } | |
6586 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6587 | { | |
6588 | { "@PROGRAM@", (void *) 0 }, | |
6589 | _LT_EOF | |
6590 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6591 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6592 | {0, (void *) 0} | |
6593 | }; | |
d7040cdb | 6594 | |
7357c5b6 AM |
6595 | /* This works around a problem in FreeBSD linker */ |
6596 | #ifdef FREEBSD_WORKAROUND | |
6597 | static const void *lt_preloaded_setup() { | |
6598 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6599 | } | |
ce2cded5 | 6600 | #endif |
d7040cdb | 6601 | |
7357c5b6 | 6602 | #ifdef __cplusplus |
ce2cded5 | 6603 | } |
7357c5b6 AM |
6604 | #endif |
6605 | _LT_EOF | |
6606 | # Now try linking the two files. | |
6607 | mv conftest.$ac_objext conftstm.$ac_objext | |
f2c621e4 AS |
6608 | lt_save_LIBS="$LIBS" |
6609 | lt_save_CFLAGS="$CFLAGS" | |
7357c5b6 AM |
6610 | LIBS="conftstm.$ac_objext" |
6611 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6612 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6613 | (eval $ac_link) 2>&5 |
6614 | ac_status=$? | |
81ecdfbb RW |
6615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6616 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6617 | pipe_works=yes |
6618 | fi | |
f2c621e4 AS |
6619 | LIBS="$lt_save_LIBS" |
6620 | CFLAGS="$lt_save_CFLAGS" | |
7357c5b6 AM |
6621 | else |
6622 | echo "cannot find nm_test_func in $nlist" >&5 | |
6623 | fi | |
6624 | else | |
6625 | echo "cannot find nm_test_var in $nlist" >&5 | |
6626 | fi | |
6627 | else | |
6628 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6629 | fi | |
6630 | else | |
6631 | echo "$progname: failed program was:" >&5 | |
6632 | cat conftest.$ac_ext >&5 | |
6633 | fi | |
718a6fd8 | 6634 | rm -rf conftest* conftst* |
7357c5b6 AM |
6635 | |
6636 | # Do not use the global_symbol_pipe unless it works. | |
6637 | if test "$pipe_works" = yes; then | |
6638 | break | |
6639 | else | |
6640 | lt_cv_sys_global_symbol_pipe= | |
6641 | fi | |
6642 | done | |
d7040cdb | 6643 | |
ce2cded5 | 6644 | fi |
7357c5b6 AM |
6645 | |
6646 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6647 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6648 | fi |
7357c5b6 | 6649 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6651 | $as_echo "failed" >&6; } | |
7357c5b6 | 6652 | else |
81ecdfbb RW |
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6654 | $as_echo "ok" >&6; } | |
ce2cded5 | 6655 | fi |
d7040cdb | 6656 | |
df7b86aa NC |
6657 | |
6658 | ||
6659 | ||
d7040cdb | 6660 | |
d7040cdb | 6661 | |
d7040cdb | 6662 | |
d7040cdb | 6663 | |
d7040cdb | 6664 | |
d7040cdb | 6665 | |
d7040cdb | 6666 | |
d7040cdb | 6667 | |
d7040cdb | 6668 | |
d7040cdb | 6669 | |
d7040cdb | 6670 | |
7357c5b6 AM |
6671 | |
6672 | ||
718a6fd8 SE |
6673 | |
6674 | ||
6675 | ||
7357c5b6 AM |
6676 | |
6677 | ||
81ecdfbb RW |
6678 | # Check whether --enable-libtool-lock was given. |
6679 | if test "${enable_libtool_lock+set}" = set; then : | |
6680 | enableval=$enable_libtool_lock; | |
6681 | fi | |
7357c5b6 | 6682 | |
7357c5b6 AM |
6683 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6684 | ||
6685 | # Some flags need to be propagated to the compiler or linker for good | |
6686 | # libtool support. | |
6687 | case $host in | |
6688 | ia64-*-hpux*) | |
6689 | # Find out which ABI we are using. | |
6690 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6691 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6692 | (eval $ac_compile) 2>&5 |
6693 | ac_status=$? | |
81ecdfbb RW |
6694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6695 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6696 | case `/usr/bin/file conftest.$ac_objext` in |
6697 | *ELF-32*) | |
6698 | HPUX_IA64_MODE="32" | |
6699 | ;; | |
6700 | *ELF-64*) | |
6701 | HPUX_IA64_MODE="64" | |
6702 | ;; | |
6703 | esac | |
6704 | fi | |
6705 | rm -rf conftest* | |
6706 | ;; | |
6707 | *-*-irix6*) | |
6708 | # Find out which ABI we are using. | |
3725885a | 6709 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6710 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6711 | (eval $ac_compile) 2>&5 |
6712 | ac_status=$? | |
81ecdfbb RW |
6713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6714 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6715 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6716 | case `/usr/bin/file conftest.$ac_objext` in | |
6717 | *32-bit*) | |
6718 | LD="${LD-ld} -melf32bsmip" | |
6719 | ;; | |
6720 | *N32*) | |
6721 | LD="${LD-ld} -melf32bmipn32" | |
6722 | ;; | |
6723 | *64-bit*) | |
6724 | LD="${LD-ld} -melf64bmip" | |
6725 | ;; | |
6726 | esac | |
6727 | else | |
6728 | case `/usr/bin/file conftest.$ac_objext` in | |
6729 | *32-bit*) | |
6730 | LD="${LD-ld} -32" | |
6731 | ;; | |
6732 | *N32*) | |
6733 | LD="${LD-ld} -n32" | |
6734 | ;; | |
6735 | *64-bit*) | |
6736 | LD="${LD-ld} -64" | |
6737 | ;; | |
6738 | esac | |
6739 | fi | |
6740 | fi | |
6741 | rm -rf conftest* | |
6742 | ;; | |
6743 | ||
cc9afea3 | 6744 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6745 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6746 | # Find out which ABI we are using. | |
6747 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6748 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6749 | (eval $ac_compile) 2>&5 |
6750 | ac_status=$? | |
81ecdfbb RW |
6751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6752 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6753 | case `/usr/bin/file conftest.o` in |
6754 | *32-bit*) | |
6755 | case $host in | |
6756 | x86_64-*kfreebsd*-gnu) | |
6757 | LD="${LD-ld} -m elf_i386_fbsd" | |
6758 | ;; | |
6759 | x86_64-*linux*) | |
6d2920c8 L |
6760 | case `/usr/bin/file conftest.o` in |
6761 | *x86-64*) | |
6762 | LD="${LD-ld} -m elf32_x86_64" | |
6763 | ;; | |
6764 | *) | |
6765 | LD="${LD-ld} -m elf_i386" | |
6766 | ;; | |
6767 | esac | |
7357c5b6 | 6768 | ;; |
cc9afea3 AM |
6769 | powerpc64le-*linux*) |
6770 | LD="${LD-ld} -m elf32lppclinux" | |
6771 | ;; | |
6772 | powerpc64-*linux*) | |
7357c5b6 AM |
6773 | LD="${LD-ld} -m elf32ppclinux" |
6774 | ;; | |
6775 | s390x-*linux*) | |
6776 | LD="${LD-ld} -m elf_s390" | |
6777 | ;; | |
6778 | sparc64-*linux*) | |
6779 | LD="${LD-ld} -m elf32_sparc" | |
6780 | ;; | |
6781 | esac | |
6782 | ;; | |
6783 | *64-bit*) | |
6784 | case $host in | |
6785 | x86_64-*kfreebsd*-gnu) | |
6786 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6787 | ;; | |
6788 | x86_64-*linux*) | |
6789 | LD="${LD-ld} -m elf_x86_64" | |
6790 | ;; | |
cc9afea3 AM |
6791 | powerpcle-*linux*) |
6792 | LD="${LD-ld} -m elf64lppc" | |
6793 | ;; | |
6794 | powerpc-*linux*) | |
7357c5b6 AM |
6795 | LD="${LD-ld} -m elf64ppc" |
6796 | ;; | |
6797 | s390*-*linux*|s390*-*tpf*) | |
6798 | LD="${LD-ld} -m elf64_s390" | |
6799 | ;; | |
6800 | sparc*-*linux*) | |
6801 | LD="${LD-ld} -m elf64_sparc" | |
6802 | ;; | |
6803 | esac | |
6804 | ;; | |
6805 | esac | |
6806 | fi | |
6807 | rm -rf conftest* | |
6808 | ;; | |
6809 | ||
6810 | *-*-sco3.2v5*) | |
6811 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6812 | SAVE_CFLAGS="$CFLAGS" | |
6813 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6815 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6816 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6817 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6818 | else |
7357c5b6 AM |
6819 | ac_ext=c |
6820 | ac_cpp='$CPP $CPPFLAGS' | |
6821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6824 | ||
81ecdfbb | 6825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 6826 | /* end confdefs.h. */ |
d7040cdb | 6827 | |
7357c5b6 AM |
6828 | int |
6829 | main () | |
6830 | { | |
6831 | ||
6832 | ; | |
6833 | return 0; | |
6834 | } | |
ce2cded5 | 6835 | _ACEOF |
81ecdfbb | 6836 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6837 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 6838 | else |
81ecdfbb | 6839 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6840 | fi |
81ecdfbb RW |
6841 | rm -f core conftest.err conftest.$ac_objext \ |
6842 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6843 | ac_ext=c |
6844 | ac_cpp='$CPP $CPPFLAGS' | |
6845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6848 | |
ce2cded5 | 6849 | fi |
81ecdfbb RW |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6851 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6852 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6853 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6854 | CFLAGS="$SAVE_CFLAGS" | |
6855 | fi | |
6856 | ;; | |
6857 | sparc*-*solaris*) | |
6858 | # Find out which ABI we are using. | |
6859 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6860 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6861 | (eval $ac_compile) 2>&5 |
6862 | ac_status=$? | |
81ecdfbb RW |
6863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6864 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6865 | case `/usr/bin/file conftest.o` in |
6866 | *64-bit*) | |
6867 | case $lt_cv_prog_gnu_ld in | |
6868 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
6869 | *) |
6870 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6871 | LD="${LD-ld} -64" | |
6872 | fi | |
6873 | ;; | |
7357c5b6 AM |
6874 | esac |
6875 | ;; | |
6876 | esac | |
6877 | fi | |
6878 | rm -rf conftest* | |
6879 | ;; | |
6880 | esac | |
d7040cdb | 6881 | |
df7b86aa NC |
6882 | need_locks="$enable_libtool_lock" |
6883 | ||
718a6fd8 SE |
6884 | |
6885 | case $host_os in | |
6886 | rhapsody* | darwin*) | |
6887 | if test -n "$ac_tool_prefix"; then | |
6888 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6889 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6891 | $as_echo_n "checking for $ac_word... " >&6; } | |
6892 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6893 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
6894 | else |
6895 | if test -n "$DSYMUTIL"; then | |
6896 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6897 | else | |
6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6899 | for as_dir in $PATH | |
6900 | do | |
6901 | IFS=$as_save_IFS | |
6902 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6903 | for ac_exec_ext in '' $ac_executable_extensions; do |
6904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 6905 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 6906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6907 | break 2 |
6908 | fi | |
6909 | done | |
81ecdfbb RW |
6910 | done |
6911 | IFS=$as_save_IFS | |
718a6fd8 SE |
6912 | |
6913 | fi | |
6914 | fi | |
6915 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6916 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6918 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 6919 | else |
81ecdfbb RW |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6921 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6922 | fi |
6923 | ||
81ecdfbb | 6924 | |
718a6fd8 SE |
6925 | fi |
6926 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6927 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6928 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6929 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6931 | $as_echo_n "checking for $ac_word... " >&6; } | |
6932 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6933 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
6934 | else |
6935 | if test -n "$ac_ct_DSYMUTIL"; then | |
6936 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6937 | else | |
6938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6939 | for as_dir in $PATH | |
6940 | do | |
6941 | IFS=$as_save_IFS | |
6942 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6943 | for ac_exec_ext in '' $ac_executable_extensions; do |
6944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 6945 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 6946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6947 | break 2 |
6948 | fi | |
6949 | done | |
81ecdfbb RW |
6950 | done |
6951 | IFS=$as_save_IFS | |
718a6fd8 | 6952 | |
718a6fd8 SE |
6953 | fi |
6954 | fi | |
6955 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6956 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6958 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 6959 | else |
81ecdfbb RW |
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6961 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6962 | fi |
6963 | ||
81ecdfbb RW |
6964 | if test "x$ac_ct_DSYMUTIL" = x; then |
6965 | DSYMUTIL=":" | |
6966 | else | |
6967 | case $cross_compiling:$ac_tool_warned in | |
6968 | yes:) | |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6971 | ac_tool_warned=yes ;; | |
6972 | esac | |
6973 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6974 | fi | |
718a6fd8 SE |
6975 | else |
6976 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6977 | fi | |
6978 | ||
6979 | if test -n "$ac_tool_prefix"; then | |
6980 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6981 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6983 | $as_echo_n "checking for $ac_word... " >&6; } | |
6984 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6985 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
6986 | else |
6987 | if test -n "$NMEDIT"; then | |
6988 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6989 | else | |
6990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6991 | for as_dir in $PATH | |
6992 | do | |
6993 | IFS=$as_save_IFS | |
6994 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6995 | for ac_exec_ext in '' $ac_executable_extensions; do |
6996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 6997 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 6998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6999 | break 2 |
7000 | fi | |
7001 | done | |
81ecdfbb RW |
7002 | done |
7003 | IFS=$as_save_IFS | |
718a6fd8 SE |
7004 | |
7005 | fi | |
7006 | fi | |
7007 | NMEDIT=$ac_cv_prog_NMEDIT | |
7008 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7010 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 7011 | else |
81ecdfbb RW |
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7013 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7014 | fi |
7015 | ||
81ecdfbb | 7016 | |
718a6fd8 SE |
7017 | fi |
7018 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7019 | ac_ct_NMEDIT=$NMEDIT | |
7020 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7021 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7023 | $as_echo_n "checking for $ac_word... " >&6; } | |
7024 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7025 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7026 | else |
7027 | if test -n "$ac_ct_NMEDIT"; then | |
7028 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7029 | else | |
7030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7031 | for as_dir in $PATH | |
7032 | do | |
7033 | IFS=$as_save_IFS | |
7034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7035 | for ac_exec_ext in '' $ac_executable_extensions; do |
7036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7037 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7039 | break 2 |
7040 | fi | |
7041 | done | |
81ecdfbb RW |
7042 | done |
7043 | IFS=$as_save_IFS | |
718a6fd8 | 7044 | |
718a6fd8 SE |
7045 | fi |
7046 | fi | |
7047 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7048 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7050 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 7051 | else |
81ecdfbb RW |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7053 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7054 | fi |
7055 | ||
81ecdfbb RW |
7056 | if test "x$ac_ct_NMEDIT" = x; then |
7057 | NMEDIT=":" | |
7058 | else | |
7059 | case $cross_compiling:$ac_tool_warned in | |
7060 | yes:) | |
7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7062 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7063 | ac_tool_warned=yes ;; | |
7064 | esac | |
7065 | NMEDIT=$ac_ct_NMEDIT | |
7066 | fi | |
718a6fd8 SE |
7067 | else |
7068 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7069 | fi | |
7070 | ||
7071 | if test -n "$ac_tool_prefix"; then | |
7072 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7073 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7075 | $as_echo_n "checking for $ac_word... " >&6; } | |
7076 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7077 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7078 | else |
7079 | if test -n "$LIPO"; then | |
7080 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7081 | else | |
7082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7083 | for as_dir in $PATH | |
7084 | do | |
7085 | IFS=$as_save_IFS | |
7086 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7087 | for ac_exec_ext in '' $ac_executable_extensions; do |
7088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7089 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7091 | break 2 |
7092 | fi | |
7093 | done | |
81ecdfbb RW |
7094 | done |
7095 | IFS=$as_save_IFS | |
718a6fd8 SE |
7096 | |
7097 | fi | |
7098 | fi | |
7099 | LIPO=$ac_cv_prog_LIPO | |
7100 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7102 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 7103 | else |
81ecdfbb RW |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7105 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7106 | fi |
7107 | ||
81ecdfbb | 7108 | |
718a6fd8 SE |
7109 | fi |
7110 | if test -z "$ac_cv_prog_LIPO"; then | |
7111 | ac_ct_LIPO=$LIPO | |
7112 | # Extract the first word of "lipo", so it can be a program name with args. | |
7113 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7115 | $as_echo_n "checking for $ac_word... " >&6; } | |
7116 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7117 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7118 | else |
7119 | if test -n "$ac_ct_LIPO"; then | |
7120 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7121 | else | |
7122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7123 | for as_dir in $PATH | |
7124 | do | |
7125 | IFS=$as_save_IFS | |
7126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7127 | for ac_exec_ext in '' $ac_executable_extensions; do |
7128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7129 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7131 | break 2 |
7132 | fi | |
7133 | done | |
81ecdfbb RW |
7134 | done |
7135 | IFS=$as_save_IFS | |
718a6fd8 | 7136 | |
718a6fd8 SE |
7137 | fi |
7138 | fi | |
7139 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7140 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7142 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 7143 | else |
81ecdfbb RW |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7145 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7146 | fi |
7147 | ||
81ecdfbb RW |
7148 | if test "x$ac_ct_LIPO" = x; then |
7149 | LIPO=":" | |
7150 | else | |
7151 | case $cross_compiling:$ac_tool_warned in | |
7152 | yes:) | |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7154 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7155 | ac_tool_warned=yes ;; | |
7156 | esac | |
7157 | LIPO=$ac_ct_LIPO | |
7158 | fi | |
718a6fd8 SE |
7159 | else |
7160 | LIPO="$ac_cv_prog_LIPO" | |
7161 | fi | |
7162 | ||
7163 | if test -n "$ac_tool_prefix"; then | |
7164 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7165 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7167 | $as_echo_n "checking for $ac_word... " >&6; } | |
7168 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7169 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7170 | else |
7171 | if test -n "$OTOOL"; then | |
7172 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7173 | else | |
7174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7175 | for as_dir in $PATH | |
7176 | do | |
7177 | IFS=$as_save_IFS | |
7178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7179 | for ac_exec_ext in '' $ac_executable_extensions; do |
7180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7181 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7183 | break 2 |
7184 | fi | |
7185 | done | |
81ecdfbb RW |
7186 | done |
7187 | IFS=$as_save_IFS | |
718a6fd8 SE |
7188 | |
7189 | fi | |
7190 | fi | |
7191 | OTOOL=$ac_cv_prog_OTOOL | |
7192 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7194 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 7195 | else |
81ecdfbb RW |
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7197 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7198 | fi |
7199 | ||
81ecdfbb | 7200 | |
718a6fd8 SE |
7201 | fi |
7202 | if test -z "$ac_cv_prog_OTOOL"; then | |
7203 | ac_ct_OTOOL=$OTOOL | |
7204 | # Extract the first word of "otool", so it can be a program name with args. | |
7205 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7207 | $as_echo_n "checking for $ac_word... " >&6; } | |
7208 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7209 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7210 | else |
7211 | if test -n "$ac_ct_OTOOL"; then | |
7212 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7213 | else | |
7214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7215 | for as_dir in $PATH | |
7216 | do | |
7217 | IFS=$as_save_IFS | |
7218 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7219 | for ac_exec_ext in '' $ac_executable_extensions; do |
7220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7221 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7223 | break 2 |
7224 | fi | |
7225 | done | |
81ecdfbb RW |
7226 | done |
7227 | IFS=$as_save_IFS | |
718a6fd8 | 7228 | |
718a6fd8 SE |
7229 | fi |
7230 | fi | |
7231 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7232 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7234 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 7235 | else |
81ecdfbb RW |
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7237 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7238 | fi |
7239 | ||
81ecdfbb RW |
7240 | if test "x$ac_ct_OTOOL" = x; then |
7241 | OTOOL=":" | |
7242 | else | |
7243 | case $cross_compiling:$ac_tool_warned in | |
7244 | yes:) | |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7247 | ac_tool_warned=yes ;; | |
7248 | esac | |
7249 | OTOOL=$ac_ct_OTOOL | |
7250 | fi | |
718a6fd8 SE |
7251 | else |
7252 | OTOOL="$ac_cv_prog_OTOOL" | |
7253 | fi | |
7254 | ||
7255 | if test -n "$ac_tool_prefix"; then | |
7256 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7257 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7259 | $as_echo_n "checking for $ac_word... " >&6; } | |
7260 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7261 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7262 | else |
7263 | if test -n "$OTOOL64"; then | |
7264 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7265 | else | |
7266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7267 | for as_dir in $PATH | |
7268 | do | |
7269 | IFS=$as_save_IFS | |
7270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7271 | for ac_exec_ext in '' $ac_executable_extensions; do |
7272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7273 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7275 | break 2 |
7276 | fi | |
7277 | done | |
81ecdfbb RW |
7278 | done |
7279 | IFS=$as_save_IFS | |
718a6fd8 SE |
7280 | |
7281 | fi | |
7282 | fi | |
7283 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7284 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7286 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 7287 | else |
81ecdfbb RW |
7288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7289 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7290 | fi |
7291 | ||
81ecdfbb | 7292 | |
718a6fd8 SE |
7293 | fi |
7294 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7295 | ac_ct_OTOOL64=$OTOOL64 | |
7296 | # Extract the first word of "otool64", so it can be a program name with args. | |
7297 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7299 | $as_echo_n "checking for $ac_word... " >&6; } | |
7300 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7301 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7302 | else |
7303 | if test -n "$ac_ct_OTOOL64"; then | |
7304 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7305 | else | |
7306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7307 | for as_dir in $PATH | |
7308 | do | |
7309 | IFS=$as_save_IFS | |
7310 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7311 | for ac_exec_ext in '' $ac_executable_extensions; do |
7312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7313 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7315 | break 2 |
7316 | fi | |
7317 | done | |
81ecdfbb RW |
7318 | done |
7319 | IFS=$as_save_IFS | |
718a6fd8 | 7320 | |
718a6fd8 SE |
7321 | fi |
7322 | fi | |
7323 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7324 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7326 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7327 | else |
81ecdfbb RW |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7329 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7330 | fi |
7331 | ||
81ecdfbb RW |
7332 | if test "x$ac_ct_OTOOL64" = x; then |
7333 | OTOOL64=":" | |
7334 | else | |
7335 | case $cross_compiling:$ac_tool_warned in | |
7336 | yes:) | |
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7338 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7339 | ac_tool_warned=yes ;; | |
7340 | esac | |
7341 | OTOOL64=$ac_ct_OTOOL64 | |
7342 | fi | |
718a6fd8 SE |
7343 | else |
7344 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7345 | fi | |
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | ||
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
7370 | ||
7371 | ||
7372 | ||
81ecdfbb RW |
7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7374 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7375 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7376 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7377 | else |
7378 | lt_cv_apple_cc_single_mod=no | |
7379 | if test -z "${LT_MULTI_MODULE}"; then | |
7380 | # By default we will add the -single_module flag. You can override | |
7381 | # by either setting the environment variable LT_MULTI_MODULE | |
7382 | # non-empty at configure time, or by adding -multi_module to the | |
7383 | # link flags. | |
7384 | rm -rf libconftest.dylib* | |
7385 | echo "int foo(void){return 1;}" > conftest.c | |
7386 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7387 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7388 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7389 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7390 | _lt_result=$? | |
7391 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7392 | lt_cv_apple_cc_single_mod=yes | |
7393 | else | |
7394 | cat conftest.err >&5 | |
7395 | fi | |
7396 | rm -rf libconftest.dylib* | |
7397 | rm -f conftest.* | |
7398 | fi | |
7399 | fi | |
81ecdfbb RW |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7401 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7403 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7404 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7405 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7406 | else |
7407 | lt_cv_ld_exported_symbols_list=no | |
7408 | save_LDFLAGS=$LDFLAGS | |
7409 | echo "_main" > conftest.sym | |
7410 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7412 | /* end confdefs.h. */ |
7413 | ||
7414 | int | |
7415 | main () | |
7416 | { | |
7417 | ||
7418 | ; | |
7419 | return 0; | |
7420 | } | |
7421 | _ACEOF | |
81ecdfbb | 7422 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7423 | lt_cv_ld_exported_symbols_list=yes |
7424 | else | |
81ecdfbb | 7425 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7426 | fi |
81ecdfbb RW |
7427 | rm -f core conftest.err conftest.$ac_objext \ |
7428 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7429 | LDFLAGS="$save_LDFLAGS" |
7430 | ||
7431 | fi | |
81ecdfbb RW |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7433 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7435 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7436 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7437 | $as_echo_n "(cached) " >&6 | |
7438 | else | |
7439 | lt_cv_ld_force_load=no | |
7440 | cat > conftest.c << _LT_EOF | |
7441 | int forced_loaded() { return 2;} | |
7442 | _LT_EOF | |
7443 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7444 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7445 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7446 | $AR cru libconftest.a conftest.o 2>&5 | |
7447 | cat > conftest.c << _LT_EOF | |
7448 | int main() { return 0;} | |
7449 | _LT_EOF | |
7450 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7451 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7452 | _lt_result=$? | |
7453 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7454 | lt_cv_ld_force_load=yes | |
7455 | else | |
7456 | cat conftest.err >&5 | |
7457 | fi | |
7458 | rm -f conftest.err libconftest.a conftest conftest.c | |
7459 | rm -rf conftest.dSYM | |
7460 | ||
7461 | fi | |
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7463 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7464 | case $host_os in |
7465 | rhapsody* | darwin1.[012]) | |
7466 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7467 | darwin1.*) | |
7468 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7469 | darwin*) # darwin 5.x on | |
7470 | # if running on 10.5 or later, the deployment target defaults | |
7471 | # to the OS version, if on x86, and 10.4, the deployment | |
7472 | # target defaults to 10.4. Don't you love it? | |
7473 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7474 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7475 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7476 | 10.[012][,.]*) |
718a6fd8 SE |
7477 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7478 | 10.*) | |
7479 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7480 | esac | |
7481 | ;; | |
7482 | esac | |
7483 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7484 | _lt_dar_single_mod='$single_module' | |
7485 | fi | |
7486 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7487 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7488 | else | |
7489 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7490 | fi | |
3725885a | 7491 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7492 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7493 | else | |
7494 | _lt_dsymutil= | |
7495 | fi | |
7496 | ;; | |
7497 | esac | |
7498 | ||
718a6fd8 | 7499 | for ac_header in dlfcn.h |
81ecdfbb RW |
7500 | do : |
7501 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7502 | " | |
7503 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
718a6fd8 | 7504 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7505 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7506 | _ACEOF |
7507 | ||
7508 | fi | |
7509 | ||
7510 | done | |
7511 | ||
7512 | ||
7513 | ||
3725885a RW |
7514 | |
7515 | ||
718a6fd8 SE |
7516 | # Set options |
7517 | ||
7518 | ||
7519 | ||
7520 | enable_dlopen=no | |
7521 | ||
7522 | ||
7523 | enable_win32_dll=no | |
7524 | ||
7525 | ||
81ecdfbb RW |
7526 | # Check whether --enable-shared was given. |
7527 | if test "${enable_shared+set}" = set; then : | |
7528 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7529 | case $enableval in |
7530 | yes) enable_shared=yes ;; | |
7531 | no) enable_shared=no ;; | |
7532 | *) | |
7533 | enable_shared=no | |
7534 | # Look at the argument we got. We use all the common list separators. | |
7535 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7536 | for pkg in $enableval; do | |
7537 | IFS="$lt_save_ifs" | |
7538 | if test "X$pkg" = "X$p"; then | |
7539 | enable_shared=yes | |
7540 | fi | |
7541 | done | |
7542 | IFS="$lt_save_ifs" | |
7543 | ;; | |
7544 | esac | |
7545 | else | |
7546 | enable_shared=yes | |
81ecdfbb RW |
7547 | fi |
7548 | ||
718a6fd8 SE |
7549 | |
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
81ecdfbb RW |
7557 | # Check whether --enable-static was given. |
7558 | if test "${enable_static+set}" = set; then : | |
7559 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7560 | case $enableval in |
7561 | yes) enable_static=yes ;; | |
7562 | no) enable_static=no ;; | |
7563 | *) | |
7564 | enable_static=no | |
7565 | # Look at the argument we got. We use all the common list separators. | |
7566 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7567 | for pkg in $enableval; do | |
7568 | IFS="$lt_save_ifs" | |
7569 | if test "X$pkg" = "X$p"; then | |
7570 | enable_static=yes | |
7571 | fi | |
7572 | done | |
7573 | IFS="$lt_save_ifs" | |
7574 | ;; | |
7575 | esac | |
7576 | else | |
7577 | enable_static=yes | |
81ecdfbb RW |
7578 | fi |
7579 | ||
718a6fd8 SE |
7580 | |
7581 | ||
d7040cdb | 7582 | |
d7040cdb | 7583 | |
718a6fd8 SE |
7584 | |
7585 | ||
7586 | ||
7587 | ||
7588 | ||
81ecdfbb RW |
7589 | # Check whether --with-pic was given. |
7590 | if test "${with_pic+set}" = set; then : | |
7591 | withval=$with_pic; pic_mode="$withval" | |
ce2cded5 | 7592 | else |
718a6fd8 | 7593 | pic_mode=default |
81ecdfbb RW |
7594 | fi |
7595 | ||
d7040cdb | 7596 | |
718a6fd8 SE |
7597 | test -z "$pic_mode" && pic_mode=default |
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
81ecdfbb RW |
7605 | # Check whether --enable-fast-install was given. |
7606 | if test "${enable_fast_install+set}" = set; then : | |
7607 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7608 | case $enableval in |
7609 | yes) enable_fast_install=yes ;; | |
7610 | no) enable_fast_install=no ;; | |
7611 | *) | |
7612 | enable_fast_install=no | |
7613 | # Look at the argument we got. We use all the common list separators. | |
7614 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7615 | for pkg in $enableval; do | |
7616 | IFS="$lt_save_ifs" | |
7617 | if test "X$pkg" = "X$p"; then | |
7618 | enable_fast_install=yes | |
7619 | fi | |
7620 | done | |
7621 | IFS="$lt_save_ifs" | |
7622 | ;; | |
7623 | esac | |
ce2cded5 | 7624 | else |
718a6fd8 | 7625 | enable_fast_install=yes |
81ecdfbb RW |
7626 | fi |
7627 | ||
718a6fd8 SE |
7628 | |
7629 | ||
7630 | ||
7631 | ||
d7040cdb | 7632 | |
d7040cdb | 7633 | |
d7040cdb | 7634 | |
d7040cdb | 7635 | |
d7040cdb | 7636 | |
d7040cdb | 7637 | |
ce2cded5 L |
7638 | # This can be used to rebuild libtool when needed |
7639 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7640 | |
ce2cded5 L |
7641 | # Always use our own libtool. |
7642 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7643 | |
d7040cdb | 7644 | |
d7040cdb | 7645 | |
d7040cdb SE |
7646 | |
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
d7040cdb | 7652 | |
d7040cdb | 7653 | |
ab509236 | 7654 | |
ab509236 | 7655 | |
d7040cdb SE |
7656 | |
7657 | ||
7658 | ||
7659 | ||
7660 | ||
13b2be9c | 7661 | |
13b2be9c | 7662 | |
13b2be9c | 7663 | |
13b2be9c | 7664 | |
d7040cdb | 7665 | |
3725885a | 7666 | |
d7040cdb SE |
7667 | |
7668 | ||
ce2cded5 | 7669 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7670 | |
7671 | ||
d7040cdb | 7672 | |
d7040cdb | 7673 | |
d7040cdb SE |
7674 | |
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
ce2cded5 L |
7680 | |
7681 | ||
7682 | ||
7683 | ||
7684 | if test -n "${ZSH_VERSION+set}" ; then | |
7685 | setopt NO_GLOB_SUBST | |
7686 | fi | |
7687 | ||
81ecdfbb RW |
7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7689 | $as_echo_n "checking for objdir... " >&6; } | |
7690 | if test "${lt_cv_objdir+set}" = set; then : | |
7691 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 7692 | else |
ce2cded5 L |
7693 | rm -f .libs 2>/dev/null |
7694 | mkdir .libs 2>/dev/null | |
7695 | if test -d .libs; then | |
7696 | lt_cv_objdir=.libs | |
7697 | else | |
7698 | # MS-DOS does not allow filenames that begin with a dot. | |
7699 | lt_cv_objdir=_libs | |
d7040cdb | 7700 | fi |
ce2cded5 L |
7701 | rmdir .libs 2>/dev/null |
7702 | fi | |
81ecdfbb RW |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7704 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7705 | objdir=$lt_cv_objdir |
d7040cdb SE |
7706 | |
7707 | ||
7708 | ||
7709 | ||
d7040cdb | 7710 | |
ce2cded5 L |
7711 | cat >>confdefs.h <<_ACEOF |
7712 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7713 | _ACEOF | |
d7040cdb SE |
7714 | |
7715 | ||
7716 | ||
7717 | ||
ce2cded5 L |
7718 | case $host_os in |
7719 | aix3*) | |
7720 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7721 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7722 | # vanish in a puff of smoke. | |
7723 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7724 | COLLECT_NAMES= | |
7725 | export COLLECT_NAMES | |
7726 | fi | |
7727 | ;; | |
7728 | esac | |
d7040cdb | 7729 | |
ce2cded5 L |
7730 | # Global variables: |
7731 | ofile=libtool | |
7732 | can_build_shared=yes | |
d7040cdb | 7733 | |
ce2cded5 L |
7734 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7735 | # which needs '.lib'). | |
7736 | libext=a | |
d7040cdb | 7737 | |
ce2cded5 | 7738 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7739 | |
ce2cded5 L |
7740 | old_CC="$CC" |
7741 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7742 | |
ce2cded5 L |
7743 | # Set sane defaults for various variables |
7744 | test -z "$CC" && CC=cc | |
7745 | test -z "$LTCC" && LTCC=$CC | |
7746 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7747 | test -z "$LD" && LD=ld | |
7748 | test -z "$ac_objext" && ac_objext=o | |
7749 | ||
7750 | for cc_temp in $compiler""; do | |
7751 | case $cc_temp in | |
7752 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7753 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7754 | \-*) ;; | |
7755 | *) break;; | |
7756 | esac | |
7757 | done | |
3725885a | 7758 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
ce2cded5 L |
7759 | |
7760 | ||
7761 | # Only perform the check for file, if the check method requires it | |
7762 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7763 | case $deplibs_check_method in | |
7764 | file_magic*) | |
7765 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7767 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7768 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7769 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7770 | else |
7771 | case $MAGIC_CMD in | |
7772 | [\\/*] | ?:[\\/]*) | |
7773 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7774 | ;; | |
7775 | *) | |
7776 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7777 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7778 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7779 | for ac_dir in $ac_dummy; do | |
7780 | IFS="$lt_save_ifs" | |
7781 | test -z "$ac_dir" && ac_dir=. | |
7782 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7783 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7784 | if test -n "$file_magic_test_file"; then | |
7785 | case $deplibs_check_method in | |
7786 | "file_magic "*) | |
7787 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7788 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7789 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7790 | $EGREP "$file_magic_regex" > /dev/null; then | |
7791 | : | |
d7040cdb | 7792 | else |
ce2cded5 | 7793 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7794 | |
ce2cded5 L |
7795 | *** Warning: the command libtool uses to detect shared libraries, |
7796 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7797 | *** The result is that libtool may fail to recognize shared libraries | |
7798 | *** as such. This will affect the creation of libtool libraries that | |
7799 | *** depend on shared libraries, but programs linked with such libtool | |
7800 | *** libraries will work regardless of this problem. Nevertheless, you | |
7801 | *** may want to report the problem to your system manager and/or to | |
7802 | *** bug-libtool@gnu.org | |
d7040cdb | 7803 | |
ce2cded5 L |
7804 | _LT_EOF |
7805 | fi ;; | |
7806 | esac | |
d7040cdb | 7807 | fi |
ce2cded5 | 7808 | break |
d7040cdb | 7809 | fi |
ce2cded5 L |
7810 | done |
7811 | IFS="$lt_save_ifs" | |
7812 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7813 | ;; | |
7814 | esac | |
7815 | fi | |
d7040cdb | 7816 | |
ce2cded5 L |
7817 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7818 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7820 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7821 | else |
81ecdfbb RW |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7823 | $as_echo "no" >&6; } | |
ce2cded5 | 7824 | fi |
d7040cdb | 7825 | |
d7040cdb | 7826 | |
d7040cdb | 7827 | |
d7040cdb | 7828 | |
d7040cdb | 7829 | |
ce2cded5 L |
7830 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7831 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7833 | $as_echo_n "checking for file... " >&6; } | |
7834 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7835 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7836 | else |
7837 | case $MAGIC_CMD in | |
7838 | [\\/*] | ?:[\\/]*) | |
7839 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7840 | ;; | |
7841 | *) | |
7842 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7843 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7844 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7845 | for ac_dir in $ac_dummy; do | |
7846 | IFS="$lt_save_ifs" | |
7847 | test -z "$ac_dir" && ac_dir=. | |
7848 | if test -f $ac_dir/file; then | |
7849 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7850 | if test -n "$file_magic_test_file"; then | |
7851 | case $deplibs_check_method in | |
7852 | "file_magic "*) | |
7853 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7854 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7855 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7856 | $EGREP "$file_magic_regex" > /dev/null; then | |
7857 | : | |
d7040cdb | 7858 | else |
ce2cded5 L |
7859 | cat <<_LT_EOF 1>&2 |
7860 | ||
7861 | *** Warning: the command libtool uses to detect shared libraries, | |
7862 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7863 | *** The result is that libtool may fail to recognize shared libraries | |
7864 | *** as such. This will affect the creation of libtool libraries that | |
7865 | *** depend on shared libraries, but programs linked with such libtool | |
7866 | *** libraries will work regardless of this problem. Nevertheless, you | |
7867 | *** may want to report the problem to your system manager and/or to | |
7868 | *** bug-libtool@gnu.org | |
7869 | ||
7870 | _LT_EOF | |
7871 | fi ;; | |
d7040cdb | 7872 | esac |
d7040cdb | 7873 | fi |
ce2cded5 L |
7874 | break |
7875 | fi | |
7876 | done | |
7877 | IFS="$lt_save_ifs" | |
7878 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7879 | ;; | |
7880 | esac | |
7881 | fi | |
d7040cdb | 7882 | |
ce2cded5 L |
7883 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7884 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7886 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7887 | else |
81ecdfbb RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7889 | $as_echo "no" >&6; } | |
ce2cded5 | 7890 | fi |
d7040cdb | 7891 | |
d7040cdb | 7892 | |
ce2cded5 L |
7893 | else |
7894 | MAGIC_CMD=: | |
7895 | fi | |
d7040cdb | 7896 | fi |
d7040cdb | 7897 | |
ce2cded5 L |
7898 | fi |
7899 | ;; | |
7900 | esac | |
d7040cdb | 7901 | |
ce2cded5 | 7902 | # Use C for the default configuration in the libtool script |
d7040cdb | 7903 | |
ce2cded5 L |
7904 | lt_save_CC="$CC" |
7905 | ac_ext=c | |
7906 | ac_cpp='$CPP $CPPFLAGS' | |
7907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7910 | |
d7040cdb | 7911 | |
ce2cded5 L |
7912 | # Source file extension for C test sources. |
7913 | ac_ext=c | |
d7040cdb | 7914 | |
ce2cded5 L |
7915 | # Object file extension for compiled C test sources. |
7916 | objext=o | |
7917 | objext=$objext | |
d7040cdb | 7918 | |
ce2cded5 L |
7919 | # Code to be used in simple compile tests |
7920 | lt_simple_compile_test_code="int some_variable = 0;" | |
7921 | ||
7922 | # Code to be used in simple link tests | |
7923 | lt_simple_link_test_code='int main(){return(0);}' | |
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | # If no C compiler was specified, use CC. | |
7932 | LTCC=${LTCC-"$CC"} | |
7933 | ||
7934 | # If no C compiler flags were specified, use CFLAGS. | |
7935 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7936 | ||
7937 | # Allow CC to be a program name with arguments. | |
7938 | compiler=$CC | |
7939 | ||
7940 | # Save the default compiler, since it gets overwritten when the other | |
7941 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7942 | compiler_DEFAULT=$CC | |
7943 | ||
7944 | # save warnings/boilerplate of simple test code | |
7945 | ac_outfile=conftest.$ac_objext | |
7946 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7947 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7948 | _lt_compiler_boilerplate=`cat conftest.err` | |
7949 | $RM conftest* | |
7950 | ||
7951 | ac_outfile=conftest.$ac_objext | |
7952 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7953 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7954 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7955 | $RM -r conftest* |
ce2cded5 L |
7956 | |
7957 | ||
f2c621e4 AS |
7958 | ## CAVEAT EMPTOR: |
7959 | ## There is no encapsulation within the following macros, do not change | |
7960 | ## the running order or otherwise move them around unless you know exactly | |
7961 | ## what you are doing... | |
ce2cded5 L |
7962 | if test -n "$compiler"; then |
7963 | ||
7964 | lt_prog_compiler_no_builtin_flag= | |
7965 | ||
7966 | if test "$GCC" = yes; then | |
3725885a RW |
7967 | case $cc_basename in |
7968 | nvcc*) | |
7969 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7970 | *) | |
7971 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7972 | esac | |
ce2cded5 | 7973 | |
81ecdfbb RW |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7975 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7976 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
7977 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7978 | else |
7979 | lt_cv_prog_compiler_rtti_exceptions=no | |
7980 | ac_outfile=conftest.$ac_objext | |
7981 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7982 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7983 | # Insert the option either (1) after the last *FLAGS variable, or | |
7984 | # (2) before a word containing "conftest.", or (3) at the end. | |
7985 | # Note that $ac_compile itself does not contain backslashes and begins | |
7986 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7987 | # The option is referenced via a variable to avoid confusing sed. | |
7988 | lt_compile=`echo "$ac_compile" | $SED \ | |
7989 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7990 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7991 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 7992 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
7993 | (eval "$lt_compile" 2>conftest.err) |
7994 | ac_status=$? | |
7995 | cat conftest.err >&5 | |
3725885a | 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
7997 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7998 | # The compiler can only warn and ignore the option if not recognized | |
7999 | # So say no if there are warnings other than the usual output. | |
3725885a | 8000 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8001 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8002 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8003 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8004 | fi | |
8005 | fi | |
8006 | $RM conftest* | |
8007 | ||
8008 | fi | |
81ecdfbb RW |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8010 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ce2cded5 L |
8011 | |
8012 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8013 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8014 | else | |
8015 | : | |
8016 | fi | |
8017 | ||
8018 | fi | |
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | lt_prog_compiler_wl= | |
8026 | lt_prog_compiler_pic= | |
8027 | lt_prog_compiler_static= | |
8028 | ||
f2c621e4 AS |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8030 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
ce2cded5 L |
8031 | |
8032 | if test "$GCC" = yes; then | |
8033 | lt_prog_compiler_wl='-Wl,' | |
8034 | lt_prog_compiler_static='-static' | |
8035 | ||
8036 | case $host_os in | |
8037 | aix*) | |
8038 | # All AIX code is PIC. | |
8039 | if test "$host_cpu" = ia64; then | |
8040 | # AIX 5 now supports IA64 processor | |
8041 | lt_prog_compiler_static='-Bstatic' | |
8042 | fi | |
6c9c0a50 | 8043 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 8044 | ;; |
d7040cdb SE |
8045 | |
8046 | amigaos*) | |
718a6fd8 SE |
8047 | case $host_cpu in |
8048 | powerpc) | |
8049 | # see comment about AmigaOS4 .so support | |
8050 | lt_prog_compiler_pic='-fPIC' | |
8051 | ;; | |
8052 | m68k) | |
8053 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8054 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8055 | # like `-m68040'. | |
8056 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8057 | ;; | |
8058 | esac | |
d7040cdb SE |
8059 | ;; |
8060 | ||
ce2cded5 L |
8061 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8062 | # PIC is the default for these OSes. | |
d7040cdb SE |
8063 | ;; |
8064 | ||
718a6fd8 | 8065 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8066 | # This hack is so that the source file can tell whether it is being |
8067 | # built for inclusion in a dll (and should export symbols for example). | |
8068 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8069 | # (--disable-auto-import) libraries | |
8070 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8071 | ;; |
8072 | ||
8073 | darwin* | rhapsody*) | |
ce2cded5 L |
8074 | # PIC is the default on this platform |
8075 | # Common symbols not allowed in MH_DYLIB files | |
8076 | lt_prog_compiler_pic='-fno-common' | |
8077 | ;; | |
8078 | ||
3725885a RW |
8079 | haiku*) |
8080 | # PIC is the default for Haiku. | |
8081 | # The "-static" flag exists, but is broken. | |
8082 | lt_prog_compiler_static= | |
8083 | ;; | |
8084 | ||
ce2cded5 | 8085 | hpux*) |
718a6fd8 SE |
8086 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8087 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8088 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8089 | case $host_cpu in |
718a6fd8 | 8090 | hppa*64*) |
ce2cded5 | 8091 | # +Z the default |
d7040cdb | 8092 | ;; |
ce2cded5 L |
8093 | *) |
8094 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8095 | ;; |
8096 | esac | |
ce2cded5 | 8097 | ;; |
d7040cdb | 8098 | |
ce2cded5 L |
8099 | interix[3-9]*) |
8100 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8101 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8102 | ;; |
8103 | ||
ce2cded5 L |
8104 | msdosdjgpp*) |
8105 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8106 | # on systems that don't support them. | |
8107 | lt_prog_compiler_can_build_shared=no | |
8108 | enable_shared=no | |
d7040cdb SE |
8109 | ;; |
8110 | ||
ce2cded5 L |
8111 | *nto* | *qnx*) |
8112 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8113 | # it will coredump. | |
8114 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8115 | ;; |
8116 | ||
ce2cded5 L |
8117 | sysv4*MP*) |
8118 | if test -d /usr/nec; then | |
8119 | lt_prog_compiler_pic=-Kconform_pic | |
8120 | fi | |
d7040cdb SE |
8121 | ;; |
8122 | ||
ce2cded5 L |
8123 | *) |
8124 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8125 | ;; |
ce2cded5 | 8126 | esac |
3725885a RW |
8127 | |
8128 | case $cc_basename in | |
8129 | nvcc*) # Cuda Compiler Driver 2.2 | |
8130 | lt_prog_compiler_wl='-Xlinker ' | |
8131 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8132 | ;; | |
8133 | esac | |
ce2cded5 L |
8134 | else |
8135 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8136 | case $host_os in | |
8137 | aix*) | |
8138 | lt_prog_compiler_wl='-Wl,' | |
8139 | if test "$host_cpu" = ia64; then | |
8140 | # AIX 5 now supports IA64 processor | |
8141 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8142 | else |
ce2cded5 | 8143 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8144 | fi |
ce2cded5 | 8145 | ;; |
d7040cdb | 8146 | |
718a6fd8 | 8147 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8148 | # This hack is so that the source file can tell whether it is being |
8149 | # built for inclusion in a dll (and should export symbols for example). | |
8150 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8151 | ;; |
8152 | ||
ce2cded5 L |
8153 | hpux9* | hpux10* | hpux11*) |
8154 | lt_prog_compiler_wl='-Wl,' | |
8155 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8156 | # not for PA HP-UX. | |
8157 | case $host_cpu in | |
8158 | hppa*64*|ia64*) | |
8159 | # +Z the default | |
8160 | ;; | |
8161 | *) | |
8162 | lt_prog_compiler_pic='+Z' | |
8163 | ;; | |
8164 | esac | |
8165 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8166 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8167 | ;; |
8168 | ||
ce2cded5 L |
8169 | irix5* | irix6* | nonstopux*) |
8170 | lt_prog_compiler_wl='-Wl,' | |
8171 | # PIC (with -KPIC) is the default. | |
8172 | lt_prog_compiler_static='-non_shared' | |
8173 | ;; | |
d7040cdb | 8174 | |
58e24671 | 8175 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8176 | case $cc_basename in |
718a6fd8 SE |
8177 | # old Intel for x86_64 which still supported -KPIC. |
8178 | ecc*) | |
ce2cded5 L |
8179 | lt_prog_compiler_wl='-Wl,' |
8180 | lt_prog_compiler_pic='-KPIC' | |
8181 | lt_prog_compiler_static='-static' | |
8182 | ;; | |
718a6fd8 SE |
8183 | # icc used to be incompatible with GCC. |
8184 | # ICC 10 doesn't accept -KPIC any more. | |
8185 | icc* | ifort*) | |
8186 | lt_prog_compiler_wl='-Wl,' | |
8187 | lt_prog_compiler_pic='-fPIC' | |
8188 | lt_prog_compiler_static='-static' | |
8189 | ;; | |
8190 | # Lahey Fortran 8.1. | |
8191 | lf95*) | |
8192 | lt_prog_compiler_wl='-Wl,' | |
8193 | lt_prog_compiler_pic='--shared' | |
8194 | lt_prog_compiler_static='--static' | |
8195 | ;; | |
3725885a | 8196 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
8197 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8198 | # which looks to be a dead project) | |
8199 | lt_prog_compiler_wl='-Wl,' | |
8200 | lt_prog_compiler_pic='-fpic' | |
8201 | lt_prog_compiler_static='-Bstatic' | |
8202 | ;; | |
8203 | ccc*) | |
8204 | lt_prog_compiler_wl='-Wl,' | |
8205 | # All Alpha code is PIC. | |
8206 | lt_prog_compiler_static='-non_shared' | |
8207 | ;; | |
3725885a RW |
8208 | xl* | bgxl* | bgf* | mpixl*) |
8209 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
8210 | lt_prog_compiler_wl='-Wl,' |
8211 | lt_prog_compiler_pic='-qpic' | |
8212 | lt_prog_compiler_static='-qstaticlink' | |
8213 | ;; | |
ce2cded5 L |
8214 | *) |
8215 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8216 | *Sun\ F* | *Sun*Fortran*) |
8217 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
8218 | lt_prog_compiler_pic='-KPIC' |
8219 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8220 | lt_prog_compiler_wl='' |
d7040cdb | 8221 | ;; |
3725885a RW |
8222 | *Sun\ C*) |
8223 | # Sun C 5.9 | |
ce2cded5 L |
8224 | lt_prog_compiler_pic='-KPIC' |
8225 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8226 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8227 | ;; |
8228 | esac | |
ce2cded5 L |
8229 | ;; |
8230 | esac | |
d7040cdb SE |
8231 | ;; |
8232 | ||
ce2cded5 L |
8233 | newsos6) |
8234 | lt_prog_compiler_pic='-KPIC' | |
8235 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8236 | ;; |
8237 | ||
ce2cded5 L |
8238 | *nto* | *qnx*) |
8239 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8240 | # it will coredump. | |
8241 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8242 | ;; |
8243 | ||
ce2cded5 L |
8244 | osf3* | osf4* | osf5*) |
8245 | lt_prog_compiler_wl='-Wl,' | |
8246 | # All OSF/1 code is PIC. | |
8247 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8248 | ;; |
8249 | ||
ce2cded5 L |
8250 | rdos*) |
8251 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8252 | ;; |
8253 | ||
8254 | solaris*) | |
ce2cded5 L |
8255 | lt_prog_compiler_pic='-KPIC' |
8256 | lt_prog_compiler_static='-Bstatic' | |
8257 | case $cc_basename in | |
f2c621e4 | 8258 | f77* | f90* | f95*) |
ce2cded5 | 8259 | lt_prog_compiler_wl='-Qoption ld ';; |
d7040cdb | 8260 | *) |
ce2cded5 | 8261 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8262 | esac |
d7040cdb SE |
8263 | ;; |
8264 | ||
8265 | sunos4*) | |
ce2cded5 L |
8266 | lt_prog_compiler_wl='-Qoption ld ' |
8267 | lt_prog_compiler_pic='-PIC' | |
8268 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8269 | ;; |
8270 | ||
ce2cded5 L |
8271 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8272 | lt_prog_compiler_wl='-Wl,' | |
8273 | lt_prog_compiler_pic='-KPIC' | |
8274 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8275 | ;; |
8276 | ||
8277 | sysv4*MP*) | |
ce2cded5 L |
8278 | if test -d /usr/nec ;then |
8279 | lt_prog_compiler_pic='-Kconform_pic' | |
8280 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8281 | fi |
8282 | ;; | |
8283 | ||
ce2cded5 L |
8284 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8285 | lt_prog_compiler_wl='-Wl,' | |
8286 | lt_prog_compiler_pic='-KPIC' | |
8287 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8288 | ;; |
8289 | ||
ce2cded5 L |
8290 | unicos*) |
8291 | lt_prog_compiler_wl='-Wl,' | |
8292 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8293 | ;; |
8294 | ||
8295 | uts4*) | |
ce2cded5 L |
8296 | lt_prog_compiler_pic='-pic' |
8297 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8298 | ;; |
8299 | ||
8300 | *) | |
ce2cded5 | 8301 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8302 | ;; |
8303 | esac | |
d7040cdb SE |
8304 | fi |
8305 | ||
ce2cded5 L |
8306 | case $host_os in |
8307 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8308 | *djgpp*) | |
8309 | lt_prog_compiler_pic= | |
8310 | ;; | |
8311 | *) | |
8312 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8313 | ;; | |
8314 | esac | |
f2c621e4 AS |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8316 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8317 | ||
8318 | ||
8319 | ||
8320 | ||
d7040cdb SE |
8321 | |
8322 | ||
8323 | # | |
ce2cded5 | 8324 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8325 | # |
ce2cded5 | 8326 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8328 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8329 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8330 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8331 | else |
718a6fd8 | 8332 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8333 | ac_outfile=conftest.$ac_objext |
8334 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8335 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8336 | # Insert the option either (1) after the last *FLAGS variable, or | |
8337 | # (2) before a word containing "conftest.", or (3) at the end. | |
8338 | # Note that $ac_compile itself does not contain backslashes and begins | |
8339 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8340 | # The option is referenced via a variable to avoid confusing sed. | |
8341 | lt_compile=`echo "$ac_compile" | $SED \ | |
8342 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8343 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8344 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8345 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8346 | (eval "$lt_compile" 2>conftest.err) |
8347 | ac_status=$? | |
8348 | cat conftest.err >&5 | |
3725885a | 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8350 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8351 | # The compiler can only warn and ignore the option if not recognized | |
8352 | # So say no if there are warnings other than the usual output. | |
3725885a | 8353 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8354 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8355 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8356 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8357 | fi |
8358 | fi | |
8359 | $RM conftest* | |
d7040cdb | 8360 | |
ce2cded5 | 8361 | fi |
81ecdfbb RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8363 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8364 | |
718a6fd8 | 8365 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8366 | case $lt_prog_compiler_pic in |
8367 | "" | " "*) ;; | |
8368 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8369 | esac | |
8370 | else | |
8371 | lt_prog_compiler_pic= | |
8372 | lt_prog_compiler_can_build_shared=no | |
8373 | fi | |
d7040cdb | 8374 | |
ce2cded5 | 8375 | fi |
d7040cdb SE |
8376 | |
8377 | ||
8378 | ||
8379 | ||
8380 | ||
8381 | ||
ce2cded5 L |
8382 | # |
8383 | # Check to make sure the static flag actually works. | |
8384 | # | |
8385 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8387 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8388 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8389 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8390 | else |
718a6fd8 | 8391 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8392 | save_LDFLAGS="$LDFLAGS" |
8393 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8394 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8395 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8396 | # The linker can only warn and ignore the option if not recognized | |
8397 | # So say no if there are warnings | |
8398 | if test -s conftest.err; then | |
8399 | # Append any errors to the config.log. | |
8400 | cat conftest.err 1>&5 | |
3725885a | 8401 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
8402 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8403 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8404 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8405 | fi |
8406 | else | |
718a6fd8 | 8407 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8408 | fi |
8409 | fi | |
718a6fd8 | 8410 | $RM -r conftest* |
ce2cded5 | 8411 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8412 | |
ce2cded5 | 8413 | fi |
81ecdfbb RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8415 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8416 | |
718a6fd8 | 8417 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8418 | : |
8419 | else | |
8420 | lt_prog_compiler_static= | |
8421 | fi | |
d7040cdb SE |
8422 | |
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
81ecdfbb RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8430 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8431 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8432 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8433 | else |
8434 | lt_cv_prog_compiler_c_o=no | |
8435 | $RM -r conftest 2>/dev/null | |
8436 | mkdir conftest | |
8437 | cd conftest | |
8438 | mkdir out | |
8439 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8440 | |
ce2cded5 L |
8441 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8442 | # Insert the option either (1) after the last *FLAGS variable, or | |
8443 | # (2) before a word containing "conftest.", or (3) at the end. | |
8444 | # Note that $ac_compile itself does not contain backslashes and begins | |
8445 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8446 | lt_compile=`echo "$ac_compile" | $SED \ | |
8447 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8448 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8449 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8450 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8451 | (eval "$lt_compile" 2>out/conftest.err) |
8452 | ac_status=$? | |
8453 | cat out/conftest.err >&5 | |
3725885a | 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8455 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8456 | then | |
8457 | # The compiler can only warn and ignore the option if not recognized | |
8458 | # So say no if there are warnings | |
3725885a | 8459 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8460 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8461 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8462 | lt_cv_prog_compiler_c_o=yes | |
8463 | fi | |
8464 | fi | |
8465 | chmod u+w . 2>&5 | |
8466 | $RM conftest* | |
8467 | # SGI C++ compiler will create directory out/ii_files/ for | |
8468 | # template instantiation | |
8469 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8470 | $RM out/* && rmdir out | |
8471 | cd .. | |
8472 | $RM -r conftest | |
8473 | $RM conftest* | |
d7040cdb | 8474 | |
ce2cded5 | 8475 | fi |
81ecdfbb RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8477 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8478 | |
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
81ecdfbb RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8485 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8486 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8487 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8488 | else |
8489 | lt_cv_prog_compiler_c_o=no | |
8490 | $RM -r conftest 2>/dev/null | |
8491 | mkdir conftest | |
8492 | cd conftest | |
8493 | mkdir out | |
8494 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8495 | |
ce2cded5 L |
8496 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8497 | # Insert the option either (1) after the last *FLAGS variable, or | |
8498 | # (2) before a word containing "conftest.", or (3) at the end. | |
8499 | # Note that $ac_compile itself does not contain backslashes and begins | |
8500 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8501 | lt_compile=`echo "$ac_compile" | $SED \ | |
8502 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8503 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8504 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8505 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8506 | (eval "$lt_compile" 2>out/conftest.err) |
8507 | ac_status=$? | |
8508 | cat out/conftest.err >&5 | |
3725885a | 8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8510 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8511 | then | |
8512 | # The compiler can only warn and ignore the option if not recognized | |
8513 | # So say no if there are warnings | |
3725885a | 8514 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8515 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8516 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8517 | lt_cv_prog_compiler_c_o=yes | |
8518 | fi | |
8519 | fi | |
8520 | chmod u+w . 2>&5 | |
8521 | $RM conftest* | |
8522 | # SGI C++ compiler will create directory out/ii_files/ for | |
8523 | # template instantiation | |
8524 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8525 | $RM out/* && rmdir out | |
8526 | cd .. | |
8527 | $RM -r conftest | |
8528 | $RM conftest* | |
d7040cdb | 8529 | |
ce2cded5 | 8530 | fi |
81ecdfbb RW |
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8532 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8533 | |
8534 | ||
8535 | ||
8536 | ||
ce2cded5 L |
8537 | hard_links="nottested" |
8538 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8539 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8541 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8542 | hard_links=yes |
8543 | $RM conftest* | |
8544 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8545 | touch conftest.a | |
8546 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8547 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8549 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8550 | if test "$hard_links" = no; then |
81ecdfbb RW |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8552 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 L |
8553 | need_locks=warn |
8554 | fi | |
8555 | else | |
8556 | need_locks=no | |
8557 | fi | |
d7040cdb SE |
8558 | |
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
81ecdfbb RW |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8565 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8566 | |
ce2cded5 L |
8567 | runpath_var= |
8568 | allow_undefined_flag= | |
8569 | always_export_symbols=no | |
8570 | archive_cmds= | |
8571 | archive_expsym_cmds= | |
8572 | compiler_needs_object=no | |
8573 | enable_shared_with_static_runtimes=no | |
8574 | export_dynamic_flag_spec= | |
8575 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8576 | hardcode_automatic=no | |
8577 | hardcode_direct=no | |
8578 | hardcode_direct_absolute=no | |
8579 | hardcode_libdir_flag_spec= | |
8580 | hardcode_libdir_flag_spec_ld= | |
8581 | hardcode_libdir_separator= | |
8582 | hardcode_minus_L=no | |
8583 | hardcode_shlibpath_var=unsupported | |
8584 | inherit_rpath=no | |
8585 | link_all_deplibs=unknown | |
8586 | module_cmds= | |
8587 | module_expsym_cmds= | |
8588 | old_archive_from_new_cmds= | |
8589 | old_archive_from_expsyms_cmds= | |
8590 | thread_safe_flag_spec= | |
8591 | whole_archive_flag_spec= | |
8592 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8593 | # included in the symbol list | |
8594 | include_expsyms= | |
8595 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8596 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8597 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8598 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8599 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8600 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8601 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8602 | # the symbol is explicitly referenced. Since portable code cannot | |
8603 | # rely on this symbol name, it's probably fine to never include it in | |
8604 | # preloaded symbol tables. | |
718a6fd8 | 8605 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8606 | extract_expsyms_cmds= |
d7040cdb | 8607 | |
ce2cded5 | 8608 | case $host_os in |
718a6fd8 | 8609 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8610 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8611 | # When not using gcc, we currently assume that we are using | |
8612 | # Microsoft Visual C++. | |
8613 | if test "$GCC" != yes; then | |
8614 | with_gnu_ld=no | |
8615 | fi | |
8616 | ;; | |
8617 | interix*) | |
8618 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8619 | with_gnu_ld=yes | |
8620 | ;; | |
8621 | openbsd*) | |
8622 | with_gnu_ld=no | |
8623 | ;; | |
8624 | esac | |
d7040cdb | 8625 | |
ce2cded5 | 8626 | ld_shlibs=yes |
3725885a RW |
8627 | |
8628 | # On some targets, GNU ld is compatible enough with the native linker | |
8629 | # that we're better off using the native interface for both. | |
8630 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 8631 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8632 | case $host_os in |
8633 | aix*) | |
8634 | # The AIX port of GNU ld has always aspired to compatibility | |
8635 | # with the native linker. However, as the warning in the GNU ld | |
8636 | # block says, versions before 2.19.5* couldn't really create working | |
8637 | # shared libraries, regardless of the interface used. | |
8638 | case `$LD -v 2>&1` in | |
8639 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8640 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8641 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8642 | *) | |
8643 | lt_use_gnu_ld_interface=yes | |
8644 | ;; | |
8645 | esac | |
8646 | ;; | |
8647 | *) | |
8648 | lt_use_gnu_ld_interface=yes | |
8649 | ;; | |
8650 | esac | |
8651 | fi | |
8652 | ||
8653 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
8654 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8655 | wlarc='${wl}' | |
d7040cdb | 8656 | |
ce2cded5 L |
8657 | # Set some defaults for GNU ld with shared library support. These |
8658 | # are reset later if shared libraries are not supported. Putting them | |
8659 | # here allows them to be overridden if necessary. | |
8660 | runpath_var=LD_RUN_PATH | |
8661 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8662 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8663 | # ancient GNU ld didn't support --whole-archive et. al. | |
8664 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8665 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8666 | else | |
8667 | whole_archive_flag_spec= | |
8668 | fi | |
8669 | supports_anon_versioning=no | |
8670 | case `$LD -v 2>&1` in | |
3725885a | 8671 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
8672 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8673 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8674 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8675 | *\ 2.11.*) ;; # other 2.11 versions | |
8676 | *) supports_anon_versioning=yes ;; | |
8677 | esac | |
d7040cdb | 8678 | |
ce2cded5 L |
8679 | # See if GNU ld supports shared libraries. |
8680 | case $host_os in | |
50e7d84b | 8681 | aix[3-9]*) |
ce2cded5 L |
8682 | # On AIX/PPC, the GNU linker is very broken |
8683 | if test "$host_cpu" != ia64; then | |
8684 | ld_shlibs=no | |
8685 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8686 | |
3725885a | 8687 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
8688 | *** to be unable to reliably create shared libraries on AIX. |
8689 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8690 | *** really care for shared libraries, you may want to install binutils |
8691 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8692 | *** You will then need to restart the configuration process. | |
d7040cdb | 8693 | |
ce2cded5 L |
8694 | _LT_EOF |
8695 | fi | |
8696 | ;; | |
d7040cdb | 8697 | |
ce2cded5 | 8698 | amigaos*) |
718a6fd8 SE |
8699 | case $host_cpu in |
8700 | powerpc) | |
8701 | # see comment about AmigaOS4 .so support | |
8702 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8703 | archive_expsym_cmds='' | |
8704 | ;; | |
8705 | m68k) | |
8706 | 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)' | |
8707 | hardcode_libdir_flag_spec='-L$libdir' | |
8708 | hardcode_minus_L=yes | |
8709 | ;; | |
8710 | esac | |
ce2cded5 | 8711 | ;; |
d7040cdb | 8712 | |
ce2cded5 L |
8713 | beos*) |
8714 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8715 | allow_undefined_flag=unsupported | |
8716 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8717 | # support --undefined. This deserves some investigation. FIXME | |
8718 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8719 | else | |
8720 | ld_shlibs=no | |
8721 | fi | |
8722 | ;; | |
d7040cdb | 8723 | |
718a6fd8 | 8724 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8725 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8726 | # as there is no search path for DLLs. | |
8727 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8728 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
8729 | allow_undefined_flag=unsupported |
8730 | always_export_symbols=no | |
8731 | enable_shared_with_static_runtimes=yes | |
f2c621e4 | 8732 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d7040cdb | 8733 | |
ce2cded5 L |
8734 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8735 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8736 | # If the export-symbols file already is a .def file (1st line | |
8737 | # is EXPORTS), use it as is; otherwise, prepend... | |
8738 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8739 | cp $export_symbols $output_objdir/$soname.def; | |
8740 | else | |
8741 | echo EXPORTS > $output_objdir/$soname.def; | |
8742 | cat $export_symbols >> $output_objdir/$soname.def; | |
8743 | fi~ | |
8744 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8745 | else | |
8746 | ld_shlibs=no | |
8747 | fi | |
8748 | ;; | |
d7040cdb | 8749 | |
3725885a RW |
8750 | haiku*) |
8751 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8752 | link_all_deplibs=yes | |
8753 | ;; | |
8754 | ||
ce2cded5 L |
8755 | interix[3-9]*) |
8756 | hardcode_direct=no | |
8757 | hardcode_shlibpath_var=no | |
8758 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8759 | export_dynamic_flag_spec='${wl}-E' | |
8760 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8761 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8762 | # default) and relocated if they conflict, which is a slow very memory | |
8763 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8764 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8765 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8766 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8767 | 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' | |
8768 | ;; | |
d7040cdb | 8769 | |
58e24671 | 8770 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8771 | tmp_diet=no |
8772 | if test "$host_os" = linux-dietlibc; then | |
8773 | case $cc_basename in | |
8774 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8775 | esac | |
8776 | fi | |
8777 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8778 | && test "$tmp_diet" = no | |
8779 | then | |
6e733cce | 8780 | tmp_addflag=' $pic_flag' |
718a6fd8 | 8781 | tmp_sharedflag='-shared' |
ce2cded5 L |
8782 | case $cc_basename,$host_cpu in |
8783 | pgcc*) # Portland Group C compiler | |
3725885a | 8784 | 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' |
ce2cded5 L |
8785 | tmp_addflag=' $pic_flag' |
8786 | ;; | |
3725885a RW |
8787 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8788 | # Portland Group f77 and f90 compilers | |
8789 | 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' | |
ce2cded5 L |
8790 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8791 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8792 | tmp_addflag=' -i_dynamic' ;; | |
8793 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8794 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8795 | ifc* | ifort*) # Intel Fortran compiler | |
8796 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8797 | lf95*) # Lahey Fortran 8.1 |
8798 | whole_archive_flag_spec= | |
8799 | tmp_sharedflag='--shared' ;; | |
3725885a | 8800 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8801 | tmp_sharedflag='-qmkshrobj' |
8802 | tmp_addflag= ;; | |
3725885a RW |
8803 | nvcc*) # Cuda Compiler Driver 2.2 |
8804 | 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' | |
8805 | compiler_needs_object=yes | |
8806 | ;; | |
ce2cded5 L |
8807 | esac |
8808 | case `$CC -V 2>&1 | sed 5q` in | |
8809 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8810 | 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' |
ce2cded5 L |
8811 | compiler_needs_object=yes |
8812 | tmp_sharedflag='-G' ;; | |
8813 | *Sun\ F*) # Sun Fortran 8.3 | |
8814 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8815 | esac |
8816 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8817 | |
ce2cded5 L |
8818 | if test "x$supports_anon_versioning" = xyes; then |
8819 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8820 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8821 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8822 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8823 | fi | |
718a6fd8 SE |
8824 | |
8825 | case $cc_basename in | |
3725885a | 8826 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
8827 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8828 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8829 | hardcode_libdir_flag_spec= | |
8830 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
f2c621e4 | 8831 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
718a6fd8 SE |
8832 | if test "x$supports_anon_versioning" = xyes; then |
8833 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8834 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8835 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
f2c621e4 | 8836 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
718a6fd8 SE |
8837 | fi |
8838 | ;; | |
8839 | esac | |
ce2cded5 L |
8840 | else |
8841 | ld_shlibs=no | |
8842 | fi | |
8843 | ;; | |
d7040cdb | 8844 | |
ce2cded5 L |
8845 | netbsd*) |
8846 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8847 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8848 | wlarc= | |
8849 | else | |
f2c621e4 AS |
8850 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8851 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8852 | fi |
8853 | ;; | |
d7040cdb | 8854 | |
ce2cded5 L |
8855 | solaris*) |
8856 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8857 | ld_shlibs=no | |
8858 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8859 | |
ce2cded5 L |
8860 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8861 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8862 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8863 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8864 | *** your PATH or compiler configuration so that the native linker is | |
8865 | *** used, and then restart. | |
d7040cdb | 8866 | |
ce2cded5 L |
8867 | _LT_EOF |
8868 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8870 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8871 | else |
8872 | ld_shlibs=no | |
8873 | fi | |
8874 | ;; | |
d7040cdb | 8875 | |
ce2cded5 L |
8876 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8877 | case `$LD -v 2>&1` in | |
8878 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8879 | ld_shlibs=no | |
8880 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8881 | |
ce2cded5 L |
8882 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8883 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8884 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8885 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8886 | *** your PATH or compiler configuration so that the native linker is | |
8887 | *** used, and then restart. | |
d7040cdb | 8888 | |
ce2cded5 L |
8889 | _LT_EOF |
8890 | ;; | |
8891 | *) | |
8892 | # For security reasons, it is highly recommended that you always | |
8893 | # use absolute paths for naming shared libraries, and exclude the | |
8894 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8895 | # requires that you compile everything twice, which is a pain. | |
8896 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8897 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8898 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8899 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8900 | else | |
8901 | ld_shlibs=no | |
8902 | fi | |
8903 | ;; | |
8904 | esac | |
8905 | ;; | |
d7040cdb | 8906 | |
ce2cded5 L |
8907 | sunos4*) |
8908 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8909 | wlarc= | |
8910 | hardcode_direct=yes | |
8911 | hardcode_shlibpath_var=no | |
8912 | ;; | |
d7040cdb | 8913 | |
ce2cded5 L |
8914 | *) |
8915 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8916 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8917 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8918 | else |
8919 | ld_shlibs=no | |
8920 | fi | |
8921 | ;; | |
8922 | esac | |
d7040cdb | 8923 | |
ce2cded5 L |
8924 | if test "$ld_shlibs" = no; then |
8925 | runpath_var= | |
8926 | hardcode_libdir_flag_spec= | |
8927 | export_dynamic_flag_spec= | |
8928 | whole_archive_flag_spec= | |
8929 | fi | |
8930 | else | |
8931 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8932 | case $host_os in | |
8933 | aix3*) | |
8934 | allow_undefined_flag=unsupported | |
8935 | always_export_symbols=yes | |
8936 | 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' | |
8937 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8938 | # are no directories specified by -L. | |
8939 | hardcode_minus_L=yes | |
8940 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8941 | # Neither direct hardcoding nor static linking is supported with a | |
8942 | # broken collect2. | |
8943 | hardcode_direct=unsupported | |
8944 | fi | |
8945 | ;; | |
d7040cdb | 8946 | |
50e7d84b | 8947 | aix[4-9]*) |
ce2cded5 L |
8948 | if test "$host_cpu" = ia64; then |
8949 | # On IA64, the linker does run time linking by default, so we don't | |
8950 | # have to do anything special. | |
8951 | aix_use_runtimelinking=no | |
8952 | exp_sym_flag='-Bexport' | |
8953 | no_entry_flag="" | |
8954 | else | |
8955 | # If we're using GNU nm, then we don't want the "-C" option. | |
8956 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
8957 | # Also, AIX nm treats weak defined symbols like other global |
8958 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 8959 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 8960 | 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' |
ce2cded5 | 8961 | else |
5c14705f | 8962 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
ce2cded5 L |
8963 | fi |
8964 | aix_use_runtimelinking=no | |
d7040cdb | 8965 | |
ce2cded5 L |
8966 | # Test if we are trying to use run time linking or normal |
8967 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8968 | # need to do runtime linking. | |
50e7d84b | 8969 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8970 | for ld_flag in $LDFLAGS; do |
8971 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8972 | aix_use_runtimelinking=yes | |
8973 | break | |
8974 | fi | |
8975 | done | |
8976 | ;; | |
8977 | esac | |
d7040cdb | 8978 | |
ce2cded5 L |
8979 | exp_sym_flag='-bexport' |
8980 | no_entry_flag='-bnoentry' | |
8981 | fi | |
d7040cdb | 8982 | |
ce2cded5 L |
8983 | # When large executables or shared objects are built, AIX ld can |
8984 | # have problems creating the table of contents. If linking a library | |
8985 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8986 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8987 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8988 | |
ce2cded5 L |
8989 | archive_cmds='' |
8990 | hardcode_direct=yes | |
8991 | hardcode_direct_absolute=yes | |
8992 | hardcode_libdir_separator=':' | |
8993 | link_all_deplibs=yes | |
8994 | file_list_spec='${wl}-f,' | |
d7040cdb | 8995 | |
ce2cded5 L |
8996 | if test "$GCC" = yes; then |
8997 | case $host_os in aix4.[012]|aix4.[012].*) | |
8998 | # We only want to do this on AIX 4.2 and lower, the check | |
8999 | # below for broken collect2 doesn't work under 4.3+ | |
9000 | collect2name=`${CC} -print-prog-name=collect2` | |
9001 | if test -f "$collect2name" && | |
9002 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9003 | then | |
9004 | # We have reworked collect2 | |
9005 | : | |
9006 | else | |
9007 | # We have old collect2 | |
9008 | hardcode_direct=unsupported | |
9009 | # It fails to find uninstalled libraries when the uninstalled | |
9010 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9011 | # to unsupported forces relinking | |
9012 | hardcode_minus_L=yes | |
9013 | hardcode_libdir_flag_spec='-L$libdir' | |
9014 | hardcode_libdir_separator= | |
9015 | fi | |
9016 | ;; | |
9017 | esac | |
9018 | shared_flag='-shared' | |
9019 | if test "$aix_use_runtimelinking" = yes; then | |
9020 | shared_flag="$shared_flag "'${wl}-G' | |
9021 | fi | |
9022 | else | |
9023 | # not using gcc | |
9024 | if test "$host_cpu" = ia64; then | |
9025 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9026 | # chokes on -Wl,-G. The following line is correct: | |
9027 | shared_flag='-G' | |
9028 | else | |
9029 | if test "$aix_use_runtimelinking" = yes; then | |
9030 | shared_flag='${wl}-G' | |
9031 | else | |
9032 | shared_flag='${wl}-bM:SRE' | |
9033 | fi | |
9034 | fi | |
9035 | fi | |
d7040cdb | 9036 | |
718a6fd8 | 9037 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9038 | # It seems that -bexpall does not export symbols beginning with |
9039 | # underscore (_), so it is better to generate a list of symbols to export. | |
9040 | always_export_symbols=yes | |
9041 | if test "$aix_use_runtimelinking" = yes; then | |
9042 | # Warning - without using the other runtime loading flags (-brtl), | |
9043 | # -berok will link without error, but may produce a broken library. | |
9044 | allow_undefined_flag='-berok' | |
9045 | # Determine the default libpath from the value encoded in an | |
9046 | # empty executable. | |
f2c621e4 | 9047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9048 | /* end confdefs.h. */ |
d7040cdb | 9049 | |
ce2cded5 L |
9050 | int |
9051 | main () | |
9052 | { | |
d7040cdb | 9053 | |
ce2cded5 L |
9054 | ; |
9055 | return 0; | |
9056 | } | |
9057 | _ACEOF | |
81ecdfbb | 9058 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9059 | |
f2c621e4 AS |
9060 | lt_aix_libpath_sed=' |
9061 | /Import File Strings/,/^$/ { | |
9062 | /^0/ { | |
9063 | s/^0 *\(.*\)$/\1/ | |
9064 | p | |
9065 | } | |
9066 | }' | |
9067 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9068 | # Check for a 64-bit object if we didn't find anything. | |
9069 | if test -z "$aix_libpath"; then | |
9070 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9071 | fi | |
ce2cded5 | 9072 | fi |
81ecdfbb RW |
9073 | rm -f core conftest.err conftest.$ac_objext \ |
9074 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9075 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9076 | |
ce2cded5 | 9077 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9078 | 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" |
ce2cded5 L |
9079 | else |
9080 | if test "$host_cpu" = ia64; then | |
9081 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9082 | allow_undefined_flag="-z nodefs" | |
9083 | 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" | |
9084 | else | |
9085 | # Determine the default libpath from the value encoded in an | |
9086 | # empty executable. | |
f2c621e4 | 9087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9088 | /* end confdefs.h. */ |
d7040cdb | 9089 | |
ce2cded5 L |
9090 | int |
9091 | main () | |
9092 | { | |
d7040cdb | 9093 | |
ce2cded5 L |
9094 | ; |
9095 | return 0; | |
9096 | } | |
9097 | _ACEOF | |
81ecdfbb | 9098 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9099 | |
f2c621e4 AS |
9100 | lt_aix_libpath_sed=' |
9101 | /Import File Strings/,/^$/ { | |
9102 | /^0/ { | |
9103 | s/^0 *\(.*\)$/\1/ | |
9104 | p | |
9105 | } | |
9106 | }' | |
9107 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9108 | # Check for a 64-bit object if we didn't find anything. | |
9109 | if test -z "$aix_libpath"; then | |
9110 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9111 | fi | |
ce2cded5 | 9112 | fi |
81ecdfbb RW |
9113 | rm -f core conftest.err conftest.$ac_objext \ |
9114 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9115 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9116 | |
ce2cded5 L |
9117 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9118 | # Warning - without using the other run time loading flags, | |
9119 | # -berok will link without error, but may produce a broken library. | |
9120 | no_undefined_flag=' ${wl}-bernotok' | |
9121 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9122 | if test "$with_gnu_ld" = yes; then |
9123 | # We only use this code for GNU lds that support --whole-archive. | |
9124 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9125 | else | |
9126 | # Exported symbols can be pulled into shared objects from archives | |
9127 | whole_archive_flag_spec='$convenience' | |
9128 | fi | |
ce2cded5 L |
9129 | archive_cmds_need_lc=yes |
9130 | # This is similar to how AIX traditionally builds its shared libraries. | |
9131 | 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' | |
9132 | fi | |
9133 | fi | |
9134 | ;; | |
d7040cdb | 9135 | |
ce2cded5 | 9136 | amigaos*) |
718a6fd8 SE |
9137 | case $host_cpu in |
9138 | powerpc) | |
9139 | # see comment about AmigaOS4 .so support | |
9140 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9141 | archive_expsym_cmds='' | |
9142 | ;; | |
9143 | m68k) | |
9144 | 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)' | |
9145 | hardcode_libdir_flag_spec='-L$libdir' | |
9146 | hardcode_minus_L=yes | |
9147 | ;; | |
9148 | esac | |
ce2cded5 | 9149 | ;; |
d7040cdb | 9150 | |
ce2cded5 L |
9151 | bsdi[45]*) |
9152 | export_dynamic_flag_spec=-rdynamic | |
9153 | ;; | |
d7040cdb | 9154 | |
718a6fd8 | 9155 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9156 | # When not using gcc, we currently assume that we are using |
9157 | # Microsoft Visual C++. | |
9158 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9159 | # no search path for DLLs. | |
f2c621e4 AS |
9160 | hardcode_libdir_flag_spec=' ' |
9161 | allow_undefined_flag=unsupported | |
9162 | # Tell ltmain to make .lib files, not .a files. | |
9163 | libext=lib | |
9164 | # Tell ltmain to make .dll files, not .so files. | |
9165 | shrext_cmds=".dll" | |
9166 | # FIXME: Setting linknames here is a bad hack. | |
9167 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9168 | # The linker will automatically build a .lib file if we build a DLL. | |
9169 | old_archive_from_new_cmds='true' | |
9170 | # FIXME: Should let the user specify the lib program. | |
9171 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9172 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9173 | enable_shared_with_static_runtimes=yes | |
ce2cded5 | 9174 | ;; |
d7040cdb | 9175 | |
ce2cded5 | 9176 | darwin* | rhapsody*) |
d7040cdb | 9177 | |
718a6fd8 SE |
9178 | |
9179 | archive_cmds_need_lc=no | |
9180 | hardcode_direct=no | |
9181 | hardcode_automatic=yes | |
9182 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9183 | if test "$lt_cv_ld_force_load" = "yes"; then |
9184 | 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\"`' | |
9185 | else | |
9186 | whole_archive_flag_spec='' | |
9187 | fi | |
718a6fd8 SE |
9188 | link_all_deplibs=yes |
9189 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9190 | case $cc_basename in | |
9191 | ifort*) _lt_dar_can_shared=yes ;; | |
9192 | *) _lt_dar_can_shared=$GCC ;; | |
9193 | esac | |
9194 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9195 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
9196 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9197 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9198 | 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}" | |
9199 | 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}" | |
9200 | ||
9201 | else | |
9202 | ld_shlibs=no | |
9203 | fi | |
9204 | ||
ce2cded5 | 9205 | ;; |
d7040cdb | 9206 | |
ce2cded5 L |
9207 | dgux*) |
9208 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9209 | hardcode_libdir_flag_spec='-L$libdir' | |
9210 | hardcode_shlibpath_var=no | |
9211 | ;; | |
d7040cdb | 9212 | |
ce2cded5 L |
9213 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9214 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9215 | # does not break anything, and helps significantly (at the cost of a little | |
9216 | # extra space). | |
9217 | freebsd2.2*) | |
9218 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9219 | hardcode_libdir_flag_spec='-R$libdir' | |
9220 | hardcode_direct=yes | |
9221 | hardcode_shlibpath_var=no | |
9222 | ;; | |
d7040cdb | 9223 | |
ce2cded5 | 9224 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9225 | freebsd2.*) |
ce2cded5 L |
9226 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9227 | hardcode_direct=yes | |
9228 | hardcode_minus_L=yes | |
9229 | hardcode_shlibpath_var=no | |
9230 | ;; | |
d7040cdb | 9231 | |
ce2cded5 L |
9232 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9233 | freebsd* | dragonfly*) | |
f2c621e4 | 9234 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9235 | hardcode_libdir_flag_spec='-R$libdir' |
9236 | hardcode_direct=yes | |
9237 | hardcode_shlibpath_var=no | |
9238 | ;; | |
d7040cdb | 9239 | |
ce2cded5 L |
9240 | hpux9*) |
9241 | if test "$GCC" = yes; then | |
f2c621e4 | 9242 | 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' |
ce2cded5 L |
9243 | else |
9244 | 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' | |
9245 | fi | |
9246 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9247 | hardcode_libdir_separator=: | |
9248 | hardcode_direct=yes | |
d7040cdb | 9249 | |
ce2cded5 L |
9250 | # hardcode_minus_L: Not really in the search PATH, |
9251 | # but as the default location of the library. | |
9252 | hardcode_minus_L=yes | |
9253 | export_dynamic_flag_spec='${wl}-E' | |
9254 | ;; | |
d7040cdb | 9255 | |
ce2cded5 | 9256 | hpux10*) |
3725885a | 9257 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
f2c621e4 | 9258 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9259 | else |
9260 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9261 | fi | |
9262 | if test "$with_gnu_ld" = no; then | |
9263 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9264 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9265 | hardcode_libdir_separator=: | |
9266 | hardcode_direct=yes | |
9267 | hardcode_direct_absolute=yes | |
9268 | export_dynamic_flag_spec='${wl}-E' | |
9269 | # hardcode_minus_L: Not really in the search PATH, | |
9270 | # but as the default location of the library. | |
9271 | hardcode_minus_L=yes | |
9272 | fi | |
9273 | ;; | |
d7040cdb | 9274 | |
ce2cded5 | 9275 | hpux11*) |
3725885a | 9276 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9277 | case $host_cpu in |
9278 | hppa*64*) | |
9279 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9280 | ;; | |
9281 | ia64*) | |
f2c621e4 | 9282 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9283 | ;; |
9284 | *) | |
f2c621e4 | 9285 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9286 | ;; |
9287 | esac | |
9288 | else | |
9289 | case $host_cpu in | |
9290 | hppa*64*) | |
9291 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9292 | ;; | |
9293 | ia64*) | |
9294 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9295 | ;; | |
9296 | *) | |
3725885a RW |
9297 | |
9298 | # Older versions of the 11.00 compiler do not understand -b yet | |
9299 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9301 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9302 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9303 | $as_echo_n "(cached) " >&6 | |
9304 | else | |
9305 | lt_cv_prog_compiler__b=no | |
9306 | save_LDFLAGS="$LDFLAGS" | |
9307 | LDFLAGS="$LDFLAGS -b" | |
9308 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9309 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9310 | # The linker can only warn and ignore the option if not recognized | |
9311 | # So say no if there are warnings | |
9312 | if test -s conftest.err; then | |
9313 | # Append any errors to the config.log. | |
9314 | cat conftest.err 1>&5 | |
9315 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9316 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9317 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9318 | lt_cv_prog_compiler__b=yes | |
9319 | fi | |
9320 | else | |
9321 | lt_cv_prog_compiler__b=yes | |
9322 | fi | |
9323 | fi | |
9324 | $RM -r conftest* | |
9325 | LDFLAGS="$save_LDFLAGS" | |
9326 | ||
9327 | fi | |
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9329 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9330 | ||
9331 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9332 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9333 | else | |
9334 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9335 | fi | |
9336 | ||
ce2cded5 L |
9337 | ;; |
9338 | esac | |
9339 | fi | |
9340 | if test "$with_gnu_ld" = no; then | |
9341 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9342 | hardcode_libdir_separator=: | |
d7040cdb | 9343 | |
ce2cded5 L |
9344 | case $host_cpu in |
9345 | hppa*64*|ia64*) | |
9346 | hardcode_direct=no | |
9347 | hardcode_shlibpath_var=no | |
9348 | ;; | |
9349 | *) | |
9350 | hardcode_direct=yes | |
9351 | hardcode_direct_absolute=yes | |
9352 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9353 | |
ce2cded5 L |
9354 | # hardcode_minus_L: Not really in the search PATH, |
9355 | # but as the default location of the library. | |
9356 | hardcode_minus_L=yes | |
9357 | ;; | |
9358 | esac | |
9359 | fi | |
9360 | ;; | |
9361 | ||
9362 | irix5* | irix6* | nonstopux*) | |
9363 | if test "$GCC" = yes; then | |
f2c621e4 | 9364 | 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' |
ce2cded5 L |
9365 | # Try to use the -exported_symbol ld option, if it does not |
9366 | # work, assume that -exports_file does not work either and | |
9367 | # implicitly export all symbols. | |
f2c621e4 AS |
9368 | save_LDFLAGS="$LDFLAGS" |
9369 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81ecdfbb | 9371 | /* end confdefs.h. */ |
f2c621e4 | 9372 | int foo(void) {} |
ce2cded5 | 9373 | _ACEOF |
81ecdfbb | 9374 | if ac_fn_c_try_link "$LINENO"; then : |
f2c621e4 AS |
9375 | 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' |
9376 | ||
d7040cdb | 9377 | fi |
81ecdfbb RW |
9378 | rm -f core conftest.err conftest.$ac_objext \ |
9379 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9380 | LDFLAGS="$save_LDFLAGS" |
ce2cded5 | 9381 | else |
3725885a RW |
9382 | 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' |
9383 | 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' | |
ce2cded5 L |
9384 | fi |
9385 | archive_cmds_need_lc='no' | |
9386 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9387 | hardcode_libdir_separator=: | |
9388 | inherit_rpath=yes | |
9389 | link_all_deplibs=yes | |
9390 | ;; | |
d7040cdb | 9391 | |
ce2cded5 L |
9392 | netbsd*) |
9393 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9394 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9395 | else | |
9396 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9397 | fi | |
9398 | hardcode_libdir_flag_spec='-R$libdir' | |
9399 | hardcode_direct=yes | |
9400 | hardcode_shlibpath_var=no | |
9401 | ;; | |
d7040cdb | 9402 | |
ce2cded5 L |
9403 | newsos6) |
9404 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9405 | hardcode_direct=yes | |
9406 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9407 | hardcode_libdir_separator=: | |
9408 | hardcode_shlibpath_var=no | |
9409 | ;; | |
d7040cdb | 9410 | |
ce2cded5 L |
9411 | *nto* | *qnx*) |
9412 | ;; | |
d7040cdb | 9413 | |
ce2cded5 | 9414 | openbsd*) |
718a6fd8 SE |
9415 | if test -f /usr/libexec/ld.so; then |
9416 | hardcode_direct=yes | |
9417 | hardcode_shlibpath_var=no | |
9418 | hardcode_direct_absolute=yes | |
9419 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9420 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9421 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9422 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9423 | export_dynamic_flag_spec='${wl}-E' |
9424 | else | |
9425 | case $host_os in | |
9426 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9427 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9428 | hardcode_libdir_flag_spec='-R$libdir' | |
9429 | ;; | |
9430 | *) | |
9431 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9432 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9433 | ;; | |
9434 | esac | |
9435 | fi | |
9436 | else | |
9437 | ld_shlibs=no | |
d7040cdb SE |
9438 | fi |
9439 | ;; | |
d7040cdb | 9440 | |
ce2cded5 L |
9441 | os2*) |
9442 | hardcode_libdir_flag_spec='-L$libdir' | |
9443 | hardcode_minus_L=yes | |
9444 | allow_undefined_flag=unsupported | |
3725885a | 9445 | 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' |
ce2cded5 L |
9446 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9447 | ;; | |
d7040cdb | 9448 | |
ce2cded5 L |
9449 | osf3*) |
9450 | if test "$GCC" = yes; then | |
9451 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9452 | 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' |
ce2cded5 L |
9453 | else |
9454 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9455 | 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' |
ce2cded5 L |
9456 | fi |
9457 | archive_cmds_need_lc='no' | |
9458 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9459 | hardcode_libdir_separator=: | |
9460 | ;; | |
d7040cdb | 9461 | |
ce2cded5 L |
9462 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9463 | if test "$GCC" = yes; then | |
9464 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
f2c621e4 | 9465 | 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' |
ce2cded5 L |
9466 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9467 | else | |
9468 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9469 | 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' |
ce2cded5 | 9470 | 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 | 9471 | $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 | 9472 | |
ce2cded5 L |
9473 | # Both c and cxx compiler support -rpath directly |
9474 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9475 | fi | |
9476 | archive_cmds_need_lc='no' | |
9477 | hardcode_libdir_separator=: | |
9478 | ;; | |
d7040cdb | 9479 | |
ce2cded5 L |
9480 | solaris*) |
9481 | no_undefined_flag=' -z defs' | |
9482 | if test "$GCC" = yes; then | |
9483 | wlarc='${wl}' | |
f2c621e4 | 9484 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 | 9485 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
f2c621e4 | 9486 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
ce2cded5 L |
9487 | else |
9488 | case `$CC -V 2>&1` in | |
9489 | *"Compilers 5.0"*) | |
9490 | wlarc='' | |
9491 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9492 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9493 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9494 | ;; | |
9495 | *) | |
9496 | wlarc='${wl}' | |
9497 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9498 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9499 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9500 | ;; | |
9501 | esac | |
9502 | fi | |
9503 | hardcode_libdir_flag_spec='-R$libdir' | |
9504 | hardcode_shlibpath_var=no | |
9505 | case $host_os in | |
9506 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9507 | *) | |
9508 | # The compiler driver will combine and reorder linker options, | |
9509 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9510 | # but is careful enough not to reorder. | |
9511 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9512 | if test "$GCC" = yes; then | |
9513 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9514 | else | |
9515 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9516 | fi | |
9517 | ;; | |
9518 | esac | |
9519 | link_all_deplibs=yes | |
d7040cdb | 9520 | ;; |
ce2cded5 L |
9521 | |
9522 | sunos4*) | |
9523 | if test "x$host_vendor" = xsequent; then | |
9524 | # Use $CC to link under sequent, because it throws in some extra .o | |
9525 | # files that make .init and .fini sections work. | |
9526 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9527 | else |
ce2cded5 | 9528 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9529 | fi |
ce2cded5 L |
9530 | hardcode_libdir_flag_spec='-L$libdir' |
9531 | hardcode_direct=yes | |
9532 | hardcode_minus_L=yes | |
9533 | hardcode_shlibpath_var=no | |
d7040cdb | 9534 | ;; |
ce2cded5 L |
9535 | |
9536 | sysv4) | |
9537 | case $host_vendor in | |
9538 | sni) | |
9539 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9540 | hardcode_direct=yes # is this really true??? | |
9541 | ;; | |
9542 | siemens) | |
9543 | ## LD is ld it makes a PLAMLIB | |
9544 | ## CC just makes a GrossModule. | |
9545 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9546 | reload_cmds='$CC -r -o $output$reload_objs' | |
9547 | hardcode_direct=no | |
9548 | ;; | |
9549 | motorola) | |
9550 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9551 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9552 | ;; | |
9553 | esac | |
9554 | runpath_var='LD_RUN_PATH' | |
9555 | hardcode_shlibpath_var=no | |
d7040cdb | 9556 | ;; |
d7040cdb | 9557 | |
ce2cded5 L |
9558 | sysv4.3*) |
9559 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9560 | hardcode_shlibpath_var=no | |
9561 | export_dynamic_flag_spec='-Bexport' | |
9562 | ;; | |
d7040cdb | 9563 | |
ce2cded5 L |
9564 | sysv4*MP*) |
9565 | if test -d /usr/nec; then | |
9566 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9567 | hardcode_shlibpath_var=no | |
9568 | runpath_var=LD_RUN_PATH | |
9569 | hardcode_runpath_var=yes | |
9570 | ld_shlibs=yes | |
9571 | fi | |
9572 | ;; | |
d7040cdb | 9573 | |
ce2cded5 L |
9574 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9575 | no_undefined_flag='${wl}-z,text' | |
9576 | archive_cmds_need_lc=no | |
9577 | hardcode_shlibpath_var=no | |
9578 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9579 | |
ce2cded5 L |
9580 | if test "$GCC" = yes; then |
9581 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9582 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9583 | else | |
9584 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9585 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9586 | fi | |
9587 | ;; | |
d7040cdb | 9588 | |
ce2cded5 L |
9589 | sysv5* | sco3.2v5* | sco5v6*) |
9590 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9591 | # link with -lc, and that would cause any symbols used from libc to | |
9592 | # always be unresolved, which means just about no library would | |
9593 | # ever link correctly. If we're not using GNU ld we use -z text | |
9594 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9595 | # as -z defs. | |
9596 | no_undefined_flag='${wl}-z,text' | |
9597 | allow_undefined_flag='${wl}-z,nodefs' | |
9598 | archive_cmds_need_lc=no | |
9599 | hardcode_shlibpath_var=no | |
9600 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9601 | hardcode_libdir_separator=':' | |
9602 | link_all_deplibs=yes | |
9603 | export_dynamic_flag_spec='${wl}-Bexport' | |
9604 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9605 | |
ce2cded5 L |
9606 | if test "$GCC" = yes; then |
9607 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9608 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9609 | else | |
9610 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9611 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9612 | fi | |
d7040cdb | 9613 | ;; |
d7040cdb | 9614 | |
ce2cded5 L |
9615 | uts4*) |
9616 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9617 | hardcode_libdir_flag_spec='-L$libdir' | |
9618 | hardcode_shlibpath_var=no | |
9619 | ;; | |
d7040cdb | 9620 | |
ce2cded5 L |
9621 | *) |
9622 | ld_shlibs=no | |
9623 | ;; | |
9624 | esac | |
9625 | ||
9626 | if test x$host_vendor = xsni; then | |
9627 | case $host in | |
9628 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9629 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9630 | ;; | |
9631 | esac | |
d7040cdb | 9632 | fi |
ce2cded5 | 9633 | fi |
d7040cdb | 9634 | |
81ecdfbb RW |
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9636 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 9637 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9638 | |
ce2cded5 | 9639 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9640 | |
d7040cdb | 9641 | |
d7040cdb | 9642 | |
d7040cdb | 9643 | |
d7040cdb | 9644 | |
d7040cdb | 9645 | |
d7040cdb | 9646 | |
d7040cdb | 9647 | |
d7040cdb | 9648 | |
d7040cdb | 9649 | |
d7040cdb | 9650 | |
d7040cdb | 9651 | |
d7040cdb | 9652 | |
d7040cdb | 9653 | |
d7040cdb | 9654 | |
ce2cded5 L |
9655 | # |
9656 | # Do we need to explicitly link libc? | |
9657 | # | |
9658 | case "x$archive_cmds_need_lc" in | |
9659 | x|xyes) | |
9660 | # Assume -lc should be added | |
9661 | archive_cmds_need_lc=yes | |
d7040cdb | 9662 | |
ce2cded5 L |
9663 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9664 | case $archive_cmds in | |
9665 | *'~'*) | |
9666 | # FIXME: we may have to deal with multi-command sequences. | |
9667 | ;; | |
9668 | '$CC '*) | |
9669 | # Test whether the compiler implicitly links with -lc since on some | |
9670 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9671 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9673 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9674 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9675 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9676 | else |
9677 | $RM conftest* | |
9678 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9679 | |
81ecdfbb | 9680 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9681 | (eval $ac_compile) 2>&5 |
9682 | ac_status=$? | |
81ecdfbb RW |
9683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9684 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9685 | soname=conftest |
9686 | lib=conftest | |
9687 | libobjs=conftest.$ac_objext | |
9688 | deplibs= | |
9689 | wl=$lt_prog_compiler_wl | |
9690 | pic_flag=$lt_prog_compiler_pic | |
9691 | compiler_flags=-v | |
9692 | linker_flags=-v | |
9693 | verstring= | |
9694 | output_objdir=. | |
9695 | libname=conftest | |
9696 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9697 | allow_undefined_flag= | |
81ecdfbb | 9698 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9699 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9700 | ac_status=$? | |
81ecdfbb RW |
9701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9702 | test $ac_status = 0; } | |
39144654 RW |
9703 | then |
9704 | lt_cv_archive_cmds_need_lc=no | |
9705 | else | |
9706 | lt_cv_archive_cmds_need_lc=yes | |
9707 | fi | |
9708 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9709 | else | |
9710 | cat conftest.err 1>&5 | |
9711 | fi | |
9712 | $RM conftest* | |
9713 | ||
9714 | fi | |
81ecdfbb RW |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9716 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9717 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9718 | ;; |
9719 | esac | |
d7040cdb | 9720 | fi |
d7040cdb | 9721 | ;; |
ce2cded5 | 9722 | esac |
d7040cdb | 9723 | |
d7040cdb | 9724 | |
d7040cdb | 9725 | |
d7040cdb | 9726 | |
d7040cdb | 9727 | |
d7040cdb | 9728 | |
d7040cdb | 9729 | |
d7040cdb SE |
9730 | |
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
d7040cdb | 9817 | |
d7040cdb | 9818 | |
d7040cdb SE |
9819 | |
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
d7040cdb | 9825 | |
d7040cdb | 9826 | |
d7040cdb | 9827 | |
d7040cdb | 9828 | |
d7040cdb | 9829 | |
d7040cdb | 9830 | |
d7040cdb | 9831 | |
d7040cdb | 9832 | |
d7040cdb | 9833 | |
d7040cdb | 9834 | |
d7040cdb | 9835 | |
d7040cdb | 9836 | |
d7040cdb | 9837 | |
d7040cdb | 9838 | |
d7040cdb | 9839 | |
d7040cdb | 9840 | |
d7040cdb | 9841 | |
d7040cdb | 9842 | |
d7040cdb | 9843 | |
d7040cdb | 9844 | |
d7040cdb | 9845 | |
d7040cdb | 9846 | |
d7040cdb | 9847 | |
ce2cded5 L |
9848 | |
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
81ecdfbb RW |
9880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9881 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9882 | |
9883 | if test "$GCC" = yes; then | |
ce2cded5 L |
9884 | case $host_os in |
9885 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9886 | *) lt_awk_arg="/^libraries:/" ;; | |
9887 | esac | |
3725885a RW |
9888 | case $host_os in |
9889 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9890 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9891 | esac | |
9892 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9893 | case $lt_search_path_spec in | |
9894 | *\;*) | |
ce2cded5 L |
9895 | # if the path contains ";" then we assume it to be the separator |
9896 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9897 | # assumed that no part of a normal pathname contains ";" but that should | |
9898 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9899 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9900 | ;; | |
9901 | *) | |
9902 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9903 | ;; | |
9904 | esac | |
ce2cded5 L |
9905 | # Ok, now we have the path, separated by spaces, we can step through it |
9906 | # and add multilib dir if necessary. | |
9907 | lt_tmp_lt_search_path_spec= | |
9908 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9909 | for lt_sys_path in $lt_search_path_spec; do | |
9910 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9911 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9912 | else | |
9913 | test -d "$lt_sys_path" && \ | |
9914 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9915 | fi | |
9916 | done | |
3725885a | 9917 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
9918 | BEGIN {RS=" "; FS="/|\n";} { |
9919 | lt_foo=""; | |
9920 | lt_count=0; | |
9921 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9922 | if ($lt_i != "" && $lt_i != ".") { | |
9923 | if ($lt_i == "..") { | |
9924 | lt_count++; | |
9925 | } else { | |
9926 | if (lt_count == 0) { | |
9927 | lt_foo="/" $lt_i lt_foo; | |
9928 | } else { | |
9929 | lt_count--; | |
9930 | } | |
9931 | } | |
9932 | } | |
9933 | } | |
9934 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9935 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9936 | }'` | |
3725885a RW |
9937 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9938 | # for these hosts. | |
9939 | case $host_os in | |
9940 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9941 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9942 | esac | |
9943 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 9944 | else |
ce2cded5 L |
9945 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9946 | fi | |
9947 | library_names_spec= | |
9948 | libname_spec='lib$name' | |
9949 | soname_spec= | |
9950 | shrext_cmds=".so" | |
9951 | postinstall_cmds= | |
9952 | postuninstall_cmds= | |
9953 | finish_cmds= | |
9954 | finish_eval= | |
9955 | shlibpath_var= | |
9956 | shlibpath_overrides_runpath=unknown | |
9957 | version_type=none | |
9958 | dynamic_linker="$host_os ld.so" | |
9959 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9960 | need_lib_prefix=unknown | |
9961 | hardcode_into_libs=no | |
9962 | ||
9963 | # when you set need_version to no, make sure it does not cause -set_version | |
9964 | # flags to be left without arguments | |
9965 | need_version=unknown | |
9966 | ||
9967 | case $host_os in | |
9968 | aix3*) | |
9969 | version_type=linux | |
9970 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9971 | shlibpath_var=LIBPATH | |
9972 | ||
9973 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9974 | soname_spec='${libname}${release}${shared_ext}$major' | |
9975 | ;; | |
9976 | ||
50e7d84b | 9977 | aix[4-9]*) |
ce2cded5 L |
9978 | version_type=linux |
9979 | need_lib_prefix=no | |
9980 | need_version=no | |
9981 | hardcode_into_libs=yes | |
9982 | if test "$host_cpu" = ia64; then | |
9983 | # AIX 5 supports IA64 | |
9984 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9985 | shlibpath_var=LD_LIBRARY_PATH | |
9986 | else | |
9987 | # With GCC up to 2.95.x, collect2 would create an import file | |
9988 | # for dependence libraries. The import file would start with | |
9989 | # the line `#! .'. This would cause the generated library to | |
9990 | # depend on `.', always an invalid library. This was fixed in | |
9991 | # development snapshots of GCC prior to 3.0. | |
9992 | case $host_os in | |
9993 | aix4 | aix4.[01] | aix4.[01].*) | |
9994 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9995 | echo ' yes ' | |
9996 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9997 | : | |
9998 | else | |
9999 | can_build_shared=no | |
10000 | fi | |
10001 | ;; | |
10002 | esac | |
10003 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10004 | # soname into executable. Probably we can add versioning support to | |
10005 | # collect2, so additional links can be useful in future. | |
10006 | if test "$aix_use_runtimelinking" = yes; then | |
10007 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10008 | # instead of lib<name>.a to let people know that these are not | |
10009 | # typical AIX shared libraries. | |
10010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10011 | else | |
10012 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10013 | # and later when we are not doing run time linking. | |
10014 | library_names_spec='${libname}${release}.a $libname.a' | |
10015 | soname_spec='${libname}${release}${shared_ext}$major' | |
10016 | fi | |
10017 | shlibpath_var=LIBPATH | |
10018 | fi | |
10019 | ;; | |
10020 | ||
10021 | amigaos*) | |
718a6fd8 SE |
10022 | case $host_cpu in |
10023 | powerpc) | |
10024 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10025 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10027 | ;; | |
10028 | m68k) | |
ce2cded5 L |
10029 | library_names_spec='$libname.ixlibrary $libname.a' |
10030 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10031 | 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' |
718a6fd8 SE |
10032 | ;; |
10033 | esac | |
ce2cded5 L |
10034 | ;; |
10035 | ||
10036 | beos*) | |
10037 | library_names_spec='${libname}${shared_ext}' | |
10038 | dynamic_linker="$host_os ld.so" | |
10039 | shlibpath_var=LIBRARY_PATH | |
10040 | ;; | |
10041 | ||
10042 | bsdi[45]*) | |
10043 | version_type=linux | |
10044 | need_version=no | |
10045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10046 | soname_spec='${libname}${release}${shared_ext}$major' | |
10047 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10048 | shlibpath_var=LD_LIBRARY_PATH | |
10049 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10050 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10051 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10052 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10053 | # libtool to hard-code these into programs | |
10054 | ;; | |
10055 | ||
718a6fd8 | 10056 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10057 | version_type=windows |
10058 | shrext_cmds=".dll" | |
10059 | need_version=no | |
10060 | need_lib_prefix=no | |
10061 | ||
f2c621e4 AS |
10062 | case $GCC,$host_os in |
10063 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10064 | library_names_spec='$libname.dll.a' |
10065 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10066 | postinstall_cmds='base_file=`basename \${file}`~ | |
10067 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10068 | dldir=$destdir/`dirname \$dlpath`~ | |
10069 | test -d \$dldir || mkdir -p \$dldir~ | |
10070 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10071 | chmod a+x \$dldir/$dlname~ | |
10072 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10073 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10074 | fi' | |
10075 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10076 | dlpath=$dir/\$dldll~ | |
10077 | $RM \$dlpath' | |
10078 | shlibpath_overrides_runpath=yes | |
10079 | ||
10080 | case $host_os in | |
10081 | cygwin*) | |
10082 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10083 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10084 | |
10085 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 10086 | ;; |
718a6fd8 | 10087 | mingw* | cegcc*) |
ce2cded5 L |
10088 | # MinGW DLLs use traditional 'lib' prefix |
10089 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
10090 | ;; |
10091 | pw32*) | |
10092 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10093 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10094 | ;; | |
10095 | esac | |
10096 | ;; | |
10097 | ||
10098 | *) | |
10099 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10100 | ;; | |
10101 | esac | |
f2c621e4 | 10102 | dynamic_linker='Win32 ld.exe' |
ce2cded5 L |
10103 | # FIXME: first we should search . and the directory the executable is in |
10104 | shlibpath_var=PATH | |
10105 | ;; | |
10106 | ||
10107 | darwin* | rhapsody*) | |
10108 | dynamic_linker="$host_os dyld" | |
10109 | version_type=darwin | |
10110 | need_lib_prefix=no | |
10111 | need_version=no | |
10112 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10113 | soname_spec='${libname}${release}${major}$shared_ext' | |
10114 | shlibpath_overrides_runpath=yes | |
10115 | shlibpath_var=DYLD_LIBRARY_PATH | |
10116 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10117 | ||
10118 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10119 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10120 | ;; | |
10121 | ||
10122 | dgux*) | |
10123 | version_type=linux | |
10124 | need_lib_prefix=no | |
10125 | need_version=no | |
10126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10127 | soname_spec='${libname}${release}${shared_ext}$major' | |
10128 | shlibpath_var=LD_LIBRARY_PATH | |
10129 | ;; | |
10130 | ||
ce2cded5 L |
10131 | freebsd* | dragonfly*) |
10132 | # DragonFly does not have aout. When/if they implement a new | |
10133 | # versioning mechanism, adjust this. | |
10134 | if test -x /usr/bin/objformat; then | |
10135 | objformat=`/usr/bin/objformat` | |
10136 | else | |
10137 | case $host_os in | |
6d2920c8 | 10138 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
10139 | *) objformat=elf ;; |
10140 | esac | |
10141 | fi | |
10142 | version_type=freebsd-$objformat | |
10143 | case $version_type in | |
10144 | freebsd-elf*) | |
10145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10146 | need_version=no | |
10147 | need_lib_prefix=no | |
10148 | ;; | |
10149 | freebsd-*) | |
10150 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10151 | need_version=yes | |
10152 | ;; | |
10153 | esac | |
10154 | shlibpath_var=LD_LIBRARY_PATH | |
10155 | case $host_os in | |
6d2920c8 | 10156 | freebsd2.*) |
ce2cded5 L |
10157 | shlibpath_overrides_runpath=yes |
10158 | ;; | |
10159 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10160 | shlibpath_overrides_runpath=yes | |
10161 | hardcode_into_libs=yes | |
10162 | ;; | |
10163 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10164 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10165 | shlibpath_overrides_runpath=no | |
10166 | hardcode_into_libs=yes | |
10167 | ;; | |
10168 | *) # from 4.6 on, and DragonFly | |
10169 | shlibpath_overrides_runpath=yes | |
10170 | hardcode_into_libs=yes | |
10171 | ;; | |
10172 | esac | |
10173 | ;; | |
10174 | ||
10175 | gnu*) | |
10176 | version_type=linux | |
10177 | need_lib_prefix=no | |
10178 | need_version=no | |
10179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10180 | soname_spec='${libname}${release}${shared_ext}$major' | |
10181 | shlibpath_var=LD_LIBRARY_PATH | |
10182 | hardcode_into_libs=yes | |
10183 | ;; | |
10184 | ||
3725885a RW |
10185 | haiku*) |
10186 | version_type=linux | |
10187 | need_lib_prefix=no | |
10188 | need_version=no | |
10189 | dynamic_linker="$host_os runtime_loader" | |
10190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10191 | soname_spec='${libname}${release}${shared_ext}$major' | |
10192 | shlibpath_var=LIBRARY_PATH | |
10193 | shlibpath_overrides_runpath=yes | |
f2c621e4 | 10194 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' |
3725885a RW |
10195 | hardcode_into_libs=yes |
10196 | ;; | |
10197 | ||
ce2cded5 L |
10198 | hpux9* | hpux10* | hpux11*) |
10199 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10200 | # link against other versions. | |
10201 | version_type=sunos | |
10202 | need_lib_prefix=no | |
10203 | need_version=no | |
10204 | case $host_cpu in | |
10205 | ia64*) | |
10206 | shrext_cmds='.so' | |
10207 | hardcode_into_libs=yes | |
10208 | dynamic_linker="$host_os dld.so" | |
10209 | shlibpath_var=LD_LIBRARY_PATH | |
10210 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10212 | soname_spec='${libname}${release}${shared_ext}$major' | |
10213 | if test "X$HPUX_IA64_MODE" = X32; then | |
10214 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10215 | else | |
10216 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10217 | fi | |
10218 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10219 | ;; | |
10220 | hppa*64*) | |
10221 | shrext_cmds='.sl' | |
10222 | hardcode_into_libs=yes | |
10223 | dynamic_linker="$host_os dld.sl" | |
10224 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10225 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10227 | soname_spec='${libname}${release}${shared_ext}$major' | |
10228 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10229 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10230 | ;; | |
10231 | *) | |
10232 | shrext_cmds='.sl' | |
10233 | dynamic_linker="$host_os dld.sl" | |
10234 | shlibpath_var=SHLIB_PATH | |
10235 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10237 | soname_spec='${libname}${release}${shared_ext}$major' | |
10238 | ;; | |
10239 | esac | |
3725885a | 10240 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 10241 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10242 | # or fails outright, so override atomically: |
10243 | install_override_mode=555 | |
ce2cded5 L |
10244 | ;; |
10245 | ||
10246 | interix[3-9]*) | |
10247 | version_type=linux | |
10248 | need_lib_prefix=no | |
10249 | need_version=no | |
10250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10251 | soname_spec='${libname}${release}${shared_ext}$major' | |
10252 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10253 | shlibpath_var=LD_LIBRARY_PATH | |
10254 | shlibpath_overrides_runpath=no | |
10255 | hardcode_into_libs=yes | |
10256 | ;; | |
10257 | ||
10258 | irix5* | irix6* | nonstopux*) | |
10259 | case $host_os in | |
10260 | nonstopux*) version_type=nonstopux ;; | |
10261 | *) | |
10262 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10263 | version_type=linux | |
10264 | else | |
10265 | version_type=irix | |
10266 | fi ;; | |
10267 | esac | |
10268 | need_lib_prefix=no | |
10269 | need_version=no | |
10270 | soname_spec='${libname}${release}${shared_ext}$major' | |
10271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10272 | case $host_os in | |
10273 | irix5* | nonstopux*) | |
10274 | libsuff= shlibsuff= | |
10275 | ;; | |
10276 | *) | |
10277 | case $LD in # libtool.m4 will add one of these switches to LD | |
10278 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10279 | libsuff= shlibsuff= libmagic=32-bit;; | |
10280 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10281 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10282 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10283 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10284 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10285 | esac | |
10286 | ;; | |
10287 | esac | |
10288 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10289 | shlibpath_overrides_runpath=no | |
10290 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10291 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10292 | hardcode_into_libs=yes | |
10293 | ;; | |
d7040cdb | 10294 | |
ce2cded5 L |
10295 | # No shared lib support for Linux oldld, aout, or coff. |
10296 | linux*oldld* | linux*aout* | linux*coff*) | |
10297 | dynamic_linker=no | |
10298 | ;; | |
10299 | ||
10300 | # This must be Linux ELF. | |
58e24671 | 10301 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10302 | version_type=linux |
10303 | need_lib_prefix=no | |
10304 | need_version=no | |
10305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10306 | soname_spec='${libname}${release}${shared_ext}$major' | |
10307 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | shlibpath_overrides_runpath=no | |
39144654 | 10310 | |
ce2cded5 | 10311 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10312 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10313 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10314 | else |
10315 | lt_cv_shlibpath_overrides_runpath=no | |
10316 | save_LDFLAGS=$LDFLAGS | |
10317 | save_libdir=$libdir | |
10318 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10319 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10321 | /* end confdefs.h. */ |
10322 | ||
d7040cdb SE |
10323 | int |
10324 | main () | |
10325 | { | |
ce2cded5 | 10326 | |
d7040cdb SE |
10327 | ; |
10328 | return 0; | |
10329 | } | |
10330 | _ACEOF | |
81ecdfbb RW |
10331 | if ac_fn_c_try_link "$LINENO"; then : |
10332 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10333 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 | 10334 | fi |
ce2cded5 | 10335 | fi |
81ecdfbb RW |
10336 | rm -f core conftest.err conftest.$ac_objext \ |
10337 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10338 | LDFLAGS=$save_LDFLAGS |
10339 | libdir=$save_libdir | |
10340 | ||
10341 | fi | |
10342 | ||
10343 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10344 | |
10345 | # This implies no fast_install, which is unacceptable. | |
10346 | # Some rework will be needed to allow for fast_install | |
10347 | # before this can be enabled. | |
10348 | hardcode_into_libs=yes | |
10349 | ||
10350 | # Append ld.so.conf contents to the search path | |
10351 | if test -f /etc/ld.so.conf; then | |
3725885a | 10352 | 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' ' '` |
f2c621e4 | 10353 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
ce2cded5 L |
10354 | fi |
10355 | ||
10356 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10357 | # powerpc, because MkLinux only supported shared libraries with the | |
10358 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10359 | # most powerpc-linux boxes support dynamic linking these days and | |
10360 | # people can always --disable-shared, the test was removed, and we | |
10361 | # assume the GNU/Linux dynamic linker is in use. | |
10362 | dynamic_linker='GNU/Linux ld.so' | |
10363 | ;; | |
10364 | ||
10365 | netbsd*) | |
10366 | version_type=sunos | |
10367 | need_lib_prefix=no | |
10368 | need_version=no | |
10369 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10371 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10372 | dynamic_linker='NetBSD (a.out) ld.so' | |
10373 | else | |
10374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10375 | soname_spec='${libname}${release}${shared_ext}$major' | |
10376 | dynamic_linker='NetBSD ld.elf_so' | |
10377 | fi | |
10378 | shlibpath_var=LD_LIBRARY_PATH | |
10379 | shlibpath_overrides_runpath=yes | |
10380 | hardcode_into_libs=yes | |
10381 | ;; | |
10382 | ||
10383 | newsos6) | |
10384 | version_type=linux | |
10385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10386 | shlibpath_var=LD_LIBRARY_PATH | |
10387 | shlibpath_overrides_runpath=yes | |
10388 | ;; | |
10389 | ||
10390 | *nto* | *qnx*) | |
10391 | version_type=qnx | |
10392 | need_lib_prefix=no | |
10393 | need_version=no | |
10394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10395 | soname_spec='${libname}${release}${shared_ext}$major' | |
10396 | shlibpath_var=LD_LIBRARY_PATH | |
10397 | shlibpath_overrides_runpath=no | |
10398 | hardcode_into_libs=yes | |
10399 | dynamic_linker='ldqnx.so' | |
10400 | ;; | |
10401 | ||
10402 | openbsd*) | |
10403 | version_type=sunos | |
10404 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10405 | need_lib_prefix=no | |
10406 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10407 | case $host_os in | |
10408 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10409 | *) need_version=no ;; | |
10410 | esac | |
10411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10413 | shlibpath_var=LD_LIBRARY_PATH | |
10414 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10415 | case $host_os in | |
10416 | openbsd2.[89] | openbsd2.[89].*) | |
10417 | shlibpath_overrides_runpath=no | |
10418 | ;; | |
10419 | *) | |
10420 | shlibpath_overrides_runpath=yes | |
10421 | ;; | |
10422 | esac | |
10423 | else | |
10424 | shlibpath_overrides_runpath=yes | |
10425 | fi | |
10426 | ;; | |
10427 | ||
10428 | os2*) | |
10429 | libname_spec='$name' | |
10430 | shrext_cmds=".dll" | |
10431 | need_lib_prefix=no | |
10432 | library_names_spec='$libname${shared_ext} $libname.a' | |
10433 | dynamic_linker='OS/2 ld.exe' | |
10434 | shlibpath_var=LIBPATH | |
10435 | ;; | |
10436 | ||
10437 | osf3* | osf4* | osf5*) | |
10438 | version_type=osf | |
10439 | need_lib_prefix=no | |
10440 | need_version=no | |
10441 | soname_spec='${libname}${release}${shared_ext}$major' | |
10442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10443 | shlibpath_var=LD_LIBRARY_PATH | |
10444 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10445 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10446 | ;; | |
10447 | ||
10448 | rdos*) | |
10449 | dynamic_linker=no | |
10450 | ;; | |
10451 | ||
10452 | solaris*) | |
10453 | version_type=linux | |
10454 | need_lib_prefix=no | |
10455 | need_version=no | |
10456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10457 | soname_spec='${libname}${release}${shared_ext}$major' | |
10458 | shlibpath_var=LD_LIBRARY_PATH | |
10459 | shlibpath_overrides_runpath=yes | |
10460 | hardcode_into_libs=yes | |
10461 | # ldd complains unless libraries are executable | |
10462 | postinstall_cmds='chmod +x $lib' | |
10463 | ;; | |
10464 | ||
10465 | sunos4*) | |
10466 | version_type=sunos | |
10467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10468 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10469 | shlibpath_var=LD_LIBRARY_PATH | |
10470 | shlibpath_overrides_runpath=yes | |
10471 | if test "$with_gnu_ld" = yes; then | |
10472 | need_lib_prefix=no | |
10473 | fi | |
10474 | need_version=yes | |
10475 | ;; | |
10476 | ||
10477 | sysv4 | sysv4.3*) | |
10478 | version_type=linux | |
10479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10480 | soname_spec='${libname}${release}${shared_ext}$major' | |
10481 | shlibpath_var=LD_LIBRARY_PATH | |
10482 | case $host_vendor in | |
10483 | sni) | |
10484 | shlibpath_overrides_runpath=no | |
10485 | need_lib_prefix=no | |
10486 | runpath_var=LD_RUN_PATH | |
10487 | ;; | |
10488 | siemens) | |
10489 | need_lib_prefix=no | |
10490 | ;; | |
10491 | motorola) | |
10492 | need_lib_prefix=no | |
10493 | need_version=no | |
10494 | shlibpath_overrides_runpath=no | |
10495 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10496 | ;; | |
10497 | esac | |
10498 | ;; | |
10499 | ||
10500 | sysv4*MP*) | |
10501 | if test -d /usr/nec ;then | |
10502 | version_type=linux | |
10503 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10504 | soname_spec='$libname${shared_ext}.$major' | |
10505 | shlibpath_var=LD_LIBRARY_PATH | |
10506 | fi | |
10507 | ;; | |
10508 | ||
10509 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10510 | version_type=freebsd-elf | |
10511 | need_lib_prefix=no | |
10512 | need_version=no | |
10513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10514 | soname_spec='${libname}${release}${shared_ext}$major' | |
10515 | shlibpath_var=LD_LIBRARY_PATH | |
10516 | shlibpath_overrides_runpath=yes | |
10517 | hardcode_into_libs=yes | |
10518 | if test "$with_gnu_ld" = yes; then | |
10519 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10520 | else | |
10521 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10522 | case $host_os in | |
10523 | sco3.2v5*) | |
10524 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10525 | ;; | |
10526 | esac | |
10527 | fi | |
10528 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10529 | ;; | |
10530 | ||
10531 | tpf*) | |
10532 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10533 | version_type=linux | |
10534 | need_lib_prefix=no | |
10535 | need_version=no | |
718a6fd8 | 10536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10537 | shlibpath_var=LD_LIBRARY_PATH |
10538 | shlibpath_overrides_runpath=no | |
10539 | hardcode_into_libs=yes | |
10540 | ;; | |
d7040cdb | 10541 | |
ce2cded5 L |
10542 | uts4*) |
10543 | version_type=linux | |
10544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10545 | soname_spec='${libname}${release}${shared_ext}$major' | |
10546 | shlibpath_var=LD_LIBRARY_PATH | |
10547 | ;; | |
d7040cdb | 10548 | |
ce2cded5 L |
10549 | *) |
10550 | dynamic_linker=no | |
10551 | ;; | |
10552 | esac | |
81ecdfbb RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10554 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
10555 | test "$dynamic_linker" = no && can_build_shared=no |
10556 | ||
10557 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10558 | if test "$GCC" = yes; then | |
10559 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10560 | fi |
d7040cdb | 10561 | |
718a6fd8 SE |
10562 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10563 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10564 | fi | |
10565 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10566 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10567 | fi | |
10568 | ||
d7040cdb | 10569 | |
d7040cdb SE |
10570 | |
10571 | ||
d7040cdb SE |
10572 | |
10573 | ||
d7040cdb SE |
10574 | |
10575 | ||
d7040cdb SE |
10576 | |
10577 | ||
d7040cdb SE |
10578 | |
10579 | ||
d7040cdb | 10580 | |
d7040cdb | 10581 | |
d7040cdb | 10582 | |
d7040cdb | 10583 | |
d7040cdb | 10584 | |
d7040cdb | 10585 | |
d7040cdb | 10586 | |
d7040cdb | 10587 | |
d7040cdb | 10588 | |
d7040cdb | 10589 | |
d7040cdb | 10590 | |
d7040cdb | 10591 | |
d7040cdb | 10592 | |
d7040cdb | 10593 | |
d7040cdb SE |
10594 | |
10595 | ||
d7040cdb | 10596 | |
d7040cdb | 10597 | |
d7040cdb | 10598 | |
d7040cdb | 10599 | |
d7040cdb | 10600 | |
d7040cdb | 10601 | |
d7040cdb | 10602 | |
d7040cdb | 10603 | |
d7040cdb | 10604 | |
d7040cdb SE |
10605 | |
10606 | ||
d7040cdb | 10607 | |
d7040cdb | 10608 | |
d7040cdb | 10609 | |
d7040cdb SE |
10610 | |
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
d7040cdb SE |
10627 | |
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
d7040cdb | 10639 | |
d7040cdb | 10640 | |
d7040cdb | 10641 | |
d7040cdb | 10642 | |
d7040cdb SE |
10643 | |
10644 | ||
10645 | ||
10646 | ||
ce2cded5 L |
10647 | |
10648 | ||
3725885a RW |
10649 | |
10650 | ||
10651 | ||
10652 | ||
10653 | ||
ce2cded5 L |
10654 | |
10655 | ||
10656 | ||
10657 | ||
10658 | ||
10659 | ||
81ecdfbb RW |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10661 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10662 | hardcode_action= |
10663 | if test -n "$hardcode_libdir_flag_spec" || | |
10664 | test -n "$runpath_var" || | |
10665 | test "X$hardcode_automatic" = "Xyes" ; then | |
10666 | ||
10667 | # We can hardcode non-existent directories. | |
10668 | if test "$hardcode_direct" != no && | |
10669 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10670 | # have to relink, otherwise we might link with an installed library | |
10671 | # when we should be linking with a yet-to-be-installed one | |
10672 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10673 | test "$hardcode_minus_L" != no; then | |
10674 | # Linking always hardcodes the temporary library directory. | |
10675 | hardcode_action=relink | |
10676 | else | |
10677 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10678 | hardcode_action=immediate | |
10679 | fi | |
10680 | else | |
10681 | # We cannot hardcode anything, or else we can only hardcode existing | |
10682 | # directories. | |
10683 | hardcode_action=unsupported | |
10684 | fi | |
81ecdfbb RW |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10686 | $as_echo "$hardcode_action" >&6; } | |
ce2cded5 L |
10687 | |
10688 | if test "$hardcode_action" = relink || | |
10689 | test "$inherit_rpath" = yes; then | |
10690 | # Fast installation is not supported | |
10691 | enable_fast_install=no | |
10692 | elif test "$shlibpath_overrides_runpath" = yes || | |
10693 | test "$enable_shared" = no; then | |
10694 | # Fast installation is not necessary | |
10695 | enable_fast_install=needless | |
d7040cdb | 10696 | fi |
d7040cdb | 10697 | |
d7040cdb SE |
10698 | |
10699 | ||
10700 | ||
10701 | ||
10702 | ||
ce2cded5 L |
10703 | if test "x$enable_dlopen" != xyes; then |
10704 | enable_dlopen=unknown | |
10705 | enable_dlopen_self=unknown | |
10706 | enable_dlopen_self_static=unknown | |
10707 | else | |
10708 | lt_cv_dlopen=no | |
10709 | lt_cv_dlopen_libs= | |
10710 | ||
10711 | case $host_os in | |
10712 | beos*) | |
10713 | lt_cv_dlopen="load_add_on" | |
10714 | lt_cv_dlopen_libs= | |
10715 | lt_cv_dlopen_self=yes | |
10716 | ;; | |
d7040cdb | 10717 | |
718a6fd8 | 10718 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10719 | lt_cv_dlopen="LoadLibrary" |
10720 | lt_cv_dlopen_libs= | |
10721 | ;; | |
d7040cdb | 10722 | |
ce2cded5 L |
10723 | cygwin*) |
10724 | lt_cv_dlopen="dlopen" | |
10725 | lt_cv_dlopen_libs= | |
10726 | ;; | |
d7040cdb | 10727 | |
ce2cded5 L |
10728 | darwin*) |
10729 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10731 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10732 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10733 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10734 | else |
10735 | ac_check_lib_save_LIBS=$LIBS | |
10736 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10738 | /* end confdefs.h. */ |
d7040cdb | 10739 | |
81ecdfbb RW |
10740 | /* Override any GCC internal prototype to avoid an error. |
10741 | Use char because int might match the return type of a GCC | |
10742 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10743 | #ifdef __cplusplus |
10744 | extern "C" | |
10745 | #endif | |
ce2cded5 L |
10746 | char dlopen (); |
10747 | int | |
10748 | main () | |
10749 | { | |
81ecdfbb | 10750 | return dlopen (); |
ce2cded5 L |
10751 | ; |
10752 | return 0; | |
10753 | } | |
10754 | _ACEOF | |
81ecdfbb | 10755 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10756 | ac_cv_lib_dl_dlopen=yes |
10757 | else | |
81ecdfbb | 10758 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10759 | fi |
81ecdfbb RW |
10760 | rm -f core conftest.err conftest.$ac_objext \ |
10761 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10762 | LIBS=$ac_check_lib_save_LIBS |
10763 | fi | |
81ecdfbb RW |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10765 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10766 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
10767 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10768 | else | |
d7040cdb | 10769 | |
ce2cded5 L |
10770 | lt_cv_dlopen="dyld" |
10771 | lt_cv_dlopen_libs= | |
10772 | lt_cv_dlopen_self=yes | |
d7040cdb | 10773 | |
ce2cded5 | 10774 | fi |
d7040cdb | 10775 | |
ce2cded5 | 10776 | ;; |
d7040cdb | 10777 | |
ce2cded5 | 10778 | *) |
81ecdfbb RW |
10779 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10780 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
10781 | lt_cv_dlopen="shl_load" |
10782 | else | |
81ecdfbb RW |
10783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10784 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10785 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10786 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10787 | else |
10788 | ac_check_lib_save_LIBS=$LIBS | |
10789 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10791 | /* end confdefs.h. */ |
d7040cdb | 10792 | |
81ecdfbb RW |
10793 | /* Override any GCC internal prototype to avoid an error. |
10794 | Use char because int might match the return type of a GCC | |
10795 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10796 | #ifdef __cplusplus |
10797 | extern "C" | |
10798 | #endif | |
ce2cded5 L |
10799 | char shl_load (); |
10800 | int | |
10801 | main () | |
10802 | { | |
81ecdfbb | 10803 | return shl_load (); |
ce2cded5 L |
10804 | ; |
10805 | return 0; | |
10806 | } | |
d7040cdb | 10807 | _ACEOF |
81ecdfbb | 10808 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10809 | ac_cv_lib_dld_shl_load=yes |
10810 | else | |
81ecdfbb | 10811 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10812 | fi |
81ecdfbb RW |
10813 | rm -f core conftest.err conftest.$ac_objext \ |
10814 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10815 | LIBS=$ac_check_lib_save_LIBS |
10816 | fi | |
81ecdfbb RW |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10818 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10819 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
718a6fd8 | 10820 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 10821 | else |
81ecdfbb RW |
10822 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
10823 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
10824 | lt_cv_dlopen="dlopen" |
10825 | else | |
81ecdfbb RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10827 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10828 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10829 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10830 | else |
ce2cded5 L |
10831 | ac_check_lib_save_LIBS=$LIBS |
10832 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10834 | /* end confdefs.h. */ |
d7040cdb | 10835 | |
81ecdfbb RW |
10836 | /* Override any GCC internal prototype to avoid an error. |
10837 | Use char because int might match the return type of a GCC | |
10838 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10839 | #ifdef __cplusplus |
10840 | extern "C" | |
10841 | #endif | |
ce2cded5 | 10842 | char dlopen (); |
d7040cdb SE |
10843 | int |
10844 | main () | |
10845 | { | |
81ecdfbb | 10846 | return dlopen (); |
d7040cdb SE |
10847 | ; |
10848 | return 0; | |
10849 | } | |
10850 | _ACEOF | |
81ecdfbb | 10851 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10852 | ac_cv_lib_dl_dlopen=yes |
10853 | else | |
81ecdfbb | 10854 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10855 | fi |
81ecdfbb RW |
10856 | rm -f core conftest.err conftest.$ac_objext \ |
10857 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10858 | LIBS=$ac_check_lib_save_LIBS |
10859 | fi | |
81ecdfbb RW |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10861 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10862 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
10863 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10864 | else | |
81ecdfbb RW |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10866 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10867 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10868 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10869 | else |
10870 | ac_check_lib_save_LIBS=$LIBS | |
10871 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10873 | /* end confdefs.h. */ |
d7040cdb | 10874 | |
81ecdfbb RW |
10875 | /* Override any GCC internal prototype to avoid an error. |
10876 | Use char because int might match the return type of a GCC | |
10877 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10878 | #ifdef __cplusplus |
10879 | extern "C" | |
10880 | #endif | |
ce2cded5 | 10881 | char dlopen (); |
d7040cdb SE |
10882 | int |
10883 | main () | |
10884 | { | |
81ecdfbb | 10885 | return dlopen (); |
d7040cdb SE |
10886 | ; |
10887 | return 0; | |
10888 | } | |
10889 | _ACEOF | |
81ecdfbb | 10890 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10891 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 10892 | else |
81ecdfbb | 10893 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10894 | fi |
81ecdfbb RW |
10895 | rm -f core conftest.err conftest.$ac_objext \ |
10896 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10897 | LIBS=$ac_check_lib_save_LIBS |
10898 | fi | |
81ecdfbb RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10900 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10901 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
10902 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10903 | else | |
81ecdfbb RW |
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10905 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10906 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10907 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10908 | else |
ce2cded5 L |
10909 | ac_check_lib_save_LIBS=$LIBS |
10910 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10912 | /* end confdefs.h. */ |
ce2cded5 | 10913 | |
81ecdfbb RW |
10914 | /* Override any GCC internal prototype to avoid an error. |
10915 | Use char because int might match the return type of a GCC | |
10916 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10917 | #ifdef __cplusplus |
10918 | extern "C" | |
10919 | #endif | |
ce2cded5 | 10920 | char dld_link (); |
d7040cdb SE |
10921 | int |
10922 | main () | |
10923 | { | |
81ecdfbb | 10924 | return dld_link (); |
d7040cdb SE |
10925 | ; |
10926 | return 0; | |
10927 | } | |
10928 | _ACEOF | |
81ecdfbb | 10929 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10930 | ac_cv_lib_dld_dld_link=yes |
10931 | else | |
81ecdfbb | 10932 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10933 | fi |
81ecdfbb RW |
10934 | rm -f core conftest.err conftest.$ac_objext \ |
10935 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10936 | LIBS=$ac_check_lib_save_LIBS |
10937 | fi | |
81ecdfbb RW |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10939 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10940 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
718a6fd8 | 10941 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
10942 | fi |
10943 | ||
10944 | ||
10945 | fi | |
10946 | ||
10947 | ||
10948 | fi | |
10949 | ||
10950 | ||
10951 | fi | |
10952 | ||
10953 | ||
10954 | fi | |
10955 | ||
10956 | ||
10957 | fi | |
10958 | ||
10959 | ;; | |
10960 | esac | |
10961 | ||
10962 | if test "x$lt_cv_dlopen" != xno; then | |
10963 | enable_dlopen=yes | |
d7040cdb | 10964 | else |
ce2cded5 | 10965 | enable_dlopen=no |
d7040cdb | 10966 | fi |
ce2cded5 L |
10967 | |
10968 | case $lt_cv_dlopen in | |
10969 | dlopen) | |
10970 | save_CPPFLAGS="$CPPFLAGS" | |
10971 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10972 | ||
10973 | save_LDFLAGS="$LDFLAGS" | |
10974 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10975 | ||
10976 | save_LIBS="$LIBS" | |
10977 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10978 | ||
81ecdfbb RW |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10980 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10981 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
10982 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10983 | else |
ce2cded5 L |
10984 | if test "$cross_compiling" = yes; then : |
10985 | lt_cv_dlopen_self=cross | |
10986 | else | |
10987 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10988 | lt_status=$lt_dlunknown | |
10989 | cat > conftest.$ac_ext <<_LT_EOF | |
2d7f2507 | 10990 | #line 10990 "configure" |
ce2cded5 L |
10991 | #include "confdefs.h" |
10992 | ||
10993 | #if HAVE_DLFCN_H | |
10994 | #include <dlfcn.h> | |
10995 | #endif | |
10996 | ||
10997 | #include <stdio.h> | |
10998 | ||
10999 | #ifdef RTLD_GLOBAL | |
11000 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11001 | #else | |
11002 | # ifdef DL_GLOBAL | |
11003 | # define LT_DLGLOBAL DL_GLOBAL | |
11004 | # else | |
11005 | # define LT_DLGLOBAL 0 | |
11006 | # endif | |
11007 | #endif | |
11008 | ||
11009 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11010 | find out it does not work in some platform. */ | |
11011 | #ifndef LT_DLLAZY_OR_NOW | |
11012 | # ifdef RTLD_LAZY | |
11013 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11014 | # else | |
11015 | # ifdef DL_LAZY | |
11016 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11017 | # else | |
11018 | # ifdef RTLD_NOW | |
11019 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11020 | # else | |
11021 | # ifdef DL_NOW | |
11022 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11023 | # else | |
11024 | # define LT_DLLAZY_OR_NOW 0 | |
11025 | # endif | |
11026 | # endif | |
11027 | # endif | |
11028 | # endif | |
11029 | #endif | |
11030 | ||
3725885a RW |
11031 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11032 | correspondingly for the symbols needed. */ | |
11033 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 11034 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
11035 | #endif |
11036 | ||
f2c621e4 | 11037 | void fnord () { int i=42; } |
ce2cded5 L |
11038 | int main () |
11039 | { | |
11040 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11041 | int status = $lt_dlunknown; | |
11042 | ||
11043 | if (self) | |
11044 | { | |
11045 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11046 | else |
11047 | { | |
11048 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11049 | else puts (dlerror ()); | |
11050 | } | |
ce2cded5 L |
11051 | /* dlclose (self); */ |
11052 | } | |
11053 | else | |
11054 | puts (dlerror ()); | |
11055 | ||
718a6fd8 | 11056 | return status; |
ce2cded5 L |
11057 | } |
11058 | _LT_EOF | |
81ecdfbb | 11059 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
11060 | (eval $ac_link) 2>&5 |
11061 | ac_status=$? | |
81ecdfbb RW |
11062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11063 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11064 | (./conftest; exit; ) >&5 2>/dev/null |
11065 | lt_status=$? | |
11066 | case x$lt_status in | |
11067 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11068 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11069 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11070 | esac | |
11071 | else : | |
11072 | # compilation failed | |
11073 | lt_cv_dlopen_self=no | |
11074 | fi | |
11075 | fi | |
11076 | rm -fr conftest* | |
11077 | ||
d7040cdb SE |
11078 | |
11079 | fi | |
81ecdfbb RW |
11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11081 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11082 | |
11083 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11084 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11086 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11087 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11088 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11089 | else |
ce2cded5 L |
11090 | if test "$cross_compiling" = yes; then : |
11091 | lt_cv_dlopen_self_static=cross | |
11092 | else | |
11093 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11094 | lt_status=$lt_dlunknown | |
11095 | cat > conftest.$ac_ext <<_LT_EOF | |
2d7f2507 | 11096 | #line 11096 "configure" |
ce2cded5 L |
11097 | #include "confdefs.h" |
11098 | ||
11099 | #if HAVE_DLFCN_H | |
11100 | #include <dlfcn.h> | |
11101 | #endif | |
11102 | ||
11103 | #include <stdio.h> | |
11104 | ||
11105 | #ifdef RTLD_GLOBAL | |
11106 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11107 | #else | |
11108 | # ifdef DL_GLOBAL | |
11109 | # define LT_DLGLOBAL DL_GLOBAL | |
11110 | # else | |
11111 | # define LT_DLGLOBAL 0 | |
11112 | # endif | |
11113 | #endif | |
11114 | ||
11115 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11116 | find out it does not work in some platform. */ | |
11117 | #ifndef LT_DLLAZY_OR_NOW | |
11118 | # ifdef RTLD_LAZY | |
11119 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11120 | # else | |
11121 | # ifdef DL_LAZY | |
11122 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11123 | # else | |
11124 | # ifdef RTLD_NOW | |
11125 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11126 | # else | |
11127 | # ifdef DL_NOW | |
11128 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11129 | # else | |
11130 | # define LT_DLLAZY_OR_NOW 0 | |
11131 | # endif | |
11132 | # endif | |
11133 | # endif | |
11134 | # endif | |
11135 | #endif | |
11136 | ||
3725885a RW |
11137 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11138 | correspondingly for the symbols needed. */ | |
11139 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 11140 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
11141 | #endif |
11142 | ||
f2c621e4 | 11143 | void fnord () { int i=42; } |
ce2cded5 | 11144 | int main () |
d7040cdb | 11145 | { |
ce2cded5 L |
11146 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11147 | int status = $lt_dlunknown; | |
11148 | ||
11149 | if (self) | |
11150 | { | |
11151 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11152 | else |
11153 | { | |
11154 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11155 | else puts (dlerror ()); | |
11156 | } | |
ce2cded5 L |
11157 | /* dlclose (self); */ |
11158 | } | |
11159 | else | |
11160 | puts (dlerror ()); | |
11161 | ||
718a6fd8 | 11162 | return status; |
d7040cdb | 11163 | } |
ce2cded5 | 11164 | _LT_EOF |
81ecdfbb | 11165 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
11166 | (eval $ac_link) 2>&5 |
11167 | ac_status=$? | |
81ecdfbb RW |
11168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11169 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11170 | (./conftest; exit; ) >&5 2>/dev/null |
11171 | lt_status=$? | |
11172 | case x$lt_status in | |
11173 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11174 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11175 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11176 | esac | |
11177 | else : | |
11178 | # compilation failed | |
11179 | lt_cv_dlopen_self_static=no | |
11180 | fi | |
d7040cdb | 11181 | fi |
ce2cded5 L |
11182 | rm -fr conftest* |
11183 | ||
11184 | ||
d7040cdb | 11185 | fi |
81ecdfbb RW |
11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11187 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11188 | fi |
11189 | ||
11190 | CPPFLAGS="$save_CPPFLAGS" | |
11191 | LDFLAGS="$save_LDFLAGS" | |
11192 | LIBS="$save_LIBS" | |
11193 | ;; | |
11194 | esac | |
11195 | ||
11196 | case $lt_cv_dlopen_self in | |
11197 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11198 | *) enable_dlopen_self=unknown ;; | |
11199 | esac | |
11200 | ||
11201 | case $lt_cv_dlopen_self_static in | |
11202 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11203 | *) enable_dlopen_self_static=unknown ;; | |
11204 | esac | |
d7040cdb | 11205 | fi |
d7040cdb | 11206 | |
d7040cdb SE |
11207 | |
11208 | ||
d7040cdb | 11209 | |
d7040cdb | 11210 | |
ce2cded5 L |
11211 | |
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | striplib= | |
11224 | old_striplib= | |
81ecdfbb RW |
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11226 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11227 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11228 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11229 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11231 | $as_echo "yes" >&6; } | |
ce2cded5 L |
11232 | else |
11233 | # FIXME - insert some real tests, host_os isn't really good enough | |
11234 | case $host_os in | |
11235 | darwin*) | |
11236 | if test -n "$STRIP" ; then | |
11237 | striplib="$STRIP -x" | |
11238 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11240 | $as_echo "yes" >&6; } | |
ce2cded5 | 11241 | else |
81ecdfbb RW |
11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11243 | $as_echo "no" >&6; } | |
d7040cdb | 11244 | fi |
ce2cded5 L |
11245 | ;; |
11246 | *) | |
81ecdfbb RW |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11248 | $as_echo "no" >&6; } | |
ce2cded5 | 11249 | ;; |
d7040cdb | 11250 | esac |
d7040cdb SE |
11251 | fi |
11252 | ||
d7040cdb | 11253 | |
d7040cdb | 11254 | |
d7040cdb | 11255 | |
d7040cdb | 11256 | |
d7040cdb | 11257 | |
d7040cdb | 11258 | |
d7040cdb | 11259 | |
d7040cdb | 11260 | |
d7040cdb | 11261 | |
d7040cdb | 11262 | |
d7040cdb | 11263 | |
ce2cded5 | 11264 | # Report which library types will actually be built |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11266 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11268 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 11269 | |
81ecdfbb RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11271 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 | 11272 | test "$can_build_shared" = "no" && enable_shared=no |
d7040cdb | 11273 | |
ce2cded5 L |
11274 | # On AIX, shared libraries and static libraries use the same namespace, and |
11275 | # are all built from PIC. | |
11276 | case $host_os in | |
11277 | aix3*) | |
11278 | test "$enable_shared" = yes && enable_static=no | |
11279 | if test -n "$RANLIB"; then | |
11280 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11281 | postinstall_cmds='$RANLIB $lib' | |
11282 | fi | |
11283 | ;; | |
d7040cdb | 11284 | |
50e7d84b | 11285 | aix[4-9]*) |
ce2cded5 L |
11286 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11287 | test "$enable_shared" = yes && enable_static=no | |
11288 | fi | |
11289 | ;; | |
11290 | esac | |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11292 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11293 | |
81ecdfbb RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11295 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11296 | # Make sure either enable_shared or enable_static is yes. |
11297 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11299 | $as_echo "$enable_static" >&6; } | |
d7040cdb | 11300 | |
d7040cdb | 11301 | |
d7040cdb | 11302 | |
d7040cdb | 11303 | |
ce2cded5 L |
11304 | fi |
11305 | ac_ext=c | |
11306 | ac_cpp='$CPP $CPPFLAGS' | |
11307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 11310 | |
ce2cded5 | 11311 | CC="$lt_save_CC" |
d7040cdb | 11312 | |
d7040cdb | 11313 | |
d7040cdb | 11314 | |
d7040cdb | 11315 | |
d7040cdb | 11316 | |
d7040cdb | 11317 | |
d7040cdb | 11318 | |
d7040cdb | 11319 | |
d7040cdb | 11320 | |
d7040cdb SE |
11321 | |
11322 | ||
d7040cdb SE |
11323 | |
11324 | ||
81ecdfbb | 11325 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
11326 | |
11327 | ||
d7040cdb | 11328 | |
d7040cdb | 11329 | |
ce2cded5 | 11330 | # Only expand once: |
d7040cdb | 11331 | |
d7040cdb | 11332 | |
d7040cdb | 11333 | |
b879806f AM |
11334 | # The tests for host and target for $enable_largefile require |
11335 | # canonical names. | |
11336 | ||
11337 | ||
11338 | ||
11339 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
11340 | # even in directories otherwise not depending on the $plugins option. | |
11341 | ||
11342 | ||
11343 | maybe_plugins=no | |
11344 | for ac_header in dlfcn.h | |
11345 | do : | |
11346 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
11347 | " | |
11348 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
11349 | cat >>confdefs.h <<_ACEOF | |
11350 | #define HAVE_DLFCN_H 1 | |
11351 | _ACEOF | |
11352 | maybe_plugins=yes | |
11353 | fi | |
11354 | ||
11355 | done | |
11356 | ||
11357 | for ac_header in windows.h | |
11358 | do : | |
11359 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
11360 | " | |
11361 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
11362 | cat >>confdefs.h <<_ACEOF | |
11363 | #define HAVE_WINDOWS_H 1 | |
11364 | _ACEOF | |
11365 | maybe_plugins=yes | |
11366 | fi | |
11367 | ||
11368 | done | |
11369 | ||
11370 | ||
11371 | # Check whether --enable-plugins was given. | |
11372 | if test "${enable_plugins+set}" = set; then : | |
11373 | enableval=$enable_plugins; case "${enableval}" in | |
11374 | no) plugins=no ;; | |
11375 | *) plugins=yes | |
11376 | if test "$maybe_plugins" != "yes" ; then | |
11377 | as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 | |
11378 | fi ;; | |
11379 | esac | |
11380 | else | |
11381 | plugins=$maybe_plugins | |
11382 | ||
11383 | fi | |
11384 | ||
2974be62 AM |
11385 | if test "$plugins" = "yes"; then |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
11387 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
11388 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
11389 | $as_echo_n "(cached) " >&6 | |
11390 | else | |
11391 | ac_func_search_save_LIBS=$LIBS | |
11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11393 | /* end confdefs.h. */ | |
11394 | ||
11395 | /* Override any GCC internal prototype to avoid an error. | |
11396 | Use char because int might match the return type of a GCC | |
11397 | builtin and then its argument prototype would still apply. */ | |
11398 | #ifdef __cplusplus | |
11399 | extern "C" | |
11400 | #endif | |
11401 | char dlopen (); | |
11402 | int | |
11403 | main () | |
11404 | { | |
11405 | return dlopen (); | |
11406 | ; | |
11407 | return 0; | |
11408 | } | |
11409 | _ACEOF | |
11410 | for ac_lib in '' dl; do | |
11411 | if test -z "$ac_lib"; then | |
11412 | ac_res="none required" | |
11413 | else | |
11414 | ac_res=-l$ac_lib | |
11415 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11416 | fi | |
11417 | if ac_fn_c_try_link "$LINENO"; then : | |
11418 | ac_cv_search_dlopen=$ac_res | |
11419 | fi | |
11420 | rm -f core conftest.err conftest.$ac_objext \ | |
11421 | conftest$ac_exeext | |
11422 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
11423 | break | |
11424 | fi | |
11425 | done | |
11426 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
11427 | ||
11428 | else | |
11429 | ac_cv_search_dlopen=no | |
11430 | fi | |
11431 | rm conftest.$ac_ext | |
11432 | LIBS=$ac_func_search_save_LIBS | |
11433 | fi | |
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
11435 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
11436 | ac_res=$ac_cv_search_dlopen | |
11437 | if test "$ac_res" != no; then : | |
11438 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11439 | ||
11440 | fi | |
11441 | ||
11442 | fi | |
b879806f AM |
11443 | |
11444 | ||
11445 | case "${host}" in | |
11446 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
11447 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
11448 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
11449 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
11450 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
11451 | # large-file support through the --enable-largefile switch, disable | |
11452 | # large-file support in favor of procfs support. | |
11453 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
11454 | && : ${enable_largefile="no"} | |
11455 | ;; | |
11456 | esac | |
11457 | ||
11458 | # Check whether --enable-largefile was given. | |
11459 | if test "${enable_largefile+set}" = set; then : | |
11460 | enableval=$enable_largefile; | |
11461 | fi | |
11462 | ||
11463 | if test "$enable_largefile" != no; then | |
11464 | ||
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11466 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
11467 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
11468 | $as_echo_n "(cached) " >&6 | |
11469 | else | |
11470 | ac_cv_sys_largefile_CC=no | |
11471 | if test "$GCC" != yes; then | |
11472 | ac_save_CC=$CC | |
11473 | while :; do | |
11474 | # IRIX 6.2 and later do not support large files by default, | |
11475 | # so use the C compiler's -n32 option if that helps. | |
11476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11477 | /* end confdefs.h. */ | |
11478 | #include <sys/types.h> | |
11479 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11480 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11481 | since some C++ compilers masquerading as C compilers | |
11482 | incorrectly reject 9223372036854775807. */ | |
11483 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11484 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11485 | && LARGE_OFF_T % 2147483647 == 1) | |
11486 | ? 1 : -1]; | |
11487 | int | |
11488 | main () | |
11489 | { | |
11490 | ||
11491 | ; | |
11492 | return 0; | |
11493 | } | |
11494 | _ACEOF | |
11495 | if ac_fn_c_try_compile "$LINENO"; then : | |
11496 | break | |
11497 | fi | |
11498 | rm -f core conftest.err conftest.$ac_objext | |
11499 | CC="$CC -n32" | |
11500 | if ac_fn_c_try_compile "$LINENO"; then : | |
11501 | ac_cv_sys_largefile_CC=' -n32'; break | |
11502 | fi | |
11503 | rm -f core conftest.err conftest.$ac_objext | |
11504 | break | |
11505 | done | |
11506 | CC=$ac_save_CC | |
11507 | rm -f conftest.$ac_ext | |
11508 | fi | |
11509 | fi | |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11511 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11512 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11513 | CC=$CC$ac_cv_sys_largefile_CC | |
11514 | fi | |
11515 | ||
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11517 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
11518 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
11519 | $as_echo_n "(cached) " >&6 | |
11520 | else | |
11521 | while :; do | |
11522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11523 | /* end confdefs.h. */ | |
11524 | #include <sys/types.h> | |
11525 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11526 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11527 | since some C++ compilers masquerading as C compilers | |
11528 | incorrectly reject 9223372036854775807. */ | |
11529 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11530 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11531 | && LARGE_OFF_T % 2147483647 == 1) | |
11532 | ? 1 : -1]; | |
11533 | int | |
11534 | main () | |
11535 | { | |
11536 | ||
11537 | ; | |
11538 | return 0; | |
11539 | } | |
11540 | _ACEOF | |
11541 | if ac_fn_c_try_compile "$LINENO"; then : | |
11542 | ac_cv_sys_file_offset_bits=no; break | |
11543 | fi | |
11544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11546 | /* end confdefs.h. */ | |
11547 | #define _FILE_OFFSET_BITS 64 | |
11548 | #include <sys/types.h> | |
11549 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11550 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11551 | since some C++ compilers masquerading as C compilers | |
11552 | incorrectly reject 9223372036854775807. */ | |
11553 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11554 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11555 | && LARGE_OFF_T % 2147483647 == 1) | |
11556 | ? 1 : -1]; | |
11557 | int | |
11558 | main () | |
11559 | { | |
11560 | ||
11561 | ; | |
11562 | return 0; | |
11563 | } | |
11564 | _ACEOF | |
11565 | if ac_fn_c_try_compile "$LINENO"; then : | |
11566 | ac_cv_sys_file_offset_bits=64; break | |
11567 | fi | |
11568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11569 | ac_cv_sys_file_offset_bits=unknown | |
11570 | break | |
11571 | done | |
11572 | fi | |
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11574 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11575 | case $ac_cv_sys_file_offset_bits in #( | |
11576 | no | unknown) ;; | |
11577 | *) | |
11578 | cat >>confdefs.h <<_ACEOF | |
11579 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11580 | _ACEOF | |
11581 | ;; | |
11582 | esac | |
11583 | rm -rf conftest* | |
11584 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11586 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
11587 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
11588 | $as_echo_n "(cached) " >&6 | |
11589 | else | |
11590 | while :; do | |
11591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11592 | /* end confdefs.h. */ | |
11593 | #include <sys/types.h> | |
11594 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11595 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11596 | since some C++ compilers masquerading as C compilers | |
11597 | incorrectly reject 9223372036854775807. */ | |
11598 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11599 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11600 | && LARGE_OFF_T % 2147483647 == 1) | |
11601 | ? 1 : -1]; | |
11602 | int | |
11603 | main () | |
11604 | { | |
11605 | ||
11606 | ; | |
11607 | return 0; | |
11608 | } | |
11609 | _ACEOF | |
11610 | if ac_fn_c_try_compile "$LINENO"; then : | |
11611 | ac_cv_sys_large_files=no; break | |
11612 | fi | |
11613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11615 | /* end confdefs.h. */ | |
11616 | #define _LARGE_FILES 1 | |
11617 | #include <sys/types.h> | |
11618 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11619 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11620 | since some C++ compilers masquerading as C compilers | |
11621 | incorrectly reject 9223372036854775807. */ | |
11622 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11623 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11624 | && LARGE_OFF_T % 2147483647 == 1) | |
11625 | ? 1 : -1]; | |
11626 | int | |
11627 | main () | |
11628 | { | |
11629 | ||
11630 | ; | |
11631 | return 0; | |
11632 | } | |
11633 | _ACEOF | |
11634 | if ac_fn_c_try_compile "$LINENO"; then : | |
11635 | ac_cv_sys_large_files=1; break | |
11636 | fi | |
11637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11638 | ac_cv_sys_large_files=unknown | |
11639 | break | |
11640 | done | |
11641 | fi | |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
11643 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11644 | case $ac_cv_sys_large_files in #( | |
11645 | no | unknown) ;; | |
11646 | *) | |
11647 | cat >>confdefs.h <<_ACEOF | |
11648 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11649 | _ACEOF | |
11650 | ;; | |
11651 | esac | |
11652 | rm -rf conftest* | |
11653 | fi | |
11654 | fi | |
11655 | ||
11656 | ||
2d7f2507 AM |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
11658 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
11659 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
11660 | $as_echo_n "(cached) " >&6 | |
11661 | else | |
11662 | echo abfoo >t1 | |
11663 | echo cdfoo >t2 | |
da17fe9d | 11664 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
2d7f2507 AM |
11665 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
11666 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
11667 | : | |
11668 | else | |
11669 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
11670 | fi | |
11671 | fi | |
11672 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
11673 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
11674 | : | |
11675 | else | |
11676 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
11677 | fi | |
11678 | fi | |
11679 | rm t1 t2 | |
11680 | ||
11681 | fi | |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 | |
11683 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
11684 | do_compare="$gcc_cv_prog_cmp_skip" | |
11685 | ||
11686 | ||
b879806f | 11687 | |
81ecdfbb RW |
11688 | # Check whether --enable-targets was given. |
11689 | if test "${enable_targets+set}" = set; then : | |
11690 | enableval=$enable_targets; case "${enableval}" in | |
11691 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
11692 | ;; |
11693 | no) enable_targets= ;; | |
11694 | *) enable_targets=$enableval ;; | |
11695 | esac | |
81ecdfbb RW |
11696 | fi |
11697 | ||
ce2cded5 L |
11698 | ac_checking=yes |
11699 | if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then | |
11700 | ac_checking= | |
11701 | fi | |
81ecdfbb RW |
11702 | # Check whether --enable-checking was given. |
11703 | if test "${enable_checking+set}" = set; then : | |
11704 | enableval=$enable_checking; case "${enableval}" in | |
ce2cded5 L |
11705 | no|none) ac_checking= ;; |
11706 | *) ac_checking=yes ;; | |
11707 | esac | |
81ecdfbb RW |
11708 | fi |
11709 | if test x$ac_checking != x ; then | |
d7040cdb | 11710 | |
81ecdfbb | 11711 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
d7040cdb | 11712 | |
ce2cded5 | 11713 | fi |
d7040cdb | 11714 | |
6c3bc0f8 NC |
11715 | # PR gas/19109 |
11716 | # Decide the default method for compressing debug sections. | |
11717 | ac_default_compressed_debug_sections=unset | |
11718 | # Provide a configure time option to override our default. | |
11719 | # Check whether --enable-compressed_debug_sections was given. | |
11720 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
4894d80b | 11721 | enableval=$enable_compressed_debug_sections; case ,"${enableval}", in |
9b4c123c | 11722 | ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;; |
4894d80b | 11723 | ,no, | ,none,) ac_default_compressed_debug_sections=no ;; |
6c3bc0f8 NC |
11724 | *) ac_default_compressed_debug_sections=unset ;; |
11725 | esac | |
11726 | fi | |
11727 | ||
0cb4071e L |
11728 | # PR gas/19520 |
11729 | # Decide if x86 assembler should generate relax relocations. | |
11730 | ac_default_x86_relax_relocations=unset | |
11731 | # Provide a configure time option to override our default. | |
11732 | # Check whether --enable-x86_relax_relocations was given. | |
11733 | if test "${enable_x86_relax_relocations+set}" = set; then : | |
11734 | enableval=$enable_x86_relax_relocations; case "${enableval}" in | |
11735 | no) ac_default_x86_relax_relocations=0 ;; | |
11736 | esac | |
11737 | fi | |
11738 | ||
b8871f35 L |
11739 | # Decide if ELF assembler should generate common symbols with the |
11740 | # STT_COMMON type. | |
11741 | ac_default_elf_stt_common=unset | |
11742 | # Provide a configure time option to override our default. | |
11743 | # Check whether --enable-elf_stt_common was given. | |
11744 | if test "${enable_elf_stt_common+set}" = set; then : | |
11745 | enableval=$enable_elf_stt_common; case "${enableval}" in | |
11746 | yes) ac_default_elf_stt_common=1 ;; | |
11747 | esac | |
11748 | fi | |
11749 | ||
ce2cded5 | 11750 | using_cgen=no |
d7040cdb | 11751 | |
d7040cdb | 11752 | |
270c9937 JB |
11753 | # Set the 'development' global. |
11754 | . $srcdir/../bfd/development.sh | |
11755 | ||
c5da1932 VZ |
11756 | # Set acp_cpp_for_build variable |
11757 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11758 | ||
9780e045 | 11759 | # Default set of GCC warnings to enable. |
397841b5 | 11760 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11761 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11762 | |
11763 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11765 | /* end confdefs.h. */ | |
11766 | __GNUC__ | |
11767 | _ACEOF | |
11768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11769 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
11770 | ||
11771 | else | |
11772 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11773 | fi | |
11774 | rm -f conftest* | |
11775 | ||
d7040cdb | 11776 | |
9780e045 NC |
11777 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11779 | /* end confdefs.h. */ | |
11780 | __GNUC__ | |
11781 | _ACEOF | |
11782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11783 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : | |
11784 | ||
11785 | else | |
11786 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
11787 | fi | |
11788 | rm -f conftest* | |
11789 | ||
11790 | ||
6757cf57 TS |
11791 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11792 | WARN_WRITE_STRINGS="" | |
11793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11794 | /* end confdefs.h. */ | |
11795 | __GNUC__ | |
11796 | _ACEOF | |
11797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11798 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
11799 | ||
11800 | else | |
11801 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11802 | fi | |
11803 | rm -f conftest* | |
11804 | ||
9780e045 | 11805 | |
96fe4562 | 11806 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11807 | |
11808 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
11809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11810 | /* end confdefs.h. */ | |
11811 | __GNUC__ | |
11812 | _ACEOF | |
11813 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
11814 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
11815 | ||
11816 | else | |
11817 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
11818 | fi | |
11819 | rm -f conftest* | |
11820 | ||
11821 | ||
11822 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
11823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11824 | /* end confdefs.h. */ | |
11825 | __GNUC__ | |
11826 | _ACEOF | |
11827 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
11828 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : | |
11829 | ||
11830 | else | |
11831 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
11832 | fi | |
11833 | rm -f conftest* | |
11834 | ||
11835 | ||
81ecdfbb RW |
11836 | # Check whether --enable-werror was given. |
11837 | if test "${enable_werror+set}" = set; then : | |
11838 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
11839 | yes | y) ERROR_ON_WARNING="yes" ;; |
11840 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11841 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 11842 | esac |
81ecdfbb RW |
11843 | fi |
11844 | ||
d7040cdb | 11845 | |
397841b5 | 11846 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11847 | case "${host}" in |
11848 | *-*-mingw32*) | |
11849 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11850 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 11851 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
11852 | fi |
11853 | ;; | |
11854 | *) ;; | |
11855 | esac | |
11856 | ||
270c9937 JB |
11857 | # Enable -Werror by default when using gcc. Turn it off for releases. |
11858 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
ce2cded5 L |
11859 | ERROR_ON_WARNING=yes |
11860 | fi | |
11861 | ||
11862 | NO_WERROR= | |
11863 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 11864 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 11865 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
ce2cded5 L |
11866 | NO_WERROR="-Wno-error" |
11867 | fi | |
11868 | ||
11869 | if test "${GCC}" = yes ; then | |
11870 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 11871 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
ce2cded5 L |
11872 | fi |
11873 | ||
81ecdfbb RW |
11874 | # Check whether --enable-build-warnings was given. |
11875 | if test "${enable_build_warnings+set}" = set; then : | |
11876 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
11877 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
11878 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
ce2cded5 L |
11879 | no) if test "${GCC}" = yes ; then |
11880 | WARN_CFLAGS="-w" | |
c5da1932 | 11881 | WARN_CFLAGS_FOR_BUILD="-w" |
ce2cded5 L |
11882 | fi;; |
11883 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
11884 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
11885 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
ce2cded5 | 11886 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
11887 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
11888 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
11889 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11890 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
ce2cded5 | 11891 | esac |
81ecdfbb RW |
11892 | fi |
11893 | ||
d7040cdb | 11894 | |
ce2cded5 L |
11895 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11896 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11897 | fi | |
d7040cdb | 11898 | |
d7040cdb | 11899 | |
d7040cdb | 11900 | |
d7040cdb | 11901 | |
d7040cdb | 11902 | |
6757cf57 | 11903 | |
c5da1932 | 11904 | |
ce2cded5 | 11905 | # Generate a header file |
81ecdfbb | 11906 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb | 11907 | |
d7040cdb | 11908 | |
9004b6bd AB |
11909 | |
11910 | # Check whether --with-cpu was given. | |
11911 | if test "${with_cpu+set}" = set; then : | |
11912 | withval=$with_cpu; | |
11913 | cat >>confdefs.h <<_ACEOF | |
11914 | #define TARGET_WITH_CPU "${with_cpu}" | |
11915 | _ACEOF | |
11916 | ||
11917 | fi | |
11918 | ||
11919 | ||
df7b86aa NC |
11920 | # PR 14072 |
11921 | ||
11922 | ||
ce2cded5 L |
11923 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11924 | # .gdbinit. | |
11925 | case "${host}" in | |
11926 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11927 | GDBINIT="gdb.ini" | |
81ecdfbb | 11928 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
d7040cdb | 11929 | |
ce2cded5 L |
11930 | ;; |
11931 | *) | |
11932 | GDBINIT=".gdbinit" | |
81ecdfbb | 11933 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" |
d7040cdb | 11934 | |
ce2cded5 L |
11935 | ;; |
11936 | esac | |
d7040cdb | 11937 | |
d7040cdb | 11938 | |
ce2cded5 | 11939 | #We need this for the host. BOUT header is in host order. |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
11941 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
11942 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
11943 | $as_echo_n "(cached) " >&6 | |
11944 | else | |
11945 | ac_cv_c_bigendian=unknown | |
11946 | # See if we're dealing with a universal compiler. | |
11947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11948 | /* end confdefs.h. */ | |
11949 | #ifndef __APPLE_CC__ | |
11950 | not a universal capable compiler | |
11951 | #endif | |
11952 | typedef int dummy; | |
11953 | ||
11954 | _ACEOF | |
11955 | if ac_fn_c_try_compile "$LINENO"; then : | |
11956 | ||
11957 | # Check for potential -arch flags. It is not universal unless | |
11958 | # there are at least two -arch flags with different values. | |
11959 | ac_arch= | |
11960 | ac_prev= | |
11961 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
11962 | if test -n "$ac_prev"; then | |
11963 | case $ac_word in | |
11964 | i?86 | x86_64 | ppc | ppc64) | |
11965 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
11966 | ac_arch=$ac_word | |
11967 | else | |
11968 | ac_cv_c_bigendian=universal | |
11969 | break | |
11970 | fi | |
11971 | ;; | |
11972 | esac | |
11973 | ac_prev= | |
11974 | elif test "x$ac_word" = "x-arch"; then | |
11975 | ac_prev=arch | |
11976 | fi | |
11977 | done | |
11978 | fi | |
11979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11980 | if test $ac_cv_c_bigendian = unknown; then | |
11981 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 L |
11983 | /* end confdefs.h. */ |
11984 | #include <sys/types.h> | |
81ecdfbb | 11985 | #include <sys/param.h> |
d7040cdb | 11986 | |
ce2cded5 L |
11987 | int |
11988 | main () | |
11989 | { | |
81ecdfbb RW |
11990 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
11991 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
11992 | && LITTLE_ENDIAN) | |
11993 | bogus endian macros | |
11994 | #endif | |
d7040cdb | 11995 | |
ce2cded5 L |
11996 | ; |
11997 | return 0; | |
11998 | } | |
11999 | _ACEOF | |
81ecdfbb | 12000 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 12001 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 12002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
12003 | /* end confdefs.h. */ |
12004 | #include <sys/types.h> | |
81ecdfbb | 12005 | #include <sys/param.h> |
d7040cdb | 12006 | |
ce2cded5 L |
12007 | int |
12008 | main () | |
12009 | { | |
12010 | #if BYTE_ORDER != BIG_ENDIAN | |
81ecdfbb RW |
12011 | not big endian |
12012 | #endif | |
d7040cdb | 12013 | |
ce2cded5 L |
12014 | ; |
12015 | return 0; | |
12016 | } | |
12017 | _ACEOF | |
81ecdfbb | 12018 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
12019 | ac_cv_c_bigendian=yes |
12020 | else | |
81ecdfbb | 12021 | ac_cv_c_bigendian=no |
ce2cded5 | 12022 | fi |
81ecdfbb RW |
12023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12024 | fi | |
12025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12026 | fi | |
12027 | if test $ac_cv_c_bigendian = unknown; then | |
12028 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
12029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12030 | /* end confdefs.h. */ | |
12031 | #include <limits.h> | |
d7040cdb | 12032 | |
81ecdfbb RW |
12033 | int |
12034 | main () | |
12035 | { | |
12036 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
12037 | bogus endian macros | |
12038 | #endif | |
12039 | ||
12040 | ; | |
12041 | return 0; | |
12042 | } | |
ce2cded5 | 12043 | _ACEOF |
81ecdfbb RW |
12044 | if ac_fn_c_try_compile "$LINENO"; then : |
12045 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
12046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 12047 | /* end confdefs.h. */ |
81ecdfbb RW |
12048 | #include <limits.h> |
12049 | ||
ce2cded5 L |
12050 | int |
12051 | main () | |
12052 | { | |
81ecdfbb RW |
12053 | #ifndef _BIG_ENDIAN |
12054 | not big endian | |
12055 | #endif | |
12056 | ||
ce2cded5 L |
12057 | ; |
12058 | return 0; | |
12059 | } | |
12060 | _ACEOF | |
81ecdfbb | 12061 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 12062 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
12063 | else |
12064 | ac_cv_c_bigendian=no | |
d7040cdb | 12065 | fi |
81ecdfbb | 12066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 12067 | fi |
81ecdfbb RW |
12068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12069 | fi | |
12070 | if test $ac_cv_c_bigendian = unknown; then | |
12071 | # Compile a test program. | |
12072 | if test "$cross_compiling" = yes; then : | |
12073 | # Try to guess by grepping values from an object file. | |
12074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12075 | /* end confdefs.h. */ | |
12076 | short int ascii_mm[] = | |
12077 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
12078 | short int ascii_ii[] = | |
12079 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
12080 | int use_ascii (int i) { | |
12081 | return ascii_mm[i] + ascii_ii[i]; | |
12082 | } | |
12083 | short int ebcdic_ii[] = | |
12084 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
12085 | short int ebcdic_mm[] = | |
12086 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
12087 | int use_ebcdic (int i) { | |
12088 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12089 | } | |
12090 | extern int foo; | |
d7040cdb | 12091 | |
81ecdfbb RW |
12092 | int |
12093 | main () | |
12094 | { | |
12095 | return use_ascii (foo) == use_ebcdic (foo); | |
12096 | ; | |
12097 | return 0; | |
12098 | } | |
12099 | _ACEOF | |
12100 | if ac_fn_c_try_compile "$LINENO"; then : | |
12101 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
12102 | ac_cv_c_bigendian=yes | |
12103 | fi | |
12104 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12105 | if test "$ac_cv_c_bigendian" = unknown; then | |
12106 | ac_cv_c_bigendian=no | |
12107 | else | |
12108 | # finding both strings is unlikely to happen, but who knows? | |
12109 | ac_cv_c_bigendian=unknown | |
12110 | fi | |
12111 | fi | |
ce2cded5 | 12112 | fi |
81ecdfbb | 12113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 12114 | else |
81ecdfbb | 12115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 12116 | /* end confdefs.h. */ |
81ecdfbb | 12117 | $ac_includes_default |
ce2cded5 L |
12118 | int |
12119 | main () | |
12120 | { | |
81ecdfbb RW |
12121 | |
12122 | /* Are we little or big endian? From Harbison&Steele. */ | |
12123 | union | |
12124 | { | |
12125 | long int l; | |
12126 | char c[sizeof (long int)]; | |
12127 | } u; | |
12128 | u.l = 1; | |
12129 | return u.c[sizeof (long int) - 1] == 1; | |
12130 | ||
12131 | ; | |
12132 | return 0; | |
ce2cded5 | 12133 | } |
d7040cdb | 12134 | _ACEOF |
81ecdfbb | 12135 | if ac_fn_c_try_run "$LINENO"; then : |
ce2cded5 L |
12136 | ac_cv_c_bigendian=no |
12137 | else | |
81ecdfbb | 12138 | ac_cv_c_bigendian=yes |
d7040cdb | 12139 | fi |
81ecdfbb RW |
12140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12141 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d7040cdb | 12142 | fi |
81ecdfbb RW |
12143 | |
12144 | fi | |
ce2cded5 | 12145 | fi |
81ecdfbb RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
12147 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
12148 | case $ac_cv_c_bigendian in #( | |
12149 | yes) | |
12150 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
12151 | ;; #( | |
12152 | no) | |
12153 | ;; #( | |
12154 | universal) | |
d7040cdb | 12155 | |
81ecdfbb RW |
12156 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
12157 | ||
12158 | ;; #( | |
12159 | *) | |
12160 | as_fn_error "unknown endianness | |
12161 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
12162 | esac | |
d7040cdb | 12163 | |
d7040cdb | 12164 | |
ce2cded5 | 12165 | te_file=generic |
d7040cdb | 12166 | |
ce2cded5 L |
12167 | # Makefile target for installing gas in $(tooldir)/bin. |
12168 | install_tooldir=install-exec-tooldir | |
d7040cdb | 12169 | |
ce2cded5 L |
12170 | canon_targets="" |
12171 | all_targets=no | |
12172 | if test -n "$enable_targets" ; then | |
12173 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
12174 | if test $t = "all"; then | |
12175 | all_targets=yes | |
12176 | continue | |
12177 | fi | |
12178 | result=`$ac_config_sub $t 2>/dev/null` | |
12179 | if test -n "$result" ; then | |
12180 | canon_targets="$canon_targets $result" | |
12181 | # else | |
12182 | # # Permit "all", etc. We don't support it yet though. | |
12183 | # canon_targets="$canon_targets $t" | |
12184 | fi | |
12185 | done | |
12186 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
12187 | _gas_uniq_newlist="" |
12188 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12189 | case $_gas_uniq_i in | |
12190 | _gas_uniq_dummy) ;; | |
12191 | *) case " $_gas_uniq_newlist " in | |
12192 | *" $_gas_uniq_i "*) ;; | |
12193 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12194 | esac ;; | |
12195 | esac | |
12196 | done | |
ce2cded5 | 12197 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 12198 | |
ce2cded5 L |
12199 | fi |
12200 | ||
12201 | emulations="" | |
12202 | ||
12203 | for this_target in $target $canon_targets ; do | |
12204 | ||
12205 | targ=${this_target} | |
12206 | . ${srcdir}/configure.tgt | |
12207 | ||
12208 | case ${target_cpu} in | |
12209 | crisv32) | |
12210 | ||
12211 | cat >>confdefs.h <<_ACEOF | |
12212 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 12213 | _ACEOF |
ce2cded5 L |
12214 | |
12215 | ;; | |
12216 | esac | |
12217 | ||
12218 | if test ${this_target} = $target ; then | |
12219 | target_cpu_type=${cpu_type} | |
12220 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
12221 | continue | |
12222 | fi | |
12223 | ||
12224 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
12225 | case ${generic_target} in | |
12226 | i386-*-sco3.2v5*) | |
12227 | if test ${this_target} = $target; then | |
12228 | ||
81ecdfbb | 12229 | $as_echo "#define SCO_ELF 1" >>confdefs.h |
ce2cded5 L |
12230 | |
12231 | fi | |
12232 | ;; | |
12233 | ||
12234 | i386-*-msdosdjgpp* \ | |
12235 | | i386-*-go32* \ | |
12236 | | i386-go32-rtems*) | |
12237 | ||
81ecdfbb | 12238 | $as_echo "#define STRICTCOFF 1" >>confdefs.h |
ce2cded5 L |
12239 | |
12240 | ;; | |
12241 | ||
0cb4071e L |
12242 | i386-*-solaris2 \ |
12243 | | x86_64-*-solaris2 \ | |
12244 | | i386-*-solaris2.[0-9] \ | |
12245 | | i386-*-solaris2.1[01] \ | |
12246 | | x86_64-*-solaris2.1[01]) | |
12247 | if test ${this_target} = $target \ | |
12248 | && test ${ac_default_x86_relax_relocations} = unset; then | |
12249 | ac_default_x86_relax_relocations=0 | |
12250 | fi | |
12251 | ;; | |
12252 | ||
ce2cded5 | 12253 | i860-*-*) |
81ecdfbb RW |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 |
12255 | $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
ce2cded5 L |
12256 | ;; |
12257 | ||
7ba29e2a NC |
12258 | microblaze*) |
12259 | ;; | |
12260 | ||
e5231592 | 12261 | ppc-*-aix[5-9].*) |
ce2cded5 | 12262 | |
81ecdfbb | 12263 | $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h |
ce2cded5 | 12264 | |
ce2cded5 L |
12265 | ;; |
12266 | ppc-*-solaris*) | |
12267 | if test ${this_target} = $target; then | |
12268 | ||
81ecdfbb | 12269 | $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h |
ce2cded5 L |
12270 | |
12271 | fi | |
12272 | if test x${endian} = xbig; then | |
81ecdfbb | 12273 | as_fn_error "Solaris must be configured little endian" "$LINENO" 5 |
ce2cded5 L |
12274 | fi |
12275 | ;; | |
12276 | ||
12277 | sh*-*-symbianelf*) | |
12278 | ||
81ecdfbb | 12279 | $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h |
ce2cded5 L |
12280 | |
12281 | ;; | |
d7040cdb | 12282 | esac |
d7040cdb | 12283 | |
ce2cded5 L |
12284 | if test ${this_target} = $target ; then |
12285 | endian_def= | |
12286 | if test x${endian} = xbig; then | |
12287 | endian_def=1 | |
12288 | elif test x${endian} = xlittle; then | |
12289 | endian_def=0 | |
12290 | fi | |
12291 | if test x${endian_def} != x; then | |
12292 | ||
12293 | cat >>confdefs.h <<_ACEOF | |
12294 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
12295 | _ACEOF | |
12296 | ||
12297 | fi | |
12298 | fi | |
12299 | ||
12300 | # Other random stuff. | |
12301 | ||
12302 | case ${cpu_type} in | |
12303 | mips) | |
12304 | # Set mips_cpu to the name of the default CPU. | |
12305 | case ${target_cpu} in | |
12306 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
12307 | mips_cpu=from-abi | |
12308 | ;; | |
12309 | mipsisa32 | mipsisa32el) | |
12310 | mips_cpu=mips32 | |
12311 | ;; | |
12312 | mipsisa32r2 | mipsisa32r2el) | |
12313 | mips_cpu=mips32r2 | |
12314 | ;; | |
ae52f483 AB |
12315 | mipsisa32r3 | mipsisa32r3el) |
12316 | mips_cpu=mips32r3 | |
12317 | ;; | |
12318 | mipsisa32r5 | mipsisa32r5el) | |
12319 | mips_cpu=mips32r5 | |
12320 | ;; | |
7361da2c AB |
12321 | mipsisa32r6 | mipsisa32r6el) |
12322 | mips_cpu=mips32r6 | |
12323 | ;; | |
ce2cded5 L |
12324 | mipsisa64 | mipsisa64el) |
12325 | mips_cpu=mips64 | |
12326 | ;; | |
12327 | mipsisa64r2 | mipsisa64r2el) | |
12328 | mips_cpu=mips64r2 | |
12329 | ;; | |
ae52f483 AB |
12330 | mipsisa64r3 | mipsisa64r3el) |
12331 | mips_cpu=mips64r3 | |
12332 | ;; | |
12333 | mipsisa64r5 | mipsisa64r5el) | |
12334 | mips_cpu=mips64r5 | |
12335 | ;; | |
7361da2c AB |
12336 | mipsisa64r6 | mipsisa64r6el) |
12337 | mips_cpu=mips64r6 | |
12338 | ;; | |
ce2cded5 L |
12339 | mipstx39 | mipstx39el) |
12340 | mips_cpu=r3900 | |
12341 | ;; | |
12342 | mips64vr | mips64vrel) | |
12343 | mips_cpu=vr4100 | |
12344 | ;; | |
12345 | mipsisa32r2* | mipsisa64r2*) | |
12346 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
12347 | ;; | |
7361da2c AB |
12348 | mipsisa32r6* | mipsisa64r6*) |
12349 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'` | |
12350 | ;; | |
ce2cded5 L |
12351 | mips64* | mipsisa64* | mipsisa32*) |
12352 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
12353 | ;; | |
e407c74b NC |
12354 | mips*) |
12355 | mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'` | |
12356 | ;; | |
ce2cded5 | 12357 | *) |
81ecdfbb | 12358 | as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5 |
ce2cded5 L |
12359 | ;; |
12360 | esac | |
12361 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
12362 | # binaries. It's a GNU extension that some OSes don't understand. | |
ce2cded5 L |
12363 | case ${target} in |
12364 | *-*-irix*) | |
12365 | use_e_mips_abi_o32=0 | |
12366 | ;; | |
12367 | *) | |
12368 | use_e_mips_abi_o32=1 | |
12369 | ;; | |
12370 | esac | |
12371 | # Decide whether to generate 32-bit or 64-bit code by default. | |
12372 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
12373 | case ${target} in | |
12374 | mips64*-*-* | mipsisa64*-*-*) | |
12375 | mips_default_64bit=1 | |
12376 | ;; | |
12377 | *) | |
12378 | mips_default_64bit=0 | |
12379 | ;; | |
12380 | esac | |
12381 | # Decide which ABI to target by default. | |
12382 | case ${target} in | |
aeffff67 | 12383 | mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu) |
ce2cded5 L |
12384 | mips_default_abi=N32_ABI |
12385 | ;; | |
aeffff67 | 12386 | mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) |
ce2cded5 L |
12387 | mips_default_abi=O32_ABI |
12388 | ;; | |
12389 | mips64*-openbsd*) | |
12390 | mips_default_abi=N64_ABI | |
12391 | ;; | |
12392 | *) | |
12393 | mips_default_abi=NO_ABI | |
12394 | ;; | |
12395 | esac | |
12396 | ||
12397 | cat >>confdefs.h <<_ACEOF | |
12398 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 12399 | _ACEOF |
d7040cdb SE |
12400 | |
12401 | ||
12402 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12403 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
12404 | _ACEOF |
12405 | ||
12406 | ||
12407 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12408 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
12409 | _ACEOF |
12410 | ||
12411 | ||
ce2cded5 L |
12412 | cat >>confdefs.h <<_ACEOF |
12413 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
12414 | _ACEOF | |
d7040cdb | 12415 | |
ce2cded5 L |
12416 | ;; |
12417 | esac | |
d7040cdb | 12418 | |
ce2cded5 L |
12419 | # Do we need the opcodes library? |
12420 | case ${cpu_type} in | |
12421 | vax | tic30) | |
12422 | ;; | |
d7040cdb | 12423 | |
ce2cded5 L |
12424 | *) |
12425 | need_opcodes=yes | |
d7040cdb | 12426 | |
ce2cded5 L |
12427 | case "${enable_shared}" in |
12428 | yes) shared_opcodes=true ;; | |
12429 | *opcodes*) shared_opcodes=true ;; | |
12430 | *) shared_opcodes=false ;; | |
12431 | esac | |
12432 | ;; | |
12433 | esac | |
d7040cdb | 12434 | |
ce2cded5 L |
12435 | # Any other special object files needed ? |
12436 | case ${cpu_type} in | |
d7040cdb | 12437 | |
ce2cded5 L |
12438 | bfin) |
12439 | echo ${extra_objects} | grep -s "bfin-parse.o" | |
12440 | if test $? -ne 0 ; then | |
12441 | extra_objects="$extra_objects bfin-parse.o" | |
12442 | fi | |
d7040cdb | 12443 | |
df7b86aa | 12444 | echo ${extra_objects} | grep -s "bfin-lex-wrapper.o" |
ce2cded5 | 12445 | if test $? -ne 0 ; then |
df7b86aa | 12446 | extra_objects="$extra_objects bfin-lex-wrapper.o" |
ce2cded5 L |
12447 | fi |
12448 | ;; | |
d7040cdb | 12449 | |
73589c9d | 12450 | epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k) |
ce2cded5 L |
12451 | using_cgen=yes |
12452 | ;; | |
d7040cdb | 12453 | |
ce2cded5 L |
12454 | m32c) |
12455 | using_cgen=yes | |
12456 | ;; | |
12457 | frv) | |
12458 | using_cgen=yes | |
12459 | ;; | |
12460 | m68k) | |
12461 | case ${extra_objects} in | |
12462 | *m68k-parse.o*) ;; | |
12463 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
12464 | esac | |
12465 | ;; | |
d7040cdb | 12466 | |
ce2cded5 L |
12467 | mep) |
12468 | using_cgen=yes | |
12469 | ;; | |
d7040cdb | 12470 | |
ce2cded5 L |
12471 | mips) |
12472 | echo ${extra_objects} | grep -s "itbl-parse.o" | |
12473 | if test $? -ne 0 ; then | |
12474 | extra_objects="$extra_objects itbl-parse.o" | |
12475 | fi | |
d7040cdb | 12476 | |
df7b86aa | 12477 | echo ${extra_objects} | grep -s "itbl-lex-wrapper.o" |
ce2cded5 | 12478 | if test $? -ne 0 ; then |
df7b86aa | 12479 | extra_objects="$extra_objects itbl-lex-wrapper.o" |
ce2cded5 | 12480 | fi |
d7040cdb | 12481 | |
ce2cded5 L |
12482 | echo ${extra_objects} | grep -s "itbl-ops.o" |
12483 | if test $? -ne 0 ; then | |
12484 | extra_objects="$extra_objects itbl-ops.o" | |
12485 | fi | |
12486 | ;; | |
d7040cdb | 12487 | |
ce2cded5 L |
12488 | mt) |
12489 | using_cgen=yes | |
12490 | ;; | |
d7040cdb | 12491 | |
35c08157 KLC |
12492 | nds32) |
12493 | # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features | |
12494 | # based on arch_name. | |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5 | |
12496 | $as_echo_n "checking for default configuration of --with-arch... " >&6; } | |
12497 | if test "x${with_arch}" != x; then | |
12498 | case ${with_arch} in | |
12499 | v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 ) | |
12500 | ||
12501 | cat >>confdefs.h <<_ACEOF | |
12502 | #define NDS32_DEFAULT_ARCH_NAME "$with_arch" | |
12503 | _ACEOF | |
12504 | ||
12505 | ;; | |
12506 | *) | |
12507 | as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5 | |
12508 | ;; | |
12509 | esac | |
12510 | fi | |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5 | |
12512 | $as_echo "$with_arch" >&6; } | |
12513 | ||
12514 | # Decide features one by one. | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5 | |
12516 | $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; } | |
6cd8405e | 12517 | if test "x${enable_dx_regs}" = xyes; then |
35c08157 KLC |
12518 | |
12519 | $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h | |
12520 | ||
12521 | else | |
12522 | ||
12523 | $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h | |
12524 | ||
12525 | fi | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5 | |
12527 | $as_echo "$enable_dx_regs" >&6; } | |
12528 | ||
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5 | |
12530 | $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; } | |
6cd8405e | 12531 | if test "x${enable_perf_ext}" = xno; then |
35c08157 KLC |
12532 | |
12533 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h | |
12534 | ||
12535 | else | |
12536 | ||
12537 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h | |
12538 | ||
12539 | fi | |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5 | |
12541 | $as_echo "$enable_perf_ext" >&6; } | |
12542 | ||
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5 | |
12544 | $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; } | |
6cd8405e | 12545 | if test "x${enable_perf_ext2}" = xno; then |
35c08157 KLC |
12546 | |
12547 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h | |
12548 | ||
12549 | else | |
12550 | ||
12551 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h | |
12552 | ||
12553 | fi | |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5 | |
12555 | $as_echo "$enable_perf_ext2" >&6; } | |
12556 | ||
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5 | |
12558 | $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; } | |
6cd8405e | 12559 | if test "x${enable_string_ext}" = xno; then |
35c08157 KLC |
12560 | |
12561 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h | |
12562 | ||
12563 | else | |
12564 | ||
12565 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h | |
12566 | ||
12567 | fi | |
12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5 | |
12569 | $as_echo "$enable_string_ext" >&6; } | |
12570 | ||
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5 | |
12572 | $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; } | |
6cd8405e | 12573 | if test "x${enable_audio_ext}" = xno; then |
35c08157 KLC |
12574 | |
12575 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h | |
12576 | ||
12577 | else | |
12578 | ||
12579 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h | |
12580 | ||
12581 | fi | |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5 | |
12583 | $as_echo "$enable_audio_ext" >&6; } | |
12584 | ;; | |
12585 | ||
3c0367d0 | 12586 | aarch64 | i386 | riscv | s390 | sparc) |
ce2cded5 | 12587 | if test $this_target = $target ; then |
d7040cdb SE |
12588 | |
12589 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12590 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12591 | _ACEOF |
12592 | ||
ce2cded5 L |
12593 | fi |
12594 | ;; | |
d7040cdb | 12595 | |
99c513f6 DD |
12596 | rl78) |
12597 | echo ${extra_objects} | grep -s "rl78-parse.o" | |
12598 | if test $? -ne 0 ; then | |
12599 | extra_objects="$extra_objects rl78-parse.o" | |
12600 | fi | |
12601 | ;; | |
12602 | ||
c7927a3c NC |
12603 | rx) |
12604 | echo ${extra_objects} | grep -s "rx-parse.o" | |
12605 | if test $? -ne 0 ; then | |
12606 | extra_objects="$extra_objects rx-parse.o" | |
12607 | fi | |
12608 | ;; | |
12609 | ||
ce2cded5 L |
12610 | xstormy16) |
12611 | using_cgen=yes | |
12612 | ;; | |
d7040cdb | 12613 | |
ce2cded5 L |
12614 | xc16x) |
12615 | using_cgen=yes | |
12616 | ;; | |
d7040cdb | 12617 | |
ce2cded5 L |
12618 | xtensa) |
12619 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
12620 | if test $? -ne 0 ; then | |
12621 | extra_objects="$extra_objects xtensa-relax.o" | |
12622 | fi | |
12623 | ;; | |
d7040cdb | 12624 | |
ce2cded5 L |
12625 | *) |
12626 | ;; | |
12627 | esac | |
d7040cdb | 12628 | |
ce2cded5 L |
12629 | if test $using_cgen = yes ; then |
12630 | case "x${extra_objects}" in | |
12631 | *cgen.o*) ;; | |
12632 | *) extra_objects="$extra_objects cgen.o" ;; | |
12633 | esac | |
12634 | fi | |
d7040cdb | 12635 | |
ce2cded5 | 12636 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12637 | |
ce2cded5 L |
12638 | if test $this_target = $target ; then |
12639 | obj_format=$fmt | |
12640 | te_file=$em | |
12641 | fi | |
d7040cdb | 12642 | |
b11d79f2 TG |
12643 | case ${te_file} in |
12644 | vms) extra_objects="$extra_objects te-vms.o" ;; | |
12645 | esac | |
12646 | ||
ce2cded5 | 12647 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12648 | |
ce2cded5 | 12649 | case ${generic_target}-${fmt} in |
e8044f35 | 12650 | mips-*-*-*) case "$endian" in |
ce2cded5 L |
12651 | big) emulation="mipsbelf mipslelf mipself" ;; |
12652 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12653 | esac ;; | |
ce2cded5 L |
12654 | # i386-pc-pe-coff != i386-pc-coff. |
12655 | i386-*-pe-coff) ;; | |
12656 | # Uncommenting the next line will turn on support for i386 AOUT | |
12657 | # for the default linux configuration | |
12658 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12659 | # | |
12660 | i386-*-aout) emulation="i386aout" ;; | |
12661 | i386-*-coff) emulation="i386coff" ;; | |
12662 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12663 | |
ce2cded5 L |
12664 | # Always all formats. The first stated emulation becomes the default. |
12665 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12666 | cris-*-*) emulation="criself crisaout" ;; | |
12667 | esac | |
13b2be9c | 12668 | |
ce2cded5 | 12669 | emulations="$emulations $emulation" |
13b2be9c | 12670 | |
13b2be9c | 12671 | done |
13b2be9c | 12672 | |
0cb4071e L |
12673 | if test ${ac_default_x86_relax_relocations} = unset; then |
12674 | ac_default_x86_relax_relocations=1 | |
12675 | fi | |
12676 | ||
12677 | cat >>confdefs.h <<_ACEOF | |
12678 | #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations | |
12679 | _ACEOF | |
12680 | ||
12681 | ||
b8871f35 L |
12682 | if test ${ac_default_elf_stt_common} = unset; then |
12683 | ac_default_elf_stt_common=0 | |
12684 | fi | |
12685 | ||
12686 | cat >>confdefs.h <<_ACEOF | |
12687 | #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common | |
12688 | _ACEOF | |
12689 | ||
12690 | ||
348ef89a | 12691 | if test x$ac_default_compressed_debug_sections = xyes ; then |
e12fe555 NC |
12692 | |
12693 | $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h | |
12694 | ||
6c3bc0f8 | 12695 | fi |
e12fe555 | 12696 | |
ce2cded5 L |
12697 | # Turn on all targets if possible |
12698 | if test ${all_targets} = "yes"; then | |
12699 | case ${target_cpu_type} in | |
12700 | i386) | |
12701 | case ${obj_format} in | |
12702 | aout) | |
12703 | emulations="$emulations i386coff i386elf" | |
12704 | ;; | |
12705 | coff) | |
12706 | emulations="$emulations i386aout i386elf" | |
12707 | ;; | |
12708 | elf) | |
12709 | emulations="$emulations i386aout i386coff" | |
12710 | ;; | |
12711 | esac | |
12712 | ;; | |
12713 | x86_64) | |
12714 | case ${obj_format} in | |
12715 | aout) | |
12716 | emulations="$emulations i386coff i386elf" | |
12717 | ;; | |
12718 | coff) | |
12719 | emulations="$emulations i386aout i386elf" | |
12720 | ;; | |
12721 | elf) | |
12722 | emulations="$emulations i386aout i386coff" | |
12723 | ;; | |
12724 | esac | |
12725 | ;; | |
12726 | esac | |
13b2be9c | 12727 | fi |
c8615825 | 12728 | |
39871c07 AM |
12729 | # PE code has way too many macros tweaking behaviour |
12730 | case ${te_file} in | |
12731 | pe*) emulations="" ;; | |
12732 | esac | |
12733 | ||
ce2cded5 L |
12734 | # Assign floating point type. Most processors with FP support |
12735 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12736 | # is emulated. | |
12737 | case ${target_cpu} in | |
12738 | vax | pdp11 ) atof=vax ;; | |
12739 | *) atof=ieee ;; | |
12740 | esac | |
c8615825 | 12741 | |
ce2cded5 | 12742 | case "${obj_format}" in |
81ecdfbb | 12743 | "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;; |
ce2cded5 | 12744 | esac |
13b2be9c | 12745 | |
ce2cded5 L |
12746 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12747 | cgen_cpu_prefix="" | |
12748 | if test $using_cgen = yes ; then | |
12749 | case ${target_cpu} in | |
73589c9d CS |
12750 | or1knd) |
12751 | cgen_cpu_prefix=or1k ;; | |
ce2cded5 L |
12752 | *) cgen_cpu_prefix=${target_cpu} ;; |
12753 | esac | |
c8615825 | 12754 | |
c8615825 | 12755 | |
81ecdfbb | 12756 | $as_echo "#define USING_CGEN 1" >>confdefs.h |
d7040cdb | 12757 | |
d7040cdb | 12758 | fi |
13b2be9c | 12759 | |
ce2cded5 L |
12760 | |
12761 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
81ecdfbb | 12762 | as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5 |
13b2be9c | 12763 | fi |
ce2cded5 L |
12764 | |
12765 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
81ecdfbb | 12766 | as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5 |
13b2be9c DJ |
12767 | fi |
12768 | ||
ce2cded5 L |
12769 | # Some COFF configurations want these random other flags set. |
12770 | case ${obj_format} in | |
12771 | coff) | |
12772 | case ${target_cpu_type} in | |
12773 | i386) | |
81ecdfbb | 12774 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12775 | ;; |
12776 | m68k) | |
81ecdfbb | 12777 | $as_echo "#define M68KCOFF 1" >>confdefs.h |
ce2cded5 L |
12778 | ;; |
12779 | m88k) | |
81ecdfbb | 12780 | $as_echo "#define M88KCOFF 1" >>confdefs.h |
ce2cded5 L |
12781 | ;; |
12782 | x86_64) | |
81ecdfbb | 12783 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12784 | ;; |
12785 | esac | |
12786 | ;; | |
12787 | esac | |
12788 | ||
12789 | # Getting this done right is going to be a bitch. Each configuration specified | |
12790 | # with --enable-targets=... should be checked for environment, format, cpu | |
12791 | # setting. | |
12792 | # | |
12793 | # For each configuration, the necessary object file support code must be linked | |
12794 | # in. This might be only one, it might be up to four. The necessary emulation | |
12795 | # code needs to be provided, too. | |
12796 | # | |
12797 | # And then there's "--enable-targets=all".... | |
12798 | # | |
e8044f35 | 12799 | # For now, just always do it for MIPS ELF configurations. Sigh. |
ce2cded5 L |
12800 | |
12801 | formats="${obj_format}" | |
12802 | emfiles="" | |
12803 | EMULATIONS="" | |
12804 | _gas_uniq_list="$emulations" | |
12805 | _gas_uniq_newlist="" | |
12806 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12807 | case $_gas_uniq_i in | |
12808 | _gas_uniq_dummy) ;; | |
12809 | *) case " $_gas_uniq_newlist " in | |
12810 | *" $_gas_uniq_i "*) ;; | |
12811 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12812 | esac ;; | |
12813 | esac | |
12814 | done | |
12815 | emulations=$_gas_uniq_newlist | |
12816 | ||
12817 | for em in . $emulations ; do | |
12818 | case $em in | |
12819 | .) continue ;; | |
12820 | mipsbelf | mipslelf | mipself) | |
12821 | fmt=elf file=mipself ;; | |
ce2cded5 L |
12822 | *coff) |
12823 | fmt=coff file=$em ;; | |
12824 | *aout) | |
12825 | fmt=aout file=$em ;; | |
12826 | *elf) | |
12827 | fmt=elf file=$em ;; | |
12828 | esac | |
12829 | formats="$formats $fmt" | |
12830 | emfiles="$emfiles e-$file.o" | |
12831 | EMULATIONS="$EMULATIONS &$em," | |
12832 | done | |
12833 | _gas_uniq_list="$formats" | |
12834 | _gas_uniq_newlist="" | |
12835 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12836 | case $_gas_uniq_i in | |
12837 | _gas_uniq_dummy) ;; | |
12838 | *) case " $_gas_uniq_newlist " in | |
12839 | *" $_gas_uniq_i "*) ;; | |
12840 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12841 | esac ;; | |
12842 | esac | |
13b2be9c | 12843 | done |
ce2cded5 | 12844 | formats=$_gas_uniq_newlist |
13b2be9c | 12845 | |
ce2cded5 L |
12846 | _gas_uniq_list="$emfiles" |
12847 | _gas_uniq_newlist="" | |
12848 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12849 | case $_gas_uniq_i in | |
12850 | _gas_uniq_dummy) ;; | |
12851 | *) case " $_gas_uniq_newlist " in | |
12852 | *" $_gas_uniq_i "*) ;; | |
12853 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12854 | esac ;; | |
12855 | esac | |
12856 | done | |
12857 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12858 | |
ce2cded5 L |
12859 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12860 | for fmt in $formats ; do | |
12861 | case $fmt in | |
12862 | aout) | |
81ecdfbb | 12863 | $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h |
ce2cded5 L |
12864 | ;; |
12865 | bout) | |
81ecdfbb | 12866 | $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h |
ce2cded5 L |
12867 | ;; |
12868 | coff) | |
81ecdfbb | 12869 | $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h |
ce2cded5 L |
12870 | ;; |
12871 | ecoff) | |
81ecdfbb | 12872 | $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h |
ce2cded5 L |
12873 | ;; |
12874 | elf) | |
81ecdfbb | 12875 | $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h |
ce2cded5 L |
12876 | ;; |
12877 | generic) | |
81ecdfbb | 12878 | $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h |
ce2cded5 L |
12879 | ;; |
12880 | som) | |
81ecdfbb | 12881 | $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h |
ce2cded5 L |
12882 | ;; |
12883 | esac | |
12884 | extra_objects="$extra_objects obj-$fmt.o" | |
12885 | done | |
12886 | obj_format=multi | |
13b2be9c | 12887 | fi |
ce2cded5 L |
12888 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12889 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
e8044f35 | 12890 | # e-mipself has more than one emulation per file, e-i386* has just one at the |
ce2cded5 L |
12891 | # moment. If only one emulation is specified, then don't define |
12892 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12893 | case "${obj_format}${emfiles}" in | |
e8044f35 | 12894 | multi* | *mipself*) |
ce2cded5 | 12895 | extra_objects="$extra_objects $emfiles" |
d7040cdb | 12896 | |
81ecdfbb | 12897 | $as_echo "#define USE_EMULATIONS 1" >>confdefs.h |
ce2cded5 L |
12898 | ;; |
12899 | esac | |
12900 | fi | |
d7040cdb | 12901 | |
13b2be9c | 12902 | |
ce2cded5 L |
12903 | cat >>confdefs.h <<_ACEOF |
12904 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12905 | _ACEOF |
d7040cdb | 12906 | |
d7040cdb | 12907 | |
ce2cded5 L |
12908 | cat >>confdefs.h <<_ACEOF |
12909 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12910 | _ACEOF |
d7040cdb | 12911 | |
d7040cdb | 12912 | |
ce2cded5 | 12913 | reject_dev_configs=yes |
252b5132 | 12914 | |
ce2cded5 L |
12915 | case ${reject_dev_configs}-${dev} in |
12916 | yes-yes) # Oops. | |
81ecdfbb | 12917 | as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5 |
ce2cded5 | 12918 | ;; |
d7040cdb SE |
12919 | esac |
12920 | ||
13b2be9c | 12921 | |
ce2cded5 L |
12922 | |
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | # do we need the opcodes library? | |
12928 | case "${need_opcodes}" in | |
12929 | yes) | |
12930 | OPCODES_LIB=../opcodes/libopcodes.la | |
12931 | ;; | |
12932 | esac | |
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | cat >>confdefs.h <<_ACEOF | |
12938 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12939 | _ACEOF |
20e95c23 | 12940 | |
20e95c23 | 12941 | |
ce2cded5 L |
12942 | cat >>confdefs.h <<_ACEOF |
12943 | #define TARGET_CANONICAL "${target}" | |
12944 | _ACEOF | |
20e95c23 | 12945 | |
d6d788bd | 12946 | |
ce2cded5 L |
12947 | cat >>confdefs.h <<_ACEOF |
12948 | #define TARGET_CPU "${target_cpu}" | |
12949 | _ACEOF | |
20e95c23 | 12950 | |
ce2cded5 L |
12951 | |
12952 | cat >>confdefs.h <<_ACEOF | |
12953 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12954 | _ACEOF |
12955 | ||
12956 | ||
ce2cded5 L |
12957 | cat >>confdefs.h <<_ACEOF |
12958 | #define TARGET_OS "${target_os}" | |
12959 | _ACEOF | |
12960 | ||
0efedc4c | 12961 | |
d7040cdb SE |
12962 | for ac_prog in 'bison -y' byacc |
12963 | do | |
12964 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12965 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12967 | $as_echo_n "checking for $ac_word... " >&6; } | |
12968 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
12969 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12970 | else |
d7040cdb SE |
12971 | if test -n "$YACC"; then |
12972 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12973 | else |
d7040cdb SE |
12974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12975 | for as_dir in $PATH | |
12976 | do | |
12977 | IFS=$as_save_IFS | |
12978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12979 | for ac_exec_ext in '' $ac_executable_extensions; do |
12980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12981 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 12983 | break 2 |
20e95c23 | 12984 | fi |
d7040cdb | 12985 | done |
81ecdfbb RW |
12986 | done |
12987 | IFS=$as_save_IFS | |
20e95c23 | 12988 | |
d7040cdb SE |
12989 | fi |
12990 | fi | |
12991 | YACC=$ac_cv_prog_YACC | |
12992 | if test -n "$YACC"; then | |
81ecdfbb RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12994 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12995 | else |
81ecdfbb RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12997 | $as_echo "no" >&6; } | |
d7040cdb | 12998 | fi |
20e95c23 | 12999 | |
81ecdfbb | 13000 | |
d7040cdb SE |
13001 | test -n "$YACC" && break |
13002 | done | |
13003 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 13004 | |
d7040cdb SE |
13005 | for ac_prog in flex lex |
13006 | do | |
13007 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13008 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13010 | $as_echo_n "checking for $ac_word... " >&6; } | |
13011 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
13012 | $as_echo_n "(cached) " >&6 | |
d6d788bd | 13013 | else |
d7040cdb SE |
13014 | if test -n "$LEX"; then |
13015 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
13016 | else | |
13017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13018 | for as_dir in $PATH | |
13019 | do | |
13020 | IFS=$as_save_IFS | |
13021 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13022 | for ac_exec_ext in '' $ac_executable_extensions; do |
13023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 13024 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 13025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
13026 | break 2 |
13027 | fi | |
13028 | done | |
81ecdfbb RW |
13029 | done |
13030 | IFS=$as_save_IFS | |
20e95c23 | 13031 | |
d7040cdb SE |
13032 | fi |
13033 | fi | |
13034 | LEX=$ac_cv_prog_LEX | |
13035 | if test -n "$LEX"; then | |
81ecdfbb RW |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
13037 | $as_echo "$LEX" >&6; } | |
20e95c23 | 13038 | else |
81ecdfbb RW |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13040 | $as_echo "no" >&6; } | |
13b2be9c DJ |
13041 | fi |
13042 | ||
81ecdfbb | 13043 | |
d7040cdb SE |
13044 | test -n "$LEX" && break |
13045 | done | |
13046 | test -n "$LEX" || LEX=":" | |
20e95c23 | 13047 | |
3d961d0d AM |
13048 | case "$LEX" in |
13049 | :|*"missing "*) ;; | |
13050 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
13051 | %% |
13052 | a { ECHO; } | |
13053 | b { REJECT; } | |
13054 | c { yymore (); } | |
13055 | d { yyless (1); } | |
13056 | e { yyless (input () != 0); } | |
13057 | f { unput (yytext[0]); } | |
13058 | . { BEGIN INITIAL; } | |
13059 | %% | |
13060 | #ifdef YYTEXT_POINTER | |
13061 | extern char *yytext; | |
d7040cdb | 13062 | #endif |
d7040cdb | 13063 | int |
81ecdfbb | 13064 | main (void) |
d7040cdb | 13065 | { |
81ecdfbb | 13066 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
13067 | } |
13068 | _ACEOF | |
81ecdfbb RW |
13069 | { { ac_try="$LEX conftest.l" |
13070 | case "(($ac_try" in | |
13071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13072 | *) ac_try_echo=$ac_try;; | |
13073 | esac | |
13074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13075 | $as_echo "$ac_try_echo"; } >&5 | |
13076 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 13077 | ac_status=$? |
81ecdfbb RW |
13078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13079 | test $ac_status = 0; } | |
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
13081 | $as_echo_n "checking lex output file root... " >&6; } | |
13082 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
13083 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 13084 | else |
d5fbea21 | 13085 | |
81ecdfbb RW |
13086 | if test -f lex.yy.c; then |
13087 | ac_cv_prog_lex_root=lex.yy | |
13088 | elif test -f lexyy.c; then | |
13089 | ac_cv_prog_lex_root=lexyy | |
13090 | else | |
13091 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
d6d788bd | 13092 | fi |
d7040cdb | 13093 | fi |
81ecdfbb RW |
13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
13095 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
13096 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 13097 | |
81ecdfbb RW |
13098 | if test -z "${LEXLIB+set}"; then |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
13100 | $as_echo_n "checking lex library... " >&6; } | |
13101 | if test "${ac_cv_lib_lex+set}" = set; then : | |
13102 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 13103 | else |
d7040cdb | 13104 | |
81ecdfbb RW |
13105 | ac_save_LIBS=$LIBS |
13106 | ac_cv_lib_lex='none needed' | |
13107 | for ac_lib in '' -lfl -ll; do | |
13108 | LIBS="$ac_lib $ac_save_LIBS" | |
13109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13110 | /* end confdefs.h. */ | |
13111 | `cat $LEX_OUTPUT_ROOT.c` | |
13112 | _ACEOF | |
13113 | if ac_fn_c_try_link "$LINENO"; then : | |
13114 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 13115 | fi |
81ecdfbb RW |
13116 | rm -f core conftest.err conftest.$ac_objext \ |
13117 | conftest$ac_exeext conftest.$ac_ext | |
13118 | test "$ac_cv_lib_lex" != 'none needed' && break | |
13119 | done | |
13120 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
13121 | |
13122 | fi | |
81ecdfbb RW |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
13124 | $as_echo "$ac_cv_lib_lex" >&6; } | |
13125 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
13126 | fi |
13127 | ||
13b2be9c | 13128 | |
81ecdfbb RW |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
13130 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
13131 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
13132 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
13133 | else |
13134 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 13135 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
13136 | # not all implementations provide the %pointer and %array declarations. |
13137 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 13138 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
13139 | LIBS="$LEXLIB $ac_save_LIBS" |
13140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13141 | /* end confdefs.h. */ | |
13142 | #define YYTEXT_POINTER 1 | |
d7040cdb | 13143 | `cat $LEX_OUTPUT_ROOT.c` |
13b2be9c | 13144 | _ACEOF |
81ecdfbb | 13145 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13146 | ac_cv_prog_lex_yytext_pointer=yes |
13b2be9c | 13147 | fi |
81ecdfbb RW |
13148 | rm -f core conftest.err conftest.$ac_objext \ |
13149 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 13150 | LIBS=$ac_save_LIBS |
252b5132 | 13151 | |
9b2b7d69 | 13152 | fi |
81ecdfbb RW |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
13154 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb | 13155 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
13b2be9c | 13156 | |
81ecdfbb | 13157 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9b2b7d69 | 13158 | |
d6d788bd | 13159 | fi |
81ecdfbb | 13160 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
13161 | ;; |
13162 | esac | |
d7040cdb SE |
13163 | if test "$LEX" = :; then |
13164 | LEX=${am_missing_run}flex | |
13165 | fi | |
13166 | ||
20b52c88 | 13167 | ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN sv" |
d7040cdb SE |
13168 | # If we haven't got the data from the intl directory, |
13169 | # assume NLS is disabled. | |
13170 | USE_NLS=no | |
13171 | LIBINTL= | |
13172 | LIBINTL_DEP= | |
13173 | INCINTL= | |
13174 | XGETTEXT= | |
13175 | GMSGFMT= | |
13176 | POSUB= | |
13177 | ||
13178 | if test -f ../intl/config.intl; then | |
13179 | . ../intl/config.intl | |
13180 | fi | |
81ecdfbb RW |
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13182 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 13183 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13185 | $as_echo "no" >&6; } | |
d7040cdb | 13186 | else |
81ecdfbb RW |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13188 | $as_echo "yes" >&6; } | |
d7040cdb | 13189 | |
81ecdfbb | 13190 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
13191 | |
13192 | ||
81ecdfbb RW |
13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
13194 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
13195 | # Look for .po and .gmo files in the source directory. |
13196 | CATALOGS= | |
13197 | XLINGUAS= | |
13198 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
13199 | # If there aren't any .gmo files the shell will give us the | |
13200 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
13201 | # weeded out. | |
13202 | case "$cat" in *\**) | |
13203 | continue;; | |
13204 | esac | |
13205 | # The quadruple backslash is collapsed to a double backslash | |
13206 | # by the backticks, then collapsed again by the double quotes, | |
13207 | # leaving us with one backslash in the sed expression (right | |
13208 | # before the dot that mustn't act as a wildcard). | |
13209 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
13210 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
13211 | # The user is allowed to set LINGUAS to a list of languages to | |
13212 | # install catalogs for. If it's empty that means "all of them." | |
13213 | if test "x$LINGUAS" = x; then | |
13214 | CATALOGS="$CATALOGS $cat" | |
13215 | XLINGUAS="$XLINGUAS $lang" | |
13216 | else | |
13217 | case "$LINGUAS" in *$lang*) | |
13218 | CATALOGS="$CATALOGS $cat" | |
13219 | XLINGUAS="$XLINGUAS $lang" | |
13220 | ;; | |
13221 | esac | |
13222 | fi | |
13223 | done | |
13224 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
13226 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
13227 | |
13228 | ||
13229 | DATADIRNAME=share | |
13230 | ||
13231 | INSTOBJEXT=.mo | |
13232 | ||
13233 | GENCAT=gencat | |
13234 | ||
13235 | CATOBJEXT=.gmo | |
13236 | ||
13237 | fi | |
13238 | ||
13239 | MKINSTALLDIRS= | |
13240 | if test -n "$ac_aux_dir"; then | |
13241 | case "$ac_aux_dir" in | |
13242 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
13243 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
13244 | esac | |
13245 | fi | |
13246 | if test -z "$MKINSTALLDIRS"; then | |
13247 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
13248 | fi | |
13249 | ||
13250 | ||
13251 | ||
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13253 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
13254 | # Check whether --enable-nls was given. | |
13255 | if test "${enable_nls+set}" = set; then : | |
13256 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
13257 | else |
13258 | USE_NLS=yes | |
81ecdfbb RW |
13259 | fi |
13260 | ||
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
13262 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
13263 | |
13264 | ||
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | # Prepare PATH_SEPARATOR. | |
13270 | # The user is always right. | |
13271 | if test "${PATH_SEPARATOR+set}" != set; then | |
13272 | echo "#! /bin/sh" >conf$$.sh | |
13273 | echo "exit 0" >>conf$$.sh | |
13274 | chmod +x conf$$.sh | |
13275 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13276 | PATH_SEPARATOR=';' | |
13b2be9c | 13277 | else |
d7040cdb | 13278 | PATH_SEPARATOR=: |
13b2be9c | 13279 | fi |
d7040cdb | 13280 | rm -f conf$$.sh |
252b5132 | 13281 | fi |
13b2be9c | 13282 | |
d7040cdb SE |
13283 | # Find out how to test for executable files. Don't use a zero-byte file, |
13284 | # as systems may use methods other than mode bits to determine executability. | |
13285 | cat >conf$$.file <<_ASEOF | |
13286 | #! /bin/sh | |
13287 | exit 0 | |
13288 | _ASEOF | |
13289 | chmod +x conf$$.file | |
13290 | if test -x conf$$.file >/dev/null 2>&1; then | |
13291 | ac_executable_p="test -x" | |
13292 | else | |
13293 | ac_executable_p="test -f" | |
13b2be9c | 13294 | fi |
d7040cdb | 13295 | rm -f conf$$.file |
13b2be9c | 13296 | |
d7040cdb SE |
13297 | # Extract the first word of "msgfmt", so it can be a program name with args. |
13298 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13300 | $as_echo_n "checking for $ac_word... " >&6; } | |
13301 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
13302 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13303 | else |
d7040cdb SE |
13304 | case "$MSGFMT" in |
13305 | [\\/]* | ?:[\\/]*) | |
13306 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13307 | ;; | |
13308 | *) | |
13309 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13310 | for ac_dir in $PATH; do | |
13311 | IFS="$ac_save_IFS" | |
13312 | test -z "$ac_dir" && ac_dir=. | |
13313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13314 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13315 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
13316 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13317 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13318 | break 2 | |
13319 | fi | |
13320 | fi | |
13321 | done | |
13322 | done | |
13323 | IFS="$ac_save_IFS" | |
13324 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13325 | ;; | |
13326 | esac | |
252b5132 | 13327 | fi |
d7040cdb SE |
13328 | MSGFMT="$ac_cv_path_MSGFMT" |
13329 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
13331 | $as_echo "$MSGFMT" >&6; } | |
252b5132 | 13332 | else |
81ecdfbb RW |
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13334 | $as_echo "no" >&6; } | |
252b5132 | 13335 | fi |
252b5132 | 13336 | |
d7040cdb SE |
13337 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
13338 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13340 | $as_echo_n "checking for $ac_word... " >&6; } | |
13341 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
13342 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13343 | else |
d7040cdb SE |
13344 | case $GMSGFMT in |
13345 | [\\/]* | ?:[\\/]*) | |
13346 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13347 | ;; | |
13348 | *) | |
13349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13350 | for as_dir in $PATH | |
13351 | do | |
13352 | IFS=$as_save_IFS | |
13353 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13354 | for ac_exec_ext in '' $ac_executable_extensions; do |
13355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 13356 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
13358 | break 2 |
13359 | fi | |
13360 | done | |
81ecdfbb RW |
13361 | done |
13362 | IFS=$as_save_IFS | |
252b5132 | 13363 | |
d7040cdb SE |
13364 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
13365 | ;; | |
13366 | esac | |
13367 | fi | |
13368 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 13369 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
13371 | $as_echo "$GMSGFMT" >&6; } | |
ac48eca1 | 13372 | else |
81ecdfbb RW |
13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13374 | $as_echo "no" >&6; } | |
6840198f | 13375 | fi |
6840198f | 13376 | |
13b2be9c | 13377 | |
20e95c23 | 13378 | |
81ecdfbb | 13379 | |
d7040cdb SE |
13380 | # Prepare PATH_SEPARATOR. |
13381 | # The user is always right. | |
13382 | if test "${PATH_SEPARATOR+set}" != set; then | |
13383 | echo "#! /bin/sh" >conf$$.sh | |
13384 | echo "exit 0" >>conf$$.sh | |
13385 | chmod +x conf$$.sh | |
13386 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13387 | PATH_SEPARATOR=';' | |
13388 | else | |
13389 | PATH_SEPARATOR=: | |
13390 | fi | |
13391 | rm -f conf$$.sh | |
13392 | fi | |
20e95c23 | 13393 | |
d7040cdb SE |
13394 | # Find out how to test for executable files. Don't use a zero-byte file, |
13395 | # as systems may use methods other than mode bits to determine executability. | |
13396 | cat >conf$$.file <<_ASEOF | |
13397 | #! /bin/sh | |
13398 | exit 0 | |
13399 | _ASEOF | |
13400 | chmod +x conf$$.file | |
13401 | if test -x conf$$.file >/dev/null 2>&1; then | |
13402 | ac_executable_p="test -x" | |
13b2be9c | 13403 | else |
d7040cdb | 13404 | ac_executable_p="test -f" |
13b2be9c | 13405 | fi |
d7040cdb | 13406 | rm -f conf$$.file |
20e95c23 | 13407 | |
d7040cdb SE |
13408 | # Extract the first word of "xgettext", so it can be a program name with args. |
13409 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13411 | $as_echo_n "checking for $ac_word... " >&6; } | |
13412 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
13413 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13414 | else |
d7040cdb SE |
13415 | case "$XGETTEXT" in |
13416 | [\\/]* | ?:[\\/]*) | |
13417 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13418 | ;; | |
13419 | *) | |
13420 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13421 | for ac_dir in $PATH; do | |
13422 | IFS="$ac_save_IFS" | |
13423 | test -z "$ac_dir" && ac_dir=. | |
13424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13425 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13426 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13427 | (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 | |
13428 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13429 | break 2 | |
13430 | fi | |
13431 | fi | |
13432 | done | |
13433 | done | |
13434 | IFS="$ac_save_IFS" | |
13435 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13436 | ;; | |
13437 | esac | |
13b2be9c | 13438 | fi |
d7040cdb SE |
13439 | XGETTEXT="$ac_cv_path_XGETTEXT" |
13440 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
13442 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 13443 | else |
81ecdfbb RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13445 | $as_echo "no" >&6; } | |
13b2be9c | 13446 | fi |
13b2be9c | 13447 | |
d7040cdb | 13448 | rm -f messages.po |
20e95c23 | 13449 | |
13b2be9c | 13450 | |
d7040cdb SE |
13451 | # Prepare PATH_SEPARATOR. |
13452 | # The user is always right. | |
13453 | if test "${PATH_SEPARATOR+set}" != set; then | |
13454 | echo "#! /bin/sh" >conf$$.sh | |
13455 | echo "exit 0" >>conf$$.sh | |
13456 | chmod +x conf$$.sh | |
13457 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13458 | PATH_SEPARATOR=';' | |
13459 | else | |
13460 | PATH_SEPARATOR=: | |
13461 | fi | |
13462 | rm -f conf$$.sh | |
252b5132 | 13463 | fi |
20e95c23 | 13464 | |
d7040cdb SE |
13465 | # Find out how to test for executable files. Don't use a zero-byte file, |
13466 | # as systems may use methods other than mode bits to determine executability. | |
13467 | cat >conf$$.file <<_ASEOF | |
13468 | #! /bin/sh | |
13469 | exit 0 | |
13470 | _ASEOF | |
13471 | chmod +x conf$$.file | |
13472 | if test -x conf$$.file >/dev/null 2>&1; then | |
13473 | ac_executable_p="test -x" | |
252b5132 | 13474 | else |
d7040cdb SE |
13475 | ac_executable_p="test -f" |
13476 | fi | |
13477 | rm -f conf$$.file | |
20e95c23 | 13478 | |
d7040cdb SE |
13479 | # Extract the first word of "msgmerge", so it can be a program name with args. |
13480 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13482 | $as_echo_n "checking for $ac_word... " >&6; } | |
13483 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
13484 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 13485 | else |
d7040cdb SE |
13486 | case "$MSGMERGE" in |
13487 | [\\/]* | ?:[\\/]*) | |
13488 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13489 | ;; | |
13490 | *) | |
13491 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13492 | for ac_dir in $PATH; do | |
13493 | IFS="$ac_save_IFS" | |
13494 | test -z "$ac_dir" && ac_dir=. | |
13495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13496 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13497 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13498 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13499 | break 2 | |
13500 | fi | |
13501 | fi | |
13502 | done | |
13503 | done | |
13504 | IFS="$ac_save_IFS" | |
13505 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13506 | ;; | |
13507 | esac | |
20e95c23 | 13508 | fi |
d7040cdb SE |
13509 | MSGMERGE="$ac_cv_path_MSGMERGE" |
13510 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
13512 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 13513 | else |
81ecdfbb RW |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13515 | $as_echo "no" >&6; } | |
20e95c23 | 13516 | fi |
252b5132 | 13517 | |
252b5132 | 13518 | |
d7040cdb SE |
13519 | if test "$GMSGFMT" != ":"; then |
13520 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13521 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13522 | : ; | |
13523 | else | |
13524 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
13526 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
13527 | GMSGFMT=":" |
13528 | fi | |
13529 | fi | |
13b2be9c | 13530 | |
d7040cdb SE |
13531 | if test "$XGETTEXT" != ":"; then |
13532 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13533 | (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 | |
13534 | : ; | |
13535 | else | |
81ecdfbb RW |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
13537 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
13538 | XGETTEXT=":" |
13539 | fi | |
13540 | rm -f messages.po | |
13541 | fi | |
252b5132 | 13542 | |
81ecdfbb | 13543 | ac_config_commands="$ac_config_commands default-1" |
13b2be9c | 13544 | |
13b2be9c | 13545 | |
81ecdfbb RW |
13546 | |
13547 | ||
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13549 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13550 | # Check whether --enable-maintainer-mode was given. | |
13551 | if test "${enable_maintainer_mode+set}" = set; then : | |
13552 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
9b2b7d69 | 13553 | else |
81ecdfbb | 13554 | USE_MAINTAINER_MODE=no |
13b2be9c | 13555 | fi |
13b2be9c | 13556 | |
81ecdfbb RW |
13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
13558 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13559 | if test $USE_MAINTAINER_MODE = yes; then | |
13560 | MAINTAINER_MODE_TRUE= | |
13561 | MAINTAINER_MODE_FALSE='#' | |
13562 | else | |
13563 | MAINTAINER_MODE_TRUE='#' | |
13564 | MAINTAINER_MODE_FALSE= | |
13b2be9c | 13565 | fi |
13b2be9c | 13566 | |
81ecdfbb RW |
13567 | MAINT=$MAINTAINER_MODE_TRUE |
13568 | ||
13569 | ||
13570 | if false; then | |
13571 | GENINSRC_NEVER_TRUE= | |
13572 | GENINSRC_NEVER_FALSE='#' | |
13b2be9c | 13573 | else |
81ecdfbb RW |
13574 | GENINSRC_NEVER_TRUE='#' |
13575 | GENINSRC_NEVER_FALSE= | |
252b5132 | 13576 | fi |
13b2be9c | 13577 | |
81ecdfbb RW |
13578 | |
13579 | ||
58797674 | 13580 | for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h |
81ecdfbb RW |
13581 | do : |
13582 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13583 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
13584 | eval as_val=\$$as_ac_Header | |
13585 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13586 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13587 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13b2be9c DJ |
13588 | _ACEOF |
13589 | ||
252b5132 | 13590 | fi |
13b2be9c | 13591 | |
252b5132 RH |
13592 | done |
13593 | ||
df7b86aa NC |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
13595 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
13596 | if test "${gcc_cv_header_string+set}" = set; then : | |
13597 | $as_echo_n "(cached) " >&6 | |
13598 | else | |
13599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13600 | /* end confdefs.h. */ | |
13601 | #include <string.h> | |
13602 | #include <strings.h> | |
13603 | int | |
13604 | main () | |
13605 | { | |
13606 | ||
13607 | ; | |
13608 | return 0; | |
13609 | } | |
13610 | _ACEOF | |
13611 | if ac_fn_c_try_compile "$LINENO"; then : | |
13612 | gcc_cv_header_string=yes | |
13613 | else | |
13614 | gcc_cv_header_string=no | |
13615 | fi | |
13616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13617 | fi | |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
13619 | $as_echo "$gcc_cv_header_string" >&6; } | |
13620 | if test $gcc_cv_header_string = yes; then | |
13621 | ||
13622 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
13623 | ||
13624 | fi | |
13625 | ||
d6d788bd | 13626 | |
252b5132 RH |
13627 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
13628 | # people who are not cross-compiling but are compiling cross-assemblers. | |
81ecdfbb RW |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5 |
13630 | $as_echo_n "checking whether compiling a cross-assembler... " >&6; } | |
252b5132 RH |
13631 | if test "${host}" = "${target}"; then |
13632 | cross_gas=no | |
13633 | else | |
13634 | cross_gas=yes | |
13b2be9c | 13635 | |
81ecdfbb | 13636 | $as_echo "#define CROSS_COMPILE 1" >>confdefs.h |
252b5132 RH |
13637 | |
13638 | fi | |
81ecdfbb RW |
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5 |
13640 | $as_echo "$cross_gas" >&6; } | |
252b5132 RH |
13641 | |
13642 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13643 | # for constant arguments. Useless! | |
81ecdfbb RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
13645 | $as_echo_n "checking for working alloca.h... " >&6; } | |
13646 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
13647 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13648 | else |
81ecdfbb | 13649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13650 | /* end confdefs.h. */ |
252b5132 | 13651 | #include <alloca.h> |
13b2be9c DJ |
13652 | int |
13653 | main () | |
13654 | { | |
13655 | char *p = (char *) alloca (2 * sizeof (int)); | |
81ecdfbb | 13656 | if (p) return 0; |
13b2be9c DJ |
13657 | ; |
13658 | return 0; | |
13659 | } | |
13660 | _ACEOF | |
81ecdfbb | 13661 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13662 | ac_cv_working_alloca_h=yes |
13663 | else | |
81ecdfbb | 13664 | ac_cv_working_alloca_h=no |
13b2be9c | 13665 | fi |
81ecdfbb RW |
13666 | rm -f core conftest.err conftest.$ac_objext \ |
13667 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13668 | fi |
81ecdfbb RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
13670 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
13b2be9c DJ |
13671 | if test $ac_cv_working_alloca_h = yes; then |
13672 | ||
81ecdfbb | 13673 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
252b5132 RH |
13674 | |
13675 | fi | |
13676 | ||
81ecdfbb RW |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
13678 | $as_echo_n "checking for alloca... " >&6; } | |
13679 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
13680 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13681 | else |
81ecdfbb | 13682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13683 | /* end confdefs.h. */ |
252b5132 RH |
13684 | #ifdef __GNUC__ |
13685 | # define alloca __builtin_alloca | |
13686 | #else | |
13687 | # ifdef _MSC_VER | |
13688 | # include <malloc.h> | |
13689 | # define alloca _alloca | |
13690 | # else | |
81ecdfbb | 13691 | # ifdef HAVE_ALLOCA_H |
252b5132 RH |
13692 | # include <alloca.h> |
13693 | # else | |
13694 | # ifdef _AIX | |
13695 | #pragma alloca | |
13696 | # else | |
13697 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13698 | char *alloca (); | |
13699 | # endif | |
13700 | # endif | |
13701 | # endif | |
13702 | # endif | |
13703 | #endif | |
13704 | ||
13b2be9c DJ |
13705 | int |
13706 | main () | |
13707 | { | |
13708 | char *p = (char *) alloca (1); | |
81ecdfbb | 13709 | if (p) return 0; |
13b2be9c DJ |
13710 | ; |
13711 | return 0; | |
13712 | } | |
13713 | _ACEOF | |
81ecdfbb | 13714 | if ac_fn_c_try_link "$LINENO"; then : |
252b5132 RH |
13715 | ac_cv_func_alloca_works=yes |
13716 | else | |
81ecdfbb | 13717 | ac_cv_func_alloca_works=no |
252b5132 | 13718 | fi |
81ecdfbb RW |
13719 | rm -f core conftest.err conftest.$ac_objext \ |
13720 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13721 | fi |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
13723 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
252b5132 | 13724 | |
252b5132 | 13725 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 13726 | |
81ecdfbb | 13727 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
9b2b7d69 | 13728 | |
13b2be9c | 13729 | else |
c8615825 | 13730 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
13731 | # that cause trouble. Some versions do not even contain alloca or |
13732 | # contain a buggy version. If you still want to use their alloca, | |
13733 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13734 | ||
81ecdfbb | 13735 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
13b2be9c | 13736 | |
81ecdfbb | 13737 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
252b5132 | 13738 | |
d6d788bd | 13739 | |
81ecdfbb RW |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
13741 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
13742 | if test "${ac_cv_os_cray+set}" = set; then : | |
13743 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13744 | else |
81ecdfbb | 13745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13746 | /* end confdefs.h. */ |
81ecdfbb | 13747 | #if defined CRAY && ! defined CRAY2 |
252b5132 RH |
13748 | webecray |
13749 | #else | |
13750 | wenotbecray | |
13751 | #endif | |
13752 | ||
13b2be9c | 13753 | _ACEOF |
252b5132 | 13754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb | 13755 | $EGREP "webecray" >/dev/null 2>&1; then : |
252b5132 RH |
13756 | ac_cv_os_cray=yes |
13757 | else | |
252b5132 RH |
13758 | ac_cv_os_cray=no |
13759 | fi | |
13760 | rm -f conftest* | |
13761 | ||
13762 | fi | |
81ecdfbb RW |
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
13764 | $as_echo "$ac_cv_os_cray" >&6; } | |
252b5132 | 13765 | if test $ac_cv_os_cray = yes; then |
13b2be9c | 13766 | for ac_func in _getb67 GETB67 getb67; do |
81ecdfbb RW |
13767 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13768 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13769 | eval as_val=\$$as_ac_var | |
13770 | if test "x$as_val" = x""yes; then : | |
13b2be9c DJ |
13771 | |
13772 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13773 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 13774 | _ACEOF |
252b5132 | 13775 | |
13b2be9c | 13776 | break |
252b5132 RH |
13777 | fi |
13778 | ||
13b2be9c | 13779 | done |
252b5132 RH |
13780 | fi |
13781 | ||
81ecdfbb RW |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
13783 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
13784 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
13785 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13786 | else |
81ecdfbb | 13787 | if test "$cross_compiling" = yes; then : |
252b5132 RH |
13788 | ac_cv_c_stack_direction=0 |
13789 | else | |
81ecdfbb | 13790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13791 | /* end confdefs.h. */ |
81ecdfbb | 13792 | $ac_includes_default |
13b2be9c | 13793 | int |
252b5132 RH |
13794 | find_stack_direction () |
13795 | { | |
13796 | static char *addr = 0; | |
13797 | auto char dummy; | |
13798 | if (addr == 0) | |
13799 | { | |
13800 | addr = &dummy; | |
13801 | return find_stack_direction (); | |
13802 | } | |
13803 | else | |
13804 | return (&dummy > addr) ? 1 : -1; | |
13805 | } | |
13b2be9c DJ |
13806 | |
13807 | int | |
252b5132 RH |
13808 | main () |
13809 | { | |
81ecdfbb | 13810 | return find_stack_direction () < 0; |
252b5132 | 13811 | } |
13b2be9c | 13812 | _ACEOF |
81ecdfbb | 13813 | if ac_fn_c_try_run "$LINENO"; then : |
252b5132 RH |
13814 | ac_cv_c_stack_direction=1 |
13815 | else | |
81ecdfbb | 13816 | ac_cv_c_stack_direction=-1 |
252b5132 | 13817 | fi |
81ecdfbb RW |
13818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13819 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
252b5132 | 13820 | fi |
252b5132 | 13821 | |
81ecdfbb RW |
13822 | fi |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
13824 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
13b2be9c | 13825 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13826 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
13827 | _ACEOF |
13828 | ||
252b5132 RH |
13829 | |
13830 | fi | |
13831 | ||
81ecdfbb RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13833 | $as_echo_n "checking for inline... " >&6; } | |
13834 | if test "${ac_cv_c_inline+set}" = set; then : | |
13835 | $as_echo_n "(cached) " >&6 | |
252b5132 RH |
13836 | else |
13837 | ac_cv_c_inline=no | |
13838 | for ac_kw in inline __inline__ __inline; do | |
81ecdfbb | 13839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13840 | /* end confdefs.h. */ |
13841 | #ifndef __cplusplus | |
13842 | typedef int foo_t; | |
13843 | static $ac_kw foo_t static_foo () {return 0; } | |
13844 | $ac_kw foo_t foo () {return 0; } | |
13845 | #endif | |
252b5132 | 13846 | |
13b2be9c | 13847 | _ACEOF |
81ecdfbb RW |
13848 | if ac_fn_c_try_compile "$LINENO"; then : |
13849 | ac_cv_c_inline=$ac_kw | |
252b5132 | 13850 | fi |
81ecdfbb RW |
13851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13852 | test "$ac_cv_c_inline" != no && break | |
252b5132 RH |
13853 | done |
13854 | ||
13855 | fi | |
81ecdfbb RW |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
13857 | $as_echo "$ac_cv_c_inline" >&6; } | |
ab509236 | 13858 | |
13b2be9c | 13859 | case $ac_cv_c_inline in |
252b5132 | 13860 | inline | yes) ;; |
ab509236 L |
13861 | *) |
13862 | case $ac_cv_c_inline in | |
13863 | no) ac_val=;; | |
13864 | *) ac_val=$ac_cv_c_inline;; | |
13865 | esac | |
13866 | cat >>confdefs.h <<_ACEOF | |
13867 | #ifndef __cplusplus | |
13868 | #define inline $ac_val | |
13869 | #endif | |
13b2be9c | 13870 | _ACEOF |
ab509236 | 13871 | ;; |
252b5132 RH |
13872 | esac |
13873 | ||
6840198f | 13874 | |
d6d788bd | 13875 | # VMS doesn't have unlink. |
252b5132 | 13876 | for ac_func in unlink remove |
81ecdfbb RW |
13877 | do : |
13878 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13879 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13880 | eval as_val=\$$as_ac_var | |
13881 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13882 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13883 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13b2be9c | 13884 | _ACEOF |
252b5132 | 13885 | break |
252b5132 RH |
13886 | fi |
13887 | done | |
13888 | ||
4b0296ce | 13889 | for ac_func in sbrk setlocale |
81ecdfbb | 13890 | do : |
a574142b AM |
13891 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13892 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13893 | eval as_val=\$$as_ac_var | |
13894 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13895 | cat >>confdefs.h <<_ACEOF |
a574142b | 13896 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13b2be9c | 13897 | _ACEOF |
252b5132 | 13898 | |
1ec4b9f2 NS |
13899 | fi |
13900 | done | |
13901 | ||
13902 | for ac_func in strsignal | |
13903 | do : | |
13904 | ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" | |
13905 | if test "x$ac_cv_func_strsignal" = x""yes; then : | |
13906 | cat >>confdefs.h <<_ACEOF | |
13907 | #define HAVE_STRSIGNAL 1 | |
13908 | _ACEOF | |
13909 | ||
252b5132 RH |
13910 | fi |
13911 | done | |
13912 | ||
d6d788bd | 13913 | |
44350750 NC |
13914 | |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
13916 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
13917 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
13918 | $as_echo_n "(cached) " >&6 | |
13919 | else | |
13920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13921 | /* end confdefs.h. */ | |
13922 | #include <locale.h> | |
13923 | int | |
13924 | main () | |
13925 | { | |
13926 | return LC_MESSAGES | |
13927 | ; | |
13928 | return 0; | |
13929 | } | |
13930 | _ACEOF | |
13931 | if ac_fn_c_try_link "$LINENO"; then : | |
13932 | am_cv_val_LC_MESSAGES=yes | |
13933 | else | |
13934 | am_cv_val_LC_MESSAGES=no | |
13935 | fi | |
13936 | rm -f core conftest.err conftest.$ac_objext \ | |
13937 | conftest$ac_exeext conftest.$ac_ext | |
13938 | fi | |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
13940 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
13941 | if test $am_cv_val_LC_MESSAGES = yes; then | |
13942 | ||
13943 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
13944 | ||
13945 | fi | |
13946 | ||
13947 | ||
39bec121 TW |
13948 | # do we need the math library? |
13949 | case "${need_libm}" in | |
13b2be9c | 13950 | yes) |
39bec121 | 13951 | LIBM= |
f9c19112 | 13952 | case $host in |
3725885a | 13953 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13954 | # These system don't have libm, or don't need it |
39bec121 TW |
13955 | ;; |
13956 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
13958 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13959 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : | |
13960 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13961 | else |
13b2be9c | 13962 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13963 | LIBS="-lmw $LIBS" |
81ecdfbb | 13964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13965 | /* end confdefs.h. */ |
13966 | ||
81ecdfbb RW |
13967 | /* Override any GCC internal prototype to avoid an error. |
13968 | Use char because int might match the return type of a GCC | |
13969 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
13970 | #ifdef __cplusplus |
13971 | extern "C" | |
13972 | #endif | |
13b2be9c DJ |
13973 | char _mwvalidcheckl (); |
13974 | int | |
13975 | main () | |
13976 | { | |
81ecdfbb | 13977 | return _mwvalidcheckl (); |
13b2be9c DJ |
13978 | ; |
13979 | return 0; | |
13980 | } | |
13981 | _ACEOF | |
81ecdfbb | 13982 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13983 | ac_cv_lib_mw__mwvalidcheckl=yes |
13984 | else | |
81ecdfbb | 13985 | ac_cv_lib_mw__mwvalidcheckl=no |
13b2be9c | 13986 | fi |
81ecdfbb RW |
13987 | rm -f core conftest.err conftest.$ac_objext \ |
13988 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13989 | LIBS=$ac_check_lib_save_LIBS |
13990 | fi | |
81ecdfbb RW |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
13992 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13993 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : | |
39bec121 | 13994 | LIBM="-lmw" |
39bec121 TW |
13995 | fi |
13996 | ||
81ecdfbb RW |
13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13998 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13999 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
14000 | $as_echo_n "(cached) " >&6 | |
39bec121 | 14001 | else |
13b2be9c | 14002 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 14003 | LIBS="-lm $LIBS" |
81ecdfbb | 14004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 14005 | /* end confdefs.h. */ |
39bec121 | 14006 | |
81ecdfbb RW |
14007 | /* Override any GCC internal prototype to avoid an error. |
14008 | Use char because int might match the return type of a GCC | |
14009 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
14010 | #ifdef __cplusplus |
14011 | extern "C" | |
14012 | #endif | |
d7040cdb | 14013 | char cos (); |
13b2be9c DJ |
14014 | int |
14015 | main () | |
14016 | { | |
81ecdfbb | 14017 | return cos (); |
13b2be9c DJ |
14018 | ; |
14019 | return 0; | |
14020 | } | |
14021 | _ACEOF | |
81ecdfbb | 14022 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 14023 | ac_cv_lib_m_cos=yes |
13b2be9c | 14024 | else |
81ecdfbb | 14025 | ac_cv_lib_m_cos=no |
13b2be9c | 14026 | fi |
81ecdfbb RW |
14027 | rm -f core conftest.err conftest.$ac_objext \ |
14028 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14029 | LIBS=$ac_check_lib_save_LIBS |
14030 | fi | |
81ecdfbb RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
14032 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
14033 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 14034 | LIBM="$LIBM -lm" |
39bec121 TW |
14035 | fi |
14036 | ||
14037 | ;; | |
14038 | *) | |
81ecdfbb RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
14040 | $as_echo_n "checking for cos in -lm... " >&6; } | |
14041 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
14042 | $as_echo_n "(cached) " >&6 | |
39bec121 | 14043 | else |
13b2be9c | 14044 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 14045 | LIBS="-lm $LIBS" |
81ecdfbb | 14046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 14047 | /* end confdefs.h. */ |
39bec121 | 14048 | |
81ecdfbb RW |
14049 | /* Override any GCC internal prototype to avoid an error. |
14050 | Use char because int might match the return type of a GCC | |
14051 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
14052 | #ifdef __cplusplus |
14053 | extern "C" | |
14054 | #endif | |
d7040cdb | 14055 | char cos (); |
13b2be9c DJ |
14056 | int |
14057 | main () | |
14058 | { | |
81ecdfbb | 14059 | return cos (); |
13b2be9c DJ |
14060 | ; |
14061 | return 0; | |
14062 | } | |
14063 | _ACEOF | |
81ecdfbb | 14064 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 14065 | ac_cv_lib_m_cos=yes |
13b2be9c | 14066 | else |
81ecdfbb | 14067 | ac_cv_lib_m_cos=no |
13b2be9c | 14068 | fi |
81ecdfbb RW |
14069 | rm -f core conftest.err conftest.$ac_objext \ |
14070 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
14071 | LIBS=$ac_check_lib_save_LIBS |
14072 | fi | |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
14074 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
14075 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 14076 | LIBM="-lm" |
39bec121 TW |
14077 | fi |
14078 | ||
14079 | ;; | |
14080 | esac | |
14081 | ||
13b2be9c | 14082 | |
d7040cdb | 14083 | |
39bec121 TW |
14084 | ;; |
14085 | esac | |
14086 | ||
252b5132 RH |
14087 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
14088 | # enough, but on some of those systems, the assert macro relies on requoting | |
14089 | # working properly! | |
81ecdfbb RW |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5 |
14091 | $as_echo_n "checking for working assert macro... " >&6; } | |
14092 | if test "${gas_cv_assert_ok+set}" = set; then : | |
14093 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14094 | else |
81ecdfbb | 14095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 14096 | /* end confdefs.h. */ |
252b5132 RH |
14097 | #include <assert.h> |
14098 | #include <stdio.h> | |
13b2be9c DJ |
14099 | int |
14100 | main () | |
14101 | { | |
252b5132 RH |
14102 | |
14103 | /* check for requoting problems */ | |
14104 | static int a, b, c, d; | |
14105 | static char *s; | |
14106 | assert (!strcmp(s, "foo bar baz quux")); | |
14107 | /* check for newline handling */ | |
14108 | assert (a == b | |
14109 | || c == d); | |
14110 | ||
13b2be9c DJ |
14111 | ; |
14112 | return 0; | |
81ecdfbb RW |
14113 | } |
14114 | _ACEOF | |
14115 | if ac_fn_c_try_link "$LINENO"; then : | |
252b5132 RH |
14116 | gas_cv_assert_ok=yes |
14117 | else | |
81ecdfbb | 14118 | gas_cv_assert_ok=no |
252b5132 | 14119 | fi |
81ecdfbb RW |
14120 | rm -f core conftest.err conftest.$ac_objext \ |
14121 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 14122 | fi |
81ecdfbb RW |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5 |
14124 | $as_echo "$gas_cv_assert_ok" >&6; } | |
13b2be9c | 14125 | test $gas_cv_assert_ok = yes || |
81ecdfbb | 14126 | $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h |
252b5132 | 14127 | |
d6d788bd L |
14128 | |
14129 | ||
252b5132 RH |
14130 | # On some systems, the system header files may not declare malloc, realloc, |
14131 | # and free. There are places where gas needs these functions to have been | |
14132 | # declared -- such as when taking their addresses. | |
14133 | gas_test_headers=" | |
14134 | #ifdef HAVE_MEMORY_H | |
14135 | #include <memory.h> | |
14136 | #endif | |
14137 | #ifdef HAVE_STRING_H | |
14138 | #include <string.h> | |
14139 | #else | |
14140 | #ifdef HAVE_STRINGS_H | |
14141 | #include <strings.h> | |
14142 | #endif | |
14143 | #endif | |
14144 | #ifdef HAVE_STDLIB_H | |
14145 | #include <stdlib.h> | |
14146 | #endif | |
14147 | #ifdef HAVE_UNISTD_H | |
14148 | #include <unistd.h> | |
14149 | #endif | |
14150 | " | |
14151 | ||
e8a38df5 AL |
14152 | # Does errno.h declare errno, or do we have to add a separate declaration |
14153 | # for it? | |
14154 | ||
81ecdfbb RW |
14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5 |
14156 | $as_echo_n "checking whether declaration is required for errno... " >&6; } | |
14157 | if test "${gas_cv_decl_needed_errno+set}" = set; then : | |
14158 | $as_echo_n "(cached) " >&6 | |
e8a38df5 | 14159 | else |
81ecdfbb | 14160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a38df5 AL |
14161 | /* end confdefs.h. */ |
14162 | ||
14163 | #ifdef HAVE_ERRNO_H | |
14164 | #include <errno.h> | |
14165 | #endif | |
14166 | ||
14167 | int | |
14168 | main () | |
14169 | { | |
14170 | ||
14171 | typedef int f; | |
14172 | f x; | |
14173 | x = (f) errno; | |
14174 | ||
14175 | ; | |
14176 | return 0; | |
14177 | } | |
14178 | _ACEOF | |
81ecdfbb | 14179 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 AL |
14180 | gas_cv_decl_needed_errno=no |
14181 | else | |
81ecdfbb | 14182 | gas_cv_decl_needed_errno=yes |
e8a38df5 | 14183 | fi |
81ecdfbb RW |
14184 | rm -f core conftest.err conftest.$ac_objext \ |
14185 | conftest$ac_exeext conftest.$ac_ext | |
e8a38df5 | 14186 | fi |
81ecdfbb RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5 |
14188 | $as_echo "$gas_cv_decl_needed_errno" >&6; } | |
e8a38df5 AL |
14189 | if test $gas_cv_decl_needed_errno = yes; then |
14190 | ||
81ecdfbb | 14191 | $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h |
e8a38df5 AL |
14192 | |
14193 | fi | |
14194 | ||
14195 | ||
81ecdfbb RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
14197 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
14198 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then : | |
14199 | $as_echo_n "(cached) " >&6 | |
56f36663 | 14200 | else |
81ecdfbb | 14201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
56f36663 NC |
14202 | /* end confdefs.h. */ |
14203 | #include <unistd.h> | |
14204 | int | |
14205 | main () | |
14206 | { | |
14207 | extern int getopt (int, char *const*, const char *); | |
14208 | ; | |
14209 | return 0; | |
14210 | } | |
14211 | _ACEOF | |
81ecdfbb | 14212 | if ac_fn_c_try_compile "$LINENO"; then : |
56f36663 NC |
14213 | gas_cv_decl_getopt_unistd_h=yes |
14214 | else | |
81ecdfbb | 14215 | gas_cv_decl_getopt_unistd_h=no |
56f36663 | 14216 | fi |
81ecdfbb | 14217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
56f36663 NC |
14218 | fi |
14219 | ||
81ecdfbb RW |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5 |
14221 | $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; } | |
56f36663 NC |
14222 | if test $gas_cv_decl_getopt_unistd_h = yes; then |
14223 | ||
81ecdfbb | 14224 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
56f36663 NC |
14225 | |
14226 | fi | |
14227 | ||
e8a38df5 | 14228 | |
81ecdfbb RW |
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5 |
14230 | $as_echo_n "checking whether declaration is required for environ... " >&6; } | |
14231 | if test "${gas_cv_decl_needed_environ+set}" = set; then : | |
14232 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14233 | else |
81ecdfbb | 14234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 14235 | /* end confdefs.h. */ |
252b5132 | 14236 | $gas_test_headers |
13b2be9c DJ |
14237 | int |
14238 | main () | |
14239 | { | |
252b5132 | 14240 | |
e8a38df5 | 14241 | typedef char **f; |
252b5132 | 14242 | f x; |
e8a38df5 | 14243 | x = (f) environ; |
252b5132 | 14244 | |
13b2be9c DJ |
14245 | ; |
14246 | return 0; | |
14247 | } | |
14248 | _ACEOF | |
81ecdfbb | 14249 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 14250 | gas_cv_decl_needed_environ=no |
252b5132 | 14251 | else |
81ecdfbb | 14252 | gas_cv_decl_needed_environ=yes |
252b5132 | 14253 | fi |
81ecdfbb RW |
14254 | rm -f core conftest.err conftest.$ac_objext \ |
14255 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 14256 | fi |
81ecdfbb RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5 |
14258 | $as_echo "$gas_cv_decl_needed_environ" >&6; } | |
e8a38df5 | 14259 | if test $gas_cv_decl_needed_environ = yes; then |
13b2be9c | 14260 | |
81ecdfbb | 14261 | $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h |
13b2be9c DJ |
14262 | |
14263 | fi | |
14264 | ||
14265 | ||
81ecdfbb RW |
14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5 |
14267 | $as_echo_n "checking whether declaration is required for ffs... " >&6; } | |
14268 | if test "${gas_cv_decl_needed_ffs+set}" = set; then : | |
14269 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14270 | else |
81ecdfbb | 14271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
14272 | /* end confdefs.h. */ |
14273 | $gas_test_headers | |
14274 | int | |
14275 | main () | |
14276 | { | |
14277 | ||
e8a38df5 | 14278 | typedef int (*f)(int); |
13b2be9c | 14279 | f x; |
e8a38df5 | 14280 | x = (f) ffs; |
13b2be9c DJ |
14281 | |
14282 | ; | |
14283 | return 0; | |
14284 | } | |
14285 | _ACEOF | |
81ecdfbb | 14286 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 14287 | gas_cv_decl_needed_ffs=no |
13b2be9c | 14288 | else |
81ecdfbb | 14289 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 14290 | fi |
81ecdfbb RW |
14291 | rm -f core conftest.err conftest.$ac_objext \ |
14292 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14293 | fi |
81ecdfbb RW |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5 |
14295 | $as_echo "$gas_cv_decl_needed_ffs" >&6; } | |
e8a38df5 | 14296 | if test $gas_cv_decl_needed_ffs = yes; then |
13b2be9c | 14297 | |
81ecdfbb | 14298 | $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h |
13b2be9c DJ |
14299 | |
14300 | fi | |
14301 | ||
14302 | ||
81ecdfbb RW |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5 |
14304 | $as_echo_n "checking whether declaration is required for free... " >&6; } | |
14305 | if test "${gas_cv_decl_needed_free+set}" = set; then : | |
14306 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14307 | else |
81ecdfbb | 14308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
14309 | /* end confdefs.h. */ |
14310 | $gas_test_headers | |
14311 | int | |
14312 | main () | |
14313 | { | |
14314 | ||
14315 | typedef void (*f)(); | |
14316 | f x; | |
14317 | x = (f) free; | |
14318 | ||
14319 | ; | |
14320 | return 0; | |
14321 | } | |
14322 | _ACEOF | |
81ecdfbb | 14323 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
14324 | gas_cv_decl_needed_free=no |
14325 | else | |
81ecdfbb | 14326 | gas_cv_decl_needed_free=yes |
13b2be9c | 14327 | fi |
81ecdfbb RW |
14328 | rm -f core conftest.err conftest.$ac_objext \ |
14329 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14330 | fi |
81ecdfbb RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5 |
14332 | $as_echo "$gas_cv_decl_needed_free" >&6; } | |
13b2be9c DJ |
14333 | if test $gas_cv_decl_needed_free = yes; then |
14334 | ||
81ecdfbb | 14335 | $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h |
13b2be9c DJ |
14336 | |
14337 | fi | |
14338 | ||
14339 | ||
81ecdfbb RW |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5 |
14341 | $as_echo_n "checking whether declaration is required for malloc... " >&6; } | |
14342 | if test "${gas_cv_decl_needed_malloc+set}" = set; then : | |
14343 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14344 | else |
81ecdfbb | 14345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
14346 | /* end confdefs.h. */ |
14347 | $gas_test_headers | |
14348 | int | |
14349 | main () | |
14350 | { | |
14351 | ||
14352 | typedef char *(*f)(); | |
14353 | f x; | |
e8a38df5 | 14354 | x = (f) malloc; |
13b2be9c DJ |
14355 | |
14356 | ; | |
14357 | return 0; | |
14358 | } | |
14359 | _ACEOF | |
81ecdfbb | 14360 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 14361 | gas_cv_decl_needed_malloc=no |
13b2be9c | 14362 | else |
81ecdfbb | 14363 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 14364 | fi |
81ecdfbb RW |
14365 | rm -f core conftest.err conftest.$ac_objext \ |
14366 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14367 | fi |
81ecdfbb RW |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5 |
14369 | $as_echo "$gas_cv_decl_needed_malloc" >&6; } | |
e8a38df5 | 14370 | if test $gas_cv_decl_needed_malloc = yes; then |
13b2be9c | 14371 | |
81ecdfbb | 14372 | $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h |
13b2be9c DJ |
14373 | |
14374 | fi | |
14375 | ||
14376 | ||
81ecdfbb RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5 |
14378 | $as_echo_n "checking whether declaration is required for sbrk... " >&6; } | |
14379 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then : | |
14380 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14381 | else |
81ecdfbb | 14382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
14383 | /* end confdefs.h. */ |
14384 | $gas_test_headers | |
14385 | int | |
14386 | main () | |
14387 | { | |
14388 | ||
e8a38df5 | 14389 | typedef char *(*f)(); |
13b2be9c | 14390 | f x; |
e8a38df5 | 14391 | x = (f) sbrk; |
13b2be9c DJ |
14392 | |
14393 | ; | |
14394 | return 0; | |
14395 | } | |
14396 | _ACEOF | |
81ecdfbb | 14397 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 14398 | gas_cv_decl_needed_sbrk=no |
13b2be9c | 14399 | else |
81ecdfbb | 14400 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 14401 | fi |
81ecdfbb RW |
14402 | rm -f core conftest.err conftest.$ac_objext \ |
14403 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14404 | fi |
81ecdfbb RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5 |
14406 | $as_echo "$gas_cv_decl_needed_sbrk" >&6; } | |
e8a38df5 | 14407 | if test $gas_cv_decl_needed_sbrk = yes; then |
13b2be9c | 14408 | |
81ecdfbb | 14409 | $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h |
13b2be9c DJ |
14410 | |
14411 | fi | |
14412 | ||
14413 | ||
81ecdfbb RW |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5 |
14415 | $as_echo_n "checking whether declaration is required for strstr... " >&6; } | |
14416 | if test "${gas_cv_decl_needed_strstr+set}" = set; then : | |
14417 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 14418 | else |
81ecdfbb | 14419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 14420 | /* end confdefs.h. */ |
e8a38df5 | 14421 | $gas_test_headers |
13b2be9c DJ |
14422 | int |
14423 | main () | |
14424 | { | |
14425 | ||
e8a38df5 | 14426 | typedef char *(*f)(); |
13b2be9c | 14427 | f x; |
e8a38df5 | 14428 | x = (f) strstr; |
13b2be9c DJ |
14429 | |
14430 | ; | |
14431 | return 0; | |
14432 | } | |
14433 | _ACEOF | |
81ecdfbb | 14434 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 14435 | gas_cv_decl_needed_strstr=no |
13b2be9c | 14436 | else |
81ecdfbb | 14437 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 14438 | fi |
81ecdfbb RW |
14439 | rm -f core conftest.err conftest.$ac_objext \ |
14440 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 14441 | fi |
81ecdfbb RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5 |
14443 | $as_echo "$gas_cv_decl_needed_strstr" >&6; } | |
e8a38df5 | 14444 | if test $gas_cv_decl_needed_strstr = yes; then |
13b2be9c | 14445 | |
81ecdfbb | 14446 | $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h |
13b2be9c DJ |
14447 | |
14448 | fi | |
14449 | ||
14450 | ||
4b0296ce AM |
14451 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
14452 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
14453 | ac_have_decl=1 | |
14454 | else | |
14455 | ac_have_decl=0 | |
14456 | fi | |
14457 | ||
14458 | cat >>confdefs.h <<_ACEOF | |
14459 | #define HAVE_DECL_FREE $ac_have_decl | |
14460 | _ACEOF | |
14461 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
14462 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
14463 | ac_have_decl=1 | |
14464 | else | |
14465 | ac_have_decl=0 | |
14466 | fi | |
14467 | ||
14468 | cat >>confdefs.h <<_ACEOF | |
14469 | #define HAVE_DECL_GETENV $ac_have_decl | |
14470 | _ACEOF | |
14471 | ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default" | |
14472 | if test "x$ac_cv_have_decl_malloc" = x""yes; then : | |
14473 | ac_have_decl=1 | |
14474 | else | |
14475 | ac_have_decl=0 | |
14476 | fi | |
14477 | ||
14478 | cat >>confdefs.h <<_ACEOF | |
14479 | #define HAVE_DECL_MALLOC $ac_have_decl | |
14480 | _ACEOF | |
0175442d L |
14481 | ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default" |
14482 | if test "x$ac_cv_have_decl_mempcpy" = x""yes; then : | |
14483 | ac_have_decl=1 | |
14484 | else | |
14485 | ac_have_decl=0 | |
14486 | fi | |
14487 | ||
14488 | cat >>confdefs.h <<_ACEOF | |
14489 | #define HAVE_DECL_MEMPCPY $ac_have_decl | |
14490 | _ACEOF | |
4b0296ce AM |
14491 | ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default" |
14492 | if test "x$ac_cv_have_decl_realloc" = x""yes; then : | |
14493 | ac_have_decl=1 | |
14494 | else | |
14495 | ac_have_decl=0 | |
14496 | fi | |
14497 | ||
14498 | cat >>confdefs.h <<_ACEOF | |
14499 | #define HAVE_DECL_REALLOC $ac_have_decl | |
14500 | _ACEOF | |
14501 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" | |
14502 | if test "x$ac_cv_have_decl_stpcpy" = x""yes; then : | |
14503 | ac_have_decl=1 | |
14504 | else | |
14505 | ac_have_decl=0 | |
14506 | fi | |
14507 | ||
14508 | cat >>confdefs.h <<_ACEOF | |
14509 | #define HAVE_DECL_STPCPY $ac_have_decl | |
14510 | _ACEOF | |
14511 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" | |
14512 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
14513 | ac_have_decl=1 | |
14514 | else | |
14515 | ac_have_decl=0 | |
14516 | fi | |
0175442d | 14517 | |
4b0296ce AM |
14518 | cat >>confdefs.h <<_ACEOF |
14519 | #define HAVE_DECL_STRSTR $ac_have_decl | |
14520 | _ACEOF | |
81ecdfbb RW |
14521 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
14522 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
14523 | ac_have_decl=1 | |
6d74f28b | 14524 | else |
81ecdfbb | 14525 | ac_have_decl=0 |
6d74f28b | 14526 | fi |
6d74f28b EB |
14527 | |
14528 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 14529 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
6d74f28b | 14530 | _ACEOF |
2a7f4fa9 NC |
14531 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
14532 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
14533 | ac_have_decl=1 | |
14534 | else | |
14535 | ac_have_decl=0 | |
14536 | fi | |
14537 | ||
14538 | cat >>confdefs.h <<_ACEOF | |
14539 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
14540 | _ACEOF | |
6d74f28b EB |
14541 | |
14542 | ||
13b2be9c | 14543 | |
c973bc5c NC |
14544 | case "${host}" in |
14545 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
14546 | ||
81ecdfbb | 14547 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
c973bc5c NC |
14548 | ;; |
14549 | esac | |
14550 | ||
543b7933 L |
14551 | # Link in zlib if we can. This allows us to write compressed debug sections. |
14552 | ||
14553 | # Use the system's zlib library. | |
39f3de7c L |
14554 | zlibdir="-L\$(top_builddir)/../zlib" |
14555 | zlibinc="-I\$(top_srcdir)/../zlib" | |
0acf065b | 14556 | |
0138187e L |
14557 | # Check whether --with-system-zlib was given. |
14558 | if test "${with_system_zlib+set}" = set; then : | |
afa59b79 L |
14559 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
14560 | zlibdir= | |
14561 | zlibinc= | |
14562 | fi | |
0acf065b | 14563 | |
0acf065b | 14564 | fi |
0acf065b | 14565 | |
0acf065b CC |
14566 | |
14567 | ||
543b7933 L |
14568 | |
14569 | ||
b11d79f2 TG |
14570 | # Support for VMS timestamps via cross compile |
14571 | ||
14572 | if test "$ac_cv_header_time_h" = yes; then | |
14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 | |
14574 | $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } | |
14575 | if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then : | |
14576 | $as_echo_n "(cached) " >&6 | |
14577 | else | |
14578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14579 | /* end confdefs.h. */ | |
14580 | ||
14581 | #define _BSD_SOURCE 1 | |
14582 | #include <time.h> | |
14583 | int | |
14584 | main () | |
14585 | { | |
14586 | struct tm avar; void* aref = (void*) &avar.tm_gmtoff | |
14587 | ; | |
14588 | return 0; | |
14589 | } | |
14590 | _ACEOF | |
14591 | if ac_fn_c_try_compile "$LINENO"; then : | |
14592 | gas_cv_have_time_type_member_tm_gmtoff=yes | |
14593 | else | |
14594 | gas_cv_have_time_type_member_tm_gmtoff=no | |
14595 | ||
14596 | fi | |
14597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14598 | fi | |
14599 | ||
14600 | if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then | |
14601 | ||
14602 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
14603 | ||
14604 | fi | |
14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 | |
14606 | $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } | |
14607 | ||
14608 | fi | |
14609 | ||
14610 | if test "$ac_cv_header_sys_stat_h" = yes; then | |
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 | |
14612 | $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } | |
14613 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then : | |
14614 | $as_echo_n "(cached) " >&6 | |
14615 | else | |
14616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14617 | /* end confdefs.h. */ | |
14618 | ||
14619 | #define _BSD_SOURCE 1 | |
14620 | #include <sys/stat.h> | |
14621 | int | |
14622 | main () | |
14623 | { | |
14624 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec | |
14625 | ; | |
14626 | return 0; | |
14627 | } | |
14628 | _ACEOF | |
14629 | if ac_fn_c_try_compile "$LINENO"; then : | |
14630 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes | |
14631 | else | |
14632 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no | |
14633 | ||
14634 | fi | |
14635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14636 | fi | |
14637 | ||
14638 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then | |
14639 | ||
14640 | $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h | |
14641 | ||
14642 | fi | |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 | |
14644 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } | |
14645 | ||
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 | |
14647 | $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } | |
14648 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then : | |
14649 | $as_echo_n "(cached) " >&6 | |
14650 | else | |
14651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14652 | /* end confdefs.h. */ | |
14653 | ||
14654 | #define _BSD_SOURCE 1 | |
14655 | #include <sys/stat.h> | |
14656 | int | |
14657 | main () | |
14658 | { | |
14659 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec | |
14660 | ; | |
14661 | return 0; | |
14662 | } | |
14663 | _ACEOF | |
14664 | if ac_fn_c_try_compile "$LINENO"; then : | |
14665 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes | |
14666 | else | |
14667 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no | |
14668 | ||
14669 | fi | |
14670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14671 | fi | |
14672 | ||
14673 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then | |
14674 | ||
14675 | $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h | |
14676 | ||
14677 | fi | |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 | |
14679 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } | |
14680 | ||
14681 | fi | |
14682 | ||
14683 | ||
c973bc5c | 14684 | |
13b2be9c | 14685 | |
108a6f8e CD |
14686 | |
14687 | ||
14688 | ||
14689 | ||
31dd3154 | 14690 | |
81ecdfbb | 14691 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
13b2be9c | 14692 | |
81ecdfbb | 14693 | ac_config_commands="$ac_config_commands default" |
13b2be9c DJ |
14694 | |
14695 | ||
14696 | cat >confcache <<\_ACEOF | |
14697 | # This file is a shell script that caches the results of configure | |
14698 | # tests run on this system so they can be shared between configure | |
14699 | # scripts and configure runs, see configure's option --config-cache. | |
14700 | # It is not useful on other systems. If it contains results you don't | |
14701 | # want to keep, you may remove or edit it. | |
14702 | # | |
14703 | # config.status only pays attention to the cache file if you give it | |
14704 | # the --recheck option to rerun configure. | |
14705 | # | |
14706 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14707 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14708 | # following values. | |
14709 | ||
14710 | _ACEOF | |
14711 | ||
14712 | # The following way of writing the cache mishandles newlines in values, | |
14713 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14714 | # So, we kill variables containing newlines. |
13b2be9c DJ |
14715 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14716 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14717 | ( |
14718 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14719 | eval ac_val=\$$ac_var | |
14720 | case $ac_val in #( | |
14721 | *${as_nl}*) | |
14722 | case $ac_var in #( | |
14723 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14724 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14725 | esac | |
14726 | case $ac_var in #( | |
14727 | _ | IFS | as_nl) ;; #( | |
14728 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14729 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14730 | esac ;; | |
14731 | esac | |
14732 | done | |
14733 | ||
13b2be9c | 14734 | (set) 2>&1 | |
81ecdfbb RW |
14735 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14736 | *${as_nl}ac_space=\ *) | |
14737 | # `set' does not quote correctly, so add quotes: double-quote | |
14738 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13b2be9c | 14739 | sed -n \ |
ab509236 L |
14740 | "s/'/'\\\\''/g; |
14741 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14742 | ;; #( |
13b2be9c DJ |
14743 | *) |
14744 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14745 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 14746 | ;; |
81ecdfbb RW |
14747 | esac | |
14748 | sort | |
14749 | ) | | |
13b2be9c | 14750 | sed ' |
81ecdfbb | 14751 | /^ac_cv_env_/b end |
13b2be9c | 14752 | t clear |
81ecdfbb | 14753 | :clear |
13b2be9c DJ |
14754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14755 | t end | |
81ecdfbb RW |
14756 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14757 | :end' >>confcache | |
14758 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14759 | if test -w "$cache_file"; then | |
14760 | test "x$cache_file" != "x/dev/null" && | |
14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14762 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
13b2be9c DJ |
14763 | cat confcache >$cache_file |
14764 | else | |
81ecdfbb RW |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14766 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13b2be9c DJ |
14767 | fi |
14768 | fi | |
14769 | rm -f confcache | |
14770 | ||
14771 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14772 | # Let make expand exec_prefix. | |
14773 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14774 | ||
13b2be9c DJ |
14775 | DEFS=-DHAVE_CONFIG_H |
14776 | ||
14777 | ac_libobjs= | |
14778 | ac_ltlibobjs= | |
14779 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14780 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14781 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14782 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14783 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14784 | # will be set to the directory where LIBOBJS objects are built. | |
14785 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14786 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13b2be9c DJ |
14787 | done |
14788 | LIBOBJS=$ac_libobjs | |
14789 | ||
14790 | LTLIBOBJS=$ac_ltlibobjs | |
14791 | ||
14792 | ||
14793 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
14794 | as_fn_error "conditional \"AMDEP\" was never defined. |
14795 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c DJ |
14796 | fi |
14797 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
14798 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
14799 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14800 | fi | |
14801 | if test -n "$EXEEXT"; then | |
14802 | am__EXEEXT_TRUE= | |
14803 | am__EXEEXT_FALSE='#' | |
14804 | else | |
14805 | am__EXEEXT_TRUE='#' | |
14806 | am__EXEEXT_FALSE= | |
13b2be9c | 14807 | fi |
81ecdfbb RW |
14808 | |
14809 | ||
13b2be9c | 14810 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
14811 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
14812 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c | 14813 | fi |
d5fbea21 | 14814 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
14815 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
14816 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 14817 | fi |
13b2be9c DJ |
14818 | |
14819 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14820 | ac_write_fail=0 |
13b2be9c DJ |
14821 | ac_clean_files_save=$ac_clean_files |
14822 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14824 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14825 | as_write_fail=0 | |
14826 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13b2be9c DJ |
14827 | #! $SHELL |
14828 | # Generated by $as_me. | |
14829 | # Run this file to recreate the current configuration. | |
14830 | # Compiler output produced by configure, useful for debugging | |
14831 | # configure, is in config.log if it exists. | |
14832 | ||
14833 | debug=false | |
14834 | ac_cs_recheck=false | |
14835 | ac_cs_silent=false | |
13b2be9c | 14836 | |
81ecdfbb RW |
14837 | SHELL=\${CONFIG_SHELL-$SHELL} |
14838 | export SHELL | |
14839 | _ASEOF | |
14840 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14841 | ## -------------------- ## | |
14842 | ## M4sh Initialization. ## | |
14843 | ## -------------------- ## | |
13b2be9c | 14844 | |
81ecdfbb RW |
14845 | # Be more Bourne compatible |
14846 | DUALCASE=1; export DUALCASE # for MKS sh | |
14847 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
14848 | emulate sh |
14849 | NULLCMD=: | |
81ecdfbb | 14850 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
14851 | # is contrary to our usage. Disable this feature. |
14852 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14853 | setopt NO_GLOB_SUBST |
14854 | else | |
14855 | case `(set -o) 2>/dev/null` in #( | |
14856 | *posix*) : | |
14857 | set -o posix ;; #( | |
14858 | *) : | |
14859 | ;; | |
14860 | esac | |
13b2be9c DJ |
14861 | fi |
14862 | ||
81ecdfbb RW |
14863 | |
14864 | as_nl=' | |
14865 | ' | |
14866 | export as_nl | |
14867 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14868 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14869 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14870 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14871 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14872 | # but without wasting forks for bash or zsh. | |
14873 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14874 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14875 | as_echo='print -r --' | |
14876 | as_echo_n='print -rn --' | |
14877 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14878 | as_echo='printf %s\n' | |
14879 | as_echo_n='printf %s' | |
14880 | else | |
14881 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14882 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14883 | as_echo_n='/usr/ucb/echo -n' | |
14884 | else | |
14885 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14886 | as_echo_n_body='eval | |
14887 | arg=$1; | |
14888 | case $arg in #( | |
14889 | *"$as_nl"*) | |
14890 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14891 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14892 | esac; | |
14893 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14894 | ' | |
14895 | export as_echo_n_body | |
14896 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14897 | fi | |
14898 | export as_echo_body | |
14899 | as_echo='sh -c $as_echo_body as_echo' | |
13b2be9c DJ |
14900 | fi |
14901 | ||
81ecdfbb RW |
14902 | # The user is always right. |
14903 | if test "${PATH_SEPARATOR+set}" != set; then | |
14904 | PATH_SEPARATOR=: | |
14905 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14906 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14907 | PATH_SEPARATOR=';' | |
14908 | } | |
14909 | fi | |
14910 | ||
14911 | ||
14912 | # IFS | |
14913 | # We need space, tab and new line, in precisely that order. Quoting is | |
14914 | # there to prevent editors from complaining about space-tab. | |
14915 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14916 | # splitting by setting IFS to empty value.) | |
14917 | IFS=" "" $as_nl" | |
14918 | ||
14919 | # Find who we are. Look in the path if we contain no directory separator. | |
14920 | case $0 in #(( | |
14921 | *[\\/]* ) as_myself=$0 ;; | |
14922 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14923 | for as_dir in $PATH | |
14924 | do | |
14925 | IFS=$as_save_IFS | |
14926 | test -z "$as_dir" && as_dir=. | |
14927 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14928 | done | |
14929 | IFS=$as_save_IFS | |
14930 | ||
14931 | ;; | |
14932 | esac | |
14933 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14934 | # in which case we are not to be found in the path. | |
14935 | if test "x$as_myself" = x; then | |
14936 | as_myself=$0 | |
14937 | fi | |
14938 | if test ! -f "$as_myself"; then | |
14939 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14940 | exit 1 | |
14941 | fi | |
13b2be9c | 14942 | |
81ecdfbb RW |
14943 | # Unset variables that we do not need and which cause bugs (e.g. in |
14944 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14945 | # suppresses any "Segmentation fault" message there. '((' could | |
14946 | # trigger a bug in pdksh 5.2.14. | |
14947 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14948 | do eval test x\${$as_var+set} = xset \ | |
14949 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14950 | done | |
13b2be9c DJ |
14951 | PS1='$ ' |
14952 | PS2='> ' | |
14953 | PS4='+ ' | |
14954 | ||
14955 | # NLS nuisances. | |
81ecdfbb RW |
14956 | LC_ALL=C |
14957 | export LC_ALL | |
14958 | LANGUAGE=C | |
14959 | export LANGUAGE | |
14960 | ||
14961 | # CDPATH. | |
14962 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14963 | ||
14964 | ||
14965 | # as_fn_error ERROR [LINENO LOG_FD] | |
14966 | # --------------------------------- | |
14967 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14968 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14969 | # script with status $?, using 1 if that was 0. | |
14970 | as_fn_error () | |
14971 | { | |
14972 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14973 | if test "$3"; then | |
14974 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14975 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
13b2be9c | 14976 | fi |
81ecdfbb RW |
14977 | $as_echo "$as_me: error: $1" >&2 |
14978 | as_fn_exit $as_status | |
14979 | } # as_fn_error | |
14980 | ||
14981 | ||
14982 | # as_fn_set_status STATUS | |
14983 | # ----------------------- | |
14984 | # Set $? to STATUS, without forking. | |
14985 | as_fn_set_status () | |
14986 | { | |
14987 | return $1 | |
14988 | } # as_fn_set_status | |
14989 | ||
14990 | # as_fn_exit STATUS | |
14991 | # ----------------- | |
14992 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14993 | as_fn_exit () | |
14994 | { | |
14995 | set +e | |
14996 | as_fn_set_status $1 | |
14997 | exit $1 | |
14998 | } # as_fn_exit | |
14999 | ||
15000 | # as_fn_unset VAR | |
15001 | # --------------- | |
15002 | # Portably unset VAR. | |
15003 | as_fn_unset () | |
15004 | { | |
15005 | { eval $1=; unset $1;} | |
15006 | } | |
15007 | as_unset=as_fn_unset | |
15008 | # as_fn_append VAR VALUE | |
15009 | # ---------------------- | |
15010 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15011 | # advantage of any shell optimizations that allow amortized linear growth over | |
15012 | # repeated appends, instead of the typical quadratic growth present in naive | |
15013 | # implementations. | |
15014 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15015 | eval 'as_fn_append () | |
15016 | { | |
15017 | eval $1+=\$2 | |
15018 | }' | |
15019 | else | |
15020 | as_fn_append () | |
15021 | { | |
15022 | eval $1=\$$1\$2 | |
15023 | } | |
15024 | fi # as_fn_append | |
15025 | ||
15026 | # as_fn_arith ARG... | |
15027 | # ------------------ | |
15028 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15029 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15030 | # must be portable across $(()) and expr. | |
15031 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15032 | eval 'as_fn_arith () | |
15033 | { | |
15034 | as_val=$(( $* )) | |
15035 | }' | |
15036 | else | |
15037 | as_fn_arith () | |
15038 | { | |
15039 | as_val=`expr "$@" || test $? -eq 1` | |
15040 | } | |
15041 | fi # as_fn_arith | |
15042 | ||
13b2be9c | 15043 | |
81ecdfbb RW |
15044 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15045 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
15046 | as_expr=expr |
15047 | else | |
15048 | as_expr=false | |
15049 | fi | |
15050 | ||
81ecdfbb | 15051 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
15052 | as_basename=basename |
15053 | else | |
15054 | as_basename=false | |
15055 | fi | |
15056 | ||
81ecdfbb RW |
15057 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15058 | as_dirname=dirname | |
15059 | else | |
15060 | as_dirname=false | |
15061 | fi | |
13b2be9c | 15062 | |
81ecdfbb | 15063 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
15064 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15065 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15066 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15067 | $as_echo X/"$0" | | |
15068 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15069 | s//\1/ | |
15070 | q | |
15071 | } | |
15072 | /^X\/\(\/\/\)$/{ | |
15073 | s//\1/ | |
15074 | q | |
15075 | } | |
15076 | /^X\/\(\/\).*/{ | |
15077 | s//\1/ | |
15078 | q | |
15079 | } | |
15080 | s/.*/./; q'` | |
13b2be9c | 15081 | |
13b2be9c DJ |
15082 | # Avoid depending upon Character Ranges. |
15083 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15084 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15085 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15086 | as_cr_digits='0123456789' | |
15087 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15088 | ||
81ecdfbb RW |
15089 | ECHO_C= ECHO_N= ECHO_T= |
15090 | case `echo -n x` in #((((( | |
15091 | -n*) | |
15092 | case `echo 'xy\c'` in | |
15093 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15094 | xy) ECHO_C='\c';; | |
15095 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15096 | ECHO_T=' ';; | |
15097 | esac;; | |
15098 | *) | |
15099 | ECHO_N='-n';; | |
13b2be9c | 15100 | esac |
252b5132 | 15101 | |
81ecdfbb RW |
15102 | rm -f conf$$ conf$$.exe conf$$.file |
15103 | if test -d conf$$.dir; then | |
15104 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 15105 | else |
81ecdfbb RW |
15106 | rm -f conf$$.dir |
15107 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 15108 | fi |
81ecdfbb RW |
15109 | if (echo >conf$$.file) 2>/dev/null; then |
15110 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 15111 | as_ln_s='ln -s' |
81ecdfbb RW |
15112 | # ... but there are two gotchas: |
15113 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15114 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15115 | # In both cases, we have to default to `cp -p'. | |
15116 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15117 | as_ln_s='cp -p' | |
15118 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15119 | as_ln_s=ln | |
15120 | else | |
15121 | as_ln_s='cp -p' | |
13b2be9c | 15122 | fi |
13b2be9c DJ |
15123 | else |
15124 | as_ln_s='cp -p' | |
252b5132 | 15125 | fi |
81ecdfbb RW |
15126 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15127 | rmdir conf$$.dir 2>/dev/null | |
252b5132 | 15128 | |
81ecdfbb RW |
15129 | |
15130 | # as_fn_mkdir_p | |
15131 | # ------------- | |
15132 | # Create "$as_dir" as a directory, including parents if necessary. | |
15133 | as_fn_mkdir_p () | |
15134 | { | |
15135 | ||
15136 | case $as_dir in #( | |
15137 | -*) as_dir=./$as_dir;; | |
15138 | esac | |
15139 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15140 | as_dirs= | |
15141 | while :; do | |
15142 | case $as_dir in #( | |
15143 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15144 | *) as_qdir=$as_dir;; | |
15145 | esac | |
15146 | as_dirs="'$as_qdir' $as_dirs" | |
15147 | as_dir=`$as_dirname -- "$as_dir" || | |
15148 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15149 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15150 | X"$as_dir" : 'X\(//\)$' \| \ | |
15151 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15152 | $as_echo X"$as_dir" | | |
15153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15154 | s//\1/ | |
15155 | q | |
15156 | } | |
15157 | /^X\(\/\/\)[^/].*/{ | |
15158 | s//\1/ | |
15159 | q | |
15160 | } | |
15161 | /^X\(\/\/\)$/{ | |
15162 | s//\1/ | |
15163 | q | |
15164 | } | |
15165 | /^X\(\/\).*/{ | |
15166 | s//\1/ | |
15167 | q | |
15168 | } | |
15169 | s/.*/./; q'` | |
15170 | test -d "$as_dir" && break | |
15171 | done | |
15172 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15173 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15174 | ||
15175 | ||
15176 | } # as_fn_mkdir_p | |
13b2be9c | 15177 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15178 | as_mkdir_p='mkdir -p "$as_dir"' |
252b5132 | 15179 | else |
ab509236 | 15180 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
15181 | as_mkdir_p=false |
15182 | fi | |
81ecdfbb RW |
15183 | |
15184 | if test -x / >/dev/null 2>&1; then | |
15185 | as_test_x='test -x' | |
15186 | else | |
15187 | if ls -dL / >/dev/null 2>&1; then | |
15188 | as_ls_L_option=L | |
15189 | else | |
15190 | as_ls_L_option= | |
15191 | fi | |
15192 | as_test_x=' | |
15193 | eval sh -c '\'' | |
15194 | if test -d "$1"; then | |
15195 | test -d "$1/."; | |
15196 | else | |
15197 | case $1 in #( | |
15198 | -*)set "./$1";; | |
15199 | esac; | |
15200 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15201 | ???[sx]*):;;*)false;;esac;fi | |
15202 | '\'' sh | |
15203 | ' | |
15204 | fi | |
15205 | as_executable_p=$as_test_x | |
252b5132 | 15206 | |
13b2be9c | 15207 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 15208 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 15209 | |
13b2be9c | 15210 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 15211 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 15212 | |
d6d788bd | 15213 | |
13b2be9c | 15214 | exec 6>&1 |
81ecdfbb RW |
15215 | ## ----------------------------------- ## |
15216 | ## Main body of $CONFIG_STATUS script. ## | |
15217 | ## ----------------------------------- ## | |
15218 | _ASEOF | |
15219 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
252b5132 | 15220 | |
81ecdfbb RW |
15221 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15222 | # Save the log message, to keep $0 and so on meaningful, and to | |
13b2be9c | 15223 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15224 | # values after options handling. |
15225 | ac_log=" | |
0d702cfe | 15226 | This file was extended by gas $as_me 2.29.51, which was |
81ecdfbb | 15227 | generated by GNU Autoconf 2.64. Invocation command line was |
d6d788bd | 15228 | |
13b2be9c DJ |
15229 | CONFIG_FILES = $CONFIG_FILES |
15230 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15231 | CONFIG_LINKS = $CONFIG_LINKS | |
15232 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15233 | $ $0 $@ | |
252b5132 | 15234 | |
81ecdfbb RW |
15235 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15236 | " | |
15237 | ||
13b2be9c | 15238 | _ACEOF |
252b5132 | 15239 | |
81ecdfbb RW |
15240 | case $ac_config_files in *" |
15241 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15242 | esac | |
13b2be9c | 15243 | |
81ecdfbb RW |
15244 | case $ac_config_headers in *" |
15245 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15246 | esac | |
252b5132 | 15247 | |
252b5132 | 15248 | |
81ecdfbb RW |
15249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15250 | # Files that config.status was made for. | |
15251 | config_files="$ac_config_files" | |
15252 | config_headers="$ac_config_headers" | |
15253 | config_commands="$ac_config_commands" | |
d6d788bd | 15254 | |
81ecdfbb | 15255 | _ACEOF |
252b5132 | 15256 | |
81ecdfbb | 15257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 15258 | ac_cs_usage="\ |
81ecdfbb RW |
15259 | \`$as_me' instantiates files and other configuration actions |
15260 | from templates according to the current configuration. Unless the files | |
15261 | and actions are specified as TAGs, all are instantiated by default. | |
252b5132 | 15262 | |
81ecdfbb | 15263 | Usage: $0 [OPTION]... [TAG]... |
252b5132 | 15264 | |
13b2be9c | 15265 | -h, --help print this help, then exit |
81ecdfbb RW |
15266 | -V, --version print version number and configuration settings, then exit |
15267 | -q, --quiet, --silent | |
15268 | do not print progress messages | |
13b2be9c DJ |
15269 | -d, --debug don't remove temporary files |
15270 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15271 | --file=FILE[:TEMPLATE] |
15272 | instantiate the configuration file FILE | |
15273 | --header=FILE[:TEMPLATE] | |
15274 | instantiate the configuration header FILE | |
252b5132 | 15275 | |
13b2be9c DJ |
15276 | Configuration files: |
15277 | $config_files | |
252b5132 | 15278 | |
13b2be9c DJ |
15279 | Configuration headers: |
15280 | $config_headers | |
252b5132 | 15281 | |
13b2be9c DJ |
15282 | Configuration commands: |
15283 | $config_commands | |
252b5132 | 15284 | |
81ecdfbb | 15285 | Report bugs to the package provider." |
d6d788bd | 15286 | |
81ecdfbb RW |
15287 | _ACEOF |
15288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13b2be9c | 15289 | ac_cs_version="\\ |
0d702cfe | 15290 | gas config.status 2.29.51 |
81ecdfbb RW |
15291 | configured by $0, generated by GNU Autoconf 2.64, |
15292 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d6d788bd | 15293 | |
81ecdfbb | 15294 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
15295 | This config.status script is free software; the Free Software Foundation |
15296 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15297 | |
15298 | ac_pwd='$ac_pwd' | |
15299 | srcdir='$srcdir' | |
15300 | INSTALL='$INSTALL' | |
15301 | MKDIR_P='$MKDIR_P' | |
15302 | AWK='$AWK' | |
15303 | test -n "\$AWK" || AWK=awk | |
13b2be9c | 15304 | _ACEOF |
d6d788bd | 15305 | |
81ecdfbb RW |
15306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15307 | # The default lists apply if the user does not specify any file. | |
13b2be9c DJ |
15308 | ac_need_defaults=: |
15309 | while test $# != 0 | |
15310 | do | |
15311 | case $1 in | |
15312 | --*=*) | |
81ecdfbb RW |
15313 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15314 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13b2be9c | 15315 | ac_shift=: |
c8615825 | 15316 | ;; |
81ecdfbb | 15317 | *) |
13b2be9c DJ |
15318 | ac_option=$1 |
15319 | ac_optarg=$2 | |
15320 | ac_shift=shift | |
c8615825 | 15321 | ;; |
13b2be9c | 15322 | esac |
252b5132 | 15323 | |
13b2be9c DJ |
15324 | case $ac_option in |
15325 | # Handling of the options. | |
13b2be9c DJ |
15326 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15327 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
15328 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15329 | $as_echo "$ac_cs_version"; exit ;; | |
15330 | --debug | --debu | --deb | --de | --d | -d ) | |
13b2be9c DJ |
15331 | debug=: ;; |
15332 | --file | --fil | --fi | --f ) | |
15333 | $ac_shift | |
81ecdfbb RW |
15334 | case $ac_optarg in |
15335 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15336 | esac | |
15337 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13b2be9c DJ |
15338 | ac_need_defaults=false;; |
15339 | --header | --heade | --head | --hea ) | |
15340 | $ac_shift | |
81ecdfbb RW |
15341 | case $ac_optarg in |
15342 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15343 | esac | |
15344 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13b2be9c | 15345 | ac_need_defaults=false;; |
81ecdfbb RW |
15346 | --he | --h) |
15347 | # Conflict between --help and --header | |
15348 | as_fn_error "ambiguous option: \`$1' | |
15349 | Try \`$0 --help' for more information.";; | |
15350 | --help | --hel | -h ) | |
15351 | $as_echo "$ac_cs_usage"; exit ;; | |
13b2be9c DJ |
15352 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15353 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15354 | ac_cs_silent=: ;; | |
c8615825 | 15355 | |
13b2be9c | 15356 | # This is an error. |
81ecdfbb RW |
15357 | -*) as_fn_error "unrecognized option: \`$1' |
15358 | Try \`$0 --help' for more information." ;; | |
252b5132 | 15359 | |
81ecdfbb RW |
15360 | *) as_fn_append ac_config_targets " $1" |
15361 | ac_need_defaults=false ;; | |
252b5132 | 15362 | |
13b2be9c DJ |
15363 | esac |
15364 | shift | |
15365 | done | |
252b5132 | 15366 | |
13b2be9c | 15367 | ac_configure_extra_args= |
d6d788bd | 15368 | |
13b2be9c DJ |
15369 | if $ac_cs_silent; then |
15370 | exec 6>/dev/null | |
15371 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15372 | fi | |
9b2b7d69 | 15373 | |
13b2be9c | 15374 | _ACEOF |
81ecdfbb | 15375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13b2be9c | 15376 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15377 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15378 | shift | |
15379 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15380 | CONFIG_SHELL='$SHELL' | |
15381 | export CONFIG_SHELL | |
15382 | exec "\$@" | |
13b2be9c DJ |
15383 | fi |
15384 | ||
15385 | _ACEOF | |
81ecdfbb RW |
15386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15387 | exec 5>>config.log | |
15388 | { | |
15389 | echo | |
15390 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15391 | ## Running $as_me. ## | |
15392 | _ASBOX | |
15393 | $as_echo "$ac_log" | |
15394 | } >&5 | |
13b2be9c | 15395 | |
81ecdfbb RW |
15396 | _ACEOF |
15397 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9b2b7d69 | 15398 | # |
81ecdfbb | 15399 | # INIT-COMMANDS |
9b2b7d69 | 15400 | # |
13b2be9c | 15401 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15402 | |
15403 | ||
15404 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15405 | # if CDPATH is set. | |
15406 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15407 | ||
15408 | sed_quote_subst='$sed_quote_subst' | |
15409 | double_quote_subst='$double_quote_subst' | |
15410 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
15411 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
15412 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15413 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
15414 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
15415 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15416 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15417 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15418 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
15419 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
15420 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15421 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15422 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15423 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15424 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15425 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15426 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15427 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15428 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15429 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15430 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15431 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15432 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15433 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15434 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15435 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15436 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15437 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15438 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15439 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15440 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15441 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15442 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15443 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15444 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15445 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15446 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15447 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15448 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15449 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15450 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15451 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15452 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15453 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15454 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15455 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15456 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15457 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15458 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15459 | 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"`' | |
15460 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15461 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15462 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
df7b86aa | 15463 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
f2c621e4 | 15464 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
15465 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
15466 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15467 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15468 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15469 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15470 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15471 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15472 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15473 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15474 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15475 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15476 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15477 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15478 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15479 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15480 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15481 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15482 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15483 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15484 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15485 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15486 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15487 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15488 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15489 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15490 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15491 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
15492 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
15493 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15494 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15495 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15496 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15497 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15498 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15499 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
f2c621e4 | 15500 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
15501 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
15502 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15503 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15504 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15505 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15506 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15507 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15508 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15509 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15510 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15511 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15512 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15513 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15514 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15515 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15516 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15517 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15518 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15519 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15520 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15521 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15522 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15523 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15524 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15525 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15526 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15527 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15528 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15529 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15530 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
15531 | |
15532 | LTCC='$LTCC' | |
15533 | LTCFLAGS='$LTCFLAGS' | |
15534 | compiler='$compiler_DEFAULT' | |
15535 | ||
3725885a RW |
15536 | # A function that is used when there is no print builtin or printf. |
15537 | func_fallback_echo () | |
15538 | { | |
15539 | eval 'cat <<_LTECHO_EOF | |
15540 | \$1 | |
15541 | _LTECHO_EOF' | |
15542 | } | |
15543 | ||
d7040cdb | 15544 | # Quote evaled strings. |
3725885a RW |
15545 | for var in SHELL \ |
15546 | ECHO \ | |
15547 | SED \ | |
d7040cdb SE |
15548 | GREP \ |
15549 | EGREP \ | |
15550 | FGREP \ | |
15551 | LD \ | |
15552 | NM \ | |
15553 | LN_S \ | |
15554 | lt_SP2NL \ | |
15555 | lt_NL2SP \ | |
15556 | reload_flag \ | |
718a6fd8 | 15557 | OBJDUMP \ |
d7040cdb SE |
15558 | deplibs_check_method \ |
15559 | file_magic_cmd \ | |
15560 | AR \ | |
15561 | AR_FLAGS \ | |
15562 | STRIP \ | |
15563 | RANLIB \ | |
15564 | CC \ | |
15565 | CFLAGS \ | |
15566 | compiler \ | |
15567 | lt_cv_sys_global_symbol_pipe \ | |
15568 | lt_cv_sys_global_symbol_to_cdecl \ | |
15569 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 15570 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb | 15571 | lt_prog_compiler_no_builtin_flag \ |
df7b86aa | 15572 | lt_prog_compiler_wl \ |
f2c621e4 | 15573 | lt_prog_compiler_pic \ |
d7040cdb SE |
15574 | lt_prog_compiler_static \ |
15575 | lt_cv_prog_compiler_c_o \ | |
15576 | need_locks \ | |
718a6fd8 SE |
15577 | DSYMUTIL \ |
15578 | NMEDIT \ | |
15579 | LIPO \ | |
15580 | OTOOL \ | |
15581 | OTOOL64 \ | |
d7040cdb SE |
15582 | shrext_cmds \ |
15583 | export_dynamic_flag_spec \ | |
15584 | whole_archive_flag_spec \ | |
15585 | compiler_needs_object \ | |
15586 | with_gnu_ld \ | |
15587 | allow_undefined_flag \ | |
15588 | no_undefined_flag \ | |
15589 | hardcode_libdir_flag_spec \ | |
15590 | hardcode_libdir_flag_spec_ld \ | |
15591 | hardcode_libdir_separator \ | |
f2c621e4 | 15592 | fix_srcfile_path \ |
d7040cdb SE |
15593 | exclude_expsyms \ |
15594 | include_expsyms \ | |
15595 | file_list_spec \ | |
15596 | variables_saved_for_relink \ | |
15597 | libname_spec \ | |
15598 | library_names_spec \ | |
15599 | soname_spec \ | |
3725885a | 15600 | install_override_mode \ |
d7040cdb SE |
15601 | finish_eval \ |
15602 | old_striplib \ | |
15603 | striplib; do | |
3725885a | 15604 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15605 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15606 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15607 | ;; |
15608 | *) | |
15609 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15610 | ;; | |
15611 | esac | |
15612 | done | |
15613 | ||
15614 | # Double-quote double-evaled strings. | |
15615 | for var in reload_cmds \ | |
15616 | old_postinstall_cmds \ | |
15617 | old_postuninstall_cmds \ | |
15618 | old_archive_cmds \ | |
15619 | extract_expsyms_cmds \ | |
15620 | old_archive_from_new_cmds \ | |
15621 | old_archive_from_expsyms_cmds \ | |
15622 | archive_cmds \ | |
15623 | archive_expsym_cmds \ | |
15624 | module_cmds \ | |
15625 | module_expsym_cmds \ | |
15626 | export_symbols_cmds \ | |
15627 | prelink_cmds \ | |
15628 | postinstall_cmds \ | |
15629 | postuninstall_cmds \ | |
15630 | finish_cmds \ | |
15631 | sys_lib_search_path_spec \ | |
15632 | sys_lib_dlsearch_path_spec; do | |
3725885a | 15633 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15634 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15635 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15636 | ;; |
15637 | *) | |
15638 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15639 | ;; | |
15640 | esac | |
15641 | done | |
15642 | ||
d7040cdb SE |
15643 | ac_aux_dir='$ac_aux_dir' |
15644 | xsi_shell='$xsi_shell' | |
15645 | lt_shell_append='$lt_shell_append' | |
15646 | ||
15647 | # See if we are running on zsh, and set the options which allow our | |
15648 | # commands through without removal of \ escapes INIT. | |
15649 | if test -n "\${ZSH_VERSION+set}" ; then | |
15650 | setopt NO_GLOB_SUBST | |
15651 | fi | |
15652 | ||
15653 | ||
15654 | PACKAGE='$PACKAGE' | |
15655 | VERSION='$VERSION' | |
15656 | TIMESTAMP='$TIMESTAMP' | |
15657 | RM='$RM' | |
15658 | ofile='$ofile' | |
15659 | ||
15660 | ||
15661 | ||
20e95c23 DJ |
15662 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15663 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15664 | # from automake. | |
15665 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15666 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15667 | LINGUAS="${LINGUAS-%UNSET%}" | |
15668 | ||
13b2be9c DJ |
15669 | target_cpu_type=${target_cpu_type} |
15670 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15671 | obj_format=${obj_format} | |
15672 | te_file=${te_file} | |
15673 | ||
15674 | _ACEOF | |
15675 | ||
81ecdfbb | 15676 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 15677 | |
81ecdfbb | 15678 | # Handling of arguments. |
13b2be9c | 15679 | for ac_config_target in $ac_config_targets |
9b2b7d69 | 15680 | do |
81ecdfbb RW |
15681 | case $ac_config_target in |
15682 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15683 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15684 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15685 | "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15686 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15687 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15688 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15689 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15690 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15691 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15692 | ||
15693 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
9b2b7d69 MM |
15694 | esac |
15695 | done | |
15696 | ||
81ecdfbb | 15697 | |
13b2be9c DJ |
15698 | # If the user did not use the arguments to specify the items to instantiate, |
15699 | # then the envvar interface is used. Set only those that are not. | |
15700 | # We use the long form for the default assignment because of an extremely | |
15701 | # bizarre bug on SunOS 4.1.3. | |
15702 | if $ac_need_defaults; then | |
15703 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15704 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15705 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15706 | fi | |
15707 | ||
15708 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15709 | # simply because there is no reason against having it here, and in addition, |
13b2be9c | 15710 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15711 | # Hook for its removal unless debugging. |
15712 | # Note that there is a small window in which the directory will not be cleaned: | |
15713 | # after its creation but before its name has been assigned to `$tmp'. | |
13b2be9c DJ |
15714 | $debug || |
15715 | { | |
81ecdfbb RW |
15716 | tmp= |
15717 | trap 'exit_status=$? | |
15718 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15719 | ' 0 | |
15720 | trap 'as_fn_exit 1' 1 2 13 15 | |
13b2be9c | 15721 | } |
13b2be9c | 15722 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 15723 | |
13b2be9c | 15724 | { |
81ecdfbb | 15725 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13b2be9c DJ |
15726 | test -n "$tmp" && test -d "$tmp" |
15727 | } || | |
15728 | { | |
81ecdfbb RW |
15729 | tmp=./conf$$-$RANDOM |
15730 | (umask 077 && mkdir "$tmp") | |
15731 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15732 | ||
15733 | # Set up the scripts for CONFIG_FILES section. | |
15734 | # No need to generate them if there are no CONFIG_FILES. | |
15735 | # This happens for instance with `./config.status config.h'. | |
15736 | if test -n "$CONFIG_FILES"; then | |
15737 | ||
15738 | ||
15739 | ac_cr=`echo X | tr X '\015'` | |
15740 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15741 | # But we know of no other shell where ac_cr would be empty at this | |
15742 | # point, so we can use a bashism as a fallback. | |
15743 | if test "x$ac_cr" = x; then | |
15744 | eval ac_cr=\$\'\\r\' | |
15745 | fi | |
15746 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15747 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15748 | ac_cs_awk_cr='\r' | |
15749 | else | |
15750 | ac_cs_awk_cr=$ac_cr | |
15751 | fi | |
15752 | ||
15753 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15754 | _ACEOF | |
15755 | ||
15756 | ||
15757 | { | |
15758 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15759 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15760 | echo "_ACEOF" | |
15761 | } >conf$$subs.sh || | |
15762 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15763 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15764 | ac_delim='%!_!# ' | |
15765 | for ac_last_try in false false false false false :; do | |
15766 | . ./conf$$subs.sh || | |
15767 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15768 | ||
15769 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15770 | if test $ac_delim_n = $ac_delim_num; then | |
15771 | break | |
15772 | elif $ac_last_try; then | |
15773 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15774 | else | |
15775 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15776 | fi | |
15777 | done | |
15778 | rm -f conf$$subs.sh | |
15779 | ||
15780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15781 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
15782 | _ACEOF | |
15783 | sed -n ' | |
15784 | h | |
15785 | s/^/S["/; s/!.*/"]=/ | |
15786 | p | |
15787 | g | |
15788 | s/^[^!]*!// | |
15789 | :repl | |
15790 | t repl | |
15791 | s/'"$ac_delim"'$// | |
15792 | t delim | |
15793 | :nl | |
15794 | h | |
15795 | s/\(.\{148\}\).*/\1/ | |
15796 | t more1 | |
15797 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15798 | p | |
15799 | n | |
15800 | b repl | |
15801 | :more1 | |
15802 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15803 | p | |
15804 | g | |
15805 | s/.\{148\}// | |
15806 | t nl | |
15807 | :delim | |
15808 | h | |
15809 | s/\(.\{148\}\).*/\1/ | |
15810 | t more2 | |
15811 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15812 | p | |
15813 | b | |
15814 | :more2 | |
15815 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15816 | p | |
15817 | g | |
15818 | s/.\{148\}// | |
15819 | t delim | |
15820 | ' <conf$$subs.awk | sed ' | |
15821 | /^[^""]/{ | |
15822 | N | |
15823 | s/\n// | |
15824 | } | |
15825 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15826 | rm -f conf$$subs.awk | |
15827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15828 | _ACAWK | |
15829 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15830 | for (key in S) S_is_set[key] = 1 | |
15831 | FS = "\a" | |
15832 | ||
15833 | } | |
13b2be9c | 15834 | { |
81ecdfbb RW |
15835 | line = $ 0 |
15836 | nfields = split(line, field, "@") | |
15837 | substed = 0 | |
15838 | len = length(field[1]) | |
15839 | for (i = 2; i < nfields; i++) { | |
15840 | key = field[i] | |
15841 | keylen = length(key) | |
15842 | if (S_is_set[key]) { | |
15843 | value = S[key] | |
15844 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15845 | len += length(value) + length(field[++i]) | |
15846 | substed = 1 | |
15847 | } else | |
15848 | len += 1 + keylen | |
15849 | } | |
15850 | ||
15851 | print line | |
13b2be9c | 15852 | } |
9b2b7d69 | 15853 | |
81ecdfbb RW |
15854 | _ACAWK |
15855 | _ACEOF | |
15856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15857 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15858 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15859 | else | |
15860 | cat | |
15861 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15862 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
13b2be9c DJ |
15863 | _ACEOF |
15864 | ||
81ecdfbb RW |
15865 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
15866 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15867 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15868 | # (actually we leave an empty line to preserve line numbers). | |
15869 | if test "x$srcdir" = x.; then | |
15870 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15871 | s/:*\$(srcdir):*/:/ | |
15872 | s/:*\${srcdir}:*/:/ | |
15873 | s/:*@srcdir@:*/:/ | |
15874 | s/^\([^=]*=[ ]*\):*/\1/ | |
15875 | s/:*$// | |
15876 | s/^[^=]*=[ ]*$// | |
15877 | }' | |
15878 | fi | |
15879 | ||
15880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15881 | fi # test -n "$CONFIG_FILES" | |
13b2be9c | 15882 | |
81ecdfbb RW |
15883 | # Set up the scripts for CONFIG_HEADERS section. |
15884 | # No need to generate them if there are no CONFIG_HEADERS. | |
15885 | # This happens for instance with `./config.status Makefile'. | |
15886 | if test -n "$CONFIG_HEADERS"; then | |
15887 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
15888 | BEGIN { | |
15889 | _ACEOF | |
13b2be9c | 15890 | |
81ecdfbb RW |
15891 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15892 | # here-document in config.status, that substitutes the proper values into | |
15893 | # config.h.in to produce config.h. | |
9b2b7d69 | 15894 | |
81ecdfbb RW |
15895 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15896 | # handling of long lines. | |
15897 | ac_delim='%!_!# ' | |
15898 | for ac_last_try in false false :; do | |
15899 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
15900 | if test -z "$ac_t"; then | |
15901 | break | |
15902 | elif $ac_last_try; then | |
15903 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
15904 | else | |
15905 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15906 | fi | |
15907 | done | |
15908 | ||
15909 | # For the awk script, D is an array of macro values keyed by name, | |
15910 | # likewise P contains macro parameters if any. Preserve backslash | |
15911 | # newline sequences. | |
15912 | ||
15913 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15914 | sed -n ' | |
15915 | s/.\{148\}/&'"$ac_delim"'/g | |
15916 | t rset | |
15917 | :rset | |
15918 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15919 | t def | |
15920 | d | |
15921 | :def | |
15922 | s/\\$// | |
15923 | t bsnl | |
15924 | s/["\\]/\\&/g | |
15925 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15926 | D["\1"]=" \3"/p | |
15927 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15928 | d | |
15929 | :bsnl | |
15930 | s/["\\]/\\&/g | |
15931 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15932 | D["\1"]=" \3\\\\\\n"\\/p | |
15933 | t cont | |
15934 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15935 | t cont | |
15936 | d | |
15937 | :cont | |
15938 | n | |
15939 | s/.\{148\}/&'"$ac_delim"'/g | |
15940 | t clear | |
15941 | :clear | |
15942 | s/\\$// | |
15943 | t bsnlc | |
15944 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15945 | d | |
15946 | :bsnlc | |
15947 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15948 | b cont | |
15949 | ' <confdefs.h | sed ' | |
15950 | s/'"$ac_delim"'/"\\\ | |
15951 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15952 | ||
15953 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15954 | for (key in D) D_is_set[key] = 1 | |
15955 | FS = "\a" | |
15956 | } | |
15957 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15958 | line = \$ 0 | |
15959 | split(line, arg, " ") | |
15960 | if (arg[1] == "#") { | |
15961 | defundef = arg[2] | |
15962 | mac1 = arg[3] | |
15963 | } else { | |
15964 | defundef = substr(arg[1], 2) | |
15965 | mac1 = arg[2] | |
15966 | } | |
15967 | split(mac1, mac2, "(") #) | |
15968 | macro = mac2[1] | |
15969 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15970 | if (D_is_set[macro]) { | |
15971 | # Preserve the white space surrounding the "#". | |
15972 | print prefix "define", macro P[macro] D[macro] | |
15973 | next | |
15974 | } else { | |
15975 | # Replace #undef with comments. This is necessary, for example, | |
15976 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15977 | # on some systems where configure will not decide to define it. | |
15978 | if (defundef == "undef") { | |
15979 | print "/*", prefix defundef, macro, "*/" | |
15980 | next | |
15981 | } | |
15982 | } | |
15983 | } | |
15984 | { print } | |
15985 | _ACAWK | |
13b2be9c | 15986 | _ACEOF |
81ecdfbb RW |
15987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15988 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
15989 | fi # test -n "$CONFIG_HEADERS" | |
13b2be9c | 15990 | |
81ecdfbb RW |
15991 | |
15992 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15993 | shift | |
15994 | for ac_tag | |
15995 | do | |
15996 | case $ac_tag in | |
15997 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15998 | esac | |
15999 | case $ac_mode$ac_tag in | |
16000 | :[FHL]*:*);; | |
16001 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
16002 | :[FH]-) ac_tag=-:-;; | |
16003 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16004 | esac | |
16005 | ac_save_IFS=$IFS | |
16006 | IFS=: | |
16007 | set x $ac_tag | |
16008 | IFS=$ac_save_IFS | |
16009 | shift | |
16010 | ac_file=$1 | |
16011 | shift | |
16012 | ||
16013 | case $ac_mode in | |
16014 | :L) ac_source=$1;; | |
16015 | :[FH]) | |
16016 | ac_file_inputs= | |
16017 | for ac_f | |
16018 | do | |
16019 | case $ac_f in | |
16020 | -) ac_f="$tmp/stdin";; | |
16021 | *) # Look for the file first in the build tree, then in the source tree | |
16022 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16023 | # because $ac_f cannot contain `:'. | |
16024 | test -f "$ac_f" || | |
16025 | case $ac_f in | |
16026 | [\\/$]*) false;; | |
16027 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16028 | esac || | |
16029 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
16030 | esac | |
16031 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16032 | as_fn_append ac_file_inputs " '$ac_f'" | |
16033 | done | |
16034 | ||
16035 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16036 | # use $as_me), people would be surprised to read: | |
16037 | # /* config.h. Generated by config.status. */ | |
16038 | configure_input='Generated from '` | |
16039 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16040 | `' by configure.' | |
16041 | if test x"$ac_file" != x-; then | |
16042 | configure_input="$ac_file. $configure_input" | |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16044 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9b2b7d69 | 16045 | fi |
81ecdfbb RW |
16046 | # Neutralize special characters interpreted by sed in replacement strings. |
16047 | case $configure_input in #( | |
16048 | *\&* | *\|* | *\\* ) | |
16049 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16050 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16051 | *) ac_sed_conf_input=$configure_input;; | |
16052 | esac | |
252b5132 | 16053 | |
81ecdfbb RW |
16054 | case $ac_tag in |
16055 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
16056 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
16057 | esac | |
16058 | ;; | |
252b5132 | 16059 | esac |
9b2b7d69 | 16060 | |
81ecdfbb | 16061 | ac_dir=`$as_dirname -- "$ac_file" || |
13b2be9c | 16062 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
16063 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16064 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16065 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16066 | $as_echo X"$ac_file" | | |
16067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16068 | s//\1/ | |
16069 | q | |
16070 | } | |
16071 | /^X\(\/\/\)[^/].*/{ | |
16072 | s//\1/ | |
16073 | q | |
16074 | } | |
16075 | /^X\(\/\/\)$/{ | |
16076 | s//\1/ | |
16077 | q | |
16078 | } | |
16079 | /^X\(\/\).*/{ | |
16080 | s//\1/ | |
16081 | q | |
16082 | } | |
16083 | s/.*/./; q'` | |
16084 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13b2be9c DJ |
16085 | ac_builddir=. |
16086 | ||
81ecdfbb RW |
16087 | case "$ac_dir" in |
16088 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16089 | *) | |
16090 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16091 | # A ".." for each directory in $ac_dir_suffix. | |
16092 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16093 | case $ac_top_builddir_sub in | |
16094 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16095 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16096 | esac ;; | |
16097 | esac | |
16098 | ac_abs_top_builddir=$ac_pwd | |
16099 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16100 | # for backward compatibility: | |
16101 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 16102 | |
13b2be9c | 16103 | case $srcdir in |
81ecdfbb | 16104 | .) # We are building in place. |
13b2be9c | 16105 | ac_srcdir=. |
81ecdfbb RW |
16106 | ac_top_srcdir=$ac_top_builddir_sub |
16107 | ac_abs_top_srcdir=$ac_pwd ;; | |
16108 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 16109 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16110 | ac_top_srcdir=$srcdir |
16111 | ac_abs_top_srcdir=$srcdir ;; | |
16112 | *) # Relative name. | |
16113 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16114 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16115 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13b2be9c | 16116 | esac |
81ecdfbb | 16117 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ab509236 | 16118 | |
252b5132 | 16119 | |
81ecdfbb RW |
16120 | case $ac_mode in |
16121 | :F) | |
16122 | # | |
16123 | # CONFIG_FILE | |
16124 | # | |
9b2b7d69 | 16125 | |
13b2be9c DJ |
16126 | case $INSTALL in |
16127 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
16128 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16129 | esac | |
16130 | ac_MKDIR_P=$MKDIR_P | |
16131 | case $MKDIR_P in | |
16132 | [\\/$]* | ?:[\\/]* ) ;; | |
16133 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
c8615825 | 16134 | esac |
81ecdfbb | 16135 | _ACEOF |
9b2b7d69 | 16136 | |
81ecdfbb RW |
16137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16138 | # If the template does not know about datarootdir, expand it. | |
16139 | # FIXME: This hack should be removed a few years after 2.60. | |
16140 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16141 | ac_sed_dataroot=' | |
16142 | /datarootdir/ { | |
16143 | p | |
16144 | q | |
16145 | } | |
16146 | /@datadir@/p | |
16147 | /@docdir@/p | |
16148 | /@infodir@/p | |
16149 | /@localedir@/p | |
16150 | /@mandir@/p' | |
16151 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16152 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16153 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16155 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16156 | _ACEOF | |
16157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16158 | ac_datarootdir_hack=' | |
16159 | s&@datadir@&$datadir&g | |
16160 | s&@docdir@&$docdir&g | |
16161 | s&@infodir@&$infodir&g | |
16162 | s&@localedir@&$localedir&g | |
16163 | s&@mandir@&$mandir&g | |
16164 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16165 | esac | |
13b2be9c | 16166 | _ACEOF |
81ecdfbb RW |
16167 | |
16168 | # Neutralize VPATH when `$srcdir' = `.'. | |
16169 | # Shell code in configure.ac might set extrasub. | |
16170 | # FIXME: do we really want to maintain this feature? | |
16171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16172 | ac_sed_extra="$ac_vpsub | |
13b2be9c DJ |
16173 | $extrasub |
16174 | _ACEOF | |
81ecdfbb | 16175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c DJ |
16176 | :t |
16177 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16178 | s|@configure_input@|$ac_sed_conf_input|;t t |
16179 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16180 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16181 | s&@srcdir@&$ac_srcdir&;t t | |
16182 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16183 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16184 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16185 | s&@builddir@&$ac_builddir&;t t | |
16186 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16187 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16188 | s&@INSTALL@&$ac_INSTALL&;t t | |
16189 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16190 | $ac_datarootdir_hack | |
16191 | " | |
16192 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16193 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16194 | ||
16195 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16196 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16197 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16199 | which seems to be undefined. Please make sure it is defined." >&5 | |
16200 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16201 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16202 | ||
16203 | rm -f "$tmp/stdin" | |
13b2be9c | 16204 | case $ac_file in |
81ecdfbb RW |
16205 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16206 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16207 | esac \ | |
16208 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16209 | ;; | |
16210 | :H) | |
16211 | # | |
16212 | # CONFIG_HEADER | |
16213 | # | |
13b2be9c | 16214 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
16215 | { |
16216 | $as_echo "/* $configure_input */" \ | |
16217 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16218 | } >"$tmp/config.h" \ | |
16219 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16220 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
16222 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13b2be9c | 16223 | else |
81ecdfbb RW |
16224 | rm -f "$ac_file" |
16225 | mv "$tmp/config.h" "$ac_file" \ | |
16226 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9b2b7d69 | 16227 | fi |
13b2be9c | 16228 | else |
81ecdfbb RW |
16229 | $as_echo "/* $configure_input */" \ |
16230 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16231 | || as_fn_error "could not create -" "$LINENO" 5 | |
9b2b7d69 | 16232 | fi |
81ecdfbb RW |
16233 | # Compute "$ac_file"'s index in $config_headers. |
16234 | _am_arg="$ac_file" | |
13b2be9c DJ |
16235 | _am_stamp_count=1 |
16236 | for _am_header in $config_headers :; do | |
16237 | case $_am_header in | |
81ecdfbb | 16238 | $_am_arg | $_am_arg:* ) |
13b2be9c DJ |
16239 | break ;; |
16240 | * ) | |
16241 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16242 | esac | |
16243 | done | |
81ecdfbb RW |
16244 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16245 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16246 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16247 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16248 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16249 | $as_echo X"$_am_arg" | | |
16250 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16251 | s//\1/ | |
16252 | q | |
16253 | } | |
16254 | /^X\(\/\/\)[^/].*/{ | |
16255 | s//\1/ | |
16256 | q | |
16257 | } | |
16258 | /^X\(\/\/\)$/{ | |
16259 | s//\1/ | |
16260 | q | |
16261 | } | |
16262 | /^X\(\/\).*/{ | |
16263 | s//\1/ | |
16264 | q | |
16265 | } | |
16266 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16267 | ;; | |
ab509236 | 16268 | |
81ecdfbb RW |
16269 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16270 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16271 | ;; | |
16272 | esac | |
13b2be9c DJ |
16273 | |
16274 | ||
81ecdfbb RW |
16275 | case $ac_file$ac_mode in |
16276 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
16277 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
16278 | # are listed without --file. Let's play safe and only enable the eval | |
16279 | # if we detect the quoting. | |
16280 | case $CONFIG_FILES in | |
16281 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16282 | *) set x $CONFIG_FILES ;; | |
16283 | esac | |
16284 | shift | |
16285 | for mf | |
16286 | do | |
16287 | # Strip MF so we end up with the name of the file. | |
16288 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16289 | # Check whether this is an Automake generated Makefile or not. | |
16290 | # We used to match only the files named `Makefile.in', but | |
16291 | # some people rename them; so instead we look at the file content. | |
16292 | # Grep'ing the first line is not enough: some people post-process | |
16293 | # each Makefile.in and add a new line on top of each file to say so. | |
16294 | # Grep'ing the whole file is not good either: AIX grep has a line | |
16295 | # limit of 2048, but all sed's we know have understand at least 4000. | |
16296 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
16297 | dirpart=`$as_dirname -- "$mf" || | |
13b2be9c | 16298 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
16299 | X"$mf" : 'X\(//\)[^/]' \| \ |
16300 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16301 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
16302 | $as_echo X"$mf" | | |
16303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16304 | s//\1/ | |
16305 | q | |
16306 | } | |
16307 | /^X\(\/\/\)[^/].*/{ | |
16308 | s//\1/ | |
16309 | q | |
16310 | } | |
16311 | /^X\(\/\/\)$/{ | |
16312 | s//\1/ | |
16313 | q | |
16314 | } | |
16315 | /^X\(\/\).*/{ | |
16316 | s//\1/ | |
16317 | q | |
16318 | } | |
16319 | s/.*/./; q'` | |
16320 | else | |
16321 | continue | |
16322 | fi | |
16323 | # Extract the definition of DEPDIR, am__include, and am__quote | |
16324 | # from the Makefile without running `make'. | |
16325 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
16326 | test -z "$DEPDIR" && continue | |
16327 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
16328 | test -z "am__include" && continue | |
16329 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
16330 | # When using ansi2knr, U may be empty or an underscore; expand it | |
16331 | U=`sed -n 's/^U = //p' < "$mf"` | |
16332 | # Find all dependency output files, they are included files with | |
16333 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16334 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16335 | # expansion. | |
16336 | for file in `sed -n " | |
16337 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
16338 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
16339 | # Make sure the directory exists. | |
16340 | test -f "$dirpart/$file" && continue | |
16341 | fdir=`$as_dirname -- "$file" || | |
13b2be9c | 16342 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
16343 | X"$file" : 'X\(//\)[^/]' \| \ |
16344 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16345 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
16346 | $as_echo X"$file" | | |
16347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16348 | s//\1/ | |
16349 | q | |
16350 | } | |
16351 | /^X\(\/\/\)[^/].*/{ | |
16352 | s//\1/ | |
16353 | q | |
16354 | } | |
16355 | /^X\(\/\/\)$/{ | |
16356 | s//\1/ | |
16357 | q | |
16358 | } | |
16359 | /^X\(\/\).*/{ | |
16360 | s//\1/ | |
16361 | q | |
16362 | } | |
16363 | s/.*/./; q'` | |
16364 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
16365 | # echo "creating $dirpart/$file" | |
16366 | echo '# dummy' > "$dirpart/$file" | |
13b2be9c | 16367 | done |
13b2be9c | 16368 | done |
81ecdfbb | 16369 | } |
d7040cdb | 16370 | ;; |
81ecdfbb | 16371 | "libtool":C) |
d7040cdb SE |
16372 | |
16373 | # See if we are running on zsh, and set the options which allow our | |
16374 | # commands through without removal of \ escapes. | |
16375 | if test -n "${ZSH_VERSION+set}" ; then | |
16376 | setopt NO_GLOB_SUBST | |
16377 | fi | |
16378 | ||
16379 | cfgfile="${ofile}T" | |
16380 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16381 | $RM "$cfgfile" | |
16382 | ||
16383 | cat <<_LT_EOF >> "$cfgfile" | |
16384 | #! $SHELL | |
16385 | ||
16386 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 16387 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
16388 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16389 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16390 | # | |
718a6fd8 | 16391 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
f2c621e4 | 16392 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 16393 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 16394 | # |
718a6fd8 | 16395 | # This file is part of GNU Libtool. |
d7040cdb | 16396 | # |
718a6fd8 SE |
16397 | # GNU Libtool is free software; you can redistribute it and/or |
16398 | # modify it under the terms of the GNU General Public License as | |
16399 | # published by the Free Software Foundation; either version 2 of | |
16400 | # the License, or (at your option) any later version. | |
d7040cdb | 16401 | # |
718a6fd8 SE |
16402 | # As a special exception to the GNU General Public License, |
16403 | # if you distribute this file as part of a program or library that | |
16404 | # is built using GNU Libtool, you may include this file under the | |
16405 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 16406 | # |
718a6fd8 SE |
16407 | # GNU Libtool is distributed in the hope that it will be useful, |
16408 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16409 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16410 | # GNU General Public License for more details. | |
d7040cdb | 16411 | # |
718a6fd8 SE |
16412 | # You should have received a copy of the GNU General Public License |
16413 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16414 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16415 | # obtained by writing to the Free Software Foundation, Inc., | |
16416 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
16417 | |
16418 | ||
16419 | # The names of the tagged configurations supported by this script. | |
16420 | available_tags="" | |
16421 | ||
16422 | # ### BEGIN LIBTOOL CONFIG | |
16423 | ||
16424 | # Which release of libtool.m4 was used? | |
16425 | macro_version=$macro_version | |
16426 | macro_revision=$macro_revision | |
16427 | ||
16428 | # Whether or not to build shared libraries. | |
16429 | build_libtool_libs=$enable_shared | |
16430 | ||
16431 | # Whether or not to build static libraries. | |
16432 | build_old_libs=$enable_static | |
16433 | ||
16434 | # What type of objects to build. | |
16435 | pic_mode=$pic_mode | |
16436 | ||
16437 | # Whether or not to optimize for fast installation. | |
16438 | fast_install=$enable_fast_install | |
16439 | ||
3725885a RW |
16440 | # Shell to use when invoking shell scripts. |
16441 | SHELL=$lt_SHELL | |
16442 | ||
16443 | # An echo program that protects backslashes. | |
16444 | ECHO=$lt_ECHO | |
16445 | ||
d7040cdb SE |
16446 | # The host system. |
16447 | host_alias=$host_alias | |
16448 | host=$host | |
16449 | host_os=$host_os | |
16450 | ||
16451 | # The build system. | |
16452 | build_alias=$build_alias | |
16453 | build=$build | |
16454 | build_os=$build_os | |
16455 | ||
16456 | # A sed program that does not truncate output. | |
16457 | SED=$lt_SED | |
16458 | ||
16459 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16460 | Xsed="\$SED -e 1s/^X//" | |
16461 | ||
16462 | # A grep program that handles long lines. | |
16463 | GREP=$lt_GREP | |
16464 | ||
16465 | # An ERE matcher. | |
16466 | EGREP=$lt_EGREP | |
16467 | ||
16468 | # A literal string matcher. | |
16469 | FGREP=$lt_FGREP | |
16470 | ||
16471 | # A BSD- or MS-compatible name lister. | |
16472 | NM=$lt_NM | |
16473 | ||
16474 | # Whether we need soft or hard links. | |
16475 | LN_S=$lt_LN_S | |
16476 | ||
16477 | # What is the maximum length of a command? | |
16478 | max_cmd_len=$max_cmd_len | |
16479 | ||
16480 | # Object file suffix (normally "o"). | |
16481 | objext=$ac_objext | |
16482 | ||
16483 | # Executable file suffix (normally ""). | |
16484 | exeext=$exeext | |
16485 | ||
16486 | # whether the shell understands "unset". | |
16487 | lt_unset=$lt_unset | |
16488 | ||
16489 | # turn spaces into newlines. | |
16490 | SP2NL=$lt_lt_SP2NL | |
16491 | ||
16492 | # turn newlines into spaces. | |
16493 | NL2SP=$lt_lt_NL2SP | |
16494 | ||
718a6fd8 SE |
16495 | # An object symbol dumper. |
16496 | OBJDUMP=$lt_OBJDUMP | |
16497 | ||
d7040cdb SE |
16498 | # Method to check whether dependent libraries are shared objects. |
16499 | deplibs_check_method=$lt_deplibs_check_method | |
16500 | ||
f2c621e4 | 16501 | # Command to use when deplibs_check_method == "file_magic". |
d7040cdb SE |
16502 | file_magic_cmd=$lt_file_magic_cmd |
16503 | ||
16504 | # The archiver. | |
16505 | AR=$lt_AR | |
16506 | AR_FLAGS=$lt_AR_FLAGS | |
16507 | ||
16508 | # A symbol stripping program. | |
16509 | STRIP=$lt_STRIP | |
16510 | ||
16511 | # Commands used to install an old-style archive. | |
16512 | RANLIB=$lt_RANLIB | |
16513 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16514 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16515 | ||
3725885a RW |
16516 | # Whether to use a lock for old archive extraction. |
16517 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16518 | ||
d7040cdb SE |
16519 | # A C compiler. |
16520 | LTCC=$lt_CC | |
16521 | ||
16522 | # LTCC compiler flags. | |
16523 | LTCFLAGS=$lt_CFLAGS | |
16524 | ||
16525 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16526 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16527 | ||
16528 | # Transform the output of nm in a proper C declaration. | |
16529 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16530 | ||
16531 | # Transform the output of nm in a C name address pair. | |
16532 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16533 | ||
718a6fd8 SE |
16534 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16535 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16536 | ||
d7040cdb SE |
16537 | # The name of the directory that contains temporary libtool files. |
16538 | objdir=$objdir | |
16539 | ||
d7040cdb SE |
16540 | # Used to examine libraries when file_magic_cmd begins with "file". |
16541 | MAGIC_CMD=$MAGIC_CMD | |
16542 | ||
16543 | # Must we lock files when doing compilation? | |
16544 | need_locks=$lt_need_locks | |
16545 | ||
718a6fd8 SE |
16546 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16547 | DSYMUTIL=$lt_DSYMUTIL | |
16548 | ||
16549 | # Tool to change global to local symbols on Mac OS X. | |
16550 | NMEDIT=$lt_NMEDIT | |
16551 | ||
16552 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16553 | LIPO=$lt_LIPO | |
16554 | ||
16555 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16556 | OTOOL=$lt_OTOOL | |
16557 | ||
16558 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16559 | OTOOL64=$lt_OTOOL64 | |
16560 | ||
d7040cdb SE |
16561 | # Old archive suffix (normally "a"). |
16562 | libext=$libext | |
16563 | ||
16564 | # Shared library suffix (normally ".so"). | |
16565 | shrext_cmds=$lt_shrext_cmds | |
16566 | ||
16567 | # The commands to extract the exported symbol list from a shared archive. | |
16568 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16569 | ||
16570 | # Variables whose values should be saved in libtool wrapper scripts and | |
16571 | # restored at link time. | |
16572 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16573 | ||
16574 | # Do we need the "lib" prefix for modules? | |
16575 | need_lib_prefix=$need_lib_prefix | |
16576 | ||
16577 | # Do we need a version for libraries? | |
16578 | need_version=$need_version | |
16579 | ||
16580 | # Library versioning type. | |
16581 | version_type=$version_type | |
16582 | ||
16583 | # Shared library runtime path variable. | |
16584 | runpath_var=$runpath_var | |
16585 | ||
16586 | # Shared library path variable. | |
16587 | shlibpath_var=$shlibpath_var | |
16588 | ||
16589 | # Is shlibpath searched before the hard-coded library search path? | |
16590 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16591 | ||
16592 | # Format of library name prefix. | |
16593 | libname_spec=$lt_libname_spec | |
16594 | ||
16595 | # List of archive names. First name is the real one, the rest are links. | |
16596 | # The last name is the one that the linker finds with -lNAME | |
16597 | library_names_spec=$lt_library_names_spec | |
16598 | ||
16599 | # The coded name of the library, if different from the real name. | |
16600 | soname_spec=$lt_soname_spec | |
16601 | ||
3725885a RW |
16602 | # Permission mode override for installation of shared libraries. |
16603 | install_override_mode=$lt_install_override_mode | |
16604 | ||
d7040cdb SE |
16605 | # Command to use after installation of a shared archive. |
16606 | postinstall_cmds=$lt_postinstall_cmds | |
16607 | ||
16608 | # Command to use after uninstallation of a shared archive. | |
16609 | postuninstall_cmds=$lt_postuninstall_cmds | |
16610 | ||
16611 | # Commands used to finish a libtool library installation in a directory. | |
16612 | finish_cmds=$lt_finish_cmds | |
16613 | ||
16614 | # As "finish_cmds", except a single script fragment to be evaled but | |
16615 | # not shown. | |
16616 | finish_eval=$lt_finish_eval | |
16617 | ||
16618 | # Whether we should hardcode library paths into libraries. | |
16619 | hardcode_into_libs=$hardcode_into_libs | |
16620 | ||
16621 | # Compile-time system search path for libraries. | |
16622 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16623 | ||
16624 | # Run-time system search path for libraries. | |
16625 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16626 | ||
16627 | # Whether dlopen is supported. | |
16628 | dlopen_support=$enable_dlopen | |
16629 | ||
16630 | # Whether dlopen of programs is supported. | |
16631 | dlopen_self=$enable_dlopen_self | |
16632 | ||
16633 | # Whether dlopen of statically linked programs is supported. | |
16634 | dlopen_self_static=$enable_dlopen_self_static | |
16635 | ||
16636 | # Commands to strip libraries. | |
16637 | old_striplib=$lt_old_striplib | |
16638 | striplib=$lt_striplib | |
16639 | ||
16640 | ||
16641 | # The linker used to build libraries. | |
16642 | LD=$lt_LD | |
16643 | ||
3725885a RW |
16644 | # How to create reloadable object files. |
16645 | reload_flag=$lt_reload_flag | |
16646 | reload_cmds=$lt_reload_cmds | |
16647 | ||
d7040cdb SE |
16648 | # Commands used to build an old-style archive. |
16649 | old_archive_cmds=$lt_old_archive_cmds | |
16650 | ||
16651 | # A language specific compiler. | |
16652 | CC=$lt_compiler | |
16653 | ||
16654 | # Is the compiler the GNU compiler? | |
16655 | with_gcc=$GCC | |
16656 | ||
16657 | # Compiler flag to turn off builtin functions. | |
16658 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16659 | ||
df7b86aa NC |
16660 | # How to pass a linker flag through the compiler. |
16661 | wl=$lt_lt_prog_compiler_wl | |
16662 | ||
f2c621e4 AS |
16663 | # Additional compiler flags for building library objects. |
16664 | pic_flag=$lt_lt_prog_compiler_pic | |
16665 | ||
d7040cdb SE |
16666 | # Compiler flag to prevent dynamic linking. |
16667 | link_static_flag=$lt_lt_prog_compiler_static | |
16668 | ||
16669 | # Does compiler simultaneously support -c and -o options? | |
16670 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16671 | ||
16672 | # Whether or not to add -lc for building shared libraries. | |
16673 | build_libtool_need_lc=$archive_cmds_need_lc | |
16674 | ||
16675 | # Whether or not to disallow shared libs when runtime libs are static. | |
16676 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16677 | ||
16678 | # Compiler flag to allow reflexive dlopens. | |
16679 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16680 | ||
16681 | # Compiler flag to generate shared objects directly from archives. | |
16682 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16683 | ||
16684 | # Whether the compiler copes with passing no objects directly. | |
16685 | compiler_needs_object=$lt_compiler_needs_object | |
16686 | ||
16687 | # Create an old-style archive from a shared archive. | |
16688 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16689 | ||
16690 | # Create a temporary old-style archive to link instead of a shared archive. | |
16691 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16692 | ||
16693 | # Commands used to build a shared archive. | |
16694 | archive_cmds=$lt_archive_cmds | |
16695 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16696 | ||
16697 | # Commands used to build a loadable module if different from building | |
16698 | # a shared archive. | |
16699 | module_cmds=$lt_module_cmds | |
16700 | module_expsym_cmds=$lt_module_expsym_cmds | |
16701 | ||
16702 | # Whether we are building with GNU ld or not. | |
16703 | with_gnu_ld=$lt_with_gnu_ld | |
16704 | ||
16705 | # Flag that allows shared libraries with undefined symbols to be built. | |
16706 | allow_undefined_flag=$lt_allow_undefined_flag | |
16707 | ||
16708 | # Flag that enforces no undefined symbols. | |
16709 | no_undefined_flag=$lt_no_undefined_flag | |
16710 | ||
16711 | # Flag to hardcode \$libdir into a binary during linking. | |
16712 | # This must work even if \$libdir does not exist | |
16713 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16714 | ||
16715 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16716 | # during linking. This must work even if \$libdir does not exist. | |
16717 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16718 | ||
16719 | # Whether we need a single "-rpath" flag with a separated argument. | |
16720 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16721 | ||
16722 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16723 | # DIR into the resulting binary. | |
16724 | hardcode_direct=$hardcode_direct | |
16725 | ||
16726 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16727 | # DIR into the resulting binary and the resulting library dependency is | |
16728 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16729 | # library is relocated. | |
16730 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16731 | ||
16732 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16733 | # into the resulting binary. | |
16734 | hardcode_minus_L=$hardcode_minus_L | |
16735 | ||
16736 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16737 | # into the resulting binary. | |
16738 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16739 | ||
16740 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16741 | # into the library and all subsequent libraries and executables linked | |
16742 | # against it. | |
16743 | hardcode_automatic=$hardcode_automatic | |
16744 | ||
16745 | # Set to yes if linker adds runtime paths of dependent libraries | |
16746 | # to runtime path list. | |
16747 | inherit_rpath=$inherit_rpath | |
16748 | ||
16749 | # Whether libtool must link a program against all its dependency libraries. | |
16750 | link_all_deplibs=$link_all_deplibs | |
16751 | ||
f2c621e4 AS |
16752 | # Fix the shell variable \$srcfile for the compiler. |
16753 | fix_srcfile_path=$lt_fix_srcfile_path | |
16754 | ||
d7040cdb SE |
16755 | # Set to "yes" if exported symbols are required. |
16756 | always_export_symbols=$always_export_symbols | |
16757 | ||
16758 | # The commands to list exported symbols. | |
16759 | export_symbols_cmds=$lt_export_symbols_cmds | |
16760 | ||
16761 | # Symbols that should not be listed in the preloaded symbols. | |
16762 | exclude_expsyms=$lt_exclude_expsyms | |
16763 | ||
16764 | # Symbols that must always be exported. | |
16765 | include_expsyms=$lt_include_expsyms | |
16766 | ||
16767 | # Commands necessary for linking programs (against libraries) with templates. | |
16768 | prelink_cmds=$lt_prelink_cmds | |
16769 | ||
16770 | # Specify filename containing input files. | |
16771 | file_list_spec=$lt_file_list_spec | |
16772 | ||
16773 | # How to hardcode a shared library path into an executable. | |
16774 | hardcode_action=$hardcode_action | |
16775 | ||
16776 | # ### END LIBTOOL CONFIG | |
16777 | ||
16778 | _LT_EOF | |
16779 | ||
16780 | case $host_os in | |
16781 | aix3*) | |
16782 | cat <<\_LT_EOF >> "$cfgfile" | |
16783 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16784 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16785 | # vanish in a puff of smoke. | |
16786 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16787 | COLLECT_NAMES= | |
16788 | export COLLECT_NAMES | |
16789 | fi | |
16790 | _LT_EOF | |
16791 | ;; | |
16792 | esac | |
16793 | ||
16794 | ||
16795 | ltmain="$ac_aux_dir/ltmain.sh" | |
16796 | ||
16797 | ||
16798 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16799 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16800 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16801 | # is reportedly fixed, but why not run on old versions too? | |
f2c621e4 AS |
16802 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
16803 | || (rm -f "$cfgfile"; exit 1) | |
16804 | ||
16805 | case $xsi_shell in | |
16806 | yes) | |
16807 | cat << \_LT_EOF >> "$cfgfile" | |
16808 | ||
16809 | # func_dirname file append nondir_replacement | |
16810 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16811 | # otherwise set result to NONDIR_REPLACEMENT. | |
16812 | func_dirname () | |
16813 | { | |
16814 | case ${1} in | |
16815 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16816 | * ) func_dirname_result="${3}" ;; | |
16817 | esac | |
16818 | } | |
16819 | ||
16820 | # func_basename file | |
16821 | func_basename () | |
16822 | { | |
16823 | func_basename_result="${1##*/}" | |
16824 | } | |
16825 | ||
16826 | # func_dirname_and_basename file append nondir_replacement | |
16827 | # perform func_basename and func_dirname in a single function | |
16828 | # call: | |
16829 | # dirname: Compute the dirname of FILE. If nonempty, | |
16830 | # add APPEND to the result, otherwise set result | |
16831 | # to NONDIR_REPLACEMENT. | |
16832 | # value returned in "$func_dirname_result" | |
16833 | # basename: Compute filename of FILE. | |
16834 | # value retuned in "$func_basename_result" | |
16835 | # Implementation must be kept synchronized with func_dirname | |
16836 | # and func_basename. For efficiency, we do not delegate to | |
16837 | # those functions but instead duplicate the functionality here. | |
16838 | func_dirname_and_basename () | |
16839 | { | |
16840 | case ${1} in | |
16841 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16842 | * ) func_dirname_result="${3}" ;; | |
16843 | esac | |
16844 | func_basename_result="${1##*/}" | |
16845 | } | |
16846 | ||
16847 | # func_stripname prefix suffix name | |
16848 | # strip PREFIX and SUFFIX off of NAME. | |
16849 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16850 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16851 | # dot (in which case that matches only a dot). | |
16852 | func_stripname () | |
16853 | { | |
16854 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16855 | # positional parameters, so assign one to ordinary parameter first. | |
16856 | func_stripname_result=${3} | |
16857 | func_stripname_result=${func_stripname_result#"${1}"} | |
16858 | func_stripname_result=${func_stripname_result%"${2}"} | |
16859 | } | |
16860 | ||
16861 | # func_opt_split | |
16862 | func_opt_split () | |
16863 | { | |
16864 | func_opt_split_opt=${1%%=*} | |
16865 | func_opt_split_arg=${1#*=} | |
16866 | } | |
16867 | ||
16868 | # func_lo2o object | |
16869 | func_lo2o () | |
16870 | { | |
16871 | case ${1} in | |
16872 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16873 | *) func_lo2o_result=${1} ;; | |
16874 | esac | |
16875 | } | |
16876 | ||
16877 | # func_xform libobj-or-source | |
16878 | func_xform () | |
16879 | { | |
16880 | func_xform_result=${1%.*}.lo | |
16881 | } | |
16882 | ||
16883 | # func_arith arithmetic-term... | |
16884 | func_arith () | |
16885 | { | |
16886 | func_arith_result=$(( $* )) | |
16887 | } | |
16888 | ||
16889 | # func_len string | |
16890 | # STRING may not start with a hyphen. | |
16891 | func_len () | |
16892 | { | |
16893 | func_len_result=${#1} | |
16894 | } | |
16895 | ||
16896 | _LT_EOF | |
16897 | ;; | |
16898 | *) # Bourne compatible functions. | |
16899 | cat << \_LT_EOF >> "$cfgfile" | |
16900 | ||
16901 | # func_dirname file append nondir_replacement | |
16902 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16903 | # otherwise set result to NONDIR_REPLACEMENT. | |
16904 | func_dirname () | |
16905 | { | |
16906 | # Extract subdirectory from the argument. | |
16907 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
16908 | if test "X$func_dirname_result" = "X${1}"; then | |
16909 | func_dirname_result="${3}" | |
16910 | else | |
16911 | func_dirname_result="$func_dirname_result${2}" | |
16912 | fi | |
16913 | } | |
16914 | ||
16915 | # func_basename file | |
16916 | func_basename () | |
16917 | { | |
16918 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
16919 | } | |
16920 | ||
16921 | ||
16922 | # func_stripname prefix suffix name | |
16923 | # strip PREFIX and SUFFIX off of NAME. | |
16924 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16925 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16926 | # dot (in which case that matches only a dot). | |
16927 | # func_strip_suffix prefix name | |
16928 | func_stripname () | |
16929 | { | |
16930 | case ${2} in | |
16931 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
16932 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
16933 | esac | |
16934 | } | |
16935 | ||
16936 | # sed scripts: | |
16937 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16938 | my_sed_long_arg='1s/^-[^=]*=//' | |
16939 | ||
16940 | # func_opt_split | |
16941 | func_opt_split () | |
16942 | { | |
16943 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
16944 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
16945 | } | |
16946 | ||
16947 | # func_lo2o object | |
16948 | func_lo2o () | |
16949 | { | |
16950 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
16951 | } | |
16952 | ||
16953 | # func_xform libobj-or-source | |
16954 | func_xform () | |
16955 | { | |
16956 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
16957 | } | |
16958 | ||
16959 | # func_arith arithmetic-term... | |
16960 | func_arith () | |
16961 | { | |
16962 | func_arith_result=`expr "$@"` | |
16963 | } | |
16964 | ||
16965 | # func_len string | |
16966 | # STRING may not start with a hyphen. | |
16967 | func_len () | |
16968 | { | |
16969 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16970 | } | |
16971 | ||
16972 | _LT_EOF | |
16973 | esac | |
16974 | ||
16975 | case $lt_shell_append in | |
16976 | yes) | |
16977 | cat << \_LT_EOF >> "$cfgfile" | |
16978 | ||
16979 | # func_append var value | |
16980 | # Append VALUE to the end of shell variable VAR. | |
16981 | func_append () | |
16982 | { | |
16983 | eval "$1+=\$2" | |
16984 | } | |
16985 | _LT_EOF | |
16986 | ;; | |
16987 | *) | |
16988 | cat << \_LT_EOF >> "$cfgfile" | |
16989 | ||
16990 | # func_append var value | |
16991 | # Append VALUE to the end of shell variable VAR. | |
16992 | func_append () | |
16993 | { | |
16994 | eval "$1=\$$1\$2" | |
16995 | } | |
16996 | ||
16997 | _LT_EOF | |
16998 | ;; | |
16999 | esac | |
17000 | ||
17001 | ||
17002 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
17003 | || (rm -f "$cfgfile"; exit 1) | |
17004 | ||
17005 | mv -f "$cfgfile" "$ofile" || | |
d7040cdb SE |
17006 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17007 | chmod +x "$ofile" | |
17008 | ||
13b2be9c | 17009 | ;; |
81ecdfbb | 17010 | "default-1":C) |
20e95c23 DJ |
17011 | for ac_file in $CONFIG_FILES; do |
17012 | # Support "outfile[:infile[:infile...]]" | |
17013 | case "$ac_file" in | |
17014 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17015 | esac | |
17016 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17017 | case "$ac_file" in */Makefile.in) | |
17018 | # Adjust a relative srcdir. | |
17019 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 17020 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
17021 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
17022 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17023 | # In autoconf-2.50 it is called $srcdir. | |
17024 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17025 | case "$ac_given_srcdir" in | |
17026 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17027 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17028 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17029 | esac | |
17030 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17031 | rm -f "$ac_dir/POTFILES" | |
17032 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17033 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17034 | POMAKEFILEDEPS="POTFILES.in" | |
17035 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17036 | # on $ac_dir but don't depend on user-specified configuration | |
17037 | # parameters. | |
17038 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17039 | # The LINGUAS file contains the set of available languages. | |
17040 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 17041 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
20e95c23 DJ |
17042 | fi |
17043 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17044 | # Hide the ALL_LINGUAS assigment from automake. | |
17045 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17046 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17047 | else | |
37a42ee9 | 17048 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
17049 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
17050 | fi | |
17051 | case "$ac_given_srcdir" in | |
17052 | .) srcdirpre= ;; | |
17053 | *) srcdirpre='$(srcdir)/' ;; | |
17054 | esac | |
17055 | POFILES= | |
17056 | GMOFILES= | |
17057 | UPDATEPOFILES= | |
17058 | DUMMYPOFILES= | |
17059 | for lang in $ALL_LINGUAS; do | |
17060 | POFILES="$POFILES $srcdirpre$lang.po" | |
17061 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17062 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17063 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17064 | done | |
17065 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17066 | # environment variable. | |
17067 | INST_LINGUAS= | |
17068 | if test -n "$ALL_LINGUAS"; then | |
17069 | for presentlang in $ALL_LINGUAS; do | |
17070 | useit=no | |
17071 | if test "%UNSET%" != "$LINGUAS"; then | |
17072 | desiredlanguages="$LINGUAS" | |
17073 | else | |
17074 | desiredlanguages="$ALL_LINGUAS" | |
17075 | fi | |
17076 | for desiredlang in $desiredlanguages; do | |
17077 | # Use the presentlang catalog if desiredlang is | |
17078 | # a. equal to presentlang, or | |
17079 | # b. a variant of presentlang (because in this case, | |
17080 | # presentlang can be used as a fallback for messages | |
17081 | # which are not translated in the desiredlang catalog). | |
17082 | case "$desiredlang" in | |
17083 | "$presentlang"*) useit=yes;; | |
17084 | esac | |
17085 | done | |
17086 | if test $useit = yes; then | |
17087 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17088 | fi | |
17089 | done | |
17090 | fi | |
17091 | CATALOGS= | |
17092 | if test -n "$INST_LINGUAS"; then | |
17093 | for lang in $INST_LINGUAS; do | |
17094 | CATALOGS="$CATALOGS $lang.gmo" | |
17095 | done | |
17096 | fi | |
17097 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17098 | 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" | |
17099 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17100 | if test -f "$f"; then | |
17101 | case "$f" in | |
17102 | *.orig | *.bak | *~) ;; | |
17103 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17104 | esac | |
17105 | fi | |
17106 | done | |
17107 | fi | |
17108 | ;; | |
17109 | esac | |
17110 | done ;; | |
81ecdfbb | 17111 | "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
252b5132 RH |
17112 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
17113 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
17114 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
17115 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
17116 | if test "x$cgen_cpu_prefix" != x ; then | |
17117 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 17118 | fi ;; |
81ecdfbb | 17119 | |
13b2be9c | 17120 | esac |
81ecdfbb | 17121 | done # for ac_tag |
13b2be9c | 17122 | |
13b2be9c | 17123 | |
81ecdfbb | 17124 | as_fn_exit 0 |
13b2be9c | 17125 | _ACEOF |
13b2be9c DJ |
17126 | ac_clean_files=$ac_clean_files_save |
17127 | ||
81ecdfbb RW |
17128 | test $ac_write_fail = 0 || |
17129 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
17130 | ||
13b2be9c DJ |
17131 | |
17132 | # configure is writing to config.log, and then calls config.status. | |
17133 | # config.status does its own redirection, appending to config.log. | |
17134 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17135 | # by configure, so config.status won't be able to write to it; its | |
17136 | # output is simply discarded. So we exec the FD to /dev/null, | |
17137 | # effectively closing config.log, so it can be properly (re)opened and | |
17138 | # appended to by config.status. When coming back to configure, we | |
17139 | # need to make the FD available again. | |
17140 | if test "$no_create" != yes; then | |
17141 | ac_cs_success=: | |
17142 | ac_config_status_args= | |
17143 | test "$silent" = yes && | |
17144 | ac_config_status_args="$ac_config_status_args --quiet" | |
17145 | exec 5>/dev/null | |
17146 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17147 | exec 5>>config.log | |
17148 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17149 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
17150 | $ac_cs_success || as_fn_exit $? |
17151 | fi | |
17152 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17154 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13b2be9c | 17155 | fi |
252b5132 | 17156 |