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 | |
597 | CXXCPP | |
598 | HAVE_ZLIB_FALSE | |
599 | HAVE_ZLIB_TRUE | |
600 | LIBOBJS | |
601 | LFS_CFLAGS | |
602 | WARN_CXXFLAGS | |
603 | NO_WERROR | |
604 | WARN_CFLAGS | |
7223e9ca ILT |
605 | IFUNC_FALSE |
606 | IFUNC_TRUE | |
81ecdfbb RW |
607 | RANDOM_SEED_CFLAGS |
608 | CONSTRUCTOR_PRIORITY_FALSE | |
609 | CONSTRUCTOR_PRIORITY_TRUE | |
610 | TLS_DESCRIPTORS_FALSE | |
611 | TLS_DESCRIPTORS_TRUE | |
612 | TLS_GNU2_DIALECT_FALSE | |
613 | TLS_GNU2_DIALECT_TRUE | |
614 | OMP_SUPPORT_FALSE | |
615 | OMP_SUPPORT_TRUE | |
616 | STATIC_TLS_FALSE | |
617 | STATIC_TLS_TRUE | |
618 | TLS_FALSE | |
619 | TLS_TRUE | |
620 | MCMODEL_MEDIUM_FALSE | |
621 | MCMODEL_MEDIUM_TRUE | |
622 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
623 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
624 | GCC_FALSE | |
625 | GCC_TRUE | |
626 | NATIVE_LINKER_FALSE | |
627 | NATIVE_LINKER_TRUE | |
628 | MSGMERGE | |
629 | MSGFMT | |
630 | MKINSTALLDIRS | |
631 | CATOBJEXT | |
632 | GENCAT | |
633 | INSTOBJEXT | |
634 | DATADIRNAME | |
635 | CATALOGS | |
636 | POSUB | |
637 | GMSGFMT | |
638 | XGETTEXT | |
639 | INCINTL | |
640 | LIBINTL_DEP | |
641 | LIBINTL | |
642 | USE_NLS | |
643 | EGREP | |
644 | GREP | |
645 | CPP | |
646 | LN_S | |
647 | RANLIB | |
648 | YFLAGS | |
649 | YACC | |
650 | am__fastdepCXX_FALSE | |
651 | am__fastdepCXX_TRUE | |
652 | CXXDEPMODE | |
653 | ac_ct_CXX | |
654 | CXXFLAGS | |
655 | CXX | |
656 | am__fastdepCC_FALSE | |
657 | am__fastdepCC_TRUE | |
658 | CCDEPMODE | |
659 | AMDEPBACKSLASH | |
660 | AMDEP_FALSE | |
661 | AMDEP_TRUE | |
662 | am__quote | |
663 | am__include | |
664 | DEPDIR | |
665 | OBJEXT | |
666 | EXEEXT | |
667 | ac_ct_CC | |
668 | CPPFLAGS | |
669 | LDFLAGS | |
670 | CFLAGS | |
671 | CC | |
672 | TARGETOBJS | |
364c7fa5 ILT |
673 | DEFAULT_TARGET_X86_64_FALSE |
674 | DEFAULT_TARGET_X86_64_TRUE | |
675 | DEFAULT_TARGET_SPARC_FALSE | |
676 | DEFAULT_TARGET_SPARC_TRUE | |
677 | DEFAULT_TARGET_POWERPC_FALSE | |
678 | DEFAULT_TARGET_POWERPC_TRUE | |
679 | DEFAULT_TARGET_I386_FALSE | |
680 | DEFAULT_TARGET_I386_TRUE | |
681 | DEFAULT_TARGET_ARM_FALSE | |
682 | DEFAULT_TARGET_ARM_TRUE | |
81ecdfbb RW |
683 | PLUGINS_FALSE |
684 | PLUGINS_TRUE | |
685 | THREADS_FALSE | |
686 | THREADS_TRUE | |
4fda8867 NC |
687 | installed_linker |
688 | install_as_default | |
81ecdfbb RW |
689 | am__untar |
690 | am__tar | |
691 | AMTAR | |
692 | am__leading_dot | |
693 | SET_MAKE | |
694 | AWK | |
695 | mkdir_p | |
696 | MKDIR_P | |
697 | INSTALL_STRIP_PROGRAM | |
698 | STRIP | |
699 | install_sh | |
700 | MAKEINFO | |
701 | AUTOHEADER | |
702 | AUTOMAKE | |
703 | AUTOCONF | |
704 | ACLOCAL | |
705 | VERSION | |
706 | PACKAGE | |
707 | CYGPATH_W | |
708 | am__isrc | |
709 | INSTALL_DATA | |
710 | INSTALL_SCRIPT | |
711 | INSTALL_PROGRAM | |
712 | target_os | |
713 | target_vendor | |
714 | target_cpu | |
715 | target | |
716 | host_os | |
717 | host_vendor | |
718 | host_cpu | |
719 | host | |
720 | build_os | |
721 | build_vendor | |
722 | build_cpu | |
723 | build | |
724 | target_alias | |
725 | host_alias | |
726 | build_alias | |
727 | LIBS | |
728 | ECHO_T | |
729 | ECHO_N | |
730 | ECHO_C | |
731 | DEFS | |
732 | mandir | |
733 | localedir | |
734 | libdir | |
735 | psdir | |
736 | pdfdir | |
737 | dvidir | |
738 | htmldir | |
739 | infodir | |
740 | docdir | |
741 | oldincludedir | |
742 | includedir | |
743 | localstatedir | |
744 | sharedstatedir | |
745 | sysconfdir | |
746 | datadir | |
747 | datarootdir | |
748 | libexecdir | |
749 | sbindir | |
750 | bindir | |
751 | program_transform_name | |
752 | prefix | |
753 | exec_prefix | |
754 | PACKAGE_URL | |
755 | PACKAGE_BUGREPORT | |
756 | PACKAGE_STRING | |
757 | PACKAGE_VERSION | |
758 | PACKAGE_TARNAME | |
759 | PACKAGE_NAME | |
760 | PATH_SEPARATOR | |
761 | SHELL' | |
bae7f79e | 762 | ac_subst_files='' |
81ecdfbb RW |
763 | ac_user_opts=' |
764 | enable_option_checking | |
765 | with_sysroot | |
4fda8867 | 766 | enable_gold |
81ecdfbb RW |
767 | enable_threads |
768 | enable_plugins | |
769 | enable_targets | |
770 | enable_dependency_tracking | |
771 | enable_nls | |
772 | enable_werror | |
773 | enable_build_warnings | |
774 | enable_maintainer_mode | |
775 | ' | |
776 | ac_precious_vars='build_alias | |
777 | host_alias | |
778 | target_alias | |
779 | CC | |
780 | CFLAGS | |
781 | LDFLAGS | |
782 | LIBS | |
783 | CPPFLAGS | |
784 | CXX | |
785 | CXXFLAGS | |
786 | CCC | |
787 | YACC | |
788 | YFLAGS | |
789 | CPP | |
790 | CXXCPP' | |
791 | ||
bae7f79e ILT |
792 | |
793 | # Initialize some variables set by options. | |
794 | ac_init_help= | |
795 | ac_init_version=false | |
81ecdfbb RW |
796 | ac_unrecognized_opts= |
797 | ac_unrecognized_sep= | |
bae7f79e ILT |
798 | # The variables have the same names as the options, with |
799 | # dashes changed to underlines. | |
800 | cache_file=/dev/null | |
801 | exec_prefix=NONE | |
802 | no_create= | |
803 | no_recursion= | |
804 | prefix=NONE | |
805 | program_prefix=NONE | |
806 | program_suffix=NONE | |
807 | program_transform_name=s,x,x, | |
808 | silent= | |
809 | site= | |
810 | srcdir= | |
811 | verbose= | |
812 | x_includes=NONE | |
813 | x_libraries=NONE | |
814 | ||
815 | # Installation directory options. | |
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
817 | # and all the variables that are supposed to be based on exec_prefix | |
818 | # by default will actually change. | |
819 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 820 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
821 | bindir='${exec_prefix}/bin' |
822 | sbindir='${exec_prefix}/sbin' | |
823 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
824 | datarootdir='${prefix}/share' |
825 | datadir='${datarootdir}' | |
bae7f79e ILT |
826 | sysconfdir='${prefix}/etc' |
827 | sharedstatedir='${prefix}/com' | |
828 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
829 | includedir='${prefix}/include' |
830 | oldincludedir='/usr/include' | |
81ecdfbb RW |
831 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
832 | infodir='${datarootdir}/info' | |
833 | htmldir='${docdir}' | |
834 | dvidir='${docdir}' | |
835 | pdfdir='${docdir}' | |
836 | psdir='${docdir}' | |
837 | libdir='${exec_prefix}/lib' | |
838 | localedir='${datarootdir}/locale' | |
839 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
840 | |
841 | ac_prev= | |
81ecdfbb | 842 | ac_dashdash= |
bae7f79e ILT |
843 | for ac_option |
844 | do | |
845 | # If the previous option needs an argument, assign it. | |
846 | if test -n "$ac_prev"; then | |
81ecdfbb | 847 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
848 | ac_prev= |
849 | continue | |
850 | fi | |
851 | ||
81ecdfbb RW |
852 | case $ac_option in |
853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
854 | *) ac_optarg=yes ;; | |
855 | esac | |
bae7f79e ILT |
856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
81ecdfbb RW |
859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
bae7f79e ILT |
862 | |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
866 | bindir=$ac_optarg ;; | |
867 | ||
868 | -build | --build | --buil | --bui | --bu) | |
869 | ac_prev=build_alias ;; | |
870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
871 | build_alias=$ac_optarg ;; | |
872 | ||
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
878 | cache_file=$ac_optarg ;; | |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
882 | ||
81ecdfbb | 883 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 884 | ac_prev=datadir ;; |
81ecdfbb | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
886 | datadir=$ac_optarg ;; |
887 | ||
81ecdfbb RW |
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
bae7f79e | 895 | -disable-* | --disable-*) |
81ecdfbb | 896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 897 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
899 | as_fn_error "invalid feature name: $ac_useropt" | |
900 | ac_useropt_orig=$ac_useropt | |
901 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
902 | case $ac_user_opts in | |
903 | *" | |
904 | "enable_$ac_useropt" | |
905 | "*) ;; | |
906 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
907 | ac_unrecognized_sep=', ';; | |
908 | esac | |
909 | eval enable_$ac_useropt=no ;; | |
910 | ||
911 | -docdir | --docdir | --docdi | --doc | --do) | |
912 | ac_prev=docdir ;; | |
913 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
914 | docdir=$ac_optarg ;; | |
915 | ||
916 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
917 | ac_prev=dvidir ;; | |
918 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
919 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
920 | |
921 | -enable-* | --enable-*) | |
81ecdfbb | 922 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 923 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
924 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
925 | as_fn_error "invalid feature name: $ac_useropt" | |
926 | ac_useropt_orig=$ac_useropt | |
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
928 | case $ac_user_opts in | |
929 | *" | |
930 | "enable_$ac_useropt" | |
931 | "*) ;; | |
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
933 | ac_unrecognized_sep=', ';; | |
bae7f79e | 934 | esac |
81ecdfbb | 935 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
936 | |
937 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
938 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
939 | | --exec | --exe | --ex) | |
940 | ac_prev=exec_prefix ;; | |
941 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
942 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
943 | | --exec=* | --exe=* | --ex=*) | |
944 | exec_prefix=$ac_optarg ;; | |
945 | ||
946 | -gas | --gas | --ga | --g) | |
947 | # Obsolete; use --with-gas. | |
948 | with_gas=yes ;; | |
949 | ||
950 | -help | --help | --hel | --he | -h) | |
951 | ac_init_help=long ;; | |
952 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
953 | ac_init_help=recursive ;; | |
954 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
955 | ac_init_help=short ;; | |
956 | ||
957 | -host | --host | --hos | --ho) | |
958 | ac_prev=host_alias ;; | |
959 | -host=* | --host=* | --hos=* | --ho=*) | |
960 | host_alias=$ac_optarg ;; | |
961 | ||
81ecdfbb RW |
962 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
963 | ac_prev=htmldir ;; | |
964 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
965 | | --ht=*) | |
966 | htmldir=$ac_optarg ;; | |
967 | ||
bae7f79e ILT |
968 | -includedir | --includedir | --includedi | --included | --include \ |
969 | | --includ | --inclu | --incl | --inc) | |
970 | ac_prev=includedir ;; | |
971 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
972 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
973 | includedir=$ac_optarg ;; | |
974 | ||
975 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
976 | ac_prev=infodir ;; | |
977 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
978 | infodir=$ac_optarg ;; | |
979 | ||
980 | -libdir | --libdir | --libdi | --libd) | |
981 | ac_prev=libdir ;; | |
982 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
983 | libdir=$ac_optarg ;; | |
984 | ||
985 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
986 | | --libexe | --libex | --libe) | |
987 | ac_prev=libexecdir ;; | |
988 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
989 | | --libexe=* | --libex=* | --libe=*) | |
990 | libexecdir=$ac_optarg ;; | |
991 | ||
81ecdfbb RW |
992 | -localedir | --localedir | --localedi | --localed | --locale) |
993 | ac_prev=localedir ;; | |
994 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
995 | localedir=$ac_optarg ;; | |
996 | ||
bae7f79e | 997 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 998 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
999 | ac_prev=localstatedir ;; |
1000 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1001 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1002 | localstatedir=$ac_optarg ;; |
1003 | ||
1004 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1005 | ac_prev=mandir ;; | |
1006 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1007 | mandir=$ac_optarg ;; | |
1008 | ||
1009 | -nfp | --nfp | --nf) | |
1010 | # Obsolete; use --without-fp. | |
1011 | with_fp=no ;; | |
1012 | ||
1013 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1014 | | --no-cr | --no-c | -n) | |
1015 | no_create=yes ;; | |
1016 | ||
1017 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1018 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1019 | no_recursion=yes ;; | |
1020 | ||
1021 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1022 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1023 | | --oldin | --oldi | --old | --ol | --o) | |
1024 | ac_prev=oldincludedir ;; | |
1025 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1026 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1027 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1028 | oldincludedir=$ac_optarg ;; | |
1029 | ||
1030 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1031 | ac_prev=prefix ;; | |
1032 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1033 | prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1036 | | --program-pre | --program-pr | --program-p) | |
1037 | ac_prev=program_prefix ;; | |
1038 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1039 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1040 | program_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1043 | | --program-suf | --program-su | --program-s) | |
1044 | ac_prev=program_suffix ;; | |
1045 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1046 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1047 | program_suffix=$ac_optarg ;; | |
1048 | ||
1049 | -program-transform-name | --program-transform-name \ | |
1050 | | --program-transform-nam | --program-transform-na \ | |
1051 | | --program-transform-n | --program-transform- \ | |
1052 | | --program-transform | --program-transfor \ | |
1053 | | --program-transfo | --program-transf \ | |
1054 | | --program-trans | --program-tran \ | |
1055 | | --progr-tra | --program-tr | --program-t) | |
1056 | ac_prev=program_transform_name ;; | |
1057 | -program-transform-name=* | --program-transform-name=* \ | |
1058 | | --program-transform-nam=* | --program-transform-na=* \ | |
1059 | | --program-transform-n=* | --program-transform-=* \ | |
1060 | | --program-transform=* | --program-transfor=* \ | |
1061 | | --program-transfo=* | --program-transf=* \ | |
1062 | | --program-trans=* | --program-tran=* \ | |
1063 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1064 | program_transform_name=$ac_optarg ;; | |
1065 | ||
81ecdfbb RW |
1066 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1067 | ac_prev=pdfdir ;; | |
1068 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1069 | pdfdir=$ac_optarg ;; | |
1070 | ||
1071 | -psdir | --psdir | --psdi | --psd | --ps) | |
1072 | ac_prev=psdir ;; | |
1073 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1074 | psdir=$ac_optarg ;; | |
1075 | ||
bae7f79e ILT |
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1077 | | -silent | --silent | --silen | --sile | --sil) | |
1078 | silent=yes ;; | |
1079 | ||
1080 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1081 | ac_prev=sbindir ;; | |
1082 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1083 | | --sbi=* | --sb=*) | |
1084 | sbindir=$ac_optarg ;; | |
1085 | ||
1086 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1087 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1088 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1089 | | --sha | --sh) | |
1090 | ac_prev=sharedstatedir ;; | |
1091 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1092 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1093 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1094 | | --sha=* | --sh=*) | |
1095 | sharedstatedir=$ac_optarg ;; | |
1096 | ||
1097 | -site | --site | --sit) | |
1098 | ac_prev=site ;; | |
1099 | -site=* | --site=* | --sit=*) | |
1100 | site=$ac_optarg ;; | |
1101 | ||
1102 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1103 | ac_prev=srcdir ;; | |
1104 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1105 | srcdir=$ac_optarg ;; | |
1106 | ||
1107 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1108 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1109 | ac_prev=sysconfdir ;; | |
1110 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1111 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1112 | sysconfdir=$ac_optarg ;; | |
1113 | ||
1114 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1115 | ac_prev=target_alias ;; | |
1116 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1117 | target_alias=$ac_optarg ;; | |
1118 | ||
1119 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1120 | verbose=yes ;; | |
1121 | ||
1122 | -version | --version | --versio | --versi | --vers | -V) | |
1123 | ac_init_version=: ;; | |
1124 | ||
1125 | -with-* | --with-*) | |
81ecdfbb | 1126 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1127 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1128 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1129 | as_fn_error "invalid package name: $ac_useropt" | |
1130 | ac_useropt_orig=$ac_useropt | |
1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1132 | case $ac_user_opts in | |
1133 | *" | |
1134 | "with_$ac_useropt" | |
1135 | "*) ;; | |
1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1137 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1138 | esac |
81ecdfbb | 1139 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1140 | |
1141 | -without-* | --without-*) | |
81ecdfbb | 1142 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1143 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1145 | as_fn_error "invalid package name: $ac_useropt" | |
1146 | ac_useropt_orig=$ac_useropt | |
1147 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1148 | case $ac_user_opts in | |
1149 | *" | |
1150 | "with_$ac_useropt" | |
1151 | "*) ;; | |
1152 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1153 | ac_unrecognized_sep=', ';; | |
1154 | esac | |
1155 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1156 | |
1157 | --x) | |
1158 | # Obsolete; use --with-x. | |
1159 | with_x=yes ;; | |
1160 | ||
1161 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1162 | | --x-incl | --x-inc | --x-in | --x-i) | |
1163 | ac_prev=x_includes ;; | |
1164 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1165 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1166 | x_includes=$ac_optarg ;; | |
1167 | ||
1168 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1169 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1170 | ac_prev=x_libraries ;; | |
1171 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1172 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1173 | x_libraries=$ac_optarg ;; | |
1174 | ||
81ecdfbb RW |
1175 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1176 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1177 | ;; |
1178 | ||
1179 | *=*) | |
1180 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1181 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1182 | case $ac_envvar in #( |
1183 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1184 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1185 | esac | |
1186 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1187 | export $ac_envvar ;; |
1188 | ||
1189 | *) | |
1190 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1191 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1192 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1193 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1194 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1195 | ;; | |
1196 | ||
1197 | esac | |
1198 | done | |
1199 | ||
1200 | if test -n "$ac_prev"; then | |
1201 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1202 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1203 | fi |
1204 | ||
81ecdfbb RW |
1205 | if test -n "$ac_unrecognized_opts"; then |
1206 | case $enable_option_checking in | |
1207 | no) ;; | |
1208 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1209 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1210 | esac |
81ecdfbb | 1211 | fi |
bae7f79e | 1212 | |
81ecdfbb RW |
1213 | # Check all directory arguments for consistency. |
1214 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1215 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1216 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1217 | libdir localedir mandir | |
bae7f79e | 1218 | do |
81ecdfbb RW |
1219 | eval ac_val=\$$ac_var |
1220 | # Remove trailing slashes. | |
1221 | case $ac_val in | |
1222 | */ ) | |
1223 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1224 | eval $ac_var=\$ac_val;; | |
1225 | esac | |
1226 | # Be sure to have absolute directory names. | |
bae7f79e | 1227 | case $ac_val in |
81ecdfbb RW |
1228 | [\\/$]* | ?:[\\/]* ) continue;; |
1229 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1230 | esac |
81ecdfbb | 1231 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1232 | done |
1233 | ||
1234 | # There might be people who depend on the old broken behavior: `$host' | |
1235 | # used to hold the argument of --host etc. | |
1236 | # FIXME: To remove some day. | |
1237 | build=$build_alias | |
1238 | host=$host_alias | |
1239 | target=$target_alias | |
1240 | ||
1241 | # FIXME: To remove some day. | |
1242 | if test "x$host_alias" != x; then | |
1243 | if test "x$build_alias" = x; then | |
1244 | cross_compiling=maybe | |
81ecdfbb | 1245 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1246 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1247 | elif test "x$build_alias" != "x$host_alias"; then | |
1248 | cross_compiling=yes | |
1249 | fi | |
1250 | fi | |
1251 | ||
1252 | ac_tool_prefix= | |
1253 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1254 | ||
1255 | test "$silent" = yes && exec 6>/dev/null | |
1256 | ||
1257 | ||
81ecdfbb RW |
1258 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1259 | ac_ls_di=`ls -di .` && | |
1260 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1261 | as_fn_error "working directory cannot be determined" | |
1262 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1263 | as_fn_error "pwd does not report name of working directory" | |
1264 | ||
1265 | ||
bae7f79e ILT |
1266 | # Find the source files, if location was not specified. |
1267 | if test -z "$srcdir"; then | |
1268 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1269 | # Try the directory containing this script, then the parent directory. |
1270 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1271 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1272 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1273 | X"$as_myself" : 'X\(//\)$' \| \ | |
1274 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1275 | $as_echo X"$as_myself" | | |
1276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | /^X\(\/\/\)[^/].*/{ | |
1281 | s//\1/ | |
1282 | q | |
1283 | } | |
1284 | /^X\(\/\/\)$/{ | |
1285 | s//\1/ | |
1286 | q | |
1287 | } | |
1288 | /^X\(\/\).*/{ | |
1289 | s//\1/ | |
1290 | q | |
1291 | } | |
1292 | s/.*/./; q'` | |
bae7f79e | 1293 | srcdir=$ac_confdir |
81ecdfbb | 1294 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1295 | srcdir=.. |
1296 | fi | |
1297 | else | |
1298 | ac_srcdir_defaulted=no | |
1299 | fi | |
81ecdfbb RW |
1300 | if test ! -r "$srcdir/$ac_unique_file"; then |
1301 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1302 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1303 | fi | |
1304 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1305 | ac_abs_confdir=`( | |
1306 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1307 | pwd)` | |
1308 | # When building in place, set srcdir=. | |
1309 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1310 | srcdir=. | |
1311 | fi | |
1312 | # Remove unnecessary trailing slashes from srcdir. | |
1313 | # Double slashes in file names in object file debugging info | |
1314 | # mess up M-x gdb in Emacs. | |
1315 | case $srcdir in | |
1316 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1317 | esac | |
1318 | for ac_var in $ac_precious_vars; do | |
1319 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1320 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1321 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1322 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1323 | done | |
bae7f79e ILT |
1324 | |
1325 | # | |
1326 | # Report the --help message. | |
1327 | # | |
1328 | if test "$ac_init_help" = "long"; then | |
1329 | # Omit some internal or obsolete options to make the list less imposing. | |
1330 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1331 | cat <<_ACEOF | |
8486ee48 | 1332 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1333 | |
1334 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1335 | ||
1336 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1337 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1338 | ||
1339 | Defaults for the options are specified in brackets. | |
1340 | ||
1341 | Configuration: | |
1342 | -h, --help display this help and exit | |
1343 | --help=short display options specific to this package | |
1344 | --help=recursive display the short help of all the included packages | |
1345 | -V, --version display version information and exit | |
1346 | -q, --quiet, --silent do not print \`checking...' messages | |
1347 | --cache-file=FILE cache test results in FILE [disabled] | |
1348 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1349 | -n, --no-create do not create output files | |
1350 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1351 | ||
bae7f79e ILT |
1352 | Installation directories: |
1353 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1354 | [$ac_default_prefix] |
bae7f79e | 1355 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1356 | [PREFIX] |
bae7f79e ILT |
1357 | |
1358 | By default, \`make install' will install all the files in | |
1359 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1360 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1361 | for instance \`--prefix=\$HOME'. | |
1362 | ||
1363 | For better control, use the options below. | |
1364 | ||
1365 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1366 | --bindir=DIR user executables [EPREFIX/bin] |
1367 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1368 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1369 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1370 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1371 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1372 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1373 | --includedir=DIR C header files [PREFIX/include] | |
1374 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1375 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1376 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1377 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1378 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1379 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1380 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1381 | --htmldir=DIR html documentation [DOCDIR] | |
1382 | --dvidir=DIR dvi documentation [DOCDIR] | |
1383 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1384 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1385 | _ACEOF |
1386 | ||
1387 | cat <<\_ACEOF | |
1388 | ||
1389 | Program names: | |
1390 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1391 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1392 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1393 | ||
1394 | System types: | |
1395 | --build=BUILD configure for building on BUILD [guessed] | |
1396 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1397 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1398 | _ACEOF | |
1399 | fi | |
1400 | ||
1401 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1402 | case $ac_init_help in |
1403 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1404 | esac | |
bae7f79e ILT |
1405 | cat <<\_ACEOF |
1406 | ||
1407 | Optional Features: | |
81ecdfbb | 1408 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1409 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1410 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
4fda8867 | 1411 | --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]] |
fe9a4c12 | 1412 | --enable-threads multi-threaded linking |
89fc3421 | 1413 | --enable-plugins linker plugins |
193a53d9 | 1414 | --enable-targets alternative target configurations |
bae7f79e ILT |
1415 | --disable-dependency-tracking speeds up one-time build |
1416 | --enable-dependency-tracking do not reject slow dependency extractors | |
1417 | --disable-nls do not use Native Language Support | |
1418 | --enable-werror treat compile warnings as errors | |
1419 | --enable-build-warnings enable build-time compiler warnings | |
1420 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1421 | (and sometimes confusing) to the casual installer | |
1422 | ||
ad2d6943 ILT |
1423 | Optional Packages: |
1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1426 | --with-sysroot=DIR search for usr/lib et al within DIR | |
1427 | ||
bae7f79e ILT |
1428 | Some influential environment variables: |
1429 | CC C compiler command | |
1430 | CFLAGS C compiler flags | |
1431 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1432 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1433 | LIBS libraries to pass to the linker, e.g. -l<library> |
1434 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1435 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1436 | CXX C++ compiler command |
1437 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1438 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1439 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1440 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1441 | This script will default YFLAGS to the empty string to avoid a | |
1442 | default value of `-d' given by some make applications. | |
9a0910c3 | 1443 | CPP C preprocessor |
54dc6425 | 1444 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1445 | |
1446 | Use these variables to override the choices made by `configure' or to help | |
1447 | it to find libraries and programs with nonstandard names/locations. | |
1448 | ||
81ecdfbb | 1449 | Report bugs to the package provider. |
bae7f79e | 1450 | _ACEOF |
81ecdfbb | 1451 | ac_status=$? |
bae7f79e ILT |
1452 | fi |
1453 | ||
1454 | if test "$ac_init_help" = "recursive"; then | |
1455 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1456 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1457 | test -d "$ac_dir" || |
1458 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1459 | continue | |
bae7f79e ILT |
1460 | ac_builddir=. |
1461 | ||
81ecdfbb RW |
1462 | case "$ac_dir" in |
1463 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1464 | *) | |
1465 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1466 | # A ".." for each directory in $ac_dir_suffix. | |
1467 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1468 | case $ac_top_builddir_sub in | |
1469 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1470 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1471 | esac ;; | |
1472 | esac | |
1473 | ac_abs_top_builddir=$ac_pwd | |
1474 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1475 | # for backward compatibility: | |
1476 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1477 | |
1478 | case $srcdir in | |
81ecdfbb | 1479 | .) # We are building in place. |
bae7f79e | 1480 | ac_srcdir=. |
81ecdfbb RW |
1481 | ac_top_srcdir=$ac_top_builddir_sub |
1482 | ac_abs_top_srcdir=$ac_pwd ;; | |
1483 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1484 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1485 | ac_top_srcdir=$srcdir |
1486 | ac_abs_top_srcdir=$srcdir ;; | |
1487 | *) # Relative name. | |
1488 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1489 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1490 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1491 | esac |
81ecdfbb RW |
1492 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1493 | ||
1494 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1495 | # Check for guested configure. | |
1496 | if test -f "$ac_srcdir/configure.gnu"; then | |
1497 | echo && | |
1498 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1499 | elif test -f "$ac_srcdir/configure"; then | |
1500 | echo && | |
1501 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1502 | else |
81ecdfbb RW |
1503 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1504 | fi || ac_status=$? | |
1505 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1506 | done |
1507 | fi | |
1508 | ||
81ecdfbb | 1509 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1510 | if $ac_init_version; then |
1511 | cat <<\_ACEOF | |
8486ee48 | 1512 | gold configure 0.1 |
81ecdfbb | 1513 | generated by GNU Autoconf 2.64 |
bae7f79e | 1514 | |
81ecdfbb | 1515 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1516 | This configure script is free software; the Free Software Foundation |
1517 | gives unlimited permission to copy, distribute and modify it. | |
1518 | _ACEOF | |
81ecdfbb | 1519 | exit |
bae7f79e | 1520 | fi |
bae7f79e | 1521 | |
81ecdfbb RW |
1522 | ## ------------------------ ## |
1523 | ## Autoconf initialization. ## | |
1524 | ## ------------------------ ## | |
bae7f79e | 1525 | |
81ecdfbb RW |
1526 | # ac_fn_c_try_compile LINENO |
1527 | # -------------------------- | |
1528 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1529 | ac_fn_c_try_compile () | |
bae7f79e | 1530 | { |
81ecdfbb RW |
1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1532 | rm -f conftest.$ac_objext | |
1533 | if { { ac_try="$ac_compile" | |
1534 | case "(($ac_try" in | |
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1536 | *) ac_try_echo=$ac_try;; | |
1537 | esac | |
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1539 | $as_echo "$ac_try_echo"; } >&5 | |
1540 | (eval "$ac_compile") 2>conftest.err | |
1541 | ac_status=$? | |
1542 | if test -s conftest.err; then | |
1543 | grep -v '^ *+' conftest.err >conftest.er1 | |
1544 | cat conftest.er1 >&5 | |
1545 | mv -f conftest.er1 conftest.err | |
1546 | fi | |
1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1548 | test $ac_status = 0; } && { | |
1549 | test -z "$ac_c_werror_flag" || | |
1550 | test ! -s conftest.err | |
1551 | } && test -s conftest.$ac_objext; then : | |
1552 | ac_retval=0 | |
1553 | else | |
1554 | $as_echo "$as_me: failed program was:" >&5 | |
1555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1556 | |
81ecdfbb RW |
1557 | ac_retval=1 |
1558 | fi | |
1559 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1560 | return $ac_retval | |
bae7f79e | 1561 | |
81ecdfbb | 1562 | } # ac_fn_c_try_compile |
bae7f79e | 1563 | |
81ecdfbb RW |
1564 | # ac_fn_cxx_try_compile LINENO |
1565 | # ---------------------------- | |
1566 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1567 | ac_fn_cxx_try_compile () | |
1568 | { | |
1569 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1570 | rm -f conftest.$ac_objext | |
1571 | if { { ac_try="$ac_compile" | |
1572 | case "(($ac_try" in | |
1573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1574 | *) ac_try_echo=$ac_try;; | |
1575 | esac | |
1576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1577 | $as_echo "$ac_try_echo"; } >&5 | |
1578 | (eval "$ac_compile") 2>conftest.err | |
1579 | ac_status=$? | |
1580 | if test -s conftest.err; then | |
1581 | grep -v '^ *+' conftest.err >conftest.er1 | |
1582 | cat conftest.er1 >&5 | |
1583 | mv -f conftest.er1 conftest.err | |
1584 | fi | |
1585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1586 | test $ac_status = 0; } && { | |
1587 | test -z "$ac_cxx_werror_flag" || | |
1588 | test ! -s conftest.err | |
1589 | } && test -s conftest.$ac_objext; then : | |
1590 | ac_retval=0 | |
1591 | else | |
1592 | $as_echo "$as_me: failed program was:" >&5 | |
1593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1594 | |
81ecdfbb RW |
1595 | ac_retval=1 |
1596 | fi | |
1597 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1598 | return $ac_retval | |
bae7f79e | 1599 | |
81ecdfbb | 1600 | } # ac_fn_cxx_try_compile |
bae7f79e | 1601 | |
81ecdfbb RW |
1602 | # ac_fn_c_try_cpp LINENO |
1603 | # ---------------------- | |
1604 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1605 | ac_fn_c_try_cpp () | |
1606 | { | |
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1609 | case "(($ac_try" in | |
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1611 | *) ac_try_echo=$ac_try;; | |
1612 | esac | |
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1614 | $as_echo "$ac_try_echo"; } >&5 | |
1615 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1616 | ac_status=$? | |
1617 | if test -s conftest.err; then | |
1618 | grep -v '^ *+' conftest.err >conftest.er1 | |
1619 | cat conftest.er1 >&5 | |
1620 | mv -f conftest.er1 conftest.err | |
1621 | fi | |
1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1623 | test $ac_status = 0; } >/dev/null && { | |
1624 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1625 | test ! -s conftest.err | |
1626 | }; then : | |
1627 | ac_retval=0 | |
1628 | else | |
1629 | $as_echo "$as_me: failed program was:" >&5 | |
1630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1631 | |
81ecdfbb RW |
1632 | ac_retval=1 |
1633 | fi | |
1634 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1635 | return $ac_retval | |
bae7f79e | 1636 | |
81ecdfbb | 1637 | } # ac_fn_c_try_cpp |
bae7f79e | 1638 | |
81ecdfbb RW |
1639 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1640 | # ------------------------------------------------------- | |
1641 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1642 | # the include files in INCLUDES and setting the cache variable VAR | |
1643 | # accordingly. | |
1644 | ac_fn_c_check_header_mongrel () | |
1645 | { | |
1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1647 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1649 | $as_echo_n "checking for $2... " >&6; } | |
1650 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1651 | $as_echo_n "(cached) " >&6 | |
1652 | fi | |
1653 | eval ac_res=\$$3 | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1655 | $as_echo "$ac_res" >&6; } | |
1656 | else | |
1657 | # Is the header compilable? | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1659 | $as_echo_n "checking $2 usability... " >&6; } | |
1660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1661 | /* end confdefs.h. */ | |
1662 | $4 | |
1663 | #include <$2> | |
bae7f79e | 1664 | _ACEOF |
81ecdfbb RW |
1665 | if ac_fn_c_try_compile "$LINENO"; then : |
1666 | ac_header_compiler=yes | |
1667 | else | |
1668 | ac_header_compiler=no | |
1669 | fi | |
1670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1672 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1673 | |
81ecdfbb RW |
1674 | # Is the header present? |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1676 | $as_echo_n "checking $2 presence... " >&6; } | |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 | /* end confdefs.h. */ | |
1679 | #include <$2> | |
1680 | _ACEOF | |
1681 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1682 | ac_header_preproc=yes | |
1683 | else | |
1684 | ac_header_preproc=no | |
1685 | fi | |
1686 | rm -f conftest.err conftest.$ac_ext | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1688 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1689 | |
81ecdfbb RW |
1690 | # So? What about this header? |
1691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1692 | yes:no: ) | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1694 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1697 | ;; | |
1698 | no:yes:* ) | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1704 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1706 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1708 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1709 | ;; | |
1710 | esac | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1712 | $as_echo_n "checking for $2... " >&6; } | |
1713 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1714 | $as_echo_n "(cached) " >&6 | |
1715 | else | |
1716 | eval "$3=\$ac_header_compiler" | |
1717 | fi | |
1718 | eval ac_res=\$$3 | |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1720 | $as_echo "$ac_res" >&6; } | |
1721 | fi | |
1722 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1723 | |
81ecdfbb | 1724 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1725 | |
81ecdfbb RW |
1726 | # ac_fn_c_try_run LINENO |
1727 | # ---------------------- | |
1728 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1729 | # that executables *can* be run. | |
1730 | ac_fn_c_try_run () | |
bae7f79e | 1731 | { |
81ecdfbb RW |
1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1733 | if { { ac_try="$ac_link" | |
1734 | case "(($ac_try" in | |
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 | *) ac_try_echo=$ac_try;; | |
1737 | esac | |
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1739 | $as_echo "$ac_try_echo"; } >&5 | |
1740 | (eval "$ac_link") 2>&5 | |
1741 | ac_status=$? | |
1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1743 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1744 | { { case "(($ac_try" in | |
1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1746 | *) ac_try_echo=$ac_try;; | |
1747 | esac | |
1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1749 | $as_echo "$ac_try_echo"; } >&5 | |
1750 | (eval "$ac_try") 2>&5 | |
1751 | ac_status=$? | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; }; }; then : | |
1754 | ac_retval=0 | |
1755 | else | |
1756 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1757 | $as_echo "$as_me: failed program was:" >&5 | |
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1759 | |
81ecdfbb RW |
1760 | ac_retval=$ac_status |
1761 | fi | |
1762 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1763 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1764 | return $ac_retval | |
bae7f79e | 1765 | |
81ecdfbb | 1766 | } # ac_fn_c_try_run |
bae7f79e | 1767 | |
81ecdfbb RW |
1768 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1769 | # ------------------------------------------------------- | |
1770 | # Tests whether HEADER exists and can be compiled using the include files in | |
1771 | # INCLUDES, setting the cache variable VAR accordingly. | |
1772 | ac_fn_c_check_header_compile () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1776 | $as_echo_n "checking for $2... " >&6; } | |
1777 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1778 | $as_echo_n "(cached) " >&6 | |
1779 | else | |
1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1781 | /* end confdefs.h. */ | |
1782 | $4 | |
1783 | #include <$2> | |
1784 | _ACEOF | |
1785 | if ac_fn_c_try_compile "$LINENO"; then : | |
1786 | eval "$3=yes" | |
1787 | else | |
1788 | eval "$3=no" | |
1789 | fi | |
1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1791 | fi | |
1792 | eval ac_res=\$$3 | |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1794 | $as_echo "$ac_res" >&6; } | |
1795 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1796 | |
81ecdfbb | 1797 | } # ac_fn_c_check_header_compile |
bae7f79e | 1798 | |
81ecdfbb RW |
1799 | # ac_fn_c_try_link LINENO |
1800 | # ----------------------- | |
1801 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1802 | ac_fn_c_try_link () | |
1803 | { | |
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1806 | if { { ac_try="$ac_link" | |
1807 | case "(($ac_try" in | |
1808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1809 | *) ac_try_echo=$ac_try;; | |
1810 | esac | |
1811 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1812 | $as_echo "$ac_try_echo"; } >&5 | |
1813 | (eval "$ac_link") 2>conftest.err | |
1814 | ac_status=$? | |
1815 | if test -s conftest.err; then | |
1816 | grep -v '^ *+' conftest.err >conftest.er1 | |
1817 | cat conftest.er1 >&5 | |
1818 | mv -f conftest.er1 conftest.err | |
1819 | fi | |
1820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1821 | test $ac_status = 0; } && { | |
1822 | test -z "$ac_c_werror_flag" || | |
1823 | test ! -s conftest.err | |
1824 | } && test -s conftest$ac_exeext && { | |
1825 | test "$cross_compiling" = yes || | |
1826 | $as_test_x conftest$ac_exeext | |
1827 | }; then : | |
1828 | ac_retval=0 | |
1829 | else | |
1830 | $as_echo "$as_me: failed program was:" >&5 | |
1831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1832 | |
81ecdfbb RW |
1833 | ac_retval=1 |
1834 | fi | |
1835 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1836 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1837 | # interfere with the next link command; also delete a directory that is | |
1838 | # left behind by Apple's compiler. We do this before executing the actions. | |
1839 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1841 | return $ac_retval | |
bae7f79e | 1842 | |
81ecdfbb | 1843 | } # ac_fn_c_try_link |
bae7f79e | 1844 | |
81ecdfbb RW |
1845 | # ac_fn_c_check_func LINENO FUNC VAR |
1846 | # ---------------------------------- | |
1847 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1848 | ac_fn_c_check_func () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1852 | $as_echo_n "checking for $2... " >&6; } | |
1853 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1854 | $as_echo_n "(cached) " >&6 | |
1855 | else | |
1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1857 | /* end confdefs.h. */ | |
1858 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1860 | #define $2 innocuous_$2 | |
bae7f79e | 1861 | |
81ecdfbb RW |
1862 | /* System header to define __stub macros and hopefully few prototypes, |
1863 | which can conflict with char $2 (); below. | |
1864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1865 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1866 | |
81ecdfbb RW |
1867 | #ifdef __STDC__ |
1868 | # include <limits.h> | |
1869 | #else | |
1870 | # include <assert.h> | |
1871 | #endif | |
bae7f79e | 1872 | |
81ecdfbb | 1873 | #undef $2 |
bae7f79e | 1874 | |
81ecdfbb RW |
1875 | /* Override any GCC internal prototype to avoid an error. |
1876 | Use char because int might match the return type of a GCC | |
1877 | builtin and then its argument prototype would still apply. */ | |
1878 | #ifdef __cplusplus | |
1879 | extern "C" | |
1880 | #endif | |
1881 | char $2 (); | |
1882 | /* The GNU C library defines this for functions which it implements | |
1883 | to always fail with ENOSYS. Some functions are actually named | |
1884 | something starting with __ and the normal name is an alias. */ | |
1885 | #if defined __stub_$2 || defined __stub___$2 | |
1886 | choke me | |
1887 | #endif | |
1888 | ||
1889 | int | |
1890 | main () | |
1891 | { | |
1892 | return $2 (); | |
1893 | ; | |
1894 | return 0; | |
1895 | } | |
bae7f79e | 1896 | _ACEOF |
81ecdfbb RW |
1897 | if ac_fn_c_try_link "$LINENO"; then : |
1898 | eval "$3=yes" | |
1899 | else | |
1900 | eval "$3=no" | |
1901 | fi | |
1902 | rm -f core conftest.err conftest.$ac_objext \ | |
1903 | conftest$ac_exeext conftest.$ac_ext | |
1904 | fi | |
1905 | eval ac_res=\$$3 | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1907 | $as_echo "$ac_res" >&6; } | |
1908 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1909 | |
81ecdfbb | 1910 | } # ac_fn_c_check_func |
bae7f79e | 1911 | |
81ecdfbb RW |
1912 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1913 | # ------------------------------------ | |
1914 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1915 | ac_fn_c_check_decl () | |
1916 | { | |
1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1918 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1919 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1921 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1922 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1923 | $as_echo_n "(cached) " >&6 | |
1924 | else | |
1925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1926 | /* end confdefs.h. */ | |
1927 | $4 | |
1928 | int | |
1929 | main () | |
1930 | { | |
7223e9ca ILT |
1931 | #ifndef $as_decl_name |
1932 | #ifdef __cplusplus | |
1933 | (void) $as_decl_use; | |
1934 | #else | |
1935 | (void) $as_decl_name; | |
1936 | #endif | |
81ecdfbb RW |
1937 | #endif |
1938 | ||
1939 | ; | |
1940 | return 0; | |
1941 | } | |
bae7f79e | 1942 | _ACEOF |
81ecdfbb RW |
1943 | if ac_fn_c_try_compile "$LINENO"; then : |
1944 | eval "$3=yes" | |
1945 | else | |
1946 | eval "$3=no" | |
1947 | fi | |
1948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1949 | fi | |
1950 | eval ac_res=\$$3 | |
1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1952 | $as_echo "$ac_res" >&6; } | |
1953 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1954 | |
81ecdfbb | 1955 | } # ac_fn_c_check_decl |
bae7f79e | 1956 | |
81ecdfbb RW |
1957 | # ac_fn_cxx_try_cpp LINENO |
1958 | # ------------------------ | |
1959 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1960 | ac_fn_cxx_try_cpp () | |
1961 | { | |
1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1963 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1964 | case "(($ac_try" in | |
1965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1966 | *) ac_try_echo=$ac_try;; | |
1967 | esac | |
1968 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1969 | $as_echo "$ac_try_echo"; } >&5 | |
1970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1971 | ac_status=$? | |
1972 | if test -s conftest.err; then | |
1973 | grep -v '^ *+' conftest.err >conftest.er1 | |
1974 | cat conftest.er1 >&5 | |
1975 | mv -f conftest.er1 conftest.err | |
bae7f79e | 1976 | fi |
81ecdfbb RW |
1977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1978 | test $ac_status = 0; } >/dev/null && { | |
1979 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1980 | test ! -s conftest.err | |
1981 | }; then : | |
1982 | ac_retval=0 | |
1983 | else | |
1984 | $as_echo "$as_me: failed program was:" >&5 | |
1985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1986 | ||
1987 | ac_retval=1 | |
bae7f79e | 1988 | fi |
81ecdfbb RW |
1989 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1990 | return $ac_retval | |
bae7f79e | 1991 | |
81ecdfbb RW |
1992 | } # ac_fn_cxx_try_cpp |
1993 | ||
1994 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1995 | # --------------------------------------------------------- | |
1996 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1997 | # the include files in INCLUDES and setting the cache variable VAR | |
1998 | # accordingly. | |
1999 | ac_fn_cxx_check_header_mongrel () | |
2000 | { | |
2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2002 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2004 | $as_echo_n "checking for $2... " >&6; } | |
2005 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2006 | $as_echo_n "(cached) " >&6 | |
2007 | fi | |
2008 | eval ac_res=\$$3 | |
2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2010 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2011 | else |
81ecdfbb RW |
2012 | # Is the header compilable? |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2014 | $as_echo_n "checking $2 usability... " >&6; } | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | $4 | |
2018 | #include <$2> | |
2019 | _ACEOF | |
2020 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2021 | ac_header_compiler=yes | |
2022 | else | |
2023 | ac_header_compiler=no | |
bae7f79e | 2024 | fi |
81ecdfbb RW |
2025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2027 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2028 | |
81ecdfbb RW |
2029 | # Is the header present? |
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2031 | $as_echo_n "checking $2 presence... " >&6; } | |
2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2033 | /* end confdefs.h. */ | |
2034 | #include <$2> | |
2035 | _ACEOF | |
2036 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2037 | ac_header_preproc=yes | |
2038 | else | |
2039 | ac_header_preproc=no | |
bae7f79e | 2040 | fi |
81ecdfbb RW |
2041 | rm -f conftest.err conftest.$ac_ext |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2043 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2044 | |
81ecdfbb RW |
2045 | # So? What about this header? |
2046 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2047 | yes:no: ) | |
2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2049 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2051 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2052 | ;; | |
2053 | no:yes:* ) | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2055 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2057 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2059 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2061 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2063 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2064 | ;; | |
2065 | esac | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2067 | $as_echo_n "checking for $2... " >&6; } | |
2068 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2069 | $as_echo_n "(cached) " >&6 | |
2070 | else | |
2071 | eval "$3=\$ac_header_compiler" | |
2072 | fi | |
2073 | eval ac_res=\$$3 | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2075 | $as_echo "$ac_res" >&6; } | |
2076 | fi | |
2077 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2078 | ||
2079 | } # ac_fn_cxx_check_header_mongrel | |
2080 | ||
2081 | # ac_fn_cxx_try_link LINENO | |
2082 | # ------------------------- | |
2083 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2084 | ac_fn_cxx_try_link () | |
2085 | { | |
2086 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2088 | if { { ac_try="$ac_link" | |
2089 | case "(($ac_try" in | |
2090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2091 | *) ac_try_echo=$ac_try;; | |
2092 | esac | |
2093 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2094 | $as_echo "$ac_try_echo"; } >&5 | |
2095 | (eval "$ac_link") 2>conftest.err | |
2096 | ac_status=$? | |
2097 | if test -s conftest.err; then | |
2098 | grep -v '^ *+' conftest.err >conftest.er1 | |
2099 | cat conftest.er1 >&5 | |
2100 | mv -f conftest.er1 conftest.err | |
2101 | fi | |
2102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2103 | test $ac_status = 0; } && { | |
2104 | test -z "$ac_cxx_werror_flag" || | |
2105 | test ! -s conftest.err | |
2106 | } && test -s conftest$ac_exeext && { | |
2107 | test "$cross_compiling" = yes || | |
2108 | $as_test_x conftest$ac_exeext | |
2109 | }; then : | |
2110 | ac_retval=0 | |
2111 | else | |
2112 | $as_echo "$as_me: failed program was:" >&5 | |
2113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2114 | |
81ecdfbb RW |
2115 | ac_retval=1 |
2116 | fi | |
2117 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2118 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2119 | # interfere with the next link command; also delete a directory that is | |
2120 | # left behind by Apple's compiler. We do this before executing the actions. | |
2121 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2122 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2123 | return $ac_retval | |
bae7f79e | 2124 | |
81ecdfbb | 2125 | } # ac_fn_cxx_try_link |
bae7f79e | 2126 | |
81ecdfbb RW |
2127 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2128 | # ------------------------------------ | |
2129 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2130 | ac_fn_cxx_check_func () | |
2131 | { | |
2132 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2134 | $as_echo_n "checking for $2... " >&6; } | |
2135 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2136 | $as_echo_n "(cached) " >&6 | |
2137 | else | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2142 | #define $2 innocuous_$2 | |
bae7f79e | 2143 | |
81ecdfbb RW |
2144 | /* System header to define __stub macros and hopefully few prototypes, |
2145 | which can conflict with char $2 (); below. | |
2146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2147 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2148 | |
81ecdfbb RW |
2149 | #ifdef __STDC__ |
2150 | # include <limits.h> | |
2151 | #else | |
2152 | # include <assert.h> | |
2153 | #endif | |
bae7f79e | 2154 | |
81ecdfbb | 2155 | #undef $2 |
bae7f79e | 2156 | |
81ecdfbb RW |
2157 | /* Override any GCC internal prototype to avoid an error. |
2158 | Use char because int might match the return type of a GCC | |
2159 | builtin and then its argument prototype would still apply. */ | |
2160 | #ifdef __cplusplus | |
2161 | extern "C" | |
2162 | #endif | |
2163 | char $2 (); | |
2164 | /* The GNU C library defines this for functions which it implements | |
2165 | to always fail with ENOSYS. Some functions are actually named | |
2166 | something starting with __ and the normal name is an alias. */ | |
2167 | #if defined __stub_$2 || defined __stub___$2 | |
2168 | choke me | |
2169 | #endif | |
bae7f79e | 2170 | |
81ecdfbb RW |
2171 | int |
2172 | main () | |
2173 | { | |
2174 | return $2 (); | |
2175 | ; | |
2176 | return 0; | |
2177 | } | |
2178 | _ACEOF | |
2179 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2180 | eval "$3=yes" | |
2181 | else | |
2182 | eval "$3=no" | |
2183 | fi | |
2184 | rm -f core conftest.err conftest.$ac_objext \ | |
2185 | conftest$ac_exeext conftest.$ac_ext | |
2186 | fi | |
2187 | eval ac_res=\$$3 | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2189 | $as_echo "$ac_res" >&6; } | |
2190 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2191 | |
81ecdfbb | 2192 | } # ac_fn_cxx_check_func |
bae7f79e | 2193 | |
81ecdfbb RW |
2194 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2195 | # -------------------------------------- | |
2196 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2197 | ac_fn_cxx_check_decl () | |
2198 | { | |
2199 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2200 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2201 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2203 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2204 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2205 | $as_echo_n "(cached) " >&6 | |
2206 | else | |
2207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2208 | /* end confdefs.h. */ | |
2209 | $4 | |
2210 | int | |
2211 | main () | |
2212 | { | |
7223e9ca ILT |
2213 | #ifndef $as_decl_name |
2214 | #ifdef __cplusplus | |
2215 | (void) $as_decl_use; | |
2216 | #else | |
2217 | (void) $as_decl_name; | |
2218 | #endif | |
81ecdfbb | 2219 | #endif |
bae7f79e | 2220 | |
81ecdfbb RW |
2221 | ; |
2222 | return 0; | |
2223 | } | |
2224 | _ACEOF | |
2225 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2226 | eval "$3=yes" | |
2227 | else | |
2228 | eval "$3=no" | |
2229 | fi | |
2230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2231 | fi | |
2232 | eval ac_res=\$$3 | |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2234 | $as_echo "$ac_res" >&6; } | |
2235 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2236 | |
81ecdfbb RW |
2237 | } # ac_fn_cxx_check_decl |
2238 | cat >config.log <<_ACEOF | |
2239 | This file contains any messages produced by compilers while | |
2240 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2241 | |
81ecdfbb RW |
2242 | It was created by gold $as_me 0.1, which was |
2243 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2244 | |
81ecdfbb | 2245 | $ $0 $@ |
8486ee48 | 2246 | |
81ecdfbb RW |
2247 | _ACEOF |
2248 | exec 5>>config.log | |
2249 | { | |
2250 | cat <<_ASUNAME | |
2251 | ## --------- ## | |
2252 | ## Platform. ## | |
2253 | ## --------- ## | |
8486ee48 | 2254 | |
81ecdfbb RW |
2255 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2256 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2257 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2258 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2259 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2260 | |
81ecdfbb RW |
2261 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2262 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2263 | |
81ecdfbb RW |
2264 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2265 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2266 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2267 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2268 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2269 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2270 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2271 | |
81ecdfbb | 2272 | _ASUNAME |
8486ee48 | 2273 | |
81ecdfbb RW |
2274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2275 | for as_dir in $PATH | |
2276 | do | |
2277 | IFS=$as_save_IFS | |
2278 | test -z "$as_dir" && as_dir=. | |
2279 | $as_echo "PATH: $as_dir" | |
2280 | done | |
2281 | IFS=$as_save_IFS | |
bae7f79e | 2282 | |
81ecdfbb | 2283 | } >&5 |
bae7f79e | 2284 | |
81ecdfbb | 2285 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2286 | |
2287 | ||
81ecdfbb RW |
2288 | ## ----------- ## |
2289 | ## Core tests. ## | |
2290 | ## ----------- ## | |
bae7f79e | 2291 | |
81ecdfbb | 2292 | _ACEOF |
1d1f116d CD |
2293 | |
2294 | ||
81ecdfbb RW |
2295 | # Keep a trace of the command line. |
2296 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2297 | # Strip out --silent because we don't want to record it for future runs. | |
2298 | # Also quote any args containing shell meta-characters. | |
2299 | # Make two passes to allow for proper duplicate-argument suppression. | |
2300 | ac_configure_args= | |
2301 | ac_configure_args0= | |
2302 | ac_configure_args1= | |
2303 | ac_must_keep_next=false | |
2304 | for ac_pass in 1 2 | |
2305 | do | |
2306 | for ac_arg | |
2307 | do | |
2308 | case $ac_arg in | |
2309 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2311 | | -silent | --silent | --silen | --sile | --sil) | |
2312 | continue ;; | |
2313 | *\'*) | |
2314 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2315 | esac | |
2316 | case $ac_pass in | |
2317 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2318 | 2) | |
2319 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2320 | if test $ac_must_keep_next = true; then | |
2321 | ac_must_keep_next=false # Got value, back to normal. | |
2322 | else | |
2323 | case $ac_arg in | |
2324 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2325 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2326 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2327 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2328 | case "$ac_configure_args0 " in | |
2329 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2330 | esac | |
2331 | ;; | |
2332 | -* ) ac_must_keep_next=true ;; | |
2333 | esac | |
2334 | fi | |
2335 | as_fn_append ac_configure_args " '$ac_arg'" | |
2336 | ;; | |
2337 | esac | |
2338 | done | |
2339 | done | |
2340 | { ac_configure_args0=; unset ac_configure_args0;} | |
2341 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2342 | |
81ecdfbb RW |
2343 | # When interrupted or exit'd, cleanup temporary files, and complete |
2344 | # config.log. We remove comments because anyway the quotes in there | |
2345 | # would cause problems or look ugly. | |
2346 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2347 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2348 | trap 'exit_status=$? | |
2349 | # Save into config.log some information that might help in debugging. | |
2350 | { | |
2351 | echo | |
bae7f79e | 2352 | |
81ecdfbb RW |
2353 | cat <<\_ASBOX |
2354 | ## ---------------- ## | |
2355 | ## Cache variables. ## | |
2356 | ## ---------------- ## | |
2357 | _ASBOX | |
2358 | echo | |
2359 | # The following way of writing the cache mishandles newlines in values, | |
2360 | ( | |
2361 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2362 | eval ac_val=\$$ac_var | |
2363 | case $ac_val in #( | |
2364 | *${as_nl}*) | |
2365 | case $ac_var in #( | |
2366 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2367 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2368 | esac | |
2369 | case $ac_var in #( | |
2370 | _ | IFS | as_nl) ;; #( | |
2371 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2372 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2373 | esac ;; | |
2374 | esac | |
2375 | done | |
2376 | (set) 2>&1 | | |
2377 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2378 | *${as_nl}ac_space=\ *) | |
2379 | sed -n \ | |
2380 | "s/'\''/'\''\\\\'\'''\''/g; | |
2381 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2382 | ;; #( | |
2383 | *) | |
2384 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2385 | ;; | |
2386 | esac | | |
2387 | sort | |
2388 | ) | |
2389 | echo | |
bae7f79e | 2390 | |
81ecdfbb RW |
2391 | cat <<\_ASBOX |
2392 | ## ----------------- ## | |
2393 | ## Output variables. ## | |
2394 | ## ----------------- ## | |
2395 | _ASBOX | |
2396 | echo | |
2397 | for ac_var in $ac_subst_vars | |
2398 | do | |
2399 | eval ac_val=\$$ac_var | |
2400 | case $ac_val in | |
2401 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2402 | esac | |
2403 | $as_echo "$ac_var='\''$ac_val'\''" | |
2404 | done | sort | |
2405 | echo | |
bae7f79e | 2406 | |
81ecdfbb RW |
2407 | if test -n "$ac_subst_files"; then |
2408 | cat <<\_ASBOX | |
2409 | ## ------------------- ## | |
2410 | ## File substitutions. ## | |
2411 | ## ------------------- ## | |
2412 | _ASBOX | |
2413 | echo | |
2414 | for ac_var in $ac_subst_files | |
2415 | do | |
2416 | eval ac_val=\$$ac_var | |
2417 | case $ac_val in | |
2418 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2419 | esac | |
2420 | $as_echo "$ac_var='\''$ac_val'\''" | |
2421 | done | sort | |
2422 | echo | |
2423 | fi | |
bae7f79e | 2424 | |
81ecdfbb RW |
2425 | if test -s confdefs.h; then |
2426 | cat <<\_ASBOX | |
2427 | ## ----------- ## | |
2428 | ## confdefs.h. ## | |
2429 | ## ----------- ## | |
2430 | _ASBOX | |
2431 | echo | |
2432 | cat confdefs.h | |
2433 | echo | |
2434 | fi | |
2435 | test "$ac_signal" != 0 && | |
2436 | $as_echo "$as_me: caught signal $ac_signal" | |
2437 | $as_echo "$as_me: exit $exit_status" | |
2438 | } >&5 | |
2439 | rm -f core *.core core.conftest.* && | |
2440 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2441 | exit $exit_status | |
2442 | ' 0 | |
2443 | for ac_signal in 1 2 13 15; do | |
2444 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2445 | done |
81ecdfbb | 2446 | ac_signal=0 |
bae7f79e | 2447 | |
81ecdfbb RW |
2448 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2449 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2450 | |
81ecdfbb | 2451 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2452 | |
81ecdfbb | 2453 | # Predefined preprocessor variables. |
bae7f79e | 2454 | |
81ecdfbb RW |
2455 | cat >>confdefs.h <<_ACEOF |
2456 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2457 | _ACEOF | |
bae7f79e | 2458 | |
81ecdfbb RW |
2459 | cat >>confdefs.h <<_ACEOF |
2460 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2461 | _ACEOF | |
bae7f79e | 2462 | |
81ecdfbb RW |
2463 | cat >>confdefs.h <<_ACEOF |
2464 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2465 | _ACEOF | |
bae7f79e | 2466 | |
81ecdfbb RW |
2467 | cat >>confdefs.h <<_ACEOF |
2468 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2469 | _ACEOF | |
bae7f79e | 2470 | |
81ecdfbb RW |
2471 | cat >>confdefs.h <<_ACEOF |
2472 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2473 | _ACEOF | |
bae7f79e | 2474 | |
81ecdfbb RW |
2475 | cat >>confdefs.h <<_ACEOF |
2476 | #define PACKAGE_URL "$PACKAGE_URL" | |
2477 | _ACEOF | |
2478 | ||
2479 | ||
2480 | # Let the site file select an alternate cache file if it wants to. | |
2481 | # Prefer an explicitly selected file to automatically selected ones. | |
2482 | ac_site_file1=NONE | |
2483 | ac_site_file2=NONE | |
2484 | if test -n "$CONFIG_SITE"; then | |
2485 | ac_site_file1=$CONFIG_SITE | |
2486 | elif test "x$prefix" != xNONE; then | |
2487 | ac_site_file1=$prefix/share/config.site | |
2488 | ac_site_file2=$prefix/etc/config.site | |
2489 | else | |
2490 | ac_site_file1=$ac_default_prefix/share/config.site | |
2491 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2492 | fi | |
2493 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2494 | do | |
2495 | test "x$ac_site_file" = xNONE && continue | |
2496 | if test -r "$ac_site_file"; then | |
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2498 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2499 | sed 's/^/| /' "$ac_site_file" >&5 | |
2500 | . "$ac_site_file" | |
2501 | fi | |
2502 | done | |
2503 | ||
2504 | if test -r "$cache_file"; then | |
2505 | # Some versions of bash will fail to source /dev/null (special | |
2506 | # files actually), so we avoid doing that. | |
2507 | if test -f "$cache_file"; then | |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2509 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2510 | case $cache_file in | |
2511 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2512 | *) . "./$cache_file";; | |
2513 | esac | |
2514 | fi | |
2515 | else | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2517 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2518 | >$cache_file | |
2519 | fi | |
2520 | ||
2521 | # Check that the precious variables saved in the cache have kept the same | |
2522 | # value. | |
2523 | ac_cache_corrupted=false | |
2524 | for ac_var in $ac_precious_vars; do | |
2525 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2526 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2527 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2528 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2529 | case $ac_old_set,$ac_new_set in | |
2530 | set,) | |
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2532 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2533 | ac_cache_corrupted=: ;; | |
2534 | ,set) | |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2536 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2537 | ac_cache_corrupted=: ;; | |
2538 | ,);; | |
2539 | *) | |
2540 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2541 | # differences in whitespace do not lead to failure. | |
2542 | ac_old_val_w=`echo x $ac_old_val` | |
2543 | ac_new_val_w=`echo x $ac_new_val` | |
2544 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2546 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2547 | ac_cache_corrupted=: | |
2548 | else | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2550 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2551 | eval $ac_var=\$ac_old_val | |
2552 | fi | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2554 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2556 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2557 | fi;; | |
2558 | esac | |
2559 | # Pass precious variables to config.status. | |
2560 | if test "$ac_new_set" = set; then | |
2561 | case $ac_new_val in | |
2562 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2563 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2564 | esac | |
2565 | case " $ac_configure_args " in | |
2566 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2567 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2568 | esac | |
2569 | fi | |
2570 | done | |
2571 | if $ac_cache_corrupted; then | |
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2575 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2576 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2577 | fi | |
2578 | ## -------------------- ## | |
2579 | ## Main body of script. ## | |
2580 | ## -------------------- ## | |
2581 | ||
2582 | ac_ext=c | |
2583 | ac_cpp='$CPP $CPPFLAGS' | |
2584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2587 | ||
2588 | ||
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ac_aux_dir= | |
2595 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2596 | for ac_t in install-sh install.sh shtool; do | |
2597 | if test -f "$ac_dir/$ac_t"; then | |
2598 | ac_aux_dir=$ac_dir | |
2599 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2600 | break 2 | |
2601 | fi | |
2602 | done | |
2603 | done | |
2604 | if test -z "$ac_aux_dir"; then | |
2605 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2606 | fi | |
2607 | ||
2608 | # These three variables are undocumented and unsupported, | |
2609 | # and are intended to be withdrawn in a future Autoconf release. | |
2610 | # They can cause serious problems if a builder's source tree is in a directory | |
2611 | # whose full name contains unusual characters. | |
2612 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2613 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2614 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2615 | ||
2616 | ||
2617 | # Make sure we can run config.sub. | |
2618 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2619 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2620 | ||
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2622 | $as_echo_n "checking build system type... " >&6; } | |
2623 | if test "${ac_cv_build+set}" = set; then : | |
2624 | $as_echo_n "(cached) " >&6 | |
2625 | else | |
2626 | ac_build_alias=$build_alias | |
2627 | test "x$ac_build_alias" = x && | |
2628 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2629 | test "x$ac_build_alias" = x && | |
2630 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2631 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2632 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2633 | ||
2634 | fi | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2636 | $as_echo "$ac_cv_build" >&6; } | |
2637 | case $ac_cv_build in | |
2638 | *-*-*) ;; | |
2639 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2640 | esac | |
2641 | build=$ac_cv_build | |
2642 | ac_save_IFS=$IFS; IFS='-' | |
2643 | set x $ac_cv_build | |
2644 | shift | |
2645 | build_cpu=$1 | |
2646 | build_vendor=$2 | |
2647 | shift; shift | |
2648 | # Remember, the first character of IFS is used to create $*, | |
2649 | # except with old shells: | |
2650 | build_os=$* | |
2651 | IFS=$ac_save_IFS | |
2652 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2653 | ||
2654 | ||
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2656 | $as_echo_n "checking host system type... " >&6; } | |
2657 | if test "${ac_cv_host+set}" = set; then : | |
2658 | $as_echo_n "(cached) " >&6 | |
2659 | else | |
2660 | if test "x$host_alias" = x; then | |
2661 | ac_cv_host=$ac_cv_build | |
2662 | else | |
2663 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2664 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2665 | fi | |
2666 | ||
2667 | fi | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2669 | $as_echo "$ac_cv_host" >&6; } | |
2670 | case $ac_cv_host in | |
2671 | *-*-*) ;; | |
2672 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2673 | esac | |
2674 | host=$ac_cv_host | |
2675 | ac_save_IFS=$IFS; IFS='-' | |
2676 | set x $ac_cv_host | |
2677 | shift | |
2678 | host_cpu=$1 | |
2679 | host_vendor=$2 | |
2680 | shift; shift | |
2681 | # Remember, the first character of IFS is used to create $*, | |
2682 | # except with old shells: | |
2683 | host_os=$* | |
2684 | IFS=$ac_save_IFS | |
2685 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2686 | ||
2687 | ||
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2689 | $as_echo_n "checking target system type... " >&6; } | |
2690 | if test "${ac_cv_target+set}" = set; then : | |
2691 | $as_echo_n "(cached) " >&6 | |
2692 | else | |
2693 | if test "x$target_alias" = x; then | |
2694 | ac_cv_target=$ac_cv_host | |
2695 | else | |
2696 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2697 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2698 | fi | |
2699 | ||
2700 | fi | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2702 | $as_echo "$ac_cv_target" >&6; } | |
2703 | case $ac_cv_target in | |
2704 | *-*-*) ;; | |
2705 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2706 | esac | |
2707 | target=$ac_cv_target | |
2708 | ac_save_IFS=$IFS; IFS='-' | |
2709 | set x $ac_cv_target | |
2710 | shift | |
2711 | target_cpu=$1 | |
2712 | target_vendor=$2 | |
2713 | shift; shift | |
2714 | # Remember, the first character of IFS is used to create $*, | |
2715 | # except with old shells: | |
2716 | target_os=$* | |
2717 | IFS=$ac_save_IFS | |
2718 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2719 | ||
2720 | ||
2721 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2722 | # will get canonicalized. |
2723 | test -n "$target_alias" && | |
2724 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2725 | NONENONEs,x,x, && | |
2726 | program_prefix=${target_alias}- | |
2727 | ||
81ecdfbb RW |
2728 | am__api_version='1.11' |
2729 | ||
bae7f79e ILT |
2730 | # Find a good install program. We prefer a C program (faster), |
2731 | # so one script is as good as another. But avoid the broken or | |
2732 | # incompatible versions: | |
2733 | # SysV /etc/install, /usr/sbin/install | |
2734 | # SunOS /usr/etc/install | |
2735 | # IRIX /sbin/install | |
2736 | # AIX /bin/install | |
2737 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2738 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2739 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2740 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2741 | # OS/2's system install, which has a completely different semantic | |
2742 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2743 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2745 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2746 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2747 | if test "${ac_cv_path_install+set}" = set; then : |
2748 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2749 | else |
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2751 | for as_dir in $PATH | |
2752 | do | |
2753 | IFS=$as_save_IFS | |
2754 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2755 | # Account for people who put trailing slashes in PATH elements. |
2756 | case $as_dir/ in #(( | |
2757 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2758 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2759 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2760 | /usr/ucb/* ) ;; |
2761 | *) | |
2762 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2763 | # Don't use installbsd from OSF since it installs stuff as root | |
2764 | # by default. | |
2765 | for ac_prog in ginstall scoinst install; do | |
2766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2767 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2768 | if test $ac_prog = install && |
2769 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2770 | # AIX install. It has an incompatible calling convention. | |
2771 | : | |
2772 | elif test $ac_prog = install && | |
2773 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2774 | # program-specific install script used by HP pwplus--don't use. | |
2775 | : | |
2776 | else | |
f5314dd5 DM |
2777 | rm -rf conftest.one conftest.two conftest.dir |
2778 | echo one > conftest.one | |
2779 | echo two > conftest.two | |
2780 | mkdir conftest.dir | |
2781 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2782 | test -s conftest.one && test -s conftest.two && | |
2783 | test -s conftest.dir/conftest.one && | |
2784 | test -s conftest.dir/conftest.two | |
2785 | then | |
2786 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2787 | break 3 | |
2788 | fi | |
bae7f79e ILT |
2789 | fi |
2790 | fi | |
2791 | done | |
2792 | done | |
2793 | ;; | |
2794 | esac | |
81ecdfbb RW |
2795 | |
2796 | done | |
2797 | IFS=$as_save_IFS | |
bae7f79e | 2798 | |
f5314dd5 | 2799 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2800 | |
2801 | fi | |
2802 | if test "${ac_cv_path_install+set}" = set; then | |
2803 | INSTALL=$ac_cv_path_install | |
2804 | else | |
f5314dd5 DM |
2805 | # As a last resort, use the slow shell script. Don't cache a |
2806 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2807 | # break other packages using the cache if that directory is |
f5314dd5 | 2808 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2809 | INSTALL=$ac_install_sh |
2810 | fi | |
2811 | fi | |
81ecdfbb RW |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2813 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2814 | |
2815 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2816 | # It thinks the first close brace ends the variable substitution. | |
2817 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2818 | ||
2819 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2820 | ||
2821 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2822 | ||
81ecdfbb RW |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2824 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2825 | # Just in case |
2826 | sleep 1 | |
2827 | echo timestamp > conftest.file | |
81ecdfbb RW |
2828 | # Reject unsafe characters in $srcdir or the absolute working directory |
2829 | # name. Accept space and tab only in the latter. | |
2830 | am_lf=' | |
2831 | ' | |
2832 | case `pwd` in | |
2833 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2834 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2835 | esac | |
2836 | case $srcdir in | |
2837 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2838 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2839 | esac | |
2840 | ||
bae7f79e ILT |
2841 | # Do `set' in a subshell so we don't clobber the current shell's |
2842 | # arguments. Must try -L first in case configure is actually a | |
2843 | # symlink; some systems play weird games with the mod time of symlinks | |
2844 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2845 | # directory). | |
2846 | if ( | |
81ecdfbb | 2847 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2848 | if test "$*" = "X"; then |
2849 | # -L didn't work. | |
81ecdfbb | 2850 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2851 | fi |
2852 | rm -f conftest.file | |
2853 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2854 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2855 | ||
2856 | # If neither matched, then we have a broken ls. This can happen | |
2857 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2858 | # broken ls alias from the environment. This has actually | |
2859 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2860 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2861 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2862 | fi |
2863 | ||
2864 | test "$2" = conftest.file | |
2865 | ) | |
2866 | then | |
2867 | # Ok. | |
2868 | : | |
2869 | else | |
81ecdfbb RW |
2870 | as_fn_error "newly created file is older than distributed files! |
2871 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2872 | fi |
81ecdfbb RW |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2874 | $as_echo "yes" >&6; } | |
bae7f79e | 2875 | test "$program_prefix" != NONE && |
81ecdfbb | 2876 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2877 | # Use a double $ so make ignores it. |
2878 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2879 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2880 | # Double any \ or $. | |
bae7f79e | 2881 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2882 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2883 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2884 | |
2885 | # expand $ac_aux_dir to an absolute path | |
2886 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2887 | ||
81ecdfbb RW |
2888 | if test x"${MISSING+set}" != xset; then |
2889 | case $am_aux_dir in | |
2890 | *\ * | *\ *) | |
2891 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2892 | *) | |
2893 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2894 | esac | |
2895 | fi | |
bae7f79e ILT |
2896 | # Use eval to expand $SHELL |
2897 | if eval "$MISSING --run true"; then | |
2898 | am_missing_run="$MISSING --run " | |
2899 | else | |
2900 | am_missing_run= | |
81ecdfbb RW |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2902 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2903 | fi | |
2904 | ||
2905 | if test x"${install_sh}" != xset; then | |
2906 | case $am_aux_dir in | |
2907 | *\ * | *\ *) | |
2908 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2909 | *) | |
2910 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2911 | esac | |
2912 | fi | |
2913 | ||
2914 | # Installed binaries are usually stripped using `strip' when the user | |
2915 | # run `make install-strip'. However `strip' might not be the right | |
2916 | # tool to use in cross-compilation environments, therefore Automake | |
2917 | # will honor the `STRIP' environment variable to overrule this program. | |
2918 | if test "$cross_compiling" != no; then | |
2919 | if test -n "$ac_tool_prefix"; then | |
2920 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2921 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2923 | $as_echo_n "checking for $ac_word... " >&6; } | |
2924 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2925 | $as_echo_n "(cached) " >&6 | |
2926 | else | |
2927 | if test -n "$STRIP"; then | |
2928 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2929 | else | |
2930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2931 | for as_dir in $PATH | |
2932 | do | |
2933 | IFS=$as_save_IFS | |
2934 | test -z "$as_dir" && as_dir=. | |
2935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2937 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2939 | break 2 | |
2940 | fi | |
2941 | done | |
2942 | done | |
2943 | IFS=$as_save_IFS | |
2944 | ||
2945 | fi | |
2946 | fi | |
2947 | STRIP=$ac_cv_prog_STRIP | |
2948 | if test -n "$STRIP"; then | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2950 | $as_echo "$STRIP" >&6; } | |
2951 | else | |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2953 | $as_echo "no" >&6; } | |
2954 | fi | |
2955 | ||
2956 | ||
2957 | fi | |
2958 | if test -z "$ac_cv_prog_STRIP"; then | |
2959 | ac_ct_STRIP=$STRIP | |
2960 | # Extract the first word of "strip", so it can be a program name with args. | |
2961 | set dummy strip; ac_word=$2 | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2963 | $as_echo_n "checking for $ac_word... " >&6; } | |
2964 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2965 | $as_echo_n "(cached) " >&6 | |
2966 | else | |
2967 | if test -n "$ac_ct_STRIP"; then | |
2968 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2969 | else | |
2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2971 | for as_dir in $PATH | |
2972 | do | |
2973 | IFS=$as_save_IFS | |
2974 | test -z "$as_dir" && as_dir=. | |
2975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2977 | ac_cv_prog_ac_ct_STRIP="strip" | |
2978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2979 | break 2 | |
2980 | fi | |
2981 | done | |
2982 | done | |
2983 | IFS=$as_save_IFS | |
2984 | ||
2985 | fi | |
2986 | fi | |
2987 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2988 | if test -n "$ac_ct_STRIP"; then | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2990 | $as_echo "$ac_ct_STRIP" >&6; } | |
2991 | else | |
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2993 | $as_echo "no" >&6; } | |
2994 | fi | |
2995 | ||
2996 | if test "x$ac_ct_STRIP" = x; then | |
2997 | STRIP=":" | |
2998 | else | |
2999 | case $cross_compiling:$ac_tool_warned in | |
3000 | yes:) | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3003 | ac_tool_warned=yes ;; | |
3004 | esac | |
3005 | STRIP=$ac_ct_STRIP | |
3006 | fi | |
3007 | else | |
3008 | STRIP="$ac_cv_prog_STRIP" | |
3009 | fi | |
3010 | ||
3011 | fi | |
3012 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3013 | ||
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3015 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3016 | if test -z "$MKDIR_P"; then | |
3017 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3018 | $as_echo_n "(cached) " >&6 | |
3019 | else | |
3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3021 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3022 | do | |
3023 | IFS=$as_save_IFS | |
3024 | test -z "$as_dir" && as_dir=. | |
3025 | for ac_prog in mkdir gmkdir; do | |
3026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3027 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3028 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3029 | 'mkdir (GNU coreutils) '* | \ | |
3030 | 'mkdir (coreutils) '* | \ | |
3031 | 'mkdir (fileutils) '4.1*) | |
3032 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3033 | break 3;; | |
3034 | esac | |
3035 | done | |
3036 | done | |
bae7f79e | 3037 | done |
81ecdfbb RW |
3038 | IFS=$as_save_IFS |
3039 | ||
3040 | fi | |
3041 | ||
3042 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3043 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3044 | else |
81ecdfbb RW |
3045 | # As a last resort, use the slow shell script. Don't cache a |
3046 | # value for MKDIR_P within a source directory, because that will | |
3047 | # break other packages using the cache if that directory is | |
3048 | # removed, or if the value is a relative name. | |
3049 | test -d ./--version && rmdir ./--version | |
3050 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3051 | fi |
3052 | fi | |
81ecdfbb RW |
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3054 | $as_echo "$MKDIR_P" >&6; } | |
3055 | ||
3056 | mkdir_p="$MKDIR_P" | |
3057 | case $mkdir_p in | |
3058 | [\\/$]* | ?:[\\/]*) ;; | |
3059 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3060 | esac | |
bae7f79e ILT |
3061 | |
3062 | for ac_prog in gawk mawk nawk awk | |
3063 | do | |
3064 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3065 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3067 | $as_echo_n "checking for $ac_word... " >&6; } | |
3068 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3069 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3070 | else |
3071 | if test -n "$AWK"; then | |
3072 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3073 | else | |
3074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3075 | for as_dir in $PATH | |
3076 | do | |
3077 | IFS=$as_save_IFS | |
3078 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3079 | for ac_exec_ext in '' $ac_executable_extensions; do |
3080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3081 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3083 | break 2 |
3084 | fi | |
3085 | done | |
81ecdfbb RW |
3086 | done |
3087 | IFS=$as_save_IFS | |
bae7f79e ILT |
3088 | |
3089 | fi | |
3090 | fi | |
3091 | AWK=$ac_cv_prog_AWK | |
3092 | if test -n "$AWK"; then | |
81ecdfbb RW |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3094 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3095 | else |
81ecdfbb RW |
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3097 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3098 | fi |
3099 | ||
81ecdfbb | 3100 | |
bae7f79e ILT |
3101 | test -n "$AWK" && break |
3102 | done | |
3103 | ||
81ecdfbb RW |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3105 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3106 | set x ${MAKE-make} | |
3107 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3108 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3109 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3110 | else |
3111 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3112 | SHELL = /bin/sh |
bae7f79e | 3113 | all: |
81ecdfbb | 3114 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3115 | _ACEOF |
3116 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3117 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3118 | *@@@%%%=?*=@@@%%%*) | |
3119 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3120 | *) | |
3121 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3122 | esac | |
bae7f79e ILT |
3123 | rm -f conftest.make |
3124 | fi | |
81ecdfbb RW |
3125 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3127 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3128 | SET_MAKE= |
3129 | else | |
81ecdfbb RW |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3131 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3132 | SET_MAKE="MAKE=${MAKE-make}" |
3133 | fi | |
3134 | ||
3135 | rm -rf .tst 2>/dev/null | |
3136 | mkdir .tst 2>/dev/null | |
3137 | if test -d .tst; then | |
3138 | am__leading_dot=. | |
3139 | else | |
3140 | am__leading_dot=_ | |
3141 | fi | |
3142 | rmdir .tst 2>/dev/null | |
3143 | ||
81ecdfbb RW |
3144 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3145 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3146 | # is not polluted with repeated "-I." | |
3147 | am__isrc=' -I$(srcdir)' | |
3148 | # test to see if srcdir already configured | |
3149 | if test -f $srcdir/config.status; then | |
3150 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3151 | fi | |
bae7f79e ILT |
3152 | fi |
3153 | ||
3154 | # test whether we have cygpath | |
3155 | if test -z "$CYGPATH_W"; then | |
3156 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3157 | CYGPATH_W='cygpath -w' | |
3158 | else | |
3159 | CYGPATH_W=echo | |
3160 | fi | |
3161 | fi | |
3162 | ||
3163 | ||
3164 | # Define the identity of the package. | |
8486ee48 ILT |
3165 | PACKAGE='gold' |
3166 | VERSION='0.1' | |
bae7f79e ILT |
3167 | |
3168 | ||
3169 | cat >>confdefs.h <<_ACEOF | |
3170 | #define PACKAGE "$PACKAGE" | |
3171 | _ACEOF | |
3172 | ||
3173 | ||
3174 | cat >>confdefs.h <<_ACEOF | |
3175 | #define VERSION "$VERSION" | |
3176 | _ACEOF | |
3177 | ||
3178 | # Some tools Automake needs. | |
3179 | ||
3180 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3181 | ||
3182 | ||
3183 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3184 | ||
3185 | ||
3186 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3187 | ||
3188 | ||
3189 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3190 | ||
3191 | ||
3192 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3193 | ||
81ecdfbb RW |
3194 | # We need awk for the "check" target. The system "awk" is bad on |
3195 | # some platforms. | |
3196 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3197 | |
81ecdfbb | 3198 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3199 | |
81ecdfbb RW |
3200 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3201 | ||
3202 | ||
3203 | ||
3204 | ||
3205 | ||
3206 | ||
3207 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3208 | ||
3209 | ||
3210 | ||
3211 | # Check whether --with-sysroot was given. | |
3212 | if test "${with_sysroot+set}" = set; then : | |
3213 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3214 | else |
81ecdfbb | 3215 | sysroot=no |
bae7f79e ILT |
3216 | fi |
3217 | ||
81ecdfbb RW |
3218 | |
3219 | if test "$sysroot" = "yes"; then | |
3220 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3221 | elif test "$sysroot" = "no"; then | |
3222 | sysroot= | |
ad2d6943 ILT |
3223 | fi |
3224 | ||
3225 | sysroot_relocatable=0 | |
3226 | if test -n "$sysroot"; then | |
3227 | case "sysroot" in | |
3228 | "${prefix}" | "${prefix}/"* | \ | |
3229 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3230 | '${prefix}' | '${prefix}/'*| \ | |
3231 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3232 | sysroot_relocatable=1 | |
3233 | ;; | |
3234 | esac | |
3235 | fi | |
3236 | ||
3237 | ||
3238 | cat >>confdefs.h <<_ACEOF | |
3239 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3240 | _ACEOF | |
3241 | ||
3242 | ||
3243 | cat >>confdefs.h <<_ACEOF | |
3244 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3245 | _ACEOF | |
3246 | ||
3247 | ||
4fda8867 NC |
3248 | # Check whether --enable-gold was given. |
3249 | if test "${enable_gold+set}" = set; then : | |
3250 | enableval=$enable_gold; case "${enableval}" in | |
3251 | yes) | |
3252 | install_as_default=gold | |
3253 | installed_linker=ld | |
3254 | ;; | |
3255 | both/gold) | |
3256 | install_as_default=yes | |
3257 | installed_linker=ld.gold | |
3258 | ;; | |
3259 | both|both/ld) | |
3260 | install_as_default=no | |
3261 | installed_linker=ld.gold | |
3262 | ;; | |
3263 | *) | |
3264 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
3265 | ;; | |
3266 | esac | |
3267 | else | |
3268 | install_as_default=gold | |
3269 | installed_linker=ld | |
3270 | fi | |
3271 | ||
3272 | ||
3273 | ||
3274 | ||
81ecdfbb RW |
3275 | # Check whether --enable-threads was given. |
3276 | if test "${enable_threads+set}" = set; then : | |
3277 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3278 | yes | "") threads=yes ;; |
3279 | no) threads=no ;; | |
3280 | *) threads=yes ;; | |
3281 | esac | |
3282 | else | |
3283 | threads=no | |
81ecdfbb RW |
3284 | fi |
3285 | ||
fe9a4c12 ILT |
3286 | if test "$threads" = "yes"; then |
3287 | ||
81ecdfbb | 3288 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3289 | |
3290 | fi | |
81ecdfbb | 3291 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3292 | THREADS_TRUE= |
3293 | THREADS_FALSE='#' | |
3294 | else | |
3295 | THREADS_TRUE='#' | |
3296 | THREADS_FALSE= | |
3297 | fi | |
3298 | ||
3299 | ||
81ecdfbb RW |
3300 | # Check whether --enable-plugins was given. |
3301 | if test "${enable_plugins+set}" = set; then : | |
3302 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3303 | yes | "") plugins=yes ;; |
3304 | no) plugins=no ;; | |
3305 | *) plugins=yes ;; | |
3306 | esac | |
3307 | else | |
3308 | plugins=no | |
81ecdfbb RW |
3309 | fi |
3310 | ||
89fc3421 CC |
3311 | if test "$plugins" = "yes"; then |
3312 | ||
81ecdfbb | 3313 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3314 | |
3315 | fi | |
81ecdfbb | 3316 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3317 | PLUGINS_TRUE= |
3318 | PLUGINS_FALSE='#' | |
3319 | else | |
3320 | PLUGINS_TRUE='#' | |
3321 | PLUGINS_FALSE= | |
3322 | fi | |
3323 | ||
3324 | ||
81ecdfbb RW |
3325 | # Check whether --enable-targets was given. |
3326 | if test "${enable_targets+set}" = set; then : | |
3327 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3328 | yes | "") |
81ecdfbb | 3329 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3330 | ;; |
3331 | no) | |
3332 | enable_targets= | |
3333 | ;; | |
3334 | *) | |
3335 | enable_targets=$enableval | |
3336 | ;; | |
3337 | esac | |
3338 | else | |
3339 | # For now, enable all targets by default | |
3340 | enable_targets=all | |
3341 | ||
81ecdfbb RW |
3342 | fi |
3343 | ||
193a53d9 ILT |
3344 | |
3345 | # Canonicalize the enabled targets. | |
3346 | if test -n "$enable_targets"; then | |
3347 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3348 | result=`$ac_config_sub $targ 2>/dev/null` | |
3349 | if test -n "$result"; then | |
3350 | canon_targets="$canon_targets $result" | |
3351 | else | |
3352 | # Permit unrecognized target names, like "all". | |
3353 | canon_targets="$canon_targets $targ" | |
3354 | fi | |
3355 | done | |
3356 | fi | |
3357 | ||
3358 | # See which specific instantiations we need. | |
6df6da4a ILT |
3359 | targetobjs= |
3360 | all_targets= | |
fbfba508 ILT |
3361 | default_machine= |
3362 | default_size= | |
3363 | default_big_endian= | |
36959681 | 3364 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3365 | targ_32_little= |
3366 | targ_32_big= | |
81ecdfbb RW |
3367 | targ_64_little= |
3368 | targ_64_big= | |
3369 | for targ in $target $canon_targets; do | |
3370 | if test "$targ" = "all"; then | |
3371 | targ_32_little=yes | |
3372 | targ_32_big=yes | |
3373 | targ_64_little=yes | |
3374 | targ_64_big=yes | |
3375 | all_targets=yes | |
3376 | else | |
3377 | . ${srcdir}/configure.tgt | |
bae7f79e | 3378 | |
81ecdfbb RW |
3379 | if test "$targ_obj" = "UNKNOWN"; then |
3380 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3381 | else | |
3382 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3383 | if test "$targ_extra_obj" != ""; then | |
3384 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3385 | fi | |
3386 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3387 | if test "$targ_big_endian" = "true" \ | |
3388 | -o "$targ_extra_big_endian" = "true"; then | |
3389 | targ_32_big=yes | |
3390 | fi | |
3391 | if test "$targ_big_endian" = "false" \ | |
3392 | -o "$targ_extra_big_endian" = "false"; then | |
3393 | targ_32_little=yes | |
3394 | fi | |
3395 | fi | |
3396 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3397 | if test "$targ_big_endian" = "true" \ | |
3398 | -o "$targ_extra_big_endian" = "true"; then | |
3399 | targ_64_big=yes | |
3400 | fi | |
3401 | if test "$targ_big_endian" = "false" \ | |
3402 | -o "$targ_extra_big_endian" = "false"; then | |
3403 | targ_64_little=yes | |
3404 | fi | |
3405 | fi | |
bae7f79e | 3406 | |
81ecdfbb RW |
3407 | if test "$target" = "$targ"; then |
3408 | default_machine=$targ_machine | |
3409 | default_size=$targ_size | |
3410 | default_big_endian=$targ_big_endian | |
3411 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3412 | |
3413 | if test "$targ_obj" = "arm"; then | |
3414 | DEFAULT_TARGET_ARM_TRUE= | |
3415 | DEFAULT_TARGET_ARM_FALSE='#' | |
3416 | else | |
3417 | DEFAULT_TARGET_ARM_TRUE='#' | |
3418 | DEFAULT_TARGET_ARM_FALSE= | |
3419 | fi | |
3420 | ||
3421 | if test "$targ_obj" = "i386"; then | |
3422 | DEFAULT_TARGET_I386_TRUE= | |
3423 | DEFAULT_TARGET_I386_FALSE='#' | |
3424 | else | |
3425 | DEFAULT_TARGET_I386_TRUE='#' | |
3426 | DEFAULT_TARGET_I386_FALSE= | |
3427 | fi | |
3428 | ||
3429 | if test "$targ_obj" = "powerpc"; then | |
3430 | DEFAULT_TARGET_POWERPC_TRUE= | |
3431 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3432 | else | |
3433 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3434 | DEFAULT_TARGET_POWERPC_FALSE= | |
3435 | fi | |
3436 | ||
3437 | if test "$targ_obj" = "sparc"; then | |
3438 | DEFAULT_TARGET_SPARC_TRUE= | |
3439 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3440 | else | |
3441 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3442 | DEFAULT_TARGET_SPARC_FALSE= | |
3443 | fi | |
3444 | ||
3445 | if test "$targ_obj" = "x86_64"; then | |
3446 | DEFAULT_TARGET_X86_64_TRUE= | |
3447 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3448 | else | |
3449 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3450 | DEFAULT_TARGET_X86_64_FALSE= | |
3451 | fi | |
3452 | ||
81ecdfbb RW |
3453 | fi |
3454 | fi | |
bae7f79e | 3455 | fi |
81ecdfbb | 3456 | done |
bae7f79e | 3457 | |
6cfaf60b | 3458 | # Remove any duplicates. |
9109c078 ILT |
3459 | to="" |
3460 | for t in $targetobjs; do | |
3461 | case " $to " in | |
3462 | *" $t "*) ;; | |
3463 | *) to="$to $t" ;; | |
3464 | esac | |
3465 | done | |
3466 | targetobjs=$to | |
6cfaf60b | 3467 | |
81ecdfbb | 3468 | if test -n "$targ_32_little"; then |
bae7f79e | 3469 | |
81ecdfbb | 3470 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3471 | |
537b5f51 | 3472 | fi |
81ecdfbb | 3473 | if test -n "$targ_32_big"; then |
537b5f51 | 3474 | |
81ecdfbb | 3475 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3476 | |
81ecdfbb RW |
3477 | fi |
3478 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3479 | |
81ecdfbb | 3480 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3481 | |
81ecdfbb RW |
3482 | fi |
3483 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3484 | |
81ecdfbb | 3485 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3486 | |
bae7f79e | 3487 | fi |
bae7f79e | 3488 | |
81ecdfbb RW |
3489 | if test -n "$all_targets"; then |
3490 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3491 | else | |
3492 | TARGETOBJS="$targetobjs" | |
3493 | fi | |
bae7f79e | 3494 | |
bae7f79e ILT |
3495 | |
3496 | ||
81ecdfbb RW |
3497 | cat >>confdefs.h <<_ACEOF |
3498 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3499 | _ACEOF | |
bae7f79e | 3500 | |
bae7f79e | 3501 | |
81ecdfbb RW |
3502 | cat >>confdefs.h <<_ACEOF |
3503 | #define GOLD_DEFAULT_SIZE $default_size | |
3504 | _ACEOF | |
bae7f79e | 3505 | |
bae7f79e | 3506 | |
81ecdfbb RW |
3507 | cat >>confdefs.h <<_ACEOF |
3508 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3509 | _ACEOF | |
bae7f79e | 3510 | |
bae7f79e | 3511 | |
81ecdfbb RW |
3512 | cat >>confdefs.h <<_ACEOF |
3513 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3514 | _ACEOF | |
bae7f79e ILT |
3515 | |
3516 | ||
81ecdfbb RW |
3517 | ac_ext=c |
3518 | ac_cpp='$CPP $CPPFLAGS' | |
3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3522 | if test -n "$ac_tool_prefix"; then | |
3523 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3524 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3526 | $as_echo_n "checking for $ac_word... " >&6; } | |
3527 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3528 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3529 | else |
81ecdfbb RW |
3530 | if test -n "$CC"; then |
3531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3532 | else | |
3533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3534 | for as_dir in $PATH | |
3535 | do | |
3536 | IFS=$as_save_IFS | |
3537 | test -z "$as_dir" && as_dir=. | |
3538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3540 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3542 | break 2 | |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | IFS=$as_save_IFS | |
bae7f79e | 3547 | |
81ecdfbb RW |
3548 | fi |
3549 | fi | |
3550 | CC=$ac_cv_prog_CC | |
3551 | if test -n "$CC"; then | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3553 | $as_echo "$CC" >&6; } | |
3554 | else | |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3556 | $as_echo "no" >&6; } | |
3557 | fi | |
bae7f79e ILT |
3558 | |
3559 | ||
bae7f79e | 3560 | fi |
81ecdfbb RW |
3561 | if test -z "$ac_cv_prog_CC"; then |
3562 | ac_ct_CC=$CC | |
3563 | # Extract the first word of "gcc", so it can be a program name with args. | |
3564 | set dummy gcc; ac_word=$2 | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3566 | $as_echo_n "checking for $ac_word... " >&6; } | |
3567 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3568 | $as_echo_n "(cached) " >&6 | |
3569 | else | |
3570 | if test -n "$ac_ct_CC"; then | |
3571 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3572 | else | |
3573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3574 | for as_dir in $PATH | |
3575 | do | |
3576 | IFS=$as_save_IFS | |
3577 | test -z "$as_dir" && as_dir=. | |
3578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3580 | ac_cv_prog_ac_ct_CC="gcc" | |
3581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3582 | break 2 | |
3583 | fi | |
3584 | done | |
3585 | done | |
3586 | IFS=$as_save_IFS | |
bae7f79e | 3587 | |
81ecdfbb RW |
3588 | fi |
3589 | fi | |
3590 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3591 | if test -n "$ac_ct_CC"; then | |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3593 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3594 | else |
81ecdfbb RW |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3596 | $as_echo "no" >&6; } | |
bae7f79e | 3597 | fi |
bae7f79e | 3598 | |
81ecdfbb RW |
3599 | if test "x$ac_ct_CC" = x; then |
3600 | CC="" | |
3601 | else | |
3602 | case $cross_compiling:$ac_tool_warned in | |
3603 | yes:) | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3605 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3606 | ac_tool_warned=yes ;; | |
bae7f79e | 3607 | esac |
81ecdfbb RW |
3608 | CC=$ac_ct_CC |
3609 | fi | |
bae7f79e | 3610 | else |
81ecdfbb | 3611 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3612 | fi |
3613 | ||
81ecdfbb RW |
3614 | if test -z "$CC"; then |
3615 | if test -n "$ac_tool_prefix"; then | |
3616 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3617 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3619 | $as_echo_n "checking for $ac_word... " >&6; } | |
3620 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3621 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3622 | else |
81ecdfbb RW |
3623 | if test -n "$CC"; then |
3624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3625 | else | |
3626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3627 | for as_dir in $PATH |
3628 | do | |
3629 | IFS=$as_save_IFS | |
3630 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3631 | for ac_exec_ext in '' $ac_executable_extensions; do |
3632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3633 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3635 | break 2 |
3636 | fi | |
3637 | done | |
81ecdfbb RW |
3638 | done |
3639 | IFS=$as_save_IFS | |
bae7f79e | 3640 | |
bae7f79e | 3641 | fi |
81ecdfbb RW |
3642 | fi |
3643 | CC=$ac_cv_prog_CC | |
3644 | if test -n "$CC"; then | |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3646 | $as_echo "$CC" >&6; } | |
bae7f79e | 3647 | else |
81ecdfbb RW |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3649 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3650 | fi |
3651 | ||
3652 | ||
81ecdfbb RW |
3653 | fi |
3654 | fi | |
3655 | if test -z "$CC"; then | |
3656 | # Extract the first word of "cc", so it can be a program name with args. | |
3657 | set dummy cc; ac_word=$2 | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3659 | $as_echo_n "checking for $ac_word... " >&6; } | |
3660 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3661 | $as_echo_n "(cached) " >&6 | |
3662 | else | |
3663 | if test -n "$CC"; then | |
3664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3665 | else | |
3666 | ac_prog_rejected=no | |
3667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3668 | for as_dir in $PATH | |
3669 | do | |
3670 | IFS=$as_save_IFS | |
3671 | test -z "$as_dir" && as_dir=. | |
3672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3674 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3675 | ac_prog_rejected=yes | |
3676 | continue | |
3677 | fi | |
3678 | ac_cv_prog_CC="cc" | |
3679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3680 | break 2 | |
3681 | fi | |
3682 | done | |
3683 | done | |
3684 | IFS=$as_save_IFS | |
bae7f79e | 3685 | |
81ecdfbb RW |
3686 | if test $ac_prog_rejected = yes; then |
3687 | # We found a bogon in the path, so make sure we never use it. | |
3688 | set dummy $ac_cv_prog_CC | |
3689 | shift | |
3690 | if test $# != 0; then | |
3691 | # We chose a different compiler from the bogus one. | |
3692 | # However, it has the same basename, so the bogon will be chosen | |
3693 | # first if we set CC to just the basename; use the full file name. | |
3694 | shift | |
3695 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3696 | fi |
81ecdfbb RW |
3697 | fi |
3698 | fi | |
3699 | fi | |
3700 | CC=$ac_cv_prog_CC | |
3701 | if test -n "$CC"; then | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3703 | $as_echo "$CC" >&6; } | |
3704 | else | |
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3706 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3707 | fi |
3708 | ||
81ecdfbb RW |
3709 | |
3710 | fi | |
3711 | if test -z "$CC"; then | |
3712 | if test -n "$ac_tool_prefix"; then | |
3713 | for ac_prog in cl.exe | |
3714 | do | |
3715 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3716 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3718 | $as_echo_n "checking for $ac_word... " >&6; } | |
3719 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3720 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3721 | else |
81ecdfbb RW |
3722 | if test -n "$CC"; then |
3723 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3724 | else | |
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3726 | for as_dir in $PATH | |
3727 | do | |
3728 | IFS=$as_save_IFS | |
3729 | test -z "$as_dir" && as_dir=. | |
3730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3732 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3734 | break 2 | |
3735 | fi | |
3736 | done | |
3737 | done | |
3738 | IFS=$as_save_IFS | |
3739 | ||
3740 | fi | |
3741 | fi | |
3742 | CC=$ac_cv_prog_CC | |
3743 | if test -n "$CC"; then | |
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3745 | $as_echo "$CC" >&6; } | |
3746 | else | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3748 | $as_echo "no" >&6; } | |
bae7f79e | 3749 | fi |
bae7f79e | 3750 | |
81ecdfbb RW |
3751 | |
3752 | test -n "$CC" && break | |
3753 | done | |
3754 | fi | |
3755 | if test -z "$CC"; then | |
3756 | ac_ct_CC=$CC | |
3757 | for ac_prog in cl.exe | |
3758 | do | |
3759 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3760 | set dummy $ac_prog; ac_word=$2 | |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3762 | $as_echo_n "checking for $ac_word... " >&6; } | |
3763 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3764 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3765 | else |
81ecdfbb RW |
3766 | if test -n "$ac_ct_CC"; then |
3767 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3768 | else | |
3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3770 | for as_dir in $PATH | |
3771 | do | |
3772 | IFS=$as_save_IFS | |
3773 | test -z "$as_dir" && as_dir=. | |
3774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3776 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3778 | break 2 | |
3779 | fi | |
3780 | done | |
3781 | done | |
3782 | IFS=$as_save_IFS | |
3783 | ||
bae7f79e | 3784 | fi |
81ecdfbb RW |
3785 | fi |
3786 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3787 | if test -n "$ac_ct_CC"; then | |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3789 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3790 | else |
81ecdfbb RW |
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3792 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3793 | fi |
3794 | ||
bae7f79e | 3795 | |
81ecdfbb RW |
3796 | test -n "$ac_ct_CC" && break |
3797 | done | |
bae7f79e | 3798 | |
81ecdfbb RW |
3799 | if test "x$ac_ct_CC" = x; then |
3800 | CC="" | |
bae7f79e | 3801 | else |
81ecdfbb RW |
3802 | case $cross_compiling:$ac_tool_warned in |
3803 | yes:) | |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3806 | ac_tool_warned=yes ;; | |
3807 | esac | |
3808 | CC=$ac_ct_CC | |
bae7f79e | 3809 | fi |
bae7f79e ILT |
3810 | fi |
3811 | ||
bae7f79e | 3812 | fi |
bae7f79e | 3813 | |
81ecdfbb RW |
3814 | |
3815 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3816 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3817 | as_fn_error "no acceptable C compiler found in \$PATH | |
3818 | See \`config.log' for more details." "$LINENO" 5; } | |
3819 | ||
3820 | # Provide some information about the compiler. | |
3821 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3822 | set X $ac_compile | |
3823 | ac_compiler=$2 | |
3824 | for ac_option in --version -v -V -qversion; do | |
3825 | { { ac_try="$ac_compiler $ac_option >&5" | |
3826 | case "(($ac_try" in | |
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3829 | esac |
81ecdfbb RW |
3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3831 | $as_echo "$ac_try_echo"; } >&5 | |
3832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3833 | ac_status=$? | |
3834 | if test -s conftest.err; then | |
3835 | sed '10a\ | |
3836 | ... rest of stderr output deleted ... | |
3837 | 10q' conftest.err >conftest.er1 | |
3838 | cat conftest.er1 >&5 | |
3839 | rm -f conftest.er1 conftest.err | |
3840 | fi | |
3841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3842 | test $ac_status = 0; } | |
3843 | done | |
3844 | ||
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3846 | /* end confdefs.h. */ | |
3847 | ||
3848 | int | |
3849 | main () | |
3850 | { | |
3851 | ||
3852 | ; | |
3853 | return 0; | |
3854 | } | |
3855 | _ACEOF | |
3856 | ac_clean_files_save=$ac_clean_files | |
3857 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3858 | # Try to create an executable without -o first, disregard a.out. | |
3859 | # It will help us diagnose broken compilers, and finding out an intuition | |
3860 | # of exeext. | |
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3862 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3863 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3864 | ||
3865 | # The possible output files: | |
3866 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3867 | ||
3868 | ac_rmfiles= | |
3869 | for ac_file in $ac_files | |
3870 | do | |
3871 | case $ac_file in | |
3872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3873 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3874 | esac | |
3875 | done | |
3876 | rm -f $ac_rmfiles | |
3877 | ||
3878 | if { { ac_try="$ac_link_default" | |
3879 | case "(($ac_try" in | |
3880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3881 | *) ac_try_echo=$ac_try;; | |
3882 | esac | |
3883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3884 | $as_echo "$ac_try_echo"; } >&5 | |
3885 | (eval "$ac_link_default") 2>&5 | |
3886 | ac_status=$? | |
3887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3888 | test $ac_status = 0; }; then : | |
3889 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3890 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3891 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3892 | # so that the user can short-circuit this test for compilers unknown to | |
3893 | # Autoconf. | |
3894 | for ac_file in $ac_files '' | |
3895 | do | |
3896 | test -f "$ac_file" || continue | |
3897 | case $ac_file in | |
3898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3899 | ;; | |
3900 | [ab].out ) | |
3901 | # We found the default executable, but exeext='' is most | |
3902 | # certainly right. | |
3903 | break;; | |
3904 | *.* ) | |
3905 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3906 | then :; else | |
3907 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3908 | fi | |
3909 | # We set ac_cv_exeext here because the later test for it is not | |
3910 | # safe: cross compilers may not add the suffix if given an `-o' | |
3911 | # argument, so we may need to know it at that point already. | |
3912 | # Even if this section looks crufty: it has the advantage of | |
3913 | # actually working. | |
3914 | break;; | |
3915 | * ) | |
3916 | break;; | |
3917 | esac | |
3918 | done | |
3919 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3920 | ||
bae7f79e | 3921 | else |
81ecdfbb | 3922 | ac_file='' |
bae7f79e | 3923 | fi |
81ecdfbb RW |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3925 | $as_echo "$ac_file" >&6; } | |
3926 | if test -z "$ac_file"; then : | |
3927 | $as_echo "$as_me: failed program was:" >&5 | |
3928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 3929 | |
81ecdfbb RW |
3930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3932 | { as_fn_set_status 77 | |
3933 | as_fn_error "C compiler cannot create executables | |
3934 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3935 | fi | |
3936 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 3937 | |
81ecdfbb RW |
3938 | # Check that the compiler produces executables we can run. If not, either |
3939 | # the compiler is broken, or we cross compile. | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3941 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3942 | # If not cross compiling, check that we can run a simple program. | |
3943 | if test "$cross_compiling" != yes; then | |
3944 | if { ac_try='./$ac_file' | |
3945 | { { case "(($ac_try" in | |
3946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3947 | *) ac_try_echo=$ac_try;; | |
3948 | esac | |
3949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3950 | $as_echo "$ac_try_echo"; } >&5 | |
3951 | (eval "$ac_try") 2>&5 | |
3952 | ac_status=$? | |
3953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3954 | test $ac_status = 0; }; }; then | |
3955 | cross_compiling=no | |
3956 | else | |
3957 | if test "$cross_compiling" = maybe; then | |
3958 | cross_compiling=yes | |
bae7f79e | 3959 | else |
81ecdfbb RW |
3960 | { { $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 "cannot run C compiled programs. | |
3963 | If you meant to cross compile, use \`--host'. | |
3964 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 3965 | fi |
bae7f79e | 3966 | fi |
81ecdfbb RW |
3967 | fi |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3969 | $as_echo "yes" >&6; } | |
bae7f79e | 3970 | |
81ecdfbb RW |
3971 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3972 | ac_clean_files=$ac_clean_files_save | |
3973 | # Check that the compiler produces executables we can run. If not, either | |
3974 | # the compiler is broken, or we cross compile. | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3976 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3978 | $as_echo "$cross_compiling" >&6; } | |
3979 | ||
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3981 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3982 | if { { ac_try="$ac_link" | |
3983 | case "(($ac_try" in | |
3984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3985 | *) ac_try_echo=$ac_try;; | |
3986 | esac | |
3987 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3988 | $as_echo "$ac_try_echo"; } >&5 | |
3989 | (eval "$ac_link") 2>&5 | |
3990 | ac_status=$? | |
3991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3992 | test $ac_status = 0; }; then : | |
3993 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3994 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3995 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3996 | # `rm'. | |
3997 | for ac_file in conftest.exe conftest conftest.*; do | |
3998 | test -f "$ac_file" || continue | |
3999 | case $ac_file in | |
4000 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4001 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4002 | break;; | |
4003 | * ) break;; | |
4004 | esac | |
4005 | done | |
4006 | else | |
4007 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4009 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4010 | See \`config.log' for more details." "$LINENO" 5; } | |
4011 | fi | |
4012 | rm -f conftest$ac_cv_exeext | |
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4014 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4015 | |
81ecdfbb RW |
4016 | rm -f conftest.$ac_ext |
4017 | EXEEXT=$ac_cv_exeext | |
4018 | ac_exeext=$EXEEXT | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4020 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4021 | if test "${ac_cv_objext+set}" = set; then : | |
4022 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4023 | else |
81ecdfbb | 4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4025 | /* end confdefs.h. */ |
92e059d8 ILT |
4026 | |
4027 | int | |
4028 | main () | |
4029 | { | |
92e059d8 ILT |
4030 | |
4031 | ; | |
4032 | return 0; | |
4033 | } | |
4034 | _ACEOF | |
81ecdfbb RW |
4035 | rm -f conftest.o conftest.obj |
4036 | if { { ac_try="$ac_compile" | |
4037 | case "(($ac_try" in | |
4038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4039 | *) ac_try_echo=$ac_try;; | |
4040 | esac | |
4041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4042 | $as_echo "$ac_try_echo"; } >&5 | |
4043 | (eval "$ac_compile") 2>&5 | |
4044 | ac_status=$? | |
4045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4046 | test $ac_status = 0; }; then : | |
4047 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4048 | test -f "$ac_file" || continue; | |
4049 | case $ac_file in | |
4050 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4051 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4052 | break;; | |
4053 | esac | |
4054 | done | |
4055 | else | |
4056 | $as_echo "$as_me: failed program was:" >&5 | |
4057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4058 | ||
4059 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4060 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4061 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4062 | See \`config.log' for more details." "$LINENO" 5; } | |
4063 | fi | |
4064 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4065 | fi | |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4067 | $as_echo "$ac_cv_objext" >&6; } | |
4068 | OBJEXT=$ac_cv_objext | |
4069 | ac_objext=$OBJEXT | |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4071 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4072 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4073 | $as_echo_n "(cached) " >&6 | |
4074 | else | |
4075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4076 | /* end confdefs.h. */ |
92e059d8 ILT |
4077 | |
4078 | int | |
4079 | main () | |
4080 | { | |
81ecdfbb RW |
4081 | #ifndef __GNUC__ |
4082 | choke me | |
92e059d8 ILT |
4083 | #endif |
4084 | ||
4085 | ; | |
4086 | return 0; | |
4087 | } | |
4088 | _ACEOF | |
81ecdfbb RW |
4089 | if ac_fn_c_try_compile "$LINENO"; then : |
4090 | ac_compiler_gnu=yes | |
92e059d8 | 4091 | else |
81ecdfbb RW |
4092 | ac_compiler_gnu=no |
4093 | fi | |
4094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4095 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4096 | |
92e059d8 | 4097 | fi |
81ecdfbb RW |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4099 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4100 | if test $ac_compiler_gnu = yes; then | |
4101 | GCC=yes | |
92e059d8 | 4102 | else |
81ecdfbb RW |
4103 | GCC= |
4104 | fi | |
4105 | ac_test_CFLAGS=${CFLAGS+set} | |
4106 | ac_save_CFLAGS=$CFLAGS | |
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4108 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4109 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4110 | $as_echo_n "(cached) " >&6 | |
4111 | else | |
4112 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4113 | ac_c_werror_flag=yes | |
4114 | ac_cv_prog_cc_g=no | |
4115 | CFLAGS="-g" | |
4116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4117 | /* end confdefs.h. */ |
81ecdfbb | 4118 | |
92e059d8 ILT |
4119 | int |
4120 | main () | |
4121 | { | |
81ecdfbb | 4122 | |
92e059d8 ILT |
4123 | ; |
4124 | return 0; | |
4125 | } | |
4126 | _ACEOF | |
81ecdfbb RW |
4127 | if ac_fn_c_try_compile "$LINENO"; then : |
4128 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4129 | else |
81ecdfbb RW |
4130 | CFLAGS="" |
4131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4132 | /* end confdefs.h. */ |
81ecdfbb | 4133 | |
92e059d8 ILT |
4134 | int |
4135 | main () | |
4136 | { | |
81ecdfbb RW |
4137 | |
4138 | ; | |
4139 | return 0; | |
92e059d8 ILT |
4140 | } |
4141 | _ACEOF | |
81ecdfbb RW |
4142 | if ac_fn_c_try_compile "$LINENO"; then : |
4143 | ||
92e059d8 | 4144 | else |
81ecdfbb RW |
4145 | ac_c_werror_flag=$ac_save_c_werror_flag |
4146 | CFLAGS="-g" | |
4147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4148 | /* end confdefs.h. */ | |
92e059d8 | 4149 | |
81ecdfbb RW |
4150 | int |
4151 | main () | |
4152 | { | |
92e059d8 | 4153 | |
81ecdfbb RW |
4154 | ; |
4155 | return 0; | |
4156 | } | |
92e059d8 | 4157 | _ACEOF |
81ecdfbb RW |
4158 | if ac_fn_c_try_compile "$LINENO"; then : |
4159 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4160 | fi |
81ecdfbb | 4161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4162 | fi |
81ecdfbb | 4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4164 | fi |
81ecdfbb RW |
4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4166 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4167 | fi |
81ecdfbb RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4169 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4170 | if test "$ac_test_CFLAGS" = set; then | |
4171 | CFLAGS=$ac_save_CFLAGS | |
4172 | elif test $ac_cv_prog_cc_g = yes; then | |
4173 | if test "$GCC" = yes; then | |
4174 | CFLAGS="-g -O2" | |
4175 | else | |
4176 | CFLAGS="-g" | |
4177 | fi | |
6eee141f | 4178 | else |
81ecdfbb RW |
4179 | if test "$GCC" = yes; then |
4180 | CFLAGS="-O2" | |
4181 | else | |
4182 | CFLAGS= | |
4183 | fi | |
097ec620 | 4184 | fi |
81ecdfbb RW |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4186 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4187 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4188 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4189 | else |
81ecdfbb RW |
4190 | ac_cv_prog_cc_c89=no |
4191 | ac_save_CC=$CC | |
4192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4193 | /* end confdefs.h. */ | |
4194 | #include <stdarg.h> | |
4195 | #include <stdio.h> | |
4196 | #include <sys/types.h> | |
4197 | #include <sys/stat.h> | |
4198 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4199 | struct buf { int x; }; | |
4200 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4201 | static char *e (p, i) | |
4202 | char **p; | |
4203 | int i; | |
4204 | { | |
4205 | return p[i]; | |
4206 | } | |
4207 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4208 | { | |
4209 | char *s; | |
4210 | va_list v; | |
4211 | va_start (v,p); | |
4212 | s = g (p, va_arg (v,int)); | |
4213 | va_end (v); | |
4214 | return s; | |
4215 | } | |
6eee141f | 4216 | |
81ecdfbb RW |
4217 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4218 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4219 | These don't provoke an error unfortunately, instead are silently treated | |
4220 | as 'x'. The following induces an error, until -std is added to get | |
4221 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4222 | array size at least. It's necessary to write '\x00'==0 to get something | |
4223 | that's true only with -std. */ | |
4224 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4225 | |
81ecdfbb RW |
4226 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4227 | inside strings and character constants. */ | |
4228 | #define FOO(x) 'x' | |
4229 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4230 | |
81ecdfbb RW |
4231 | int test (int i, double x); |
4232 | struct s1 {int (*f) (int a);}; | |
4233 | struct s2 {int (*f) (double a);}; | |
4234 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4235 | int argc; | |
4236 | char **argv; | |
4237 | int | |
4238 | main () | |
4239 | { | |
4240 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4241 | ; | |
4242 | return 0; | |
4243 | } | |
097ec620 | 4244 | _ACEOF |
81ecdfbb RW |
4245 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4246 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4247 | do | |
4248 | CC="$ac_save_CC $ac_arg" | |
4249 | if ac_fn_c_try_compile "$LINENO"; then : | |
4250 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4251 | fi |
81ecdfbb RW |
4252 | rm -f core conftest.err conftest.$ac_objext |
4253 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4254 | done | |
4255 | rm -f conftest.$ac_ext | |
4256 | CC=$ac_save_CC | |
097ec620 | 4257 | |
097ec620 | 4258 | fi |
81ecdfbb RW |
4259 | # AC_CACHE_VAL |
4260 | case "x$ac_cv_prog_cc_c89" in | |
4261 | x) | |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4263 | $as_echo "none needed" >&6; } ;; | |
4264 | xno) | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4266 | $as_echo "unsupported" >&6; } ;; | |
4267 | *) | |
4268 | CC="$CC $ac_cv_prog_cc_c89" | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4270 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4271 | esac | |
4272 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4273 | |
81ecdfbb | 4274 | fi |
097ec620 | 4275 | |
81ecdfbb RW |
4276 | ac_ext=c |
4277 | ac_cpp='$CPP $CPPFLAGS' | |
4278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4281 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4282 | |
81ecdfbb | 4283 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4284 | |
155a0dd7 | 4285 | |
81ecdfbb RW |
4286 | am_make=${MAKE-make} |
4287 | cat > confinc << 'END' | |
4288 | am__doit: | |
4289 | @echo this is the am__doit target | |
4290 | .PHONY: am__doit | |
4291 | END | |
4292 | # If we don't find an include directive, just comment out the code. | |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4294 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4295 | am__include="#" | |
4296 | am__quote= | |
4297 | _am_result=none | |
4298 | # First try GNU make style include. | |
4299 | echo "include confinc" > confmf | |
4300 | # Ignore all kinds of additional output from `make'. | |
4301 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4302 | *the\ am__doit\ target*) | |
4303 | am__include=include | |
4304 | am__quote= | |
4305 | _am_result=GNU | |
4306 | ;; | |
4307 | esac | |
4308 | # Now try BSD make style include. | |
4309 | if test "$am__include" = "#"; then | |
4310 | echo '.include "confinc"' > confmf | |
4311 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4312 | *the\ am__doit\ target*) | |
4313 | am__include=.include | |
4314 | am__quote="\"" | |
4315 | _am_result=BSD | |
4316 | ;; | |
4317 | esac | |
155a0dd7 | 4318 | fi |
155a0dd7 | 4319 | |
155a0dd7 | 4320 | |
81ecdfbb RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4322 | $as_echo "$_am_result" >&6; } | |
4323 | rm -f confinc confmf | |
155a0dd7 | 4324 | |
81ecdfbb RW |
4325 | # Check whether --enable-dependency-tracking was given. |
4326 | if test "${enable_dependency_tracking+set}" = set; then : | |
4327 | enableval=$enable_dependency_tracking; | |
4328 | fi | |
155a0dd7 | 4329 | |
81ecdfbb RW |
4330 | if test "x$enable_dependency_tracking" != xno; then |
4331 | am_depcomp="$ac_aux_dir/depcomp" | |
4332 | AMDEPBACKSLASH='\' | |
4333 | fi | |
4334 | if test "x$enable_dependency_tracking" != xno; then | |
4335 | AMDEP_TRUE= | |
4336 | AMDEP_FALSE='#' | |
155a0dd7 | 4337 | else |
81ecdfbb RW |
4338 | AMDEP_TRUE='#' |
4339 | AMDEP_FALSE= | |
155a0dd7 ILT |
4340 | fi |
4341 | ||
4342 | ||
c2b45e22 | 4343 | |
81ecdfbb | 4344 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4345 | |
81ecdfbb RW |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4347 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4348 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4349 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4350 | else |
81ecdfbb RW |
4351 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4352 | # We make a subdir and do the tests there. Otherwise we can end up | |
4353 | # making bogus files that we don't know about and never remove. For | |
4354 | # instance it was reported that on HP-UX the gcc test will end up | |
4355 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4356 | # in D'. | |
4357 | mkdir conftest.dir | |
4358 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4359 | # using a relative directory. | |
4360 | cp "$am_depcomp" conftest.dir | |
4361 | cd conftest.dir | |
4362 | # We will build objects and dependencies in a subdirectory because | |
4363 | # it helps to detect inapplicable dependency modes. For instance | |
4364 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4365 | # side effect of compilation, but ICC will put the dependencies in | |
4366 | # the current directory while Tru64 will put them in the object | |
4367 | # directory. | |
4368 | mkdir sub | |
c2b45e22 | 4369 | |
81ecdfbb RW |
4370 | am_cv_CC_dependencies_compiler_type=none |
4371 | if test "$am_compiler_list" = ""; then | |
4372 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4373 | fi | |
4374 | am__universal=false | |
4375 | case " $depcc " in #( | |
4376 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4377 | esac | |
c2b45e22 | 4378 | |
81ecdfbb RW |
4379 | for depmode in $am_compiler_list; do |
4380 | # Setup a source with many dependencies, because some compilers | |
4381 | # like to wrap large dependency lists on column 80 (with \), and | |
4382 | # we should not choose a depcomp mode which is confused by this. | |
4383 | # | |
4384 | # We need to recreate these files for each test, as the compiler may | |
4385 | # overwrite some of them when testing with obscure command lines. | |
4386 | # This happens at least with the AIX C compiler. | |
4387 | : > sub/conftest.c | |
4388 | for i in 1 2 3 4 5 6; do | |
4389 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4390 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4391 | # Solaris 8's {/usr,}/bin/sh. | |
4392 | touch sub/conftst$i.h | |
4393 | done | |
4394 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4395 | |
81ecdfbb RW |
4396 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4397 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4398 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4399 | # versions had trouble with output in subdirs | |
4400 | am__obj=sub/conftest.${OBJEXT-o} | |
4401 | am__minus_obj="-o $am__obj" | |
4402 | case $depmode in | |
4403 | gcc) | |
4404 | # This depmode causes a compiler race in universal mode. | |
4405 | test "$am__universal" = false || continue | |
4406 | ;; | |
4407 | nosideeffect) | |
4408 | # after this tag, mechanisms are not by side-effect, so they'll | |
4409 | # only be used when explicitly requested | |
4410 | if test "x$enable_dependency_tracking" = xyes; then | |
4411 | continue | |
4412 | else | |
4413 | break | |
4414 | fi | |
4415 | ;; | |
4416 | msvisualcpp | msvcmsys) | |
4417 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4418 | # not run yet. These depmodes are late enough in the game, and | |
4419 | # so weak that their functioning should not be impacted. | |
4420 | am__obj=conftest.${OBJEXT-o} | |
4421 | am__minus_obj= | |
4422 | ;; | |
4423 | none) break ;; | |
4424 | esac | |
4425 | if depmode=$depmode \ | |
4426 | source=sub/conftest.c object=$am__obj \ | |
4427 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4428 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4429 | >/dev/null 2>conftest.err && | |
4430 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4431 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4432 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4433 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4434 | # icc doesn't choke on unknown options, it will just issue warnings | |
4435 | # or remarks (even with -Werror). So we grep stderr for any message | |
4436 | # that says an option was ignored or not supported. | |
4437 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4438 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4439 | # The diagnosis changed in icc 8.0: | |
4440 | # icc: Command line remark: option '-MP' not supported | |
4441 | if (grep 'ignoring option' conftest.err || | |
4442 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4443 | am_cv_CC_dependencies_compiler_type=$depmode | |
4444 | break | |
4445 | fi | |
4446 | fi | |
4447 | done | |
c2b45e22 | 4448 | |
81ecdfbb RW |
4449 | cd .. |
4450 | rm -rf conftest.dir | |
c2b45e22 | 4451 | else |
81ecdfbb | 4452 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4453 | fi |
c2b45e22 | 4454 | |
81ecdfbb RW |
4455 | fi |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4457 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4458 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4459 | |
81ecdfbb RW |
4460 | if |
4461 | test "x$enable_dependency_tracking" != xno \ | |
4462 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4463 | am__fastdepCC_TRUE= | |
4464 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4465 | else |
81ecdfbb RW |
4466 | am__fastdepCC_TRUE='#' |
4467 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4468 | fi |
4469 | ||
4470 | ||
81ecdfbb RW |
4471 | ac_ext=cpp |
4472 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4473 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4474 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4475 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4476 | if test -z "$CXX"; then | |
4477 | if test -n "$CCC"; then | |
4478 | CXX=$CCC | |
4479 | else | |
4480 | if test -n "$ac_tool_prefix"; then | |
4481 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4482 | do | |
4483 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4484 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4486 | $as_echo_n "checking for $ac_word... " >&6; } | |
4487 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4488 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4489 | else |
81ecdfbb RW |
4490 | if test -n "$CXX"; then |
4491 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4492 | else |
81ecdfbb RW |
4493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4494 | for as_dir in $PATH | |
4495 | do | |
4496 | IFS=$as_save_IFS | |
4497 | test -z "$as_dir" && as_dir=. | |
4498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4500 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4502 | break 2 | |
4503 | fi | |
4504 | done | |
4505 | done | |
4506 | IFS=$as_save_IFS | |
2fd32231 | 4507 | |
2fd32231 | 4508 | fi |
2fd32231 | 4509 | fi |
81ecdfbb RW |
4510 | CXX=$ac_cv_prog_CXX |
4511 | if test -n "$CXX"; then | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4513 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4514 | else |
81ecdfbb RW |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4516 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4517 | fi |
4518 | ||
4519 | ||
81ecdfbb RW |
4520 | test -n "$CXX" && break |
4521 | done | |
4522 | fi | |
4523 | if test -z "$CXX"; then | |
4524 | ac_ct_CXX=$CXX | |
4525 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4526 | do | |
4527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4528 | set dummy $ac_prog; ac_word=$2 | |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4530 | $as_echo_n "checking for $ac_word... " >&6; } | |
4531 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4532 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4533 | else |
81ecdfbb RW |
4534 | if test -n "$ac_ct_CXX"; then |
4535 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4536 | else |
81ecdfbb RW |
4537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4538 | for as_dir in $PATH | |
4539 | do | |
4540 | IFS=$as_save_IFS | |
4541 | test -z "$as_dir" && as_dir=. | |
4542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4544 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4546 | break 2 | |
4547 | fi | |
4548 | done | |
4549 | done | |
4550 | IFS=$as_save_IFS | |
1d1f116d | 4551 | |
1d1f116d | 4552 | fi |
1d1f116d | 4553 | fi |
81ecdfbb RW |
4554 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4555 | if test -n "$ac_ct_CXX"; then | |
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4557 | $as_echo "$ac_ct_CXX" >&6; } | |
4558 | else | |
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4560 | $as_echo "no" >&6; } | |
1d1f116d CD |
4561 | fi |
4562 | ||
4563 | ||
81ecdfbb RW |
4564 | test -n "$ac_ct_CXX" && break |
4565 | done | |
63402fe4 | 4566 | |
81ecdfbb RW |
4567 | if test "x$ac_ct_CXX" = x; then |
4568 | CXX="g++" | |
4569 | else | |
4570 | case $cross_compiling:$ac_tool_warned in | |
4571 | yes:) | |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4574 | ac_tool_warned=yes ;; | |
04bf7072 | 4575 | esac |
81ecdfbb RW |
4576 | CXX=$ac_ct_CXX |
4577 | fi | |
4578 | fi | |
04bf7072 | 4579 | |
81ecdfbb | 4580 | fi |
bae7f79e | 4581 | fi |
81ecdfbb RW |
4582 | # Provide some information about the compiler. |
4583 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4584 | set X $ac_compile | |
4585 | ac_compiler=$2 | |
4586 | for ac_option in --version -v -V -qversion; do | |
4587 | { { ac_try="$ac_compiler $ac_option >&5" | |
4588 | case "(($ac_try" in | |
4589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4590 | *) ac_try_echo=$ac_try;; | |
4591 | esac | |
4592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4593 | $as_echo "$ac_try_echo"; } >&5 | |
4594 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4595 | ac_status=$? | |
4596 | if test -s conftest.err; then | |
4597 | sed '10a\ | |
4598 | ... rest of stderr output deleted ... | |
4599 | 10q' conftest.err >conftest.er1 | |
4600 | cat conftest.er1 >&5 | |
4601 | rm -f conftest.er1 conftest.err | |
4602 | fi | |
4603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4604 | test $ac_status = 0; } | |
4605 | done | |
bae7f79e | 4606 | |
81ecdfbb RW |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4608 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4609 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4610 | $as_echo_n "(cached) " >&6 | |
4611 | else | |
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4613 | /* end confdefs.h. */ | |
4614 | ||
4615 | int | |
4616 | main () | |
4617 | { | |
4618 | #ifndef __GNUC__ | |
4619 | choke me | |
4620 | #endif | |
4621 | ||
4622 | ; | |
4623 | return 0; | |
4624 | } | |
4625 | _ACEOF | |
4626 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4627 | ac_compiler_gnu=yes | |
4628 | else | |
4629 | ac_compiler_gnu=no | |
bae7f79e | 4630 | fi |
81ecdfbb RW |
4631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4632 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4633 | |
bae7f79e | 4634 | fi |
81ecdfbb RW |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4636 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4637 | if test $ac_compiler_gnu = yes; then | |
4638 | GXX=yes | |
4639 | else | |
4640 | GXX= | |
4641 | fi | |
4642 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4643 | ac_save_CXXFLAGS=$CXXFLAGS | |
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4645 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4646 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4647 | $as_echo_n "(cached) " >&6 | |
4648 | else | |
4649 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4650 | ac_cxx_werror_flag=yes | |
4651 | ac_cv_prog_cxx_g=no | |
4652 | CXXFLAGS="-g" | |
4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4654 | /* end confdefs.h. */ | |
bae7f79e | 4655 | |
81ecdfbb RW |
4656 | int |
4657 | main () | |
4658 | { | |
bae7f79e | 4659 | |
81ecdfbb RW |
4660 | ; |
4661 | return 0; | |
4662 | } | |
4663 | _ACEOF | |
4664 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4665 | ac_cv_prog_cxx_g=yes | |
4666 | else | |
4667 | CXXFLAGS="" | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4669 | /* end confdefs.h. */ | |
bae7f79e | 4670 | |
81ecdfbb RW |
4671 | int |
4672 | main () | |
4673 | { | |
bae7f79e | 4674 | |
81ecdfbb RW |
4675 | ; |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
4679 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4680 | |
81ecdfbb RW |
4681 | else |
4682 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4683 | CXXFLAGS="-g" | |
4684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4685 | /* end confdefs.h. */ | |
bae7f79e | 4686 | |
81ecdfbb RW |
4687 | int |
4688 | main () | |
4689 | { | |
bae7f79e | 4690 | |
81ecdfbb RW |
4691 | ; |
4692 | return 0; | |
4693 | } | |
4694 | _ACEOF | |
4695 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4696 | ac_cv_prog_cxx_g=yes | |
4697 | fi | |
4698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4699 | fi | |
4700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4701 | fi | |
4702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4703 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4704 | fi | |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4706 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4707 | if test "$ac_test_CXXFLAGS" = set; then | |
4708 | CXXFLAGS=$ac_save_CXXFLAGS | |
4709 | elif test $ac_cv_prog_cxx_g = yes; then | |
4710 | if test "$GXX" = yes; then | |
4711 | CXXFLAGS="-g -O2" | |
4712 | else | |
4713 | CXXFLAGS="-g" | |
4714 | fi | |
4715 | else | |
4716 | if test "$GXX" = yes; then | |
4717 | CXXFLAGS="-O2" | |
4718 | else | |
4719 | CXXFLAGS= | |
4720 | fi | |
4721 | fi | |
4722 | ac_ext=c | |
4723 | ac_cpp='$CPP $CPPFLAGS' | |
4724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4727 | |
81ecdfbb | 4728 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4729 | |
81ecdfbb RW |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4731 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4732 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4733 | $as_echo_n "(cached) " >&6 | |
4734 | else | |
4735 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4736 | # We make a subdir and do the tests there. Otherwise we can end up | |
4737 | # making bogus files that we don't know about and never remove. For | |
4738 | # instance it was reported that on HP-UX the gcc test will end up | |
4739 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4740 | # in D'. | |
4741 | mkdir conftest.dir | |
4742 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4743 | # using a relative directory. | |
4744 | cp "$am_depcomp" conftest.dir | |
4745 | cd conftest.dir | |
4746 | # We will build objects and dependencies in a subdirectory because | |
4747 | # it helps to detect inapplicable dependency modes. For instance | |
4748 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4749 | # side effect of compilation, but ICC will put the dependencies in | |
4750 | # the current directory while Tru64 will put them in the object | |
4751 | # directory. | |
4752 | mkdir sub | |
bae7f79e | 4753 | |
81ecdfbb RW |
4754 | am_cv_CXX_dependencies_compiler_type=none |
4755 | if test "$am_compiler_list" = ""; then | |
4756 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4757 | fi | |
4758 | am__universal=false | |
4759 | case " $depcc " in #( | |
4760 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4761 | esac | |
bae7f79e | 4762 | |
81ecdfbb RW |
4763 | for depmode in $am_compiler_list; do |
4764 | # Setup a source with many dependencies, because some compilers | |
4765 | # like to wrap large dependency lists on column 80 (with \), and | |
4766 | # we should not choose a depcomp mode which is confused by this. | |
4767 | # | |
4768 | # We need to recreate these files for each test, as the compiler may | |
4769 | # overwrite some of them when testing with obscure command lines. | |
4770 | # This happens at least with the AIX C compiler. | |
4771 | : > sub/conftest.c | |
4772 | for i in 1 2 3 4 5 6; do | |
4773 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4774 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4775 | # Solaris 8's {/usr,}/bin/sh. | |
4776 | touch sub/conftst$i.h | |
4777 | done | |
4778 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4779 | |
81ecdfbb RW |
4780 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4781 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4782 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4783 | # versions had trouble with output in subdirs | |
4784 | am__obj=sub/conftest.${OBJEXT-o} | |
4785 | am__minus_obj="-o $am__obj" | |
4786 | case $depmode in | |
4787 | gcc) | |
4788 | # This depmode causes a compiler race in universal mode. | |
4789 | test "$am__universal" = false || continue | |
4790 | ;; | |
4791 | nosideeffect) | |
4792 | # after this tag, mechanisms are not by side-effect, so they'll | |
4793 | # only be used when explicitly requested | |
4794 | if test "x$enable_dependency_tracking" = xyes; then | |
4795 | continue | |
4796 | else | |
4797 | break | |
4798 | fi | |
4799 | ;; | |
4800 | msvisualcpp | msvcmsys) | |
4801 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4802 | # not run yet. These depmodes are late enough in the game, and | |
4803 | # so weak that their functioning should not be impacted. | |
4804 | am__obj=conftest.${OBJEXT-o} | |
4805 | am__minus_obj= | |
4806 | ;; | |
4807 | none) break ;; | |
4808 | esac | |
4809 | if depmode=$depmode \ | |
4810 | source=sub/conftest.c object=$am__obj \ | |
4811 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4812 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4813 | >/dev/null 2>conftest.err && | |
4814 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4815 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4816 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4817 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4818 | # icc doesn't choke on unknown options, it will just issue warnings | |
4819 | # or remarks (even with -Werror). So we grep stderr for any message | |
4820 | # that says an option was ignored or not supported. | |
4821 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4822 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4823 | # The diagnosis changed in icc 8.0: | |
4824 | # icc: Command line remark: option '-MP' not supported | |
4825 | if (grep 'ignoring option' conftest.err || | |
4826 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4827 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4828 | break | |
4829 | fi | |
4830 | fi | |
4831 | done | |
9201d894 | 4832 | |
81ecdfbb RW |
4833 | cd .. |
4834 | rm -rf conftest.dir | |
4835 | else | |
4836 | am_cv_CXX_dependencies_compiler_type=none | |
4837 | fi | |
9201d894 | 4838 | |
81ecdfbb RW |
4839 | fi |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4841 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4842 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4843 | |
81ecdfbb RW |
4844 | if |
4845 | test "x$enable_dependency_tracking" != xno \ | |
4846 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4847 | am__fastdepCXX_TRUE= | |
4848 | am__fastdepCXX_FALSE='#' | |
4849 | else | |
4850 | am__fastdepCXX_TRUE='#' | |
4851 | am__fastdepCXX_FALSE= | |
4852 | fi | |
9201d894 | 4853 | |
9201d894 | 4854 | |
81ecdfbb RW |
4855 | for ac_prog in 'bison -y' byacc |
4856 | do | |
4857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4858 | set dummy $ac_prog; ac_word=$2 | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4860 | $as_echo_n "checking for $ac_word... " >&6; } | |
4861 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
4862 | $as_echo_n "(cached) " >&6 | |
9201d894 | 4863 | else |
81ecdfbb RW |
4864 | if test -n "$YACC"; then |
4865 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4866 | else | |
4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4868 | for as_dir in $PATH | |
4869 | do | |
4870 | IFS=$as_save_IFS | |
4871 | test -z "$as_dir" && as_dir=. | |
4872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4874 | ac_cv_prog_YACC="$ac_prog" | |
4875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4876 | break 2 | |
4877 | fi | |
4878 | done | |
4879 | done | |
4880 | IFS=$as_save_IFS | |
9201d894 | 4881 | |
9201d894 | 4882 | fi |
9201d894 | 4883 | fi |
81ecdfbb RW |
4884 | YACC=$ac_cv_prog_YACC |
4885 | if test -n "$YACC"; then | |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
4887 | $as_echo "$YACC" >&6; } | |
4888 | else | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4890 | $as_echo "no" >&6; } | |
9201d894 | 4891 | fi |
9201d894 | 4892 | |
2f35ab9b | 4893 | |
81ecdfbb RW |
4894 | test -n "$YACC" && break |
4895 | done | |
4896 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 4897 | |
81ecdfbb RW |
4898 | if test -n "$ac_tool_prefix"; then |
4899 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4900 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4902 | $as_echo_n "checking for $ac_word... " >&6; } | |
4903 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4904 | $as_echo_n "(cached) " >&6 | |
4905 | else | |
4906 | if test -n "$RANLIB"; then | |
4907 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4908 | else | |
4909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4910 | for as_dir in $PATH | |
82dcae9d | 4911 | do |
81ecdfbb RW |
4912 | IFS=$as_save_IFS |
4913 | test -z "$as_dir" && as_dir=. | |
4914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4916 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4918 | break 2 | |
4919 | fi | |
4920 | done | |
4921 | done | |
4922 | IFS=$as_save_IFS | |
82dcae9d | 4923 | |
81ecdfbb RW |
4924 | fi |
4925 | fi | |
4926 | RANLIB=$ac_cv_prog_RANLIB | |
4927 | if test -n "$RANLIB"; then | |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4929 | $as_echo "$RANLIB" >&6; } | |
4930 | else | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4932 | $as_echo "no" >&6; } | |
4933 | fi | |
82dcae9d | 4934 | |
82dcae9d | 4935 | |
81ecdfbb RW |
4936 | fi |
4937 | if test -z "$ac_cv_prog_RANLIB"; then | |
4938 | ac_ct_RANLIB=$RANLIB | |
4939 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4940 | set dummy ranlib; ac_word=$2 | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4942 | $as_echo_n "checking for $ac_word... " >&6; } | |
4943 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4944 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 4945 | else |
81ecdfbb RW |
4946 | if test -n "$ac_ct_RANLIB"; then |
4947 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4948 | else | |
4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4950 | for as_dir in $PATH | |
4951 | do | |
4952 | IFS=$as_save_IFS | |
4953 | test -z "$as_dir" && as_dir=. | |
4954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4956 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4958 | break 2 | |
4959 | fi | |
4960 | done | |
4961 | done | |
4962 | IFS=$as_save_IFS | |
82dcae9d | 4963 | |
82dcae9d | 4964 | fi |
82dcae9d | 4965 | fi |
81ecdfbb RW |
4966 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4967 | if test -n "$ac_ct_RANLIB"; then | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4969 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 4970 | else |
81ecdfbb RW |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4972 | $as_echo "no" >&6; } | |
4973 | fi | |
4974 | ||
4975 | if test "x$ac_ct_RANLIB" = x; then | |
4976 | RANLIB=":" | |
4977 | else | |
4978 | case $cross_compiling:$ac_tool_warned in | |
4979 | yes:) | |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4981 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4982 | ac_tool_warned=yes ;; | |
82dcae9d | 4983 | esac |
81ecdfbb RW |
4984 | RANLIB=$ac_ct_RANLIB |
4985 | fi | |
4986 | else | |
4987 | RANLIB="$ac_cv_prog_RANLIB" | |
4988 | fi | |
82dcae9d | 4989 | |
81ecdfbb RW |
4990 | |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4992 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4993 | LN_S=$as_ln_s | |
4994 | if test "$LN_S" = "ln -s"; then | |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4996 | $as_echo "yes" >&6; } | |
4997 | else | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4999 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5000 | fi |
82dcae9d ILT |
5001 | |
5002 | ||
5003 | ||
9a0910c3 ILT |
5004 | ac_ext=c |
5005 | ac_cpp='$CPP $CPPFLAGS' | |
5006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5010 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5011 | # On Suns, sometimes $CPP names a directory. |
5012 | if test -n "$CPP" && test -d "$CPP"; then | |
5013 | CPP= | |
5014 | fi | |
5015 | if test -z "$CPP"; then | |
81ecdfbb RW |
5016 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5017 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5018 | else |
5019 | # Double quotes because CPP needs to be expanded | |
5020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5021 | do | |
5022 | ac_preproc_ok=false | |
5023 | for ac_c_preproc_warn_flag in '' yes | |
5024 | do | |
5025 | # Use a header file that comes with gcc, so configuring glibc | |
5026 | # with a fresh cross-compiler works. | |
5027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5028 | # <limits.h> exists even on freestanding compilers. | |
5029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5030 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5032 | /* end confdefs.h. */ |
5033 | #ifdef __STDC__ | |
5034 | # include <limits.h> | |
5035 | #else | |
5036 | # include <assert.h> | |
5037 | #endif | |
5038 | Syntax error | |
5039 | _ACEOF | |
81ecdfbb | 5040 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5041 | |
81ecdfbb | 5042 | else |
9a0910c3 ILT |
5043 | # Broken: fails on valid input. |
5044 | continue | |
5045 | fi | |
5046 | rm -f conftest.err conftest.$ac_ext | |
5047 | ||
81ecdfbb | 5048 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5049 | # can be detected and how. |
81ecdfbb | 5050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5051 | /* end confdefs.h. */ |
5052 | #include <ac_nonexistent.h> | |
5053 | _ACEOF | |
81ecdfbb | 5054 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5055 | # Broken: success on invalid input. |
5056 | continue | |
5057 | else | |
9a0910c3 ILT |
5058 | # Passes both tests. |
5059 | ac_preproc_ok=: | |
5060 | break | |
5061 | fi | |
5062 | rm -f conftest.err conftest.$ac_ext | |
5063 | ||
5064 | done | |
5065 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5066 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5067 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5068 | break |
5069 | fi | |
5070 | ||
5071 | done | |
5072 | ac_cv_prog_CPP=$CPP | |
5073 | ||
5074 | fi | |
5075 | CPP=$ac_cv_prog_CPP | |
5076 | else | |
5077 | ac_cv_prog_CPP=$CPP | |
5078 | fi | |
81ecdfbb RW |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5080 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5081 | ac_preproc_ok=false |
5082 | for ac_c_preproc_warn_flag in '' yes | |
5083 | do | |
5084 | # Use a header file that comes with gcc, so configuring glibc | |
5085 | # with a fresh cross-compiler works. | |
5086 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5087 | # <limits.h> exists even on freestanding compilers. | |
5088 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5089 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5091 | /* end confdefs.h. */ |
5092 | #ifdef __STDC__ | |
5093 | # include <limits.h> | |
5094 | #else | |
5095 | # include <assert.h> | |
5096 | #endif | |
5097 | Syntax error | |
5098 | _ACEOF | |
81ecdfbb | 5099 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5100 | |
81ecdfbb | 5101 | else |
9a0910c3 ILT |
5102 | # Broken: fails on valid input. |
5103 | continue | |
5104 | fi | |
5105 | rm -f conftest.err conftest.$ac_ext | |
5106 | ||
81ecdfbb | 5107 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5108 | # can be detected and how. |
81ecdfbb | 5109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5110 | /* end confdefs.h. */ |
5111 | #include <ac_nonexistent.h> | |
5112 | _ACEOF | |
81ecdfbb | 5113 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5114 | # Broken: success on invalid input. |
5115 | continue | |
5116 | else | |
9a0910c3 ILT |
5117 | # Passes both tests. |
5118 | ac_preproc_ok=: | |
5119 | break | |
5120 | fi | |
5121 | rm -f conftest.err conftest.$ac_ext | |
5122 | ||
5123 | done | |
5124 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5125 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5126 | if $ac_preproc_ok; then : |
5127 | ||
9a0910c3 | 5128 | else |
81ecdfbb RW |
5129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5131 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5132 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5133 | fi |
5134 | ||
5135 | ac_ext=c | |
5136 | ac_cpp='$CPP $CPPFLAGS' | |
5137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5140 | ||
5141 | ||
81ecdfbb RW |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5143 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5144 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5145 | $as_echo_n "(cached) " >&6 | |
5146 | else | |
5147 | if test -z "$GREP"; then | |
5148 | ac_path_GREP_found=false | |
5149 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | test -z "$as_dir" && as_dir=. | |
5155 | for ac_prog in grep ggrep; do | |
5156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5157 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5158 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5159 | # Check for GNU ac_path_GREP and select it if it is found. | |
5160 | # Check for GNU $ac_path_GREP | |
5161 | case `"$ac_path_GREP" --version 2>&1` in | |
5162 | *GNU*) | |
5163 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5164 | *) | |
5165 | ac_count=0 | |
5166 | $as_echo_n 0123456789 >"conftest.in" | |
5167 | while : | |
5168 | do | |
5169 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5170 | mv "conftest.tmp" "conftest.in" | |
5171 | cp "conftest.in" "conftest.nl" | |
5172 | $as_echo 'GREP' >> "conftest.nl" | |
5173 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5174 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5175 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5176 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5177 | # Best one so far, save it but keep looking for a better one | |
5178 | ac_cv_path_GREP="$ac_path_GREP" | |
5179 | ac_path_GREP_max=$ac_count | |
5180 | fi | |
5181 | # 10*(2^10) chars as input seems more than enough | |
5182 | test $ac_count -gt 10 && break | |
5183 | done | |
5184 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5185 | esac | |
5186 | ||
5187 | $ac_path_GREP_found && break 3 | |
5188 | done | |
5189 | done | |
5190 | done | |
5191 | IFS=$as_save_IFS | |
5192 | if test -z "$ac_cv_path_GREP"; then | |
5193 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5194 | fi | |
5195 | else | |
5196 | ac_cv_path_GREP=$GREP | |
5197 | fi | |
5198 | ||
5199 | fi | |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5201 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5202 | GREP="$ac_cv_path_GREP" | |
5203 | ||
5204 | ||
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5206 | $as_echo_n "checking for egrep... " >&6; } | |
5207 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5208 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5209 | else |
81ecdfbb RW |
5210 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5211 | then ac_cv_path_EGREP="$GREP -E" | |
5212 | else | |
5213 | if test -z "$EGREP"; then | |
5214 | ac_path_EGREP_found=false | |
5215 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5217 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5218 | do | |
5219 | IFS=$as_save_IFS | |
5220 | test -z "$as_dir" && as_dir=. | |
5221 | for ac_prog in egrep; do | |
5222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5223 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5224 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5225 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5226 | # Check for GNU $ac_path_EGREP | |
5227 | case `"$ac_path_EGREP" --version 2>&1` in | |
5228 | *GNU*) | |
5229 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5230 | *) | |
5231 | ac_count=0 | |
5232 | $as_echo_n 0123456789 >"conftest.in" | |
5233 | while : | |
5234 | do | |
5235 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5236 | mv "conftest.tmp" "conftest.in" | |
5237 | cp "conftest.in" "conftest.nl" | |
5238 | $as_echo 'EGREP' >> "conftest.nl" | |
5239 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5240 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5241 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5242 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5243 | # Best one so far, save it but keep looking for a better one | |
5244 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5245 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5246 | fi |
81ecdfbb RW |
5247 | # 10*(2^10) chars as input seems more than enough |
5248 | test $ac_count -gt 10 && break | |
5249 | done | |
5250 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5251 | esac | |
5252 | ||
5253 | $ac_path_EGREP_found && break 3 | |
5254 | done | |
5255 | done | |
5256 | done | |
5257 | IFS=$as_save_IFS | |
5258 | if test -z "$ac_cv_path_EGREP"; then | |
5259 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5260 | fi | |
5261 | else | |
5262 | ac_cv_path_EGREP=$EGREP | |
5263 | fi | |
5264 | ||
5265 | fi | |
9a0910c3 | 5266 | fi |
81ecdfbb RW |
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5268 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5269 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5270 | |
5271 | ||
81ecdfbb RW |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5273 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5274 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5275 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5276 | else |
81ecdfbb | 5277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5278 | /* end confdefs.h. */ |
5279 | #include <stdlib.h> | |
5280 | #include <stdarg.h> | |
5281 | #include <string.h> | |
5282 | #include <float.h> | |
5283 | ||
5284 | int | |
5285 | main () | |
5286 | { | |
5287 | ||
5288 | ; | |
5289 | return 0; | |
5290 | } | |
5291 | _ACEOF | |
81ecdfbb | 5292 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5293 | ac_cv_header_stdc=yes |
5294 | else | |
81ecdfbb | 5295 | ac_cv_header_stdc=no |
9a0910c3 | 5296 | fi |
81ecdfbb | 5297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5298 | |
5299 | if test $ac_cv_header_stdc = yes; then | |
5300 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5302 | /* end confdefs.h. */ |
5303 | #include <string.h> | |
5304 | ||
5305 | _ACEOF | |
5306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5307 | $EGREP "memchr" >/dev/null 2>&1; then : |
5308 | ||
9a0910c3 ILT |
5309 | else |
5310 | ac_cv_header_stdc=no | |
5311 | fi | |
5312 | rm -f conftest* | |
5313 | ||
5314 | fi | |
5315 | ||
5316 | if test $ac_cv_header_stdc = yes; then | |
5317 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5319 | /* end confdefs.h. */ |
5320 | #include <stdlib.h> | |
5321 | ||
5322 | _ACEOF | |
5323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5324 | $EGREP "free" >/dev/null 2>&1; then : |
5325 | ||
9a0910c3 ILT |
5326 | else |
5327 | ac_cv_header_stdc=no | |
5328 | fi | |
5329 | rm -f conftest* | |
5330 | ||
5331 | fi | |
5332 | ||
5333 | if test $ac_cv_header_stdc = yes; then | |
5334 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5335 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5336 | : |
5337 | else | |
81ecdfbb | 5338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5339 | /* end confdefs.h. */ |
5340 | #include <ctype.h> | |
81ecdfbb | 5341 | #include <stdlib.h> |
9a0910c3 ILT |
5342 | #if ((' ' & 0x0FF) == 0x020) |
5343 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5344 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5345 | #else | |
5346 | # define ISLOWER(c) \ | |
5347 | (('a' <= (c) && (c) <= 'i') \ | |
5348 | || ('j' <= (c) && (c) <= 'r') \ | |
5349 | || ('s' <= (c) && (c) <= 'z')) | |
5350 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5351 | #endif | |
5352 | ||
5353 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5354 | int | |
5355 | main () | |
5356 | { | |
5357 | int i; | |
5358 | for (i = 0; i < 256; i++) | |
5359 | if (XOR (islower (i), ISLOWER (i)) | |
5360 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5361 | return 2; |
5362 | return 0; | |
9a0910c3 ILT |
5363 | } |
5364 | _ACEOF | |
81ecdfbb | 5365 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5366 | |
81ecdfbb RW |
5367 | else |
5368 | ac_cv_header_stdc=no | |
9a0910c3 | 5369 | fi |
81ecdfbb RW |
5370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5371 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5372 | fi |
81ecdfbb | 5373 | |
9a0910c3 ILT |
5374 | fi |
5375 | fi | |
81ecdfbb RW |
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5377 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5378 | if test $ac_cv_header_stdc = yes; then |
5379 | ||
81ecdfbb | 5380 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5381 | |
5382 | fi | |
5383 | ||
5384 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5385 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5386 | inttypes.h stdint.h unistd.h | |
5387 | do : | |
5388 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5389 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5390 | " | |
5391 | eval as_val=\$$as_ac_Header | |
5392 | if test "x$as_val" = x""yes; then : | |
5393 | cat >>confdefs.h <<_ACEOF | |
5394 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5395 | _ACEOF | |
9a0910c3 | 5396 | |
81ecdfbb | 5397 | fi |
9a0910c3 | 5398 | |
81ecdfbb | 5399 | done |
9a0910c3 ILT |
5400 | |
5401 | ||
5402 | ||
81ecdfbb RW |
5403 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5404 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5405 | MINIX=yes | |
5406 | else | |
5407 | MINIX= | |
5408 | fi | |
9a0910c3 ILT |
5409 | |
5410 | ||
81ecdfbb | 5411 | if test "$MINIX" = yes; then |
9a0910c3 | 5412 | |
81ecdfbb | 5413 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5414 | |
9a0910c3 | 5415 | |
81ecdfbb | 5416 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5417 | |
9a0910c3 | 5418 | |
81ecdfbb | 5419 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5420 | |
81ecdfbb | 5421 | fi |
9a0910c3 ILT |
5422 | |
5423 | ||
81ecdfbb RW |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5425 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5426 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5427 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5428 | else |
81ecdfbb | 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5430 | /* end confdefs.h. */ |
5431 | ||
81ecdfbb RW |
5432 | # define __EXTENSIONS__ 1 |
5433 | $ac_includes_default | |
9a0910c3 ILT |
5434 | int |
5435 | main () | |
5436 | { | |
81ecdfbb | 5437 | |
9a0910c3 ILT |
5438 | ; |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
81ecdfbb RW |
5442 | if ac_fn_c_try_compile "$LINENO"; then : |
5443 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5444 | else |
81ecdfbb | 5445 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5446 | fi |
81ecdfbb RW |
5447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5448 | fi | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5450 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5451 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5452 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5453 | |
81ecdfbb RW |
5454 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5455 | ||
5456 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5457 | |
81ecdfbb RW |
5458 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5459 | ||
5460 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | # If we haven't got the data from the intl directory, | |
5466 | # assume NLS is disabled. | |
5467 | USE_NLS=no | |
5468 | LIBINTL= | |
5469 | LIBINTL_DEP= | |
5470 | INCINTL= | |
5471 | XGETTEXT= | |
5472 | GMSGFMT= | |
5473 | POSUB= | |
5474 | ||
5475 | if test -f ../intl/config.intl; then | |
5476 | . ../intl/config.intl | |
9a0910c3 | 5477 | fi |
81ecdfbb RW |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5479 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5480 | if test x"$USE_NLS" != xyes; then | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5482 | $as_echo "no" >&6; } | |
5483 | else | |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5485 | $as_echo "yes" >&6; } | |
5486 | ||
5487 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5488 | ||
5489 | ||
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5491 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5492 | # Look for .po and .gmo files in the source directory. | |
5493 | CATALOGS= | |
5494 | XLINGUAS= | |
5495 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5496 | # If there aren't any .gmo files the shell will give us the | |
5497 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5498 | # weeded out. | |
5499 | case "$cat" in *\**) | |
5500 | continue;; | |
5501 | esac | |
5502 | # The quadruple backslash is collapsed to a double backslash | |
5503 | # by the backticks, then collapsed again by the double quotes, | |
5504 | # leaving us with one backslash in the sed expression (right | |
5505 | # before the dot that mustn't act as a wildcard). | |
5506 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5507 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5508 | # The user is allowed to set LINGUAS to a list of languages to | |
5509 | # install catalogs for. If it's empty that means "all of them." | |
5510 | if test "x$LINGUAS" = x; then | |
5511 | CATALOGS="$CATALOGS $cat" | |
5512 | XLINGUAS="$XLINGUAS $lang" | |
5513 | else | |
5514 | case "$LINGUAS" in *$lang*) | |
5515 | CATALOGS="$CATALOGS $cat" | |
5516 | XLINGUAS="$XLINGUAS $lang" | |
5517 | ;; | |
5518 | esac | |
5519 | fi | |
9a0910c3 | 5520 | done |
81ecdfbb RW |
5521 | LINGUAS="$XLINGUAS" |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5523 | $as_echo "$LINGUAS" >&6; } | |
5524 | ||
5525 | ||
5526 | DATADIRNAME=share | |
5527 | ||
5528 | INSTOBJEXT=.mo | |
5529 | ||
5530 | GENCAT=gencat | |
5531 | ||
5532 | CATOBJEXT=.gmo | |
9a0910c3 | 5533 | |
9a0910c3 | 5534 | fi |
9a0910c3 | 5535 | |
81ecdfbb RW |
5536 | MKINSTALLDIRS= |
5537 | if test -n "$ac_aux_dir"; then | |
5538 | case "$ac_aux_dir" in | |
5539 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5540 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5541 | esac | |
5542 | fi | |
5543 | if test -z "$MKINSTALLDIRS"; then | |
5544 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5545 | fi | |
5546 | ||
5547 | ||
5548 | ||
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5550 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5551 | # Check whether --enable-nls was given. | |
5552 | if test "${enable_nls+set}" = set; then : | |
5553 | enableval=$enable_nls; USE_NLS=$enableval | |
5554 | else | |
5555 | USE_NLS=yes | |
9a0910c3 | 5556 | fi |
9a0910c3 | 5557 | |
81ecdfbb RW |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5559 | $as_echo "$USE_NLS" >&6; } | |
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | # Prepare PATH_SEPARATOR. | |
5567 | # The user is always right. | |
5568 | if test "${PATH_SEPARATOR+set}" != set; then | |
5569 | echo "#! /bin/sh" >conf$$.sh | |
5570 | echo "exit 0" >>conf$$.sh | |
5571 | chmod +x conf$$.sh | |
5572 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5573 | PATH_SEPARATOR=';' | |
9a0910c3 | 5574 | else |
81ecdfbb | 5575 | PATH_SEPARATOR=: |
9a0910c3 | 5576 | fi |
81ecdfbb | 5577 | rm -f conf$$.sh |
9a0910c3 | 5578 | fi |
81ecdfbb RW |
5579 | |
5580 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5581 | # as systems may use methods other than mode bits to determine executability. | |
5582 | cat >conf$$.file <<_ASEOF | |
5583 | #! /bin/sh | |
5584 | exit 0 | |
5585 | _ASEOF | |
5586 | chmod +x conf$$.file | |
5587 | if test -x conf$$.file >/dev/null 2>&1; then | |
5588 | ac_executable_p="test -x" | |
9a0910c3 | 5589 | else |
81ecdfbb RW |
5590 | ac_executable_p="test -f" |
5591 | fi | |
5592 | rm -f conf$$.file | |
9a0910c3 | 5593 | |
81ecdfbb RW |
5594 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5595 | set dummy msgfmt; ac_word=$2 | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5597 | $as_echo_n "checking for $ac_word... " >&6; } | |
5598 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5599 | $as_echo_n "(cached) " >&6 | |
5600 | else | |
5601 | case "$MSGFMT" in | |
5602 | [\\/]* | ?:[\\/]*) | |
5603 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5604 | ;; | |
5605 | *) | |
5606 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5607 | for ac_dir in $PATH; do | |
5608 | IFS="$ac_save_IFS" | |
5609 | test -z "$ac_dir" && ac_dir=. | |
5610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5611 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5612 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5613 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5614 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5615 | break 2 | |
5616 | fi | |
5617 | fi | |
5618 | done | |
5619 | done | |
5620 | IFS="$ac_save_IFS" | |
5621 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5622 | ;; | |
5623 | esac | |
9a0910c3 | 5624 | fi |
81ecdfbb RW |
5625 | MSGFMT="$ac_cv_path_MSGFMT" |
5626 | if test "$MSGFMT" != ":"; then | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5628 | $as_echo "$MSGFMT" >&6; } | |
5629 | else | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5631 | $as_echo "no" >&6; } | |
5632 | fi | |
5633 | ||
5634 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5635 | set dummy gmsgfmt; ac_word=$2 | |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5637 | $as_echo_n "checking for $ac_word... " >&6; } | |
5638 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5639 | $as_echo_n "(cached) " >&6 | |
5640 | else | |
5641 | case $GMSGFMT in | |
5642 | [\\/]* | ?:[\\/]*) | |
5643 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5644 | ;; | |
5645 | *) | |
5646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5647 | for as_dir in $PATH | |
5648 | do | |
5649 | IFS=$as_save_IFS | |
5650 | test -z "$as_dir" && as_dir=. | |
5651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5653 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5655 | break 2 | |
5656 | fi | |
5657 | done | |
5658 | done | |
5659 | IFS=$as_save_IFS | |
9a0910c3 | 5660 | |
81ecdfbb RW |
5661 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5662 | ;; | |
9a0910c3 | 5663 | esac |
81ecdfbb RW |
5664 | fi |
5665 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5666 | if test -n "$GMSGFMT"; then | |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5668 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5669 | else |
81ecdfbb RW |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5671 | $as_echo "no" >&6; } | |
9a0910c3 | 5672 | fi |
9a0910c3 | 5673 | |
9a0910c3 | 5674 | |
9a0910c3 | 5675 | |
9a0910c3 | 5676 | |
81ecdfbb RW |
5677 | # Prepare PATH_SEPARATOR. |
5678 | # The user is always right. | |
5679 | if test "${PATH_SEPARATOR+set}" != set; then | |
5680 | echo "#! /bin/sh" >conf$$.sh | |
5681 | echo "exit 0" >>conf$$.sh | |
5682 | chmod +x conf$$.sh | |
5683 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5684 | PATH_SEPARATOR=';' | |
5685 | else | |
5686 | PATH_SEPARATOR=: | |
5687 | fi | |
5688 | rm -f conf$$.sh | |
9a0910c3 ILT |
5689 | fi |
5690 | ||
81ecdfbb RW |
5691 | # Find out how to test for executable files. Don't use a zero-byte file, |
5692 | # as systems may use methods other than mode bits to determine executability. | |
5693 | cat >conf$$.file <<_ASEOF | |
5694 | #! /bin/sh | |
5695 | exit 0 | |
5696 | _ASEOF | |
5697 | chmod +x conf$$.file | |
5698 | if test -x conf$$.file >/dev/null 2>&1; then | |
5699 | ac_executable_p="test -x" | |
7fcd0256 | 5700 | else |
81ecdfbb | 5701 | ac_executable_p="test -f" |
7fcd0256 | 5702 | fi |
81ecdfbb | 5703 | rm -f conf$$.file |
7fcd0256 | 5704 | |
81ecdfbb RW |
5705 | # Extract the first word of "xgettext", so it can be a program name with args. |
5706 | set dummy xgettext; ac_word=$2 | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5708 | $as_echo_n "checking for $ac_word... " >&6; } | |
5709 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5710 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5711 | else |
81ecdfbb RW |
5712 | case "$XGETTEXT" in |
5713 | [\\/]* | ?:[\\/]*) | |
5714 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5715 | ;; | |
5716 | *) | |
5717 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5718 | for ac_dir in $PATH; do | |
5719 | IFS="$ac_save_IFS" | |
5720 | test -z "$ac_dir" && ac_dir=. | |
5721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5722 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5723 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5724 | (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 | |
5725 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5726 | break 2 | |
5727 | fi | |
5728 | fi | |
5729 | done | |
5730 | done | |
5731 | IFS="$ac_save_IFS" | |
5732 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5733 | ;; | |
5734 | esac | |
54dc6425 | 5735 | fi |
81ecdfbb RW |
5736 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5737 | if test "$XGETTEXT" != ":"; then | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5739 | $as_echo "$XGETTEXT" >&6; } | |
5740 | else | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5742 | $as_echo "no" >&6; } | |
0639a6f6 | 5743 | fi |
0639a6f6 | 5744 | |
81ecdfbb | 5745 | rm -f messages.po |
0639a6f6 ILT |
5746 | |
5747 | ||
81ecdfbb RW |
5748 | # Prepare PATH_SEPARATOR. |
5749 | # The user is always right. | |
5750 | if test "${PATH_SEPARATOR+set}" != set; then | |
5751 | echo "#! /bin/sh" >conf$$.sh | |
5752 | echo "exit 0" >>conf$$.sh | |
5753 | chmod +x conf$$.sh | |
5754 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5755 | PATH_SEPARATOR=';' | |
5756 | else | |
5757 | PATH_SEPARATOR=: | |
5758 | fi | |
5759 | rm -f conf$$.sh | |
0639a6f6 | 5760 | fi |
0639a6f6 | 5761 | |
81ecdfbb RW |
5762 | # Find out how to test for executable files. Don't use a zero-byte file, |
5763 | # as systems may use methods other than mode bits to determine executability. | |
5764 | cat >conf$$.file <<_ASEOF | |
5765 | #! /bin/sh | |
5766 | exit 0 | |
5767 | _ASEOF | |
5768 | chmod +x conf$$.file | |
5769 | if test -x conf$$.file >/dev/null 2>&1; then | |
5770 | ac_executable_p="test -x" | |
54dc6425 | 5771 | else |
81ecdfbb | 5772 | ac_executable_p="test -f" |
54dc6425 | 5773 | fi |
81ecdfbb | 5774 | rm -f conf$$.file |
54dc6425 | 5775 | |
81ecdfbb RW |
5776 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5777 | set dummy msgmerge; ac_word=$2 | |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5779 | $as_echo_n "checking for $ac_word... " >&6; } | |
5780 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5781 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5782 | else |
81ecdfbb RW |
5783 | case "$MSGMERGE" in |
5784 | [\\/]* | ?:[\\/]*) | |
5785 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5786 | ;; | |
5787 | *) | |
5788 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5789 | for ac_dir in $PATH; do | |
5790 | IFS="$ac_save_IFS" | |
5791 | test -z "$ac_dir" && ac_dir=. | |
5792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5793 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5794 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5795 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5796 | break 2 | |
5797 | fi | |
5798 | fi | |
5799 | done | |
5800 | done | |
5801 | IFS="$ac_save_IFS" | |
5802 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5803 | ;; | |
5804 | esac | |
54dc6425 | 5805 | fi |
81ecdfbb RW |
5806 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5807 | if test "$MSGMERGE" != ":"; then | |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5809 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5810 | else |
81ecdfbb RW |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5812 | $as_echo "no" >&6; } | |
5813 | fi | |
0639a6f6 | 5814 | |
54dc6425 | 5815 | |
81ecdfbb RW |
5816 | if test "$GMSGFMT" != ":"; then |
5817 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5818 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5819 | : ; | |
5820 | else | |
5821 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5823 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5824 | GMSGFMT=":" | |
5825 | fi | |
5826 | fi | |
54dc6425 | 5827 | |
81ecdfbb RW |
5828 | if test "$XGETTEXT" != ":"; then |
5829 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5830 | (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 | |
5831 | : ; | |
5832 | else | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5834 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5835 | XGETTEXT=":" | |
5836 | fi | |
5837 | rm -f messages.po | |
5838 | fi | |
54dc6425 | 5839 | |
81ecdfbb | 5840 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5841 | |
54dc6425 ILT |
5842 | |
5843 | ||
81ecdfbb RW |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5845 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5846 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5847 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5848 | else |
81ecdfbb RW |
5849 | ac_cv_c_bigendian=unknown |
5850 | # See if we're dealing with a universal compiler. | |
5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5852 | /* end confdefs.h. */ |
81ecdfbb RW |
5853 | #ifndef __APPLE_CC__ |
5854 | not a universal capable compiler | |
5855 | #endif | |
5856 | typedef int dummy; | |
5857 | ||
5858 | _ACEOF | |
5859 | if ac_fn_c_try_compile "$LINENO"; then : | |
5860 | ||
5861 | # Check for potential -arch flags. It is not universal unless | |
5862 | # there are at least two -arch flags with different values. | |
5863 | ac_arch= | |
5864 | ac_prev= | |
5865 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5866 | if test -n "$ac_prev"; then | |
5867 | case $ac_word in | |
5868 | i?86 | x86_64 | ppc | ppc64) | |
5869 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5870 | ac_arch=$ac_word | |
5871 | else | |
5872 | ac_cv_c_bigendian=universal | |
5873 | break | |
5874 | fi | |
5875 | ;; | |
5876 | esac | |
5877 | ac_prev= | |
5878 | elif test "x$ac_word" = "x-arch"; then | |
5879 | ac_prev=arch | |
5880 | fi | |
5881 | done | |
5882 | fi | |
5883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5884 | if test $ac_cv_c_bigendian = unknown; then | |
5885 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5887 | /* end confdefs.h. */ | |
5888 | #include <sys/types.h> | |
5889 | #include <sys/param.h> | |
5890 | ||
0639a6f6 ILT |
5891 | int |
5892 | main () | |
5893 | { | |
81ecdfbb RW |
5894 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5895 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5896 | && LITTLE_ENDIAN) | |
5897 | bogus endian macros | |
5898 | #endif | |
54dc6425 | 5899 | |
81ecdfbb RW |
5900 | ; |
5901 | return 0; | |
5902 | } | |
15d5fa16 | 5903 | _ACEOF |
81ecdfbb RW |
5904 | if ac_fn_c_try_compile "$LINENO"; then : |
5905 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5907 | /* end confdefs.h. */ |
81ecdfbb RW |
5908 | #include <sys/types.h> |
5909 | #include <sys/param.h> | |
5910 | ||
0639a6f6 ILT |
5911 | int |
5912 | main () | |
5913 | { | |
81ecdfbb RW |
5914 | #if BYTE_ORDER != BIG_ENDIAN |
5915 | not big endian | |
5916 | #endif | |
0639a6f6 ILT |
5917 | |
5918 | ; | |
5919 | return 0; | |
5920 | } | |
15d5fa16 | 5921 | _ACEOF |
81ecdfbb RW |
5922 | if ac_fn_c_try_compile "$LINENO"; then : |
5923 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5924 | else |
81ecdfbb | 5925 | ac_cv_c_bigendian=no |
15d5fa16 | 5926 | fi |
81ecdfbb | 5927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 5928 | fi |
81ecdfbb RW |
5929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5930 | fi | |
5931 | if test $ac_cv_c_bigendian = unknown; then | |
5932 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5934 | /* end confdefs.h. */ | |
5935 | #include <limits.h> | |
0639a6f6 | 5936 | |
81ecdfbb RW |
5937 | int |
5938 | main () | |
5939 | { | |
5940 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5941 | bogus endian macros | |
5942 | #endif | |
0639a6f6 | 5943 | |
81ecdfbb RW |
5944 | ; |
5945 | return 0; | |
5946 | } | |
15d5fa16 | 5947 | _ACEOF |
81ecdfbb RW |
5948 | if ac_fn_c_try_compile "$LINENO"; then : |
5949 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5951 | /* end confdefs.h. */ |
81ecdfbb RW |
5952 | #include <limits.h> |
5953 | ||
0639a6f6 ILT |
5954 | int |
5955 | main () | |
5956 | { | |
81ecdfbb RW |
5957 | #ifndef _BIG_ENDIAN |
5958 | not big endian | |
5959 | #endif | |
0639a6f6 ILT |
5960 | |
5961 | ; | |
5962 | return 0; | |
5963 | } | |
15d5fa16 | 5964 | _ACEOF |
81ecdfbb RW |
5965 | if ac_fn_c_try_compile "$LINENO"; then : |
5966 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5967 | else |
81ecdfbb | 5968 | ac_cv_c_bigendian=no |
15d5fa16 | 5969 | fi |
81ecdfbb | 5970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 5971 | fi |
81ecdfbb RW |
5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5973 | fi | |
5974 | if test $ac_cv_c_bigendian = unknown; then | |
5975 | # Compile a test program. | |
5976 | if test "$cross_compiling" = yes; then : | |
5977 | # Try to guess by grepping values from an object file. | |
5978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5979 | /* end confdefs.h. */ | |
5980 | short int ascii_mm[] = | |
5981 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5982 | short int ascii_ii[] = | |
5983 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5984 | int use_ascii (int i) { | |
5985 | return ascii_mm[i] + ascii_ii[i]; | |
5986 | } | |
5987 | short int ebcdic_ii[] = | |
5988 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5989 | short int ebcdic_mm[] = | |
5990 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5991 | int use_ebcdic (int i) { | |
5992 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5993 | } | |
5994 | extern int foo; | |
15d5fa16 | 5995 | |
81ecdfbb RW |
5996 | int |
5997 | main () | |
5998 | { | |
5999 | return use_ascii (foo) == use_ebcdic (foo); | |
6000 | ; | |
6001 | return 0; | |
6002 | } | |
0639a6f6 | 6003 | _ACEOF |
81ecdfbb RW |
6004 | if ac_fn_c_try_compile "$LINENO"; then : |
6005 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6006 | ac_cv_c_bigendian=yes | |
6007 | fi | |
6008 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6009 | if test "$ac_cv_c_bigendian" = unknown; then | |
6010 | ac_cv_c_bigendian=no | |
6011 | else | |
6012 | # finding both strings is unlikely to happen, but who knows? | |
6013 | ac_cv_c_bigendian=unknown | |
6014 | fi | |
6015 | fi | |
54dc6425 | 6016 | fi |
81ecdfbb | 6017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6018 | else |
81ecdfbb | 6019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6020 | /* end confdefs.h. */ |
6021 | $ac_includes_default | |
0639a6f6 ILT |
6022 | int |
6023 | main () | |
6024 | { | |
81ecdfbb RW |
6025 | |
6026 | /* Are we little or big endian? From Harbison&Steele. */ | |
6027 | union | |
6028 | { | |
6029 | long int l; | |
6030 | char c[sizeof (long int)]; | |
6031 | } u; | |
6032 | u.l = 1; | |
6033 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6034 | |
6035 | ; | |
6036 | return 0; | |
6037 | } | |
54dc6425 | 6038 | _ACEOF |
81ecdfbb RW |
6039 | if ac_fn_c_try_run "$LINENO"; then : |
6040 | ac_cv_c_bigendian=no | |
54dc6425 | 6041 | else |
81ecdfbb | 6042 | ac_cv_c_bigendian=yes |
54dc6425 | 6043 | fi |
81ecdfbb RW |
6044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6045 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6046 | fi |
54dc6425 | 6047 | |
81ecdfbb RW |
6048 | fi |
6049 | fi | |
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6051 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6052 | case $ac_cv_c_bigendian in #( | |
6053 | yes) | |
6054 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6055 | ;; #( | |
6056 | no) | |
6057 | ;; #( | |
6058 | universal) | |
6059 | ||
6060 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6061 | ||
6062 | ;; #( | |
6063 | *) | |
6064 | as_fn_error "unknown endianness | |
6065 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6066 | esac | |
0639a6f6 ILT |
6067 | |
6068 | ||
0639a6f6 ILT |
6069 | |
6070 | ||
81ecdfbb RW |
6071 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6072 | NATIVE_LINKER_TRUE= | |
6073 | NATIVE_LINKER_FALSE='#' | |
6074 | else | |
6075 | NATIVE_LINKER_TRUE='#' | |
6076 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6077 | fi |
6078 | ||
81ecdfbb RW |
6079 | if test "$GCC" = yes; then |
6080 | GCC_TRUE= | |
6081 | GCC_FALSE='#' | |
6082 | else | |
6083 | GCC_TRUE='#' | |
6084 | GCC_FALSE= | |
6085 | fi | |
0639a6f6 ILT |
6086 | |
6087 | ||
81ecdfbb RW |
6088 | if |
6089 | case $target_cpu in | |
6090 | i?86) true;; | |
6091 | x86_64) false;; | |
6092 | sparc64) false;; | |
6093 | *) true;; | |
6094 | esac; then | |
6095 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6096 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6097 | else | |
6098 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6099 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6100 | fi | |
0639a6f6 ILT |
6101 | |
6102 | ||
084e2665 ILT |
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6104 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6105 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6106 | $as_echo_n "(cached) " >&6 | |
6107 | else | |
6108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6109 | /* end confdefs.h. */ | |
6110 | ||
6111 | #if !defined __GNUC__ | |
6112 | error | |
6113 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6114 | error | |
6115 | #endif | |
6116 | ||
6117 | _ACEOF | |
6118 | if ac_fn_c_try_compile "$LINENO"; then : | |
6119 | gold_cv_prog_gcc41=yes | |
6120 | else | |
6121 | gold_cv_prog_gcc41=no | |
6122 | fi | |
6123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6124 | fi | |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6126 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6127 | ||
6128 | if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6129 | MCMODEL_MEDIUM_TRUE= |
6130 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6131 | else |
81ecdfbb RW |
6132 | MCMODEL_MEDIUM_TRUE='#' |
6133 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6134 | fi |
54dc6425 | 6135 | |
54dc6425 | 6136 | |
81ecdfbb RW |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6138 | $as_echo_n "checking for thread support... " >&6; } | |
6139 | if test "${gold_cv_c_thread+set}" = set; then : | |
6140 | $as_echo_n "(cached) " >&6 | |
6141 | else | |
6142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6143 | /* end confdefs.h. */ |
81ecdfbb | 6144 | __thread int i = 1; |
e44fcf3b | 6145 | _ACEOF |
81ecdfbb RW |
6146 | if ac_fn_c_try_compile "$LINENO"; then : |
6147 | gold_cv_c_thread=yes | |
0639a6f6 | 6148 | else |
81ecdfbb | 6149 | gold_cv_c_thread=no |
0639a6f6 | 6150 | fi |
81ecdfbb | 6151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6152 | fi |
81ecdfbb RW |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6154 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6155 | |
81ecdfbb RW |
6156 | if test "$gold_cv_c_thread" = "yes"; then |
6157 | TLS_TRUE= | |
6158 | TLS_FALSE='#' | |
6159 | else | |
6160 | TLS_TRUE='#' | |
6161 | TLS_FALSE= | |
0639a6f6 | 6162 | fi |
e44fcf3b | 6163 | |
0639a6f6 | 6164 | |
81ecdfbb RW |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6166 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6167 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6168 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6169 | else |
81ecdfbb | 6170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6171 | /* end confdefs.h. */ |
81ecdfbb RW |
6172 | |
6173 | #include <features.h> | |
6174 | #if !defined __GLIBC__ | |
6175 | error | |
6176 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6177 | error | |
1b77ea50 | 6178 | #endif |
81ecdfbb | 6179 | |
1b77ea50 | 6180 | _ACEOF |
81ecdfbb RW |
6181 | if ac_fn_c_try_compile "$LINENO"; then : |
6182 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6183 | else |
81ecdfbb | 6184 | gold_cv_lib_glibc24=no |
0639a6f6 | 6185 | fi |
81ecdfbb | 6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6187 | fi |
81ecdfbb RW |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6189 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6190 | |
81ecdfbb RW |
6191 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6192 | STATIC_TLS_TRUE= | |
6193 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6194 | else |
81ecdfbb RW |
6195 | STATIC_TLS_TRUE='#' |
6196 | STATIC_TLS_FALSE= | |
0639a6f6 | 6197 | fi |
1b77ea50 | 6198 | |
0639a6f6 | 6199 | |
81ecdfbb RW |
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6201 | $as_echo_n "checking for omp support... " >&6; } | |
6202 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6203 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6204 | else |
81ecdfbb RW |
6205 | save_CFLAGS="$CFLAGS" |
6206 | CFLAGS="$CFLAGS -fopenmp" | |
6207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6208 | /* end confdefs.h. */ | |
1b77ea50 | 6209 | |
81ecdfbb RW |
6210 | #include <omp.h> |
6211 | int i; | |
6212 | #pragma omp threadprivate (i) | |
1b77ea50 | 6213 | |
81ecdfbb RW |
6214 | _ACEOF |
6215 | if ac_fn_c_try_compile "$LINENO"; then : | |
6216 | gold_cv_c_threadprivate=yes | |
6217 | else | |
6218 | gold_cv_c_threadprivate=no | |
6219 | fi | |
6220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6221 | CFLAGS="$save_CFLAGS" | |
6222 | fi | |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6224 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6225 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6226 | |
81ecdfbb | 6227 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6228 | |
0639a6f6 | 6229 | fi |
81ecdfbb RW |
6230 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6231 | OMP_SUPPORT_TRUE= | |
6232 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6233 | else |
81ecdfbb RW |
6234 | OMP_SUPPORT_TRUE='#' |
6235 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6236 | fi |
1b77ea50 | 6237 | |
81ecdfbb RW |
6238 | |
6239 | save_CFLAGS="$CFLAGS" | |
6240 | CFLAGS="$CFLAGS -mtls-dialect=gnu2" | |
6241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6242 | /* end confdefs.h. */ |
81ecdfbb | 6243 | int i; |
1b77ea50 | 6244 | _ACEOF |
81ecdfbb RW |
6245 | if ac_fn_c_try_compile "$LINENO"; then : |
6246 | have_tls_gnu2=yes | |
0639a6f6 | 6247 | else |
81ecdfbb | 6248 | have_tls_gnu2=no |
0639a6f6 | 6249 | fi |
81ecdfbb RW |
6250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6251 | CFLAGS="$save_CFLAGS" | |
6252 | if test "$have_tls_gnu2" = "yes"; then | |
6253 | TLS_GNU2_DIALECT_TRUE= | |
6254 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6255 | else |
81ecdfbb RW |
6256 | TLS_GNU2_DIALECT_TRUE='#' |
6257 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6258 | fi |
1b77ea50 | 6259 | |
81ecdfbb RW |
6260 | |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6262 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6263 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6264 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6265 | else |
81ecdfbb RW |
6266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6267 | /* end confdefs.h. */ | |
0639a6f6 | 6268 | |
81ecdfbb RW |
6269 | #include <features.h> |
6270 | #if !defined __GLIBC__ | |
6271 | error | |
6272 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6273 | error | |
6274 | #endif | |
1b77ea50 | 6275 | |
81ecdfbb RW |
6276 | _ACEOF |
6277 | if ac_fn_c_try_compile "$LINENO"; then : | |
6278 | gold_cv_lib_glibc29=yes | |
6279 | else | |
6280 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6281 | fi |
81ecdfbb RW |
6282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6283 | fi | |
6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6285 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6286 | |
81ecdfbb RW |
6287 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6288 | TLS_DESCRIPTORS_TRUE= | |
6289 | TLS_DESCRIPTORS_FALSE='#' | |
6290 | else | |
6291 | TLS_DESCRIPTORS_TRUE='#' | |
6292 | TLS_DESCRIPTORS_FALSE= | |
6293 | fi | |
0639a6f6 ILT |
6294 | |
6295 | ||
81ecdfbb RW |
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor priorities" >&5 |
6297 | $as_echo_n "checking for constructor priorities... " >&6; } | |
6298 | if test "${gold_cv_c_conprio+set}" = set; then : | |
6299 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6300 | else |
81ecdfbb | 6301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6302 | /* end confdefs.h. */ |
81ecdfbb | 6303 | void f() __attribute__ ((constructor (1))); |
1b77ea50 | 6304 | _ACEOF |
81ecdfbb RW |
6305 | if ac_fn_c_try_compile "$LINENO"; then : |
6306 | gold_cv_c_conprio=yes | |
1b77ea50 | 6307 | else |
81ecdfbb RW |
6308 | gold_cv_c_conprio=no |
6309 | fi | |
6310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6311 | fi | |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_conprio" >&5 | |
6313 | $as_echo "$gold_cv_c_conprio" >&6; } | |
1b77ea50 | 6314 | |
81ecdfbb RW |
6315 | if test "$gold_cv_c_conprio" = "yes"; then |
6316 | CONSTRUCTOR_PRIORITY_TRUE= | |
6317 | CONSTRUCTOR_PRIORITY_FALSE='#' | |
6318 | else | |
6319 | CONSTRUCTOR_PRIORITY_TRUE='#' | |
6320 | CONSTRUCTOR_PRIORITY_FALSE= | |
1b77ea50 | 6321 | fi |
1b77ea50 | 6322 | |
81ecdfbb RW |
6323 | |
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 | |
6325 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6326 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6327 | $as_echo_n "(cached) " >&6 | |
6328 | else | |
6329 | save_CFLAGS="$CFLAGS" | |
6330 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6332 | /* end confdefs.h. */ |
81ecdfbb | 6333 | int i; |
0639a6f6 | 6334 | _ACEOF |
81ecdfbb RW |
6335 | if ac_fn_c_try_compile "$LINENO"; then : |
6336 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6337 | else |
81ecdfbb RW |
6338 | gold_cv_c_random_seed=no |
6339 | fi | |
6340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6341 | CFLAGS="$save_CFLAGS" | |
6342 | fi | |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6344 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6345 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6346 | # In Makefile, '$@' will be expanded to be the name of the file | |
6347 | # being built, providing a unique seed for each file. | |
6348 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6349 | fi |
1b77ea50 | 6350 | |
81ecdfbb | 6351 | |
7223e9ca ILT |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.11" >&5 |
6353 | $as_echo_n "checking for glibc >= 2.11... " >&6; } | |
6354 | if test "${gold_cv_lib_glibc2_11+set}" = set; then : | |
6355 | $as_echo_n "(cached) " >&6 | |
6356 | else | |
6357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6358 | /* end confdefs.h. */ | |
6359 | ||
6360 | #include <features.h> | |
6361 | #if !defined __GLIBC__ | |
6362 | error | |
6363 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6364 | error | |
6365 | #endif | |
6366 | ||
6367 | _ACEOF | |
6368 | if ac_fn_c_try_compile "$LINENO"; then : | |
6369 | gold_cv_lib_glibc2_11=yes | |
6370 | else | |
6371 | gold_cv_lib_glibc2_11=no | |
6372 | fi | |
6373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6374 | fi | |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc2_11" >&5 | |
6376 | $as_echo "$gold_cv_lib_glibc2_11" >&6; } | |
6377 | ||
6378 | if test "$gold_cv_lib_glibc2_11" = "yes"; then | |
6379 | IFUNC_TRUE= | |
6380 | IFUNC_FALSE='#' | |
6381 | else | |
6382 | IFUNC_TRUE='#' | |
6383 | IFUNC_FALSE= | |
6384 | fi | |
6385 | ||
6386 | ||
81ecdfbb | 6387 | |
efc8d4f2 RW |
6388 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6390 | /* end confdefs.h. */ | |
6391 | __GNUC__ | |
6392 | _ACEOF | |
6393 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6394 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6395 | ||
6396 | else | |
6397 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6398 | fi | |
6399 | rm -f conftest* | |
6400 | ||
81ecdfbb RW |
6401 | |
6402 | # Check whether --enable-werror was given. | |
6403 | if test "${enable_werror+set}" = set; then : | |
6404 | enableval=$enable_werror; case "${enableval}" in | |
6405 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6406 | no | n) ERROR_ON_WARNING="no" ;; | |
6407 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6408 | esac | |
0639a6f6 | 6409 | fi |
1b77ea50 | 6410 | |
81ecdfbb | 6411 | |
efc8d4f2 | 6412 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6413 | case "${host}" in |
6414 | *-*-mingw32*) | |
6415 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6416 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6417 | fi | |
0639a6f6 | 6418 | ;; |
81ecdfbb | 6419 | *) ;; |
0639a6f6 | 6420 | esac |
81ecdfbb RW |
6421 | |
6422 | # Enable -Werror by default when using gcc | |
6423 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6424 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6425 | fi |
0639a6f6 | 6426 | |
81ecdfbb RW |
6427 | NO_WERROR= |
6428 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6429 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6430 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6431 | fi |
1b77ea50 | 6432 | |
81ecdfbb RW |
6433 | if test "${GCC}" = yes ; then |
6434 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6435 | fi |
6436 | ||
81ecdfbb RW |
6437 | # Check whether --enable-build-warnings was given. |
6438 | if test "${enable_build_warnings+set}" = set; then : | |
6439 | enableval=$enable_build_warnings; case "${enableval}" in | |
6440 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6441 | no) if test "${GCC}" = yes ; then | |
6442 | WARN_CFLAGS="-w" | |
6443 | fi;; | |
6444 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6445 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6446 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6447 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6448 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6449 | esac | |
6450 | fi | |
0639a6f6 | 6451 | |
1b77ea50 | 6452 | |
81ecdfbb RW |
6453 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6454 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6455 | fi |
1b77ea50 | 6456 | |
1b77ea50 | 6457 | |
1b77ea50 | 6458 | |
0639a6f6 | 6459 | |
1b77ea50 | 6460 | |
2ea97941 | 6461 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6462 | |
6463 | ||
6464 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
6465 | ||
6466 | ||
6467 | for ac_func in chsize | |
6468 | do : | |
6469 | ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" | |
6470 | if test "x$ac_cv_func_chsize" = x""yes; then : | |
0639a6f6 | 6471 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6472 | #define HAVE_CHSIZE 1 |
1b77ea50 ILT |
6473 | _ACEOF |
6474 | ||
0639a6f6 | 6475 | fi |
0639a6f6 | 6476 | done |
1b77ea50 | 6477 | |
81ecdfbb RW |
6478 | for ac_func in pread ftruncate mremap ffsll |
6479 | do : | |
6480 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6481 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6482 | eval as_val=\$$as_ac_var | |
6483 | if test "x$as_val" = x""yes; then : | |
6484 | cat >>confdefs.h <<_ACEOF | |
6485 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6486 | _ACEOF |
0639a6f6 | 6487 | |
81ecdfbb RW |
6488 | else |
6489 | case " $LIBOBJS " in | |
6490 | *" $ac_func.$ac_objext "* ) ;; | |
6491 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6492 | ;; | |
6493 | esac | |
0639a6f6 | 6494 | |
81ecdfbb RW |
6495 | fi |
6496 | done | |
0639a6f6 | 6497 | |
0639a6f6 | 6498 | |
81ecdfbb RW |
6499 | |
6500 | # Link in zlib if we can. This allows us to write compressed sections. | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
6502 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
6503 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6504 | $as_echo_n "(cached) " >&6 | |
6505 | else | |
6506 | ac_func_search_save_LIBS=$LIBS | |
6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6508 | /* end confdefs.h. */ | |
6509 | ||
6510 | /* Override any GCC internal prototype to avoid an error. | |
6511 | Use char because int might match the return type of a GCC | |
6512 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6513 | #ifdef __cplusplus |
81ecdfbb | 6514 | extern "C" |
1b77ea50 | 6515 | #endif |
81ecdfbb | 6516 | char zlibVersion (); |
0639a6f6 ILT |
6517 | int |
6518 | main () | |
6519 | { | |
81ecdfbb | 6520 | return zlibVersion (); |
1b77ea50 ILT |
6521 | ; |
6522 | return 0; | |
6523 | } | |
6524 | _ACEOF | |
81ecdfbb RW |
6525 | for ac_lib in '' z; do |
6526 | if test -z "$ac_lib"; then | |
6527 | ac_res="none required" | |
6528 | else | |
6529 | ac_res=-l$ac_lib | |
6530 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6531 | fi | |
6532 | if ac_fn_c_try_link "$LINENO"; then : | |
6533 | ac_cv_search_zlibVersion=$ac_res | |
6534 | fi | |
6535 | rm -f core conftest.err conftest.$ac_objext \ | |
6536 | conftest$ac_exeext | |
6537 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6538 | break | |
6539 | fi | |
6540 | done | |
6541 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6542 | |
81ecdfbb RW |
6543 | else |
6544 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6545 | fi |
81ecdfbb RW |
6546 | rm conftest.$ac_ext |
6547 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6548 | fi |
81ecdfbb RW |
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6550 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6551 | ac_res=$ac_cv_search_zlibVersion | |
6552 | if test "$ac_res" != no; then : | |
6553 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6554 | for ac_header in zlib.h | |
6555 | do : | |
6556 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6557 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6558 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6559 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6560 | _ACEOF |
6561 | ||
1b77ea50 | 6562 | fi |
81ecdfbb | 6563 | |
0639a6f6 | 6564 | done |
1b77ea50 | 6565 | |
81ecdfbb | 6566 | fi |
3d857b98 | 6567 | |
81ecdfbb RW |
6568 | if test "$ac_cv_search_zlibVersion" != "no"; then |
6569 | HAVE_ZLIB_TRUE= | |
6570 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6571 | else |
81ecdfbb RW |
6572 | HAVE_ZLIB_TRUE='#' |
6573 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6574 | fi |
81ecdfbb RW |
6575 | |
6576 | ||
6577 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6578 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6579 | ac_have_decl=1 | |
6580 | else | |
6581 | ac_have_decl=0 | |
3d857b98 | 6582 | fi |
3d857b98 DK |
6583 | |
6584 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6585 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6586 | _ACEOF |
81ecdfbb RW |
6587 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6588 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6589 | ac_have_decl=1 | |
3d857b98 | 6590 | else |
81ecdfbb | 6591 | ac_have_decl=0 |
3d857b98 | 6592 | fi |
3d857b98 | 6593 | |
81ecdfbb RW |
6594 | cat >>confdefs.h <<_ACEOF |
6595 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6596 | _ACEOF |
81ecdfbb RW |
6597 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6598 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6599 | ac_have_decl=1 | |
3d857b98 | 6600 | else |
81ecdfbb | 6601 | ac_have_decl=0 |
3d857b98 | 6602 | fi |
3d857b98 DK |
6603 | |
6604 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6605 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6606 | _ACEOF |
81ecdfbb RW |
6607 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6608 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6609 | ac_have_decl=1 | |
3d857b98 | 6610 | else |
81ecdfbb | 6611 | ac_have_decl=0 |
3d857b98 | 6612 | fi |
3d857b98 | 6613 | |
81ecdfbb RW |
6614 | cat >>confdefs.h <<_ACEOF |
6615 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6616 | _ACEOF |
81ecdfbb RW |
6617 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6618 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6619 | ac_have_decl=1 | |
3d857b98 | 6620 | else |
81ecdfbb RW |
6621 | ac_have_decl=0 |
6622 | fi | |
3d857b98 | 6623 | |
81ecdfbb RW |
6624 | cat >>confdefs.h <<_ACEOF |
6625 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6626 | _ACEOF | |
6627 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6628 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6629 | ac_have_decl=1 | |
6630 | else | |
6631 | ac_have_decl=0 | |
3d857b98 | 6632 | fi |
81ecdfbb RW |
6633 | |
6634 | cat >>confdefs.h <<_ACEOF | |
6635 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6636 | _ACEOF | |
6637 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6638 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6639 | ac_have_decl=1 | |
6640 | else | |
6641 | ac_have_decl=0 | |
3d857b98 | 6642 | fi |
3d857b98 DK |
6643 | |
6644 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6645 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6646 | _ACEOF |
6647 | ||
6648 | ||
81ecdfbb RW |
6649 | ac_ext=cpp |
6650 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6651 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6652 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6653 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6654 | |
6655 | ||
81ecdfbb RW |
6656 | |
6657 | ac_ext=cpp | |
6658 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6659 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6660 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6661 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6663 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6664 | if test -z "$CXXCPP"; then | |
6665 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
6666 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 6667 | else |
81ecdfbb RW |
6668 | # Double quotes because CXXCPP needs to be expanded |
6669 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6670 | do | |
6671 | ac_preproc_ok=false | |
6672 | for ac_cxx_preproc_warn_flag in '' yes | |
6673 | do | |
6674 | # Use a header file that comes with gcc, so configuring glibc | |
6675 | # with a fresh cross-compiler works. | |
6676 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6677 | # <limits.h> exists even on freestanding compilers. | |
6678 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6679 | # not just through cpp. "Syntax error" is here to catch this case. | |
6680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6681 | /* end confdefs.h. */ |
81ecdfbb RW |
6682 | #ifdef __STDC__ |
6683 | # include <limits.h> | |
6684 | #else | |
6685 | # include <assert.h> | |
3d857b98 | 6686 | #endif |
81ecdfbb | 6687 | Syntax error |
3d857b98 | 6688 | _ACEOF |
81ecdfbb | 6689 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6690 | |
81ecdfbb RW |
6691 | else |
6692 | # Broken: fails on valid input. | |
6693 | continue | |
3d857b98 | 6694 | fi |
81ecdfbb | 6695 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6696 | |
81ecdfbb RW |
6697 | # OK, works on sane cases. Now check whether nonexistent headers |
6698 | # can be detected and how. | |
6699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6700 | /* end confdefs.h. */ | |
6701 | #include <ac_nonexistent.h> | |
3d857b98 | 6702 | _ACEOF |
81ecdfbb RW |
6703 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6704 | # Broken: success on invalid input. | |
6705 | continue | |
3d857b98 | 6706 | else |
81ecdfbb RW |
6707 | # Passes both tests. |
6708 | ac_preproc_ok=: | |
6709 | break | |
6710 | fi | |
6711 | rm -f conftest.err conftest.$ac_ext | |
6712 | ||
6713 | done | |
6714 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6715 | rm -f conftest.err conftest.$ac_ext | |
6716 | if $ac_preproc_ok; then : | |
6717 | break | |
6718 | fi | |
3d857b98 | 6719 | |
81ecdfbb RW |
6720 | done |
6721 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
6722 | |
6723 | fi | |
81ecdfbb | 6724 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 6725 | else |
81ecdfbb RW |
6726 | ac_cv_prog_CXXCPP=$CXXCPP |
6727 | fi | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6729 | $as_echo "$CXXCPP" >&6; } | |
6730 | ac_preproc_ok=false | |
6731 | for ac_cxx_preproc_warn_flag in '' yes | |
6732 | do | |
6733 | # Use a header file that comes with gcc, so configuring glibc | |
6734 | # with a fresh cross-compiler works. | |
6735 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6736 | # <limits.h> exists even on freestanding compilers. | |
6737 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6738 | # not just through cpp. "Syntax error" is here to catch this case. | |
6739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6740 | /* end confdefs.h. */ |
81ecdfbb RW |
6741 | #ifdef __STDC__ |
6742 | # include <limits.h> | |
6743 | #else | |
6744 | # include <assert.h> | |
3d857b98 | 6745 | #endif |
81ecdfbb | 6746 | Syntax error |
3d857b98 | 6747 | _ACEOF |
81ecdfbb | 6748 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6749 | |
81ecdfbb RW |
6750 | else |
6751 | # Broken: fails on valid input. | |
6752 | continue | |
3d857b98 | 6753 | fi |
81ecdfbb | 6754 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6755 | |
81ecdfbb RW |
6756 | # OK, works on sane cases. Now check whether nonexistent headers |
6757 | # can be detected and how. | |
6758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6759 | /* end confdefs.h. */ | |
6760 | #include <ac_nonexistent.h> | |
3d857b98 | 6761 | _ACEOF |
81ecdfbb RW |
6762 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6763 | # Broken: success on invalid input. | |
6764 | continue | |
6765 | else | |
6766 | # Passes both tests. | |
6767 | ac_preproc_ok=: | |
6768 | break | |
6769 | fi | |
6770 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 6771 | |
81ecdfbb RW |
6772 | done |
6773 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6774 | rm -f conftest.err conftest.$ac_ext | |
6775 | if $ac_preproc_ok; then : | |
3d857b98 DK |
6776 | |
6777 | else | |
81ecdfbb RW |
6778 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6779 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6780 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6781 | See \`config.log' for more details." "$LINENO" 5; } | |
6782 | fi | |
6783 | ||
6784 | ac_ext=cpp | |
6785 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6786 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6787 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6788 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6789 | ||
6790 | ||
6791 | for ac_header in tr1/unordered_set tr1/unordered_map | |
6792 | do : | |
6793 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6794 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6795 | eval as_val=\$$as_ac_Header | |
6796 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6797 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6798 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
6799 | _ACEOF |
6800 | ||
3d857b98 | 6801 | fi |
3d857b98 | 6802 | |
81ecdfbb RW |
6803 | done |
6804 | ||
6805 | for ac_header in ext/hash_map ext/hash_set | |
6806 | do : | |
6807 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6808 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6809 | eval as_val=\$$as_ac_Header | |
6810 | if test "x$as_val" = x""yes; then : | |
6811 | cat >>confdefs.h <<_ACEOF | |
6812 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6813 | _ACEOF | |
3d857b98 | 6814 | |
3d857b98 | 6815 | fi |
3d857b98 | 6816 | |
81ecdfbb RW |
6817 | done |
6818 | ||
6819 | for ac_header in byteswap.h | |
6820 | do : | |
6821 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
6822 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
6823 | cat >>confdefs.h <<_ACEOF | |
6824 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
6825 | _ACEOF |
6826 | ||
81ecdfbb | 6827 | fi |
3d857b98 | 6828 | |
81ecdfbb RW |
6829 | done |
6830 | ||
d675ff46 | 6831 | for ac_func in mallinfo posix_fallocate readv sysconf times |
81ecdfbb RW |
6832 | do : |
6833 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6834 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6835 | eval as_val=\$$as_ac_var | |
6836 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6837 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6838 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
6839 | _ACEOF |
6840 | ||
3d857b98 | 6841 | fi |
81ecdfbb RW |
6842 | done |
6843 | ||
6844 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6845 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6846 | ac_have_decl=1 | |
3d857b98 | 6847 | else |
81ecdfbb RW |
6848 | ac_have_decl=0 |
6849 | fi | |
3d857b98 | 6850 | |
81ecdfbb RW |
6851 | cat >>confdefs.h <<_ACEOF |
6852 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 6853 | _ACEOF |
81ecdfbb RW |
6854 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6855 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6856 | ac_have_decl=1 | |
3d857b98 | 6857 | else |
81ecdfbb | 6858 | ac_have_decl=0 |
3d857b98 | 6859 | fi |
3d857b98 DK |
6860 | |
6861 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6862 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 6863 | _ACEOF |
81ecdfbb RW |
6864 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6865 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6866 | ac_have_decl=1 | |
3d857b98 | 6867 | else |
81ecdfbb | 6868 | ac_have_decl=0 |
3d857b98 | 6869 | fi |
3d857b98 | 6870 | |
81ecdfbb RW |
6871 | cat >>confdefs.h <<_ACEOF |
6872 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 6873 | _ACEOF |
81ecdfbb RW |
6874 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6875 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6876 | ac_have_decl=1 | |
3d857b98 | 6877 | else |
81ecdfbb | 6878 | ac_have_decl=0 |
3d857b98 | 6879 | fi |
3d857b98 DK |
6880 | |
6881 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6882 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 6883 | _ACEOF |
81ecdfbb RW |
6884 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6885 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6886 | ac_have_decl=1 | |
3d857b98 | 6887 | else |
81ecdfbb | 6888 | ac_have_decl=0 |
3d857b98 | 6889 | fi |
3d857b98 | 6890 | |
81ecdfbb RW |
6891 | cat >>confdefs.h <<_ACEOF |
6892 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 6893 | _ACEOF |
81ecdfbb RW |
6894 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
6895 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6896 | ac_have_decl=1 | |
3d857b98 | 6897 | else |
81ecdfbb | 6898 | ac_have_decl=0 |
3d857b98 | 6899 | fi |
3d857b98 DK |
6900 | |
6901 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6902 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 6903 | _ACEOF |
81ecdfbb RW |
6904 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
6905 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6906 | ac_have_decl=1 | |
3d857b98 | 6907 | else |
81ecdfbb RW |
6908 | ac_have_decl=0 |
6909 | fi | |
3d857b98 | 6910 | |
81ecdfbb RW |
6911 | cat >>confdefs.h <<_ACEOF |
6912 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
6913 | _ACEOF | |
6914 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
6915 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
6916 | ac_have_decl=1 | |
6917 | else | |
6918 | ac_have_decl=0 | |
6919 | fi | |
3d857b98 | 6920 | |
81ecdfbb RW |
6921 | cat >>confdefs.h <<_ACEOF |
6922 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
6923 | _ACEOF | |
6924 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
6925 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
6926 | ac_have_decl=1 | |
6927 | else | |
6928 | ac_have_decl=0 | |
3d857b98 DK |
6929 | fi |
6930 | ||
81ecdfbb RW |
6931 | cat >>confdefs.h <<_ACEOF |
6932 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
6933 | _ACEOF | |
3d857b98 | 6934 | |
e44fcf3b | 6935 | |
40fde488 CD |
6936 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
6937 | # at link time with some versions of GCC. | |
81ecdfbb RW |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
6939 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
6940 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
6941 | $as_echo_n "(cached) " >&6 | |
40fde488 | 6942 | else |
81ecdfbb | 6943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
6944 | /* end confdefs.h. */ |
6945 | ||
6946 | #include <tr1/unordered_map> | |
6947 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
6948 | ||
6949 | int | |
6950 | main () | |
6951 | { | |
6952 | ||
6953 | ; | |
6954 | return 0; | |
6955 | } | |
6956 | _ACEOF | |
81ecdfbb | 6957 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
6958 | gold_cv_unordered_map_rehash=yes |
6959 | else | |
81ecdfbb | 6960 | gold_cv_unordered_map_rehash=no |
40fde488 | 6961 | fi |
81ecdfbb RW |
6962 | rm -f core conftest.err conftest.$ac_objext \ |
6963 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 6964 | fi |
81ecdfbb RW |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
6966 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
6967 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
6968 | ||
81ecdfbb | 6969 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
6970 | |
6971 | fi | |
6972 | ||
04bf7072 ILT |
6973 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
6974 | # function. Check for that. This is gcc bug 35546. This test can | |
6975 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
6977 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
6978 | if test "${gold_cv_template_attribute+set}" = set; then : | |
6979 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 6980 | else |
81ecdfbb RW |
6981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6982 | /* end confdefs.h. */ | |
04bf7072 ILT |
6983 | |
6984 | template<typename T> extern void foo(const char*, ...) | |
6985 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
6986 | template<typename T> void foo(const char* format, ...) {} | |
6987 | void bar() { foo<int>("%s\n", "foo"); } | |
6988 | ||
6989 | _ACEOF | |
81ecdfbb | 6990 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
6991 | gold_cv_template_attribute=yes |
6992 | else | |
81ecdfbb | 6993 | gold_cv_template_attribute=no |
04bf7072 | 6994 | fi |
81ecdfbb | 6995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 6996 | fi |
81ecdfbb RW |
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
6998 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
6999 | if test "$gold_cv_template_attribute" = "yes"; then |
7000 | ||
81ecdfbb | 7001 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7002 | |
7003 | fi | |
7004 | ||
5d329b7d ILT |
7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7006 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7007 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7008 | $as_echo_n "(cached) " >&6 | |
7009 | else | |
7010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7011 | /* end confdefs.h. */ | |
7012 | ||
7013 | #include <sys/stat.h> | |
7014 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7015 | ||
7016 | int | |
7017 | main () | |
7018 | { | |
7019 | ||
7020 | ; | |
7021 | return 0; | |
7022 | } | |
7023 | _ACEOF | |
7024 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7025 | gold_cv_stat_st_mtim=yes | |
7026 | else | |
7027 | gold_cv_stat_st_mtim=no | |
7028 | fi | |
7029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7030 | fi | |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7032 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7033 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7034 | ||
7035 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7036 | ||
7037 | fi | |
7038 | ||
54dc6425 ILT |
7039 | ac_ext=c |
7040 | ac_cpp='$CPP $CPPFLAGS' | |
7041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7044 | ||
7045 | ||
81ecdfbb RW |
7046 | |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7048 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7049 | # Check whether --enable-maintainer-mode was given. | |
7050 | if test "${enable_maintainer_mode+set}" = set; then : | |
7051 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7052 | else |
7053 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7054 | fi |
bae7f79e | 7055 | |
81ecdfbb RW |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7057 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7058 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7059 | MAINTAINER_MODE_TRUE= |
7060 | MAINTAINER_MODE_FALSE='#' | |
7061 | else | |
7062 | MAINTAINER_MODE_TRUE='#' | |
7063 | MAINTAINER_MODE_FALSE= | |
7064 | fi | |
7065 | ||
7066 | MAINT=$MAINTAINER_MODE_TRUE | |
7067 | ||
7068 | ||
7069 | ||
81ecdfbb RW |
7070 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7071 | ||
bae7f79e ILT |
7072 | cat >confcache <<\_ACEOF |
7073 | # This file is a shell script that caches the results of configure | |
7074 | # tests run on this system so they can be shared between configure | |
7075 | # scripts and configure runs, see configure's option --config-cache. | |
7076 | # It is not useful on other systems. If it contains results you don't | |
7077 | # want to keep, you may remove or edit it. | |
7078 | # | |
7079 | # config.status only pays attention to the cache file if you give it | |
7080 | # the --recheck option to rerun configure. | |
7081 | # | |
7082 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7083 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7084 | # following values. | |
7085 | ||
7086 | _ACEOF | |
7087 | ||
7088 | # The following way of writing the cache mishandles newlines in values, | |
7089 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7090 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7091 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7092 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7093 | ( |
7094 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7095 | eval ac_val=\$$ac_var | |
7096 | case $ac_val in #( | |
7097 | *${as_nl}*) | |
7098 | case $ac_var in #( | |
7099 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7100 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7101 | esac | |
7102 | case $ac_var in #( | |
7103 | _ | IFS | as_nl) ;; #( | |
7104 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7105 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7106 | esac ;; | |
7107 | esac | |
7108 | done | |
7109 | ||
bae7f79e | 7110 | (set) 2>&1 | |
81ecdfbb RW |
7111 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7112 | *${as_nl}ac_space=\ *) | |
7113 | # `set' does not quote correctly, so add quotes: double-quote | |
7114 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7115 | sed -n \ |
7116 | "s/'/'\\\\''/g; | |
7117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7118 | ;; #( |
bae7f79e ILT |
7119 | *) |
7120 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7121 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7122 | ;; |
81ecdfbb RW |
7123 | esac | |
7124 | sort | |
7125 | ) | | |
bae7f79e | 7126 | sed ' |
81ecdfbb | 7127 | /^ac_cv_env_/b end |
bae7f79e | 7128 | t clear |
81ecdfbb | 7129 | :clear |
bae7f79e ILT |
7130 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7131 | t end | |
81ecdfbb RW |
7132 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7133 | :end' >>confcache | |
7134 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7135 | if test -w "$cache_file"; then | |
7136 | test "x$cache_file" != "x/dev/null" && | |
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7138 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7139 | cat confcache >$cache_file |
7140 | else | |
81ecdfbb RW |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7142 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7143 | fi |
7144 | fi | |
7145 | rm -f confcache | |
7146 | ||
7147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7148 | # Let make expand exec_prefix. | |
7149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7150 | ||
bae7f79e ILT |
7151 | DEFS=-DHAVE_CONFIG_H |
7152 | ||
7153 | ac_libobjs= | |
7154 | ac_ltlibobjs= | |
7155 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7156 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7157 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7158 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7159 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7160 | # will be set to the directory where LIBOBJS objects are built. | |
7161 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7162 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7163 | done |
7164 | LIBOBJS=$ac_libobjs | |
7165 | ||
7166 | LTLIBOBJS=$ac_ltlibobjs | |
7167 | ||
7168 | ||
81ecdfbb RW |
7169 | if test -n "$EXEEXT"; then |
7170 | am__EXEEXT_TRUE= | |
7171 | am__EXEEXT_FALSE='#' | |
7172 | else | |
7173 | am__EXEEXT_TRUE='#' | |
7174 | am__EXEEXT_FALSE= | |
7175 | fi | |
7176 | ||
fe9a4c12 | 7177 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7178 | as_fn_error "conditional \"THREADS\" was never defined. |
7179 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7180 | fi |
89fc3421 | 7181 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7182 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7183 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7184 | fi |
364c7fa5 ILT |
7185 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7186 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7187 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7188 | fi | |
7189 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7190 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7191 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7192 | fi | |
7193 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7194 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7195 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7196 | fi | |
7197 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7198 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7199 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7200 | fi | |
7201 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7202 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7203 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7204 | fi | |
bae7f79e | 7205 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7206 | as_fn_error "conditional \"AMDEP\" was never defined. |
7207 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7208 | fi |
7209 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7210 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7211 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7212 | fi |
7213 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7214 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7215 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7216 | fi |
81ecdfbb | 7217 | |
537b5f51 | 7218 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7219 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7221 | fi |
7222 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7223 | as_fn_error "conditional \"GCC\" was never defined. |
7224 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7225 | fi |
63402fe4 | 7226 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7227 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7228 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7229 | fi |
8a5e3e08 | 7230 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7231 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7232 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7233 | fi |
6eee141f | 7234 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7235 | as_fn_error "conditional \"TLS\" was never defined. |
7236 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7237 | fi |
097ec620 | 7238 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7239 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7240 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7241 | fi |
155a0dd7 | 7242 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7243 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7244 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7245 | fi |
c2b45e22 | 7246 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7247 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7248 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7249 | fi |
7250 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7251 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7252 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7253 | fi |
2fd32231 | 7254 | if test -z "${CONSTRUCTOR_PRIORITY_TRUE}" && test -z "${CONSTRUCTOR_PRIORITY_FALSE}"; then |
81ecdfbb RW |
7255 | as_fn_error "conditional \"CONSTRUCTOR_PRIORITY\" was never defined. |
7256 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd32231 | 7257 | fi |
7223e9ca ILT |
7258 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7259 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7260 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7261 | fi | |
7fcd0256 | 7262 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7263 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7264 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7265 | fi |
bae7f79e | 7266 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7267 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7268 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7269 | fi |
7270 | ||
7271 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7272 | ac_write_fail=0 |
bae7f79e ILT |
7273 | ac_clean_files_save=$ac_clean_files |
7274 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7276 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7277 | as_write_fail=0 | |
7278 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7279 | #! $SHELL |
7280 | # Generated by $as_me. | |
7281 | # Run this file to recreate the current configuration. | |
7282 | # Compiler output produced by configure, useful for debugging | |
7283 | # configure, is in config.log if it exists. | |
7284 | ||
7285 | debug=false | |
7286 | ac_cs_recheck=false | |
7287 | ac_cs_silent=false | |
bae7f79e | 7288 | |
81ecdfbb RW |
7289 | SHELL=\${CONFIG_SHELL-$SHELL} |
7290 | export SHELL | |
7291 | _ASEOF | |
7292 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7293 | ## -------------------- ## | |
7294 | ## M4sh Initialization. ## | |
7295 | ## -------------------- ## | |
bae7f79e | 7296 | |
81ecdfbb RW |
7297 | # Be more Bourne compatible |
7298 | DUALCASE=1; export DUALCASE # for MKS sh | |
7299 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7300 | emulate sh |
7301 | NULLCMD=: | |
81ecdfbb | 7302 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7303 | # is contrary to our usage. Disable this feature. |
7304 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7305 | setopt NO_GLOB_SUBST |
7306 | else | |
7307 | case `(set -o) 2>/dev/null` in #( | |
7308 | *posix*) : | |
7309 | set -o posix ;; #( | |
7310 | *) : | |
7311 | ;; | |
7312 | esac | |
bae7f79e | 7313 | fi |
bae7f79e | 7314 | |
81ecdfbb RW |
7315 | |
7316 | as_nl=' | |
7317 | ' | |
7318 | export as_nl | |
7319 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7320 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7321 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7322 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7323 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7324 | # but without wasting forks for bash or zsh. | |
7325 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7326 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7327 | as_echo='print -r --' | |
7328 | as_echo_n='print -rn --' | |
7329 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7330 | as_echo='printf %s\n' | |
7331 | as_echo_n='printf %s' | |
7332 | else | |
7333 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7334 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7335 | as_echo_n='/usr/ucb/echo -n' | |
7336 | else | |
7337 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7338 | as_echo_n_body='eval | |
7339 | arg=$1; | |
7340 | case $arg in #( | |
7341 | *"$as_nl"*) | |
7342 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7343 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7344 | esac; | |
7345 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7346 | ' | |
7347 | export as_echo_n_body | |
7348 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7349 | fi | |
7350 | export as_echo_body | |
7351 | as_echo='sh -c $as_echo_body as_echo' | |
7352 | fi | |
7353 | ||
7354 | # The user is always right. | |
7355 | if test "${PATH_SEPARATOR+set}" != set; then | |
7356 | PATH_SEPARATOR=: | |
7357 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7358 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7359 | PATH_SEPARATOR=';' | |
7360 | } | |
bae7f79e ILT |
7361 | fi |
7362 | ||
7363 | ||
81ecdfbb RW |
7364 | # IFS |
7365 | # We need space, tab and new line, in precisely that order. Quoting is | |
7366 | # there to prevent editors from complaining about space-tab. | |
7367 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7368 | # splitting by setting IFS to empty value.) | |
7369 | IFS=" "" $as_nl" | |
7370 | ||
7371 | # Find who we are. Look in the path if we contain no directory separator. | |
7372 | case $0 in #(( | |
7373 | *[\\/]* ) as_myself=$0 ;; | |
7374 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7375 | for as_dir in $PATH | |
7376 | do | |
7377 | IFS=$as_save_IFS | |
7378 | test -z "$as_dir" && as_dir=. | |
7379 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7380 | done | |
7381 | IFS=$as_save_IFS | |
7382 | ||
7383 | ;; | |
7384 | esac | |
7385 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7386 | # in which case we are not to be found in the path. | |
7387 | if test "x$as_myself" = x; then | |
7388 | as_myself=$0 | |
7389 | fi | |
7390 | if test ! -f "$as_myself"; then | |
7391 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7392 | exit 1 | |
7393 | fi | |
7394 | ||
7395 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7396 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7397 | # suppresses any "Segmentation fault" message there. '((' could | |
7398 | # trigger a bug in pdksh 5.2.14. | |
7399 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7400 | do eval test x\${$as_var+set} = xset \ | |
7401 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7402 | done | |
bae7f79e ILT |
7403 | PS1='$ ' |
7404 | PS2='> ' | |
7405 | PS4='+ ' | |
7406 | ||
7407 | # NLS nuisances. | |
81ecdfbb RW |
7408 | LC_ALL=C |
7409 | export LC_ALL | |
7410 | LANGUAGE=C | |
7411 | export LANGUAGE | |
7412 | ||
7413 | # CDPATH. | |
7414 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7415 | ||
7416 | ||
7417 | # as_fn_error ERROR [LINENO LOG_FD] | |
7418 | # --------------------------------- | |
7419 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7420 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7421 | # script with status $?, using 1 if that was 0. | |
7422 | as_fn_error () | |
7423 | { | |
7424 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7425 | if test "$3"; then | |
7426 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7427 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 7428 | fi |
81ecdfbb RW |
7429 | $as_echo "$as_me: error: $1" >&2 |
7430 | as_fn_exit $as_status | |
7431 | } # as_fn_error | |
7432 | ||
7433 | ||
7434 | # as_fn_set_status STATUS | |
7435 | # ----------------------- | |
7436 | # Set $? to STATUS, without forking. | |
7437 | as_fn_set_status () | |
7438 | { | |
7439 | return $1 | |
7440 | } # as_fn_set_status | |
bae7f79e | 7441 | |
81ecdfbb RW |
7442 | # as_fn_exit STATUS |
7443 | # ----------------- | |
7444 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7445 | as_fn_exit () | |
7446 | { | |
7447 | set +e | |
7448 | as_fn_set_status $1 | |
7449 | exit $1 | |
7450 | } # as_fn_exit | |
7451 | ||
7452 | # as_fn_unset VAR | |
7453 | # --------------- | |
7454 | # Portably unset VAR. | |
7455 | as_fn_unset () | |
7456 | { | |
7457 | { eval $1=; unset $1;} | |
7458 | } | |
7459 | as_unset=as_fn_unset | |
7460 | # as_fn_append VAR VALUE | |
7461 | # ---------------------- | |
7462 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7463 | # advantage of any shell optimizations that allow amortized linear growth over | |
7464 | # repeated appends, instead of the typical quadratic growth present in naive | |
7465 | # implementations. | |
7466 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7467 | eval 'as_fn_append () | |
7468 | { | |
7469 | eval $1+=\$2 | |
7470 | }' | |
7471 | else | |
7472 | as_fn_append () | |
7473 | { | |
7474 | eval $1=\$$1\$2 | |
7475 | } | |
7476 | fi # as_fn_append | |
7477 | ||
7478 | # as_fn_arith ARG... | |
7479 | # ------------------ | |
7480 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7481 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7482 | # must be portable across $(()) and expr. | |
7483 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7484 | eval 'as_fn_arith () | |
7485 | { | |
7486 | as_val=$(( $* )) | |
7487 | }' | |
7488 | else | |
7489 | as_fn_arith () | |
7490 | { | |
7491 | as_val=`expr "$@" || test $? -eq 1` | |
7492 | } | |
7493 | fi # as_fn_arith | |
7494 | ||
7495 | ||
7496 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7497 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
7498 | as_expr=expr |
7499 | else | |
7500 | as_expr=false | |
7501 | fi | |
7502 | ||
81ecdfbb | 7503 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
7504 | as_basename=basename |
7505 | else | |
7506 | as_basename=false | |
7507 | fi | |
7508 | ||
81ecdfbb RW |
7509 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7510 | as_dirname=dirname | |
7511 | else | |
7512 | as_dirname=false | |
7513 | fi | |
bae7f79e | 7514 | |
81ecdfbb | 7515 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
7516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7517 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7518 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7519 | $as_echo X/"$0" | | |
7520 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7521 | s//\1/ | |
7522 | q | |
7523 | } | |
7524 | /^X\/\(\/\/\)$/{ | |
7525 | s//\1/ | |
7526 | q | |
7527 | } | |
7528 | /^X\/\(\/\).*/{ | |
7529 | s//\1/ | |
7530 | q | |
7531 | } | |
7532 | s/.*/./; q'` | |
bae7f79e | 7533 | |
bae7f79e ILT |
7534 | # Avoid depending upon Character Ranges. |
7535 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7536 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7537 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7538 | as_cr_digits='0123456789' | |
7539 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7540 | ||
81ecdfbb RW |
7541 | ECHO_C= ECHO_N= ECHO_T= |
7542 | case `echo -n x` in #((((( | |
7543 | -n*) | |
7544 | case `echo 'xy\c'` in | |
7545 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7546 | xy) ECHO_C='\c';; | |
7547 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7548 | ECHO_T=' ';; | |
7549 | esac;; | |
7550 | *) | |
7551 | ECHO_N='-n';; | |
bae7f79e ILT |
7552 | esac |
7553 | ||
81ecdfbb RW |
7554 | rm -f conf$$ conf$$.exe conf$$.file |
7555 | if test -d conf$$.dir; then | |
7556 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 7557 | else |
81ecdfbb RW |
7558 | rm -f conf$$.dir |
7559 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 7560 | fi |
81ecdfbb RW |
7561 | if (echo >conf$$.file) 2>/dev/null; then |
7562 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 7563 | as_ln_s='ln -s' |
81ecdfbb RW |
7564 | # ... but there are two gotchas: |
7565 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7566 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7567 | # In both cases, we have to default to `cp -p'. | |
7568 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7569 | as_ln_s='cp -p' | |
7570 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7571 | as_ln_s=ln | |
7572 | else | |
7573 | as_ln_s='cp -p' | |
bae7f79e | 7574 | fi |
bae7f79e ILT |
7575 | else |
7576 | as_ln_s='cp -p' | |
7577 | fi | |
81ecdfbb RW |
7578 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7579 | rmdir conf$$.dir 2>/dev/null | |
7580 | ||
7581 | ||
7582 | # as_fn_mkdir_p | |
7583 | # ------------- | |
7584 | # Create "$as_dir" as a directory, including parents if necessary. | |
7585 | as_fn_mkdir_p () | |
7586 | { | |
7587 | ||
7588 | case $as_dir in #( | |
7589 | -*) as_dir=./$as_dir;; | |
7590 | esac | |
7591 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7592 | as_dirs= | |
7593 | while :; do | |
7594 | case $as_dir in #( | |
7595 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7596 | *) as_qdir=$as_dir;; | |
7597 | esac | |
7598 | as_dirs="'$as_qdir' $as_dirs" | |
7599 | as_dir=`$as_dirname -- "$as_dir" || | |
7600 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7601 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7602 | X"$as_dir" : 'X\(//\)$' \| \ | |
7603 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7604 | $as_echo X"$as_dir" | | |
7605 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7606 | s//\1/ | |
7607 | q | |
7608 | } | |
7609 | /^X\(\/\/\)[^/].*/{ | |
7610 | s//\1/ | |
7611 | q | |
7612 | } | |
7613 | /^X\(\/\/\)$/{ | |
7614 | s//\1/ | |
7615 | q | |
7616 | } | |
7617 | /^X\(\/\).*/{ | |
7618 | s//\1/ | |
7619 | q | |
7620 | } | |
7621 | s/.*/./; q'` | |
7622 | test -d "$as_dir" && break | |
7623 | done | |
7624 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7625 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
7626 | ||
bae7f79e | 7627 | |
81ecdfbb | 7628 | } # as_fn_mkdir_p |
bae7f79e | 7629 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7630 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
7631 | else |
7632 | test -d ./-p && rmdir ./-p | |
7633 | as_mkdir_p=false | |
7634 | fi | |
7635 | ||
81ecdfbb RW |
7636 | if test -x / >/dev/null 2>&1; then |
7637 | as_test_x='test -x' | |
7638 | else | |
7639 | if ls -dL / >/dev/null 2>&1; then | |
7640 | as_ls_L_option=L | |
7641 | else | |
7642 | as_ls_L_option= | |
7643 | fi | |
7644 | as_test_x=' | |
7645 | eval sh -c '\'' | |
7646 | if test -d "$1"; then | |
7647 | test -d "$1/."; | |
7648 | else | |
7649 | case $1 in #( | |
7650 | -*)set "./$1";; | |
7651 | esac; | |
7652 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
7653 | ???[sx]*):;;*)false;;esac;fi | |
7654 | '\'' sh | |
7655 | ' | |
7656 | fi | |
7657 | as_executable_p=$as_test_x | |
bae7f79e ILT |
7658 | |
7659 | # Sed expression to map a string onto a valid CPP name. | |
7660 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7661 | ||
7662 | # Sed expression to map a string onto a valid variable name. | |
7663 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7664 | ||
7665 | ||
bae7f79e | 7666 | exec 6>&1 |
81ecdfbb RW |
7667 | ## ----------------------------------- ## |
7668 | ## Main body of $CONFIG_STATUS script. ## | |
7669 | ## ----------------------------------- ## | |
7670 | _ASEOF | |
7671 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 7672 | |
81ecdfbb RW |
7673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7674 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 7675 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7676 | # values after options handling. |
7677 | ac_log=" | |
8486ee48 | 7678 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 7679 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
7680 | |
7681 | CONFIG_FILES = $CONFIG_FILES | |
7682 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7683 | CONFIG_LINKS = $CONFIG_LINKS | |
7684 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7685 | $ $0 $@ | |
7686 | ||
81ecdfbb RW |
7687 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7688 | " | |
7689 | ||
bae7f79e ILT |
7690 | _ACEOF |
7691 | ||
81ecdfbb RW |
7692 | case $ac_config_files in *" |
7693 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7694 | esac | |
bae7f79e | 7695 | |
81ecdfbb RW |
7696 | case $ac_config_headers in *" |
7697 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7698 | esac | |
bae7f79e | 7699 | |
bae7f79e | 7700 | |
81ecdfbb RW |
7701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7702 | # Files that config.status was made for. | |
7703 | config_files="$ac_config_files" | |
7704 | config_headers="$ac_config_headers" | |
7705 | config_commands="$ac_config_commands" | |
bae7f79e | 7706 | |
81ecdfbb | 7707 | _ACEOF |
bae7f79e | 7708 | |
81ecdfbb | 7709 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7710 | ac_cs_usage="\ |
81ecdfbb RW |
7711 | \`$as_me' instantiates files and other configuration actions |
7712 | from templates according to the current configuration. Unless the files | |
7713 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 7714 | |
81ecdfbb | 7715 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
7716 | |
7717 | -h, --help print this help, then exit | |
81ecdfbb RW |
7718 | -V, --version print version number and configuration settings, then exit |
7719 | -q, --quiet, --silent | |
7720 | do not print progress messages | |
bae7f79e ILT |
7721 | -d, --debug don't remove temporary files |
7722 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7723 | --file=FILE[:TEMPLATE] |
7724 | instantiate the configuration file FILE | |
7725 | --header=FILE[:TEMPLATE] | |
7726 | instantiate the configuration header FILE | |
bae7f79e ILT |
7727 | |
7728 | Configuration files: | |
7729 | $config_files | |
7730 | ||
7731 | Configuration headers: | |
7732 | $config_headers | |
7733 | ||
7734 | Configuration commands: | |
7735 | $config_commands | |
7736 | ||
81ecdfbb | 7737 | Report bugs to the package provider." |
bae7f79e | 7738 | |
81ecdfbb RW |
7739 | _ACEOF |
7740 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7741 | ac_cs_version="\\ |
8486ee48 | 7742 | gold config.status 0.1 |
81ecdfbb RW |
7743 | configured by $0, generated by GNU Autoconf 2.64, |
7744 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 7745 | |
81ecdfbb | 7746 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
7747 | This config.status script is free software; the Free Software Foundation |
7748 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7749 | |
7750 | ac_pwd='$ac_pwd' | |
7751 | srcdir='$srcdir' | |
7752 | INSTALL='$INSTALL' | |
7753 | MKDIR_P='$MKDIR_P' | |
7754 | AWK='$AWK' | |
7755 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
7756 | _ACEOF |
7757 | ||
81ecdfbb RW |
7758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7759 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
7760 | ac_need_defaults=: |
7761 | while test $# != 0 | |
7762 | do | |
7763 | case $1 in | |
7764 | --*=*) | |
81ecdfbb RW |
7765 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7766 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
7767 | ac_shift=: |
7768 | ;; | |
81ecdfbb | 7769 | *) |
bae7f79e ILT |
7770 | ac_option=$1 |
7771 | ac_optarg=$2 | |
7772 | ac_shift=shift | |
7773 | ;; | |
bae7f79e ILT |
7774 | esac |
7775 | ||
7776 | case $ac_option in | |
7777 | # Handling of the options. | |
bae7f79e ILT |
7778 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7779 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
7780 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7781 | $as_echo "$ac_cs_version"; exit ;; | |
7782 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
7783 | debug=: ;; |
7784 | --file | --fil | --fi | --f ) | |
7785 | $ac_shift | |
81ecdfbb RW |
7786 | case $ac_optarg in |
7787 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7788 | esac | |
7789 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
7790 | ac_need_defaults=false;; |
7791 | --header | --heade | --head | --hea ) | |
7792 | $ac_shift | |
81ecdfbb RW |
7793 | case $ac_optarg in |
7794 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7795 | esac | |
7796 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 7797 | ac_need_defaults=false;; |
81ecdfbb RW |
7798 | --he | --h) |
7799 | # Conflict between --help and --header | |
7800 | as_fn_error "ambiguous option: \`$1' | |
7801 | Try \`$0 --help' for more information.";; | |
7802 | --help | --hel | -h ) | |
7803 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
7804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7805 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7806 | ac_cs_silent=: ;; | |
7807 | ||
7808 | # This is an error. | |
81ecdfbb RW |
7809 | -*) as_fn_error "unrecognized option: \`$1' |
7810 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 7811 | |
81ecdfbb RW |
7812 | *) as_fn_append ac_config_targets " $1" |
7813 | ac_need_defaults=false ;; | |
bae7f79e ILT |
7814 | |
7815 | esac | |
7816 | shift | |
7817 | done | |
7818 | ||
7819 | ac_configure_extra_args= | |
7820 | ||
7821 | if $ac_cs_silent; then | |
7822 | exec 6>/dev/null | |
7823 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7824 | fi | |
7825 | ||
7826 | _ACEOF | |
81ecdfbb | 7827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 7828 | if \$ac_cs_recheck; then |
81ecdfbb RW |
7829 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7830 | shift | |
7831 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7832 | CONFIG_SHELL='$SHELL' | |
7833 | export CONFIG_SHELL | |
7834 | exec "\$@" | |
bae7f79e ILT |
7835 | fi |
7836 | ||
7837 | _ACEOF | |
81ecdfbb RW |
7838 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7839 | exec 5>>config.log | |
7840 | { | |
7841 | echo | |
7842 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7843 | ## Running $as_me. ## | |
7844 | _ASBOX | |
7845 | $as_echo "$ac_log" | |
7846 | } >&5 | |
bae7f79e | 7847 | |
81ecdfbb RW |
7848 | _ACEOF |
7849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7850 | # |
81ecdfbb | 7851 | # INIT-COMMANDS |
bae7f79e | 7852 | # |
bae7f79e ILT |
7853 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
7854 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
7855 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
7856 | # from automake. | |
7857 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
7858 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
7859 | LINGUAS="${LINGUAS-%UNSET%}" | |
7860 | ||
7861 | ||
7862 | _ACEOF | |
7863 | ||
81ecdfbb | 7864 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7865 | |
81ecdfbb | 7866 | # Handling of arguments. |
bae7f79e ILT |
7867 | for ac_config_target in $ac_config_targets |
7868 | do | |
81ecdfbb RW |
7869 | case $ac_config_target in |
7870 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
7871 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7872 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7873 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7874 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
7875 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
7876 | ||
7877 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
7878 | esac |
7879 | done | |
7880 | ||
81ecdfbb | 7881 | |
bae7f79e ILT |
7882 | # If the user did not use the arguments to specify the items to instantiate, |
7883 | # then the envvar interface is used. Set only those that are not. | |
7884 | # We use the long form for the default assignment because of an extremely | |
7885 | # bizarre bug on SunOS 4.1.3. | |
7886 | if $ac_need_defaults; then | |
7887 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7888 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7889 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7890 | fi | |
7891 | ||
7892 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 7893 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 7894 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7895 | # Hook for its removal unless debugging. |
7896 | # Note that there is a small window in which the directory will not be cleaned: | |
7897 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
7898 | $debug || |
7899 | { | |
81ecdfbb RW |
7900 | tmp= |
7901 | trap 'exit_status=$? | |
7902 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7903 | ' 0 | |
7904 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 7905 | } |
bae7f79e ILT |
7906 | # Create a (secure) tmp directory for tmp files. |
7907 | ||
7908 | { | |
81ecdfbb | 7909 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
7910 | test -n "$tmp" && test -d "$tmp" |
7911 | } || | |
7912 | { | |
81ecdfbb RW |
7913 | tmp=./conf$$-$RANDOM |
7914 | (umask 077 && mkdir "$tmp") | |
7915 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
7916 | ||
7917 | # Set up the scripts for CONFIG_FILES section. | |
7918 | # No need to generate them if there are no CONFIG_FILES. | |
7919 | # This happens for instance with `./config.status config.h'. | |
7920 | if test -n "$CONFIG_FILES"; then | |
7921 | ||
7922 | ||
7923 | ac_cr=`echo X | tr X '\015'` | |
7924 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7925 | # But we know of no other shell where ac_cr would be empty at this | |
7926 | # point, so we can use a bashism as a fallback. | |
7927 | if test "x$ac_cr" = x; then | |
7928 | eval ac_cr=\$\'\\r\' | |
7929 | fi | |
7930 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7931 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7932 | ac_cs_awk_cr='\r' | |
7933 | else | |
7934 | ac_cs_awk_cr=$ac_cr | |
7935 | fi | |
7936 | ||
7937 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
7938 | _ACEOF | |
7939 | ||
7940 | ||
7941 | { | |
7942 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7943 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7944 | echo "_ACEOF" | |
7945 | } >conf$$subs.sh || | |
7946 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7947 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7948 | ac_delim='%!_!# ' | |
7949 | for ac_last_try in false false false false false :; do | |
7950 | . ./conf$$subs.sh || | |
7951 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7952 | ||
7953 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7954 | if test $ac_delim_n = $ac_delim_num; then | |
7955 | break | |
7956 | elif $ac_last_try; then | |
7957 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7958 | else | |
7959 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7960 | fi | |
7961 | done | |
7962 | rm -f conf$$subs.sh | |
7963 | ||
7964 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7965 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7966 | _ACEOF | |
7967 | sed -n ' | |
7968 | h | |
7969 | s/^/S["/; s/!.*/"]=/ | |
7970 | p | |
7971 | g | |
7972 | s/^[^!]*!// | |
7973 | :repl | |
7974 | t repl | |
7975 | s/'"$ac_delim"'$// | |
7976 | t delim | |
7977 | :nl | |
7978 | h | |
7979 | s/\(.\{148\}\).*/\1/ | |
7980 | t more1 | |
7981 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7982 | p | |
7983 | n | |
7984 | b repl | |
7985 | :more1 | |
7986 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7987 | p | |
7988 | g | |
7989 | s/.\{148\}// | |
7990 | t nl | |
7991 | :delim | |
7992 | h | |
7993 | s/\(.\{148\}\).*/\1/ | |
7994 | t more2 | |
7995 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7996 | p | |
7997 | b | |
7998 | :more2 | |
7999 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8000 | p | |
8001 | g | |
8002 | s/.\{148\}// | |
8003 | t delim | |
8004 | ' <conf$$subs.awk | sed ' | |
8005 | /^[^""]/{ | |
8006 | N | |
8007 | s/\n// | |
8008 | } | |
8009 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8010 | rm -f conf$$subs.awk | |
8011 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8012 | _ACAWK | |
8013 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8014 | for (key in S) S_is_set[key] = 1 | |
8015 | FS = "\a" | |
8016 | ||
8017 | } | |
bae7f79e | 8018 | { |
81ecdfbb RW |
8019 | line = $ 0 |
8020 | nfields = split(line, field, "@") | |
8021 | substed = 0 | |
8022 | len = length(field[1]) | |
8023 | for (i = 2; i < nfields; i++) { | |
8024 | key = field[i] | |
8025 | keylen = length(key) | |
8026 | if (S_is_set[key]) { | |
8027 | value = S[key] | |
8028 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8029 | len += length(value) + length(field[++i]) | |
8030 | substed = 1 | |
8031 | } else | |
8032 | len += 1 + keylen | |
8033 | } | |
8034 | ||
8035 | print line | |
bae7f79e ILT |
8036 | } |
8037 | ||
81ecdfbb RW |
8038 | _ACAWK |
8039 | _ACEOF | |
8040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8041 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8042 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8043 | else | |
8044 | cat | |
8045 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8046 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8047 | _ACEOF |
8048 | ||
81ecdfbb RW |
8049 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8050 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8051 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8052 | # (actually we leave an empty line to preserve line numbers). | |
8053 | if test "x$srcdir" = x.; then | |
8054 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8055 | s/:*\$(srcdir):*/:/ | |
8056 | s/:*\${srcdir}:*/:/ | |
8057 | s/:*@srcdir@:*/:/ | |
8058 | s/^\([^=]*=[ ]*\):*/\1/ | |
8059 | s/:*$// | |
8060 | s/^[^=]*=[ ]*$// | |
8061 | }' | |
8062 | fi | |
bae7f79e | 8063 | |
81ecdfbb RW |
8064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8065 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8066 | |
81ecdfbb RW |
8067 | # Set up the scripts for CONFIG_HEADERS section. |
8068 | # No need to generate them if there are no CONFIG_HEADERS. | |
8069 | # This happens for instance with `./config.status Makefile'. | |
8070 | if test -n "$CONFIG_HEADERS"; then | |
8071 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8072 | BEGIN { | |
bae7f79e ILT |
8073 | _ACEOF |
8074 | ||
81ecdfbb RW |
8075 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8076 | # here-document in config.status, that substitutes the proper values into | |
8077 | # config.h.in to produce config.h. | |
8078 | ||
8079 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8080 | # handling of long lines. | |
8081 | ac_delim='%!_!# ' | |
8082 | for ac_last_try in false false :; do | |
8083 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8084 | if test -z "$ac_t"; then | |
8085 | break | |
8086 | elif $ac_last_try; then | |
8087 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8088 | else | |
8089 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8090 | fi |
81ecdfbb | 8091 | done |
bae7f79e | 8092 | |
81ecdfbb RW |
8093 | # For the awk script, D is an array of macro values keyed by name, |
8094 | # likewise P contains macro parameters if any. Preserve backslash | |
8095 | # newline sequences. | |
8096 | ||
8097 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8098 | sed -n ' | |
8099 | s/.\{148\}/&'"$ac_delim"'/g | |
8100 | t rset | |
8101 | :rset | |
8102 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8103 | t def | |
8104 | d | |
8105 | :def | |
8106 | s/\\$// | |
8107 | t bsnl | |
8108 | s/["\\]/\\&/g | |
8109 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8110 | D["\1"]=" \3"/p | |
8111 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8112 | d | |
8113 | :bsnl | |
8114 | s/["\\]/\\&/g | |
8115 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8116 | D["\1"]=" \3\\\\\\n"\\/p | |
8117 | t cont | |
8118 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8119 | t cont | |
8120 | d | |
8121 | :cont | |
8122 | n | |
8123 | s/.\{148\}/&'"$ac_delim"'/g | |
8124 | t clear | |
8125 | :clear | |
8126 | s/\\$// | |
8127 | t bsnlc | |
8128 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8129 | d | |
8130 | :bsnlc | |
8131 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8132 | b cont | |
8133 | ' <confdefs.h | sed ' | |
8134 | s/'"$ac_delim"'/"\\\ | |
8135 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8136 | ||
8137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8138 | for (key in D) D_is_set[key] = 1 | |
8139 | FS = "\a" | |
8140 | } | |
8141 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8142 | line = \$ 0 | |
8143 | split(line, arg, " ") | |
8144 | if (arg[1] == "#") { | |
8145 | defundef = arg[2] | |
8146 | mac1 = arg[3] | |
8147 | } else { | |
8148 | defundef = substr(arg[1], 2) | |
8149 | mac1 = arg[2] | |
8150 | } | |
8151 | split(mac1, mac2, "(") #) | |
8152 | macro = mac2[1] | |
8153 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8154 | if (D_is_set[macro]) { | |
8155 | # Preserve the white space surrounding the "#". | |
8156 | print prefix "define", macro P[macro] D[macro] | |
8157 | next | |
8158 | } else { | |
8159 | # Replace #undef with comments. This is necessary, for example, | |
8160 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8161 | # on some systems where configure will not decide to define it. | |
8162 | if (defundef == "undef") { | |
8163 | print "/*", prefix defundef, macro, "*/" | |
8164 | next | |
8165 | } | |
8166 | } | |
8167 | } | |
8168 | { print } | |
8169 | _ACAWK | |
bae7f79e | 8170 | _ACEOF |
81ecdfbb RW |
8171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8172 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8173 | fi # test -n "$CONFIG_HEADERS" | |
8174 | ||
8175 | ||
8176 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8177 | shift | |
8178 | for ac_tag | |
8179 | do | |
8180 | case $ac_tag in | |
8181 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8182 | esac | |
8183 | case $ac_mode$ac_tag in | |
8184 | :[FHL]*:*);; | |
8185 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8186 | :[FH]-) ac_tag=-:-;; | |
8187 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8188 | esac | |
8189 | ac_save_IFS=$IFS | |
8190 | IFS=: | |
8191 | set x $ac_tag | |
8192 | IFS=$ac_save_IFS | |
8193 | shift | |
8194 | ac_file=$1 | |
8195 | shift | |
8196 | ||
8197 | case $ac_mode in | |
8198 | :L) ac_source=$1;; | |
8199 | :[FH]) | |
8200 | ac_file_inputs= | |
8201 | for ac_f | |
8202 | do | |
8203 | case $ac_f in | |
8204 | -) ac_f="$tmp/stdin";; | |
8205 | *) # Look for the file first in the build tree, then in the source tree | |
8206 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8207 | # because $ac_f cannot contain `:'. | |
8208 | test -f "$ac_f" || | |
8209 | case $ac_f in | |
8210 | [\\/$]*) false;; | |
8211 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8212 | esac || | |
8213 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8214 | esac | |
8215 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8216 | as_fn_append ac_file_inputs " '$ac_f'" | |
8217 | done | |
8218 | ||
8219 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8220 | # use $as_me), people would be surprised to read: | |
8221 | # /* config.h. Generated by config.status. */ | |
8222 | configure_input='Generated from '` | |
8223 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8224 | `' by configure.' | |
8225 | if test x"$ac_file" != x-; then | |
8226 | configure_input="$ac_file. $configure_input" | |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8228 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8229 | fi | |
8230 | # Neutralize special characters interpreted by sed in replacement strings. | |
8231 | case $configure_input in #( | |
8232 | *\&* | *\|* | *\\* ) | |
8233 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8234 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8235 | *) ac_sed_conf_input=$configure_input;; | |
8236 | esac | |
8237 | ||
8238 | case $ac_tag in | |
8239 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8240 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8241 | esac | |
8242 | ;; | |
bae7f79e ILT |
8243 | esac |
8244 | ||
81ecdfbb | 8245 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8246 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8247 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8248 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8249 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8250 | $as_echo X"$ac_file" | | |
8251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8252 | s//\1/ | |
8253 | q | |
8254 | } | |
8255 | /^X\(\/\/\)[^/].*/{ | |
8256 | s//\1/ | |
8257 | q | |
8258 | } | |
8259 | /^X\(\/\/\)$/{ | |
8260 | s//\1/ | |
8261 | q | |
8262 | } | |
8263 | /^X\(\/\).*/{ | |
8264 | s//\1/ | |
8265 | q | |
8266 | } | |
8267 | s/.*/./; q'` | |
8268 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8269 | ac_builddir=. |
8270 | ||
81ecdfbb RW |
8271 | case "$ac_dir" in |
8272 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8273 | *) | |
8274 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8275 | # A ".." for each directory in $ac_dir_suffix. | |
8276 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8277 | case $ac_top_builddir_sub in | |
8278 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8279 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8280 | esac ;; | |
8281 | esac | |
8282 | ac_abs_top_builddir=$ac_pwd | |
8283 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8284 | # for backward compatibility: | |
8285 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8286 | |
8287 | case $srcdir in | |
81ecdfbb | 8288 | .) # We are building in place. |
bae7f79e | 8289 | ac_srcdir=. |
81ecdfbb RW |
8290 | ac_top_srcdir=$ac_top_builddir_sub |
8291 | ac_abs_top_srcdir=$ac_pwd ;; | |
8292 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8293 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8294 | ac_top_srcdir=$srcdir |
8295 | ac_abs_top_srcdir=$srcdir ;; | |
8296 | *) # Relative name. | |
8297 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8298 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8299 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8300 | esac |
81ecdfbb | 8301 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8302 | |
bae7f79e | 8303 | |
81ecdfbb RW |
8304 | case $ac_mode in |
8305 | :F) | |
8306 | # | |
8307 | # CONFIG_FILE | |
8308 | # | |
bae7f79e ILT |
8309 | |
8310 | case $INSTALL in | |
8311 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8312 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8313 | esac |
81ecdfbb RW |
8314 | ac_MKDIR_P=$MKDIR_P |
8315 | case $MKDIR_P in | |
8316 | [\\/$]* | ?:[\\/]* ) ;; | |
8317 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8318 | esac | |
8319 | _ACEOF | |
bae7f79e | 8320 | |
81ecdfbb RW |
8321 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8322 | # If the template does not know about datarootdir, expand it. | |
8323 | # FIXME: This hack should be removed a few years after 2.60. | |
8324 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8325 | ac_sed_dataroot=' | |
8326 | /datarootdir/ { | |
8327 | p | |
8328 | q | |
8329 | } | |
8330 | /@datadir@/p | |
8331 | /@docdir@/p | |
8332 | /@infodir@/p | |
8333 | /@localedir@/p | |
8334 | /@mandir@/p' | |
8335 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8336 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8337 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8339 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8340 | _ACEOF | |
8341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8342 | ac_datarootdir_hack=' | |
8343 | s&@datadir@&$datadir&g | |
8344 | s&@docdir@&$docdir&g | |
8345 | s&@infodir@&$infodir&g | |
8346 | s&@localedir@&$localedir&g | |
8347 | s&@mandir@&$mandir&g | |
8348 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8349 | esac | |
bae7f79e | 8350 | _ACEOF |
81ecdfbb RW |
8351 | |
8352 | # Neutralize VPATH when `$srcdir' = `.'. | |
8353 | # Shell code in configure.ac might set extrasub. | |
8354 | # FIXME: do we really want to maintain this feature? | |
8355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8356 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8357 | $extrasub |
8358 | _ACEOF | |
81ecdfbb | 8359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8360 | :t |
8361 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8362 | s|@configure_input@|$ac_sed_conf_input|;t t |
8363 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8364 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8365 | s&@srcdir@&$ac_srcdir&;t t | |
8366 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8367 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8368 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8369 | s&@builddir@&$ac_builddir&;t t | |
8370 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8371 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8372 | s&@INSTALL@&$ac_INSTALL&;t t | |
8373 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8374 | $ac_datarootdir_hack | |
8375 | " | |
8376 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8377 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8378 | ||
8379 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8380 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8381 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8383 | which seems to be undefined. Please make sure it is defined." >&5 | |
8384 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8385 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8386 | ||
8387 | rm -f "$tmp/stdin" | |
bae7f79e | 8388 | case $ac_file in |
81ecdfbb RW |
8389 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8390 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8391 | esac \ | |
8392 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8393 | ;; | |
8394 | :H) | |
8395 | # | |
8396 | # CONFIG_HEADER | |
8397 | # | |
bae7f79e | 8398 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8399 | { |
8400 | $as_echo "/* $configure_input */" \ | |
8401 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8402 | } >"$tmp/config.h" \ | |
8403 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8404 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8406 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8407 | else |
81ecdfbb RW |
8408 | rm -f "$ac_file" |
8409 | mv "$tmp/config.h" "$ac_file" \ | |
8410 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8411 | fi |
8412 | else | |
81ecdfbb RW |
8413 | $as_echo "/* $configure_input */" \ |
8414 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8415 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8416 | fi |
81ecdfbb RW |
8417 | # Compute "$ac_file"'s index in $config_headers. |
8418 | _am_arg="$ac_file" | |
bae7f79e ILT |
8419 | _am_stamp_count=1 |
8420 | for _am_header in $config_headers :; do | |
8421 | case $_am_header in | |
81ecdfbb | 8422 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8423 | break ;; |
8424 | * ) | |
8425 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8426 | esac | |
8427 | done | |
81ecdfbb RW |
8428 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8429 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8430 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8431 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8432 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8433 | $as_echo X"$_am_arg" | | |
8434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8435 | s//\1/ | |
8436 | q | |
8437 | } | |
8438 | /^X\(\/\/\)[^/].*/{ | |
8439 | s//\1/ | |
8440 | q | |
8441 | } | |
8442 | /^X\(\/\/\)$/{ | |
8443 | s//\1/ | |
8444 | q | |
8445 | } | |
8446 | /^X\(\/\).*/{ | |
8447 | s//\1/ | |
8448 | q | |
8449 | } | |
8450 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8451 | ;; | |
bae7f79e | 8452 | |
81ecdfbb RW |
8453 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8454 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8455 | ;; | |
8456 | esac | |
bae7f79e ILT |
8457 | |
8458 | ||
81ecdfbb RW |
8459 | case $ac_file$ac_mode in |
8460 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8461 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8462 | # are listed without --file. Let's play safe and only enable the eval | |
8463 | # if we detect the quoting. | |
8464 | case $CONFIG_FILES in | |
8465 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8466 | *) set x $CONFIG_FILES ;; | |
8467 | esac | |
8468 | shift | |
8469 | for mf | |
8470 | do | |
8471 | # Strip MF so we end up with the name of the file. | |
8472 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8473 | # Check whether this is an Automake generated Makefile or not. | |
8474 | # We used to match only the files named `Makefile.in', but | |
8475 | # some people rename them; so instead we look at the file content. | |
8476 | # Grep'ing the first line is not enough: some people post-process | |
8477 | # each Makefile.in and add a new line on top of each file to say so. | |
8478 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8479 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8480 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8481 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
8482 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8483 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8484 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8485 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
8486 | $as_echo X"$mf" | | |
8487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8488 | s//\1/ | |
8489 | q | |
8490 | } | |
8491 | /^X\(\/\/\)[^/].*/{ | |
8492 | s//\1/ | |
8493 | q | |
8494 | } | |
8495 | /^X\(\/\/\)$/{ | |
8496 | s//\1/ | |
8497 | q | |
8498 | } | |
8499 | /^X\(\/\).*/{ | |
8500 | s//\1/ | |
8501 | q | |
8502 | } | |
8503 | s/.*/./; q'` | |
8504 | else | |
8505 | continue | |
8506 | fi | |
8507 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8508 | # from the Makefile without running `make'. | |
8509 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8510 | test -z "$DEPDIR" && continue | |
8511 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8512 | test -z "am__include" && continue | |
8513 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8514 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8515 | U=`sed -n 's/^U = //p' < "$mf"` | |
8516 | # Find all dependency output files, they are included files with | |
8517 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8518 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8519 | # expansion. | |
8520 | for file in `sed -n " | |
8521 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8522 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8523 | # Make sure the directory exists. | |
8524 | test -f "$dirpart/$file" && continue | |
8525 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
8526 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8527 | X"$file" : 'X\(//\)[^/]' \| \ | |
8528 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8529 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
8530 | $as_echo X"$file" | | |
8531 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8532 | s//\1/ | |
8533 | q | |
8534 | } | |
8535 | /^X\(\/\/\)[^/].*/{ | |
8536 | s//\1/ | |
8537 | q | |
8538 | } | |
8539 | /^X\(\/\/\)$/{ | |
8540 | s//\1/ | |
8541 | q | |
8542 | } | |
8543 | /^X\(\/\).*/{ | |
8544 | s//\1/ | |
8545 | q | |
8546 | } | |
8547 | s/.*/./; q'` | |
8548 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8549 | # echo "creating $dirpart/$file" | |
8550 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 8551 | done |
bae7f79e | 8552 | done |
81ecdfbb | 8553 | } |
bae7f79e | 8554 | ;; |
81ecdfbb | 8555 | "default-1":C) |
bae7f79e ILT |
8556 | for ac_file in $CONFIG_FILES; do |
8557 | # Support "outfile[:infile[:infile...]]" | |
8558 | case "$ac_file" in | |
8559 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8560 | esac | |
8561 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8562 | case "$ac_file" in */Makefile.in) | |
8563 | # Adjust a relative srcdir. | |
8564 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
8565 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
8566 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
8567 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8568 | # In autoconf-2.50 it is called $srcdir. | |
8569 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8570 | case "$ac_given_srcdir" in | |
8571 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8572 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8573 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8574 | esac | |
8575 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8576 | rm -f "$ac_dir/POTFILES" | |
8577 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8578 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8579 | POMAKEFILEDEPS="POTFILES.in" | |
8580 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8581 | # on $ac_dir but don't depend on user-specified configuration | |
8582 | # parameters. | |
8583 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8584 | # The LINGUAS file contains the set of available languages. | |
8585 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
8586 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
8587 | fi | |
8588 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8589 | # Hide the ALL_LINGUAS assigment from automake. | |
8590 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8591 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8592 | else | |
8593 | # The set of available languages was given in configure.in. | |
8594 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
8595 | fi | |
8596 | case "$ac_given_srcdir" in | |
8597 | .) srcdirpre= ;; | |
8598 | *) srcdirpre='$(srcdir)/' ;; | |
8599 | esac | |
8600 | POFILES= | |
8601 | GMOFILES= | |
8602 | UPDATEPOFILES= | |
8603 | DUMMYPOFILES= | |
8604 | for lang in $ALL_LINGUAS; do | |
8605 | POFILES="$POFILES $srcdirpre$lang.po" | |
8606 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8607 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8608 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8609 | done | |
8610 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8611 | # environment variable. | |
8612 | INST_LINGUAS= | |
8613 | if test -n "$ALL_LINGUAS"; then | |
8614 | for presentlang in $ALL_LINGUAS; do | |
8615 | useit=no | |
8616 | if test "%UNSET%" != "$LINGUAS"; then | |
8617 | desiredlanguages="$LINGUAS" | |
8618 | else | |
8619 | desiredlanguages="$ALL_LINGUAS" | |
8620 | fi | |
8621 | for desiredlang in $desiredlanguages; do | |
8622 | # Use the presentlang catalog if desiredlang is | |
8623 | # a. equal to presentlang, or | |
8624 | # b. a variant of presentlang (because in this case, | |
8625 | # presentlang can be used as a fallback for messages | |
8626 | # which are not translated in the desiredlang catalog). | |
8627 | case "$desiredlang" in | |
8628 | "$presentlang"*) useit=yes;; | |
8629 | esac | |
8630 | done | |
8631 | if test $useit = yes; then | |
8632 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8633 | fi | |
8634 | done | |
8635 | fi | |
8636 | CATALOGS= | |
8637 | if test -n "$INST_LINGUAS"; then | |
8638 | for lang in $INST_LINGUAS; do | |
8639 | CATALOGS="$CATALOGS $lang.gmo" | |
8640 | done | |
8641 | fi | |
8642 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8643 | 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" | |
8644 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8645 | if test -f "$f"; then | |
8646 | case "$f" in | |
8647 | *.orig | *.bak | *~) ;; | |
8648 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8649 | esac | |
8650 | fi | |
8651 | done | |
8652 | fi | |
8653 | ;; | |
8654 | esac | |
8655 | done ;; | |
81ecdfbb | 8656 | |
bae7f79e | 8657 | esac |
81ecdfbb | 8658 | done # for ac_tag |
bae7f79e | 8659 | |
bae7f79e | 8660 | |
81ecdfbb | 8661 | as_fn_exit 0 |
bae7f79e | 8662 | _ACEOF |
bae7f79e ILT |
8663 | ac_clean_files=$ac_clean_files_save |
8664 | ||
81ecdfbb RW |
8665 | test $ac_write_fail = 0 || |
8666 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8667 | ||
bae7f79e ILT |
8668 | |
8669 | # configure is writing to config.log, and then calls config.status. | |
8670 | # config.status does its own redirection, appending to config.log. | |
8671 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8672 | # by configure, so config.status won't be able to write to it; its | |
8673 | # output is simply discarded. So we exec the FD to /dev/null, | |
8674 | # effectively closing config.log, so it can be properly (re)opened and | |
8675 | # appended to by config.status. When coming back to configure, we | |
8676 | # need to make the FD available again. | |
8677 | if test "$no_create" != yes; then | |
8678 | ac_cs_success=: | |
8679 | ac_config_status_args= | |
8680 | test "$silent" = yes && | |
8681 | ac_config_status_args="$ac_config_status_args --quiet" | |
8682 | exec 5>/dev/null | |
8683 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8684 | exec 5>>config.log | |
8685 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8686 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
8687 | $ac_cs_success || as_fn_exit $? |
8688 | fi | |
8689 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8691 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
8692 | fi |
8693 |