]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
346d80ef | 3 | # Generated by GNU Autoconf 2.69 for gas 2.37.50. |
d0ac1c44 SM |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
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. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
13b2be9c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
199 | test \$(( 1 + 1 )) = 2 || exit 1 |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13b2be9c | 219 | do |
81ecdfbb RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
81ecdfbb RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
13b2be9c | 274 | else |
81ecdfbb RW |
275 | $as_echo "$0: Please tell [email protected] about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
13b2be9c | 279 | fi |
81ecdfbb RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
81ecdfbb RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
d0ac1c44 SM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
81ecdfbb RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 415 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
416 | as_fn_error () |
417 | { | |
d0ac1c44 SM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
13b2be9c | 426 | |
81ecdfbb RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
81ecdfbb | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
81ecdfbb RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
13b2be9c | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
13b2be9c | 464 | |
13b2be9c DJ |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
13b2be9c | 472 | |
81ecdfbb RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
13b2be9c | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
13b2be9c | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13b2be9c | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
13b2be9c | 492 | ' >$as_me.lineno && |
81ecdfbb RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
13b2be9c | 495 | |
d0ac1c44 SM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
13b2be9c DJ |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
13b2be9c DJ |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
81ecdfbb RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
13b2be9c DJ |
519 | esac |
520 | ||
81ecdfbb RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
13b2be9c | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
13b2be9c | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 530 | as_ln_s='ln -s' |
81ecdfbb RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 534 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
81ecdfbb RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
13b2be9c | 541 | fi |
13b2be9c | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
13b2be9c | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
13b2be9c DJ |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
13b2be9c | 550 | else |
ab509236 | 551 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
552 | as_mkdir_p=false |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
13b2be9c DJ |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
560 | |
561 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c | 563 | |
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
13b2be9c | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
13b2be9c DJ |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
13b2be9c DJ |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
13b2be9c | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
13b2be9c DJ |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
13b2be9c DJ |
586 | |
587 | # Identity of this package. | |
2e98a7bd AM |
588 | PACKAGE_NAME='gas' |
589 | PACKAGE_TARNAME='gas' | |
346d80ef NC |
590 | PACKAGE_VERSION='2.37.50' |
591 | PACKAGE_STRING='gas 2.37.50' | |
2e98a7bd AM |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
13b2be9c DJ |
594 | |
595 | ac_unique_file="as.h" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
13b2be9c DJ |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
13b2be9c DJ |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
13b2be9c DJ |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
13b2be9c DJ |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
13b2be9c DJ |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
13b2be9c DJ |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
13b2be9c | 623 | # include <inttypes.h> |
13b2be9c | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
13b2be9c DJ |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
81ecdfbb RW |
632 | ac_subst_vars='am__EXEEXT_FALSE |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
0138187e | 636 | zlibinc |
543b7933 | 637 | zlibdir |
81ecdfbb | 638 | LIBM |
81ecdfbb RW |
639 | GENINSRC_NEVER_FALSE |
640 | GENINSRC_NEVER_TRUE | |
641 | MAINT | |
642 | MAINTAINER_MODE_FALSE | |
643 | MAINTAINER_MODE_TRUE | |
644 | MSGMERGE | |
645 | MSGFMT | |
646 | MKINSTALLDIRS | |
647 | CATOBJEXT | |
648 | GENCAT | |
649 | INSTOBJEXT | |
650 | DATADIRNAME | |
651 | CATALOGS | |
652 | POSUB | |
653 | GMSGFMT | |
654 | XGETTEXT | |
655 | INCINTL | |
656 | LIBINTL_DEP | |
657 | LIBINTL | |
658 | USE_NLS | |
659 | LEXLIB | |
660 | LEX_OUTPUT_ROOT | |
661 | LEX | |
662 | YFLAGS | |
663 | YACC | |
664 | OPCODES_LIB | |
665 | atof | |
666 | install_tooldir | |
667 | te_file | |
668 | obj_format | |
669 | target_cpu_type | |
670 | extra_objects | |
671 | cgen_cpu_prefix | |
672 | GDBINIT | |
6757cf57 | 673 | WARN_WRITE_STRINGS |
81ecdfbb | 674 | NO_WERROR |
c5da1932 | 675 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb | 676 | WARN_CFLAGS |
2d7f2507 | 677 | do_compare |
c8693053 | 678 | LARGEFILE_CPPFLAGS |
81ecdfbb RW |
679 | OTOOL64 |
680 | OTOOL | |
681 | LIPO | |
682 | NMEDIT | |
683 | DSYMUTIL | |
81ecdfbb RW |
684 | RANLIB |
685 | AR | |
686 | OBJDUMP | |
687 | LN_S | |
688 | NM | |
689 | ac_ct_DUMPBIN | |
690 | DUMPBIN | |
691 | LD | |
692 | FGREP | |
693 | SED | |
694 | LIBTOOL | |
695 | EGREP | |
696 | GREP | |
697 | CPP | |
698 | am__fastdepCC_FALSE | |
699 | am__fastdepCC_TRUE | |
700 | CCDEPMODE | |
6eb7d830 | 701 | am__nodep |
81ecdfbb RW |
702 | AMDEPBACKSLASH |
703 | AMDEP_FALSE | |
704 | AMDEP_TRUE | |
705 | am__quote | |
706 | am__include | |
707 | DEPDIR | |
23d61380 AM |
708 | OBJEXT |
709 | EXEEXT | |
710 | ac_ct_CC | |
711 | CPPFLAGS | |
712 | LDFLAGS | |
713 | CFLAGS | |
714 | CC | |
715 | AM_BACKSLASH | |
716 | AM_DEFAULT_VERBOSITY | |
717 | AM_DEFAULT_V | |
718 | AM_V | |
81ecdfbb RW |
719 | am__untar |
720 | am__tar | |
721 | AMTAR | |
722 | am__leading_dot | |
723 | SET_MAKE | |
724 | AWK | |
725 | mkdir_p | |
726 | MKDIR_P | |
727 | INSTALL_STRIP_PROGRAM | |
728 | STRIP | |
729 | install_sh | |
730 | MAKEINFO | |
731 | AUTOHEADER | |
732 | AUTOMAKE | |
733 | AUTOCONF | |
734 | ACLOCAL | |
735 | VERSION | |
736 | PACKAGE | |
737 | CYGPATH_W | |
738 | am__isrc | |
739 | INSTALL_DATA | |
740 | INSTALL_SCRIPT | |
741 | INSTALL_PROGRAM | |
81ecdfbb RW |
742 | target_os |
743 | target_vendor | |
744 | target_cpu | |
745 | target | |
746 | host_os | |
747 | host_vendor | |
748 | host_cpu | |
749 | host | |
750 | build_os | |
751 | build_vendor | |
752 | build_cpu | |
753 | build | |
754 | target_alias | |
755 | host_alias | |
756 | build_alias | |
757 | LIBS | |
758 | ECHO_T | |
759 | ECHO_N | |
760 | ECHO_C | |
761 | DEFS | |
762 | mandir | |
763 | localedir | |
764 | libdir | |
765 | psdir | |
766 | pdfdir | |
767 | dvidir | |
768 | htmldir | |
769 | infodir | |
770 | docdir | |
771 | oldincludedir | |
772 | includedir | |
773 | localstatedir | |
774 | sharedstatedir | |
775 | sysconfdir | |
776 | datadir | |
777 | datarootdir | |
778 | libexecdir | |
779 | sbindir | |
780 | bindir | |
781 | program_transform_name | |
782 | prefix | |
783 | exec_prefix | |
784 | PACKAGE_URL | |
785 | PACKAGE_BUGREPORT | |
786 | PACKAGE_STRING | |
787 | PACKAGE_VERSION | |
788 | PACKAGE_TARNAME | |
789 | PACKAGE_NAME | |
790 | PATH_SEPARATOR | |
791 | SHELL' | |
13b2be9c | 792 | ac_subst_files='' |
81ecdfbb RW |
793 | ac_user_opts=' |
794 | enable_option_checking | |
d0ac1c44 | 795 | enable_silent_rules |
23d61380 | 796 | enable_dependency_tracking |
81ecdfbb RW |
797 | enable_shared |
798 | enable_static | |
799 | with_pic | |
800 | enable_fast_install | |
801 | with_gnu_ld | |
802 | enable_libtool_lock | |
b879806f AM |
803 | enable_plugins |
804 | enable_largefile | |
81ecdfbb RW |
805 | enable_targets |
806 | enable_checking | |
6c3bc0f8 | 807 | enable_compressed_debug_sections |
0cb4071e | 808 | enable_x86_relax_relocations |
b8871f35 | 809 | enable_elf_stt_common |
0df8ad28 | 810 | enable_generate_build_notes |
6f2117ba | 811 | enable_mips_fix_loongson3_llsc |
b4a3a7b4 | 812 | enable_x86_used_note |
2dc8dd17 | 813 | enable_default_riscv_attribute |
81ecdfbb RW |
814 | enable_werror |
815 | enable_build_warnings | |
9004b6bd | 816 | with_cpu |
81ecdfbb RW |
817 | enable_nls |
818 | enable_maintainer_mode | |
0138187e | 819 | with_system_zlib |
81ecdfbb RW |
820 | ' |
821 | ac_precious_vars='build_alias | |
822 | host_alias | |
823 | target_alias | |
824 | CC | |
825 | CFLAGS | |
826 | LDFLAGS | |
827 | LIBS | |
828 | CPPFLAGS | |
829 | CPP | |
830 | YACC | |
831 | YFLAGS' | |
832 | ||
252b5132 RH |
833 | |
834 | # Initialize some variables set by options. | |
13b2be9c DJ |
835 | ac_init_help= |
836 | ac_init_version=false | |
81ecdfbb RW |
837 | ac_unrecognized_opts= |
838 | ac_unrecognized_sep= | |
252b5132 RH |
839 | # The variables have the same names as the options, with |
840 | # dashes changed to underlines. | |
13b2be9c | 841 | cache_file=/dev/null |
252b5132 | 842 | exec_prefix=NONE |
252b5132 | 843 | no_create= |
252b5132 RH |
844 | no_recursion= |
845 | prefix=NONE | |
846 | program_prefix=NONE | |
847 | program_suffix=NONE | |
848 | program_transform_name=s,x,x, | |
849 | silent= | |
850 | site= | |
851 | srcdir= | |
252b5132 RH |
852 | verbose= |
853 | x_includes=NONE | |
854 | x_libraries=NONE | |
13b2be9c DJ |
855 | |
856 | # Installation directory options. | |
857 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
858 | # and all the variables that are supposed to be based on exec_prefix | |
859 | # by default will actually change. | |
860 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 861 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
862 | bindir='${exec_prefix}/bin' |
863 | sbindir='${exec_prefix}/sbin' | |
864 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
865 | datarootdir='${prefix}/share' |
866 | datadir='${datarootdir}' | |
252b5132 RH |
867 | sysconfdir='${prefix}/etc' |
868 | sharedstatedir='${prefix}/com' | |
869 | localstatedir='${prefix}/var' | |
252b5132 RH |
870 | includedir='${prefix}/include' |
871 | oldincludedir='/usr/include' | |
2e98a7bd | 872 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
873 | infodir='${datarootdir}/info' |
874 | htmldir='${docdir}' | |
875 | dvidir='${docdir}' | |
876 | pdfdir='${docdir}' | |
877 | psdir='${docdir}' | |
878 | libdir='${exec_prefix}/lib' | |
879 | localedir='${datarootdir}/locale' | |
880 | mandir='${datarootdir}/man' | |
252b5132 | 881 | |
252b5132 | 882 | ac_prev= |
81ecdfbb | 883 | ac_dashdash= |
252b5132 RH |
884 | for ac_option |
885 | do | |
252b5132 RH |
886 | # If the previous option needs an argument, assign it. |
887 | if test -n "$ac_prev"; then | |
81ecdfbb | 888 | eval $ac_prev=\$ac_option |
252b5132 RH |
889 | ac_prev= |
890 | continue | |
891 | fi | |
892 | ||
81ecdfbb | 893 | case $ac_option in |
d0ac1c44 SM |
894 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
895 | *=) ac_optarg= ;; | |
896 | *) ac_optarg=yes ;; | |
81ecdfbb | 897 | esac |
252b5132 RH |
898 | |
899 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
900 | ||
81ecdfbb RW |
901 | case $ac_dashdash$ac_option in |
902 | --) | |
903 | ac_dashdash=yes ;; | |
252b5132 RH |
904 | |
905 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
906 | ac_prev=bindir ;; | |
907 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 908 | bindir=$ac_optarg ;; |
252b5132 RH |
909 | |
910 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 911 | ac_prev=build_alias ;; |
252b5132 | 912 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 913 | build_alias=$ac_optarg ;; |
252b5132 RH |
914 | |
915 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
916 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
917 | ac_prev=cache_file ;; | |
918 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
919 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
920 | cache_file=$ac_optarg ;; |
921 | ||
922 | --config-cache | -C) | |
923 | cache_file=config.cache ;; | |
252b5132 | 924 | |
81ecdfbb | 925 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 926 | ac_prev=datadir ;; |
81ecdfbb | 927 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
13b2be9c | 928 | datadir=$ac_optarg ;; |
252b5132 | 929 | |
81ecdfbb RW |
930 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
931 | | --dataroo | --dataro | --datar) | |
932 | ac_prev=datarootdir ;; | |
933 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
934 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
935 | datarootdir=$ac_optarg ;; | |
936 | ||
252b5132 | 937 | -disable-* | --disable-*) |
81ecdfbb | 938 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 939 | # Reject names that are not valid shell variable names. |
81ecdfbb | 940 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 941 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
942 | ac_useropt_orig=$ac_useropt |
943 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
944 | case $ac_user_opts in | |
945 | *" | |
946 | "enable_$ac_useropt" | |
947 | "*) ;; | |
948 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
949 | ac_unrecognized_sep=', ';; | |
950 | esac | |
951 | eval enable_$ac_useropt=no ;; | |
952 | ||
953 | -docdir | --docdir | --docdi | --doc | --do) | |
954 | ac_prev=docdir ;; | |
955 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
956 | docdir=$ac_optarg ;; | |
957 | ||
958 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
959 | ac_prev=dvidir ;; | |
960 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
961 | dvidir=$ac_optarg ;; | |
252b5132 RH |
962 | |
963 | -enable-* | --enable-*) | |
81ecdfbb | 964 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 965 | # Reject names that are not valid shell variable names. |
81ecdfbb | 966 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 967 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
968 | ac_useropt_orig=$ac_useropt |
969 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
970 | case $ac_user_opts in | |
971 | *" | |
972 | "enable_$ac_useropt" | |
973 | "*) ;; | |
974 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
975 | ac_unrecognized_sep=', ';; | |
252b5132 | 976 | esac |
81ecdfbb | 977 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
978 | |
979 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
980 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
981 | | --exec | --exe | --ex) | |
982 | ac_prev=exec_prefix ;; | |
983 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
984 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
985 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 986 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
987 | |
988 | -gas | --gas | --ga | --g) | |
989 | # Obsolete; use --with-gas. | |
990 | with_gas=yes ;; | |
991 | ||
13b2be9c DJ |
992 | -help | --help | --hel | --he | -h) |
993 | ac_init_help=long ;; | |
994 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
995 | ac_init_help=recursive ;; | |
996 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
997 | ac_init_help=short ;; | |
252b5132 RH |
998 | |
999 | -host | --host | --hos | --ho) | |
13b2be9c | 1000 | ac_prev=host_alias ;; |
252b5132 | 1001 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 1002 | host_alias=$ac_optarg ;; |
252b5132 | 1003 | |
81ecdfbb RW |
1004 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1005 | ac_prev=htmldir ;; | |
1006 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1007 | | --ht=*) | |
1008 | htmldir=$ac_optarg ;; | |
1009 | ||
252b5132 RH |
1010 | -includedir | --includedir | --includedi | --included | --include \ |
1011 | | --includ | --inclu | --incl | --inc) | |
1012 | ac_prev=includedir ;; | |
1013 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1014 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 1015 | includedir=$ac_optarg ;; |
252b5132 RH |
1016 | |
1017 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1018 | ac_prev=infodir ;; | |
1019 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 1020 | infodir=$ac_optarg ;; |
252b5132 RH |
1021 | |
1022 | -libdir | --libdir | --libdi | --libd) | |
1023 | ac_prev=libdir ;; | |
1024 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 1025 | libdir=$ac_optarg ;; |
252b5132 RH |
1026 | |
1027 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1028 | | --libexe | --libex | --libe) | |
1029 | ac_prev=libexecdir ;; | |
1030 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1031 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 1032 | libexecdir=$ac_optarg ;; |
252b5132 | 1033 | |
81ecdfbb RW |
1034 | -localedir | --localedir | --localedi | --localed | --locale) |
1035 | ac_prev=localedir ;; | |
1036 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1037 | localedir=$ac_optarg ;; | |
1038 | ||
252b5132 | 1039 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1040 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1041 | ac_prev=localstatedir ;; |
1042 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1043 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
13b2be9c | 1044 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1045 | |
1046 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1047 | ac_prev=mandir ;; | |
1048 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 1049 | mandir=$ac_optarg ;; |
252b5132 RH |
1050 | |
1051 | -nfp | --nfp | --nf) | |
1052 | # Obsolete; use --without-fp. | |
1053 | with_fp=no ;; | |
1054 | ||
1055 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 1056 | | --no-cr | --no-c | -n) |
252b5132 RH |
1057 | no_create=yes ;; |
1058 | ||
1059 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1060 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1061 | no_recursion=yes ;; | |
1062 | ||
1063 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1064 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1065 | | --oldin | --oldi | --old | --ol | --o) | |
1066 | ac_prev=oldincludedir ;; | |
1067 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1068 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1069 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 1070 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1071 | |
1072 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1073 | ac_prev=prefix ;; | |
1074 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 1075 | prefix=$ac_optarg ;; |
252b5132 RH |
1076 | |
1077 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1078 | | --program-pre | --program-pr | --program-p) | |
1079 | ac_prev=program_prefix ;; | |
1080 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1081 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 1082 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1083 | |
1084 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1085 | | --program-suf | --program-su | --program-s) | |
1086 | ac_prev=program_suffix ;; | |
1087 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1088 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 1089 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1090 | |
1091 | -program-transform-name | --program-transform-name \ | |
1092 | | --program-transform-nam | --program-transform-na \ | |
1093 | | --program-transform-n | --program-transform- \ | |
1094 | | --program-transform | --program-transfor \ | |
1095 | | --program-transfo | --program-transf \ | |
1096 | | --program-trans | --program-tran \ | |
1097 | | --progr-tra | --program-tr | --program-t) | |
1098 | ac_prev=program_transform_name ;; | |
1099 | -program-transform-name=* | --program-transform-name=* \ | |
1100 | | --program-transform-nam=* | --program-transform-na=* \ | |
1101 | | --program-transform-n=* | --program-transform-=* \ | |
1102 | | --program-transform=* | --program-transfor=* \ | |
1103 | | --program-transfo=* | --program-transf=* \ | |
1104 | | --program-trans=* | --program-tran=* \ | |
1105 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 1106 | program_transform_name=$ac_optarg ;; |
252b5132 | 1107 | |
81ecdfbb RW |
1108 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1109 | ac_prev=pdfdir ;; | |
1110 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1111 | pdfdir=$ac_optarg ;; | |
1112 | ||
1113 | -psdir | --psdir | --psdi | --psd | --ps) | |
1114 | ac_prev=psdir ;; | |
1115 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1116 | psdir=$ac_optarg ;; | |
1117 | ||
252b5132 RH |
1118 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1119 | | -silent | --silent | --silen | --sile | --sil) | |
1120 | silent=yes ;; | |
1121 | ||
1122 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1123 | ac_prev=sbindir ;; | |
1124 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1125 | | --sbi=* | --sb=*) | |
13b2be9c | 1126 | sbindir=$ac_optarg ;; |
252b5132 RH |
1127 | |
1128 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1129 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1130 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1131 | | --sha | --sh) | |
1132 | ac_prev=sharedstatedir ;; | |
1133 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1134 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1135 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1136 | | --sha=* | --sh=*) | |
13b2be9c | 1137 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1138 | |
1139 | -site | --site | --sit) | |
1140 | ac_prev=site ;; | |
1141 | -site=* | --site=* | --sit=*) | |
13b2be9c | 1142 | site=$ac_optarg ;; |
76bff705 | 1143 | |
252b5132 RH |
1144 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1145 | ac_prev=srcdir ;; | |
1146 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 1147 | srcdir=$ac_optarg ;; |
252b5132 RH |
1148 | |
1149 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1150 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1151 | ac_prev=sysconfdir ;; | |
1152 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1153 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 1154 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1155 | |
1156 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 1157 | ac_prev=target_alias ;; |
252b5132 | 1158 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 1159 | target_alias=$ac_optarg ;; |
252b5132 RH |
1160 | |
1161 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1162 | verbose=yes ;; | |
1163 | ||
13b2be9c DJ |
1164 | -version | --version | --versio | --versi | --vers | -V) |
1165 | ac_init_version=: ;; | |
252b5132 RH |
1166 | |
1167 | -with-* | --with-*) | |
81ecdfbb | 1168 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1169 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1170 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1171 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1172 | ac_useropt_orig=$ac_useropt |
1173 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1174 | case $ac_user_opts in | |
1175 | *" | |
1176 | "with_$ac_useropt" | |
1177 | "*) ;; | |
1178 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1179 | ac_unrecognized_sep=', ';; | |
252b5132 | 1180 | esac |
81ecdfbb | 1181 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1182 | |
1183 | -without-* | --without-*) | |
81ecdfbb | 1184 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1185 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1186 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1187 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1188 | ac_useropt_orig=$ac_useropt |
1189 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1190 | case $ac_user_opts in | |
1191 | *" | |
1192 | "with_$ac_useropt" | |
1193 | "*) ;; | |
1194 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1195 | ac_unrecognized_sep=', ';; | |
1196 | esac | |
1197 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1198 | |
1199 | --x) | |
1200 | # Obsolete; use --with-x. | |
1201 | with_x=yes ;; | |
1202 | ||
1203 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1204 | | --x-incl | --x-inc | --x-in | --x-i) | |
1205 | ac_prev=x_includes ;; | |
1206 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1207 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 1208 | x_includes=$ac_optarg ;; |
252b5132 RH |
1209 | |
1210 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1211 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1212 | ac_prev=x_libraries ;; | |
1213 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1214 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 1215 | x_libraries=$ac_optarg ;; |
252b5132 | 1216 | |
d0ac1c44 SM |
1217 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1218 | Try \`$0 --help' for more information" | |
252b5132 RH |
1219 | ;; |
1220 | ||
13b2be9c DJ |
1221 | *=*) |
1222 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1223 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1224 | case $ac_envvar in #( |
1225 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1226 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1227 | esac |
1228 | eval $ac_envvar=\$ac_optarg | |
13b2be9c DJ |
1229 | export $ac_envvar ;; |
1230 | ||
252b5132 | 1231 | *) |
13b2be9c | 1232 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1233 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
13b2be9c | 1234 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1235 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1236 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1237 | ;; |
1238 | ||
1239 | esac | |
1240 | done | |
1241 | ||
1242 | if test -n "$ac_prev"; then | |
13b2be9c | 1243 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1244 | as_fn_error $? "missing argument to $ac_option" |
c8615825 | 1245 | fi |
c8615825 | 1246 | |
81ecdfbb RW |
1247 | if test -n "$ac_unrecognized_opts"; then |
1248 | case $enable_option_checking in | |
1249 | no) ;; | |
d0ac1c44 | 1250 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1251 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
13b2be9c | 1252 | esac |
81ecdfbb | 1253 | fi |
252b5132 | 1254 | |
81ecdfbb RW |
1255 | # Check all directory arguments for consistency. |
1256 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1257 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1258 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e0b2a78c | 1259 | libdir localedir mandir |
252b5132 | 1260 | do |
81ecdfbb RW |
1261 | eval ac_val=\$$ac_var |
1262 | # Remove trailing slashes. | |
1263 | case $ac_val in | |
1264 | */ ) | |
1265 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1266 | eval $ac_var=\$ac_val;; | |
1267 | esac | |
1268 | # Be sure to have absolute directory names. | |
13b2be9c | 1269 | case $ac_val in |
81ecdfbb RW |
1270 | [\\/$]* | ?:[\\/]* ) continue;; |
1271 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1272 | esac |
d0ac1c44 | 1273 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1274 | done |
1275 | ||
13b2be9c DJ |
1276 | # There might be people who depend on the old broken behavior: `$host' |
1277 | # used to hold the argument of --host etc. | |
1278 | # FIXME: To remove some day. | |
1279 | build=$build_alias | |
1280 | host=$host_alias | |
1281 | target=$target_alias | |
1282 | ||
1283 | # FIXME: To remove some day. | |
1284 | if test "x$host_alias" != x; then | |
1285 | if test "x$build_alias" = x; then | |
1286 | cross_compiling=maybe | |
13b2be9c DJ |
1287 | elif test "x$build_alias" != "x$host_alias"; then |
1288 | cross_compiling=yes | |
1289 | fi | |
1290 | fi | |
9b2b7d69 | 1291 | |
13b2be9c DJ |
1292 | ac_tool_prefix= |
1293 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1294 | ||
1295 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1296 | |
252b5132 | 1297 | |
81ecdfbb RW |
1298 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1299 | ac_ls_di=`ls -di .` && | |
1300 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1301 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1302 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1303 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1304 | |
1305 | ||
252b5132 RH |
1306 | # Find the source files, if location was not specified. |
1307 | if test -z "$srcdir"; then | |
1308 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1309 | # Try the directory containing this script, then the parent directory. |
1310 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1311 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1312 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1313 | X"$as_myself" : 'X\(//\)$' \| \ | |
1314 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1315 | $as_echo X"$as_myself" | | |
1316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1317 | s//\1/ | |
1318 | q | |
1319 | } | |
1320 | /^X\(\/\/\)[^/].*/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)$/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\).*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | s/.*/./; q'` | |
252b5132 | 1333 | srcdir=$ac_confdir |
81ecdfbb | 1334 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1335 | srcdir=.. |
1336 | fi | |
1337 | else | |
1338 | ac_srcdir_defaulted=no | |
1339 | fi | |
81ecdfbb RW |
1340 | if test ! -r "$srcdir/$ac_unique_file"; then |
1341 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1342 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1343 | fi |
1344 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1345 | ac_abs_confdir=`( | |
d0ac1c44 | 1346 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1347 | pwd)` |
1348 | # When building in place, set srcdir=. | |
1349 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1350 | srcdir=. | |
1351 | fi | |
1352 | # Remove unnecessary trailing slashes from srcdir. | |
1353 | # Double slashes in file names in object file debugging info | |
1354 | # mess up M-x gdb in Emacs. | |
1355 | case $srcdir in | |
1356 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1357 | esac | |
1358 | for ac_var in $ac_precious_vars; do | |
1359 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1360 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1361 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1362 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1363 | done | |
d6d788bd | 1364 | |
13b2be9c DJ |
1365 | # |
1366 | # Report the --help message. | |
1367 | # | |
1368 | if test "$ac_init_help" = "long"; then | |
1369 | # Omit some internal or obsolete options to make the list less imposing. | |
1370 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1371 | cat <<_ACEOF | |
346d80ef | 1372 | \`configure' configures gas 2.37.50 to adapt to many kinds of systems. |
9b2b7d69 | 1373 | |
13b2be9c | 1374 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 1375 | |
13b2be9c DJ |
1376 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1377 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 1378 | |
13b2be9c | 1379 | Defaults for the options are specified in brackets. |
9b2b7d69 | 1380 | |
13b2be9c DJ |
1381 | Configuration: |
1382 | -h, --help display this help and exit | |
1383 | --help=short display options specific to this package | |
1384 | --help=recursive display the short help of all the included packages | |
1385 | -V, --version display version information and exit | |
d0ac1c44 | 1386 | -q, --quiet, --silent do not print \`checking ...' messages |
13b2be9c DJ |
1387 | --cache-file=FILE cache test results in FILE [disabled] |
1388 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1389 | -n, --no-create do not create output files | |
1390 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1391 | ||
13b2be9c DJ |
1392 | Installation directories: |
1393 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1394 | [$ac_default_prefix] |
13b2be9c | 1395 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1396 | [PREFIX] |
9b2b7d69 | 1397 | |
13b2be9c DJ |
1398 | By default, \`make install' will install all the files in |
1399 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1400 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1401 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 1402 | |
13b2be9c | 1403 | For better control, use the options below. |
9b2b7d69 | 1404 | |
13b2be9c | 1405 | Fine tuning of the installation directories: |
81ecdfbb RW |
1406 | --bindir=DIR user executables [EPREFIX/bin] |
1407 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1408 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1409 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1410 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1411 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1412 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1413 | --includedir=DIR C header files [PREFIX/include] | |
1414 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1415 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1416 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1417 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1418 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1419 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1420 | --docdir=DIR documentation root [DATAROOTDIR/doc/gas] |
81ecdfbb RW |
1421 | --htmldir=DIR html documentation [DOCDIR] |
1422 | --dvidir=DIR dvi documentation [DOCDIR] | |
1423 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1424 | --psdir=DIR ps documentation [DOCDIR] | |
13b2be9c | 1425 | _ACEOF |
9b2b7d69 | 1426 | |
13b2be9c | 1427 | cat <<\_ACEOF |
9b2b7d69 | 1428 | |
13b2be9c DJ |
1429 | Program names: |
1430 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1431 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1432 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 1433 | |
13b2be9c DJ |
1434 | System types: |
1435 | --build=BUILD configure for building on BUILD [guessed] | |
1436 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1437 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1438 | _ACEOF | |
9b2b7d69 | 1439 | fi |
9b2b7d69 | 1440 | |
13b2be9c | 1441 | if test -n "$ac_init_help"; then |
2e98a7bd | 1442 | case $ac_init_help in |
346d80ef | 1443 | short | recursive ) echo "Configuration of gas 2.37.50:";; |
2e98a7bd | 1444 | esac |
13b2be9c | 1445 | cat <<\_ACEOF |
9b2b7d69 | 1446 | |
13b2be9c | 1447 | Optional Features: |
81ecdfbb | 1448 | --disable-option-checking ignore unrecognized --enable/--with options |
13b2be9c DJ |
1449 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1450 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
23d61380 AM |
1451 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1452 | --disable-silent-rules verbose build output (undo: "make V=0") | |
d0ac1c44 SM |
1453 | --enable-dependency-tracking |
1454 | do not reject slow dependency extractors | |
1455 | --disable-dependency-tracking | |
1456 | speeds up one-time build | |
81ecdfbb RW |
1457 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1458 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1459 | --enable-fast-install[=PKGS] |
1460 | optimize for fast installation [default=yes] | |
13b2be9c | 1461 | --disable-libtool-lock avoid locking (might break parallel builds) |
b879806f AM |
1462 | --enable-plugins Enable support for plugins |
1463 | --disable-largefile omit support for large files | |
241a6c40 | 1464 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1465 | --enable-checking enable run-time checks |
4894d80b | 1466 | --enable-compressed-debug-sections={all,gas,none} |
27ba7c94 | 1467 | compress debug sections by default |
0cb4071e L |
1468 | --enable-x86-relax-relocations |
1469 | generate x86 relax relocations by default | |
b8871f35 L |
1470 | --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by |
1471 | default | |
0df8ad28 NC |
1472 | --enable-generate-build-notes |
1473 | generate GNU Build notes if none are provided by the | |
1474 | input | |
6f2117ba PH |
1475 | --enable-mips-fix-loongson3-llsc |
1476 | enable MIPS fix Loongson3 LLSC errata | |
b4a3a7b4 | 1477 | --enable-x86-used-note generate GNU x86 used ISA and feature properties |
2dc8dd17 JW |
1478 | --enable-default-riscv-attribute |
1479 | generate RISC-V arch attribute by default | |
241a6c40 AM |
1480 | --enable-werror treat compile warnings as errors |
1481 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1482 | --disable-nls do not use Native Language Support |
d0ac1c44 SM |
1483 | --enable-maintainer-mode |
1484 | enable make rules and dependencies not useful (and | |
1485 | sometimes confusing) to the casual installer | |
9b2b7d69 | 1486 | |
13b2be9c DJ |
1487 | Optional Packages: |
1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1490 | --with-pic try to use only PIC/non-PIC objects [default=use |
1491 | both] | |
1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9004b6bd AB |
1493 | --with-cpu=CPU default cpu variant is CPU (currently only supported |
1494 | on ARC) | |
0138187e | 1495 | --with-system-zlib use installed libz |
9b2b7d69 | 1496 | |
13b2be9c DJ |
1497 | Some influential environment variables: |
1498 | CC C compiler command | |
1499 | CFLAGS C compiler flags | |
1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1501 | nonstandard directory <lib dir> | |
81ecdfbb | 1502 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1503 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1504 | you have headers in a nonstandard directory <include dir> |
13b2be9c | 1505 | CPP C preprocessor |
d0ac1c44 SM |
1506 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1507 | Defaults to the first program found out of: `bison -y', `byacc', | |
1508 | `yacc'. | |
81ecdfbb RW |
1509 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1510 | This script will default YFLAGS to the empty string to avoid a | |
1511 | default value of `-d' given by some make applications. | |
13b2be9c DJ |
1512 | |
1513 | Use these variables to override the choices made by `configure' or to help | |
1514 | it to find libraries and programs with nonstandard names/locations. | |
1515 | ||
81ecdfbb | 1516 | Report bugs to the package provider. |
13b2be9c | 1517 | _ACEOF |
81ecdfbb | 1518 | ac_status=$? |
9b2b7d69 | 1519 | fi |
9b2b7d69 | 1520 | |
13b2be9c DJ |
1521 | if test "$ac_init_help" = "recursive"; then |
1522 | # If there are subdirs, report their specific --help. | |
13b2be9c | 1523 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1524 | test -d "$ac_dir" || |
1525 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1526 | continue | |
13b2be9c DJ |
1527 | ac_builddir=. |
1528 | ||
81ecdfbb RW |
1529 | case "$ac_dir" in |
1530 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1531 | *) | |
1532 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1533 | # A ".." for each directory in $ac_dir_suffix. | |
1534 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1535 | case $ac_top_builddir_sub in | |
1536 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1537 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1538 | esac ;; | |
1539 | esac | |
1540 | ac_abs_top_builddir=$ac_pwd | |
1541 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1542 | # for backward compatibility: | |
1543 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 1544 | |
13b2be9c | 1545 | case $srcdir in |
81ecdfbb | 1546 | .) # We are building in place. |
13b2be9c | 1547 | ac_srcdir=. |
81ecdfbb RW |
1548 | ac_top_srcdir=$ac_top_builddir_sub |
1549 | ac_abs_top_srcdir=$ac_pwd ;; | |
1550 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 1551 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1552 | ac_top_srcdir=$srcdir |
1553 | ac_abs_top_srcdir=$srcdir ;; | |
1554 | *) # Relative name. | |
1555 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1556 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1557 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ab509236 | 1558 | esac |
81ecdfbb RW |
1559 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1560 | ||
1561 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1562 | # Check for guested configure. | |
1563 | if test -f "$ac_srcdir/configure.gnu"; then | |
1564 | echo && | |
1565 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1566 | elif test -f "$ac_srcdir/configure"; then | |
1567 | echo && | |
1568 | $SHELL "$ac_srcdir/configure" --help=recursive | |
13b2be9c | 1569 | else |
81ecdfbb RW |
1570 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1571 | fi || ac_status=$? | |
1572 | cd "$ac_pwd" || { ac_status=$?; break; } | |
13b2be9c DJ |
1573 | done |
1574 | fi | |
6840198f | 1575 | |
81ecdfbb | 1576 | test -n "$ac_init_help" && exit $ac_status |
13b2be9c DJ |
1577 | if $ac_init_version; then |
1578 | cat <<\_ACEOF | |
346d80ef | 1579 | gas configure 2.37.50 |
d0ac1c44 | 1580 | generated by GNU Autoconf 2.69 |
c8615825 | 1581 | |
d0ac1c44 | 1582 | Copyright (C) 2012 Free Software Foundation, Inc. |
13b2be9c DJ |
1583 | This configure script is free software; the Free Software Foundation |
1584 | gives unlimited permission to copy, distribute and modify it. | |
1585 | _ACEOF | |
81ecdfbb | 1586 | exit |
13b2be9c | 1587 | fi |
c8615825 | 1588 | |
81ecdfbb RW |
1589 | ## ------------------------ ## |
1590 | ## Autoconf initialization. ## | |
1591 | ## ------------------------ ## | |
c8615825 | 1592 | |
81ecdfbb RW |
1593 | # ac_fn_c_try_compile LINENO |
1594 | # -------------------------- | |
1595 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1596 | ac_fn_c_try_compile () | |
13b2be9c | 1597 | { |
81ecdfbb RW |
1598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1599 | rm -f conftest.$ac_objext | |
1600 | if { { ac_try="$ac_compile" | |
1601 | case "(($ac_try" in | |
1602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1603 | *) ac_try_echo=$ac_try;; | |
1604 | esac | |
1605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1606 | $as_echo "$ac_try_echo"; } >&5 | |
1607 | (eval "$ac_compile") 2>conftest.err | |
1608 | ac_status=$? | |
1609 | if test -s conftest.err; then | |
1610 | grep -v '^ *+' conftest.err >conftest.er1 | |
1611 | cat conftest.er1 >&5 | |
1612 | mv -f conftest.er1 conftest.err | |
1613 | fi | |
1614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1615 | test $ac_status = 0; } && { | |
1616 | test -z "$ac_c_werror_flag" || | |
1617 | test ! -s conftest.err | |
1618 | } && test -s conftest.$ac_objext; then : | |
1619 | ac_retval=0 | |
1620 | else | |
1621 | $as_echo "$as_me: failed program was:" >&5 | |
1622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13b2be9c | 1623 | |
81ecdfbb RW |
1624 | ac_retval=1 |
1625 | fi | |
d0ac1c44 SM |
1626 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1627 | as_fn_set_status $ac_retval | |
13b2be9c | 1628 | |
81ecdfbb | 1629 | } # ac_fn_c_try_compile |
13b2be9c | 1630 | |
81ecdfbb RW |
1631 | # ac_fn_c_try_cpp LINENO |
1632 | # ---------------------- | |
1633 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1634 | ac_fn_c_try_cpp () | |
1635 | { | |
1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1637 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1638 | case "(($ac_try" in | |
1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1640 | *) ac_try_echo=$ac_try;; | |
1641 | esac | |
1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1643 | $as_echo "$ac_try_echo"; } >&5 | |
1644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1645 | ac_status=$? | |
1646 | if test -s conftest.err; then | |
1647 | grep -v '^ *+' conftest.err >conftest.er1 | |
1648 | cat conftest.er1 >&5 | |
1649 | mv -f conftest.er1 conftest.err | |
1650 | fi | |
1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1652 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1653 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1654 | test ! -s conftest.err | |
1655 | }; then : | |
1656 | ac_retval=0 | |
1657 | else | |
1658 | $as_echo "$as_me: failed program was:" >&5 | |
1659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1660 | ||
1661 | ac_retval=1 | |
1662 | fi | |
d0ac1c44 SM |
1663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1664 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1665 | |
1666 | } # ac_fn_c_try_cpp | |
1667 | ||
1668 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1669 | # ------------------------------------------------------- | |
1670 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1671 | # the include files in INCLUDES and setting the cache variable VAR | |
1672 | # accordingly. | |
1673 | ac_fn_c_check_header_mongrel () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1676 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1678 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1679 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1680 | $as_echo_n "(cached) " >&6 |
1681 | fi | |
1682 | eval ac_res=\$$3 | |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1684 | $as_echo "$ac_res" >&6; } | |
1685 | else | |
1686 | # Is the header compilable? | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1688 | $as_echo_n "checking $2 usability... " >&6; } | |
1689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1690 | /* end confdefs.h. */ | |
1691 | $4 | |
1692 | #include <$2> | |
1693 | _ACEOF | |
1694 | if ac_fn_c_try_compile "$LINENO"; then : | |
1695 | ac_header_compiler=yes | |
1696 | else | |
1697 | ac_header_compiler=no | |
1698 | fi | |
1699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1701 | $as_echo "$ac_header_compiler" >&6; } | |
1702 | ||
1703 | # Is the header present? | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1705 | $as_echo_n "checking $2 presence... " >&6; } | |
1706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1707 | /* end confdefs.h. */ | |
1708 | #include <$2> | |
1709 | _ACEOF | |
1710 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1711 | ac_header_preproc=yes | |
1712 | else | |
1713 | ac_header_preproc=no | |
1714 | fi | |
d0ac1c44 | 1715 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1717 | $as_echo "$ac_header_preproc" >&6; } | |
1718 | ||
1719 | # So? What about this header? | |
1720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1721 | yes:no: ) | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1726 | ;; | |
1727 | no:yes:* ) | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1738 | ;; | |
1739 | esac | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1741 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1742 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1743 | $as_echo_n "(cached) " >&6 |
1744 | else | |
1745 | eval "$3=\$ac_header_compiler" | |
1746 | fi | |
1747 | eval ac_res=\$$3 | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1749 | $as_echo "$ac_res" >&6; } | |
1750 | fi | |
d0ac1c44 | 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1752 | |
1753 | } # ac_fn_c_check_header_mongrel | |
1754 | ||
1755 | # ac_fn_c_try_run LINENO | |
1756 | # ---------------------- | |
1757 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1758 | # that executables *can* be run. | |
1759 | ac_fn_c_try_run () | |
1760 | { | |
1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 | if { { ac_try="$ac_link" | |
1763 | case "(($ac_try" in | |
1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1765 | *) ac_try_echo=$ac_try;; | |
1766 | esac | |
1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1768 | $as_echo "$ac_try_echo"; } >&5 | |
1769 | (eval "$ac_link") 2>&5 | |
1770 | ac_status=$? | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1773 | { { case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_try") 2>&5 | |
1780 | ac_status=$? | |
1781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1782 | test $ac_status = 0; }; }; then : | |
1783 | ac_retval=0 | |
1784 | else | |
1785 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=$ac_status | |
1790 | fi | |
1791 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1793 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1794 | |
1795 | } # ac_fn_c_try_run | |
1796 | ||
1797 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1798 | # ------------------------------------------------------- | |
1799 | # Tests whether HEADER exists and can be compiled using the include files in | |
1800 | # INCLUDES, setting the cache variable VAR accordingly. | |
1801 | ac_fn_c_check_header_compile () | |
1802 | { | |
1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1805 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1806 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1807 | $as_echo_n "(cached) " >&6 |
1808 | else | |
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1810 | /* end confdefs.h. */ | |
1811 | $4 | |
1812 | #include <$2> | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | eval "$3=yes" | |
1816 | else | |
1817 | eval "$3=no" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | fi | |
1821 | eval ac_res=\$$3 | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1823 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1825 | |
1826 | } # ac_fn_c_check_header_compile | |
1827 | ||
23d61380 AM |
1828 | # ac_fn_c_try_link LINENO |
1829 | # ----------------------- | |
1830 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1831 | ac_fn_c_try_link () | |
1832 | { | |
1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1835 | if { { ac_try="$ac_link" | |
1836 | case "(($ac_try" in | |
1837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1838 | *) ac_try_echo=$ac_try;; | |
1839 | esac | |
1840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1841 | $as_echo "$ac_try_echo"; } >&5 | |
1842 | (eval "$ac_link") 2>conftest.err | |
1843 | ac_status=$? | |
1844 | if test -s conftest.err; then | |
1845 | grep -v '^ *+' conftest.err >conftest.er1 | |
1846 | cat conftest.er1 >&5 | |
1847 | mv -f conftest.er1 conftest.err | |
1848 | fi | |
1849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1850 | test $ac_status = 0; } && { | |
1851 | test -z "$ac_c_werror_flag" || | |
1852 | test ! -s conftest.err | |
1853 | } && test -s conftest$ac_exeext && { | |
1854 | test "$cross_compiling" = yes || | |
1855 | test -x conftest$ac_exeext | |
1856 | }; then : | |
1857 | ac_retval=0 | |
1858 | else | |
1859 | $as_echo "$as_me: failed program was:" >&5 | |
1860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1861 | ||
1862 | ac_retval=1 | |
1863 | fi | |
1864 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1865 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1866 | # interfere with the next link command; also delete a directory that is | |
1867 | # left behind by Apple's compiler. We do this before executing the actions. | |
1868 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1869 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1870 | as_fn_set_status $ac_retval | |
1871 | ||
1872 | } # ac_fn_c_try_link | |
1873 | ||
81ecdfbb RW |
1874 | # ac_fn_c_check_func LINENO FUNC VAR |
1875 | # ---------------------------------- | |
1876 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1877 | ac_fn_c_check_func () | |
1878 | { | |
1879 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1881 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1882 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1883 | $as_echo_n "(cached) " >&6 |
1884 | else | |
1885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1886 | /* end confdefs.h. */ | |
1887 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1889 | #define $2 innocuous_$2 | |
1890 | ||
1891 | /* System header to define __stub macros and hopefully few prototypes, | |
1892 | which can conflict with char $2 (); below. | |
1893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1894 | <limits.h> exists even on freestanding compilers. */ | |
1895 | ||
1896 | #ifdef __STDC__ | |
1897 | # include <limits.h> | |
1898 | #else | |
1899 | # include <assert.h> | |
1900 | #endif | |
1901 | ||
1902 | #undef $2 | |
1903 | ||
1904 | /* Override any GCC internal prototype to avoid an error. | |
1905 | Use char because int might match the return type of a GCC | |
1906 | builtin and then its argument prototype would still apply. */ | |
1907 | #ifdef __cplusplus | |
1908 | extern "C" | |
1909 | #endif | |
1910 | char $2 (); | |
1911 | /* The GNU C library defines this for functions which it implements | |
1912 | to always fail with ENOSYS. Some functions are actually named | |
1913 | something starting with __ and the normal name is an alias. */ | |
1914 | #if defined __stub_$2 || defined __stub___$2 | |
1915 | choke me | |
1916 | #endif | |
1917 | ||
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | return $2 (); | |
1922 | ; | |
1923 | return 0; | |
1924 | } | |
1925 | _ACEOF | |
1926 | if ac_fn_c_try_link "$LINENO"; then : | |
1927 | eval "$3=yes" | |
1928 | else | |
1929 | eval "$3=no" | |
1930 | fi | |
1931 | rm -f core conftest.err conftest.$ac_objext \ | |
1932 | conftest$ac_exeext conftest.$ac_ext | |
1933 | fi | |
1934 | eval ac_res=\$$3 | |
1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1936 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1937 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1938 | |
1939 | } # ac_fn_c_check_func | |
1940 | ||
d0ac1c44 SM |
1941 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1942 | # --------------------------------------------- | |
1943 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1944 | # accordingly. | |
81ecdfbb RW |
1945 | ac_fn_c_check_decl () |
1946 | { | |
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
1948 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1949 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1951 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 1952 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1953 | $as_echo_n "(cached) " >&6 |
1954 | else | |
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1956 | /* end confdefs.h. */ | |
1957 | $4 | |
1958 | int | |
1959 | main () | |
1960 | { | |
360cfc9c AM |
1961 | #ifndef $as_decl_name |
1962 | #ifdef __cplusplus | |
1963 | (void) $as_decl_use; | |
1964 | #else | |
1965 | (void) $as_decl_name; | |
1966 | #endif | |
81ecdfbb RW |
1967 | #endif |
1968 | ||
1969 | ; | |
1970 | return 0; | |
1971 | } | |
1972 | _ACEOF | |
1973 | if ac_fn_c_try_compile "$LINENO"; then : | |
1974 | eval "$3=yes" | |
1975 | else | |
1976 | eval "$3=no" | |
1977 | fi | |
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1979 | fi | |
1980 | eval ac_res=\$$3 | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1982 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1983 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1984 | |
1985 | } # ac_fn_c_check_decl | |
1986 | cat >config.log <<_ACEOF | |
1987 | This file contains any messages produced by compilers while | |
1988 | running configure, to aid debugging if configure makes a mistake. | |
1989 | ||
346d80ef | 1990 | It was created by gas $as_me 2.37.50, which was |
d0ac1c44 | 1991 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1992 | |
1993 | $ $0 $@ | |
1994 | ||
1995 | _ACEOF | |
1996 | exec 5>>config.log | |
1997 | { | |
1998 | cat <<_ASUNAME | |
1999 | ## --------- ## | |
2000 | ## Platform. ## | |
2001 | ## --------- ## | |
2002 | ||
2003 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2004 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2005 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2006 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2007 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2008 | ||
2009 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2010 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2011 | ||
2012 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
13b2be9c DJ |
2013 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2014 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2015 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
13b2be9c DJ |
2016 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2017 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2018 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2019 | ||
2020 | _ASUNAME | |
2021 | ||
2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2023 | for as_dir in $PATH | |
2024 | do | |
2025 | IFS=$as_save_IFS | |
2026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2027 | $as_echo "PATH: $as_dir" |
2028 | done | |
2029 | IFS=$as_save_IFS | |
9b2b7d69 | 2030 | |
13b2be9c | 2031 | } >&5 |
6840198f | 2032 | |
13b2be9c | 2033 | cat >&5 <<_ACEOF |
c8615825 | 2034 | |
9b2b7d69 | 2035 | |
13b2be9c DJ |
2036 | ## ----------- ## |
2037 | ## Core tests. ## | |
2038 | ## ----------- ## | |
87ccc1b0 | 2039 | |
13b2be9c | 2040 | _ACEOF |
9b2b7d69 | 2041 | |
13b2be9c DJ |
2042 | |
2043 | # Keep a trace of the command line. | |
2044 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2045 | # Strip out --silent because we don't want to record it for future runs. | |
2046 | # Also quote any args containing shell meta-characters. | |
2047 | # Make two passes to allow for proper duplicate-argument suppression. | |
2048 | ac_configure_args= | |
2049 | ac_configure_args0= | |
2050 | ac_configure_args1= | |
13b2be9c DJ |
2051 | ac_must_keep_next=false |
2052 | for ac_pass in 1 2 | |
2053 | do | |
2054 | for ac_arg | |
2055 | do | |
2056 | case $ac_arg in | |
2057 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2059 | | -silent | --silent | --silen | --sile | --sil) | |
2060 | continue ;; | |
81ecdfbb RW |
2061 | *\'*) |
2062 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13b2be9c DJ |
2063 | esac |
2064 | case $ac_pass in | |
81ecdfbb | 2065 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
13b2be9c | 2066 | 2) |
81ecdfbb | 2067 | as_fn_append ac_configure_args1 " '$ac_arg'" |
13b2be9c | 2068 | if test $ac_must_keep_next = true; then |
ab509236 | 2069 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 2070 | else |
ab509236 L |
2071 | case $ac_arg in |
2072 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2073 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2074 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2075 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2076 | case "$ac_configure_args0 " in | |
2077 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2078 | esac | |
2079 | ;; | |
2080 | -* ) ac_must_keep_next=true ;; | |
2081 | esac | |
13b2be9c | 2082 | fi |
81ecdfbb | 2083 | as_fn_append ac_configure_args " '$ac_arg'" |
c8615825 AM |
2084 | ;; |
2085 | esac | |
2086 | done | |
13b2be9c | 2087 | done |
81ecdfbb RW |
2088 | { ac_configure_args0=; unset ac_configure_args0;} |
2089 | { ac_configure_args1=; unset ac_configure_args1;} | |
13b2be9c DJ |
2090 | |
2091 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2092 | # config.log. We remove comments because anyway the quotes in there | |
2093 | # would cause problems or look ugly. | |
81ecdfbb RW |
2094 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2095 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
13b2be9c DJ |
2096 | trap 'exit_status=$? |
2097 | # Save into config.log some information that might help in debugging. | |
2098 | { | |
2099 | echo | |
2100 | ||
d0ac1c44 | 2101 | $as_echo "## ---------------- ## |
13b2be9c | 2102 | ## Cache variables. ## |
d0ac1c44 | 2103 | ## ---------------- ##" |
13b2be9c DJ |
2104 | echo |
2105 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2106 | ( |
2107 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2108 | eval ac_val=\$$ac_var | |
2109 | case $ac_val in #( | |
2110 | *${as_nl}*) | |
2111 | case $ac_var in #( | |
2112 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2113 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2114 | esac | |
2115 | case $ac_var in #( | |
2116 | _ | IFS | as_nl) ;; #( | |
2117 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2118 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2119 | esac ;; | |
2120 | esac | |
2121 | done | |
13b2be9c | 2122 | (set) 2>&1 | |
81ecdfbb RW |
2123 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2124 | *${as_nl}ac_space=\ *) | |
13b2be9c | 2125 | sed -n \ |
81ecdfbb RW |
2126 | "s/'\''/'\''\\\\'\'''\''/g; |
2127 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2128 | ;; #( | |
13b2be9c | 2129 | *) |
81ecdfbb | 2130 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 2131 | ;; |
81ecdfbb RW |
2132 | esac | |
2133 | sort | |
2134 | ) | |
13b2be9c DJ |
2135 | echo |
2136 | ||
d0ac1c44 | 2137 | $as_echo "## ----------------- ## |
13b2be9c | 2138 | ## Output variables. ## |
d0ac1c44 | 2139 | ## ----------------- ##" |
13b2be9c DJ |
2140 | echo |
2141 | for ac_var in $ac_subst_vars | |
2142 | do | |
81ecdfbb RW |
2143 | eval ac_val=\$$ac_var |
2144 | case $ac_val in | |
2145 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2146 | esac | |
2147 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2148 | done | sort |
2149 | echo | |
2150 | ||
2151 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2152 | $as_echo "## ------------------- ## |
81ecdfbb | 2153 | ## File substitutions. ## |
d0ac1c44 | 2154 | ## ------------------- ##" |
13b2be9c DJ |
2155 | echo |
2156 | for ac_var in $ac_subst_files | |
2157 | do | |
81ecdfbb RW |
2158 | eval ac_val=\$$ac_var |
2159 | case $ac_val in | |
2160 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2161 | esac | |
2162 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2163 | done | sort |
2164 | echo | |
2165 | fi | |
2166 | ||
2167 | if test -s confdefs.h; then | |
d0ac1c44 | 2168 | $as_echo "## ----------- ## |
13b2be9c | 2169 | ## confdefs.h. ## |
d0ac1c44 | 2170 | ## ----------- ##" |
13b2be9c | 2171 | echo |
81ecdfbb | 2172 | cat confdefs.h |
13b2be9c DJ |
2173 | echo |
2174 | fi | |
2175 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2176 | $as_echo "$as_me: caught signal $ac_signal" |
2177 | $as_echo "$as_me: exit $exit_status" | |
13b2be9c | 2178 | } >&5 |
81ecdfbb RW |
2179 | rm -f core *.core core.conftest.* && |
2180 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
13b2be9c | 2181 | exit $exit_status |
81ecdfbb | 2182 | ' 0 |
13b2be9c | 2183 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2184 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
13b2be9c DJ |
2185 | done |
2186 | ac_signal=0 | |
2187 | ||
2188 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2189 | rm -f -r conftest* confdefs.h |
2190 | ||
2191 | $as_echo "/* confdefs.h */" > confdefs.h | |
13b2be9c DJ |
2192 | |
2193 | # Predefined preprocessor variables. | |
2194 | ||
2195 | cat >>confdefs.h <<_ACEOF | |
2196 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2197 | _ACEOF | |
2198 | ||
13b2be9c DJ |
2199 | cat >>confdefs.h <<_ACEOF |
2200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2201 | _ACEOF | |
2202 | ||
13b2be9c DJ |
2203 | cat >>confdefs.h <<_ACEOF |
2204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2205 | _ACEOF | |
2206 | ||
13b2be9c DJ |
2207 | cat >>confdefs.h <<_ACEOF |
2208 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2209 | _ACEOF | |
2210 | ||
13b2be9c DJ |
2211 | cat >>confdefs.h <<_ACEOF |
2212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2213 | _ACEOF | |
2214 | ||
81ecdfbb RW |
2215 | cat >>confdefs.h <<_ACEOF |
2216 | #define PACKAGE_URL "$PACKAGE_URL" | |
2217 | _ACEOF | |
2218 | ||
13b2be9c DJ |
2219 | |
2220 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2221 | # Prefer an explicitly selected file to automatically selected ones. |
2222 | ac_site_file1=NONE | |
2223 | ac_site_file2=NONE | |
2224 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2225 | # We do not want a PATH search for config.site. |
2226 | case $CONFIG_SITE in #(( | |
2227 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2228 | */*) ac_site_file1=$CONFIG_SITE;; | |
2229 | *) ac_site_file1=./$CONFIG_SITE;; | |
2230 | esac | |
81ecdfbb RW |
2231 | elif test "x$prefix" != xNONE; then |
2232 | ac_site_file1=$prefix/share/config.site | |
2233 | ac_site_file2=$prefix/etc/config.site | |
2234 | else | |
2235 | ac_site_file1=$ac_default_prefix/share/config.site | |
2236 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2237 | fi | |
2238 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2239 | do | |
2240 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2241 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2243 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
13b2be9c | 2244 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2245 | . "$ac_site_file" \ |
2246 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2248 | as_fn_error $? "failed to load site script $ac_site_file | |
2249 | See \`config.log' for more details" "$LINENO" 5; } | |
13b2be9c DJ |
2250 | fi |
2251 | done | |
2252 | ||
2253 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2254 | # Some versions of bash will fail to source /dev/null (special files |
2255 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2256 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2258 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
13b2be9c | 2259 | case $cache_file in |
81ecdfbb RW |
2260 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2261 | *) . "./$cache_file";; | |
13b2be9c DJ |
2262 | esac |
2263 | fi | |
2264 | else | |
81ecdfbb RW |
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2266 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
13b2be9c DJ |
2267 | >$cache_file |
2268 | fi | |
2269 | ||
2270 | # Check that the precious variables saved in the cache have kept the same | |
2271 | # value. | |
2272 | ac_cache_corrupted=false | |
81ecdfbb | 2273 | for ac_var in $ac_precious_vars; do |
13b2be9c DJ |
2274 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2275 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2276 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2277 | eval ac_new_val=\$ac_env_${ac_var}_value | |
13b2be9c DJ |
2278 | case $ac_old_set,$ac_new_set in |
2279 | set,) | |
81ecdfbb RW |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2281 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
13b2be9c DJ |
2282 | ac_cache_corrupted=: ;; |
2283 | ,set) | |
81ecdfbb RW |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2285 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
13b2be9c DJ |
2286 | ac_cache_corrupted=: ;; |
2287 | ,);; | |
2288 | *) | |
2289 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2290 | # differences in whitespace do not lead to failure. |
2291 | ac_old_val_w=`echo x $ac_old_val` | |
2292 | ac_new_val_w=`echo x $ac_new_val` | |
2293 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2295 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2296 | ac_cache_corrupted=: | |
2297 | else | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2299 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2300 | eval $ac_var=\$ac_old_val | |
2301 | fi | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2303 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2305 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
2306 | fi;; |
2307 | esac | |
2308 | # Pass precious variables to config.status. | |
2309 | if test "$ac_new_set" = set; then | |
2310 | case $ac_new_val in | |
81ecdfbb | 2311 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
13b2be9c DJ |
2312 | *) ac_arg=$ac_var=$ac_new_val ;; |
2313 | esac | |
2314 | case " $ac_configure_args " in | |
2315 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2316 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
13b2be9c DJ |
2317 | esac |
2318 | fi | |
2319 | done | |
2320 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2324 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2325 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
13b2be9c | 2326 | fi |
81ecdfbb RW |
2327 | ## -------------------- ## |
2328 | ## Main body of script. ## | |
2329 | ## -------------------- ## | |
13b2be9c DJ |
2330 | |
2331 | ac_ext=c | |
2332 | ac_cpp='$CPP $CPPFLAGS' | |
2333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2336 | ||
2337 | ||
2338 | ||
13b2be9c | 2339 | |
da594c4a | 2340 | |
13b2be9c DJ |
2341 | |
2342 | ||
2343 | ac_aux_dir= | |
81ecdfbb | 2344 | for ac_dir in .. "$srcdir"/..; do |
d0ac1c44 SM |
2345 | if test -f "$ac_dir/install-sh"; then |
2346 | ac_aux_dir=$ac_dir | |
2347 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2348 | break | |
2349 | elif test -f "$ac_dir/install.sh"; then | |
2350 | ac_aux_dir=$ac_dir | |
2351 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2352 | break | |
2353 | elif test -f "$ac_dir/shtool"; then | |
2354 | ac_aux_dir=$ac_dir | |
2355 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2356 | break | |
2357 | fi | |
13b2be9c DJ |
2358 | done |
2359 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2360 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
13b2be9c | 2361 | fi |
81ecdfbb RW |
2362 | |
2363 | # These three variables are undocumented and unsupported, | |
2364 | # and are intended to be withdrawn in a future Autoconf release. | |
2365 | # They can cause serious problems if a builder's source tree is in a directory | |
2366 | # whose full name contains unusual characters. | |
2367 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2368 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2369 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2370 | ||
13b2be9c DJ |
2371 | |
2372 | # Make sure we can run config.sub. | |
81ecdfbb | 2373 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2374 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2375 | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2377 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2378 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2379 | $as_echo_n "(cached) " >&6 |
2380 | else | |
2381 | ac_build_alias=$build_alias | |
2382 | test "x$ac_build_alias" = x && | |
2383 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2384 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2385 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2386 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2387 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2388 | |
2389 | fi | |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2391 | $as_echo "$ac_cv_build" >&6; } | |
2392 | case $ac_cv_build in | |
2393 | *-*-*) ;; | |
d0ac1c44 | 2394 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2395 | esac |
13b2be9c | 2396 | build=$ac_cv_build |
81ecdfbb RW |
2397 | ac_save_IFS=$IFS; IFS='-' |
2398 | set x $ac_cv_build | |
2399 | shift | |
2400 | build_cpu=$1 | |
2401 | build_vendor=$2 | |
2402 | shift; shift | |
2403 | # Remember, the first character of IFS is used to create $*, | |
2404 | # except with old shells: | |
2405 | build_os=$* | |
2406 | IFS=$ac_save_IFS | |
2407 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2408 | |
2409 | ||
81ecdfbb RW |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2411 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2412 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2413 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2414 | else |
81ecdfbb RW |
2415 | if test "x$host_alias" = x; then |
2416 | ac_cv_host=$ac_cv_build | |
2417 | else | |
2418 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2419 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2420 | fi |
13b2be9c DJ |
2421 | |
2422 | fi | |
81ecdfbb RW |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2424 | $as_echo "$ac_cv_host" >&6; } | |
2425 | case $ac_cv_host in | |
2426 | *-*-*) ;; | |
d0ac1c44 | 2427 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2428 | esac |
13b2be9c | 2429 | host=$ac_cv_host |
81ecdfbb RW |
2430 | ac_save_IFS=$IFS; IFS='-' |
2431 | set x $ac_cv_host | |
2432 | shift | |
2433 | host_cpu=$1 | |
2434 | host_vendor=$2 | |
2435 | shift; shift | |
2436 | # Remember, the first character of IFS is used to create $*, | |
2437 | # except with old shells: | |
2438 | host_os=$* | |
2439 | IFS=$ac_save_IFS | |
2440 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2441 | |
2442 | ||
81ecdfbb RW |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2444 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2445 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
2446 | $as_echo_n "(cached) " >&6 |
2447 | else | |
2448 | if test "x$target_alias" = x; then | |
2449 | ac_cv_target=$ac_cv_host | |
13b2be9c | 2450 | else |
81ecdfbb | 2451 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
d0ac1c44 | 2452 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2453 | fi |
13b2be9c DJ |
2454 | |
2455 | fi | |
81ecdfbb RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2457 | $as_echo "$ac_cv_target" >&6; } | |
2458 | case $ac_cv_target in | |
2459 | *-*-*) ;; | |
d0ac1c44 | 2460 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2461 | esac |
13b2be9c | 2462 | target=$ac_cv_target |
81ecdfbb RW |
2463 | ac_save_IFS=$IFS; IFS='-' |
2464 | set x $ac_cv_target | |
2465 | shift | |
2466 | target_cpu=$1 | |
2467 | target_vendor=$2 | |
2468 | shift; shift | |
2469 | # Remember, the first character of IFS is used to create $*, | |
2470 | # except with old shells: | |
2471 | target_os=$* | |
2472 | IFS=$ac_save_IFS | |
2473 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2474 | |
2475 | ||
2476 | # The aliases save the names the user supplied, while $host etc. | |
2477 | # will get canonicalized. | |
2478 | test -n "$target_alias" && | |
2479 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2480 | NONENONEs,x,x, && | |
2481 | program_prefix=${target_alias}- | |
d0ac1c44 | 2482 | |
23d61380 AM |
2483 | am__api_version='1.15' |
2484 | ||
2485 | # Find a good install program. We prefer a C program (faster), | |
2486 | # so one script is as good as another. But avoid the broken or | |
2487 | # incompatible versions: | |
2488 | # SysV /etc/install, /usr/sbin/install | |
2489 | # SunOS /usr/etc/install | |
2490 | # IRIX /sbin/install | |
2491 | # AIX /bin/install | |
2492 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2493 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2494 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2495 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2496 | # OS/2's system install, which has a completely different semantic | |
2497 | # ./install, which can be erroneously created by make from ./install.sh. | |
2498 | # Reject install programs that cannot install multiple files. | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2500 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2501 | if test -z "$INSTALL"; then | |
2502 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2503 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2504 | else |
23d61380 | 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13b2be9c DJ |
2506 | for as_dir in $PATH |
2507 | do | |
2508 | IFS=$as_save_IFS | |
2509 | test -z "$as_dir" && as_dir=. | |
23d61380 AM |
2510 | # Account for people who put trailing slashes in PATH elements. |
2511 | case $as_dir/ in #(( | |
2512 | ./ | .// | /[cC]/* | \ | |
2513 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2514 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2515 | /usr/ucb/* ) ;; | |
2516 | *) | |
2517 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2518 | # Don't use installbsd from OSF since it installs stuff as root | |
2519 | # by default. | |
2520 | for ac_prog in ginstall scoinst install; do | |
2521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2522 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2523 | if test $ac_prog = install && | |
2524 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2525 | # AIX install. It has an incompatible calling convention. | |
2526 | : | |
2527 | elif test $ac_prog = install && | |
2528 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2529 | # program-specific install script used by HP pwplus--don't use. | |
2530 | : | |
2531 | else | |
2532 | rm -rf conftest.one conftest.two conftest.dir | |
2533 | echo one > conftest.one | |
2534 | echo two > conftest.two | |
2535 | mkdir conftest.dir | |
2536 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2537 | test -s conftest.one && test -s conftest.two && | |
2538 | test -s conftest.dir/conftest.one && | |
2539 | test -s conftest.dir/conftest.two | |
2540 | then | |
2541 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2542 | break 3 | |
2543 | fi | |
2544 | fi | |
2545 | fi | |
2546 | done | |
2547 | done | |
2548 | ;; | |
2549 | esac | |
2550 | ||
81ecdfbb RW |
2551 | done |
2552 | IFS=$as_save_IFS | |
13b2be9c | 2553 | |
23d61380 AM |
2554 | rm -rf conftest.one conftest.two conftest.dir |
2555 | ||
252b5132 RH |
2556 | fi |
2557 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 2558 | INSTALL=$ac_cv_path_install |
252b5132 | 2559 | else |
58c85be7 RW |
2560 | # As a last resort, use the slow shell script. Don't cache a |
2561 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2562 | # break other packages using the cache if that directory is |
58c85be7 | 2563 | # removed, or if the value is a relative name. |
13b2be9c | 2564 | INSTALL=$ac_install_sh |
252b5132 RH |
2565 | fi |
2566 | fi | |
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2568 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2569 | |
2570 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2571 | # It thinks the first close brace ends the variable substitution. | |
2572 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2573 | ||
13b2be9c | 2574 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2575 | |
2576 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2577 | ||
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2579 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2580 | # Reject unsafe characters in $srcdir or the absolute working directory |
2581 | # name. Accept space and tab only in the latter. | |
2582 | am_lf=' | |
2583 | ' | |
2584 | case `pwd` in | |
2585 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2586 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2587 | esac |
2588 | case $srcdir in | |
2589 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2590 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2591 | esac |
2592 | ||
d0ac1c44 | 2593 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2594 | # arguments. Must try -L first in case configure is actually a |
2595 | # symlink; some systems play weird games with the mod time of symlinks | |
2596 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2597 | # directory). | |
2598 | if ( | |
d0ac1c44 SM |
2599 | am_has_slept=no |
2600 | for am_try in 1 2; do | |
2601 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2602 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2603 | if test "$*" = "X"; then | |
2604 | # -L didn't work. | |
2605 | set X `ls -t "$srcdir/configure" conftest.file` | |
2606 | fi | |
2607 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2608 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2609 | ||
2610 | # If neither matched, then we have a broken ls. This can happen | |
2611 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2612 | # broken ls alias from the environment. This has actually | |
2613 | # happened. Such a system could not be considered "sane". | |
2614 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2615 | alias in your environment" "$LINENO" 5 | |
2616 | fi | |
2617 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2618 | break | |
2619 | fi | |
2620 | # Just in case. | |
2621 | sleep 1 | |
2622 | am_has_slept=yes | |
2623 | done | |
13b2be9c DJ |
2624 | test "$2" = conftest.file |
2625 | ) | |
2626 | then | |
2627 | # Ok. | |
2628 | : | |
2629 | else | |
d0ac1c44 | 2630 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2631 | Check your system clock" "$LINENO" 5 |
13b2be9c | 2632 | fi |
81ecdfbb RW |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2634 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2635 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2636 | # generated files are strictly newer. | |
2637 | am_sleep_pid= | |
2638 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2639 | ( sleep 1 ) & | |
2640 | am_sleep_pid=$! | |
2641 | fi | |
2642 | ||
2643 | rm -f conftest.file | |
2644 | ||
13b2be9c | 2645 | test "$program_prefix" != NONE && |
81ecdfbb | 2646 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
13b2be9c DJ |
2647 | # Use a double $ so make ignores it. |
2648 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2649 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2650 | # Double any \ or $. | |
13b2be9c | 2651 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2652 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2653 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
13b2be9c | 2654 | |
23d61380 AM |
2655 | # Expand $ac_aux_dir to an absolute path. |
2656 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2657 | ||
81ecdfbb RW |
2658 | if test x"${MISSING+set}" != xset; then |
2659 | case $am_aux_dir in | |
2660 | *\ * | *\ *) | |
2661 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2662 | *) | |
2663 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2664 | esac | |
2665 | fi | |
13b2be9c | 2666 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2667 | if eval "$MISSING --is-lightweight"; then |
2668 | am_missing_run="$MISSING " | |
13b2be9c DJ |
2669 | else |
2670 | am_missing_run= | |
d0ac1c44 SM |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2672 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
ab509236 L |
2673 | fi |
2674 | ||
d0ac1c44 | 2675 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2676 | case $am_aux_dir in |
2677 | *\ * | *\ *) | |
2678 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2679 | *) | |
2680 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2681 | esac | |
2682 | fi | |
2683 | ||
d0ac1c44 SM |
2684 | # Installed binaries are usually stripped using 'strip' when the user |
2685 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2686 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2687 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2688 | if test "$cross_compiling" != no; then |
2689 | if test -n "$ac_tool_prefix"; then | |
2690 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2691 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2693 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2694 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 2695 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2696 | else |
81ecdfbb RW |
2697 | if test -n "$STRIP"; then |
2698 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13b2be9c DJ |
2699 | else |
2700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2701 | for as_dir in $PATH | |
2702 | do | |
2703 | IFS=$as_save_IFS | |
2704 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2705 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2707 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13b2be9c DJ |
2709 | break 2 |
2710 | fi | |
2711 | done | |
81ecdfbb RW |
2712 | done |
2713 | IFS=$as_save_IFS | |
13b2be9c DJ |
2714 | |
2715 | fi | |
2716 | fi | |
81ecdfbb RW |
2717 | STRIP=$ac_cv_prog_STRIP |
2718 | if test -n "$STRIP"; then | |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2720 | $as_echo "$STRIP" >&6; } | |
13b2be9c | 2721 | else |
81ecdfbb RW |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2723 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2724 | fi |
2725 | ||
13b2be9c | 2726 | |
81ecdfbb RW |
2727 | fi |
2728 | if test -z "$ac_cv_prog_STRIP"; then | |
2729 | ac_ct_STRIP=$STRIP | |
2730 | # Extract the first word of "strip", so it can be a program name with args. | |
2731 | set dummy strip; ac_word=$2 | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2733 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2734 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 2735 | $as_echo_n "(cached) " >&6 |
13b2be9c | 2736 | else |
81ecdfbb RW |
2737 | if test -n "$ac_ct_STRIP"; then |
2738 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13b2be9c | 2739 | else |
81ecdfbb RW |
2740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2741 | for as_dir in $PATH | |
2742 | do | |
2743 | IFS=$as_save_IFS | |
2744 | test -z "$as_dir" && as_dir=. | |
2745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2746 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2747 | ac_cv_prog_ac_ct_STRIP="strip" |
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2749 | break 2 | |
2750 | fi | |
2751 | done | |
2752 | done | |
2753 | IFS=$as_save_IFS | |
2754 | ||
2755 | fi | |
2756 | fi | |
2757 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2758 | if test -n "$ac_ct_STRIP"; then | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2760 | $as_echo "$ac_ct_STRIP" >&6; } | |
2761 | else | |
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2763 | $as_echo "no" >&6; } | |
2764 | fi | |
2765 | ||
2766 | if test "x$ac_ct_STRIP" = x; then | |
2767 | STRIP=":" | |
2768 | else | |
2769 | case $cross_compiling:$ac_tool_warned in | |
2770 | yes:) | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2773 | ac_tool_warned=yes ;; | |
2774 | esac | |
2775 | STRIP=$ac_ct_STRIP | |
2776 | fi | |
2777 | else | |
2778 | STRIP="$ac_cv_prog_STRIP" | |
2779 | fi | |
2780 | ||
2781 | fi | |
2782 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2783 | ||
2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2785 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2786 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2787 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2788 | $as_echo_n "(cached) " >&6 |
2789 | else | |
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2791 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2792 | do | |
2793 | IFS=$as_save_IFS | |
2794 | test -z "$as_dir" && as_dir=. | |
2795 | for ac_prog in mkdir gmkdir; do | |
2796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2797 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2798 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2799 | 'mkdir (GNU coreutils) '* | \ | |
2800 | 'mkdir (coreutils) '* | \ | |
2801 | 'mkdir (fileutils) '4.1*) | |
2802 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2803 | break 3;; | |
2804 | esac | |
2805 | done | |
2806 | done | |
2807 | done | |
2808 | IFS=$as_save_IFS | |
2809 | ||
2810 | fi | |
2811 | ||
d0ac1c44 | 2812 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
2813 | if test "${ac_cv_path_mkdir+set}" = set; then |
2814 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2815 | else | |
2816 | # As a last resort, use the slow shell script. Don't cache a | |
2817 | # value for MKDIR_P within a source directory, because that will | |
2818 | # break other packages using the cache if that directory is | |
2819 | # removed, or if the value is a relative name. | |
81ecdfbb RW |
2820 | MKDIR_P="$ac_install_sh -d" |
2821 | fi | |
2822 | fi | |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2824 | $as_echo "$MKDIR_P" >&6; } | |
2825 | ||
81ecdfbb RW |
2826 | for ac_prog in gawk mawk nawk awk |
2827 | do | |
2828 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2829 | set dummy $ac_prog; ac_word=$2 | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2831 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2832 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb RW |
2833 | $as_echo_n "(cached) " >&6 |
2834 | else | |
2835 | if test -n "$AWK"; then | |
2836 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2837 | else | |
2838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2839 | for as_dir in $PATH | |
2840 | do | |
2841 | IFS=$as_save_IFS | |
2842 | test -z "$as_dir" && as_dir=. | |
2843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2845 | ac_cv_prog_AWK="$ac_prog" |
2846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2847 | break 2 | |
2848 | fi | |
2849 | done | |
2850 | done | |
2851 | IFS=$as_save_IFS | |
2852 | ||
2853 | fi | |
2854 | fi | |
2855 | AWK=$ac_cv_prog_AWK | |
2856 | if test -n "$AWK"; then | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2858 | $as_echo "$AWK" >&6; } | |
2859 | else | |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2861 | $as_echo "no" >&6; } | |
13b2be9c | 2862 | fi |
81ecdfbb RW |
2863 | |
2864 | ||
2865 | test -n "$AWK" && break | |
2866 | done | |
2867 | ||
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2869 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2870 | set x ${MAKE-make} | |
2871 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 2872 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb RW |
2873 | $as_echo_n "(cached) " >&6 |
2874 | else | |
2875 | cat >conftest.make <<\_ACEOF | |
2876 | SHELL = /bin/sh | |
2877 | all: | |
2878 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2879 | _ACEOF | |
d0ac1c44 | 2880 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2881 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2882 | *@@@%%%=?*=@@@%%%*) | |
2883 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2884 | *) | |
2885 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2886 | esac | |
13b2be9c DJ |
2887 | rm -f conftest.make |
2888 | fi | |
81ecdfbb RW |
2889 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2891 | $as_echo "yes" >&6; } | |
13b2be9c DJ |
2892 | SET_MAKE= |
2893 | else | |
81ecdfbb RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2895 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2896 | SET_MAKE="MAKE=${MAKE-make}" |
2897 | fi | |
2898 | ||
2899 | rm -rf .tst 2>/dev/null | |
2900 | mkdir .tst 2>/dev/null | |
2901 | if test -d .tst; then | |
2902 | am__leading_dot=. | |
2903 | else | |
2904 | am__leading_dot=_ | |
2905 | fi | |
2906 | rmdir .tst 2>/dev/null | |
2907 | ||
d0ac1c44 SM |
2908 | # Check whether --enable-silent-rules was given. |
2909 | if test "${enable_silent_rules+set}" = set; then : | |
2910 | enableval=$enable_silent_rules; | |
2911 | fi | |
2912 | ||
2913 | case $enable_silent_rules in # ((( | |
2914 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2915 | no) AM_DEFAULT_VERBOSITY=1;; | |
2916 | *) AM_DEFAULT_VERBOSITY=1;; | |
2917 | esac | |
2918 | am_make=${MAKE-make} | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2920 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2921 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2922 | $as_echo_n "(cached) " >&6 | |
2923 | else | |
2924 | if $as_echo 'TRUE=$(BAR$(V)) | |
2925 | BAR0=false | |
2926 | BAR1=true | |
2927 | V=1 | |
2928 | am__doit: | |
2929 | @$(TRUE) | |
2930 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2931 | am_cv_make_support_nested_variables=yes | |
2932 | else | |
2933 | am_cv_make_support_nested_variables=no | |
2934 | fi | |
2935 | fi | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2937 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2938 | if test $am_cv_make_support_nested_variables = yes; then | |
2939 | AM_V='$(V)' | |
2940 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2941 | else | |
2942 | AM_V=$AM_DEFAULT_VERBOSITY | |
2943 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2944 | fi | |
2945 | AM_BACKSLASH='\' | |
2946 | ||
81ecdfbb RW |
2947 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2948 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2949 | # is not polluted with repeated "-I." | |
2950 | am__isrc=' -I$(srcdir)' | |
2951 | # test to see if srcdir already configured | |
2952 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 2953 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 2954 | fi |
13b2be9c DJ |
2955 | fi |
2956 | ||
2957 | # test whether we have cygpath | |
2958 | if test -z "$CYGPATH_W"; then | |
2959 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2960 | CYGPATH_W='cygpath -w' | |
2961 | else | |
2962 | CYGPATH_W=echo | |
2963 | fi | |
2964 | fi | |
2965 | ||
2966 | ||
2967 | # Define the identity of the package. | |
2e98a7bd | 2968 | PACKAGE='gas' |
346d80ef | 2969 | VERSION='2.37.50' |
13b2be9c DJ |
2970 | |
2971 | ||
2972 | cat >>confdefs.h <<_ACEOF | |
2973 | #define PACKAGE "$PACKAGE" | |
2974 | _ACEOF | |
2975 | ||
2976 | ||
2977 | cat >>confdefs.h <<_ACEOF | |
2978 | #define VERSION "$VERSION" | |
2979 | _ACEOF | |
2980 | ||
2981 | # Some tools Automake needs. | |
2982 | ||
2983 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2984 | ||
2985 | ||
2986 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2987 | ||
2988 | ||
2989 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2990 | ||
2991 | ||
2992 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2993 | ||
2994 | ||
2995 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2996 | ||
d0ac1c44 SM |
2997 | # For better backward compatibility. To be removed once Automake 1.9.x |
2998 | # dies out for good. For more background, see: | |
2999 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3000 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3001 | mkdir_p='$(MKDIR_P)' | |
3002 | ||
3003 | # We need awk for the "check" target (and possibly the TAP driver). The | |
23d61380 AM |
3004 | # system "awk" is bad on some platforms. |
3005 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3006 | # in the wild :-( We should find a proper way to deprecate it ... | |
3007 | AMTAR='$${TAR-tar}' | |
3008 | ||
3009 | ||
3010 | # We'll loop over all known methods to create a tar archive until one works. | |
3011 | _am_tools='gnutar pax cpio none' | |
3012 | ||
3013 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
252b5132 | 3014 | |
252b5132 | 3015 | |
252b5132 | 3016 | |
252b5132 | 3017 | |
d6d788bd L |
3018 | |
3019 | ||
d0ac1c44 SM |
3020 | # POSIX will say in a future version that running "rm -f" with no argument |
3021 | # is OK; and we want to be able to make that assumption in our Makefile | |
3022 | # recipes. So use an aggressive probe to check that the usage we want is | |
3023 | # actually supported "in the wild" to an acceptable degree. | |
3024 | # See automake bug#10828. | |
3025 | # To make any issue more visible, cause the running configure to be aborted | |
3026 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3027 | # user can still override this though. | |
3028 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3029 | cat >&2 <<'END' | |
3030 | Oops! | |
3031 | ||
3032 | Your 'rm' program seems unable to run without file operands specified | |
3033 | on the command line, even when the '-f' option is present. This is contrary | |
3034 | to the behaviour of most rm programs out there, and not conforming with | |
3035 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3036 | ||
3037 | Please tell [email protected] about your system, including the value | |
3038 | of your $PATH and any error possibly output before this message. This | |
3039 | can help us improve future automake versions. | |
3040 | ||
3041 | END | |
3042 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3043 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3044 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3045 | echo >&2 | |
3046 | else | |
3047 | cat >&2 <<'END' | |
3048 | Aborting the configuration process, to ensure you take notice of the issue. | |
3049 | ||
3050 | You can download and install GNU coreutils to get an 'rm' implementation | |
3051 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3052 | ||
3053 | If you want to complete the configuration process using your problematic | |
3054 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3055 | to "yes", and re-run configure. | |
3056 | ||
3057 | END | |
3058 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3059 | fi | |
3060 | fi | |
3061 | ||
13b2be9c | 3062 | |
ce2cded5 L |
3063 | ac_ext=c |
3064 | ac_cpp='$CPP $CPPFLAGS' | |
3065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3068 | if test -n "$ac_tool_prefix"; then | |
3069 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3070 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3072 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3073 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3074 | $as_echo_n "(cached) " >&6 |
252b5132 | 3075 | else |
ce2cded5 L |
3076 | if test -n "$CC"; then |
3077 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3078 | else |
ce2cded5 L |
3079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3080 | for as_dir in $PATH | |
3081 | do | |
3082 | IFS=$as_save_IFS | |
3083 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3084 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3086 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3088 | break 2 |
3089 | fi | |
3090 | done | |
81ecdfbb RW |
3091 | done |
3092 | IFS=$as_save_IFS | |
d7040cdb | 3093 | |
ce2cded5 L |
3094 | fi |
3095 | fi | |
3096 | CC=$ac_cv_prog_CC | |
3097 | if test -n "$CC"; then | |
81ecdfbb RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3099 | $as_echo "$CC" >&6; } | |
bedf545c | 3100 | else |
81ecdfbb RW |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3102 | $as_echo "no" >&6; } | |
ce2cded5 | 3103 | fi |
d7040cdb | 3104 | |
81ecdfbb | 3105 | |
ce2cded5 L |
3106 | fi |
3107 | if test -z "$ac_cv_prog_CC"; then | |
3108 | ac_ct_CC=$CC | |
3109 | # Extract the first word of "gcc", so it can be a program name with args. | |
3110 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3112 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3113 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3114 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3115 | else |
ce2cded5 L |
3116 | if test -n "$ac_ct_CC"; then |
3117 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3118 | else | |
d7040cdb SE |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3124 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3126 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 3128 | break 2 |
d7040cdb | 3129 | fi |
ce2cded5 | 3130 | done |
81ecdfbb RW |
3131 | done |
3132 | IFS=$as_save_IFS | |
d7040cdb | 3133 | |
ce2cded5 L |
3134 | fi |
3135 | fi | |
3136 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3137 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3139 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 3140 | else |
81ecdfbb RW |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3142 | $as_echo "no" >&6; } | |
d7040cdb SE |
3143 | fi |
3144 | ||
81ecdfbb RW |
3145 | if test "x$ac_ct_CC" = x; then |
3146 | CC="" | |
3147 | else | |
3148 | case $cross_compiling:$ac_tool_warned in | |
3149 | yes:) | |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3151 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3152 | ac_tool_warned=yes ;; | |
3153 | esac | |
3154 | CC=$ac_ct_CC | |
3155 | fi | |
ce2cded5 L |
3156 | else |
3157 | CC="$ac_cv_prog_CC" | |
3158 | fi | |
d7040cdb | 3159 | |
ce2cded5 | 3160 | if test -z "$CC"; then |
81ecdfbb RW |
3161 | if test -n "$ac_tool_prefix"; then |
3162 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 3163 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3165 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3166 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3167 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3168 | else |
ce2cded5 L |
3169 | if test -n "$CC"; then |
3170 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3171 | else |
ce2cded5 L |
3172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3173 | for as_dir in $PATH | |
3174 | do | |
3175 | IFS=$as_save_IFS | |
3176 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3177 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3179 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3181 | break 2 |
3182 | fi | |
3183 | done | |
81ecdfbb RW |
3184 | done |
3185 | IFS=$as_save_IFS | |
d7040cdb | 3186 | |
252b5132 RH |
3187 | fi |
3188 | fi | |
ce2cded5 L |
3189 | CC=$ac_cv_prog_CC |
3190 | if test -n "$CC"; then | |
81ecdfbb RW |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3192 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3193 | else |
81ecdfbb RW |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3195 | $as_echo "no" >&6; } | |
d7040cdb | 3196 | fi |
f9c19112 | 3197 | |
ce2cded5 | 3198 | |
81ecdfbb | 3199 | fi |
ce2cded5 L |
3200 | fi |
3201 | if test -z "$CC"; then | |
3202 | # Extract the first word of "cc", so it can be a program name with args. | |
3203 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3206 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3207 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
3208 | else |
3209 | if test -n "$CC"; then | |
3210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3211 | else | |
3212 | ac_prog_rejected=no | |
3213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3214 | for as_dir in $PATH | |
3215 | do | |
3216 | IFS=$as_save_IFS | |
3217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3218 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 L |
3220 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3221 | ac_prog_rejected=yes | |
3222 | continue | |
3223 | fi | |
3224 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3226 | break 2 |
3227 | fi | |
3228 | done | |
81ecdfbb RW |
3229 | done |
3230 | IFS=$as_save_IFS | |
ce2cded5 L |
3231 | |
3232 | if test $ac_prog_rejected = yes; then | |
3233 | # We found a bogon in the path, so make sure we never use it. | |
3234 | set dummy $ac_cv_prog_CC | |
3235 | shift | |
3236 | if test $# != 0; then | |
3237 | # We chose a different compiler from the bogus one. | |
3238 | # However, it has the same basename, so the bogon will be chosen | |
3239 | # first if we set CC to just the basename; use the full file name. | |
3240 | shift | |
3241 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3242 | fi | |
3243 | fi | |
3244 | fi | |
3245 | fi | |
3246 | CC=$ac_cv_prog_CC | |
3247 | if test -n "$CC"; then | |
81ecdfbb RW |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3249 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3250 | else |
81ecdfbb RW |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3252 | $as_echo "no" >&6; } | |
ce2cded5 L |
3253 | fi |
3254 | ||
81ecdfbb | 3255 | |
ce2cded5 L |
3256 | fi |
3257 | if test -z "$CC"; then | |
3258 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3259 | for ac_prog in cl.exe |
ce2cded5 L |
3260 | do |
3261 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3262 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3264 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3265 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3266 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
3267 | else |
3268 | if test -n "$CC"; then | |
3269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3270 | else | |
3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3272 | for as_dir in $PATH | |
3273 | do | |
3274 | IFS=$as_save_IFS | |
3275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3276 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3278 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3280 | break 2 |
3281 | fi | |
3282 | done | |
81ecdfbb RW |
3283 | done |
3284 | IFS=$as_save_IFS | |
ce2cded5 L |
3285 | |
3286 | fi | |
3287 | fi | |
3288 | CC=$ac_cv_prog_CC | |
3289 | if test -n "$CC"; then | |
81ecdfbb RW |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3291 | $as_echo "$CC" >&6; } | |
ce2cded5 | 3292 | else |
81ecdfbb RW |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3294 | $as_echo "no" >&6; } | |
ce2cded5 L |
3295 | fi |
3296 | ||
81ecdfbb | 3297 | |
ce2cded5 | 3298 | test -n "$CC" && break |
d7040cdb SE |
3299 | done |
3300 | fi | |
ce2cded5 L |
3301 | if test -z "$CC"; then |
3302 | ac_ct_CC=$CC | |
81ecdfbb | 3303 | for ac_prog in cl.exe |
d7040cdb SE |
3304 | do |
3305 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3306 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3308 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3309 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3310 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3311 | else |
ce2cded5 L |
3312 | if test -n "$ac_ct_CC"; then |
3313 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3314 | else |
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3316 | for as_dir in $PATH | |
3317 | do | |
3318 | IFS=$as_save_IFS | |
3319 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3320 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 3322 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 3324 | break 2 |
ac48eca1 | 3325 | fi |
d7040cdb | 3326 | done |
81ecdfbb RW |
3327 | done |
3328 | IFS=$as_save_IFS | |
ac48eca1 | 3329 | |
d7040cdb SE |
3330 | fi |
3331 | fi | |
ce2cded5 L |
3332 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3333 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3335 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 3336 | else |
81ecdfbb RW |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3338 | $as_echo "no" >&6; } | |
d7040cdb | 3339 | fi |
ac48eca1 | 3340 | |
81ecdfbb | 3341 | |
ce2cded5 | 3342 | test -n "$ac_ct_CC" && break |
d7040cdb | 3343 | done |
ac48eca1 | 3344 | |
81ecdfbb RW |
3345 | if test "x$ac_ct_CC" = x; then |
3346 | CC="" | |
3347 | else | |
3348 | case $cross_compiling:$ac_tool_warned in | |
3349 | yes:) | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3351 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3352 | ac_tool_warned=yes ;; | |
3353 | esac | |
3354 | CC=$ac_ct_CC | |
3355 | fi | |
d7040cdb | 3356 | fi |
ac48eca1 | 3357 | |
d7040cdb | 3358 | fi |
ac48eca1 | 3359 | |
ac48eca1 | 3360 | |
81ecdfbb RW |
3361 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3362 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3363 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3364 | See \`config.log' for more details" "$LINENO" 5; } | |
6be7c12c | 3365 | |
ce2cded5 | 3366 | # Provide some information about the compiler. |
81ecdfbb RW |
3367 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3368 | set X $ac_compile | |
3369 | ac_compiler=$2 | |
3370 | for ac_option in --version -v -V -qversion; do | |
3371 | { { ac_try="$ac_compiler $ac_option >&5" | |
3372 | case "(($ac_try" in | |
3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3374 | *) ac_try_echo=$ac_try;; | |
3375 | esac | |
3376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3377 | $as_echo "$ac_try_echo"; } >&5 | |
3378 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 3379 | ac_status=$? |
81ecdfbb RW |
3380 | if test -s conftest.err; then |
3381 | sed '10a\ | |
3382 | ... rest of stderr output deleted ... | |
3383 | 10q' conftest.err >conftest.er1 | |
3384 | cat conftest.er1 >&5 | |
81ecdfbb | 3385 | fi |
d0ac1c44 | 3386 | rm -f conftest.er1 conftest.err |
81ecdfbb | 3387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
23d61380 AM |
3388 | test $ac_status = 0; } |
3389 | done | |
3390 | ||
3391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3392 | /* end confdefs.h. */ | |
3393 | ||
3394 | int | |
3395 | main () | |
3396 | { | |
3397 | ||
3398 | ; | |
3399 | return 0; | |
3400 | } | |
3401 | _ACEOF | |
3402 | ac_clean_files_save=$ac_clean_files | |
3403 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3404 | # Try to create an executable without -o first, disregard a.out. | |
3405 | # It will help us diagnose broken compilers, and finding out an intuition | |
3406 | # of exeext. | |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3408 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3409 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3410 | ||
3411 | # The possible output files: | |
3412 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3413 | ||
3414 | ac_rmfiles= | |
3415 | for ac_file in $ac_files | |
3416 | do | |
3417 | case $ac_file in | |
3418 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3419 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3420 | esac | |
3421 | done | |
3422 | rm -f $ac_rmfiles | |
3423 | ||
3424 | if { { ac_try="$ac_link_default" | |
3425 | case "(($ac_try" in | |
3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3427 | *) ac_try_echo=$ac_try;; | |
3428 | esac | |
3429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3430 | $as_echo "$ac_try_echo"; } >&5 | |
3431 | (eval "$ac_link_default") 2>&5 | |
3432 | ac_status=$? | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3434 | test $ac_status = 0; }; then : | |
3435 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3436 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3437 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3438 | # so that the user can short-circuit this test for compilers unknown to | |
3439 | # Autoconf. | |
3440 | for ac_file in $ac_files '' | |
3441 | do | |
3442 | test -f "$ac_file" || continue | |
3443 | case $ac_file in | |
3444 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3445 | ;; | |
3446 | [ab].out ) | |
3447 | # We found the default executable, but exeext='' is most | |
3448 | # certainly right. | |
3449 | break;; | |
3450 | *.* ) | |
3451 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3452 | then :; else | |
3453 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3454 | fi | |
3455 | # We set ac_cv_exeext here because the later test for it is not | |
3456 | # safe: cross compilers may not add the suffix if given an `-o' | |
3457 | # argument, so we may need to know it at that point already. | |
3458 | # Even if this section looks crufty: it has the advantage of | |
3459 | # actually working. | |
3460 | break;; | |
3461 | * ) | |
3462 | break;; | |
3463 | esac | |
3464 | done | |
3465 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3466 | ||
3467 | else | |
3468 | ac_file='' | |
3469 | fi | |
3470 | if test -z "$ac_file"; then : | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3472 | $as_echo "no" >&6; } | |
3473 | $as_echo "$as_me: failed program was:" >&5 | |
3474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3475 | ||
3476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3478 | as_fn_error 77 "C compiler cannot create executables | |
3479 | See \`config.log' for more details" "$LINENO" 5; } | |
3480 | else | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3482 | $as_echo "yes" >&6; } | |
3483 | fi | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3485 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3487 | $as_echo "$ac_file" >&6; } | |
3488 | ac_exeext=$ac_cv_exeext | |
3489 | ||
3490 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3491 | ac_clean_files=$ac_clean_files_save | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3493 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3494 | if { { ac_try="$ac_link" | |
3495 | case "(($ac_try" in | |
3496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3497 | *) ac_try_echo=$ac_try;; | |
3498 | esac | |
3499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3500 | $as_echo "$ac_try_echo"; } >&5 | |
3501 | (eval "$ac_link") 2>&5 | |
3502 | ac_status=$? | |
3503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3504 | test $ac_status = 0; }; then : | |
3505 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3506 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3507 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3508 | # `rm'. | |
3509 | for ac_file in conftest.exe conftest conftest.*; do | |
3510 | test -f "$ac_file" || continue | |
3511 | case $ac_file in | |
3512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3513 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3514 | break;; | |
3515 | * ) break;; | |
3516 | esac | |
3517 | done | |
3518 | else | |
3519 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3521 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3522 | See \`config.log' for more details" "$LINENO" 5; } | |
3523 | fi | |
3524 | rm -f conftest conftest$ac_cv_exeext | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3526 | $as_echo "$ac_cv_exeext" >&6; } | |
3527 | ||
3528 | rm -f conftest.$ac_ext | |
3529 | EXEEXT=$ac_cv_exeext | |
3530 | ac_exeext=$EXEEXT | |
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3532 | /* end confdefs.h. */ | |
3533 | #include <stdio.h> | |
3534 | int | |
3535 | main () | |
3536 | { | |
3537 | FILE *f = fopen ("conftest.out", "w"); | |
3538 | return ferror (f) || fclose (f) != 0; | |
3539 | ||
3540 | ; | |
3541 | return 0; | |
3542 | } | |
3543 | _ACEOF | |
3544 | ac_clean_files="$ac_clean_files conftest.out" | |
3545 | # Check that the compiler produces executables we can run. If not, either | |
3546 | # the compiler is broken, or we cross compile. | |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3548 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3549 | if test "$cross_compiling" != yes; then | |
3550 | { { ac_try="$ac_link" | |
3551 | case "(($ac_try" in | |
3552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3553 | *) ac_try_echo=$ac_try;; | |
3554 | esac | |
3555 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3556 | $as_echo "$ac_try_echo"; } >&5 | |
3557 | (eval "$ac_link") 2>&5 | |
3558 | ac_status=$? | |
3559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3560 | test $ac_status = 0; } | |
3561 | if { ac_try='./conftest$ac_cv_exeext' | |
3562 | { { case "(($ac_try" in | |
3563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3564 | *) ac_try_echo=$ac_try;; | |
3565 | esac | |
3566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3567 | $as_echo "$ac_try_echo"; } >&5 | |
3568 | (eval "$ac_try") 2>&5 | |
3569 | ac_status=$? | |
3570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3571 | test $ac_status = 0; }; }; then | |
3572 | cross_compiling=no | |
3573 | else | |
3574 | if test "$cross_compiling" = maybe; then | |
3575 | cross_compiling=yes | |
3576 | else | |
3577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3579 | as_fn_error $? "cannot run C compiled programs. | |
3580 | If you meant to cross compile, use \`--host'. | |
3581 | See \`config.log' for more details" "$LINENO" 5; } | |
3582 | fi | |
3583 | fi | |
3584 | fi | |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3586 | $as_echo "$cross_compiling" >&6; } | |
3587 | ||
3588 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3589 | ac_clean_files=$ac_clean_files_save | |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3591 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3592 | if ${ac_cv_objext+:} false; then : | |
3593 | $as_echo_n "(cached) " >&6 | |
3594 | else | |
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3596 | /* end confdefs.h. */ | |
3597 | ||
3598 | int | |
3599 | main () | |
3600 | { | |
3601 | ||
3602 | ; | |
3603 | return 0; | |
3604 | } | |
3605 | _ACEOF | |
3606 | rm -f conftest.o conftest.obj | |
3607 | if { { ac_try="$ac_compile" | |
3608 | case "(($ac_try" in | |
3609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3610 | *) ac_try_echo=$ac_try;; | |
3611 | esac | |
3612 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3613 | $as_echo "$ac_try_echo"; } >&5 | |
3614 | (eval "$ac_compile") 2>&5 | |
3615 | ac_status=$? | |
3616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3617 | test $ac_status = 0; }; then : | |
3618 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3619 | test -f "$ac_file" || continue; | |
3620 | case $ac_file in | |
3621 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3622 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3623 | break;; | |
3624 | esac | |
81ecdfbb | 3625 | done |
23d61380 AM |
3626 | else |
3627 | $as_echo "$as_me: failed program was:" >&5 | |
3628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 3629 | |
23d61380 AM |
3630 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3631 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3632 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3633 | See \`config.log' for more details" "$LINENO" 5; } | |
3634 | fi | |
3635 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3636 | fi | |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3638 | $as_echo "$ac_cv_objext" >&6; } | |
3639 | OBJEXT=$ac_cv_objext | |
3640 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3642 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3643 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3644 | $as_echo_n "(cached) " >&6 |
d7040cdb | 3645 | else |
81ecdfbb | 3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 3647 | /* end confdefs.h. */ |
c8615825 | 3648 | |
ce2cded5 L |
3649 | int |
3650 | main () | |
3651 | { | |
3652 | #ifndef __GNUC__ | |
3653 | choke me | |
3654 | #endif | |
3655 | ||
3656 | ; | |
3657 | return 0; | |
3658 | } | |
3659 | _ACEOF | |
81ecdfbb | 3660 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 3661 | ac_compiler_gnu=yes |
d7040cdb | 3662 | else |
81ecdfbb | 3663 | ac_compiler_gnu=no |
d7040cdb | 3664 | fi |
81ecdfbb | 3665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 3666 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 3667 | |
ce2cded5 | 3668 | fi |
81ecdfbb RW |
3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3670 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3671 | if test $ac_compiler_gnu = yes; then | |
3672 | GCC=yes | |
3673 | else | |
3674 | GCC= | |
3675 | fi | |
ce2cded5 L |
3676 | ac_test_CFLAGS=${CFLAGS+set} |
3677 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3679 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3680 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3681 | $as_echo_n "(cached) " >&6 |
3682 | else | |
3683 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3684 | ac_c_werror_flag=yes | |
3685 | ac_cv_prog_cc_g=no | |
3686 | CFLAGS="-g" | |
3687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 3688 | /* end confdefs.h. */ |
d7040cdb | 3689 | |
ce2cded5 L |
3690 | int |
3691 | main () | |
3692 | { | |
d7040cdb | 3693 | |
ce2cded5 L |
3694 | ; |
3695 | return 0; | |
3696 | } | |
3697 | _ACEOF | |
81ecdfbb | 3698 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
3699 | ac_cv_prog_cc_g=yes |
3700 | else | |
81ecdfbb RW |
3701 | CFLAGS="" |
3702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3703 | /* end confdefs.h. */ | |
3704 | ||
3705 | int | |
3706 | main () | |
3707 | { | |
3708 | ||
3709 | ; | |
3710 | return 0; | |
3711 | } | |
3712 | _ACEOF | |
3713 | if ac_fn_c_try_compile "$LINENO"; then : | |
3714 | ||
3715 | else | |
3716 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3717 | CFLAGS="-g" | |
3718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3719 | /* end confdefs.h. */ | |
d70c5fc7 | 3720 | |
81ecdfbb RW |
3721 | int |
3722 | main () | |
3723 | { | |
3724 | ||
3725 | ; | |
3726 | return 0; | |
3727 | } | |
3728 | _ACEOF | |
3729 | if ac_fn_c_try_compile "$LINENO"; then : | |
3730 | ac_cv_prog_cc_g=yes | |
3731 | fi | |
3732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d70c5fc7 | 3733 | fi |
81ecdfbb | 3734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 3735 | fi |
81ecdfbb RW |
3736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3737 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3738 | fi | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3740 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
3741 | if test "$ac_test_CFLAGS" = set; then |
3742 | CFLAGS=$ac_save_CFLAGS | |
3743 | elif test $ac_cv_prog_cc_g = yes; then | |
3744 | if test "$GCC" = yes; then | |
3745 | CFLAGS="-g -O2" | |
3746 | else | |
3747 | CFLAGS="-g" | |
3748 | fi | |
ac48eca1 | 3749 | else |
ce2cded5 L |
3750 | if test "$GCC" = yes; then |
3751 | CFLAGS="-O2" | |
3752 | else | |
3753 | CFLAGS= | |
3754 | fi | |
ac48eca1 | 3755 | fi |
81ecdfbb RW |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3757 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3758 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3759 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 3760 | else |
81ecdfbb | 3761 | ac_cv_prog_cc_c89=no |
ce2cded5 | 3762 | ac_save_CC=$CC |
81ecdfbb | 3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
3764 | /* end confdefs.h. */ |
3765 | #include <stdarg.h> | |
3766 | #include <stdio.h> | |
d0ac1c44 | 3767 | struct stat; |
ce2cded5 L |
3768 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3769 | struct buf { int x; }; | |
3770 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3771 | static char *e (p, i) | |
3772 | char **p; | |
3773 | int i; | |
3774 | { | |
3775 | return p[i]; | |
3776 | } | |
3777 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3778 | { | |
3779 | char *s; | |
3780 | va_list v; | |
3781 | va_start (v,p); | |
3782 | s = g (p, va_arg (v,int)); | |
3783 | va_end (v); | |
3784 | return s; | |
3785 | } | |
3786 | ||
3787 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3788 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3789 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3790 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
3791 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3792 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3793 | that's true only with -std. */ |
ce2cded5 L |
3794 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3795 | ||
81ecdfbb RW |
3796 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3797 | inside strings and character constants. */ | |
3798 | #define FOO(x) 'x' | |
3799 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3800 | ||
ce2cded5 L |
3801 | int test (int i, double x); |
3802 | struct s1 {int (*f) (int a);}; | |
3803 | struct s2 {int (*f) (double a);}; | |
3804 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3805 | int argc; | |
3806 | char **argv; | |
3807 | int | |
3808 | main () | |
3809 | { | |
3810 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3811 | ; | |
3812 | return 0; | |
3813 | } | |
3814 | _ACEOF | |
81ecdfbb RW |
3815 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3816 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
3817 | do |
3818 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3819 | if ac_fn_c_try_compile "$LINENO"; then : |
3820 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 3821 | fi |
81ecdfbb RW |
3822 | rm -f core conftest.err conftest.$ac_objext |
3823 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 3824 | done |
81ecdfbb | 3825 | rm -f conftest.$ac_ext |
ce2cded5 L |
3826 | CC=$ac_save_CC |
3827 | ||
3828 | fi | |
81ecdfbb RW |
3829 | # AC_CACHE_VAL |
3830 | case "x$ac_cv_prog_cc_c89" in | |
3831 | x) | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3833 | $as_echo "none needed" >&6; } ;; | |
3834 | xno) | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3836 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 3837 | *) |
81ecdfbb RW |
3838 | CC="$CC $ac_cv_prog_cc_c89" |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3840 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 3841 | esac |
81ecdfbb | 3842 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 3843 | |
ce2cded5 | 3844 | fi |
d7040cdb | 3845 | |
23d61380 AM |
3846 | ac_ext=c |
3847 | ac_cpp='$CPP $CPPFLAGS' | |
3848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3851 | ||
3852 | ac_ext=c | |
3853 | ac_cpp='$CPP $CPPFLAGS' | |
3854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3858 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3859 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3860 | $as_echo_n "(cached) " >&6 | |
3861 | else | |
3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3863 | /* end confdefs.h. */ | |
3864 | ||
3865 | int | |
3866 | main () | |
3867 | { | |
3868 | ||
3869 | ; | |
3870 | return 0; | |
3871 | } | |
3872 | _ACEOF | |
3873 | # Make sure it works both with $CC and with simple cc. | |
3874 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3875 | # compilers refuse to overwrite an existing .o file with -o, | |
3876 | # though they will create one. | |
3877 | am_cv_prog_cc_c_o=yes | |
3878 | for am_i in 1 2; do | |
3879 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3880 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3881 | ac_status=$? | |
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3883 | (exit $ac_status); } \ | |
3884 | && test -f conftest2.$ac_objext; then | |
3885 | : OK | |
3886 | else | |
3887 | am_cv_prog_cc_c_o=no | |
3888 | break | |
3889 | fi | |
3890 | done | |
3891 | rm -f core conftest* | |
3892 | unset am_i | |
3893 | fi | |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3895 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3896 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3897 | # Losing compiler, so override with the script. | |
3898 | # FIXME: It is wrong to rewrite CC. | |
3899 | # But if we don't then we get into trouble of one sort or another. | |
3900 | # A longer-term fix would be to have automake use am__CC in this case, | |
3901 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3902 | CC="$am_aux_dir/compile $CC" | |
3903 | fi | |
3904 | ac_ext=c | |
3905 | ac_cpp='$CPP $CPPFLAGS' | |
3906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3909 | ||
3910 | DEPDIR="${am__leading_dot}deps" | |
3911 | ||
3912 | ac_config_commands="$ac_config_commands depfiles" | |
3913 | ||
3914 | ||
3915 | am_make=${MAKE-make} | |
3916 | cat > confinc << 'END' | |
3917 | am__doit: | |
3918 | @echo this is the am__doit target | |
3919 | .PHONY: am__doit | |
3920 | END | |
3921 | # If we don't find an include directive, just comment out the code. | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3923 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3924 | am__include="#" | |
3925 | am__quote= | |
3926 | _am_result=none | |
3927 | # First try GNU make style include. | |
3928 | echo "include confinc" > confmf | |
3929 | # Ignore all kinds of additional output from 'make'. | |
3930 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3931 | *the\ am__doit\ target*) | |
3932 | am__include=include | |
3933 | am__quote= | |
3934 | _am_result=GNU | |
3935 | ;; | |
3936 | esac | |
3937 | # Now try BSD make style include. | |
3938 | if test "$am__include" = "#"; then | |
3939 | echo '.include "confinc"' > confmf | |
3940 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3941 | *the\ am__doit\ target*) | |
3942 | am__include=.include | |
3943 | am__quote="\"" | |
3944 | _am_result=BSD | |
3945 | ;; | |
3946 | esac | |
3947 | fi | |
3948 | ||
3949 | ||
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3951 | $as_echo "$_am_result" >&6; } | |
3952 | rm -f confinc confmf | |
3953 | ||
3954 | # Check whether --enable-dependency-tracking was given. | |
3955 | if test "${enable_dependency_tracking+set}" = set; then : | |
3956 | enableval=$enable_dependency_tracking; | |
3957 | fi | |
3958 | ||
3959 | if test "x$enable_dependency_tracking" != xno; then | |
3960 | am_depcomp="$ac_aux_dir/depcomp" | |
3961 | AMDEPBACKSLASH='\' | |
3962 | am__nodep='_no' | |
3963 | fi | |
3964 | if test "x$enable_dependency_tracking" != xno; then | |
3965 | AMDEP_TRUE= | |
3966 | AMDEP_FALSE='#' | |
3967 | else | |
3968 | AMDEP_TRUE='#' | |
3969 | AMDEP_FALSE= | |
3970 | fi | |
3971 | ||
3972 | ||
3973 | ||
3974 | depcc="$CC" am_compiler_list= | |
3975 | ||
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3977 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3978 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3979 | $as_echo_n "(cached) " >&6 | |
3980 | else | |
3981 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3982 | # We make a subdir and do the tests there. Otherwise we can end up | |
3983 | # making bogus files that we don't know about and never remove. For | |
3984 | # instance it was reported that on HP-UX the gcc test will end up | |
3985 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3986 | # in D". | |
3987 | rm -rf conftest.dir | |
3988 | mkdir conftest.dir | |
3989 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3990 | # using a relative directory. | |
3991 | cp "$am_depcomp" conftest.dir | |
3992 | cd conftest.dir | |
3993 | # We will build objects and dependencies in a subdirectory because | |
3994 | # it helps to detect inapplicable dependency modes. For instance | |
3995 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3996 | # side effect of compilation, but ICC will put the dependencies in | |
3997 | # the current directory while Tru64 will put them in the object | |
3998 | # directory. | |
3999 | mkdir sub | |
4000 | ||
4001 | am_cv_CC_dependencies_compiler_type=none | |
4002 | if test "$am_compiler_list" = ""; then | |
4003 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4004 | fi | |
4005 | am__universal=false | |
4006 | case " $depcc " in #( | |
4007 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4008 | esac | |
4009 | ||
4010 | for depmode in $am_compiler_list; do | |
4011 | # Setup a source with many dependencies, because some compilers | |
4012 | # like to wrap large dependency lists on column 80 (with \), and | |
4013 | # we should not choose a depcomp mode which is confused by this. | |
4014 | # | |
4015 | # We need to recreate these files for each test, as the compiler may | |
4016 | # overwrite some of them when testing with obscure command lines. | |
4017 | # This happens at least with the AIX C compiler. | |
4018 | : > sub/conftest.c | |
4019 | for i in 1 2 3 4 5 6; do | |
4020 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4021 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4022 | # Solaris 10 /bin/sh. | |
4023 | echo '/* dummy */' > sub/conftst$i.h | |
4024 | done | |
4025 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4026 | ||
4027 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4028 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4029 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4030 | # versions had trouble with output in subdirs. | |
4031 | am__obj=sub/conftest.${OBJEXT-o} | |
4032 | am__minus_obj="-o $am__obj" | |
4033 | case $depmode in | |
4034 | gcc) | |
4035 | # This depmode causes a compiler race in universal mode. | |
4036 | test "$am__universal" = false || continue | |
4037 | ;; | |
4038 | nosideeffect) | |
4039 | # After this tag, mechanisms are not by side-effect, so they'll | |
4040 | # only be used when explicitly requested. | |
4041 | if test "x$enable_dependency_tracking" = xyes; then | |
4042 | continue | |
4043 | else | |
4044 | break | |
4045 | fi | |
4046 | ;; | |
4047 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4048 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4049 | # not run yet. These depmodes are late enough in the game, and | |
4050 | # so weak that their functioning should not be impacted. | |
4051 | am__obj=conftest.${OBJEXT-o} | |
4052 | am__minus_obj= | |
4053 | ;; | |
4054 | none) break ;; | |
4055 | esac | |
4056 | if depmode=$depmode \ | |
4057 | source=sub/conftest.c object=$am__obj \ | |
4058 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4059 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4060 | >/dev/null 2>conftest.err && | |
4061 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4062 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4063 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4064 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4065 | # icc doesn't choke on unknown options, it will just issue warnings | |
4066 | # or remarks (even with -Werror). So we grep stderr for any message | |
4067 | # that says an option was ignored or not supported. | |
4068 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4069 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4070 | # The diagnosis changed in icc 8.0: | |
4071 | # icc: Command line remark: option '-MP' not supported | |
4072 | if (grep 'ignoring option' conftest.err || | |
4073 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4074 | am_cv_CC_dependencies_compiler_type=$depmode | |
4075 | break | |
4076 | fi | |
4077 | fi | |
4078 | done | |
4079 | ||
4080 | cd .. | |
4081 | rm -rf conftest.dir | |
4082 | else | |
4083 | am_cv_CC_dependencies_compiler_type=none | |
4084 | fi | |
4085 | ||
4086 | fi | |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4088 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4089 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
d7040cdb | 4090 | |
23d61380 AM |
4091 | if |
4092 | test "x$enable_dependency_tracking" != xno \ | |
4093 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4094 | am__fastdepCC_TRUE= | |
4095 | am__fastdepCC_FALSE='#' | |
d0ac1c44 | 4096 | else |
23d61380 AM |
4097 | am__fastdepCC_TRUE='#' |
4098 | am__fastdepCC_FALSE= | |
d0ac1c44 | 4099 | fi |
23d61380 | 4100 | |
d0ac1c44 SM |
4101 | |
4102 | ||
7357c5b6 AM |
4103 | ac_ext=c |
4104 | ac_cpp='$CPP $CPPFLAGS' | |
4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4109 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4110 | # On Suns, sometimes $CPP names a directory. |
4111 | if test -n "$CPP" && test -d "$CPP"; then | |
4112 | CPP= | |
4113 | fi | |
4114 | if test -z "$CPP"; then | |
d0ac1c44 | 4115 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4116 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4117 | else |
4118 | # Double quotes because CPP needs to be expanded | |
4119 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4120 | do | |
4121 | ac_preproc_ok=false | |
4122 | for ac_c_preproc_warn_flag in '' yes | |
4123 | do | |
4124 | # Use a header file that comes with gcc, so configuring glibc | |
4125 | # with a fresh cross-compiler works. | |
4126 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4127 | # <limits.h> exists even on freestanding compilers. | |
4128 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4129 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4131 | /* end confdefs.h. */ |
4132 | #ifdef __STDC__ | |
4133 | # include <limits.h> | |
4134 | #else | |
4135 | # include <assert.h> | |
4136 | #endif | |
4137 | Syntax error | |
4138 | _ACEOF | |
81ecdfbb | 4139 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4140 | |
81ecdfbb | 4141 | else |
7357c5b6 AM |
4142 | # Broken: fails on valid input. |
4143 | continue | |
4144 | fi | |
d0ac1c44 | 4145 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4146 | |
81ecdfbb | 4147 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4148 | # can be detected and how. |
81ecdfbb | 4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4150 | /* end confdefs.h. */ |
4151 | #include <ac_nonexistent.h> | |
4152 | _ACEOF | |
81ecdfbb | 4153 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4154 | # Broken: success on invalid input. |
4155 | continue | |
4156 | else | |
7357c5b6 AM |
4157 | # Passes both tests. |
4158 | ac_preproc_ok=: | |
4159 | break | |
4160 | fi | |
d0ac1c44 | 4161 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4162 | |
7357c5b6 AM |
4163 | done |
4164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4165 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4166 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4167 | break |
4168 | fi | |
d7040cdb | 4169 | |
7357c5b6 AM |
4170 | done |
4171 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4172 | |
7357c5b6 AM |
4173 | fi |
4174 | CPP=$ac_cv_prog_CPP | |
4175 | else | |
4176 | ac_cv_prog_CPP=$CPP | |
4177 | fi | |
81ecdfbb RW |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4179 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4180 | ac_preproc_ok=false |
4181 | for ac_c_preproc_warn_flag in '' yes | |
4182 | do | |
4183 | # Use a header file that comes with gcc, so configuring glibc | |
4184 | # with a fresh cross-compiler works. | |
4185 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4186 | # <limits.h> exists even on freestanding compilers. | |
4187 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4188 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4190 | /* end confdefs.h. */ |
4191 | #ifdef __STDC__ | |
4192 | # include <limits.h> | |
4193 | #else | |
4194 | # include <assert.h> | |
4195 | #endif | |
4196 | Syntax error | |
4197 | _ACEOF | |
81ecdfbb | 4198 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4199 | |
81ecdfbb | 4200 | else |
7357c5b6 AM |
4201 | # Broken: fails on valid input. |
4202 | continue | |
4203 | fi | |
d0ac1c44 | 4204 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4205 | |
81ecdfbb | 4206 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4207 | # can be detected and how. |
81ecdfbb | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4209 | /* end confdefs.h. */ |
4210 | #include <ac_nonexistent.h> | |
4211 | _ACEOF | |
81ecdfbb | 4212 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4213 | # Broken: success on invalid input. |
4214 | continue | |
4215 | else | |
7357c5b6 AM |
4216 | # Passes both tests. |
4217 | ac_preproc_ok=: | |
4218 | break | |
4219 | fi | |
d0ac1c44 | 4220 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4221 | |
7357c5b6 AM |
4222 | done |
4223 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4224 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4225 | if $ac_preproc_ok; then : |
4226 | ||
7357c5b6 | 4227 | else |
81ecdfbb RW |
4228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4230 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4231 | See \`config.log' for more details" "$LINENO" 5; } | |
7357c5b6 | 4232 | fi |
ac48eca1 | 4233 | |
7357c5b6 AM |
4234 | ac_ext=c |
4235 | ac_cpp='$CPP $CPPFLAGS' | |
4236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4239 | |
ac48eca1 | 4240 | |
81ecdfbb RW |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4242 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4243 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb | 4244 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4245 | else |
81ecdfbb RW |
4246 | if test -z "$GREP"; then |
4247 | ac_path_GREP_found=false | |
4248 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4250 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4251 | do | |
4252 | IFS=$as_save_IFS | |
4253 | test -z "$as_dir" && as_dir=. | |
4254 | for ac_prog in grep ggrep; do | |
4255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4256 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4257 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4258 | # Check for GNU ac_path_GREP and select it if it is found. |
4259 | # Check for GNU $ac_path_GREP | |
4260 | case `"$ac_path_GREP" --version 2>&1` in | |
4261 | *GNU*) | |
4262 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4263 | *) | |
4264 | ac_count=0 | |
4265 | $as_echo_n 0123456789 >"conftest.in" | |
4266 | while : | |
4267 | do | |
4268 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4269 | mv "conftest.tmp" "conftest.in" | |
4270 | cp "conftest.in" "conftest.nl" | |
4271 | $as_echo 'GREP' >> "conftest.nl" | |
4272 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4273 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4274 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4275 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4276 | # Best one so far, save it but keep looking for a better one | |
4277 | ac_cv_path_GREP="$ac_path_GREP" | |
4278 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4279 | fi |
81ecdfbb RW |
4280 | # 10*(2^10) chars as input seems more than enough |
4281 | test $ac_count -gt 10 && break | |
4282 | done | |
4283 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4284 | esac | |
4285 | ||
4286 | $ac_path_GREP_found && break 3 | |
4287 | done | |
4288 | done | |
4289 | done | |
4290 | IFS=$as_save_IFS | |
4291 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4292 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4293 | fi |
4294 | else | |
4295 | ac_cv_path_GREP=$GREP | |
7357c5b6 | 4296 | fi |
81ecdfbb RW |
4297 | |
4298 | fi | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4300 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4301 | GREP="$ac_cv_path_GREP" | |
ac48eca1 | 4302 | |
d7040cdb | 4303 | |
81ecdfbb RW |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4305 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4306 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4307 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4308 | else |
81ecdfbb RW |
4309 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4310 | then ac_cv_path_EGREP="$GREP -E" | |
4311 | else | |
4312 | if test -z "$EGREP"; then | |
4313 | ac_path_EGREP_found=false | |
4314 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4316 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_prog in egrep; do | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4322 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4323 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4324 | # Check for GNU ac_path_EGREP and select it if it is found. |
4325 | # Check for GNU $ac_path_EGREP | |
4326 | case `"$ac_path_EGREP" --version 2>&1` in | |
4327 | *GNU*) | |
4328 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4329 | *) | |
4330 | ac_count=0 | |
4331 | $as_echo_n 0123456789 >"conftest.in" | |
4332 | while : | |
4333 | do | |
4334 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4335 | mv "conftest.tmp" "conftest.in" | |
4336 | cp "conftest.in" "conftest.nl" | |
4337 | $as_echo 'EGREP' >> "conftest.nl" | |
4338 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4339 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4340 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4341 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4342 | # Best one so far, save it but keep looking for a better one | |
4343 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4344 | ac_path_EGREP_max=$ac_count | |
4345 | fi | |
4346 | # 10*(2^10) chars as input seems more than enough | |
4347 | test $ac_count -gt 10 && break | |
4348 | done | |
4349 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4350 | esac | |
4351 | ||
4352 | $ac_path_EGREP_found && break 3 | |
4353 | done | |
4354 | done | |
4355 | done | |
4356 | IFS=$as_save_IFS | |
4357 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4358 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4359 | fi |
4360 | else | |
4361 | ac_cv_path_EGREP=$EGREP | |
4362 | fi | |
4363 | ||
4364 | fi | |
4365 | fi | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4367 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4368 | EGREP="$ac_cv_path_EGREP" | |
4369 | ||
4370 | ||
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4372 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4373 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb RW |
4374 | $as_echo_n "(cached) " >&6 |
4375 | else | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4377 | /* end confdefs.h. */ |
4378 | #include <stdlib.h> | |
4379 | #include <stdarg.h> | |
4380 | #include <string.h> | |
4381 | #include <float.h> | |
d7040cdb | 4382 | |
7357c5b6 AM |
4383 | int |
4384 | main () | |
4385 | { | |
d7040cdb | 4386 | |
7357c5b6 AM |
4387 | ; |
4388 | return 0; | |
4389 | } | |
4390 | _ACEOF | |
81ecdfbb | 4391 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4392 | ac_cv_header_stdc=yes |
4393 | else | |
81ecdfbb | 4394 | ac_cv_header_stdc=no |
7357c5b6 | 4395 | fi |
81ecdfbb | 4396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4397 | |
7357c5b6 AM |
4398 | if test $ac_cv_header_stdc = yes; then |
4399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4401 | /* end confdefs.h. */ |
4402 | #include <string.h> | |
d7040cdb | 4403 | |
7357c5b6 AM |
4404 | _ACEOF |
4405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4406 | $EGREP "memchr" >/dev/null 2>&1; then : |
4407 | ||
ce2cded5 | 4408 | else |
7357c5b6 AM |
4409 | ac_cv_header_stdc=no |
4410 | fi | |
4411 | rm -f conftest* | |
d7040cdb | 4412 | |
7357c5b6 | 4413 | fi |
d7040cdb | 4414 | |
7357c5b6 AM |
4415 | if test $ac_cv_header_stdc = yes; then |
4416 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4418 | /* end confdefs.h. */ |
4419 | #include <stdlib.h> | |
ac48eca1 | 4420 | |
7357c5b6 AM |
4421 | _ACEOF |
4422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4423 | $EGREP "free" >/dev/null 2>&1; then : |
4424 | ||
7357c5b6 AM |
4425 | else |
4426 | ac_cv_header_stdc=no | |
4427 | fi | |
4428 | rm -f conftest* | |
d7040cdb | 4429 | |
7357c5b6 | 4430 | fi |
d7040cdb | 4431 | |
7357c5b6 AM |
4432 | if test $ac_cv_header_stdc = yes; then |
4433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4434 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4435 | : |
4436 | else | |
81ecdfbb | 4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4438 | /* end confdefs.h. */ |
4439 | #include <ctype.h> | |
81ecdfbb | 4440 | #include <stdlib.h> |
7357c5b6 AM |
4441 | #if ((' ' & 0x0FF) == 0x020) |
4442 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4443 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4444 | #else | |
4445 | # define ISLOWER(c) \ | |
4446 | (('a' <= (c) && (c) <= 'i') \ | |
4447 | || ('j' <= (c) && (c) <= 'r') \ | |
4448 | || ('s' <= (c) && (c) <= 'z')) | |
4449 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4450 | #endif | |
d7040cdb | 4451 | |
7357c5b6 AM |
4452 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | int i; | |
4457 | for (i = 0; i < 256; i++) | |
4458 | if (XOR (islower (i), ISLOWER (i)) | |
4459 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4460 | return 2; |
4461 | return 0; | |
7357c5b6 AM |
4462 | } |
4463 | _ACEOF | |
81ecdfbb | 4464 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4465 | |
81ecdfbb RW |
4466 | else |
4467 | ac_cv_header_stdc=no | |
7357c5b6 | 4468 | fi |
81ecdfbb RW |
4469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4470 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4471 | fi |
81ecdfbb | 4472 | |
7357c5b6 AM |
4473 | fi |
4474 | fi | |
81ecdfbb RW |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4476 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4477 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4478 | |
81ecdfbb | 4479 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4480 | |
7357c5b6 | 4481 | fi |
d7040cdb | 4482 | |
7357c5b6 | 4483 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4484 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4485 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4486 | do : |
4487 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4488 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4489 | " | |
d0ac1c44 | 4490 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7357c5b6 | 4491 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4492 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4493 | _ACEOF |
ce2cded5 | 4494 | |
7357c5b6 | 4495 | fi |
ce2cded5 | 4496 | |
7357c5b6 | 4497 | done |
ce2cded5 L |
4498 | |
4499 | ||
4500 | ||
81ecdfbb | 4501 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4502 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7357c5b6 AM |
4503 | MINIX=yes |
4504 | else | |
4505 | MINIX= | |
4506 | fi | |
d7040cdb SE |
4507 | |
4508 | ||
7357c5b6 | 4509 | if test "$MINIX" = yes; then |
d7040cdb | 4510 | |
81ecdfbb | 4511 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4512 | |
4513 | ||
81ecdfbb | 4514 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4515 | |
4516 | ||
81ecdfbb | 4517 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4518 | |
7357c5b6 | 4519 | fi |
d7040cdb SE |
4520 | |
4521 | ||
81ecdfbb RW |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4523 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4524 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4525 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4526 | else |
81ecdfbb | 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4528 | /* end confdefs.h. */ |
ac48eca1 | 4529 | |
d0ac1c44 SM |
4530 | # define __EXTENSIONS__ 1 |
4531 | $ac_includes_default | |
7357c5b6 AM |
4532 | int |
4533 | main () | |
4534 | { | |
13b2be9c | 4535 | |
7357c5b6 AM |
4536 | ; |
4537 | return 0; | |
4538 | } | |
4539 | _ACEOF | |
81ecdfbb | 4540 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4541 | ac_cv_safe_to_define___extensions__=yes |
d6d788bd | 4542 | else |
81ecdfbb | 4543 | ac_cv_safe_to_define___extensions__=no |
d6d788bd | 4544 | fi |
81ecdfbb | 4545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4546 | fi |
81ecdfbb RW |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4548 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4549 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4550 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d6d788bd | 4551 | |
81ecdfbb | 4552 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d6d788bd | 4553 | |
81ecdfbb | 4554 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
252b5132 | 4555 | |
81ecdfbb | 4556 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
252b5132 | 4557 | |
81ecdfbb | 4558 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d6d788bd | 4559 | |
a74801ba | 4560 | |
d053aef8 | 4561 | |
81ecdfbb | 4562 | |
da2f07f1 | 4563 | |
718a6fd8 SE |
4564 | case `pwd` in |
4565 | *\ * | *\ *) | |
81ecdfbb RW |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4567 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 4568 | esac |
13b2be9c | 4569 | |
252b5132 | 4570 | |
7357c5b6 | 4571 | |
f2c621e4 AS |
4572 | macro_version='2.2.7a' |
4573 | macro_revision='1.3134' | |
7357c5b6 AM |
4574 | |
4575 | ||
4576 | ||
4577 | ||
4578 | ||
4579 | ||
7357c5b6 AM |
4580 | |
4581 | ||
4582 | ||
4583 | ||
4584 | ||
4585 | ||
4586 | ||
718a6fd8 | 4587 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 4588 | |
3725885a RW |
4589 | # Backslashify metacharacters that are still active within |
4590 | # double-quoted strings. | |
4591 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4592 | ||
4593 | # Same as above, but do not quote variable references. | |
4594 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4595 | ||
4596 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4597 | # double_quote_subst'ed string. | |
4598 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4599 | ||
4600 | # Sed substitution to delay expansion of an escaped single quote. | |
4601 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4602 | ||
4603 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4604 | no_glob_subst='s/\*/\\\*/g' | |
4605 | ||
4606 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4607 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4608 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4609 | ||
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4611 | $as_echo_n "checking how to print strings... " >&6; } | |
4612 | # Test print first, because it will be a builtin if present. | |
f2c621e4 | 4613 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
3725885a RW |
4614 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4615 | ECHO='print -r --' | |
4616 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4617 | ECHO='printf %s\n' | |
4618 | else | |
4619 | # Use this function as a fallback that always works. | |
4620 | func_fallback_echo () | |
4621 | { | |
4622 | eval 'cat <<_LTECHO_EOF | |
4623 | $1 | |
4624 | _LTECHO_EOF' | |
4625 | } | |
4626 | ECHO='func_fallback_echo' | |
4627 | fi | |
4628 | ||
4629 | # func_echo_all arg... | |
4630 | # Invoke $ECHO with all args, space-separated. | |
4631 | func_echo_all () | |
4632 | { | |
4633 | $ECHO "" | |
4634 | } | |
4635 | ||
4636 | case "$ECHO" in | |
4637 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4638 | $as_echo "printf" >&6; } ;; | |
4639 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4640 | $as_echo "print -r" >&6; } ;; | |
4641 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4642 | $as_echo "cat" >&6; } ;; | |
4643 | esac | |
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
81ecdfbb RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4659 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 4660 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb RW |
4661 | $as_echo_n "(cached) " >&6 |
4662 | else | |
4663 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4664 | for ac_i in 1 2 3 4 5 6 7; do | |
4665 | ac_script="$ac_script$as_nl$ac_script" | |
4666 | done | |
4667 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4668 | { ac_script=; unset ac_script;} | |
4669 | if test -z "$SED"; then | |
4670 | ac_path_SED_found=false | |
4671 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
4673 | for as_dir in $PATH |
4674 | do | |
4675 | IFS=$as_save_IFS | |
4676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4677 | for ac_prog in sed gsed; do |
7357c5b6 | 4678 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 4679 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 4680 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
4681 | # Check for GNU ac_path_SED and select it if it is found. |
4682 | # Check for GNU $ac_path_SED | |
4683 | case `"$ac_path_SED" --version 2>&1` in | |
4684 | *GNU*) | |
4685 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4686 | *) | |
4687 | ac_count=0 | |
4688 | $as_echo_n 0123456789 >"conftest.in" | |
4689 | while : | |
4690 | do | |
4691 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4692 | mv "conftest.tmp" "conftest.in" | |
4693 | cp "conftest.in" "conftest.nl" | |
4694 | $as_echo '' >> "conftest.nl" | |
4695 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4696 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4697 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4698 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4699 | # Best one so far, save it but keep looking for a better one | |
4700 | ac_cv_path_SED="$ac_path_SED" | |
4701 | ac_path_SED_max=$ac_count | |
4702 | fi | |
4703 | # 10*(2^10) chars as input seems more than enough | |
4704 | test $ac_count -gt 10 && break | |
4705 | done | |
4706 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4707 | esac | |
4708 | ||
4709 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
4710 | done |
4711 | done | |
81ecdfbb | 4712 | done |
7357c5b6 | 4713 | IFS=$as_save_IFS |
81ecdfbb | 4714 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 4715 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 4716 | fi |
81ecdfbb RW |
4717 | else |
4718 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
4719 | fi |
4720 | ||
81ecdfbb RW |
4721 | fi |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4723 | $as_echo "$ac_cv_path_SED" >&6; } | |
4724 | SED="$ac_cv_path_SED" | |
4725 | rm -f conftest.sed | |
7357c5b6 AM |
4726 | |
4727 | test -z "$SED" && SED=sed | |
4728 | Xsed="$SED -e 1s/^X//" | |
4729 | ||
4730 | ||
4731 | ||
4732 | ||
4733 | ||
4734 | ||
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4741 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 4742 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 4743 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4744 | else |
81ecdfbb RW |
4745 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4746 | then ac_cv_path_FGREP="$GREP -F" | |
4747 | else | |
4748 | if test -z "$FGREP"; then | |
4749 | ac_path_FGREP_found=false | |
4750 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4752 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4753 | do | |
4754 | IFS=$as_save_IFS | |
4755 | test -z "$as_dir" && as_dir=. | |
4756 | for ac_prog in fgrep; do | |
4757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4758 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4759 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
4760 | # Check for GNU ac_path_FGREP and select it if it is found. |
4761 | # Check for GNU $ac_path_FGREP | |
4762 | case `"$ac_path_FGREP" --version 2>&1` in | |
4763 | *GNU*) | |
4764 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4765 | *) | |
4766 | ac_count=0 | |
4767 | $as_echo_n 0123456789 >"conftest.in" | |
4768 | while : | |
4769 | do | |
4770 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4771 | mv "conftest.tmp" "conftest.in" | |
4772 | cp "conftest.in" "conftest.nl" | |
4773 | $as_echo 'FGREP' >> "conftest.nl" | |
4774 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4775 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4776 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4777 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4778 | # Best one so far, save it but keep looking for a better one | |
4779 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4780 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 4781 | fi |
81ecdfbb RW |
4782 | # 10*(2^10) chars as input seems more than enough |
4783 | test $ac_count -gt 10 && break | |
4784 | done | |
4785 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4786 | esac | |
4787 | ||
4788 | $ac_path_FGREP_found && break 3 | |
4789 | done | |
4790 | done | |
4791 | done | |
4792 | IFS=$as_save_IFS | |
4793 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 4794 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4795 | fi |
4796 | else | |
4797 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 4798 | fi |
81ecdfbb RW |
4799 | |
4800 | fi | |
4801 | fi | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4803 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4804 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
4805 | |
4806 | ||
4807 | test -z "$GREP" && GREP=grep | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | ||
81ecdfbb RW |
4827 | # Check whether --with-gnu-ld was given. |
4828 | if test "${with_gnu_ld+set}" = set; then : | |
4829 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
4830 | else |
4831 | with_gnu_ld=no | |
81ecdfbb RW |
4832 | fi |
4833 | ||
ce2cded5 L |
4834 | ac_prog=ld |
4835 | if test "$GCC" = yes; then | |
4836 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4838 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
ce2cded5 L |
4839 | case $host in |
4840 | *-*-mingw*) | |
4841 | # gcc leaves a trailing carriage return which upsets mingw | |
4842 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4843 | *) | |
4844 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4845 | esac | |
4846 | case $ac_prog in | |
4847 | # Accept absolute paths. | |
4848 | [\\/]* | ?:[\\/]*) | |
4849 | re_direlt='/[^/][^/]*/\.\./' | |
4850 | # Canonicalize the pathname of ld | |
4851 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4852 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4853 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4854 | done | |
4855 | test -z "$LD" && LD="$ac_prog" | |
4856 | ;; | |
4857 | "") | |
4858 | # If it fails, then pretend we aren't using GCC. | |
4859 | ac_prog=ld | |
4860 | ;; | |
4861 | *) | |
4862 | # If it is relative, then search for the first ld in PATH. | |
4863 | with_gnu_ld=unknown | |
4864 | ;; | |
4865 | esac | |
4866 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4868 | $as_echo_n "checking for GNU ld... " >&6; } | |
ce2cded5 | 4869 | else |
81ecdfbb RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4871 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 4872 | fi |
d0ac1c44 | 4873 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 4874 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4875 | else |
4876 | if test -z "$LD"; then | |
4877 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4878 | for ac_dir in $PATH; do | |
4879 | IFS="$lt_save_ifs" | |
4880 | test -z "$ac_dir" && ac_dir=. | |
4881 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4882 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4883 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4884 | # but apparently some variants of GNU ld only accept -v. | |
4885 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4886 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4887 | *GNU* | *'with BFD'*) | |
4888 | test "$with_gnu_ld" != no && break | |
4889 | ;; | |
4890 | *) | |
4891 | test "$with_gnu_ld" != yes && break | |
4892 | ;; | |
4893 | esac | |
4894 | fi | |
4895 | done | |
4896 | IFS="$lt_save_ifs" | |
4897 | else | |
4898 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4899 | fi | |
4900 | fi | |
4901 | ||
4902 | LD="$lt_cv_path_LD" | |
4903 | if test -n "$LD"; then | |
81ecdfbb RW |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4905 | $as_echo "$LD" >&6; } | |
ce2cded5 | 4906 | else |
81ecdfbb RW |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4908 | $as_echo "no" >&6; } | |
ce2cded5 | 4909 | fi |
d0ac1c44 | 4910 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4912 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 4913 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 4914 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4915 | else |
4916 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4917 | case `$LD -v 2>&1 </dev/null` in | |
4918 | *GNU* | *'with BFD'*) | |
4919 | lt_cv_prog_gnu_ld=yes | |
4920 | ;; | |
4921 | *) | |
4922 | lt_cv_prog_gnu_ld=no | |
4923 | ;; | |
4924 | esac | |
4925 | fi | |
81ecdfbb RW |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4927 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
ce2cded5 L |
4928 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
81ecdfbb RW |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4939 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 4940 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 4941 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
4942 | else |
4943 | if test -n "$NM"; then | |
b9004024 NA |
4944 | # Let the user override the nm to test. |
4945 | lt_nm_to_check="$NM" | |
4946 | else | |
4947 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4948 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4949 | lt_nm_to_check="$lt_nm_to_check nm" | |
4950 | fi | |
4951 | fi | |
4952 | for lt_tmp_nm in $lt_nm_to_check; do | |
4953 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4954 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4955 | IFS="$lt_save_ifs" | |
4956 | test -z "$ac_dir" && ac_dir=. | |
4957 | case "$lt_tmp_nm" in | |
4958 | */*|*\\*) tmp_nm="$lt_tmp_nm";; | |
4959 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
4960 | esac | |
4961 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4962 | # Check to see if the nm accepts a BSD-compat flag. | |
4963 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4964 | # nm: unknown option "B" ignored | |
4965 | case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
4966 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" | |
4967 | break | |
4968 | ;; | |
4969 | *) | |
4970 | case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
4971 | *$tmp_nm*) | |
4972 | lt_cv_path_NM="$tmp_nm -p" | |
4973 | break | |
4974 | ;; | |
4975 | *) | |
4976 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4977 | continue # so that we can try to find one that supports BSD flags | |
4978 | ;; | |
4979 | esac | |
4980 | ;; | |
4981 | esac | |
4982 | fi | |
4983 | done | |
4984 | IFS="$lt_save_ifs" | |
4985 | done | |
4986 | : ${lt_cv_path_NM=no} | |
ce2cded5 | 4987 | fi |
81ecdfbb RW |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4989 | $as_echo "$lt_cv_path_NM" >&6; } | |
ce2cded5 L |
4990 | if test "$lt_cv_path_NM" != "no"; then |
4991 | NM="$lt_cv_path_NM" | |
4992 | else | |
4993 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3725885a RW |
4994 | if test -n "$DUMPBIN"; then : |
4995 | # Let the user override the test. | |
4996 | else | |
4997 | if test -n "$ac_tool_prefix"; then | |
4998 | for ac_prog in dumpbin "link -dump" | |
ce2cded5 L |
4999 | do |
5000 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5001 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5003 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5004 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5005 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5006 | else |
ce2cded5 L |
5007 | if test -n "$DUMPBIN"; then |
5008 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5009 | else |
5010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5011 | for as_dir in $PATH | |
5012 | do | |
5013 | IFS=$as_save_IFS | |
5014 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5015 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5017 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5019 | break 2 |
d70c5fc7 | 5020 | fi |
d7040cdb | 5021 | done |
81ecdfbb RW |
5022 | done |
5023 | IFS=$as_save_IFS | |
d70c5fc7 | 5024 | |
d7040cdb SE |
5025 | fi |
5026 | fi | |
ce2cded5 L |
5027 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5028 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5030 | $as_echo "$DUMPBIN" >&6; } | |
bedf545c | 5031 | else |
81ecdfbb RW |
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5033 | $as_echo "no" >&6; } | |
d7040cdb | 5034 | fi |
13b2be9c | 5035 | |
81ecdfbb | 5036 | |
ce2cded5 L |
5037 | test -n "$DUMPBIN" && break |
5038 | done | |
5039 | fi | |
5040 | if test -z "$DUMPBIN"; then | |
5041 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5042 | for ac_prog in dumpbin "link -dump" |
ce2cded5 L |
5043 | do |
5044 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5045 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5047 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5048 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5049 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5050 | else |
ce2cded5 L |
5051 | if test -n "$ac_ct_DUMPBIN"; then |
5052 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5053 | else | |
5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5055 | for as_dir in $PATH | |
5056 | do | |
5057 | IFS=$as_save_IFS | |
5058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5059 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5061 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5063 | break 2 |
5064 | fi | |
5065 | done | |
81ecdfbb RW |
5066 | done |
5067 | IFS=$as_save_IFS | |
ce2cded5 L |
5068 | |
5069 | fi | |
5070 | fi | |
5071 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5072 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5074 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5075 | else |
81ecdfbb RW |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5077 | $as_echo "no" >&6; } | |
d7040cdb SE |
5078 | fi |
5079 | ||
81ecdfbb | 5080 | |
ce2cded5 L |
5081 | test -n "$ac_ct_DUMPBIN" && break |
5082 | done | |
13b2be9c | 5083 | |
81ecdfbb RW |
5084 | if test "x$ac_ct_DUMPBIN" = x; then |
5085 | DUMPBIN=":" | |
5086 | else | |
5087 | case $cross_compiling:$ac_tool_warned in | |
5088 | yes:) | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5091 | ac_tool_warned=yes ;; | |
5092 | esac | |
5093 | DUMPBIN=$ac_ct_DUMPBIN | |
5094 | fi | |
ce2cded5 | 5095 | fi |
13b2be9c | 5096 | |
3725885a RW |
5097 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5098 | *COFF*) | |
5099 | DUMPBIN="$DUMPBIN -symbols" | |
5100 | ;; | |
5101 | *) | |
5102 | DUMPBIN=: | |
5103 | ;; | |
5104 | esac | |
5105 | fi | |
bedf545c | 5106 | |
ce2cded5 L |
5107 | if test "$DUMPBIN" != ":"; then |
5108 | NM="$DUMPBIN" | |
5109 | fi | |
5110 | fi | |
5111 | test -z "$NM" && NM=nm | |
6840198f | 5112 | |
13b2be9c | 5113 | |
ac48eca1 | 5114 | |
d7040cdb | 5115 | |
ce2cded5 L |
5116 | |
5117 | ||
81ecdfbb RW |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5119 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5120 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5121 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5122 | else |
5123 | lt_cv_nm_interface="BSD nm" | |
5124 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5125 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
ce2cded5 L |
5126 | (eval "$ac_compile" 2>conftest.err) |
5127 | cat conftest.err >&5 | |
3725885a | 5128 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5129 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5130 | cat conftest.err >&5 | |
3725885a | 5131 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
ce2cded5 L |
5132 | cat conftest.out >&5 |
5133 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5134 | lt_cv_nm_interface="MS dumpbin" | |
5135 | fi | |
5136 | rm -f conftest* | |
5137 | fi | |
81ecdfbb RW |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5139 | $as_echo "$lt_cv_nm_interface" >&6; } | |
ce2cded5 | 5140 | |
81ecdfbb RW |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5142 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ce2cded5 L |
5143 | LN_S=$as_ln_s |
5144 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5146 | $as_echo "yes" >&6; } | |
ce2cded5 | 5147 | else |
81ecdfbb RW |
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5149 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 L |
5150 | fi |
5151 | ||
5152 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5154 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5155 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5156 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5157 | else |
5158 | i=0 | |
5159 | teststring="ABCD" | |
5160 | ||
5161 | case $build_os in | |
5162 | msdosdjgpp*) | |
5163 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5164 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5165 | # during glob expansion). Even if it were fixed, the result of this | |
5166 | # check would be larger than it should be. | |
5167 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5168 | ;; | |
5169 | ||
5170 | gnu*) | |
5171 | # Under GNU Hurd, this test is not required because there is | |
5172 | # no limit to the length of command line arguments. | |
5173 | # Libtool will interpret -1 as no limit whatsoever | |
5174 | lt_cv_sys_max_cmd_len=-1; | |
5175 | ;; | |
5176 | ||
718a6fd8 | 5177 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5178 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5179 | # about 5 minutes as the teststring grows exponentially. | |
5180 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5181 | # you end up with a "frozen" computer, even though with patience | |
5182 | # the test eventually succeeds (with a max line length of 256k). | |
5183 | # Instead, let's just punt: use the minimum linelength reported by | |
5184 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5185 | lt_cv_sys_max_cmd_len=8192; | |
5186 | ;; | |
5187 | ||
3725885a RW |
5188 | mint*) |
5189 | # On MiNT this can take a long time and run out of memory. | |
5190 | lt_cv_sys_max_cmd_len=8192; | |
5191 | ;; | |
5192 | ||
ce2cded5 L |
5193 | amigaos*) |
5194 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5195 | # So we just punt and use a minimum line length of 8192. | |
5196 | lt_cv_sys_max_cmd_len=8192; | |
5197 | ;; | |
5198 | ||
5199 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5200 | # This has been around since 386BSD, at least. Likely further. | |
5201 | if test -x /sbin/sysctl; then | |
5202 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5203 | elif test -x /usr/sbin/sysctl; then | |
5204 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5205 | else | |
5206 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5207 | fi | |
5208 | # And add a safety zone | |
5209 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5210 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5211 | ;; | |
5212 | ||
5213 | interix*) | |
5214 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5215 | lt_cv_sys_max_cmd_len=196608 | |
5216 | ;; | |
5217 | ||
5218 | osf*) | |
5219 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5220 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5221 | # nice to cause kernel panics so lets avoid the loop below. | |
5222 | # First set a reasonable default. | |
5223 | lt_cv_sys_max_cmd_len=16384 | |
5224 | # | |
5225 | if test -x /sbin/sysconfig; then | |
5226 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5227 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5228 | esac | |
5229 | fi | |
5230 | ;; | |
5231 | sco3.2v5*) | |
5232 | lt_cv_sys_max_cmd_len=102400 | |
5233 | ;; | |
5234 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5235 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5236 | if test -n "$kargmax"; then | |
5237 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5238 | else | |
5239 | lt_cv_sys_max_cmd_len=32768 | |
5240 | fi | |
d7040cdb SE |
5241 | ;; |
5242 | *) | |
718a6fd8 SE |
5243 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5244 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5245 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5246 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5247 | else | |
5248 | # Make teststring a little bigger before we do anything with it. | |
5249 | # a 1K string should be a reasonable start. | |
5250 | for i in 1 2 3 4 5 6 7 8 ; do | |
5251 | teststring=$teststring$teststring | |
5252 | done | |
5253 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5254 | # If test is not a shell built-in, we'll probably end up computing a | |
5255 | # maximum length that is only half of the actual maximum length, but | |
5256 | # we can't tell. | |
3725885a RW |
5257 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5258 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
ce2cded5 L |
5259 | test $i != 17 # 1/2 MB should be enough |
5260 | do | |
5261 | i=`expr $i + 1` | |
5262 | teststring=$teststring$teststring | |
5263 | done | |
5264 | # Only check the string length outside the loop. | |
5265 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5266 | teststring= | |
5267 | # Add a significant safety factor because C++ compilers can tack on | |
5268 | # massive amounts of additional arguments before passing them to the | |
5269 | # linker. It appears as though 1/2 is a usable value. | |
5270 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5271 | fi | |
d7040cdb SE |
5272 | ;; |
5273 | esac | |
252b5132 | 5274 | |
ce2cded5 | 5275 | fi |
d6d788bd | 5276 | |
ce2cded5 | 5277 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5279 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
ce2cded5 | 5280 | else |
81ecdfbb RW |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5282 | $as_echo "none" >&6; } | |
ce2cded5 L |
5283 | fi |
5284 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5285 | |
d6d788bd | 5286 | |
13b2be9c | 5287 | |
13b2be9c | 5288 | |
bedf545c | 5289 | |
252b5132 | 5290 | |
ce2cded5 L |
5291 | : ${CP="cp -f"} |
5292 | : ${MV="mv -f"} | |
5293 | : ${RM="rm -f"} | |
d6d788bd | 5294 | |
81ecdfbb RW |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5296 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
ce2cded5 L |
5297 | # Try some XSI features |
5298 | xsi_shell=no | |
5299 | ( _lt_dummy="a/b/c" | |
f2c621e4 AS |
5300 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
5301 | = c,a/b,, \ | |
718a6fd8 SE |
5302 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5303 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 | 5304 | && xsi_shell=yes |
81ecdfbb RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5306 | $as_echo "$xsi_shell" >&6; } | |
bedf545c | 5307 | |
bedf545c | 5308 | |
81ecdfbb RW |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5310 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
ce2cded5 L |
5311 | lt_shell_append=no |
5312 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5313 | >/dev/null 2>&1 \ | |
5314 | && lt_shell_append=yes | |
81ecdfbb RW |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5316 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5317 | |
d6d788bd | 5318 | |
ce2cded5 L |
5319 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5320 | lt_unset=unset | |
5321 | else | |
5322 | lt_unset=false | |
5323 | fi | |
13b2be9c DJ |
5324 | |
5325 | ||
5326 | ||
5327 | ||
d6d788bd | 5328 | |
ce2cded5 L |
5329 | # test EBCDIC or ASCII |
5330 | case `echo X|tr X '\101'` in | |
5331 | A) # ASCII based system | |
5332 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5333 | lt_SP2NL='tr \040 \012' | |
5334 | lt_NL2SP='tr \015\012 \040\040' | |
5335 | ;; | |
5336 | *) # EBCDIC based system | |
5337 | lt_SP2NL='tr \100 \n' | |
5338 | lt_NL2SP='tr \r\n \100\100' | |
5339 | ;; | |
5340 | esac | |
c43a438d | 5341 | |
c43a438d | 5342 | |
c43a438d | 5343 | |
252b5132 | 5344 | |
ad22bfe8 | 5345 | |
1ad12f97 | 5346 | |
1ad12f97 | 5347 | |
9e9b66a9 | 5348 | |
1ad12f97 | 5349 | |
81ecdfbb RW |
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5351 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5352 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5353 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5354 | else |
5355 | lt_cv_ld_reload_flag='-r' | |
5356 | fi | |
81ecdfbb RW |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5358 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
ce2cded5 L |
5359 | reload_flag=$lt_cv_ld_reload_flag |
5360 | case $reload_flag in | |
5361 | "" | " "*) ;; | |
5362 | *) reload_flag=" $reload_flag" ;; | |
5363 | esac | |
5364 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5365 | case $host_os in | |
5366 | darwin*) | |
5367 | if test "$GCC" = yes; then | |
5368 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5369 | else | |
5370 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5371 | fi | |
5372 | ;; | |
5373 | esac | |
a541e3ce | 5374 | |
9e9b66a9 | 5375 | |
a2d91340 | 5376 | |
d6d788bd | 5377 | |
9e9b66a9 AM |
5378 | |
5379 | ||
5380 | ||
d6d788bd | 5381 | |
252b5132 | 5382 | |
718a6fd8 SE |
5383 | if test -n "$ac_tool_prefix"; then |
5384 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5385 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5387 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5388 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5389 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5390 | else |
5391 | if test -n "$OBJDUMP"; then | |
5392 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5393 | else | |
5394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5395 | for as_dir in $PATH | |
5396 | do | |
5397 | IFS=$as_save_IFS | |
5398 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5399 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5401 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5403 | break 2 |
5404 | fi | |
5405 | done | |
81ecdfbb RW |
5406 | done |
5407 | IFS=$as_save_IFS | |
718a6fd8 SE |
5408 | |
5409 | fi | |
5410 | fi | |
5411 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5412 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5414 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5415 | else |
81ecdfbb RW |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5417 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5418 | fi |
5419 | ||
81ecdfbb | 5420 | |
718a6fd8 SE |
5421 | fi |
5422 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5423 | ac_ct_OBJDUMP=$OBJDUMP | |
5424 | # Extract the first word of "objdump", so it can be a program name with args. | |
5425 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5427 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5428 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5429 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5430 | else |
5431 | if test -n "$ac_ct_OBJDUMP"; then | |
5432 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5433 | else | |
5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5435 | for as_dir in $PATH | |
5436 | do | |
5437 | IFS=$as_save_IFS | |
5438 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5441 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5443 | break 2 |
5444 | fi | |
5445 | done | |
81ecdfbb RW |
5446 | done |
5447 | IFS=$as_save_IFS | |
718a6fd8 | 5448 | |
718a6fd8 SE |
5449 | fi |
5450 | fi | |
5451 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5452 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5454 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 5455 | else |
81ecdfbb RW |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5457 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5458 | fi |
5459 | ||
81ecdfbb RW |
5460 | if test "x$ac_ct_OBJDUMP" = x; then |
5461 | OBJDUMP="false" | |
5462 | else | |
5463 | case $cross_compiling:$ac_tool_warned in | |
5464 | yes:) | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5466 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5467 | ac_tool_warned=yes ;; | |
5468 | esac | |
5469 | OBJDUMP=$ac_ct_OBJDUMP | |
5470 | fi | |
718a6fd8 SE |
5471 | else |
5472 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5473 | fi | |
5474 | ||
5475 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
13b2be9c | 5484 | |
81ecdfbb RW |
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5486 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5487 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5488 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5489 | else |
ce2cded5 L |
5490 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5491 | lt_cv_file_magic_test_file= | |
5492 | lt_cv_deplibs_check_method='unknown' | |
5493 | # Need to set the preceding variable on all platforms that support | |
5494 | # interlibrary dependencies. | |
5495 | # 'none' -- dependencies not supported. | |
5496 | # `unknown' -- same as none, but documents that we really don't know. | |
5497 | # 'pass_all' -- all dependencies passed with no checks. | |
5498 | # 'test_compile' -- check by making test program. | |
5499 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5500 | # which responds to the $file_magic_cmd with a given extended regex. | |
5501 | # If you have `file' or equivalent on your system and you're not sure | |
5502 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 5503 | |
ce2cded5 | 5504 | case $host_os in |
50e7d84b | 5505 | aix[4-9]*) |
ce2cded5 L |
5506 | lt_cv_deplibs_check_method=pass_all |
5507 | ;; | |
d7040cdb | 5508 | |
ce2cded5 L |
5509 | beos*) |
5510 | lt_cv_deplibs_check_method=pass_all | |
5511 | ;; | |
d7040cdb | 5512 | |
ce2cded5 L |
5513 | bsdi[45]*) |
5514 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5515 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5516 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5517 | ;; | |
d7040cdb | 5518 | |
ce2cded5 L |
5519 | cygwin*) |
5520 | # func_win32_libid is a shell function defined in ltmain.sh | |
5521 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5522 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 5523 | ;; |
ce2cded5 L |
5524 | |
5525 | mingw* | pw32*) | |
5526 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5527 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5528 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5529 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5530 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
ce2cded5 L |
5531 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5532 | lt_cv_file_magic_cmd='func_win32_libid' | |
5533 | else | |
f2c621e4 | 5534 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
ce2cded5 L |
5535 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5536 | fi | |
d7040cdb | 5537 | ;; |
ce2cded5 | 5538 | |
3725885a | 5539 | cegcc*) |
718a6fd8 SE |
5540 | # use the weaker test based on 'objdump'. See mingw*. |
5541 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5542 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5543 | ;; | |
5544 | ||
ce2cded5 L |
5545 | darwin* | rhapsody*) |
5546 | lt_cv_deplibs_check_method=pass_all | |
5547 | ;; | |
5548 | ||
5549 | freebsd* | dragonfly*) | |
5550 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5551 | case $host_cpu in | |
5552 | i*86 ) | |
5553 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5554 | # Let's accept both of them until this is cleared up. | |
5555 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5556 | lt_cv_file_magic_cmd=/usr/bin/file | |
5557 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5558 | ;; | |
5559 | esac | |
5560 | else | |
5561 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5562 | fi |
5563 | ;; | |
ce2cded5 L |
5564 | |
5565 | gnu*) | |
5566 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5567 | ;; |
ce2cded5 | 5568 | |
3725885a RW |
5569 | haiku*) |
5570 | lt_cv_deplibs_check_method=pass_all | |
5571 | ;; | |
5572 | ||
ce2cded5 L |
5573 | hpux10.20* | hpux11*) |
5574 | lt_cv_file_magic_cmd=/usr/bin/file | |
5575 | case $host_cpu in | |
5576 | ia64*) | |
5577 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5578 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5579 | ;; | |
5580 | hppa*64*) | |
3725885a | 5581 | 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 |
5582 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5583 | ;; | |
5584 | *) | |
3725885a | 5585 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
ce2cded5 L |
5586 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5587 | ;; | |
5588 | esac | |
d7040cdb | 5589 | ;; |
ce2cded5 L |
5590 | |
5591 | interix[3-9]*) | |
5592 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5593 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 5594 | ;; |
ce2cded5 L |
5595 | |
5596 | irix5* | irix6* | nonstopux*) | |
5597 | case $LD in | |
5598 | *-32|*"-32 ") libmagic=32-bit;; | |
5599 | *-n32|*"-n32 ") libmagic=N32;; | |
5600 | *-64|*"-64 ") libmagic=64-bit;; | |
5601 | *) libmagic=never-match;; | |
5602 | esac | |
5603 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 5604 | ;; |
ce2cded5 L |
5605 | |
5606 | # This must be Linux ELF. | |
58e24671 | 5607 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 5608 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 5609 | ;; |
ce2cded5 L |
5610 | |
5611 | netbsd*) | |
5612 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5613 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5614 | else | |
5615 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5616 | fi | |
d7040cdb | 5617 | ;; |
ce2cded5 L |
5618 | |
5619 | newos6*) | |
5620 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5621 | lt_cv_file_magic_cmd=/usr/bin/file | |
5622 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 5623 | ;; |
76a27922 | 5624 | |
ce2cded5 L |
5625 | *nto* | *qnx*) |
5626 | lt_cv_deplibs_check_method=pass_all | |
5627 | ;; | |
d6d788bd | 5628 | |
ce2cded5 L |
5629 | openbsd*) |
5630 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5631 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5632 | else | |
5633 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5634 | fi | |
5635 | ;; | |
44f2f9d2 | 5636 | |
ce2cded5 L |
5637 | osf3* | osf4* | osf5*) |
5638 | lt_cv_deplibs_check_method=pass_all | |
5639 | ;; | |
44f2f9d2 | 5640 | |
ce2cded5 L |
5641 | rdos*) |
5642 | lt_cv_deplibs_check_method=pass_all | |
5643 | ;; | |
5644 | ||
5645 | solaris*) | |
5646 | lt_cv_deplibs_check_method=pass_all | |
5647 | ;; | |
5648 | ||
5649 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5650 | lt_cv_deplibs_check_method=pass_all | |
5651 | ;; | |
5652 | ||
5653 | sysv4 | sysv4.3*) | |
5654 | case $host_vendor in | |
5655 | motorola) | |
5656 | 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]' | |
5657 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5658 | ;; | |
5659 | ncr) | |
5660 | lt_cv_deplibs_check_method=pass_all | |
5661 | ;; | |
5662 | sequent) | |
5663 | lt_cv_file_magic_cmd='/bin/file' | |
5664 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5665 | ;; | |
5666 | sni) | |
5667 | lt_cv_file_magic_cmd='/bin/file' | |
5668 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5669 | lt_cv_file_magic_test_file=/lib/libc.so | |
5670 | ;; | |
5671 | siemens) | |
5672 | lt_cv_deplibs_check_method=pass_all | |
5673 | ;; | |
5674 | pc) | |
5675 | lt_cv_deplibs_check_method=pass_all | |
5676 | ;; | |
5677 | esac | |
5678 | ;; | |
5679 | ||
5680 | tpf*) | |
5681 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
5682 | ;; |
5683 | esac | |
5684 | ||
ce2cded5 | 5685 | fi |
81ecdfbb RW |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5687 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
ce2cded5 L |
5688 | file_magic_cmd=$lt_cv_file_magic_cmd |
5689 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5690 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 5691 | |
d7040cdb | 5692 | |
d7040cdb | 5693 | |
d7040cdb | 5694 | |
d7040cdb | 5695 | |
44f2f9d2 | 5696 | |
d7040cdb | 5697 | |
d7040cdb | 5698 | |
d7040cdb | 5699 | |
d7040cdb | 5700 | |
44f2f9d2 | 5701 | |
d7040cdb | 5702 | |
a4966cd9 L |
5703 | plugin_option= |
5704 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
5705 | for plugin in $plugin_names; do | |
5706 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
5707 | if test x$plugin_so = x$plugin; then | |
5708 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
5709 | fi | |
5710 | if test x$plugin_so != x$plugin; then | |
5711 | plugin_option="--plugin $plugin_so" | |
5712 | break | |
5713 | fi | |
5714 | done | |
5715 | ||
ce2cded5 | 5716 | if test -n "$ac_tool_prefix"; then |
f2c621e4 AS |
5717 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5718 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5720 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5721 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5722 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5723 | else |
5724 | if test -n "$AR"; then | |
5725 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5726 | else | |
5727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5728 | for as_dir in $PATH | |
5729 | do | |
5730 | IFS=$as_save_IFS | |
5731 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5732 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5734 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 5736 | break 2 |
d7040cdb SE |
5737 | fi |
5738 | done | |
81ecdfbb RW |
5739 | done |
5740 | IFS=$as_save_IFS | |
44f2f9d2 | 5741 | |
ce2cded5 L |
5742 | fi |
5743 | fi | |
5744 | AR=$ac_cv_prog_AR | |
5745 | if test -n "$AR"; then | |
81ecdfbb RW |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5747 | $as_echo "$AR" >&6; } | |
ce2cded5 | 5748 | else |
81ecdfbb RW |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5750 | $as_echo "no" >&6; } | |
44f2f9d2 | 5751 | fi |
d7040cdb | 5752 | |
81ecdfbb | 5753 | |
d7040cdb | 5754 | fi |
f2c621e4 | 5755 | if test -z "$ac_cv_prog_AR"; then |
ce2cded5 | 5756 | ac_ct_AR=$AR |
f2c621e4 AS |
5757 | # Extract the first word of "ar", so it can be a program name with args. |
5758 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5761 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5762 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5763 | else |
ce2cded5 L |
5764 | if test -n "$ac_ct_AR"; then |
5765 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5766 | else | |
5767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5768 | for as_dir in $PATH | |
5769 | do | |
5770 | IFS=$as_save_IFS | |
5771 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5772 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f2c621e4 | 5774 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5776 | break 2 |
5777 | fi | |
5778 | done | |
81ecdfbb RW |
5779 | done |
5780 | IFS=$as_save_IFS | |
ce2cded5 | 5781 | |
ce2cded5 L |
5782 | fi |
5783 | fi | |
5784 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5785 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5787 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 5788 | else |
81ecdfbb RW |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5790 | $as_echo "no" >&6; } | |
d7040cdb | 5791 | fi |
44f2f9d2 | 5792 | |
81ecdfbb RW |
5793 | if test "x$ac_ct_AR" = x; then |
5794 | AR="false" | |
5795 | else | |
5796 | case $cross_compiling:$ac_tool_warned in | |
5797 | yes:) | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5799 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5800 | ac_tool_warned=yes ;; | |
5801 | esac | |
5802 | AR=$ac_ct_AR | |
5803 | fi | |
df7b86aa | 5804 | else |
f2c621e4 AS |
5805 | AR="$ac_cv_prog_AR" |
5806 | fi | |
df7b86aa | 5807 | |
f2c621e4 | 5808 | test -z "$AR" && AR=ar |
a4966cd9 L |
5809 | if test -n "$plugin_option"; then |
5810 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
5811 | touch conftest.c |
5812 | $AR $plugin_option rc conftest.a conftest.c | |
5813 | if test "$?" != 0; then | |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
5815 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
5816 | else | |
5817 | AR="$AR $plugin_option" | |
5818 | fi | |
5819 | rm -f conftest.* | |
a4966cd9 L |
5820 | fi |
5821 | fi | |
f2c621e4 | 5822 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
df7b86aa | 5823 | |
df7b86aa | 5824 | |
df7b86aa | 5825 | |
df7b86aa | 5826 | |
df7b86aa NC |
5827 | |
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
d7040cdb | 5833 | |
ce2cded5 L |
5834 | if test -n "$ac_tool_prefix"; then |
5835 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5836 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5838 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5839 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 5840 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5841 | else |
5842 | if test -n "$STRIP"; then | |
5843 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5844 | else | |
5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5846 | for as_dir in $PATH | |
5847 | do | |
5848 | IFS=$as_save_IFS | |
5849 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5850 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5852 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 5853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5854 | break 2 |
5855 | fi | |
5856 | done | |
81ecdfbb RW |
5857 | done |
5858 | IFS=$as_save_IFS | |
d7040cdb | 5859 | |
ce2cded5 L |
5860 | fi |
5861 | fi | |
5862 | STRIP=$ac_cv_prog_STRIP | |
5863 | if test -n "$STRIP"; then | |
81ecdfbb RW |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5865 | $as_echo "$STRIP" >&6; } | |
ce2cded5 | 5866 | else |
81ecdfbb RW |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5868 | $as_echo "no" >&6; } | |
ce2cded5 | 5869 | fi |
d7040cdb | 5870 | |
81ecdfbb | 5871 | |
ce2cded5 L |
5872 | fi |
5873 | if test -z "$ac_cv_prog_STRIP"; then | |
5874 | ac_ct_STRIP=$STRIP | |
5875 | # Extract the first word of "strip", so it can be a program name with args. | |
5876 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5878 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5879 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 5880 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
5881 | else |
5882 | if test -n "$ac_ct_STRIP"; then | |
5883 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5884 | else | |
5885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5886 | for as_dir in $PATH | |
5887 | do | |
5888 | IFS=$as_save_IFS | |
5889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5890 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5892 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 5893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5894 | break 2 |
5895 | fi | |
5896 | done | |
81ecdfbb RW |
5897 | done |
5898 | IFS=$as_save_IFS | |
d7040cdb | 5899 | |
ce2cded5 L |
5900 | fi |
5901 | fi | |
5902 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5903 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5905 | $as_echo "$ac_ct_STRIP" >&6; } | |
ce2cded5 | 5906 | else |
81ecdfbb RW |
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5908 | $as_echo "no" >&6; } | |
ce2cded5 | 5909 | fi |
d7040cdb | 5910 | |
81ecdfbb RW |
5911 | if test "x$ac_ct_STRIP" = x; then |
5912 | STRIP=":" | |
5913 | else | |
5914 | case $cross_compiling:$ac_tool_warned in | |
5915 | yes:) | |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5918 | ac_tool_warned=yes ;; | |
5919 | esac | |
5920 | STRIP=$ac_ct_STRIP | |
5921 | fi | |
ce2cded5 L |
5922 | else |
5923 | STRIP="$ac_cv_prog_STRIP" | |
5924 | fi | |
d7040cdb | 5925 | |
ce2cded5 | 5926 | test -z "$STRIP" && STRIP=: |
d7040cdb | 5927 | |
d7040cdb | 5928 | |
d7040cdb | 5929 | |
d7040cdb | 5930 | |
d7040cdb | 5931 | |
d7040cdb | 5932 | |
ce2cded5 L |
5933 | if test -n "$ac_tool_prefix"; then |
5934 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5935 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5937 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5938 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5939 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5940 | else |
ce2cded5 L |
5941 | if test -n "$RANLIB"; then |
5942 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5943 | else | |
5944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5945 | for as_dir in $PATH | |
5946 | do | |
5947 | IFS=$as_save_IFS | |
5948 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5949 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5951 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5953 | break 2 |
5954 | fi | |
5955 | done | |
81ecdfbb RW |
5956 | done |
5957 | IFS=$as_save_IFS | |
44f2f9d2 | 5958 | |
d7040cdb | 5959 | fi |
44f2f9d2 | 5960 | fi |
ce2cded5 L |
5961 | RANLIB=$ac_cv_prog_RANLIB |
5962 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5964 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 5965 | else |
81ecdfbb RW |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5967 | $as_echo "no" >&6; } | |
ce2cded5 | 5968 | fi |
d7040cdb | 5969 | |
81ecdfbb | 5970 | |
d7040cdb | 5971 | fi |
ce2cded5 L |
5972 | if test -z "$ac_cv_prog_RANLIB"; then |
5973 | ac_ct_RANLIB=$RANLIB | |
5974 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5975 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5977 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5978 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5979 | $as_echo_n "(cached) " >&6 |
44f2f9d2 | 5980 | else |
ce2cded5 L |
5981 | if test -n "$ac_ct_RANLIB"; then |
5982 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5983 | else | |
5984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5985 | for as_dir in $PATH | |
d7040cdb | 5986 | do |
ce2cded5 L |
5987 | IFS=$as_save_IFS |
5988 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5989 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5990 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ce2cded5 | 5991 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 5993 | break 2 |
d7040cdb | 5994 | fi |
ce2cded5 | 5995 | done |
81ecdfbb RW |
5996 | done |
5997 | IFS=$as_save_IFS | |
ce2cded5 | 5998 | |
d7040cdb | 5999 | fi |
ce2cded5 L |
6000 | fi |
6001 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6002 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6004 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 6005 | else |
81ecdfbb RW |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6007 | $as_echo "no" >&6; } | |
44f2f9d2 | 6008 | fi |
44f2f9d2 | 6009 | |
81ecdfbb RW |
6010 | if test "x$ac_ct_RANLIB" = x; then |
6011 | RANLIB=":" | |
6012 | else | |
6013 | case $cross_compiling:$ac_tool_warned in | |
6014 | yes:) | |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6016 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6017 | ac_tool_warned=yes ;; | |
6018 | esac | |
6019 | RANLIB=$ac_ct_RANLIB | |
6020 | fi | |
d7040cdb | 6021 | else |
ce2cded5 | 6022 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6023 | fi |
252b5132 | 6024 | |
ce2cded5 | 6025 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6026 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6027 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6028 | RANLIB="$RANLIB $plugin_option" | |
6029 | fi | |
6030 | fi | |
252b5132 | 6031 | |
252b5132 | 6032 | |
ae57792d | 6033 | |
252b5132 | 6034 | |
13b2be9c | 6035 | |
14ee9f48 | 6036 | |
ce2cded5 | 6037 | # Determine commands to create old-style static archives. |
718a6fd8 | 6038 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6039 | old_postinstall_cmds='chmod 644 $oldlib' |
6040 | old_postuninstall_cmds= | |
14ee9f48 | 6041 | |
ce2cded5 L |
6042 | if test -n "$RANLIB"; then |
6043 | case $host_os in | |
6044 | openbsd*) | |
6045 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6046 | ;; | |
6047 | *) | |
6048 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6049 | ;; | |
6050 | esac | |
6051 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6052 | fi |
14ee9f48 | 6053 | |
3725885a RW |
6054 | case $host_os in |
6055 | darwin*) | |
6056 | lock_old_archive_extraction=yes ;; | |
6057 | *) | |
6058 | lock_old_archive_extraction=no ;; | |
6059 | esac | |
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
f8fc3443 | 6066 | |
f8fc3443 | 6067 | |
252b5132 | 6068 | |
85fbca6a | 6069 | |
85fbca6a | 6070 | |
13b2be9c | 6071 | |
13b2be9c | 6072 | |
d7040cdb | 6073 | |
d7040cdb SE |
6074 | |
6075 | ||
6076 | ||
252b5132 | 6077 | |
93fbbb04 | 6078 | |
93fbbb04 | 6079 | |
d70c5fc7 | 6080 | |
e0001a05 | 6081 | |
252b5132 | 6082 | |
252b5132 | 6083 | |
252b5132 | 6084 | |
252b5132 | 6085 | |
252b5132 | 6086 | |
3bcbcc3d | 6087 | |
252b5132 | 6088 | |
252b5132 | 6089 | |
252b5132 | 6090 | |
15886821 | 6091 | |
252b5132 | 6092 | |
252b5132 | 6093 | |
13b2be9c DJ |
6094 | |
6095 | ||
252b5132 | 6096 | |
252b5132 | 6097 | |
d6d788bd | 6098 | |
ce2cded5 L |
6099 | # If no C compiler was specified, use CC. |
6100 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6101 | |
ce2cded5 L |
6102 | # If no C compiler flags were specified, use CFLAGS. |
6103 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6104 | |
ce2cded5 L |
6105 | # Allow CC to be a program name with arguments. |
6106 | compiler=$CC | |
252b5132 | 6107 | |
252b5132 | 6108 | |
ce2cded5 | 6109 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6111 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6112 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6113 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6114 | else |
252b5132 | 6115 | |
ce2cded5 L |
6116 | # These are sane defaults that work on at least a few old systems. |
6117 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6118 | |
ce2cded5 L |
6119 | # Character class describing NM global symbol codes. |
6120 | symcode='[BCDEGRST]' | |
252b5132 | 6121 | |
ce2cded5 L |
6122 | # Regexp to match symbols that can be accessed directly from C. |
6123 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6124 | |
ce2cded5 L |
6125 | # Define system-specific variables. |
6126 | case $host_os in | |
6127 | aix*) | |
6128 | symcode='[BCDT]' | |
6129 | ;; | |
718a6fd8 | 6130 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6131 | symcode='[ABCDGISTW]' |
6132 | ;; | |
6133 | hpux*) | |
6134 | if test "$host_cpu" = ia64; then | |
6135 | symcode='[ABCDEGRST]' | |
6136 | fi | |
6137 | ;; | |
6138 | irix* | nonstopux*) | |
6139 | symcode='[BCDEGRST]' | |
6140 | ;; | |
6141 | osf*) | |
6142 | symcode='[BCDEGQRST]' | |
6143 | ;; | |
6144 | solaris*) | |
b9004024 | 6145 | symcode='[BCDRT]' |
ce2cded5 L |
6146 | ;; |
6147 | sco3.2v5*) | |
6148 | symcode='[DT]' | |
6149 | ;; | |
6150 | sysv4.2uw2*) | |
6151 | symcode='[DT]' | |
6152 | ;; | |
6153 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6154 | symcode='[ABDT]' | |
6155 | ;; | |
6156 | sysv4) | |
6157 | symcode='[DFNSTU]' | |
6158 | ;; | |
6159 | esac | |
6160 | ||
6161 | # If we're using GNU nm, then use its standard symbol codes. | |
6162 | case `$NM -V 2>&1` in | |
6163 | *GNU* | *'with BFD'*) | |
6164 | symcode='[ABCDGIRSTW]' ;; | |
6165 | esac | |
252b5132 | 6166 | |
ce2cded5 L |
6167 | # Transform an extracted symbol line into a proper C declaration. |
6168 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6169 | # so use this general approach. | |
6170 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6171 | |
ce2cded5 | 6172 | # Transform an extracted symbol line into symbol name and symbol address |
f2c621e4 AS |
6173 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6174 | 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 | 6175 | |
7357c5b6 AM |
6176 | # Handle CRLF in mingw tool chain |
6177 | opt_cr= | |
6178 | case $build_os in | |
6179 | mingw*) | |
6180 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6181 | ;; | |
6182 | esac | |
d7040cdb | 6183 | |
7357c5b6 AM |
6184 | # Try without a prefix underscore, then with it. |
6185 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6186 | |
7357c5b6 AM |
6187 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6188 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6189 | |
7357c5b6 AM |
6190 | # Write the raw and C identifiers. |
6191 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6192 | # Fake it for dumpbin and say T for any non-static function | |
6193 | # and D for any global variable. | |
6194 | # Also find C++ and __fastcall symbols from MSVC++, | |
6195 | # which start with @ or ?. | |
6196 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6197 | " {last_section=section; section=\$ 3};"\ | |
6198 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6199 | " \$ 0!~/External *\|/{next};"\ | |
6200 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6201 | " {if(hide[section]) next};"\ | |
6202 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6203 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6204 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6205 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6206 | " ' prfx=^$ac_symprfx" | |
6207 | else | |
6208 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6209 | fi | |
d7040cdb | 6210 | |
7357c5b6 AM |
6211 | # Check to see that the pipe works correctly. |
6212 | pipe_works=no | |
d7040cdb | 6213 | |
7357c5b6 AM |
6214 | rm -f conftest* |
6215 | cat > conftest.$ac_ext <<_LT_EOF | |
6216 | #ifdef __cplusplus | |
6217 | extern "C" { | |
6218 | #endif | |
6219 | char nm_test_var; | |
6220 | void nm_test_func(void); | |
6221 | void nm_test_func(void){} | |
6222 | #ifdef __cplusplus | |
ce2cded5 | 6223 | } |
7357c5b6 AM |
6224 | #endif |
6225 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6226 | _LT_EOF | |
6227 | ||
81ecdfbb | 6228 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6229 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6230 | ac_status=$? |
81ecdfbb RW |
6231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6232 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6233 | # Now try to grab the symbols. |
6234 | nlist=conftest.nm | |
3725885a RW |
6235 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6236 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
ce2cded5 | 6237 | ac_status=$? |
81ecdfbb RW |
6238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6239 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6240 | # Try sorting and uniquifying the output. |
6241 | if sort "$nlist" | uniq > "$nlist"T; then | |
6242 | mv -f "$nlist"T "$nlist" | |
6243 | else | |
6244 | rm -f "$nlist"T | |
6245 | fi | |
13b2be9c | 6246 | |
7357c5b6 AM |
6247 | # Make sure that we snagged all the symbols we need. |
6248 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6249 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6250 | cat <<_LT_EOF > conftest.$ac_ext | |
6251 | #ifdef __cplusplus | |
6252 | extern "C" { | |
6253 | #endif | |
13b2be9c | 6254 | |
7357c5b6 AM |
6255 | _LT_EOF |
6256 | # Now generate the symbol file. | |
6257 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6258 | |
7357c5b6 | 6259 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6260 | |
7357c5b6 | 6261 | /* The mapping between symbol names and symbols. */ |
f2c621e4 | 6262 | const struct { |
7357c5b6 AM |
6263 | const char *name; |
6264 | void *address; | |
6265 | } | |
6266 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6267 | { | |
6268 | { "@PROGRAM@", (void *) 0 }, | |
6269 | _LT_EOF | |
6270 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6271 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6272 | {0, (void *) 0} | |
6273 | }; | |
d7040cdb | 6274 | |
7357c5b6 AM |
6275 | /* This works around a problem in FreeBSD linker */ |
6276 | #ifdef FREEBSD_WORKAROUND | |
6277 | static const void *lt_preloaded_setup() { | |
6278 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6279 | } | |
ce2cded5 | 6280 | #endif |
d7040cdb | 6281 | |
7357c5b6 | 6282 | #ifdef __cplusplus |
ce2cded5 | 6283 | } |
7357c5b6 AM |
6284 | #endif |
6285 | _LT_EOF | |
6286 | # Now try linking the two files. | |
6287 | mv conftest.$ac_objext conftstm.$ac_objext | |
f2c621e4 AS |
6288 | lt_save_LIBS="$LIBS" |
6289 | lt_save_CFLAGS="$CFLAGS" | |
7357c5b6 AM |
6290 | LIBS="conftstm.$ac_objext" |
6291 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6292 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6293 | (eval $ac_link) 2>&5 |
6294 | ac_status=$? | |
81ecdfbb RW |
6295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6296 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6297 | pipe_works=yes |
6298 | fi | |
f2c621e4 AS |
6299 | LIBS="$lt_save_LIBS" |
6300 | CFLAGS="$lt_save_CFLAGS" | |
7357c5b6 AM |
6301 | else |
6302 | echo "cannot find nm_test_func in $nlist" >&5 | |
6303 | fi | |
6304 | else | |
6305 | echo "cannot find nm_test_var in $nlist" >&5 | |
6306 | fi | |
6307 | else | |
6308 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6309 | fi | |
6310 | else | |
6311 | echo "$progname: failed program was:" >&5 | |
6312 | cat conftest.$ac_ext >&5 | |
6313 | fi | |
718a6fd8 | 6314 | rm -rf conftest* conftst* |
7357c5b6 AM |
6315 | |
6316 | # Do not use the global_symbol_pipe unless it works. | |
6317 | if test "$pipe_works" = yes; then | |
6318 | break | |
6319 | else | |
6320 | lt_cv_sys_global_symbol_pipe= | |
6321 | fi | |
6322 | done | |
d7040cdb | 6323 | |
ce2cded5 | 6324 | fi |
7357c5b6 AM |
6325 | |
6326 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6327 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6328 | fi |
7357c5b6 | 6329 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6331 | $as_echo "failed" >&6; } | |
7357c5b6 | 6332 | else |
81ecdfbb RW |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6334 | $as_echo "ok" >&6; } | |
ce2cded5 | 6335 | fi |
d7040cdb | 6336 | |
df7b86aa NC |
6337 | |
6338 | ||
6339 | ||
d7040cdb | 6340 | |
d7040cdb | 6341 | |
d7040cdb | 6342 | |
d7040cdb | 6343 | |
d7040cdb | 6344 | |
d7040cdb | 6345 | |
d7040cdb | 6346 | |
d7040cdb | 6347 | |
d7040cdb | 6348 | |
d7040cdb | 6349 | |
d7040cdb | 6350 | |
7357c5b6 AM |
6351 | |
6352 | ||
718a6fd8 SE |
6353 | |
6354 | ||
6355 | ||
7357c5b6 AM |
6356 | |
6357 | ||
81ecdfbb RW |
6358 | # Check whether --enable-libtool-lock was given. |
6359 | if test "${enable_libtool_lock+set}" = set; then : | |
6360 | enableval=$enable_libtool_lock; | |
6361 | fi | |
7357c5b6 | 6362 | |
7357c5b6 AM |
6363 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6364 | ||
6365 | # Some flags need to be propagated to the compiler or linker for good | |
6366 | # libtool support. | |
6367 | case $host in | |
6368 | ia64-*-hpux*) | |
6369 | # Find out which ABI we are using. | |
6370 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6372 | (eval $ac_compile) 2>&5 |
6373 | ac_status=$? | |
81ecdfbb RW |
6374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6375 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6376 | case `/usr/bin/file conftest.$ac_objext` in |
6377 | *ELF-32*) | |
6378 | HPUX_IA64_MODE="32" | |
6379 | ;; | |
6380 | *ELF-64*) | |
6381 | HPUX_IA64_MODE="64" | |
6382 | ;; | |
6383 | esac | |
6384 | fi | |
6385 | rm -rf conftest* | |
6386 | ;; | |
6387 | *-*-irix6*) | |
6388 | # Find out which ABI we are using. | |
3725885a | 6389 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6390 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6391 | (eval $ac_compile) 2>&5 |
6392 | ac_status=$? | |
81ecdfbb RW |
6393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6394 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6395 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6396 | case `/usr/bin/file conftest.$ac_objext` in | |
6397 | *32-bit*) | |
6398 | LD="${LD-ld} -melf32bsmip" | |
6399 | ;; | |
6400 | *N32*) | |
6401 | LD="${LD-ld} -melf32bmipn32" | |
6402 | ;; | |
6403 | *64-bit*) | |
6404 | LD="${LD-ld} -melf64bmip" | |
6405 | ;; | |
6406 | esac | |
6407 | else | |
6408 | case `/usr/bin/file conftest.$ac_objext` in | |
6409 | *32-bit*) | |
6410 | LD="${LD-ld} -32" | |
6411 | ;; | |
6412 | *N32*) | |
6413 | LD="${LD-ld} -n32" | |
6414 | ;; | |
6415 | *64-bit*) | |
6416 | LD="${LD-ld} -64" | |
6417 | ;; | |
6418 | esac | |
6419 | fi | |
6420 | fi | |
6421 | rm -rf conftest* | |
6422 | ;; | |
6423 | ||
cc9afea3 | 6424 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
6425 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6426 | # Find out which ABI we are using. | |
6427 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6428 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6429 | (eval $ac_compile) 2>&5 |
6430 | ac_status=$? | |
81ecdfbb RW |
6431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6432 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6433 | case `/usr/bin/file conftest.o` in |
6434 | *32-bit*) | |
6435 | case $host in | |
6436 | x86_64-*kfreebsd*-gnu) | |
6437 | LD="${LD-ld} -m elf_i386_fbsd" | |
6438 | ;; | |
6439 | x86_64-*linux*) | |
6d2920c8 L |
6440 | case `/usr/bin/file conftest.o` in |
6441 | *x86-64*) | |
6442 | LD="${LD-ld} -m elf32_x86_64" | |
6443 | ;; | |
6444 | *) | |
6445 | LD="${LD-ld} -m elf_i386" | |
6446 | ;; | |
6447 | esac | |
7357c5b6 | 6448 | ;; |
cc9afea3 AM |
6449 | powerpc64le-*linux*) |
6450 | LD="${LD-ld} -m elf32lppclinux" | |
6451 | ;; | |
6452 | powerpc64-*linux*) | |
7357c5b6 AM |
6453 | LD="${LD-ld} -m elf32ppclinux" |
6454 | ;; | |
6455 | s390x-*linux*) | |
6456 | LD="${LD-ld} -m elf_s390" | |
6457 | ;; | |
6458 | sparc64-*linux*) | |
6459 | LD="${LD-ld} -m elf32_sparc" | |
6460 | ;; | |
6461 | esac | |
6462 | ;; | |
6463 | *64-bit*) | |
6464 | case $host in | |
6465 | x86_64-*kfreebsd*-gnu) | |
6466 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6467 | ;; | |
6468 | x86_64-*linux*) | |
6469 | LD="${LD-ld} -m elf_x86_64" | |
6470 | ;; | |
cc9afea3 AM |
6471 | powerpcle-*linux*) |
6472 | LD="${LD-ld} -m elf64lppc" | |
6473 | ;; | |
6474 | powerpc-*linux*) | |
7357c5b6 AM |
6475 | LD="${LD-ld} -m elf64ppc" |
6476 | ;; | |
6477 | s390*-*linux*|s390*-*tpf*) | |
6478 | LD="${LD-ld} -m elf64_s390" | |
6479 | ;; | |
6480 | sparc*-*linux*) | |
6481 | LD="${LD-ld} -m elf64_sparc" | |
6482 | ;; | |
6483 | esac | |
6484 | ;; | |
6485 | esac | |
6486 | fi | |
6487 | rm -rf conftest* | |
6488 | ;; | |
6489 | ||
6490 | *-*-sco3.2v5*) | |
6491 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6492 | SAVE_CFLAGS="$CFLAGS" | |
6493 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6495 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6496 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6497 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 6498 | else |
7357c5b6 AM |
6499 | ac_ext=c |
6500 | ac_cpp='$CPP $CPPFLAGS' | |
6501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6504 | ||
81ecdfbb | 6505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 6506 | /* end confdefs.h. */ |
d7040cdb | 6507 | |
7357c5b6 AM |
6508 | int |
6509 | main () | |
6510 | { | |
6511 | ||
6512 | ; | |
6513 | return 0; | |
6514 | } | |
ce2cded5 | 6515 | _ACEOF |
81ecdfbb | 6516 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6517 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 6518 | else |
81ecdfbb | 6519 | lt_cv_cc_needs_belf=no |
ce2cded5 | 6520 | fi |
81ecdfbb RW |
6521 | rm -f core conftest.err conftest.$ac_objext \ |
6522 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6523 | ac_ext=c |
6524 | ac_cpp='$CPP $CPPFLAGS' | |
6525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6528 | |
ce2cded5 | 6529 | fi |
81ecdfbb RW |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6531 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6532 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6533 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6534 | CFLAGS="$SAVE_CFLAGS" | |
6535 | fi | |
6536 | ;; | |
6537 | sparc*-*solaris*) | |
6538 | # Find out which ABI we are using. | |
6539 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6540 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6541 | (eval $ac_compile) 2>&5 |
6542 | ac_status=$? | |
81ecdfbb RW |
6543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6544 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6545 | case `/usr/bin/file conftest.o` in |
6546 | *64-bit*) | |
6547 | case $lt_cv_prog_gnu_ld in | |
6548 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
6549 | *) |
6550 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6551 | LD="${LD-ld} -64" | |
6552 | fi | |
6553 | ;; | |
7357c5b6 AM |
6554 | esac |
6555 | ;; | |
6556 | esac | |
6557 | fi | |
6558 | rm -rf conftest* | |
6559 | ;; | |
6560 | esac | |
d7040cdb | 6561 | |
df7b86aa NC |
6562 | need_locks="$enable_libtool_lock" |
6563 | ||
718a6fd8 SE |
6564 | |
6565 | case $host_os in | |
6566 | rhapsody* | darwin*) | |
6567 | if test -n "$ac_tool_prefix"; then | |
6568 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6569 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6571 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6572 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 6573 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6574 | else |
6575 | if test -n "$DSYMUTIL"; then | |
6576 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6577 | else | |
6578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6579 | for as_dir in $PATH | |
6580 | do | |
6581 | IFS=$as_save_IFS | |
6582 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6583 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6585 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 6586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6587 | break 2 |
6588 | fi | |
6589 | done | |
81ecdfbb RW |
6590 | done |
6591 | IFS=$as_save_IFS | |
718a6fd8 SE |
6592 | |
6593 | fi | |
6594 | fi | |
6595 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6596 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6598 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 6599 | else |
81ecdfbb RW |
6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6601 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6602 | fi |
6603 | ||
81ecdfbb | 6604 | |
718a6fd8 SE |
6605 | fi |
6606 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6607 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6608 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6609 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6611 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6612 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 6613 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6614 | else |
6615 | if test -n "$ac_ct_DSYMUTIL"; then | |
6616 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6617 | else | |
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6619 | for as_dir in $PATH | |
6620 | do | |
6621 | IFS=$as_save_IFS | |
6622 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6625 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6627 | break 2 |
6628 | fi | |
6629 | done | |
81ecdfbb RW |
6630 | done |
6631 | IFS=$as_save_IFS | |
718a6fd8 | 6632 | |
718a6fd8 SE |
6633 | fi |
6634 | fi | |
6635 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6636 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6638 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 6639 | else |
81ecdfbb RW |
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6641 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6642 | fi |
6643 | ||
81ecdfbb RW |
6644 | if test "x$ac_ct_DSYMUTIL" = x; then |
6645 | DSYMUTIL=":" | |
6646 | else | |
6647 | case $cross_compiling:$ac_tool_warned in | |
6648 | yes:) | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6651 | ac_tool_warned=yes ;; | |
6652 | esac | |
6653 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6654 | fi | |
718a6fd8 SE |
6655 | else |
6656 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6657 | fi | |
6658 | ||
6659 | if test -n "$ac_tool_prefix"; then | |
6660 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6661 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6663 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6664 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 6665 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6666 | else |
6667 | if test -n "$NMEDIT"; then | |
6668 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6669 | else | |
6670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6671 | for as_dir in $PATH | |
6672 | do | |
6673 | IFS=$as_save_IFS | |
6674 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6675 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6677 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 6678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6679 | break 2 |
6680 | fi | |
6681 | done | |
81ecdfbb RW |
6682 | done |
6683 | IFS=$as_save_IFS | |
718a6fd8 SE |
6684 | |
6685 | fi | |
6686 | fi | |
6687 | NMEDIT=$ac_cv_prog_NMEDIT | |
6688 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6690 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 6691 | else |
81ecdfbb RW |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6693 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6694 | fi |
6695 | ||
81ecdfbb | 6696 | |
718a6fd8 SE |
6697 | fi |
6698 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6699 | ac_ct_NMEDIT=$NMEDIT | |
6700 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6701 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6703 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6704 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 6705 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6706 | else |
6707 | if test -n "$ac_ct_NMEDIT"; then | |
6708 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6709 | else | |
6710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6711 | for as_dir in $PATH | |
6712 | do | |
6713 | IFS=$as_save_IFS | |
6714 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6715 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6717 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 6718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6719 | break 2 |
6720 | fi | |
6721 | done | |
81ecdfbb RW |
6722 | done |
6723 | IFS=$as_save_IFS | |
718a6fd8 | 6724 | |
718a6fd8 SE |
6725 | fi |
6726 | fi | |
6727 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6728 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6730 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 6731 | else |
81ecdfbb RW |
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6733 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6734 | fi |
6735 | ||
81ecdfbb RW |
6736 | if test "x$ac_ct_NMEDIT" = x; then |
6737 | NMEDIT=":" | |
6738 | else | |
6739 | case $cross_compiling:$ac_tool_warned in | |
6740 | yes:) | |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6743 | ac_tool_warned=yes ;; | |
6744 | esac | |
6745 | NMEDIT=$ac_ct_NMEDIT | |
6746 | fi | |
718a6fd8 SE |
6747 | else |
6748 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6749 | fi | |
6750 | ||
6751 | if test -n "$ac_tool_prefix"; then | |
6752 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6753 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6755 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6756 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 6757 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6758 | else |
6759 | if test -n "$LIPO"; then | |
6760 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6761 | else | |
6762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6763 | for as_dir in $PATH | |
6764 | do | |
6765 | IFS=$as_save_IFS | |
6766 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6767 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6769 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 6770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6771 | break 2 |
6772 | fi | |
6773 | done | |
81ecdfbb RW |
6774 | done |
6775 | IFS=$as_save_IFS | |
718a6fd8 SE |
6776 | |
6777 | fi | |
6778 | fi | |
6779 | LIPO=$ac_cv_prog_LIPO | |
6780 | if test -n "$LIPO"; then | |
81ecdfbb RW |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6782 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 6783 | else |
81ecdfbb RW |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6785 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6786 | fi |
6787 | ||
81ecdfbb | 6788 | |
718a6fd8 SE |
6789 | fi |
6790 | if test -z "$ac_cv_prog_LIPO"; then | |
6791 | ac_ct_LIPO=$LIPO | |
6792 | # Extract the first word of "lipo", so it can be a program name with args. | |
6793 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6795 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6796 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 6797 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6798 | else |
6799 | if test -n "$ac_ct_LIPO"; then | |
6800 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6801 | else | |
6802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6803 | for as_dir in $PATH | |
6804 | do | |
6805 | IFS=$as_save_IFS | |
6806 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6807 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6809 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 6810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6811 | break 2 |
6812 | fi | |
6813 | done | |
81ecdfbb RW |
6814 | done |
6815 | IFS=$as_save_IFS | |
718a6fd8 | 6816 | |
718a6fd8 SE |
6817 | fi |
6818 | fi | |
6819 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6820 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6822 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 6823 | else |
81ecdfbb RW |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6825 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6826 | fi |
6827 | ||
81ecdfbb RW |
6828 | if test "x$ac_ct_LIPO" = x; then |
6829 | LIPO=":" | |
6830 | else | |
6831 | case $cross_compiling:$ac_tool_warned in | |
6832 | yes:) | |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6835 | ac_tool_warned=yes ;; | |
6836 | esac | |
6837 | LIPO=$ac_ct_LIPO | |
6838 | fi | |
718a6fd8 SE |
6839 | else |
6840 | LIPO="$ac_cv_prog_LIPO" | |
6841 | fi | |
6842 | ||
6843 | if test -n "$ac_tool_prefix"; then | |
6844 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6845 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6847 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6848 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 6849 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6850 | else |
6851 | if test -n "$OTOOL"; then | |
6852 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6853 | else | |
6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6855 | for as_dir in $PATH | |
6856 | do | |
6857 | IFS=$as_save_IFS | |
6858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6861 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 6862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6863 | break 2 |
6864 | fi | |
6865 | done | |
81ecdfbb RW |
6866 | done |
6867 | IFS=$as_save_IFS | |
718a6fd8 SE |
6868 | |
6869 | fi | |
6870 | fi | |
6871 | OTOOL=$ac_cv_prog_OTOOL | |
6872 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
6874 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 6875 | else |
81ecdfbb RW |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6877 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6878 | fi |
6879 | ||
81ecdfbb | 6880 | |
718a6fd8 SE |
6881 | fi |
6882 | if test -z "$ac_cv_prog_OTOOL"; then | |
6883 | ac_ct_OTOOL=$OTOOL | |
6884 | # Extract the first word of "otool", so it can be a program name with args. | |
6885 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6887 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6888 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 6889 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6890 | else |
6891 | if test -n "$ac_ct_OTOOL"; then | |
6892 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6893 | else | |
6894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6895 | for as_dir in $PATH | |
6896 | do | |
6897 | IFS=$as_save_IFS | |
6898 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6899 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6901 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 6902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6903 | break 2 |
6904 | fi | |
6905 | done | |
81ecdfbb RW |
6906 | done |
6907 | IFS=$as_save_IFS | |
718a6fd8 | 6908 | |
718a6fd8 SE |
6909 | fi |
6910 | fi | |
6911 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6912 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
6914 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 6915 | else |
81ecdfbb RW |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6917 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6918 | fi |
6919 | ||
81ecdfbb RW |
6920 | if test "x$ac_ct_OTOOL" = x; then |
6921 | OTOOL=":" | |
6922 | else | |
6923 | case $cross_compiling:$ac_tool_warned in | |
6924 | yes:) | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6926 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6927 | ac_tool_warned=yes ;; | |
6928 | esac | |
6929 | OTOOL=$ac_ct_OTOOL | |
6930 | fi | |
718a6fd8 SE |
6931 | else |
6932 | OTOOL="$ac_cv_prog_OTOOL" | |
6933 | fi | |
6934 | ||
6935 | if test -n "$ac_tool_prefix"; then | |
6936 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6937 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6939 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6940 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 6941 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6942 | else |
6943 | if test -n "$OTOOL64"; then | |
6944 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6945 | else | |
6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6947 | for as_dir in $PATH | |
6948 | do | |
6949 | IFS=$as_save_IFS | |
6950 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6953 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6955 | break 2 |
6956 | fi | |
6957 | done | |
81ecdfbb RW |
6958 | done |
6959 | IFS=$as_save_IFS | |
718a6fd8 SE |
6960 | |
6961 | fi | |
6962 | fi | |
6963 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6964 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
6966 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 6967 | else |
81ecdfbb RW |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6969 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6970 | fi |
6971 | ||
81ecdfbb | 6972 | |
718a6fd8 SE |
6973 | fi |
6974 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6975 | ac_ct_OTOOL64=$OTOOL64 | |
6976 | # Extract the first word of "otool64", so it can be a program name with args. | |
6977 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6979 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6980 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 6981 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6982 | else |
6983 | if test -n "$ac_ct_OTOOL64"; then | |
6984 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6985 | else | |
6986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6987 | for as_dir in $PATH | |
6988 | do | |
6989 | IFS=$as_save_IFS | |
6990 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6991 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 6993 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 6994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6995 | break 2 |
6996 | fi | |
6997 | done | |
81ecdfbb RW |
6998 | done |
6999 | IFS=$as_save_IFS | |
718a6fd8 | 7000 | |
718a6fd8 SE |
7001 | fi |
7002 | fi | |
7003 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7004 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7006 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7007 | else |
81ecdfbb RW |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7009 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7010 | fi |
7011 | ||
81ecdfbb RW |
7012 | if test "x$ac_ct_OTOOL64" = x; then |
7013 | OTOOL64=":" | |
7014 | else | |
7015 | case $cross_compiling:$ac_tool_warned in | |
7016 | yes:) | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7019 | ac_tool_warned=yes ;; | |
7020 | esac | |
7021 | OTOOL64=$ac_ct_OTOOL64 | |
7022 | fi | |
718a6fd8 SE |
7023 | else |
7024 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7025 | fi | |
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
81ecdfbb RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7054 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7055 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7056 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7057 | else |
7058 | lt_cv_apple_cc_single_mod=no | |
7059 | if test -z "${LT_MULTI_MODULE}"; then | |
7060 | # By default we will add the -single_module flag. You can override | |
7061 | # by either setting the environment variable LT_MULTI_MODULE | |
7062 | # non-empty at configure time, or by adding -multi_module to the | |
7063 | # link flags. | |
7064 | rm -rf libconftest.dylib* | |
7065 | echo "int foo(void){return 1;}" > conftest.c | |
7066 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7067 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7068 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7069 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7070 | _lt_result=$? | |
7071 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7072 | lt_cv_apple_cc_single_mod=yes | |
7073 | else | |
7074 | cat conftest.err >&5 | |
7075 | fi | |
7076 | rm -rf libconftest.dylib* | |
7077 | rm -f conftest.* | |
7078 | fi | |
7079 | fi | |
81ecdfbb RW |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7081 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7083 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7084 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7085 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7086 | else |
7087 | lt_cv_ld_exported_symbols_list=no | |
7088 | save_LDFLAGS=$LDFLAGS | |
7089 | echo "_main" > conftest.sym | |
7090 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7092 | /* end confdefs.h. */ |
7093 | ||
7094 | int | |
7095 | main () | |
7096 | { | |
7097 | ||
7098 | ; | |
7099 | return 0; | |
7100 | } | |
7101 | _ACEOF | |
81ecdfbb | 7102 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7103 | lt_cv_ld_exported_symbols_list=yes |
7104 | else | |
81ecdfbb | 7105 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7106 | fi |
81ecdfbb RW |
7107 | rm -f core conftest.err conftest.$ac_objext \ |
7108 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7109 | LDFLAGS="$save_LDFLAGS" |
7110 | ||
7111 | fi | |
81ecdfbb RW |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7113 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7115 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7116 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7117 | $as_echo_n "(cached) " >&6 |
7118 | else | |
7119 | lt_cv_ld_force_load=no | |
7120 | cat > conftest.c << _LT_EOF | |
7121 | int forced_loaded() { return 2;} | |
7122 | _LT_EOF | |
7123 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7124 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7125 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7126 | $AR cru libconftest.a conftest.o 2>&5 | |
7127 | cat > conftest.c << _LT_EOF | |
7128 | int main() { return 0;} | |
7129 | _LT_EOF | |
7130 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7131 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7132 | _lt_result=$? | |
7133 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7134 | lt_cv_ld_force_load=yes | |
7135 | else | |
7136 | cat conftest.err >&5 | |
7137 | fi | |
7138 | rm -f conftest.err libconftest.a conftest conftest.c | |
7139 | rm -rf conftest.dSYM | |
7140 | ||
7141 | fi | |
7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7143 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7144 | case $host_os in |
7145 | rhapsody* | darwin1.[012]) | |
7146 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7147 | darwin1.*) | |
7148 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7149 | darwin*) # darwin 5.x on | |
7150 | # if running on 10.5 or later, the deployment target defaults | |
7151 | # to the OS version, if on x86, and 10.4, the deployment | |
7152 | # target defaults to 10.4. Don't you love it? | |
7153 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7154 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7155 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7156 | 10.[012][,.]*) |
718a6fd8 SE |
7157 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7158 | 10.*) | |
7159 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7160 | esac | |
7161 | ;; | |
7162 | esac | |
7163 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7164 | _lt_dar_single_mod='$single_module' | |
7165 | fi | |
7166 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7167 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7168 | else | |
7169 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7170 | fi | |
3725885a | 7171 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7172 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7173 | else | |
7174 | _lt_dsymutil= | |
7175 | fi | |
7176 | ;; | |
7177 | esac | |
7178 | ||
718a6fd8 | 7179 | for ac_header in dlfcn.h |
81ecdfbb RW |
7180 | do : |
7181 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7182 | " | |
d0ac1c44 | 7183 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
718a6fd8 | 7184 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7185 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7186 | _ACEOF |
7187 | ||
7188 | fi | |
7189 | ||
7190 | done | |
7191 | ||
7192 | ||
7193 | ||
3725885a RW |
7194 | |
7195 | ||
718a6fd8 SE |
7196 | # Set options |
7197 | ||
7198 | ||
7199 | ||
7200 | enable_dlopen=no | |
7201 | ||
7202 | ||
7203 | enable_win32_dll=no | |
7204 | ||
7205 | ||
81ecdfbb RW |
7206 | # Check whether --enable-shared was given. |
7207 | if test "${enable_shared+set}" = set; then : | |
7208 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7209 | case $enableval in |
7210 | yes) enable_shared=yes ;; | |
7211 | no) enable_shared=no ;; | |
7212 | *) | |
7213 | enable_shared=no | |
7214 | # Look at the argument we got. We use all the common list separators. | |
7215 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7216 | for pkg in $enableval; do | |
7217 | IFS="$lt_save_ifs" | |
7218 | if test "X$pkg" = "X$p"; then | |
7219 | enable_shared=yes | |
7220 | fi | |
7221 | done | |
7222 | IFS="$lt_save_ifs" | |
7223 | ;; | |
7224 | esac | |
7225 | else | |
7226 | enable_shared=yes | |
81ecdfbb RW |
7227 | fi |
7228 | ||
718a6fd8 SE |
7229 | |
7230 | ||
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | ||
81ecdfbb RW |
7237 | # Check whether --enable-static was given. |
7238 | if test "${enable_static+set}" = set; then : | |
7239 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7240 | case $enableval in |
7241 | yes) enable_static=yes ;; | |
7242 | no) enable_static=no ;; | |
7243 | *) | |
7244 | enable_static=no | |
7245 | # Look at the argument we got. We use all the common list separators. | |
7246 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7247 | for pkg in $enableval; do | |
7248 | IFS="$lt_save_ifs" | |
7249 | if test "X$pkg" = "X$p"; then | |
7250 | enable_static=yes | |
7251 | fi | |
7252 | done | |
7253 | IFS="$lt_save_ifs" | |
7254 | ;; | |
7255 | esac | |
7256 | else | |
7257 | enable_static=yes | |
81ecdfbb RW |
7258 | fi |
7259 | ||
718a6fd8 SE |
7260 | |
7261 | ||
d7040cdb | 7262 | |
d7040cdb | 7263 | |
718a6fd8 SE |
7264 | |
7265 | ||
7266 | ||
7267 | ||
7268 | ||
81ecdfbb RW |
7269 | # Check whether --with-pic was given. |
7270 | if test "${with_pic+set}" = set; then : | |
7271 | withval=$with_pic; pic_mode="$withval" | |
ce2cded5 | 7272 | else |
718a6fd8 | 7273 | pic_mode=default |
81ecdfbb RW |
7274 | fi |
7275 | ||
d7040cdb | 7276 | |
718a6fd8 SE |
7277 | test -z "$pic_mode" && pic_mode=default |
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
7284 | ||
81ecdfbb RW |
7285 | # Check whether --enable-fast-install was given. |
7286 | if test "${enable_fast_install+set}" = set; then : | |
7287 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7288 | case $enableval in |
7289 | yes) enable_fast_install=yes ;; | |
7290 | no) enable_fast_install=no ;; | |
7291 | *) | |
7292 | enable_fast_install=no | |
7293 | # Look at the argument we got. We use all the common list separators. | |
7294 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7295 | for pkg in $enableval; do | |
7296 | IFS="$lt_save_ifs" | |
7297 | if test "X$pkg" = "X$p"; then | |
7298 | enable_fast_install=yes | |
7299 | fi | |
7300 | done | |
7301 | IFS="$lt_save_ifs" | |
7302 | ;; | |
7303 | esac | |
ce2cded5 | 7304 | else |
718a6fd8 | 7305 | enable_fast_install=yes |
81ecdfbb RW |
7306 | fi |
7307 | ||
718a6fd8 SE |
7308 | |
7309 | ||
7310 | ||
7311 | ||
d7040cdb | 7312 | |
d7040cdb | 7313 | |
d7040cdb | 7314 | |
d7040cdb | 7315 | |
d7040cdb | 7316 | |
d7040cdb | 7317 | |
ce2cded5 L |
7318 | # This can be used to rebuild libtool when needed |
7319 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7320 | |
ce2cded5 L |
7321 | # Always use our own libtool. |
7322 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7323 | |
d7040cdb | 7324 | |
d7040cdb | 7325 | |
d7040cdb SE |
7326 | |
7327 | ||
7328 | ||
7329 | ||
7330 | ||
7331 | ||
d7040cdb | 7332 | |
d7040cdb | 7333 | |
ab509236 | 7334 | |
ab509236 | 7335 | |
d7040cdb SE |
7336 | |
7337 | ||
7338 | ||
7339 | ||
7340 | ||
13b2be9c | 7341 | |
13b2be9c | 7342 | |
13b2be9c | 7343 | |
13b2be9c | 7344 | |
d7040cdb | 7345 | |
3725885a | 7346 | |
d7040cdb SE |
7347 | |
7348 | ||
ce2cded5 | 7349 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7350 | |
7351 | ||
d7040cdb | 7352 | |
d7040cdb | 7353 | |
d7040cdb SE |
7354 | |
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
ce2cded5 L |
7360 | |
7361 | ||
7362 | ||
7363 | ||
7364 | if test -n "${ZSH_VERSION+set}" ; then | |
7365 | setopt NO_GLOB_SUBST | |
7366 | fi | |
7367 | ||
81ecdfbb RW |
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7369 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7370 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7371 | $as_echo_n "(cached) " >&6 |
d7040cdb | 7372 | else |
ce2cded5 L |
7373 | rm -f .libs 2>/dev/null |
7374 | mkdir .libs 2>/dev/null | |
7375 | if test -d .libs; then | |
7376 | lt_cv_objdir=.libs | |
7377 | else | |
7378 | # MS-DOS does not allow filenames that begin with a dot. | |
7379 | lt_cv_objdir=_libs | |
d7040cdb | 7380 | fi |
ce2cded5 L |
7381 | rmdir .libs 2>/dev/null |
7382 | fi | |
81ecdfbb RW |
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7384 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7385 | objdir=$lt_cv_objdir |
d7040cdb SE |
7386 | |
7387 | ||
7388 | ||
7389 | ||
d7040cdb | 7390 | |
ce2cded5 L |
7391 | cat >>confdefs.h <<_ACEOF |
7392 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7393 | _ACEOF | |
d7040cdb SE |
7394 | |
7395 | ||
7396 | ||
7397 | ||
ce2cded5 L |
7398 | case $host_os in |
7399 | aix3*) | |
7400 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7401 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7402 | # vanish in a puff of smoke. | |
7403 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7404 | COLLECT_NAMES= | |
7405 | export COLLECT_NAMES | |
7406 | fi | |
7407 | ;; | |
7408 | esac | |
d7040cdb | 7409 | |
ce2cded5 L |
7410 | # Global variables: |
7411 | ofile=libtool | |
7412 | can_build_shared=yes | |
d7040cdb | 7413 | |
ce2cded5 L |
7414 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7415 | # which needs '.lib'). | |
7416 | libext=a | |
d7040cdb | 7417 | |
ce2cded5 | 7418 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7419 | |
ce2cded5 L |
7420 | old_CC="$CC" |
7421 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7422 | |
ce2cded5 L |
7423 | # Set sane defaults for various variables |
7424 | test -z "$CC" && CC=cc | |
7425 | test -z "$LTCC" && LTCC=$CC | |
7426 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7427 | test -z "$LD" && LD=ld | |
7428 | test -z "$ac_objext" && ac_objext=o | |
7429 | ||
7430 | for cc_temp in $compiler""; do | |
7431 | case $cc_temp in | |
7432 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7433 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7434 | \-*) ;; | |
7435 | *) break;; | |
7436 | esac | |
7437 | done | |
3725885a | 7438 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
ce2cded5 L |
7439 | |
7440 | ||
7441 | # Only perform the check for file, if the check method requires it | |
7442 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7443 | case $deplibs_check_method in | |
7444 | file_magic*) | |
7445 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7447 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7448 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7449 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7450 | else |
7451 | case $MAGIC_CMD in | |
7452 | [\\/*] | ?:[\\/]*) | |
7453 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7454 | ;; | |
7455 | *) | |
7456 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7457 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7458 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7459 | for ac_dir in $ac_dummy; do | |
7460 | IFS="$lt_save_ifs" | |
7461 | test -z "$ac_dir" && ac_dir=. | |
7462 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7463 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7464 | if test -n "$file_magic_test_file"; then | |
7465 | case $deplibs_check_method in | |
7466 | "file_magic "*) | |
7467 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7468 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7469 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7470 | $EGREP "$file_magic_regex" > /dev/null; then | |
7471 | : | |
d7040cdb | 7472 | else |
ce2cded5 | 7473 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7474 | |
ce2cded5 L |
7475 | *** Warning: the command libtool uses to detect shared libraries, |
7476 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7477 | *** The result is that libtool may fail to recognize shared libraries | |
7478 | *** as such. This will affect the creation of libtool libraries that | |
7479 | *** depend on shared libraries, but programs linked with such libtool | |
7480 | *** libraries will work regardless of this problem. Nevertheless, you | |
7481 | *** may want to report the problem to your system manager and/or to | |
7482 | *** [email protected] | |
d7040cdb | 7483 | |
ce2cded5 L |
7484 | _LT_EOF |
7485 | fi ;; | |
7486 | esac | |
d7040cdb | 7487 | fi |
ce2cded5 | 7488 | break |
d7040cdb | 7489 | fi |
ce2cded5 L |
7490 | done |
7491 | IFS="$lt_save_ifs" | |
7492 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7493 | ;; | |
7494 | esac | |
7495 | fi | |
d7040cdb | 7496 | |
ce2cded5 L |
7497 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7498 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7500 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7501 | else |
81ecdfbb RW |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7503 | $as_echo "no" >&6; } | |
ce2cded5 | 7504 | fi |
d7040cdb | 7505 | |
d7040cdb | 7506 | |
d7040cdb | 7507 | |
d7040cdb | 7508 | |
d7040cdb | 7509 | |
ce2cded5 L |
7510 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7511 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7513 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7514 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7515 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7516 | else |
7517 | case $MAGIC_CMD in | |
7518 | [\\/*] | ?:[\\/]*) | |
7519 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7520 | ;; | |
7521 | *) | |
7522 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7523 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7524 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7525 | for ac_dir in $ac_dummy; do | |
7526 | IFS="$lt_save_ifs" | |
7527 | test -z "$ac_dir" && ac_dir=. | |
7528 | if test -f $ac_dir/file; then | |
7529 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7530 | if test -n "$file_magic_test_file"; then | |
7531 | case $deplibs_check_method in | |
7532 | "file_magic "*) | |
7533 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7534 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7535 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7536 | $EGREP "$file_magic_regex" > /dev/null; then | |
7537 | : | |
d7040cdb | 7538 | else |
ce2cded5 L |
7539 | cat <<_LT_EOF 1>&2 |
7540 | ||
7541 | *** Warning: the command libtool uses to detect shared libraries, | |
7542 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7543 | *** The result is that libtool may fail to recognize shared libraries | |
7544 | *** as such. This will affect the creation of libtool libraries that | |
7545 | *** depend on shared libraries, but programs linked with such libtool | |
7546 | *** libraries will work regardless of this problem. Nevertheless, you | |
7547 | *** may want to report the problem to your system manager and/or to | |
7548 | *** [email protected] | |
7549 | ||
7550 | _LT_EOF | |
7551 | fi ;; | |
d7040cdb | 7552 | esac |
d7040cdb | 7553 | fi |
ce2cded5 L |
7554 | break |
7555 | fi | |
7556 | done | |
7557 | IFS="$lt_save_ifs" | |
7558 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7559 | ;; | |
7560 | esac | |
7561 | fi | |
d7040cdb | 7562 | |
ce2cded5 L |
7563 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7564 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7566 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 7567 | else |
81ecdfbb RW |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7569 | $as_echo "no" >&6; } | |
ce2cded5 | 7570 | fi |
d7040cdb | 7571 | |
d7040cdb | 7572 | |
ce2cded5 L |
7573 | else |
7574 | MAGIC_CMD=: | |
7575 | fi | |
d7040cdb | 7576 | fi |
d7040cdb | 7577 | |
ce2cded5 L |
7578 | fi |
7579 | ;; | |
7580 | esac | |
d7040cdb | 7581 | |
ce2cded5 | 7582 | # Use C for the default configuration in the libtool script |
d7040cdb | 7583 | |
ce2cded5 L |
7584 | lt_save_CC="$CC" |
7585 | ac_ext=c | |
7586 | ac_cpp='$CPP $CPPFLAGS' | |
7587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7590 | |
d7040cdb | 7591 | |
ce2cded5 L |
7592 | # Source file extension for C test sources. |
7593 | ac_ext=c | |
d7040cdb | 7594 | |
ce2cded5 L |
7595 | # Object file extension for compiled C test sources. |
7596 | objext=o | |
7597 | objext=$objext | |
d7040cdb | 7598 | |
ce2cded5 L |
7599 | # Code to be used in simple compile tests |
7600 | lt_simple_compile_test_code="int some_variable = 0;" | |
7601 | ||
7602 | # Code to be used in simple link tests | |
7603 | lt_simple_link_test_code='int main(){return(0);}' | |
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | # If no C compiler was specified, use CC. | |
7612 | LTCC=${LTCC-"$CC"} | |
7613 | ||
7614 | # If no C compiler flags were specified, use CFLAGS. | |
7615 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7616 | ||
7617 | # Allow CC to be a program name with arguments. | |
7618 | compiler=$CC | |
7619 | ||
7620 | # Save the default compiler, since it gets overwritten when the other | |
7621 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7622 | compiler_DEFAULT=$CC | |
7623 | ||
7624 | # save warnings/boilerplate of simple test code | |
7625 | ac_outfile=conftest.$ac_objext | |
7626 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7627 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7628 | _lt_compiler_boilerplate=`cat conftest.err` | |
7629 | $RM conftest* | |
7630 | ||
7631 | ac_outfile=conftest.$ac_objext | |
7632 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7633 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7634 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7635 | $RM -r conftest* |
ce2cded5 L |
7636 | |
7637 | ||
f2c621e4 AS |
7638 | ## CAVEAT EMPTOR: |
7639 | ## There is no encapsulation within the following macros, do not change | |
7640 | ## the running order or otherwise move them around unless you know exactly | |
7641 | ## what you are doing... | |
ce2cded5 L |
7642 | if test -n "$compiler"; then |
7643 | ||
7644 | lt_prog_compiler_no_builtin_flag= | |
7645 | ||
7646 | if test "$GCC" = yes; then | |
3725885a RW |
7647 | case $cc_basename in |
7648 | nvcc*) | |
7649 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7650 | *) | |
7651 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7652 | esac | |
ce2cded5 | 7653 | |
81ecdfbb RW |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7655 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 7656 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 7657 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
7658 | else |
7659 | lt_cv_prog_compiler_rtti_exceptions=no | |
7660 | ac_outfile=conftest.$ac_objext | |
7661 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7662 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7663 | # Insert the option either (1) after the last *FLAGS variable, or | |
7664 | # (2) before a word containing "conftest.", or (3) at the end. | |
7665 | # Note that $ac_compile itself does not contain backslashes and begins | |
7666 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7667 | # The option is referenced via a variable to avoid confusing sed. | |
7668 | lt_compile=`echo "$ac_compile" | $SED \ | |
7669 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7670 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7671 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 7672 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
7673 | (eval "$lt_compile" 2>conftest.err) |
7674 | ac_status=$? | |
7675 | cat conftest.err >&5 | |
3725885a | 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
7677 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7678 | # The compiler can only warn and ignore the option if not recognized | |
7679 | # So say no if there are warnings other than the usual output. | |
3725885a | 7680 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
7681 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7682 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7683 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7684 | fi | |
7685 | fi | |
7686 | $RM conftest* | |
7687 | ||
7688 | fi | |
81ecdfbb RW |
7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7690 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ce2cded5 L |
7691 | |
7692 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7693 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7694 | else | |
7695 | : | |
7696 | fi | |
7697 | ||
7698 | fi | |
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | lt_prog_compiler_wl= | |
7706 | lt_prog_compiler_pic= | |
7707 | lt_prog_compiler_static= | |
7708 | ||
f2c621e4 AS |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7710 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
ce2cded5 L |
7711 | |
7712 | if test "$GCC" = yes; then | |
7713 | lt_prog_compiler_wl='-Wl,' | |
7714 | lt_prog_compiler_static='-static' | |
7715 | ||
7716 | case $host_os in | |
7717 | aix*) | |
7718 | # All AIX code is PIC. | |
7719 | if test "$host_cpu" = ia64; then | |
7720 | # AIX 5 now supports IA64 processor | |
7721 | lt_prog_compiler_static='-Bstatic' | |
7722 | fi | |
6c9c0a50 | 7723 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 7724 | ;; |
d7040cdb SE |
7725 | |
7726 | amigaos*) | |
718a6fd8 SE |
7727 | case $host_cpu in |
7728 | powerpc) | |
7729 | # see comment about AmigaOS4 .so support | |
7730 | lt_prog_compiler_pic='-fPIC' | |
7731 | ;; | |
7732 | m68k) | |
7733 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7734 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7735 | # like `-m68040'. | |
7736 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7737 | ;; | |
7738 | esac | |
d7040cdb SE |
7739 | ;; |
7740 | ||
ce2cded5 L |
7741 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7742 | # PIC is the default for these OSes. | |
d7040cdb SE |
7743 | ;; |
7744 | ||
718a6fd8 | 7745 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
7746 | # This hack is so that the source file can tell whether it is being |
7747 | # built for inclusion in a dll (and should export symbols for example). | |
7748 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7749 | # (--disable-auto-import) libraries | |
7750 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7751 | ;; |
7752 | ||
7753 | darwin* | rhapsody*) | |
ce2cded5 L |
7754 | # PIC is the default on this platform |
7755 | # Common symbols not allowed in MH_DYLIB files | |
7756 | lt_prog_compiler_pic='-fno-common' | |
7757 | ;; | |
7758 | ||
3725885a RW |
7759 | haiku*) |
7760 | # PIC is the default for Haiku. | |
7761 | # The "-static" flag exists, but is broken. | |
7762 | lt_prog_compiler_static= | |
7763 | ;; | |
7764 | ||
ce2cded5 | 7765 | hpux*) |
718a6fd8 SE |
7766 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7767 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7768 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 7769 | case $host_cpu in |
718a6fd8 | 7770 | hppa*64*) |
ce2cded5 | 7771 | # +Z the default |
d7040cdb | 7772 | ;; |
ce2cded5 L |
7773 | *) |
7774 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
7775 | ;; |
7776 | esac | |
ce2cded5 | 7777 | ;; |
d7040cdb | 7778 | |
ce2cded5 L |
7779 | interix[3-9]*) |
7780 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7781 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
7782 | ;; |
7783 | ||
ce2cded5 L |
7784 | msdosdjgpp*) |
7785 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7786 | # on systems that don't support them. | |
7787 | lt_prog_compiler_can_build_shared=no | |
7788 | enable_shared=no | |
d7040cdb SE |
7789 | ;; |
7790 | ||
ce2cded5 L |
7791 | *nto* | *qnx*) |
7792 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7793 | # it will coredump. | |
7794 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7795 | ;; |
7796 | ||
ce2cded5 L |
7797 | sysv4*MP*) |
7798 | if test -d /usr/nec; then | |
7799 | lt_prog_compiler_pic=-Kconform_pic | |
7800 | fi | |
d7040cdb SE |
7801 | ;; |
7802 | ||
ce2cded5 L |
7803 | *) |
7804 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 7805 | ;; |
ce2cded5 | 7806 | esac |
3725885a RW |
7807 | |
7808 | case $cc_basename in | |
7809 | nvcc*) # Cuda Compiler Driver 2.2 | |
7810 | lt_prog_compiler_wl='-Xlinker ' | |
7811 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7812 | ;; | |
7813 | esac | |
ce2cded5 L |
7814 | else |
7815 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7816 | case $host_os in | |
7817 | aix*) | |
7818 | lt_prog_compiler_wl='-Wl,' | |
7819 | if test "$host_cpu" = ia64; then | |
7820 | # AIX 5 now supports IA64 processor | |
7821 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 7822 | else |
ce2cded5 | 7823 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 7824 | fi |
ce2cded5 | 7825 | ;; |
d7040cdb | 7826 | |
718a6fd8 | 7827 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
7828 | # This hack is so that the source file can tell whether it is being |
7829 | # built for inclusion in a dll (and should export symbols for example). | |
7830 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
7831 | ;; |
7832 | ||
ce2cded5 L |
7833 | hpux9* | hpux10* | hpux11*) |
7834 | lt_prog_compiler_wl='-Wl,' | |
7835 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7836 | # not for PA HP-UX. | |
7837 | case $host_cpu in | |
7838 | hppa*64*|ia64*) | |
7839 | # +Z the default | |
7840 | ;; | |
7841 | *) | |
7842 | lt_prog_compiler_pic='+Z' | |
7843 | ;; | |
7844 | esac | |
7845 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7846 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
7847 | ;; |
7848 | ||
ce2cded5 L |
7849 | irix5* | irix6* | nonstopux*) |
7850 | lt_prog_compiler_wl='-Wl,' | |
7851 | # PIC (with -KPIC) is the default. | |
7852 | lt_prog_compiler_static='-non_shared' | |
7853 | ;; | |
d7040cdb | 7854 | |
58e24671 | 7855 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 7856 | case $cc_basename in |
718a6fd8 SE |
7857 | # old Intel for x86_64 which still supported -KPIC. |
7858 | ecc*) | |
ce2cded5 L |
7859 | lt_prog_compiler_wl='-Wl,' |
7860 | lt_prog_compiler_pic='-KPIC' | |
7861 | lt_prog_compiler_static='-static' | |
7862 | ;; | |
718a6fd8 SE |
7863 | # icc used to be incompatible with GCC. |
7864 | # ICC 10 doesn't accept -KPIC any more. | |
7865 | icc* | ifort*) | |
7866 | lt_prog_compiler_wl='-Wl,' | |
7867 | lt_prog_compiler_pic='-fPIC' | |
7868 | lt_prog_compiler_static='-static' | |
7869 | ;; | |
7870 | # Lahey Fortran 8.1. | |
7871 | lf95*) | |
7872 | lt_prog_compiler_wl='-Wl,' | |
7873 | lt_prog_compiler_pic='--shared' | |
7874 | lt_prog_compiler_static='--static' | |
7875 | ;; | |
3725885a | 7876 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
7877 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7878 | # which looks to be a dead project) | |
7879 | lt_prog_compiler_wl='-Wl,' | |
7880 | lt_prog_compiler_pic='-fpic' | |
7881 | lt_prog_compiler_static='-Bstatic' | |
7882 | ;; | |
7883 | ccc*) | |
7884 | lt_prog_compiler_wl='-Wl,' | |
7885 | # All Alpha code is PIC. | |
7886 | lt_prog_compiler_static='-non_shared' | |
7887 | ;; | |
3725885a RW |
7888 | xl* | bgxl* | bgf* | mpixl*) |
7889 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
7890 | lt_prog_compiler_wl='-Wl,' |
7891 | lt_prog_compiler_pic='-qpic' | |
7892 | lt_prog_compiler_static='-qstaticlink' | |
7893 | ;; | |
ce2cded5 L |
7894 | *) |
7895 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
7896 | *Sun\ F* | *Sun*Fortran*) |
7897 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
7898 | lt_prog_compiler_pic='-KPIC' |
7899 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 7900 | lt_prog_compiler_wl='' |
d7040cdb | 7901 | ;; |
3725885a RW |
7902 | *Sun\ C*) |
7903 | # Sun C 5.9 | |
ce2cded5 L |
7904 | lt_prog_compiler_pic='-KPIC' |
7905 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 7906 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
7907 | ;; |
7908 | esac | |
ce2cded5 L |
7909 | ;; |
7910 | esac | |
d7040cdb SE |
7911 | ;; |
7912 | ||
ce2cded5 L |
7913 | newsos6) |
7914 | lt_prog_compiler_pic='-KPIC' | |
7915 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7916 | ;; |
7917 | ||
ce2cded5 L |
7918 | *nto* | *qnx*) |
7919 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7920 | # it will coredump. | |
7921 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
7922 | ;; |
7923 | ||
ce2cded5 L |
7924 | osf3* | osf4* | osf5*) |
7925 | lt_prog_compiler_wl='-Wl,' | |
7926 | # All OSF/1 code is PIC. | |
7927 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7928 | ;; |
7929 | ||
ce2cded5 L |
7930 | rdos*) |
7931 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
7932 | ;; |
7933 | ||
7934 | solaris*) | |
ce2cded5 L |
7935 | lt_prog_compiler_pic='-KPIC' |
7936 | lt_prog_compiler_static='-Bstatic' | |
7937 | case $cc_basename in | |
f2c621e4 | 7938 | f77* | f90* | f95*) |
ce2cded5 | 7939 | lt_prog_compiler_wl='-Qoption ld ';; |
d7040cdb | 7940 | *) |
ce2cded5 | 7941 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 7942 | esac |
d7040cdb SE |
7943 | ;; |
7944 | ||
7945 | sunos4*) | |
ce2cded5 L |
7946 | lt_prog_compiler_wl='-Qoption ld ' |
7947 | lt_prog_compiler_pic='-PIC' | |
7948 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7949 | ;; |
7950 | ||
ce2cded5 L |
7951 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7952 | lt_prog_compiler_wl='-Wl,' | |
7953 | lt_prog_compiler_pic='-KPIC' | |
7954 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7955 | ;; |
7956 | ||
7957 | sysv4*MP*) | |
ce2cded5 L |
7958 | if test -d /usr/nec ;then |
7959 | lt_prog_compiler_pic='-Kconform_pic' | |
7960 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7961 | fi |
7962 | ;; | |
7963 | ||
ce2cded5 L |
7964 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7965 | lt_prog_compiler_wl='-Wl,' | |
7966 | lt_prog_compiler_pic='-KPIC' | |
7967 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7968 | ;; |
7969 | ||
ce2cded5 L |
7970 | unicos*) |
7971 | lt_prog_compiler_wl='-Wl,' | |
7972 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
7973 | ;; |
7974 | ||
7975 | uts4*) | |
ce2cded5 L |
7976 | lt_prog_compiler_pic='-pic' |
7977 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
7978 | ;; |
7979 | ||
7980 | *) | |
ce2cded5 | 7981 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
7982 | ;; |
7983 | esac | |
d7040cdb SE |
7984 | fi |
7985 | ||
ce2cded5 L |
7986 | case $host_os in |
7987 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7988 | *djgpp*) | |
7989 | lt_prog_compiler_pic= | |
7990 | ;; | |
7991 | *) | |
7992 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7993 | ;; | |
7994 | esac | |
f2c621e4 AS |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
7996 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7997 | ||
7998 | ||
7999 | ||
8000 | ||
d7040cdb SE |
8001 | |
8002 | ||
8003 | # | |
ce2cded5 | 8004 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8005 | # |
ce2cded5 | 8006 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8008 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8009 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8010 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 8011 | else |
718a6fd8 | 8012 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8013 | ac_outfile=conftest.$ac_objext |
8014 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8015 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8016 | # Insert the option either (1) after the last *FLAGS variable, or | |
8017 | # (2) before a word containing "conftest.", or (3) at the end. | |
8018 | # Note that $ac_compile itself does not contain backslashes and begins | |
8019 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8020 | # The option is referenced via a variable to avoid confusing sed. | |
8021 | lt_compile=`echo "$ac_compile" | $SED \ | |
8022 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8023 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8024 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8025 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8026 | (eval "$lt_compile" 2>conftest.err) |
8027 | ac_status=$? | |
8028 | cat conftest.err >&5 | |
3725885a | 8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8030 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8031 | # The compiler can only warn and ignore the option if not recognized | |
8032 | # So say no if there are warnings other than the usual output. | |
3725885a | 8033 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8034 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8035 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8036 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8037 | fi |
8038 | fi | |
8039 | $RM conftest* | |
d7040cdb | 8040 | |
ce2cded5 | 8041 | fi |
81ecdfbb RW |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8043 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8044 | |
718a6fd8 | 8045 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8046 | case $lt_prog_compiler_pic in |
8047 | "" | " "*) ;; | |
8048 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8049 | esac | |
8050 | else | |
8051 | lt_prog_compiler_pic= | |
8052 | lt_prog_compiler_can_build_shared=no | |
8053 | fi | |
d7040cdb | 8054 | |
ce2cded5 | 8055 | fi |
d7040cdb SE |
8056 | |
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
ce2cded5 L |
8062 | # |
8063 | # Check to make sure the static flag actually works. | |
8064 | # | |
8065 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8067 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8068 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8069 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 8070 | else |
718a6fd8 | 8071 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8072 | save_LDFLAGS="$LDFLAGS" |
8073 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8074 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8075 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8076 | # The linker can only warn and ignore the option if not recognized | |
8077 | # So say no if there are warnings | |
8078 | if test -s conftest.err; then | |
8079 | # Append any errors to the config.log. | |
8080 | cat conftest.err 1>&5 | |
3725885a | 8081 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
8082 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8083 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8084 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8085 | fi |
8086 | else | |
718a6fd8 | 8087 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8088 | fi |
8089 | fi | |
718a6fd8 | 8090 | $RM -r conftest* |
ce2cded5 | 8091 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8092 | |
ce2cded5 | 8093 | fi |
81ecdfbb RW |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8095 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8096 | |
718a6fd8 | 8097 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8098 | : |
8099 | else | |
8100 | lt_prog_compiler_static= | |
8101 | fi | |
d7040cdb SE |
8102 | |
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
81ecdfbb RW |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8110 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8111 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8112 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8113 | else |
8114 | lt_cv_prog_compiler_c_o=no | |
8115 | $RM -r conftest 2>/dev/null | |
8116 | mkdir conftest | |
8117 | cd conftest | |
8118 | mkdir out | |
8119 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8120 | |
ce2cded5 L |
8121 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8122 | # Insert the option either (1) after the last *FLAGS variable, or | |
8123 | # (2) before a word containing "conftest.", or (3) at the end. | |
8124 | # Note that $ac_compile itself does not contain backslashes and begins | |
8125 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8126 | lt_compile=`echo "$ac_compile" | $SED \ | |
8127 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8129 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8130 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8131 | (eval "$lt_compile" 2>out/conftest.err) |
8132 | ac_status=$? | |
8133 | cat out/conftest.err >&5 | |
3725885a | 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8135 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8136 | then | |
8137 | # The compiler can only warn and ignore the option if not recognized | |
8138 | # So say no if there are warnings | |
3725885a | 8139 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8140 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8141 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8142 | lt_cv_prog_compiler_c_o=yes | |
8143 | fi | |
8144 | fi | |
8145 | chmod u+w . 2>&5 | |
8146 | $RM conftest* | |
8147 | # SGI C++ compiler will create directory out/ii_files/ for | |
8148 | # template instantiation | |
8149 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8150 | $RM out/* && rmdir out | |
8151 | cd .. | |
8152 | $RM -r conftest | |
8153 | $RM conftest* | |
d7040cdb | 8154 | |
ce2cded5 | 8155 | fi |
81ecdfbb RW |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8157 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8158 | |
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
81ecdfbb RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8165 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8166 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8167 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
8168 | else |
8169 | lt_cv_prog_compiler_c_o=no | |
8170 | $RM -r conftest 2>/dev/null | |
8171 | mkdir conftest | |
8172 | cd conftest | |
8173 | mkdir out | |
8174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8175 | |
ce2cded5 L |
8176 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8177 | # Insert the option either (1) after the last *FLAGS variable, or | |
8178 | # (2) before a word containing "conftest.", or (3) at the end. | |
8179 | # Note that $ac_compile itself does not contain backslashes and begins | |
8180 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8181 | lt_compile=`echo "$ac_compile" | $SED \ | |
8182 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8183 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8184 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8185 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8186 | (eval "$lt_compile" 2>out/conftest.err) |
8187 | ac_status=$? | |
8188 | cat out/conftest.err >&5 | |
3725885a | 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8190 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8191 | then | |
8192 | # The compiler can only warn and ignore the option if not recognized | |
8193 | # So say no if there are warnings | |
3725885a | 8194 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8195 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8196 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8197 | lt_cv_prog_compiler_c_o=yes | |
8198 | fi | |
8199 | fi | |
8200 | chmod u+w . 2>&5 | |
8201 | $RM conftest* | |
8202 | # SGI C++ compiler will create directory out/ii_files/ for | |
8203 | # template instantiation | |
8204 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8205 | $RM out/* && rmdir out | |
8206 | cd .. | |
8207 | $RM -r conftest | |
8208 | $RM conftest* | |
d7040cdb | 8209 | |
ce2cded5 | 8210 | fi |
81ecdfbb RW |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8212 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8213 | |
8214 | ||
8215 | ||
8216 | ||
ce2cded5 L |
8217 | hard_links="nottested" |
8218 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8219 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8221 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8222 | hard_links=yes |
8223 | $RM conftest* | |
8224 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8225 | touch conftest.a | |
8226 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8227 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8229 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8230 | if test "$hard_links" = no; then |
81ecdfbb RW |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8232 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 L |
8233 | need_locks=warn |
8234 | fi | |
8235 | else | |
8236 | need_locks=no | |
8237 | fi | |
d7040cdb SE |
8238 | |
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
81ecdfbb RW |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8245 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8246 | |
ce2cded5 L |
8247 | runpath_var= |
8248 | allow_undefined_flag= | |
8249 | always_export_symbols=no | |
8250 | archive_cmds= | |
8251 | archive_expsym_cmds= | |
8252 | compiler_needs_object=no | |
8253 | enable_shared_with_static_runtimes=no | |
8254 | export_dynamic_flag_spec= | |
8255 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8256 | hardcode_automatic=no | |
8257 | hardcode_direct=no | |
8258 | hardcode_direct_absolute=no | |
8259 | hardcode_libdir_flag_spec= | |
8260 | hardcode_libdir_flag_spec_ld= | |
8261 | hardcode_libdir_separator= | |
8262 | hardcode_minus_L=no | |
8263 | hardcode_shlibpath_var=unsupported | |
8264 | inherit_rpath=no | |
8265 | link_all_deplibs=unknown | |
8266 | module_cmds= | |
8267 | module_expsym_cmds= | |
8268 | old_archive_from_new_cmds= | |
8269 | old_archive_from_expsyms_cmds= | |
8270 | thread_safe_flag_spec= | |
8271 | whole_archive_flag_spec= | |
8272 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8273 | # included in the symbol list | |
8274 | include_expsyms= | |
8275 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8276 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8277 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8278 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8279 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8280 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8281 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8282 | # the symbol is explicitly referenced. Since portable code cannot | |
8283 | # rely on this symbol name, it's probably fine to never include it in | |
8284 | # preloaded symbol tables. | |
718a6fd8 | 8285 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8286 | extract_expsyms_cmds= |
d7040cdb | 8287 | |
ce2cded5 | 8288 | case $host_os in |
718a6fd8 | 8289 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8290 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8291 | # When not using gcc, we currently assume that we are using | |
8292 | # Microsoft Visual C++. | |
8293 | if test "$GCC" != yes; then | |
8294 | with_gnu_ld=no | |
8295 | fi | |
8296 | ;; | |
8297 | interix*) | |
8298 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8299 | with_gnu_ld=yes | |
8300 | ;; | |
8301 | openbsd*) | |
8302 | with_gnu_ld=no | |
8303 | ;; | |
8304 | esac | |
d7040cdb | 8305 | |
ce2cded5 | 8306 | ld_shlibs=yes |
3725885a RW |
8307 | |
8308 | # On some targets, GNU ld is compatible enough with the native linker | |
8309 | # that we're better off using the native interface for both. | |
8310 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 8311 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8312 | case $host_os in |
8313 | aix*) | |
8314 | # The AIX port of GNU ld has always aspired to compatibility | |
8315 | # with the native linker. However, as the warning in the GNU ld | |
8316 | # block says, versions before 2.19.5* couldn't really create working | |
8317 | # shared libraries, regardless of the interface used. | |
8318 | case `$LD -v 2>&1` in | |
8319 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8320 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8321 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8322 | *) | |
8323 | lt_use_gnu_ld_interface=yes | |
8324 | ;; | |
8325 | esac | |
8326 | ;; | |
8327 | *) | |
8328 | lt_use_gnu_ld_interface=yes | |
8329 | ;; | |
8330 | esac | |
8331 | fi | |
8332 | ||
8333 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
8334 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8335 | wlarc='${wl}' | |
d7040cdb | 8336 | |
ce2cded5 L |
8337 | # Set some defaults for GNU ld with shared library support. These |
8338 | # are reset later if shared libraries are not supported. Putting them | |
8339 | # here allows them to be overridden if necessary. | |
8340 | runpath_var=LD_RUN_PATH | |
8341 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8342 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8343 | # ancient GNU ld didn't support --whole-archive et. al. | |
8344 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8345 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8346 | else | |
8347 | whole_archive_flag_spec= | |
8348 | fi | |
8349 | supports_anon_versioning=no | |
8350 | case `$LD -v 2>&1` in | |
3725885a | 8351 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
8352 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8353 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8354 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8355 | *\ 2.11.*) ;; # other 2.11 versions | |
8356 | *) supports_anon_versioning=yes ;; | |
8357 | esac | |
d7040cdb | 8358 | |
ce2cded5 L |
8359 | # See if GNU ld supports shared libraries. |
8360 | case $host_os in | |
50e7d84b | 8361 | aix[3-9]*) |
ce2cded5 L |
8362 | # On AIX/PPC, the GNU linker is very broken |
8363 | if test "$host_cpu" != ia64; then | |
8364 | ld_shlibs=no | |
8365 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8366 | |
3725885a | 8367 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
8368 | *** to be unable to reliably create shared libraries on AIX. |
8369 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8370 | *** really care for shared libraries, you may want to install binutils |
8371 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8372 | *** You will then need to restart the configuration process. | |
d7040cdb | 8373 | |
ce2cded5 L |
8374 | _LT_EOF |
8375 | fi | |
8376 | ;; | |
d7040cdb | 8377 | |
ce2cded5 | 8378 | amigaos*) |
718a6fd8 SE |
8379 | case $host_cpu in |
8380 | powerpc) | |
8381 | # see comment about AmigaOS4 .so support | |
8382 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8383 | archive_expsym_cmds='' | |
8384 | ;; | |
8385 | m68k) | |
8386 | 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)' | |
8387 | hardcode_libdir_flag_spec='-L$libdir' | |
8388 | hardcode_minus_L=yes | |
8389 | ;; | |
8390 | esac | |
ce2cded5 | 8391 | ;; |
d7040cdb | 8392 | |
ce2cded5 L |
8393 | beos*) |
8394 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8395 | allow_undefined_flag=unsupported | |
8396 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
8397 | # support --undefined. This deserves some investigation. FIXME | |
8398 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8399 | else | |
8400 | ld_shlibs=no | |
8401 | fi | |
8402 | ;; | |
d7040cdb | 8403 | |
718a6fd8 | 8404 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8405 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8406 | # as there is no search path for DLLs. | |
8407 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8408 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
8409 | allow_undefined_flag=unsupported |
8410 | always_export_symbols=no | |
8411 | enable_shared_with_static_runtimes=yes | |
f2c621e4 | 8412 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
d7040cdb | 8413 | |
ce2cded5 L |
8414 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8415 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8416 | # If the export-symbols file already is a .def file (1st line | |
8417 | # is EXPORTS), use it as is; otherwise, prepend... | |
8418 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8419 | cp $export_symbols $output_objdir/$soname.def; | |
8420 | else | |
8421 | echo EXPORTS > $output_objdir/$soname.def; | |
8422 | cat $export_symbols >> $output_objdir/$soname.def; | |
8423 | fi~ | |
8424 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8425 | else | |
8426 | ld_shlibs=no | |
8427 | fi | |
8428 | ;; | |
d7040cdb | 8429 | |
3725885a RW |
8430 | haiku*) |
8431 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8432 | link_all_deplibs=yes | |
8433 | ;; | |
8434 | ||
ce2cded5 L |
8435 | interix[3-9]*) |
8436 | hardcode_direct=no | |
8437 | hardcode_shlibpath_var=no | |
8438 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8439 | export_dynamic_flag_spec='${wl}-E' | |
8440 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8441 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8442 | # default) and relocated if they conflict, which is a slow very memory | |
8443 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8444 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8445 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8446 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8447 | 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' | |
8448 | ;; | |
d7040cdb | 8449 | |
58e24671 | 8450 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8451 | tmp_diet=no |
8452 | if test "$host_os" = linux-dietlibc; then | |
8453 | case $cc_basename in | |
8454 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8455 | esac | |
8456 | fi | |
8457 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8458 | && test "$tmp_diet" = no | |
8459 | then | |
6e733cce | 8460 | tmp_addflag=' $pic_flag' |
718a6fd8 | 8461 | tmp_sharedflag='-shared' |
ce2cded5 L |
8462 | case $cc_basename,$host_cpu in |
8463 | pgcc*) # Portland Group C compiler | |
3725885a | 8464 | 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 |
8465 | tmp_addflag=' $pic_flag' |
8466 | ;; | |
3725885a RW |
8467 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8468 | # Portland Group f77 and f90 compilers | |
8469 | 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 |
8470 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8471 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8472 | tmp_addflag=' -i_dynamic' ;; | |
8473 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8474 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8475 | ifc* | ifort*) # Intel Fortran compiler | |
8476 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8477 | lf95*) # Lahey Fortran 8.1 |
8478 | whole_archive_flag_spec= | |
8479 | tmp_sharedflag='--shared' ;; | |
3725885a | 8480 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8481 | tmp_sharedflag='-qmkshrobj' |
8482 | tmp_addflag= ;; | |
3725885a RW |
8483 | nvcc*) # Cuda Compiler Driver 2.2 |
8484 | 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' | |
8485 | compiler_needs_object=yes | |
8486 | ;; | |
ce2cded5 L |
8487 | esac |
8488 | case `$CC -V 2>&1 | sed 5q` in | |
8489 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8490 | 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 |
8491 | compiler_needs_object=yes |
8492 | tmp_sharedflag='-G' ;; | |
8493 | *Sun\ F*) # Sun Fortran 8.3 | |
8494 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8495 | esac |
8496 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8497 | |
ce2cded5 L |
8498 | if test "x$supports_anon_versioning" = xyes; then |
8499 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8500 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8501 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8502 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8503 | fi | |
718a6fd8 SE |
8504 | |
8505 | case $cc_basename in | |
3725885a | 8506 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
8507 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8508 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8509 | hardcode_libdir_flag_spec= | |
8510 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
f2c621e4 | 8511 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
718a6fd8 SE |
8512 | if test "x$supports_anon_versioning" = xyes; then |
8513 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8514 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8515 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
f2c621e4 | 8516 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
718a6fd8 SE |
8517 | fi |
8518 | ;; | |
8519 | esac | |
ce2cded5 L |
8520 | else |
8521 | ld_shlibs=no | |
8522 | fi | |
8523 | ;; | |
d7040cdb | 8524 | |
ce2cded5 L |
8525 | netbsd*) |
8526 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8527 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8528 | wlarc= | |
8529 | else | |
f2c621e4 AS |
8530 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8531 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8532 | fi |
8533 | ;; | |
d7040cdb | 8534 | |
ce2cded5 L |
8535 | solaris*) |
8536 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8537 | ld_shlibs=no | |
8538 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8539 | |
ce2cded5 L |
8540 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8541 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8542 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8543 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8544 | *** your PATH or compiler configuration so that the native linker is | |
8545 | *** used, and then restart. | |
d7040cdb | 8546 | |
ce2cded5 L |
8547 | _LT_EOF |
8548 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8549 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8550 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8551 | else |
8552 | ld_shlibs=no | |
8553 | fi | |
8554 | ;; | |
d7040cdb | 8555 | |
ce2cded5 L |
8556 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8557 | case `$LD -v 2>&1` in | |
8558 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8559 | ld_shlibs=no | |
8560 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8561 | |
ce2cded5 L |
8562 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8563 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8564 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8565 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8566 | *** your PATH or compiler configuration so that the native linker is | |
8567 | *** used, and then restart. | |
d7040cdb | 8568 | |
ce2cded5 L |
8569 | _LT_EOF |
8570 | ;; | |
8571 | *) | |
8572 | # For security reasons, it is highly recommended that you always | |
8573 | # use absolute paths for naming shared libraries, and exclude the | |
8574 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8575 | # requires that you compile everything twice, which is a pain. | |
8576 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8577 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8578 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8579 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8580 | else | |
8581 | ld_shlibs=no | |
8582 | fi | |
8583 | ;; | |
8584 | esac | |
8585 | ;; | |
d7040cdb | 8586 | |
ce2cded5 L |
8587 | sunos4*) |
8588 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8589 | wlarc= | |
8590 | hardcode_direct=yes | |
8591 | hardcode_shlibpath_var=no | |
8592 | ;; | |
d7040cdb | 8593 | |
ce2cded5 L |
8594 | *) |
8595 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
f2c621e4 AS |
8596 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8597 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
ce2cded5 L |
8598 | else |
8599 | ld_shlibs=no | |
8600 | fi | |
8601 | ;; | |
8602 | esac | |
d7040cdb | 8603 | |
ce2cded5 L |
8604 | if test "$ld_shlibs" = no; then |
8605 | runpath_var= | |
8606 | hardcode_libdir_flag_spec= | |
8607 | export_dynamic_flag_spec= | |
8608 | whole_archive_flag_spec= | |
8609 | fi | |
8610 | else | |
8611 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8612 | case $host_os in | |
8613 | aix3*) | |
8614 | allow_undefined_flag=unsupported | |
8615 | always_export_symbols=yes | |
8616 | 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' | |
8617 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8618 | # are no directories specified by -L. | |
8619 | hardcode_minus_L=yes | |
8620 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8621 | # Neither direct hardcoding nor static linking is supported with a | |
8622 | # broken collect2. | |
8623 | hardcode_direct=unsupported | |
8624 | fi | |
8625 | ;; | |
d7040cdb | 8626 | |
50e7d84b | 8627 | aix[4-9]*) |
ce2cded5 L |
8628 | if test "$host_cpu" = ia64; then |
8629 | # On IA64, the linker does run time linking by default, so we don't | |
8630 | # have to do anything special. | |
8631 | aix_use_runtimelinking=no | |
8632 | exp_sym_flag='-Bexport' | |
8633 | no_entry_flag="" | |
8634 | else | |
8635 | # If we're using GNU nm, then we don't want the "-C" option. | |
8636 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
8637 | # Also, AIX nm treats weak defined symbols like other global |
8638 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 8639 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 8640 | 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 | 8641 | else |
5c14705f | 8642 | 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 |
8643 | fi |
8644 | aix_use_runtimelinking=no | |
d7040cdb | 8645 | |
ce2cded5 L |
8646 | # Test if we are trying to use run time linking or normal |
8647 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8648 | # need to do runtime linking. | |
50e7d84b | 8649 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
8650 | for ld_flag in $LDFLAGS; do |
8651 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8652 | aix_use_runtimelinking=yes | |
8653 | break | |
8654 | fi | |
8655 | done | |
8656 | ;; | |
8657 | esac | |
d7040cdb | 8658 | |
ce2cded5 L |
8659 | exp_sym_flag='-bexport' |
8660 | no_entry_flag='-bnoentry' | |
8661 | fi | |
d7040cdb | 8662 | |
ce2cded5 L |
8663 | # When large executables or shared objects are built, AIX ld can |
8664 | # have problems creating the table of contents. If linking a library | |
8665 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8666 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8667 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 8668 | |
ce2cded5 L |
8669 | archive_cmds='' |
8670 | hardcode_direct=yes | |
8671 | hardcode_direct_absolute=yes | |
8672 | hardcode_libdir_separator=':' | |
8673 | link_all_deplibs=yes | |
8674 | file_list_spec='${wl}-f,' | |
d7040cdb | 8675 | |
ce2cded5 L |
8676 | if test "$GCC" = yes; then |
8677 | case $host_os in aix4.[012]|aix4.[012].*) | |
8678 | # We only want to do this on AIX 4.2 and lower, the check | |
8679 | # below for broken collect2 doesn't work under 4.3+ | |
8680 | collect2name=`${CC} -print-prog-name=collect2` | |
8681 | if test -f "$collect2name" && | |
8682 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8683 | then | |
8684 | # We have reworked collect2 | |
8685 | : | |
8686 | else | |
8687 | # We have old collect2 | |
8688 | hardcode_direct=unsupported | |
8689 | # It fails to find uninstalled libraries when the uninstalled | |
8690 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8691 | # to unsupported forces relinking | |
8692 | hardcode_minus_L=yes | |
8693 | hardcode_libdir_flag_spec='-L$libdir' | |
8694 | hardcode_libdir_separator= | |
8695 | fi | |
8696 | ;; | |
8697 | esac | |
8698 | shared_flag='-shared' | |
8699 | if test "$aix_use_runtimelinking" = yes; then | |
8700 | shared_flag="$shared_flag "'${wl}-G' | |
8701 | fi | |
8702 | else | |
8703 | # not using gcc | |
8704 | if test "$host_cpu" = ia64; then | |
8705 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8706 | # chokes on -Wl,-G. The following line is correct: | |
8707 | shared_flag='-G' | |
8708 | else | |
8709 | if test "$aix_use_runtimelinking" = yes; then | |
8710 | shared_flag='${wl}-G' | |
8711 | else | |
8712 | shared_flag='${wl}-bM:SRE' | |
8713 | fi | |
8714 | fi | |
8715 | fi | |
d7040cdb | 8716 | |
718a6fd8 | 8717 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
8718 | # It seems that -bexpall does not export symbols beginning with |
8719 | # underscore (_), so it is better to generate a list of symbols to export. | |
8720 | always_export_symbols=yes | |
8721 | if test "$aix_use_runtimelinking" = yes; then | |
8722 | # Warning - without using the other runtime loading flags (-brtl), | |
8723 | # -berok will link without error, but may produce a broken library. | |
8724 | allow_undefined_flag='-berok' | |
8725 | # Determine the default libpath from the value encoded in an | |
8726 | # empty executable. | |
f2c621e4 | 8727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8728 | /* end confdefs.h. */ |
d7040cdb | 8729 | |
ce2cded5 L |
8730 | int |
8731 | main () | |
8732 | { | |
d7040cdb | 8733 | |
ce2cded5 L |
8734 | ; |
8735 | return 0; | |
8736 | } | |
8737 | _ACEOF | |
81ecdfbb | 8738 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8739 | |
f2c621e4 AS |
8740 | lt_aix_libpath_sed=' |
8741 | /Import File Strings/,/^$/ { | |
8742 | /^0/ { | |
8743 | s/^0 *\(.*\)$/\1/ | |
8744 | p | |
8745 | } | |
8746 | }' | |
8747 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8748 | # Check for a 64-bit object if we didn't find anything. | |
8749 | if test -z "$aix_libpath"; then | |
8750 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8751 | fi | |
ce2cded5 | 8752 | fi |
81ecdfbb RW |
8753 | rm -f core conftest.err conftest.$ac_objext \ |
8754 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8755 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8756 | |
ce2cded5 | 8757 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 8758 | 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 |
8759 | else |
8760 | if test "$host_cpu" = ia64; then | |
8761 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8762 | allow_undefined_flag="-z nodefs" | |
8763 | 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" | |
8764 | else | |
8765 | # Determine the default libpath from the value encoded in an | |
8766 | # empty executable. | |
f2c621e4 | 8767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8768 | /* end confdefs.h. */ |
d7040cdb | 8769 | |
ce2cded5 L |
8770 | int |
8771 | main () | |
8772 | { | |
d7040cdb | 8773 | |
ce2cded5 L |
8774 | ; |
8775 | return 0; | |
8776 | } | |
8777 | _ACEOF | |
81ecdfbb | 8778 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 8779 | |
f2c621e4 AS |
8780 | lt_aix_libpath_sed=' |
8781 | /Import File Strings/,/^$/ { | |
8782 | /^0/ { | |
8783 | s/^0 *\(.*\)$/\1/ | |
8784 | p | |
8785 | } | |
8786 | }' | |
8787 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8788 | # Check for a 64-bit object if we didn't find anything. | |
8789 | if test -z "$aix_libpath"; then | |
8790 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8791 | fi | |
ce2cded5 | 8792 | fi |
81ecdfbb RW |
8793 | rm -f core conftest.err conftest.$ac_objext \ |
8794 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 8795 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 8796 | |
ce2cded5 L |
8797 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8798 | # Warning - without using the other run time loading flags, | |
8799 | # -berok will link without error, but may produce a broken library. | |
8800 | no_undefined_flag=' ${wl}-bernotok' | |
8801 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
8802 | if test "$with_gnu_ld" = yes; then |
8803 | # We only use this code for GNU lds that support --whole-archive. | |
8804 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8805 | else | |
8806 | # Exported symbols can be pulled into shared objects from archives | |
8807 | whole_archive_flag_spec='$convenience' | |
8808 | fi | |
ce2cded5 L |
8809 | archive_cmds_need_lc=yes |
8810 | # This is similar to how AIX traditionally builds its shared libraries. | |
8811 | 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' | |
8812 | fi | |
8813 | fi | |
8814 | ;; | |
d7040cdb | 8815 | |
ce2cded5 | 8816 | amigaos*) |
718a6fd8 SE |
8817 | case $host_cpu in |
8818 | powerpc) | |
8819 | # see comment about AmigaOS4 .so support | |
8820 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8821 | archive_expsym_cmds='' | |
8822 | ;; | |
8823 | m68k) | |
8824 | 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)' | |
8825 | hardcode_libdir_flag_spec='-L$libdir' | |
8826 | hardcode_minus_L=yes | |
8827 | ;; | |
8828 | esac | |
ce2cded5 | 8829 | ;; |
d7040cdb | 8830 | |
ce2cded5 L |
8831 | bsdi[45]*) |
8832 | export_dynamic_flag_spec=-rdynamic | |
8833 | ;; | |
d7040cdb | 8834 | |
718a6fd8 | 8835 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8836 | # When not using gcc, we currently assume that we are using |
8837 | # Microsoft Visual C++. | |
8838 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8839 | # no search path for DLLs. | |
f2c621e4 AS |
8840 | hardcode_libdir_flag_spec=' ' |
8841 | allow_undefined_flag=unsupported | |
8842 | # Tell ltmain to make .lib files, not .a files. | |
8843 | libext=lib | |
8844 | # Tell ltmain to make .dll files, not .so files. | |
8845 | shrext_cmds=".dll" | |
8846 | # FIXME: Setting linknames here is a bad hack. | |
8847 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8848 | # The linker will automatically build a .lib file if we build a DLL. | |
8849 | old_archive_from_new_cmds='true' | |
8850 | # FIXME: Should let the user specify the lib program. | |
8851 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8852 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8853 | enable_shared_with_static_runtimes=yes | |
ce2cded5 | 8854 | ;; |
d7040cdb | 8855 | |
ce2cded5 | 8856 | darwin* | rhapsody*) |
d7040cdb | 8857 | |
718a6fd8 SE |
8858 | |
8859 | archive_cmds_need_lc=no | |
8860 | hardcode_direct=no | |
8861 | hardcode_automatic=yes | |
8862 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
8863 | if test "$lt_cv_ld_force_load" = "yes"; then |
8864 | 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\"`' | |
8865 | else | |
8866 | whole_archive_flag_spec='' | |
8867 | fi | |
718a6fd8 SE |
8868 | link_all_deplibs=yes |
8869 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8870 | case $cc_basename in | |
8871 | ifort*) _lt_dar_can_shared=yes ;; | |
8872 | *) _lt_dar_can_shared=$GCC ;; | |
8873 | esac | |
8874 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 8875 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
8876 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8877 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8878 | 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}" | |
8879 | 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}" | |
8880 | ||
8881 | else | |
8882 | ld_shlibs=no | |
8883 | fi | |
8884 | ||
ce2cded5 | 8885 | ;; |
d7040cdb | 8886 | |
ce2cded5 L |
8887 | dgux*) |
8888 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8889 | hardcode_libdir_flag_spec='-L$libdir' | |
8890 | hardcode_shlibpath_var=no | |
8891 | ;; | |
d7040cdb | 8892 | |
ce2cded5 L |
8893 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8894 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8895 | # does not break anything, and helps significantly (at the cost of a little | |
8896 | # extra space). | |
8897 | freebsd2.2*) | |
8898 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8899 | hardcode_libdir_flag_spec='-R$libdir' | |
8900 | hardcode_direct=yes | |
8901 | hardcode_shlibpath_var=no | |
8902 | ;; | |
d7040cdb | 8903 | |
ce2cded5 | 8904 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 8905 | freebsd2.*) |
ce2cded5 L |
8906 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8907 | hardcode_direct=yes | |
8908 | hardcode_minus_L=yes | |
8909 | hardcode_shlibpath_var=no | |
8910 | ;; | |
d7040cdb | 8911 | |
ce2cded5 L |
8912 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8913 | freebsd* | dragonfly*) | |
f2c621e4 | 8914 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8915 | hardcode_libdir_flag_spec='-R$libdir' |
8916 | hardcode_direct=yes | |
8917 | hardcode_shlibpath_var=no | |
8918 | ;; | |
d7040cdb | 8919 | |
ce2cded5 L |
8920 | hpux9*) |
8921 | if test "$GCC" = yes; then | |
f2c621e4 | 8922 | 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 |
8923 | else |
8924 | 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' | |
8925 | fi | |
8926 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8927 | hardcode_libdir_separator=: | |
8928 | hardcode_direct=yes | |
d7040cdb | 8929 | |
ce2cded5 L |
8930 | # hardcode_minus_L: Not really in the search PATH, |
8931 | # but as the default location of the library. | |
8932 | hardcode_minus_L=yes | |
8933 | export_dynamic_flag_spec='${wl}-E' | |
8934 | ;; | |
d7040cdb | 8935 | |
ce2cded5 | 8936 | hpux10*) |
3725885a | 8937 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
f2c621e4 | 8938 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8939 | else |
8940 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8941 | fi | |
8942 | if test "$with_gnu_ld" = no; then | |
8943 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8944 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8945 | hardcode_libdir_separator=: | |
8946 | hardcode_direct=yes | |
8947 | hardcode_direct_absolute=yes | |
8948 | export_dynamic_flag_spec='${wl}-E' | |
8949 | # hardcode_minus_L: Not really in the search PATH, | |
8950 | # but as the default location of the library. | |
8951 | hardcode_minus_L=yes | |
8952 | fi | |
8953 | ;; | |
d7040cdb | 8954 | |
ce2cded5 | 8955 | hpux11*) |
3725885a | 8956 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
8957 | case $host_cpu in |
8958 | hppa*64*) | |
8959 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8960 | ;; | |
8961 | ia64*) | |
f2c621e4 | 8962 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8963 | ;; |
8964 | *) | |
f2c621e4 | 8965 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
8966 | ;; |
8967 | esac | |
8968 | else | |
8969 | case $host_cpu in | |
8970 | hppa*64*) | |
8971 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8972 | ;; | |
8973 | ia64*) | |
8974 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8975 | ;; | |
8976 | *) | |
3725885a RW |
8977 | |
8978 | # Older versions of the 11.00 compiler do not understand -b yet | |
8979 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
8981 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 8982 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
8983 | $as_echo_n "(cached) " >&6 |
8984 | else | |
8985 | lt_cv_prog_compiler__b=no | |
8986 | save_LDFLAGS="$LDFLAGS" | |
8987 | LDFLAGS="$LDFLAGS -b" | |
8988 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8989 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8990 | # The linker can only warn and ignore the option if not recognized | |
8991 | # So say no if there are warnings | |
8992 | if test -s conftest.err; then | |
8993 | # Append any errors to the config.log. | |
8994 | cat conftest.err 1>&5 | |
8995 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8996 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8997 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8998 | lt_cv_prog_compiler__b=yes | |
8999 | fi | |
9000 | else | |
9001 | lt_cv_prog_compiler__b=yes | |
9002 | fi | |
9003 | fi | |
9004 | $RM -r conftest* | |
9005 | LDFLAGS="$save_LDFLAGS" | |
9006 | ||
9007 | fi | |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9009 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9010 | ||
9011 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9012 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9013 | else | |
9014 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9015 | fi | |
9016 | ||
ce2cded5 L |
9017 | ;; |
9018 | esac | |
9019 | fi | |
9020 | if test "$with_gnu_ld" = no; then | |
9021 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9022 | hardcode_libdir_separator=: | |
d7040cdb | 9023 | |
ce2cded5 L |
9024 | case $host_cpu in |
9025 | hppa*64*|ia64*) | |
9026 | hardcode_direct=no | |
9027 | hardcode_shlibpath_var=no | |
9028 | ;; | |
9029 | *) | |
9030 | hardcode_direct=yes | |
9031 | hardcode_direct_absolute=yes | |
9032 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9033 | |
ce2cded5 L |
9034 | # hardcode_minus_L: Not really in the search PATH, |
9035 | # but as the default location of the library. | |
9036 | hardcode_minus_L=yes | |
9037 | ;; | |
9038 | esac | |
9039 | fi | |
9040 | ;; | |
9041 | ||
9042 | irix5* | irix6* | nonstopux*) | |
9043 | if test "$GCC" = yes; then | |
f2c621e4 | 9044 | 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 |
9045 | # Try to use the -exported_symbol ld option, if it does not |
9046 | # work, assume that -exports_file does not work either and | |
9047 | # implicitly export all symbols. | |
f2c621e4 AS |
9048 | save_LDFLAGS="$LDFLAGS" |
9049 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81ecdfbb | 9051 | /* end confdefs.h. */ |
f2c621e4 | 9052 | int foo(void) {} |
ce2cded5 | 9053 | _ACEOF |
81ecdfbb | 9054 | if ac_fn_c_try_link "$LINENO"; then : |
f2c621e4 AS |
9055 | 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' |
9056 | ||
d7040cdb | 9057 | fi |
81ecdfbb RW |
9058 | rm -f core conftest.err conftest.$ac_objext \ |
9059 | conftest$ac_exeext conftest.$ac_ext | |
f2c621e4 | 9060 | LDFLAGS="$save_LDFLAGS" |
ce2cded5 | 9061 | else |
3725885a RW |
9062 | 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' |
9063 | 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 |
9064 | fi |
9065 | archive_cmds_need_lc='no' | |
9066 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9067 | hardcode_libdir_separator=: | |
9068 | inherit_rpath=yes | |
9069 | link_all_deplibs=yes | |
9070 | ;; | |
d7040cdb | 9071 | |
ce2cded5 L |
9072 | netbsd*) |
9073 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9074 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9075 | else | |
9076 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9077 | fi | |
9078 | hardcode_libdir_flag_spec='-R$libdir' | |
9079 | hardcode_direct=yes | |
9080 | hardcode_shlibpath_var=no | |
9081 | ;; | |
d7040cdb | 9082 | |
ce2cded5 L |
9083 | newsos6) |
9084 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9085 | hardcode_direct=yes | |
9086 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9087 | hardcode_libdir_separator=: | |
9088 | hardcode_shlibpath_var=no | |
9089 | ;; | |
d7040cdb | 9090 | |
ce2cded5 L |
9091 | *nto* | *qnx*) |
9092 | ;; | |
d7040cdb | 9093 | |
ce2cded5 | 9094 | openbsd*) |
718a6fd8 SE |
9095 | if test -f /usr/libexec/ld.so; then |
9096 | hardcode_direct=yes | |
9097 | hardcode_shlibpath_var=no | |
9098 | hardcode_direct_absolute=yes | |
9099 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9100 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9101 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9102 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9103 | export_dynamic_flag_spec='${wl}-E' |
9104 | else | |
9105 | case $host_os in | |
9106 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9107 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9108 | hardcode_libdir_flag_spec='-R$libdir' | |
9109 | ;; | |
9110 | *) | |
9111 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9112 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9113 | ;; | |
9114 | esac | |
9115 | fi | |
9116 | else | |
9117 | ld_shlibs=no | |
d7040cdb SE |
9118 | fi |
9119 | ;; | |
d7040cdb | 9120 | |
ce2cded5 L |
9121 | os2*) |
9122 | hardcode_libdir_flag_spec='-L$libdir' | |
9123 | hardcode_minus_L=yes | |
9124 | allow_undefined_flag=unsupported | |
3725885a | 9125 | 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 |
9126 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9127 | ;; | |
d7040cdb | 9128 | |
ce2cded5 L |
9129 | osf3*) |
9130 | if test "$GCC" = yes; then | |
9131 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9132 | 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 |
9133 | else |
9134 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9135 | 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 |
9136 | fi |
9137 | archive_cmds_need_lc='no' | |
9138 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9139 | hardcode_libdir_separator=: | |
9140 | ;; | |
d7040cdb | 9141 | |
ce2cded5 L |
9142 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9143 | if test "$GCC" = yes; then | |
9144 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
f2c621e4 | 9145 | 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 |
9146 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9147 | else | |
9148 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9149 | 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 | 9150 | 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 | 9151 | $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 | 9152 | |
ce2cded5 L |
9153 | # Both c and cxx compiler support -rpath directly |
9154 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9155 | fi | |
9156 | archive_cmds_need_lc='no' | |
9157 | hardcode_libdir_separator=: | |
9158 | ;; | |
d7040cdb | 9159 | |
ce2cded5 L |
9160 | solaris*) |
9161 | no_undefined_flag=' -z defs' | |
9162 | if test "$GCC" = yes; then | |
9163 | wlarc='${wl}' | |
f2c621e4 | 9164 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 | 9165 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
f2c621e4 | 9166 | $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 |
9167 | else |
9168 | case `$CC -V 2>&1` in | |
9169 | *"Compilers 5.0"*) | |
9170 | wlarc='' | |
9171 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9172 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9173 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9174 | ;; | |
9175 | *) | |
9176 | wlarc='${wl}' | |
9177 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9178 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9179 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9180 | ;; | |
9181 | esac | |
9182 | fi | |
9183 | hardcode_libdir_flag_spec='-R$libdir' | |
9184 | hardcode_shlibpath_var=no | |
9185 | case $host_os in | |
9186 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9187 | *) | |
9188 | # The compiler driver will combine and reorder linker options, | |
9189 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9190 | # but is careful enough not to reorder. | |
9191 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9192 | if test "$GCC" = yes; then | |
9193 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9194 | else | |
9195 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9196 | fi | |
9197 | ;; | |
9198 | esac | |
9199 | link_all_deplibs=yes | |
d7040cdb | 9200 | ;; |
ce2cded5 L |
9201 | |
9202 | sunos4*) | |
9203 | if test "x$host_vendor" = xsequent; then | |
9204 | # Use $CC to link under sequent, because it throws in some extra .o | |
9205 | # files that make .init and .fini sections work. | |
9206 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9207 | else |
ce2cded5 | 9208 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9209 | fi |
ce2cded5 L |
9210 | hardcode_libdir_flag_spec='-L$libdir' |
9211 | hardcode_direct=yes | |
9212 | hardcode_minus_L=yes | |
9213 | hardcode_shlibpath_var=no | |
d7040cdb | 9214 | ;; |
ce2cded5 L |
9215 | |
9216 | sysv4) | |
9217 | case $host_vendor in | |
9218 | sni) | |
9219 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9220 | hardcode_direct=yes # is this really true??? | |
9221 | ;; | |
9222 | siemens) | |
9223 | ## LD is ld it makes a PLAMLIB | |
9224 | ## CC just makes a GrossModule. | |
9225 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9226 | reload_cmds='$CC -r -o $output$reload_objs' | |
9227 | hardcode_direct=no | |
9228 | ;; | |
9229 | motorola) | |
9230 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9231 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9232 | ;; | |
9233 | esac | |
9234 | runpath_var='LD_RUN_PATH' | |
9235 | hardcode_shlibpath_var=no | |
d7040cdb | 9236 | ;; |
d7040cdb | 9237 | |
ce2cded5 L |
9238 | sysv4.3*) |
9239 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9240 | hardcode_shlibpath_var=no | |
9241 | export_dynamic_flag_spec='-Bexport' | |
9242 | ;; | |
d7040cdb | 9243 | |
ce2cded5 L |
9244 | sysv4*MP*) |
9245 | if test -d /usr/nec; then | |
9246 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9247 | hardcode_shlibpath_var=no | |
9248 | runpath_var=LD_RUN_PATH | |
9249 | hardcode_runpath_var=yes | |
9250 | ld_shlibs=yes | |
9251 | fi | |
9252 | ;; | |
d7040cdb | 9253 | |
ce2cded5 L |
9254 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9255 | no_undefined_flag='${wl}-z,text' | |
9256 | archive_cmds_need_lc=no | |
9257 | hardcode_shlibpath_var=no | |
9258 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9259 | |
ce2cded5 L |
9260 | if test "$GCC" = yes; then |
9261 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9262 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9263 | else | |
9264 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9265 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9266 | fi | |
9267 | ;; | |
d7040cdb | 9268 | |
ce2cded5 L |
9269 | sysv5* | sco3.2v5* | sco5v6*) |
9270 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9271 | # link with -lc, and that would cause any symbols used from libc to | |
9272 | # always be unresolved, which means just about no library would | |
9273 | # ever link correctly. If we're not using GNU ld we use -z text | |
9274 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9275 | # as -z defs. | |
9276 | no_undefined_flag='${wl}-z,text' | |
9277 | allow_undefined_flag='${wl}-z,nodefs' | |
9278 | archive_cmds_need_lc=no | |
9279 | hardcode_shlibpath_var=no | |
9280 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9281 | hardcode_libdir_separator=':' | |
9282 | link_all_deplibs=yes | |
9283 | export_dynamic_flag_spec='${wl}-Bexport' | |
9284 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9285 | |
ce2cded5 L |
9286 | if test "$GCC" = yes; then |
9287 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9288 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9289 | else | |
9290 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9291 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9292 | fi | |
d7040cdb | 9293 | ;; |
d7040cdb | 9294 | |
ce2cded5 L |
9295 | uts4*) |
9296 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9297 | hardcode_libdir_flag_spec='-L$libdir' | |
9298 | hardcode_shlibpath_var=no | |
9299 | ;; | |
d7040cdb | 9300 | |
ce2cded5 L |
9301 | *) |
9302 | ld_shlibs=no | |
9303 | ;; | |
9304 | esac | |
9305 | ||
9306 | if test x$host_vendor = xsni; then | |
9307 | case $host in | |
9308 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9309 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9310 | ;; | |
9311 | esac | |
d7040cdb | 9312 | fi |
ce2cded5 | 9313 | fi |
d7040cdb | 9314 | |
81ecdfbb RW |
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9316 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 9317 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9318 | |
ce2cded5 | 9319 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9320 | |
d7040cdb | 9321 | |
d7040cdb | 9322 | |
d7040cdb | 9323 | |
d7040cdb | 9324 | |
d7040cdb | 9325 | |
d7040cdb | 9326 | |
d7040cdb | 9327 | |
d7040cdb | 9328 | |
d7040cdb | 9329 | |
d7040cdb | 9330 | |
d7040cdb | 9331 | |
d7040cdb | 9332 | |
d7040cdb | 9333 | |
d7040cdb | 9334 | |
ce2cded5 L |
9335 | # |
9336 | # Do we need to explicitly link libc? | |
9337 | # | |
9338 | case "x$archive_cmds_need_lc" in | |
9339 | x|xyes) | |
9340 | # Assume -lc should be added | |
9341 | archive_cmds_need_lc=yes | |
d7040cdb | 9342 | |
ce2cded5 L |
9343 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9344 | case $archive_cmds in | |
9345 | *'~'*) | |
9346 | # FIXME: we may have to deal with multi-command sequences. | |
9347 | ;; | |
9348 | '$CC '*) | |
9349 | # Test whether the compiler implicitly links with -lc since on some | |
9350 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9351 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9353 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9354 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9355 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9356 | else |
9357 | $RM conftest* | |
9358 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9359 | |
81ecdfbb | 9360 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9361 | (eval $ac_compile) 2>&5 |
9362 | ac_status=$? | |
81ecdfbb RW |
9363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9364 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9365 | soname=conftest |
9366 | lib=conftest | |
9367 | libobjs=conftest.$ac_objext | |
9368 | deplibs= | |
9369 | wl=$lt_prog_compiler_wl | |
9370 | pic_flag=$lt_prog_compiler_pic | |
9371 | compiler_flags=-v | |
9372 | linker_flags=-v | |
9373 | verstring= | |
9374 | output_objdir=. | |
9375 | libname=conftest | |
9376 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9377 | allow_undefined_flag= | |
81ecdfbb | 9378 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9379 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9380 | ac_status=$? | |
81ecdfbb RW |
9381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9382 | test $ac_status = 0; } | |
39144654 RW |
9383 | then |
9384 | lt_cv_archive_cmds_need_lc=no | |
9385 | else | |
9386 | lt_cv_archive_cmds_need_lc=yes | |
9387 | fi | |
9388 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9389 | else | |
9390 | cat conftest.err 1>&5 | |
9391 | fi | |
9392 | $RM conftest* | |
9393 | ||
9394 | fi | |
81ecdfbb RW |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9396 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9397 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9398 | ;; |
9399 | esac | |
d7040cdb | 9400 | fi |
d7040cdb | 9401 | ;; |
ce2cded5 | 9402 | esac |
d7040cdb | 9403 | |
d7040cdb | 9404 | |
d7040cdb | 9405 | |
d7040cdb | 9406 | |
d7040cdb | 9407 | |
d7040cdb | 9408 | |
d7040cdb | 9409 | |
d7040cdb SE |
9410 | |
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | ||
d7040cdb | 9497 | |
d7040cdb | 9498 | |
d7040cdb SE |
9499 | |
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
d7040cdb | 9505 | |
d7040cdb | 9506 | |
d7040cdb | 9507 | |
d7040cdb | 9508 | |
d7040cdb | 9509 | |
d7040cdb | 9510 | |
d7040cdb | 9511 | |
d7040cdb | 9512 | |
d7040cdb | 9513 | |
d7040cdb | 9514 | |
d7040cdb | 9515 | |
d7040cdb | 9516 | |
d7040cdb | 9517 | |
d7040cdb | 9518 | |
d7040cdb | 9519 | |
d7040cdb | 9520 | |
d7040cdb | 9521 | |
d7040cdb | 9522 | |
d7040cdb | 9523 | |
d7040cdb | 9524 | |
d7040cdb | 9525 | |
d7040cdb | 9526 | |
d7040cdb | 9527 | |
ce2cded5 L |
9528 | |
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | ||
9559 | ||
81ecdfbb RW |
9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9561 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9562 | |
9563 | if test "$GCC" = yes; then | |
ce2cded5 L |
9564 | case $host_os in |
9565 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9566 | *) lt_awk_arg="/^libraries:/" ;; | |
9567 | esac | |
3725885a RW |
9568 | case $host_os in |
9569 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9570 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9571 | esac | |
9572 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9573 | case $lt_search_path_spec in | |
9574 | *\;*) | |
ce2cded5 L |
9575 | # if the path contains ";" then we assume it to be the separator |
9576 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9577 | # assumed that no part of a normal pathname contains ";" but that should | |
9578 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9579 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9580 | ;; | |
9581 | *) | |
9582 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9583 | ;; | |
9584 | esac | |
ce2cded5 L |
9585 | # Ok, now we have the path, separated by spaces, we can step through it |
9586 | # and add multilib dir if necessary. | |
9587 | lt_tmp_lt_search_path_spec= | |
9588 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9589 | for lt_sys_path in $lt_search_path_spec; do | |
9590 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9591 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9592 | else | |
9593 | test -d "$lt_sys_path" && \ | |
9594 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9595 | fi | |
9596 | done | |
3725885a | 9597 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
9598 | BEGIN {RS=" "; FS="/|\n";} { |
9599 | lt_foo=""; | |
9600 | lt_count=0; | |
9601 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9602 | if ($lt_i != "" && $lt_i != ".") { | |
9603 | if ($lt_i == "..") { | |
9604 | lt_count++; | |
9605 | } else { | |
9606 | if (lt_count == 0) { | |
9607 | lt_foo="/" $lt_i lt_foo; | |
9608 | } else { | |
9609 | lt_count--; | |
9610 | } | |
9611 | } | |
9612 | } | |
9613 | } | |
9614 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9615 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9616 | }'` | |
3725885a RW |
9617 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9618 | # for these hosts. | |
9619 | case $host_os in | |
9620 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9621 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9622 | esac | |
9623 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 9624 | else |
ce2cded5 L |
9625 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9626 | fi | |
9627 | library_names_spec= | |
9628 | libname_spec='lib$name' | |
9629 | soname_spec= | |
9630 | shrext_cmds=".so" | |
9631 | postinstall_cmds= | |
9632 | postuninstall_cmds= | |
9633 | finish_cmds= | |
9634 | finish_eval= | |
9635 | shlibpath_var= | |
9636 | shlibpath_overrides_runpath=unknown | |
9637 | version_type=none | |
9638 | dynamic_linker="$host_os ld.so" | |
9639 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9640 | need_lib_prefix=unknown | |
9641 | hardcode_into_libs=no | |
9642 | ||
9643 | # when you set need_version to no, make sure it does not cause -set_version | |
9644 | # flags to be left without arguments | |
9645 | need_version=unknown | |
9646 | ||
9647 | case $host_os in | |
9648 | aix3*) | |
9649 | version_type=linux | |
9650 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9651 | shlibpath_var=LIBPATH | |
9652 | ||
9653 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9654 | soname_spec='${libname}${release}${shared_ext}$major' | |
9655 | ;; | |
9656 | ||
50e7d84b | 9657 | aix[4-9]*) |
ce2cded5 L |
9658 | version_type=linux |
9659 | need_lib_prefix=no | |
9660 | need_version=no | |
9661 | hardcode_into_libs=yes | |
9662 | if test "$host_cpu" = ia64; then | |
9663 | # AIX 5 supports IA64 | |
9664 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9665 | shlibpath_var=LD_LIBRARY_PATH | |
9666 | else | |
9667 | # With GCC up to 2.95.x, collect2 would create an import file | |
9668 | # for dependence libraries. The import file would start with | |
9669 | # the line `#! .'. This would cause the generated library to | |
9670 | # depend on `.', always an invalid library. This was fixed in | |
9671 | # development snapshots of GCC prior to 3.0. | |
9672 | case $host_os in | |
9673 | aix4 | aix4.[01] | aix4.[01].*) | |
9674 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9675 | echo ' yes ' | |
9676 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9677 | : | |
9678 | else | |
9679 | can_build_shared=no | |
9680 | fi | |
9681 | ;; | |
9682 | esac | |
9683 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9684 | # soname into executable. Probably we can add versioning support to | |
9685 | # collect2, so additional links can be useful in future. | |
9686 | if test "$aix_use_runtimelinking" = yes; then | |
9687 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9688 | # instead of lib<name>.a to let people know that these are not | |
9689 | # typical AIX shared libraries. | |
9690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9691 | else | |
9692 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9693 | # and later when we are not doing run time linking. | |
9694 | library_names_spec='${libname}${release}.a $libname.a' | |
9695 | soname_spec='${libname}${release}${shared_ext}$major' | |
9696 | fi | |
9697 | shlibpath_var=LIBPATH | |
9698 | fi | |
9699 | ;; | |
9700 | ||
9701 | amigaos*) | |
718a6fd8 SE |
9702 | case $host_cpu in |
9703 | powerpc) | |
9704 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9705 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9707 | ;; | |
9708 | m68k) | |
ce2cded5 L |
9709 | library_names_spec='$libname.ixlibrary $libname.a' |
9710 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 9711 | 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 |
9712 | ;; |
9713 | esac | |
ce2cded5 L |
9714 | ;; |
9715 | ||
9716 | beos*) | |
9717 | library_names_spec='${libname}${shared_ext}' | |
9718 | dynamic_linker="$host_os ld.so" | |
9719 | shlibpath_var=LIBRARY_PATH | |
9720 | ;; | |
9721 | ||
9722 | bsdi[45]*) | |
9723 | version_type=linux | |
9724 | need_version=no | |
9725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9726 | soname_spec='${libname}${release}${shared_ext}$major' | |
9727 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9728 | shlibpath_var=LD_LIBRARY_PATH | |
9729 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9730 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9731 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9732 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9733 | # libtool to hard-code these into programs | |
9734 | ;; | |
9735 | ||
718a6fd8 | 9736 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9737 | version_type=windows |
9738 | shrext_cmds=".dll" | |
9739 | need_version=no | |
9740 | need_lib_prefix=no | |
9741 | ||
f2c621e4 AS |
9742 | case $GCC,$host_os in |
9743 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
9744 | library_names_spec='$libname.dll.a' |
9745 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9746 | postinstall_cmds='base_file=`basename \${file}`~ | |
9747 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9748 | dldir=$destdir/`dirname \$dlpath`~ | |
9749 | test -d \$dldir || mkdir -p \$dldir~ | |
9750 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9751 | chmod a+x \$dldir/$dlname~ | |
9752 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9753 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9754 | fi' | |
9755 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9756 | dlpath=$dir/\$dldll~ | |
9757 | $RM \$dlpath' | |
9758 | shlibpath_overrides_runpath=yes | |
9759 | ||
9760 | case $host_os in | |
9761 | cygwin*) | |
9762 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9763 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
9764 | |
9765 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 9766 | ;; |
718a6fd8 | 9767 | mingw* | cegcc*) |
ce2cded5 L |
9768 | # MinGW DLLs use traditional 'lib' prefix |
9769 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
9770 | ;; |
9771 | pw32*) | |
9772 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9773 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9774 | ;; | |
9775 | esac | |
9776 | ;; | |
9777 | ||
9778 | *) | |
9779 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9780 | ;; | |
9781 | esac | |
f2c621e4 | 9782 | dynamic_linker='Win32 ld.exe' |
ce2cded5 L |
9783 | # FIXME: first we should search . and the directory the executable is in |
9784 | shlibpath_var=PATH | |
9785 | ;; | |
9786 | ||
9787 | darwin* | rhapsody*) | |
9788 | dynamic_linker="$host_os dyld" | |
9789 | version_type=darwin | |
9790 | need_lib_prefix=no | |
9791 | need_version=no | |
9792 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9793 | soname_spec='${libname}${release}${major}$shared_ext' | |
9794 | shlibpath_overrides_runpath=yes | |
9795 | shlibpath_var=DYLD_LIBRARY_PATH | |
9796 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9797 | ||
9798 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9799 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9800 | ;; | |
9801 | ||
9802 | dgux*) | |
9803 | version_type=linux | |
9804 | need_lib_prefix=no | |
9805 | need_version=no | |
9806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9807 | soname_spec='${libname}${release}${shared_ext}$major' | |
9808 | shlibpath_var=LD_LIBRARY_PATH | |
9809 | ;; | |
9810 | ||
ce2cded5 L |
9811 | freebsd* | dragonfly*) |
9812 | # DragonFly does not have aout. When/if they implement a new | |
9813 | # versioning mechanism, adjust this. | |
9814 | if test -x /usr/bin/objformat; then | |
9815 | objformat=`/usr/bin/objformat` | |
9816 | else | |
9817 | case $host_os in | |
6d2920c8 | 9818 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
9819 | *) objformat=elf ;; |
9820 | esac | |
9821 | fi | |
9822 | version_type=freebsd-$objformat | |
9823 | case $version_type in | |
9824 | freebsd-elf*) | |
9825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9826 | need_version=no | |
9827 | need_lib_prefix=no | |
9828 | ;; | |
9829 | freebsd-*) | |
9830 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9831 | need_version=yes | |
9832 | ;; | |
9833 | esac | |
9834 | shlibpath_var=LD_LIBRARY_PATH | |
9835 | case $host_os in | |
6d2920c8 | 9836 | freebsd2.*) |
ce2cded5 L |
9837 | shlibpath_overrides_runpath=yes |
9838 | ;; | |
9839 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9840 | shlibpath_overrides_runpath=yes | |
9841 | hardcode_into_libs=yes | |
9842 | ;; | |
9843 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9844 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9845 | shlibpath_overrides_runpath=no | |
9846 | hardcode_into_libs=yes | |
9847 | ;; | |
9848 | *) # from 4.6 on, and DragonFly | |
9849 | shlibpath_overrides_runpath=yes | |
9850 | hardcode_into_libs=yes | |
9851 | ;; | |
9852 | esac | |
9853 | ;; | |
9854 | ||
3725885a RW |
9855 | haiku*) |
9856 | version_type=linux | |
9857 | need_lib_prefix=no | |
9858 | need_version=no | |
9859 | dynamic_linker="$host_os runtime_loader" | |
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9861 | soname_spec='${libname}${release}${shared_ext}$major' | |
9862 | shlibpath_var=LIBRARY_PATH | |
9863 | shlibpath_overrides_runpath=yes | |
d85e70a3 | 9864 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
3725885a RW |
9865 | hardcode_into_libs=yes |
9866 | ;; | |
9867 | ||
ce2cded5 L |
9868 | hpux9* | hpux10* | hpux11*) |
9869 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9870 | # link against other versions. | |
9871 | version_type=sunos | |
9872 | need_lib_prefix=no | |
9873 | need_version=no | |
9874 | case $host_cpu in | |
9875 | ia64*) | |
9876 | shrext_cmds='.so' | |
9877 | hardcode_into_libs=yes | |
9878 | dynamic_linker="$host_os dld.so" | |
9879 | shlibpath_var=LD_LIBRARY_PATH | |
9880 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9882 | soname_spec='${libname}${release}${shared_ext}$major' | |
9883 | if test "X$HPUX_IA64_MODE" = X32; then | |
9884 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9885 | else | |
9886 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9887 | fi | |
9888 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9889 | ;; | |
9890 | hppa*64*) | |
9891 | shrext_cmds='.sl' | |
9892 | hardcode_into_libs=yes | |
9893 | dynamic_linker="$host_os dld.sl" | |
9894 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9895 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9897 | soname_spec='${libname}${release}${shared_ext}$major' | |
9898 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9899 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9900 | ;; | |
9901 | *) | |
9902 | shrext_cmds='.sl' | |
9903 | dynamic_linker="$host_os dld.sl" | |
9904 | shlibpath_var=SHLIB_PATH | |
9905 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9907 | soname_spec='${libname}${release}${shared_ext}$major' | |
9908 | ;; | |
9909 | esac | |
3725885a | 9910 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 9911 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
9912 | # or fails outright, so override atomically: |
9913 | install_override_mode=555 | |
ce2cded5 L |
9914 | ;; |
9915 | ||
9916 | interix[3-9]*) | |
9917 | version_type=linux | |
9918 | need_lib_prefix=no | |
9919 | need_version=no | |
9920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9921 | soname_spec='${libname}${release}${shared_ext}$major' | |
9922 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9923 | shlibpath_var=LD_LIBRARY_PATH | |
9924 | shlibpath_overrides_runpath=no | |
9925 | hardcode_into_libs=yes | |
9926 | ;; | |
9927 | ||
9928 | irix5* | irix6* | nonstopux*) | |
9929 | case $host_os in | |
9930 | nonstopux*) version_type=nonstopux ;; | |
9931 | *) | |
9932 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9933 | version_type=linux | |
9934 | else | |
9935 | version_type=irix | |
9936 | fi ;; | |
9937 | esac | |
9938 | need_lib_prefix=no | |
9939 | need_version=no | |
9940 | soname_spec='${libname}${release}${shared_ext}$major' | |
9941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9942 | case $host_os in | |
9943 | irix5* | nonstopux*) | |
9944 | libsuff= shlibsuff= | |
9945 | ;; | |
9946 | *) | |
9947 | case $LD in # libtool.m4 will add one of these switches to LD | |
9948 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9949 | libsuff= shlibsuff= libmagic=32-bit;; | |
9950 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9951 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9952 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9953 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9954 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9955 | esac | |
9956 | ;; | |
9957 | esac | |
9958 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9959 | shlibpath_overrides_runpath=no | |
9960 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9961 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9962 | hardcode_into_libs=yes | |
9963 | ;; | |
d7040cdb | 9964 | |
ce2cded5 L |
9965 | # No shared lib support for Linux oldld, aout, or coff. |
9966 | linux*oldld* | linux*aout* | linux*coff*) | |
9967 | dynamic_linker=no | |
9968 | ;; | |
9969 | ||
9970 | # This must be Linux ELF. | |
f4782128 | 9971 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
ce2cded5 L |
9972 | version_type=linux |
9973 | need_lib_prefix=no | |
9974 | need_version=no | |
9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9976 | soname_spec='${libname}${release}${shared_ext}$major' | |
9977 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9978 | shlibpath_var=LD_LIBRARY_PATH | |
9979 | shlibpath_overrides_runpath=no | |
39144654 | 9980 | |
ce2cded5 | 9981 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 9982 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 9983 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9984 | else |
9985 | lt_cv_shlibpath_overrides_runpath=no | |
9986 | save_LDFLAGS=$LDFLAGS | |
9987 | save_libdir=$libdir | |
9988 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9989 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 9990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9991 | /* end confdefs.h. */ |
9992 | ||
d7040cdb SE |
9993 | int |
9994 | main () | |
9995 | { | |
ce2cded5 | 9996 | |
d7040cdb SE |
9997 | ; |
9998 | return 0; | |
9999 | } | |
10000 | _ACEOF | |
81ecdfbb RW |
10001 | if ac_fn_c_try_link "$LINENO"; then : |
10002 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10003 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 | 10004 | fi |
ce2cded5 | 10005 | fi |
81ecdfbb RW |
10006 | rm -f core conftest.err conftest.$ac_objext \ |
10007 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10008 | LDFLAGS=$save_LDFLAGS |
10009 | libdir=$save_libdir | |
10010 | ||
10011 | fi | |
10012 | ||
10013 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10014 | |
10015 | # This implies no fast_install, which is unacceptable. | |
10016 | # Some rework will be needed to allow for fast_install | |
10017 | # before this can be enabled. | |
10018 | hardcode_into_libs=yes | |
10019 | ||
10020 | # Append ld.so.conf contents to the search path | |
10021 | if test -f /etc/ld.so.conf; then | |
3725885a | 10022 | 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 | 10023 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
ce2cded5 L |
10024 | fi |
10025 | ||
10026 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10027 | # powerpc, because MkLinux only supported shared libraries with the | |
10028 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10029 | # most powerpc-linux boxes support dynamic linking these days and | |
10030 | # people can always --disable-shared, the test was removed, and we | |
10031 | # assume the GNU/Linux dynamic linker is in use. | |
10032 | dynamic_linker='GNU/Linux ld.so' | |
10033 | ;; | |
10034 | ||
10035 | netbsd*) | |
10036 | version_type=sunos | |
10037 | need_lib_prefix=no | |
10038 | need_version=no | |
10039 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10041 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10042 | dynamic_linker='NetBSD (a.out) ld.so' | |
10043 | else | |
10044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10045 | soname_spec='${libname}${release}${shared_ext}$major' | |
10046 | dynamic_linker='NetBSD ld.elf_so' | |
10047 | fi | |
10048 | shlibpath_var=LD_LIBRARY_PATH | |
10049 | shlibpath_overrides_runpath=yes | |
10050 | hardcode_into_libs=yes | |
10051 | ;; | |
10052 | ||
10053 | newsos6) | |
10054 | version_type=linux | |
10055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10056 | shlibpath_var=LD_LIBRARY_PATH | |
10057 | shlibpath_overrides_runpath=yes | |
10058 | ;; | |
10059 | ||
10060 | *nto* | *qnx*) | |
10061 | version_type=qnx | |
10062 | need_lib_prefix=no | |
10063 | need_version=no | |
10064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10065 | soname_spec='${libname}${release}${shared_ext}$major' | |
10066 | shlibpath_var=LD_LIBRARY_PATH | |
10067 | shlibpath_overrides_runpath=no | |
10068 | hardcode_into_libs=yes | |
10069 | dynamic_linker='ldqnx.so' | |
10070 | ;; | |
10071 | ||
10072 | openbsd*) | |
10073 | version_type=sunos | |
10074 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10075 | need_lib_prefix=no | |
10076 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10077 | case $host_os in | |
10078 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10079 | *) need_version=no ;; | |
10080 | esac | |
10081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10082 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10083 | shlibpath_var=LD_LIBRARY_PATH | |
10084 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10085 | case $host_os in | |
10086 | openbsd2.[89] | openbsd2.[89].*) | |
10087 | shlibpath_overrides_runpath=no | |
10088 | ;; | |
10089 | *) | |
10090 | shlibpath_overrides_runpath=yes | |
10091 | ;; | |
10092 | esac | |
10093 | else | |
10094 | shlibpath_overrides_runpath=yes | |
10095 | fi | |
10096 | ;; | |
10097 | ||
10098 | os2*) | |
10099 | libname_spec='$name' | |
10100 | shrext_cmds=".dll" | |
10101 | need_lib_prefix=no | |
10102 | library_names_spec='$libname${shared_ext} $libname.a' | |
10103 | dynamic_linker='OS/2 ld.exe' | |
10104 | shlibpath_var=LIBPATH | |
10105 | ;; | |
10106 | ||
10107 | osf3* | osf4* | osf5*) | |
10108 | version_type=osf | |
10109 | need_lib_prefix=no | |
10110 | need_version=no | |
10111 | soname_spec='${libname}${release}${shared_ext}$major' | |
10112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10113 | shlibpath_var=LD_LIBRARY_PATH | |
10114 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10115 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10116 | ;; | |
10117 | ||
10118 | rdos*) | |
10119 | dynamic_linker=no | |
10120 | ;; | |
10121 | ||
10122 | solaris*) | |
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 | shlibpath_overrides_runpath=yes | |
10130 | hardcode_into_libs=yes | |
10131 | # ldd complains unless libraries are executable | |
10132 | postinstall_cmds='chmod +x $lib' | |
10133 | ;; | |
10134 | ||
10135 | sunos4*) | |
10136 | version_type=sunos | |
10137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10138 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10139 | shlibpath_var=LD_LIBRARY_PATH | |
10140 | shlibpath_overrides_runpath=yes | |
10141 | if test "$with_gnu_ld" = yes; then | |
10142 | need_lib_prefix=no | |
10143 | fi | |
10144 | need_version=yes | |
10145 | ;; | |
10146 | ||
10147 | sysv4 | sysv4.3*) | |
10148 | version_type=linux | |
10149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10150 | soname_spec='${libname}${release}${shared_ext}$major' | |
10151 | shlibpath_var=LD_LIBRARY_PATH | |
10152 | case $host_vendor in | |
10153 | sni) | |
10154 | shlibpath_overrides_runpath=no | |
10155 | need_lib_prefix=no | |
10156 | runpath_var=LD_RUN_PATH | |
10157 | ;; | |
10158 | siemens) | |
10159 | need_lib_prefix=no | |
10160 | ;; | |
10161 | motorola) | |
10162 | need_lib_prefix=no | |
10163 | need_version=no | |
10164 | shlibpath_overrides_runpath=no | |
10165 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10166 | ;; | |
10167 | esac | |
10168 | ;; | |
10169 | ||
10170 | sysv4*MP*) | |
10171 | if test -d /usr/nec ;then | |
10172 | version_type=linux | |
10173 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10174 | soname_spec='$libname${shared_ext}.$major' | |
10175 | shlibpath_var=LD_LIBRARY_PATH | |
10176 | fi | |
10177 | ;; | |
10178 | ||
10179 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10180 | version_type=freebsd-elf | |
10181 | need_lib_prefix=no | |
10182 | need_version=no | |
10183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10184 | soname_spec='${libname}${release}${shared_ext}$major' | |
10185 | shlibpath_var=LD_LIBRARY_PATH | |
10186 | shlibpath_overrides_runpath=yes | |
10187 | hardcode_into_libs=yes | |
10188 | if test "$with_gnu_ld" = yes; then | |
10189 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10190 | else | |
10191 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10192 | case $host_os in | |
10193 | sco3.2v5*) | |
10194 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10195 | ;; | |
10196 | esac | |
10197 | fi | |
10198 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10199 | ;; | |
10200 | ||
10201 | tpf*) | |
10202 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10203 | version_type=linux | |
10204 | need_lib_prefix=no | |
10205 | need_version=no | |
718a6fd8 | 10206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10207 | shlibpath_var=LD_LIBRARY_PATH |
10208 | shlibpath_overrides_runpath=no | |
10209 | hardcode_into_libs=yes | |
10210 | ;; | |
d7040cdb | 10211 | |
ce2cded5 L |
10212 | uts4*) |
10213 | version_type=linux | |
10214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10215 | soname_spec='${libname}${release}${shared_ext}$major' | |
10216 | shlibpath_var=LD_LIBRARY_PATH | |
10217 | ;; | |
d7040cdb | 10218 | |
ce2cded5 L |
10219 | *) |
10220 | dynamic_linker=no | |
10221 | ;; | |
10222 | esac | |
81ecdfbb RW |
10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10224 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
10225 | test "$dynamic_linker" = no && can_build_shared=no |
10226 | ||
10227 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10228 | if test "$GCC" = yes; then | |
10229 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10230 | fi |
d7040cdb | 10231 | |
718a6fd8 SE |
10232 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10233 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10234 | fi | |
10235 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10236 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10237 | fi | |
10238 | ||
d7040cdb | 10239 | |
d7040cdb SE |
10240 | |
10241 | ||
d7040cdb SE |
10242 | |
10243 | ||
d7040cdb SE |
10244 | |
10245 | ||
d7040cdb SE |
10246 | |
10247 | ||
d7040cdb SE |
10248 | |
10249 | ||
d7040cdb | 10250 | |
d7040cdb | 10251 | |
d7040cdb | 10252 | |
d7040cdb | 10253 | |
d7040cdb | 10254 | |
d7040cdb | 10255 | |
d7040cdb | 10256 | |
d7040cdb | 10257 | |
d7040cdb | 10258 | |
d7040cdb | 10259 | |
d7040cdb | 10260 | |
d7040cdb | 10261 | |
d7040cdb | 10262 | |
d7040cdb | 10263 | |
d7040cdb SE |
10264 | |
10265 | ||
d7040cdb | 10266 | |
d7040cdb | 10267 | |
d7040cdb | 10268 | |
d7040cdb | 10269 | |
d7040cdb | 10270 | |
d7040cdb | 10271 | |
d7040cdb | 10272 | |
d7040cdb | 10273 | |
d7040cdb | 10274 | |
d7040cdb SE |
10275 | |
10276 | ||
d7040cdb | 10277 | |
d7040cdb | 10278 | |
d7040cdb | 10279 | |
d7040cdb SE |
10280 | |
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
d7040cdb SE |
10297 | |
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
d7040cdb | 10309 | |
d7040cdb | 10310 | |
d7040cdb | 10311 | |
d7040cdb | 10312 | |
d7040cdb SE |
10313 | |
10314 | ||
10315 | ||
10316 | ||
ce2cded5 L |
10317 | |
10318 | ||
3725885a RW |
10319 | |
10320 | ||
10321 | ||
10322 | ||
10323 | ||
ce2cded5 L |
10324 | |
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
81ecdfbb RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10331 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10332 | hardcode_action= |
10333 | if test -n "$hardcode_libdir_flag_spec" || | |
10334 | test -n "$runpath_var" || | |
10335 | test "X$hardcode_automatic" = "Xyes" ; then | |
10336 | ||
10337 | # We can hardcode non-existent directories. | |
10338 | if test "$hardcode_direct" != no && | |
10339 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10340 | # have to relink, otherwise we might link with an installed library | |
10341 | # when we should be linking with a yet-to-be-installed one | |
10342 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10343 | test "$hardcode_minus_L" != no; then | |
10344 | # Linking always hardcodes the temporary library directory. | |
10345 | hardcode_action=relink | |
10346 | else | |
10347 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10348 | hardcode_action=immediate | |
10349 | fi | |
10350 | else | |
10351 | # We cannot hardcode anything, or else we can only hardcode existing | |
10352 | # directories. | |
10353 | hardcode_action=unsupported | |
10354 | fi | |
81ecdfbb RW |
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10356 | $as_echo "$hardcode_action" >&6; } | |
ce2cded5 L |
10357 | |
10358 | if test "$hardcode_action" = relink || | |
10359 | test "$inherit_rpath" = yes; then | |
10360 | # Fast installation is not supported | |
10361 | enable_fast_install=no | |
10362 | elif test "$shlibpath_overrides_runpath" = yes || | |
10363 | test "$enable_shared" = no; then | |
10364 | # Fast installation is not necessary | |
10365 | enable_fast_install=needless | |
d7040cdb | 10366 | fi |
d7040cdb | 10367 | |
d7040cdb SE |
10368 | |
10369 | ||
10370 | ||
10371 | ||
10372 | ||
ce2cded5 L |
10373 | if test "x$enable_dlopen" != xyes; then |
10374 | enable_dlopen=unknown | |
10375 | enable_dlopen_self=unknown | |
10376 | enable_dlopen_self_static=unknown | |
10377 | else | |
10378 | lt_cv_dlopen=no | |
10379 | lt_cv_dlopen_libs= | |
10380 | ||
10381 | case $host_os in | |
10382 | beos*) | |
10383 | lt_cv_dlopen="load_add_on" | |
10384 | lt_cv_dlopen_libs= | |
10385 | lt_cv_dlopen_self=yes | |
10386 | ;; | |
d7040cdb | 10387 | |
718a6fd8 | 10388 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10389 | lt_cv_dlopen="LoadLibrary" |
10390 | lt_cv_dlopen_libs= | |
10391 | ;; | |
d7040cdb | 10392 | |
ce2cded5 L |
10393 | cygwin*) |
10394 | lt_cv_dlopen="dlopen" | |
10395 | lt_cv_dlopen_libs= | |
10396 | ;; | |
d7040cdb | 10397 | |
ce2cded5 L |
10398 | darwin*) |
10399 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10401 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10402 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10403 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10404 | else |
10405 | ac_check_lib_save_LIBS=$LIBS | |
10406 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10408 | /* end confdefs.h. */ |
d7040cdb | 10409 | |
81ecdfbb RW |
10410 | /* Override any GCC internal prototype to avoid an error. |
10411 | Use char because int might match the return type of a GCC | |
10412 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10413 | #ifdef __cplusplus |
10414 | extern "C" | |
10415 | #endif | |
ce2cded5 L |
10416 | char dlopen (); |
10417 | int | |
10418 | main () | |
10419 | { | |
81ecdfbb | 10420 | return dlopen (); |
ce2cded5 L |
10421 | ; |
10422 | return 0; | |
10423 | } | |
10424 | _ACEOF | |
81ecdfbb | 10425 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10426 | ac_cv_lib_dl_dlopen=yes |
10427 | else | |
81ecdfbb | 10428 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10429 | fi |
81ecdfbb RW |
10430 | rm -f core conftest.err conftest.$ac_objext \ |
10431 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10432 | LIBS=$ac_check_lib_save_LIBS |
10433 | fi | |
81ecdfbb RW |
10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10435 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10436 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 L |
10437 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10438 | else | |
d7040cdb | 10439 | |
ce2cded5 L |
10440 | lt_cv_dlopen="dyld" |
10441 | lt_cv_dlopen_libs= | |
10442 | lt_cv_dlopen_self=yes | |
d7040cdb | 10443 | |
ce2cded5 | 10444 | fi |
d7040cdb | 10445 | |
ce2cded5 | 10446 | ;; |
d7040cdb | 10447 | |
ce2cded5 | 10448 | *) |
81ecdfbb | 10449 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 10450 | if test "x$ac_cv_func_shl_load" = xyes; then : |
ce2cded5 L |
10451 | lt_cv_dlopen="shl_load" |
10452 | else | |
81ecdfbb RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10454 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10455 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 10456 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10457 | else |
10458 | ac_check_lib_save_LIBS=$LIBS | |
10459 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10461 | /* end confdefs.h. */ |
d7040cdb | 10462 | |
81ecdfbb RW |
10463 | /* Override any GCC internal prototype to avoid an error. |
10464 | Use char because int might match the return type of a GCC | |
10465 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10466 | #ifdef __cplusplus |
10467 | extern "C" | |
10468 | #endif | |
ce2cded5 L |
10469 | char shl_load (); |
10470 | int | |
10471 | main () | |
10472 | { | |
81ecdfbb | 10473 | return shl_load (); |
ce2cded5 L |
10474 | ; |
10475 | return 0; | |
10476 | } | |
d7040cdb | 10477 | _ACEOF |
81ecdfbb | 10478 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10479 | ac_cv_lib_dld_shl_load=yes |
10480 | else | |
81ecdfbb | 10481 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10482 | fi |
81ecdfbb RW |
10483 | rm -f core conftest.err conftest.$ac_objext \ |
10484 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10485 | LIBS=$ac_check_lib_save_LIBS |
10486 | fi | |
81ecdfbb RW |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10488 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10489 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
718a6fd8 | 10490 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 10491 | else |
81ecdfbb | 10492 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 10493 | if test "x$ac_cv_func_dlopen" = xyes; then : |
ce2cded5 L |
10494 | lt_cv_dlopen="dlopen" |
10495 | else | |
81ecdfbb RW |
10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10497 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10498 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10499 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10500 | else |
ce2cded5 L |
10501 | ac_check_lib_save_LIBS=$LIBS |
10502 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10504 | /* end confdefs.h. */ |
d7040cdb | 10505 | |
81ecdfbb RW |
10506 | /* Override any GCC internal prototype to avoid an error. |
10507 | Use char because int might match the return type of a GCC | |
10508 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10509 | #ifdef __cplusplus |
10510 | extern "C" | |
10511 | #endif | |
ce2cded5 | 10512 | char dlopen (); |
d7040cdb SE |
10513 | int |
10514 | main () | |
10515 | { | |
81ecdfbb | 10516 | return dlopen (); |
d7040cdb SE |
10517 | ; |
10518 | return 0; | |
10519 | } | |
10520 | _ACEOF | |
81ecdfbb | 10521 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10522 | ac_cv_lib_dl_dlopen=yes |
10523 | else | |
81ecdfbb | 10524 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10525 | fi |
81ecdfbb RW |
10526 | rm -f core conftest.err conftest.$ac_objext \ |
10527 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10528 | LIBS=$ac_check_lib_save_LIBS |
10529 | fi | |
81ecdfbb RW |
10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10531 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10532 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
ce2cded5 L |
10533 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10534 | else | |
81ecdfbb RW |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10536 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10537 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10538 | $as_echo_n "(cached) " >&6 |
ce2cded5 L |
10539 | else |
10540 | ac_check_lib_save_LIBS=$LIBS | |
10541 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10543 | /* end confdefs.h. */ |
d7040cdb | 10544 | |
81ecdfbb RW |
10545 | /* Override any GCC internal prototype to avoid an error. |
10546 | Use char because int might match the return type of a GCC | |
10547 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10548 | #ifdef __cplusplus |
10549 | extern "C" | |
10550 | #endif | |
ce2cded5 | 10551 | char dlopen (); |
d7040cdb SE |
10552 | int |
10553 | main () | |
10554 | { | |
81ecdfbb | 10555 | return dlopen (); |
d7040cdb SE |
10556 | ; |
10557 | return 0; | |
10558 | } | |
10559 | _ACEOF | |
81ecdfbb | 10560 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10561 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 10562 | else |
81ecdfbb | 10563 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10564 | fi |
81ecdfbb RW |
10565 | rm -f core conftest.err conftest.$ac_objext \ |
10566 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10567 | LIBS=$ac_check_lib_save_LIBS |
10568 | fi | |
81ecdfbb RW |
10569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10570 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 10571 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
ce2cded5 L |
10572 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10573 | else | |
81ecdfbb RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10575 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 10576 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 10577 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10578 | else |
ce2cded5 L |
10579 | ac_check_lib_save_LIBS=$LIBS |
10580 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10582 | /* end confdefs.h. */ |
ce2cded5 | 10583 | |
81ecdfbb RW |
10584 | /* Override any GCC internal prototype to avoid an error. |
10585 | Use char because int might match the return type of a GCC | |
10586 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10587 | #ifdef __cplusplus |
10588 | extern "C" | |
10589 | #endif | |
ce2cded5 | 10590 | char dld_link (); |
d7040cdb SE |
10591 | int |
10592 | main () | |
10593 | { | |
81ecdfbb | 10594 | return dld_link (); |
d7040cdb SE |
10595 | ; |
10596 | return 0; | |
10597 | } | |
10598 | _ACEOF | |
81ecdfbb | 10599 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10600 | ac_cv_lib_dld_dld_link=yes |
10601 | else | |
81ecdfbb | 10602 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10603 | fi |
81ecdfbb RW |
10604 | rm -f core conftest.err conftest.$ac_objext \ |
10605 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10606 | LIBS=$ac_check_lib_save_LIBS |
10607 | fi | |
81ecdfbb RW |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10609 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 10610 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
718a6fd8 | 10611 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
10612 | fi |
10613 | ||
10614 | ||
10615 | fi | |
10616 | ||
10617 | ||
10618 | fi | |
10619 | ||
10620 | ||
10621 | fi | |
10622 | ||
10623 | ||
10624 | fi | |
10625 | ||
10626 | ||
10627 | fi | |
10628 | ||
10629 | ;; | |
10630 | esac | |
10631 | ||
10632 | if test "x$lt_cv_dlopen" != xno; then | |
10633 | enable_dlopen=yes | |
d7040cdb | 10634 | else |
ce2cded5 | 10635 | enable_dlopen=no |
d7040cdb | 10636 | fi |
ce2cded5 L |
10637 | |
10638 | case $lt_cv_dlopen in | |
10639 | dlopen) | |
10640 | save_CPPFLAGS="$CPPFLAGS" | |
10641 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10642 | ||
10643 | save_LDFLAGS="$LDFLAGS" | |
10644 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10645 | ||
10646 | save_LIBS="$LIBS" | |
10647 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10648 | ||
81ecdfbb RW |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10650 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 10651 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 10652 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10653 | else |
ce2cded5 L |
10654 | if test "$cross_compiling" = yes; then : |
10655 | lt_cv_dlopen_self=cross | |
10656 | else | |
10657 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10658 | lt_status=$lt_dlunknown | |
10659 | cat > conftest.$ac_ext <<_LT_EOF | |
b9004024 | 10660 | #line 10660 "configure" |
ce2cded5 L |
10661 | #include "confdefs.h" |
10662 | ||
10663 | #if HAVE_DLFCN_H | |
10664 | #include <dlfcn.h> | |
10665 | #endif | |
10666 | ||
10667 | #include <stdio.h> | |
10668 | ||
10669 | #ifdef RTLD_GLOBAL | |
10670 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10671 | #else | |
10672 | # ifdef DL_GLOBAL | |
10673 | # define LT_DLGLOBAL DL_GLOBAL | |
10674 | # else | |
10675 | # define LT_DLGLOBAL 0 | |
10676 | # endif | |
10677 | #endif | |
10678 | ||
10679 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10680 | find out it does not work in some platform. */ | |
10681 | #ifndef LT_DLLAZY_OR_NOW | |
10682 | # ifdef RTLD_LAZY | |
10683 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10684 | # else | |
10685 | # ifdef DL_LAZY | |
10686 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10687 | # else | |
10688 | # ifdef RTLD_NOW | |
10689 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10690 | # else | |
10691 | # ifdef DL_NOW | |
10692 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10693 | # else | |
10694 | # define LT_DLLAZY_OR_NOW 0 | |
10695 | # endif | |
10696 | # endif | |
10697 | # endif | |
10698 | # endif | |
10699 | #endif | |
10700 | ||
3725885a RW |
10701 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10702 | correspondingly for the symbols needed. */ | |
10703 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10704 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10705 | #endif |
10706 | ||
f2c621e4 | 10707 | void fnord () { int i=42; } |
ce2cded5 L |
10708 | int main () |
10709 | { | |
10710 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10711 | int status = $lt_dlunknown; | |
10712 | ||
10713 | if (self) | |
10714 | { | |
10715 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10716 | else |
10717 | { | |
10718 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10719 | else puts (dlerror ()); | |
10720 | } | |
ce2cded5 L |
10721 | /* dlclose (self); */ |
10722 | } | |
10723 | else | |
10724 | puts (dlerror ()); | |
10725 | ||
718a6fd8 | 10726 | return status; |
ce2cded5 L |
10727 | } |
10728 | _LT_EOF | |
81ecdfbb | 10729 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
10730 | (eval $ac_link) 2>&5 |
10731 | ac_status=$? | |
81ecdfbb RW |
10732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10733 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
10734 | (./conftest; exit; ) >&5 2>/dev/null |
10735 | lt_status=$? | |
10736 | case x$lt_status in | |
10737 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10738 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10739 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10740 | esac | |
10741 | else : | |
10742 | # compilation failed | |
10743 | lt_cv_dlopen_self=no | |
10744 | fi | |
10745 | fi | |
10746 | rm -fr conftest* | |
10747 | ||
d7040cdb SE |
10748 | |
10749 | fi | |
81ecdfbb RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10751 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
10752 | |
10753 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10754 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10756 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 10757 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 10758 | $as_echo_n "(cached) " >&6 |
d7040cdb | 10759 | else |
ce2cded5 L |
10760 | if test "$cross_compiling" = yes; then : |
10761 | lt_cv_dlopen_self_static=cross | |
10762 | else | |
10763 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10764 | lt_status=$lt_dlunknown | |
10765 | cat > conftest.$ac_ext <<_LT_EOF | |
b9004024 | 10766 | #line 10766 "configure" |
ce2cded5 L |
10767 | #include "confdefs.h" |
10768 | ||
10769 | #if HAVE_DLFCN_H | |
10770 | #include <dlfcn.h> | |
10771 | #endif | |
10772 | ||
10773 | #include <stdio.h> | |
10774 | ||
10775 | #ifdef RTLD_GLOBAL | |
10776 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10777 | #else | |
10778 | # ifdef DL_GLOBAL | |
10779 | # define LT_DLGLOBAL DL_GLOBAL | |
10780 | # else | |
10781 | # define LT_DLGLOBAL 0 | |
10782 | # endif | |
10783 | #endif | |
10784 | ||
10785 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10786 | find out it does not work in some platform. */ | |
10787 | #ifndef LT_DLLAZY_OR_NOW | |
10788 | # ifdef RTLD_LAZY | |
10789 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10790 | # else | |
10791 | # ifdef DL_LAZY | |
10792 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10793 | # else | |
10794 | # ifdef RTLD_NOW | |
10795 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10796 | # else | |
10797 | # ifdef DL_NOW | |
10798 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10799 | # else | |
10800 | # define LT_DLLAZY_OR_NOW 0 | |
10801 | # endif | |
10802 | # endif | |
10803 | # endif | |
10804 | # endif | |
10805 | #endif | |
10806 | ||
3725885a RW |
10807 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10808 | correspondingly for the symbols needed. */ | |
10809 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
f2c621e4 | 10810 | void fnord () __attribute__((visibility("default"))); |
3725885a RW |
10811 | #endif |
10812 | ||
f2c621e4 | 10813 | void fnord () { int i=42; } |
ce2cded5 | 10814 | int main () |
d7040cdb | 10815 | { |
ce2cded5 L |
10816 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10817 | int status = $lt_dlunknown; | |
10818 | ||
10819 | if (self) | |
10820 | { | |
10821 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
10822 | else |
10823 | { | |
10824 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10825 | else puts (dlerror ()); | |
10826 | } | |
ce2cded5 L |
10827 | /* dlclose (self); */ |
10828 | } | |
10829 | else | |
10830 | puts (dlerror ()); | |
10831 | ||
718a6fd8 | 10832 | return status; |
d7040cdb | 10833 | } |
ce2cded5 | 10834 | _LT_EOF |
81ecdfbb | 10835 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
10836 | (eval $ac_link) 2>&5 |
10837 | ac_status=$? | |
81ecdfbb RW |
10838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10839 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
10840 | (./conftest; exit; ) >&5 2>/dev/null |
10841 | lt_status=$? | |
10842 | case x$lt_status in | |
10843 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10844 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10845 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10846 | esac | |
10847 | else : | |
10848 | # compilation failed | |
10849 | lt_cv_dlopen_self_static=no | |
10850 | fi | |
d7040cdb | 10851 | fi |
ce2cded5 L |
10852 | rm -fr conftest* |
10853 | ||
10854 | ||
d7040cdb | 10855 | fi |
81ecdfbb RW |
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
10857 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
10858 | fi |
10859 | ||
10860 | CPPFLAGS="$save_CPPFLAGS" | |
10861 | LDFLAGS="$save_LDFLAGS" | |
10862 | LIBS="$save_LIBS" | |
10863 | ;; | |
10864 | esac | |
10865 | ||
10866 | case $lt_cv_dlopen_self in | |
10867 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10868 | *) enable_dlopen_self=unknown ;; | |
10869 | esac | |
10870 | ||
10871 | case $lt_cv_dlopen_self_static in | |
10872 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10873 | *) enable_dlopen_self_static=unknown ;; | |
10874 | esac | |
d7040cdb | 10875 | fi |
d7040cdb | 10876 | |
d7040cdb SE |
10877 | |
10878 | ||
d7040cdb | 10879 | |
d7040cdb | 10880 | |
ce2cded5 L |
10881 | |
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | striplib= | |
10894 | old_striplib= | |
81ecdfbb RW |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
10896 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
10897 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
10898 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10899 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10901 | $as_echo "yes" >&6; } | |
ce2cded5 L |
10902 | else |
10903 | # FIXME - insert some real tests, host_os isn't really good enough | |
10904 | case $host_os in | |
10905 | darwin*) | |
10906 | if test -n "$STRIP" ; then | |
10907 | striplib="$STRIP -x" | |
10908 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
10909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10910 | $as_echo "yes" >&6; } | |
ce2cded5 | 10911 | else |
81ecdfbb RW |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10913 | $as_echo "no" >&6; } | |
d7040cdb | 10914 | fi |
ce2cded5 L |
10915 | ;; |
10916 | *) | |
81ecdfbb RW |
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10918 | $as_echo "no" >&6; } | |
ce2cded5 | 10919 | ;; |
d7040cdb | 10920 | esac |
d7040cdb SE |
10921 | fi |
10922 | ||
d7040cdb | 10923 | |
d7040cdb | 10924 | |
d7040cdb | 10925 | |
d7040cdb | 10926 | |
d7040cdb | 10927 | |
d7040cdb | 10928 | |
d7040cdb | 10929 | |
d7040cdb | 10930 | |
d7040cdb | 10931 | |
d7040cdb | 10932 | |
d7040cdb | 10933 | |
ce2cded5 | 10934 | # Report which library types will actually be built |
81ecdfbb RW |
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
10936 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
10938 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 10939 | |
81ecdfbb RW |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
10941 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 | 10942 | test "$can_build_shared" = "no" && enable_shared=no |
d7040cdb | 10943 | |
ce2cded5 L |
10944 | # On AIX, shared libraries and static libraries use the same namespace, and |
10945 | # are all built from PIC. | |
10946 | case $host_os in | |
10947 | aix3*) | |
10948 | test "$enable_shared" = yes && enable_static=no | |
10949 | if test -n "$RANLIB"; then | |
10950 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10951 | postinstall_cmds='$RANLIB $lib' | |
10952 | fi | |
10953 | ;; | |
d7040cdb | 10954 | |
50e7d84b | 10955 | aix[4-9]*) |
ce2cded5 L |
10956 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10957 | test "$enable_shared" = yes && enable_static=no | |
10958 | fi | |
10959 | ;; | |
10960 | esac | |
81ecdfbb RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
10962 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 10963 | |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
10965 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
10966 | # Make sure either enable_shared or enable_static is yes. |
10967 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
10969 | $as_echo "$enable_static" >&6; } | |
d7040cdb | 10970 | |
d7040cdb | 10971 | |
d7040cdb | 10972 | |
d7040cdb | 10973 | |
ce2cded5 L |
10974 | fi |
10975 | ac_ext=c | |
10976 | ac_cpp='$CPP $CPPFLAGS' | |
10977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 10980 | |
ce2cded5 | 10981 | CC="$lt_save_CC" |
d7040cdb | 10982 | |
d7040cdb | 10983 | |
d7040cdb | 10984 | |
d7040cdb | 10985 | |
d7040cdb | 10986 | |
d7040cdb | 10987 | |
d7040cdb | 10988 | |
d7040cdb | 10989 | |
d7040cdb | 10990 | |
d7040cdb SE |
10991 | |
10992 | ||
d7040cdb SE |
10993 | |
10994 | ||
81ecdfbb | 10995 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
10996 | |
10997 | ||
d7040cdb | 10998 | |
d7040cdb | 10999 | |
ce2cded5 | 11000 | # Only expand once: |
d7040cdb | 11001 | |
d7040cdb | 11002 | |
d7040cdb | 11003 | |
b879806f AM |
11004 | # The tests for host and target for $enable_largefile require |
11005 | # canonical names. | |
11006 | ||
11007 | ||
11008 | ||
11009 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
11010 | # even in directories otherwise not depending on the $plugins option. | |
11011 | ||
11012 | ||
11013 | maybe_plugins=no | |
11014 | for ac_header in dlfcn.h | |
11015 | do : | |
11016 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
11017 | " | |
d0ac1c44 | 11018 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
11019 | cat >>confdefs.h <<_ACEOF |
11020 | #define HAVE_DLFCN_H 1 | |
11021 | _ACEOF | |
11022 | maybe_plugins=yes | |
11023 | fi | |
11024 | ||
11025 | done | |
11026 | ||
11027 | for ac_header in windows.h | |
11028 | do : | |
11029 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
11030 | " | |
d0ac1c44 | 11031 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
11032 | cat >>confdefs.h <<_ACEOF |
11033 | #define HAVE_WINDOWS_H 1 | |
11034 | _ACEOF | |
11035 | maybe_plugins=yes | |
11036 | fi | |
11037 | ||
11038 | done | |
11039 | ||
11040 | ||
11041 | # Check whether --enable-plugins was given. | |
11042 | if test "${enable_plugins+set}" = set; then : | |
11043 | enableval=$enable_plugins; case "${enableval}" in | |
11044 | no) plugins=no ;; | |
11045 | *) plugins=yes | |
11046 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 11047 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
11048 | fi ;; |
11049 | esac | |
11050 | else | |
11051 | plugins=$maybe_plugins | |
11052 | ||
11053 | fi | |
11054 | ||
2974be62 | 11055 | if test "$plugins" = "yes"; then |
3cba8b6c L |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
11057 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 11058 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11059 | $as_echo_n "(cached) " >&6 |
11060 | else | |
11061 | ac_func_search_save_LIBS=$LIBS | |
11062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11063 | /* end confdefs.h. */ | |
11064 | ||
11065 | /* Override any GCC internal prototype to avoid an error. | |
11066 | Use char because int might match the return type of a GCC | |
11067 | builtin and then its argument prototype would still apply. */ | |
11068 | #ifdef __cplusplus | |
11069 | extern "C" | |
11070 | #endif | |
3cba8b6c | 11071 | char dlsym (); |
2974be62 AM |
11072 | int |
11073 | main () | |
11074 | { | |
3cba8b6c | 11075 | return dlsym (); |
2974be62 AM |
11076 | ; |
11077 | return 0; | |
11078 | } | |
11079 | _ACEOF | |
11080 | for ac_lib in '' dl; do | |
11081 | if test -z "$ac_lib"; then | |
11082 | ac_res="none required" | |
11083 | else | |
11084 | ac_res=-l$ac_lib | |
11085 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11086 | fi | |
11087 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 11088 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
11089 | fi |
11090 | rm -f core conftest.err conftest.$ac_objext \ | |
11091 | conftest$ac_exeext | |
d0ac1c44 | 11092 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11093 | break |
11094 | fi | |
11095 | done | |
d0ac1c44 | 11096 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11097 | |
11098 | else | |
3cba8b6c | 11099 | ac_cv_search_dlsym=no |
2974be62 AM |
11100 | fi |
11101 | rm conftest.$ac_ext | |
11102 | LIBS=$ac_func_search_save_LIBS | |
11103 | fi | |
3cba8b6c L |
11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
11105 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
11106 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
11107 | if test "$ac_res" != no; then : |
11108 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11109 | ||
11110 | fi | |
11111 | ||
11112 | fi | |
b879806f AM |
11113 | |
11114 | ||
11115 | case "${host}" in | |
c8693053 RO |
11116 | sparc-*-solaris*|i?86-*-solaris*) |
11117 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
11118 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
11119 | # the bfd/ elf module cannot provide certain routines such as | |
11120 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
11121 | # explicitly requested large-file support through the | |
11122 | # --enable-largefile switch, disable large-file support in favor of | |
11123 | # procfs support. | |
11124 | # | |
11125 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
11126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11127 | /* end confdefs.h. */ | |
11128 | #define _FILE_OFFSET_BITS 64 | |
11129 | #define _STRUCTURED_PROC 1 | |
11130 | #include <sys/procfs.h> | |
11131 | int | |
11132 | main () | |
11133 | { | |
11134 | ||
11135 | ; | |
11136 | return 0; | |
11137 | } | |
11138 | _ACEOF | |
11139 | if ac_fn_c_try_compile "$LINENO"; then : | |
11140 | acx_cv_procfs_lfs=yes | |
11141 | else | |
11142 | acx_cv_procfs_lfs=no | |
11143 | fi | |
11144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11145 | # | |
11146 | # Forcefully disable large-file support only if necessary, gdb is in | |
11147 | # tree and enabled. | |
11148 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
11149 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
11150 | : ${enable_largefile="no"} | |
11151 | if test "$plugins" = yes; then | |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
11153 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
11154 | $as_echo "$as_me: WARNING: | |
11155 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
11156 | plugins=no | |
11157 | fi | |
11158 | fi | |
11159 | # | |
11160 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
11161 | # benefit of g++ 9+ which predefines it on Solaris. | |
11162 | if test "$enable_largefile" = no; then | |
11163 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
11164 | ||
11165 | fi | |
b879806f AM |
11166 | ;; |
11167 | esac | |
11168 | ||
11169 | # Check whether --enable-largefile was given. | |
11170 | if test "${enable_largefile+set}" = set; then : | |
11171 | enableval=$enable_largefile; | |
11172 | fi | |
11173 | ||
11174 | if test "$enable_largefile" != no; then | |
11175 | ||
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11177 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 11178 | if ${ac_cv_sys_largefile_CC+:} false; then : |
b879806f AM |
11179 | $as_echo_n "(cached) " >&6 |
11180 | else | |
11181 | ac_cv_sys_largefile_CC=no | |
11182 | if test "$GCC" != yes; then | |
11183 | ac_save_CC=$CC | |
11184 | while :; do | |
11185 | # IRIX 6.2 and later do not support large files by default, | |
11186 | # so use the C compiler's -n32 option if that helps. | |
11187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11188 | /* end confdefs.h. */ | |
11189 | #include <sys/types.h> | |
11190 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11191 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11192 | since some C++ compilers masquerading as C compilers | |
11193 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11194 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11195 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11196 | && LARGE_OFF_T % 2147483647 == 1) | |
11197 | ? 1 : -1]; | |
11198 | int | |
11199 | main () | |
11200 | { | |
11201 | ||
11202 | ; | |
11203 | return 0; | |
11204 | } | |
11205 | _ACEOF | |
11206 | if ac_fn_c_try_compile "$LINENO"; then : | |
11207 | break | |
11208 | fi | |
11209 | rm -f core conftest.err conftest.$ac_objext | |
11210 | CC="$CC -n32" | |
11211 | if ac_fn_c_try_compile "$LINENO"; then : | |
11212 | ac_cv_sys_largefile_CC=' -n32'; break | |
11213 | fi | |
11214 | rm -f core conftest.err conftest.$ac_objext | |
11215 | break | |
11216 | done | |
11217 | CC=$ac_save_CC | |
11218 | rm -f conftest.$ac_ext | |
11219 | fi | |
11220 | fi | |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11222 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11223 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11224 | CC=$CC$ac_cv_sys_largefile_CC | |
11225 | fi | |
11226 | ||
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11228 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 11229 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
b879806f AM |
11230 | $as_echo_n "(cached) " >&6 |
11231 | else | |
11232 | while :; do | |
11233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11234 | /* end confdefs.h. */ | |
11235 | #include <sys/types.h> | |
11236 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11237 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11238 | since some C++ compilers masquerading as C compilers | |
11239 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11240 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11241 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11242 | && LARGE_OFF_T % 2147483647 == 1) | |
11243 | ? 1 : -1]; | |
11244 | int | |
11245 | main () | |
11246 | { | |
11247 | ||
11248 | ; | |
11249 | return 0; | |
11250 | } | |
11251 | _ACEOF | |
11252 | if ac_fn_c_try_compile "$LINENO"; then : | |
11253 | ac_cv_sys_file_offset_bits=no; break | |
11254 | fi | |
11255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11257 | /* end confdefs.h. */ | |
11258 | #define _FILE_OFFSET_BITS 64 | |
11259 | #include <sys/types.h> | |
11260 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11261 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11262 | since some C++ compilers masquerading as C compilers | |
11263 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11264 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11265 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11266 | && LARGE_OFF_T % 2147483647 == 1) | |
11267 | ? 1 : -1]; | |
11268 | int | |
11269 | main () | |
11270 | { | |
11271 | ||
11272 | ; | |
11273 | return 0; | |
11274 | } | |
11275 | _ACEOF | |
11276 | if ac_fn_c_try_compile "$LINENO"; then : | |
11277 | ac_cv_sys_file_offset_bits=64; break | |
11278 | fi | |
11279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11280 | ac_cv_sys_file_offset_bits=unknown | |
11281 | break | |
11282 | done | |
11283 | fi | |
11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11285 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11286 | case $ac_cv_sys_file_offset_bits in #( | |
11287 | no | unknown) ;; | |
11288 | *) | |
11289 | cat >>confdefs.h <<_ACEOF | |
11290 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11291 | _ACEOF | |
11292 | ;; | |
11293 | esac | |
11294 | rm -rf conftest* | |
11295 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11297 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 11298 | if ${ac_cv_sys_large_files+:} false; then : |
b879806f AM |
11299 | $as_echo_n "(cached) " >&6 |
11300 | else | |
11301 | while :; do | |
11302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11303 | /* end confdefs.h. */ | |
11304 | #include <sys/types.h> | |
11305 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11306 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11307 | since some C++ compilers masquerading as C compilers | |
11308 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11309 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11310 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11311 | && LARGE_OFF_T % 2147483647 == 1) | |
11312 | ? 1 : -1]; | |
11313 | int | |
11314 | main () | |
11315 | { | |
11316 | ||
11317 | ; | |
11318 | return 0; | |
11319 | } | |
11320 | _ACEOF | |
11321 | if ac_fn_c_try_compile "$LINENO"; then : | |
11322 | ac_cv_sys_large_files=no; break | |
11323 | fi | |
11324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11326 | /* end confdefs.h. */ | |
11327 | #define _LARGE_FILES 1 | |
11328 | #include <sys/types.h> | |
11329 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11330 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11331 | since some C++ compilers masquerading as C compilers | |
11332 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11333 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
b879806f AM |
11334 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11335 | && LARGE_OFF_T % 2147483647 == 1) | |
11336 | ? 1 : -1]; | |
11337 | int | |
11338 | main () | |
11339 | { | |
11340 | ||
11341 | ; | |
11342 | return 0; | |
11343 | } | |
11344 | _ACEOF | |
11345 | if ac_fn_c_try_compile "$LINENO"; then : | |
11346 | ac_cv_sys_large_files=1; break | |
11347 | fi | |
11348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11349 | ac_cv_sys_large_files=unknown | |
11350 | break | |
11351 | done | |
11352 | fi | |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
11354 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11355 | case $ac_cv_sys_large_files in #( | |
11356 | no | unknown) ;; | |
11357 | *) | |
11358 | cat >>confdefs.h <<_ACEOF | |
11359 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11360 | _ACEOF | |
11361 | ;; | |
11362 | esac | |
11363 | rm -rf conftest* | |
11364 | fi | |
d0ac1c44 SM |
11365 | |
11366 | ||
b879806f AM |
11367 | fi |
11368 | ||
11369 | ||
2d7f2507 AM |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
11371 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 11372 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
2d7f2507 AM |
11373 | $as_echo_n "(cached) " >&6 |
11374 | else | |
11375 | echo abfoo >t1 | |
11376 | echo cdfoo >t2 | |
da17fe9d | 11377 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
2d7f2507 AM |
11378 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
11379 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
11380 | : | |
11381 | else | |
11382 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
11383 | fi | |
11384 | fi | |
11385 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
11386 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
11387 | : | |
11388 | else | |
11389 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
11390 | fi | |
11391 | fi | |
11392 | rm t1 t2 | |
11393 | ||
11394 | fi | |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 | |
11396 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
11397 | do_compare="$gcc_cv_prog_cmp_skip" | |
11398 | ||
11399 | ||
b879806f | 11400 | |
81ecdfbb RW |
11401 | # Check whether --enable-targets was given. |
11402 | if test "${enable_targets+set}" = set; then : | |
11403 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11404 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
ce2cded5 L |
11405 | ;; |
11406 | no) enable_targets= ;; | |
11407 | *) enable_targets=$enableval ;; | |
11408 | esac | |
81ecdfbb RW |
11409 | fi |
11410 | ||
e044973b AM |
11411 | ac_checking= |
11412 | . ${srcdir}/../bfd/development.sh | |
11413 | test "$development" = true && ac_checking=yes | |
81ecdfbb RW |
11414 | # Check whether --enable-checking was given. |
11415 | if test "${enable_checking+set}" = set; then : | |
11416 | enableval=$enable_checking; case "${enableval}" in | |
ce2cded5 L |
11417 | no|none) ac_checking= ;; |
11418 | *) ac_checking=yes ;; | |
11419 | esac | |
81ecdfbb RW |
11420 | fi |
11421 | if test x$ac_checking != x ; then | |
d7040cdb | 11422 | |
81ecdfbb | 11423 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
d7040cdb | 11424 | |
ce2cded5 | 11425 | fi |
d7040cdb | 11426 | |
6c3bc0f8 NC |
11427 | # PR gas/19109 |
11428 | # Decide the default method for compressing debug sections. | |
11429 | ac_default_compressed_debug_sections=unset | |
11430 | # Provide a configure time option to override our default. | |
11431 | # Check whether --enable-compressed_debug_sections was given. | |
11432 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
4894d80b | 11433 | enableval=$enable_compressed_debug_sections; case ,"${enableval}", in |
9b4c123c | 11434 | ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;; |
4894d80b | 11435 | ,no, | ,none,) ac_default_compressed_debug_sections=no ;; |
6c3bc0f8 NC |
11436 | *) ac_default_compressed_debug_sections=unset ;; |
11437 | esac | |
11438 | fi | |
11439 | ||
0cb4071e L |
11440 | # PR gas/19520 |
11441 | # Decide if x86 assembler should generate relax relocations. | |
11442 | ac_default_x86_relax_relocations=unset | |
11443 | # Provide a configure time option to override our default. | |
11444 | # Check whether --enable-x86_relax_relocations was given. | |
11445 | if test "${enable_x86_relax_relocations+set}" = set; then : | |
11446 | enableval=$enable_x86_relax_relocations; case "${enableval}" in | |
11447 | no) ac_default_x86_relax_relocations=0 ;; | |
11448 | esac | |
11449 | fi | |
11450 | ||
b8871f35 L |
11451 | # Decide if ELF assembler should generate common symbols with the |
11452 | # STT_COMMON type. | |
11453 | ac_default_elf_stt_common=unset | |
11454 | # Provide a configure time option to override our default. | |
11455 | # Check whether --enable-elf_stt_common was given. | |
11456 | if test "${enable_elf_stt_common+set}" = set; then : | |
11457 | enableval=$enable_elf_stt_common; case "${enableval}" in | |
11458 | yes) ac_default_elf_stt_common=1 ;; | |
11459 | esac | |
11460 | fi | |
11461 | ||
0df8ad28 NC |
11462 | |
11463 | # Decide if the ELF assembler should default to generating | |
11464 | # GNU Build notes if none are provided by the input. | |
11465 | ac_default_generate_build_notes=0 | |
11466 | # Provide a configuration option to override the default. | |
11467 | # Check whether --enable-generate_build_notes was given. | |
11468 | if test "${enable_generate_build_notes+set}" = set; then : | |
11469 | enableval=$enable_generate_build_notes; case "${enableval}" in | |
11470 | yes) ac_default_generate_build_notes=1 ;; | |
11471 | no) ac_default_generate_build_notes=0 ;; | |
11472 | esac | |
11473 | fi | |
11474 | ||
6f2117ba PH |
11475 | # Decide if the MIPS assembler should default to enable MIPS fix Loongson3 |
11476 | # LLSC errata. | |
11477 | ac_default_mips_fix_loongson3_llsc=unset | |
11478 | # Provide a configuration option to override the default. | |
11479 | # Check whether --enable-mips-fix-loongson3-llsc was given. | |
11480 | if test "${enable_mips_fix_loongson3_llsc+set}" = set; then : | |
11481 | enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in | |
11482 | yes) ac_default_mips_fix_loongson3_llsc=1 ;; | |
11483 | no) ac_default_mips_fix_loongson3_llsc=0 ;; | |
11484 | esac | |
11485 | fi | |
0df8ad28 | 11486 | |
b4a3a7b4 L |
11487 | # Decide if the x86 ELF assembler should default to generating GNU x86 |
11488 | # used ISA and feature properties. | |
11489 | ac_default_generate_x86_used_note=unset | |
11490 | # Provide a configuration option to override the default. | |
11491 | # Check whether --enable-x86-used-note was given. | |
11492 | if test "${enable_x86_used_note+set}" = set; then : | |
11493 | enableval=$enable_x86_used_note; case "${enableval}" in | |
11494 | yes) ac_default_generate_x86_used_note=1 ;; | |
11495 | no) ac_default_generate_x86_used_note=0 ;; | |
11496 | esac | |
11497 | fi | |
11498 | ||
2dc8dd17 JW |
11499 | # Decide if the RISC-V ELF assembler should default to generating attribute. |
11500 | ac_default_generate_riscv_attr=unset | |
11501 | # Provide a configuration option to override the default. | |
11502 | # Check whether --enable-default-riscv-attribute was given. | |
11503 | if test "${enable_default_riscv_attribute+set}" = set; then : | |
11504 | enableval=$enable_default_riscv_attribute; case "${enableval}" in | |
11505 | yes) ac_default_generate_riscv_attr=1 ;; | |
11506 | no) ac_default_generate_riscv_attr=0 ;; | |
11507 | esac | |
11508 | fi | |
b4a3a7b4 | 11509 | |
ce2cded5 | 11510 | using_cgen=no |
d7040cdb | 11511 | |
d7040cdb | 11512 | |
270c9937 JB |
11513 | # Set the 'development' global. |
11514 | . $srcdir/../bfd/development.sh | |
11515 | ||
c5da1932 VZ |
11516 | # Set acp_cpp_for_build variable |
11517 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11518 | ||
9780e045 | 11519 | # Default set of GCC warnings to enable. |
397841b5 | 11520 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11521 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11522 | |
11523 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
397841b5 AM |
11524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11525 | /* end confdefs.h. */ | |
11526 | __GNUC__ | |
11527 | _ACEOF | |
11528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11529 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
397841b5 AM |
11530 | |
11531 | else | |
11532 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11533 | fi | |
11534 | rm -f conftest* | |
11535 | ||
d7040cdb | 11536 | |
9780e045 NC |
11537 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11539 | /* end confdefs.h. */ | |
11540 | __GNUC__ | |
11541 | _ACEOF | |
11542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11543 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11544 | |
11545 | else | |
11546 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
11547 | fi | |
11548 | rm -f conftest* | |
11549 | ||
11550 | ||
6757cf57 TS |
11551 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11552 | WARN_WRITE_STRINGS="" | |
11553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11554 | /* end confdefs.h. */ | |
11555 | __GNUC__ | |
11556 | _ACEOF | |
11557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11558 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11559 | |
11560 | else | |
11561 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11562 | fi | |
11563 | rm -f conftest* | |
11564 | ||
9780e045 | 11565 | |
96fe4562 | 11566 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11567 | |
11568 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
11569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11570 | /* end confdefs.h. */ | |
11571 | __GNUC__ | |
11572 | _ACEOF | |
11573 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11574 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11575 | |
11576 | else | |
11577 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
11578 | fi | |
11579 | rm -f conftest* | |
11580 | ||
11581 | ||
11582 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
11583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11584 | /* end confdefs.h. */ | |
11585 | __GNUC__ | |
11586 | _ACEOF | |
11587 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 11588 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
11589 | |
11590 | else | |
11591 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
11592 | fi | |
11593 | rm -f conftest* | |
11594 | ||
11595 | ||
81ecdfbb RW |
11596 | # Check whether --enable-werror was given. |
11597 | if test "${enable_werror+set}" = set; then : | |
11598 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
11599 | yes | y) ERROR_ON_WARNING="yes" ;; |
11600 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 11601 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 11602 | esac |
81ecdfbb RW |
11603 | fi |
11604 | ||
d7040cdb | 11605 | |
397841b5 | 11606 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
11607 | case "${host}" in |
11608 | *-*-mingw32*) | |
11609 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11610 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 11611 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
11612 | fi |
11613 | ;; | |
11614 | *) ;; | |
11615 | esac | |
11616 | ||
270c9937 JB |
11617 | # Enable -Werror by default when using gcc. Turn it off for releases. |
11618 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
ce2cded5 L |
11619 | ERROR_ON_WARNING=yes |
11620 | fi | |
11621 | ||
11622 | NO_WERROR= | |
11623 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 11624 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 11625 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
ce2cded5 L |
11626 | NO_WERROR="-Wno-error" |
11627 | fi | |
11628 | ||
11629 | if test "${GCC}" = yes ; then | |
11630 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 11631 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
ce2cded5 L |
11632 | fi |
11633 | ||
81ecdfbb RW |
11634 | # Check whether --enable-build-warnings was given. |
11635 | if test "${enable_build_warnings+set}" = set; then : | |
11636 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
11637 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
11638 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
ce2cded5 L |
11639 | no) if test "${GCC}" = yes ; then |
11640 | WARN_CFLAGS="-w" | |
c5da1932 | 11641 | WARN_CFLAGS_FOR_BUILD="-w" |
ce2cded5 L |
11642 | fi;; |
11643 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
11644 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
11645 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
ce2cded5 | 11646 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
11647 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
11648 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
11649 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11650 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
ce2cded5 | 11651 | esac |
81ecdfbb RW |
11652 | fi |
11653 | ||
d7040cdb | 11654 | |
ce2cded5 L |
11655 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11656 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11657 | fi | |
d7040cdb | 11658 | |
d7040cdb | 11659 | |
d7040cdb | 11660 | |
d7040cdb | 11661 | |
d7040cdb | 11662 | |
6757cf57 | 11663 | |
c5da1932 | 11664 | |
ce2cded5 | 11665 | # Generate a header file |
81ecdfbb | 11666 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb | 11667 | |
d7040cdb | 11668 | |
9004b6bd AB |
11669 | |
11670 | # Check whether --with-cpu was given. | |
11671 | if test "${with_cpu+set}" = set; then : | |
11672 | withval=$with_cpu; | |
11673 | cat >>confdefs.h <<_ACEOF | |
11674 | #define TARGET_WITH_CPU "${with_cpu}" | |
11675 | _ACEOF | |
11676 | ||
11677 | fi | |
11678 | ||
11679 | ||
df7b86aa NC |
11680 | # PR 14072 |
11681 | ||
11682 | ||
ce2cded5 L |
11683 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11684 | # .gdbinit. | |
11685 | case "${host}" in | |
11686 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11687 | GDBINIT="gdb.ini" | |
81ecdfbb | 11688 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
d7040cdb | 11689 | |
ce2cded5 L |
11690 | ;; |
11691 | *) | |
11692 | GDBINIT=".gdbinit" | |
81ecdfbb | 11693 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" |
d7040cdb | 11694 | |
ce2cded5 L |
11695 | ;; |
11696 | esac | |
d7040cdb | 11697 | |
d7040cdb | 11698 | |
a8eb42a8 | 11699 | #We need this for the host. |
81ecdfbb RW |
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
11701 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
d0ac1c44 | 11702 | if ${ac_cv_c_bigendian+:} false; then : |
81ecdfbb RW |
11703 | $as_echo_n "(cached) " >&6 |
11704 | else | |
11705 | ac_cv_c_bigendian=unknown | |
11706 | # See if we're dealing with a universal compiler. | |
11707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11708 | /* end confdefs.h. */ | |
11709 | #ifndef __APPLE_CC__ | |
11710 | not a universal capable compiler | |
11711 | #endif | |
11712 | typedef int dummy; | |
11713 | ||
11714 | _ACEOF | |
11715 | if ac_fn_c_try_compile "$LINENO"; then : | |
11716 | ||
11717 | # Check for potential -arch flags. It is not universal unless | |
11718 | # there are at least two -arch flags with different values. | |
11719 | ac_arch= | |
11720 | ac_prev= | |
11721 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
11722 | if test -n "$ac_prev"; then | |
11723 | case $ac_word in | |
11724 | i?86 | x86_64 | ppc | ppc64) | |
11725 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
11726 | ac_arch=$ac_word | |
11727 | else | |
11728 | ac_cv_c_bigendian=universal | |
11729 | break | |
11730 | fi | |
11731 | ;; | |
11732 | esac | |
11733 | ac_prev= | |
11734 | elif test "x$ac_word" = "x-arch"; then | |
11735 | ac_prev=arch | |
11736 | fi | |
11737 | done | |
11738 | fi | |
11739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11740 | if test $ac_cv_c_bigendian = unknown; then | |
11741 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 L |
11743 | /* end confdefs.h. */ |
11744 | #include <sys/types.h> | |
81ecdfbb | 11745 | #include <sys/param.h> |
d7040cdb | 11746 | |
ce2cded5 L |
11747 | int |
11748 | main () | |
11749 | { | |
81ecdfbb RW |
11750 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
11751 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
11752 | && LITTLE_ENDIAN) | |
11753 | bogus endian macros | |
11754 | #endif | |
d7040cdb | 11755 | |
ce2cded5 L |
11756 | ; |
11757 | return 0; | |
11758 | } | |
11759 | _ACEOF | |
81ecdfbb | 11760 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11761 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 11762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11763 | /* end confdefs.h. */ |
11764 | #include <sys/types.h> | |
81ecdfbb | 11765 | #include <sys/param.h> |
d7040cdb | 11766 | |
ce2cded5 L |
11767 | int |
11768 | main () | |
11769 | { | |
11770 | #if BYTE_ORDER != BIG_ENDIAN | |
81ecdfbb RW |
11771 | not big endian |
11772 | #endif | |
d7040cdb | 11773 | |
ce2cded5 L |
11774 | ; |
11775 | return 0; | |
11776 | } | |
11777 | _ACEOF | |
81ecdfbb | 11778 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
11779 | ac_cv_c_bigendian=yes |
11780 | else | |
81ecdfbb | 11781 | ac_cv_c_bigendian=no |
ce2cded5 | 11782 | fi |
81ecdfbb RW |
11783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11784 | fi | |
11785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11786 | fi | |
11787 | if test $ac_cv_c_bigendian = unknown; then | |
11788 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
11789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11790 | /* end confdefs.h. */ | |
11791 | #include <limits.h> | |
d7040cdb | 11792 | |
81ecdfbb RW |
11793 | int |
11794 | main () | |
11795 | { | |
11796 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
11797 | bogus endian macros | |
11798 | #endif | |
11799 | ||
11800 | ; | |
11801 | return 0; | |
11802 | } | |
ce2cded5 | 11803 | _ACEOF |
81ecdfbb RW |
11804 | if ac_fn_c_try_compile "$LINENO"; then : |
11805 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
11806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 11807 | /* end confdefs.h. */ |
81ecdfbb RW |
11808 | #include <limits.h> |
11809 | ||
ce2cded5 L |
11810 | int |
11811 | main () | |
11812 | { | |
81ecdfbb RW |
11813 | #ifndef _BIG_ENDIAN |
11814 | not big endian | |
11815 | #endif | |
11816 | ||
ce2cded5 L |
11817 | ; |
11818 | return 0; | |
11819 | } | |
11820 | _ACEOF | |
81ecdfbb | 11821 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11822 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
11823 | else |
11824 | ac_cv_c_bigendian=no | |
d7040cdb | 11825 | fi |
81ecdfbb | 11826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11827 | fi |
81ecdfbb RW |
11828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11829 | fi | |
11830 | if test $ac_cv_c_bigendian = unknown; then | |
11831 | # Compile a test program. | |
11832 | if test "$cross_compiling" = yes; then : | |
11833 | # Try to guess by grepping values from an object file. | |
11834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11835 | /* end confdefs.h. */ | |
11836 | short int ascii_mm[] = | |
11837 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11838 | short int ascii_ii[] = | |
11839 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11840 | int use_ascii (int i) { | |
11841 | return ascii_mm[i] + ascii_ii[i]; | |
11842 | } | |
11843 | short int ebcdic_ii[] = | |
11844 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11845 | short int ebcdic_mm[] = | |
11846 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11847 | int use_ebcdic (int i) { | |
11848 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
11849 | } | |
11850 | extern int foo; | |
d7040cdb | 11851 | |
81ecdfbb RW |
11852 | int |
11853 | main () | |
11854 | { | |
11855 | return use_ascii (foo) == use_ebcdic (foo); | |
11856 | ; | |
11857 | return 0; | |
11858 | } | |
11859 | _ACEOF | |
11860 | if ac_fn_c_try_compile "$LINENO"; then : | |
11861 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
11862 | ac_cv_c_bigendian=yes | |
11863 | fi | |
11864 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
11865 | if test "$ac_cv_c_bigendian" = unknown; then | |
11866 | ac_cv_c_bigendian=no | |
11867 | else | |
11868 | # finding both strings is unlikely to happen, but who knows? | |
11869 | ac_cv_c_bigendian=unknown | |
11870 | fi | |
11871 | fi | |
ce2cded5 | 11872 | fi |
81ecdfbb | 11873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11874 | else |
81ecdfbb | 11875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11876 | /* end confdefs.h. */ |
81ecdfbb | 11877 | $ac_includes_default |
ce2cded5 L |
11878 | int |
11879 | main () | |
11880 | { | |
81ecdfbb RW |
11881 | |
11882 | /* Are we little or big endian? From Harbison&Steele. */ | |
11883 | union | |
11884 | { | |
11885 | long int l; | |
11886 | char c[sizeof (long int)]; | |
11887 | } u; | |
11888 | u.l = 1; | |
11889 | return u.c[sizeof (long int) - 1] == 1; | |
11890 | ||
11891 | ; | |
11892 | return 0; | |
ce2cded5 | 11893 | } |
d7040cdb | 11894 | _ACEOF |
81ecdfbb | 11895 | if ac_fn_c_try_run "$LINENO"; then : |
ce2cded5 L |
11896 | ac_cv_c_bigendian=no |
11897 | else | |
81ecdfbb | 11898 | ac_cv_c_bigendian=yes |
d7040cdb | 11899 | fi |
81ecdfbb RW |
11900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11901 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d7040cdb | 11902 | fi |
81ecdfbb RW |
11903 | |
11904 | fi | |
ce2cded5 | 11905 | fi |
81ecdfbb RW |
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
11907 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
11908 | case $ac_cv_c_bigendian in #( | |
11909 | yes) | |
11910 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
11911 | ;; #( | |
11912 | no) | |
11913 | ;; #( | |
11914 | universal) | |
d7040cdb | 11915 | |
81ecdfbb RW |
11916 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
11917 | ||
11918 | ;; #( | |
11919 | *) | |
d0ac1c44 | 11920 | as_fn_error $? "unknown endianness |
81ecdfbb RW |
11921 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
11922 | esac | |
d7040cdb | 11923 | |
d7040cdb | 11924 | |
ce2cded5 | 11925 | te_file=generic |
d7040cdb | 11926 | |
ce2cded5 L |
11927 | # Makefile target for installing gas in $(tooldir)/bin. |
11928 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11929 | |
ce2cded5 L |
11930 | canon_targets="" |
11931 | all_targets=no | |
11932 | if test -n "$enable_targets" ; then | |
11933 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11934 | if test $t = "all"; then | |
11935 | all_targets=yes | |
11936 | continue | |
11937 | fi | |
11938 | result=`$ac_config_sub $t 2>/dev/null` | |
11939 | if test -n "$result" ; then | |
11940 | canon_targets="$canon_targets $result" | |
11941 | # else | |
11942 | # # Permit "all", etc. We don't support it yet though. | |
11943 | # canon_targets="$canon_targets $t" | |
11944 | fi | |
11945 | done | |
11946 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11947 | _gas_uniq_newlist="" |
11948 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11949 | case $_gas_uniq_i in | |
11950 | _gas_uniq_dummy) ;; | |
11951 | *) case " $_gas_uniq_newlist " in | |
11952 | *" $_gas_uniq_i "*) ;; | |
11953 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11954 | esac ;; | |
11955 | esac | |
11956 | done | |
ce2cded5 | 11957 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11958 | |
ce2cded5 L |
11959 | fi |
11960 | ||
11961 | emulations="" | |
11962 | ||
11963 | for this_target in $target $canon_targets ; do | |
11964 | ||
11965 | targ=${this_target} | |
11966 | . ${srcdir}/configure.tgt | |
11967 | ||
11968 | case ${target_cpu} in | |
11969 | crisv32) | |
11970 | ||
11971 | cat >>confdefs.h <<_ACEOF | |
11972 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 11973 | _ACEOF |
ce2cded5 L |
11974 | |
11975 | ;; | |
11976 | esac | |
11977 | ||
11978 | if test ${this_target} = $target ; then | |
11979 | target_cpu_type=${cpu_type} | |
11980 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
11981 | continue | |
11982 | fi | |
11983 | ||
11984 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
11985 | case ${generic_target} in | |
ce2cded5 L |
11986 | i386-*-msdosdjgpp* \ |
11987 | | i386-*-go32* \ | |
11988 | | i386-go32-rtems*) | |
11989 | ||
81ecdfbb | 11990 | $as_echo "#define STRICTCOFF 1" >>confdefs.h |
ce2cded5 L |
11991 | |
11992 | ;; | |
11993 | ||
939b95c7 L |
11994 | i386-*-linux-* | x86_64-*-linux-*) |
11995 | if test ${this_target} = $target \ | |
11996 | && test ${ac_default_generate_x86_used_note} = unset; then | |
11997 | ac_default_generate_x86_used_note=1 | |
11998 | fi | |
11999 | ;; | |
12000 | ||
0cb4071e L |
12001 | i386-*-solaris2 \ |
12002 | | x86_64-*-solaris2 \ | |
12003 | | i386-*-solaris2.[0-9] \ | |
12004 | | i386-*-solaris2.1[01] \ | |
12005 | | x86_64-*-solaris2.1[01]) | |
12006 | if test ${this_target} = $target \ | |
12007 | && test ${ac_default_x86_relax_relocations} = unset; then | |
12008 | ac_default_x86_relax_relocations=0 | |
12009 | fi | |
12010 | ;; | |
12011 | ||
7ba29e2a NC |
12012 | microblaze*) |
12013 | ;; | |
12014 | ||
e5231592 | 12015 | ppc-*-aix[5-9].*) |
ce2cded5 | 12016 | |
81ecdfbb | 12017 | $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h |
ce2cded5 | 12018 | |
ce2cded5 L |
12019 | ;; |
12020 | ppc-*-solaris*) | |
12021 | if test ${this_target} = $target; then | |
12022 | ||
81ecdfbb | 12023 | $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h |
ce2cded5 L |
12024 | |
12025 | fi | |
12026 | if test x${endian} = xbig; then | |
d0ac1c44 | 12027 | as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5 |
ce2cded5 L |
12028 | fi |
12029 | ;; | |
d7040cdb | 12030 | esac |
d7040cdb | 12031 | |
ce2cded5 L |
12032 | if test ${this_target} = $target ; then |
12033 | endian_def= | |
12034 | if test x${endian} = xbig; then | |
12035 | endian_def=1 | |
12036 | elif test x${endian} = xlittle; then | |
12037 | endian_def=0 | |
12038 | fi | |
12039 | if test x${endian_def} != x; then | |
12040 | ||
12041 | cat >>confdefs.h <<_ACEOF | |
12042 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
12043 | _ACEOF | |
12044 | ||
12045 | fi | |
12046 | fi | |
12047 | ||
12048 | # Other random stuff. | |
12049 | ||
12050 | case ${cpu_type} in | |
12051 | mips) | |
12052 | # Set mips_cpu to the name of the default CPU. | |
12053 | case ${target_cpu} in | |
12054 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
12055 | mips_cpu=from-abi | |
12056 | ;; | |
12057 | mipsisa32 | mipsisa32el) | |
12058 | mips_cpu=mips32 | |
12059 | ;; | |
12060 | mipsisa32r2 | mipsisa32r2el) | |
12061 | mips_cpu=mips32r2 | |
12062 | ;; | |
ae52f483 AB |
12063 | mipsisa32r3 | mipsisa32r3el) |
12064 | mips_cpu=mips32r3 | |
12065 | ;; | |
12066 | mipsisa32r5 | mipsisa32r5el) | |
12067 | mips_cpu=mips32r5 | |
12068 | ;; | |
7361da2c AB |
12069 | mipsisa32r6 | mipsisa32r6el) |
12070 | mips_cpu=mips32r6 | |
12071 | ;; | |
ce2cded5 L |
12072 | mipsisa64 | mipsisa64el) |
12073 | mips_cpu=mips64 | |
12074 | ;; | |
12075 | mipsisa64r2 | mipsisa64r2el) | |
12076 | mips_cpu=mips64r2 | |
12077 | ;; | |
ae52f483 AB |
12078 | mipsisa64r3 | mipsisa64r3el) |
12079 | mips_cpu=mips64r3 | |
12080 | ;; | |
12081 | mipsisa64r5 | mipsisa64r5el) | |
12082 | mips_cpu=mips64r5 | |
12083 | ;; | |
7361da2c AB |
12084 | mipsisa64r6 | mipsisa64r6el) |
12085 | mips_cpu=mips64r6 | |
12086 | ;; | |
ce2cded5 L |
12087 | mipstx39 | mipstx39el) |
12088 | mips_cpu=r3900 | |
12089 | ;; | |
12090 | mips64vr | mips64vrel) | |
12091 | mips_cpu=vr4100 | |
12092 | ;; | |
12093 | mipsisa32r2* | mipsisa64r2*) | |
12094 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
12095 | ;; | |
7361da2c AB |
12096 | mipsisa32r6* | mipsisa64r6*) |
12097 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'` | |
12098 | ;; | |
ce2cded5 L |
12099 | mips64* | mipsisa64* | mipsisa32*) |
12100 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
12101 | ;; | |
e407c74b NC |
12102 | mips*) |
12103 | mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'` | |
12104 | ;; | |
ce2cded5 | 12105 | *) |
d0ac1c44 | 12106 | as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5 |
ce2cded5 L |
12107 | ;; |
12108 | esac | |
12109 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
12110 | # binaries. It's a GNU extension that some OSes don't understand. | |
ce2cded5 L |
12111 | case ${target} in |
12112 | *-*-irix*) | |
12113 | use_e_mips_abi_o32=0 | |
12114 | ;; | |
12115 | *) | |
12116 | use_e_mips_abi_o32=1 | |
12117 | ;; | |
12118 | esac | |
12119 | # Decide whether to generate 32-bit or 64-bit code by default. | |
12120 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
12121 | case ${target} in | |
12122 | mips64*-*-* | mipsisa64*-*-*) | |
12123 | mips_default_64bit=1 | |
12124 | ;; | |
12125 | *) | |
12126 | mips_default_64bit=0 | |
12127 | ;; | |
12128 | esac | |
12129 | # Decide which ABI to target by default. | |
12130 | case ${target} in | |
0984958b MR |
12131 | mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \ |
12132 | | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*) | |
ce2cded5 L |
12133 | mips_default_abi=N32_ABI |
12134 | ;; | |
aeffff67 | 12135 | mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu) |
ce2cded5 L |
12136 | mips_default_abi=O32_ABI |
12137 | ;; | |
12138 | mips64*-openbsd*) | |
12139 | mips_default_abi=N64_ABI | |
12140 | ;; | |
12141 | *) | |
12142 | mips_default_abi=NO_ABI | |
12143 | ;; | |
12144 | esac | |
12145 | ||
12146 | cat >>confdefs.h <<_ACEOF | |
12147 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 12148 | _ACEOF |
d7040cdb SE |
12149 | |
12150 | ||
12151 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12152 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
12153 | _ACEOF |
12154 | ||
12155 | ||
12156 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12157 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
12158 | _ACEOF |
12159 | ||
12160 | ||
ce2cded5 L |
12161 | cat >>confdefs.h <<_ACEOF |
12162 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
12163 | _ACEOF | |
d7040cdb | 12164 | |
ce2cded5 L |
12165 | ;; |
12166 | esac | |
d7040cdb | 12167 | |
ce2cded5 L |
12168 | # Do we need the opcodes library? |
12169 | case ${cpu_type} in | |
12170 | vax | tic30) | |
12171 | ;; | |
d7040cdb | 12172 | |
ce2cded5 L |
12173 | *) |
12174 | need_opcodes=yes | |
d7040cdb | 12175 | |
ce2cded5 L |
12176 | case "${enable_shared}" in |
12177 | yes) shared_opcodes=true ;; | |
12178 | *opcodes*) shared_opcodes=true ;; | |
12179 | *) shared_opcodes=false ;; | |
12180 | esac | |
12181 | ;; | |
12182 | esac | |
d7040cdb | 12183 | |
ce2cded5 L |
12184 | # Any other special object files needed ? |
12185 | case ${cpu_type} in | |
d7040cdb | 12186 | |
ce2cded5 | 12187 | bfin) |
55add51e | 12188 | for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do |
e11078da AM |
12189 | case " $extra_objects " in |
12190 | *" $f "*) ;; | |
12191 | *) extra_objects="$extra_objects $f" ;; | |
12192 | esac | |
12193 | done | |
12194 | ;; | |
d7040cdb | 12195 | |
f8861f5d JM |
12196 | bpf) |
12197 | if test $this_target = $target ; then | |
12198 | ||
12199 | cat >>confdefs.h <<_ACEOF | |
12200 | #define DEFAULT_ARCH "${arch}" | |
12201 | _ACEOF | |
12202 | ||
12203 | fi | |
12204 | using_cgen=yes | |
12205 | ;; | |
73589c9d | 12206 | epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k) |
ce2cded5 L |
12207 | using_cgen=yes |
12208 | ;; | |
d7040cdb | 12209 | |
ce2cded5 L |
12210 | m32c) |
12211 | using_cgen=yes | |
12212 | ;; | |
12213 | frv) | |
12214 | using_cgen=yes | |
12215 | ;; | |
12216 | m68k) | |
55add51e | 12217 | f=config/m68k-parse.o |
e11078da AM |
12218 | case " $extra_objects " in |
12219 | *" $f "*) ;; | |
12220 | *) extra_objects="$extra_objects $f" ;; | |
ce2cded5 L |
12221 | esac |
12222 | ;; | |
d7040cdb | 12223 | |
ce2cded5 L |
12224 | mep) |
12225 | using_cgen=yes | |
12226 | ;; | |
d7040cdb | 12227 | |
ce2cded5 | 12228 | mips) |
e11078da AM |
12229 | for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do |
12230 | case " $extra_objects " in | |
12231 | *" $f "*) ;; | |
12232 | *) extra_objects="$extra_objects $f" ;; | |
12233 | esac | |
12234 | done | |
ce2cded5 | 12235 | ;; |
d7040cdb | 12236 | |
ce2cded5 | 12237 | mt) |
e11078da | 12238 | using_cgen=yes |
ce2cded5 | 12239 | ;; |
d7040cdb | 12240 | |
35c08157 | 12241 | nds32) |
fbaf61ad NC |
12242 | # setup NDS32_LINUX_TOOLCHAIN definition |
12243 | if test "linux" = $em; then | |
12244 | ||
12245 | $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h | |
12246 | ||
12247 | else | |
12248 | ||
12249 | $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h | |
12250 | ||
12251 | fi | |
12252 | ||
e11078da | 12253 | # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features |
35c08157 KLC |
12254 | # based on arch_name. |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5 | |
12256 | $as_echo_n "checking for default configuration of --with-arch... " >&6; } | |
12257 | if test "x${with_arch}" != x; then | |
12258 | case ${with_arch} in | |
e11078da | 12259 | v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 ) |
35c08157 KLC |
12260 | |
12261 | cat >>confdefs.h <<_ACEOF | |
12262 | #define NDS32_DEFAULT_ARCH_NAME "$with_arch" | |
12263 | _ACEOF | |
12264 | ||
e11078da | 12265 | ;; |
35c08157 | 12266 | *) |
d0ac1c44 | 12267 | as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5 |
35c08157 | 12268 | ;; |
e11078da | 12269 | esac |
35c08157 KLC |
12270 | fi |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5 | |
12272 | $as_echo "$with_arch" >&6; } | |
12273 | ||
e11078da AM |
12274 | # Decide features one by one. |
12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5 | |
35c08157 | 12276 | $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; } |
6cd8405e | 12277 | if test "x${enable_dx_regs}" = xyes; then |
35c08157 KLC |
12278 | |
12279 | $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h | |
12280 | ||
12281 | else | |
12282 | ||
12283 | $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h | |
12284 | ||
12285 | fi | |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5 | |
12287 | $as_echo "$enable_dx_regs" >&6; } | |
12288 | ||
e11078da | 12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5 |
35c08157 | 12290 | $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; } |
6cd8405e | 12291 | if test "x${enable_perf_ext}" = xno; then |
35c08157 KLC |
12292 | |
12293 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h | |
12294 | ||
12295 | else | |
12296 | ||
12297 | $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h | |
12298 | ||
12299 | fi | |
12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5 | |
12301 | $as_echo "$enable_perf_ext" >&6; } | |
12302 | ||
e11078da | 12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5 |
35c08157 | 12304 | $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; } |
6cd8405e | 12305 | if test "x${enable_perf_ext2}" = xno; then |
35c08157 KLC |
12306 | |
12307 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h | |
12308 | ||
12309 | else | |
12310 | ||
12311 | $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h | |
12312 | ||
12313 | fi | |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5 | |
12315 | $as_echo "$enable_perf_ext2" >&6; } | |
12316 | ||
e11078da | 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5 |
35c08157 | 12318 | $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; } |
6cd8405e | 12319 | if test "x${enable_string_ext}" = xno; then |
35c08157 KLC |
12320 | |
12321 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h | |
12322 | ||
12323 | else | |
12324 | ||
12325 | $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h | |
12326 | ||
12327 | fi | |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5 | |
12329 | $as_echo "$enable_string_ext" >&6; } | |
12330 | ||
e11078da | 12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5 |
35c08157 | 12332 | $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; } |
6cd8405e | 12333 | if test "x${enable_audio_ext}" = xno; then |
35c08157 KLC |
12334 | |
12335 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h | |
12336 | ||
12337 | else | |
12338 | ||
12339 | $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h | |
12340 | ||
12341 | fi | |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5 | |
12343 | $as_echo "$enable_audio_ext" >&6; } | |
fbaf61ad NC |
12344 | |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5 | |
12346 | $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; } | |
12347 | if test "x${enable_dsp_ext}" = xno; then | |
12348 | ||
12349 | $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h | |
12350 | ||
12351 | else | |
12352 | ||
12353 | $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h | |
12354 | ||
12355 | fi | |
12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5 | |
12357 | $as_echo "$enable_dsp_ext" >&6; } | |
12358 | ||
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5 | |
12360 | $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; } | |
12361 | if test "x${enable_zol_ext}" = xno; then | |
12362 | ||
12363 | $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h | |
12364 | ||
12365 | else | |
12366 | ||
12367 | $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h | |
12368 | ||
12369 | fi | |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5 | |
12371 | $as_echo "$enable_zol_ext" >&6; } | |
35c08157 KLC |
12372 | ;; |
12373 | ||
8f595e9b | 12374 | aarch64 | i386 | s390 | sparc) |
ce2cded5 | 12375 | if test $this_target = $target ; then |
d7040cdb SE |
12376 | |
12377 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12378 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12379 | _ACEOF |
12380 | ||
ce2cded5 L |
12381 | fi |
12382 | ;; | |
d7040cdb | 12383 | |
8f595e9b NC |
12384 | riscv) |
12385 | # --target=riscv[32|64]-*-*. */ | |
12386 | if test $this_target = $target ; then | |
12387 | ||
12388 | cat >>confdefs.h <<_ACEOF | |
12389 | #define DEFAULT_ARCH "${arch}" | |
12390 | _ACEOF | |
12391 | ||
12392 | fi | |
12393 | ||
12394 | # --with-arch=<value>. The syntax of <value> is same as Gas option -march. | |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5 | |
12396 | $as_echo_n "checking for default configuration of --with-arch... " >&6; } | |
12397 | if test "x${with_arch}" != x; then | |
12398 | ||
12399 | cat >>confdefs.h <<_ACEOF | |
12400 | #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch" | |
12401 | _ACEOF | |
12402 | ||
12403 | fi | |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5 | |
12405 | $as_echo "$with_arch" >&6; } | |
12406 | ||
12407 | # --with-isa-spec=[2.2|20190608|20191213]. | |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5 | |
12409 | $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; } | |
12410 | if test "x${with_isa_spec}" != x; then | |
12411 | ||
12412 | cat >>confdefs.h <<_ACEOF | |
12413 | #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec" | |
12414 | _ACEOF | |
12415 | ||
12416 | fi | |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5 | |
12418 | $as_echo "$with_isa_spec" >&6; } | |
12419 | ||
12420 | # --with-priv-spec=[1.9|1.9.1|1.10|1.11]. | |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5 | |
12422 | $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; } | |
12423 | if test "x${with_priv_spec}" != x; then | |
12424 | ||
12425 | cat >>confdefs.h <<_ACEOF | |
12426 | #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec" | |
12427 | _ACEOF | |
12428 | ||
12429 | fi | |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5 | |
12431 | $as_echo "$with_priv_spec" >&6; } | |
12432 | ;; | |
12433 | ||
99c513f6 | 12434 | rl78) |
55add51e | 12435 | f=config/rl78-parse.o |
e11078da AM |
12436 | case " $extra_objects " in |
12437 | *" $f "*) ;; | |
12438 | *) extra_objects="$extra_objects $f" ;; | |
12439 | esac | |
99c513f6 DD |
12440 | ;; |
12441 | ||
c7927a3c | 12442 | rx) |
55add51e | 12443 | f=config/rx-parse.o |
e11078da AM |
12444 | case " $extra_objects " in |
12445 | *" $f "*) ;; | |
12446 | *) extra_objects="$extra_objects $f" ;; | |
12447 | esac | |
c7927a3c NC |
12448 | ;; |
12449 | ||
ce2cded5 L |
12450 | xstormy16) |
12451 | using_cgen=yes | |
12452 | ;; | |
d7040cdb | 12453 | |
ce2cded5 L |
12454 | xc16x) |
12455 | using_cgen=yes | |
12456 | ;; | |
d7040cdb | 12457 | |
ce2cded5 | 12458 | xtensa) |
e11078da AM |
12459 | f=config/xtensa-relax.o |
12460 | case " $extra_objects " in | |
12461 | *" $f "*) ;; | |
12462 | *) extra_objects="$extra_objects $f" ;; | |
12463 | esac | |
ce2cded5 | 12464 | ;; |
d7040cdb | 12465 | |
ce2cded5 L |
12466 | *) |
12467 | ;; | |
12468 | esac | |
d7040cdb | 12469 | |
ce2cded5 | 12470 | if test $using_cgen = yes ; then |
e11078da AM |
12471 | f=cgen.o |
12472 | case " $extra_objects " in | |
12473 | *" $f "*) ;; | |
12474 | *) extra_objects="$extra_objects $f" ;; | |
ce2cded5 L |
12475 | esac |
12476 | fi | |
d7040cdb | 12477 | |
ce2cded5 | 12478 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12479 | |
ce2cded5 L |
12480 | if test $this_target = $target ; then |
12481 | obj_format=$fmt | |
12482 | te_file=$em | |
12483 | fi | |
d7040cdb | 12484 | |
e11078da AM |
12485 | case ${te_file} in |
12486 | vms) | |
12487 | f=config/te-vms.o | |
12488 | case " $extra_objects " in | |
12489 | *" $f "*) ;; | |
12490 | *) extra_objects="$extra_objects $f" ;; | |
12491 | esac ;; | |
12492 | esac | |
b11d79f2 | 12493 | |
ce2cded5 | 12494 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12495 | |
ce2cded5 | 12496 | case ${generic_target}-${fmt} in |
e8044f35 | 12497 | mips-*-*-*) case "$endian" in |
ce2cded5 L |
12498 | big) emulation="mipsbelf mipslelf mipself" ;; |
12499 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12500 | esac ;; | |
ce2cded5 L |
12501 | # i386-pc-pe-coff != i386-pc-coff. |
12502 | i386-*-pe-coff) ;; | |
12503 | # Uncommenting the next line will turn on support for i386 AOUT | |
12504 | # for the default linux configuration | |
12505 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12506 | # | |
12507 | i386-*-aout) emulation="i386aout" ;; | |
12508 | i386-*-coff) emulation="i386coff" ;; | |
12509 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12510 | |
ce2cded5 L |
12511 | # Always all formats. The first stated emulation becomes the default. |
12512 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12513 | cris-*-*) emulation="criself crisaout" ;; | |
12514 | esac | |
13b2be9c | 12515 | |
ce2cded5 | 12516 | emulations="$emulations $emulation" |
13b2be9c | 12517 | |
13b2be9c | 12518 | done |
13b2be9c | 12519 | |
0cb4071e L |
12520 | if test ${ac_default_x86_relax_relocations} = unset; then |
12521 | ac_default_x86_relax_relocations=1 | |
12522 | fi | |
12523 | ||
12524 | cat >>confdefs.h <<_ACEOF | |
12525 | #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations | |
12526 | _ACEOF | |
12527 | ||
12528 | ||
b8871f35 L |
12529 | if test ${ac_default_elf_stt_common} = unset; then |
12530 | ac_default_elf_stt_common=0 | |
12531 | fi | |
12532 | ||
12533 | cat >>confdefs.h <<_ACEOF | |
12534 | #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common | |
12535 | _ACEOF | |
12536 | ||
12537 | ||
0df8ad28 NC |
12538 | |
12539 | cat >>confdefs.h <<_ACEOF | |
12540 | #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes | |
12541 | _ACEOF | |
12542 | ||
12543 | ||
b4a3a7b4 L |
12544 | if test ${ac_default_generate_x86_used_note} = unset; then |
12545 | ac_default_generate_x86_used_note=0 | |
12546 | fi | |
12547 | ||
12548 | cat >>confdefs.h <<_ACEOF | |
12549 | #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note | |
12550 | _ACEOF | |
12551 | ||
12552 | ||
2dc8dd17 | 12553 | if test ${ac_default_generate_riscv_attr} = unset; then |
aa0587b2 | 12554 | ac_default_generate_riscv_attr=1 |
2dc8dd17 JW |
12555 | fi |
12556 | ||
12557 | ||
12558 | cat >>confdefs.h <<_ACEOF | |
12559 | #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr | |
12560 | _ACEOF | |
12561 | ||
12562 | ||
6f2117ba PH |
12563 | if test ${ac_default_mips_fix_loongson3_llsc} = unset; then |
12564 | ac_default_mips_fix_loongson3_llsc=0 | |
12565 | fi | |
12566 | ||
12567 | cat >>confdefs.h <<_ACEOF | |
12568 | #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc | |
12569 | _ACEOF | |
12570 | ||
12571 | ||
348ef89a | 12572 | if test x$ac_default_compressed_debug_sections = xyes ; then |
e12fe555 NC |
12573 | |
12574 | $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h | |
12575 | ||
6c3bc0f8 | 12576 | fi |
e12fe555 | 12577 | |
ce2cded5 L |
12578 | # Turn on all targets if possible |
12579 | if test ${all_targets} = "yes"; then | |
12580 | case ${target_cpu_type} in | |
12581 | i386) | |
12582 | case ${obj_format} in | |
12583 | aout) | |
12584 | emulations="$emulations i386coff i386elf" | |
12585 | ;; | |
12586 | coff) | |
12587 | emulations="$emulations i386aout i386elf" | |
12588 | ;; | |
12589 | elf) | |
12590 | emulations="$emulations i386aout i386coff" | |
12591 | ;; | |
12592 | esac | |
12593 | ;; | |
12594 | x86_64) | |
12595 | case ${obj_format} in | |
12596 | aout) | |
12597 | emulations="$emulations i386coff i386elf" | |
12598 | ;; | |
12599 | coff) | |
12600 | emulations="$emulations i386aout i386elf" | |
12601 | ;; | |
12602 | elf) | |
12603 | emulations="$emulations i386aout i386coff" | |
12604 | ;; | |
12605 | esac | |
12606 | ;; | |
12607 | esac | |
13b2be9c | 12608 | fi |
c8615825 | 12609 | |
39871c07 AM |
12610 | # PE code has way too many macros tweaking behaviour |
12611 | case ${te_file} in | |
12612 | pe*) emulations="" ;; | |
12613 | esac | |
12614 | ||
ce2cded5 L |
12615 | # Assign floating point type. Most processors with FP support |
12616 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12617 | # is emulated. | |
12618 | case ${target_cpu} in | |
12619 | vax | pdp11 ) atof=vax ;; | |
12620 | *) atof=ieee ;; | |
12621 | esac | |
c8615825 | 12622 | |
ce2cded5 | 12623 | case "${obj_format}" in |
d0ac1c44 | 12624 | "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;; |
ce2cded5 | 12625 | esac |
13b2be9c | 12626 | |
ce2cded5 L |
12627 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12628 | cgen_cpu_prefix="" | |
12629 | if test $using_cgen = yes ; then | |
12630 | case ${target_cpu} in | |
73589c9d CS |
12631 | or1knd) |
12632 | cgen_cpu_prefix=or1k ;; | |
ce2cded5 L |
12633 | *) cgen_cpu_prefix=${target_cpu} ;; |
12634 | esac | |
c8615825 | 12635 | |
c8615825 | 12636 | |
81ecdfbb | 12637 | $as_echo "#define USING_CGEN 1" >>confdefs.h |
d7040cdb | 12638 | |
d7040cdb | 12639 | fi |
13b2be9c | 12640 | |
ce2cded5 L |
12641 | |
12642 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
d0ac1c44 | 12643 | as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5 |
13b2be9c | 12644 | fi |
ce2cded5 L |
12645 | |
12646 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
d0ac1c44 | 12647 | as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5 |
13b2be9c DJ |
12648 | fi |
12649 | ||
ce2cded5 L |
12650 | # Some COFF configurations want these random other flags set. |
12651 | case ${obj_format} in | |
12652 | coff) | |
12653 | case ${target_cpu_type} in | |
12654 | i386) | |
81ecdfbb | 12655 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12656 | ;; |
12657 | x86_64) | |
81ecdfbb | 12658 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12659 | ;; |
12660 | esac | |
12661 | ;; | |
12662 | esac | |
12663 | ||
12664 | # Getting this done right is going to be a bitch. Each configuration specified | |
12665 | # with --enable-targets=... should be checked for environment, format, cpu | |
12666 | # setting. | |
12667 | # | |
12668 | # For each configuration, the necessary object file support code must be linked | |
12669 | # in. This might be only one, it might be up to four. The necessary emulation | |
12670 | # code needs to be provided, too. | |
12671 | # | |
12672 | # And then there's "--enable-targets=all".... | |
12673 | # | |
e8044f35 | 12674 | # For now, just always do it for MIPS ELF configurations. Sigh. |
ce2cded5 L |
12675 | |
12676 | formats="${obj_format}" | |
12677 | emfiles="" | |
12678 | EMULATIONS="" | |
12679 | _gas_uniq_list="$emulations" | |
12680 | _gas_uniq_newlist="" | |
12681 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12682 | case $_gas_uniq_i in | |
12683 | _gas_uniq_dummy) ;; | |
12684 | *) case " $_gas_uniq_newlist " in | |
12685 | *" $_gas_uniq_i "*) ;; | |
12686 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12687 | esac ;; | |
12688 | esac | |
12689 | done | |
12690 | emulations=$_gas_uniq_newlist | |
12691 | ||
12692 | for em in . $emulations ; do | |
12693 | case $em in | |
12694 | .) continue ;; | |
12695 | mipsbelf | mipslelf | mipself) | |
12696 | fmt=elf file=mipself ;; | |
ce2cded5 L |
12697 | *coff) |
12698 | fmt=coff file=$em ;; | |
12699 | *aout) | |
12700 | fmt=aout file=$em ;; | |
12701 | *elf) | |
12702 | fmt=elf file=$em ;; | |
12703 | esac | |
12704 | formats="$formats $fmt" | |
d0ac1c44 | 12705 | emfiles="$emfiles config/e-$file.o" |
ce2cded5 L |
12706 | EMULATIONS="$EMULATIONS &$em," |
12707 | done | |
12708 | _gas_uniq_list="$formats" | |
12709 | _gas_uniq_newlist="" | |
12710 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12711 | case $_gas_uniq_i in | |
12712 | _gas_uniq_dummy) ;; | |
12713 | *) case " $_gas_uniq_newlist " in | |
12714 | *" $_gas_uniq_i "*) ;; | |
12715 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12716 | esac ;; | |
12717 | esac | |
13b2be9c | 12718 | done |
ce2cded5 | 12719 | formats=$_gas_uniq_newlist |
13b2be9c | 12720 | |
ce2cded5 L |
12721 | _gas_uniq_list="$emfiles" |
12722 | _gas_uniq_newlist="" | |
12723 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12724 | case $_gas_uniq_i in | |
12725 | _gas_uniq_dummy) ;; | |
12726 | *) case " $_gas_uniq_newlist " in | |
12727 | *" $_gas_uniq_i "*) ;; | |
12728 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12729 | esac ;; | |
12730 | esac | |
12731 | done | |
12732 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12733 | |
ce2cded5 L |
12734 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12735 | for fmt in $formats ; do | |
12736 | case $fmt in | |
12737 | aout) | |
81ecdfbb | 12738 | $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h |
ce2cded5 L |
12739 | ;; |
12740 | coff) | |
81ecdfbb | 12741 | $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h |
ce2cded5 L |
12742 | ;; |
12743 | ecoff) | |
81ecdfbb | 12744 | $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h |
ce2cded5 L |
12745 | ;; |
12746 | elf) | |
81ecdfbb | 12747 | $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h |
ce2cded5 L |
12748 | ;; |
12749 | generic) | |
81ecdfbb | 12750 | $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h |
ce2cded5 L |
12751 | ;; |
12752 | som) | |
81ecdfbb | 12753 | $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h |
ce2cded5 L |
12754 | ;; |
12755 | esac | |
d0ac1c44 | 12756 | extra_objects="$extra_objects config/obj-$fmt.o" |
ce2cded5 L |
12757 | done |
12758 | obj_format=multi | |
13b2be9c | 12759 | fi |
ce2cded5 L |
12760 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12761 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
e8044f35 | 12762 | # e-mipself has more than one emulation per file, e-i386* has just one at the |
ce2cded5 L |
12763 | # moment. If only one emulation is specified, then don't define |
12764 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12765 | case "${obj_format}${emfiles}" in | |
e8044f35 | 12766 | multi* | *mipself*) |
ce2cded5 | 12767 | extra_objects="$extra_objects $emfiles" |
d7040cdb | 12768 | |
81ecdfbb | 12769 | $as_echo "#define USE_EMULATIONS 1" >>confdefs.h |
ce2cded5 L |
12770 | ;; |
12771 | esac | |
12772 | fi | |
d7040cdb | 12773 | |
13b2be9c | 12774 | |
ce2cded5 L |
12775 | cat >>confdefs.h <<_ACEOF |
12776 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12777 | _ACEOF |
d7040cdb | 12778 | |
d7040cdb | 12779 | |
ce2cded5 L |
12780 | cat >>confdefs.h <<_ACEOF |
12781 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12782 | _ACEOF |
d7040cdb | 12783 | |
d7040cdb | 12784 | |
ce2cded5 | 12785 | reject_dev_configs=yes |
252b5132 | 12786 | |
ce2cded5 L |
12787 | case ${reject_dev_configs}-${dev} in |
12788 | yes-yes) # Oops. | |
d0ac1c44 | 12789 | as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5 |
ce2cded5 | 12790 | ;; |
d7040cdb SE |
12791 | esac |
12792 | ||
13b2be9c | 12793 | |
ce2cded5 L |
12794 | |
12795 | ||
12796 | ||
12797 | ||
12798 | ||
12799 | # do we need the opcodes library? | |
12800 | case "${need_opcodes}" in | |
12801 | yes) | |
12802 | OPCODES_LIB=../opcodes/libopcodes.la | |
12803 | ;; | |
12804 | esac | |
12805 | ||
12806 | ||
12807 | ||
12808 | ||
12809 | cat >>confdefs.h <<_ACEOF | |
12810 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12811 | _ACEOF |
20e95c23 | 12812 | |
20e95c23 | 12813 | |
ce2cded5 L |
12814 | cat >>confdefs.h <<_ACEOF |
12815 | #define TARGET_CANONICAL "${target}" | |
12816 | _ACEOF | |
20e95c23 | 12817 | |
d6d788bd | 12818 | |
ce2cded5 L |
12819 | cat >>confdefs.h <<_ACEOF |
12820 | #define TARGET_CPU "${target_cpu}" | |
12821 | _ACEOF | |
20e95c23 | 12822 | |
ce2cded5 L |
12823 | |
12824 | cat >>confdefs.h <<_ACEOF | |
12825 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12826 | _ACEOF |
12827 | ||
12828 | ||
ce2cded5 L |
12829 | cat >>confdefs.h <<_ACEOF |
12830 | #define TARGET_OS "${target_os}" | |
12831 | _ACEOF | |
12832 | ||
0efedc4c | 12833 | |
d7040cdb SE |
12834 | for ac_prog in 'bison -y' byacc |
12835 | do | |
12836 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12837 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12839 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12840 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 12841 | $as_echo_n "(cached) " >&6 |
20e95c23 | 12842 | else |
d7040cdb SE |
12843 | if test -n "$YACC"; then |
12844 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12845 | else |
d7040cdb SE |
12846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12847 | for as_dir in $PATH | |
12848 | do | |
12849 | IFS=$as_save_IFS | |
12850 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12851 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12853 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 12855 | break 2 |
20e95c23 | 12856 | fi |
d7040cdb | 12857 | done |
81ecdfbb RW |
12858 | done |
12859 | IFS=$as_save_IFS | |
20e95c23 | 12860 | |
d7040cdb SE |
12861 | fi |
12862 | fi | |
12863 | YACC=$ac_cv_prog_YACC | |
12864 | if test -n "$YACC"; then | |
81ecdfbb RW |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12866 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12867 | else |
81ecdfbb RW |
12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12869 | $as_echo "no" >&6; } | |
d7040cdb | 12870 | fi |
20e95c23 | 12871 | |
81ecdfbb | 12872 | |
d7040cdb SE |
12873 | test -n "$YACC" && break |
12874 | done | |
12875 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12876 | |
d7040cdb SE |
12877 | for ac_prog in flex lex |
12878 | do | |
12879 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12880 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12882 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12883 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 12884 | $as_echo_n "(cached) " >&6 |
d6d788bd | 12885 | else |
d7040cdb SE |
12886 | if test -n "$LEX"; then |
12887 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12888 | else | |
12889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12890 | for as_dir in $PATH | |
12891 | do | |
12892 | IFS=$as_save_IFS | |
12893 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12894 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12896 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12898 | break 2 |
12899 | fi | |
12900 | done | |
81ecdfbb RW |
12901 | done |
12902 | IFS=$as_save_IFS | |
20e95c23 | 12903 | |
d7040cdb SE |
12904 | fi |
12905 | fi | |
12906 | LEX=$ac_cv_prog_LEX | |
12907 | if test -n "$LEX"; then | |
81ecdfbb RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12909 | $as_echo "$LEX" >&6; } | |
20e95c23 | 12910 | else |
81ecdfbb RW |
12911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12912 | $as_echo "no" >&6; } | |
13b2be9c DJ |
12913 | fi |
12914 | ||
81ecdfbb | 12915 | |
d7040cdb SE |
12916 | test -n "$LEX" && break |
12917 | done | |
12918 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12919 | |
3d961d0d AM |
12920 | case "$LEX" in |
12921 | :|*"missing "*) ;; | |
12922 | *) cat >conftest.l <<_ACEOF | |
81ecdfbb RW |
12923 | %% |
12924 | a { ECHO; } | |
12925 | b { REJECT; } | |
12926 | c { yymore (); } | |
12927 | d { yyless (1); } | |
d0ac1c44 SM |
12928 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12929 | yyless ((input () != 0)); } | |
81ecdfbb RW |
12930 | f { unput (yytext[0]); } |
12931 | . { BEGIN INITIAL; } | |
12932 | %% | |
12933 | #ifdef YYTEXT_POINTER | |
12934 | extern char *yytext; | |
d7040cdb | 12935 | #endif |
d7040cdb | 12936 | int |
81ecdfbb | 12937 | main (void) |
d7040cdb | 12938 | { |
81ecdfbb | 12939 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
12940 | } |
12941 | _ACEOF | |
81ecdfbb RW |
12942 | { { ac_try="$LEX conftest.l" |
12943 | case "(($ac_try" in | |
12944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12945 | *) ac_try_echo=$ac_try;; | |
12946 | esac | |
12947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12948 | $as_echo "$ac_try_echo"; } >&5 | |
12949 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 12950 | ac_status=$? |
81ecdfbb RW |
12951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12952 | test $ac_status = 0; } | |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12954 | $as_echo_n "checking lex output file root... " >&6; } | |
d0ac1c44 | 12955 | if ${ac_cv_prog_lex_root+:} false; then : |
81ecdfbb | 12956 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12957 | else |
d5fbea21 | 12958 | |
81ecdfbb RW |
12959 | if test -f lex.yy.c; then |
12960 | ac_cv_prog_lex_root=lex.yy | |
12961 | elif test -f lexyy.c; then | |
12962 | ac_cv_prog_lex_root=lexyy | |
12963 | else | |
d0ac1c44 | 12964 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
d6d788bd | 12965 | fi |
d7040cdb | 12966 | fi |
81ecdfbb RW |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12968 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12969 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 12970 | |
81ecdfbb RW |
12971 | if test -z "${LEXLIB+set}"; then |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12973 | $as_echo_n "checking lex library... " >&6; } | |
d0ac1c44 | 12974 | if ${ac_cv_lib_lex+:} false; then : |
81ecdfbb | 12975 | $as_echo_n "(cached) " >&6 |
d7040cdb | 12976 | else |
d7040cdb | 12977 | |
81ecdfbb RW |
12978 | ac_save_LIBS=$LIBS |
12979 | ac_cv_lib_lex='none needed' | |
12980 | for ac_lib in '' -lfl -ll; do | |
12981 | LIBS="$ac_lib $ac_save_LIBS" | |
12982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12983 | /* end confdefs.h. */ | |
12984 | `cat $LEX_OUTPUT_ROOT.c` | |
12985 | _ACEOF | |
12986 | if ac_fn_c_try_link "$LINENO"; then : | |
12987 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 12988 | fi |
81ecdfbb RW |
12989 | rm -f core conftest.err conftest.$ac_objext \ |
12990 | conftest$ac_exeext conftest.$ac_ext | |
12991 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12992 | done | |
12993 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
12994 | |
12995 | fi | |
81ecdfbb RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12997 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12998 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
12999 | fi |
13000 | ||
13b2be9c | 13001 | |
81ecdfbb RW |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
13003 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
d0ac1c44 | 13004 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
81ecdfbb | 13005 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
13006 | else |
13007 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 13008 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
13009 | # not all implementations provide the %pointer and %array declarations. |
13010 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 13011 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
13012 | LIBS="$LEXLIB $ac_save_LIBS" |
13013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13014 | /* end confdefs.h. */ | |
d0ac1c44 SM |
13015 | |
13016 | #define YYTEXT_POINTER 1 | |
d7040cdb | 13017 | `cat $LEX_OUTPUT_ROOT.c` |
13b2be9c | 13018 | _ACEOF |
81ecdfbb | 13019 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13020 | ac_cv_prog_lex_yytext_pointer=yes |
13b2be9c | 13021 | fi |
81ecdfbb RW |
13022 | rm -f core conftest.err conftest.$ac_objext \ |
13023 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 13024 | LIBS=$ac_save_LIBS |
252b5132 | 13025 | |
9b2b7d69 | 13026 | fi |
81ecdfbb RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
13028 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb | 13029 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
13b2be9c | 13030 | |
81ecdfbb | 13031 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9b2b7d69 | 13032 | |
d6d788bd | 13033 | fi |
81ecdfbb | 13034 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
3d961d0d AM |
13035 | ;; |
13036 | esac | |
d7040cdb SE |
13037 | if test "$LEX" = :; then |
13038 | LEX=${am_missing_run}flex | |
13039 | fi | |
13040 | ||
e184813f | 13041 | ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN" |
d7040cdb SE |
13042 | # If we haven't got the data from the intl directory, |
13043 | # assume NLS is disabled. | |
13044 | USE_NLS=no | |
13045 | LIBINTL= | |
13046 | LIBINTL_DEP= | |
13047 | INCINTL= | |
13048 | XGETTEXT= | |
13049 | GMSGFMT= | |
13050 | POSUB= | |
13051 | ||
13052 | if test -f ../intl/config.intl; then | |
13053 | . ../intl/config.intl | |
13054 | fi | |
81ecdfbb RW |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13056 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 13057 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13059 | $as_echo "no" >&6; } | |
d7040cdb | 13060 | else |
81ecdfbb RW |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13062 | $as_echo "yes" >&6; } | |
d7040cdb | 13063 | |
81ecdfbb | 13064 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
13065 | |
13066 | ||
81ecdfbb RW |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
13068 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
13069 | # Look for .po and .gmo files in the source directory. |
13070 | CATALOGS= | |
13071 | XLINGUAS= | |
13072 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
13073 | # If there aren't any .gmo files the shell will give us the | |
13074 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
13075 | # weeded out. | |
13076 | case "$cat" in *\**) | |
13077 | continue;; | |
13078 | esac | |
13079 | # The quadruple backslash is collapsed to a double backslash | |
13080 | # by the backticks, then collapsed again by the double quotes, | |
13081 | # leaving us with one backslash in the sed expression (right | |
13082 | # before the dot that mustn't act as a wildcard). | |
13083 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
13084 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
13085 | # The user is allowed to set LINGUAS to a list of languages to | |
13086 | # install catalogs for. If it's empty that means "all of them." | |
13087 | if test "x$LINGUAS" = x; then | |
13088 | CATALOGS="$CATALOGS $cat" | |
13089 | XLINGUAS="$XLINGUAS $lang" | |
13090 | else | |
13091 | case "$LINGUAS" in *$lang*) | |
13092 | CATALOGS="$CATALOGS $cat" | |
13093 | XLINGUAS="$XLINGUAS $lang" | |
13094 | ;; | |
13095 | esac | |
13096 | fi | |
13097 | done | |
13098 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
13100 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
13101 | |
13102 | ||
13103 | DATADIRNAME=share | |
13104 | ||
13105 | INSTOBJEXT=.mo | |
13106 | ||
13107 | GENCAT=gencat | |
13108 | ||
13109 | CATOBJEXT=.gmo | |
13110 | ||
13111 | fi | |
13112 | ||
13113 | MKINSTALLDIRS= | |
13114 | if test -n "$ac_aux_dir"; then | |
13115 | case "$ac_aux_dir" in | |
13116 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
13117 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
13118 | esac | |
13119 | fi | |
13120 | if test -z "$MKINSTALLDIRS"; then | |
13121 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
13122 | fi | |
13123 | ||
13124 | ||
13125 | ||
81ecdfbb RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
13127 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
13128 | # Check whether --enable-nls was given. | |
13129 | if test "${enable_nls+set}" = set; then : | |
13130 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
13131 | else |
13132 | USE_NLS=yes | |
81ecdfbb RW |
13133 | fi |
13134 | ||
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
13136 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
13137 | |
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | ||
13143 | # Prepare PATH_SEPARATOR. | |
13144 | # The user is always right. | |
13145 | if test "${PATH_SEPARATOR+set}" != set; then | |
13146 | echo "#! /bin/sh" >conf$$.sh | |
13147 | echo "exit 0" >>conf$$.sh | |
13148 | chmod +x conf$$.sh | |
13149 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13150 | PATH_SEPARATOR=';' | |
13b2be9c | 13151 | else |
d7040cdb | 13152 | PATH_SEPARATOR=: |
13b2be9c | 13153 | fi |
d7040cdb | 13154 | rm -f conf$$.sh |
252b5132 | 13155 | fi |
13b2be9c | 13156 | |
d7040cdb SE |
13157 | # Find out how to test for executable files. Don't use a zero-byte file, |
13158 | # as systems may use methods other than mode bits to determine executability. | |
13159 | cat >conf$$.file <<_ASEOF | |
13160 | #! /bin/sh | |
13161 | exit 0 | |
13162 | _ASEOF | |
13163 | chmod +x conf$$.file | |
13164 | if test -x conf$$.file >/dev/null 2>&1; then | |
13165 | ac_executable_p="test -x" | |
13166 | else | |
13167 | ac_executable_p="test -f" | |
13b2be9c | 13168 | fi |
d7040cdb | 13169 | rm -f conf$$.file |
13b2be9c | 13170 | |
d7040cdb SE |
13171 | # Extract the first word of "msgfmt", so it can be a program name with args. |
13172 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13174 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13175 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 13176 | $as_echo_n "(cached) " >&6 |
252b5132 | 13177 | else |
d7040cdb SE |
13178 | case "$MSGFMT" in |
13179 | [\\/]* | ?:[\\/]*) | |
13180 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13181 | ;; | |
13182 | *) | |
13183 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13184 | for ac_dir in $PATH; do | |
13185 | IFS="$ac_save_IFS" | |
13186 | test -z "$ac_dir" && ac_dir=. | |
13187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13188 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13189 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
13190 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13191 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
13192 | break 2 | |
13193 | fi | |
13194 | fi | |
13195 | done | |
13196 | done | |
13197 | IFS="$ac_save_IFS" | |
13198 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
13199 | ;; | |
13200 | esac | |
252b5132 | 13201 | fi |
d7040cdb SE |
13202 | MSGFMT="$ac_cv_path_MSGFMT" |
13203 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
13205 | $as_echo "$MSGFMT" >&6; } | |
252b5132 | 13206 | else |
81ecdfbb RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13208 | $as_echo "no" >&6; } | |
252b5132 | 13209 | fi |
252b5132 | 13210 | |
d7040cdb SE |
13211 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
13212 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13214 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13215 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 13216 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13217 | else |
d7040cdb SE |
13218 | case $GMSGFMT in |
13219 | [\\/]* | ?:[\\/]*) | |
13220 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
13221 | ;; | |
13222 | *) | |
13223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13224 | for as_dir in $PATH | |
13225 | do | |
13226 | IFS=$as_save_IFS | |
13227 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13228 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 13230 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
13232 | break 2 |
13233 | fi | |
13234 | done | |
81ecdfbb RW |
13235 | done |
13236 | IFS=$as_save_IFS | |
252b5132 | 13237 | |
d7040cdb SE |
13238 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
13239 | ;; | |
13240 | esac | |
13241 | fi | |
13242 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 13243 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
13245 | $as_echo "$GMSGFMT" >&6; } | |
ac48eca1 | 13246 | else |
81ecdfbb RW |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13248 | $as_echo "no" >&6; } | |
6840198f | 13249 | fi |
6840198f | 13250 | |
13b2be9c | 13251 | |
20e95c23 | 13252 | |
81ecdfbb | 13253 | |
d7040cdb SE |
13254 | # Prepare PATH_SEPARATOR. |
13255 | # The user is always right. | |
13256 | if test "${PATH_SEPARATOR+set}" != set; then | |
13257 | echo "#! /bin/sh" >conf$$.sh | |
13258 | echo "exit 0" >>conf$$.sh | |
13259 | chmod +x conf$$.sh | |
13260 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13261 | PATH_SEPARATOR=';' | |
13262 | else | |
13263 | PATH_SEPARATOR=: | |
13264 | fi | |
13265 | rm -f conf$$.sh | |
13266 | fi | |
20e95c23 | 13267 | |
d7040cdb SE |
13268 | # Find out how to test for executable files. Don't use a zero-byte file, |
13269 | # as systems may use methods other than mode bits to determine executability. | |
13270 | cat >conf$$.file <<_ASEOF | |
13271 | #! /bin/sh | |
13272 | exit 0 | |
13273 | _ASEOF | |
13274 | chmod +x conf$$.file | |
13275 | if test -x conf$$.file >/dev/null 2>&1; then | |
13276 | ac_executable_p="test -x" | |
13b2be9c | 13277 | else |
d7040cdb | 13278 | ac_executable_p="test -f" |
13b2be9c | 13279 | fi |
d7040cdb | 13280 | rm -f conf$$.file |
20e95c23 | 13281 | |
d7040cdb SE |
13282 | # Extract the first word of "xgettext", so it can be a program name with args. |
13283 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13285 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13286 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 13287 | $as_echo_n "(cached) " >&6 |
252b5132 | 13288 | else |
d7040cdb SE |
13289 | case "$XGETTEXT" in |
13290 | [\\/]* | ?:[\\/]*) | |
13291 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
13292 | ;; | |
13293 | *) | |
13294 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13295 | for ac_dir in $PATH; do | |
13296 | IFS="$ac_save_IFS" | |
13297 | test -z "$ac_dir" && ac_dir=. | |
13298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13299 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13300 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13301 | (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 | |
13302 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
13303 | break 2 | |
13304 | fi | |
13305 | fi | |
13306 | done | |
13307 | done | |
13308 | IFS="$ac_save_IFS" | |
13309 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13310 | ;; | |
13311 | esac | |
13b2be9c | 13312 | fi |
d7040cdb SE |
13313 | XGETTEXT="$ac_cv_path_XGETTEXT" |
13314 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
13316 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 13317 | else |
81ecdfbb RW |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13319 | $as_echo "no" >&6; } | |
13b2be9c | 13320 | fi |
13b2be9c | 13321 | |
d7040cdb | 13322 | rm -f messages.po |
20e95c23 | 13323 | |
13b2be9c | 13324 | |
d7040cdb SE |
13325 | # Prepare PATH_SEPARATOR. |
13326 | # The user is always right. | |
13327 | if test "${PATH_SEPARATOR+set}" != set; then | |
13328 | echo "#! /bin/sh" >conf$$.sh | |
13329 | echo "exit 0" >>conf$$.sh | |
13330 | chmod +x conf$$.sh | |
13331 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13332 | PATH_SEPARATOR=';' | |
13333 | else | |
13334 | PATH_SEPARATOR=: | |
13335 | fi | |
13336 | rm -f conf$$.sh | |
252b5132 | 13337 | fi |
20e95c23 | 13338 | |
d7040cdb SE |
13339 | # Find out how to test for executable files. Don't use a zero-byte file, |
13340 | # as systems may use methods other than mode bits to determine executability. | |
13341 | cat >conf$$.file <<_ASEOF | |
13342 | #! /bin/sh | |
13343 | exit 0 | |
13344 | _ASEOF | |
13345 | chmod +x conf$$.file | |
13346 | if test -x conf$$.file >/dev/null 2>&1; then | |
13347 | ac_executable_p="test -x" | |
252b5132 | 13348 | else |
d7040cdb SE |
13349 | ac_executable_p="test -f" |
13350 | fi | |
13351 | rm -f conf$$.file | |
20e95c23 | 13352 | |
d7040cdb SE |
13353 | # Extract the first word of "msgmerge", so it can be a program name with args. |
13354 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13356 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13357 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 13358 | $as_echo_n "(cached) " >&6 |
20e95c23 | 13359 | else |
d7040cdb SE |
13360 | case "$MSGMERGE" in |
13361 | [\\/]* | ?:[\\/]*) | |
13362 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13363 | ;; | |
13364 | *) | |
13365 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13366 | for ac_dir in $PATH; do | |
13367 | IFS="$ac_save_IFS" | |
13368 | test -z "$ac_dir" && ac_dir=. | |
13369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13370 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13371 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13372 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13373 | break 2 | |
13374 | fi | |
13375 | fi | |
13376 | done | |
13377 | done | |
13378 | IFS="$ac_save_IFS" | |
13379 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13380 | ;; | |
13381 | esac | |
20e95c23 | 13382 | fi |
d7040cdb SE |
13383 | MSGMERGE="$ac_cv_path_MSGMERGE" |
13384 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
13386 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 13387 | else |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13389 | $as_echo "no" >&6; } | |
20e95c23 | 13390 | fi |
252b5132 | 13391 | |
252b5132 | 13392 | |
d7040cdb SE |
13393 | if test "$GMSGFMT" != ":"; then |
13394 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13395 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13396 | : ; | |
13397 | else | |
13398 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
13400 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
13401 | GMSGFMT=":" |
13402 | fi | |
13403 | fi | |
13b2be9c | 13404 | |
d7040cdb SE |
13405 | if test "$XGETTEXT" != ":"; then |
13406 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13407 | (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 | |
13408 | : ; | |
13409 | else | |
81ecdfbb RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
13411 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
13412 | XGETTEXT=":" |
13413 | fi | |
13414 | rm -f messages.po | |
13415 | fi | |
252b5132 | 13416 | |
81ecdfbb | 13417 | ac_config_commands="$ac_config_commands default-1" |
13b2be9c | 13418 | |
13b2be9c | 13419 | |
81ecdfbb RW |
13420 | |
13421 | ||
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13423 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13424 | # Check whether --enable-maintainer-mode was given. | |
13425 | if test "${enable_maintainer_mode+set}" = set; then : | |
13426 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
9b2b7d69 | 13427 | else |
81ecdfbb | 13428 | USE_MAINTAINER_MODE=no |
13b2be9c | 13429 | fi |
13b2be9c | 13430 | |
81ecdfbb RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
13432 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13433 | if test $USE_MAINTAINER_MODE = yes; then | |
13434 | MAINTAINER_MODE_TRUE= | |
23d61380 AM |
13435 | MAINTAINER_MODE_FALSE='#' |
13436 | else | |
13437 | MAINTAINER_MODE_TRUE='#' | |
13438 | MAINTAINER_MODE_FALSE= | |
81ecdfbb | 13439 | fi |
13b2be9c | 13440 | |
23d61380 | 13441 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 13442 | |
252b5132 | 13443 | |
23d61380 AM |
13444 | if false; then |
13445 | GENINSRC_NEVER_TRUE= | |
13446 | GENINSRC_NEVER_FALSE='#' | |
252b5132 | 13447 | else |
23d61380 AM |
13448 | GENINSRC_NEVER_TRUE='#' |
13449 | GENINSRC_NEVER_FALSE= | |
252b5132 | 13450 | fi |
ab509236 | 13451 | |
252b5132 | 13452 | |
6840198f | 13453 | |
23d61380 | 13454 | for ac_header in memory.h sys/stat.h sys/types.h unistd.h |
81ecdfbb | 13455 | do : |
23d61380 AM |
13456 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13457 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
13458 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13b2be9c | 13459 | cat >>confdefs.h <<_ACEOF |
23d61380 | 13460 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13b2be9c | 13461 | _ACEOF |
23d61380 | 13462 | |
252b5132 | 13463 | fi |
23d61380 | 13464 | |
252b5132 RH |
13465 | done |
13466 | ||
23d61380 AM |
13467 | |
13468 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse | |
13469 | # people who are not cross-compiling but are compiling cross-assemblers. | |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5 | |
13471 | $as_echo_n "checking whether compiling a cross-assembler... " >&6; } | |
13472 | if test "${host}" = "${target}"; then | |
13473 | cross_gas=no | |
13474 | else | |
13475 | cross_gas=yes | |
13476 | ||
13477 | $as_echo "#define CROSS_COMPILE 1" >>confdefs.h | |
252b5132 | 13478 | |
1ec4b9f2 | 13479 | fi |
23d61380 AM |
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5 |
13481 | $as_echo "$cross_gas" >&6; } | |
1ec4b9f2 NS |
13482 | |
13483 | for ac_func in strsignal | |
13484 | do : | |
13485 | ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" | |
d0ac1c44 | 13486 | if test "x$ac_cv_func_strsignal" = xyes; then : |
1ec4b9f2 NS |
13487 | cat >>confdefs.h <<_ACEOF |
13488 | #define HAVE_STRSIGNAL 1 | |
13489 | _ACEOF | |
13490 | ||
252b5132 RH |
13491 | fi |
13492 | done | |
13493 | ||
d6d788bd | 13494 | |
44350750 NC |
13495 | |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
13497 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
d0ac1c44 | 13498 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
44350750 NC |
13499 | $as_echo_n "(cached) " >&6 |
13500 | else | |
13501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13502 | /* end confdefs.h. */ | |
13503 | #include <locale.h> | |
13504 | int | |
13505 | main () | |
13506 | { | |
13507 | return LC_MESSAGES | |
13508 | ; | |
13509 | return 0; | |
13510 | } | |
13511 | _ACEOF | |
13512 | if ac_fn_c_try_link "$LINENO"; then : | |
13513 | am_cv_val_LC_MESSAGES=yes | |
13514 | else | |
13515 | am_cv_val_LC_MESSAGES=no | |
13516 | fi | |
13517 | rm -f core conftest.err conftest.$ac_objext \ | |
13518 | conftest$ac_exeext conftest.$ac_ext | |
13519 | fi | |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
13521 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
13522 | if test $am_cv_val_LC_MESSAGES = yes; then | |
13523 | ||
13524 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
13525 | ||
13526 | fi | |
13527 | ||
13528 | ||
39bec121 TW |
13529 | # do we need the math library? |
13530 | case "${need_libm}" in | |
13b2be9c | 13531 | yes) |
39bec121 | 13532 | LIBM= |
f9c19112 | 13533 | case $host in |
3725885a | 13534 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13535 | # These system don't have libm, or don't need it |
39bec121 TW |
13536 | ;; |
13537 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
13539 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
d0ac1c44 | 13540 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
81ecdfbb | 13541 | $as_echo_n "(cached) " >&6 |
39bec121 | 13542 | else |
13b2be9c | 13543 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13544 | LIBS="-lmw $LIBS" |
81ecdfbb | 13545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13546 | /* end confdefs.h. */ |
13547 | ||
81ecdfbb RW |
13548 | /* Override any GCC internal prototype to avoid an error. |
13549 | Use char because int might match the return type of a GCC | |
13550 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
13551 | #ifdef __cplusplus |
13552 | extern "C" | |
13553 | #endif | |
13b2be9c DJ |
13554 | char _mwvalidcheckl (); |
13555 | int | |
13556 | main () | |
13557 | { | |
81ecdfbb | 13558 | return _mwvalidcheckl (); |
13b2be9c DJ |
13559 | ; |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
81ecdfbb | 13563 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13564 | ac_cv_lib_mw__mwvalidcheckl=yes |
13565 | else | |
81ecdfbb | 13566 | ac_cv_lib_mw__mwvalidcheckl=no |
13b2be9c | 13567 | fi |
81ecdfbb RW |
13568 | rm -f core conftest.err conftest.$ac_objext \ |
13569 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13570 | LIBS=$ac_check_lib_save_LIBS |
13571 | fi | |
81ecdfbb RW |
13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
13573 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
d0ac1c44 | 13574 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
39bec121 | 13575 | LIBM="-lmw" |
39bec121 TW |
13576 | fi |
13577 | ||
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13579 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13580 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13581 | $as_echo_n "(cached) " >&6 |
39bec121 | 13582 | else |
13b2be9c | 13583 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13584 | LIBS="-lm $LIBS" |
81ecdfbb | 13585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13586 | /* end confdefs.h. */ |
39bec121 | 13587 | |
81ecdfbb RW |
13588 | /* Override any GCC internal prototype to avoid an error. |
13589 | Use char because int might match the return type of a GCC | |
13590 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13591 | #ifdef __cplusplus |
13592 | extern "C" | |
13593 | #endif | |
d7040cdb | 13594 | char cos (); |
13b2be9c DJ |
13595 | int |
13596 | main () | |
13597 | { | |
81ecdfbb | 13598 | return cos (); |
13b2be9c DJ |
13599 | ; |
13600 | return 0; | |
13601 | } | |
13602 | _ACEOF | |
81ecdfbb | 13603 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13604 | ac_cv_lib_m_cos=yes |
13b2be9c | 13605 | else |
81ecdfbb | 13606 | ac_cv_lib_m_cos=no |
13b2be9c | 13607 | fi |
81ecdfbb RW |
13608 | rm -f core conftest.err conftest.$ac_objext \ |
13609 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13610 | LIBS=$ac_check_lib_save_LIBS |
13611 | fi | |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13613 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13614 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
39bec121 | 13615 | LIBM="$LIBM -lm" |
39bec121 TW |
13616 | fi |
13617 | ||
13618 | ;; | |
13619 | *) | |
81ecdfbb RW |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13621 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13622 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13623 | $as_echo_n "(cached) " >&6 |
39bec121 | 13624 | else |
13b2be9c | 13625 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13626 | LIBS="-lm $LIBS" |
81ecdfbb | 13627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13628 | /* end confdefs.h. */ |
39bec121 | 13629 | |
81ecdfbb RW |
13630 | /* Override any GCC internal prototype to avoid an error. |
13631 | Use char because int might match the return type of a GCC | |
13632 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13633 | #ifdef __cplusplus |
13634 | extern "C" | |
13635 | #endif | |
d7040cdb | 13636 | char cos (); |
13b2be9c DJ |
13637 | int |
13638 | main () | |
13639 | { | |
81ecdfbb | 13640 | return cos (); |
13b2be9c DJ |
13641 | ; |
13642 | return 0; | |
13643 | } | |
13644 | _ACEOF | |
81ecdfbb | 13645 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13646 | ac_cv_lib_m_cos=yes |
13b2be9c | 13647 | else |
81ecdfbb | 13648 | ac_cv_lib_m_cos=no |
13b2be9c | 13649 | fi |
81ecdfbb RW |
13650 | rm -f core conftest.err conftest.$ac_objext \ |
13651 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13652 | LIBS=$ac_check_lib_save_LIBS |
13653 | fi | |
81ecdfbb RW |
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13655 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13656 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
39bec121 | 13657 | LIBM="-lm" |
39bec121 TW |
13658 | fi |
13659 | ||
13660 | ;; | |
13661 | esac | |
13662 | ||
13b2be9c | 13663 | |
d7040cdb | 13664 | |
39bec121 TW |
13665 | ;; |
13666 | esac | |
13667 | ||
252b5132 RH |
13668 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
13669 | # enough, but on some of those systems, the assert macro relies on requoting | |
13670 | # working properly! | |
81ecdfbb RW |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5 |
13672 | $as_echo_n "checking for working assert macro... " >&6; } | |
d0ac1c44 | 13673 | if ${gas_cv_assert_ok+:} false; then : |
81ecdfbb | 13674 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13675 | else |
81ecdfbb | 13676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13677 | /* end confdefs.h. */ |
252b5132 RH |
13678 | #include <assert.h> |
13679 | #include <stdio.h> | |
13b2be9c DJ |
13680 | int |
13681 | main () | |
13682 | { | |
252b5132 RH |
13683 | |
13684 | /* check for requoting problems */ | |
13685 | static int a, b, c, d; | |
13686 | static char *s; | |
13687 | assert (!strcmp(s, "foo bar baz quux")); | |
13688 | /* check for newline handling */ | |
13689 | assert (a == b | |
13690 | || c == d); | |
13691 | ||
13b2be9c DJ |
13692 | ; |
13693 | return 0; | |
81ecdfbb RW |
13694 | } |
13695 | _ACEOF | |
13696 | if ac_fn_c_try_link "$LINENO"; then : | |
252b5132 RH |
13697 | gas_cv_assert_ok=yes |
13698 | else | |
81ecdfbb | 13699 | gas_cv_assert_ok=no |
252b5132 | 13700 | fi |
81ecdfbb RW |
13701 | rm -f core conftest.err conftest.$ac_objext \ |
13702 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13703 | fi |
81ecdfbb RW |
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5 |
13705 | $as_echo "$gas_cv_assert_ok" >&6; } | |
13b2be9c | 13706 | test $gas_cv_assert_ok = yes || |
81ecdfbb | 13707 | $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h |
252b5132 | 13708 | |
d6d788bd L |
13709 | |
13710 | ||
252b5132 RH |
13711 | # On some systems, the system header files may not declare malloc, realloc, |
13712 | # and free. There are places where gas needs these functions to have been | |
13713 | # declared -- such as when taking their addresses. | |
13714 | gas_test_headers=" | |
13715 | #ifdef HAVE_MEMORY_H | |
13716 | #include <memory.h> | |
13717 | #endif | |
252b5132 | 13718 | #include <string.h> |
252b5132 | 13719 | #include <stdlib.h> |
252b5132 RH |
13720 | #ifdef HAVE_UNISTD_H |
13721 | #include <unistd.h> | |
13722 | #endif | |
13723 | " | |
13724 | ||
81ecdfbb RW |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13726 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
d0ac1c44 | 13727 | if ${gas_cv_decl_getopt_unistd_h+:} false; then : |
81ecdfbb | 13728 | $as_echo_n "(cached) " >&6 |
56f36663 | 13729 | else |
81ecdfbb | 13730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
56f36663 NC |
13731 | /* end confdefs.h. */ |
13732 | #include <unistd.h> | |
13733 | int | |
13734 | main () | |
13735 | { | |
13736 | extern int getopt (int, char *const*, const char *); | |
13737 | ; | |
13738 | return 0; | |
13739 | } | |
13740 | _ACEOF | |
81ecdfbb | 13741 | if ac_fn_c_try_compile "$LINENO"; then : |
56f36663 NC |
13742 | gas_cv_decl_getopt_unistd_h=yes |
13743 | else | |
81ecdfbb | 13744 | gas_cv_decl_getopt_unistd_h=no |
56f36663 | 13745 | fi |
81ecdfbb | 13746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
56f36663 NC |
13747 | fi |
13748 | ||
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5 |
13750 | $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; } | |
56f36663 NC |
13751 | if test $gas_cv_decl_getopt_unistd_h = yes; then |
13752 | ||
81ecdfbb | 13753 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
56f36663 NC |
13754 | |
13755 | fi | |
13756 | ||
e8a38df5 | 13757 | |
81ecdfbb RW |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5 |
13759 | $as_echo_n "checking whether declaration is required for environ... " >&6; } | |
d0ac1c44 | 13760 | if ${gas_cv_decl_needed_environ+:} false; then : |
81ecdfbb | 13761 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13762 | else |
81ecdfbb | 13763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13764 | /* end confdefs.h. */ |
252b5132 | 13765 | $gas_test_headers |
13b2be9c DJ |
13766 | int |
13767 | main () | |
13768 | { | |
252b5132 | 13769 | |
e8a38df5 | 13770 | typedef char **f; |
252b5132 | 13771 | f x; |
e8a38df5 | 13772 | x = (f) environ; |
252b5132 | 13773 | |
13b2be9c DJ |
13774 | ; |
13775 | return 0; | |
13776 | } | |
13777 | _ACEOF | |
81ecdfbb | 13778 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13779 | gas_cv_decl_needed_environ=no |
252b5132 | 13780 | else |
81ecdfbb | 13781 | gas_cv_decl_needed_environ=yes |
252b5132 | 13782 | fi |
81ecdfbb RW |
13783 | rm -f core conftest.err conftest.$ac_objext \ |
13784 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13785 | fi |
81ecdfbb RW |
13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5 |
13787 | $as_echo "$gas_cv_decl_needed_environ" >&6; } | |
e8a38df5 | 13788 | if test $gas_cv_decl_needed_environ = yes; then |
13b2be9c | 13789 | |
81ecdfbb | 13790 | $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h |
13b2be9c DJ |
13791 | |
13792 | fi | |
13793 | ||
13794 | ||
81ecdfbb RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5 |
13796 | $as_echo_n "checking whether declaration is required for ffs... " >&6; } | |
d0ac1c44 | 13797 | if ${gas_cv_decl_needed_ffs+:} false; then : |
81ecdfbb | 13798 | $as_echo_n "(cached) " >&6 |
13b2be9c | 13799 | else |
81ecdfbb | 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13801 | /* end confdefs.h. */ |
13802 | $gas_test_headers | |
13803 | int | |
13804 | main () | |
13805 | { | |
13806 | ||
e8a38df5 | 13807 | typedef int (*f)(int); |
13b2be9c | 13808 | f x; |
e8a38df5 | 13809 | x = (f) ffs; |
13b2be9c DJ |
13810 | |
13811 | ; | |
13812 | return 0; | |
13813 | } | |
13814 | _ACEOF | |
81ecdfbb | 13815 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13816 | gas_cv_decl_needed_ffs=no |
13b2be9c | 13817 | else |
81ecdfbb | 13818 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 13819 | fi |
81ecdfbb RW |
13820 | rm -f core conftest.err conftest.$ac_objext \ |
13821 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13822 | fi |
81ecdfbb RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5 |
13824 | $as_echo "$gas_cv_decl_needed_ffs" >&6; } | |
e8a38df5 | 13825 | if test $gas_cv_decl_needed_ffs = yes; then |
13b2be9c | 13826 | |
81ecdfbb | 13827 | $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h |
13b2be9c DJ |
13828 | |
13829 | fi | |
13830 | ||
13831 | ||
23d61380 AM |
13832 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
13833 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : | |
4b0296ce AM |
13834 | ac_have_decl=1 |
13835 | else | |
13836 | ac_have_decl=0 | |
13837 | fi | |
13838 | ||
13839 | cat >>confdefs.h <<_ACEOF | |
23d61380 | 13840 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
4b0296ce | 13841 | _ACEOF |
0175442d | 13842 | ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default" |
d0ac1c44 | 13843 | if test "x$ac_cv_have_decl_mempcpy" = xyes; then : |
0175442d L |
13844 | ac_have_decl=1 |
13845 | else | |
13846 | ac_have_decl=0 | |
13847 | fi | |
13848 | ||
13849 | cat >>confdefs.h <<_ACEOF | |
13850 | #define HAVE_DECL_MEMPCPY $ac_have_decl | |
13851 | _ACEOF | |
4b0296ce | 13852 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
d0ac1c44 | 13853 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : |
4b0296ce AM |
13854 | ac_have_decl=1 |
13855 | else | |
13856 | ac_have_decl=0 | |
13857 | fi | |
13858 | ||
13859 | cat >>confdefs.h <<_ACEOF | |
13860 | #define HAVE_DECL_STPCPY $ac_have_decl | |
13861 | _ACEOF | |
6d74f28b EB |
13862 | |
13863 | ||
13b2be9c | 13864 | |
c973bc5c NC |
13865 | case "${host}" in |
13866 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
13867 | ||
81ecdfbb | 13868 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
c973bc5c NC |
13869 | ;; |
13870 | esac | |
13871 | ||
543b7933 L |
13872 | # Link in zlib if we can. This allows us to write compressed debug sections. |
13873 | ||
13874 | # Use the system's zlib library. | |
39f3de7c L |
13875 | zlibdir="-L\$(top_builddir)/../zlib" |
13876 | zlibinc="-I\$(top_srcdir)/../zlib" | |
0acf065b | 13877 | |
0138187e L |
13878 | # Check whether --with-system-zlib was given. |
13879 | if test "${with_system_zlib+set}" = set; then : | |
afa59b79 L |
13880 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
13881 | zlibdir= | |
13882 | zlibinc= | |
13883 | fi | |
0acf065b | 13884 | |
0acf065b | 13885 | fi |
0acf065b | 13886 | |
0acf065b CC |
13887 | |
13888 | ||
543b7933 L |
13889 | |
13890 | ||
b11d79f2 TG |
13891 | # Support for VMS timestamps via cross compile |
13892 | ||
13893 | if test "$ac_cv_header_time_h" = yes; then | |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 | |
13895 | $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } | |
d0ac1c44 | 13896 | if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then : |
b11d79f2 TG |
13897 | $as_echo_n "(cached) " >&6 |
13898 | else | |
13899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13900 | /* end confdefs.h. */ | |
13901 | ||
13902 | #define _BSD_SOURCE 1 | |
13903 | #include <time.h> | |
13904 | int | |
13905 | main () | |
13906 | { | |
13907 | struct tm avar; void* aref = (void*) &avar.tm_gmtoff | |
13908 | ; | |
13909 | return 0; | |
13910 | } | |
13911 | _ACEOF | |
13912 | if ac_fn_c_try_compile "$LINENO"; then : | |
13913 | gas_cv_have_time_type_member_tm_gmtoff=yes | |
13914 | else | |
13915 | gas_cv_have_time_type_member_tm_gmtoff=no | |
13916 | ||
13917 | fi | |
13918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13919 | fi | |
13920 | ||
13921 | if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then | |
13922 | ||
13923 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
13924 | ||
13925 | fi | |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 | |
13927 | $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } | |
13928 | ||
13929 | fi | |
13930 | ||
13931 | if test "$ac_cv_header_sys_stat_h" = yes; then | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 | |
13933 | $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } | |
d0ac1c44 | 13934 | if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then : |
b11d79f2 TG |
13935 | $as_echo_n "(cached) " >&6 |
13936 | else | |
13937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13938 | /* end confdefs.h. */ | |
13939 | ||
13940 | #define _BSD_SOURCE 1 | |
13941 | #include <sys/stat.h> | |
13942 | int | |
13943 | main () | |
13944 | { | |
13945 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec | |
13946 | ; | |
13947 | return 0; | |
13948 | } | |
13949 | _ACEOF | |
13950 | if ac_fn_c_try_compile "$LINENO"; then : | |
13951 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes | |
13952 | else | |
13953 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no | |
13954 | ||
13955 | fi | |
13956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13957 | fi | |
13958 | ||
13959 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then | |
13960 | ||
13961 | $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h | |
13962 | ||
13963 | fi | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 | |
13965 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } | |
13966 | ||
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 | |
13968 | $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } | |
d0ac1c44 | 13969 | if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then : |
b11d79f2 TG |
13970 | $as_echo_n "(cached) " >&6 |
13971 | else | |
13972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13973 | /* end confdefs.h. */ | |
13974 | ||
13975 | #define _BSD_SOURCE 1 | |
13976 | #include <sys/stat.h> | |
13977 | int | |
13978 | main () | |
13979 | { | |
13980 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec | |
13981 | ; | |
13982 | return 0; | |
13983 | } | |
13984 | _ACEOF | |
13985 | if ac_fn_c_try_compile "$LINENO"; then : | |
13986 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes | |
13987 | else | |
13988 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no | |
13989 | ||
13990 | fi | |
13991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13992 | fi | |
13993 | ||
13994 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then | |
13995 | ||
13996 | $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h | |
13997 | ||
13998 | fi | |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 | |
14000 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } | |
14001 | ||
14002 | fi | |
14003 | ||
14004 | ||
c973bc5c | 14005 | |
13b2be9c | 14006 | |
108a6f8e CD |
14007 | |
14008 | ||
14009 | ||
14010 | ||
31dd3154 | 14011 | |
81ecdfbb | 14012 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
13b2be9c | 14013 | |
81ecdfbb | 14014 | ac_config_commands="$ac_config_commands default" |
13b2be9c DJ |
14015 | |
14016 | ||
14017 | cat >confcache <<\_ACEOF | |
14018 | # This file is a shell script that caches the results of configure | |
14019 | # tests run on this system so they can be shared between configure | |
14020 | # scripts and configure runs, see configure's option --config-cache. | |
14021 | # It is not useful on other systems. If it contains results you don't | |
14022 | # want to keep, you may remove or edit it. | |
14023 | # | |
14024 | # config.status only pays attention to the cache file if you give it | |
14025 | # the --recheck option to rerun configure. | |
14026 | # | |
14027 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14028 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14029 | # following values. | |
14030 | ||
14031 | _ACEOF | |
14032 | ||
14033 | # The following way of writing the cache mishandles newlines in values, | |
14034 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14035 | # So, we kill variables containing newlines. |
13b2be9c DJ |
14036 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14037 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14038 | ( |
14039 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14040 | eval ac_val=\$$ac_var | |
14041 | case $ac_val in #( | |
14042 | *${as_nl}*) | |
14043 | case $ac_var in #( | |
14044 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14045 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14046 | esac | |
14047 | case $ac_var in #( | |
14048 | _ | IFS | as_nl) ;; #( | |
14049 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14050 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14051 | esac ;; | |
14052 | esac | |
14053 | done | |
14054 | ||
13b2be9c | 14055 | (set) 2>&1 | |
81ecdfbb RW |
14056 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14057 | *${as_nl}ac_space=\ *) | |
14058 | # `set' does not quote correctly, so add quotes: double-quote | |
14059 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13b2be9c | 14060 | sed -n \ |
ab509236 L |
14061 | "s/'/'\\\\''/g; |
14062 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14063 | ;; #( |
13b2be9c DJ |
14064 | *) |
14065 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14066 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 14067 | ;; |
81ecdfbb RW |
14068 | esac | |
14069 | sort | |
14070 | ) | | |
13b2be9c | 14071 | sed ' |
81ecdfbb | 14072 | /^ac_cv_env_/b end |
13b2be9c | 14073 | t clear |
81ecdfbb | 14074 | :clear |
13b2be9c DJ |
14075 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14076 | t end | |
81ecdfbb RW |
14077 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14078 | :end' >>confcache | |
14079 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14080 | if test -w "$cache_file"; then | |
d0ac1c44 | 14081 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14083 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14084 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14085 | cat confcache >"$cache_file" | |
14086 | else | |
14087 | case $cache_file in #( | |
14088 | */* | ?:*) | |
14089 | mv -f confcache "$cache_file"$$ && | |
14090 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14091 | *) | |
14092 | mv -f confcache "$cache_file" ;; | |
14093 | esac | |
14094 | fi | |
14095 | fi | |
13b2be9c | 14096 | else |
81ecdfbb RW |
14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14098 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13b2be9c DJ |
14099 | fi |
14100 | fi | |
14101 | rm -f confcache | |
14102 | ||
14103 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14104 | # Let make expand exec_prefix. | |
14105 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14106 | ||
13b2be9c DJ |
14107 | DEFS=-DHAVE_CONFIG_H |
14108 | ||
14109 | ac_libobjs= | |
14110 | ac_ltlibobjs= | |
d0ac1c44 | 14111 | U= |
13b2be9c DJ |
14112 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14113 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14114 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14115 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14116 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14117 | # will be set to the directory where LIBOBJS objects are built. | |
14118 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14119 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13b2be9c DJ |
14120 | done |
14121 | LIBOBJS=$ac_libobjs | |
14122 | ||
14123 | LTLIBOBJS=$ac_ltlibobjs | |
14124 | ||
14125 | ||
d0ac1c44 SM |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14127 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14128 | if test -n "$am_sleep_pid"; then | |
14129 | # Hide warnings about reused PIDs. | |
14130 | wait $am_sleep_pid 2>/dev/null | |
14131 | fi | |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14133 | $as_echo "done" >&6; } | |
81ecdfbb RW |
14134 | if test -n "$EXEEXT"; then |
14135 | am__EXEEXT_TRUE= | |
14136 | am__EXEEXT_FALSE='#' | |
14137 | else | |
14138 | am__EXEEXT_TRUE='#' | |
14139 | am__EXEEXT_FALSE= | |
13b2be9c | 14140 | fi |
81ecdfbb | 14141 | |
23d61380 AM |
14142 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14143 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
14144 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14145 | fi | |
14146 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14147 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
14148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14149 | fi | |
81ecdfbb | 14150 | |
13b2be9c | 14151 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 14152 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 14153 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13b2be9c | 14154 | fi |
d5fbea21 | 14155 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 14156 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 14157 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 14158 | fi |
13b2be9c | 14159 | |
d0ac1c44 | 14160 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14161 | ac_write_fail=0 |
13b2be9c DJ |
14162 | ac_clean_files_save=$ac_clean_files |
14163 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14165 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14166 | as_write_fail=0 | |
14167 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13b2be9c DJ |
14168 | #! $SHELL |
14169 | # Generated by $as_me. | |
14170 | # Run this file to recreate the current configuration. | |
14171 | # Compiler output produced by configure, useful for debugging | |
14172 | # configure, is in config.log if it exists. | |
14173 | ||
14174 | debug=false | |
14175 | ac_cs_recheck=false | |
14176 | ac_cs_silent=false | |
13b2be9c | 14177 | |
81ecdfbb RW |
14178 | SHELL=\${CONFIG_SHELL-$SHELL} |
14179 | export SHELL | |
14180 | _ASEOF | |
14181 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14182 | ## -------------------- ## | |
14183 | ## M4sh Initialization. ## | |
14184 | ## -------------------- ## | |
13b2be9c | 14185 | |
81ecdfbb RW |
14186 | # Be more Bourne compatible |
14187 | DUALCASE=1; export DUALCASE # for MKS sh | |
14188 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
14189 | emulate sh |
14190 | NULLCMD=: | |
81ecdfbb | 14191 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
14192 | # is contrary to our usage. Disable this feature. |
14193 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14194 | setopt NO_GLOB_SUBST |
14195 | else | |
14196 | case `(set -o) 2>/dev/null` in #( | |
14197 | *posix*) : | |
14198 | set -o posix ;; #( | |
14199 | *) : | |
14200 | ;; | |
14201 | esac | |
13b2be9c DJ |
14202 | fi |
14203 | ||
81ecdfbb RW |
14204 | |
14205 | as_nl=' | |
14206 | ' | |
14207 | export as_nl | |
14208 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14209 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14210 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14211 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14212 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14213 | # but without wasting forks for bash or zsh. | |
14214 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14215 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14216 | as_echo='print -r --' | |
14217 | as_echo_n='print -rn --' | |
14218 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14219 | as_echo='printf %s\n' | |
14220 | as_echo_n='printf %s' | |
14221 | else | |
14222 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14223 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14224 | as_echo_n='/usr/ucb/echo -n' | |
14225 | else | |
14226 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14227 | as_echo_n_body='eval | |
14228 | arg=$1; | |
14229 | case $arg in #( | |
14230 | *"$as_nl"*) | |
14231 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14232 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14233 | esac; | |
14234 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14235 | ' | |
14236 | export as_echo_n_body | |
14237 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14238 | fi | |
14239 | export as_echo_body | |
14240 | as_echo='sh -c $as_echo_body as_echo' | |
13b2be9c DJ |
14241 | fi |
14242 | ||
81ecdfbb RW |
14243 | # The user is always right. |
14244 | if test "${PATH_SEPARATOR+set}" != set; then | |
14245 | PATH_SEPARATOR=: | |
14246 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14247 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14248 | PATH_SEPARATOR=';' | |
14249 | } | |
14250 | fi | |
14251 | ||
14252 | ||
14253 | # IFS | |
14254 | # We need space, tab and new line, in precisely that order. Quoting is | |
14255 | # there to prevent editors from complaining about space-tab. | |
14256 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14257 | # splitting by setting IFS to empty value.) | |
14258 | IFS=" "" $as_nl" | |
14259 | ||
14260 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14261 | as_myself= |
81ecdfbb RW |
14262 | case $0 in #(( |
14263 | *[\\/]* ) as_myself=$0 ;; | |
14264 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14265 | for as_dir in $PATH | |
14266 | do | |
14267 | IFS=$as_save_IFS | |
14268 | test -z "$as_dir" && as_dir=. | |
14269 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14270 | done | |
14271 | IFS=$as_save_IFS | |
14272 | ||
14273 | ;; | |
14274 | esac | |
14275 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14276 | # in which case we are not to be found in the path. | |
14277 | if test "x$as_myself" = x; then | |
14278 | as_myself=$0 | |
14279 | fi | |
14280 | if test ! -f "$as_myself"; then | |
14281 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14282 | exit 1 | |
14283 | fi | |
13b2be9c | 14284 | |
81ecdfbb RW |
14285 | # Unset variables that we do not need and which cause bugs (e.g. in |
14286 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14287 | # suppresses any "Segmentation fault" message there. '((' could | |
14288 | # trigger a bug in pdksh 5.2.14. | |
14289 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14290 | do eval test x\${$as_var+set} = xset \ | |
14291 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14292 | done | |
13b2be9c DJ |
14293 | PS1='$ ' |
14294 | PS2='> ' | |
14295 | PS4='+ ' | |
14296 | ||
14297 | # NLS nuisances. | |
81ecdfbb RW |
14298 | LC_ALL=C |
14299 | export LC_ALL | |
14300 | LANGUAGE=C | |
14301 | export LANGUAGE | |
14302 | ||
14303 | # CDPATH. | |
14304 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14305 | ||
14306 | ||
d0ac1c44 SM |
14307 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14308 | # ---------------------------------------- | |
81ecdfbb RW |
14309 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14310 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14311 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
14312 | as_fn_error () |
14313 | { | |
d0ac1c44 SM |
14314 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14315 | if test "$4"; then | |
14316 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14317 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13b2be9c | 14318 | fi |
d0ac1c44 | 14319 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
14320 | as_fn_exit $as_status |
14321 | } # as_fn_error | |
14322 | ||
14323 | ||
14324 | # as_fn_set_status STATUS | |
14325 | # ----------------------- | |
14326 | # Set $? to STATUS, without forking. | |
14327 | as_fn_set_status () | |
14328 | { | |
14329 | return $1 | |
14330 | } # as_fn_set_status | |
14331 | ||
14332 | # as_fn_exit STATUS | |
14333 | # ----------------- | |
14334 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14335 | as_fn_exit () | |
14336 | { | |
14337 | set +e | |
14338 | as_fn_set_status $1 | |
14339 | exit $1 | |
14340 | } # as_fn_exit | |
14341 | ||
14342 | # as_fn_unset VAR | |
14343 | # --------------- | |
14344 | # Portably unset VAR. | |
14345 | as_fn_unset () | |
14346 | { | |
14347 | { eval $1=; unset $1;} | |
14348 | } | |
14349 | as_unset=as_fn_unset | |
14350 | # as_fn_append VAR VALUE | |
14351 | # ---------------------- | |
14352 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14353 | # advantage of any shell optimizations that allow amortized linear growth over | |
14354 | # repeated appends, instead of the typical quadratic growth present in naive | |
14355 | # implementations. | |
14356 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14357 | eval 'as_fn_append () | |
14358 | { | |
14359 | eval $1+=\$2 | |
14360 | }' | |
14361 | else | |
14362 | as_fn_append () | |
14363 | { | |
14364 | eval $1=\$$1\$2 | |
14365 | } | |
14366 | fi # as_fn_append | |
14367 | ||
14368 | # as_fn_arith ARG... | |
14369 | # ------------------ | |
14370 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14371 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14372 | # must be portable across $(()) and expr. | |
14373 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14374 | eval 'as_fn_arith () | |
14375 | { | |
14376 | as_val=$(( $* )) | |
14377 | }' | |
14378 | else | |
14379 | as_fn_arith () | |
14380 | { | |
14381 | as_val=`expr "$@" || test $? -eq 1` | |
14382 | } | |
14383 | fi # as_fn_arith | |
14384 | ||
13b2be9c | 14385 | |
81ecdfbb RW |
14386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
14388 | as_expr=expr |
14389 | else | |
14390 | as_expr=false | |
14391 | fi | |
14392 | ||
81ecdfbb | 14393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
14394 | as_basename=basename |
14395 | else | |
14396 | as_basename=false | |
14397 | fi | |
14398 | ||
81ecdfbb RW |
14399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14400 | as_dirname=dirname | |
14401 | else | |
14402 | as_dirname=false | |
14403 | fi | |
13b2be9c | 14404 | |
81ecdfbb | 14405 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
14406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14407 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14409 | $as_echo X/"$0" | | |
14410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14411 | s//\1/ | |
14412 | q | |
14413 | } | |
14414 | /^X\/\(\/\/\)$/{ | |
14415 | s//\1/ | |
14416 | q | |
14417 | } | |
14418 | /^X\/\(\/\).*/{ | |
14419 | s//\1/ | |
14420 | q | |
14421 | } | |
14422 | s/.*/./; q'` | |
13b2be9c | 14423 | |
13b2be9c DJ |
14424 | # Avoid depending upon Character Ranges. |
14425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14428 | as_cr_digits='0123456789' | |
14429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14430 | ||
81ecdfbb RW |
14431 | ECHO_C= ECHO_N= ECHO_T= |
14432 | case `echo -n x` in #((((( | |
14433 | -n*) | |
14434 | case `echo 'xy\c'` in | |
14435 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14436 | xy) ECHO_C='\c';; | |
14437 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14438 | ECHO_T=' ';; | |
14439 | esac;; | |
14440 | *) | |
14441 | ECHO_N='-n';; | |
13b2be9c | 14442 | esac |
252b5132 | 14443 | |
81ecdfbb RW |
14444 | rm -f conf$$ conf$$.exe conf$$.file |
14445 | if test -d conf$$.dir; then | |
14446 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 14447 | else |
81ecdfbb RW |
14448 | rm -f conf$$.dir |
14449 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 14450 | fi |
81ecdfbb RW |
14451 | if (echo >conf$$.file) 2>/dev/null; then |
14452 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 14453 | as_ln_s='ln -s' |
81ecdfbb RW |
14454 | # ... but there are two gotchas: |
14455 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14456 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 14457 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 14458 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 14459 | as_ln_s='cp -pR' |
81ecdfbb RW |
14460 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14461 | as_ln_s=ln | |
14462 | else | |
d0ac1c44 | 14463 | as_ln_s='cp -pR' |
13b2be9c | 14464 | fi |
13b2be9c | 14465 | else |
d0ac1c44 | 14466 | as_ln_s='cp -pR' |
252b5132 | 14467 | fi |
81ecdfbb RW |
14468 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14469 | rmdir conf$$.dir 2>/dev/null | |
252b5132 | 14470 | |
81ecdfbb RW |
14471 | |
14472 | # as_fn_mkdir_p | |
14473 | # ------------- | |
14474 | # Create "$as_dir" as a directory, including parents if necessary. | |
14475 | as_fn_mkdir_p () | |
14476 | { | |
14477 | ||
14478 | case $as_dir in #( | |
14479 | -*) as_dir=./$as_dir;; | |
14480 | esac | |
14481 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14482 | as_dirs= | |
14483 | while :; do | |
14484 | case $as_dir in #( | |
14485 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14486 | *) as_qdir=$as_dir;; | |
14487 | esac | |
14488 | as_dirs="'$as_qdir' $as_dirs" | |
14489 | as_dir=`$as_dirname -- "$as_dir" || | |
14490 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14491 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14492 | X"$as_dir" : 'X\(//\)$' \| \ | |
14493 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14494 | $as_echo X"$as_dir" | | |
14495 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14496 | s//\1/ | |
14497 | q | |
14498 | } | |
14499 | /^X\(\/\/\)[^/].*/{ | |
14500 | s//\1/ | |
14501 | q | |
14502 | } | |
14503 | /^X\(\/\/\)$/{ | |
14504 | s//\1/ | |
14505 | q | |
14506 | } | |
14507 | /^X\(\/\).*/{ | |
14508 | s//\1/ | |
14509 | q | |
14510 | } | |
14511 | s/.*/./; q'` | |
14512 | test -d "$as_dir" && break | |
14513 | done | |
14514 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 14515 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
14516 | |
14517 | ||
14518 | } # as_fn_mkdir_p | |
13b2be9c | 14519 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14520 | as_mkdir_p='mkdir -p "$as_dir"' |
252b5132 | 14521 | else |
ab509236 | 14522 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
14523 | as_mkdir_p=false |
14524 | fi | |
81ecdfbb | 14525 | |
d0ac1c44 SM |
14526 | |
14527 | # as_fn_executable_p FILE | |
14528 | # ----------------------- | |
14529 | # Test if FILE is an executable regular file. | |
14530 | as_fn_executable_p () | |
14531 | { | |
14532 | test -f "$1" && test -x "$1" | |
14533 | } # as_fn_executable_p | |
14534 | as_test_x='test -x' | |
14535 | as_executable_p=as_fn_executable_p | |
252b5132 | 14536 | |
13b2be9c | 14537 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 14538 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14539 | |
13b2be9c | 14540 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 14541 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14542 | |
d6d788bd | 14543 | |
13b2be9c | 14544 | exec 6>&1 |
81ecdfbb RW |
14545 | ## ----------------------------------- ## |
14546 | ## Main body of $CONFIG_STATUS script. ## | |
14547 | ## ----------------------------------- ## | |
14548 | _ASEOF | |
14549 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
252b5132 | 14550 | |
81ecdfbb RW |
14551 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14552 | # Save the log message, to keep $0 and so on meaningful, and to | |
13b2be9c | 14553 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14554 | # values after options handling. |
14555 | ac_log=" | |
346d80ef | 14556 | This file was extended by gas $as_me 2.37.50, which was |
d0ac1c44 | 14557 | generated by GNU Autoconf 2.69. Invocation command line was |
d6d788bd | 14558 | |
13b2be9c DJ |
14559 | CONFIG_FILES = $CONFIG_FILES |
14560 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14561 | CONFIG_LINKS = $CONFIG_LINKS | |
14562 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14563 | $ $0 $@ | |
252b5132 | 14564 | |
81ecdfbb RW |
14565 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14566 | " | |
14567 | ||
13b2be9c | 14568 | _ACEOF |
252b5132 | 14569 | |
81ecdfbb RW |
14570 | case $ac_config_files in *" |
14571 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14572 | esac | |
13b2be9c | 14573 | |
81ecdfbb RW |
14574 | case $ac_config_headers in *" |
14575 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14576 | esac | |
252b5132 | 14577 | |
252b5132 | 14578 | |
81ecdfbb RW |
14579 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14580 | # Files that config.status was made for. | |
14581 | config_files="$ac_config_files" | |
14582 | config_headers="$ac_config_headers" | |
14583 | config_commands="$ac_config_commands" | |
d6d788bd | 14584 | |
81ecdfbb | 14585 | _ACEOF |
252b5132 | 14586 | |
81ecdfbb | 14587 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 14588 | ac_cs_usage="\ |
81ecdfbb RW |
14589 | \`$as_me' instantiates files and other configuration actions |
14590 | from templates according to the current configuration. Unless the files | |
14591 | and actions are specified as TAGs, all are instantiated by default. | |
252b5132 | 14592 | |
81ecdfbb | 14593 | Usage: $0 [OPTION]... [TAG]... |
252b5132 | 14594 | |
13b2be9c | 14595 | -h, --help print this help, then exit |
81ecdfbb | 14596 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 14597 | --config print configuration, then exit |
81ecdfbb RW |
14598 | -q, --quiet, --silent |
14599 | do not print progress messages | |
13b2be9c DJ |
14600 | -d, --debug don't remove temporary files |
14601 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14602 | --file=FILE[:TEMPLATE] |
14603 | instantiate the configuration file FILE | |
14604 | --header=FILE[:TEMPLATE] | |
14605 | instantiate the configuration header FILE | |
252b5132 | 14606 | |
13b2be9c DJ |
14607 | Configuration files: |
14608 | $config_files | |
252b5132 | 14609 | |
13b2be9c DJ |
14610 | Configuration headers: |
14611 | $config_headers | |
252b5132 | 14612 | |
13b2be9c DJ |
14613 | Configuration commands: |
14614 | $config_commands | |
252b5132 | 14615 | |
81ecdfbb | 14616 | Report bugs to the package provider." |
d6d788bd | 14617 | |
81ecdfbb RW |
14618 | _ACEOF |
14619 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 14620 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13b2be9c | 14621 | ac_cs_version="\\ |
346d80ef | 14622 | gas config.status 2.37.50 |
d0ac1c44 SM |
14623 | configured by $0, generated by GNU Autoconf 2.69, |
14624 | with options \\"\$ac_cs_config\\" | |
d6d788bd | 14625 | |
d0ac1c44 | 14626 | Copyright (C) 2012 Free Software Foundation, Inc. |
13b2be9c DJ |
14627 | This config.status script is free software; the Free Software Foundation |
14628 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14629 | |
14630 | ac_pwd='$ac_pwd' | |
14631 | srcdir='$srcdir' | |
14632 | INSTALL='$INSTALL' | |
14633 | MKDIR_P='$MKDIR_P' | |
14634 | AWK='$AWK' | |
14635 | test -n "\$AWK" || AWK=awk | |
13b2be9c | 14636 | _ACEOF |
d6d788bd | 14637 | |
81ecdfbb RW |
14638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14639 | # The default lists apply if the user does not specify any file. | |
13b2be9c DJ |
14640 | ac_need_defaults=: |
14641 | while test $# != 0 | |
14642 | do | |
14643 | case $1 in | |
d0ac1c44 | 14644 | --*=?*) |
81ecdfbb RW |
14645 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14646 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13b2be9c | 14647 | ac_shift=: |
c8615825 | 14648 | ;; |
d0ac1c44 SM |
14649 | --*=) |
14650 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14651 | ac_optarg= | |
14652 | ac_shift=: | |
14653 | ;; | |
81ecdfbb | 14654 | *) |
13b2be9c DJ |
14655 | ac_option=$1 |
14656 | ac_optarg=$2 | |
14657 | ac_shift=shift | |
c8615825 | 14658 | ;; |
13b2be9c | 14659 | esac |
252b5132 | 14660 | |
13b2be9c DJ |
14661 | case $ac_option in |
14662 | # Handling of the options. | |
13b2be9c DJ |
14663 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14664 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
14665 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14666 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
14667 | --config | --confi | --conf | --con | --co | --c ) |
14668 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 14669 | --debug | --debu | --deb | --de | --d | -d ) |
13b2be9c DJ |
14670 | debug=: ;; |
14671 | --file | --fil | --fi | --f ) | |
14672 | $ac_shift | |
81ecdfbb RW |
14673 | case $ac_optarg in |
14674 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 14675 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
14676 | esac |
14677 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13b2be9c DJ |
14678 | ac_need_defaults=false;; |
14679 | --header | --heade | --head | --hea ) | |
14680 | $ac_shift | |
81ecdfbb RW |
14681 | case $ac_optarg in |
14682 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14683 | esac | |
14684 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13b2be9c | 14685 | ac_need_defaults=false;; |
81ecdfbb RW |
14686 | --he | --h) |
14687 | # Conflict between --help and --header | |
d0ac1c44 | 14688 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
14689 | Try \`$0 --help' for more information.";; |
14690 | --help | --hel | -h ) | |
14691 | $as_echo "$ac_cs_usage"; exit ;; | |
13b2be9c DJ |
14692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14693 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14694 | ac_cs_silent=: ;; | |
c8615825 | 14695 | |
13b2be9c | 14696 | # This is an error. |
d0ac1c44 | 14697 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 14698 | Try \`$0 --help' for more information." ;; |
252b5132 | 14699 | |
81ecdfbb RW |
14700 | *) as_fn_append ac_config_targets " $1" |
14701 | ac_need_defaults=false ;; | |
252b5132 | 14702 | |
13b2be9c DJ |
14703 | esac |
14704 | shift | |
14705 | done | |
252b5132 | 14706 | |
13b2be9c | 14707 | ac_configure_extra_args= |
d6d788bd | 14708 | |
13b2be9c DJ |
14709 | if $ac_cs_silent; then |
14710 | exec 6>/dev/null | |
14711 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14712 | fi | |
9b2b7d69 | 14713 | |
13b2be9c | 14714 | _ACEOF |
81ecdfbb | 14715 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13b2be9c | 14716 | if \$ac_cs_recheck; then |
d0ac1c44 | 14717 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
14718 | shift |
14719 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14720 | CONFIG_SHELL='$SHELL' | |
14721 | export CONFIG_SHELL | |
14722 | exec "\$@" | |
13b2be9c DJ |
14723 | fi |
14724 | ||
14725 | _ACEOF | |
81ecdfbb RW |
14726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14727 | exec 5>>config.log | |
14728 | { | |
14729 | echo | |
14730 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14731 | ## Running $as_me. ## | |
14732 | _ASBOX | |
14733 | $as_echo "$ac_log" | |
14734 | } >&5 | |
13b2be9c | 14735 | |
81ecdfbb RW |
14736 | _ACEOF |
14737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9b2b7d69 | 14738 | # |
81ecdfbb | 14739 | # INIT-COMMANDS |
9b2b7d69 | 14740 | # |
13b2be9c | 14741 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
14742 | |
14743 | ||
14744 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14745 | # if CDPATH is set. | |
14746 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14747 | ||
14748 | sed_quote_subst='$sed_quote_subst' | |
14749 | double_quote_subst='$double_quote_subst' | |
14750 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
14751 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
14752 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14753 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14754 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14755 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14756 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14757 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14758 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14759 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14760 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14761 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14762 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14763 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14764 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14765 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14766 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14767 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14768 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14769 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14770 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14771 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14772 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14773 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14774 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14775 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14776 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14777 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14778 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14779 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14780 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14781 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14782 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14783 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14784 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14785 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14786 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14787 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14788 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14789 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14790 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14791 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14792 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14793 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14794 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14795 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14796 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14797 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14798 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14799 | 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"`' | |
14800 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14801 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14802 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
df7b86aa | 14803 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
f2c621e4 | 14804 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
14805 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
14806 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14807 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14808 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14809 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14810 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14811 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14812 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14813 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14814 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14815 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14816 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14817 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14818 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14819 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14820 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14821 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14822 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14823 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14824 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14825 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14826 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14827 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14828 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14829 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14830 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14831 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14832 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14833 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14834 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14835 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14836 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14837 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14838 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14839 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
f2c621e4 | 14840 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
3725885a RW |
14841 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
14842 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14843 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14844 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14845 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14846 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14847 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14848 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14849 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14850 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14851 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14852 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14853 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14854 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14855 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14856 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14857 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14858 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14859 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14860 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14861 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14862 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14863 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
14864 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
14865 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
14866 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14867 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14868 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14869 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14870 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
14871 | |
14872 | LTCC='$LTCC' | |
14873 | LTCFLAGS='$LTCFLAGS' | |
14874 | compiler='$compiler_DEFAULT' | |
14875 | ||
3725885a RW |
14876 | # A function that is used when there is no print builtin or printf. |
14877 | func_fallback_echo () | |
14878 | { | |
14879 | eval 'cat <<_LTECHO_EOF | |
14880 | \$1 | |
14881 | _LTECHO_EOF' | |
14882 | } | |
14883 | ||
d7040cdb | 14884 | # Quote evaled strings. |
3725885a RW |
14885 | for var in SHELL \ |
14886 | ECHO \ | |
14887 | SED \ | |
d7040cdb SE |
14888 | GREP \ |
14889 | EGREP \ | |
14890 | FGREP \ | |
14891 | LD \ | |
14892 | NM \ | |
14893 | LN_S \ | |
14894 | lt_SP2NL \ | |
14895 | lt_NL2SP \ | |
14896 | reload_flag \ | |
718a6fd8 | 14897 | OBJDUMP \ |
d7040cdb SE |
14898 | deplibs_check_method \ |
14899 | file_magic_cmd \ | |
14900 | AR \ | |
14901 | AR_FLAGS \ | |
14902 | STRIP \ | |
14903 | RANLIB \ | |
14904 | CC \ | |
14905 | CFLAGS \ | |
14906 | compiler \ | |
14907 | lt_cv_sys_global_symbol_pipe \ | |
14908 | lt_cv_sys_global_symbol_to_cdecl \ | |
14909 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 14910 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb | 14911 | lt_prog_compiler_no_builtin_flag \ |
df7b86aa | 14912 | lt_prog_compiler_wl \ |
f2c621e4 | 14913 | lt_prog_compiler_pic \ |
d7040cdb SE |
14914 | lt_prog_compiler_static \ |
14915 | lt_cv_prog_compiler_c_o \ | |
14916 | need_locks \ | |
718a6fd8 SE |
14917 | DSYMUTIL \ |
14918 | NMEDIT \ | |
14919 | LIPO \ | |
14920 | OTOOL \ | |
14921 | OTOOL64 \ | |
d7040cdb SE |
14922 | shrext_cmds \ |
14923 | export_dynamic_flag_spec \ | |
14924 | whole_archive_flag_spec \ | |
14925 | compiler_needs_object \ | |
14926 | with_gnu_ld \ | |
14927 | allow_undefined_flag \ | |
14928 | no_undefined_flag \ | |
14929 | hardcode_libdir_flag_spec \ | |
14930 | hardcode_libdir_flag_spec_ld \ | |
14931 | hardcode_libdir_separator \ | |
f2c621e4 | 14932 | fix_srcfile_path \ |
d7040cdb SE |
14933 | exclude_expsyms \ |
14934 | include_expsyms \ | |
14935 | file_list_spec \ | |
14936 | variables_saved_for_relink \ | |
14937 | libname_spec \ | |
14938 | library_names_spec \ | |
14939 | soname_spec \ | |
3725885a | 14940 | install_override_mode \ |
d7040cdb SE |
14941 | finish_eval \ |
14942 | old_striplib \ | |
14943 | striplib; do | |
3725885a | 14944 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 14945 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 14946 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
14947 | ;; |
14948 | *) | |
14949 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14950 | ;; | |
14951 | esac | |
14952 | done | |
14953 | ||
14954 | # Double-quote double-evaled strings. | |
14955 | for var in reload_cmds \ | |
14956 | old_postinstall_cmds \ | |
14957 | old_postuninstall_cmds \ | |
14958 | old_archive_cmds \ | |
14959 | extract_expsyms_cmds \ | |
14960 | old_archive_from_new_cmds \ | |
14961 | old_archive_from_expsyms_cmds \ | |
14962 | archive_cmds \ | |
14963 | archive_expsym_cmds \ | |
14964 | module_cmds \ | |
14965 | module_expsym_cmds \ | |
14966 | export_symbols_cmds \ | |
14967 | prelink_cmds \ | |
14968 | postinstall_cmds \ | |
14969 | postuninstall_cmds \ | |
14970 | finish_cmds \ | |
14971 | sys_lib_search_path_spec \ | |
14972 | sys_lib_dlsearch_path_spec; do | |
3725885a | 14973 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 14974 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 14975 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
14976 | ;; |
14977 | *) | |
14978 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14979 | ;; | |
14980 | esac | |
14981 | done | |
14982 | ||
d7040cdb SE |
14983 | ac_aux_dir='$ac_aux_dir' |
14984 | xsi_shell='$xsi_shell' | |
14985 | lt_shell_append='$lt_shell_append' | |
14986 | ||
14987 | # See if we are running on zsh, and set the options which allow our | |
14988 | # commands through without removal of \ escapes INIT. | |
14989 | if test -n "\${ZSH_VERSION+set}" ; then | |
14990 | setopt NO_GLOB_SUBST | |
14991 | fi | |
14992 | ||
14993 | ||
14994 | PACKAGE='$PACKAGE' | |
14995 | VERSION='$VERSION' | |
14996 | TIMESTAMP='$TIMESTAMP' | |
14997 | RM='$RM' | |
14998 | ofile='$ofile' | |
14999 | ||
15000 | ||
15001 | ||
20e95c23 DJ |
15002 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15003 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15004 | # from automake. | |
15005 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15006 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15007 | LINGUAS="${LINGUAS-%UNSET%}" | |
15008 | ||
13b2be9c DJ |
15009 | target_cpu_type=${target_cpu_type} |
15010 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15011 | obj_format=${obj_format} | |
15012 | te_file=${te_file} | |
15013 | ||
15014 | _ACEOF | |
15015 | ||
81ecdfbb | 15016 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 15017 | |
81ecdfbb | 15018 | # Handling of arguments. |
13b2be9c | 15019 | for ac_config_target in $ac_config_targets |
9b2b7d69 | 15020 | do |
81ecdfbb RW |
15021 | case $ac_config_target in |
15022 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15023 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15024 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15025 | "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15026 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15027 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15028 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15029 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15030 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15031 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15032 | ||
d0ac1c44 | 15033 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9b2b7d69 MM |
15034 | esac |
15035 | done | |
15036 | ||
81ecdfbb | 15037 | |
13b2be9c DJ |
15038 | # If the user did not use the arguments to specify the items to instantiate, |
15039 | # then the envvar interface is used. Set only those that are not. | |
15040 | # We use the long form for the default assignment because of an extremely | |
15041 | # bizarre bug on SunOS 4.1.3. | |
15042 | if $ac_need_defaults; then | |
15043 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15044 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15045 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15046 | fi | |
15047 | ||
15048 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15049 | # simply because there is no reason against having it here, and in addition, |
13b2be9c | 15050 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15051 | # Hook for its removal unless debugging. |
15052 | # Note that there is a small window in which the directory will not be cleaned: | |
15053 | # after its creation but before its name has been assigned to `$tmp'. | |
13b2be9c DJ |
15054 | $debug || |
15055 | { | |
d0ac1c44 | 15056 | tmp= ac_tmp= |
81ecdfbb | 15057 | trap 'exit_status=$? |
d0ac1c44 SM |
15058 | : "${ac_tmp:=$tmp}" |
15059 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15060 | ' 0 |
15061 | trap 'as_fn_exit 1' 1 2 13 15 | |
13b2be9c | 15062 | } |
13b2be9c | 15063 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 15064 | |
13b2be9c | 15065 | { |
81ecdfbb | 15066 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15067 | test -d "$tmp" |
13b2be9c DJ |
15068 | } || |
15069 | { | |
81ecdfbb RW |
15070 | tmp=./conf$$-$RANDOM |
15071 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15072 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15073 | ac_tmp=$tmp | |
81ecdfbb RW |
15074 | |
15075 | # Set up the scripts for CONFIG_FILES section. | |
15076 | # No need to generate them if there are no CONFIG_FILES. | |
15077 | # This happens for instance with `./config.status config.h'. | |
15078 | if test -n "$CONFIG_FILES"; then | |
15079 | ||
15080 | ||
15081 | ac_cr=`echo X | tr X '\015'` | |
15082 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15083 | # But we know of no other shell where ac_cr would be empty at this | |
15084 | # point, so we can use a bashism as a fallback. | |
15085 | if test "x$ac_cr" = x; then | |
15086 | eval ac_cr=\$\'\\r\' | |
15087 | fi | |
15088 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15089 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15090 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15091 | else |
15092 | ac_cs_awk_cr=$ac_cr | |
15093 | fi | |
15094 | ||
d0ac1c44 | 15095 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15096 | _ACEOF |
15097 | ||
15098 | ||
15099 | { | |
15100 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15101 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15102 | echo "_ACEOF" | |
15103 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15104 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15105 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15106 | ac_delim='%!_!# ' |
15107 | for ac_last_try in false false false false false :; do | |
15108 | . ./conf$$subs.sh || | |
d0ac1c44 | 15109 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15110 | |
15111 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15112 | if test $ac_delim_n = $ac_delim_num; then | |
15113 | break | |
15114 | elif $ac_last_try; then | |
d0ac1c44 | 15115 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15116 | else |
15117 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15118 | fi | |
15119 | done | |
15120 | rm -f conf$$subs.sh | |
15121 | ||
15122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15123 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
15124 | _ACEOF |
15125 | sed -n ' | |
15126 | h | |
15127 | s/^/S["/; s/!.*/"]=/ | |
15128 | p | |
15129 | g | |
15130 | s/^[^!]*!// | |
15131 | :repl | |
15132 | t repl | |
15133 | s/'"$ac_delim"'$// | |
15134 | t delim | |
15135 | :nl | |
15136 | h | |
d0ac1c44 | 15137 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15138 | t more1 |
15139 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15140 | p | |
15141 | n | |
15142 | b repl | |
15143 | :more1 | |
15144 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15145 | p | |
15146 | g | |
15147 | s/.\{148\}// | |
15148 | t nl | |
15149 | :delim | |
15150 | h | |
d0ac1c44 | 15151 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15152 | t more2 |
15153 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15154 | p | |
15155 | b | |
15156 | :more2 | |
15157 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15158 | p | |
15159 | g | |
15160 | s/.\{148\}// | |
15161 | t delim | |
15162 | ' <conf$$subs.awk | sed ' | |
15163 | /^[^""]/{ | |
15164 | N | |
15165 | s/\n// | |
15166 | } | |
15167 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15168 | rm -f conf$$subs.awk | |
15169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15170 | _ACAWK | |
d0ac1c44 | 15171 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15172 | for (key in S) S_is_set[key] = 1 |
15173 | FS = "\a" | |
15174 | ||
15175 | } | |
13b2be9c | 15176 | { |
81ecdfbb RW |
15177 | line = $ 0 |
15178 | nfields = split(line, field, "@") | |
15179 | substed = 0 | |
15180 | len = length(field[1]) | |
15181 | for (i = 2; i < nfields; i++) { | |
15182 | key = field[i] | |
15183 | keylen = length(key) | |
15184 | if (S_is_set[key]) { | |
15185 | value = S[key] | |
15186 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15187 | len += length(value) + length(field[++i]) | |
15188 | substed = 1 | |
15189 | } else | |
15190 | len += 1 + keylen | |
15191 | } | |
15192 | ||
15193 | print line | |
13b2be9c | 15194 | } |
9b2b7d69 | 15195 | |
81ecdfbb RW |
15196 | _ACAWK |
15197 | _ACEOF | |
15198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15199 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15200 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15201 | else | |
15202 | cat | |
d0ac1c44 SM |
15203 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15204 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
13b2be9c DJ |
15205 | _ACEOF |
15206 | ||
d0ac1c44 SM |
15207 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15208 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15209 | # trailing colons and then remove the whole line if VPATH becomes empty |
15210 | # (actually we leave an empty line to preserve line numbers). | |
15211 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15212 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15213 | h | |
15214 | s/// | |
15215 | s/^/:/ | |
15216 | s/[ ]*$/:/ | |
15217 | s/:\$(srcdir):/:/g | |
15218 | s/:\${srcdir}:/:/g | |
15219 | s/:@srcdir@:/:/g | |
15220 | s/^:*// | |
81ecdfbb | 15221 | s/:*$// |
d0ac1c44 SM |
15222 | x |
15223 | s/\(=[ ]*\).*/\1/ | |
15224 | G | |
15225 | s/\n// | |
81ecdfbb RW |
15226 | s/^[^=]*=[ ]*$// |
15227 | }' | |
15228 | fi | |
15229 | ||
15230 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15231 | fi # test -n "$CONFIG_FILES" | |
13b2be9c | 15232 | |
81ecdfbb RW |
15233 | # Set up the scripts for CONFIG_HEADERS section. |
15234 | # No need to generate them if there are no CONFIG_HEADERS. | |
15235 | # This happens for instance with `./config.status Makefile'. | |
15236 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 15237 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb RW |
15238 | BEGIN { |
15239 | _ACEOF | |
13b2be9c | 15240 | |
81ecdfbb RW |
15241 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15242 | # here-document in config.status, that substitutes the proper values into | |
15243 | # config.h.in to produce config.h. | |
9b2b7d69 | 15244 | |
81ecdfbb RW |
15245 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15246 | # handling of long lines. | |
15247 | ac_delim='%!_!# ' | |
15248 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
15249 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15250 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
15251 | break |
15252 | elif $ac_last_try; then | |
d0ac1c44 | 15253 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
15254 | else |
15255 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15256 | fi | |
15257 | done | |
15258 | ||
15259 | # For the awk script, D is an array of macro values keyed by name, | |
15260 | # likewise P contains macro parameters if any. Preserve backslash | |
15261 | # newline sequences. | |
15262 | ||
15263 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15264 | sed -n ' | |
15265 | s/.\{148\}/&'"$ac_delim"'/g | |
15266 | t rset | |
15267 | :rset | |
15268 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15269 | t def | |
15270 | d | |
15271 | :def | |
15272 | s/\\$// | |
15273 | t bsnl | |
15274 | s/["\\]/\\&/g | |
15275 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15276 | D["\1"]=" \3"/p | |
15277 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15278 | d | |
15279 | :bsnl | |
15280 | s/["\\]/\\&/g | |
15281 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15282 | D["\1"]=" \3\\\\\\n"\\/p | |
15283 | t cont | |
15284 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15285 | t cont | |
15286 | d | |
15287 | :cont | |
15288 | n | |
15289 | s/.\{148\}/&'"$ac_delim"'/g | |
15290 | t clear | |
15291 | :clear | |
15292 | s/\\$// | |
15293 | t bsnlc | |
15294 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15295 | d | |
15296 | :bsnlc | |
15297 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15298 | b cont | |
15299 | ' <confdefs.h | sed ' | |
15300 | s/'"$ac_delim"'/"\\\ | |
15301 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15302 | ||
15303 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15304 | for (key in D) D_is_set[key] = 1 | |
15305 | FS = "\a" | |
15306 | } | |
15307 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15308 | line = \$ 0 | |
15309 | split(line, arg, " ") | |
15310 | if (arg[1] == "#") { | |
15311 | defundef = arg[2] | |
15312 | mac1 = arg[3] | |
15313 | } else { | |
15314 | defundef = substr(arg[1], 2) | |
15315 | mac1 = arg[2] | |
15316 | } | |
15317 | split(mac1, mac2, "(") #) | |
15318 | macro = mac2[1] | |
15319 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15320 | if (D_is_set[macro]) { | |
15321 | # Preserve the white space surrounding the "#". | |
15322 | print prefix "define", macro P[macro] D[macro] | |
15323 | next | |
15324 | } else { | |
15325 | # Replace #undef with comments. This is necessary, for example, | |
15326 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15327 | # on some systems where configure will not decide to define it. | |
15328 | if (defundef == "undef") { | |
15329 | print "/*", prefix defundef, macro, "*/" | |
15330 | next | |
15331 | } | |
15332 | } | |
15333 | } | |
15334 | { print } | |
15335 | _ACAWK | |
13b2be9c | 15336 | _ACEOF |
81ecdfbb | 15337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 15338 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb | 15339 | fi # test -n "$CONFIG_HEADERS" |
13b2be9c | 15340 | |
81ecdfbb RW |
15341 | |
15342 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15343 | shift | |
15344 | for ac_tag | |
15345 | do | |
15346 | case $ac_tag in | |
15347 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15348 | esac | |
15349 | case $ac_mode$ac_tag in | |
15350 | :[FHL]*:*);; | |
d0ac1c44 | 15351 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15352 | :[FH]-) ac_tag=-:-;; |
15353 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15354 | esac | |
15355 | ac_save_IFS=$IFS | |
15356 | IFS=: | |
15357 | set x $ac_tag | |
15358 | IFS=$ac_save_IFS | |
15359 | shift | |
15360 | ac_file=$1 | |
15361 | shift | |
15362 | ||
15363 | case $ac_mode in | |
15364 | :L) ac_source=$1;; | |
15365 | :[FH]) | |
15366 | ac_file_inputs= | |
15367 | for ac_f | |
15368 | do | |
15369 | case $ac_f in | |
d0ac1c44 | 15370 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15371 | *) # Look for the file first in the build tree, then in the source tree |
15372 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15373 | # because $ac_f cannot contain `:'. | |
15374 | test -f "$ac_f" || | |
15375 | case $ac_f in | |
15376 | [\\/$]*) false;; | |
15377 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15378 | esac || | |
d0ac1c44 | 15379 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15380 | esac |
15381 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15382 | as_fn_append ac_file_inputs " '$ac_f'" | |
15383 | done | |
15384 | ||
15385 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15386 | # use $as_me), people would be surprised to read: | |
15387 | # /* config.h. Generated by config.status. */ | |
15388 | configure_input='Generated from '` | |
15389 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15390 | `' by configure.' | |
15391 | if test x"$ac_file" != x-; then | |
15392 | configure_input="$ac_file. $configure_input" | |
15393 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15394 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9b2b7d69 | 15395 | fi |
81ecdfbb RW |
15396 | # Neutralize special characters interpreted by sed in replacement strings. |
15397 | case $configure_input in #( | |
15398 | *\&* | *\|* | *\\* ) | |
15399 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15400 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15401 | *) ac_sed_conf_input=$configure_input;; | |
15402 | esac | |
252b5132 | 15403 | |
81ecdfbb | 15404 | case $ac_tag in |
d0ac1c44 SM |
15405 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15406 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15407 | esac |
15408 | ;; | |
252b5132 | 15409 | esac |
9b2b7d69 | 15410 | |
81ecdfbb | 15411 | ac_dir=`$as_dirname -- "$ac_file" || |
13b2be9c | 15412 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15413 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15414 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15415 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15416 | $as_echo X"$ac_file" | | |
15417 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15418 | s//\1/ | |
15419 | q | |
15420 | } | |
15421 | /^X\(\/\/\)[^/].*/{ | |
15422 | s//\1/ | |
15423 | q | |
15424 | } | |
15425 | /^X\(\/\/\)$/{ | |
15426 | s//\1/ | |
15427 | q | |
15428 | } | |
15429 | /^X\(\/\).*/{ | |
15430 | s//\1/ | |
15431 | q | |
15432 | } | |
15433 | s/.*/./; q'` | |
15434 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13b2be9c DJ |
15435 | ac_builddir=. |
15436 | ||
81ecdfbb RW |
15437 | case "$ac_dir" in |
15438 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15439 | *) | |
15440 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15441 | # A ".." for each directory in $ac_dir_suffix. | |
15442 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15443 | case $ac_top_builddir_sub in | |
15444 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15445 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15446 | esac ;; | |
15447 | esac | |
15448 | ac_abs_top_builddir=$ac_pwd | |
15449 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15450 | # for backward compatibility: | |
15451 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 15452 | |
13b2be9c | 15453 | case $srcdir in |
81ecdfbb | 15454 | .) # We are building in place. |
13b2be9c | 15455 | ac_srcdir=. |
81ecdfbb RW |
15456 | ac_top_srcdir=$ac_top_builddir_sub |
15457 | ac_abs_top_srcdir=$ac_pwd ;; | |
15458 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 15459 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15460 | ac_top_srcdir=$srcdir |
15461 | ac_abs_top_srcdir=$srcdir ;; | |
15462 | *) # Relative name. | |
15463 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15464 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15465 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13b2be9c | 15466 | esac |
81ecdfbb | 15467 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ab509236 | 15468 | |
252b5132 | 15469 | |
81ecdfbb RW |
15470 | case $ac_mode in |
15471 | :F) | |
15472 | # | |
15473 | # CONFIG_FILE | |
15474 | # | |
9b2b7d69 | 15475 | |
13b2be9c DJ |
15476 | case $INSTALL in |
15477 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
15478 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15479 | esac | |
15480 | ac_MKDIR_P=$MKDIR_P | |
15481 | case $MKDIR_P in | |
15482 | [\\/$]* | ?:[\\/]* ) ;; | |
15483 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
c8615825 | 15484 | esac |
81ecdfbb | 15485 | _ACEOF |
9b2b7d69 | 15486 | |
81ecdfbb RW |
15487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15488 | # If the template does not know about datarootdir, expand it. | |
15489 | # FIXME: This hack should be removed a few years after 2.60. | |
15490 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15491 | ac_sed_dataroot=' | |
15492 | /datarootdir/ { | |
15493 | p | |
15494 | q | |
15495 | } | |
15496 | /@datadir@/p | |
15497 | /@docdir@/p | |
15498 | /@infodir@/p | |
15499 | /@localedir@/p | |
15500 | /@mandir@/p' | |
15501 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15502 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15503 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15505 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15506 | _ACEOF | |
15507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15508 | ac_datarootdir_hack=' | |
15509 | s&@datadir@&$datadir&g | |
15510 | s&@docdir@&$docdir&g | |
15511 | s&@infodir@&$infodir&g | |
15512 | s&@localedir@&$localedir&g | |
15513 | s&@mandir@&$mandir&g | |
15514 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15515 | esac | |
13b2be9c | 15516 | _ACEOF |
81ecdfbb RW |
15517 | |
15518 | # Neutralize VPATH when `$srcdir' = `.'. | |
15519 | # Shell code in configure.ac might set extrasub. | |
15520 | # FIXME: do we really want to maintain this feature? | |
15521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15522 | ac_sed_extra="$ac_vpsub | |
13b2be9c DJ |
15523 | $extrasub |
15524 | _ACEOF | |
81ecdfbb | 15525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c DJ |
15526 | :t |
15527 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15528 | s|@configure_input@|$ac_sed_conf_input|;t t |
15529 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15530 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15531 | s&@srcdir@&$ac_srcdir&;t t | |
15532 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15533 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15534 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15535 | s&@builddir@&$ac_builddir&;t t | |
15536 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15537 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15538 | s&@INSTALL@&$ac_INSTALL&;t t | |
15539 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15540 | $ac_datarootdir_hack | |
15541 | " | |
d0ac1c44 SM |
15542 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15543 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15544 | |
15545 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15546 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15547 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15548 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15550 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15551 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15552 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15553 | |
d0ac1c44 | 15554 | rm -f "$ac_tmp/stdin" |
13b2be9c | 15555 | case $ac_file in |
d0ac1c44 SM |
15556 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15557 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15558 | esac \ |
d0ac1c44 | 15559 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
15560 | ;; |
15561 | :H) | |
15562 | # | |
15563 | # CONFIG_HEADER | |
15564 | # | |
13b2be9c | 15565 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
15566 | { |
15567 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
15568 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15569 | } >"$ac_tmp/config.h" \ | |
15570 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15571 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15573 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13b2be9c | 15574 | else |
81ecdfbb | 15575 | rm -f "$ac_file" |
d0ac1c44 SM |
15576 | mv "$ac_tmp/config.h" "$ac_file" \ |
15577 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9b2b7d69 | 15578 | fi |
13b2be9c | 15579 | else |
81ecdfbb | 15580 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
15581 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15582 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
9b2b7d69 | 15583 | fi |
81ecdfbb RW |
15584 | # Compute "$ac_file"'s index in $config_headers. |
15585 | _am_arg="$ac_file" | |
13b2be9c DJ |
15586 | _am_stamp_count=1 |
15587 | for _am_header in $config_headers :; do | |
15588 | case $_am_header in | |
81ecdfbb | 15589 | $_am_arg | $_am_arg:* ) |
13b2be9c DJ |
15590 | break ;; |
15591 | * ) | |
15592 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15593 | esac | |
15594 | done | |
81ecdfbb RW |
15595 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
15596 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15597 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15598 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15599 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15600 | $as_echo X"$_am_arg" | | |
15601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15602 | s//\1/ | |
15603 | q | |
15604 | } | |
15605 | /^X\(\/\/\)[^/].*/{ | |
15606 | s//\1/ | |
15607 | q | |
15608 | } | |
15609 | /^X\(\/\/\)$/{ | |
15610 | s//\1/ | |
15611 | q | |
15612 | } | |
15613 | /^X\(\/\).*/{ | |
15614 | s//\1/ | |
15615 | q | |
15616 | } | |
15617 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15618 | ;; | |
ab509236 | 15619 | |
81ecdfbb RW |
15620 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15621 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15622 | ;; | |
15623 | esac | |
13b2be9c DJ |
15624 | |
15625 | ||
81ecdfbb RW |
15626 | case $ac_file$ac_mode in |
15627 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 15628 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
15629 | # are listed without --file. Let's play safe and only enable the eval |
15630 | # if we detect the quoting. | |
15631 | case $CONFIG_FILES in | |
15632 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15633 | *) set x $CONFIG_FILES ;; | |
15634 | esac | |
15635 | shift | |
15636 | for mf | |
15637 | do | |
15638 | # Strip MF so we end up with the name of the file. | |
15639 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15640 | # Check whether this is an Automake generated Makefile or not. | |
d0ac1c44 | 15641 | # We used to match only the files named 'Makefile.in', but |
81ecdfbb RW |
15642 | # some people rename them; so instead we look at the file content. |
15643 | # Grep'ing the first line is not enough: some people post-process | |
15644 | # each Makefile.in and add a new line on top of each file to say so. | |
15645 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15646 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15647 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15648 | dirpart=`$as_dirname -- "$mf" || | |
13b2be9c | 15649 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15650 | X"$mf" : 'X\(//\)[^/]' \| \ |
15651 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15652 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
15653 | $as_echo X"$mf" | | |
15654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15655 | s//\1/ | |
15656 | q | |
15657 | } | |
15658 | /^X\(\/\/\)[^/].*/{ | |
15659 | s//\1/ | |
15660 | q | |
15661 | } | |
15662 | /^X\(\/\/\)$/{ | |
15663 | s//\1/ | |
15664 | q | |
15665 | } | |
15666 | /^X\(\/\).*/{ | |
15667 | s//\1/ | |
15668 | q | |
15669 | } | |
15670 | s/.*/./; q'` | |
15671 | else | |
15672 | continue | |
15673 | fi | |
15674 | # Extract the definition of DEPDIR, am__include, and am__quote | |
d0ac1c44 | 15675 | # from the Makefile without running 'make'. |
81ecdfbb RW |
15676 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
15677 | test -z "$DEPDIR" && continue | |
15678 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d0ac1c44 | 15679 | test -z "$am__include" && continue |
81ecdfbb | 15680 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
81ecdfbb RW |
15681 | # Find all dependency output files, they are included files with |
15682 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15683 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15684 | # expansion. | |
15685 | for file in `sed -n " | |
15686 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
d0ac1c44 | 15687 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
81ecdfbb RW |
15688 | # Make sure the directory exists. |
15689 | test -f "$dirpart/$file" && continue | |
15690 | fdir=`$as_dirname -- "$file" || | |
13b2be9c | 15691 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15692 | X"$file" : 'X\(//\)[^/]' \| \ |
15693 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15694 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
15695 | $as_echo X"$file" | | |
15696 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15697 | s//\1/ | |
15698 | q | |
15699 | } | |
15700 | /^X\(\/\/\)[^/].*/{ | |
15701 | s//\1/ | |
15702 | q | |
15703 | } | |
15704 | /^X\(\/\/\)$/{ | |
15705 | s//\1/ | |
15706 | q | |
15707 | } | |
15708 | /^X\(\/\).*/{ | |
15709 | s//\1/ | |
15710 | q | |
15711 | } | |
15712 | s/.*/./; q'` | |
15713 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
15714 | # echo "creating $dirpart/$file" | |
15715 | echo '# dummy' > "$dirpart/$file" | |
13b2be9c | 15716 | done |
13b2be9c | 15717 | done |
81ecdfbb | 15718 | } |
d7040cdb | 15719 | ;; |
81ecdfbb | 15720 | "libtool":C) |
d7040cdb SE |
15721 | |
15722 | # See if we are running on zsh, and set the options which allow our | |
15723 | # commands through without removal of \ escapes. | |
15724 | if test -n "${ZSH_VERSION+set}" ; then | |
15725 | setopt NO_GLOB_SUBST | |
15726 | fi | |
15727 | ||
15728 | cfgfile="${ofile}T" | |
15729 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15730 | $RM "$cfgfile" | |
15731 | ||
15732 | cat <<_LT_EOF >> "$cfgfile" | |
15733 | #! $SHELL | |
15734 | ||
15735 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 15736 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
15737 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15738 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15739 | # | |
718a6fd8 | 15740 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
f2c621e4 | 15741 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 15742 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 15743 | # |
718a6fd8 | 15744 | # This file is part of GNU Libtool. |
d7040cdb | 15745 | # |
718a6fd8 SE |
15746 | # GNU Libtool is free software; you can redistribute it and/or |
15747 | # modify it under the terms of the GNU General Public License as | |
15748 | # published by the Free Software Foundation; either version 2 of | |
15749 | # the License, or (at your option) any later version. | |
d7040cdb | 15750 | # |
718a6fd8 SE |
15751 | # As a special exception to the GNU General Public License, |
15752 | # if you distribute this file as part of a program or library that | |
15753 | # is built using GNU Libtool, you may include this file under the | |
15754 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 15755 | # |
718a6fd8 SE |
15756 | # GNU Libtool is distributed in the hope that it will be useful, |
15757 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15758 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15759 | # GNU General Public License for more details. | |
d7040cdb | 15760 | # |
718a6fd8 SE |
15761 | # You should have received a copy of the GNU General Public License |
15762 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15763 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15764 | # obtained by writing to the Free Software Foundation, Inc., | |
15765 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
15766 | |
15767 | ||
15768 | # The names of the tagged configurations supported by this script. | |
15769 | available_tags="" | |
15770 | ||
15771 | # ### BEGIN LIBTOOL CONFIG | |
15772 | ||
15773 | # Which release of libtool.m4 was used? | |
15774 | macro_version=$macro_version | |
15775 | macro_revision=$macro_revision | |
15776 | ||
15777 | # Whether or not to build shared libraries. | |
15778 | build_libtool_libs=$enable_shared | |
15779 | ||
15780 | # Whether or not to build static libraries. | |
15781 | build_old_libs=$enable_static | |
15782 | ||
15783 | # What type of objects to build. | |
15784 | pic_mode=$pic_mode | |
15785 | ||
15786 | # Whether or not to optimize for fast installation. | |
15787 | fast_install=$enable_fast_install | |
15788 | ||
3725885a RW |
15789 | # Shell to use when invoking shell scripts. |
15790 | SHELL=$lt_SHELL | |
15791 | ||
15792 | # An echo program that protects backslashes. | |
15793 | ECHO=$lt_ECHO | |
15794 | ||
d7040cdb SE |
15795 | # The host system. |
15796 | host_alias=$host_alias | |
15797 | host=$host | |
15798 | host_os=$host_os | |
15799 | ||
15800 | # The build system. | |
15801 | build_alias=$build_alias | |
15802 | build=$build | |
15803 | build_os=$build_os | |
15804 | ||
15805 | # A sed program that does not truncate output. | |
15806 | SED=$lt_SED | |
15807 | ||
15808 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15809 | Xsed="\$SED -e 1s/^X//" | |
15810 | ||
15811 | # A grep program that handles long lines. | |
15812 | GREP=$lt_GREP | |
15813 | ||
15814 | # An ERE matcher. | |
15815 | EGREP=$lt_EGREP | |
15816 | ||
15817 | # A literal string matcher. | |
15818 | FGREP=$lt_FGREP | |
15819 | ||
15820 | # A BSD- or MS-compatible name lister. | |
15821 | NM=$lt_NM | |
15822 | ||
15823 | # Whether we need soft or hard links. | |
15824 | LN_S=$lt_LN_S | |
15825 | ||
15826 | # What is the maximum length of a command? | |
15827 | max_cmd_len=$max_cmd_len | |
15828 | ||
15829 | # Object file suffix (normally "o"). | |
15830 | objext=$ac_objext | |
15831 | ||
15832 | # Executable file suffix (normally ""). | |
15833 | exeext=$exeext | |
15834 | ||
15835 | # whether the shell understands "unset". | |
15836 | lt_unset=$lt_unset | |
15837 | ||
15838 | # turn spaces into newlines. | |
15839 | SP2NL=$lt_lt_SP2NL | |
15840 | ||
15841 | # turn newlines into spaces. | |
15842 | NL2SP=$lt_lt_NL2SP | |
15843 | ||
718a6fd8 SE |
15844 | # An object symbol dumper. |
15845 | OBJDUMP=$lt_OBJDUMP | |
15846 | ||
d7040cdb SE |
15847 | # Method to check whether dependent libraries are shared objects. |
15848 | deplibs_check_method=$lt_deplibs_check_method | |
15849 | ||
f2c621e4 | 15850 | # Command to use when deplibs_check_method == "file_magic". |
d7040cdb SE |
15851 | file_magic_cmd=$lt_file_magic_cmd |
15852 | ||
15853 | # The archiver. | |
15854 | AR=$lt_AR | |
15855 | AR_FLAGS=$lt_AR_FLAGS | |
15856 | ||
15857 | # A symbol stripping program. | |
15858 | STRIP=$lt_STRIP | |
15859 | ||
15860 | # Commands used to install an old-style archive. | |
15861 | RANLIB=$lt_RANLIB | |
15862 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15863 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15864 | ||
3725885a RW |
15865 | # Whether to use a lock for old archive extraction. |
15866 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15867 | ||
d7040cdb SE |
15868 | # A C compiler. |
15869 | LTCC=$lt_CC | |
15870 | ||
15871 | # LTCC compiler flags. | |
15872 | LTCFLAGS=$lt_CFLAGS | |
15873 | ||
15874 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15875 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15876 | ||
15877 | # Transform the output of nm in a proper C declaration. | |
15878 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15879 | ||
15880 | # Transform the output of nm in a C name address pair. | |
15881 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15882 | ||
718a6fd8 SE |
15883 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15884 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15885 | ||
d7040cdb SE |
15886 | # The name of the directory that contains temporary libtool files. |
15887 | objdir=$objdir | |
15888 | ||
d7040cdb SE |
15889 | # Used to examine libraries when file_magic_cmd begins with "file". |
15890 | MAGIC_CMD=$MAGIC_CMD | |
15891 | ||
15892 | # Must we lock files when doing compilation? | |
15893 | need_locks=$lt_need_locks | |
15894 | ||
718a6fd8 SE |
15895 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15896 | DSYMUTIL=$lt_DSYMUTIL | |
15897 | ||
15898 | # Tool to change global to local symbols on Mac OS X. | |
15899 | NMEDIT=$lt_NMEDIT | |
15900 | ||
15901 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15902 | LIPO=$lt_LIPO | |
15903 | ||
15904 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15905 | OTOOL=$lt_OTOOL | |
15906 | ||
15907 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15908 | OTOOL64=$lt_OTOOL64 | |
15909 | ||
d7040cdb SE |
15910 | # Old archive suffix (normally "a"). |
15911 | libext=$libext | |
15912 | ||
15913 | # Shared library suffix (normally ".so"). | |
15914 | shrext_cmds=$lt_shrext_cmds | |
15915 | ||
15916 | # The commands to extract the exported symbol list from a shared archive. | |
15917 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15918 | ||
15919 | # Variables whose values should be saved in libtool wrapper scripts and | |
15920 | # restored at link time. | |
15921 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15922 | ||
15923 | # Do we need the "lib" prefix for modules? | |
15924 | need_lib_prefix=$need_lib_prefix | |
15925 | ||
15926 | # Do we need a version for libraries? | |
15927 | need_version=$need_version | |
15928 | ||
15929 | # Library versioning type. | |
15930 | version_type=$version_type | |
15931 | ||
15932 | # Shared library runtime path variable. | |
15933 | runpath_var=$runpath_var | |
15934 | ||
15935 | # Shared library path variable. | |
15936 | shlibpath_var=$shlibpath_var | |
15937 | ||
15938 | # Is shlibpath searched before the hard-coded library search path? | |
15939 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15940 | ||
15941 | # Format of library name prefix. | |
15942 | libname_spec=$lt_libname_spec | |
15943 | ||
15944 | # List of archive names. First name is the real one, the rest are links. | |
15945 | # The last name is the one that the linker finds with -lNAME | |
15946 | library_names_spec=$lt_library_names_spec | |
15947 | ||
15948 | # The coded name of the library, if different from the real name. | |
15949 | soname_spec=$lt_soname_spec | |
15950 | ||
3725885a RW |
15951 | # Permission mode override for installation of shared libraries. |
15952 | install_override_mode=$lt_install_override_mode | |
15953 | ||
d7040cdb SE |
15954 | # Command to use after installation of a shared archive. |
15955 | postinstall_cmds=$lt_postinstall_cmds | |
15956 | ||
15957 | # Command to use after uninstallation of a shared archive. | |
15958 | postuninstall_cmds=$lt_postuninstall_cmds | |
15959 | ||
15960 | # Commands used to finish a libtool library installation in a directory. | |
15961 | finish_cmds=$lt_finish_cmds | |
15962 | ||
15963 | # As "finish_cmds", except a single script fragment to be evaled but | |
15964 | # not shown. | |
15965 | finish_eval=$lt_finish_eval | |
15966 | ||
15967 | # Whether we should hardcode library paths into libraries. | |
15968 | hardcode_into_libs=$hardcode_into_libs | |
15969 | ||
15970 | # Compile-time system search path for libraries. | |
15971 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15972 | ||
15973 | # Run-time system search path for libraries. | |
15974 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15975 | ||
15976 | # Whether dlopen is supported. | |
15977 | dlopen_support=$enable_dlopen | |
15978 | ||
15979 | # Whether dlopen of programs is supported. | |
15980 | dlopen_self=$enable_dlopen_self | |
15981 | ||
15982 | # Whether dlopen of statically linked programs is supported. | |
15983 | dlopen_self_static=$enable_dlopen_self_static | |
15984 | ||
15985 | # Commands to strip libraries. | |
15986 | old_striplib=$lt_old_striplib | |
15987 | striplib=$lt_striplib | |
15988 | ||
15989 | ||
15990 | # The linker used to build libraries. | |
15991 | LD=$lt_LD | |
15992 | ||
3725885a RW |
15993 | # How to create reloadable object files. |
15994 | reload_flag=$lt_reload_flag | |
15995 | reload_cmds=$lt_reload_cmds | |
15996 | ||
d7040cdb SE |
15997 | # Commands used to build an old-style archive. |
15998 | old_archive_cmds=$lt_old_archive_cmds | |
15999 | ||
16000 | # A language specific compiler. | |
16001 | CC=$lt_compiler | |
16002 | ||
16003 | # Is the compiler the GNU compiler? | |
16004 | with_gcc=$GCC | |
16005 | ||
16006 | # Compiler flag to turn off builtin functions. | |
16007 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16008 | ||
df7b86aa NC |
16009 | # How to pass a linker flag through the compiler. |
16010 | wl=$lt_lt_prog_compiler_wl | |
16011 | ||
f2c621e4 AS |
16012 | # Additional compiler flags for building library objects. |
16013 | pic_flag=$lt_lt_prog_compiler_pic | |
16014 | ||
d7040cdb SE |
16015 | # Compiler flag to prevent dynamic linking. |
16016 | link_static_flag=$lt_lt_prog_compiler_static | |
16017 | ||
16018 | # Does compiler simultaneously support -c and -o options? | |
16019 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16020 | ||
16021 | # Whether or not to add -lc for building shared libraries. | |
16022 | build_libtool_need_lc=$archive_cmds_need_lc | |
16023 | ||
16024 | # Whether or not to disallow shared libs when runtime libs are static. | |
16025 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16026 | ||
16027 | # Compiler flag to allow reflexive dlopens. | |
16028 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16029 | ||
16030 | # Compiler flag to generate shared objects directly from archives. | |
16031 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16032 | ||
16033 | # Whether the compiler copes with passing no objects directly. | |
16034 | compiler_needs_object=$lt_compiler_needs_object | |
16035 | ||
16036 | # Create an old-style archive from a shared archive. | |
16037 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16038 | ||
16039 | # Create a temporary old-style archive to link instead of a shared archive. | |
16040 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16041 | ||
16042 | # Commands used to build a shared archive. | |
16043 | archive_cmds=$lt_archive_cmds | |
16044 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16045 | ||
16046 | # Commands used to build a loadable module if different from building | |
16047 | # a shared archive. | |
16048 | module_cmds=$lt_module_cmds | |
16049 | module_expsym_cmds=$lt_module_expsym_cmds | |
16050 | ||
16051 | # Whether we are building with GNU ld or not. | |
16052 | with_gnu_ld=$lt_with_gnu_ld | |
16053 | ||
16054 | # Flag that allows shared libraries with undefined symbols to be built. | |
16055 | allow_undefined_flag=$lt_allow_undefined_flag | |
16056 | ||
16057 | # Flag that enforces no undefined symbols. | |
16058 | no_undefined_flag=$lt_no_undefined_flag | |
16059 | ||
16060 | # Flag to hardcode \$libdir into a binary during linking. | |
16061 | # This must work even if \$libdir does not exist | |
16062 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16063 | ||
16064 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16065 | # during linking. This must work even if \$libdir does not exist. | |
16066 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16067 | ||
16068 | # Whether we need a single "-rpath" flag with a separated argument. | |
16069 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16070 | ||
16071 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16072 | # DIR into the resulting binary. | |
16073 | hardcode_direct=$hardcode_direct | |
16074 | ||
16075 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16076 | # DIR into the resulting binary and the resulting library dependency is | |
16077 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16078 | # library is relocated. | |
16079 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16080 | ||
16081 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16082 | # into the resulting binary. | |
16083 | hardcode_minus_L=$hardcode_minus_L | |
16084 | ||
16085 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16086 | # into the resulting binary. | |
16087 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16088 | ||
16089 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16090 | # into the library and all subsequent libraries and executables linked | |
16091 | # against it. | |
16092 | hardcode_automatic=$hardcode_automatic | |
16093 | ||
16094 | # Set to yes if linker adds runtime paths of dependent libraries | |
16095 | # to runtime path list. | |
16096 | inherit_rpath=$inherit_rpath | |
16097 | ||
16098 | # Whether libtool must link a program against all its dependency libraries. | |
16099 | link_all_deplibs=$link_all_deplibs | |
16100 | ||
f2c621e4 AS |
16101 | # Fix the shell variable \$srcfile for the compiler. |
16102 | fix_srcfile_path=$lt_fix_srcfile_path | |
16103 | ||
d7040cdb SE |
16104 | # Set to "yes" if exported symbols are required. |
16105 | always_export_symbols=$always_export_symbols | |
16106 | ||
16107 | # The commands to list exported symbols. | |
16108 | export_symbols_cmds=$lt_export_symbols_cmds | |
16109 | ||
16110 | # Symbols that should not be listed in the preloaded symbols. | |
16111 | exclude_expsyms=$lt_exclude_expsyms | |
16112 | ||
16113 | # Symbols that must always be exported. | |
16114 | include_expsyms=$lt_include_expsyms | |
16115 | ||
16116 | # Commands necessary for linking programs (against libraries) with templates. | |
16117 | prelink_cmds=$lt_prelink_cmds | |
16118 | ||
16119 | # Specify filename containing input files. | |
16120 | file_list_spec=$lt_file_list_spec | |
16121 | ||
16122 | # How to hardcode a shared library path into an executable. | |
16123 | hardcode_action=$hardcode_action | |
16124 | ||
16125 | # ### END LIBTOOL CONFIG | |
16126 | ||
16127 | _LT_EOF | |
16128 | ||
16129 | case $host_os in | |
16130 | aix3*) | |
16131 | cat <<\_LT_EOF >> "$cfgfile" | |
16132 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16133 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16134 | # vanish in a puff of smoke. | |
16135 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16136 | COLLECT_NAMES= | |
16137 | export COLLECT_NAMES | |
16138 | fi | |
16139 | _LT_EOF | |
16140 | ;; | |
16141 | esac | |
16142 | ||
16143 | ||
16144 | ltmain="$ac_aux_dir/ltmain.sh" | |
16145 | ||
16146 | ||
16147 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16148 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16149 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16150 | # is reportedly fixed, but why not run on old versions too? | |
f2c621e4 AS |
16151 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
16152 | || (rm -f "$cfgfile"; exit 1) | |
16153 | ||
16154 | case $xsi_shell in | |
16155 | yes) | |
16156 | cat << \_LT_EOF >> "$cfgfile" | |
16157 | ||
16158 | # func_dirname file append nondir_replacement | |
16159 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16160 | # otherwise set result to NONDIR_REPLACEMENT. | |
16161 | func_dirname () | |
16162 | { | |
16163 | case ${1} in | |
16164 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16165 | * ) func_dirname_result="${3}" ;; | |
16166 | esac | |
16167 | } | |
16168 | ||
16169 | # func_basename file | |
16170 | func_basename () | |
16171 | { | |
16172 | func_basename_result="${1##*/}" | |
16173 | } | |
16174 | ||
16175 | # func_dirname_and_basename file append nondir_replacement | |
16176 | # perform func_basename and func_dirname in a single function | |
16177 | # call: | |
16178 | # dirname: Compute the dirname of FILE. If nonempty, | |
16179 | # add APPEND to the result, otherwise set result | |
16180 | # to NONDIR_REPLACEMENT. | |
16181 | # value returned in "$func_dirname_result" | |
16182 | # basename: Compute filename of FILE. | |
16183 | # value retuned in "$func_basename_result" | |
16184 | # Implementation must be kept synchronized with func_dirname | |
16185 | # and func_basename. For efficiency, we do not delegate to | |
16186 | # those functions but instead duplicate the functionality here. | |
16187 | func_dirname_and_basename () | |
16188 | { | |
16189 | case ${1} in | |
16190 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16191 | * ) func_dirname_result="${3}" ;; | |
16192 | esac | |
16193 | func_basename_result="${1##*/}" | |
16194 | } | |
16195 | ||
16196 | # func_stripname prefix suffix name | |
16197 | # strip PREFIX and SUFFIX off of NAME. | |
16198 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16199 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16200 | # dot (in which case that matches only a dot). | |
16201 | func_stripname () | |
16202 | { | |
16203 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16204 | # positional parameters, so assign one to ordinary parameter first. | |
16205 | func_stripname_result=${3} | |
16206 | func_stripname_result=${func_stripname_result#"${1}"} | |
16207 | func_stripname_result=${func_stripname_result%"${2}"} | |
16208 | } | |
16209 | ||
16210 | # func_opt_split | |
16211 | func_opt_split () | |
16212 | { | |
16213 | func_opt_split_opt=${1%%=*} | |
16214 | func_opt_split_arg=${1#*=} | |
16215 | } | |
16216 | ||
16217 | # func_lo2o object | |
16218 | func_lo2o () | |
16219 | { | |
16220 | case ${1} in | |
16221 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16222 | *) func_lo2o_result=${1} ;; | |
16223 | esac | |
16224 | } | |
16225 | ||
16226 | # func_xform libobj-or-source | |
16227 | func_xform () | |
16228 | { | |
16229 | func_xform_result=${1%.*}.lo | |
16230 | } | |
16231 | ||
16232 | # func_arith arithmetic-term... | |
16233 | func_arith () | |
16234 | { | |
16235 | func_arith_result=$(( $* )) | |
16236 | } | |
16237 | ||
16238 | # func_len string | |
16239 | # STRING may not start with a hyphen. | |
16240 | func_len () | |
16241 | { | |
16242 | func_len_result=${#1} | |
16243 | } | |
16244 | ||
16245 | _LT_EOF | |
16246 | ;; | |
16247 | *) # Bourne compatible functions. | |
16248 | cat << \_LT_EOF >> "$cfgfile" | |
16249 | ||
16250 | # func_dirname file append nondir_replacement | |
16251 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16252 | # otherwise set result to NONDIR_REPLACEMENT. | |
16253 | func_dirname () | |
16254 | { | |
16255 | # Extract subdirectory from the argument. | |
16256 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
16257 | if test "X$func_dirname_result" = "X${1}"; then | |
16258 | func_dirname_result="${3}" | |
16259 | else | |
16260 | func_dirname_result="$func_dirname_result${2}" | |
16261 | fi | |
16262 | } | |
16263 | ||
16264 | # func_basename file | |
16265 | func_basename () | |
16266 | { | |
16267 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
16268 | } | |
16269 | ||
16270 | ||
16271 | # func_stripname prefix suffix name | |
16272 | # strip PREFIX and SUFFIX off of NAME. | |
16273 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16274 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16275 | # dot (in which case that matches only a dot). | |
16276 | # func_strip_suffix prefix name | |
16277 | func_stripname () | |
16278 | { | |
16279 | case ${2} in | |
16280 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
16281 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
16282 | esac | |
16283 | } | |
16284 | ||
16285 | # sed scripts: | |
16286 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16287 | my_sed_long_arg='1s/^-[^=]*=//' | |
16288 | ||
16289 | # func_opt_split | |
16290 | func_opt_split () | |
16291 | { | |
16292 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
16293 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
16294 | } | |
16295 | ||
16296 | # func_lo2o object | |
16297 | func_lo2o () | |
16298 | { | |
16299 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
16300 | } | |
16301 | ||
16302 | # func_xform libobj-or-source | |
16303 | func_xform () | |
16304 | { | |
16305 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
16306 | } | |
16307 | ||
16308 | # func_arith arithmetic-term... | |
16309 | func_arith () | |
16310 | { | |
16311 | func_arith_result=`expr "$@"` | |
16312 | } | |
16313 | ||
16314 | # func_len string | |
16315 | # STRING may not start with a hyphen. | |
16316 | func_len () | |
16317 | { | |
16318 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16319 | } | |
16320 | ||
16321 | _LT_EOF | |
16322 | esac | |
16323 | ||
16324 | case $lt_shell_append in | |
16325 | yes) | |
16326 | cat << \_LT_EOF >> "$cfgfile" | |
16327 | ||
16328 | # func_append var value | |
16329 | # Append VALUE to the end of shell variable VAR. | |
16330 | func_append () | |
16331 | { | |
16332 | eval "$1+=\$2" | |
16333 | } | |
16334 | _LT_EOF | |
16335 | ;; | |
16336 | *) | |
16337 | cat << \_LT_EOF >> "$cfgfile" | |
16338 | ||
16339 | # func_append var value | |
16340 | # Append VALUE to the end of shell variable VAR. | |
16341 | func_append () | |
16342 | { | |
16343 | eval "$1=\$$1\$2" | |
16344 | } | |
16345 | ||
16346 | _LT_EOF | |
16347 | ;; | |
16348 | esac | |
16349 | ||
16350 | ||
16351 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16352 | || (rm -f "$cfgfile"; exit 1) | |
16353 | ||
16354 | mv -f "$cfgfile" "$ofile" || | |
d7040cdb SE |
16355 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16356 | chmod +x "$ofile" | |
16357 | ||
13b2be9c | 16358 | ;; |
81ecdfbb | 16359 | "default-1":C) |
20e95c23 DJ |
16360 | for ac_file in $CONFIG_FILES; do |
16361 | # Support "outfile[:infile[:infile...]]" | |
16362 | case "$ac_file" in | |
16363 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16364 | esac | |
16365 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16366 | case "$ac_file" in */Makefile.in) | |
16367 | # Adjust a relative srcdir. | |
16368 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 16369 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
16370 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
16371 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16372 | # In autoconf-2.50 it is called $srcdir. | |
16373 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16374 | case "$ac_given_srcdir" in | |
16375 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16376 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16377 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16378 | esac | |
16379 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16380 | rm -f "$ac_dir/POTFILES" | |
16381 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16382 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16383 | POMAKEFILEDEPS="POTFILES.in" | |
16384 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16385 | # on $ac_dir but don't depend on user-specified configuration | |
16386 | # parameters. | |
16387 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16388 | # The LINGUAS file contains the set of available languages. | |
16389 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 16390 | 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 |
16391 | fi |
16392 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16393 | # Hide the ALL_LINGUAS assigment from automake. | |
16394 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16395 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16396 | else | |
37a42ee9 | 16397 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
16398 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
16399 | fi | |
16400 | case "$ac_given_srcdir" in | |
16401 | .) srcdirpre= ;; | |
16402 | *) srcdirpre='$(srcdir)/' ;; | |
16403 | esac | |
16404 | POFILES= | |
16405 | GMOFILES= | |
16406 | UPDATEPOFILES= | |
16407 | DUMMYPOFILES= | |
16408 | for lang in $ALL_LINGUAS; do | |
16409 | POFILES="$POFILES $srcdirpre$lang.po" | |
16410 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16411 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16412 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16413 | done | |
16414 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16415 | # environment variable. | |
16416 | INST_LINGUAS= | |
16417 | if test -n "$ALL_LINGUAS"; then | |
16418 | for presentlang in $ALL_LINGUAS; do | |
16419 | useit=no | |
16420 | if test "%UNSET%" != "$LINGUAS"; then | |
16421 | desiredlanguages="$LINGUAS" | |
16422 | else | |
16423 | desiredlanguages="$ALL_LINGUAS" | |
16424 | fi | |
16425 | for desiredlang in $desiredlanguages; do | |
16426 | # Use the presentlang catalog if desiredlang is | |
16427 | # a. equal to presentlang, or | |
16428 | # b. a variant of presentlang (because in this case, | |
16429 | # presentlang can be used as a fallback for messages | |
16430 | # which are not translated in the desiredlang catalog). | |
16431 | case "$desiredlang" in | |
16432 | "$presentlang"*) useit=yes;; | |
16433 | esac | |
16434 | done | |
16435 | if test $useit = yes; then | |
16436 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16437 | fi | |
16438 | done | |
16439 | fi | |
16440 | CATALOGS= | |
16441 | if test -n "$INST_LINGUAS"; then | |
16442 | for lang in $INST_LINGUAS; do | |
16443 | CATALOGS="$CATALOGS $lang.gmo" | |
16444 | done | |
16445 | fi | |
16446 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
16447 | 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" | |
16448 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
16449 | if test -f "$f"; then | |
16450 | case "$f" in | |
16451 | *.orig | *.bak | *~) ;; | |
16452 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16453 | esac | |
16454 | fi | |
16455 | done | |
16456 | fi | |
16457 | ;; | |
16458 | esac | |
16459 | done ;; | |
81ecdfbb | 16460 | "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 |
16461 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
16462 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
16463 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
16464 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
16465 | if test "x$cgen_cpu_prefix" != x ; then | |
16466 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 16467 | fi ;; |
81ecdfbb | 16468 | |
13b2be9c | 16469 | esac |
81ecdfbb | 16470 | done # for ac_tag |
13b2be9c | 16471 | |
13b2be9c | 16472 | |
81ecdfbb | 16473 | as_fn_exit 0 |
13b2be9c | 16474 | _ACEOF |
13b2be9c DJ |
16475 | ac_clean_files=$ac_clean_files_save |
16476 | ||
81ecdfbb | 16477 | test $ac_write_fail = 0 || |
d0ac1c44 | 16478 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 16479 | |
13b2be9c DJ |
16480 | |
16481 | # configure is writing to config.log, and then calls config.status. | |
16482 | # config.status does its own redirection, appending to config.log. | |
16483 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16484 | # by configure, so config.status won't be able to write to it; its | |
16485 | # output is simply discarded. So we exec the FD to /dev/null, | |
16486 | # effectively closing config.log, so it can be properly (re)opened and | |
16487 | # appended to by config.status. When coming back to configure, we | |
16488 | # need to make the FD available again. | |
16489 | if test "$no_create" != yes; then | |
16490 | ac_cs_success=: | |
16491 | ac_config_status_args= | |
16492 | test "$silent" = yes && | |
16493 | ac_config_status_args="$ac_config_status_args --quiet" | |
16494 | exec 5>/dev/null | |
16495 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16496 | exec 5>>config.log | |
16497 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16498 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 16499 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
16500 | fi |
16501 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16503 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13b2be9c | 16504 | fi |
252b5132 | 16505 | |
d546b610 L |
16506 | |
16507 | ||
16508 | touch config.status.tmp | |
16509 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
16510 | sed '/as_fn_exit 0/i \ | |
16511 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
16512 | touch --reference=Makefile Makefile.tmp \ | |
16513 | mv Makefile.tmp Makefile \ | |
16514 | ' config.status > config.status.tmp | |
16515 | touch --reference=config.status config.status.tmp | |
16516 | mv config.status.tmp config.status | |
16517 | chmod +x config.status | |
16518 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
16519 | touch --reference=Makefile Makefile.tmp | |
16520 | mv Makefile.tmp Makefile | |
16521 | else | |
16522 | rm -f config.status.tmp | |
16523 | fi |