Commit | Line | Data |
---|---|---|
bae7f79e ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64 for gold 0.1. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
bae7f79e | 8 | # |
bae7f79e ILT |
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 | ## -------------------- ## | |
bae7f79e | 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 : | |
bae7f79e ILT |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
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 | |
bae7f79e | 31 | fi |
bae7f79e | 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 | } | |
bae7f79e ILT |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bae7f79e ILT |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bae7f79e | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bae7f79e | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bae7f79e | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
bae7f79e | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bae7f79e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bae7f79e | 410 | |
bae7f79e ILT |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
bae7f79e | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bae7f79e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bae7f79e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bae7f79e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bae7f79e | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bae7f79e ILT |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bae7f79e ILT |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bae7f79e ILT |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
bae7f79e | 483 | fi |
bae7f79e ILT |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bae7f79e ILT |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bae7f79e ILT |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bae7f79e ILT |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bae7f79e ILT |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
81ecdfbb | 538 | ac_clean_files= |
bae7f79e | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bae7f79e ILT |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
bae7f79e ILT |
545 | |
546 | # Identity of this package. | |
8486ee48 ILT |
547 | PACKAGE_NAME='gold' |
548 | PACKAGE_TARNAME='gold' | |
549 | PACKAGE_VERSION='0.1' | |
550 | PACKAGE_STRING='gold 0.1' | |
551 | PACKAGE_BUGREPORT='' | |
81ecdfbb | 552 | PACKAGE_URL='' |
bae7f79e ILT |
553 | |
554 | ac_unique_file="gold.cc" | |
54dc6425 ILT |
555 | # Factoring default headers for most tests. |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
54dc6425 ILT |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
54dc6425 ILT |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
54dc6425 ILT |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
54dc6425 ILT |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
54dc6425 ILT |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
54dc6425 ILT |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
54dc6425 | 582 | # include <inttypes.h> |
54dc6425 | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
54dc6425 ILT |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
81ecdfbb RW |
591 | ac_subst_vars='am__EXEEXT_FALSE |
592 | am__EXEEXT_TRUE | |
593 | LTLIBOBJS | |
594 | MAINT | |
595 | MAINTAINER_MODE_FALSE | |
596 | MAINTAINER_MODE_TRUE | |
f1415016 CC |
597 | HAVE_PUBNAMES_FALSE |
598 | HAVE_PUBNAMES_TRUE | |
0bf402d5 | 599 | DLOPEN_LIBS |
81ecdfbb RW |
600 | CXXCPP |
601 | HAVE_ZLIB_FALSE | |
602 | HAVE_ZLIB_TRUE | |
603 | LIBOBJS | |
604 | LFS_CFLAGS | |
dc87f620 ILT |
605 | GOLD_LDADD |
606 | GOLD_LDFLAGS | |
81ecdfbb RW |
607 | WARN_CXXFLAGS |
608 | NO_WERROR | |
609 | WARN_CFLAGS | |
ebb300b2 CC |
610 | IFUNC_STATIC_FALSE |
611 | IFUNC_STATIC_TRUE | |
7223e9ca ILT |
612 | IFUNC_FALSE |
613 | IFUNC_TRUE | |
81ecdfbb | 614 | RANDOM_SEED_CFLAGS |
81ecdfbb RW |
615 | TLS_DESCRIPTORS_FALSE |
616 | TLS_DESCRIPTORS_TRUE | |
617 | TLS_GNU2_DIALECT_FALSE | |
618 | TLS_GNU2_DIALECT_TRUE | |
619 | OMP_SUPPORT_FALSE | |
620 | OMP_SUPPORT_TRUE | |
621 | STATIC_TLS_FALSE | |
622 | STATIC_TLS_TRUE | |
623 | TLS_FALSE | |
624 | TLS_TRUE | |
2b64b551 | 625 | MERGE_CONSTANTS_FLAG |
81ecdfbb RW |
626 | MCMODEL_MEDIUM_FALSE |
627 | MCMODEL_MEDIUM_TRUE | |
628 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
629 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
328c7c2f ILT |
630 | HAVE_STATIC_FALSE |
631 | HAVE_STATIC_TRUE | |
eb373049 ILT |
632 | NATIVE_OR_CROSS_LINKER_FALSE |
633 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
634 | GCC_FALSE |
635 | GCC_TRUE | |
636 | NATIVE_LINKER_FALSE | |
637 | NATIVE_LINKER_TRUE | |
638 | MSGMERGE | |
639 | MSGFMT | |
640 | MKINSTALLDIRS | |
641 | CATOBJEXT | |
642 | GENCAT | |
643 | INSTOBJEXT | |
644 | DATADIRNAME | |
645 | CATALOGS | |
646 | POSUB | |
647 | GMSGFMT | |
648 | XGETTEXT | |
649 | INCINTL | |
650 | LIBINTL_DEP | |
651 | LIBINTL | |
652 | USE_NLS | |
653 | EGREP | |
654 | GREP | |
655 | CPP | |
656 | LN_S | |
657 | RANLIB | |
658 | YFLAGS | |
659 | YACC | |
660 | am__fastdepCXX_FALSE | |
661 | am__fastdepCXX_TRUE | |
662 | CXXDEPMODE | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | am__fastdepCC_FALSE | |
667 | am__fastdepCC_TRUE | |
668 | CCDEPMODE | |
669 | AMDEPBACKSLASH | |
670 | AMDEP_FALSE | |
671 | AMDEP_TRUE | |
672 | am__quote | |
673 | am__include | |
674 | DEPDIR | |
675 | OBJEXT | |
676 | EXEEXT | |
677 | ac_ct_CC | |
678 | CPPFLAGS | |
679 | LDFLAGS | |
680 | CFLAGS | |
681 | CC | |
ebb300b2 | 682 | NM |
81ecdfbb | 683 | TARGETOBJS |
9df9de2c | 684 | DEFAULT_TARGET |
0a6f1bf2 AM |
685 | DEFAULT_TARGET_TILEGX_FALSE |
686 | DEFAULT_TARGET_TILEGX_TRUE | |
364c7fa5 ILT |
687 | DEFAULT_TARGET_X86_64_FALSE |
688 | DEFAULT_TARGET_X86_64_TRUE | |
689 | DEFAULT_TARGET_SPARC_FALSE | |
690 | DEFAULT_TARGET_SPARC_TRUE | |
691 | DEFAULT_TARGET_POWERPC_FALSE | |
692 | DEFAULT_TARGET_POWERPC_TRUE | |
693 | DEFAULT_TARGET_I386_FALSE | |
694 | DEFAULT_TARGET_I386_TRUE | |
695 | DEFAULT_TARGET_ARM_FALSE | |
696 | DEFAULT_TARGET_ARM_TRUE | |
81ecdfbb RW |
697 | PLUGINS_FALSE |
698 | PLUGINS_TRUE | |
699 | THREADS_FALSE | |
700 | THREADS_TRUE | |
4fda8867 NC |
701 | installed_linker |
702 | install_as_default | |
81ecdfbb RW |
703 | am__untar |
704 | am__tar | |
705 | AMTAR | |
706 | am__leading_dot | |
707 | SET_MAKE | |
708 | AWK | |
709 | mkdir_p | |
710 | MKDIR_P | |
711 | INSTALL_STRIP_PROGRAM | |
712 | STRIP | |
713 | install_sh | |
714 | MAKEINFO | |
715 | AUTOHEADER | |
716 | AUTOMAKE | |
717 | AUTOCONF | |
718 | ACLOCAL | |
719 | VERSION | |
720 | PACKAGE | |
721 | CYGPATH_W | |
722 | am__isrc | |
723 | INSTALL_DATA | |
724 | INSTALL_SCRIPT | |
725 | INSTALL_PROGRAM | |
726 | target_os | |
727 | target_vendor | |
728 | target_cpu | |
729 | target | |
730 | host_os | |
731 | host_vendor | |
732 | host_cpu | |
733 | host | |
734 | build_os | |
735 | build_vendor | |
736 | build_cpu | |
737 | build | |
738 | target_alias | |
739 | host_alias | |
740 | build_alias | |
741 | LIBS | |
742 | ECHO_T | |
743 | ECHO_N | |
744 | ECHO_C | |
745 | DEFS | |
746 | mandir | |
747 | localedir | |
748 | libdir | |
749 | psdir | |
750 | pdfdir | |
751 | dvidir | |
752 | htmldir | |
753 | infodir | |
754 | docdir | |
755 | oldincludedir | |
756 | includedir | |
757 | localstatedir | |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
768 | PACKAGE_URL | |
769 | PACKAGE_BUGREPORT | |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
bae7f79e | 776 | ac_subst_files='' |
81ecdfbb RW |
777 | ac_user_opts=' |
778 | enable_option_checking | |
779 | with_sysroot | |
4fda8867 | 780 | enable_gold |
81ecdfbb RW |
781 | enable_threads |
782 | enable_plugins | |
783 | enable_targets | |
3f3cddf1 | 784 | with_lib_path |
81ecdfbb RW |
785 | enable_dependency_tracking |
786 | enable_nls | |
787 | enable_werror | |
788 | enable_build_warnings | |
dc87f620 ILT |
789 | with_gold_ldflags |
790 | with_gold_ldadd | |
ae2eea65 | 791 | with_zlib |
81ecdfbb RW |
792 | enable_maintainer_mode |
793 | ' | |
794 | ac_precious_vars='build_alias | |
795 | host_alias | |
796 | target_alias | |
797 | CC | |
798 | CFLAGS | |
799 | LDFLAGS | |
800 | LIBS | |
801 | CPPFLAGS | |
802 | CXX | |
803 | CXXFLAGS | |
804 | CCC | |
805 | YACC | |
806 | YFLAGS | |
807 | CPP | |
808 | CXXCPP' | |
809 | ||
bae7f79e ILT |
810 | |
811 | # Initialize some variables set by options. | |
812 | ac_init_help= | |
813 | ac_init_version=false | |
81ecdfbb RW |
814 | ac_unrecognized_opts= |
815 | ac_unrecognized_sep= | |
bae7f79e ILT |
816 | # The variables have the same names as the options, with |
817 | # dashes changed to underlines. | |
818 | cache_file=/dev/null | |
819 | exec_prefix=NONE | |
820 | no_create= | |
821 | no_recursion= | |
822 | prefix=NONE | |
823 | program_prefix=NONE | |
824 | program_suffix=NONE | |
825 | program_transform_name=s,x,x, | |
826 | silent= | |
827 | site= | |
828 | srcdir= | |
829 | verbose= | |
830 | x_includes=NONE | |
831 | x_libraries=NONE | |
832 | ||
833 | # Installation directory options. | |
834 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
835 | # and all the variables that are supposed to be based on exec_prefix | |
836 | # by default will actually change. | |
837 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 838 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
839 | bindir='${exec_prefix}/bin' |
840 | sbindir='${exec_prefix}/sbin' | |
841 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
842 | datarootdir='${prefix}/share' |
843 | datadir='${datarootdir}' | |
bae7f79e ILT |
844 | sysconfdir='${prefix}/etc' |
845 | sharedstatedir='${prefix}/com' | |
846 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
847 | includedir='${prefix}/include' |
848 | oldincludedir='/usr/include' | |
81ecdfbb RW |
849 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
850 | infodir='${datarootdir}/info' | |
851 | htmldir='${docdir}' | |
852 | dvidir='${docdir}' | |
853 | pdfdir='${docdir}' | |
854 | psdir='${docdir}' | |
855 | libdir='${exec_prefix}/lib' | |
856 | localedir='${datarootdir}/locale' | |
857 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
858 | |
859 | ac_prev= | |
81ecdfbb | 860 | ac_dashdash= |
bae7f79e ILT |
861 | for ac_option |
862 | do | |
863 | # If the previous option needs an argument, assign it. | |
864 | if test -n "$ac_prev"; then | |
81ecdfbb | 865 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
866 | ac_prev= |
867 | continue | |
868 | fi | |
869 | ||
81ecdfbb RW |
870 | case $ac_option in |
871 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
872 | *) ac_optarg=yes ;; | |
873 | esac | |
bae7f79e ILT |
874 | |
875 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
876 | ||
81ecdfbb RW |
877 | case $ac_dashdash$ac_option in |
878 | --) | |
879 | ac_dashdash=yes ;; | |
bae7f79e ILT |
880 | |
881 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
882 | ac_prev=bindir ;; | |
883 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
884 | bindir=$ac_optarg ;; | |
885 | ||
886 | -build | --build | --buil | --bui | --bu) | |
887 | ac_prev=build_alias ;; | |
888 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
889 | build_alias=$ac_optarg ;; | |
890 | ||
891 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
892 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
893 | ac_prev=cache_file ;; | |
894 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
895 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
896 | cache_file=$ac_optarg ;; | |
897 | ||
898 | --config-cache | -C) | |
899 | cache_file=config.cache ;; | |
900 | ||
81ecdfbb | 901 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 902 | ac_prev=datadir ;; |
81ecdfbb | 903 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
904 | datadir=$ac_optarg ;; |
905 | ||
81ecdfbb RW |
906 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
907 | | --dataroo | --dataro | --datar) | |
908 | ac_prev=datarootdir ;; | |
909 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
910 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
911 | datarootdir=$ac_optarg ;; | |
912 | ||
bae7f79e | 913 | -disable-* | --disable-*) |
81ecdfbb | 914 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 915 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
917 | as_fn_error "invalid feature name: $ac_useropt" | |
918 | ac_useropt_orig=$ac_useropt | |
919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
920 | case $ac_user_opts in | |
921 | *" | |
922 | "enable_$ac_useropt" | |
923 | "*) ;; | |
924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
925 | ac_unrecognized_sep=', ';; | |
926 | esac | |
927 | eval enable_$ac_useropt=no ;; | |
928 | ||
929 | -docdir | --docdir | --docdi | --doc | --do) | |
930 | ac_prev=docdir ;; | |
931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
932 | docdir=$ac_optarg ;; | |
933 | ||
934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
935 | ac_prev=dvidir ;; | |
936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
937 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
938 | |
939 | -enable-* | --enable-*) | |
81ecdfbb | 940 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 941 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
bae7f79e | 952 | esac |
81ecdfbb | 953 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
954 | |
955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
957 | | --exec | --exe | --ex) | |
958 | ac_prev=exec_prefix ;; | |
959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
961 | | --exec=* | --exe=* | --ex=*) | |
962 | exec_prefix=$ac_optarg ;; | |
963 | ||
964 | -gas | --gas | --ga | --g) | |
965 | # Obsolete; use --with-gas. | |
966 | with_gas=yes ;; | |
967 | ||
968 | -help | --help | --hel | --he | -h) | |
969 | ac_init_help=long ;; | |
970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
971 | ac_init_help=recursive ;; | |
972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
973 | ac_init_help=short ;; | |
974 | ||
975 | -host | --host | --hos | --ho) | |
976 | ac_prev=host_alias ;; | |
977 | -host=* | --host=* | --hos=* | --ho=*) | |
978 | host_alias=$ac_optarg ;; | |
979 | ||
81ecdfbb RW |
980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
981 | ac_prev=htmldir ;; | |
982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
983 | | --ht=*) | |
984 | htmldir=$ac_optarg ;; | |
985 | ||
bae7f79e ILT |
986 | -includedir | --includedir | --includedi | --included | --include \ |
987 | | --includ | --inclu | --incl | --inc) | |
988 | ac_prev=includedir ;; | |
989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
990 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
991 | includedir=$ac_optarg ;; | |
992 | ||
993 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
994 | ac_prev=infodir ;; | |
995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
996 | infodir=$ac_optarg ;; | |
997 | ||
998 | -libdir | --libdir | --libdi | --libd) | |
999 | ac_prev=libdir ;; | |
1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1001 | libdir=$ac_optarg ;; | |
1002 | ||
1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1004 | | --libexe | --libex | --libe) | |
1005 | ac_prev=libexecdir ;; | |
1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1007 | | --libexe=* | --libex=* | --libe=*) | |
1008 | libexecdir=$ac_optarg ;; | |
1009 | ||
81ecdfbb RW |
1010 | -localedir | --localedir | --localedi | --localed | --locale) |
1011 | ac_prev=localedir ;; | |
1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1013 | localedir=$ac_optarg ;; | |
1014 | ||
bae7f79e | 1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1016 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1017 | ac_prev=localstatedir ;; |
1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1020 | localstatedir=$ac_optarg ;; |
1021 | ||
1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1023 | ac_prev=mandir ;; | |
1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1025 | mandir=$ac_optarg ;; | |
1026 | ||
1027 | -nfp | --nfp | --nf) | |
1028 | # Obsolete; use --without-fp. | |
1029 | with_fp=no ;; | |
1030 | ||
1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1032 | | --no-cr | --no-c | -n) | |
1033 | no_create=yes ;; | |
1034 | ||
1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1037 | no_recursion=yes ;; | |
1038 | ||
1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1041 | | --oldin | --oldi | --old | --ol | --o) | |
1042 | ac_prev=oldincludedir ;; | |
1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1046 | oldincludedir=$ac_optarg ;; | |
1047 | ||
1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1049 | ac_prev=prefix ;; | |
1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1051 | prefix=$ac_optarg ;; | |
1052 | ||
1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1054 | | --program-pre | --program-pr | --program-p) | |
1055 | ac_prev=program_prefix ;; | |
1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1058 | program_prefix=$ac_optarg ;; | |
1059 | ||
1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1061 | | --program-suf | --program-su | --program-s) | |
1062 | ac_prev=program_suffix ;; | |
1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1065 | program_suffix=$ac_optarg ;; | |
1066 | ||
1067 | -program-transform-name | --program-transform-name \ | |
1068 | | --program-transform-nam | --program-transform-na \ | |
1069 | | --program-transform-n | --program-transform- \ | |
1070 | | --program-transform | --program-transfor \ | |
1071 | | --program-transfo | --program-transf \ | |
1072 | | --program-trans | --program-tran \ | |
1073 | | --progr-tra | --program-tr | --program-t) | |
1074 | ac_prev=program_transform_name ;; | |
1075 | -program-transform-name=* | --program-transform-name=* \ | |
1076 | | --program-transform-nam=* | --program-transform-na=* \ | |
1077 | | --program-transform-n=* | --program-transform-=* \ | |
1078 | | --program-transform=* | --program-transfor=* \ | |
1079 | | --program-transfo=* | --program-transf=* \ | |
1080 | | --program-trans=* | --program-tran=* \ | |
1081 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1082 | program_transform_name=$ac_optarg ;; | |
1083 | ||
81ecdfbb RW |
1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1085 | ac_prev=pdfdir ;; | |
1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1087 | pdfdir=$ac_optarg ;; | |
1088 | ||
1089 | -psdir | --psdir | --psdi | --psd | --ps) | |
1090 | ac_prev=psdir ;; | |
1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1092 | psdir=$ac_optarg ;; | |
1093 | ||
bae7f79e ILT |
1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1095 | | -silent | --silent | --silen | --sile | --sil) | |
1096 | silent=yes ;; | |
1097 | ||
1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1099 | ac_prev=sbindir ;; | |
1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1101 | | --sbi=* | --sb=*) | |
1102 | sbindir=$ac_optarg ;; | |
1103 | ||
1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1106 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1107 | | --sha | --sh) | |
1108 | ac_prev=sharedstatedir ;; | |
1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1112 | | --sha=* | --sh=*) | |
1113 | sharedstatedir=$ac_optarg ;; | |
1114 | ||
1115 | -site | --site | --sit) | |
1116 | ac_prev=site ;; | |
1117 | -site=* | --site=* | --sit=*) | |
1118 | site=$ac_optarg ;; | |
1119 | ||
1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1121 | ac_prev=srcdir ;; | |
1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1123 | srcdir=$ac_optarg ;; | |
1124 | ||
1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1126 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1127 | ac_prev=sysconfdir ;; | |
1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1130 | sysconfdir=$ac_optarg ;; | |
1131 | ||
1132 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1133 | ac_prev=target_alias ;; | |
1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1135 | target_alias=$ac_optarg ;; | |
1136 | ||
1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1138 | verbose=yes ;; | |
1139 | ||
1140 | -version | --version | --versio | --versi | --vers | -V) | |
1141 | ac_init_version=: ;; | |
1142 | ||
1143 | -with-* | --with-*) | |
81ecdfbb | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1145 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1147 | as_fn_error "invalid package name: $ac_useropt" | |
1148 | ac_useropt_orig=$ac_useropt | |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1156 | esac |
81ecdfbb | 1157 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1158 | |
1159 | -without-* | --without-*) | |
81ecdfbb | 1160 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1161 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1163 | as_fn_error "invalid package name: $ac_useropt" | |
1164 | ac_useropt_orig=$ac_useropt | |
1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1166 | case $ac_user_opts in | |
1167 | *" | |
1168 | "with_$ac_useropt" | |
1169 | "*) ;; | |
1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1171 | ac_unrecognized_sep=', ';; | |
1172 | esac | |
1173 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1174 | |
1175 | --x) | |
1176 | # Obsolete; use --with-x. | |
1177 | with_x=yes ;; | |
1178 | ||
1179 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1180 | | --x-incl | --x-inc | --x-in | --x-i) | |
1181 | ac_prev=x_includes ;; | |
1182 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1183 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1184 | x_includes=$ac_optarg ;; | |
1185 | ||
1186 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1187 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1188 | ac_prev=x_libraries ;; | |
1189 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1190 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1191 | x_libraries=$ac_optarg ;; | |
1192 | ||
81ecdfbb RW |
1193 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1194 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1195 | ;; |
1196 | ||
1197 | *=*) | |
1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1199 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1200 | case $ac_envvar in #( |
1201 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1202 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1203 | esac | |
1204 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1205 | export $ac_envvar ;; |
1206 | ||
1207 | *) | |
1208 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1209 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1210 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1211 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1212 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1213 | ;; | |
1214 | ||
1215 | esac | |
1216 | done | |
1217 | ||
1218 | if test -n "$ac_prev"; then | |
1219 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1220 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1221 | fi |
1222 | ||
81ecdfbb RW |
1223 | if test -n "$ac_unrecognized_opts"; then |
1224 | case $enable_option_checking in | |
1225 | no) ;; | |
1226 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1227 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1228 | esac |
81ecdfbb | 1229 | fi |
bae7f79e | 1230 | |
81ecdfbb RW |
1231 | # Check all directory arguments for consistency. |
1232 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1233 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1234 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1235 | libdir localedir mandir | |
bae7f79e | 1236 | do |
81ecdfbb RW |
1237 | eval ac_val=\$$ac_var |
1238 | # Remove trailing slashes. | |
1239 | case $ac_val in | |
1240 | */ ) | |
1241 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1242 | eval $ac_var=\$ac_val;; | |
1243 | esac | |
1244 | # Be sure to have absolute directory names. | |
bae7f79e | 1245 | case $ac_val in |
81ecdfbb RW |
1246 | [\\/$]* | ?:[\\/]* ) continue;; |
1247 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1248 | esac |
81ecdfbb | 1249 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1250 | done |
1251 | ||
1252 | # There might be people who depend on the old broken behavior: `$host' | |
1253 | # used to hold the argument of --host etc. | |
1254 | # FIXME: To remove some day. | |
1255 | build=$build_alias | |
1256 | host=$host_alias | |
1257 | target=$target_alias | |
1258 | ||
1259 | # FIXME: To remove some day. | |
1260 | if test "x$host_alias" != x; then | |
1261 | if test "x$build_alias" = x; then | |
1262 | cross_compiling=maybe | |
81ecdfbb | 1263 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1264 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1265 | elif test "x$build_alias" != "x$host_alias"; then | |
1266 | cross_compiling=yes | |
1267 | fi | |
1268 | fi | |
1269 | ||
1270 | ac_tool_prefix= | |
1271 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1272 | ||
1273 | test "$silent" = yes && exec 6>/dev/null | |
1274 | ||
1275 | ||
81ecdfbb RW |
1276 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1277 | ac_ls_di=`ls -di .` && | |
1278 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1279 | as_fn_error "working directory cannot be determined" | |
1280 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1281 | as_fn_error "pwd does not report name of working directory" | |
1282 | ||
1283 | ||
bae7f79e ILT |
1284 | # Find the source files, if location was not specified. |
1285 | if test -z "$srcdir"; then | |
1286 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1287 | # Try the directory containing this script, then the parent directory. |
1288 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1289 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1290 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1291 | X"$as_myself" : 'X\(//\)$' \| \ | |
1292 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1293 | $as_echo X"$as_myself" | | |
1294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1295 | s//\1/ | |
1296 | q | |
1297 | } | |
1298 | /^X\(\/\/\)[^/].*/{ | |
1299 | s//\1/ | |
1300 | q | |
1301 | } | |
1302 | /^X\(\/\/\)$/{ | |
1303 | s//\1/ | |
1304 | q | |
1305 | } | |
1306 | /^X\(\/\).*/{ | |
1307 | s//\1/ | |
1308 | q | |
1309 | } | |
1310 | s/.*/./; q'` | |
bae7f79e | 1311 | srcdir=$ac_confdir |
81ecdfbb | 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1313 | srcdir=.. |
1314 | fi | |
1315 | else | |
1316 | ac_srcdir_defaulted=no | |
1317 | fi | |
81ecdfbb RW |
1318 | if test ! -r "$srcdir/$ac_unique_file"; then |
1319 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1320 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1321 | fi | |
1322 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1323 | ac_abs_confdir=`( | |
1324 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1325 | pwd)` | |
1326 | # When building in place, set srcdir=. | |
1327 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1328 | srcdir=. | |
1329 | fi | |
1330 | # Remove unnecessary trailing slashes from srcdir. | |
1331 | # Double slashes in file names in object file debugging info | |
1332 | # mess up M-x gdb in Emacs. | |
1333 | case $srcdir in | |
1334 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1335 | esac | |
1336 | for ac_var in $ac_precious_vars; do | |
1337 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1338 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1339 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1340 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1341 | done | |
bae7f79e ILT |
1342 | |
1343 | # | |
1344 | # Report the --help message. | |
1345 | # | |
1346 | if test "$ac_init_help" = "long"; then | |
1347 | # Omit some internal or obsolete options to make the list less imposing. | |
1348 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1349 | cat <<_ACEOF | |
8486ee48 | 1350 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1351 | |
1352 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1353 | ||
1354 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1355 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1356 | ||
1357 | Defaults for the options are specified in brackets. | |
1358 | ||
1359 | Configuration: | |
1360 | -h, --help display this help and exit | |
1361 | --help=short display options specific to this package | |
1362 | --help=recursive display the short help of all the included packages | |
1363 | -V, --version display version information and exit | |
1364 | -q, --quiet, --silent do not print \`checking...' messages | |
1365 | --cache-file=FILE cache test results in FILE [disabled] | |
1366 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1367 | -n, --no-create do not create output files | |
1368 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1369 | ||
bae7f79e ILT |
1370 | Installation directories: |
1371 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1372 | [$ac_default_prefix] |
bae7f79e | 1373 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1374 | [PREFIX] |
bae7f79e ILT |
1375 | |
1376 | By default, \`make install' will install all the files in | |
1377 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1378 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1379 | for instance \`--prefix=\$HOME'. | |
1380 | ||
1381 | For better control, use the options below. | |
1382 | ||
1383 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1384 | --bindir=DIR user executables [EPREFIX/bin] |
1385 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1386 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1387 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1388 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1389 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1390 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1391 | --includedir=DIR C header files [PREFIX/include] | |
1392 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1393 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1394 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1395 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1396 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1397 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1398 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1399 | --htmldir=DIR html documentation [DOCDIR] | |
1400 | --dvidir=DIR dvi documentation [DOCDIR] | |
1401 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1402 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1403 | _ACEOF |
1404 | ||
1405 | cat <<\_ACEOF | |
1406 | ||
1407 | Program names: | |
1408 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1409 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1410 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1411 | ||
1412 | System types: | |
1413 | --build=BUILD configure for building on BUILD [guessed] | |
1414 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1415 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1416 | _ACEOF | |
1417 | fi | |
1418 | ||
1419 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1420 | case $ac_init_help in |
1421 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1422 | esac | |
bae7f79e ILT |
1423 | cat <<\_ACEOF |
1424 | ||
1425 | Optional Features: | |
81ecdfbb | 1426 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1427 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1428 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1429 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
fe9a4c12 | 1430 | --enable-threads multi-threaded linking |
89fc3421 | 1431 | --enable-plugins linker plugins |
193a53d9 | 1432 | --enable-targets alternative target configurations |
bae7f79e ILT |
1433 | --disable-dependency-tracking speeds up one-time build |
1434 | --enable-dependency-tracking do not reject slow dependency extractors | |
1435 | --disable-nls do not use Native Language Support | |
1436 | --enable-werror treat compile warnings as errors | |
1437 | --enable-build-warnings enable build-time compiler warnings | |
1438 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1439 | (and sometimes confusing) to the casual installer | |
1440 | ||
ad2d6943 ILT |
1441 | Optional Packages: |
1442 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1443 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1444 | --with-sysroot=DIR search for usr/lib et al within DIR | |
3f3cddf1 | 1445 | --with-lib-path=dir1:dir2... set default LIB_PATH |
dc87f620 ILT |
1446 | --with-gold-ldflags=FLAGS additional link flags for gold |
1447 | --with-gold-ldadd=LIBS additional libraries for gold | |
ae2eea65 | 1448 | --with-zlib include zlib support (auto/yes/no) default=auto |
ad2d6943 | 1449 | |
bae7f79e ILT |
1450 | Some influential environment variables: |
1451 | CC C compiler command | |
1452 | CFLAGS C compiler flags | |
1453 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1454 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1455 | LIBS libraries to pass to the linker, e.g. -l<library> |
1456 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1457 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1458 | CXX C++ compiler command |
1459 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1460 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1461 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1462 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1463 | This script will default YFLAGS to the empty string to avoid a | |
1464 | default value of `-d' given by some make applications. | |
9a0910c3 | 1465 | CPP C preprocessor |
54dc6425 | 1466 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1467 | |
1468 | Use these variables to override the choices made by `configure' or to help | |
1469 | it to find libraries and programs with nonstandard names/locations. | |
1470 | ||
81ecdfbb | 1471 | Report bugs to the package provider. |
bae7f79e | 1472 | _ACEOF |
81ecdfbb | 1473 | ac_status=$? |
bae7f79e ILT |
1474 | fi |
1475 | ||
1476 | if test "$ac_init_help" = "recursive"; then | |
1477 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1478 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1479 | test -d "$ac_dir" || |
1480 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1481 | continue | |
bae7f79e ILT |
1482 | ac_builddir=. |
1483 | ||
81ecdfbb RW |
1484 | case "$ac_dir" in |
1485 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1486 | *) | |
1487 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1488 | # A ".." for each directory in $ac_dir_suffix. | |
1489 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1490 | case $ac_top_builddir_sub in | |
1491 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1492 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1493 | esac ;; | |
1494 | esac | |
1495 | ac_abs_top_builddir=$ac_pwd | |
1496 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1497 | # for backward compatibility: | |
1498 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1499 | |
1500 | case $srcdir in | |
81ecdfbb | 1501 | .) # We are building in place. |
bae7f79e | 1502 | ac_srcdir=. |
81ecdfbb RW |
1503 | ac_top_srcdir=$ac_top_builddir_sub |
1504 | ac_abs_top_srcdir=$ac_pwd ;; | |
1505 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1506 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1507 | ac_top_srcdir=$srcdir |
1508 | ac_abs_top_srcdir=$srcdir ;; | |
1509 | *) # Relative name. | |
1510 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1511 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1512 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1513 | esac |
81ecdfbb RW |
1514 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1515 | ||
1516 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1517 | # Check for guested configure. | |
1518 | if test -f "$ac_srcdir/configure.gnu"; then | |
1519 | echo && | |
1520 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1521 | elif test -f "$ac_srcdir/configure"; then | |
1522 | echo && | |
1523 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1524 | else |
81ecdfbb RW |
1525 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1526 | fi || ac_status=$? | |
1527 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1528 | done |
1529 | fi | |
1530 | ||
81ecdfbb | 1531 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1532 | if $ac_init_version; then |
1533 | cat <<\_ACEOF | |
8486ee48 | 1534 | gold configure 0.1 |
81ecdfbb | 1535 | generated by GNU Autoconf 2.64 |
bae7f79e | 1536 | |
81ecdfbb | 1537 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1538 | This configure script is free software; the Free Software Foundation |
1539 | gives unlimited permission to copy, distribute and modify it. | |
1540 | _ACEOF | |
81ecdfbb | 1541 | exit |
bae7f79e | 1542 | fi |
bae7f79e | 1543 | |
81ecdfbb RW |
1544 | ## ------------------------ ## |
1545 | ## Autoconf initialization. ## | |
1546 | ## ------------------------ ## | |
bae7f79e | 1547 | |
81ecdfbb RW |
1548 | # ac_fn_c_try_compile LINENO |
1549 | # -------------------------- | |
1550 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1551 | ac_fn_c_try_compile () | |
bae7f79e | 1552 | { |
81ecdfbb RW |
1553 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1554 | rm -f conftest.$ac_objext | |
1555 | if { { ac_try="$ac_compile" | |
1556 | case "(($ac_try" in | |
1557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1558 | *) ac_try_echo=$ac_try;; | |
1559 | esac | |
1560 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1561 | $as_echo "$ac_try_echo"; } >&5 | |
1562 | (eval "$ac_compile") 2>conftest.err | |
1563 | ac_status=$? | |
1564 | if test -s conftest.err; then | |
1565 | grep -v '^ *+' conftest.err >conftest.er1 | |
1566 | cat conftest.er1 >&5 | |
1567 | mv -f conftest.er1 conftest.err | |
1568 | fi | |
1569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1570 | test $ac_status = 0; } && { | |
1571 | test -z "$ac_c_werror_flag" || | |
1572 | test ! -s conftest.err | |
1573 | } && test -s conftest.$ac_objext; then : | |
1574 | ac_retval=0 | |
1575 | else | |
1576 | $as_echo "$as_me: failed program was:" >&5 | |
1577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1578 | |
81ecdfbb RW |
1579 | ac_retval=1 |
1580 | fi | |
1581 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1582 | return $ac_retval | |
bae7f79e | 1583 | |
81ecdfbb | 1584 | } # ac_fn_c_try_compile |
bae7f79e | 1585 | |
81ecdfbb RW |
1586 | # ac_fn_cxx_try_compile LINENO |
1587 | # ---------------------------- | |
1588 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1589 | ac_fn_cxx_try_compile () | |
1590 | { | |
1591 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1592 | rm -f conftest.$ac_objext | |
1593 | if { { ac_try="$ac_compile" | |
1594 | case "(($ac_try" in | |
1595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1596 | *) ac_try_echo=$ac_try;; | |
1597 | esac | |
1598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1599 | $as_echo "$ac_try_echo"; } >&5 | |
1600 | (eval "$ac_compile") 2>conftest.err | |
1601 | ac_status=$? | |
1602 | if test -s conftest.err; then | |
1603 | grep -v '^ *+' conftest.err >conftest.er1 | |
1604 | cat conftest.er1 >&5 | |
1605 | mv -f conftest.er1 conftest.err | |
1606 | fi | |
1607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1608 | test $ac_status = 0; } && { | |
1609 | test -z "$ac_cxx_werror_flag" || | |
1610 | test ! -s conftest.err | |
1611 | } && test -s conftest.$ac_objext; then : | |
1612 | ac_retval=0 | |
1613 | else | |
1614 | $as_echo "$as_me: failed program was:" >&5 | |
1615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1616 | |
81ecdfbb RW |
1617 | ac_retval=1 |
1618 | fi | |
1619 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1620 | return $ac_retval | |
bae7f79e | 1621 | |
81ecdfbb | 1622 | } # ac_fn_cxx_try_compile |
bae7f79e | 1623 | |
81ecdfbb RW |
1624 | # ac_fn_c_try_cpp LINENO |
1625 | # ---------------------- | |
1626 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1627 | ac_fn_c_try_cpp () | |
1628 | { | |
1629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1630 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1631 | case "(($ac_try" in | |
1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1633 | *) ac_try_echo=$ac_try;; | |
1634 | esac | |
1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1636 | $as_echo "$ac_try_echo"; } >&5 | |
1637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1638 | ac_status=$? | |
1639 | if test -s conftest.err; then | |
1640 | grep -v '^ *+' conftest.err >conftest.er1 | |
1641 | cat conftest.er1 >&5 | |
1642 | mv -f conftest.er1 conftest.err | |
1643 | fi | |
1644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1645 | test $ac_status = 0; } >/dev/null && { | |
1646 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1647 | test ! -s conftest.err | |
1648 | }; then : | |
1649 | ac_retval=0 | |
1650 | else | |
1651 | $as_echo "$as_me: failed program was:" >&5 | |
1652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1653 | |
81ecdfbb RW |
1654 | ac_retval=1 |
1655 | fi | |
1656 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1657 | return $ac_retval | |
bae7f79e | 1658 | |
81ecdfbb | 1659 | } # ac_fn_c_try_cpp |
bae7f79e | 1660 | |
81ecdfbb RW |
1661 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1662 | # ------------------------------------------------------- | |
1663 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1664 | # the include files in INCLUDES and setting the cache variable VAR | |
1665 | # accordingly. | |
1666 | ac_fn_c_check_header_mongrel () | |
1667 | { | |
1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1669 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1671 | $as_echo_n "checking for $2... " >&6; } | |
1672 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1673 | $as_echo_n "(cached) " >&6 | |
1674 | fi | |
1675 | eval ac_res=\$$3 | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1677 | $as_echo "$ac_res" >&6; } | |
1678 | else | |
1679 | # Is the header compilable? | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1681 | $as_echo_n "checking $2 usability... " >&6; } | |
1682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1683 | /* end confdefs.h. */ | |
1684 | $4 | |
1685 | #include <$2> | |
bae7f79e | 1686 | _ACEOF |
81ecdfbb RW |
1687 | if ac_fn_c_try_compile "$LINENO"; then : |
1688 | ac_header_compiler=yes | |
1689 | else | |
1690 | ac_header_compiler=no | |
1691 | fi | |
1692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1694 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1695 | |
81ecdfbb RW |
1696 | # Is the header present? |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1698 | $as_echo_n "checking $2 presence... " >&6; } | |
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | /* end confdefs.h. */ | |
1701 | #include <$2> | |
1702 | _ACEOF | |
1703 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1704 | ac_header_preproc=yes | |
1705 | else | |
1706 | ac_header_preproc=no | |
1707 | fi | |
1708 | rm -f conftest.err conftest.$ac_ext | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1710 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1711 | |
81ecdfbb RW |
1712 | # So? What about this header? |
1713 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1714 | yes:no: ) | |
1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1716 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1718 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1719 | ;; | |
1720 | no:yes:* ) | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1722 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1724 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1726 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1728 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1730 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1731 | ;; | |
1732 | esac | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1734 | $as_echo_n "checking for $2... " >&6; } | |
1735 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1736 | $as_echo_n "(cached) " >&6 | |
1737 | else | |
1738 | eval "$3=\$ac_header_compiler" | |
1739 | fi | |
1740 | eval ac_res=\$$3 | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1742 | $as_echo "$ac_res" >&6; } | |
1743 | fi | |
1744 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1745 | |
81ecdfbb | 1746 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1747 | |
81ecdfbb RW |
1748 | # ac_fn_c_try_run LINENO |
1749 | # ---------------------- | |
1750 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1751 | # that executables *can* be run. | |
1752 | ac_fn_c_try_run () | |
bae7f79e | 1753 | { |
81ecdfbb RW |
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1755 | if { { ac_try="$ac_link" | |
1756 | case "(($ac_try" in | |
1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1758 | *) ac_try_echo=$ac_try;; | |
1759 | esac | |
1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1761 | $as_echo "$ac_try_echo"; } >&5 | |
1762 | (eval "$ac_link") 2>&5 | |
1763 | ac_status=$? | |
1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1765 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1766 | { { case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_try") 2>&5 | |
1773 | ac_status=$? | |
1774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1775 | test $ac_status = 0; }; }; then : | |
1776 | ac_retval=0 | |
1777 | else | |
1778 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1779 | $as_echo "$as_me: failed program was:" >&5 | |
1780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1781 | |
81ecdfbb RW |
1782 | ac_retval=$ac_status |
1783 | fi | |
1784 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1786 | return $ac_retval | |
bae7f79e | 1787 | |
81ecdfbb | 1788 | } # ac_fn_c_try_run |
bae7f79e | 1789 | |
81ecdfbb RW |
1790 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1791 | # ------------------------------------------------------- | |
1792 | # Tests whether HEADER exists and can be compiled using the include files in | |
1793 | # INCLUDES, setting the cache variable VAR accordingly. | |
1794 | ac_fn_c_check_header_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1798 | $as_echo_n "checking for $2... " >&6; } | |
1799 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1800 | $as_echo_n "(cached) " >&6 | |
1801 | else | |
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1803 | /* end confdefs.h. */ | |
1804 | $4 | |
1805 | #include <$2> | |
1806 | _ACEOF | |
1807 | if ac_fn_c_try_compile "$LINENO"; then : | |
1808 | eval "$3=yes" | |
1809 | else | |
1810 | eval "$3=no" | |
1811 | fi | |
1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1813 | fi | |
1814 | eval ac_res=\$$3 | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1816 | $as_echo "$ac_res" >&6; } | |
1817 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1818 | |
81ecdfbb | 1819 | } # ac_fn_c_check_header_compile |
bae7f79e | 1820 | |
81ecdfbb RW |
1821 | # ac_fn_c_try_link LINENO |
1822 | # ----------------------- | |
1823 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1824 | ac_fn_c_try_link () | |
1825 | { | |
1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1828 | if { { ac_try="$ac_link" | |
1829 | case "(($ac_try" in | |
1830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1831 | *) ac_try_echo=$ac_try;; | |
1832 | esac | |
1833 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1834 | $as_echo "$ac_try_echo"; } >&5 | |
1835 | (eval "$ac_link") 2>conftest.err | |
1836 | ac_status=$? | |
1837 | if test -s conftest.err; then | |
1838 | grep -v '^ *+' conftest.err >conftest.er1 | |
1839 | cat conftest.er1 >&5 | |
1840 | mv -f conftest.er1 conftest.err | |
1841 | fi | |
1842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1843 | test $ac_status = 0; } && { | |
1844 | test -z "$ac_c_werror_flag" || | |
1845 | test ! -s conftest.err | |
1846 | } && test -s conftest$ac_exeext && { | |
1847 | test "$cross_compiling" = yes || | |
1848 | $as_test_x conftest$ac_exeext | |
1849 | }; then : | |
1850 | ac_retval=0 | |
1851 | else | |
1852 | $as_echo "$as_me: failed program was:" >&5 | |
1853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1854 | |
81ecdfbb RW |
1855 | ac_retval=1 |
1856 | fi | |
1857 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1858 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1859 | # interfere with the next link command; also delete a directory that is | |
1860 | # left behind by Apple's compiler. We do this before executing the actions. | |
1861 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1862 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1863 | return $ac_retval | |
bae7f79e | 1864 | |
81ecdfbb | 1865 | } # ac_fn_c_try_link |
bae7f79e | 1866 | |
81ecdfbb RW |
1867 | # ac_fn_c_check_func LINENO FUNC VAR |
1868 | # ---------------------------------- | |
1869 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1870 | ac_fn_c_check_func () | |
1871 | { | |
1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1874 | $as_echo_n "checking for $2... " >&6; } | |
1875 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1876 | $as_echo_n "(cached) " >&6 | |
1877 | else | |
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1879 | /* end confdefs.h. */ | |
1880 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1882 | #define $2 innocuous_$2 | |
bae7f79e | 1883 | |
81ecdfbb RW |
1884 | /* System header to define __stub macros and hopefully few prototypes, |
1885 | which can conflict with char $2 (); below. | |
1886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1887 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1888 | |
81ecdfbb RW |
1889 | #ifdef __STDC__ |
1890 | # include <limits.h> | |
1891 | #else | |
1892 | # include <assert.h> | |
1893 | #endif | |
bae7f79e | 1894 | |
81ecdfbb | 1895 | #undef $2 |
bae7f79e | 1896 | |
81ecdfbb RW |
1897 | /* Override any GCC internal prototype to avoid an error. |
1898 | Use char because int might match the return type of a GCC | |
1899 | builtin and then its argument prototype would still apply. */ | |
1900 | #ifdef __cplusplus | |
1901 | extern "C" | |
1902 | #endif | |
1903 | char $2 (); | |
1904 | /* The GNU C library defines this for functions which it implements | |
1905 | to always fail with ENOSYS. Some functions are actually named | |
1906 | something starting with __ and the normal name is an alias. */ | |
1907 | #if defined __stub_$2 || defined __stub___$2 | |
1908 | choke me | |
1909 | #endif | |
1910 | ||
1911 | int | |
1912 | main () | |
1913 | { | |
1914 | return $2 (); | |
1915 | ; | |
1916 | return 0; | |
1917 | } | |
bae7f79e | 1918 | _ACEOF |
81ecdfbb RW |
1919 | if ac_fn_c_try_link "$LINENO"; then : |
1920 | eval "$3=yes" | |
1921 | else | |
1922 | eval "$3=no" | |
1923 | fi | |
1924 | rm -f core conftest.err conftest.$ac_objext \ | |
1925 | conftest$ac_exeext conftest.$ac_ext | |
1926 | fi | |
1927 | eval ac_res=\$$3 | |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1929 | $as_echo "$ac_res" >&6; } | |
1930 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1931 | |
81ecdfbb | 1932 | } # ac_fn_c_check_func |
bae7f79e | 1933 | |
81ecdfbb RW |
1934 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1935 | # ------------------------------------ | |
1936 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1937 | ac_fn_c_check_decl () | |
1938 | { | |
1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1940 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1941 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1943 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1944 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1945 | $as_echo_n "(cached) " >&6 | |
1946 | else | |
1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1948 | /* end confdefs.h. */ | |
1949 | $4 | |
1950 | int | |
1951 | main () | |
1952 | { | |
7223e9ca ILT |
1953 | #ifndef $as_decl_name |
1954 | #ifdef __cplusplus | |
1955 | (void) $as_decl_use; | |
1956 | #else | |
1957 | (void) $as_decl_name; | |
1958 | #endif | |
81ecdfbb RW |
1959 | #endif |
1960 | ||
1961 | ; | |
1962 | return 0; | |
1963 | } | |
bae7f79e | 1964 | _ACEOF |
81ecdfbb RW |
1965 | if ac_fn_c_try_compile "$LINENO"; then : |
1966 | eval "$3=yes" | |
1967 | else | |
1968 | eval "$3=no" | |
1969 | fi | |
1970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1971 | fi | |
1972 | eval ac_res=\$$3 | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1974 | $as_echo "$ac_res" >&6; } | |
1975 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1976 | |
81ecdfbb | 1977 | } # ac_fn_c_check_decl |
bae7f79e | 1978 | |
81ecdfbb RW |
1979 | # ac_fn_cxx_try_cpp LINENO |
1980 | # ------------------------ | |
1981 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1982 | ac_fn_cxx_try_cpp () | |
1983 | { | |
1984 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1985 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1986 | case "(($ac_try" in | |
1987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1988 | *) ac_try_echo=$ac_try;; | |
1989 | esac | |
1990 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1991 | $as_echo "$ac_try_echo"; } >&5 | |
1992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1993 | ac_status=$? | |
1994 | if test -s conftest.err; then | |
1995 | grep -v '^ *+' conftest.err >conftest.er1 | |
1996 | cat conftest.er1 >&5 | |
1997 | mv -f conftest.er1 conftest.err | |
bae7f79e | 1998 | fi |
81ecdfbb RW |
1999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2000 | test $ac_status = 0; } >/dev/null && { | |
2001 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2002 | test ! -s conftest.err | |
2003 | }; then : | |
2004 | ac_retval=0 | |
2005 | else | |
2006 | $as_echo "$as_me: failed program was:" >&5 | |
2007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2008 | ||
2009 | ac_retval=1 | |
bae7f79e | 2010 | fi |
81ecdfbb RW |
2011 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2012 | return $ac_retval | |
bae7f79e | 2013 | |
81ecdfbb RW |
2014 | } # ac_fn_cxx_try_cpp |
2015 | ||
2016 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2017 | # --------------------------------------------------------- | |
2018 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2019 | # the include files in INCLUDES and setting the cache variable VAR | |
2020 | # accordingly. | |
2021 | ac_fn_cxx_check_header_mongrel () | |
2022 | { | |
2023 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2024 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2026 | $as_echo_n "checking for $2... " >&6; } | |
2027 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2028 | $as_echo_n "(cached) " >&6 | |
2029 | fi | |
2030 | eval ac_res=\$$3 | |
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2032 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2033 | else |
81ecdfbb RW |
2034 | # Is the header compilable? |
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2036 | $as_echo_n "checking $2 usability... " >&6; } | |
2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2038 | /* end confdefs.h. */ | |
2039 | $4 | |
2040 | #include <$2> | |
2041 | _ACEOF | |
2042 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2043 | ac_header_compiler=yes | |
2044 | else | |
2045 | ac_header_compiler=no | |
bae7f79e | 2046 | fi |
81ecdfbb RW |
2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2049 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2050 | |
81ecdfbb RW |
2051 | # Is the header present? |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2053 | $as_echo_n "checking $2 presence... " >&6; } | |
2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2055 | /* end confdefs.h. */ | |
2056 | #include <$2> | |
2057 | _ACEOF | |
2058 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2059 | ac_header_preproc=yes | |
2060 | else | |
2061 | ac_header_preproc=no | |
bae7f79e | 2062 | fi |
81ecdfbb RW |
2063 | rm -f conftest.err conftest.$ac_ext |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2065 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2066 | |
81ecdfbb RW |
2067 | # So? What about this header? |
2068 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2069 | yes:no: ) | |
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2071 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2073 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2074 | ;; | |
2075 | no:yes:* ) | |
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2077 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2079 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2081 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2083 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2085 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2086 | ;; | |
2087 | esac | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2089 | $as_echo_n "checking for $2... " >&6; } | |
2090 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2091 | $as_echo_n "(cached) " >&6 | |
2092 | else | |
2093 | eval "$3=\$ac_header_compiler" | |
2094 | fi | |
2095 | eval ac_res=\$$3 | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2097 | $as_echo "$ac_res" >&6; } | |
2098 | fi | |
2099 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2100 | ||
2101 | } # ac_fn_cxx_check_header_mongrel | |
2102 | ||
2103 | # ac_fn_cxx_try_link LINENO | |
2104 | # ------------------------- | |
2105 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2106 | ac_fn_cxx_try_link () | |
2107 | { | |
2108 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2110 | if { { ac_try="$ac_link" | |
2111 | case "(($ac_try" in | |
2112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2113 | *) ac_try_echo=$ac_try;; | |
2114 | esac | |
2115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2116 | $as_echo "$ac_try_echo"; } >&5 | |
2117 | (eval "$ac_link") 2>conftest.err | |
2118 | ac_status=$? | |
2119 | if test -s conftest.err; then | |
2120 | grep -v '^ *+' conftest.err >conftest.er1 | |
2121 | cat conftest.er1 >&5 | |
2122 | mv -f conftest.er1 conftest.err | |
2123 | fi | |
2124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2125 | test $ac_status = 0; } && { | |
2126 | test -z "$ac_cxx_werror_flag" || | |
2127 | test ! -s conftest.err | |
2128 | } && test -s conftest$ac_exeext && { | |
2129 | test "$cross_compiling" = yes || | |
2130 | $as_test_x conftest$ac_exeext | |
2131 | }; then : | |
2132 | ac_retval=0 | |
2133 | else | |
2134 | $as_echo "$as_me: failed program was:" >&5 | |
2135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2136 | |
81ecdfbb RW |
2137 | ac_retval=1 |
2138 | fi | |
2139 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2140 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2141 | # interfere with the next link command; also delete a directory that is | |
2142 | # left behind by Apple's compiler. We do this before executing the actions. | |
2143 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2144 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2145 | return $ac_retval | |
bae7f79e | 2146 | |
81ecdfbb | 2147 | } # ac_fn_cxx_try_link |
bae7f79e | 2148 | |
81ecdfbb RW |
2149 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2150 | # ------------------------------------ | |
2151 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2152 | ac_fn_cxx_check_func () | |
2153 | { | |
2154 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2156 | $as_echo_n "checking for $2... " >&6; } | |
2157 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2158 | $as_echo_n "(cached) " >&6 | |
2159 | else | |
2160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2161 | /* end confdefs.h. */ | |
2162 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2164 | #define $2 innocuous_$2 | |
bae7f79e | 2165 | |
81ecdfbb RW |
2166 | /* System header to define __stub macros and hopefully few prototypes, |
2167 | which can conflict with char $2 (); below. | |
2168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2169 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2170 | |
81ecdfbb RW |
2171 | #ifdef __STDC__ |
2172 | # include <limits.h> | |
2173 | #else | |
2174 | # include <assert.h> | |
2175 | #endif | |
bae7f79e | 2176 | |
81ecdfbb | 2177 | #undef $2 |
bae7f79e | 2178 | |
81ecdfbb RW |
2179 | /* Override any GCC internal prototype to avoid an error. |
2180 | Use char because int might match the return type of a GCC | |
2181 | builtin and then its argument prototype would still apply. */ | |
2182 | #ifdef __cplusplus | |
2183 | extern "C" | |
2184 | #endif | |
2185 | char $2 (); | |
2186 | /* The GNU C library defines this for functions which it implements | |
2187 | to always fail with ENOSYS. Some functions are actually named | |
2188 | something starting with __ and the normal name is an alias. */ | |
2189 | #if defined __stub_$2 || defined __stub___$2 | |
2190 | choke me | |
2191 | #endif | |
bae7f79e | 2192 | |
81ecdfbb RW |
2193 | int |
2194 | main () | |
2195 | { | |
2196 | return $2 (); | |
2197 | ; | |
2198 | return 0; | |
2199 | } | |
2200 | _ACEOF | |
2201 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2202 | eval "$3=yes" | |
2203 | else | |
2204 | eval "$3=no" | |
2205 | fi | |
2206 | rm -f core conftest.err conftest.$ac_objext \ | |
2207 | conftest$ac_exeext conftest.$ac_ext | |
2208 | fi | |
2209 | eval ac_res=\$$3 | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2211 | $as_echo "$ac_res" >&6; } | |
2212 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2213 | |
81ecdfbb | 2214 | } # ac_fn_cxx_check_func |
bae7f79e | 2215 | |
81ecdfbb RW |
2216 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2217 | # -------------------------------------- | |
2218 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2219 | ac_fn_cxx_check_decl () | |
2220 | { | |
2221 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2222 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2223 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2225 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2226 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2227 | $as_echo_n "(cached) " >&6 | |
2228 | else | |
2229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2230 | /* end confdefs.h. */ | |
2231 | $4 | |
2232 | int | |
2233 | main () | |
2234 | { | |
7223e9ca ILT |
2235 | #ifndef $as_decl_name |
2236 | #ifdef __cplusplus | |
2237 | (void) $as_decl_use; | |
2238 | #else | |
2239 | (void) $as_decl_name; | |
2240 | #endif | |
81ecdfbb | 2241 | #endif |
bae7f79e | 2242 | |
81ecdfbb RW |
2243 | ; |
2244 | return 0; | |
2245 | } | |
2246 | _ACEOF | |
2247 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2248 | eval "$3=yes" | |
2249 | else | |
2250 | eval "$3=no" | |
2251 | fi | |
2252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2253 | fi | |
2254 | eval ac_res=\$$3 | |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2256 | $as_echo "$ac_res" >&6; } | |
2257 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2258 | |
81ecdfbb RW |
2259 | } # ac_fn_cxx_check_decl |
2260 | cat >config.log <<_ACEOF | |
2261 | This file contains any messages produced by compilers while | |
2262 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2263 | |
81ecdfbb RW |
2264 | It was created by gold $as_me 0.1, which was |
2265 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2266 | |
81ecdfbb | 2267 | $ $0 $@ |
8486ee48 | 2268 | |
81ecdfbb RW |
2269 | _ACEOF |
2270 | exec 5>>config.log | |
2271 | { | |
2272 | cat <<_ASUNAME | |
2273 | ## --------- ## | |
2274 | ## Platform. ## | |
2275 | ## --------- ## | |
8486ee48 | 2276 | |
81ecdfbb RW |
2277 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2278 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2279 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2280 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2281 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2282 | |
81ecdfbb RW |
2283 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2284 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2285 | |
81ecdfbb RW |
2286 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2287 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2288 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2289 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2290 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2291 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2292 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2293 | |
81ecdfbb | 2294 | _ASUNAME |
8486ee48 | 2295 | |
81ecdfbb RW |
2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2297 | for as_dir in $PATH | |
2298 | do | |
2299 | IFS=$as_save_IFS | |
2300 | test -z "$as_dir" && as_dir=. | |
2301 | $as_echo "PATH: $as_dir" | |
2302 | done | |
2303 | IFS=$as_save_IFS | |
bae7f79e | 2304 | |
81ecdfbb | 2305 | } >&5 |
bae7f79e | 2306 | |
81ecdfbb | 2307 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2308 | |
2309 | ||
81ecdfbb RW |
2310 | ## ----------- ## |
2311 | ## Core tests. ## | |
2312 | ## ----------- ## | |
bae7f79e | 2313 | |
81ecdfbb | 2314 | _ACEOF |
1d1f116d CD |
2315 | |
2316 | ||
81ecdfbb RW |
2317 | # Keep a trace of the command line. |
2318 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2319 | # Strip out --silent because we don't want to record it for future runs. | |
2320 | # Also quote any args containing shell meta-characters. | |
2321 | # Make two passes to allow for proper duplicate-argument suppression. | |
2322 | ac_configure_args= | |
2323 | ac_configure_args0= | |
2324 | ac_configure_args1= | |
2325 | ac_must_keep_next=false | |
2326 | for ac_pass in 1 2 | |
2327 | do | |
2328 | for ac_arg | |
2329 | do | |
2330 | case $ac_arg in | |
2331 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2332 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2333 | | -silent | --silent | --silen | --sile | --sil) | |
2334 | continue ;; | |
2335 | *\'*) | |
2336 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2337 | esac | |
2338 | case $ac_pass in | |
2339 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2340 | 2) | |
2341 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2342 | if test $ac_must_keep_next = true; then | |
2343 | ac_must_keep_next=false # Got value, back to normal. | |
2344 | else | |
2345 | case $ac_arg in | |
2346 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2347 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2348 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2349 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2350 | case "$ac_configure_args0 " in | |
2351 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2352 | esac | |
2353 | ;; | |
2354 | -* ) ac_must_keep_next=true ;; | |
2355 | esac | |
2356 | fi | |
2357 | as_fn_append ac_configure_args " '$ac_arg'" | |
2358 | ;; | |
2359 | esac | |
2360 | done | |
2361 | done | |
2362 | { ac_configure_args0=; unset ac_configure_args0;} | |
2363 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2364 | |
81ecdfbb RW |
2365 | # When interrupted or exit'd, cleanup temporary files, and complete |
2366 | # config.log. We remove comments because anyway the quotes in there | |
2367 | # would cause problems or look ugly. | |
2368 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2369 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2370 | trap 'exit_status=$? | |
2371 | # Save into config.log some information that might help in debugging. | |
2372 | { | |
2373 | echo | |
bae7f79e | 2374 | |
81ecdfbb RW |
2375 | cat <<\_ASBOX |
2376 | ## ---------------- ## | |
2377 | ## Cache variables. ## | |
2378 | ## ---------------- ## | |
2379 | _ASBOX | |
2380 | echo | |
2381 | # The following way of writing the cache mishandles newlines in values, | |
2382 | ( | |
2383 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2384 | eval ac_val=\$$ac_var | |
2385 | case $ac_val in #( | |
2386 | *${as_nl}*) | |
2387 | case $ac_var in #( | |
2388 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2389 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2390 | esac | |
2391 | case $ac_var in #( | |
2392 | _ | IFS | as_nl) ;; #( | |
2393 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2394 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2395 | esac ;; | |
2396 | esac | |
2397 | done | |
2398 | (set) 2>&1 | | |
2399 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2400 | *${as_nl}ac_space=\ *) | |
2401 | sed -n \ | |
2402 | "s/'\''/'\''\\\\'\'''\''/g; | |
2403 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2404 | ;; #( | |
2405 | *) | |
2406 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2407 | ;; | |
2408 | esac | | |
2409 | sort | |
2410 | ) | |
2411 | echo | |
bae7f79e | 2412 | |
81ecdfbb RW |
2413 | cat <<\_ASBOX |
2414 | ## ----------------- ## | |
2415 | ## Output variables. ## | |
2416 | ## ----------------- ## | |
2417 | _ASBOX | |
2418 | echo | |
2419 | for ac_var in $ac_subst_vars | |
2420 | do | |
2421 | eval ac_val=\$$ac_var | |
2422 | case $ac_val in | |
2423 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2424 | esac | |
2425 | $as_echo "$ac_var='\''$ac_val'\''" | |
2426 | done | sort | |
2427 | echo | |
bae7f79e | 2428 | |
81ecdfbb RW |
2429 | if test -n "$ac_subst_files"; then |
2430 | cat <<\_ASBOX | |
2431 | ## ------------------- ## | |
2432 | ## File substitutions. ## | |
2433 | ## ------------------- ## | |
2434 | _ASBOX | |
2435 | echo | |
2436 | for ac_var in $ac_subst_files | |
2437 | do | |
2438 | eval ac_val=\$$ac_var | |
2439 | case $ac_val in | |
2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2441 | esac | |
2442 | $as_echo "$ac_var='\''$ac_val'\''" | |
2443 | done | sort | |
2444 | echo | |
2445 | fi | |
bae7f79e | 2446 | |
81ecdfbb RW |
2447 | if test -s confdefs.h; then |
2448 | cat <<\_ASBOX | |
2449 | ## ----------- ## | |
2450 | ## confdefs.h. ## | |
2451 | ## ----------- ## | |
2452 | _ASBOX | |
2453 | echo | |
2454 | cat confdefs.h | |
2455 | echo | |
2456 | fi | |
2457 | test "$ac_signal" != 0 && | |
2458 | $as_echo "$as_me: caught signal $ac_signal" | |
2459 | $as_echo "$as_me: exit $exit_status" | |
2460 | } >&5 | |
2461 | rm -f core *.core core.conftest.* && | |
2462 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2463 | exit $exit_status | |
2464 | ' 0 | |
2465 | for ac_signal in 1 2 13 15; do | |
2466 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2467 | done |
81ecdfbb | 2468 | ac_signal=0 |
bae7f79e | 2469 | |
81ecdfbb RW |
2470 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2471 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2472 | |
81ecdfbb | 2473 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2474 | |
81ecdfbb | 2475 | # Predefined preprocessor variables. |
bae7f79e | 2476 | |
81ecdfbb RW |
2477 | cat >>confdefs.h <<_ACEOF |
2478 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2479 | _ACEOF | |
bae7f79e | 2480 | |
81ecdfbb RW |
2481 | cat >>confdefs.h <<_ACEOF |
2482 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2483 | _ACEOF | |
bae7f79e | 2484 | |
81ecdfbb RW |
2485 | cat >>confdefs.h <<_ACEOF |
2486 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2487 | _ACEOF | |
bae7f79e | 2488 | |
81ecdfbb RW |
2489 | cat >>confdefs.h <<_ACEOF |
2490 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2491 | _ACEOF | |
bae7f79e | 2492 | |
81ecdfbb RW |
2493 | cat >>confdefs.h <<_ACEOF |
2494 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2495 | _ACEOF | |
bae7f79e | 2496 | |
81ecdfbb RW |
2497 | cat >>confdefs.h <<_ACEOF |
2498 | #define PACKAGE_URL "$PACKAGE_URL" | |
2499 | _ACEOF | |
2500 | ||
2501 | ||
2502 | # Let the site file select an alternate cache file if it wants to. | |
2503 | # Prefer an explicitly selected file to automatically selected ones. | |
2504 | ac_site_file1=NONE | |
2505 | ac_site_file2=NONE | |
2506 | if test -n "$CONFIG_SITE"; then | |
2507 | ac_site_file1=$CONFIG_SITE | |
2508 | elif test "x$prefix" != xNONE; then | |
2509 | ac_site_file1=$prefix/share/config.site | |
2510 | ac_site_file2=$prefix/etc/config.site | |
2511 | else | |
2512 | ac_site_file1=$ac_default_prefix/share/config.site | |
2513 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2514 | fi | |
2515 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2516 | do | |
2517 | test "x$ac_site_file" = xNONE && continue | |
2518 | if test -r "$ac_site_file"; then | |
2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2520 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2521 | sed 's/^/| /' "$ac_site_file" >&5 | |
2522 | . "$ac_site_file" | |
2523 | fi | |
2524 | done | |
2525 | ||
2526 | if test -r "$cache_file"; then | |
2527 | # Some versions of bash will fail to source /dev/null (special | |
2528 | # files actually), so we avoid doing that. | |
2529 | if test -f "$cache_file"; then | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2531 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2532 | case $cache_file in | |
2533 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2534 | *) . "./$cache_file";; | |
2535 | esac | |
2536 | fi | |
2537 | else | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2539 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2540 | >$cache_file | |
2541 | fi | |
2542 | ||
2543 | # Check that the precious variables saved in the cache have kept the same | |
2544 | # value. | |
2545 | ac_cache_corrupted=false | |
2546 | for ac_var in $ac_precious_vars; do | |
2547 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2548 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2549 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2550 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2551 | case $ac_old_set,$ac_new_set in | |
2552 | set,) | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2554 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2555 | ac_cache_corrupted=: ;; | |
2556 | ,set) | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2558 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2559 | ac_cache_corrupted=: ;; | |
2560 | ,);; | |
2561 | *) | |
2562 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2563 | # differences in whitespace do not lead to failure. | |
2564 | ac_old_val_w=`echo x $ac_old_val` | |
2565 | ac_new_val_w=`echo x $ac_new_val` | |
2566 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2568 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2569 | ac_cache_corrupted=: | |
2570 | else | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2572 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2573 | eval $ac_var=\$ac_old_val | |
2574 | fi | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2576 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2578 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2579 | fi;; | |
2580 | esac | |
2581 | # Pass precious variables to config.status. | |
2582 | if test "$ac_new_set" = set; then | |
2583 | case $ac_new_val in | |
2584 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2585 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2586 | esac | |
2587 | case " $ac_configure_args " in | |
2588 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2589 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2590 | esac | |
2591 | fi | |
2592 | done | |
2593 | if $ac_cache_corrupted; then | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2597 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2598 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2599 | fi | |
2600 | ## -------------------- ## | |
2601 | ## Main body of script. ## | |
2602 | ## -------------------- ## | |
2603 | ||
2604 | ac_ext=c | |
2605 | ac_cpp='$CPP $CPPFLAGS' | |
2606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2609 | ||
2610 | ||
2611 | ||
2612 | ||
2613 | ||
2614 | ||
2615 | ||
2616 | ac_aux_dir= | |
2617 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2618 | for ac_t in install-sh install.sh shtool; do | |
2619 | if test -f "$ac_dir/$ac_t"; then | |
2620 | ac_aux_dir=$ac_dir | |
2621 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2622 | break 2 | |
2623 | fi | |
2624 | done | |
2625 | done | |
2626 | if test -z "$ac_aux_dir"; then | |
2627 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2628 | fi | |
2629 | ||
2630 | # These three variables are undocumented and unsupported, | |
2631 | # and are intended to be withdrawn in a future Autoconf release. | |
2632 | # They can cause serious problems if a builder's source tree is in a directory | |
2633 | # whose full name contains unusual characters. | |
2634 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2635 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2636 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2637 | ||
2638 | ||
2639 | # Make sure we can run config.sub. | |
2640 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2641 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2642 | ||
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2644 | $as_echo_n "checking build system type... " >&6; } | |
2645 | if test "${ac_cv_build+set}" = set; then : | |
2646 | $as_echo_n "(cached) " >&6 | |
2647 | else | |
2648 | ac_build_alias=$build_alias | |
2649 | test "x$ac_build_alias" = x && | |
2650 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2651 | test "x$ac_build_alias" = x && | |
2652 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2653 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2654 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2655 | ||
2656 | fi | |
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2658 | $as_echo "$ac_cv_build" >&6; } | |
2659 | case $ac_cv_build in | |
2660 | *-*-*) ;; | |
2661 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2662 | esac | |
2663 | build=$ac_cv_build | |
2664 | ac_save_IFS=$IFS; IFS='-' | |
2665 | set x $ac_cv_build | |
2666 | shift | |
2667 | build_cpu=$1 | |
2668 | build_vendor=$2 | |
2669 | shift; shift | |
2670 | # Remember, the first character of IFS is used to create $*, | |
2671 | # except with old shells: | |
2672 | build_os=$* | |
2673 | IFS=$ac_save_IFS | |
2674 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2675 | ||
2676 | ||
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2678 | $as_echo_n "checking host system type... " >&6; } | |
2679 | if test "${ac_cv_host+set}" = set; then : | |
2680 | $as_echo_n "(cached) " >&6 | |
2681 | else | |
2682 | if test "x$host_alias" = x; then | |
2683 | ac_cv_host=$ac_cv_build | |
2684 | else | |
2685 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2686 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2687 | fi | |
2688 | ||
2689 | fi | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2691 | $as_echo "$ac_cv_host" >&6; } | |
2692 | case $ac_cv_host in | |
2693 | *-*-*) ;; | |
2694 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2695 | esac | |
2696 | host=$ac_cv_host | |
2697 | ac_save_IFS=$IFS; IFS='-' | |
2698 | set x $ac_cv_host | |
2699 | shift | |
2700 | host_cpu=$1 | |
2701 | host_vendor=$2 | |
2702 | shift; shift | |
2703 | # Remember, the first character of IFS is used to create $*, | |
2704 | # except with old shells: | |
2705 | host_os=$* | |
2706 | IFS=$ac_save_IFS | |
2707 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2708 | ||
2709 | ||
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2711 | $as_echo_n "checking target system type... " >&6; } | |
2712 | if test "${ac_cv_target+set}" = set; then : | |
2713 | $as_echo_n "(cached) " >&6 | |
2714 | else | |
2715 | if test "x$target_alias" = x; then | |
2716 | ac_cv_target=$ac_cv_host | |
2717 | else | |
2718 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2719 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2720 | fi | |
2721 | ||
2722 | fi | |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2724 | $as_echo "$ac_cv_target" >&6; } | |
2725 | case $ac_cv_target in | |
2726 | *-*-*) ;; | |
2727 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2728 | esac | |
2729 | target=$ac_cv_target | |
2730 | ac_save_IFS=$IFS; IFS='-' | |
2731 | set x $ac_cv_target | |
2732 | shift | |
2733 | target_cpu=$1 | |
2734 | target_vendor=$2 | |
2735 | shift; shift | |
2736 | # Remember, the first character of IFS is used to create $*, | |
2737 | # except with old shells: | |
2738 | target_os=$* | |
2739 | IFS=$ac_save_IFS | |
2740 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2741 | ||
2742 | ||
2743 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2744 | # will get canonicalized. |
2745 | test -n "$target_alias" && | |
2746 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2747 | NONENONEs,x,x, && | |
2748 | program_prefix=${target_alias}- | |
2749 | ||
81ecdfbb RW |
2750 | am__api_version='1.11' |
2751 | ||
bae7f79e ILT |
2752 | # Find a good install program. We prefer a C program (faster), |
2753 | # so one script is as good as another. But avoid the broken or | |
2754 | # incompatible versions: | |
2755 | # SysV /etc/install, /usr/sbin/install | |
2756 | # SunOS /usr/etc/install | |
2757 | # IRIX /sbin/install | |
2758 | # AIX /bin/install | |
2759 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2760 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2761 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2762 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2763 | # OS/2's system install, which has a completely different semantic | |
2764 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2765 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2767 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2768 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2769 | if test "${ac_cv_path_install+set}" = set; then : |
2770 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2771 | else |
2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2773 | for as_dir in $PATH | |
2774 | do | |
2775 | IFS=$as_save_IFS | |
2776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2777 | # Account for people who put trailing slashes in PATH elements. |
2778 | case $as_dir/ in #(( | |
2779 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2780 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2781 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2782 | /usr/ucb/* ) ;; |
2783 | *) | |
2784 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2785 | # Don't use installbsd from OSF since it installs stuff as root | |
2786 | # by default. | |
2787 | for ac_prog in ginstall scoinst install; do | |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2789 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2790 | if test $ac_prog = install && |
2791 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2792 | # AIX install. It has an incompatible calling convention. | |
2793 | : | |
2794 | elif test $ac_prog = install && | |
2795 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2796 | # program-specific install script used by HP pwplus--don't use. | |
2797 | : | |
2798 | else | |
f5314dd5 DM |
2799 | rm -rf conftest.one conftest.two conftest.dir |
2800 | echo one > conftest.one | |
2801 | echo two > conftest.two | |
2802 | mkdir conftest.dir | |
2803 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2804 | test -s conftest.one && test -s conftest.two && | |
2805 | test -s conftest.dir/conftest.one && | |
2806 | test -s conftest.dir/conftest.two | |
2807 | then | |
2808 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2809 | break 3 | |
2810 | fi | |
bae7f79e ILT |
2811 | fi |
2812 | fi | |
2813 | done | |
2814 | done | |
2815 | ;; | |
2816 | esac | |
81ecdfbb RW |
2817 | |
2818 | done | |
2819 | IFS=$as_save_IFS | |
bae7f79e | 2820 | |
f5314dd5 | 2821 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2822 | |
2823 | fi | |
2824 | if test "${ac_cv_path_install+set}" = set; then | |
2825 | INSTALL=$ac_cv_path_install | |
2826 | else | |
f5314dd5 DM |
2827 | # As a last resort, use the slow shell script. Don't cache a |
2828 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2829 | # break other packages using the cache if that directory is |
f5314dd5 | 2830 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2831 | INSTALL=$ac_install_sh |
2832 | fi | |
2833 | fi | |
81ecdfbb RW |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2835 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2836 | |
2837 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2838 | # It thinks the first close brace ends the variable substitution. | |
2839 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2840 | ||
2841 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2842 | ||
2843 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2844 | ||
81ecdfbb RW |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2846 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2847 | # Just in case |
2848 | sleep 1 | |
2849 | echo timestamp > conftest.file | |
81ecdfbb RW |
2850 | # Reject unsafe characters in $srcdir or the absolute working directory |
2851 | # name. Accept space and tab only in the latter. | |
2852 | am_lf=' | |
2853 | ' | |
2854 | case `pwd` in | |
2855 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2856 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2857 | esac | |
2858 | case $srcdir in | |
2859 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2860 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2861 | esac | |
2862 | ||
bae7f79e ILT |
2863 | # Do `set' in a subshell so we don't clobber the current shell's |
2864 | # arguments. Must try -L first in case configure is actually a | |
2865 | # symlink; some systems play weird games with the mod time of symlinks | |
2866 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2867 | # directory). | |
2868 | if ( | |
81ecdfbb | 2869 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2870 | if test "$*" = "X"; then |
2871 | # -L didn't work. | |
81ecdfbb | 2872 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2873 | fi |
2874 | rm -f conftest.file | |
2875 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2876 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2877 | ||
2878 | # If neither matched, then we have a broken ls. This can happen | |
2879 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2880 | # broken ls alias from the environment. This has actually | |
2881 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2882 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2883 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2884 | fi |
2885 | ||
2886 | test "$2" = conftest.file | |
2887 | ) | |
2888 | then | |
2889 | # Ok. | |
2890 | : | |
2891 | else | |
81ecdfbb RW |
2892 | as_fn_error "newly created file is older than distributed files! |
2893 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2894 | fi |
81ecdfbb RW |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2896 | $as_echo "yes" >&6; } | |
bae7f79e | 2897 | test "$program_prefix" != NONE && |
81ecdfbb | 2898 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2899 | # Use a double $ so make ignores it. |
2900 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2901 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2902 | # Double any \ or $. | |
bae7f79e | 2903 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2904 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2905 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2906 | |
2907 | # expand $ac_aux_dir to an absolute path | |
2908 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2909 | ||
81ecdfbb RW |
2910 | if test x"${MISSING+set}" != xset; then |
2911 | case $am_aux_dir in | |
2912 | *\ * | *\ *) | |
2913 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2914 | *) | |
2915 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2916 | esac | |
2917 | fi | |
bae7f79e ILT |
2918 | # Use eval to expand $SHELL |
2919 | if eval "$MISSING --run true"; then | |
2920 | am_missing_run="$MISSING --run " | |
2921 | else | |
2922 | am_missing_run= | |
81ecdfbb RW |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2924 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2925 | fi | |
2926 | ||
2927 | if test x"${install_sh}" != xset; then | |
2928 | case $am_aux_dir in | |
2929 | *\ * | *\ *) | |
2930 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2931 | *) | |
2932 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2933 | esac | |
2934 | fi | |
2935 | ||
2936 | # Installed binaries are usually stripped using `strip' when the user | |
2937 | # run `make install-strip'. However `strip' might not be the right | |
2938 | # tool to use in cross-compilation environments, therefore Automake | |
2939 | # will honor the `STRIP' environment variable to overrule this program. | |
2940 | if test "$cross_compiling" != no; then | |
2941 | if test -n "$ac_tool_prefix"; then | |
2942 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2943 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2945 | $as_echo_n "checking for $ac_word... " >&6; } | |
2946 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2947 | $as_echo_n "(cached) " >&6 | |
2948 | else | |
2949 | if test -n "$STRIP"; then | |
2950 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2951 | else | |
2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2953 | for as_dir in $PATH | |
2954 | do | |
2955 | IFS=$as_save_IFS | |
2956 | test -z "$as_dir" && as_dir=. | |
2957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2959 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2961 | break 2 | |
2962 | fi | |
2963 | done | |
2964 | done | |
2965 | IFS=$as_save_IFS | |
2966 | ||
2967 | fi | |
2968 | fi | |
2969 | STRIP=$ac_cv_prog_STRIP | |
2970 | if test -n "$STRIP"; then | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2972 | $as_echo "$STRIP" >&6; } | |
2973 | else | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2975 | $as_echo "no" >&6; } | |
2976 | fi | |
2977 | ||
2978 | ||
2979 | fi | |
2980 | if test -z "$ac_cv_prog_STRIP"; then | |
2981 | ac_ct_STRIP=$STRIP | |
2982 | # Extract the first word of "strip", so it can be a program name with args. | |
2983 | set dummy strip; ac_word=$2 | |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2985 | $as_echo_n "checking for $ac_word... " >&6; } | |
2986 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2987 | $as_echo_n "(cached) " >&6 | |
2988 | else | |
2989 | if test -n "$ac_ct_STRIP"; then | |
2990 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2991 | else | |
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2993 | for as_dir in $PATH | |
2994 | do | |
2995 | IFS=$as_save_IFS | |
2996 | test -z "$as_dir" && as_dir=. | |
2997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2999 | ac_cv_prog_ac_ct_STRIP="strip" | |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3001 | break 2 | |
3002 | fi | |
3003 | done | |
3004 | done | |
3005 | IFS=$as_save_IFS | |
3006 | ||
3007 | fi | |
3008 | fi | |
3009 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3010 | if test -n "$ac_ct_STRIP"; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3012 | $as_echo "$ac_ct_STRIP" >&6; } | |
3013 | else | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3015 | $as_echo "no" >&6; } | |
3016 | fi | |
3017 | ||
3018 | if test "x$ac_ct_STRIP" = x; then | |
3019 | STRIP=":" | |
3020 | else | |
3021 | case $cross_compiling:$ac_tool_warned in | |
3022 | yes:) | |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3025 | ac_tool_warned=yes ;; | |
3026 | esac | |
3027 | STRIP=$ac_ct_STRIP | |
3028 | fi | |
3029 | else | |
3030 | STRIP="$ac_cv_prog_STRIP" | |
3031 | fi | |
3032 | ||
3033 | fi | |
3034 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3035 | ||
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3037 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3038 | if test -z "$MKDIR_P"; then | |
3039 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3040 | $as_echo_n "(cached) " >&6 | |
3041 | else | |
3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3043 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3044 | do | |
3045 | IFS=$as_save_IFS | |
3046 | test -z "$as_dir" && as_dir=. | |
3047 | for ac_prog in mkdir gmkdir; do | |
3048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3049 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3050 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3051 | 'mkdir (GNU coreutils) '* | \ | |
3052 | 'mkdir (coreutils) '* | \ | |
3053 | 'mkdir (fileutils) '4.1*) | |
3054 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3055 | break 3;; | |
3056 | esac | |
3057 | done | |
3058 | done | |
bae7f79e | 3059 | done |
81ecdfbb RW |
3060 | IFS=$as_save_IFS |
3061 | ||
3062 | fi | |
3063 | ||
3064 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3065 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3066 | else |
81ecdfbb RW |
3067 | # As a last resort, use the slow shell script. Don't cache a |
3068 | # value for MKDIR_P within a source directory, because that will | |
3069 | # break other packages using the cache if that directory is | |
3070 | # removed, or if the value is a relative name. | |
3071 | test -d ./--version && rmdir ./--version | |
3072 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3073 | fi |
3074 | fi | |
81ecdfbb RW |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3076 | $as_echo "$MKDIR_P" >&6; } | |
3077 | ||
3078 | mkdir_p="$MKDIR_P" | |
3079 | case $mkdir_p in | |
3080 | [\\/$]* | ?:[\\/]*) ;; | |
3081 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3082 | esac | |
bae7f79e ILT |
3083 | |
3084 | for ac_prog in gawk mawk nawk awk | |
3085 | do | |
3086 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3087 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3089 | $as_echo_n "checking for $ac_word... " >&6; } | |
3090 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3091 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3092 | else |
3093 | if test -n "$AWK"; then | |
3094 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3095 | else | |
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3097 | for as_dir in $PATH | |
3098 | do | |
3099 | IFS=$as_save_IFS | |
3100 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3101 | for ac_exec_ext in '' $ac_executable_extensions; do |
3102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3103 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3105 | break 2 |
3106 | fi | |
3107 | done | |
81ecdfbb RW |
3108 | done |
3109 | IFS=$as_save_IFS | |
bae7f79e ILT |
3110 | |
3111 | fi | |
3112 | fi | |
3113 | AWK=$ac_cv_prog_AWK | |
3114 | if test -n "$AWK"; then | |
81ecdfbb RW |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3116 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3117 | else |
81ecdfbb RW |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3119 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3120 | fi |
3121 | ||
81ecdfbb | 3122 | |
bae7f79e ILT |
3123 | test -n "$AWK" && break |
3124 | done | |
3125 | ||
81ecdfbb RW |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3127 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3128 | set x ${MAKE-make} | |
3129 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3130 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3131 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3132 | else |
3133 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3134 | SHELL = /bin/sh |
bae7f79e | 3135 | all: |
81ecdfbb | 3136 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3137 | _ACEOF |
3138 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3139 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3140 | *@@@%%%=?*=@@@%%%*) | |
3141 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3142 | *) | |
3143 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3144 | esac | |
bae7f79e ILT |
3145 | rm -f conftest.make |
3146 | fi | |
81ecdfbb RW |
3147 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3149 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3150 | SET_MAKE= |
3151 | else | |
81ecdfbb RW |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3153 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3154 | SET_MAKE="MAKE=${MAKE-make}" |
3155 | fi | |
3156 | ||
3157 | rm -rf .tst 2>/dev/null | |
3158 | mkdir .tst 2>/dev/null | |
3159 | if test -d .tst; then | |
3160 | am__leading_dot=. | |
3161 | else | |
3162 | am__leading_dot=_ | |
3163 | fi | |
3164 | rmdir .tst 2>/dev/null | |
3165 | ||
81ecdfbb RW |
3166 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3167 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3168 | # is not polluted with repeated "-I." | |
3169 | am__isrc=' -I$(srcdir)' | |
3170 | # test to see if srcdir already configured | |
3171 | if test -f $srcdir/config.status; then | |
3172 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3173 | fi | |
bae7f79e ILT |
3174 | fi |
3175 | ||
3176 | # test whether we have cygpath | |
3177 | if test -z "$CYGPATH_W"; then | |
3178 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3179 | CYGPATH_W='cygpath -w' | |
3180 | else | |
3181 | CYGPATH_W=echo | |
3182 | fi | |
3183 | fi | |
3184 | ||
3185 | ||
3186 | # Define the identity of the package. | |
8486ee48 ILT |
3187 | PACKAGE='gold' |
3188 | VERSION='0.1' | |
bae7f79e ILT |
3189 | |
3190 | ||
3191 | cat >>confdefs.h <<_ACEOF | |
3192 | #define PACKAGE "$PACKAGE" | |
3193 | _ACEOF | |
3194 | ||
3195 | ||
3196 | cat >>confdefs.h <<_ACEOF | |
3197 | #define VERSION "$VERSION" | |
3198 | _ACEOF | |
3199 | ||
3200 | # Some tools Automake needs. | |
3201 | ||
3202 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3203 | ||
3204 | ||
3205 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3206 | ||
3207 | ||
3208 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3209 | ||
3210 | ||
3211 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3212 | ||
3213 | ||
3214 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3215 | ||
81ecdfbb RW |
3216 | # We need awk for the "check" target. The system "awk" is bad on |
3217 | # some platforms. | |
3218 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3219 | |
81ecdfbb | 3220 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3221 | |
81ecdfbb RW |
3222 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3223 | ||
3224 | ||
3225 | ||
3226 | ||
3227 | ||
3228 | ||
3229 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3230 | ||
3231 | ||
7c0640fa | 3232 | # PR 14072 |
81ecdfbb | 3233 | |
df7b86aa NC |
3234 | |
3235 | ||
81ecdfbb RW |
3236 | # Check whether --with-sysroot was given. |
3237 | if test "${with_sysroot+set}" = set; then : | |
3238 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3239 | else |
81ecdfbb | 3240 | sysroot=no |
bae7f79e ILT |
3241 | fi |
3242 | ||
81ecdfbb RW |
3243 | |
3244 | if test "$sysroot" = "yes"; then | |
3245 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3246 | elif test "$sysroot" = "no"; then | |
3247 | sysroot= | |
ad2d6943 ILT |
3248 | fi |
3249 | ||
3250 | sysroot_relocatable=0 | |
3251 | if test -n "$sysroot"; then | |
3252 | case "sysroot" in | |
3253 | "${prefix}" | "${prefix}/"* | \ | |
3254 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3255 | '${prefix}' | '${prefix}/'*| \ | |
3256 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3257 | sysroot_relocatable=1 | |
3258 | ;; | |
3259 | esac | |
3260 | fi | |
3261 | ||
3262 | ||
3263 | cat >>confdefs.h <<_ACEOF | |
3264 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3265 | _ACEOF | |
3266 | ||
3267 | ||
3268 | cat >>confdefs.h <<_ACEOF | |
3269 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3270 | _ACEOF | |
3271 | ||
3272 | ||
c7791212 | 3273 | |
f2a6224b | 3274 | installed_linker=ld.gold |
4fda8867 NC |
3275 | # Check whether --enable-gold was given. |
3276 | if test "${enable_gold+set}" = set; then : | |
3277 | enableval=$enable_gold; case "${enableval}" in | |
f2a6224b L |
3278 | default) |
3279 | install_as_default=yes | |
3280 | ;; | |
3281 | yes) | |
3282 | if test x${enable_ld} = xno; then | |
c7791212 NC |
3283 | install_as_default=yes |
3284 | fi | |
4fda8867 NC |
3285 | ;; |
3286 | esac | |
3287 | else | |
c7791212 | 3288 | install_as_default=no |
4fda8867 NC |
3289 | fi |
3290 | ||
3291 | ||
3292 | ||
3293 | ||
81ecdfbb RW |
3294 | # Check whether --enable-threads was given. |
3295 | if test "${enable_threads+set}" = set; then : | |
3296 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3297 | yes | "") threads=yes ;; |
3298 | no) threads=no ;; | |
3299 | *) threads=yes ;; | |
3300 | esac | |
3301 | else | |
3302 | threads=no | |
81ecdfbb RW |
3303 | fi |
3304 | ||
fe9a4c12 ILT |
3305 | if test "$threads" = "yes"; then |
3306 | ||
81ecdfbb | 3307 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3308 | |
3309 | fi | |
81ecdfbb | 3310 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3311 | THREADS_TRUE= |
3312 | THREADS_FALSE='#' | |
3313 | else | |
3314 | THREADS_TRUE='#' | |
3315 | THREADS_FALSE= | |
3316 | fi | |
3317 | ||
3318 | ||
81ecdfbb RW |
3319 | # Check whether --enable-plugins was given. |
3320 | if test "${enable_plugins+set}" = set; then : | |
3321 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3322 | yes | "") plugins=yes ;; |
3323 | no) plugins=no ;; | |
3324 | *) plugins=yes ;; | |
3325 | esac | |
3326 | else | |
3327 | plugins=no | |
81ecdfbb RW |
3328 | fi |
3329 | ||
89fc3421 CC |
3330 | if test "$plugins" = "yes"; then |
3331 | ||
81ecdfbb | 3332 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3333 | |
3334 | fi | |
81ecdfbb | 3335 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3336 | PLUGINS_TRUE= |
3337 | PLUGINS_FALSE='#' | |
3338 | else | |
3339 | PLUGINS_TRUE='#' | |
3340 | PLUGINS_FALSE= | |
3341 | fi | |
3342 | ||
3343 | ||
81ecdfbb RW |
3344 | # Check whether --enable-targets was given. |
3345 | if test "${enable_targets+set}" = set; then : | |
3346 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3347 | yes | "") |
81ecdfbb | 3348 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3349 | ;; |
3350 | no) | |
3351 | enable_targets= | |
3352 | ;; | |
3353 | *) | |
3354 | enable_targets=$enableval | |
3355 | ;; | |
3356 | esac | |
3357 | else | |
3358 | # For now, enable all targets by default | |
3359 | enable_targets=all | |
3360 | ||
81ecdfbb RW |
3361 | fi |
3362 | ||
193a53d9 ILT |
3363 | |
3364 | # Canonicalize the enabled targets. | |
3365 | if test -n "$enable_targets"; then | |
3366 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3367 | result=`$ac_config_sub $targ 2>/dev/null` | |
3368 | if test -n "$result"; then | |
3369 | canon_targets="$canon_targets $result" | |
3370 | else | |
3371 | # Permit unrecognized target names, like "all". | |
3372 | canon_targets="$canon_targets $targ" | |
3373 | fi | |
3374 | done | |
3375 | fi | |
3376 | ||
3377 | # See which specific instantiations we need. | |
6df6da4a ILT |
3378 | targetobjs= |
3379 | all_targets= | |
fbfba508 ILT |
3380 | default_machine= |
3381 | default_size= | |
3382 | default_big_endian= | |
36959681 | 3383 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3384 | targ_32_little= |
3385 | targ_32_big= | |
81ecdfbb RW |
3386 | targ_64_little= |
3387 | targ_64_big= | |
3388 | for targ in $target $canon_targets; do | |
3389 | if test "$targ" = "all"; then | |
3390 | targ_32_little=yes | |
3391 | targ_32_big=yes | |
3392 | targ_64_little=yes | |
3393 | targ_64_big=yes | |
3394 | all_targets=yes | |
3395 | else | |
3396 | . ${srcdir}/configure.tgt | |
bae7f79e | 3397 | |
81ecdfbb RW |
3398 | if test "$targ_obj" = "UNKNOWN"; then |
3399 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3400 | else | |
3401 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3402 | if test "$targ_extra_obj" != ""; then | |
3403 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3404 | fi | |
3405 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3406 | if test "$targ_big_endian" = "true" \ | |
3407 | -o "$targ_extra_big_endian" = "true"; then | |
3408 | targ_32_big=yes | |
3409 | fi | |
3410 | if test "$targ_big_endian" = "false" \ | |
3411 | -o "$targ_extra_big_endian" = "false"; then | |
3412 | targ_32_little=yes | |
3413 | fi | |
3414 | fi | |
3415 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3416 | if test "$targ_big_endian" = "true" \ | |
3417 | -o "$targ_extra_big_endian" = "true"; then | |
3418 | targ_64_big=yes | |
3419 | fi | |
3420 | if test "$targ_big_endian" = "false" \ | |
3421 | -o "$targ_extra_big_endian" = "false"; then | |
3422 | targ_64_little=yes | |
3423 | fi | |
3424 | fi | |
bae7f79e | 3425 | |
81ecdfbb RW |
3426 | if test "$target" = "$targ"; then |
3427 | default_machine=$targ_machine | |
3428 | default_size=$targ_size | |
3429 | default_big_endian=$targ_big_endian | |
3430 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3431 | |
3432 | if test "$targ_obj" = "arm"; then | |
3433 | DEFAULT_TARGET_ARM_TRUE= | |
3434 | DEFAULT_TARGET_ARM_FALSE='#' | |
3435 | else | |
3436 | DEFAULT_TARGET_ARM_TRUE='#' | |
3437 | DEFAULT_TARGET_ARM_FALSE= | |
3438 | fi | |
3439 | ||
3440 | if test "$targ_obj" = "i386"; then | |
3441 | DEFAULT_TARGET_I386_TRUE= | |
3442 | DEFAULT_TARGET_I386_FALSE='#' | |
3443 | else | |
3444 | DEFAULT_TARGET_I386_TRUE='#' | |
3445 | DEFAULT_TARGET_I386_FALSE= | |
3446 | fi | |
3447 | ||
3448 | if test "$targ_obj" = "powerpc"; then | |
3449 | DEFAULT_TARGET_POWERPC_TRUE= | |
3450 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3451 | else | |
3452 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3453 | DEFAULT_TARGET_POWERPC_FALSE= | |
3454 | fi | |
3455 | ||
3456 | if test "$targ_obj" = "sparc"; then | |
3457 | DEFAULT_TARGET_SPARC_TRUE= | |
3458 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3459 | else | |
3460 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3461 | DEFAULT_TARGET_SPARC_FALSE= | |
3462 | fi | |
3463 | ||
3464 | if test "$targ_obj" = "x86_64"; then | |
3465 | DEFAULT_TARGET_X86_64_TRUE= | |
3466 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3467 | else | |
3468 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3469 | DEFAULT_TARGET_X86_64_FALSE= | |
3470 | fi | |
3471 | ||
0a6f1bf2 AM |
3472 | if test "$targ_obj" = "tilegx"; then |
3473 | DEFAULT_TARGET_TILEGX_TRUE= | |
3474 | DEFAULT_TARGET_TILEGX_FALSE='#' | |
3475 | else | |
3476 | DEFAULT_TARGET_TILEGX_TRUE='#' | |
3477 | DEFAULT_TARGET_TILEGX_FALSE= | |
3478 | fi | |
3479 | ||
9df9de2c CC |
3480 | DEFAULT_TARGET=${targ_obj} |
3481 | ||
81ecdfbb RW |
3482 | fi |
3483 | fi | |
bae7f79e | 3484 | fi |
81ecdfbb | 3485 | done |
bae7f79e | 3486 | |
6cfaf60b | 3487 | # Remove any duplicates. |
9109c078 ILT |
3488 | to="" |
3489 | for t in $targetobjs; do | |
3490 | case " $to " in | |
3491 | *" $t "*) ;; | |
3492 | *) to="$to $t" ;; | |
3493 | esac | |
3494 | done | |
3495 | targetobjs=$to | |
6cfaf60b | 3496 | |
81ecdfbb | 3497 | if test -n "$targ_32_little"; then |
bae7f79e | 3498 | |
81ecdfbb | 3499 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3500 | |
537b5f51 | 3501 | fi |
81ecdfbb | 3502 | if test -n "$targ_32_big"; then |
537b5f51 | 3503 | |
81ecdfbb | 3504 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3505 | |
81ecdfbb RW |
3506 | fi |
3507 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3508 | |
81ecdfbb | 3509 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3510 | |
81ecdfbb RW |
3511 | fi |
3512 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3513 | |
81ecdfbb | 3514 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3515 | |
bae7f79e | 3516 | fi |
bae7f79e | 3517 | |
81ecdfbb RW |
3518 | if test -n "$all_targets"; then |
3519 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3520 | else | |
3521 | TARGETOBJS="$targetobjs" | |
3522 | fi | |
bae7f79e | 3523 | |
bae7f79e ILT |
3524 | |
3525 | ||
81ecdfbb RW |
3526 | cat >>confdefs.h <<_ACEOF |
3527 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3528 | _ACEOF | |
bae7f79e | 3529 | |
bae7f79e | 3530 | |
81ecdfbb RW |
3531 | cat >>confdefs.h <<_ACEOF |
3532 | #define GOLD_DEFAULT_SIZE $default_size | |
3533 | _ACEOF | |
bae7f79e | 3534 | |
bae7f79e | 3535 | |
81ecdfbb RW |
3536 | cat >>confdefs.h <<_ACEOF |
3537 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3538 | _ACEOF | |
bae7f79e | 3539 | |
bae7f79e | 3540 | |
81ecdfbb RW |
3541 | cat >>confdefs.h <<_ACEOF |
3542 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3543 | _ACEOF | |
bae7f79e ILT |
3544 | |
3545 | ||
3f3cddf1 ILT |
3546 | |
3547 | # Check whether --with-lib-path was given. | |
3548 | if test "${with_lib_path+set}" = set; then : | |
3549 | withval=$with_lib_path; case "$withval" in | |
3550 | yes) LIB_PATH='"/lib:/usr/lib"' ;; | |
3551 | no) LIB_PATH='""' ;; | |
3552 | *) LIB_PATH='"'"$withval"'"' ;; | |
3553 | esac | |
3554 | else | |
3555 | LIB_PATH='"::DEFAULT::"' | |
3556 | fi | |
3557 | ||
3558 | ||
3559 | cat >>confdefs.h <<_ACEOF | |
3560 | #define LIB_PATH $LIB_PATH | |
3561 | _ACEOF | |
3562 | ||
3563 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then | |
3564 | ||
3565 | $as_echo "#define NATIVE_LINKER 1" >>confdefs.h | |
3566 | ||
3567 | fi | |
3568 | ||
ebb300b2 CC |
3569 | if test -n "$ac_tool_prefix"; then |
3570 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3571 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3573 | $as_echo_n "checking for $ac_word... " >&6; } | |
3574 | if test "${ac_cv_prog_NM+set}" = set; then : | |
3575 | $as_echo_n "(cached) " >&6 | |
3576 | else | |
3577 | if test -n "$NM"; then | |
3578 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3579 | else | |
3580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3581 | for as_dir in $PATH | |
3582 | do | |
3583 | IFS=$as_save_IFS | |
3584 | test -z "$as_dir" && as_dir=. | |
3585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3587 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3589 | break 2 | |
3590 | fi | |
3591 | done | |
3592 | done | |
3593 | IFS=$as_save_IFS | |
3594 | ||
3595 | fi | |
3596 | fi | |
3597 | NM=$ac_cv_prog_NM | |
3598 | if test -n "$NM"; then | |
3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
3600 | $as_echo "$NM" >&6; } | |
3601 | else | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3603 | $as_echo "no" >&6; } | |
3604 | fi | |
3605 | ||
3606 | ||
3607 | fi | |
3608 | if test -z "$ac_cv_prog_NM"; then | |
3609 | ac_ct_NM=$NM | |
3610 | # Extract the first word of "nm", so it can be a program name with args. | |
3611 | set dummy nm; ac_word=$2 | |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3613 | $as_echo_n "checking for $ac_word... " >&6; } | |
3614 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
3615 | $as_echo_n "(cached) " >&6 | |
3616 | else | |
3617 | if test -n "$ac_ct_NM"; then | |
3618 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3619 | else | |
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3621 | for as_dir in $PATH | |
3622 | do | |
3623 | IFS=$as_save_IFS | |
3624 | test -z "$as_dir" && as_dir=. | |
3625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3627 | ac_cv_prog_ac_ct_NM="nm" | |
3628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3629 | break 2 | |
3630 | fi | |
3631 | done | |
3632 | done | |
3633 | IFS=$as_save_IFS | |
3634 | ||
3635 | fi | |
3636 | fi | |
3637 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3638 | if test -n "$ac_ct_NM"; then | |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
3640 | $as_echo "$ac_ct_NM" >&6; } | |
3641 | else | |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3643 | $as_echo "no" >&6; } | |
3644 | fi | |
3645 | ||
3646 | if test "x$ac_ct_NM" = x; then | |
3647 | NM="" | |
3648 | else | |
3649 | case $cross_compiling:$ac_tool_warned in | |
3650 | yes:) | |
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3653 | ac_tool_warned=yes ;; | |
3654 | esac | |
3655 | NM=$ac_ct_NM | |
3656 | fi | |
3657 | else | |
3658 | NM="$ac_cv_prog_NM" | |
3659 | fi | |
3660 | ||
3661 | ||
81ecdfbb RW |
3662 | ac_ext=c |
3663 | ac_cpp='$CPP $CPPFLAGS' | |
3664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3667 | if test -n "$ac_tool_prefix"; then | |
3668 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3669 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3671 | $as_echo_n "checking for $ac_word... " >&6; } | |
3672 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3673 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3674 | else |
81ecdfbb RW |
3675 | if test -n "$CC"; then |
3676 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3677 | else | |
3678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3679 | for as_dir in $PATH | |
3680 | do | |
3681 | IFS=$as_save_IFS | |
3682 | test -z "$as_dir" && as_dir=. | |
3683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3685 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3687 | break 2 | |
3688 | fi | |
3689 | done | |
3690 | done | |
3691 | IFS=$as_save_IFS | |
bae7f79e | 3692 | |
81ecdfbb RW |
3693 | fi |
3694 | fi | |
3695 | CC=$ac_cv_prog_CC | |
3696 | if test -n "$CC"; then | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3698 | $as_echo "$CC" >&6; } | |
3699 | else | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3701 | $as_echo "no" >&6; } | |
3702 | fi | |
bae7f79e ILT |
3703 | |
3704 | ||
bae7f79e | 3705 | fi |
81ecdfbb RW |
3706 | if test -z "$ac_cv_prog_CC"; then |
3707 | ac_ct_CC=$CC | |
3708 | # Extract the first word of "gcc", so it can be a program name with args. | |
3709 | set dummy gcc; ac_word=$2 | |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3711 | $as_echo_n "checking for $ac_word... " >&6; } | |
3712 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3713 | $as_echo_n "(cached) " >&6 | |
3714 | else | |
3715 | if test -n "$ac_ct_CC"; then | |
3716 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3717 | else | |
3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3719 | for as_dir in $PATH | |
3720 | do | |
3721 | IFS=$as_save_IFS | |
3722 | test -z "$as_dir" && as_dir=. | |
3723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3725 | ac_cv_prog_ac_ct_CC="gcc" | |
3726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3727 | break 2 | |
3728 | fi | |
3729 | done | |
3730 | done | |
3731 | IFS=$as_save_IFS | |
bae7f79e | 3732 | |
81ecdfbb RW |
3733 | fi |
3734 | fi | |
3735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3736 | if test -n "$ac_ct_CC"; then | |
3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3738 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3739 | else |
81ecdfbb RW |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3741 | $as_echo "no" >&6; } | |
bae7f79e | 3742 | fi |
bae7f79e | 3743 | |
81ecdfbb RW |
3744 | if test "x$ac_ct_CC" = x; then |
3745 | CC="" | |
3746 | else | |
3747 | case $cross_compiling:$ac_tool_warned in | |
3748 | yes:) | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3751 | ac_tool_warned=yes ;; | |
bae7f79e | 3752 | esac |
81ecdfbb RW |
3753 | CC=$ac_ct_CC |
3754 | fi | |
bae7f79e | 3755 | else |
81ecdfbb | 3756 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3757 | fi |
3758 | ||
81ecdfbb RW |
3759 | if test -z "$CC"; then |
3760 | if test -n "$ac_tool_prefix"; then | |
3761 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3762 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3764 | $as_echo_n "checking for $ac_word... " >&6; } | |
3765 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3766 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3767 | else |
81ecdfbb RW |
3768 | if test -n "$CC"; then |
3769 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3770 | else | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3772 | for as_dir in $PATH |
3773 | do | |
3774 | IFS=$as_save_IFS | |
3775 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
3777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3778 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3780 | break 2 |
3781 | fi | |
3782 | done | |
81ecdfbb RW |
3783 | done |
3784 | IFS=$as_save_IFS | |
bae7f79e | 3785 | |
bae7f79e | 3786 | fi |
81ecdfbb RW |
3787 | fi |
3788 | CC=$ac_cv_prog_CC | |
3789 | if test -n "$CC"; then | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3791 | $as_echo "$CC" >&6; } | |
bae7f79e | 3792 | else |
81ecdfbb RW |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3794 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3795 | fi |
3796 | ||
3797 | ||
81ecdfbb RW |
3798 | fi |
3799 | fi | |
3800 | if test -z "$CC"; then | |
3801 | # Extract the first word of "cc", so it can be a program name with args. | |
3802 | set dummy cc; ac_word=$2 | |
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3804 | $as_echo_n "checking for $ac_word... " >&6; } | |
3805 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3806 | $as_echo_n "(cached) " >&6 | |
3807 | else | |
3808 | if test -n "$CC"; then | |
3809 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3810 | else | |
3811 | ac_prog_rejected=no | |
3812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3813 | for as_dir in $PATH | |
3814 | do | |
3815 | IFS=$as_save_IFS | |
3816 | test -z "$as_dir" && as_dir=. | |
3817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3819 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3820 | ac_prog_rejected=yes | |
3821 | continue | |
3822 | fi | |
3823 | ac_cv_prog_CC="cc" | |
3824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3825 | break 2 | |
3826 | fi | |
3827 | done | |
3828 | done | |
3829 | IFS=$as_save_IFS | |
bae7f79e | 3830 | |
81ecdfbb RW |
3831 | if test $ac_prog_rejected = yes; then |
3832 | # We found a bogon in the path, so make sure we never use it. | |
3833 | set dummy $ac_cv_prog_CC | |
3834 | shift | |
3835 | if test $# != 0; then | |
3836 | # We chose a different compiler from the bogus one. | |
3837 | # However, it has the same basename, so the bogon will be chosen | |
3838 | # first if we set CC to just the basename; use the full file name. | |
3839 | shift | |
3840 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3841 | fi |
81ecdfbb RW |
3842 | fi |
3843 | fi | |
3844 | fi | |
3845 | CC=$ac_cv_prog_CC | |
3846 | if test -n "$CC"; then | |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3848 | $as_echo "$CC" >&6; } | |
3849 | else | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3851 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3852 | fi |
3853 | ||
81ecdfbb RW |
3854 | |
3855 | fi | |
3856 | if test -z "$CC"; then | |
3857 | if test -n "$ac_tool_prefix"; then | |
3858 | for ac_prog in cl.exe | |
3859 | do | |
3860 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3861 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3863 | $as_echo_n "checking for $ac_word... " >&6; } | |
3864 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3865 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3866 | else |
81ecdfbb RW |
3867 | if test -n "$CC"; then |
3868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3869 | else | |
3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3871 | for as_dir in $PATH | |
3872 | do | |
3873 | IFS=$as_save_IFS | |
3874 | test -z "$as_dir" && as_dir=. | |
3875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3877 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3879 | break 2 | |
3880 | fi | |
3881 | done | |
3882 | done | |
3883 | IFS=$as_save_IFS | |
3884 | ||
3885 | fi | |
3886 | fi | |
3887 | CC=$ac_cv_prog_CC | |
3888 | if test -n "$CC"; then | |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3890 | $as_echo "$CC" >&6; } | |
3891 | else | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3893 | $as_echo "no" >&6; } | |
bae7f79e | 3894 | fi |
bae7f79e | 3895 | |
81ecdfbb RW |
3896 | |
3897 | test -n "$CC" && break | |
3898 | done | |
3899 | fi | |
3900 | if test -z "$CC"; then | |
3901 | ac_ct_CC=$CC | |
3902 | for ac_prog in cl.exe | |
3903 | do | |
3904 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3905 | set dummy $ac_prog; ac_word=$2 | |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3907 | $as_echo_n "checking for $ac_word... " >&6; } | |
3908 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3909 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3910 | else |
81ecdfbb RW |
3911 | if test -n "$ac_ct_CC"; then |
3912 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3913 | else | |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3915 | for as_dir in $PATH | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3921 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3923 | break 2 | |
3924 | fi | |
3925 | done | |
3926 | done | |
3927 | IFS=$as_save_IFS | |
3928 | ||
bae7f79e | 3929 | fi |
81ecdfbb RW |
3930 | fi |
3931 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3932 | if test -n "$ac_ct_CC"; then | |
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3934 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3935 | else |
81ecdfbb RW |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3937 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3938 | fi |
3939 | ||
bae7f79e | 3940 | |
81ecdfbb RW |
3941 | test -n "$ac_ct_CC" && break |
3942 | done | |
bae7f79e | 3943 | |
81ecdfbb RW |
3944 | if test "x$ac_ct_CC" = x; then |
3945 | CC="" | |
bae7f79e | 3946 | else |
81ecdfbb RW |
3947 | case $cross_compiling:$ac_tool_warned in |
3948 | yes:) | |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3950 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3951 | ac_tool_warned=yes ;; | |
3952 | esac | |
3953 | CC=$ac_ct_CC | |
bae7f79e | 3954 | fi |
bae7f79e ILT |
3955 | fi |
3956 | ||
bae7f79e | 3957 | fi |
bae7f79e | 3958 | |
81ecdfbb RW |
3959 | |
3960 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3961 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3962 | as_fn_error "no acceptable C compiler found in \$PATH | |
3963 | See \`config.log' for more details." "$LINENO" 5; } | |
3964 | ||
3965 | # Provide some information about the compiler. | |
3966 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3967 | set X $ac_compile | |
3968 | ac_compiler=$2 | |
3969 | for ac_option in --version -v -V -qversion; do | |
3970 | { { ac_try="$ac_compiler $ac_option >&5" | |
3971 | case "(($ac_try" in | |
3972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3973 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3974 | esac |
81ecdfbb RW |
3975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3976 | $as_echo "$ac_try_echo"; } >&5 | |
3977 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3978 | ac_status=$? | |
3979 | if test -s conftest.err; then | |
3980 | sed '10a\ | |
3981 | ... rest of stderr output deleted ... | |
3982 | 10q' conftest.err >conftest.er1 | |
3983 | cat conftest.er1 >&5 | |
3984 | rm -f conftest.er1 conftest.err | |
3985 | fi | |
3986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3987 | test $ac_status = 0; } | |
3988 | done | |
3989 | ||
3990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3991 | /* end confdefs.h. */ | |
3992 | ||
3993 | int | |
3994 | main () | |
3995 | { | |
3996 | ||
3997 | ; | |
3998 | return 0; | |
3999 | } | |
4000 | _ACEOF | |
4001 | ac_clean_files_save=$ac_clean_files | |
4002 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
4003 | # Try to create an executable without -o first, disregard a.out. | |
4004 | # It will help us diagnose broken compilers, and finding out an intuition | |
4005 | # of exeext. | |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4007 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4008 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4009 | ||
4010 | # The possible output files: | |
4011 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4012 | ||
4013 | ac_rmfiles= | |
4014 | for ac_file in $ac_files | |
4015 | do | |
4016 | case $ac_file in | |
4017 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4018 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4019 | esac | |
4020 | done | |
4021 | rm -f $ac_rmfiles | |
4022 | ||
4023 | if { { ac_try="$ac_link_default" | |
4024 | case "(($ac_try" in | |
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4026 | *) ac_try_echo=$ac_try;; | |
4027 | esac | |
4028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4029 | $as_echo "$ac_try_echo"; } >&5 | |
4030 | (eval "$ac_link_default") 2>&5 | |
4031 | ac_status=$? | |
4032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4033 | test $ac_status = 0; }; then : | |
4034 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4035 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4036 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4037 | # so that the user can short-circuit this test for compilers unknown to | |
4038 | # Autoconf. | |
4039 | for ac_file in $ac_files '' | |
4040 | do | |
4041 | test -f "$ac_file" || continue | |
4042 | case $ac_file in | |
4043 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4044 | ;; | |
4045 | [ab].out ) | |
4046 | # We found the default executable, but exeext='' is most | |
4047 | # certainly right. | |
4048 | break;; | |
4049 | *.* ) | |
4050 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4051 | then :; else | |
4052 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4053 | fi | |
4054 | # We set ac_cv_exeext here because the later test for it is not | |
4055 | # safe: cross compilers may not add the suffix if given an `-o' | |
4056 | # argument, so we may need to know it at that point already. | |
4057 | # Even if this section looks crufty: it has the advantage of | |
4058 | # actually working. | |
4059 | break;; | |
4060 | * ) | |
4061 | break;; | |
4062 | esac | |
4063 | done | |
4064 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4065 | ||
bae7f79e | 4066 | else |
81ecdfbb | 4067 | ac_file='' |
bae7f79e | 4068 | fi |
81ecdfbb RW |
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4070 | $as_echo "$ac_file" >&6; } | |
4071 | if test -z "$ac_file"; then : | |
4072 | $as_echo "$as_me: failed program was:" >&5 | |
4073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 4074 | |
81ecdfbb RW |
4075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4077 | { as_fn_set_status 77 | |
4078 | as_fn_error "C compiler cannot create executables | |
4079 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4080 | fi | |
4081 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 4082 | |
81ecdfbb RW |
4083 | # Check that the compiler produces executables we can run. If not, either |
4084 | # the compiler is broken, or we cross compile. | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4086 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4087 | # If not cross compiling, check that we can run a simple program. | |
4088 | if test "$cross_compiling" != yes; then | |
4089 | if { ac_try='./$ac_file' | |
4090 | { { case "(($ac_try" in | |
4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4092 | *) ac_try_echo=$ac_try;; | |
4093 | esac | |
4094 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4095 | $as_echo "$ac_try_echo"; } >&5 | |
4096 | (eval "$ac_try") 2>&5 | |
4097 | ac_status=$? | |
4098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4099 | test $ac_status = 0; }; }; then | |
4100 | cross_compiling=no | |
4101 | else | |
4102 | if test "$cross_compiling" = maybe; then | |
4103 | cross_compiling=yes | |
bae7f79e | 4104 | else |
81ecdfbb RW |
4105 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4106 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4107 | as_fn_error "cannot run C compiled programs. | |
4108 | If you meant to cross compile, use \`--host'. | |
4109 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 4110 | fi |
bae7f79e | 4111 | fi |
81ecdfbb RW |
4112 | fi |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4114 | $as_echo "yes" >&6; } | |
bae7f79e | 4115 | |
81ecdfbb RW |
4116 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4117 | ac_clean_files=$ac_clean_files_save | |
4118 | # Check that the compiler produces executables we can run. If not, either | |
4119 | # the compiler is broken, or we cross compile. | |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4121 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4123 | $as_echo "$cross_compiling" >&6; } | |
4124 | ||
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4126 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4127 | if { { ac_try="$ac_link" | |
4128 | case "(($ac_try" in | |
4129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4130 | *) ac_try_echo=$ac_try;; | |
4131 | esac | |
4132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4133 | $as_echo "$ac_try_echo"; } >&5 | |
4134 | (eval "$ac_link") 2>&5 | |
4135 | ac_status=$? | |
4136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4137 | test $ac_status = 0; }; then : | |
4138 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4139 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4140 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4141 | # `rm'. | |
4142 | for ac_file in conftest.exe conftest conftest.*; do | |
4143 | test -f "$ac_file" || continue | |
4144 | case $ac_file in | |
4145 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4146 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4147 | break;; | |
4148 | * ) break;; | |
4149 | esac | |
4150 | done | |
4151 | else | |
4152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4154 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4155 | See \`config.log' for more details." "$LINENO" 5; } | |
4156 | fi | |
4157 | rm -f conftest$ac_cv_exeext | |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4159 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4160 | |
81ecdfbb RW |
4161 | rm -f conftest.$ac_ext |
4162 | EXEEXT=$ac_cv_exeext | |
4163 | ac_exeext=$EXEEXT | |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4165 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4166 | if test "${ac_cv_objext+set}" = set; then : | |
4167 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4168 | else |
81ecdfbb | 4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4170 | /* end confdefs.h. */ |
92e059d8 ILT |
4171 | |
4172 | int | |
4173 | main () | |
4174 | { | |
92e059d8 ILT |
4175 | |
4176 | ; | |
4177 | return 0; | |
4178 | } | |
4179 | _ACEOF | |
81ecdfbb RW |
4180 | rm -f conftest.o conftest.obj |
4181 | if { { ac_try="$ac_compile" | |
4182 | case "(($ac_try" in | |
4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4184 | *) ac_try_echo=$ac_try;; | |
4185 | esac | |
4186 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4187 | $as_echo "$ac_try_echo"; } >&5 | |
4188 | (eval "$ac_compile") 2>&5 | |
4189 | ac_status=$? | |
4190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4191 | test $ac_status = 0; }; then : | |
4192 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4193 | test -f "$ac_file" || continue; | |
4194 | case $ac_file in | |
4195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4196 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4197 | break;; | |
4198 | esac | |
4199 | done | |
4200 | else | |
4201 | $as_echo "$as_me: failed program was:" >&5 | |
4202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4203 | ||
4204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4206 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4207 | See \`config.log' for more details." "$LINENO" 5; } | |
4208 | fi | |
4209 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4210 | fi | |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4212 | $as_echo "$ac_cv_objext" >&6; } | |
4213 | OBJEXT=$ac_cv_objext | |
4214 | ac_objext=$OBJEXT | |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4216 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4217 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4218 | $as_echo_n "(cached) " >&6 | |
4219 | else | |
4220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4221 | /* end confdefs.h. */ |
92e059d8 ILT |
4222 | |
4223 | int | |
4224 | main () | |
4225 | { | |
81ecdfbb RW |
4226 | #ifndef __GNUC__ |
4227 | choke me | |
92e059d8 ILT |
4228 | #endif |
4229 | ||
4230 | ; | |
4231 | return 0; | |
4232 | } | |
4233 | _ACEOF | |
81ecdfbb RW |
4234 | if ac_fn_c_try_compile "$LINENO"; then : |
4235 | ac_compiler_gnu=yes | |
92e059d8 | 4236 | else |
81ecdfbb RW |
4237 | ac_compiler_gnu=no |
4238 | fi | |
4239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4240 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4241 | |
92e059d8 | 4242 | fi |
81ecdfbb RW |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4244 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4245 | if test $ac_compiler_gnu = yes; then | |
4246 | GCC=yes | |
92e059d8 | 4247 | else |
81ecdfbb RW |
4248 | GCC= |
4249 | fi | |
4250 | ac_test_CFLAGS=${CFLAGS+set} | |
4251 | ac_save_CFLAGS=$CFLAGS | |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4253 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4254 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4255 | $as_echo_n "(cached) " >&6 | |
4256 | else | |
4257 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4258 | ac_c_werror_flag=yes | |
4259 | ac_cv_prog_cc_g=no | |
4260 | CFLAGS="-g" | |
4261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4262 | /* end confdefs.h. */ |
81ecdfbb | 4263 | |
92e059d8 ILT |
4264 | int |
4265 | main () | |
4266 | { | |
81ecdfbb | 4267 | |
92e059d8 ILT |
4268 | ; |
4269 | return 0; | |
4270 | } | |
4271 | _ACEOF | |
81ecdfbb RW |
4272 | if ac_fn_c_try_compile "$LINENO"; then : |
4273 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4274 | else |
81ecdfbb RW |
4275 | CFLAGS="" |
4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4277 | /* end confdefs.h. */ |
81ecdfbb | 4278 | |
92e059d8 ILT |
4279 | int |
4280 | main () | |
4281 | { | |
81ecdfbb RW |
4282 | |
4283 | ; | |
4284 | return 0; | |
92e059d8 ILT |
4285 | } |
4286 | _ACEOF | |
81ecdfbb RW |
4287 | if ac_fn_c_try_compile "$LINENO"; then : |
4288 | ||
92e059d8 | 4289 | else |
81ecdfbb RW |
4290 | ac_c_werror_flag=$ac_save_c_werror_flag |
4291 | CFLAGS="-g" | |
4292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4293 | /* end confdefs.h. */ | |
92e059d8 | 4294 | |
81ecdfbb RW |
4295 | int |
4296 | main () | |
4297 | { | |
92e059d8 | 4298 | |
81ecdfbb RW |
4299 | ; |
4300 | return 0; | |
4301 | } | |
92e059d8 | 4302 | _ACEOF |
81ecdfbb RW |
4303 | if ac_fn_c_try_compile "$LINENO"; then : |
4304 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4305 | fi |
81ecdfbb | 4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4307 | fi |
81ecdfbb | 4308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4309 | fi |
81ecdfbb RW |
4310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4311 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4312 | fi |
81ecdfbb RW |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4314 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4315 | if test "$ac_test_CFLAGS" = set; then | |
4316 | CFLAGS=$ac_save_CFLAGS | |
4317 | elif test $ac_cv_prog_cc_g = yes; then | |
4318 | if test "$GCC" = yes; then | |
4319 | CFLAGS="-g -O2" | |
4320 | else | |
4321 | CFLAGS="-g" | |
4322 | fi | |
6eee141f | 4323 | else |
81ecdfbb RW |
4324 | if test "$GCC" = yes; then |
4325 | CFLAGS="-O2" | |
4326 | else | |
4327 | CFLAGS= | |
4328 | fi | |
097ec620 | 4329 | fi |
81ecdfbb RW |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4331 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4332 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4333 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4334 | else |
81ecdfbb RW |
4335 | ac_cv_prog_cc_c89=no |
4336 | ac_save_CC=$CC | |
4337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4338 | /* end confdefs.h. */ | |
4339 | #include <stdarg.h> | |
4340 | #include <stdio.h> | |
4341 | #include <sys/types.h> | |
4342 | #include <sys/stat.h> | |
4343 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4344 | struct buf { int x; }; | |
4345 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4346 | static char *e (p, i) | |
4347 | char **p; | |
4348 | int i; | |
4349 | { | |
4350 | return p[i]; | |
4351 | } | |
4352 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4353 | { | |
4354 | char *s; | |
4355 | va_list v; | |
4356 | va_start (v,p); | |
4357 | s = g (p, va_arg (v,int)); | |
4358 | va_end (v); | |
4359 | return s; | |
4360 | } | |
6eee141f | 4361 | |
81ecdfbb RW |
4362 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4363 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4364 | These don't provoke an error unfortunately, instead are silently treated | |
4365 | as 'x'. The following induces an error, until -std is added to get | |
4366 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4367 | array size at least. It's necessary to write '\x00'==0 to get something | |
4368 | that's true only with -std. */ | |
4369 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4370 | |
81ecdfbb RW |
4371 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4372 | inside strings and character constants. */ | |
4373 | #define FOO(x) 'x' | |
4374 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4375 | |
81ecdfbb RW |
4376 | int test (int i, double x); |
4377 | struct s1 {int (*f) (int a);}; | |
4378 | struct s2 {int (*f) (double a);}; | |
4379 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4380 | int argc; | |
4381 | char **argv; | |
4382 | int | |
4383 | main () | |
4384 | { | |
4385 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4386 | ; | |
4387 | return 0; | |
4388 | } | |
097ec620 | 4389 | _ACEOF |
81ecdfbb RW |
4390 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4391 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4392 | do | |
4393 | CC="$ac_save_CC $ac_arg" | |
4394 | if ac_fn_c_try_compile "$LINENO"; then : | |
4395 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4396 | fi |
81ecdfbb RW |
4397 | rm -f core conftest.err conftest.$ac_objext |
4398 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4399 | done | |
4400 | rm -f conftest.$ac_ext | |
4401 | CC=$ac_save_CC | |
097ec620 | 4402 | |
097ec620 | 4403 | fi |
81ecdfbb RW |
4404 | # AC_CACHE_VAL |
4405 | case "x$ac_cv_prog_cc_c89" in | |
4406 | x) | |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4408 | $as_echo "none needed" >&6; } ;; | |
4409 | xno) | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4411 | $as_echo "unsupported" >&6; } ;; | |
4412 | *) | |
4413 | CC="$CC $ac_cv_prog_cc_c89" | |
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4415 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4416 | esac | |
4417 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4418 | |
81ecdfbb | 4419 | fi |
097ec620 | 4420 | |
81ecdfbb RW |
4421 | ac_ext=c |
4422 | ac_cpp='$CPP $CPPFLAGS' | |
4423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4426 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4427 | |
81ecdfbb | 4428 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4429 | |
155a0dd7 | 4430 | |
81ecdfbb RW |
4431 | am_make=${MAKE-make} |
4432 | cat > confinc << 'END' | |
4433 | am__doit: | |
4434 | @echo this is the am__doit target | |
4435 | .PHONY: am__doit | |
4436 | END | |
4437 | # If we don't find an include directive, just comment out the code. | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4439 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4440 | am__include="#" | |
4441 | am__quote= | |
4442 | _am_result=none | |
4443 | # First try GNU make style include. | |
4444 | echo "include confinc" > confmf | |
4445 | # Ignore all kinds of additional output from `make'. | |
4446 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4447 | *the\ am__doit\ target*) | |
4448 | am__include=include | |
4449 | am__quote= | |
4450 | _am_result=GNU | |
4451 | ;; | |
4452 | esac | |
4453 | # Now try BSD make style include. | |
4454 | if test "$am__include" = "#"; then | |
4455 | echo '.include "confinc"' > confmf | |
4456 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4457 | *the\ am__doit\ target*) | |
4458 | am__include=.include | |
4459 | am__quote="\"" | |
4460 | _am_result=BSD | |
4461 | ;; | |
4462 | esac | |
155a0dd7 | 4463 | fi |
155a0dd7 | 4464 | |
155a0dd7 | 4465 | |
81ecdfbb RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4467 | $as_echo "$_am_result" >&6; } | |
4468 | rm -f confinc confmf | |
155a0dd7 | 4469 | |
81ecdfbb RW |
4470 | # Check whether --enable-dependency-tracking was given. |
4471 | if test "${enable_dependency_tracking+set}" = set; then : | |
4472 | enableval=$enable_dependency_tracking; | |
4473 | fi | |
155a0dd7 | 4474 | |
81ecdfbb RW |
4475 | if test "x$enable_dependency_tracking" != xno; then |
4476 | am_depcomp="$ac_aux_dir/depcomp" | |
4477 | AMDEPBACKSLASH='\' | |
4478 | fi | |
4479 | if test "x$enable_dependency_tracking" != xno; then | |
4480 | AMDEP_TRUE= | |
4481 | AMDEP_FALSE='#' | |
155a0dd7 | 4482 | else |
81ecdfbb RW |
4483 | AMDEP_TRUE='#' |
4484 | AMDEP_FALSE= | |
155a0dd7 ILT |
4485 | fi |
4486 | ||
4487 | ||
c2b45e22 | 4488 | |
81ecdfbb | 4489 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4490 | |
81ecdfbb RW |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4492 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4493 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4494 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4495 | else |
81ecdfbb RW |
4496 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4497 | # We make a subdir and do the tests there. Otherwise we can end up | |
4498 | # making bogus files that we don't know about and never remove. For | |
4499 | # instance it was reported that on HP-UX the gcc test will end up | |
4500 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4501 | # in D'. | |
4502 | mkdir conftest.dir | |
4503 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4504 | # using a relative directory. | |
4505 | cp "$am_depcomp" conftest.dir | |
4506 | cd conftest.dir | |
4507 | # We will build objects and dependencies in a subdirectory because | |
4508 | # it helps to detect inapplicable dependency modes. For instance | |
4509 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4510 | # side effect of compilation, but ICC will put the dependencies in | |
4511 | # the current directory while Tru64 will put them in the object | |
4512 | # directory. | |
4513 | mkdir sub | |
c2b45e22 | 4514 | |
81ecdfbb RW |
4515 | am_cv_CC_dependencies_compiler_type=none |
4516 | if test "$am_compiler_list" = ""; then | |
4517 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4518 | fi | |
4519 | am__universal=false | |
4520 | case " $depcc " in #( | |
4521 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4522 | esac | |
c2b45e22 | 4523 | |
81ecdfbb RW |
4524 | for depmode in $am_compiler_list; do |
4525 | # Setup a source with many dependencies, because some compilers | |
4526 | # like to wrap large dependency lists on column 80 (with \), and | |
4527 | # we should not choose a depcomp mode which is confused by this. | |
4528 | # | |
4529 | # We need to recreate these files for each test, as the compiler may | |
4530 | # overwrite some of them when testing with obscure command lines. | |
4531 | # This happens at least with the AIX C compiler. | |
4532 | : > sub/conftest.c | |
4533 | for i in 1 2 3 4 5 6; do | |
4534 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4535 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4536 | # Solaris 8's {/usr,}/bin/sh. | |
4537 | touch sub/conftst$i.h | |
4538 | done | |
4539 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4540 | |
81ecdfbb RW |
4541 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4542 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4543 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4544 | # versions had trouble with output in subdirs | |
4545 | am__obj=sub/conftest.${OBJEXT-o} | |
4546 | am__minus_obj="-o $am__obj" | |
4547 | case $depmode in | |
4548 | gcc) | |
4549 | # This depmode causes a compiler race in universal mode. | |
4550 | test "$am__universal" = false || continue | |
4551 | ;; | |
4552 | nosideeffect) | |
4553 | # after this tag, mechanisms are not by side-effect, so they'll | |
4554 | # only be used when explicitly requested | |
4555 | if test "x$enable_dependency_tracking" = xyes; then | |
4556 | continue | |
4557 | else | |
4558 | break | |
4559 | fi | |
4560 | ;; | |
4561 | msvisualcpp | msvcmsys) | |
4562 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4563 | # not run yet. These depmodes are late enough in the game, and | |
4564 | # so weak that their functioning should not be impacted. | |
4565 | am__obj=conftest.${OBJEXT-o} | |
4566 | am__minus_obj= | |
4567 | ;; | |
4568 | none) break ;; | |
4569 | esac | |
4570 | if depmode=$depmode \ | |
4571 | source=sub/conftest.c object=$am__obj \ | |
4572 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4573 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4574 | >/dev/null 2>conftest.err && | |
4575 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4576 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4577 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4578 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4579 | # icc doesn't choke on unknown options, it will just issue warnings | |
4580 | # or remarks (even with -Werror). So we grep stderr for any message | |
4581 | # that says an option was ignored or not supported. | |
4582 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4583 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4584 | # The diagnosis changed in icc 8.0: | |
4585 | # icc: Command line remark: option '-MP' not supported | |
4586 | if (grep 'ignoring option' conftest.err || | |
4587 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4588 | am_cv_CC_dependencies_compiler_type=$depmode | |
4589 | break | |
4590 | fi | |
4591 | fi | |
4592 | done | |
c2b45e22 | 4593 | |
81ecdfbb RW |
4594 | cd .. |
4595 | rm -rf conftest.dir | |
c2b45e22 | 4596 | else |
81ecdfbb | 4597 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4598 | fi |
c2b45e22 | 4599 | |
81ecdfbb RW |
4600 | fi |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4602 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4603 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4604 | |
81ecdfbb RW |
4605 | if |
4606 | test "x$enable_dependency_tracking" != xno \ | |
4607 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4608 | am__fastdepCC_TRUE= | |
4609 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4610 | else |
81ecdfbb RW |
4611 | am__fastdepCC_TRUE='#' |
4612 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4613 | fi |
4614 | ||
4615 | ||
81ecdfbb RW |
4616 | ac_ext=cpp |
4617 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4621 | if test -z "$CXX"; then | |
4622 | if test -n "$CCC"; then | |
4623 | CXX=$CCC | |
4624 | else | |
4625 | if test -n "$ac_tool_prefix"; then | |
4626 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4627 | do | |
4628 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4629 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4631 | $as_echo_n "checking for $ac_word... " >&6; } | |
4632 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4633 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4634 | else |
81ecdfbb RW |
4635 | if test -n "$CXX"; then |
4636 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4637 | else |
81ecdfbb RW |
4638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4639 | for as_dir in $PATH | |
4640 | do | |
4641 | IFS=$as_save_IFS | |
4642 | test -z "$as_dir" && as_dir=. | |
4643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4645 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4647 | break 2 | |
4648 | fi | |
4649 | done | |
4650 | done | |
4651 | IFS=$as_save_IFS | |
2fd32231 | 4652 | |
2fd32231 | 4653 | fi |
2fd32231 | 4654 | fi |
81ecdfbb RW |
4655 | CXX=$ac_cv_prog_CXX |
4656 | if test -n "$CXX"; then | |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4658 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4659 | else |
81ecdfbb RW |
4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4661 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4662 | fi |
4663 | ||
4664 | ||
81ecdfbb RW |
4665 | test -n "$CXX" && break |
4666 | done | |
4667 | fi | |
4668 | if test -z "$CXX"; then | |
4669 | ac_ct_CXX=$CXX | |
4670 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4671 | do | |
4672 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4673 | set dummy $ac_prog; ac_word=$2 | |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4675 | $as_echo_n "checking for $ac_word... " >&6; } | |
4676 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4677 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4678 | else |
81ecdfbb RW |
4679 | if test -n "$ac_ct_CXX"; then |
4680 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4681 | else |
81ecdfbb RW |
4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4683 | for as_dir in $PATH | |
4684 | do | |
4685 | IFS=$as_save_IFS | |
4686 | test -z "$as_dir" && as_dir=. | |
4687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4689 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4691 | break 2 | |
4692 | fi | |
4693 | done | |
4694 | done | |
4695 | IFS=$as_save_IFS | |
1d1f116d | 4696 | |
1d1f116d | 4697 | fi |
1d1f116d | 4698 | fi |
81ecdfbb RW |
4699 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4700 | if test -n "$ac_ct_CXX"; then | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4702 | $as_echo "$ac_ct_CXX" >&6; } | |
4703 | else | |
4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4705 | $as_echo "no" >&6; } | |
1d1f116d CD |
4706 | fi |
4707 | ||
4708 | ||
81ecdfbb RW |
4709 | test -n "$ac_ct_CXX" && break |
4710 | done | |
63402fe4 | 4711 | |
81ecdfbb RW |
4712 | if test "x$ac_ct_CXX" = x; then |
4713 | CXX="g++" | |
4714 | else | |
4715 | case $cross_compiling:$ac_tool_warned in | |
4716 | yes:) | |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4718 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4719 | ac_tool_warned=yes ;; | |
04bf7072 | 4720 | esac |
81ecdfbb RW |
4721 | CXX=$ac_ct_CXX |
4722 | fi | |
4723 | fi | |
04bf7072 | 4724 | |
81ecdfbb | 4725 | fi |
bae7f79e | 4726 | fi |
81ecdfbb RW |
4727 | # Provide some information about the compiler. |
4728 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4729 | set X $ac_compile | |
4730 | ac_compiler=$2 | |
4731 | for ac_option in --version -v -V -qversion; do | |
4732 | { { ac_try="$ac_compiler $ac_option >&5" | |
4733 | case "(($ac_try" in | |
4734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4735 | *) ac_try_echo=$ac_try;; | |
4736 | esac | |
4737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4738 | $as_echo "$ac_try_echo"; } >&5 | |
4739 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4740 | ac_status=$? | |
4741 | if test -s conftest.err; then | |
4742 | sed '10a\ | |
4743 | ... rest of stderr output deleted ... | |
4744 | 10q' conftest.err >conftest.er1 | |
4745 | cat conftest.er1 >&5 | |
4746 | rm -f conftest.er1 conftest.err | |
4747 | fi | |
4748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4749 | test $ac_status = 0; } | |
4750 | done | |
bae7f79e | 4751 | |
81ecdfbb RW |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4753 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4754 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4755 | $as_echo_n "(cached) " >&6 | |
4756 | else | |
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4758 | /* end confdefs.h. */ | |
4759 | ||
4760 | int | |
4761 | main () | |
4762 | { | |
4763 | #ifndef __GNUC__ | |
4764 | choke me | |
4765 | #endif | |
4766 | ||
4767 | ; | |
4768 | return 0; | |
4769 | } | |
4770 | _ACEOF | |
4771 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4772 | ac_compiler_gnu=yes | |
4773 | else | |
4774 | ac_compiler_gnu=no | |
bae7f79e | 4775 | fi |
81ecdfbb RW |
4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4777 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4778 | |
bae7f79e | 4779 | fi |
81ecdfbb RW |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4781 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4782 | if test $ac_compiler_gnu = yes; then | |
4783 | GXX=yes | |
4784 | else | |
4785 | GXX= | |
4786 | fi | |
4787 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4788 | ac_save_CXXFLAGS=$CXXFLAGS | |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4790 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4791 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4792 | $as_echo_n "(cached) " >&6 | |
4793 | else | |
4794 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4795 | ac_cxx_werror_flag=yes | |
4796 | ac_cv_prog_cxx_g=no | |
4797 | CXXFLAGS="-g" | |
4798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4799 | /* end confdefs.h. */ | |
bae7f79e | 4800 | |
81ecdfbb RW |
4801 | int |
4802 | main () | |
4803 | { | |
bae7f79e | 4804 | |
81ecdfbb RW |
4805 | ; |
4806 | return 0; | |
4807 | } | |
4808 | _ACEOF | |
4809 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4810 | ac_cv_prog_cxx_g=yes | |
4811 | else | |
4812 | CXXFLAGS="" | |
4813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4814 | /* end confdefs.h. */ | |
bae7f79e | 4815 | |
81ecdfbb RW |
4816 | int |
4817 | main () | |
4818 | { | |
bae7f79e | 4819 | |
81ecdfbb RW |
4820 | ; |
4821 | return 0; | |
4822 | } | |
4823 | _ACEOF | |
4824 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4825 | |
81ecdfbb RW |
4826 | else |
4827 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4828 | CXXFLAGS="-g" | |
4829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4830 | /* end confdefs.h. */ | |
bae7f79e | 4831 | |
81ecdfbb RW |
4832 | int |
4833 | main () | |
4834 | { | |
bae7f79e | 4835 | |
81ecdfbb RW |
4836 | ; |
4837 | return 0; | |
4838 | } | |
4839 | _ACEOF | |
4840 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4841 | ac_cv_prog_cxx_g=yes | |
4842 | fi | |
4843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4844 | fi | |
4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4846 | fi | |
4847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4848 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4849 | fi | |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4851 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4852 | if test "$ac_test_CXXFLAGS" = set; then | |
4853 | CXXFLAGS=$ac_save_CXXFLAGS | |
4854 | elif test $ac_cv_prog_cxx_g = yes; then | |
4855 | if test "$GXX" = yes; then | |
4856 | CXXFLAGS="-g -O2" | |
4857 | else | |
4858 | CXXFLAGS="-g" | |
4859 | fi | |
4860 | else | |
4861 | if test "$GXX" = yes; then | |
4862 | CXXFLAGS="-O2" | |
4863 | else | |
4864 | CXXFLAGS= | |
4865 | fi | |
4866 | fi | |
4867 | ac_ext=c | |
4868 | ac_cpp='$CPP $CPPFLAGS' | |
4869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4872 | |
81ecdfbb | 4873 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4874 | |
81ecdfbb RW |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4876 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4877 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4878 | $as_echo_n "(cached) " >&6 | |
4879 | else | |
4880 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4881 | # We make a subdir and do the tests there. Otherwise we can end up | |
4882 | # making bogus files that we don't know about and never remove. For | |
4883 | # instance it was reported that on HP-UX the gcc test will end up | |
4884 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4885 | # in D'. | |
4886 | mkdir conftest.dir | |
4887 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4888 | # using a relative directory. | |
4889 | cp "$am_depcomp" conftest.dir | |
4890 | cd conftest.dir | |
4891 | # We will build objects and dependencies in a subdirectory because | |
4892 | # it helps to detect inapplicable dependency modes. For instance | |
4893 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4894 | # side effect of compilation, but ICC will put the dependencies in | |
4895 | # the current directory while Tru64 will put them in the object | |
4896 | # directory. | |
4897 | mkdir sub | |
bae7f79e | 4898 | |
81ecdfbb RW |
4899 | am_cv_CXX_dependencies_compiler_type=none |
4900 | if test "$am_compiler_list" = ""; then | |
4901 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4902 | fi | |
4903 | am__universal=false | |
4904 | case " $depcc " in #( | |
4905 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4906 | esac | |
bae7f79e | 4907 | |
81ecdfbb RW |
4908 | for depmode in $am_compiler_list; do |
4909 | # Setup a source with many dependencies, because some compilers | |
4910 | # like to wrap large dependency lists on column 80 (with \), and | |
4911 | # we should not choose a depcomp mode which is confused by this. | |
4912 | # | |
4913 | # We need to recreate these files for each test, as the compiler may | |
4914 | # overwrite some of them when testing with obscure command lines. | |
4915 | # This happens at least with the AIX C compiler. | |
4916 | : > sub/conftest.c | |
4917 | for i in 1 2 3 4 5 6; do | |
4918 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4919 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4920 | # Solaris 8's {/usr,}/bin/sh. | |
4921 | touch sub/conftst$i.h | |
4922 | done | |
4923 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4924 | |
81ecdfbb RW |
4925 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4926 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4927 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4928 | # versions had trouble with output in subdirs | |
4929 | am__obj=sub/conftest.${OBJEXT-o} | |
4930 | am__minus_obj="-o $am__obj" | |
4931 | case $depmode in | |
4932 | gcc) | |
4933 | # This depmode causes a compiler race in universal mode. | |
4934 | test "$am__universal" = false || continue | |
4935 | ;; | |
4936 | nosideeffect) | |
4937 | # after this tag, mechanisms are not by side-effect, so they'll | |
4938 | # only be used when explicitly requested | |
4939 | if test "x$enable_dependency_tracking" = xyes; then | |
4940 | continue | |
4941 | else | |
4942 | break | |
4943 | fi | |
4944 | ;; | |
4945 | msvisualcpp | msvcmsys) | |
4946 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4947 | # not run yet. These depmodes are late enough in the game, and | |
4948 | # so weak that their functioning should not be impacted. | |
4949 | am__obj=conftest.${OBJEXT-o} | |
4950 | am__minus_obj= | |
4951 | ;; | |
4952 | none) break ;; | |
4953 | esac | |
4954 | if depmode=$depmode \ | |
4955 | source=sub/conftest.c object=$am__obj \ | |
4956 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4957 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4958 | >/dev/null 2>conftest.err && | |
4959 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4960 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4961 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4962 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4963 | # icc doesn't choke on unknown options, it will just issue warnings | |
4964 | # or remarks (even with -Werror). So we grep stderr for any message | |
4965 | # that says an option was ignored or not supported. | |
4966 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4967 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4968 | # The diagnosis changed in icc 8.0: | |
4969 | # icc: Command line remark: option '-MP' not supported | |
4970 | if (grep 'ignoring option' conftest.err || | |
4971 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4972 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4973 | break | |
4974 | fi | |
4975 | fi | |
4976 | done | |
9201d894 | 4977 | |
81ecdfbb RW |
4978 | cd .. |
4979 | rm -rf conftest.dir | |
4980 | else | |
4981 | am_cv_CXX_dependencies_compiler_type=none | |
4982 | fi | |
9201d894 | 4983 | |
81ecdfbb RW |
4984 | fi |
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4986 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4987 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4988 | |
81ecdfbb RW |
4989 | if |
4990 | test "x$enable_dependency_tracking" != xno \ | |
4991 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4992 | am__fastdepCXX_TRUE= | |
4993 | am__fastdepCXX_FALSE='#' | |
4994 | else | |
4995 | am__fastdepCXX_TRUE='#' | |
4996 | am__fastdepCXX_FALSE= | |
4997 | fi | |
9201d894 | 4998 | |
9201d894 | 4999 | |
81ecdfbb RW |
5000 | for ac_prog in 'bison -y' byacc |
5001 | do | |
5002 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5003 | set dummy $ac_prog; ac_word=$2 | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5005 | $as_echo_n "checking for $ac_word... " >&6; } | |
5006 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
5007 | $as_echo_n "(cached) " >&6 | |
9201d894 | 5008 | else |
81ecdfbb RW |
5009 | if test -n "$YACC"; then |
5010 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5011 | else | |
5012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5013 | for as_dir in $PATH | |
5014 | do | |
5015 | IFS=$as_save_IFS | |
5016 | test -z "$as_dir" && as_dir=. | |
5017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5019 | ac_cv_prog_YACC="$ac_prog" | |
5020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5021 | break 2 | |
5022 | fi | |
5023 | done | |
5024 | done | |
5025 | IFS=$as_save_IFS | |
9201d894 | 5026 | |
9201d894 | 5027 | fi |
9201d894 | 5028 | fi |
81ecdfbb RW |
5029 | YACC=$ac_cv_prog_YACC |
5030 | if test -n "$YACC"; then | |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5032 | $as_echo "$YACC" >&6; } | |
5033 | else | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5035 | $as_echo "no" >&6; } | |
9201d894 | 5036 | fi |
9201d894 | 5037 | |
2f35ab9b | 5038 | |
81ecdfbb RW |
5039 | test -n "$YACC" && break |
5040 | done | |
5041 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 5042 | |
81ecdfbb RW |
5043 | if test -n "$ac_tool_prefix"; then |
5044 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5045 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5047 | $as_echo_n "checking for $ac_word... " >&6; } | |
5048 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5049 | $as_echo_n "(cached) " >&6 | |
5050 | else | |
5051 | if test -n "$RANLIB"; then | |
5052 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5053 | else | |
5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5055 | for as_dir in $PATH | |
82dcae9d | 5056 | do |
81ecdfbb RW |
5057 | IFS=$as_save_IFS |
5058 | test -z "$as_dir" && as_dir=. | |
5059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5061 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5063 | break 2 | |
5064 | fi | |
5065 | done | |
5066 | done | |
5067 | IFS=$as_save_IFS | |
82dcae9d | 5068 | |
81ecdfbb RW |
5069 | fi |
5070 | fi | |
5071 | RANLIB=$ac_cv_prog_RANLIB | |
5072 | if test -n "$RANLIB"; then | |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5074 | $as_echo "$RANLIB" >&6; } | |
5075 | else | |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5077 | $as_echo "no" >&6; } | |
5078 | fi | |
82dcae9d | 5079 | |
82dcae9d | 5080 | |
81ecdfbb RW |
5081 | fi |
5082 | if test -z "$ac_cv_prog_RANLIB"; then | |
5083 | ac_ct_RANLIB=$RANLIB | |
5084 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5085 | set dummy ranlib; ac_word=$2 | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5087 | $as_echo_n "checking for $ac_word... " >&6; } | |
5088 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5089 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 5090 | else |
81ecdfbb RW |
5091 | if test -n "$ac_ct_RANLIB"; then |
5092 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5093 | else | |
5094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5095 | for as_dir in $PATH | |
5096 | do | |
5097 | IFS=$as_save_IFS | |
5098 | test -z "$as_dir" && as_dir=. | |
5099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5101 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5103 | break 2 | |
5104 | fi | |
5105 | done | |
5106 | done | |
5107 | IFS=$as_save_IFS | |
82dcae9d | 5108 | |
82dcae9d | 5109 | fi |
82dcae9d | 5110 | fi |
81ecdfbb RW |
5111 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5112 | if test -n "$ac_ct_RANLIB"; then | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5114 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 5115 | else |
81ecdfbb RW |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5117 | $as_echo "no" >&6; } | |
5118 | fi | |
5119 | ||
5120 | if test "x$ac_ct_RANLIB" = x; then | |
5121 | RANLIB=":" | |
5122 | else | |
5123 | case $cross_compiling:$ac_tool_warned in | |
5124 | yes:) | |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5126 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5127 | ac_tool_warned=yes ;; | |
82dcae9d | 5128 | esac |
81ecdfbb RW |
5129 | RANLIB=$ac_ct_RANLIB |
5130 | fi | |
5131 | else | |
5132 | RANLIB="$ac_cv_prog_RANLIB" | |
5133 | fi | |
82dcae9d | 5134 | |
81ecdfbb RW |
5135 | |
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5137 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5138 | LN_S=$as_ln_s | |
5139 | if test "$LN_S" = "ln -s"; then | |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5141 | $as_echo "yes" >&6; } | |
5142 | else | |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5144 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5145 | fi |
82dcae9d ILT |
5146 | |
5147 | ||
5148 | ||
9a0910c3 ILT |
5149 | ac_ext=c |
5150 | ac_cpp='$CPP $CPPFLAGS' | |
5151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5155 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5156 | # On Suns, sometimes $CPP names a directory. |
5157 | if test -n "$CPP" && test -d "$CPP"; then | |
5158 | CPP= | |
5159 | fi | |
5160 | if test -z "$CPP"; then | |
81ecdfbb RW |
5161 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5162 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5163 | else |
5164 | # Double quotes because CPP needs to be expanded | |
5165 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5166 | do | |
5167 | ac_preproc_ok=false | |
5168 | for ac_c_preproc_warn_flag in '' yes | |
5169 | do | |
5170 | # Use a header file that comes with gcc, so configuring glibc | |
5171 | # with a fresh cross-compiler works. | |
5172 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5173 | # <limits.h> exists even on freestanding compilers. | |
5174 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5175 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5177 | /* end confdefs.h. */ |
5178 | #ifdef __STDC__ | |
5179 | # include <limits.h> | |
5180 | #else | |
5181 | # include <assert.h> | |
5182 | #endif | |
5183 | Syntax error | |
5184 | _ACEOF | |
81ecdfbb | 5185 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5186 | |
81ecdfbb | 5187 | else |
9a0910c3 ILT |
5188 | # Broken: fails on valid input. |
5189 | continue | |
5190 | fi | |
5191 | rm -f conftest.err conftest.$ac_ext | |
5192 | ||
81ecdfbb | 5193 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5194 | # can be detected and how. |
81ecdfbb | 5195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5196 | /* end confdefs.h. */ |
5197 | #include <ac_nonexistent.h> | |
5198 | _ACEOF | |
81ecdfbb | 5199 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5200 | # Broken: success on invalid input. |
5201 | continue | |
5202 | else | |
9a0910c3 ILT |
5203 | # Passes both tests. |
5204 | ac_preproc_ok=: | |
5205 | break | |
5206 | fi | |
5207 | rm -f conftest.err conftest.$ac_ext | |
5208 | ||
5209 | done | |
5210 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5211 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5212 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5213 | break |
5214 | fi | |
5215 | ||
5216 | done | |
5217 | ac_cv_prog_CPP=$CPP | |
5218 | ||
5219 | fi | |
5220 | CPP=$ac_cv_prog_CPP | |
5221 | else | |
5222 | ac_cv_prog_CPP=$CPP | |
5223 | fi | |
81ecdfbb RW |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5225 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5226 | ac_preproc_ok=false |
5227 | for ac_c_preproc_warn_flag in '' yes | |
5228 | do | |
5229 | # Use a header file that comes with gcc, so configuring glibc | |
5230 | # with a fresh cross-compiler works. | |
5231 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5232 | # <limits.h> exists even on freestanding compilers. | |
5233 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5234 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5236 | /* end confdefs.h. */ |
5237 | #ifdef __STDC__ | |
5238 | # include <limits.h> | |
5239 | #else | |
5240 | # include <assert.h> | |
5241 | #endif | |
5242 | Syntax error | |
5243 | _ACEOF | |
81ecdfbb | 5244 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5245 | |
81ecdfbb | 5246 | else |
9a0910c3 ILT |
5247 | # Broken: fails on valid input. |
5248 | continue | |
5249 | fi | |
5250 | rm -f conftest.err conftest.$ac_ext | |
5251 | ||
81ecdfbb | 5252 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5253 | # can be detected and how. |
81ecdfbb | 5254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5255 | /* end confdefs.h. */ |
5256 | #include <ac_nonexistent.h> | |
5257 | _ACEOF | |
81ecdfbb | 5258 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5259 | # Broken: success on invalid input. |
5260 | continue | |
5261 | else | |
9a0910c3 ILT |
5262 | # Passes both tests. |
5263 | ac_preproc_ok=: | |
5264 | break | |
5265 | fi | |
5266 | rm -f conftest.err conftest.$ac_ext | |
5267 | ||
5268 | done | |
5269 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5270 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5271 | if $ac_preproc_ok; then : |
5272 | ||
9a0910c3 | 5273 | else |
81ecdfbb RW |
5274 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5275 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5276 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5277 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5278 | fi |
5279 | ||
5280 | ac_ext=c | |
5281 | ac_cpp='$CPP $CPPFLAGS' | |
5282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5285 | ||
5286 | ||
81ecdfbb RW |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5288 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5289 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5290 | $as_echo_n "(cached) " >&6 | |
5291 | else | |
5292 | if test -z "$GREP"; then | |
5293 | ac_path_GREP_found=false | |
5294 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5296 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5297 | do | |
5298 | IFS=$as_save_IFS | |
5299 | test -z "$as_dir" && as_dir=. | |
5300 | for ac_prog in grep ggrep; do | |
5301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5302 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5303 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5304 | # Check for GNU ac_path_GREP and select it if it is found. | |
5305 | # Check for GNU $ac_path_GREP | |
5306 | case `"$ac_path_GREP" --version 2>&1` in | |
5307 | *GNU*) | |
5308 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5309 | *) | |
5310 | ac_count=0 | |
5311 | $as_echo_n 0123456789 >"conftest.in" | |
5312 | while : | |
5313 | do | |
5314 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5315 | mv "conftest.tmp" "conftest.in" | |
5316 | cp "conftest.in" "conftest.nl" | |
5317 | $as_echo 'GREP' >> "conftest.nl" | |
5318 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5319 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5320 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5321 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5322 | # Best one so far, save it but keep looking for a better one | |
5323 | ac_cv_path_GREP="$ac_path_GREP" | |
5324 | ac_path_GREP_max=$ac_count | |
5325 | fi | |
5326 | # 10*(2^10) chars as input seems more than enough | |
5327 | test $ac_count -gt 10 && break | |
5328 | done | |
5329 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5330 | esac | |
5331 | ||
5332 | $ac_path_GREP_found && break 3 | |
5333 | done | |
5334 | done | |
5335 | done | |
5336 | IFS=$as_save_IFS | |
5337 | if test -z "$ac_cv_path_GREP"; then | |
5338 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5339 | fi | |
5340 | else | |
5341 | ac_cv_path_GREP=$GREP | |
5342 | fi | |
5343 | ||
5344 | fi | |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5346 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5347 | GREP="$ac_cv_path_GREP" | |
5348 | ||
5349 | ||
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5351 | $as_echo_n "checking for egrep... " >&6; } | |
5352 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5353 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5354 | else |
81ecdfbb RW |
5355 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5356 | then ac_cv_path_EGREP="$GREP -E" | |
5357 | else | |
5358 | if test -z "$EGREP"; then | |
5359 | ac_path_EGREP_found=false | |
5360 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5362 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5363 | do | |
5364 | IFS=$as_save_IFS | |
5365 | test -z "$as_dir" && as_dir=. | |
5366 | for ac_prog in egrep; do | |
5367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5368 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5369 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5370 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5371 | # Check for GNU $ac_path_EGREP | |
5372 | case `"$ac_path_EGREP" --version 2>&1` in | |
5373 | *GNU*) | |
5374 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5375 | *) | |
5376 | ac_count=0 | |
5377 | $as_echo_n 0123456789 >"conftest.in" | |
5378 | while : | |
5379 | do | |
5380 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5381 | mv "conftest.tmp" "conftest.in" | |
5382 | cp "conftest.in" "conftest.nl" | |
5383 | $as_echo 'EGREP' >> "conftest.nl" | |
5384 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5385 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5386 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5387 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5388 | # Best one so far, save it but keep looking for a better one | |
5389 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5390 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5391 | fi |
81ecdfbb RW |
5392 | # 10*(2^10) chars as input seems more than enough |
5393 | test $ac_count -gt 10 && break | |
5394 | done | |
5395 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5396 | esac | |
5397 | ||
5398 | $ac_path_EGREP_found && break 3 | |
5399 | done | |
5400 | done | |
5401 | done | |
5402 | IFS=$as_save_IFS | |
5403 | if test -z "$ac_cv_path_EGREP"; then | |
5404 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5405 | fi | |
5406 | else | |
5407 | ac_cv_path_EGREP=$EGREP | |
5408 | fi | |
5409 | ||
5410 | fi | |
9a0910c3 | 5411 | fi |
81ecdfbb RW |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5413 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5414 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5415 | |
5416 | ||
81ecdfbb RW |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5418 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5419 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5420 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5421 | else |
81ecdfbb | 5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5423 | /* end confdefs.h. */ |
5424 | #include <stdlib.h> | |
5425 | #include <stdarg.h> | |
5426 | #include <string.h> | |
5427 | #include <float.h> | |
5428 | ||
5429 | int | |
5430 | main () | |
5431 | { | |
5432 | ||
5433 | ; | |
5434 | return 0; | |
5435 | } | |
5436 | _ACEOF | |
81ecdfbb | 5437 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5438 | ac_cv_header_stdc=yes |
5439 | else | |
81ecdfbb | 5440 | ac_cv_header_stdc=no |
9a0910c3 | 5441 | fi |
81ecdfbb | 5442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5443 | |
5444 | if test $ac_cv_header_stdc = yes; then | |
5445 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5447 | /* end confdefs.h. */ |
5448 | #include <string.h> | |
5449 | ||
5450 | _ACEOF | |
5451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5452 | $EGREP "memchr" >/dev/null 2>&1; then : |
5453 | ||
9a0910c3 ILT |
5454 | else |
5455 | ac_cv_header_stdc=no | |
5456 | fi | |
5457 | rm -f conftest* | |
5458 | ||
5459 | fi | |
5460 | ||
5461 | if test $ac_cv_header_stdc = yes; then | |
5462 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5464 | /* end confdefs.h. */ |
5465 | #include <stdlib.h> | |
5466 | ||
5467 | _ACEOF | |
5468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5469 | $EGREP "free" >/dev/null 2>&1; then : |
5470 | ||
9a0910c3 ILT |
5471 | else |
5472 | ac_cv_header_stdc=no | |
5473 | fi | |
5474 | rm -f conftest* | |
5475 | ||
5476 | fi | |
5477 | ||
5478 | if test $ac_cv_header_stdc = yes; then | |
5479 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5480 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5481 | : |
5482 | else | |
81ecdfbb | 5483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5484 | /* end confdefs.h. */ |
5485 | #include <ctype.h> | |
81ecdfbb | 5486 | #include <stdlib.h> |
9a0910c3 ILT |
5487 | #if ((' ' & 0x0FF) == 0x020) |
5488 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5489 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5490 | #else | |
5491 | # define ISLOWER(c) \ | |
5492 | (('a' <= (c) && (c) <= 'i') \ | |
5493 | || ('j' <= (c) && (c) <= 'r') \ | |
5494 | || ('s' <= (c) && (c) <= 'z')) | |
5495 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5496 | #endif | |
5497 | ||
5498 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5499 | int | |
5500 | main () | |
5501 | { | |
5502 | int i; | |
5503 | for (i = 0; i < 256; i++) | |
5504 | if (XOR (islower (i), ISLOWER (i)) | |
5505 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5506 | return 2; |
5507 | return 0; | |
9a0910c3 ILT |
5508 | } |
5509 | _ACEOF | |
81ecdfbb | 5510 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5511 | |
81ecdfbb RW |
5512 | else |
5513 | ac_cv_header_stdc=no | |
9a0910c3 | 5514 | fi |
81ecdfbb RW |
5515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5516 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5517 | fi |
81ecdfbb | 5518 | |
9a0910c3 ILT |
5519 | fi |
5520 | fi | |
81ecdfbb RW |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5522 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5523 | if test $ac_cv_header_stdc = yes; then |
5524 | ||
81ecdfbb | 5525 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5526 | |
5527 | fi | |
5528 | ||
5529 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5530 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5531 | inttypes.h stdint.h unistd.h | |
5532 | do : | |
5533 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5534 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5535 | " | |
5536 | eval as_val=\$$as_ac_Header | |
5537 | if test "x$as_val" = x""yes; then : | |
5538 | cat >>confdefs.h <<_ACEOF | |
5539 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5540 | _ACEOF | |
9a0910c3 | 5541 | |
81ecdfbb | 5542 | fi |
9a0910c3 | 5543 | |
81ecdfbb | 5544 | done |
9a0910c3 ILT |
5545 | |
5546 | ||
5547 | ||
81ecdfbb RW |
5548 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5549 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5550 | MINIX=yes | |
5551 | else | |
5552 | MINIX= | |
5553 | fi | |
9a0910c3 ILT |
5554 | |
5555 | ||
81ecdfbb | 5556 | if test "$MINIX" = yes; then |
9a0910c3 | 5557 | |
81ecdfbb | 5558 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5559 | |
9a0910c3 | 5560 | |
81ecdfbb | 5561 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5562 | |
9a0910c3 | 5563 | |
81ecdfbb | 5564 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5565 | |
81ecdfbb | 5566 | fi |
9a0910c3 ILT |
5567 | |
5568 | ||
81ecdfbb RW |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5570 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5571 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5572 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5573 | else |
81ecdfbb | 5574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5575 | /* end confdefs.h. */ |
5576 | ||
81ecdfbb RW |
5577 | # define __EXTENSIONS__ 1 |
5578 | $ac_includes_default | |
9a0910c3 ILT |
5579 | int |
5580 | main () | |
5581 | { | |
81ecdfbb | 5582 | |
9a0910c3 ILT |
5583 | ; |
5584 | return 0; | |
5585 | } | |
5586 | _ACEOF | |
81ecdfbb RW |
5587 | if ac_fn_c_try_compile "$LINENO"; then : |
5588 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5589 | else |
81ecdfbb | 5590 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5591 | fi |
81ecdfbb RW |
5592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5593 | fi | |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5595 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5596 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5597 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5598 | |
81ecdfbb RW |
5599 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5600 | ||
5601 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5602 | |
81ecdfbb RW |
5603 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5604 | ||
5605 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | # If we haven't got the data from the intl directory, | |
5611 | # assume NLS is disabled. | |
5612 | USE_NLS=no | |
5613 | LIBINTL= | |
5614 | LIBINTL_DEP= | |
5615 | INCINTL= | |
5616 | XGETTEXT= | |
5617 | GMSGFMT= | |
5618 | POSUB= | |
5619 | ||
5620 | if test -f ../intl/config.intl; then | |
5621 | . ../intl/config.intl | |
9a0910c3 | 5622 | fi |
81ecdfbb RW |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5624 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5625 | if test x"$USE_NLS" != xyes; then | |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5627 | $as_echo "no" >&6; } | |
5628 | else | |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5630 | $as_echo "yes" >&6; } | |
5631 | ||
5632 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5633 | ||
5634 | ||
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5636 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5637 | # Look for .po and .gmo files in the source directory. | |
5638 | CATALOGS= | |
5639 | XLINGUAS= | |
5640 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5641 | # If there aren't any .gmo files the shell will give us the | |
5642 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5643 | # weeded out. | |
5644 | case "$cat" in *\**) | |
5645 | continue;; | |
5646 | esac | |
5647 | # The quadruple backslash is collapsed to a double backslash | |
5648 | # by the backticks, then collapsed again by the double quotes, | |
5649 | # leaving us with one backslash in the sed expression (right | |
5650 | # before the dot that mustn't act as a wildcard). | |
5651 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5652 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5653 | # The user is allowed to set LINGUAS to a list of languages to | |
5654 | # install catalogs for. If it's empty that means "all of them." | |
5655 | if test "x$LINGUAS" = x; then | |
5656 | CATALOGS="$CATALOGS $cat" | |
5657 | XLINGUAS="$XLINGUAS $lang" | |
5658 | else | |
5659 | case "$LINGUAS" in *$lang*) | |
5660 | CATALOGS="$CATALOGS $cat" | |
5661 | XLINGUAS="$XLINGUAS $lang" | |
5662 | ;; | |
5663 | esac | |
5664 | fi | |
9a0910c3 | 5665 | done |
81ecdfbb RW |
5666 | LINGUAS="$XLINGUAS" |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5668 | $as_echo "$LINGUAS" >&6; } | |
5669 | ||
5670 | ||
5671 | DATADIRNAME=share | |
5672 | ||
5673 | INSTOBJEXT=.mo | |
5674 | ||
5675 | GENCAT=gencat | |
5676 | ||
5677 | CATOBJEXT=.gmo | |
9a0910c3 | 5678 | |
9a0910c3 | 5679 | fi |
9a0910c3 | 5680 | |
81ecdfbb RW |
5681 | MKINSTALLDIRS= |
5682 | if test -n "$ac_aux_dir"; then | |
5683 | case "$ac_aux_dir" in | |
5684 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5685 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5686 | esac | |
5687 | fi | |
5688 | if test -z "$MKINSTALLDIRS"; then | |
5689 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5690 | fi | |
5691 | ||
5692 | ||
5693 | ||
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5695 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5696 | # Check whether --enable-nls was given. | |
5697 | if test "${enable_nls+set}" = set; then : | |
5698 | enableval=$enable_nls; USE_NLS=$enableval | |
5699 | else | |
5700 | USE_NLS=yes | |
9a0910c3 | 5701 | fi |
9a0910c3 | 5702 | |
81ecdfbb RW |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5704 | $as_echo "$USE_NLS" >&6; } | |
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | # Prepare PATH_SEPARATOR. | |
5712 | # The user is always right. | |
5713 | if test "${PATH_SEPARATOR+set}" != set; then | |
5714 | echo "#! /bin/sh" >conf$$.sh | |
5715 | echo "exit 0" >>conf$$.sh | |
5716 | chmod +x conf$$.sh | |
5717 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5718 | PATH_SEPARATOR=';' | |
9a0910c3 | 5719 | else |
81ecdfbb | 5720 | PATH_SEPARATOR=: |
9a0910c3 | 5721 | fi |
81ecdfbb | 5722 | rm -f conf$$.sh |
9a0910c3 | 5723 | fi |
81ecdfbb RW |
5724 | |
5725 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5726 | # as systems may use methods other than mode bits to determine executability. | |
5727 | cat >conf$$.file <<_ASEOF | |
5728 | #! /bin/sh | |
5729 | exit 0 | |
5730 | _ASEOF | |
5731 | chmod +x conf$$.file | |
5732 | if test -x conf$$.file >/dev/null 2>&1; then | |
5733 | ac_executable_p="test -x" | |
9a0910c3 | 5734 | else |
81ecdfbb RW |
5735 | ac_executable_p="test -f" |
5736 | fi | |
5737 | rm -f conf$$.file | |
9a0910c3 | 5738 | |
81ecdfbb RW |
5739 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5740 | set dummy msgfmt; ac_word=$2 | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5742 | $as_echo_n "checking for $ac_word... " >&6; } | |
5743 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5744 | $as_echo_n "(cached) " >&6 | |
5745 | else | |
5746 | case "$MSGFMT" in | |
5747 | [\\/]* | ?:[\\/]*) | |
5748 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5749 | ;; | |
5750 | *) | |
5751 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5752 | for ac_dir in $PATH; do | |
5753 | IFS="$ac_save_IFS" | |
5754 | test -z "$ac_dir" && ac_dir=. | |
5755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5756 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5757 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5758 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5759 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5760 | break 2 | |
5761 | fi | |
5762 | fi | |
5763 | done | |
5764 | done | |
5765 | IFS="$ac_save_IFS" | |
5766 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5767 | ;; | |
5768 | esac | |
9a0910c3 | 5769 | fi |
81ecdfbb RW |
5770 | MSGFMT="$ac_cv_path_MSGFMT" |
5771 | if test "$MSGFMT" != ":"; then | |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5773 | $as_echo "$MSGFMT" >&6; } | |
5774 | else | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5776 | $as_echo "no" >&6; } | |
5777 | fi | |
5778 | ||
5779 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5780 | set dummy gmsgfmt; ac_word=$2 | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5782 | $as_echo_n "checking for $ac_word... " >&6; } | |
5783 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5784 | $as_echo_n "(cached) " >&6 | |
5785 | else | |
5786 | case $GMSGFMT in | |
5787 | [\\/]* | ?:[\\/]*) | |
5788 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5789 | ;; | |
5790 | *) | |
5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5792 | for as_dir in $PATH | |
5793 | do | |
5794 | IFS=$as_save_IFS | |
5795 | test -z "$as_dir" && as_dir=. | |
5796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5798 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5800 | break 2 | |
5801 | fi | |
5802 | done | |
5803 | done | |
5804 | IFS=$as_save_IFS | |
9a0910c3 | 5805 | |
81ecdfbb RW |
5806 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5807 | ;; | |
9a0910c3 | 5808 | esac |
81ecdfbb RW |
5809 | fi |
5810 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5811 | if test -n "$GMSGFMT"; then | |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5813 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5814 | else |
81ecdfbb RW |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5816 | $as_echo "no" >&6; } | |
9a0910c3 | 5817 | fi |
9a0910c3 | 5818 | |
9a0910c3 | 5819 | |
9a0910c3 | 5820 | |
9a0910c3 | 5821 | |
81ecdfbb RW |
5822 | # Prepare PATH_SEPARATOR. |
5823 | # The user is always right. | |
5824 | if test "${PATH_SEPARATOR+set}" != set; then | |
5825 | echo "#! /bin/sh" >conf$$.sh | |
5826 | echo "exit 0" >>conf$$.sh | |
5827 | chmod +x conf$$.sh | |
5828 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5829 | PATH_SEPARATOR=';' | |
5830 | else | |
5831 | PATH_SEPARATOR=: | |
5832 | fi | |
5833 | rm -f conf$$.sh | |
9a0910c3 ILT |
5834 | fi |
5835 | ||
81ecdfbb RW |
5836 | # Find out how to test for executable files. Don't use a zero-byte file, |
5837 | # as systems may use methods other than mode bits to determine executability. | |
5838 | cat >conf$$.file <<_ASEOF | |
5839 | #! /bin/sh | |
5840 | exit 0 | |
5841 | _ASEOF | |
5842 | chmod +x conf$$.file | |
5843 | if test -x conf$$.file >/dev/null 2>&1; then | |
5844 | ac_executable_p="test -x" | |
7fcd0256 | 5845 | else |
81ecdfbb | 5846 | ac_executable_p="test -f" |
7fcd0256 | 5847 | fi |
81ecdfbb | 5848 | rm -f conf$$.file |
7fcd0256 | 5849 | |
81ecdfbb RW |
5850 | # Extract the first word of "xgettext", so it can be a program name with args. |
5851 | set dummy xgettext; ac_word=$2 | |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5853 | $as_echo_n "checking for $ac_word... " >&6; } | |
5854 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5855 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5856 | else |
81ecdfbb RW |
5857 | case "$XGETTEXT" in |
5858 | [\\/]* | ?:[\\/]*) | |
5859 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5860 | ;; | |
5861 | *) | |
5862 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5863 | for ac_dir in $PATH; do | |
5864 | IFS="$ac_save_IFS" | |
5865 | test -z "$ac_dir" && ac_dir=. | |
5866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5867 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5868 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5869 | (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 | |
5870 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5871 | break 2 | |
5872 | fi | |
5873 | fi | |
5874 | done | |
5875 | done | |
5876 | IFS="$ac_save_IFS" | |
5877 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5878 | ;; | |
5879 | esac | |
54dc6425 | 5880 | fi |
81ecdfbb RW |
5881 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5882 | if test "$XGETTEXT" != ":"; then | |
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5884 | $as_echo "$XGETTEXT" >&6; } | |
5885 | else | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5887 | $as_echo "no" >&6; } | |
0639a6f6 | 5888 | fi |
0639a6f6 | 5889 | |
81ecdfbb | 5890 | rm -f messages.po |
0639a6f6 ILT |
5891 | |
5892 | ||
81ecdfbb RW |
5893 | # Prepare PATH_SEPARATOR. |
5894 | # The user is always right. | |
5895 | if test "${PATH_SEPARATOR+set}" != set; then | |
5896 | echo "#! /bin/sh" >conf$$.sh | |
5897 | echo "exit 0" >>conf$$.sh | |
5898 | chmod +x conf$$.sh | |
5899 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5900 | PATH_SEPARATOR=';' | |
5901 | else | |
5902 | PATH_SEPARATOR=: | |
5903 | fi | |
5904 | rm -f conf$$.sh | |
0639a6f6 | 5905 | fi |
0639a6f6 | 5906 | |
81ecdfbb RW |
5907 | # Find out how to test for executable files. Don't use a zero-byte file, |
5908 | # as systems may use methods other than mode bits to determine executability. | |
5909 | cat >conf$$.file <<_ASEOF | |
5910 | #! /bin/sh | |
5911 | exit 0 | |
5912 | _ASEOF | |
5913 | chmod +x conf$$.file | |
5914 | if test -x conf$$.file >/dev/null 2>&1; then | |
5915 | ac_executable_p="test -x" | |
54dc6425 | 5916 | else |
81ecdfbb | 5917 | ac_executable_p="test -f" |
54dc6425 | 5918 | fi |
81ecdfbb | 5919 | rm -f conf$$.file |
54dc6425 | 5920 | |
81ecdfbb RW |
5921 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5922 | set dummy msgmerge; ac_word=$2 | |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5924 | $as_echo_n "checking for $ac_word... " >&6; } | |
5925 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5926 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5927 | else |
81ecdfbb RW |
5928 | case "$MSGMERGE" in |
5929 | [\\/]* | ?:[\\/]*) | |
5930 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5931 | ;; | |
5932 | *) | |
5933 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5934 | for ac_dir in $PATH; do | |
5935 | IFS="$ac_save_IFS" | |
5936 | test -z "$ac_dir" && ac_dir=. | |
5937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5938 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5939 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5940 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5941 | break 2 | |
5942 | fi | |
5943 | fi | |
5944 | done | |
5945 | done | |
5946 | IFS="$ac_save_IFS" | |
5947 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5948 | ;; | |
5949 | esac | |
54dc6425 | 5950 | fi |
81ecdfbb RW |
5951 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5952 | if test "$MSGMERGE" != ":"; then | |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5954 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5955 | else |
81ecdfbb RW |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5957 | $as_echo "no" >&6; } | |
5958 | fi | |
0639a6f6 | 5959 | |
54dc6425 | 5960 | |
81ecdfbb RW |
5961 | if test "$GMSGFMT" != ":"; then |
5962 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5963 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5964 | : ; | |
5965 | else | |
5966 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5968 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5969 | GMSGFMT=":" | |
5970 | fi | |
5971 | fi | |
54dc6425 | 5972 | |
81ecdfbb RW |
5973 | if test "$XGETTEXT" != ":"; then |
5974 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5975 | (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 | |
5976 | : ; | |
5977 | else | |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5979 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5980 | XGETTEXT=":" | |
5981 | fi | |
5982 | rm -f messages.po | |
5983 | fi | |
54dc6425 | 5984 | |
81ecdfbb | 5985 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5986 | |
54dc6425 ILT |
5987 | |
5988 | ||
81ecdfbb RW |
5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5990 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5991 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5992 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5993 | else |
81ecdfbb RW |
5994 | ac_cv_c_bigendian=unknown |
5995 | # See if we're dealing with a universal compiler. | |
5996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5997 | /* end confdefs.h. */ |
81ecdfbb RW |
5998 | #ifndef __APPLE_CC__ |
5999 | not a universal capable compiler | |
6000 | #endif | |
6001 | typedef int dummy; | |
6002 | ||
6003 | _ACEOF | |
6004 | if ac_fn_c_try_compile "$LINENO"; then : | |
6005 | ||
6006 | # Check for potential -arch flags. It is not universal unless | |
6007 | # there are at least two -arch flags with different values. | |
6008 | ac_arch= | |
6009 | ac_prev= | |
6010 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6011 | if test -n "$ac_prev"; then | |
6012 | case $ac_word in | |
6013 | i?86 | x86_64 | ppc | ppc64) | |
6014 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6015 | ac_arch=$ac_word | |
6016 | else | |
6017 | ac_cv_c_bigendian=universal | |
6018 | break | |
6019 | fi | |
6020 | ;; | |
6021 | esac | |
6022 | ac_prev= | |
6023 | elif test "x$ac_word" = "x-arch"; then | |
6024 | ac_prev=arch | |
6025 | fi | |
6026 | done | |
6027 | fi | |
6028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6029 | if test $ac_cv_c_bigendian = unknown; then | |
6030 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6032 | /* end confdefs.h. */ | |
6033 | #include <sys/types.h> | |
6034 | #include <sys/param.h> | |
6035 | ||
0639a6f6 ILT |
6036 | int |
6037 | main () | |
6038 | { | |
81ecdfbb RW |
6039 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6040 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6041 | && LITTLE_ENDIAN) | |
6042 | bogus endian macros | |
6043 | #endif | |
54dc6425 | 6044 | |
81ecdfbb RW |
6045 | ; |
6046 | return 0; | |
6047 | } | |
15d5fa16 | 6048 | _ACEOF |
81ecdfbb RW |
6049 | if ac_fn_c_try_compile "$LINENO"; then : |
6050 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6052 | /* end confdefs.h. */ |
81ecdfbb RW |
6053 | #include <sys/types.h> |
6054 | #include <sys/param.h> | |
6055 | ||
0639a6f6 ILT |
6056 | int |
6057 | main () | |
6058 | { | |
81ecdfbb RW |
6059 | #if BYTE_ORDER != BIG_ENDIAN |
6060 | not big endian | |
6061 | #endif | |
0639a6f6 ILT |
6062 | |
6063 | ; | |
6064 | return 0; | |
6065 | } | |
15d5fa16 | 6066 | _ACEOF |
81ecdfbb RW |
6067 | if ac_fn_c_try_compile "$LINENO"; then : |
6068 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6069 | else |
81ecdfbb | 6070 | ac_cv_c_bigendian=no |
15d5fa16 | 6071 | fi |
81ecdfbb | 6072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 6073 | fi |
81ecdfbb RW |
6074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6075 | fi | |
6076 | if test $ac_cv_c_bigendian = unknown; then | |
6077 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6079 | /* end confdefs.h. */ | |
6080 | #include <limits.h> | |
0639a6f6 | 6081 | |
81ecdfbb RW |
6082 | int |
6083 | main () | |
6084 | { | |
6085 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6086 | bogus endian macros | |
6087 | #endif | |
0639a6f6 | 6088 | |
81ecdfbb RW |
6089 | ; |
6090 | return 0; | |
6091 | } | |
15d5fa16 | 6092 | _ACEOF |
81ecdfbb RW |
6093 | if ac_fn_c_try_compile "$LINENO"; then : |
6094 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6096 | /* end confdefs.h. */ |
81ecdfbb RW |
6097 | #include <limits.h> |
6098 | ||
0639a6f6 ILT |
6099 | int |
6100 | main () | |
6101 | { | |
81ecdfbb RW |
6102 | #ifndef _BIG_ENDIAN |
6103 | not big endian | |
6104 | #endif | |
0639a6f6 ILT |
6105 | |
6106 | ; | |
6107 | return 0; | |
6108 | } | |
15d5fa16 | 6109 | _ACEOF |
81ecdfbb RW |
6110 | if ac_fn_c_try_compile "$LINENO"; then : |
6111 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6112 | else |
81ecdfbb | 6113 | ac_cv_c_bigendian=no |
15d5fa16 | 6114 | fi |
81ecdfbb | 6115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 6116 | fi |
81ecdfbb RW |
6117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6118 | fi | |
6119 | if test $ac_cv_c_bigendian = unknown; then | |
6120 | # Compile a test program. | |
6121 | if test "$cross_compiling" = yes; then : | |
6122 | # Try to guess by grepping values from an object file. | |
6123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6124 | /* end confdefs.h. */ | |
6125 | short int ascii_mm[] = | |
6126 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6127 | short int ascii_ii[] = | |
6128 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6129 | int use_ascii (int i) { | |
6130 | return ascii_mm[i] + ascii_ii[i]; | |
6131 | } | |
6132 | short int ebcdic_ii[] = | |
6133 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6134 | short int ebcdic_mm[] = | |
6135 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6136 | int use_ebcdic (int i) { | |
6137 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6138 | } | |
6139 | extern int foo; | |
15d5fa16 | 6140 | |
81ecdfbb RW |
6141 | int |
6142 | main () | |
6143 | { | |
6144 | return use_ascii (foo) == use_ebcdic (foo); | |
6145 | ; | |
6146 | return 0; | |
6147 | } | |
0639a6f6 | 6148 | _ACEOF |
81ecdfbb RW |
6149 | if ac_fn_c_try_compile "$LINENO"; then : |
6150 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6151 | ac_cv_c_bigendian=yes | |
6152 | fi | |
6153 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6154 | if test "$ac_cv_c_bigendian" = unknown; then | |
6155 | ac_cv_c_bigendian=no | |
6156 | else | |
6157 | # finding both strings is unlikely to happen, but who knows? | |
6158 | ac_cv_c_bigendian=unknown | |
6159 | fi | |
6160 | fi | |
54dc6425 | 6161 | fi |
81ecdfbb | 6162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6163 | else |
81ecdfbb | 6164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6165 | /* end confdefs.h. */ |
6166 | $ac_includes_default | |
0639a6f6 ILT |
6167 | int |
6168 | main () | |
6169 | { | |
81ecdfbb RW |
6170 | |
6171 | /* Are we little or big endian? From Harbison&Steele. */ | |
6172 | union | |
6173 | { | |
6174 | long int l; | |
6175 | char c[sizeof (long int)]; | |
6176 | } u; | |
6177 | u.l = 1; | |
6178 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6179 | |
6180 | ; | |
6181 | return 0; | |
6182 | } | |
54dc6425 | 6183 | _ACEOF |
81ecdfbb RW |
6184 | if ac_fn_c_try_run "$LINENO"; then : |
6185 | ac_cv_c_bigendian=no | |
54dc6425 | 6186 | else |
81ecdfbb | 6187 | ac_cv_c_bigendian=yes |
54dc6425 | 6188 | fi |
81ecdfbb RW |
6189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6190 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6191 | fi |
54dc6425 | 6192 | |
81ecdfbb RW |
6193 | fi |
6194 | fi | |
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6196 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6197 | case $ac_cv_c_bigendian in #( | |
6198 | yes) | |
6199 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6200 | ;; #( | |
6201 | no) | |
6202 | ;; #( | |
6203 | universal) | |
6204 | ||
6205 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6206 | ||
6207 | ;; #( | |
6208 | *) | |
6209 | as_fn_error "unknown endianness | |
6210 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6211 | esac | |
0639a6f6 ILT |
6212 | |
6213 | ||
0639a6f6 ILT |
6214 | |
6215 | ||
81ecdfbb RW |
6216 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6217 | NATIVE_LINKER_TRUE= | |
6218 | NATIVE_LINKER_FALSE='#' | |
6219 | else | |
6220 | NATIVE_LINKER_TRUE='#' | |
6221 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6222 | fi |
6223 | ||
81ecdfbb RW |
6224 | if test "$GCC" = yes; then |
6225 | GCC_TRUE= | |
6226 | GCC_FALSE='#' | |
6227 | else | |
6228 | GCC_TRUE='#' | |
6229 | GCC_FALSE= | |
6230 | fi | |
0639a6f6 ILT |
6231 | |
6232 | ||
eb373049 ILT |
6233 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6234 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6235 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6236 | else | |
6237 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6238 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6239 | fi | |
6240 | ||
6241 | ||
328c7c2f ILT |
6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
6243 | $as_echo_n "checking whether static linking works... " >&6; } | |
6244 | if test "${gold_cv_lib_static+set}" = set; then : | |
6245 | $as_echo_n "(cached) " >&6 | |
6246 | else | |
6247 | LDFLAGS_hold=$LDFLAGS | |
6248 | LDFLAGS="$LDFLAGS -static" | |
6249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6250 | /* end confdefs.h. */ | |
6251 | ||
6252 | void f() { } | |
6253 | int | |
6254 | main () | |
6255 | { | |
6256 | ||
6257 | ; | |
6258 | return 0; | |
6259 | } | |
6260 | _ACEOF | |
6261 | if ac_fn_c_try_link "$LINENO"; then : | |
6262 | gold_cv_lib_static=yes | |
6263 | else | |
6264 | gold_cv_lib_static=no | |
6265 | fi | |
6266 | rm -f core conftest.err conftest.$ac_objext \ | |
6267 | conftest$ac_exeext conftest.$ac_ext | |
dd7af074 | 6268 | LDFLAGS=$LDFLAGS_hold |
328c7c2f ILT |
6269 | fi |
6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 | |
6271 | $as_echo "$gold_cv_lib_static" >&6; } | |
6272 | if test "$gold_cv_lib_static" = "yes"; then | |
6273 | HAVE_STATIC_TRUE= | |
6274 | HAVE_STATIC_FALSE='#' | |
6275 | else | |
6276 | HAVE_STATIC_TRUE='#' | |
6277 | HAVE_STATIC_FALSE= | |
6278 | fi | |
6279 | ||
6280 | ||
81ecdfbb RW |
6281 | if |
6282 | case $target_cpu in | |
864a1b56 | 6283 | powerpc*) false;; |
81ecdfbb RW |
6284 | x86_64) false;; |
6285 | sparc64) false;; | |
6286 | *) true;; | |
6287 | esac; then | |
6288 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6289 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6290 | else | |
6291 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6292 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6293 | fi | |
0639a6f6 ILT |
6294 | |
6295 | ||
084e2665 ILT |
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6297 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6298 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6299 | $as_echo_n "(cached) " >&6 | |
6300 | else | |
6301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6302 | /* end confdefs.h. */ | |
6303 | ||
6304 | #if !defined __GNUC__ | |
6305 | error | |
6306 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6307 | error | |
6308 | #endif | |
6309 | ||
6310 | _ACEOF | |
6311 | if ac_fn_c_try_compile "$LINENO"; then : | |
6312 | gold_cv_prog_gcc41=yes | |
6313 | else | |
6314 | gold_cv_prog_gcc41=no | |
6315 | fi | |
6316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6317 | fi | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6319 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6320 | ||
24482ca0 L |
6321 | save_CFLAGS="$CFLAGS" |
6322 | CFLAGS="$CFLAGS -mcmodel=medium" | |
6323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6324 | /* end confdefs.h. */ | |
6325 | int i; | |
6326 | _ACEOF | |
6327 | if ac_fn_c_try_compile "$LINENO"; then : | |
6328 | have_mcmodel_medium=yes | |
6329 | else | |
6330 | have_mcmodel_medium=no | |
6331 | fi | |
6332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6333 | CFLAGS="$save_CFLAGS" | |
6334 | if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6335 | MCMODEL_MEDIUM_TRUE= |
6336 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6337 | else |
81ecdfbb RW |
6338 | MCMODEL_MEDIUM_TRUE='#' |
6339 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6340 | fi |
54dc6425 | 6341 | |
54dc6425 | 6342 | |
2b64b551 RM |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 |
6344 | $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } | |
6345 | if test "${gold_cv_merge_constants+set}" = set; then : | |
6346 | $as_echo_n "(cached) " >&6 | |
6347 | else | |
6348 | ||
6349 | save_CFLAGS="$CFLAGS" | |
6350 | CFLAGS="$CFLAGS -fmerge-constants" | |
6351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6352 | /* end confdefs.h. */ | |
6353 | const char *s = "foo"; | |
6354 | _ACEOF | |
6355 | if ac_fn_c_try_compile "$LINENO"; then : | |
2500c017 | 6356 | gold_cv_merge_constants=yes |
2b64b551 | 6357 | else |
2500c017 | 6358 | gold_cv_merge_constants=no |
2b64b551 RM |
6359 | fi |
6360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6361 | CFLAGS="$save_CFLAGS" | |
6362 | fi | |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 | |
6364 | $as_echo "$gold_cv_merge_constants" >&6; } | |
6365 | ||
6366 | if test "$gold_cv_merge_constants" = yes; then : | |
6367 | MERGE_CONSTANTS_FLAG=-fmerge-constants | |
6368 | else | |
6369 | MERGE_CONSTANTS_FLAG= | |
6370 | fi | |
6371 | ||
81ecdfbb RW |
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6373 | $as_echo_n "checking for thread support... " >&6; } | |
6374 | if test "${gold_cv_c_thread+set}" = set; then : | |
6375 | $as_echo_n "(cached) " >&6 | |
6376 | else | |
6377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6378 | /* end confdefs.h. */ |
81ecdfbb | 6379 | __thread int i = 1; |
e44fcf3b | 6380 | _ACEOF |
81ecdfbb RW |
6381 | if ac_fn_c_try_compile "$LINENO"; then : |
6382 | gold_cv_c_thread=yes | |
0639a6f6 | 6383 | else |
81ecdfbb | 6384 | gold_cv_c_thread=no |
0639a6f6 | 6385 | fi |
81ecdfbb | 6386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6387 | fi |
81ecdfbb RW |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6389 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6390 | |
81ecdfbb RW |
6391 | if test "$gold_cv_c_thread" = "yes"; then |
6392 | TLS_TRUE= | |
6393 | TLS_FALSE='#' | |
6394 | else | |
6395 | TLS_TRUE='#' | |
6396 | TLS_FALSE= | |
0639a6f6 | 6397 | fi |
e44fcf3b | 6398 | |
0639a6f6 | 6399 | |
81ecdfbb RW |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6401 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6402 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6404 | else |
81ecdfbb | 6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6406 | /* end confdefs.h. */ |
81ecdfbb RW |
6407 | |
6408 | #include <features.h> | |
6409 | #if !defined __GLIBC__ | |
6410 | error | |
6411 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6412 | error | |
1b77ea50 | 6413 | #endif |
81ecdfbb | 6414 | |
1b77ea50 | 6415 | _ACEOF |
81ecdfbb RW |
6416 | if ac_fn_c_try_compile "$LINENO"; then : |
6417 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6418 | else |
81ecdfbb | 6419 | gold_cv_lib_glibc24=no |
0639a6f6 | 6420 | fi |
81ecdfbb | 6421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6422 | fi |
81ecdfbb RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6424 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6425 | |
81ecdfbb RW |
6426 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6427 | STATIC_TLS_TRUE= | |
6428 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6429 | else |
81ecdfbb RW |
6430 | STATIC_TLS_TRUE='#' |
6431 | STATIC_TLS_FALSE= | |
0639a6f6 | 6432 | fi |
1b77ea50 | 6433 | |
0639a6f6 | 6434 | |
81ecdfbb RW |
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6436 | $as_echo_n "checking for omp support... " >&6; } | |
6437 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6438 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6439 | else |
81ecdfbb RW |
6440 | save_CFLAGS="$CFLAGS" |
6441 | CFLAGS="$CFLAGS -fopenmp" | |
6442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6443 | /* end confdefs.h. */ | |
1b77ea50 | 6444 | |
81ecdfbb RW |
6445 | #include <omp.h> |
6446 | int i; | |
6447 | #pragma omp threadprivate (i) | |
1b77ea50 | 6448 | |
81ecdfbb RW |
6449 | _ACEOF |
6450 | if ac_fn_c_try_compile "$LINENO"; then : | |
6451 | gold_cv_c_threadprivate=yes | |
6452 | else | |
6453 | gold_cv_c_threadprivate=no | |
6454 | fi | |
6455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6456 | CFLAGS="$save_CFLAGS" | |
6457 | fi | |
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6459 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6460 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6461 | |
81ecdfbb | 6462 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6463 | |
0639a6f6 | 6464 | fi |
81ecdfbb RW |
6465 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6466 | OMP_SUPPORT_TRUE= | |
6467 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6468 | else |
81ecdfbb RW |
6469 | OMP_SUPPORT_TRUE='#' |
6470 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6471 | fi |
1b77ea50 | 6472 | |
81ecdfbb RW |
6473 | |
6474 | save_CFLAGS="$CFLAGS" | |
13323c49 | 6475 | CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" |
81ecdfbb | 6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0639a6f6 | 6477 | /* end confdefs.h. */ |
63887f3d L |
6478 | |
6479 | __thread int i; | |
6480 | void foo (void) | |
6481 | { | |
6482 | i = 10; | |
6483 | } | |
6484 | ||
1b77ea50 | 6485 | _ACEOF |
81ecdfbb RW |
6486 | if ac_fn_c_try_compile "$LINENO"; then : |
6487 | have_tls_gnu2=yes | |
0639a6f6 | 6488 | else |
81ecdfbb | 6489 | have_tls_gnu2=no |
0639a6f6 | 6490 | fi |
81ecdfbb RW |
6491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6492 | CFLAGS="$save_CFLAGS" | |
6493 | if test "$have_tls_gnu2" = "yes"; then | |
6494 | TLS_GNU2_DIALECT_TRUE= | |
6495 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6496 | else |
81ecdfbb RW |
6497 | TLS_GNU2_DIALECT_TRUE='#' |
6498 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6499 | fi |
1b77ea50 | 6500 | |
81ecdfbb RW |
6501 | |
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6503 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6504 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6505 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6506 | else |
81ecdfbb RW |
6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6508 | /* end confdefs.h. */ | |
0639a6f6 | 6509 | |
81ecdfbb RW |
6510 | #include <features.h> |
6511 | #if !defined __GLIBC__ | |
6512 | error | |
6513 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6514 | error | |
6515 | #endif | |
1b77ea50 | 6516 | |
81ecdfbb RW |
6517 | _ACEOF |
6518 | if ac_fn_c_try_compile "$LINENO"; then : | |
6519 | gold_cv_lib_glibc29=yes | |
6520 | else | |
6521 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6522 | fi |
81ecdfbb RW |
6523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6524 | fi | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6526 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6527 | |
81ecdfbb RW |
6528 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6529 | TLS_DESCRIPTORS_TRUE= | |
6530 | TLS_DESCRIPTORS_FALSE='#' | |
6531 | else | |
6532 | TLS_DESCRIPTORS_TRUE='#' | |
6533 | TLS_DESCRIPTORS_FALSE= | |
6534 | fi | |
0639a6f6 ILT |
6535 | |
6536 | ||
81ecdfbb RW |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6538 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6539 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6540 | $as_echo_n "(cached) " >&6 | |
6541 | else | |
6542 | save_CFLAGS="$CFLAGS" | |
6543 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6545 | /* end confdefs.h. */ |
81ecdfbb | 6546 | int i; |
0639a6f6 | 6547 | _ACEOF |
81ecdfbb RW |
6548 | if ac_fn_c_try_compile "$LINENO"; then : |
6549 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6550 | else |
81ecdfbb RW |
6551 | gold_cv_c_random_seed=no |
6552 | fi | |
6553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6554 | CFLAGS="$save_CFLAGS" | |
6555 | fi | |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6557 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6558 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6559 | # In Makefile, '$@' will be expanded to be the name of the file | |
6560 | # being built, providing a unique seed for each file. | |
6561 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6562 | fi |
1b77ea50 | 6563 | |
81ecdfbb | 6564 | |
ebb300b2 CC |
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
6566 | $as_echo_n "checking for glibc ifunc support... " >&6; } | |
6567 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : | |
7223e9ca ILT |
6568 | $as_echo_n "(cached) " >&6 |
6569 | else | |
ebb300b2 CC |
6570 | save_LDFLAGS="$LDFLAGS" |
6571 | LDFLAGS="$LDFLAGS -static" | |
6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7223e9ca ILT |
6573 | /* end confdefs.h. */ |
6574 | ||
6575 | #include <features.h> | |
6576 | #if !defined __GLIBC__ | |
6577 | error | |
6578 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6579 | error | |
6580 | #endif | |
ebb300b2 CC |
6581 | void func (void) { } |
6582 | void invoke (void); | |
6583 | __asm__(".type invoke, %gnu_indirect_function"); | |
6584 | typedef void (*funcptr) (void); | |
6585 | funcptr dispatch (void) __asm__ ("invoke"); | |
6586 | funcptr dispatch (void) { return &func; } | |
6587 | int | |
6588 | main () | |
6589 | { | |
6590 | invoke(); | |
6591 | ; | |
6592 | return 0; | |
6593 | } | |
7223e9ca ILT |
6594 | |
6595 | _ACEOF | |
ebb300b2 CC |
6596 | if ac_fn_c_try_link "$LINENO"; then : |
6597 | ||
6598 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then | |
6599 | gold_cv_lib_glibc_ifunc=both | |
7223e9ca | 6600 | else |
ebb300b2 | 6601 | gold_cv_lib_glibc_ifunc=dyn |
7223e9ca | 6602 | fi |
ebb300b2 CC |
6603 | else |
6604 | gold_cv_lib_glibc_ifunc=no | |
6605 | fi | |
6606 | rm -f core conftest.err conftest.$ac_objext \ | |
6607 | conftest$ac_exeext conftest.$ac_ext | |
6608 | LDFLAGS="$save_LDFLAGS" | |
7223e9ca | 6609 | fi |
ebb300b2 CC |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
6611 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } | |
7223e9ca | 6612 | |
ebb300b2 | 6613 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
7223e9ca ILT |
6614 | IFUNC_TRUE= |
6615 | IFUNC_FALSE='#' | |
6616 | else | |
6617 | IFUNC_TRUE='#' | |
6618 | IFUNC_FALSE= | |
6619 | fi | |
6620 | ||
ebb300b2 CC |
6621 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
6622 | IFUNC_STATIC_TRUE= | |
6623 | IFUNC_STATIC_FALSE='#' | |
6624 | else | |
6625 | IFUNC_STATIC_TRUE='#' | |
6626 | IFUNC_STATIC_FALSE= | |
6627 | fi | |
6628 | ||
7223e9ca | 6629 | |
81ecdfbb | 6630 | |
efc8d4f2 RW |
6631 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6633 | /* end confdefs.h. */ | |
6634 | __GNUC__ | |
6635 | _ACEOF | |
6636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6637 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6638 | ||
6639 | else | |
6640 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6641 | fi | |
6642 | rm -f conftest* | |
6643 | ||
81ecdfbb RW |
6644 | |
6645 | # Check whether --enable-werror was given. | |
6646 | if test "${enable_werror+set}" = set; then : | |
6647 | enableval=$enable_werror; case "${enableval}" in | |
6648 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6649 | no | n) ERROR_ON_WARNING="no" ;; | |
6650 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6651 | esac | |
0639a6f6 | 6652 | fi |
1b77ea50 | 6653 | |
81ecdfbb | 6654 | |
efc8d4f2 | 6655 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6656 | case "${host}" in |
6657 | *-*-mingw32*) | |
6658 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6659 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6660 | fi | |
0639a6f6 | 6661 | ;; |
81ecdfbb | 6662 | *) ;; |
0639a6f6 | 6663 | esac |
81ecdfbb RW |
6664 | |
6665 | # Enable -Werror by default when using gcc | |
6666 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6667 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6668 | fi |
0639a6f6 | 6669 | |
81ecdfbb RW |
6670 | NO_WERROR= |
6671 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6672 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6673 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6674 | fi |
1b77ea50 | 6675 | |
81ecdfbb RW |
6676 | if test "${GCC}" = yes ; then |
6677 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6678 | fi |
6679 | ||
81ecdfbb RW |
6680 | # Check whether --enable-build-warnings was given. |
6681 | if test "${enable_build_warnings+set}" = set; then : | |
6682 | enableval=$enable_build_warnings; case "${enableval}" in | |
6683 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6684 | no) if test "${GCC}" = yes ; then | |
6685 | WARN_CFLAGS="-w" | |
6686 | fi;; | |
6687 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6688 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6689 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6690 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6691 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6692 | esac | |
6693 | fi | |
0639a6f6 | 6694 | |
1b77ea50 | 6695 | |
81ecdfbb RW |
6696 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6697 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6698 | fi |
1b77ea50 | 6699 | |
1b77ea50 | 6700 | |
1b77ea50 | 6701 | |
0639a6f6 | 6702 | |
1b77ea50 | 6703 | |
2ea97941 | 6704 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6705 | |
6706 | ||
dc87f620 ILT |
6707 | |
6708 | # Check whether --with-gold-ldflags was given. | |
6709 | if test "${with_gold_ldflags+set}" = set; then : | |
6710 | withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6711 | GOLD_LDFLAGS= | |
6712 | else | |
6713 | GOLD_LDFLAGS=$withval | |
6714 | fi | |
6715 | else | |
6716 | GOLD_LDFLAGS= | |
6717 | fi | |
6718 | ||
6719 | ||
6720 | ||
6721 | ||
6722 | # Check whether --with-gold-ldadd was given. | |
6723 | if test "${with_gold_ldadd+set}" = set; then : | |
6724 | withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6725 | GOLD_LDADD= | |
6726 | else | |
6727 | GOLD_LDADD=$withval | |
6728 | fi | |
6729 | else | |
6730 | GOLD_LDADD= | |
6731 | fi | |
6732 | ||
6733 | ||
6734 | ||
81ecdfbb RW |
6735 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
6736 | ||
6737 | ||
88597d34 | 6738 | for ac_header in sys/mman.h |
81ecdfbb | 6739 | do : |
88597d34 ILT |
6740 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6741 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6742 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6743 | #define HAVE_SYS_MMAN_H 1 |
6744 | _ACEOF | |
6745 | ||
6746 | fi | |
6747 | ||
6748 | done | |
6749 | ||
6750 | for ac_func in chsize mmap | |
6751 | do : | |
6752 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6753 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6754 | eval as_val=\$$as_ac_var | |
6755 | if test "x$as_val" = x""yes; then : | |
6756 | cat >>confdefs.h <<_ACEOF | |
6757 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6758 | _ACEOF |
6759 | ||
0639a6f6 | 6760 | fi |
0639a6f6 | 6761 | done |
1b77ea50 | 6762 | |
88597d34 | 6763 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6764 | do : |
6765 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6766 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6767 | eval as_val=\$$as_ac_var | |
6768 | if test "x$as_val" = x""yes; then : | |
6769 | cat >>confdefs.h <<_ACEOF | |
6770 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6771 | _ACEOF |
0639a6f6 | 6772 | |
81ecdfbb RW |
6773 | else |
6774 | case " $LIBOBJS " in | |
6775 | *" $ac_func.$ac_objext "* ) ;; | |
6776 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6777 | ;; | |
6778 | esac | |
0639a6f6 | 6779 | |
81ecdfbb RW |
6780 | fi |
6781 | done | |
0639a6f6 | 6782 | |
0639a6f6 | 6783 | |
81ecdfbb | 6784 | |
88597d34 ILT |
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6786 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6787 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6788 | $as_echo_n "(cached) " >&6 | |
6789 | else | |
6790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6791 | /* end confdefs.h. */ | |
6792 | ||
6793 | ||
6794 | #include <sys/mman.h> | |
6795 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6796 | ||
6797 | int | |
6798 | main () | |
6799 | { | |
6800 | ||
6801 | ; | |
6802 | return 0; | |
6803 | } | |
6804 | _ACEOF | |
6805 | if ac_fn_c_try_link "$LINENO"; then : | |
6806 | gold_cv_lib_mremap_maymove=yes | |
6807 | else | |
6808 | gold_cv_lib_mremap_maymove=no | |
6809 | fi | |
6810 | rm -f core conftest.err conftest.$ac_objext \ | |
6811 | conftest$ac_exeext conftest.$ac_ext | |
6812 | fi | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6814 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6815 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6816 | ||
6817 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6818 | ||
6819 | else | |
6820 | case " $LIBOBJS " in | |
6821 | *" mremap.$ac_objext "* ) ;; | |
6822 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6823 | ;; | |
6824 | esac | |
6825 | ||
6826 | fi | |
6827 | ||
81ecdfbb | 6828 | # Link in zlib if we can. This allows us to write compressed sections. |
ae2eea65 ILT |
6829 | |
6830 | # See if the user specified whether he wants zlib support or not. | |
6831 | ||
6832 | # Check whether --with-zlib was given. | |
6833 | if test "${with_zlib+set}" = set; then : | |
6834 | withval=$with_zlib; | |
6835 | else | |
6836 | with_zlib=auto | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | if test "$with_zlib" != "no"; then | |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
81ecdfbb RW |
6842 | $as_echo_n "checking for library containing zlibVersion... " >&6; } |
6843 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6844 | $as_echo_n "(cached) " >&6 | |
6845 | else | |
6846 | ac_func_search_save_LIBS=$LIBS | |
6847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6848 | /* end confdefs.h. */ | |
6849 | ||
6850 | /* Override any GCC internal prototype to avoid an error. | |
6851 | Use char because int might match the return type of a GCC | |
6852 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6853 | #ifdef __cplusplus |
81ecdfbb | 6854 | extern "C" |
1b77ea50 | 6855 | #endif |
81ecdfbb | 6856 | char zlibVersion (); |
0639a6f6 ILT |
6857 | int |
6858 | main () | |
6859 | { | |
81ecdfbb | 6860 | return zlibVersion (); |
1b77ea50 ILT |
6861 | ; |
6862 | return 0; | |
6863 | } | |
6864 | _ACEOF | |
81ecdfbb RW |
6865 | for ac_lib in '' z; do |
6866 | if test -z "$ac_lib"; then | |
6867 | ac_res="none required" | |
6868 | else | |
6869 | ac_res=-l$ac_lib | |
6870 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6871 | fi | |
6872 | if ac_fn_c_try_link "$LINENO"; then : | |
6873 | ac_cv_search_zlibVersion=$ac_res | |
6874 | fi | |
6875 | rm -f core conftest.err conftest.$ac_objext \ | |
6876 | conftest$ac_exeext | |
6877 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6878 | break | |
6879 | fi | |
6880 | done | |
6881 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6882 | |
81ecdfbb RW |
6883 | else |
6884 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6885 | fi |
81ecdfbb RW |
6886 | rm conftest.$ac_ext |
6887 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6888 | fi |
81ecdfbb RW |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6890 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6891 | ac_res=$ac_cv_search_zlibVersion | |
6892 | if test "$ac_res" != no; then : | |
6893 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6894 | for ac_header in zlib.h | |
6895 | do : | |
6896 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6897 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6898 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6899 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6900 | _ACEOF |
6901 | ||
1b77ea50 | 6902 | fi |
81ecdfbb | 6903 | |
0639a6f6 | 6904 | done |
1b77ea50 | 6905 | |
81ecdfbb | 6906 | fi |
3d857b98 | 6907 | |
ae2eea65 ILT |
6908 | if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then |
6909 | as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 | |
6910 | fi | |
6911 | fi | |
6912 | ||
6913 | if test "$ac_cv_header_zlib_h" = "yes"; then | |
81ecdfbb RW |
6914 | HAVE_ZLIB_TRUE= |
6915 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6916 | else |
81ecdfbb RW |
6917 | HAVE_ZLIB_TRUE='#' |
6918 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6919 | fi |
81ecdfbb RW |
6920 | |
6921 | ||
6922 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6923 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6924 | ac_have_decl=1 | |
6925 | else | |
6926 | ac_have_decl=0 | |
3d857b98 | 6927 | fi |
3d857b98 DK |
6928 | |
6929 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6930 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6931 | _ACEOF |
81ecdfbb RW |
6932 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6933 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6934 | ac_have_decl=1 | |
3d857b98 | 6935 | else |
81ecdfbb | 6936 | ac_have_decl=0 |
3d857b98 | 6937 | fi |
3d857b98 | 6938 | |
81ecdfbb RW |
6939 | cat >>confdefs.h <<_ACEOF |
6940 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6941 | _ACEOF |
81ecdfbb RW |
6942 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6943 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6944 | ac_have_decl=1 | |
3d857b98 | 6945 | else |
81ecdfbb | 6946 | ac_have_decl=0 |
3d857b98 | 6947 | fi |
3d857b98 DK |
6948 | |
6949 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6950 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6951 | _ACEOF |
81ecdfbb RW |
6952 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6953 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6954 | ac_have_decl=1 | |
3d857b98 | 6955 | else |
81ecdfbb | 6956 | ac_have_decl=0 |
3d857b98 | 6957 | fi |
3d857b98 | 6958 | |
81ecdfbb RW |
6959 | cat >>confdefs.h <<_ACEOF |
6960 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6961 | _ACEOF |
81ecdfbb RW |
6962 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6963 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6964 | ac_have_decl=1 | |
3d857b98 | 6965 | else |
81ecdfbb RW |
6966 | ac_have_decl=0 |
6967 | fi | |
3d857b98 | 6968 | |
81ecdfbb RW |
6969 | cat >>confdefs.h <<_ACEOF |
6970 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6971 | _ACEOF | |
6972 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6973 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6974 | ac_have_decl=1 | |
6975 | else | |
6976 | ac_have_decl=0 | |
3d857b98 | 6977 | fi |
81ecdfbb RW |
6978 | |
6979 | cat >>confdefs.h <<_ACEOF | |
6980 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6981 | _ACEOF | |
6982 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6983 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6984 | ac_have_decl=1 | |
6985 | else | |
6986 | ac_have_decl=0 | |
3d857b98 | 6987 | fi |
3d857b98 DK |
6988 | |
6989 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6990 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6991 | _ACEOF |
6992 | ||
6993 | ||
81ecdfbb RW |
6994 | ac_ext=cpp |
6995 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6999 | |
7000 | ||
81ecdfbb RW |
7001 | |
7002 | ac_ext=cpp | |
7003 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
7008 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
7009 | if test -z "$CXXCPP"; then | |
7010 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
7011 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 7012 | else |
81ecdfbb RW |
7013 | # Double quotes because CXXCPP needs to be expanded |
7014 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7015 | do | |
7016 | ac_preproc_ok=false | |
7017 | for ac_cxx_preproc_warn_flag in '' yes | |
7018 | do | |
7019 | # Use a header file that comes with gcc, so configuring glibc | |
7020 | # with a fresh cross-compiler works. | |
7021 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7022 | # <limits.h> exists even on freestanding compilers. | |
7023 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7024 | # not just through cpp. "Syntax error" is here to catch this case. | |
7025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7026 | /* end confdefs.h. */ |
81ecdfbb RW |
7027 | #ifdef __STDC__ |
7028 | # include <limits.h> | |
7029 | #else | |
7030 | # include <assert.h> | |
3d857b98 | 7031 | #endif |
81ecdfbb | 7032 | Syntax error |
3d857b98 | 7033 | _ACEOF |
81ecdfbb | 7034 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7035 | |
81ecdfbb RW |
7036 | else |
7037 | # Broken: fails on valid input. | |
7038 | continue | |
3d857b98 | 7039 | fi |
81ecdfbb | 7040 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7041 | |
81ecdfbb RW |
7042 | # OK, works on sane cases. Now check whether nonexistent headers |
7043 | # can be detected and how. | |
7044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7045 | /* end confdefs.h. */ | |
7046 | #include <ac_nonexistent.h> | |
3d857b98 | 7047 | _ACEOF |
81ecdfbb RW |
7048 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7049 | # Broken: success on invalid input. | |
7050 | continue | |
3d857b98 | 7051 | else |
81ecdfbb RW |
7052 | # Passes both tests. |
7053 | ac_preproc_ok=: | |
7054 | break | |
7055 | fi | |
7056 | rm -f conftest.err conftest.$ac_ext | |
7057 | ||
7058 | done | |
7059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7060 | rm -f conftest.err conftest.$ac_ext | |
7061 | if $ac_preproc_ok; then : | |
7062 | break | |
7063 | fi | |
3d857b98 | 7064 | |
81ecdfbb RW |
7065 | done |
7066 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
7067 | |
7068 | fi | |
81ecdfbb | 7069 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 7070 | else |
81ecdfbb RW |
7071 | ac_cv_prog_CXXCPP=$CXXCPP |
7072 | fi | |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
7074 | $as_echo "$CXXCPP" >&6; } | |
7075 | ac_preproc_ok=false | |
7076 | for ac_cxx_preproc_warn_flag in '' yes | |
7077 | do | |
7078 | # Use a header file that comes with gcc, so configuring glibc | |
7079 | # with a fresh cross-compiler works. | |
7080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7081 | # <limits.h> exists even on freestanding compilers. | |
7082 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7083 | # not just through cpp. "Syntax error" is here to catch this case. | |
7084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7085 | /* end confdefs.h. */ |
81ecdfbb RW |
7086 | #ifdef __STDC__ |
7087 | # include <limits.h> | |
7088 | #else | |
7089 | # include <assert.h> | |
3d857b98 | 7090 | #endif |
81ecdfbb | 7091 | Syntax error |
3d857b98 | 7092 | _ACEOF |
81ecdfbb | 7093 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7094 | |
81ecdfbb RW |
7095 | else |
7096 | # Broken: fails on valid input. | |
7097 | continue | |
3d857b98 | 7098 | fi |
81ecdfbb | 7099 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7100 | |
81ecdfbb RW |
7101 | # OK, works on sane cases. Now check whether nonexistent headers |
7102 | # can be detected and how. | |
7103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7104 | /* end confdefs.h. */ | |
7105 | #include <ac_nonexistent.h> | |
3d857b98 | 7106 | _ACEOF |
81ecdfbb RW |
7107 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7108 | # Broken: success on invalid input. | |
7109 | continue | |
7110 | else | |
7111 | # Passes both tests. | |
7112 | ac_preproc_ok=: | |
7113 | break | |
7114 | fi | |
7115 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 7116 | |
81ecdfbb RW |
7117 | done |
7118 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7119 | rm -f conftest.err conftest.$ac_ext | |
7120 | if $ac_preproc_ok; then : | |
3d857b98 DK |
7121 | |
7122 | else | |
81ecdfbb RW |
7123 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7124 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7125 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
7126 | See \`config.log' for more details." "$LINENO" 5; } | |
7127 | fi | |
7128 | ||
7129 | ac_ext=cpp | |
7130 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7131 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7132 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7133 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7134 | ||
7135 | ||
8356f2d0 CC |
7136 | for ac_header in unordered_set unordered_map |
7137 | do : | |
7138 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7139 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7140 | eval as_val=\$$as_ac_Header | |
7141 | if test "x$as_val" = x""yes; then : | |
7142 | cat >>confdefs.h <<_ACEOF | |
7143 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7144 | _ACEOF | |
7145 | ||
7146 | fi | |
7147 | ||
7148 | done | |
7149 | ||
81ecdfbb RW |
7150 | for ac_header in tr1/unordered_set tr1/unordered_map |
7151 | do : | |
7152 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7153 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7154 | eval as_val=\$$as_ac_Header | |
7155 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7156 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7157 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
7158 | _ACEOF |
7159 | ||
3d857b98 | 7160 | fi |
3d857b98 | 7161 | |
81ecdfbb RW |
7162 | done |
7163 | ||
7164 | for ac_header in ext/hash_map ext/hash_set | |
7165 | do : | |
7166 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7167 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7168 | eval as_val=\$$as_ac_Header | |
7169 | if test "x$as_val" = x""yes; then : | |
7170 | cat >>confdefs.h <<_ACEOF | |
7171 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7172 | _ACEOF | |
3d857b98 | 7173 | |
3d857b98 | 7174 | fi |
3d857b98 | 7175 | |
81ecdfbb RW |
7176 | done |
7177 | ||
7178 | for ac_header in byteswap.h | |
7179 | do : | |
7180 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
7181 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
7182 | cat >>confdefs.h <<_ACEOF | |
7183 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
7184 | _ACEOF |
7185 | ||
81ecdfbb | 7186 | fi |
3d857b98 | 7187 | |
81ecdfbb RW |
7188 | done |
7189 | ||
0bf402d5 ILT |
7190 | |
7191 | for ac_header in windows.h | |
7192 | do : | |
7193 | ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
7194 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
7195 | cat >>confdefs.h <<_ACEOF | |
7196 | #define HAVE_WINDOWS_H 1 | |
7197 | _ACEOF | |
7198 | ||
7199 | fi | |
7200 | ||
7201 | done | |
7202 | ||
7203 | for ac_header in dlfcn.h | |
7204 | do : | |
7205 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
7206 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7207 | cat >>confdefs.h <<_ACEOF | |
7208 | #define HAVE_DLFCN_H 1 | |
7209 | _ACEOF | |
6632e8cc | 7210 | |
0bf402d5 ILT |
7211 | fi |
7212 | ||
7213 | done | |
7214 | ||
6632e8cc CC |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
7216 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
7217 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7218 | $as_echo_n "(cached) " >&6 | |
7219 | else | |
7220 | ac_func_search_save_LIBS=$LIBS | |
7221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7222 | /* end confdefs.h. */ | |
7223 | ||
7224 | /* Override any GCC internal prototype to avoid an error. | |
7225 | Use char because int might match the return type of a GCC | |
7226 | builtin and then its argument prototype would still apply. */ | |
7227 | #ifdef __cplusplus | |
7228 | extern "C" | |
7229 | #endif | |
7230 | char dlopen (); | |
7231 | int | |
7232 | main () | |
7233 | { | |
7234 | return dlopen (); | |
7235 | ; | |
7236 | return 0; | |
7237 | } | |
7238 | _ACEOF | |
7239 | for ac_lib in '' dl dld; do | |
7240 | if test -z "$ac_lib"; then | |
7241 | ac_res="none required" | |
7242 | else | |
7243 | ac_res=-l$ac_lib | |
7244 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7245 | fi | |
7246 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7247 | ac_cv_search_dlopen=$ac_res | |
7248 | fi | |
7249 | rm -f core conftest.err conftest.$ac_objext \ | |
7250 | conftest$ac_exeext | |
7251 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7252 | break | |
7253 | fi | |
7254 | done | |
7255 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7256 | ||
7257 | else | |
7258 | ac_cv_search_dlopen=no | |
7259 | fi | |
7260 | rm conftest.$ac_ext | |
7261 | LIBS=$ac_func_search_save_LIBS | |
7262 | fi | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
7264 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
7265 | ac_res=$ac_cv_search_dlopen | |
7266 | if test "$ac_res" != no; then : | |
7267 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7268 | ||
7269 | fi | |
7270 | ||
7271 | case "$ac_cv_search_dlopen" in | |
7272 | no*) DLOPEN_LIBS="";; | |
7273 | *) DLOPEN_LIBS="$ac_cv_search_dlopen";; | |
7274 | esac | |
0bf402d5 ILT |
7275 | |
7276 | ||
7c0640fa | 7277 | for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |
81ecdfbb RW |
7278 | do : |
7279 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7280 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7281 | eval as_val=\$$as_ac_var | |
7282 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7283 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7284 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
7285 | _ACEOF |
7286 | ||
3d857b98 | 7287 | fi |
81ecdfbb RW |
7288 | done |
7289 | ||
7290 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
7291 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
7292 | ac_have_decl=1 | |
3d857b98 | 7293 | else |
81ecdfbb RW |
7294 | ac_have_decl=0 |
7295 | fi | |
3d857b98 | 7296 | |
81ecdfbb RW |
7297 | cat >>confdefs.h <<_ACEOF |
7298 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 7299 | _ACEOF |
81ecdfbb RW |
7300 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
7301 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
7302 | ac_have_decl=1 | |
3d857b98 | 7303 | else |
81ecdfbb | 7304 | ac_have_decl=0 |
3d857b98 | 7305 | fi |
3d857b98 DK |
7306 | |
7307 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7308 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 7309 | _ACEOF |
81ecdfbb RW |
7310 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
7311 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
7312 | ac_have_decl=1 | |
3d857b98 | 7313 | else |
81ecdfbb | 7314 | ac_have_decl=0 |
3d857b98 | 7315 | fi |
3d857b98 | 7316 | |
81ecdfbb RW |
7317 | cat >>confdefs.h <<_ACEOF |
7318 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 7319 | _ACEOF |
81ecdfbb RW |
7320 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
7321 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
7322 | ac_have_decl=1 | |
3d857b98 | 7323 | else |
81ecdfbb | 7324 | ac_have_decl=0 |
3d857b98 | 7325 | fi |
3d857b98 DK |
7326 | |
7327 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7328 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 7329 | _ACEOF |
81ecdfbb RW |
7330 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7331 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7332 | ac_have_decl=1 | |
3d857b98 | 7333 | else |
81ecdfbb | 7334 | ac_have_decl=0 |
3d857b98 | 7335 | fi |
3d857b98 | 7336 | |
81ecdfbb RW |
7337 | cat >>confdefs.h <<_ACEOF |
7338 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 7339 | _ACEOF |
81ecdfbb RW |
7340 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
7341 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7342 | ac_have_decl=1 | |
3d857b98 | 7343 | else |
81ecdfbb | 7344 | ac_have_decl=0 |
3d857b98 | 7345 | fi |
3d857b98 DK |
7346 | |
7347 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7348 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 7349 | _ACEOF |
81ecdfbb RW |
7350 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
7351 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7352 | ac_have_decl=1 | |
3d857b98 | 7353 | else |
81ecdfbb RW |
7354 | ac_have_decl=0 |
7355 | fi | |
3d857b98 | 7356 | |
81ecdfbb RW |
7357 | cat >>confdefs.h <<_ACEOF |
7358 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
7359 | _ACEOF | |
7360 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
7361 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
7362 | ac_have_decl=1 | |
7363 | else | |
7364 | ac_have_decl=0 | |
7365 | fi | |
3d857b98 | 7366 | |
81ecdfbb RW |
7367 | cat >>confdefs.h <<_ACEOF |
7368 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
7369 | _ACEOF | |
7370 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
7371 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
7372 | ac_have_decl=1 | |
7373 | else | |
7374 | ac_have_decl=0 | |
3d857b98 DK |
7375 | fi |
7376 | ||
81ecdfbb RW |
7377 | cat >>confdefs.h <<_ACEOF |
7378 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
7379 | _ACEOF | |
3d857b98 | 7380 | |
e44fcf3b | 7381 | |
40fde488 CD |
7382 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
7383 | # at link time with some versions of GCC. | |
81ecdfbb RW |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
7385 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
7386 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
7387 | $as_echo_n "(cached) " >&6 | |
40fde488 | 7388 | else |
81ecdfbb | 7389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
7390 | /* end confdefs.h. */ |
7391 | ||
7392 | #include <tr1/unordered_map> | |
7393 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
7394 | ||
7395 | int | |
7396 | main () | |
7397 | { | |
7398 | ||
7399 | ; | |
7400 | return 0; | |
7401 | } | |
7402 | _ACEOF | |
81ecdfbb | 7403 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7404 | gold_cv_unordered_map_rehash=yes |
7405 | else | |
81ecdfbb | 7406 | gold_cv_unordered_map_rehash=no |
40fde488 | 7407 | fi |
81ecdfbb RW |
7408 | rm -f core conftest.err conftest.$ac_objext \ |
7409 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7410 | fi |
81ecdfbb RW |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7412 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7413 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7414 | ||
81ecdfbb | 7415 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7416 | |
7417 | fi | |
7418 | ||
81c82a68 ILT |
7419 | # Use of tr1/unordered_map with off_t as a key is not supported on GCC |
7420 | # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type. | |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5 | |
7422 | $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; } | |
7423 | if test "${gold_cv_hash_off_t+set}" = set; then : | |
7424 | $as_echo_n "(cached) " >&6 | |
7425 | else | |
7426 | CXXFLAGS_hold=$CXXFLAGS | |
7427 | CXXFLAGS="$CXXFLAGS $LFS_CFLAGS" | |
7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7429 | /* end confdefs.h. */ | |
7430 | ||
7431 | #include <sys/types.h> | |
7432 | #include <tr1/unordered_map> | |
7433 | std::tr1::hash<off_t> h; | |
7434 | ||
7435 | _ACEOF | |
7436 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7437 | gold_cv_hash_off_t=yes | |
7438 | else | |
7439 | gold_cv_hash_off_t=no | |
7440 | fi | |
7441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26e4ef59 | 7442 | CXXFLAGS=$CXXFLAGS_hold |
81c82a68 ILT |
7443 | fi |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5 | |
7445 | $as_echo "$gold_cv_hash_off_t" >&6; } | |
7446 | if test "$gold_cv_hash_off_t" = "yes"; then | |
7447 | ||
7448 | $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h | |
7449 | ||
7450 | fi | |
7451 | ||
04bf7072 ILT |
7452 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7453 | # function. Check for that. This is gcc bug 35546. This test can | |
7454 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7456 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7457 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7458 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7459 | else |
81ecdfbb RW |
7460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7461 | /* end confdefs.h. */ | |
04bf7072 ILT |
7462 | |
7463 | template<typename T> extern void foo(const char*, ...) | |
7464 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7465 | template<typename T> void foo(const char* format, ...) {} | |
7466 | void bar() { foo<int>("%s\n", "foo"); } | |
7467 | ||
7468 | _ACEOF | |
81ecdfbb | 7469 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7470 | gold_cv_template_attribute=yes |
7471 | else | |
81ecdfbb | 7472 | gold_cv_template_attribute=no |
04bf7072 | 7473 | fi |
81ecdfbb | 7474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7475 | fi |
81ecdfbb RW |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7477 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7478 | if test "$gold_cv_template_attribute" = "yes"; then |
7479 | ||
81ecdfbb | 7480 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7481 | |
7482 | fi | |
7483 | ||
5d329b7d ILT |
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7485 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7486 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7487 | $as_echo_n "(cached) " >&6 | |
7488 | else | |
7489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7490 | /* end confdefs.h. */ | |
7491 | ||
7492 | #include <sys/stat.h> | |
7493 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7494 | ||
7495 | int | |
7496 | main () | |
7497 | { | |
7498 | ||
7499 | ; | |
7500 | return 0; | |
7501 | } | |
7502 | _ACEOF | |
7503 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7504 | gold_cv_stat_st_mtim=yes | |
7505 | else | |
7506 | gold_cv_stat_st_mtim=no | |
7507 | fi | |
7508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7509 | fi | |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7511 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7512 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7513 | ||
7514 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7515 | ||
7516 | fi | |
7517 | ||
f1415016 | 7518 | save_CXXFLAGS="$CXXFLAGS" |
13323c49 | 7519 | CXXFLAGS="$CXXFLAGS -Werror -gpubnames" |
f1415016 CC |
7520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7521 | /* end confdefs.h. */ | |
7522 | int i; | |
7523 | _ACEOF | |
7524 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7525 | have_pubnames=yes | |
7526 | else | |
7527 | have_pubnames=no | |
7528 | fi | |
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7530 | CXXFLAGS="$save_CXXFLAGS" | |
7531 | if test "$have_pubnames" = "yes"; then | |
7532 | HAVE_PUBNAMES_TRUE= | |
7533 | HAVE_PUBNAMES_FALSE='#' | |
7534 | else | |
7535 | HAVE_PUBNAMES_TRUE='#' | |
7536 | HAVE_PUBNAMES_FALSE= | |
7537 | fi | |
7538 | ||
7539 | ||
54dc6425 ILT |
7540 | ac_ext=c |
7541 | ac_cpp='$CPP $CPPFLAGS' | |
7542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7545 | ||
7546 | ||
58797674 RM |
7547 | for ac_header in locale.h |
7548 | do : | |
7549 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
7550 | if test "x$ac_cv_header_locale_h" = x""yes; then : | |
7551 | cat >>confdefs.h <<_ACEOF | |
7552 | #define HAVE_LOCALE_H 1 | |
7553 | _ACEOF | |
7554 | ||
7555 | fi | |
7556 | ||
7557 | done | |
7558 | ||
44350750 NC |
7559 | for ac_func in setlocale |
7560 | do : | |
7561 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | |
7562 | if test "x$ac_cv_func_setlocale" = x""yes; then : | |
7563 | cat >>confdefs.h <<_ACEOF | |
7564 | #define HAVE_SETLOCALE 1 | |
7565 | _ACEOF | |
7566 | ||
7567 | fi | |
7568 | done | |
7569 | ||
7570 | ||
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
7572 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
7573 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
7574 | $as_echo_n "(cached) " >&6 | |
7575 | else | |
7576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7577 | /* end confdefs.h. */ | |
7578 | #include <locale.h> | |
7579 | int | |
7580 | main () | |
7581 | { | |
7582 | return LC_MESSAGES | |
7583 | ; | |
7584 | return 0; | |
7585 | } | |
7586 | _ACEOF | |
7587 | if ac_fn_c_try_link "$LINENO"; then : | |
7588 | am_cv_val_LC_MESSAGES=yes | |
7589 | else | |
7590 | am_cv_val_LC_MESSAGES=no | |
7591 | fi | |
7592 | rm -f core conftest.err conftest.$ac_objext \ | |
7593 | conftest$ac_exeext conftest.$ac_ext | |
7594 | fi | |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
7596 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
7597 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7598 | ||
7599 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
7600 | ||
7601 | fi | |
7602 | ||
7603 | ||
81ecdfbb RW |
7604 | |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7606 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7607 | # Check whether --enable-maintainer-mode was given. | |
7608 | if test "${enable_maintainer_mode+set}" = set; then : | |
7609 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7610 | else |
7611 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7612 | fi |
bae7f79e | 7613 | |
81ecdfbb RW |
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7615 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7616 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7617 | MAINTAINER_MODE_TRUE= |
7618 | MAINTAINER_MODE_FALSE='#' | |
7619 | else | |
7620 | MAINTAINER_MODE_TRUE='#' | |
7621 | MAINTAINER_MODE_FALSE= | |
7622 | fi | |
7623 | ||
7624 | MAINT=$MAINTAINER_MODE_TRUE | |
7625 | ||
7626 | ||
7627 | ||
81ecdfbb RW |
7628 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7629 | ||
bae7f79e ILT |
7630 | cat >confcache <<\_ACEOF |
7631 | # This file is a shell script that caches the results of configure | |
7632 | # tests run on this system so they can be shared between configure | |
7633 | # scripts and configure runs, see configure's option --config-cache. | |
7634 | # It is not useful on other systems. If it contains results you don't | |
7635 | # want to keep, you may remove or edit it. | |
7636 | # | |
7637 | # config.status only pays attention to the cache file if you give it | |
7638 | # the --recheck option to rerun configure. | |
7639 | # | |
7640 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7641 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7642 | # following values. | |
7643 | ||
7644 | _ACEOF | |
7645 | ||
7646 | # The following way of writing the cache mishandles newlines in values, | |
7647 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7648 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7649 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7650 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7651 | ( |
7652 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7653 | eval ac_val=\$$ac_var | |
7654 | case $ac_val in #( | |
7655 | *${as_nl}*) | |
7656 | case $ac_var in #( | |
7657 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7658 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7659 | esac | |
7660 | case $ac_var in #( | |
7661 | _ | IFS | as_nl) ;; #( | |
7662 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7663 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7664 | esac ;; | |
7665 | esac | |
7666 | done | |
7667 | ||
bae7f79e | 7668 | (set) 2>&1 | |
81ecdfbb RW |
7669 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7670 | *${as_nl}ac_space=\ *) | |
7671 | # `set' does not quote correctly, so add quotes: double-quote | |
7672 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7673 | sed -n \ |
7674 | "s/'/'\\\\''/g; | |
7675 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7676 | ;; #( |
bae7f79e ILT |
7677 | *) |
7678 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7679 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7680 | ;; |
81ecdfbb RW |
7681 | esac | |
7682 | sort | |
7683 | ) | | |
bae7f79e | 7684 | sed ' |
81ecdfbb | 7685 | /^ac_cv_env_/b end |
bae7f79e | 7686 | t clear |
81ecdfbb | 7687 | :clear |
bae7f79e ILT |
7688 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7689 | t end | |
81ecdfbb RW |
7690 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7691 | :end' >>confcache | |
7692 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7693 | if test -w "$cache_file"; then | |
7694 | test "x$cache_file" != "x/dev/null" && | |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7696 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7697 | cat confcache >$cache_file |
7698 | else | |
81ecdfbb RW |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7700 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7701 | fi |
7702 | fi | |
7703 | rm -f confcache | |
7704 | ||
7705 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7706 | # Let make expand exec_prefix. | |
7707 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7708 | ||
bae7f79e ILT |
7709 | DEFS=-DHAVE_CONFIG_H |
7710 | ||
7711 | ac_libobjs= | |
7712 | ac_ltlibobjs= | |
7713 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7714 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7715 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7716 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7717 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7718 | # will be set to the directory where LIBOBJS objects are built. | |
7719 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7720 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7721 | done |
7722 | LIBOBJS=$ac_libobjs | |
7723 | ||
7724 | LTLIBOBJS=$ac_ltlibobjs | |
7725 | ||
7726 | ||
81ecdfbb RW |
7727 | if test -n "$EXEEXT"; then |
7728 | am__EXEEXT_TRUE= | |
7729 | am__EXEEXT_FALSE='#' | |
7730 | else | |
7731 | am__EXEEXT_TRUE='#' | |
7732 | am__EXEEXT_FALSE= | |
7733 | fi | |
7734 | ||
fe9a4c12 | 7735 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7736 | as_fn_error "conditional \"THREADS\" was never defined. |
7737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7738 | fi |
89fc3421 | 7739 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7740 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7742 | fi |
364c7fa5 ILT |
7743 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7744 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7746 | fi | |
7747 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7748 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7750 | fi | |
7751 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7752 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7754 | fi | |
7755 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7756 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7758 | fi | |
7759 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7760 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7761 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7762 | fi | |
0a6f1bf2 AM |
7763 | if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then |
7764 | as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined. | |
7765 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7766 | fi | |
bae7f79e | 7767 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7768 | as_fn_error "conditional \"AMDEP\" was never defined. |
7769 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7770 | fi |
7771 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7772 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7773 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7774 | fi |
7775 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7776 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7777 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7778 | fi |
81ecdfbb | 7779 | |
537b5f51 | 7780 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7781 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7783 | fi |
7784 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7785 | as_fn_error "conditional \"GCC\" was never defined. |
7786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7787 | fi |
eb373049 ILT |
7788 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7789 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
328c7c2f ILT |
7791 | fi |
7792 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then | |
7793 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. | |
7794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
eb373049 | 7795 | fi |
63402fe4 | 7796 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7797 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7799 | fi |
8a5e3e08 | 7800 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7801 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7803 | fi |
6eee141f | 7804 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7805 | as_fn_error "conditional \"TLS\" was never defined. |
7806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7807 | fi |
097ec620 | 7808 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7809 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7811 | fi |
155a0dd7 | 7812 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7813 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7815 | fi |
c2b45e22 | 7816 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7817 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7819 | fi |
7820 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7821 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7823 | fi |
7223e9ca ILT |
7824 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7825 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7826 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7827 | fi | |
ebb300b2 CC |
7828 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
7829 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. | |
7830 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7831 | fi | |
7fcd0256 | 7832 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7833 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7835 | fi |
f1415016 CC |
7836 | if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then |
7837 | as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined. | |
7838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7839 | fi | |
bae7f79e | 7840 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7841 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7843 | fi |
7844 | ||
7845 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7846 | ac_write_fail=0 |
bae7f79e ILT |
7847 | ac_clean_files_save=$ac_clean_files |
7848 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7850 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7851 | as_write_fail=0 | |
7852 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7853 | #! $SHELL |
7854 | # Generated by $as_me. | |
7855 | # Run this file to recreate the current configuration. | |
7856 | # Compiler output produced by configure, useful for debugging | |
7857 | # configure, is in config.log if it exists. | |
7858 | ||
7859 | debug=false | |
7860 | ac_cs_recheck=false | |
7861 | ac_cs_silent=false | |
bae7f79e | 7862 | |
81ecdfbb RW |
7863 | SHELL=\${CONFIG_SHELL-$SHELL} |
7864 | export SHELL | |
7865 | _ASEOF | |
7866 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7867 | ## -------------------- ## | |
7868 | ## M4sh Initialization. ## | |
7869 | ## -------------------- ## | |
bae7f79e | 7870 | |
81ecdfbb RW |
7871 | # Be more Bourne compatible |
7872 | DUALCASE=1; export DUALCASE # for MKS sh | |
7873 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7874 | emulate sh |
7875 | NULLCMD=: | |
81ecdfbb | 7876 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7877 | # is contrary to our usage. Disable this feature. |
7878 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7879 | setopt NO_GLOB_SUBST |
7880 | else | |
7881 | case `(set -o) 2>/dev/null` in #( | |
7882 | *posix*) : | |
7883 | set -o posix ;; #( | |
7884 | *) : | |
7885 | ;; | |
7886 | esac | |
bae7f79e | 7887 | fi |
bae7f79e | 7888 | |
81ecdfbb RW |
7889 | |
7890 | as_nl=' | |
7891 | ' | |
7892 | export as_nl | |
7893 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7894 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7895 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7896 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7897 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7898 | # but without wasting forks for bash or zsh. | |
7899 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7900 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7901 | as_echo='print -r --' | |
7902 | as_echo_n='print -rn --' | |
7903 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7904 | as_echo='printf %s\n' | |
7905 | as_echo_n='printf %s' | |
7906 | else | |
7907 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7908 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7909 | as_echo_n='/usr/ucb/echo -n' | |
7910 | else | |
7911 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7912 | as_echo_n_body='eval | |
7913 | arg=$1; | |
7914 | case $arg in #( | |
7915 | *"$as_nl"*) | |
7916 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7917 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7918 | esac; | |
7919 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7920 | ' | |
7921 | export as_echo_n_body | |
7922 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7923 | fi | |
7924 | export as_echo_body | |
7925 | as_echo='sh -c $as_echo_body as_echo' | |
7926 | fi | |
7927 | ||
7928 | # The user is always right. | |
7929 | if test "${PATH_SEPARATOR+set}" != set; then | |
7930 | PATH_SEPARATOR=: | |
7931 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7932 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7933 | PATH_SEPARATOR=';' | |
7934 | } | |
bae7f79e ILT |
7935 | fi |
7936 | ||
7937 | ||
81ecdfbb RW |
7938 | # IFS |
7939 | # We need space, tab and new line, in precisely that order. Quoting is | |
7940 | # there to prevent editors from complaining about space-tab. | |
7941 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7942 | # splitting by setting IFS to empty value.) | |
7943 | IFS=" "" $as_nl" | |
7944 | ||
7945 | # Find who we are. Look in the path if we contain no directory separator. | |
7946 | case $0 in #(( | |
7947 | *[\\/]* ) as_myself=$0 ;; | |
7948 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7949 | for as_dir in $PATH | |
7950 | do | |
7951 | IFS=$as_save_IFS | |
7952 | test -z "$as_dir" && as_dir=. | |
7953 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7954 | done | |
7955 | IFS=$as_save_IFS | |
7956 | ||
7957 | ;; | |
7958 | esac | |
7959 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7960 | # in which case we are not to be found in the path. | |
7961 | if test "x$as_myself" = x; then | |
7962 | as_myself=$0 | |
7963 | fi | |
7964 | if test ! -f "$as_myself"; then | |
7965 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7966 | exit 1 | |
7967 | fi | |
7968 | ||
7969 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7970 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7971 | # suppresses any "Segmentation fault" message there. '((' could | |
7972 | # trigger a bug in pdksh 5.2.14. | |
7973 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7974 | do eval test x\${$as_var+set} = xset \ | |
7975 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7976 | done | |
bae7f79e ILT |
7977 | PS1='$ ' |
7978 | PS2='> ' | |
7979 | PS4='+ ' | |
7980 | ||
7981 | # NLS nuisances. | |
81ecdfbb RW |
7982 | LC_ALL=C |
7983 | export LC_ALL | |
7984 | LANGUAGE=C | |
7985 | export LANGUAGE | |
7986 | ||
7987 | # CDPATH. | |
7988 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7989 | ||
7990 | ||
7991 | # as_fn_error ERROR [LINENO LOG_FD] | |
7992 | # --------------------------------- | |
7993 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7994 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7995 | # script with status $?, using 1 if that was 0. | |
7996 | as_fn_error () | |
7997 | { | |
7998 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7999 | if test "$3"; then | |
8000 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8001 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 8002 | fi |
81ecdfbb RW |
8003 | $as_echo "$as_me: error: $1" >&2 |
8004 | as_fn_exit $as_status | |
8005 | } # as_fn_error | |
8006 | ||
8007 | ||
8008 | # as_fn_set_status STATUS | |
8009 | # ----------------------- | |
8010 | # Set $? to STATUS, without forking. | |
8011 | as_fn_set_status () | |
8012 | { | |
8013 | return $1 | |
8014 | } # as_fn_set_status | |
bae7f79e | 8015 | |
81ecdfbb RW |
8016 | # as_fn_exit STATUS |
8017 | # ----------------- | |
8018 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8019 | as_fn_exit () | |
8020 | { | |
8021 | set +e | |
8022 | as_fn_set_status $1 | |
8023 | exit $1 | |
8024 | } # as_fn_exit | |
8025 | ||
8026 | # as_fn_unset VAR | |
8027 | # --------------- | |
8028 | # Portably unset VAR. | |
8029 | as_fn_unset () | |
8030 | { | |
8031 | { eval $1=; unset $1;} | |
8032 | } | |
8033 | as_unset=as_fn_unset | |
8034 | # as_fn_append VAR VALUE | |
8035 | # ---------------------- | |
8036 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8037 | # advantage of any shell optimizations that allow amortized linear growth over | |
8038 | # repeated appends, instead of the typical quadratic growth present in naive | |
8039 | # implementations. | |
8040 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8041 | eval 'as_fn_append () | |
8042 | { | |
8043 | eval $1+=\$2 | |
8044 | }' | |
8045 | else | |
8046 | as_fn_append () | |
8047 | { | |
8048 | eval $1=\$$1\$2 | |
8049 | } | |
8050 | fi # as_fn_append | |
8051 | ||
8052 | # as_fn_arith ARG... | |
8053 | # ------------------ | |
8054 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8055 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8056 | # must be portable across $(()) and expr. | |
8057 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8058 | eval 'as_fn_arith () | |
8059 | { | |
8060 | as_val=$(( $* )) | |
8061 | }' | |
8062 | else | |
8063 | as_fn_arith () | |
8064 | { | |
8065 | as_val=`expr "$@" || test $? -eq 1` | |
8066 | } | |
8067 | fi # as_fn_arith | |
8068 | ||
8069 | ||
8070 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
8071 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
8072 | as_expr=expr |
8073 | else | |
8074 | as_expr=false | |
8075 | fi | |
8076 | ||
81ecdfbb | 8077 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
8078 | as_basename=basename |
8079 | else | |
8080 | as_basename=false | |
8081 | fi | |
8082 | ||
81ecdfbb RW |
8083 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8084 | as_dirname=dirname | |
8085 | else | |
8086 | as_dirname=false | |
8087 | fi | |
bae7f79e | 8088 | |
81ecdfbb | 8089 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
8090 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8091 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8092 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8093 | $as_echo X/"$0" | | |
8094 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8095 | s//\1/ | |
8096 | q | |
8097 | } | |
8098 | /^X\/\(\/\/\)$/{ | |
8099 | s//\1/ | |
8100 | q | |
8101 | } | |
8102 | /^X\/\(\/\).*/{ | |
8103 | s//\1/ | |
8104 | q | |
8105 | } | |
8106 | s/.*/./; q'` | |
bae7f79e | 8107 | |
bae7f79e ILT |
8108 | # Avoid depending upon Character Ranges. |
8109 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8110 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8111 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8112 | as_cr_digits='0123456789' | |
8113 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8114 | ||
81ecdfbb RW |
8115 | ECHO_C= ECHO_N= ECHO_T= |
8116 | case `echo -n x` in #((((( | |
8117 | -n*) | |
8118 | case `echo 'xy\c'` in | |
8119 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8120 | xy) ECHO_C='\c';; | |
8121 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8122 | ECHO_T=' ';; | |
8123 | esac;; | |
8124 | *) | |
8125 | ECHO_N='-n';; | |
bae7f79e ILT |
8126 | esac |
8127 | ||
81ecdfbb RW |
8128 | rm -f conf$$ conf$$.exe conf$$.file |
8129 | if test -d conf$$.dir; then | |
8130 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 8131 | else |
81ecdfbb RW |
8132 | rm -f conf$$.dir |
8133 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 8134 | fi |
81ecdfbb RW |
8135 | if (echo >conf$$.file) 2>/dev/null; then |
8136 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 8137 | as_ln_s='ln -s' |
81ecdfbb RW |
8138 | # ... but there are two gotchas: |
8139 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8140 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8141 | # In both cases, we have to default to `cp -p'. | |
8142 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8143 | as_ln_s='cp -p' | |
8144 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8145 | as_ln_s=ln | |
8146 | else | |
8147 | as_ln_s='cp -p' | |
bae7f79e | 8148 | fi |
bae7f79e ILT |
8149 | else |
8150 | as_ln_s='cp -p' | |
8151 | fi | |
81ecdfbb RW |
8152 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8153 | rmdir conf$$.dir 2>/dev/null | |
8154 | ||
8155 | ||
8156 | # as_fn_mkdir_p | |
8157 | # ------------- | |
8158 | # Create "$as_dir" as a directory, including parents if necessary. | |
8159 | as_fn_mkdir_p () | |
8160 | { | |
8161 | ||
8162 | case $as_dir in #( | |
8163 | -*) as_dir=./$as_dir;; | |
8164 | esac | |
8165 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8166 | as_dirs= | |
8167 | while :; do | |
8168 | case $as_dir in #( | |
8169 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8170 | *) as_qdir=$as_dir;; | |
8171 | esac | |
8172 | as_dirs="'$as_qdir' $as_dirs" | |
8173 | as_dir=`$as_dirname -- "$as_dir" || | |
8174 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8175 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8176 | X"$as_dir" : 'X\(//\)$' \| \ | |
8177 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8178 | $as_echo X"$as_dir" | | |
8179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8180 | s//\1/ | |
8181 | q | |
8182 | } | |
8183 | /^X\(\/\/\)[^/].*/{ | |
8184 | s//\1/ | |
8185 | q | |
8186 | } | |
8187 | /^X\(\/\/\)$/{ | |
8188 | s//\1/ | |
8189 | q | |
8190 | } | |
8191 | /^X\(\/\).*/{ | |
8192 | s//\1/ | |
8193 | q | |
8194 | } | |
8195 | s/.*/./; q'` | |
8196 | test -d "$as_dir" && break | |
8197 | done | |
8198 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8199 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
8200 | ||
bae7f79e | 8201 | |
81ecdfbb | 8202 | } # as_fn_mkdir_p |
bae7f79e | 8203 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 8204 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
8205 | else |
8206 | test -d ./-p && rmdir ./-p | |
8207 | as_mkdir_p=false | |
8208 | fi | |
8209 | ||
81ecdfbb RW |
8210 | if test -x / >/dev/null 2>&1; then |
8211 | as_test_x='test -x' | |
8212 | else | |
8213 | if ls -dL / >/dev/null 2>&1; then | |
8214 | as_ls_L_option=L | |
8215 | else | |
8216 | as_ls_L_option= | |
8217 | fi | |
8218 | as_test_x=' | |
8219 | eval sh -c '\'' | |
8220 | if test -d "$1"; then | |
8221 | test -d "$1/."; | |
8222 | else | |
8223 | case $1 in #( | |
8224 | -*)set "./$1";; | |
8225 | esac; | |
8226 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
8227 | ???[sx]*):;;*)false;;esac;fi | |
8228 | '\'' sh | |
8229 | ' | |
8230 | fi | |
8231 | as_executable_p=$as_test_x | |
bae7f79e ILT |
8232 | |
8233 | # Sed expression to map a string onto a valid CPP name. | |
8234 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8235 | ||
8236 | # Sed expression to map a string onto a valid variable name. | |
8237 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8238 | ||
8239 | ||
bae7f79e | 8240 | exec 6>&1 |
81ecdfbb RW |
8241 | ## ----------------------------------- ## |
8242 | ## Main body of $CONFIG_STATUS script. ## | |
8243 | ## ----------------------------------- ## | |
8244 | _ASEOF | |
8245 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 8246 | |
81ecdfbb RW |
8247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8248 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 8249 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8250 | # values after options handling. |
8251 | ac_log=" | |
8486ee48 | 8252 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 8253 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
8254 | |
8255 | CONFIG_FILES = $CONFIG_FILES | |
8256 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8257 | CONFIG_LINKS = $CONFIG_LINKS | |
8258 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8259 | $ $0 $@ | |
8260 | ||
81ecdfbb RW |
8261 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8262 | " | |
8263 | ||
bae7f79e ILT |
8264 | _ACEOF |
8265 | ||
81ecdfbb RW |
8266 | case $ac_config_files in *" |
8267 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8268 | esac | |
bae7f79e | 8269 | |
81ecdfbb RW |
8270 | case $ac_config_headers in *" |
8271 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8272 | esac | |
bae7f79e | 8273 | |
bae7f79e | 8274 | |
81ecdfbb RW |
8275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8276 | # Files that config.status was made for. | |
8277 | config_files="$ac_config_files" | |
8278 | config_headers="$ac_config_headers" | |
8279 | config_commands="$ac_config_commands" | |
bae7f79e | 8280 | |
81ecdfbb | 8281 | _ACEOF |
bae7f79e | 8282 | |
81ecdfbb | 8283 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8284 | ac_cs_usage="\ |
81ecdfbb RW |
8285 | \`$as_me' instantiates files and other configuration actions |
8286 | from templates according to the current configuration. Unless the files | |
8287 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 8288 | |
81ecdfbb | 8289 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
8290 | |
8291 | -h, --help print this help, then exit | |
81ecdfbb RW |
8292 | -V, --version print version number and configuration settings, then exit |
8293 | -q, --quiet, --silent | |
8294 | do not print progress messages | |
bae7f79e ILT |
8295 | -d, --debug don't remove temporary files |
8296 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8297 | --file=FILE[:TEMPLATE] |
8298 | instantiate the configuration file FILE | |
8299 | --header=FILE[:TEMPLATE] | |
8300 | instantiate the configuration header FILE | |
bae7f79e ILT |
8301 | |
8302 | Configuration files: | |
8303 | $config_files | |
8304 | ||
8305 | Configuration headers: | |
8306 | $config_headers | |
8307 | ||
8308 | Configuration commands: | |
8309 | $config_commands | |
8310 | ||
81ecdfbb | 8311 | Report bugs to the package provider." |
bae7f79e | 8312 | |
81ecdfbb RW |
8313 | _ACEOF |
8314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8315 | ac_cs_version="\\ |
8486ee48 | 8316 | gold config.status 0.1 |
81ecdfbb RW |
8317 | configured by $0, generated by GNU Autoconf 2.64, |
8318 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 8319 | |
81ecdfbb | 8320 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
8321 | This config.status script is free software; the Free Software Foundation |
8322 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8323 | |
8324 | ac_pwd='$ac_pwd' | |
8325 | srcdir='$srcdir' | |
8326 | INSTALL='$INSTALL' | |
8327 | MKDIR_P='$MKDIR_P' | |
8328 | AWK='$AWK' | |
8329 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
8330 | _ACEOF |
8331 | ||
81ecdfbb RW |
8332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8333 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
8334 | ac_need_defaults=: |
8335 | while test $# != 0 | |
8336 | do | |
8337 | case $1 in | |
8338 | --*=*) | |
81ecdfbb RW |
8339 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8340 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
8341 | ac_shift=: |
8342 | ;; | |
81ecdfbb | 8343 | *) |
bae7f79e ILT |
8344 | ac_option=$1 |
8345 | ac_optarg=$2 | |
8346 | ac_shift=shift | |
8347 | ;; | |
bae7f79e ILT |
8348 | esac |
8349 | ||
8350 | case $ac_option in | |
8351 | # Handling of the options. | |
bae7f79e ILT |
8352 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8353 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8354 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8355 | $as_echo "$ac_cs_version"; exit ;; | |
8356 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
8357 | debug=: ;; |
8358 | --file | --fil | --fi | --f ) | |
8359 | $ac_shift | |
81ecdfbb RW |
8360 | case $ac_optarg in |
8361 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8362 | esac | |
8363 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
8364 | ac_need_defaults=false;; |
8365 | --header | --heade | --head | --hea ) | |
8366 | $ac_shift | |
81ecdfbb RW |
8367 | case $ac_optarg in |
8368 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8369 | esac | |
8370 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 8371 | ac_need_defaults=false;; |
81ecdfbb RW |
8372 | --he | --h) |
8373 | # Conflict between --help and --header | |
8374 | as_fn_error "ambiguous option: \`$1' | |
8375 | Try \`$0 --help' for more information.";; | |
8376 | --help | --hel | -h ) | |
8377 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
8378 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8379 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8380 | ac_cs_silent=: ;; | |
8381 | ||
8382 | # This is an error. | |
81ecdfbb RW |
8383 | -*) as_fn_error "unrecognized option: \`$1' |
8384 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 8385 | |
81ecdfbb RW |
8386 | *) as_fn_append ac_config_targets " $1" |
8387 | ac_need_defaults=false ;; | |
bae7f79e ILT |
8388 | |
8389 | esac | |
8390 | shift | |
8391 | done | |
8392 | ||
8393 | ac_configure_extra_args= | |
8394 | ||
8395 | if $ac_cs_silent; then | |
8396 | exec 6>/dev/null | |
8397 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8398 | fi | |
8399 | ||
8400 | _ACEOF | |
81ecdfbb | 8401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 8402 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8403 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8404 | shift | |
8405 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8406 | CONFIG_SHELL='$SHELL' | |
8407 | export CONFIG_SHELL | |
8408 | exec "\$@" | |
bae7f79e ILT |
8409 | fi |
8410 | ||
8411 | _ACEOF | |
81ecdfbb RW |
8412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8413 | exec 5>>config.log | |
8414 | { | |
8415 | echo | |
8416 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8417 | ## Running $as_me. ## | |
8418 | _ASBOX | |
8419 | $as_echo "$ac_log" | |
8420 | } >&5 | |
bae7f79e | 8421 | |
81ecdfbb RW |
8422 | _ACEOF |
8423 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8424 | # |
81ecdfbb | 8425 | # INIT-COMMANDS |
bae7f79e | 8426 | # |
bae7f79e ILT |
8427 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8428 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
8429 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8430 | # from automake. | |
8431 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8432 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8433 | LINGUAS="${LINGUAS-%UNSET%}" | |
8434 | ||
8435 | ||
8436 | _ACEOF | |
8437 | ||
81ecdfbb | 8438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8439 | |
81ecdfbb | 8440 | # Handling of arguments. |
bae7f79e ILT |
8441 | for ac_config_target in $ac_config_targets |
8442 | do | |
81ecdfbb RW |
8443 | case $ac_config_target in |
8444 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8445 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8446 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8447 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8448 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
8449 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8450 | ||
8451 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
8452 | esac |
8453 | done | |
8454 | ||
81ecdfbb | 8455 | |
bae7f79e ILT |
8456 | # If the user did not use the arguments to specify the items to instantiate, |
8457 | # then the envvar interface is used. Set only those that are not. | |
8458 | # We use the long form for the default assignment because of an extremely | |
8459 | # bizarre bug on SunOS 4.1.3. | |
8460 | if $ac_need_defaults; then | |
8461 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8462 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8463 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8464 | fi | |
8465 | ||
8466 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8467 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 8468 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8469 | # Hook for its removal unless debugging. |
8470 | # Note that there is a small window in which the directory will not be cleaned: | |
8471 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
8472 | $debug || |
8473 | { | |
81ecdfbb RW |
8474 | tmp= |
8475 | trap 'exit_status=$? | |
8476 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8477 | ' 0 | |
8478 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 8479 | } |
bae7f79e ILT |
8480 | # Create a (secure) tmp directory for tmp files. |
8481 | ||
8482 | { | |
81ecdfbb | 8483 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
8484 | test -n "$tmp" && test -d "$tmp" |
8485 | } || | |
8486 | { | |
81ecdfbb RW |
8487 | tmp=./conf$$-$RANDOM |
8488 | (umask 077 && mkdir "$tmp") | |
8489 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8490 | ||
8491 | # Set up the scripts for CONFIG_FILES section. | |
8492 | # No need to generate them if there are no CONFIG_FILES. | |
8493 | # This happens for instance with `./config.status config.h'. | |
8494 | if test -n "$CONFIG_FILES"; then | |
8495 | ||
8496 | ||
8497 | ac_cr=`echo X | tr X '\015'` | |
8498 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8499 | # But we know of no other shell where ac_cr would be empty at this | |
8500 | # point, so we can use a bashism as a fallback. | |
8501 | if test "x$ac_cr" = x; then | |
8502 | eval ac_cr=\$\'\\r\' | |
8503 | fi | |
8504 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8505 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8506 | ac_cs_awk_cr='\r' | |
8507 | else | |
8508 | ac_cs_awk_cr=$ac_cr | |
8509 | fi | |
8510 | ||
8511 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8512 | _ACEOF | |
8513 | ||
8514 | ||
8515 | { | |
8516 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8517 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8518 | echo "_ACEOF" | |
8519 | } >conf$$subs.sh || | |
8520 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8521 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8522 | ac_delim='%!_!# ' | |
8523 | for ac_last_try in false false false false false :; do | |
8524 | . ./conf$$subs.sh || | |
8525 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8526 | ||
8527 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8528 | if test $ac_delim_n = $ac_delim_num; then | |
8529 | break | |
8530 | elif $ac_last_try; then | |
8531 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8532 | else | |
8533 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8534 | fi | |
8535 | done | |
8536 | rm -f conf$$subs.sh | |
8537 | ||
8538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8539 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8540 | _ACEOF | |
8541 | sed -n ' | |
8542 | h | |
8543 | s/^/S["/; s/!.*/"]=/ | |
8544 | p | |
8545 | g | |
8546 | s/^[^!]*!// | |
8547 | :repl | |
8548 | t repl | |
8549 | s/'"$ac_delim"'$// | |
8550 | t delim | |
8551 | :nl | |
8552 | h | |
8553 | s/\(.\{148\}\).*/\1/ | |
8554 | t more1 | |
8555 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8556 | p | |
8557 | n | |
8558 | b repl | |
8559 | :more1 | |
8560 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8561 | p | |
8562 | g | |
8563 | s/.\{148\}// | |
8564 | t nl | |
8565 | :delim | |
8566 | h | |
8567 | s/\(.\{148\}\).*/\1/ | |
8568 | t more2 | |
8569 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8570 | p | |
8571 | b | |
8572 | :more2 | |
8573 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8574 | p | |
8575 | g | |
8576 | s/.\{148\}// | |
8577 | t delim | |
8578 | ' <conf$$subs.awk | sed ' | |
8579 | /^[^""]/{ | |
8580 | N | |
8581 | s/\n// | |
8582 | } | |
8583 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8584 | rm -f conf$$subs.awk | |
8585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8586 | _ACAWK | |
8587 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8588 | for (key in S) S_is_set[key] = 1 | |
8589 | FS = "\a" | |
8590 | ||
8591 | } | |
bae7f79e | 8592 | { |
81ecdfbb RW |
8593 | line = $ 0 |
8594 | nfields = split(line, field, "@") | |
8595 | substed = 0 | |
8596 | len = length(field[1]) | |
8597 | for (i = 2; i < nfields; i++) { | |
8598 | key = field[i] | |
8599 | keylen = length(key) | |
8600 | if (S_is_set[key]) { | |
8601 | value = S[key] | |
8602 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8603 | len += length(value) + length(field[++i]) | |
8604 | substed = 1 | |
8605 | } else | |
8606 | len += 1 + keylen | |
8607 | } | |
8608 | ||
8609 | print line | |
bae7f79e ILT |
8610 | } |
8611 | ||
81ecdfbb RW |
8612 | _ACAWK |
8613 | _ACEOF | |
8614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8615 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8616 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8617 | else | |
8618 | cat | |
8619 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8620 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8621 | _ACEOF |
8622 | ||
81ecdfbb RW |
8623 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8624 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8625 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8626 | # (actually we leave an empty line to preserve line numbers). | |
8627 | if test "x$srcdir" = x.; then | |
8628 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8629 | s/:*\$(srcdir):*/:/ | |
8630 | s/:*\${srcdir}:*/:/ | |
8631 | s/:*@srcdir@:*/:/ | |
8632 | s/^\([^=]*=[ ]*\):*/\1/ | |
8633 | s/:*$// | |
8634 | s/^[^=]*=[ ]*$// | |
8635 | }' | |
8636 | fi | |
bae7f79e | 8637 | |
81ecdfbb RW |
8638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8639 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8640 | |
81ecdfbb RW |
8641 | # Set up the scripts for CONFIG_HEADERS section. |
8642 | # No need to generate them if there are no CONFIG_HEADERS. | |
8643 | # This happens for instance with `./config.status Makefile'. | |
8644 | if test -n "$CONFIG_HEADERS"; then | |
8645 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8646 | BEGIN { | |
bae7f79e ILT |
8647 | _ACEOF |
8648 | ||
81ecdfbb RW |
8649 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8650 | # here-document in config.status, that substitutes the proper values into | |
8651 | # config.h.in to produce config.h. | |
8652 | ||
8653 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8654 | # handling of long lines. | |
8655 | ac_delim='%!_!# ' | |
8656 | for ac_last_try in false false :; do | |
8657 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8658 | if test -z "$ac_t"; then | |
8659 | break | |
8660 | elif $ac_last_try; then | |
8661 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8662 | else | |
8663 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8664 | fi |
81ecdfbb | 8665 | done |
bae7f79e | 8666 | |
81ecdfbb RW |
8667 | # For the awk script, D is an array of macro values keyed by name, |
8668 | # likewise P contains macro parameters if any. Preserve backslash | |
8669 | # newline sequences. | |
8670 | ||
8671 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8672 | sed -n ' | |
8673 | s/.\{148\}/&'"$ac_delim"'/g | |
8674 | t rset | |
8675 | :rset | |
8676 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8677 | t def | |
8678 | d | |
8679 | :def | |
8680 | s/\\$// | |
8681 | t bsnl | |
8682 | s/["\\]/\\&/g | |
8683 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8684 | D["\1"]=" \3"/p | |
8685 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8686 | d | |
8687 | :bsnl | |
8688 | s/["\\]/\\&/g | |
8689 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8690 | D["\1"]=" \3\\\\\\n"\\/p | |
8691 | t cont | |
8692 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8693 | t cont | |
8694 | d | |
8695 | :cont | |
8696 | n | |
8697 | s/.\{148\}/&'"$ac_delim"'/g | |
8698 | t clear | |
8699 | :clear | |
8700 | s/\\$// | |
8701 | t bsnlc | |
8702 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8703 | d | |
8704 | :bsnlc | |
8705 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8706 | b cont | |
8707 | ' <confdefs.h | sed ' | |
8708 | s/'"$ac_delim"'/"\\\ | |
8709 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8710 | ||
8711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8712 | for (key in D) D_is_set[key] = 1 | |
8713 | FS = "\a" | |
8714 | } | |
8715 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8716 | line = \$ 0 | |
8717 | split(line, arg, " ") | |
8718 | if (arg[1] == "#") { | |
8719 | defundef = arg[2] | |
8720 | mac1 = arg[3] | |
8721 | } else { | |
8722 | defundef = substr(arg[1], 2) | |
8723 | mac1 = arg[2] | |
8724 | } | |
8725 | split(mac1, mac2, "(") #) | |
8726 | macro = mac2[1] | |
8727 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8728 | if (D_is_set[macro]) { | |
8729 | # Preserve the white space surrounding the "#". | |
8730 | print prefix "define", macro P[macro] D[macro] | |
8731 | next | |
8732 | } else { | |
8733 | # Replace #undef with comments. This is necessary, for example, | |
8734 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8735 | # on some systems where configure will not decide to define it. | |
8736 | if (defundef == "undef") { | |
8737 | print "/*", prefix defundef, macro, "*/" | |
8738 | next | |
8739 | } | |
8740 | } | |
8741 | } | |
8742 | { print } | |
8743 | _ACAWK | |
bae7f79e | 8744 | _ACEOF |
81ecdfbb RW |
8745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8746 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8747 | fi # test -n "$CONFIG_HEADERS" | |
8748 | ||
8749 | ||
8750 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8751 | shift | |
8752 | for ac_tag | |
8753 | do | |
8754 | case $ac_tag in | |
8755 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8756 | esac | |
8757 | case $ac_mode$ac_tag in | |
8758 | :[FHL]*:*);; | |
8759 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8760 | :[FH]-) ac_tag=-:-;; | |
8761 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8762 | esac | |
8763 | ac_save_IFS=$IFS | |
8764 | IFS=: | |
8765 | set x $ac_tag | |
8766 | IFS=$ac_save_IFS | |
8767 | shift | |
8768 | ac_file=$1 | |
8769 | shift | |
8770 | ||
8771 | case $ac_mode in | |
8772 | :L) ac_source=$1;; | |
8773 | :[FH]) | |
8774 | ac_file_inputs= | |
8775 | for ac_f | |
8776 | do | |
8777 | case $ac_f in | |
8778 | -) ac_f="$tmp/stdin";; | |
8779 | *) # Look for the file first in the build tree, then in the source tree | |
8780 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8781 | # because $ac_f cannot contain `:'. | |
8782 | test -f "$ac_f" || | |
8783 | case $ac_f in | |
8784 | [\\/$]*) false;; | |
8785 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8786 | esac || | |
8787 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8788 | esac | |
8789 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8790 | as_fn_append ac_file_inputs " '$ac_f'" | |
8791 | done | |
8792 | ||
8793 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8794 | # use $as_me), people would be surprised to read: | |
8795 | # /* config.h. Generated by config.status. */ | |
8796 | configure_input='Generated from '` | |
8797 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8798 | `' by configure.' | |
8799 | if test x"$ac_file" != x-; then | |
8800 | configure_input="$ac_file. $configure_input" | |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8802 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8803 | fi | |
8804 | # Neutralize special characters interpreted by sed in replacement strings. | |
8805 | case $configure_input in #( | |
8806 | *\&* | *\|* | *\\* ) | |
8807 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8808 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8809 | *) ac_sed_conf_input=$configure_input;; | |
8810 | esac | |
8811 | ||
8812 | case $ac_tag in | |
8813 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8814 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8815 | esac | |
8816 | ;; | |
bae7f79e ILT |
8817 | esac |
8818 | ||
81ecdfbb | 8819 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8820 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8821 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8822 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8823 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8824 | $as_echo X"$ac_file" | | |
8825 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8826 | s//\1/ | |
8827 | q | |
8828 | } | |
8829 | /^X\(\/\/\)[^/].*/{ | |
8830 | s//\1/ | |
8831 | q | |
8832 | } | |
8833 | /^X\(\/\/\)$/{ | |
8834 | s//\1/ | |
8835 | q | |
8836 | } | |
8837 | /^X\(\/\).*/{ | |
8838 | s//\1/ | |
8839 | q | |
8840 | } | |
8841 | s/.*/./; q'` | |
8842 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8843 | ac_builddir=. |
8844 | ||
81ecdfbb RW |
8845 | case "$ac_dir" in |
8846 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8847 | *) | |
8848 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8849 | # A ".." for each directory in $ac_dir_suffix. | |
8850 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8851 | case $ac_top_builddir_sub in | |
8852 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8853 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8854 | esac ;; | |
8855 | esac | |
8856 | ac_abs_top_builddir=$ac_pwd | |
8857 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8858 | # for backward compatibility: | |
8859 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8860 | |
8861 | case $srcdir in | |
81ecdfbb | 8862 | .) # We are building in place. |
bae7f79e | 8863 | ac_srcdir=. |
81ecdfbb RW |
8864 | ac_top_srcdir=$ac_top_builddir_sub |
8865 | ac_abs_top_srcdir=$ac_pwd ;; | |
8866 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8867 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8868 | ac_top_srcdir=$srcdir |
8869 | ac_abs_top_srcdir=$srcdir ;; | |
8870 | *) # Relative name. | |
8871 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8872 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8873 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8874 | esac |
81ecdfbb | 8875 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8876 | |
bae7f79e | 8877 | |
81ecdfbb RW |
8878 | case $ac_mode in |
8879 | :F) | |
8880 | # | |
8881 | # CONFIG_FILE | |
8882 | # | |
bae7f79e ILT |
8883 | |
8884 | case $INSTALL in | |
8885 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8886 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8887 | esac |
81ecdfbb RW |
8888 | ac_MKDIR_P=$MKDIR_P |
8889 | case $MKDIR_P in | |
8890 | [\\/$]* | ?:[\\/]* ) ;; | |
8891 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8892 | esac | |
8893 | _ACEOF | |
bae7f79e | 8894 | |
81ecdfbb RW |
8895 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8896 | # If the template does not know about datarootdir, expand it. | |
8897 | # FIXME: This hack should be removed a few years after 2.60. | |
8898 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8899 | ac_sed_dataroot=' | |
8900 | /datarootdir/ { | |
8901 | p | |
8902 | q | |
8903 | } | |
8904 | /@datadir@/p | |
8905 | /@docdir@/p | |
8906 | /@infodir@/p | |
8907 | /@localedir@/p | |
8908 | /@mandir@/p' | |
8909 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8910 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8911 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8913 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8914 | _ACEOF | |
8915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8916 | ac_datarootdir_hack=' | |
8917 | s&@datadir@&$datadir&g | |
8918 | s&@docdir@&$docdir&g | |
8919 | s&@infodir@&$infodir&g | |
8920 | s&@localedir@&$localedir&g | |
8921 | s&@mandir@&$mandir&g | |
8922 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8923 | esac | |
bae7f79e | 8924 | _ACEOF |
81ecdfbb RW |
8925 | |
8926 | # Neutralize VPATH when `$srcdir' = `.'. | |
8927 | # Shell code in configure.ac might set extrasub. | |
8928 | # FIXME: do we really want to maintain this feature? | |
8929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8930 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8931 | $extrasub |
8932 | _ACEOF | |
81ecdfbb | 8933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8934 | :t |
8935 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8936 | s|@configure_input@|$ac_sed_conf_input|;t t |
8937 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8938 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8939 | s&@srcdir@&$ac_srcdir&;t t | |
8940 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8941 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8942 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8943 | s&@builddir@&$ac_builddir&;t t | |
8944 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8945 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8946 | s&@INSTALL@&$ac_INSTALL&;t t | |
8947 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8948 | $ac_datarootdir_hack | |
8949 | " | |
8950 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8951 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8952 | ||
8953 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8954 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8955 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8957 | which seems to be undefined. Please make sure it is defined." >&5 | |
8958 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8959 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8960 | ||
8961 | rm -f "$tmp/stdin" | |
bae7f79e | 8962 | case $ac_file in |
81ecdfbb RW |
8963 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8964 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8965 | esac \ | |
8966 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8967 | ;; | |
8968 | :H) | |
8969 | # | |
8970 | # CONFIG_HEADER | |
8971 | # | |
bae7f79e | 8972 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8973 | { |
8974 | $as_echo "/* $configure_input */" \ | |
8975 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8976 | } >"$tmp/config.h" \ | |
8977 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8978 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8980 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8981 | else |
81ecdfbb RW |
8982 | rm -f "$ac_file" |
8983 | mv "$tmp/config.h" "$ac_file" \ | |
8984 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8985 | fi |
8986 | else | |
81ecdfbb RW |
8987 | $as_echo "/* $configure_input */" \ |
8988 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8989 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8990 | fi |
81ecdfbb RW |
8991 | # Compute "$ac_file"'s index in $config_headers. |
8992 | _am_arg="$ac_file" | |
bae7f79e ILT |
8993 | _am_stamp_count=1 |
8994 | for _am_header in $config_headers :; do | |
8995 | case $_am_header in | |
81ecdfbb | 8996 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8997 | break ;; |
8998 | * ) | |
8999 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9000 | esac | |
9001 | done | |
81ecdfbb RW |
9002 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9003 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9004 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9005 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9006 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
9007 | $as_echo X"$_am_arg" | | |
9008 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9009 | s//\1/ | |
9010 | q | |
9011 | } | |
9012 | /^X\(\/\/\)[^/].*/{ | |
9013 | s//\1/ | |
9014 | q | |
9015 | } | |
9016 | /^X\(\/\/\)$/{ | |
9017 | s//\1/ | |
9018 | q | |
9019 | } | |
9020 | /^X\(\/\).*/{ | |
9021 | s//\1/ | |
9022 | q | |
9023 | } | |
9024 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9025 | ;; | |
bae7f79e | 9026 | |
81ecdfbb RW |
9027 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9028 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9029 | ;; | |
9030 | esac | |
bae7f79e ILT |
9031 | |
9032 | ||
81ecdfbb RW |
9033 | case $ac_file$ac_mode in |
9034 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
9035 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
9036 | # are listed without --file. Let's play safe and only enable the eval | |
9037 | # if we detect the quoting. | |
9038 | case $CONFIG_FILES in | |
9039 | *\'*) eval set x "$CONFIG_FILES" ;; | |
9040 | *) set x $CONFIG_FILES ;; | |
9041 | esac | |
9042 | shift | |
9043 | for mf | |
9044 | do | |
9045 | # Strip MF so we end up with the name of the file. | |
9046 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9047 | # Check whether this is an Automake generated Makefile or not. | |
9048 | # We used to match only the files named `Makefile.in', but | |
9049 | # some people rename them; so instead we look at the file content. | |
9050 | # Grep'ing the first line is not enough: some people post-process | |
9051 | # each Makefile.in and add a new line on top of each file to say so. | |
9052 | # Grep'ing the whole file is not good either: AIX grep has a line | |
9053 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9054 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9055 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
9056 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9057 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9058 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9059 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
9060 | $as_echo X"$mf" | | |
9061 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9062 | s//\1/ | |
9063 | q | |
9064 | } | |
9065 | /^X\(\/\/\)[^/].*/{ | |
9066 | s//\1/ | |
9067 | q | |
9068 | } | |
9069 | /^X\(\/\/\)$/{ | |
9070 | s//\1/ | |
9071 | q | |
9072 | } | |
9073 | /^X\(\/\).*/{ | |
9074 | s//\1/ | |
9075 | q | |
9076 | } | |
9077 | s/.*/./; q'` | |
9078 | else | |
9079 | continue | |
9080 | fi | |
9081 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9082 | # from the Makefile without running `make'. | |
9083 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9084 | test -z "$DEPDIR" && continue | |
9085 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9086 | test -z "am__include" && continue | |
9087 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9088 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9089 | U=`sed -n 's/^U = //p' < "$mf"` | |
9090 | # Find all dependency output files, they are included files with | |
9091 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9092 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9093 | # expansion. | |
9094 | for file in `sed -n " | |
9095 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9096 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9097 | # Make sure the directory exists. | |
9098 | test -f "$dirpart/$file" && continue | |
9099 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
9100 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9101 | X"$file" : 'X\(//\)[^/]' \| \ | |
9102 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9103 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
9104 | $as_echo X"$file" | | |
9105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9106 | s//\1/ | |
9107 | q | |
9108 | } | |
9109 | /^X\(\/\/\)[^/].*/{ | |
9110 | s//\1/ | |
9111 | q | |
9112 | } | |
9113 | /^X\(\/\/\)$/{ | |
9114 | s//\1/ | |
9115 | q | |
9116 | } | |
9117 | /^X\(\/\).*/{ | |
9118 | s//\1/ | |
9119 | q | |
9120 | } | |
9121 | s/.*/./; q'` | |
9122 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
9123 | # echo "creating $dirpart/$file" | |
9124 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 9125 | done |
bae7f79e | 9126 | done |
81ecdfbb | 9127 | } |
bae7f79e | 9128 | ;; |
81ecdfbb | 9129 | "default-1":C) |
bae7f79e ILT |
9130 | for ac_file in $CONFIG_FILES; do |
9131 | # Support "outfile[:infile[:infile...]]" | |
9132 | case "$ac_file" in | |
9133 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9134 | esac | |
9135 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9136 | case "$ac_file" in */Makefile.in) | |
9137 | # Adjust a relative srcdir. | |
9138 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 9139 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
9140 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
9141 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
9142 | # In autoconf-2.50 it is called $srcdir. | |
9143 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
9144 | case "$ac_given_srcdir" in | |
9145 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
9146 | /*) top_srcdir="$ac_given_srcdir" ;; | |
9147 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9148 | esac | |
9149 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
9150 | rm -f "$ac_dir/POTFILES" | |
9151 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
9152 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
9153 | POMAKEFILEDEPS="POTFILES.in" | |
9154 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
9155 | # on $ac_dir but don't depend on user-specified configuration | |
9156 | # parameters. | |
9157 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
9158 | # The LINGUAS file contains the set of available languages. | |
9159 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
9160 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
9161 | fi | |
9162 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
9163 | # Hide the ALL_LINGUAS assigment from automake. | |
9164 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
9165 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
9166 | else | |
9167 | # The set of available languages was given in configure.in. | |
9168 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
9169 | fi | |
9170 | case "$ac_given_srcdir" in | |
9171 | .) srcdirpre= ;; | |
9172 | *) srcdirpre='$(srcdir)/' ;; | |
9173 | esac | |
9174 | POFILES= | |
9175 | GMOFILES= | |
9176 | UPDATEPOFILES= | |
9177 | DUMMYPOFILES= | |
9178 | for lang in $ALL_LINGUAS; do | |
9179 | POFILES="$POFILES $srcdirpre$lang.po" | |
9180 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
9181 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
9182 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
9183 | done | |
9184 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
9185 | # environment variable. | |
9186 | INST_LINGUAS= | |
9187 | if test -n "$ALL_LINGUAS"; then | |
9188 | for presentlang in $ALL_LINGUAS; do | |
9189 | useit=no | |
9190 | if test "%UNSET%" != "$LINGUAS"; then | |
9191 | desiredlanguages="$LINGUAS" | |
9192 | else | |
9193 | desiredlanguages="$ALL_LINGUAS" | |
9194 | fi | |
9195 | for desiredlang in $desiredlanguages; do | |
9196 | # Use the presentlang catalog if desiredlang is | |
9197 | # a. equal to presentlang, or | |
9198 | # b. a variant of presentlang (because in this case, | |
9199 | # presentlang can be used as a fallback for messages | |
9200 | # which are not translated in the desiredlang catalog). | |
9201 | case "$desiredlang" in | |
9202 | "$presentlang"*) useit=yes;; | |
9203 | esac | |
9204 | done | |
9205 | if test $useit = yes; then | |
9206 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
9207 | fi | |
9208 | done | |
9209 | fi | |
9210 | CATALOGS= | |
9211 | if test -n "$INST_LINGUAS"; then | |
9212 | for lang in $INST_LINGUAS; do | |
9213 | CATALOGS="$CATALOGS $lang.gmo" | |
9214 | done | |
9215 | fi | |
9216 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9217 | 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" | |
9218 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
9219 | if test -f "$f"; then | |
9220 | case "$f" in | |
9221 | *.orig | *.bak | *~) ;; | |
9222 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
9223 | esac | |
9224 | fi | |
9225 | done | |
9226 | fi | |
9227 | ;; | |
9228 | esac | |
9229 | done ;; | |
81ecdfbb | 9230 | |
bae7f79e | 9231 | esac |
81ecdfbb | 9232 | done # for ac_tag |
bae7f79e | 9233 | |
bae7f79e | 9234 | |
81ecdfbb | 9235 | as_fn_exit 0 |
bae7f79e | 9236 | _ACEOF |
bae7f79e ILT |
9237 | ac_clean_files=$ac_clean_files_save |
9238 | ||
81ecdfbb RW |
9239 | test $ac_write_fail = 0 || |
9240 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9241 | ||
bae7f79e ILT |
9242 | |
9243 | # configure is writing to config.log, and then calls config.status. | |
9244 | # config.status does its own redirection, appending to config.log. | |
9245 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9246 | # by configure, so config.status won't be able to write to it; its | |
9247 | # output is simply discarded. So we exec the FD to /dev/null, | |
9248 | # effectively closing config.log, so it can be properly (re)opened and | |
9249 | # appended to by config.status. When coming back to configure, we | |
9250 | # need to make the FD available again. | |
9251 | if test "$no_create" != yes; then | |
9252 | ac_cs_success=: | |
9253 | ac_config_status_args= | |
9254 | test "$silent" = yes && | |
9255 | ac_config_status_args="$ac_config_status_args --quiet" | |
9256 | exec 5>/dev/null | |
9257 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9258 | exec 5>>config.log | |
9259 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9260 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
9261 | $ac_cs_success || as_fn_exit $? |
9262 | fi | |
9263 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9265 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
9266 | fi |
9267 |