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 | 607 | RANDOM_SEED_CFLAGS |
81ecdfbb RW |
608 | TLS_DESCRIPTORS_FALSE |
609 | TLS_DESCRIPTORS_TRUE | |
610 | TLS_GNU2_DIALECT_FALSE | |
611 | TLS_GNU2_DIALECT_TRUE | |
612 | OMP_SUPPORT_FALSE | |
613 | OMP_SUPPORT_TRUE | |
614 | STATIC_TLS_FALSE | |
615 | STATIC_TLS_TRUE | |
616 | TLS_FALSE | |
617 | TLS_TRUE | |
618 | MCMODEL_MEDIUM_FALSE | |
619 | MCMODEL_MEDIUM_TRUE | |
620 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
621 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
eb373049 ILT |
622 | NATIVE_OR_CROSS_LINKER_FALSE |
623 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
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 | |
c7791212 | 766 | enable_ld |
4fda8867 | 767 | enable_gold |
81ecdfbb RW |
768 | enable_threads |
769 | enable_plugins | |
770 | enable_targets | |
771 | enable_dependency_tracking | |
772 | enable_nls | |
773 | enable_werror | |
774 | enable_build_warnings | |
775 | enable_maintainer_mode | |
776 | ' | |
777 | ac_precious_vars='build_alias | |
778 | host_alias | |
779 | target_alias | |
780 | CC | |
781 | CFLAGS | |
782 | LDFLAGS | |
783 | LIBS | |
784 | CPPFLAGS | |
785 | CXX | |
786 | CXXFLAGS | |
787 | CCC | |
788 | YACC | |
789 | YFLAGS | |
790 | CPP | |
791 | CXXCPP' | |
792 | ||
bae7f79e ILT |
793 | |
794 | # Initialize some variables set by options. | |
795 | ac_init_help= | |
796 | ac_init_version=false | |
81ecdfbb RW |
797 | ac_unrecognized_opts= |
798 | ac_unrecognized_sep= | |
bae7f79e ILT |
799 | # The variables have the same names as the options, with |
800 | # dashes changed to underlines. | |
801 | cache_file=/dev/null | |
802 | exec_prefix=NONE | |
803 | no_create= | |
804 | no_recursion= | |
805 | prefix=NONE | |
806 | program_prefix=NONE | |
807 | program_suffix=NONE | |
808 | program_transform_name=s,x,x, | |
809 | silent= | |
810 | site= | |
811 | srcdir= | |
812 | verbose= | |
813 | x_includes=NONE | |
814 | x_libraries=NONE | |
815 | ||
816 | # Installation directory options. | |
817 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
818 | # and all the variables that are supposed to be based on exec_prefix | |
819 | # by default will actually change. | |
820 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 821 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
822 | bindir='${exec_prefix}/bin' |
823 | sbindir='${exec_prefix}/sbin' | |
824 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
825 | datarootdir='${prefix}/share' |
826 | datadir='${datarootdir}' | |
bae7f79e ILT |
827 | sysconfdir='${prefix}/etc' |
828 | sharedstatedir='${prefix}/com' | |
829 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
830 | includedir='${prefix}/include' |
831 | oldincludedir='/usr/include' | |
81ecdfbb RW |
832 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
833 | infodir='${datarootdir}/info' | |
834 | htmldir='${docdir}' | |
835 | dvidir='${docdir}' | |
836 | pdfdir='${docdir}' | |
837 | psdir='${docdir}' | |
838 | libdir='${exec_prefix}/lib' | |
839 | localedir='${datarootdir}/locale' | |
840 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
841 | |
842 | ac_prev= | |
81ecdfbb | 843 | ac_dashdash= |
bae7f79e ILT |
844 | for ac_option |
845 | do | |
846 | # If the previous option needs an argument, assign it. | |
847 | if test -n "$ac_prev"; then | |
81ecdfbb | 848 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
849 | ac_prev= |
850 | continue | |
851 | fi | |
852 | ||
81ecdfbb RW |
853 | case $ac_option in |
854 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
855 | *) ac_optarg=yes ;; | |
856 | esac | |
bae7f79e ILT |
857 | |
858 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
859 | ||
81ecdfbb RW |
860 | case $ac_dashdash$ac_option in |
861 | --) | |
862 | ac_dashdash=yes ;; | |
bae7f79e ILT |
863 | |
864 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
865 | ac_prev=bindir ;; | |
866 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
867 | bindir=$ac_optarg ;; | |
868 | ||
869 | -build | --build | --buil | --bui | --bu) | |
870 | ac_prev=build_alias ;; | |
871 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
872 | build_alias=$ac_optarg ;; | |
873 | ||
874 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
875 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
876 | ac_prev=cache_file ;; | |
877 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
878 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
879 | cache_file=$ac_optarg ;; | |
880 | ||
881 | --config-cache | -C) | |
882 | cache_file=config.cache ;; | |
883 | ||
81ecdfbb | 884 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 885 | ac_prev=datadir ;; |
81ecdfbb | 886 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
887 | datadir=$ac_optarg ;; |
888 | ||
81ecdfbb RW |
889 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
890 | | --dataroo | --dataro | --datar) | |
891 | ac_prev=datarootdir ;; | |
892 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
893 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
894 | datarootdir=$ac_optarg ;; | |
895 | ||
bae7f79e | 896 | -disable-* | --disable-*) |
81ecdfbb | 897 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 898 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
899 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
900 | as_fn_error "invalid feature name: $ac_useropt" | |
901 | ac_useropt_orig=$ac_useropt | |
902 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
903 | case $ac_user_opts in | |
904 | *" | |
905 | "enable_$ac_useropt" | |
906 | "*) ;; | |
907 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
908 | ac_unrecognized_sep=', ';; | |
909 | esac | |
910 | eval enable_$ac_useropt=no ;; | |
911 | ||
912 | -docdir | --docdir | --docdi | --doc | --do) | |
913 | ac_prev=docdir ;; | |
914 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
915 | docdir=$ac_optarg ;; | |
916 | ||
917 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
918 | ac_prev=dvidir ;; | |
919 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
920 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
921 | |
922 | -enable-* | --enable-*) | |
81ecdfbb | 923 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 924 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
925 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
926 | as_fn_error "invalid feature name: $ac_useropt" | |
927 | ac_useropt_orig=$ac_useropt | |
928 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
929 | case $ac_user_opts in | |
930 | *" | |
931 | "enable_$ac_useropt" | |
932 | "*) ;; | |
933 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
934 | ac_unrecognized_sep=', ';; | |
bae7f79e | 935 | esac |
81ecdfbb | 936 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
937 | |
938 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
939 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
940 | | --exec | --exe | --ex) | |
941 | ac_prev=exec_prefix ;; | |
942 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
943 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
944 | | --exec=* | --exe=* | --ex=*) | |
945 | exec_prefix=$ac_optarg ;; | |
946 | ||
947 | -gas | --gas | --ga | --g) | |
948 | # Obsolete; use --with-gas. | |
949 | with_gas=yes ;; | |
950 | ||
951 | -help | --help | --hel | --he | -h) | |
952 | ac_init_help=long ;; | |
953 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
954 | ac_init_help=recursive ;; | |
955 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
956 | ac_init_help=short ;; | |
957 | ||
958 | -host | --host | --hos | --ho) | |
959 | ac_prev=host_alias ;; | |
960 | -host=* | --host=* | --hos=* | --ho=*) | |
961 | host_alias=$ac_optarg ;; | |
962 | ||
81ecdfbb RW |
963 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
964 | ac_prev=htmldir ;; | |
965 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
966 | | --ht=*) | |
967 | htmldir=$ac_optarg ;; | |
968 | ||
bae7f79e ILT |
969 | -includedir | --includedir | --includedi | --included | --include \ |
970 | | --includ | --inclu | --incl | --inc) | |
971 | ac_prev=includedir ;; | |
972 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
973 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
974 | includedir=$ac_optarg ;; | |
975 | ||
976 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
977 | ac_prev=infodir ;; | |
978 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
979 | infodir=$ac_optarg ;; | |
980 | ||
981 | -libdir | --libdir | --libdi | --libd) | |
982 | ac_prev=libdir ;; | |
983 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
984 | libdir=$ac_optarg ;; | |
985 | ||
986 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
987 | | --libexe | --libex | --libe) | |
988 | ac_prev=libexecdir ;; | |
989 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
990 | | --libexe=* | --libex=* | --libe=*) | |
991 | libexecdir=$ac_optarg ;; | |
992 | ||
81ecdfbb RW |
993 | -localedir | --localedir | --localedi | --localed | --locale) |
994 | ac_prev=localedir ;; | |
995 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
996 | localedir=$ac_optarg ;; | |
997 | ||
bae7f79e | 998 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 999 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1000 | ac_prev=localstatedir ;; |
1001 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1002 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1003 | localstatedir=$ac_optarg ;; |
1004 | ||
1005 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1006 | ac_prev=mandir ;; | |
1007 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1008 | mandir=$ac_optarg ;; | |
1009 | ||
1010 | -nfp | --nfp | --nf) | |
1011 | # Obsolete; use --without-fp. | |
1012 | with_fp=no ;; | |
1013 | ||
1014 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1015 | | --no-cr | --no-c | -n) | |
1016 | no_create=yes ;; | |
1017 | ||
1018 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1019 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1020 | no_recursion=yes ;; | |
1021 | ||
1022 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1023 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1024 | | --oldin | --oldi | --old | --ol | --o) | |
1025 | ac_prev=oldincludedir ;; | |
1026 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1027 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1028 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1029 | oldincludedir=$ac_optarg ;; | |
1030 | ||
1031 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1032 | ac_prev=prefix ;; | |
1033 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1034 | prefix=$ac_optarg ;; | |
1035 | ||
1036 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1037 | | --program-pre | --program-pr | --program-p) | |
1038 | ac_prev=program_prefix ;; | |
1039 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1040 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1041 | program_prefix=$ac_optarg ;; | |
1042 | ||
1043 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1044 | | --program-suf | --program-su | --program-s) | |
1045 | ac_prev=program_suffix ;; | |
1046 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1047 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1048 | program_suffix=$ac_optarg ;; | |
1049 | ||
1050 | -program-transform-name | --program-transform-name \ | |
1051 | | --program-transform-nam | --program-transform-na \ | |
1052 | | --program-transform-n | --program-transform- \ | |
1053 | | --program-transform | --program-transfor \ | |
1054 | | --program-transfo | --program-transf \ | |
1055 | | --program-trans | --program-tran \ | |
1056 | | --progr-tra | --program-tr | --program-t) | |
1057 | ac_prev=program_transform_name ;; | |
1058 | -program-transform-name=* | --program-transform-name=* \ | |
1059 | | --program-transform-nam=* | --program-transform-na=* \ | |
1060 | | --program-transform-n=* | --program-transform-=* \ | |
1061 | | --program-transform=* | --program-transfor=* \ | |
1062 | | --program-transfo=* | --program-transf=* \ | |
1063 | | --program-trans=* | --program-tran=* \ | |
1064 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1065 | program_transform_name=$ac_optarg ;; | |
1066 | ||
81ecdfbb RW |
1067 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1068 | ac_prev=pdfdir ;; | |
1069 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1070 | pdfdir=$ac_optarg ;; | |
1071 | ||
1072 | -psdir | --psdir | --psdi | --psd | --ps) | |
1073 | ac_prev=psdir ;; | |
1074 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1075 | psdir=$ac_optarg ;; | |
1076 | ||
bae7f79e ILT |
1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1078 | | -silent | --silent | --silen | --sile | --sil) | |
1079 | silent=yes ;; | |
1080 | ||
1081 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1082 | ac_prev=sbindir ;; | |
1083 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1084 | | --sbi=* | --sb=*) | |
1085 | sbindir=$ac_optarg ;; | |
1086 | ||
1087 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1088 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1089 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1090 | | --sha | --sh) | |
1091 | ac_prev=sharedstatedir ;; | |
1092 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1093 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1094 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1095 | | --sha=* | --sh=*) | |
1096 | sharedstatedir=$ac_optarg ;; | |
1097 | ||
1098 | -site | --site | --sit) | |
1099 | ac_prev=site ;; | |
1100 | -site=* | --site=* | --sit=*) | |
1101 | site=$ac_optarg ;; | |
1102 | ||
1103 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1104 | ac_prev=srcdir ;; | |
1105 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1106 | srcdir=$ac_optarg ;; | |
1107 | ||
1108 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1109 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1110 | ac_prev=sysconfdir ;; | |
1111 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1112 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1113 | sysconfdir=$ac_optarg ;; | |
1114 | ||
1115 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1116 | ac_prev=target_alias ;; | |
1117 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1118 | target_alias=$ac_optarg ;; | |
1119 | ||
1120 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1121 | verbose=yes ;; | |
1122 | ||
1123 | -version | --version | --versio | --versi | --vers | -V) | |
1124 | ac_init_version=: ;; | |
1125 | ||
1126 | -with-* | --with-*) | |
81ecdfbb | 1127 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1128 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1129 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1130 | as_fn_error "invalid package name: $ac_useropt" | |
1131 | ac_useropt_orig=$ac_useropt | |
1132 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1133 | case $ac_user_opts in | |
1134 | *" | |
1135 | "with_$ac_useropt" | |
1136 | "*) ;; | |
1137 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1138 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1139 | esac |
81ecdfbb | 1140 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1141 | |
1142 | -without-* | --without-*) | |
81ecdfbb | 1143 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1144 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1146 | as_fn_error "invalid package name: $ac_useropt" | |
1147 | ac_useropt_orig=$ac_useropt | |
1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1149 | case $ac_user_opts in | |
1150 | *" | |
1151 | "with_$ac_useropt" | |
1152 | "*) ;; | |
1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1154 | ac_unrecognized_sep=', ';; | |
1155 | esac | |
1156 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1157 | |
1158 | --x) | |
1159 | # Obsolete; use --with-x. | |
1160 | with_x=yes ;; | |
1161 | ||
1162 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1163 | | --x-incl | --x-inc | --x-in | --x-i) | |
1164 | ac_prev=x_includes ;; | |
1165 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1166 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1167 | x_includes=$ac_optarg ;; | |
1168 | ||
1169 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1170 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1171 | ac_prev=x_libraries ;; | |
1172 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1173 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1174 | x_libraries=$ac_optarg ;; | |
1175 | ||
81ecdfbb RW |
1176 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1177 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1178 | ;; |
1179 | ||
1180 | *=*) | |
1181 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1182 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1183 | case $ac_envvar in #( |
1184 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1185 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1186 | esac | |
1187 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1188 | export $ac_envvar ;; |
1189 | ||
1190 | *) | |
1191 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1192 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1193 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1194 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1195 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1196 | ;; | |
1197 | ||
1198 | esac | |
1199 | done | |
1200 | ||
1201 | if test -n "$ac_prev"; then | |
1202 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1203 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1204 | fi |
1205 | ||
81ecdfbb RW |
1206 | if test -n "$ac_unrecognized_opts"; then |
1207 | case $enable_option_checking in | |
1208 | no) ;; | |
1209 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1210 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1211 | esac |
81ecdfbb | 1212 | fi |
bae7f79e | 1213 | |
81ecdfbb RW |
1214 | # Check all directory arguments for consistency. |
1215 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1216 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1217 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1218 | libdir localedir mandir | |
bae7f79e | 1219 | do |
81ecdfbb RW |
1220 | eval ac_val=\$$ac_var |
1221 | # Remove trailing slashes. | |
1222 | case $ac_val in | |
1223 | */ ) | |
1224 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1225 | eval $ac_var=\$ac_val;; | |
1226 | esac | |
1227 | # Be sure to have absolute directory names. | |
bae7f79e | 1228 | case $ac_val in |
81ecdfbb RW |
1229 | [\\/$]* | ?:[\\/]* ) continue;; |
1230 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1231 | esac |
81ecdfbb | 1232 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1233 | done |
1234 | ||
1235 | # There might be people who depend on the old broken behavior: `$host' | |
1236 | # used to hold the argument of --host etc. | |
1237 | # FIXME: To remove some day. | |
1238 | build=$build_alias | |
1239 | host=$host_alias | |
1240 | target=$target_alias | |
1241 | ||
1242 | # FIXME: To remove some day. | |
1243 | if test "x$host_alias" != x; then | |
1244 | if test "x$build_alias" = x; then | |
1245 | cross_compiling=maybe | |
81ecdfbb | 1246 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1247 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1248 | elif test "x$build_alias" != "x$host_alias"; then | |
1249 | cross_compiling=yes | |
1250 | fi | |
1251 | fi | |
1252 | ||
1253 | ac_tool_prefix= | |
1254 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1255 | ||
1256 | test "$silent" = yes && exec 6>/dev/null | |
1257 | ||
1258 | ||
81ecdfbb RW |
1259 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1260 | ac_ls_di=`ls -di .` && | |
1261 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1262 | as_fn_error "working directory cannot be determined" | |
1263 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1264 | as_fn_error "pwd does not report name of working directory" | |
1265 | ||
1266 | ||
bae7f79e ILT |
1267 | # Find the source files, if location was not specified. |
1268 | if test -z "$srcdir"; then | |
1269 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1270 | # Try the directory containing this script, then the parent directory. |
1271 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1274 | X"$as_myself" : 'X\(//\)$' \| \ | |
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1276 | $as_echo X"$as_myself" | | |
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\/\)[^/].*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)$/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\).*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | s/.*/./; q'` | |
bae7f79e | 1294 | srcdir=$ac_confdir |
81ecdfbb | 1295 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1296 | srcdir=.. |
1297 | fi | |
1298 | else | |
1299 | ac_srcdir_defaulted=no | |
1300 | fi | |
81ecdfbb RW |
1301 | if test ! -r "$srcdir/$ac_unique_file"; then |
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1303 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1304 | fi | |
1305 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1306 | ac_abs_confdir=`( | |
1307 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1308 | pwd)` | |
1309 | # When building in place, set srcdir=. | |
1310 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1311 | srcdir=. | |
1312 | fi | |
1313 | # Remove unnecessary trailing slashes from srcdir. | |
1314 | # Double slashes in file names in object file debugging info | |
1315 | # mess up M-x gdb in Emacs. | |
1316 | case $srcdir in | |
1317 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1318 | esac | |
1319 | for ac_var in $ac_precious_vars; do | |
1320 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1321 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1322 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1324 | done | |
bae7f79e ILT |
1325 | |
1326 | # | |
1327 | # Report the --help message. | |
1328 | # | |
1329 | if test "$ac_init_help" = "long"; then | |
1330 | # Omit some internal or obsolete options to make the list less imposing. | |
1331 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1332 | cat <<_ACEOF | |
8486ee48 | 1333 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1334 | |
1335 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1336 | ||
1337 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1338 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1339 | ||
1340 | Defaults for the options are specified in brackets. | |
1341 | ||
1342 | Configuration: | |
1343 | -h, --help display this help and exit | |
1344 | --help=short display options specific to this package | |
1345 | --help=recursive display the short help of all the included packages | |
1346 | -V, --version display version information and exit | |
1347 | -q, --quiet, --silent do not print \`checking...' messages | |
1348 | --cache-file=FILE cache test results in FILE [disabled] | |
1349 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1350 | -n, --no-create do not create output files | |
1351 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1352 | ||
bae7f79e ILT |
1353 | Installation directories: |
1354 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1355 | [$ac_default_prefix] |
bae7f79e | 1356 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1357 | [PREFIX] |
bae7f79e ILT |
1358 | |
1359 | By default, \`make install' will install all the files in | |
1360 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1361 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1362 | for instance \`--prefix=\$HOME'. | |
1363 | ||
1364 | For better control, use the options below. | |
1365 | ||
1366 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1367 | --bindir=DIR user executables [EPREFIX/bin] |
1368 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1369 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1370 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1371 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1372 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1373 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1374 | --includedir=DIR C header files [PREFIX/include] | |
1375 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1376 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1377 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1378 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1379 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1380 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1381 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1382 | --htmldir=DIR html documentation [DOCDIR] | |
1383 | --dvidir=DIR dvi documentation [DOCDIR] | |
1384 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1385 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1386 | _ACEOF |
1387 | ||
1388 | cat <<\_ACEOF | |
1389 | ||
1390 | Program names: | |
1391 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1392 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1393 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1394 | ||
1395 | System types: | |
1396 | --build=BUILD configure for building on BUILD [guessed] | |
1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1398 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1399 | _ACEOF | |
1400 | fi | |
1401 | ||
1402 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1403 | case $ac_init_help in |
1404 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1405 | esac | |
bae7f79e ILT |
1406 | cat <<\_ACEOF |
1407 | ||
1408 | Optional Features: | |
81ecdfbb | 1409 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 NC |
1412 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
1413 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] | |
fe9a4c12 | 1414 | --enable-threads multi-threaded linking |
89fc3421 | 1415 | --enable-plugins linker plugins |
193a53d9 | 1416 | --enable-targets alternative target configurations |
bae7f79e ILT |
1417 | --disable-dependency-tracking speeds up one-time build |
1418 | --enable-dependency-tracking do not reject slow dependency extractors | |
1419 | --disable-nls do not use Native Language Support | |
1420 | --enable-werror treat compile warnings as errors | |
1421 | --enable-build-warnings enable build-time compiler warnings | |
1422 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1423 | (and sometimes confusing) to the casual installer | |
1424 | ||
ad2d6943 ILT |
1425 | Optional Packages: |
1426 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1427 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1428 | --with-sysroot=DIR search for usr/lib et al within DIR | |
1429 | ||
bae7f79e ILT |
1430 | Some influential environment variables: |
1431 | CC C compiler command | |
1432 | CFLAGS C compiler flags | |
1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1434 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1435 | LIBS libraries to pass to the linker, e.g. -l<library> |
1436 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1437 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1438 | CXX C++ compiler command |
1439 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1440 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1441 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1442 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1443 | This script will default YFLAGS to the empty string to avoid a | |
1444 | default value of `-d' given by some make applications. | |
9a0910c3 | 1445 | CPP C preprocessor |
54dc6425 | 1446 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1447 | |
1448 | Use these variables to override the choices made by `configure' or to help | |
1449 | it to find libraries and programs with nonstandard names/locations. | |
1450 | ||
81ecdfbb | 1451 | Report bugs to the package provider. |
bae7f79e | 1452 | _ACEOF |
81ecdfbb | 1453 | ac_status=$? |
bae7f79e ILT |
1454 | fi |
1455 | ||
1456 | if test "$ac_init_help" = "recursive"; then | |
1457 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1458 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1459 | test -d "$ac_dir" || |
1460 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1461 | continue | |
bae7f79e ILT |
1462 | ac_builddir=. |
1463 | ||
81ecdfbb RW |
1464 | case "$ac_dir" in |
1465 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1466 | *) | |
1467 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1468 | # A ".." for each directory in $ac_dir_suffix. | |
1469 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1470 | case $ac_top_builddir_sub in | |
1471 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1472 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1473 | esac ;; | |
1474 | esac | |
1475 | ac_abs_top_builddir=$ac_pwd | |
1476 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1477 | # for backward compatibility: | |
1478 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1479 | |
1480 | case $srcdir in | |
81ecdfbb | 1481 | .) # We are building in place. |
bae7f79e | 1482 | ac_srcdir=. |
81ecdfbb RW |
1483 | ac_top_srcdir=$ac_top_builddir_sub |
1484 | ac_abs_top_srcdir=$ac_pwd ;; | |
1485 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1486 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1487 | ac_top_srcdir=$srcdir |
1488 | ac_abs_top_srcdir=$srcdir ;; | |
1489 | *) # Relative name. | |
1490 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1491 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1492 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1493 | esac |
81ecdfbb RW |
1494 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1495 | ||
1496 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1497 | # Check for guested configure. | |
1498 | if test -f "$ac_srcdir/configure.gnu"; then | |
1499 | echo && | |
1500 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1501 | elif test -f "$ac_srcdir/configure"; then | |
1502 | echo && | |
1503 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1504 | else |
81ecdfbb RW |
1505 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1506 | fi || ac_status=$? | |
1507 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1508 | done |
1509 | fi | |
1510 | ||
81ecdfbb | 1511 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1512 | if $ac_init_version; then |
1513 | cat <<\_ACEOF | |
8486ee48 | 1514 | gold configure 0.1 |
81ecdfbb | 1515 | generated by GNU Autoconf 2.64 |
bae7f79e | 1516 | |
81ecdfbb | 1517 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1518 | This configure script is free software; the Free Software Foundation |
1519 | gives unlimited permission to copy, distribute and modify it. | |
1520 | _ACEOF | |
81ecdfbb | 1521 | exit |
bae7f79e | 1522 | fi |
bae7f79e | 1523 | |
81ecdfbb RW |
1524 | ## ------------------------ ## |
1525 | ## Autoconf initialization. ## | |
1526 | ## ------------------------ ## | |
bae7f79e | 1527 | |
81ecdfbb RW |
1528 | # ac_fn_c_try_compile LINENO |
1529 | # -------------------------- | |
1530 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1531 | ac_fn_c_try_compile () | |
bae7f79e | 1532 | { |
81ecdfbb RW |
1533 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1534 | rm -f conftest.$ac_objext | |
1535 | if { { ac_try="$ac_compile" | |
1536 | case "(($ac_try" in | |
1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1538 | *) ac_try_echo=$ac_try;; | |
1539 | esac | |
1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1541 | $as_echo "$ac_try_echo"; } >&5 | |
1542 | (eval "$ac_compile") 2>conftest.err | |
1543 | ac_status=$? | |
1544 | if test -s conftest.err; then | |
1545 | grep -v '^ *+' conftest.err >conftest.er1 | |
1546 | cat conftest.er1 >&5 | |
1547 | mv -f conftest.er1 conftest.err | |
1548 | fi | |
1549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1550 | test $ac_status = 0; } && { | |
1551 | test -z "$ac_c_werror_flag" || | |
1552 | test ! -s conftest.err | |
1553 | } && test -s conftest.$ac_objext; then : | |
1554 | ac_retval=0 | |
1555 | else | |
1556 | $as_echo "$as_me: failed program was:" >&5 | |
1557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1558 | |
81ecdfbb RW |
1559 | ac_retval=1 |
1560 | fi | |
1561 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1562 | return $ac_retval | |
bae7f79e | 1563 | |
81ecdfbb | 1564 | } # ac_fn_c_try_compile |
bae7f79e | 1565 | |
81ecdfbb RW |
1566 | # ac_fn_cxx_try_compile LINENO |
1567 | # ---------------------------- | |
1568 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1569 | ac_fn_cxx_try_compile () | |
1570 | { | |
1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1572 | rm -f conftest.$ac_objext | |
1573 | if { { ac_try="$ac_compile" | |
1574 | case "(($ac_try" in | |
1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1576 | *) ac_try_echo=$ac_try;; | |
1577 | esac | |
1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1579 | $as_echo "$ac_try_echo"; } >&5 | |
1580 | (eval "$ac_compile") 2>conftest.err | |
1581 | ac_status=$? | |
1582 | if test -s conftest.err; then | |
1583 | grep -v '^ *+' conftest.err >conftest.er1 | |
1584 | cat conftest.er1 >&5 | |
1585 | mv -f conftest.er1 conftest.err | |
1586 | fi | |
1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1588 | test $ac_status = 0; } && { | |
1589 | test -z "$ac_cxx_werror_flag" || | |
1590 | test ! -s conftest.err | |
1591 | } && test -s conftest.$ac_objext; then : | |
1592 | ac_retval=0 | |
1593 | else | |
1594 | $as_echo "$as_me: failed program was:" >&5 | |
1595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1596 | |
81ecdfbb RW |
1597 | ac_retval=1 |
1598 | fi | |
1599 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1600 | return $ac_retval | |
bae7f79e | 1601 | |
81ecdfbb | 1602 | } # ac_fn_cxx_try_compile |
bae7f79e | 1603 | |
81ecdfbb RW |
1604 | # ac_fn_c_try_cpp LINENO |
1605 | # ---------------------- | |
1606 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1607 | ac_fn_c_try_cpp () | |
1608 | { | |
1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1610 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1611 | case "(($ac_try" in | |
1612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1613 | *) ac_try_echo=$ac_try;; | |
1614 | esac | |
1615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1616 | $as_echo "$ac_try_echo"; } >&5 | |
1617 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1618 | ac_status=$? | |
1619 | if test -s conftest.err; then | |
1620 | grep -v '^ *+' conftest.err >conftest.er1 | |
1621 | cat conftest.er1 >&5 | |
1622 | mv -f conftest.er1 conftest.err | |
1623 | fi | |
1624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1625 | test $ac_status = 0; } >/dev/null && { | |
1626 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1627 | test ! -s conftest.err | |
1628 | }; then : | |
1629 | ac_retval=0 | |
1630 | else | |
1631 | $as_echo "$as_me: failed program was:" >&5 | |
1632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1633 | |
81ecdfbb RW |
1634 | ac_retval=1 |
1635 | fi | |
1636 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1637 | return $ac_retval | |
bae7f79e | 1638 | |
81ecdfbb | 1639 | } # ac_fn_c_try_cpp |
bae7f79e | 1640 | |
81ecdfbb RW |
1641 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1642 | # ------------------------------------------------------- | |
1643 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1644 | # the include files in INCLUDES and setting the cache variable VAR | |
1645 | # accordingly. | |
1646 | ac_fn_c_check_header_mongrel () | |
1647 | { | |
1648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1649 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1651 | $as_echo_n "checking for $2... " >&6; } | |
1652 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1653 | $as_echo_n "(cached) " >&6 | |
1654 | fi | |
1655 | eval ac_res=\$$3 | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1657 | $as_echo "$ac_res" >&6; } | |
1658 | else | |
1659 | # Is the header compilable? | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1661 | $as_echo_n "checking $2 usability... " >&6; } | |
1662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1663 | /* end confdefs.h. */ | |
1664 | $4 | |
1665 | #include <$2> | |
bae7f79e | 1666 | _ACEOF |
81ecdfbb RW |
1667 | if ac_fn_c_try_compile "$LINENO"; then : |
1668 | ac_header_compiler=yes | |
1669 | else | |
1670 | ac_header_compiler=no | |
1671 | fi | |
1672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1674 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1675 | |
81ecdfbb RW |
1676 | # Is the header present? |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1678 | $as_echo_n "checking $2 presence... " >&6; } | |
1679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1680 | /* end confdefs.h. */ | |
1681 | #include <$2> | |
1682 | _ACEOF | |
1683 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1684 | ac_header_preproc=yes | |
1685 | else | |
1686 | ac_header_preproc=no | |
1687 | fi | |
1688 | rm -f conftest.err conftest.$ac_ext | |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1690 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1691 | |
81ecdfbb RW |
1692 | # So? What about this header? |
1693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1694 | yes:no: ) | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1698 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1699 | ;; | |
1700 | no:yes:* ) | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1704 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1706 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1708 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1710 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1711 | ;; | |
1712 | esac | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1714 | $as_echo_n "checking for $2... " >&6; } | |
1715 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1716 | $as_echo_n "(cached) " >&6 | |
1717 | else | |
1718 | eval "$3=\$ac_header_compiler" | |
1719 | fi | |
1720 | eval ac_res=\$$3 | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1722 | $as_echo "$ac_res" >&6; } | |
1723 | fi | |
1724 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1725 | |
81ecdfbb | 1726 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1727 | |
81ecdfbb RW |
1728 | # ac_fn_c_try_run LINENO |
1729 | # ---------------------- | |
1730 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1731 | # that executables *can* be run. | |
1732 | ac_fn_c_try_run () | |
bae7f79e | 1733 | { |
81ecdfbb RW |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1735 | if { { ac_try="$ac_link" | |
1736 | case "(($ac_try" in | |
1737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1738 | *) ac_try_echo=$ac_try;; | |
1739 | esac | |
1740 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1741 | $as_echo "$ac_try_echo"; } >&5 | |
1742 | (eval "$ac_link") 2>&5 | |
1743 | ac_status=$? | |
1744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1745 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1746 | { { case "(($ac_try" in | |
1747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1748 | *) ac_try_echo=$ac_try;; | |
1749 | esac | |
1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1751 | $as_echo "$ac_try_echo"; } >&5 | |
1752 | (eval "$ac_try") 2>&5 | |
1753 | ac_status=$? | |
1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1755 | test $ac_status = 0; }; }; then : | |
1756 | ac_retval=0 | |
1757 | else | |
1758 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1759 | $as_echo "$as_me: failed program was:" >&5 | |
1760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1761 | |
81ecdfbb RW |
1762 | ac_retval=$ac_status |
1763 | fi | |
1764 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1765 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1766 | return $ac_retval | |
bae7f79e | 1767 | |
81ecdfbb | 1768 | } # ac_fn_c_try_run |
bae7f79e | 1769 | |
81ecdfbb RW |
1770 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1771 | # ------------------------------------------------------- | |
1772 | # Tests whether HEADER exists and can be compiled using the include files in | |
1773 | # INCLUDES, setting the cache variable VAR accordingly. | |
1774 | ac_fn_c_check_header_compile () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1778 | $as_echo_n "checking for $2... " >&6; } | |
1779 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1780 | $as_echo_n "(cached) " >&6 | |
1781 | else | |
1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1783 | /* end confdefs.h. */ | |
1784 | $4 | |
1785 | #include <$2> | |
1786 | _ACEOF | |
1787 | if ac_fn_c_try_compile "$LINENO"; then : | |
1788 | eval "$3=yes" | |
1789 | else | |
1790 | eval "$3=no" | |
1791 | fi | |
1792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1793 | fi | |
1794 | eval ac_res=\$$3 | |
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1796 | $as_echo "$ac_res" >&6; } | |
1797 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1798 | |
81ecdfbb | 1799 | } # ac_fn_c_check_header_compile |
bae7f79e | 1800 | |
81ecdfbb RW |
1801 | # ac_fn_c_try_link LINENO |
1802 | # ----------------------- | |
1803 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1804 | ac_fn_c_try_link () | |
1805 | { | |
1806 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1808 | if { { ac_try="$ac_link" | |
1809 | case "(($ac_try" in | |
1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1811 | *) ac_try_echo=$ac_try;; | |
1812 | esac | |
1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1814 | $as_echo "$ac_try_echo"; } >&5 | |
1815 | (eval "$ac_link") 2>conftest.err | |
1816 | ac_status=$? | |
1817 | if test -s conftest.err; then | |
1818 | grep -v '^ *+' conftest.err >conftest.er1 | |
1819 | cat conftest.er1 >&5 | |
1820 | mv -f conftest.er1 conftest.err | |
1821 | fi | |
1822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1823 | test $ac_status = 0; } && { | |
1824 | test -z "$ac_c_werror_flag" || | |
1825 | test ! -s conftest.err | |
1826 | } && test -s conftest$ac_exeext && { | |
1827 | test "$cross_compiling" = yes || | |
1828 | $as_test_x conftest$ac_exeext | |
1829 | }; then : | |
1830 | ac_retval=0 | |
1831 | else | |
1832 | $as_echo "$as_me: failed program was:" >&5 | |
1833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1834 | |
81ecdfbb RW |
1835 | ac_retval=1 |
1836 | fi | |
1837 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1838 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1839 | # interfere with the next link command; also delete a directory that is | |
1840 | # left behind by Apple's compiler. We do this before executing the actions. | |
1841 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1842 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1843 | return $ac_retval | |
bae7f79e | 1844 | |
81ecdfbb | 1845 | } # ac_fn_c_try_link |
bae7f79e | 1846 | |
81ecdfbb RW |
1847 | # ac_fn_c_check_func LINENO FUNC VAR |
1848 | # ---------------------------------- | |
1849 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1850 | ac_fn_c_check_func () | |
1851 | { | |
1852 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1854 | $as_echo_n "checking for $2... " >&6; } | |
1855 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1856 | $as_echo_n "(cached) " >&6 | |
1857 | else | |
1858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1859 | /* end confdefs.h. */ | |
1860 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1862 | #define $2 innocuous_$2 | |
bae7f79e | 1863 | |
81ecdfbb RW |
1864 | /* System header to define __stub macros and hopefully few prototypes, |
1865 | which can conflict with char $2 (); below. | |
1866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1867 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1868 | |
81ecdfbb RW |
1869 | #ifdef __STDC__ |
1870 | # include <limits.h> | |
1871 | #else | |
1872 | # include <assert.h> | |
1873 | #endif | |
bae7f79e | 1874 | |
81ecdfbb | 1875 | #undef $2 |
bae7f79e | 1876 | |
81ecdfbb RW |
1877 | /* Override any GCC internal prototype to avoid an error. |
1878 | Use char because int might match the return type of a GCC | |
1879 | builtin and then its argument prototype would still apply. */ | |
1880 | #ifdef __cplusplus | |
1881 | extern "C" | |
1882 | #endif | |
1883 | char $2 (); | |
1884 | /* The GNU C library defines this for functions which it implements | |
1885 | to always fail with ENOSYS. Some functions are actually named | |
1886 | something starting with __ and the normal name is an alias. */ | |
1887 | #if defined __stub_$2 || defined __stub___$2 | |
1888 | choke me | |
1889 | #endif | |
1890 | ||
1891 | int | |
1892 | main () | |
1893 | { | |
1894 | return $2 (); | |
1895 | ; | |
1896 | return 0; | |
1897 | } | |
bae7f79e | 1898 | _ACEOF |
81ecdfbb RW |
1899 | if ac_fn_c_try_link "$LINENO"; then : |
1900 | eval "$3=yes" | |
1901 | else | |
1902 | eval "$3=no" | |
1903 | fi | |
1904 | rm -f core conftest.err conftest.$ac_objext \ | |
1905 | conftest$ac_exeext conftest.$ac_ext | |
1906 | fi | |
1907 | eval ac_res=\$$3 | |
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1909 | $as_echo "$ac_res" >&6; } | |
1910 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1911 | |
81ecdfbb | 1912 | } # ac_fn_c_check_func |
bae7f79e | 1913 | |
81ecdfbb RW |
1914 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1915 | # ------------------------------------ | |
1916 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1917 | ac_fn_c_check_decl () | |
1918 | { | |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1920 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1921 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1923 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1924 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1925 | $as_echo_n "(cached) " >&6 | |
1926 | else | |
1927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1928 | /* end confdefs.h. */ | |
1929 | $4 | |
1930 | int | |
1931 | main () | |
1932 | { | |
7223e9ca ILT |
1933 | #ifndef $as_decl_name |
1934 | #ifdef __cplusplus | |
1935 | (void) $as_decl_use; | |
1936 | #else | |
1937 | (void) $as_decl_name; | |
1938 | #endif | |
81ecdfbb RW |
1939 | #endif |
1940 | ||
1941 | ; | |
1942 | return 0; | |
1943 | } | |
bae7f79e | 1944 | _ACEOF |
81ecdfbb RW |
1945 | if ac_fn_c_try_compile "$LINENO"; then : |
1946 | eval "$3=yes" | |
1947 | else | |
1948 | eval "$3=no" | |
1949 | fi | |
1950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1951 | fi | |
1952 | eval ac_res=\$$3 | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1954 | $as_echo "$ac_res" >&6; } | |
1955 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1956 | |
81ecdfbb | 1957 | } # ac_fn_c_check_decl |
bae7f79e | 1958 | |
81ecdfbb RW |
1959 | # ac_fn_cxx_try_cpp LINENO |
1960 | # ------------------------ | |
1961 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1962 | ac_fn_cxx_try_cpp () | |
1963 | { | |
1964 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1965 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1966 | case "(($ac_try" in | |
1967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1968 | *) ac_try_echo=$ac_try;; | |
1969 | esac | |
1970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1971 | $as_echo "$ac_try_echo"; } >&5 | |
1972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1973 | ac_status=$? | |
1974 | if test -s conftest.err; then | |
1975 | grep -v '^ *+' conftest.err >conftest.er1 | |
1976 | cat conftest.er1 >&5 | |
1977 | mv -f conftest.er1 conftest.err | |
bae7f79e | 1978 | fi |
81ecdfbb RW |
1979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1980 | test $ac_status = 0; } >/dev/null && { | |
1981 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1982 | test ! -s conftest.err | |
1983 | }; then : | |
1984 | ac_retval=0 | |
1985 | else | |
1986 | $as_echo "$as_me: failed program was:" >&5 | |
1987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1988 | ||
1989 | ac_retval=1 | |
bae7f79e | 1990 | fi |
81ecdfbb RW |
1991 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1992 | return $ac_retval | |
bae7f79e | 1993 | |
81ecdfbb RW |
1994 | } # ac_fn_cxx_try_cpp |
1995 | ||
1996 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1997 | # --------------------------------------------------------- | |
1998 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1999 | # the include files in INCLUDES and setting the cache variable VAR | |
2000 | # accordingly. | |
2001 | ac_fn_cxx_check_header_mongrel () | |
2002 | { | |
2003 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2004 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2006 | $as_echo_n "checking for $2... " >&6; } | |
2007 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2008 | $as_echo_n "(cached) " >&6 | |
2009 | fi | |
2010 | eval ac_res=\$$3 | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2012 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2013 | else |
81ecdfbb RW |
2014 | # Is the header compilable? |
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2016 | $as_echo_n "checking $2 usability... " >&6; } | |
2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2018 | /* end confdefs.h. */ | |
2019 | $4 | |
2020 | #include <$2> | |
2021 | _ACEOF | |
2022 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2023 | ac_header_compiler=yes | |
2024 | else | |
2025 | ac_header_compiler=no | |
bae7f79e | 2026 | fi |
81ecdfbb RW |
2027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2029 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2030 | |
81ecdfbb RW |
2031 | # Is the header present? |
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2033 | $as_echo_n "checking $2 presence... " >&6; } | |
2034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2035 | /* end confdefs.h. */ | |
2036 | #include <$2> | |
2037 | _ACEOF | |
2038 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2039 | ac_header_preproc=yes | |
2040 | else | |
2041 | ac_header_preproc=no | |
bae7f79e | 2042 | fi |
81ecdfbb RW |
2043 | rm -f conftest.err conftest.$ac_ext |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2045 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2046 | |
81ecdfbb RW |
2047 | # So? What about this header? |
2048 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2049 | yes:no: ) | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2051 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2053 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2054 | ;; | |
2055 | no:yes:* ) | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2057 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2059 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2061 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2063 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2065 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2066 | ;; | |
2067 | esac | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2069 | $as_echo_n "checking for $2... " >&6; } | |
2070 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2071 | $as_echo_n "(cached) " >&6 | |
2072 | else | |
2073 | eval "$3=\$ac_header_compiler" | |
2074 | fi | |
2075 | eval ac_res=\$$3 | |
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2077 | $as_echo "$ac_res" >&6; } | |
2078 | fi | |
2079 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2080 | ||
2081 | } # ac_fn_cxx_check_header_mongrel | |
2082 | ||
2083 | # ac_fn_cxx_try_link LINENO | |
2084 | # ------------------------- | |
2085 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2086 | ac_fn_cxx_try_link () | |
2087 | { | |
2088 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2090 | if { { ac_try="$ac_link" | |
2091 | case "(($ac_try" in | |
2092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2093 | *) ac_try_echo=$ac_try;; | |
2094 | esac | |
2095 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2096 | $as_echo "$ac_try_echo"; } >&5 | |
2097 | (eval "$ac_link") 2>conftest.err | |
2098 | ac_status=$? | |
2099 | if test -s conftest.err; then | |
2100 | grep -v '^ *+' conftest.err >conftest.er1 | |
2101 | cat conftest.er1 >&5 | |
2102 | mv -f conftest.er1 conftest.err | |
2103 | fi | |
2104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2105 | test $ac_status = 0; } && { | |
2106 | test -z "$ac_cxx_werror_flag" || | |
2107 | test ! -s conftest.err | |
2108 | } && test -s conftest$ac_exeext && { | |
2109 | test "$cross_compiling" = yes || | |
2110 | $as_test_x conftest$ac_exeext | |
2111 | }; then : | |
2112 | ac_retval=0 | |
2113 | else | |
2114 | $as_echo "$as_me: failed program was:" >&5 | |
2115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2116 | |
81ecdfbb RW |
2117 | ac_retval=1 |
2118 | fi | |
2119 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2120 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2121 | # interfere with the next link command; also delete a directory that is | |
2122 | # left behind by Apple's compiler. We do this before executing the actions. | |
2123 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2124 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2125 | return $ac_retval | |
bae7f79e | 2126 | |
81ecdfbb | 2127 | } # ac_fn_cxx_try_link |
bae7f79e | 2128 | |
81ecdfbb RW |
2129 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2130 | # ------------------------------------ | |
2131 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2132 | ac_fn_cxx_check_func () | |
2133 | { | |
2134 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2136 | $as_echo_n "checking for $2... " >&6; } | |
2137 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2138 | $as_echo_n "(cached) " >&6 | |
2139 | else | |
2140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2141 | /* end confdefs.h. */ | |
2142 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2144 | #define $2 innocuous_$2 | |
bae7f79e | 2145 | |
81ecdfbb RW |
2146 | /* System header to define __stub macros and hopefully few prototypes, |
2147 | which can conflict with char $2 (); below. | |
2148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2149 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2150 | |
81ecdfbb RW |
2151 | #ifdef __STDC__ |
2152 | # include <limits.h> | |
2153 | #else | |
2154 | # include <assert.h> | |
2155 | #endif | |
bae7f79e | 2156 | |
81ecdfbb | 2157 | #undef $2 |
bae7f79e | 2158 | |
81ecdfbb RW |
2159 | /* Override any GCC internal prototype to avoid an error. |
2160 | Use char because int might match the return type of a GCC | |
2161 | builtin and then its argument prototype would still apply. */ | |
2162 | #ifdef __cplusplus | |
2163 | extern "C" | |
2164 | #endif | |
2165 | char $2 (); | |
2166 | /* The GNU C library defines this for functions which it implements | |
2167 | to always fail with ENOSYS. Some functions are actually named | |
2168 | something starting with __ and the normal name is an alias. */ | |
2169 | #if defined __stub_$2 || defined __stub___$2 | |
2170 | choke me | |
2171 | #endif | |
bae7f79e | 2172 | |
81ecdfbb RW |
2173 | int |
2174 | main () | |
2175 | { | |
2176 | return $2 (); | |
2177 | ; | |
2178 | return 0; | |
2179 | } | |
2180 | _ACEOF | |
2181 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2182 | eval "$3=yes" | |
2183 | else | |
2184 | eval "$3=no" | |
2185 | fi | |
2186 | rm -f core conftest.err conftest.$ac_objext \ | |
2187 | conftest$ac_exeext conftest.$ac_ext | |
2188 | fi | |
2189 | eval ac_res=\$$3 | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2191 | $as_echo "$ac_res" >&6; } | |
2192 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2193 | |
81ecdfbb | 2194 | } # ac_fn_cxx_check_func |
bae7f79e | 2195 | |
81ecdfbb RW |
2196 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2197 | # -------------------------------------- | |
2198 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2199 | ac_fn_cxx_check_decl () | |
2200 | { | |
2201 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2202 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2203 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2205 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2206 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2207 | $as_echo_n "(cached) " >&6 | |
2208 | else | |
2209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2210 | /* end confdefs.h. */ | |
2211 | $4 | |
2212 | int | |
2213 | main () | |
2214 | { | |
7223e9ca ILT |
2215 | #ifndef $as_decl_name |
2216 | #ifdef __cplusplus | |
2217 | (void) $as_decl_use; | |
2218 | #else | |
2219 | (void) $as_decl_name; | |
2220 | #endif | |
81ecdfbb | 2221 | #endif |
bae7f79e | 2222 | |
81ecdfbb RW |
2223 | ; |
2224 | return 0; | |
2225 | } | |
2226 | _ACEOF | |
2227 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2228 | eval "$3=yes" | |
2229 | else | |
2230 | eval "$3=no" | |
2231 | fi | |
2232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2233 | fi | |
2234 | eval ac_res=\$$3 | |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2236 | $as_echo "$ac_res" >&6; } | |
2237 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2238 | |
81ecdfbb RW |
2239 | } # ac_fn_cxx_check_decl |
2240 | cat >config.log <<_ACEOF | |
2241 | This file contains any messages produced by compilers while | |
2242 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2243 | |
81ecdfbb RW |
2244 | It was created by gold $as_me 0.1, which was |
2245 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2246 | |
81ecdfbb | 2247 | $ $0 $@ |
8486ee48 | 2248 | |
81ecdfbb RW |
2249 | _ACEOF |
2250 | exec 5>>config.log | |
2251 | { | |
2252 | cat <<_ASUNAME | |
2253 | ## --------- ## | |
2254 | ## Platform. ## | |
2255 | ## --------- ## | |
8486ee48 | 2256 | |
81ecdfbb RW |
2257 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2258 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2259 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2260 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2261 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2262 | |
81ecdfbb RW |
2263 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2264 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2265 | |
81ecdfbb RW |
2266 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2267 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2268 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2269 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2270 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2271 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2272 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2273 | |
81ecdfbb | 2274 | _ASUNAME |
8486ee48 | 2275 | |
81ecdfbb RW |
2276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2277 | for as_dir in $PATH | |
2278 | do | |
2279 | IFS=$as_save_IFS | |
2280 | test -z "$as_dir" && as_dir=. | |
2281 | $as_echo "PATH: $as_dir" | |
2282 | done | |
2283 | IFS=$as_save_IFS | |
bae7f79e | 2284 | |
81ecdfbb | 2285 | } >&5 |
bae7f79e | 2286 | |
81ecdfbb | 2287 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2288 | |
2289 | ||
81ecdfbb RW |
2290 | ## ----------- ## |
2291 | ## Core tests. ## | |
2292 | ## ----------- ## | |
bae7f79e | 2293 | |
81ecdfbb | 2294 | _ACEOF |
1d1f116d CD |
2295 | |
2296 | ||
81ecdfbb RW |
2297 | # Keep a trace of the command line. |
2298 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2299 | # Strip out --silent because we don't want to record it for future runs. | |
2300 | # Also quote any args containing shell meta-characters. | |
2301 | # Make two passes to allow for proper duplicate-argument suppression. | |
2302 | ac_configure_args= | |
2303 | ac_configure_args0= | |
2304 | ac_configure_args1= | |
2305 | ac_must_keep_next=false | |
2306 | for ac_pass in 1 2 | |
2307 | do | |
2308 | for ac_arg | |
2309 | do | |
2310 | case $ac_arg in | |
2311 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2312 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2313 | | -silent | --silent | --silen | --sile | --sil) | |
2314 | continue ;; | |
2315 | *\'*) | |
2316 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2317 | esac | |
2318 | case $ac_pass in | |
2319 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2320 | 2) | |
2321 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2322 | if test $ac_must_keep_next = true; then | |
2323 | ac_must_keep_next=false # Got value, back to normal. | |
2324 | else | |
2325 | case $ac_arg in | |
2326 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2327 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2328 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2329 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2330 | case "$ac_configure_args0 " in | |
2331 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2332 | esac | |
2333 | ;; | |
2334 | -* ) ac_must_keep_next=true ;; | |
2335 | esac | |
2336 | fi | |
2337 | as_fn_append ac_configure_args " '$ac_arg'" | |
2338 | ;; | |
2339 | esac | |
2340 | done | |
2341 | done | |
2342 | { ac_configure_args0=; unset ac_configure_args0;} | |
2343 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2344 | |
81ecdfbb RW |
2345 | # When interrupted or exit'd, cleanup temporary files, and complete |
2346 | # config.log. We remove comments because anyway the quotes in there | |
2347 | # would cause problems or look ugly. | |
2348 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2349 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2350 | trap 'exit_status=$? | |
2351 | # Save into config.log some information that might help in debugging. | |
2352 | { | |
2353 | echo | |
bae7f79e | 2354 | |
81ecdfbb RW |
2355 | cat <<\_ASBOX |
2356 | ## ---------------- ## | |
2357 | ## Cache variables. ## | |
2358 | ## ---------------- ## | |
2359 | _ASBOX | |
2360 | echo | |
2361 | # The following way of writing the cache mishandles newlines in values, | |
2362 | ( | |
2363 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2364 | eval ac_val=\$$ac_var | |
2365 | case $ac_val in #( | |
2366 | *${as_nl}*) | |
2367 | case $ac_var in #( | |
2368 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2369 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2370 | esac | |
2371 | case $ac_var in #( | |
2372 | _ | IFS | as_nl) ;; #( | |
2373 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2374 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2375 | esac ;; | |
2376 | esac | |
2377 | done | |
2378 | (set) 2>&1 | | |
2379 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2380 | *${as_nl}ac_space=\ *) | |
2381 | sed -n \ | |
2382 | "s/'\''/'\''\\\\'\'''\''/g; | |
2383 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2384 | ;; #( | |
2385 | *) | |
2386 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2387 | ;; | |
2388 | esac | | |
2389 | sort | |
2390 | ) | |
2391 | echo | |
bae7f79e | 2392 | |
81ecdfbb RW |
2393 | cat <<\_ASBOX |
2394 | ## ----------------- ## | |
2395 | ## Output variables. ## | |
2396 | ## ----------------- ## | |
2397 | _ASBOX | |
2398 | echo | |
2399 | for ac_var in $ac_subst_vars | |
2400 | do | |
2401 | eval ac_val=\$$ac_var | |
2402 | case $ac_val in | |
2403 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2404 | esac | |
2405 | $as_echo "$ac_var='\''$ac_val'\''" | |
2406 | done | sort | |
2407 | echo | |
bae7f79e | 2408 | |
81ecdfbb RW |
2409 | if test -n "$ac_subst_files"; then |
2410 | cat <<\_ASBOX | |
2411 | ## ------------------- ## | |
2412 | ## File substitutions. ## | |
2413 | ## ------------------- ## | |
2414 | _ASBOX | |
2415 | echo | |
2416 | for ac_var in $ac_subst_files | |
2417 | do | |
2418 | eval ac_val=\$$ac_var | |
2419 | case $ac_val in | |
2420 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2421 | esac | |
2422 | $as_echo "$ac_var='\''$ac_val'\''" | |
2423 | done | sort | |
2424 | echo | |
2425 | fi | |
bae7f79e | 2426 | |
81ecdfbb RW |
2427 | if test -s confdefs.h; then |
2428 | cat <<\_ASBOX | |
2429 | ## ----------- ## | |
2430 | ## confdefs.h. ## | |
2431 | ## ----------- ## | |
2432 | _ASBOX | |
2433 | echo | |
2434 | cat confdefs.h | |
2435 | echo | |
2436 | fi | |
2437 | test "$ac_signal" != 0 && | |
2438 | $as_echo "$as_me: caught signal $ac_signal" | |
2439 | $as_echo "$as_me: exit $exit_status" | |
2440 | } >&5 | |
2441 | rm -f core *.core core.conftest.* && | |
2442 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2443 | exit $exit_status | |
2444 | ' 0 | |
2445 | for ac_signal in 1 2 13 15; do | |
2446 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2447 | done |
81ecdfbb | 2448 | ac_signal=0 |
bae7f79e | 2449 | |
81ecdfbb RW |
2450 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2451 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2452 | |
81ecdfbb | 2453 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2454 | |
81ecdfbb | 2455 | # Predefined preprocessor variables. |
bae7f79e | 2456 | |
81ecdfbb RW |
2457 | cat >>confdefs.h <<_ACEOF |
2458 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2459 | _ACEOF | |
bae7f79e | 2460 | |
81ecdfbb RW |
2461 | cat >>confdefs.h <<_ACEOF |
2462 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2463 | _ACEOF | |
bae7f79e | 2464 | |
81ecdfbb RW |
2465 | cat >>confdefs.h <<_ACEOF |
2466 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2467 | _ACEOF | |
bae7f79e | 2468 | |
81ecdfbb RW |
2469 | cat >>confdefs.h <<_ACEOF |
2470 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2471 | _ACEOF | |
bae7f79e | 2472 | |
81ecdfbb RW |
2473 | cat >>confdefs.h <<_ACEOF |
2474 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2475 | _ACEOF | |
bae7f79e | 2476 | |
81ecdfbb RW |
2477 | cat >>confdefs.h <<_ACEOF |
2478 | #define PACKAGE_URL "$PACKAGE_URL" | |
2479 | _ACEOF | |
2480 | ||
2481 | ||
2482 | # Let the site file select an alternate cache file if it wants to. | |
2483 | # Prefer an explicitly selected file to automatically selected ones. | |
2484 | ac_site_file1=NONE | |
2485 | ac_site_file2=NONE | |
2486 | if test -n "$CONFIG_SITE"; then | |
2487 | ac_site_file1=$CONFIG_SITE | |
2488 | elif test "x$prefix" != xNONE; then | |
2489 | ac_site_file1=$prefix/share/config.site | |
2490 | ac_site_file2=$prefix/etc/config.site | |
2491 | else | |
2492 | ac_site_file1=$ac_default_prefix/share/config.site | |
2493 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2494 | fi | |
2495 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2496 | do | |
2497 | test "x$ac_site_file" = xNONE && continue | |
2498 | if test -r "$ac_site_file"; then | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2500 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2501 | sed 's/^/| /' "$ac_site_file" >&5 | |
2502 | . "$ac_site_file" | |
2503 | fi | |
2504 | done | |
2505 | ||
2506 | if test -r "$cache_file"; then | |
2507 | # Some versions of bash will fail to source /dev/null (special | |
2508 | # files actually), so we avoid doing that. | |
2509 | if test -f "$cache_file"; then | |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2511 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2512 | case $cache_file in | |
2513 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2514 | *) . "./$cache_file";; | |
2515 | esac | |
2516 | fi | |
2517 | else | |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2519 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2520 | >$cache_file | |
2521 | fi | |
2522 | ||
2523 | # Check that the precious variables saved in the cache have kept the same | |
2524 | # value. | |
2525 | ac_cache_corrupted=false | |
2526 | for ac_var in $ac_precious_vars; do | |
2527 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2528 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2529 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2530 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2531 | case $ac_old_set,$ac_new_set in | |
2532 | set,) | |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2534 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2535 | ac_cache_corrupted=: ;; | |
2536 | ,set) | |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2538 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2539 | ac_cache_corrupted=: ;; | |
2540 | ,);; | |
2541 | *) | |
2542 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2543 | # differences in whitespace do not lead to failure. | |
2544 | ac_old_val_w=`echo x $ac_old_val` | |
2545 | ac_new_val_w=`echo x $ac_new_val` | |
2546 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2548 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2549 | ac_cache_corrupted=: | |
2550 | else | |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2552 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2553 | eval $ac_var=\$ac_old_val | |
2554 | fi | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2556 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2558 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2559 | fi;; | |
2560 | esac | |
2561 | # Pass precious variables to config.status. | |
2562 | if test "$ac_new_set" = set; then | |
2563 | case $ac_new_val in | |
2564 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2565 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2566 | esac | |
2567 | case " $ac_configure_args " in | |
2568 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2569 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2570 | esac | |
2571 | fi | |
2572 | done | |
2573 | if $ac_cache_corrupted; then | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2577 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2578 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2579 | fi | |
2580 | ## -------------------- ## | |
2581 | ## Main body of script. ## | |
2582 | ## -------------------- ## | |
2583 | ||
2584 | ac_ext=c | |
2585 | ac_cpp='$CPP $CPPFLAGS' | |
2586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ac_aux_dir= | |
2597 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2598 | for ac_t in install-sh install.sh shtool; do | |
2599 | if test -f "$ac_dir/$ac_t"; then | |
2600 | ac_aux_dir=$ac_dir | |
2601 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2602 | break 2 | |
2603 | fi | |
2604 | done | |
2605 | done | |
2606 | if test -z "$ac_aux_dir"; then | |
2607 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2608 | fi | |
2609 | ||
2610 | # These three variables are undocumented and unsupported, | |
2611 | # and are intended to be withdrawn in a future Autoconf release. | |
2612 | # They can cause serious problems if a builder's source tree is in a directory | |
2613 | # whose full name contains unusual characters. | |
2614 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2615 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2616 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2617 | ||
2618 | ||
2619 | # Make sure we can run config.sub. | |
2620 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2621 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2622 | ||
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2624 | $as_echo_n "checking build system type... " >&6; } | |
2625 | if test "${ac_cv_build+set}" = set; then : | |
2626 | $as_echo_n "(cached) " >&6 | |
2627 | else | |
2628 | ac_build_alias=$build_alias | |
2629 | test "x$ac_build_alias" = x && | |
2630 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2631 | test "x$ac_build_alias" = x && | |
2632 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2633 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2634 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2635 | ||
2636 | fi | |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2638 | $as_echo "$ac_cv_build" >&6; } | |
2639 | case $ac_cv_build in | |
2640 | *-*-*) ;; | |
2641 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2642 | esac | |
2643 | build=$ac_cv_build | |
2644 | ac_save_IFS=$IFS; IFS='-' | |
2645 | set x $ac_cv_build | |
2646 | shift | |
2647 | build_cpu=$1 | |
2648 | build_vendor=$2 | |
2649 | shift; shift | |
2650 | # Remember, the first character of IFS is used to create $*, | |
2651 | # except with old shells: | |
2652 | build_os=$* | |
2653 | IFS=$ac_save_IFS | |
2654 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2655 | ||
2656 | ||
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2658 | $as_echo_n "checking host system type... " >&6; } | |
2659 | if test "${ac_cv_host+set}" = set; then : | |
2660 | $as_echo_n "(cached) " >&6 | |
2661 | else | |
2662 | if test "x$host_alias" = x; then | |
2663 | ac_cv_host=$ac_cv_build | |
2664 | else | |
2665 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2666 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2667 | fi | |
2668 | ||
2669 | fi | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2671 | $as_echo "$ac_cv_host" >&6; } | |
2672 | case $ac_cv_host in | |
2673 | *-*-*) ;; | |
2674 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2675 | esac | |
2676 | host=$ac_cv_host | |
2677 | ac_save_IFS=$IFS; IFS='-' | |
2678 | set x $ac_cv_host | |
2679 | shift | |
2680 | host_cpu=$1 | |
2681 | host_vendor=$2 | |
2682 | shift; shift | |
2683 | # Remember, the first character of IFS is used to create $*, | |
2684 | # except with old shells: | |
2685 | host_os=$* | |
2686 | IFS=$ac_save_IFS | |
2687 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2688 | ||
2689 | ||
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2691 | $as_echo_n "checking target system type... " >&6; } | |
2692 | if test "${ac_cv_target+set}" = set; then : | |
2693 | $as_echo_n "(cached) " >&6 | |
2694 | else | |
2695 | if test "x$target_alias" = x; then | |
2696 | ac_cv_target=$ac_cv_host | |
2697 | else | |
2698 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2699 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2700 | fi | |
2701 | ||
2702 | fi | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2704 | $as_echo "$ac_cv_target" >&6; } | |
2705 | case $ac_cv_target in | |
2706 | *-*-*) ;; | |
2707 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2708 | esac | |
2709 | target=$ac_cv_target | |
2710 | ac_save_IFS=$IFS; IFS='-' | |
2711 | set x $ac_cv_target | |
2712 | shift | |
2713 | target_cpu=$1 | |
2714 | target_vendor=$2 | |
2715 | shift; shift | |
2716 | # Remember, the first character of IFS is used to create $*, | |
2717 | # except with old shells: | |
2718 | target_os=$* | |
2719 | IFS=$ac_save_IFS | |
2720 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2721 | ||
2722 | ||
2723 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2724 | # will get canonicalized. |
2725 | test -n "$target_alias" && | |
2726 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2727 | NONENONEs,x,x, && | |
2728 | program_prefix=${target_alias}- | |
2729 | ||
81ecdfbb RW |
2730 | am__api_version='1.11' |
2731 | ||
bae7f79e ILT |
2732 | # Find a good install program. We prefer a C program (faster), |
2733 | # so one script is as good as another. But avoid the broken or | |
2734 | # incompatible versions: | |
2735 | # SysV /etc/install, /usr/sbin/install | |
2736 | # SunOS /usr/etc/install | |
2737 | # IRIX /sbin/install | |
2738 | # AIX /bin/install | |
2739 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2740 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2741 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2742 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2743 | # OS/2's system install, which has a completely different semantic | |
2744 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2745 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2747 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2748 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2749 | if test "${ac_cv_path_install+set}" = set; then : |
2750 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2751 | else |
2752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2753 | for as_dir in $PATH | |
2754 | do | |
2755 | IFS=$as_save_IFS | |
2756 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2757 | # Account for people who put trailing slashes in PATH elements. |
2758 | case $as_dir/ in #(( | |
2759 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2760 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2761 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2762 | /usr/ucb/* ) ;; |
2763 | *) | |
2764 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2765 | # Don't use installbsd from OSF since it installs stuff as root | |
2766 | # by default. | |
2767 | for ac_prog in ginstall scoinst install; do | |
2768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2769 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2770 | if test $ac_prog = install && |
2771 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2772 | # AIX install. It has an incompatible calling convention. | |
2773 | : | |
2774 | elif test $ac_prog = install && | |
2775 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2776 | # program-specific install script used by HP pwplus--don't use. | |
2777 | : | |
2778 | else | |
f5314dd5 DM |
2779 | rm -rf conftest.one conftest.two conftest.dir |
2780 | echo one > conftest.one | |
2781 | echo two > conftest.two | |
2782 | mkdir conftest.dir | |
2783 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2784 | test -s conftest.one && test -s conftest.two && | |
2785 | test -s conftest.dir/conftest.one && | |
2786 | test -s conftest.dir/conftest.two | |
2787 | then | |
2788 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2789 | break 3 | |
2790 | fi | |
bae7f79e ILT |
2791 | fi |
2792 | fi | |
2793 | done | |
2794 | done | |
2795 | ;; | |
2796 | esac | |
81ecdfbb RW |
2797 | |
2798 | done | |
2799 | IFS=$as_save_IFS | |
bae7f79e | 2800 | |
f5314dd5 | 2801 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2802 | |
2803 | fi | |
2804 | if test "${ac_cv_path_install+set}" = set; then | |
2805 | INSTALL=$ac_cv_path_install | |
2806 | else | |
f5314dd5 DM |
2807 | # As a last resort, use the slow shell script. Don't cache a |
2808 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2809 | # break other packages using the cache if that directory is |
f5314dd5 | 2810 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2811 | INSTALL=$ac_install_sh |
2812 | fi | |
2813 | fi | |
81ecdfbb RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2815 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2816 | |
2817 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2818 | # It thinks the first close brace ends the variable substitution. | |
2819 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2820 | ||
2821 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2822 | ||
2823 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2824 | ||
81ecdfbb RW |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2826 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2827 | # Just in case |
2828 | sleep 1 | |
2829 | echo timestamp > conftest.file | |
81ecdfbb RW |
2830 | # Reject unsafe characters in $srcdir or the absolute working directory |
2831 | # name. Accept space and tab only in the latter. | |
2832 | am_lf=' | |
2833 | ' | |
2834 | case `pwd` in | |
2835 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2836 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2837 | esac | |
2838 | case $srcdir in | |
2839 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2840 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2841 | esac | |
2842 | ||
bae7f79e ILT |
2843 | # Do `set' in a subshell so we don't clobber the current shell's |
2844 | # arguments. Must try -L first in case configure is actually a | |
2845 | # symlink; some systems play weird games with the mod time of symlinks | |
2846 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2847 | # directory). | |
2848 | if ( | |
81ecdfbb | 2849 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2850 | if test "$*" = "X"; then |
2851 | # -L didn't work. | |
81ecdfbb | 2852 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2853 | fi |
2854 | rm -f conftest.file | |
2855 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2856 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2857 | ||
2858 | # If neither matched, then we have a broken ls. This can happen | |
2859 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2860 | # broken ls alias from the environment. This has actually | |
2861 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2862 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2863 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2864 | fi |
2865 | ||
2866 | test "$2" = conftest.file | |
2867 | ) | |
2868 | then | |
2869 | # Ok. | |
2870 | : | |
2871 | else | |
81ecdfbb RW |
2872 | as_fn_error "newly created file is older than distributed files! |
2873 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2874 | fi |
81ecdfbb RW |
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2876 | $as_echo "yes" >&6; } | |
bae7f79e | 2877 | test "$program_prefix" != NONE && |
81ecdfbb | 2878 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2879 | # Use a double $ so make ignores it. |
2880 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2881 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2882 | # Double any \ or $. | |
bae7f79e | 2883 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2884 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2885 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2886 | |
2887 | # expand $ac_aux_dir to an absolute path | |
2888 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2889 | ||
81ecdfbb RW |
2890 | if test x"${MISSING+set}" != xset; then |
2891 | case $am_aux_dir in | |
2892 | *\ * | *\ *) | |
2893 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2894 | *) | |
2895 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2896 | esac | |
2897 | fi | |
bae7f79e ILT |
2898 | # Use eval to expand $SHELL |
2899 | if eval "$MISSING --run true"; then | |
2900 | am_missing_run="$MISSING --run " | |
2901 | else | |
2902 | am_missing_run= | |
81ecdfbb RW |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2904 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2905 | fi | |
2906 | ||
2907 | if test x"${install_sh}" != xset; then | |
2908 | case $am_aux_dir in | |
2909 | *\ * | *\ *) | |
2910 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2911 | *) | |
2912 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2913 | esac | |
2914 | fi | |
2915 | ||
2916 | # Installed binaries are usually stripped using `strip' when the user | |
2917 | # run `make install-strip'. However `strip' might not be the right | |
2918 | # tool to use in cross-compilation environments, therefore Automake | |
2919 | # will honor the `STRIP' environment variable to overrule this program. | |
2920 | if test "$cross_compiling" != no; then | |
2921 | if test -n "$ac_tool_prefix"; then | |
2922 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2923 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2925 | $as_echo_n "checking for $ac_word... " >&6; } | |
2926 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2927 | $as_echo_n "(cached) " >&6 | |
2928 | else | |
2929 | if test -n "$STRIP"; then | |
2930 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2931 | else | |
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2933 | for as_dir in $PATH | |
2934 | do | |
2935 | IFS=$as_save_IFS | |
2936 | test -z "$as_dir" && as_dir=. | |
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2939 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2941 | break 2 | |
2942 | fi | |
2943 | done | |
2944 | done | |
2945 | IFS=$as_save_IFS | |
2946 | ||
2947 | fi | |
2948 | fi | |
2949 | STRIP=$ac_cv_prog_STRIP | |
2950 | if test -n "$STRIP"; then | |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2952 | $as_echo "$STRIP" >&6; } | |
2953 | else | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2955 | $as_echo "no" >&6; } | |
2956 | fi | |
2957 | ||
2958 | ||
2959 | fi | |
2960 | if test -z "$ac_cv_prog_STRIP"; then | |
2961 | ac_ct_STRIP=$STRIP | |
2962 | # Extract the first word of "strip", so it can be a program name with args. | |
2963 | set dummy strip; ac_word=$2 | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2965 | $as_echo_n "checking for $ac_word... " >&6; } | |
2966 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2967 | $as_echo_n "(cached) " >&6 | |
2968 | else | |
2969 | if test -n "$ac_ct_STRIP"; then | |
2970 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2971 | else | |
2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2973 | for as_dir in $PATH | |
2974 | do | |
2975 | IFS=$as_save_IFS | |
2976 | test -z "$as_dir" && as_dir=. | |
2977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2979 | ac_cv_prog_ac_ct_STRIP="strip" | |
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2981 | break 2 | |
2982 | fi | |
2983 | done | |
2984 | done | |
2985 | IFS=$as_save_IFS | |
2986 | ||
2987 | fi | |
2988 | fi | |
2989 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2990 | if test -n "$ac_ct_STRIP"; then | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2992 | $as_echo "$ac_ct_STRIP" >&6; } | |
2993 | else | |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2995 | $as_echo "no" >&6; } | |
2996 | fi | |
2997 | ||
2998 | if test "x$ac_ct_STRIP" = x; then | |
2999 | STRIP=":" | |
3000 | else | |
3001 | case $cross_compiling:$ac_tool_warned in | |
3002 | yes:) | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3005 | ac_tool_warned=yes ;; | |
3006 | esac | |
3007 | STRIP=$ac_ct_STRIP | |
3008 | fi | |
3009 | else | |
3010 | STRIP="$ac_cv_prog_STRIP" | |
3011 | fi | |
3012 | ||
3013 | fi | |
3014 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3015 | ||
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3017 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3018 | if test -z "$MKDIR_P"; then | |
3019 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3020 | $as_echo_n "(cached) " >&6 | |
3021 | else | |
3022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3023 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3024 | do | |
3025 | IFS=$as_save_IFS | |
3026 | test -z "$as_dir" && as_dir=. | |
3027 | for ac_prog in mkdir gmkdir; do | |
3028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3029 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3030 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3031 | 'mkdir (GNU coreutils) '* | \ | |
3032 | 'mkdir (coreutils) '* | \ | |
3033 | 'mkdir (fileutils) '4.1*) | |
3034 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3035 | break 3;; | |
3036 | esac | |
3037 | done | |
3038 | done | |
bae7f79e | 3039 | done |
81ecdfbb RW |
3040 | IFS=$as_save_IFS |
3041 | ||
3042 | fi | |
3043 | ||
3044 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3045 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3046 | else |
81ecdfbb RW |
3047 | # As a last resort, use the slow shell script. Don't cache a |
3048 | # value for MKDIR_P within a source directory, because that will | |
3049 | # break other packages using the cache if that directory is | |
3050 | # removed, or if the value is a relative name. | |
3051 | test -d ./--version && rmdir ./--version | |
3052 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3053 | fi |
3054 | fi | |
81ecdfbb RW |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3056 | $as_echo "$MKDIR_P" >&6; } | |
3057 | ||
3058 | mkdir_p="$MKDIR_P" | |
3059 | case $mkdir_p in | |
3060 | [\\/$]* | ?:[\\/]*) ;; | |
3061 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3062 | esac | |
bae7f79e ILT |
3063 | |
3064 | for ac_prog in gawk mawk nawk awk | |
3065 | do | |
3066 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3067 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3069 | $as_echo_n "checking for $ac_word... " >&6; } | |
3070 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3071 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3072 | else |
3073 | if test -n "$AWK"; then | |
3074 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3075 | else | |
3076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3077 | for as_dir in $PATH | |
3078 | do | |
3079 | IFS=$as_save_IFS | |
3080 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3081 | for ac_exec_ext in '' $ac_executable_extensions; do |
3082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3083 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3085 | break 2 |
3086 | fi | |
3087 | done | |
81ecdfbb RW |
3088 | done |
3089 | IFS=$as_save_IFS | |
bae7f79e ILT |
3090 | |
3091 | fi | |
3092 | fi | |
3093 | AWK=$ac_cv_prog_AWK | |
3094 | if test -n "$AWK"; then | |
81ecdfbb RW |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3096 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3097 | else |
81ecdfbb RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3099 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3100 | fi |
3101 | ||
81ecdfbb | 3102 | |
bae7f79e ILT |
3103 | test -n "$AWK" && break |
3104 | done | |
3105 | ||
81ecdfbb RW |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3107 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3108 | set x ${MAKE-make} | |
3109 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3110 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3111 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3112 | else |
3113 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3114 | SHELL = /bin/sh |
bae7f79e | 3115 | all: |
81ecdfbb | 3116 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3117 | _ACEOF |
3118 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3119 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3120 | *@@@%%%=?*=@@@%%%*) | |
3121 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3122 | *) | |
3123 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3124 | esac | |
bae7f79e ILT |
3125 | rm -f conftest.make |
3126 | fi | |
81ecdfbb RW |
3127 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3129 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3130 | SET_MAKE= |
3131 | else | |
81ecdfbb RW |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3133 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3134 | SET_MAKE="MAKE=${MAKE-make}" |
3135 | fi | |
3136 | ||
3137 | rm -rf .tst 2>/dev/null | |
3138 | mkdir .tst 2>/dev/null | |
3139 | if test -d .tst; then | |
3140 | am__leading_dot=. | |
3141 | else | |
3142 | am__leading_dot=_ | |
3143 | fi | |
3144 | rmdir .tst 2>/dev/null | |
3145 | ||
81ecdfbb RW |
3146 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3147 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3148 | # is not polluted with repeated "-I." | |
3149 | am__isrc=' -I$(srcdir)' | |
3150 | # test to see if srcdir already configured | |
3151 | if test -f $srcdir/config.status; then | |
3152 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3153 | fi | |
bae7f79e ILT |
3154 | fi |
3155 | ||
3156 | # test whether we have cygpath | |
3157 | if test -z "$CYGPATH_W"; then | |
3158 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3159 | CYGPATH_W='cygpath -w' | |
3160 | else | |
3161 | CYGPATH_W=echo | |
3162 | fi | |
3163 | fi | |
3164 | ||
3165 | ||
3166 | # Define the identity of the package. | |
8486ee48 ILT |
3167 | PACKAGE='gold' |
3168 | VERSION='0.1' | |
bae7f79e ILT |
3169 | |
3170 | ||
3171 | cat >>confdefs.h <<_ACEOF | |
3172 | #define PACKAGE "$PACKAGE" | |
3173 | _ACEOF | |
3174 | ||
3175 | ||
3176 | cat >>confdefs.h <<_ACEOF | |
3177 | #define VERSION "$VERSION" | |
3178 | _ACEOF | |
3179 | ||
3180 | # Some tools Automake needs. | |
3181 | ||
3182 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3183 | ||
3184 | ||
3185 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3186 | ||
3187 | ||
3188 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3189 | ||
3190 | ||
3191 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3192 | ||
3193 | ||
3194 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3195 | ||
81ecdfbb RW |
3196 | # We need awk for the "check" target. The system "awk" is bad on |
3197 | # some platforms. | |
3198 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3199 | |
81ecdfbb | 3200 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3201 | |
81ecdfbb RW |
3202 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3203 | ||
3204 | ||
3205 | ||
3206 | ||
3207 | ||
3208 | ||
3209 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3210 | ||
3211 | ||
3212 | ||
3213 | # Check whether --with-sysroot was given. | |
3214 | if test "${with_sysroot+set}" = set; then : | |
3215 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3216 | else |
81ecdfbb | 3217 | sysroot=no |
bae7f79e ILT |
3218 | fi |
3219 | ||
81ecdfbb RW |
3220 | |
3221 | if test "$sysroot" = "yes"; then | |
3222 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3223 | elif test "$sysroot" = "no"; then | |
3224 | sysroot= | |
ad2d6943 ILT |
3225 | fi |
3226 | ||
3227 | sysroot_relocatable=0 | |
3228 | if test -n "$sysroot"; then | |
3229 | case "sysroot" in | |
3230 | "${prefix}" | "${prefix}/"* | \ | |
3231 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3232 | '${prefix}' | '${prefix}/'*| \ | |
3233 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3234 | sysroot_relocatable=1 | |
3235 | ;; | |
3236 | esac | |
3237 | fi | |
3238 | ||
3239 | ||
3240 | cat >>confdefs.h <<_ACEOF | |
3241 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3242 | _ACEOF | |
3243 | ||
3244 | ||
3245 | cat >>confdefs.h <<_ACEOF | |
3246 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3247 | _ACEOF | |
3248 | ||
3249 | ||
c7791212 NC |
3250 | |
3251 | default_ld= | |
3252 | # Check whether --enable-ld was given. | |
3253 | if test "${enable_ld+set}" = set; then : | |
3254 | enableval=$enable_ld; case "${enableval}" in | |
3255 | default) | |
3256 | default_ld=ld.bfd | |
3257 | ;; | |
3258 | esac | |
3259 | fi | |
3260 | ||
3261 | ||
4fda8867 NC |
3262 | # Check whether --enable-gold was given. |
3263 | if test "${enable_gold+set}" = set; then : | |
3264 | enableval=$enable_gold; case "${enableval}" in | |
c7791212 NC |
3265 | yes|default) |
3266 | if test x${default_ld} = x; then | |
3267 | install_as_default=yes | |
3268 | fi | |
4fda8867 NC |
3269 | installed_linker=ld.gold |
3270 | ;; | |
c7791212 | 3271 | no) |
4fda8867 NC |
3272 | ;; |
3273 | *) | |
3274 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
3275 | ;; | |
3276 | esac | |
3277 | else | |
c7791212 NC |
3278 | install_as_default=no |
3279 | installed_linker=ld.gold | |
4fda8867 NC |
3280 | fi |
3281 | ||
3282 | ||
3283 | ||
3284 | ||
81ecdfbb RW |
3285 | # Check whether --enable-threads was given. |
3286 | if test "${enable_threads+set}" = set; then : | |
3287 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3288 | yes | "") threads=yes ;; |
3289 | no) threads=no ;; | |
3290 | *) threads=yes ;; | |
3291 | esac | |
3292 | else | |
3293 | threads=no | |
81ecdfbb RW |
3294 | fi |
3295 | ||
fe9a4c12 ILT |
3296 | if test "$threads" = "yes"; then |
3297 | ||
81ecdfbb | 3298 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3299 | |
3300 | fi | |
81ecdfbb | 3301 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3302 | THREADS_TRUE= |
3303 | THREADS_FALSE='#' | |
3304 | else | |
3305 | THREADS_TRUE='#' | |
3306 | THREADS_FALSE= | |
3307 | fi | |
3308 | ||
3309 | ||
81ecdfbb RW |
3310 | # Check whether --enable-plugins was given. |
3311 | if test "${enable_plugins+set}" = set; then : | |
3312 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3313 | yes | "") plugins=yes ;; |
3314 | no) plugins=no ;; | |
3315 | *) plugins=yes ;; | |
3316 | esac | |
3317 | else | |
3318 | plugins=no | |
81ecdfbb RW |
3319 | fi |
3320 | ||
89fc3421 CC |
3321 | if test "$plugins" = "yes"; then |
3322 | ||
81ecdfbb | 3323 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3324 | |
3325 | fi | |
81ecdfbb | 3326 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3327 | PLUGINS_TRUE= |
3328 | PLUGINS_FALSE='#' | |
3329 | else | |
3330 | PLUGINS_TRUE='#' | |
3331 | PLUGINS_FALSE= | |
3332 | fi | |
3333 | ||
3334 | ||
81ecdfbb RW |
3335 | # Check whether --enable-targets was given. |
3336 | if test "${enable_targets+set}" = set; then : | |
3337 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3338 | yes | "") |
81ecdfbb | 3339 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3340 | ;; |
3341 | no) | |
3342 | enable_targets= | |
3343 | ;; | |
3344 | *) | |
3345 | enable_targets=$enableval | |
3346 | ;; | |
3347 | esac | |
3348 | else | |
3349 | # For now, enable all targets by default | |
3350 | enable_targets=all | |
3351 | ||
81ecdfbb RW |
3352 | fi |
3353 | ||
193a53d9 ILT |
3354 | |
3355 | # Canonicalize the enabled targets. | |
3356 | if test -n "$enable_targets"; then | |
3357 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3358 | result=`$ac_config_sub $targ 2>/dev/null` | |
3359 | if test -n "$result"; then | |
3360 | canon_targets="$canon_targets $result" | |
3361 | else | |
3362 | # Permit unrecognized target names, like "all". | |
3363 | canon_targets="$canon_targets $targ" | |
3364 | fi | |
3365 | done | |
3366 | fi | |
3367 | ||
3368 | # See which specific instantiations we need. | |
6df6da4a ILT |
3369 | targetobjs= |
3370 | all_targets= | |
fbfba508 ILT |
3371 | default_machine= |
3372 | default_size= | |
3373 | default_big_endian= | |
36959681 | 3374 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3375 | targ_32_little= |
3376 | targ_32_big= | |
81ecdfbb RW |
3377 | targ_64_little= |
3378 | targ_64_big= | |
3379 | for targ in $target $canon_targets; do | |
3380 | if test "$targ" = "all"; then | |
3381 | targ_32_little=yes | |
3382 | targ_32_big=yes | |
3383 | targ_64_little=yes | |
3384 | targ_64_big=yes | |
3385 | all_targets=yes | |
3386 | else | |
3387 | . ${srcdir}/configure.tgt | |
bae7f79e | 3388 | |
81ecdfbb RW |
3389 | if test "$targ_obj" = "UNKNOWN"; then |
3390 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3391 | else | |
3392 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3393 | if test "$targ_extra_obj" != ""; then | |
3394 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3395 | fi | |
3396 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3397 | if test "$targ_big_endian" = "true" \ | |
3398 | -o "$targ_extra_big_endian" = "true"; then | |
3399 | targ_32_big=yes | |
3400 | fi | |
3401 | if test "$targ_big_endian" = "false" \ | |
3402 | -o "$targ_extra_big_endian" = "false"; then | |
3403 | targ_32_little=yes | |
3404 | fi | |
3405 | fi | |
3406 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3407 | if test "$targ_big_endian" = "true" \ | |
3408 | -o "$targ_extra_big_endian" = "true"; then | |
3409 | targ_64_big=yes | |
3410 | fi | |
3411 | if test "$targ_big_endian" = "false" \ | |
3412 | -o "$targ_extra_big_endian" = "false"; then | |
3413 | targ_64_little=yes | |
3414 | fi | |
3415 | fi | |
bae7f79e | 3416 | |
81ecdfbb RW |
3417 | if test "$target" = "$targ"; then |
3418 | default_machine=$targ_machine | |
3419 | default_size=$targ_size | |
3420 | default_big_endian=$targ_big_endian | |
3421 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3422 | |
3423 | if test "$targ_obj" = "arm"; then | |
3424 | DEFAULT_TARGET_ARM_TRUE= | |
3425 | DEFAULT_TARGET_ARM_FALSE='#' | |
3426 | else | |
3427 | DEFAULT_TARGET_ARM_TRUE='#' | |
3428 | DEFAULT_TARGET_ARM_FALSE= | |
3429 | fi | |
3430 | ||
3431 | if test "$targ_obj" = "i386"; then | |
3432 | DEFAULT_TARGET_I386_TRUE= | |
3433 | DEFAULT_TARGET_I386_FALSE='#' | |
3434 | else | |
3435 | DEFAULT_TARGET_I386_TRUE='#' | |
3436 | DEFAULT_TARGET_I386_FALSE= | |
3437 | fi | |
3438 | ||
3439 | if test "$targ_obj" = "powerpc"; then | |
3440 | DEFAULT_TARGET_POWERPC_TRUE= | |
3441 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3442 | else | |
3443 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3444 | DEFAULT_TARGET_POWERPC_FALSE= | |
3445 | fi | |
3446 | ||
3447 | if test "$targ_obj" = "sparc"; then | |
3448 | DEFAULT_TARGET_SPARC_TRUE= | |
3449 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3450 | else | |
3451 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3452 | DEFAULT_TARGET_SPARC_FALSE= | |
3453 | fi | |
3454 | ||
3455 | if test "$targ_obj" = "x86_64"; then | |
3456 | DEFAULT_TARGET_X86_64_TRUE= | |
3457 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3458 | else | |
3459 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3460 | DEFAULT_TARGET_X86_64_FALSE= | |
3461 | fi | |
3462 | ||
81ecdfbb RW |
3463 | fi |
3464 | fi | |
bae7f79e | 3465 | fi |
81ecdfbb | 3466 | done |
bae7f79e | 3467 | |
6cfaf60b | 3468 | # Remove any duplicates. |
9109c078 ILT |
3469 | to="" |
3470 | for t in $targetobjs; do | |
3471 | case " $to " in | |
3472 | *" $t "*) ;; | |
3473 | *) to="$to $t" ;; | |
3474 | esac | |
3475 | done | |
3476 | targetobjs=$to | |
6cfaf60b | 3477 | |
81ecdfbb | 3478 | if test -n "$targ_32_little"; then |
bae7f79e | 3479 | |
81ecdfbb | 3480 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3481 | |
537b5f51 | 3482 | fi |
81ecdfbb | 3483 | if test -n "$targ_32_big"; then |
537b5f51 | 3484 | |
81ecdfbb | 3485 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3486 | |
81ecdfbb RW |
3487 | fi |
3488 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3489 | |
81ecdfbb | 3490 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3491 | |
81ecdfbb RW |
3492 | fi |
3493 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3494 | |
81ecdfbb | 3495 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3496 | |
bae7f79e | 3497 | fi |
bae7f79e | 3498 | |
81ecdfbb RW |
3499 | if test -n "$all_targets"; then |
3500 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3501 | else | |
3502 | TARGETOBJS="$targetobjs" | |
3503 | fi | |
bae7f79e | 3504 | |
bae7f79e ILT |
3505 | |
3506 | ||
81ecdfbb RW |
3507 | cat >>confdefs.h <<_ACEOF |
3508 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3509 | _ACEOF | |
bae7f79e | 3510 | |
bae7f79e | 3511 | |
81ecdfbb RW |
3512 | cat >>confdefs.h <<_ACEOF |
3513 | #define GOLD_DEFAULT_SIZE $default_size | |
3514 | _ACEOF | |
bae7f79e | 3515 | |
bae7f79e | 3516 | |
81ecdfbb RW |
3517 | cat >>confdefs.h <<_ACEOF |
3518 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3519 | _ACEOF | |
bae7f79e | 3520 | |
bae7f79e | 3521 | |
81ecdfbb RW |
3522 | cat >>confdefs.h <<_ACEOF |
3523 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3524 | _ACEOF | |
bae7f79e ILT |
3525 | |
3526 | ||
81ecdfbb RW |
3527 | ac_ext=c |
3528 | ac_cpp='$CPP $CPPFLAGS' | |
3529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3532 | if test -n "$ac_tool_prefix"; then | |
3533 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3534 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3536 | $as_echo_n "checking for $ac_word... " >&6; } | |
3537 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3538 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3539 | else |
81ecdfbb RW |
3540 | if test -n "$CC"; then |
3541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3542 | else | |
3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3544 | for as_dir in $PATH | |
3545 | do | |
3546 | IFS=$as_save_IFS | |
3547 | test -z "$as_dir" && as_dir=. | |
3548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3550 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3552 | break 2 | |
3553 | fi | |
3554 | done | |
3555 | done | |
3556 | IFS=$as_save_IFS | |
bae7f79e | 3557 | |
81ecdfbb RW |
3558 | fi |
3559 | fi | |
3560 | CC=$ac_cv_prog_CC | |
3561 | if test -n "$CC"; then | |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3563 | $as_echo "$CC" >&6; } | |
3564 | else | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3566 | $as_echo "no" >&6; } | |
3567 | fi | |
bae7f79e ILT |
3568 | |
3569 | ||
bae7f79e | 3570 | fi |
81ecdfbb RW |
3571 | if test -z "$ac_cv_prog_CC"; then |
3572 | ac_ct_CC=$CC | |
3573 | # Extract the first word of "gcc", so it can be a program name with args. | |
3574 | set dummy gcc; ac_word=$2 | |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3576 | $as_echo_n "checking for $ac_word... " >&6; } | |
3577 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3578 | $as_echo_n "(cached) " >&6 | |
3579 | else | |
3580 | if test -n "$ac_ct_CC"; then | |
3581 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3582 | else | |
3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3584 | for as_dir in $PATH | |
3585 | do | |
3586 | IFS=$as_save_IFS | |
3587 | test -z "$as_dir" && as_dir=. | |
3588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3590 | ac_cv_prog_ac_ct_CC="gcc" | |
3591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3592 | break 2 | |
3593 | fi | |
3594 | done | |
3595 | done | |
3596 | IFS=$as_save_IFS | |
bae7f79e | 3597 | |
81ecdfbb RW |
3598 | fi |
3599 | fi | |
3600 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3601 | if test -n "$ac_ct_CC"; then | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3603 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3604 | else |
81ecdfbb RW |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3606 | $as_echo "no" >&6; } | |
bae7f79e | 3607 | fi |
bae7f79e | 3608 | |
81ecdfbb RW |
3609 | if test "x$ac_ct_CC" = x; then |
3610 | CC="" | |
3611 | else | |
3612 | case $cross_compiling:$ac_tool_warned in | |
3613 | yes:) | |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3616 | ac_tool_warned=yes ;; | |
bae7f79e | 3617 | esac |
81ecdfbb RW |
3618 | CC=$ac_ct_CC |
3619 | fi | |
bae7f79e | 3620 | else |
81ecdfbb | 3621 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3622 | fi |
3623 | ||
81ecdfbb RW |
3624 | if test -z "$CC"; then |
3625 | if test -n "$ac_tool_prefix"; then | |
3626 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3627 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3629 | $as_echo_n "checking for $ac_word... " >&6; } | |
3630 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3631 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3632 | else |
81ecdfbb RW |
3633 | if test -n "$CC"; then |
3634 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3635 | else | |
3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3637 | for as_dir in $PATH |
3638 | do | |
3639 | IFS=$as_save_IFS | |
3640 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3641 | for ac_exec_ext in '' $ac_executable_extensions; do |
3642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3643 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3645 | break 2 |
3646 | fi | |
3647 | done | |
81ecdfbb RW |
3648 | done |
3649 | IFS=$as_save_IFS | |
bae7f79e | 3650 | |
bae7f79e | 3651 | fi |
81ecdfbb RW |
3652 | fi |
3653 | CC=$ac_cv_prog_CC | |
3654 | if test -n "$CC"; then | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3656 | $as_echo "$CC" >&6; } | |
bae7f79e | 3657 | else |
81ecdfbb RW |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3659 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3660 | fi |
3661 | ||
3662 | ||
81ecdfbb RW |
3663 | fi |
3664 | fi | |
3665 | if test -z "$CC"; then | |
3666 | # Extract the first word of "cc", so it can be a program name with args. | |
3667 | set dummy cc; ac_word=$2 | |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3669 | $as_echo_n "checking for $ac_word... " >&6; } | |
3670 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3671 | $as_echo_n "(cached) " >&6 | |
3672 | else | |
3673 | if test -n "$CC"; then | |
3674 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3675 | else | |
3676 | ac_prog_rejected=no | |
3677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3678 | for as_dir in $PATH | |
3679 | do | |
3680 | IFS=$as_save_IFS | |
3681 | test -z "$as_dir" && as_dir=. | |
3682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3684 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3685 | ac_prog_rejected=yes | |
3686 | continue | |
3687 | fi | |
3688 | ac_cv_prog_CC="cc" | |
3689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3690 | break 2 | |
3691 | fi | |
3692 | done | |
3693 | done | |
3694 | IFS=$as_save_IFS | |
bae7f79e | 3695 | |
81ecdfbb RW |
3696 | if test $ac_prog_rejected = yes; then |
3697 | # We found a bogon in the path, so make sure we never use it. | |
3698 | set dummy $ac_cv_prog_CC | |
3699 | shift | |
3700 | if test $# != 0; then | |
3701 | # We chose a different compiler from the bogus one. | |
3702 | # However, it has the same basename, so the bogon will be chosen | |
3703 | # first if we set CC to just the basename; use the full file name. | |
3704 | shift | |
3705 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3706 | fi |
81ecdfbb RW |
3707 | fi |
3708 | fi | |
3709 | fi | |
3710 | CC=$ac_cv_prog_CC | |
3711 | if test -n "$CC"; then | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3713 | $as_echo "$CC" >&6; } | |
3714 | else | |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3716 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3717 | fi |
3718 | ||
81ecdfbb RW |
3719 | |
3720 | fi | |
3721 | if test -z "$CC"; then | |
3722 | if test -n "$ac_tool_prefix"; then | |
3723 | for ac_prog in cl.exe | |
3724 | do | |
3725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3728 | $as_echo_n "checking for $ac_word... " >&6; } | |
3729 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3730 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3731 | else |
81ecdfbb RW |
3732 | if test -n "$CC"; then |
3733 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3734 | else | |
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3736 | for as_dir in $PATH | |
3737 | do | |
3738 | IFS=$as_save_IFS | |
3739 | test -z "$as_dir" && as_dir=. | |
3740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3742 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3744 | break 2 | |
3745 | fi | |
3746 | done | |
3747 | done | |
3748 | IFS=$as_save_IFS | |
3749 | ||
3750 | fi | |
3751 | fi | |
3752 | CC=$ac_cv_prog_CC | |
3753 | if test -n "$CC"; then | |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3755 | $as_echo "$CC" >&6; } | |
3756 | else | |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3758 | $as_echo "no" >&6; } | |
bae7f79e | 3759 | fi |
bae7f79e | 3760 | |
81ecdfbb RW |
3761 | |
3762 | test -n "$CC" && break | |
3763 | done | |
3764 | fi | |
3765 | if test -z "$CC"; then | |
3766 | ac_ct_CC=$CC | |
3767 | for ac_prog in cl.exe | |
3768 | do | |
3769 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3770 | set dummy $ac_prog; ac_word=$2 | |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3772 | $as_echo_n "checking for $ac_word... " >&6; } | |
3773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3774 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3775 | else |
81ecdfbb RW |
3776 | if test -n "$ac_ct_CC"; then |
3777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3778 | else | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3786 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
3792 | IFS=$as_save_IFS | |
3793 | ||
bae7f79e | 3794 | fi |
81ecdfbb RW |
3795 | fi |
3796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3797 | if test -n "$ac_ct_CC"; then | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3799 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3800 | else |
81ecdfbb RW |
3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3802 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3803 | fi |
3804 | ||
bae7f79e | 3805 | |
81ecdfbb RW |
3806 | test -n "$ac_ct_CC" && break |
3807 | done | |
bae7f79e | 3808 | |
81ecdfbb RW |
3809 | if test "x$ac_ct_CC" = x; then |
3810 | CC="" | |
bae7f79e | 3811 | else |
81ecdfbb RW |
3812 | case $cross_compiling:$ac_tool_warned in |
3813 | yes:) | |
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3815 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3816 | ac_tool_warned=yes ;; | |
3817 | esac | |
3818 | CC=$ac_ct_CC | |
bae7f79e | 3819 | fi |
bae7f79e ILT |
3820 | fi |
3821 | ||
bae7f79e | 3822 | fi |
bae7f79e | 3823 | |
81ecdfbb RW |
3824 | |
3825 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3827 | as_fn_error "no acceptable C compiler found in \$PATH | |
3828 | See \`config.log' for more details." "$LINENO" 5; } | |
3829 | ||
3830 | # Provide some information about the compiler. | |
3831 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3832 | set X $ac_compile | |
3833 | ac_compiler=$2 | |
3834 | for ac_option in --version -v -V -qversion; do | |
3835 | { { ac_try="$ac_compiler $ac_option >&5" | |
3836 | case "(($ac_try" in | |
3837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3838 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3839 | esac |
81ecdfbb RW |
3840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3841 | $as_echo "$ac_try_echo"; } >&5 | |
3842 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3843 | ac_status=$? | |
3844 | if test -s conftest.err; then | |
3845 | sed '10a\ | |
3846 | ... rest of stderr output deleted ... | |
3847 | 10q' conftest.err >conftest.er1 | |
3848 | cat conftest.er1 >&5 | |
3849 | rm -f conftest.er1 conftest.err | |
3850 | fi | |
3851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3852 | test $ac_status = 0; } | |
3853 | done | |
3854 | ||
3855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3856 | /* end confdefs.h. */ | |
3857 | ||
3858 | int | |
3859 | main () | |
3860 | { | |
3861 | ||
3862 | ; | |
3863 | return 0; | |
3864 | } | |
3865 | _ACEOF | |
3866 | ac_clean_files_save=$ac_clean_files | |
3867 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3868 | # Try to create an executable without -o first, disregard a.out. | |
3869 | # It will help us diagnose broken compilers, and finding out an intuition | |
3870 | # of exeext. | |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3872 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3873 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3874 | ||
3875 | # The possible output files: | |
3876 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3877 | ||
3878 | ac_rmfiles= | |
3879 | for ac_file in $ac_files | |
3880 | do | |
3881 | case $ac_file in | |
3882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3883 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3884 | esac | |
3885 | done | |
3886 | rm -f $ac_rmfiles | |
3887 | ||
3888 | if { { ac_try="$ac_link_default" | |
3889 | case "(($ac_try" in | |
3890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3891 | *) ac_try_echo=$ac_try;; | |
3892 | esac | |
3893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3894 | $as_echo "$ac_try_echo"; } >&5 | |
3895 | (eval "$ac_link_default") 2>&5 | |
3896 | ac_status=$? | |
3897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3898 | test $ac_status = 0; }; then : | |
3899 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3900 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3901 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3902 | # so that the user can short-circuit this test for compilers unknown to | |
3903 | # Autoconf. | |
3904 | for ac_file in $ac_files '' | |
3905 | do | |
3906 | test -f "$ac_file" || continue | |
3907 | case $ac_file in | |
3908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3909 | ;; | |
3910 | [ab].out ) | |
3911 | # We found the default executable, but exeext='' is most | |
3912 | # certainly right. | |
3913 | break;; | |
3914 | *.* ) | |
3915 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3916 | then :; else | |
3917 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3918 | fi | |
3919 | # We set ac_cv_exeext here because the later test for it is not | |
3920 | # safe: cross compilers may not add the suffix if given an `-o' | |
3921 | # argument, so we may need to know it at that point already. | |
3922 | # Even if this section looks crufty: it has the advantage of | |
3923 | # actually working. | |
3924 | break;; | |
3925 | * ) | |
3926 | break;; | |
3927 | esac | |
3928 | done | |
3929 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3930 | ||
bae7f79e | 3931 | else |
81ecdfbb | 3932 | ac_file='' |
bae7f79e | 3933 | fi |
81ecdfbb RW |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3935 | $as_echo "$ac_file" >&6; } | |
3936 | if test -z "$ac_file"; then : | |
3937 | $as_echo "$as_me: failed program was:" >&5 | |
3938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 3939 | |
81ecdfbb RW |
3940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3942 | { as_fn_set_status 77 | |
3943 | as_fn_error "C compiler cannot create executables | |
3944 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3945 | fi | |
3946 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 3947 | |
81ecdfbb RW |
3948 | # Check that the compiler produces executables we can run. If not, either |
3949 | # the compiler is broken, or we cross compile. | |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3951 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3952 | # If not cross compiling, check that we can run a simple program. | |
3953 | if test "$cross_compiling" != yes; then | |
3954 | if { ac_try='./$ac_file' | |
3955 | { { case "(($ac_try" in | |
3956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3957 | *) ac_try_echo=$ac_try;; | |
3958 | esac | |
3959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3960 | $as_echo "$ac_try_echo"; } >&5 | |
3961 | (eval "$ac_try") 2>&5 | |
3962 | ac_status=$? | |
3963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3964 | test $ac_status = 0; }; }; then | |
3965 | cross_compiling=no | |
3966 | else | |
3967 | if test "$cross_compiling" = maybe; then | |
3968 | cross_compiling=yes | |
bae7f79e | 3969 | else |
81ecdfbb RW |
3970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3972 | as_fn_error "cannot run C compiled programs. | |
3973 | If you meant to cross compile, use \`--host'. | |
3974 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 3975 | fi |
bae7f79e | 3976 | fi |
81ecdfbb RW |
3977 | fi |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3979 | $as_echo "yes" >&6; } | |
bae7f79e | 3980 | |
81ecdfbb RW |
3981 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3982 | ac_clean_files=$ac_clean_files_save | |
3983 | # Check that the compiler produces executables we can run. If not, either | |
3984 | # the compiler is broken, or we cross compile. | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3986 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3988 | $as_echo "$cross_compiling" >&6; } | |
3989 | ||
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3991 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3992 | if { { ac_try="$ac_link" | |
3993 | case "(($ac_try" in | |
3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3995 | *) ac_try_echo=$ac_try;; | |
3996 | esac | |
3997 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3998 | $as_echo "$ac_try_echo"; } >&5 | |
3999 | (eval "$ac_link") 2>&5 | |
4000 | ac_status=$? | |
4001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4002 | test $ac_status = 0; }; then : | |
4003 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4004 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4005 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4006 | # `rm'. | |
4007 | for ac_file in conftest.exe conftest conftest.*; do | |
4008 | test -f "$ac_file" || continue | |
4009 | case $ac_file in | |
4010 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4011 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4012 | break;; | |
4013 | * ) break;; | |
4014 | esac | |
4015 | done | |
4016 | else | |
4017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4019 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4020 | See \`config.log' for more details." "$LINENO" 5; } | |
4021 | fi | |
4022 | rm -f conftest$ac_cv_exeext | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4024 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4025 | |
81ecdfbb RW |
4026 | rm -f conftest.$ac_ext |
4027 | EXEEXT=$ac_cv_exeext | |
4028 | ac_exeext=$EXEEXT | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4030 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4031 | if test "${ac_cv_objext+set}" = set; then : | |
4032 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4033 | else |
81ecdfbb | 4034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4035 | /* end confdefs.h. */ |
92e059d8 ILT |
4036 | |
4037 | int | |
4038 | main () | |
4039 | { | |
92e059d8 ILT |
4040 | |
4041 | ; | |
4042 | return 0; | |
4043 | } | |
4044 | _ACEOF | |
81ecdfbb RW |
4045 | rm -f conftest.o conftest.obj |
4046 | if { { ac_try="$ac_compile" | |
4047 | case "(($ac_try" in | |
4048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4049 | *) ac_try_echo=$ac_try;; | |
4050 | esac | |
4051 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4052 | $as_echo "$ac_try_echo"; } >&5 | |
4053 | (eval "$ac_compile") 2>&5 | |
4054 | ac_status=$? | |
4055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4056 | test $ac_status = 0; }; then : | |
4057 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4058 | test -f "$ac_file" || continue; | |
4059 | case $ac_file in | |
4060 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4061 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4062 | break;; | |
4063 | esac | |
4064 | done | |
4065 | else | |
4066 | $as_echo "$as_me: failed program was:" >&5 | |
4067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4068 | ||
4069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4071 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4072 | See \`config.log' for more details." "$LINENO" 5; } | |
4073 | fi | |
4074 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4075 | fi | |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4077 | $as_echo "$ac_cv_objext" >&6; } | |
4078 | OBJEXT=$ac_cv_objext | |
4079 | ac_objext=$OBJEXT | |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4081 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4082 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4083 | $as_echo_n "(cached) " >&6 | |
4084 | else | |
4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4086 | /* end confdefs.h. */ |
92e059d8 ILT |
4087 | |
4088 | int | |
4089 | main () | |
4090 | { | |
81ecdfbb RW |
4091 | #ifndef __GNUC__ |
4092 | choke me | |
92e059d8 ILT |
4093 | #endif |
4094 | ||
4095 | ; | |
4096 | return 0; | |
4097 | } | |
4098 | _ACEOF | |
81ecdfbb RW |
4099 | if ac_fn_c_try_compile "$LINENO"; then : |
4100 | ac_compiler_gnu=yes | |
92e059d8 | 4101 | else |
81ecdfbb RW |
4102 | ac_compiler_gnu=no |
4103 | fi | |
4104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4105 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4106 | |
92e059d8 | 4107 | fi |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4109 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4110 | if test $ac_compiler_gnu = yes; then | |
4111 | GCC=yes | |
92e059d8 | 4112 | else |
81ecdfbb RW |
4113 | GCC= |
4114 | fi | |
4115 | ac_test_CFLAGS=${CFLAGS+set} | |
4116 | ac_save_CFLAGS=$CFLAGS | |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4118 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4119 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4120 | $as_echo_n "(cached) " >&6 | |
4121 | else | |
4122 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4123 | ac_c_werror_flag=yes | |
4124 | ac_cv_prog_cc_g=no | |
4125 | CFLAGS="-g" | |
4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4127 | /* end confdefs.h. */ |
81ecdfbb | 4128 | |
92e059d8 ILT |
4129 | int |
4130 | main () | |
4131 | { | |
81ecdfbb | 4132 | |
92e059d8 ILT |
4133 | ; |
4134 | return 0; | |
4135 | } | |
4136 | _ACEOF | |
81ecdfbb RW |
4137 | if ac_fn_c_try_compile "$LINENO"; then : |
4138 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4139 | else |
81ecdfbb RW |
4140 | CFLAGS="" |
4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4142 | /* end confdefs.h. */ |
81ecdfbb | 4143 | |
92e059d8 ILT |
4144 | int |
4145 | main () | |
4146 | { | |
81ecdfbb RW |
4147 | |
4148 | ; | |
4149 | return 0; | |
92e059d8 ILT |
4150 | } |
4151 | _ACEOF | |
81ecdfbb RW |
4152 | if ac_fn_c_try_compile "$LINENO"; then : |
4153 | ||
92e059d8 | 4154 | else |
81ecdfbb RW |
4155 | ac_c_werror_flag=$ac_save_c_werror_flag |
4156 | CFLAGS="-g" | |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4158 | /* end confdefs.h. */ | |
92e059d8 | 4159 | |
81ecdfbb RW |
4160 | int |
4161 | main () | |
4162 | { | |
92e059d8 | 4163 | |
81ecdfbb RW |
4164 | ; |
4165 | return 0; | |
4166 | } | |
92e059d8 | 4167 | _ACEOF |
81ecdfbb RW |
4168 | if ac_fn_c_try_compile "$LINENO"; then : |
4169 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4170 | fi |
81ecdfbb | 4171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4172 | fi |
81ecdfbb | 4173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4174 | fi |
81ecdfbb RW |
4175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4176 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4177 | fi |
81ecdfbb RW |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4179 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4180 | if test "$ac_test_CFLAGS" = set; then | |
4181 | CFLAGS=$ac_save_CFLAGS | |
4182 | elif test $ac_cv_prog_cc_g = yes; then | |
4183 | if test "$GCC" = yes; then | |
4184 | CFLAGS="-g -O2" | |
4185 | else | |
4186 | CFLAGS="-g" | |
4187 | fi | |
6eee141f | 4188 | else |
81ecdfbb RW |
4189 | if test "$GCC" = yes; then |
4190 | CFLAGS="-O2" | |
4191 | else | |
4192 | CFLAGS= | |
4193 | fi | |
097ec620 | 4194 | fi |
81ecdfbb RW |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4196 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4197 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4198 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4199 | else |
81ecdfbb RW |
4200 | ac_cv_prog_cc_c89=no |
4201 | ac_save_CC=$CC | |
4202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4203 | /* end confdefs.h. */ | |
4204 | #include <stdarg.h> | |
4205 | #include <stdio.h> | |
4206 | #include <sys/types.h> | |
4207 | #include <sys/stat.h> | |
4208 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4209 | struct buf { int x; }; | |
4210 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4211 | static char *e (p, i) | |
4212 | char **p; | |
4213 | int i; | |
4214 | { | |
4215 | return p[i]; | |
4216 | } | |
4217 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4218 | { | |
4219 | char *s; | |
4220 | va_list v; | |
4221 | va_start (v,p); | |
4222 | s = g (p, va_arg (v,int)); | |
4223 | va_end (v); | |
4224 | return s; | |
4225 | } | |
6eee141f | 4226 | |
81ecdfbb RW |
4227 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4228 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4229 | These don't provoke an error unfortunately, instead are silently treated | |
4230 | as 'x'. The following induces an error, until -std is added to get | |
4231 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4232 | array size at least. It's necessary to write '\x00'==0 to get something | |
4233 | that's true only with -std. */ | |
4234 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4235 | |
81ecdfbb RW |
4236 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4237 | inside strings and character constants. */ | |
4238 | #define FOO(x) 'x' | |
4239 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4240 | |
81ecdfbb RW |
4241 | int test (int i, double x); |
4242 | struct s1 {int (*f) (int a);}; | |
4243 | struct s2 {int (*f) (double a);}; | |
4244 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4245 | int argc; | |
4246 | char **argv; | |
4247 | int | |
4248 | main () | |
4249 | { | |
4250 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4251 | ; | |
4252 | return 0; | |
4253 | } | |
097ec620 | 4254 | _ACEOF |
81ecdfbb RW |
4255 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4256 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4257 | do | |
4258 | CC="$ac_save_CC $ac_arg" | |
4259 | if ac_fn_c_try_compile "$LINENO"; then : | |
4260 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4261 | fi |
81ecdfbb RW |
4262 | rm -f core conftest.err conftest.$ac_objext |
4263 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4264 | done | |
4265 | rm -f conftest.$ac_ext | |
4266 | CC=$ac_save_CC | |
097ec620 | 4267 | |
097ec620 | 4268 | fi |
81ecdfbb RW |
4269 | # AC_CACHE_VAL |
4270 | case "x$ac_cv_prog_cc_c89" in | |
4271 | x) | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4273 | $as_echo "none needed" >&6; } ;; | |
4274 | xno) | |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4276 | $as_echo "unsupported" >&6; } ;; | |
4277 | *) | |
4278 | CC="$CC $ac_cv_prog_cc_c89" | |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4280 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4281 | esac | |
4282 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4283 | |
81ecdfbb | 4284 | fi |
097ec620 | 4285 | |
81ecdfbb RW |
4286 | ac_ext=c |
4287 | ac_cpp='$CPP $CPPFLAGS' | |
4288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4291 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4292 | |
81ecdfbb | 4293 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4294 | |
155a0dd7 | 4295 | |
81ecdfbb RW |
4296 | am_make=${MAKE-make} |
4297 | cat > confinc << 'END' | |
4298 | am__doit: | |
4299 | @echo this is the am__doit target | |
4300 | .PHONY: am__doit | |
4301 | END | |
4302 | # If we don't find an include directive, just comment out the code. | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4304 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4305 | am__include="#" | |
4306 | am__quote= | |
4307 | _am_result=none | |
4308 | # First try GNU make style include. | |
4309 | echo "include confinc" > confmf | |
4310 | # Ignore all kinds of additional output from `make'. | |
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=GNU | |
4316 | ;; | |
4317 | esac | |
4318 | # Now try BSD make style include. | |
4319 | if test "$am__include" = "#"; then | |
4320 | echo '.include "confinc"' > confmf | |
4321 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4322 | *the\ am__doit\ target*) | |
4323 | am__include=.include | |
4324 | am__quote="\"" | |
4325 | _am_result=BSD | |
4326 | ;; | |
4327 | esac | |
155a0dd7 | 4328 | fi |
155a0dd7 | 4329 | |
155a0dd7 | 4330 | |
81ecdfbb RW |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4332 | $as_echo "$_am_result" >&6; } | |
4333 | rm -f confinc confmf | |
155a0dd7 | 4334 | |
81ecdfbb RW |
4335 | # Check whether --enable-dependency-tracking was given. |
4336 | if test "${enable_dependency_tracking+set}" = set; then : | |
4337 | enableval=$enable_dependency_tracking; | |
4338 | fi | |
155a0dd7 | 4339 | |
81ecdfbb RW |
4340 | if test "x$enable_dependency_tracking" != xno; then |
4341 | am_depcomp="$ac_aux_dir/depcomp" | |
4342 | AMDEPBACKSLASH='\' | |
4343 | fi | |
4344 | if test "x$enable_dependency_tracking" != xno; then | |
4345 | AMDEP_TRUE= | |
4346 | AMDEP_FALSE='#' | |
155a0dd7 | 4347 | else |
81ecdfbb RW |
4348 | AMDEP_TRUE='#' |
4349 | AMDEP_FALSE= | |
155a0dd7 ILT |
4350 | fi |
4351 | ||
4352 | ||
c2b45e22 | 4353 | |
81ecdfbb | 4354 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4355 | |
81ecdfbb RW |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4357 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4358 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4359 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4360 | else |
81ecdfbb RW |
4361 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4362 | # We make a subdir and do the tests there. Otherwise we can end up | |
4363 | # making bogus files that we don't know about and never remove. For | |
4364 | # instance it was reported that on HP-UX the gcc test will end up | |
4365 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4366 | # in D'. | |
4367 | mkdir conftest.dir | |
4368 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4369 | # using a relative directory. | |
4370 | cp "$am_depcomp" conftest.dir | |
4371 | cd conftest.dir | |
4372 | # We will build objects and dependencies in a subdirectory because | |
4373 | # it helps to detect inapplicable dependency modes. For instance | |
4374 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4375 | # side effect of compilation, but ICC will put the dependencies in | |
4376 | # the current directory while Tru64 will put them in the object | |
4377 | # directory. | |
4378 | mkdir sub | |
c2b45e22 | 4379 | |
81ecdfbb RW |
4380 | am_cv_CC_dependencies_compiler_type=none |
4381 | if test "$am_compiler_list" = ""; then | |
4382 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4383 | fi | |
4384 | am__universal=false | |
4385 | case " $depcc " in #( | |
4386 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4387 | esac | |
c2b45e22 | 4388 | |
81ecdfbb RW |
4389 | for depmode in $am_compiler_list; do |
4390 | # Setup a source with many dependencies, because some compilers | |
4391 | # like to wrap large dependency lists on column 80 (with \), and | |
4392 | # we should not choose a depcomp mode which is confused by this. | |
4393 | # | |
4394 | # We need to recreate these files for each test, as the compiler may | |
4395 | # overwrite some of them when testing with obscure command lines. | |
4396 | # This happens at least with the AIX C compiler. | |
4397 | : > sub/conftest.c | |
4398 | for i in 1 2 3 4 5 6; do | |
4399 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4400 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4401 | # Solaris 8's {/usr,}/bin/sh. | |
4402 | touch sub/conftst$i.h | |
4403 | done | |
4404 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4405 | |
81ecdfbb RW |
4406 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4407 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4408 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4409 | # versions had trouble with output in subdirs | |
4410 | am__obj=sub/conftest.${OBJEXT-o} | |
4411 | am__minus_obj="-o $am__obj" | |
4412 | case $depmode in | |
4413 | gcc) | |
4414 | # This depmode causes a compiler race in universal mode. | |
4415 | test "$am__universal" = false || continue | |
4416 | ;; | |
4417 | nosideeffect) | |
4418 | # after this tag, mechanisms are not by side-effect, so they'll | |
4419 | # only be used when explicitly requested | |
4420 | if test "x$enable_dependency_tracking" = xyes; then | |
4421 | continue | |
4422 | else | |
4423 | break | |
4424 | fi | |
4425 | ;; | |
4426 | msvisualcpp | msvcmsys) | |
4427 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4428 | # not run yet. These depmodes are late enough in the game, and | |
4429 | # so weak that their functioning should not be impacted. | |
4430 | am__obj=conftest.${OBJEXT-o} | |
4431 | am__minus_obj= | |
4432 | ;; | |
4433 | none) break ;; | |
4434 | esac | |
4435 | if depmode=$depmode \ | |
4436 | source=sub/conftest.c object=$am__obj \ | |
4437 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4438 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4439 | >/dev/null 2>conftest.err && | |
4440 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4441 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4442 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4443 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4444 | # icc doesn't choke on unknown options, it will just issue warnings | |
4445 | # or remarks (even with -Werror). So we grep stderr for any message | |
4446 | # that says an option was ignored or not supported. | |
4447 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4448 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4449 | # The diagnosis changed in icc 8.0: | |
4450 | # icc: Command line remark: option '-MP' not supported | |
4451 | if (grep 'ignoring option' conftest.err || | |
4452 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4453 | am_cv_CC_dependencies_compiler_type=$depmode | |
4454 | break | |
4455 | fi | |
4456 | fi | |
4457 | done | |
c2b45e22 | 4458 | |
81ecdfbb RW |
4459 | cd .. |
4460 | rm -rf conftest.dir | |
c2b45e22 | 4461 | else |
81ecdfbb | 4462 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4463 | fi |
c2b45e22 | 4464 | |
81ecdfbb RW |
4465 | fi |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4467 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4468 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4469 | |
81ecdfbb RW |
4470 | if |
4471 | test "x$enable_dependency_tracking" != xno \ | |
4472 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4473 | am__fastdepCC_TRUE= | |
4474 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4475 | else |
81ecdfbb RW |
4476 | am__fastdepCC_TRUE='#' |
4477 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4478 | fi |
4479 | ||
4480 | ||
81ecdfbb RW |
4481 | ac_ext=cpp |
4482 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4483 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4484 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4485 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4486 | if test -z "$CXX"; then | |
4487 | if test -n "$CCC"; then | |
4488 | CXX=$CCC | |
4489 | else | |
4490 | if test -n "$ac_tool_prefix"; then | |
4491 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4492 | do | |
4493 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4494 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4496 | $as_echo_n "checking for $ac_word... " >&6; } | |
4497 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4498 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4499 | else |
81ecdfbb RW |
4500 | if test -n "$CXX"; then |
4501 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4502 | else |
81ecdfbb RW |
4503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4504 | for as_dir in $PATH | |
4505 | do | |
4506 | IFS=$as_save_IFS | |
4507 | test -z "$as_dir" && as_dir=. | |
4508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4510 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4512 | break 2 | |
4513 | fi | |
4514 | done | |
4515 | done | |
4516 | IFS=$as_save_IFS | |
2fd32231 | 4517 | |
2fd32231 | 4518 | fi |
2fd32231 | 4519 | fi |
81ecdfbb RW |
4520 | CXX=$ac_cv_prog_CXX |
4521 | if test -n "$CXX"; then | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4523 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4524 | else |
81ecdfbb RW |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4526 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4527 | fi |
4528 | ||
4529 | ||
81ecdfbb RW |
4530 | test -n "$CXX" && break |
4531 | done | |
4532 | fi | |
4533 | if test -z "$CXX"; then | |
4534 | ac_ct_CXX=$CXX | |
4535 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4536 | do | |
4537 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4538 | set dummy $ac_prog; ac_word=$2 | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4540 | $as_echo_n "checking for $ac_word... " >&6; } | |
4541 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4542 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4543 | else |
81ecdfbb RW |
4544 | if test -n "$ac_ct_CXX"; then |
4545 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4546 | else |
81ecdfbb RW |
4547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4548 | for as_dir in $PATH | |
4549 | do | |
4550 | IFS=$as_save_IFS | |
4551 | test -z "$as_dir" && as_dir=. | |
4552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4554 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4556 | break 2 | |
4557 | fi | |
4558 | done | |
4559 | done | |
4560 | IFS=$as_save_IFS | |
1d1f116d | 4561 | |
1d1f116d | 4562 | fi |
1d1f116d | 4563 | fi |
81ecdfbb RW |
4564 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4565 | if test -n "$ac_ct_CXX"; then | |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4567 | $as_echo "$ac_ct_CXX" >&6; } | |
4568 | else | |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4570 | $as_echo "no" >&6; } | |
1d1f116d CD |
4571 | fi |
4572 | ||
4573 | ||
81ecdfbb RW |
4574 | test -n "$ac_ct_CXX" && break |
4575 | done | |
63402fe4 | 4576 | |
81ecdfbb RW |
4577 | if test "x$ac_ct_CXX" = x; then |
4578 | CXX="g++" | |
4579 | else | |
4580 | case $cross_compiling:$ac_tool_warned in | |
4581 | yes:) | |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4584 | ac_tool_warned=yes ;; | |
04bf7072 | 4585 | esac |
81ecdfbb RW |
4586 | CXX=$ac_ct_CXX |
4587 | fi | |
4588 | fi | |
04bf7072 | 4589 | |
81ecdfbb | 4590 | fi |
bae7f79e | 4591 | fi |
81ecdfbb RW |
4592 | # Provide some information about the compiler. |
4593 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4594 | set X $ac_compile | |
4595 | ac_compiler=$2 | |
4596 | for ac_option in --version -v -V -qversion; do | |
4597 | { { ac_try="$ac_compiler $ac_option >&5" | |
4598 | case "(($ac_try" in | |
4599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4600 | *) ac_try_echo=$ac_try;; | |
4601 | esac | |
4602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4603 | $as_echo "$ac_try_echo"; } >&5 | |
4604 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4605 | ac_status=$? | |
4606 | if test -s conftest.err; then | |
4607 | sed '10a\ | |
4608 | ... rest of stderr output deleted ... | |
4609 | 10q' conftest.err >conftest.er1 | |
4610 | cat conftest.er1 >&5 | |
4611 | rm -f conftest.er1 conftest.err | |
4612 | fi | |
4613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4614 | test $ac_status = 0; } | |
4615 | done | |
bae7f79e | 4616 | |
81ecdfbb RW |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4618 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4619 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4620 | $as_echo_n "(cached) " >&6 | |
4621 | else | |
4622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4623 | /* end confdefs.h. */ | |
4624 | ||
4625 | int | |
4626 | main () | |
4627 | { | |
4628 | #ifndef __GNUC__ | |
4629 | choke me | |
4630 | #endif | |
4631 | ||
4632 | ; | |
4633 | return 0; | |
4634 | } | |
4635 | _ACEOF | |
4636 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4637 | ac_compiler_gnu=yes | |
4638 | else | |
4639 | ac_compiler_gnu=no | |
bae7f79e | 4640 | fi |
81ecdfbb RW |
4641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4642 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4643 | |
bae7f79e | 4644 | fi |
81ecdfbb RW |
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4646 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4647 | if test $ac_compiler_gnu = yes; then | |
4648 | GXX=yes | |
4649 | else | |
4650 | GXX= | |
4651 | fi | |
4652 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4653 | ac_save_CXXFLAGS=$CXXFLAGS | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4655 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4656 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4657 | $as_echo_n "(cached) " >&6 | |
4658 | else | |
4659 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4660 | ac_cxx_werror_flag=yes | |
4661 | ac_cv_prog_cxx_g=no | |
4662 | CXXFLAGS="-g" | |
4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4664 | /* end confdefs.h. */ | |
bae7f79e | 4665 | |
81ecdfbb RW |
4666 | int |
4667 | main () | |
4668 | { | |
bae7f79e | 4669 | |
81ecdfbb RW |
4670 | ; |
4671 | return 0; | |
4672 | } | |
4673 | _ACEOF | |
4674 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4675 | ac_cv_prog_cxx_g=yes | |
4676 | else | |
4677 | CXXFLAGS="" | |
4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4679 | /* end confdefs.h. */ | |
bae7f79e | 4680 | |
81ecdfbb RW |
4681 | int |
4682 | main () | |
4683 | { | |
bae7f79e | 4684 | |
81ecdfbb RW |
4685 | ; |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
4689 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4690 | |
81ecdfbb RW |
4691 | else |
4692 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4693 | CXXFLAGS="-g" | |
4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4695 | /* end confdefs.h. */ | |
bae7f79e | 4696 | |
81ecdfbb RW |
4697 | int |
4698 | main () | |
4699 | { | |
bae7f79e | 4700 | |
81ecdfbb RW |
4701 | ; |
4702 | return 0; | |
4703 | } | |
4704 | _ACEOF | |
4705 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4706 | ac_cv_prog_cxx_g=yes | |
4707 | fi | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4709 | fi | |
4710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4711 | fi | |
4712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4713 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4714 | fi | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4716 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4717 | if test "$ac_test_CXXFLAGS" = set; then | |
4718 | CXXFLAGS=$ac_save_CXXFLAGS | |
4719 | elif test $ac_cv_prog_cxx_g = yes; then | |
4720 | if test "$GXX" = yes; then | |
4721 | CXXFLAGS="-g -O2" | |
4722 | else | |
4723 | CXXFLAGS="-g" | |
4724 | fi | |
4725 | else | |
4726 | if test "$GXX" = yes; then | |
4727 | CXXFLAGS="-O2" | |
4728 | else | |
4729 | CXXFLAGS= | |
4730 | fi | |
4731 | fi | |
4732 | ac_ext=c | |
4733 | ac_cpp='$CPP $CPPFLAGS' | |
4734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4737 | |
81ecdfbb | 4738 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4739 | |
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4741 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4742 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4743 | $as_echo_n "(cached) " >&6 | |
4744 | else | |
4745 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4746 | # We make a subdir and do the tests there. Otherwise we can end up | |
4747 | # making bogus files that we don't know about and never remove. For | |
4748 | # instance it was reported that on HP-UX the gcc test will end up | |
4749 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4750 | # in D'. | |
4751 | mkdir conftest.dir | |
4752 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4753 | # using a relative directory. | |
4754 | cp "$am_depcomp" conftest.dir | |
4755 | cd conftest.dir | |
4756 | # We will build objects and dependencies in a subdirectory because | |
4757 | # it helps to detect inapplicable dependency modes. For instance | |
4758 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4759 | # side effect of compilation, but ICC will put the dependencies in | |
4760 | # the current directory while Tru64 will put them in the object | |
4761 | # directory. | |
4762 | mkdir sub | |
bae7f79e | 4763 | |
81ecdfbb RW |
4764 | am_cv_CXX_dependencies_compiler_type=none |
4765 | if test "$am_compiler_list" = ""; then | |
4766 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4767 | fi | |
4768 | am__universal=false | |
4769 | case " $depcc " in #( | |
4770 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4771 | esac | |
bae7f79e | 4772 | |
81ecdfbb RW |
4773 | for depmode in $am_compiler_list; do |
4774 | # Setup a source with many dependencies, because some compilers | |
4775 | # like to wrap large dependency lists on column 80 (with \), and | |
4776 | # we should not choose a depcomp mode which is confused by this. | |
4777 | # | |
4778 | # We need to recreate these files for each test, as the compiler may | |
4779 | # overwrite some of them when testing with obscure command lines. | |
4780 | # This happens at least with the AIX C compiler. | |
4781 | : > sub/conftest.c | |
4782 | for i in 1 2 3 4 5 6; do | |
4783 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4784 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4785 | # Solaris 8's {/usr,}/bin/sh. | |
4786 | touch sub/conftst$i.h | |
4787 | done | |
4788 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4789 | |
81ecdfbb RW |
4790 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4791 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4792 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4793 | # versions had trouble with output in subdirs | |
4794 | am__obj=sub/conftest.${OBJEXT-o} | |
4795 | am__minus_obj="-o $am__obj" | |
4796 | case $depmode in | |
4797 | gcc) | |
4798 | # This depmode causes a compiler race in universal mode. | |
4799 | test "$am__universal" = false || continue | |
4800 | ;; | |
4801 | nosideeffect) | |
4802 | # after this tag, mechanisms are not by side-effect, so they'll | |
4803 | # only be used when explicitly requested | |
4804 | if test "x$enable_dependency_tracking" = xyes; then | |
4805 | continue | |
4806 | else | |
4807 | break | |
4808 | fi | |
4809 | ;; | |
4810 | msvisualcpp | msvcmsys) | |
4811 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4812 | # not run yet. These depmodes are late enough in the game, and | |
4813 | # so weak that their functioning should not be impacted. | |
4814 | am__obj=conftest.${OBJEXT-o} | |
4815 | am__minus_obj= | |
4816 | ;; | |
4817 | none) break ;; | |
4818 | esac | |
4819 | if depmode=$depmode \ | |
4820 | source=sub/conftest.c object=$am__obj \ | |
4821 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4822 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4823 | >/dev/null 2>conftest.err && | |
4824 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4825 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4826 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4827 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4828 | # icc doesn't choke on unknown options, it will just issue warnings | |
4829 | # or remarks (even with -Werror). So we grep stderr for any message | |
4830 | # that says an option was ignored or not supported. | |
4831 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4832 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4833 | # The diagnosis changed in icc 8.0: | |
4834 | # icc: Command line remark: option '-MP' not supported | |
4835 | if (grep 'ignoring option' conftest.err || | |
4836 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4837 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4838 | break | |
4839 | fi | |
4840 | fi | |
4841 | done | |
9201d894 | 4842 | |
81ecdfbb RW |
4843 | cd .. |
4844 | rm -rf conftest.dir | |
4845 | else | |
4846 | am_cv_CXX_dependencies_compiler_type=none | |
4847 | fi | |
9201d894 | 4848 | |
81ecdfbb RW |
4849 | fi |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4851 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4852 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4853 | |
81ecdfbb RW |
4854 | if |
4855 | test "x$enable_dependency_tracking" != xno \ | |
4856 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4857 | am__fastdepCXX_TRUE= | |
4858 | am__fastdepCXX_FALSE='#' | |
4859 | else | |
4860 | am__fastdepCXX_TRUE='#' | |
4861 | am__fastdepCXX_FALSE= | |
4862 | fi | |
9201d894 | 4863 | |
9201d894 | 4864 | |
81ecdfbb RW |
4865 | for ac_prog in 'bison -y' byacc |
4866 | do | |
4867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4868 | set dummy $ac_prog; ac_word=$2 | |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4870 | $as_echo_n "checking for $ac_word... " >&6; } | |
4871 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
4872 | $as_echo_n "(cached) " >&6 | |
9201d894 | 4873 | else |
81ecdfbb RW |
4874 | if test -n "$YACC"; then |
4875 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4876 | else | |
4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4878 | for as_dir in $PATH | |
4879 | do | |
4880 | IFS=$as_save_IFS | |
4881 | test -z "$as_dir" && as_dir=. | |
4882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4884 | ac_cv_prog_YACC="$ac_prog" | |
4885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4886 | break 2 | |
4887 | fi | |
4888 | done | |
4889 | done | |
4890 | IFS=$as_save_IFS | |
9201d894 | 4891 | |
9201d894 | 4892 | fi |
9201d894 | 4893 | fi |
81ecdfbb RW |
4894 | YACC=$ac_cv_prog_YACC |
4895 | if test -n "$YACC"; then | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
4897 | $as_echo "$YACC" >&6; } | |
4898 | else | |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4900 | $as_echo "no" >&6; } | |
9201d894 | 4901 | fi |
9201d894 | 4902 | |
2f35ab9b | 4903 | |
81ecdfbb RW |
4904 | test -n "$YACC" && break |
4905 | done | |
4906 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 4907 | |
81ecdfbb RW |
4908 | if test -n "$ac_tool_prefix"; then |
4909 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4910 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4912 | $as_echo_n "checking for $ac_word... " >&6; } | |
4913 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4914 | $as_echo_n "(cached) " >&6 | |
4915 | else | |
4916 | if test -n "$RANLIB"; then | |
4917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4918 | else | |
4919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4920 | for as_dir in $PATH | |
82dcae9d | 4921 | do |
81ecdfbb RW |
4922 | IFS=$as_save_IFS |
4923 | test -z "$as_dir" && as_dir=. | |
4924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4926 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4928 | break 2 | |
4929 | fi | |
4930 | done | |
4931 | done | |
4932 | IFS=$as_save_IFS | |
82dcae9d | 4933 | |
81ecdfbb RW |
4934 | fi |
4935 | fi | |
4936 | RANLIB=$ac_cv_prog_RANLIB | |
4937 | if test -n "$RANLIB"; then | |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4939 | $as_echo "$RANLIB" >&6; } | |
4940 | else | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4942 | $as_echo "no" >&6; } | |
4943 | fi | |
82dcae9d | 4944 | |
82dcae9d | 4945 | |
81ecdfbb RW |
4946 | fi |
4947 | if test -z "$ac_cv_prog_RANLIB"; then | |
4948 | ac_ct_RANLIB=$RANLIB | |
4949 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4950 | set dummy ranlib; ac_word=$2 | |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4952 | $as_echo_n "checking for $ac_word... " >&6; } | |
4953 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4954 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 4955 | else |
81ecdfbb RW |
4956 | if test -n "$ac_ct_RANLIB"; then |
4957 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4958 | else | |
4959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4960 | for as_dir in $PATH | |
4961 | do | |
4962 | IFS=$as_save_IFS | |
4963 | test -z "$as_dir" && as_dir=. | |
4964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4966 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4968 | break 2 | |
4969 | fi | |
4970 | done | |
4971 | done | |
4972 | IFS=$as_save_IFS | |
82dcae9d | 4973 | |
82dcae9d | 4974 | fi |
82dcae9d | 4975 | fi |
81ecdfbb RW |
4976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4977 | if test -n "$ac_ct_RANLIB"; then | |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4979 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 4980 | else |
81ecdfbb RW |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4982 | $as_echo "no" >&6; } | |
4983 | fi | |
4984 | ||
4985 | if test "x$ac_ct_RANLIB" = x; then | |
4986 | RANLIB=":" | |
4987 | else | |
4988 | case $cross_compiling:$ac_tool_warned in | |
4989 | yes:) | |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4992 | ac_tool_warned=yes ;; | |
82dcae9d | 4993 | esac |
81ecdfbb RW |
4994 | RANLIB=$ac_ct_RANLIB |
4995 | fi | |
4996 | else | |
4997 | RANLIB="$ac_cv_prog_RANLIB" | |
4998 | fi | |
82dcae9d | 4999 | |
81ecdfbb RW |
5000 | |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5002 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5003 | LN_S=$as_ln_s | |
5004 | if test "$LN_S" = "ln -s"; then | |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5006 | $as_echo "yes" >&6; } | |
5007 | else | |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5009 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5010 | fi |
82dcae9d ILT |
5011 | |
5012 | ||
5013 | ||
9a0910c3 ILT |
5014 | ac_ext=c |
5015 | ac_cpp='$CPP $CPPFLAGS' | |
5016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5020 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5021 | # On Suns, sometimes $CPP names a directory. |
5022 | if test -n "$CPP" && test -d "$CPP"; then | |
5023 | CPP= | |
5024 | fi | |
5025 | if test -z "$CPP"; then | |
81ecdfbb RW |
5026 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5027 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5028 | else |
5029 | # Double quotes because CPP needs to be expanded | |
5030 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5031 | do | |
5032 | ac_preproc_ok=false | |
5033 | for ac_c_preproc_warn_flag in '' yes | |
5034 | do | |
5035 | # Use a header file that comes with gcc, so configuring glibc | |
5036 | # with a fresh cross-compiler works. | |
5037 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5038 | # <limits.h> exists even on freestanding compilers. | |
5039 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5040 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5042 | /* end confdefs.h. */ |
5043 | #ifdef __STDC__ | |
5044 | # include <limits.h> | |
5045 | #else | |
5046 | # include <assert.h> | |
5047 | #endif | |
5048 | Syntax error | |
5049 | _ACEOF | |
81ecdfbb | 5050 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5051 | |
81ecdfbb | 5052 | else |
9a0910c3 ILT |
5053 | # Broken: fails on valid input. |
5054 | continue | |
5055 | fi | |
5056 | rm -f conftest.err conftest.$ac_ext | |
5057 | ||
81ecdfbb | 5058 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5059 | # can be detected and how. |
81ecdfbb | 5060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5061 | /* end confdefs.h. */ |
5062 | #include <ac_nonexistent.h> | |
5063 | _ACEOF | |
81ecdfbb | 5064 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5065 | # Broken: success on invalid input. |
5066 | continue | |
5067 | else | |
9a0910c3 ILT |
5068 | # Passes both tests. |
5069 | ac_preproc_ok=: | |
5070 | break | |
5071 | fi | |
5072 | rm -f conftest.err conftest.$ac_ext | |
5073 | ||
5074 | done | |
5075 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5076 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5077 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5078 | break |
5079 | fi | |
5080 | ||
5081 | done | |
5082 | ac_cv_prog_CPP=$CPP | |
5083 | ||
5084 | fi | |
5085 | CPP=$ac_cv_prog_CPP | |
5086 | else | |
5087 | ac_cv_prog_CPP=$CPP | |
5088 | fi | |
81ecdfbb RW |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5090 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5091 | ac_preproc_ok=false |
5092 | for ac_c_preproc_warn_flag in '' yes | |
5093 | do | |
5094 | # Use a header file that comes with gcc, so configuring glibc | |
5095 | # with a fresh cross-compiler works. | |
5096 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5097 | # <limits.h> exists even on freestanding compilers. | |
5098 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5099 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5101 | /* end confdefs.h. */ |
5102 | #ifdef __STDC__ | |
5103 | # include <limits.h> | |
5104 | #else | |
5105 | # include <assert.h> | |
5106 | #endif | |
5107 | Syntax error | |
5108 | _ACEOF | |
81ecdfbb | 5109 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5110 | |
81ecdfbb | 5111 | else |
9a0910c3 ILT |
5112 | # Broken: fails on valid input. |
5113 | continue | |
5114 | fi | |
5115 | rm -f conftest.err conftest.$ac_ext | |
5116 | ||
81ecdfbb | 5117 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5118 | # can be detected and how. |
81ecdfbb | 5119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5120 | /* end confdefs.h. */ |
5121 | #include <ac_nonexistent.h> | |
5122 | _ACEOF | |
81ecdfbb | 5123 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5124 | # Broken: success on invalid input. |
5125 | continue | |
5126 | else | |
9a0910c3 ILT |
5127 | # Passes both tests. |
5128 | ac_preproc_ok=: | |
5129 | break | |
5130 | fi | |
5131 | rm -f conftest.err conftest.$ac_ext | |
5132 | ||
5133 | done | |
5134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5135 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5136 | if $ac_preproc_ok; then : |
5137 | ||
9a0910c3 | 5138 | else |
81ecdfbb RW |
5139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5141 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5142 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5143 | fi |
5144 | ||
5145 | ac_ext=c | |
5146 | ac_cpp='$CPP $CPPFLAGS' | |
5147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5150 | ||
5151 | ||
81ecdfbb RW |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5153 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5154 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5155 | $as_echo_n "(cached) " >&6 | |
5156 | else | |
5157 | if test -z "$GREP"; then | |
5158 | ac_path_GREP_found=false | |
5159 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5161 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5162 | do | |
5163 | IFS=$as_save_IFS | |
5164 | test -z "$as_dir" && as_dir=. | |
5165 | for ac_prog in grep ggrep; do | |
5166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5167 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5168 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5169 | # Check for GNU ac_path_GREP and select it if it is found. | |
5170 | # Check for GNU $ac_path_GREP | |
5171 | case `"$ac_path_GREP" --version 2>&1` in | |
5172 | *GNU*) | |
5173 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5174 | *) | |
5175 | ac_count=0 | |
5176 | $as_echo_n 0123456789 >"conftest.in" | |
5177 | while : | |
5178 | do | |
5179 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5180 | mv "conftest.tmp" "conftest.in" | |
5181 | cp "conftest.in" "conftest.nl" | |
5182 | $as_echo 'GREP' >> "conftest.nl" | |
5183 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5184 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5185 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5186 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5187 | # Best one so far, save it but keep looking for a better one | |
5188 | ac_cv_path_GREP="$ac_path_GREP" | |
5189 | ac_path_GREP_max=$ac_count | |
5190 | fi | |
5191 | # 10*(2^10) chars as input seems more than enough | |
5192 | test $ac_count -gt 10 && break | |
5193 | done | |
5194 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5195 | esac | |
5196 | ||
5197 | $ac_path_GREP_found && break 3 | |
5198 | done | |
5199 | done | |
5200 | done | |
5201 | IFS=$as_save_IFS | |
5202 | if test -z "$ac_cv_path_GREP"; then | |
5203 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5204 | fi | |
5205 | else | |
5206 | ac_cv_path_GREP=$GREP | |
5207 | fi | |
5208 | ||
5209 | fi | |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5211 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5212 | GREP="$ac_cv_path_GREP" | |
5213 | ||
5214 | ||
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5216 | $as_echo_n "checking for egrep... " >&6; } | |
5217 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5218 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5219 | else |
81ecdfbb RW |
5220 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5221 | then ac_cv_path_EGREP="$GREP -E" | |
5222 | else | |
5223 | if test -z "$EGREP"; then | |
5224 | ac_path_EGREP_found=false | |
5225 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5227 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5228 | do | |
5229 | IFS=$as_save_IFS | |
5230 | test -z "$as_dir" && as_dir=. | |
5231 | for ac_prog in egrep; do | |
5232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5233 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5234 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5235 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5236 | # Check for GNU $ac_path_EGREP | |
5237 | case `"$ac_path_EGREP" --version 2>&1` in | |
5238 | *GNU*) | |
5239 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5240 | *) | |
5241 | ac_count=0 | |
5242 | $as_echo_n 0123456789 >"conftest.in" | |
5243 | while : | |
5244 | do | |
5245 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5246 | mv "conftest.tmp" "conftest.in" | |
5247 | cp "conftest.in" "conftest.nl" | |
5248 | $as_echo 'EGREP' >> "conftest.nl" | |
5249 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5250 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5251 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5252 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5253 | # Best one so far, save it but keep looking for a better one | |
5254 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5255 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5256 | fi |
81ecdfbb RW |
5257 | # 10*(2^10) chars as input seems more than enough |
5258 | test $ac_count -gt 10 && break | |
5259 | done | |
5260 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5261 | esac | |
5262 | ||
5263 | $ac_path_EGREP_found && break 3 | |
5264 | done | |
5265 | done | |
5266 | done | |
5267 | IFS=$as_save_IFS | |
5268 | if test -z "$ac_cv_path_EGREP"; then | |
5269 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5270 | fi | |
5271 | else | |
5272 | ac_cv_path_EGREP=$EGREP | |
5273 | fi | |
5274 | ||
5275 | fi | |
9a0910c3 | 5276 | fi |
81ecdfbb RW |
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5278 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5279 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5280 | |
5281 | ||
81ecdfbb RW |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5283 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5284 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5285 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5286 | else |
81ecdfbb | 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5288 | /* end confdefs.h. */ |
5289 | #include <stdlib.h> | |
5290 | #include <stdarg.h> | |
5291 | #include <string.h> | |
5292 | #include <float.h> | |
5293 | ||
5294 | int | |
5295 | main () | |
5296 | { | |
5297 | ||
5298 | ; | |
5299 | return 0; | |
5300 | } | |
5301 | _ACEOF | |
81ecdfbb | 5302 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5303 | ac_cv_header_stdc=yes |
5304 | else | |
81ecdfbb | 5305 | ac_cv_header_stdc=no |
9a0910c3 | 5306 | fi |
81ecdfbb | 5307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5308 | |
5309 | if test $ac_cv_header_stdc = yes; then | |
5310 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5312 | /* end confdefs.h. */ |
5313 | #include <string.h> | |
5314 | ||
5315 | _ACEOF | |
5316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5317 | $EGREP "memchr" >/dev/null 2>&1; then : |
5318 | ||
9a0910c3 ILT |
5319 | else |
5320 | ac_cv_header_stdc=no | |
5321 | fi | |
5322 | rm -f conftest* | |
5323 | ||
5324 | fi | |
5325 | ||
5326 | if test $ac_cv_header_stdc = yes; then | |
5327 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5329 | /* end confdefs.h. */ |
5330 | #include <stdlib.h> | |
5331 | ||
5332 | _ACEOF | |
5333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5334 | $EGREP "free" >/dev/null 2>&1; then : |
5335 | ||
9a0910c3 ILT |
5336 | else |
5337 | ac_cv_header_stdc=no | |
5338 | fi | |
5339 | rm -f conftest* | |
5340 | ||
5341 | fi | |
5342 | ||
5343 | if test $ac_cv_header_stdc = yes; then | |
5344 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5345 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5346 | : |
5347 | else | |
81ecdfbb | 5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5349 | /* end confdefs.h. */ |
5350 | #include <ctype.h> | |
81ecdfbb | 5351 | #include <stdlib.h> |
9a0910c3 ILT |
5352 | #if ((' ' & 0x0FF) == 0x020) |
5353 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5354 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5355 | #else | |
5356 | # define ISLOWER(c) \ | |
5357 | (('a' <= (c) && (c) <= 'i') \ | |
5358 | || ('j' <= (c) && (c) <= 'r') \ | |
5359 | || ('s' <= (c) && (c) <= 'z')) | |
5360 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5361 | #endif | |
5362 | ||
5363 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5364 | int | |
5365 | main () | |
5366 | { | |
5367 | int i; | |
5368 | for (i = 0; i < 256; i++) | |
5369 | if (XOR (islower (i), ISLOWER (i)) | |
5370 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5371 | return 2; |
5372 | return 0; | |
9a0910c3 ILT |
5373 | } |
5374 | _ACEOF | |
81ecdfbb | 5375 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5376 | |
81ecdfbb RW |
5377 | else |
5378 | ac_cv_header_stdc=no | |
9a0910c3 | 5379 | fi |
81ecdfbb RW |
5380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5381 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5382 | fi |
81ecdfbb | 5383 | |
9a0910c3 ILT |
5384 | fi |
5385 | fi | |
81ecdfbb RW |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5387 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5388 | if test $ac_cv_header_stdc = yes; then |
5389 | ||
81ecdfbb | 5390 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5391 | |
5392 | fi | |
5393 | ||
5394 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5395 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5396 | inttypes.h stdint.h unistd.h | |
5397 | do : | |
5398 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5399 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5400 | " | |
5401 | eval as_val=\$$as_ac_Header | |
5402 | if test "x$as_val" = x""yes; then : | |
5403 | cat >>confdefs.h <<_ACEOF | |
5404 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5405 | _ACEOF | |
9a0910c3 | 5406 | |
81ecdfbb | 5407 | fi |
9a0910c3 | 5408 | |
81ecdfbb | 5409 | done |
9a0910c3 ILT |
5410 | |
5411 | ||
5412 | ||
81ecdfbb RW |
5413 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5414 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5415 | MINIX=yes | |
5416 | else | |
5417 | MINIX= | |
5418 | fi | |
9a0910c3 ILT |
5419 | |
5420 | ||
81ecdfbb | 5421 | if test "$MINIX" = yes; then |
9a0910c3 | 5422 | |
81ecdfbb | 5423 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5424 | |
9a0910c3 | 5425 | |
81ecdfbb | 5426 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5427 | |
9a0910c3 | 5428 | |
81ecdfbb | 5429 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5430 | |
81ecdfbb | 5431 | fi |
9a0910c3 ILT |
5432 | |
5433 | ||
81ecdfbb RW |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5435 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5436 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5437 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5438 | else |
81ecdfbb | 5439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5440 | /* end confdefs.h. */ |
5441 | ||
81ecdfbb RW |
5442 | # define __EXTENSIONS__ 1 |
5443 | $ac_includes_default | |
9a0910c3 ILT |
5444 | int |
5445 | main () | |
5446 | { | |
81ecdfbb | 5447 | |
9a0910c3 ILT |
5448 | ; |
5449 | return 0; | |
5450 | } | |
5451 | _ACEOF | |
81ecdfbb RW |
5452 | if ac_fn_c_try_compile "$LINENO"; then : |
5453 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5454 | else |
81ecdfbb | 5455 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5456 | fi |
81ecdfbb RW |
5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5458 | fi | |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5460 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5461 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5462 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5463 | |
81ecdfbb RW |
5464 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5465 | ||
5466 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5467 | |
81ecdfbb RW |
5468 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5469 | ||
5470 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | # If we haven't got the data from the intl directory, | |
5476 | # assume NLS is disabled. | |
5477 | USE_NLS=no | |
5478 | LIBINTL= | |
5479 | LIBINTL_DEP= | |
5480 | INCINTL= | |
5481 | XGETTEXT= | |
5482 | GMSGFMT= | |
5483 | POSUB= | |
5484 | ||
5485 | if test -f ../intl/config.intl; then | |
5486 | . ../intl/config.intl | |
9a0910c3 | 5487 | fi |
81ecdfbb RW |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5489 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5490 | if test x"$USE_NLS" != xyes; then | |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5492 | $as_echo "no" >&6; } | |
5493 | else | |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5495 | $as_echo "yes" >&6; } | |
5496 | ||
5497 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5498 | ||
5499 | ||
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5501 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5502 | # Look for .po and .gmo files in the source directory. | |
5503 | CATALOGS= | |
5504 | XLINGUAS= | |
5505 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5506 | # If there aren't any .gmo files the shell will give us the | |
5507 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5508 | # weeded out. | |
5509 | case "$cat" in *\**) | |
5510 | continue;; | |
5511 | esac | |
5512 | # The quadruple backslash is collapsed to a double backslash | |
5513 | # by the backticks, then collapsed again by the double quotes, | |
5514 | # leaving us with one backslash in the sed expression (right | |
5515 | # before the dot that mustn't act as a wildcard). | |
5516 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5517 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5518 | # The user is allowed to set LINGUAS to a list of languages to | |
5519 | # install catalogs for. If it's empty that means "all of them." | |
5520 | if test "x$LINGUAS" = x; then | |
5521 | CATALOGS="$CATALOGS $cat" | |
5522 | XLINGUAS="$XLINGUAS $lang" | |
5523 | else | |
5524 | case "$LINGUAS" in *$lang*) | |
5525 | CATALOGS="$CATALOGS $cat" | |
5526 | XLINGUAS="$XLINGUAS $lang" | |
5527 | ;; | |
5528 | esac | |
5529 | fi | |
9a0910c3 | 5530 | done |
81ecdfbb RW |
5531 | LINGUAS="$XLINGUAS" |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5533 | $as_echo "$LINGUAS" >&6; } | |
5534 | ||
5535 | ||
5536 | DATADIRNAME=share | |
5537 | ||
5538 | INSTOBJEXT=.mo | |
5539 | ||
5540 | GENCAT=gencat | |
5541 | ||
5542 | CATOBJEXT=.gmo | |
9a0910c3 | 5543 | |
9a0910c3 | 5544 | fi |
9a0910c3 | 5545 | |
81ecdfbb RW |
5546 | MKINSTALLDIRS= |
5547 | if test -n "$ac_aux_dir"; then | |
5548 | case "$ac_aux_dir" in | |
5549 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5550 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5551 | esac | |
5552 | fi | |
5553 | if test -z "$MKINSTALLDIRS"; then | |
5554 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5555 | fi | |
5556 | ||
5557 | ||
5558 | ||
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5560 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5561 | # Check whether --enable-nls was given. | |
5562 | if test "${enable_nls+set}" = set; then : | |
5563 | enableval=$enable_nls; USE_NLS=$enableval | |
5564 | else | |
5565 | USE_NLS=yes | |
9a0910c3 | 5566 | fi |
9a0910c3 | 5567 | |
81ecdfbb RW |
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5569 | $as_echo "$USE_NLS" >&6; } | |
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | # Prepare PATH_SEPARATOR. | |
5577 | # The user is always right. | |
5578 | if test "${PATH_SEPARATOR+set}" != set; then | |
5579 | echo "#! /bin/sh" >conf$$.sh | |
5580 | echo "exit 0" >>conf$$.sh | |
5581 | chmod +x conf$$.sh | |
5582 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5583 | PATH_SEPARATOR=';' | |
9a0910c3 | 5584 | else |
81ecdfbb | 5585 | PATH_SEPARATOR=: |
9a0910c3 | 5586 | fi |
81ecdfbb | 5587 | rm -f conf$$.sh |
9a0910c3 | 5588 | fi |
81ecdfbb RW |
5589 | |
5590 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5591 | # as systems may use methods other than mode bits to determine executability. | |
5592 | cat >conf$$.file <<_ASEOF | |
5593 | #! /bin/sh | |
5594 | exit 0 | |
5595 | _ASEOF | |
5596 | chmod +x conf$$.file | |
5597 | if test -x conf$$.file >/dev/null 2>&1; then | |
5598 | ac_executable_p="test -x" | |
9a0910c3 | 5599 | else |
81ecdfbb RW |
5600 | ac_executable_p="test -f" |
5601 | fi | |
5602 | rm -f conf$$.file | |
9a0910c3 | 5603 | |
81ecdfbb RW |
5604 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5605 | set dummy msgfmt; ac_word=$2 | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5607 | $as_echo_n "checking for $ac_word... " >&6; } | |
5608 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5609 | $as_echo_n "(cached) " >&6 | |
5610 | else | |
5611 | case "$MSGFMT" in | |
5612 | [\\/]* | ?:[\\/]*) | |
5613 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5614 | ;; | |
5615 | *) | |
5616 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5617 | for ac_dir in $PATH; do | |
5618 | IFS="$ac_save_IFS" | |
5619 | test -z "$ac_dir" && ac_dir=. | |
5620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5621 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5622 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5623 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5624 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5625 | break 2 | |
5626 | fi | |
5627 | fi | |
5628 | done | |
5629 | done | |
5630 | IFS="$ac_save_IFS" | |
5631 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5632 | ;; | |
5633 | esac | |
9a0910c3 | 5634 | fi |
81ecdfbb RW |
5635 | MSGFMT="$ac_cv_path_MSGFMT" |
5636 | if test "$MSGFMT" != ":"; then | |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5638 | $as_echo "$MSGFMT" >&6; } | |
5639 | else | |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5641 | $as_echo "no" >&6; } | |
5642 | fi | |
5643 | ||
5644 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5645 | set dummy gmsgfmt; ac_word=$2 | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5647 | $as_echo_n "checking for $ac_word... " >&6; } | |
5648 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5649 | $as_echo_n "(cached) " >&6 | |
5650 | else | |
5651 | case $GMSGFMT in | |
5652 | [\\/]* | ?:[\\/]*) | |
5653 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5654 | ;; | |
5655 | *) | |
5656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5657 | for as_dir in $PATH | |
5658 | do | |
5659 | IFS=$as_save_IFS | |
5660 | test -z "$as_dir" && as_dir=. | |
5661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5663 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5665 | break 2 | |
5666 | fi | |
5667 | done | |
5668 | done | |
5669 | IFS=$as_save_IFS | |
9a0910c3 | 5670 | |
81ecdfbb RW |
5671 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5672 | ;; | |
9a0910c3 | 5673 | esac |
81ecdfbb RW |
5674 | fi |
5675 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5676 | if test -n "$GMSGFMT"; then | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5678 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5679 | else |
81ecdfbb RW |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5681 | $as_echo "no" >&6; } | |
9a0910c3 | 5682 | fi |
9a0910c3 | 5683 | |
9a0910c3 | 5684 | |
9a0910c3 | 5685 | |
9a0910c3 | 5686 | |
81ecdfbb RW |
5687 | # Prepare PATH_SEPARATOR. |
5688 | # The user is always right. | |
5689 | if test "${PATH_SEPARATOR+set}" != set; then | |
5690 | echo "#! /bin/sh" >conf$$.sh | |
5691 | echo "exit 0" >>conf$$.sh | |
5692 | chmod +x conf$$.sh | |
5693 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5694 | PATH_SEPARATOR=';' | |
5695 | else | |
5696 | PATH_SEPARATOR=: | |
5697 | fi | |
5698 | rm -f conf$$.sh | |
9a0910c3 ILT |
5699 | fi |
5700 | ||
81ecdfbb RW |
5701 | # Find out how to test for executable files. Don't use a zero-byte file, |
5702 | # as systems may use methods other than mode bits to determine executability. | |
5703 | cat >conf$$.file <<_ASEOF | |
5704 | #! /bin/sh | |
5705 | exit 0 | |
5706 | _ASEOF | |
5707 | chmod +x conf$$.file | |
5708 | if test -x conf$$.file >/dev/null 2>&1; then | |
5709 | ac_executable_p="test -x" | |
7fcd0256 | 5710 | else |
81ecdfbb | 5711 | ac_executable_p="test -f" |
7fcd0256 | 5712 | fi |
81ecdfbb | 5713 | rm -f conf$$.file |
7fcd0256 | 5714 | |
81ecdfbb RW |
5715 | # Extract the first word of "xgettext", so it can be a program name with args. |
5716 | set dummy xgettext; ac_word=$2 | |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5718 | $as_echo_n "checking for $ac_word... " >&6; } | |
5719 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5720 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5721 | else |
81ecdfbb RW |
5722 | case "$XGETTEXT" in |
5723 | [\\/]* | ?:[\\/]*) | |
5724 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5725 | ;; | |
5726 | *) | |
5727 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5728 | for ac_dir in $PATH; do | |
5729 | IFS="$ac_save_IFS" | |
5730 | test -z "$ac_dir" && ac_dir=. | |
5731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5732 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5733 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5734 | (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 | |
5735 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5736 | break 2 | |
5737 | fi | |
5738 | fi | |
5739 | done | |
5740 | done | |
5741 | IFS="$ac_save_IFS" | |
5742 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5743 | ;; | |
5744 | esac | |
54dc6425 | 5745 | fi |
81ecdfbb RW |
5746 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5747 | if test "$XGETTEXT" != ":"; then | |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5749 | $as_echo "$XGETTEXT" >&6; } | |
5750 | else | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5752 | $as_echo "no" >&6; } | |
0639a6f6 | 5753 | fi |
0639a6f6 | 5754 | |
81ecdfbb | 5755 | rm -f messages.po |
0639a6f6 ILT |
5756 | |
5757 | ||
81ecdfbb RW |
5758 | # Prepare PATH_SEPARATOR. |
5759 | # The user is always right. | |
5760 | if test "${PATH_SEPARATOR+set}" != set; then | |
5761 | echo "#! /bin/sh" >conf$$.sh | |
5762 | echo "exit 0" >>conf$$.sh | |
5763 | chmod +x conf$$.sh | |
5764 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5765 | PATH_SEPARATOR=';' | |
5766 | else | |
5767 | PATH_SEPARATOR=: | |
5768 | fi | |
5769 | rm -f conf$$.sh | |
0639a6f6 | 5770 | fi |
0639a6f6 | 5771 | |
81ecdfbb RW |
5772 | # Find out how to test for executable files. Don't use a zero-byte file, |
5773 | # as systems may use methods other than mode bits to determine executability. | |
5774 | cat >conf$$.file <<_ASEOF | |
5775 | #! /bin/sh | |
5776 | exit 0 | |
5777 | _ASEOF | |
5778 | chmod +x conf$$.file | |
5779 | if test -x conf$$.file >/dev/null 2>&1; then | |
5780 | ac_executable_p="test -x" | |
54dc6425 | 5781 | else |
81ecdfbb | 5782 | ac_executable_p="test -f" |
54dc6425 | 5783 | fi |
81ecdfbb | 5784 | rm -f conf$$.file |
54dc6425 | 5785 | |
81ecdfbb RW |
5786 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5787 | set dummy msgmerge; ac_word=$2 | |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5789 | $as_echo_n "checking for $ac_word... " >&6; } | |
5790 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5791 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5792 | else |
81ecdfbb RW |
5793 | case "$MSGMERGE" in |
5794 | [\\/]* | ?:[\\/]*) | |
5795 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5796 | ;; | |
5797 | *) | |
5798 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5799 | for ac_dir in $PATH; do | |
5800 | IFS="$ac_save_IFS" | |
5801 | test -z "$ac_dir" && ac_dir=. | |
5802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5803 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5804 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5805 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5806 | break 2 | |
5807 | fi | |
5808 | fi | |
5809 | done | |
5810 | done | |
5811 | IFS="$ac_save_IFS" | |
5812 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5813 | ;; | |
5814 | esac | |
54dc6425 | 5815 | fi |
81ecdfbb RW |
5816 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5817 | if test "$MSGMERGE" != ":"; then | |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5819 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5820 | else |
81ecdfbb RW |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5822 | $as_echo "no" >&6; } | |
5823 | fi | |
0639a6f6 | 5824 | |
54dc6425 | 5825 | |
81ecdfbb RW |
5826 | if test "$GMSGFMT" != ":"; then |
5827 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5828 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5829 | : ; | |
5830 | else | |
5831 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5833 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5834 | GMSGFMT=":" | |
5835 | fi | |
5836 | fi | |
54dc6425 | 5837 | |
81ecdfbb RW |
5838 | if test "$XGETTEXT" != ":"; then |
5839 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5840 | (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 | |
5841 | : ; | |
5842 | else | |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5844 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5845 | XGETTEXT=":" | |
5846 | fi | |
5847 | rm -f messages.po | |
5848 | fi | |
54dc6425 | 5849 | |
81ecdfbb | 5850 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5851 | |
54dc6425 ILT |
5852 | |
5853 | ||
81ecdfbb RW |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5855 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5856 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5857 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5858 | else |
81ecdfbb RW |
5859 | ac_cv_c_bigendian=unknown |
5860 | # See if we're dealing with a universal compiler. | |
5861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5862 | /* end confdefs.h. */ |
81ecdfbb RW |
5863 | #ifndef __APPLE_CC__ |
5864 | not a universal capable compiler | |
5865 | #endif | |
5866 | typedef int dummy; | |
5867 | ||
5868 | _ACEOF | |
5869 | if ac_fn_c_try_compile "$LINENO"; then : | |
5870 | ||
5871 | # Check for potential -arch flags. It is not universal unless | |
5872 | # there are at least two -arch flags with different values. | |
5873 | ac_arch= | |
5874 | ac_prev= | |
5875 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5876 | if test -n "$ac_prev"; then | |
5877 | case $ac_word in | |
5878 | i?86 | x86_64 | ppc | ppc64) | |
5879 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5880 | ac_arch=$ac_word | |
5881 | else | |
5882 | ac_cv_c_bigendian=universal | |
5883 | break | |
5884 | fi | |
5885 | ;; | |
5886 | esac | |
5887 | ac_prev= | |
5888 | elif test "x$ac_word" = "x-arch"; then | |
5889 | ac_prev=arch | |
5890 | fi | |
5891 | done | |
5892 | fi | |
5893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5894 | if test $ac_cv_c_bigendian = unknown; then | |
5895 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5897 | /* end confdefs.h. */ | |
5898 | #include <sys/types.h> | |
5899 | #include <sys/param.h> | |
5900 | ||
0639a6f6 ILT |
5901 | int |
5902 | main () | |
5903 | { | |
81ecdfbb RW |
5904 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5905 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5906 | && LITTLE_ENDIAN) | |
5907 | bogus endian macros | |
5908 | #endif | |
54dc6425 | 5909 | |
81ecdfbb RW |
5910 | ; |
5911 | return 0; | |
5912 | } | |
15d5fa16 | 5913 | _ACEOF |
81ecdfbb RW |
5914 | if ac_fn_c_try_compile "$LINENO"; then : |
5915 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5917 | /* end confdefs.h. */ |
81ecdfbb RW |
5918 | #include <sys/types.h> |
5919 | #include <sys/param.h> | |
5920 | ||
0639a6f6 ILT |
5921 | int |
5922 | main () | |
5923 | { | |
81ecdfbb RW |
5924 | #if BYTE_ORDER != BIG_ENDIAN |
5925 | not big endian | |
5926 | #endif | |
0639a6f6 ILT |
5927 | |
5928 | ; | |
5929 | return 0; | |
5930 | } | |
15d5fa16 | 5931 | _ACEOF |
81ecdfbb RW |
5932 | if ac_fn_c_try_compile "$LINENO"; then : |
5933 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5934 | else |
81ecdfbb | 5935 | ac_cv_c_bigendian=no |
15d5fa16 | 5936 | fi |
81ecdfbb | 5937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 5938 | fi |
81ecdfbb RW |
5939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5940 | fi | |
5941 | if test $ac_cv_c_bigendian = unknown; then | |
5942 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5944 | /* end confdefs.h. */ | |
5945 | #include <limits.h> | |
0639a6f6 | 5946 | |
81ecdfbb RW |
5947 | int |
5948 | main () | |
5949 | { | |
5950 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5951 | bogus endian macros | |
5952 | #endif | |
0639a6f6 | 5953 | |
81ecdfbb RW |
5954 | ; |
5955 | return 0; | |
5956 | } | |
15d5fa16 | 5957 | _ACEOF |
81ecdfbb RW |
5958 | if ac_fn_c_try_compile "$LINENO"; then : |
5959 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5961 | /* end confdefs.h. */ |
81ecdfbb RW |
5962 | #include <limits.h> |
5963 | ||
0639a6f6 ILT |
5964 | int |
5965 | main () | |
5966 | { | |
81ecdfbb RW |
5967 | #ifndef _BIG_ENDIAN |
5968 | not big endian | |
5969 | #endif | |
0639a6f6 ILT |
5970 | |
5971 | ; | |
5972 | return 0; | |
5973 | } | |
15d5fa16 | 5974 | _ACEOF |
81ecdfbb RW |
5975 | if ac_fn_c_try_compile "$LINENO"; then : |
5976 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5977 | else |
81ecdfbb | 5978 | ac_cv_c_bigendian=no |
15d5fa16 | 5979 | fi |
81ecdfbb | 5980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 5981 | fi |
81ecdfbb RW |
5982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5983 | fi | |
5984 | if test $ac_cv_c_bigendian = unknown; then | |
5985 | # Compile a test program. | |
5986 | if test "$cross_compiling" = yes; then : | |
5987 | # Try to guess by grepping values from an object file. | |
5988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5989 | /* end confdefs.h. */ | |
5990 | short int ascii_mm[] = | |
5991 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5992 | short int ascii_ii[] = | |
5993 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5994 | int use_ascii (int i) { | |
5995 | return ascii_mm[i] + ascii_ii[i]; | |
5996 | } | |
5997 | short int ebcdic_ii[] = | |
5998 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5999 | short int ebcdic_mm[] = | |
6000 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6001 | int use_ebcdic (int i) { | |
6002 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6003 | } | |
6004 | extern int foo; | |
15d5fa16 | 6005 | |
81ecdfbb RW |
6006 | int |
6007 | main () | |
6008 | { | |
6009 | return use_ascii (foo) == use_ebcdic (foo); | |
6010 | ; | |
6011 | return 0; | |
6012 | } | |
0639a6f6 | 6013 | _ACEOF |
81ecdfbb RW |
6014 | if ac_fn_c_try_compile "$LINENO"; then : |
6015 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6016 | ac_cv_c_bigendian=yes | |
6017 | fi | |
6018 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6019 | if test "$ac_cv_c_bigendian" = unknown; then | |
6020 | ac_cv_c_bigendian=no | |
6021 | else | |
6022 | # finding both strings is unlikely to happen, but who knows? | |
6023 | ac_cv_c_bigendian=unknown | |
6024 | fi | |
6025 | fi | |
54dc6425 | 6026 | fi |
81ecdfbb | 6027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6028 | else |
81ecdfbb | 6029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6030 | /* end confdefs.h. */ |
6031 | $ac_includes_default | |
0639a6f6 ILT |
6032 | int |
6033 | main () | |
6034 | { | |
81ecdfbb RW |
6035 | |
6036 | /* Are we little or big endian? From Harbison&Steele. */ | |
6037 | union | |
6038 | { | |
6039 | long int l; | |
6040 | char c[sizeof (long int)]; | |
6041 | } u; | |
6042 | u.l = 1; | |
6043 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6044 | |
6045 | ; | |
6046 | return 0; | |
6047 | } | |
54dc6425 | 6048 | _ACEOF |
81ecdfbb RW |
6049 | if ac_fn_c_try_run "$LINENO"; then : |
6050 | ac_cv_c_bigendian=no | |
54dc6425 | 6051 | else |
81ecdfbb | 6052 | ac_cv_c_bigendian=yes |
54dc6425 | 6053 | fi |
81ecdfbb RW |
6054 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6055 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6056 | fi |
54dc6425 | 6057 | |
81ecdfbb RW |
6058 | fi |
6059 | fi | |
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6061 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6062 | case $ac_cv_c_bigendian in #( | |
6063 | yes) | |
6064 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6065 | ;; #( | |
6066 | no) | |
6067 | ;; #( | |
6068 | universal) | |
6069 | ||
6070 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6071 | ||
6072 | ;; #( | |
6073 | *) | |
6074 | as_fn_error "unknown endianness | |
6075 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6076 | esac | |
0639a6f6 ILT |
6077 | |
6078 | ||
0639a6f6 ILT |
6079 | |
6080 | ||
81ecdfbb RW |
6081 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6082 | NATIVE_LINKER_TRUE= | |
6083 | NATIVE_LINKER_FALSE='#' | |
6084 | else | |
6085 | NATIVE_LINKER_TRUE='#' | |
6086 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6087 | fi |
6088 | ||
81ecdfbb RW |
6089 | if test "$GCC" = yes; then |
6090 | GCC_TRUE= | |
6091 | GCC_FALSE='#' | |
6092 | else | |
6093 | GCC_TRUE='#' | |
6094 | GCC_FALSE= | |
6095 | fi | |
0639a6f6 ILT |
6096 | |
6097 | ||
eb373049 ILT |
6098 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6099 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6100 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6101 | else | |
6102 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6103 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6104 | fi | |
6105 | ||
6106 | ||
81ecdfbb RW |
6107 | if |
6108 | case $target_cpu in | |
6109 | i?86) true;; | |
6110 | x86_64) false;; | |
6111 | sparc64) false;; | |
6112 | *) true;; | |
6113 | esac; then | |
6114 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6115 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6116 | else | |
6117 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6118 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6119 | fi | |
0639a6f6 ILT |
6120 | |
6121 | ||
084e2665 ILT |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6123 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6124 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6125 | $as_echo_n "(cached) " >&6 | |
6126 | else | |
6127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6128 | /* end confdefs.h. */ | |
6129 | ||
6130 | #if !defined __GNUC__ | |
6131 | error | |
6132 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6133 | error | |
6134 | #endif | |
6135 | ||
6136 | _ACEOF | |
6137 | if ac_fn_c_try_compile "$LINENO"; then : | |
6138 | gold_cv_prog_gcc41=yes | |
6139 | else | |
6140 | gold_cv_prog_gcc41=no | |
6141 | fi | |
6142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6143 | fi | |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6145 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6146 | ||
6147 | if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6148 | MCMODEL_MEDIUM_TRUE= |
6149 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6150 | else |
81ecdfbb RW |
6151 | MCMODEL_MEDIUM_TRUE='#' |
6152 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6153 | fi |
54dc6425 | 6154 | |
54dc6425 | 6155 | |
81ecdfbb RW |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6157 | $as_echo_n "checking for thread support... " >&6; } | |
6158 | if test "${gold_cv_c_thread+set}" = set; then : | |
6159 | $as_echo_n "(cached) " >&6 | |
6160 | else | |
6161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6162 | /* end confdefs.h. */ |
81ecdfbb | 6163 | __thread int i = 1; |
e44fcf3b | 6164 | _ACEOF |
81ecdfbb RW |
6165 | if ac_fn_c_try_compile "$LINENO"; then : |
6166 | gold_cv_c_thread=yes | |
0639a6f6 | 6167 | else |
81ecdfbb | 6168 | gold_cv_c_thread=no |
0639a6f6 | 6169 | fi |
81ecdfbb | 6170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6171 | fi |
81ecdfbb RW |
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6173 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6174 | |
81ecdfbb RW |
6175 | if test "$gold_cv_c_thread" = "yes"; then |
6176 | TLS_TRUE= | |
6177 | TLS_FALSE='#' | |
6178 | else | |
6179 | TLS_TRUE='#' | |
6180 | TLS_FALSE= | |
0639a6f6 | 6181 | fi |
e44fcf3b | 6182 | |
0639a6f6 | 6183 | |
81ecdfbb RW |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6185 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6186 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6187 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6188 | else |
81ecdfbb | 6189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6190 | /* end confdefs.h. */ |
81ecdfbb RW |
6191 | |
6192 | #include <features.h> | |
6193 | #if !defined __GLIBC__ | |
6194 | error | |
6195 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6196 | error | |
1b77ea50 | 6197 | #endif |
81ecdfbb | 6198 | |
1b77ea50 | 6199 | _ACEOF |
81ecdfbb RW |
6200 | if ac_fn_c_try_compile "$LINENO"; then : |
6201 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6202 | else |
81ecdfbb | 6203 | gold_cv_lib_glibc24=no |
0639a6f6 | 6204 | fi |
81ecdfbb | 6205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6206 | fi |
81ecdfbb RW |
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6208 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6209 | |
81ecdfbb RW |
6210 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6211 | STATIC_TLS_TRUE= | |
6212 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6213 | else |
81ecdfbb RW |
6214 | STATIC_TLS_TRUE='#' |
6215 | STATIC_TLS_FALSE= | |
0639a6f6 | 6216 | fi |
1b77ea50 | 6217 | |
0639a6f6 | 6218 | |
81ecdfbb RW |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6220 | $as_echo_n "checking for omp support... " >&6; } | |
6221 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6222 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6223 | else |
81ecdfbb RW |
6224 | save_CFLAGS="$CFLAGS" |
6225 | CFLAGS="$CFLAGS -fopenmp" | |
6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6227 | /* end confdefs.h. */ | |
1b77ea50 | 6228 | |
81ecdfbb RW |
6229 | #include <omp.h> |
6230 | int i; | |
6231 | #pragma omp threadprivate (i) | |
1b77ea50 | 6232 | |
81ecdfbb RW |
6233 | _ACEOF |
6234 | if ac_fn_c_try_compile "$LINENO"; then : | |
6235 | gold_cv_c_threadprivate=yes | |
6236 | else | |
6237 | gold_cv_c_threadprivate=no | |
6238 | fi | |
6239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6240 | CFLAGS="$save_CFLAGS" | |
6241 | fi | |
6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6243 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6244 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6245 | |
81ecdfbb | 6246 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6247 | |
0639a6f6 | 6248 | fi |
81ecdfbb RW |
6249 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6250 | OMP_SUPPORT_TRUE= | |
6251 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6252 | else |
81ecdfbb RW |
6253 | OMP_SUPPORT_TRUE='#' |
6254 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6255 | fi |
1b77ea50 | 6256 | |
81ecdfbb RW |
6257 | |
6258 | save_CFLAGS="$CFLAGS" | |
6259 | CFLAGS="$CFLAGS -mtls-dialect=gnu2" | |
6260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6261 | /* end confdefs.h. */ |
81ecdfbb | 6262 | int i; |
1b77ea50 | 6263 | _ACEOF |
81ecdfbb RW |
6264 | if ac_fn_c_try_compile "$LINENO"; then : |
6265 | have_tls_gnu2=yes | |
0639a6f6 | 6266 | else |
81ecdfbb | 6267 | have_tls_gnu2=no |
0639a6f6 | 6268 | fi |
81ecdfbb RW |
6269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6270 | CFLAGS="$save_CFLAGS" | |
6271 | if test "$have_tls_gnu2" = "yes"; then | |
6272 | TLS_GNU2_DIALECT_TRUE= | |
6273 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6274 | else |
81ecdfbb RW |
6275 | TLS_GNU2_DIALECT_TRUE='#' |
6276 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6277 | fi |
1b77ea50 | 6278 | |
81ecdfbb RW |
6279 | |
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6281 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6282 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6283 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6284 | else |
81ecdfbb RW |
6285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6286 | /* end confdefs.h. */ | |
0639a6f6 | 6287 | |
81ecdfbb RW |
6288 | #include <features.h> |
6289 | #if !defined __GLIBC__ | |
6290 | error | |
6291 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6292 | error | |
6293 | #endif | |
1b77ea50 | 6294 | |
81ecdfbb RW |
6295 | _ACEOF |
6296 | if ac_fn_c_try_compile "$LINENO"; then : | |
6297 | gold_cv_lib_glibc29=yes | |
6298 | else | |
6299 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6300 | fi |
81ecdfbb RW |
6301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6302 | fi | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6304 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6305 | |
81ecdfbb RW |
6306 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6307 | TLS_DESCRIPTORS_TRUE= | |
6308 | TLS_DESCRIPTORS_FALSE='#' | |
6309 | else | |
6310 | TLS_DESCRIPTORS_TRUE='#' | |
6311 | TLS_DESCRIPTORS_FALSE= | |
6312 | fi | |
0639a6f6 ILT |
6313 | |
6314 | ||
81ecdfbb RW |
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6316 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6317 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6318 | $as_echo_n "(cached) " >&6 | |
6319 | else | |
6320 | save_CFLAGS="$CFLAGS" | |
6321 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6323 | /* end confdefs.h. */ |
81ecdfbb | 6324 | int i; |
0639a6f6 | 6325 | _ACEOF |
81ecdfbb RW |
6326 | if ac_fn_c_try_compile "$LINENO"; then : |
6327 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6328 | else |
81ecdfbb RW |
6329 | gold_cv_c_random_seed=no |
6330 | fi | |
6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6332 | CFLAGS="$save_CFLAGS" | |
6333 | fi | |
6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6335 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6336 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6337 | # In Makefile, '$@' will be expanded to be the name of the file | |
6338 | # being built, providing a unique seed for each file. | |
6339 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6340 | fi |
1b77ea50 | 6341 | |
81ecdfbb | 6342 | |
7223e9ca ILT |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.11" >&5 |
6344 | $as_echo_n "checking for glibc >= 2.11... " >&6; } | |
6345 | if test "${gold_cv_lib_glibc2_11+set}" = set; then : | |
6346 | $as_echo_n "(cached) " >&6 | |
6347 | else | |
6348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6349 | /* end confdefs.h. */ | |
6350 | ||
6351 | #include <features.h> | |
6352 | #if !defined __GLIBC__ | |
6353 | error | |
6354 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6355 | error | |
6356 | #endif | |
d0773f31 | 6357 | __asm__(".type foo, %gnu_indirect_function"); |
7223e9ca ILT |
6358 | |
6359 | _ACEOF | |
6360 | if ac_fn_c_try_compile "$LINENO"; then : | |
6361 | gold_cv_lib_glibc2_11=yes | |
6362 | else | |
6363 | gold_cv_lib_glibc2_11=no | |
6364 | fi | |
6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6366 | fi | |
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc2_11" >&5 | |
6368 | $as_echo "$gold_cv_lib_glibc2_11" >&6; } | |
6369 | ||
6370 | if test "$gold_cv_lib_glibc2_11" = "yes"; then | |
6371 | IFUNC_TRUE= | |
6372 | IFUNC_FALSE='#' | |
6373 | else | |
6374 | IFUNC_TRUE='#' | |
6375 | IFUNC_FALSE= | |
6376 | fi | |
6377 | ||
6378 | ||
81ecdfbb | 6379 | |
efc8d4f2 RW |
6380 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6382 | /* end confdefs.h. */ | |
6383 | __GNUC__ | |
6384 | _ACEOF | |
6385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6386 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6387 | ||
6388 | else | |
6389 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6390 | fi | |
6391 | rm -f conftest* | |
6392 | ||
81ecdfbb RW |
6393 | |
6394 | # Check whether --enable-werror was given. | |
6395 | if test "${enable_werror+set}" = set; then : | |
6396 | enableval=$enable_werror; case "${enableval}" in | |
6397 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6398 | no | n) ERROR_ON_WARNING="no" ;; | |
6399 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6400 | esac | |
0639a6f6 | 6401 | fi |
1b77ea50 | 6402 | |
81ecdfbb | 6403 | |
efc8d4f2 | 6404 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6405 | case "${host}" in |
6406 | *-*-mingw32*) | |
6407 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6408 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6409 | fi | |
0639a6f6 | 6410 | ;; |
81ecdfbb | 6411 | *) ;; |
0639a6f6 | 6412 | esac |
81ecdfbb RW |
6413 | |
6414 | # Enable -Werror by default when using gcc | |
6415 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6416 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6417 | fi |
0639a6f6 | 6418 | |
81ecdfbb RW |
6419 | NO_WERROR= |
6420 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6421 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6422 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6423 | fi |
1b77ea50 | 6424 | |
81ecdfbb RW |
6425 | if test "${GCC}" = yes ; then |
6426 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6427 | fi |
6428 | ||
81ecdfbb RW |
6429 | # Check whether --enable-build-warnings was given. |
6430 | if test "${enable_build_warnings+set}" = set; then : | |
6431 | enableval=$enable_build_warnings; case "${enableval}" in | |
6432 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6433 | no) if test "${GCC}" = yes ; then | |
6434 | WARN_CFLAGS="-w" | |
6435 | fi;; | |
6436 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6437 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6438 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6439 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6440 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6441 | esac | |
6442 | fi | |
0639a6f6 | 6443 | |
1b77ea50 | 6444 | |
81ecdfbb RW |
6445 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6446 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6447 | fi |
1b77ea50 | 6448 | |
1b77ea50 | 6449 | |
1b77ea50 | 6450 | |
0639a6f6 | 6451 | |
1b77ea50 | 6452 | |
2ea97941 | 6453 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6454 | |
6455 | ||
6456 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
6457 | ||
6458 | ||
88597d34 | 6459 | for ac_header in sys/mman.h |
81ecdfbb | 6460 | do : |
88597d34 ILT |
6461 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6462 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6463 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6464 | #define HAVE_SYS_MMAN_H 1 |
6465 | _ACEOF | |
6466 | ||
6467 | fi | |
6468 | ||
6469 | done | |
6470 | ||
6471 | for ac_func in chsize mmap | |
6472 | do : | |
6473 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6474 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6475 | eval as_val=\$$as_ac_var | |
6476 | if test "x$as_val" = x""yes; then : | |
6477 | cat >>confdefs.h <<_ACEOF | |
6478 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6479 | _ACEOF |
6480 | ||
0639a6f6 | 6481 | fi |
0639a6f6 | 6482 | done |
1b77ea50 | 6483 | |
88597d34 | 6484 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6485 | do : |
6486 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6487 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6488 | eval as_val=\$$as_ac_var | |
6489 | if test "x$as_val" = x""yes; then : | |
6490 | cat >>confdefs.h <<_ACEOF | |
6491 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6492 | _ACEOF |
0639a6f6 | 6493 | |
81ecdfbb RW |
6494 | else |
6495 | case " $LIBOBJS " in | |
6496 | *" $ac_func.$ac_objext "* ) ;; | |
6497 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6498 | ;; | |
6499 | esac | |
0639a6f6 | 6500 | |
81ecdfbb RW |
6501 | fi |
6502 | done | |
0639a6f6 | 6503 | |
0639a6f6 | 6504 | |
81ecdfbb | 6505 | |
88597d34 ILT |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6507 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6508 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6509 | $as_echo_n "(cached) " >&6 | |
6510 | else | |
6511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6512 | /* end confdefs.h. */ | |
6513 | ||
6514 | ||
6515 | #include <sys/mman.h> | |
6516 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6517 | ||
6518 | int | |
6519 | main () | |
6520 | { | |
6521 | ||
6522 | ; | |
6523 | return 0; | |
6524 | } | |
6525 | _ACEOF | |
6526 | if ac_fn_c_try_link "$LINENO"; then : | |
6527 | gold_cv_lib_mremap_maymove=yes | |
6528 | else | |
6529 | gold_cv_lib_mremap_maymove=no | |
6530 | fi | |
6531 | rm -f core conftest.err conftest.$ac_objext \ | |
6532 | conftest$ac_exeext conftest.$ac_ext | |
6533 | fi | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6535 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6536 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6537 | ||
6538 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6539 | ||
6540 | else | |
6541 | case " $LIBOBJS " in | |
6542 | *" mremap.$ac_objext "* ) ;; | |
6543 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6544 | ;; | |
6545 | esac | |
6546 | ||
6547 | fi | |
6548 | ||
81ecdfbb RW |
6549 | # Link in zlib if we can. This allows us to write compressed sections. |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
6551 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
6552 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | ac_func_search_save_LIBS=$LIBS | |
6556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6557 | /* end confdefs.h. */ | |
6558 | ||
6559 | /* Override any GCC internal prototype to avoid an error. | |
6560 | Use char because int might match the return type of a GCC | |
6561 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6562 | #ifdef __cplusplus |
81ecdfbb | 6563 | extern "C" |
1b77ea50 | 6564 | #endif |
81ecdfbb | 6565 | char zlibVersion (); |
0639a6f6 ILT |
6566 | int |
6567 | main () | |
6568 | { | |
81ecdfbb | 6569 | return zlibVersion (); |
1b77ea50 ILT |
6570 | ; |
6571 | return 0; | |
6572 | } | |
6573 | _ACEOF | |
81ecdfbb RW |
6574 | for ac_lib in '' z; do |
6575 | if test -z "$ac_lib"; then | |
6576 | ac_res="none required" | |
6577 | else | |
6578 | ac_res=-l$ac_lib | |
6579 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6580 | fi | |
6581 | if ac_fn_c_try_link "$LINENO"; then : | |
6582 | ac_cv_search_zlibVersion=$ac_res | |
6583 | fi | |
6584 | rm -f core conftest.err conftest.$ac_objext \ | |
6585 | conftest$ac_exeext | |
6586 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6587 | break | |
6588 | fi | |
6589 | done | |
6590 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6591 | |
81ecdfbb RW |
6592 | else |
6593 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6594 | fi |
81ecdfbb RW |
6595 | rm conftest.$ac_ext |
6596 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6597 | fi |
81ecdfbb RW |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6599 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6600 | ac_res=$ac_cv_search_zlibVersion | |
6601 | if test "$ac_res" != no; then : | |
6602 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6603 | for ac_header in zlib.h | |
6604 | do : | |
6605 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6606 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6607 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6608 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6609 | _ACEOF |
6610 | ||
1b77ea50 | 6611 | fi |
81ecdfbb | 6612 | |
0639a6f6 | 6613 | done |
1b77ea50 | 6614 | |
81ecdfbb | 6615 | fi |
3d857b98 | 6616 | |
81ecdfbb RW |
6617 | if test "$ac_cv_search_zlibVersion" != "no"; then |
6618 | HAVE_ZLIB_TRUE= | |
6619 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6620 | else |
81ecdfbb RW |
6621 | HAVE_ZLIB_TRUE='#' |
6622 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6623 | fi |
81ecdfbb RW |
6624 | |
6625 | ||
6626 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6627 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6628 | ac_have_decl=1 | |
6629 | else | |
6630 | ac_have_decl=0 | |
3d857b98 | 6631 | fi |
3d857b98 DK |
6632 | |
6633 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6634 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6635 | _ACEOF |
81ecdfbb RW |
6636 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6637 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6638 | ac_have_decl=1 | |
3d857b98 | 6639 | else |
81ecdfbb | 6640 | ac_have_decl=0 |
3d857b98 | 6641 | fi |
3d857b98 | 6642 | |
81ecdfbb RW |
6643 | cat >>confdefs.h <<_ACEOF |
6644 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6645 | _ACEOF |
81ecdfbb RW |
6646 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6647 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6648 | ac_have_decl=1 | |
3d857b98 | 6649 | else |
81ecdfbb | 6650 | ac_have_decl=0 |
3d857b98 | 6651 | fi |
3d857b98 DK |
6652 | |
6653 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6654 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6655 | _ACEOF |
81ecdfbb RW |
6656 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6657 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6658 | ac_have_decl=1 | |
3d857b98 | 6659 | else |
81ecdfbb | 6660 | ac_have_decl=0 |
3d857b98 | 6661 | fi |
3d857b98 | 6662 | |
81ecdfbb RW |
6663 | cat >>confdefs.h <<_ACEOF |
6664 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6665 | _ACEOF |
81ecdfbb RW |
6666 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6667 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6668 | ac_have_decl=1 | |
3d857b98 | 6669 | else |
81ecdfbb RW |
6670 | ac_have_decl=0 |
6671 | fi | |
3d857b98 | 6672 | |
81ecdfbb RW |
6673 | cat >>confdefs.h <<_ACEOF |
6674 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6675 | _ACEOF | |
6676 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6677 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6678 | ac_have_decl=1 | |
6679 | else | |
6680 | ac_have_decl=0 | |
3d857b98 | 6681 | fi |
81ecdfbb RW |
6682 | |
6683 | cat >>confdefs.h <<_ACEOF | |
6684 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6685 | _ACEOF | |
6686 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6687 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6688 | ac_have_decl=1 | |
6689 | else | |
6690 | ac_have_decl=0 | |
3d857b98 | 6691 | fi |
3d857b98 DK |
6692 | |
6693 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6694 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6695 | _ACEOF |
6696 | ||
6697 | ||
81ecdfbb RW |
6698 | ac_ext=cpp |
6699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6703 | |
6704 | ||
81ecdfbb RW |
6705 | |
6706 | ac_ext=cpp | |
6707 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6712 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6713 | if test -z "$CXXCPP"; then | |
6714 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
6715 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 6716 | else |
81ecdfbb RW |
6717 | # Double quotes because CXXCPP needs to be expanded |
6718 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6719 | do | |
6720 | ac_preproc_ok=false | |
6721 | for ac_cxx_preproc_warn_flag in '' yes | |
6722 | do | |
6723 | # Use a header file that comes with gcc, so configuring glibc | |
6724 | # with a fresh cross-compiler works. | |
6725 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6726 | # <limits.h> exists even on freestanding compilers. | |
6727 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6728 | # not just through cpp. "Syntax error" is here to catch this case. | |
6729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6730 | /* end confdefs.h. */ |
81ecdfbb RW |
6731 | #ifdef __STDC__ |
6732 | # include <limits.h> | |
6733 | #else | |
6734 | # include <assert.h> | |
3d857b98 | 6735 | #endif |
81ecdfbb | 6736 | Syntax error |
3d857b98 | 6737 | _ACEOF |
81ecdfbb | 6738 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6739 | |
81ecdfbb RW |
6740 | else |
6741 | # Broken: fails on valid input. | |
6742 | continue | |
3d857b98 | 6743 | fi |
81ecdfbb | 6744 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6745 | |
81ecdfbb RW |
6746 | # OK, works on sane cases. Now check whether nonexistent headers |
6747 | # can be detected and how. | |
6748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6749 | /* end confdefs.h. */ | |
6750 | #include <ac_nonexistent.h> | |
3d857b98 | 6751 | _ACEOF |
81ecdfbb RW |
6752 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6753 | # Broken: success on invalid input. | |
6754 | continue | |
3d857b98 | 6755 | else |
81ecdfbb RW |
6756 | # Passes both tests. |
6757 | ac_preproc_ok=: | |
6758 | break | |
6759 | fi | |
6760 | rm -f conftest.err conftest.$ac_ext | |
6761 | ||
6762 | done | |
6763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6764 | rm -f conftest.err conftest.$ac_ext | |
6765 | if $ac_preproc_ok; then : | |
6766 | break | |
6767 | fi | |
3d857b98 | 6768 | |
81ecdfbb RW |
6769 | done |
6770 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
6771 | |
6772 | fi | |
81ecdfbb | 6773 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 6774 | else |
81ecdfbb RW |
6775 | ac_cv_prog_CXXCPP=$CXXCPP |
6776 | fi | |
6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6778 | $as_echo "$CXXCPP" >&6; } | |
6779 | ac_preproc_ok=false | |
6780 | for ac_cxx_preproc_warn_flag in '' yes | |
6781 | do | |
6782 | # Use a header file that comes with gcc, so configuring glibc | |
6783 | # with a fresh cross-compiler works. | |
6784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6785 | # <limits.h> exists even on freestanding compilers. | |
6786 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6787 | # not just through cpp. "Syntax error" is here to catch this case. | |
6788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6789 | /* end confdefs.h. */ |
81ecdfbb RW |
6790 | #ifdef __STDC__ |
6791 | # include <limits.h> | |
6792 | #else | |
6793 | # include <assert.h> | |
3d857b98 | 6794 | #endif |
81ecdfbb | 6795 | Syntax error |
3d857b98 | 6796 | _ACEOF |
81ecdfbb | 6797 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6798 | |
81ecdfbb RW |
6799 | else |
6800 | # Broken: fails on valid input. | |
6801 | continue | |
3d857b98 | 6802 | fi |
81ecdfbb | 6803 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6804 | |
81ecdfbb RW |
6805 | # OK, works on sane cases. Now check whether nonexistent headers |
6806 | # can be detected and how. | |
6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6808 | /* end confdefs.h. */ | |
6809 | #include <ac_nonexistent.h> | |
3d857b98 | 6810 | _ACEOF |
81ecdfbb RW |
6811 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6812 | # Broken: success on invalid input. | |
6813 | continue | |
6814 | else | |
6815 | # Passes both tests. | |
6816 | ac_preproc_ok=: | |
6817 | break | |
6818 | fi | |
6819 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 6820 | |
81ecdfbb RW |
6821 | done |
6822 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6823 | rm -f conftest.err conftest.$ac_ext | |
6824 | if $ac_preproc_ok; then : | |
3d857b98 DK |
6825 | |
6826 | else | |
81ecdfbb RW |
6827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6829 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6830 | See \`config.log' for more details." "$LINENO" 5; } | |
6831 | fi | |
6832 | ||
6833 | ac_ext=cpp | |
6834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6835 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6836 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6837 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6838 | ||
6839 | ||
6840 | for ac_header in tr1/unordered_set tr1/unordered_map | |
6841 | do : | |
6842 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6843 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6844 | eval as_val=\$$as_ac_Header | |
6845 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6846 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6847 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
6848 | _ACEOF |
6849 | ||
3d857b98 | 6850 | fi |
3d857b98 | 6851 | |
81ecdfbb RW |
6852 | done |
6853 | ||
6854 | for ac_header in ext/hash_map ext/hash_set | |
6855 | do : | |
6856 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6857 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6858 | eval as_val=\$$as_ac_Header | |
6859 | if test "x$as_val" = x""yes; then : | |
6860 | cat >>confdefs.h <<_ACEOF | |
6861 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6862 | _ACEOF | |
3d857b98 | 6863 | |
3d857b98 | 6864 | fi |
3d857b98 | 6865 | |
81ecdfbb RW |
6866 | done |
6867 | ||
6868 | for ac_header in byteswap.h | |
6869 | do : | |
6870 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
6871 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
6872 | cat >>confdefs.h <<_ACEOF | |
6873 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
6874 | _ACEOF |
6875 | ||
81ecdfbb | 6876 | fi |
3d857b98 | 6877 | |
81ecdfbb RW |
6878 | done |
6879 | ||
d675ff46 | 6880 | for ac_func in mallinfo posix_fallocate readv sysconf times |
81ecdfbb RW |
6881 | do : |
6882 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6883 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6884 | eval as_val=\$$as_ac_var | |
6885 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6886 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6887 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
6888 | _ACEOF |
6889 | ||
3d857b98 | 6890 | fi |
81ecdfbb RW |
6891 | done |
6892 | ||
6893 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6894 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6895 | ac_have_decl=1 | |
3d857b98 | 6896 | else |
81ecdfbb RW |
6897 | ac_have_decl=0 |
6898 | fi | |
3d857b98 | 6899 | |
81ecdfbb RW |
6900 | cat >>confdefs.h <<_ACEOF |
6901 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 6902 | _ACEOF |
81ecdfbb RW |
6903 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6904 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6905 | ac_have_decl=1 | |
3d857b98 | 6906 | else |
81ecdfbb | 6907 | ac_have_decl=0 |
3d857b98 | 6908 | fi |
3d857b98 DK |
6909 | |
6910 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6911 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 6912 | _ACEOF |
81ecdfbb RW |
6913 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6914 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6915 | ac_have_decl=1 | |
3d857b98 | 6916 | else |
81ecdfbb | 6917 | ac_have_decl=0 |
3d857b98 | 6918 | fi |
3d857b98 | 6919 | |
81ecdfbb RW |
6920 | cat >>confdefs.h <<_ACEOF |
6921 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 6922 | _ACEOF |
81ecdfbb RW |
6923 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6924 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6925 | ac_have_decl=1 | |
3d857b98 | 6926 | else |
81ecdfbb | 6927 | ac_have_decl=0 |
3d857b98 | 6928 | fi |
3d857b98 DK |
6929 | |
6930 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6931 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 6932 | _ACEOF |
81ecdfbb RW |
6933 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6934 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6935 | ac_have_decl=1 | |
3d857b98 | 6936 | else |
81ecdfbb | 6937 | ac_have_decl=0 |
3d857b98 | 6938 | fi |
3d857b98 | 6939 | |
81ecdfbb RW |
6940 | cat >>confdefs.h <<_ACEOF |
6941 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 6942 | _ACEOF |
81ecdfbb RW |
6943 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
6944 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6945 | ac_have_decl=1 | |
3d857b98 | 6946 | else |
81ecdfbb | 6947 | ac_have_decl=0 |
3d857b98 | 6948 | fi |
3d857b98 DK |
6949 | |
6950 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6951 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 6952 | _ACEOF |
81ecdfbb RW |
6953 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
6954 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6955 | ac_have_decl=1 | |
3d857b98 | 6956 | else |
81ecdfbb RW |
6957 | ac_have_decl=0 |
6958 | fi | |
3d857b98 | 6959 | |
81ecdfbb RW |
6960 | cat >>confdefs.h <<_ACEOF |
6961 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
6962 | _ACEOF | |
6963 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
6964 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
6965 | ac_have_decl=1 | |
6966 | else | |
6967 | ac_have_decl=0 | |
6968 | fi | |
3d857b98 | 6969 | |
81ecdfbb RW |
6970 | cat >>confdefs.h <<_ACEOF |
6971 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
6972 | _ACEOF | |
6973 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
6974 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
6975 | ac_have_decl=1 | |
6976 | else | |
6977 | ac_have_decl=0 | |
3d857b98 DK |
6978 | fi |
6979 | ||
81ecdfbb RW |
6980 | cat >>confdefs.h <<_ACEOF |
6981 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
6982 | _ACEOF | |
3d857b98 | 6983 | |
e44fcf3b | 6984 | |
40fde488 CD |
6985 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
6986 | # at link time with some versions of GCC. | |
81ecdfbb RW |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
6988 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
6989 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
6990 | $as_echo_n "(cached) " >&6 | |
40fde488 | 6991 | else |
81ecdfbb | 6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
6993 | /* end confdefs.h. */ |
6994 | ||
6995 | #include <tr1/unordered_map> | |
6996 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
6997 | ||
6998 | int | |
6999 | main () | |
7000 | { | |
7001 | ||
7002 | ; | |
7003 | return 0; | |
7004 | } | |
7005 | _ACEOF | |
81ecdfbb | 7006 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7007 | gold_cv_unordered_map_rehash=yes |
7008 | else | |
81ecdfbb | 7009 | gold_cv_unordered_map_rehash=no |
40fde488 | 7010 | fi |
81ecdfbb RW |
7011 | rm -f core conftest.err conftest.$ac_objext \ |
7012 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7013 | fi |
81ecdfbb RW |
7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7015 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7016 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7017 | ||
81ecdfbb | 7018 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7019 | |
7020 | fi | |
7021 | ||
04bf7072 ILT |
7022 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7023 | # function. Check for that. This is gcc bug 35546. This test can | |
7024 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7026 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7027 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7028 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7029 | else |
81ecdfbb RW |
7030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7031 | /* end confdefs.h. */ | |
04bf7072 ILT |
7032 | |
7033 | template<typename T> extern void foo(const char*, ...) | |
7034 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7035 | template<typename T> void foo(const char* format, ...) {} | |
7036 | void bar() { foo<int>("%s\n", "foo"); } | |
7037 | ||
7038 | _ACEOF | |
81ecdfbb | 7039 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7040 | gold_cv_template_attribute=yes |
7041 | else | |
81ecdfbb | 7042 | gold_cv_template_attribute=no |
04bf7072 | 7043 | fi |
81ecdfbb | 7044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7045 | fi |
81ecdfbb RW |
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7047 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7048 | if test "$gold_cv_template_attribute" = "yes"; then |
7049 | ||
81ecdfbb | 7050 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7051 | |
7052 | fi | |
7053 | ||
5d329b7d ILT |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7055 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7056 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7057 | $as_echo_n "(cached) " >&6 | |
7058 | else | |
7059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7060 | /* end confdefs.h. */ | |
7061 | ||
7062 | #include <sys/stat.h> | |
7063 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7064 | ||
7065 | int | |
7066 | main () | |
7067 | { | |
7068 | ||
7069 | ; | |
7070 | return 0; | |
7071 | } | |
7072 | _ACEOF | |
7073 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7074 | gold_cv_stat_st_mtim=yes | |
7075 | else | |
7076 | gold_cv_stat_st_mtim=no | |
7077 | fi | |
7078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7079 | fi | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7081 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7082 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7083 | ||
7084 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7085 | ||
7086 | fi | |
7087 | ||
54dc6425 ILT |
7088 | ac_ext=c |
7089 | ac_cpp='$CPP $CPPFLAGS' | |
7090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7093 | ||
7094 | ||
81ecdfbb RW |
7095 | |
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7097 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7098 | # Check whether --enable-maintainer-mode was given. | |
7099 | if test "${enable_maintainer_mode+set}" = set; then : | |
7100 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7101 | else |
7102 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7103 | fi |
bae7f79e | 7104 | |
81ecdfbb RW |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7106 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7107 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7108 | MAINTAINER_MODE_TRUE= |
7109 | MAINTAINER_MODE_FALSE='#' | |
7110 | else | |
7111 | MAINTAINER_MODE_TRUE='#' | |
7112 | MAINTAINER_MODE_FALSE= | |
7113 | fi | |
7114 | ||
7115 | MAINT=$MAINTAINER_MODE_TRUE | |
7116 | ||
7117 | ||
7118 | ||
81ecdfbb RW |
7119 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7120 | ||
bae7f79e ILT |
7121 | cat >confcache <<\_ACEOF |
7122 | # This file is a shell script that caches the results of configure | |
7123 | # tests run on this system so they can be shared between configure | |
7124 | # scripts and configure runs, see configure's option --config-cache. | |
7125 | # It is not useful on other systems. If it contains results you don't | |
7126 | # want to keep, you may remove or edit it. | |
7127 | # | |
7128 | # config.status only pays attention to the cache file if you give it | |
7129 | # the --recheck option to rerun configure. | |
7130 | # | |
7131 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7132 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7133 | # following values. | |
7134 | ||
7135 | _ACEOF | |
7136 | ||
7137 | # The following way of writing the cache mishandles newlines in values, | |
7138 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7139 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7140 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7141 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7142 | ( |
7143 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7144 | eval ac_val=\$$ac_var | |
7145 | case $ac_val in #( | |
7146 | *${as_nl}*) | |
7147 | case $ac_var in #( | |
7148 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7149 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7150 | esac | |
7151 | case $ac_var in #( | |
7152 | _ | IFS | as_nl) ;; #( | |
7153 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7154 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7155 | esac ;; | |
7156 | esac | |
7157 | done | |
7158 | ||
bae7f79e | 7159 | (set) 2>&1 | |
81ecdfbb RW |
7160 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7161 | *${as_nl}ac_space=\ *) | |
7162 | # `set' does not quote correctly, so add quotes: double-quote | |
7163 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7164 | sed -n \ |
7165 | "s/'/'\\\\''/g; | |
7166 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7167 | ;; #( |
bae7f79e ILT |
7168 | *) |
7169 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7170 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7171 | ;; |
81ecdfbb RW |
7172 | esac | |
7173 | sort | |
7174 | ) | | |
bae7f79e | 7175 | sed ' |
81ecdfbb | 7176 | /^ac_cv_env_/b end |
bae7f79e | 7177 | t clear |
81ecdfbb | 7178 | :clear |
bae7f79e ILT |
7179 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7180 | t end | |
81ecdfbb RW |
7181 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7182 | :end' >>confcache | |
7183 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7184 | if test -w "$cache_file"; then | |
7185 | test "x$cache_file" != "x/dev/null" && | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7187 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7188 | cat confcache >$cache_file |
7189 | else | |
81ecdfbb RW |
7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7191 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7192 | fi |
7193 | fi | |
7194 | rm -f confcache | |
7195 | ||
7196 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7197 | # Let make expand exec_prefix. | |
7198 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7199 | ||
bae7f79e ILT |
7200 | DEFS=-DHAVE_CONFIG_H |
7201 | ||
7202 | ac_libobjs= | |
7203 | ac_ltlibobjs= | |
7204 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7205 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7206 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7207 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7208 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7209 | # will be set to the directory where LIBOBJS objects are built. | |
7210 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7211 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7212 | done |
7213 | LIBOBJS=$ac_libobjs | |
7214 | ||
7215 | LTLIBOBJS=$ac_ltlibobjs | |
7216 | ||
7217 | ||
81ecdfbb RW |
7218 | if test -n "$EXEEXT"; then |
7219 | am__EXEEXT_TRUE= | |
7220 | am__EXEEXT_FALSE='#' | |
7221 | else | |
7222 | am__EXEEXT_TRUE='#' | |
7223 | am__EXEEXT_FALSE= | |
7224 | fi | |
7225 | ||
fe9a4c12 | 7226 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7227 | as_fn_error "conditional \"THREADS\" was never defined. |
7228 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7229 | fi |
89fc3421 | 7230 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7231 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7232 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7233 | fi |
364c7fa5 ILT |
7234 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7235 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7236 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7237 | fi | |
7238 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7239 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7240 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7241 | fi | |
7242 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7243 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7244 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7245 | fi | |
7246 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7247 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7248 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7249 | fi | |
7250 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7251 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7252 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7253 | fi | |
bae7f79e | 7254 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7255 | as_fn_error "conditional \"AMDEP\" was never defined. |
7256 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7257 | fi |
7258 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7259 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7260 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7261 | fi |
7262 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7263 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7264 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7265 | fi |
81ecdfbb | 7266 | |
537b5f51 | 7267 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7268 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7269 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7270 | fi |
7271 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7272 | as_fn_error "conditional \"GCC\" was never defined. |
7273 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7274 | fi |
eb373049 ILT |
7275 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7276 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7277 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7278 | fi | |
63402fe4 | 7279 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7280 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7281 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7282 | fi |
8a5e3e08 | 7283 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7284 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7285 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7286 | fi |
6eee141f | 7287 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7288 | as_fn_error "conditional \"TLS\" was never defined. |
7289 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7290 | fi |
097ec620 | 7291 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7292 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7293 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7294 | fi |
155a0dd7 | 7295 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7296 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7297 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7298 | fi |
c2b45e22 | 7299 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7300 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7301 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7302 | fi |
7303 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7304 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7305 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7306 | fi |
7223e9ca ILT |
7307 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7308 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7309 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7310 | fi | |
7fcd0256 | 7311 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7312 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7313 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7314 | fi |
bae7f79e | 7315 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7316 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7317 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7318 | fi |
7319 | ||
7320 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7321 | ac_write_fail=0 |
bae7f79e ILT |
7322 | ac_clean_files_save=$ac_clean_files |
7323 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7325 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7326 | as_write_fail=0 | |
7327 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7328 | #! $SHELL |
7329 | # Generated by $as_me. | |
7330 | # Run this file to recreate the current configuration. | |
7331 | # Compiler output produced by configure, useful for debugging | |
7332 | # configure, is in config.log if it exists. | |
7333 | ||
7334 | debug=false | |
7335 | ac_cs_recheck=false | |
7336 | ac_cs_silent=false | |
bae7f79e | 7337 | |
81ecdfbb RW |
7338 | SHELL=\${CONFIG_SHELL-$SHELL} |
7339 | export SHELL | |
7340 | _ASEOF | |
7341 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7342 | ## -------------------- ## | |
7343 | ## M4sh Initialization. ## | |
7344 | ## -------------------- ## | |
bae7f79e | 7345 | |
81ecdfbb RW |
7346 | # Be more Bourne compatible |
7347 | DUALCASE=1; export DUALCASE # for MKS sh | |
7348 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7349 | emulate sh |
7350 | NULLCMD=: | |
81ecdfbb | 7351 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7352 | # is contrary to our usage. Disable this feature. |
7353 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7354 | setopt NO_GLOB_SUBST |
7355 | else | |
7356 | case `(set -o) 2>/dev/null` in #( | |
7357 | *posix*) : | |
7358 | set -o posix ;; #( | |
7359 | *) : | |
7360 | ;; | |
7361 | esac | |
bae7f79e | 7362 | fi |
bae7f79e | 7363 | |
81ecdfbb RW |
7364 | |
7365 | as_nl=' | |
7366 | ' | |
7367 | export as_nl | |
7368 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7369 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7370 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7371 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7372 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7373 | # but without wasting forks for bash or zsh. | |
7374 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7375 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7376 | as_echo='print -r --' | |
7377 | as_echo_n='print -rn --' | |
7378 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7379 | as_echo='printf %s\n' | |
7380 | as_echo_n='printf %s' | |
7381 | else | |
7382 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7383 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7384 | as_echo_n='/usr/ucb/echo -n' | |
7385 | else | |
7386 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7387 | as_echo_n_body='eval | |
7388 | arg=$1; | |
7389 | case $arg in #( | |
7390 | *"$as_nl"*) | |
7391 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7392 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7393 | esac; | |
7394 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7395 | ' | |
7396 | export as_echo_n_body | |
7397 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7398 | fi | |
7399 | export as_echo_body | |
7400 | as_echo='sh -c $as_echo_body as_echo' | |
7401 | fi | |
7402 | ||
7403 | # The user is always right. | |
7404 | if test "${PATH_SEPARATOR+set}" != set; then | |
7405 | PATH_SEPARATOR=: | |
7406 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7407 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7408 | PATH_SEPARATOR=';' | |
7409 | } | |
bae7f79e ILT |
7410 | fi |
7411 | ||
7412 | ||
81ecdfbb RW |
7413 | # IFS |
7414 | # We need space, tab and new line, in precisely that order. Quoting is | |
7415 | # there to prevent editors from complaining about space-tab. | |
7416 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7417 | # splitting by setting IFS to empty value.) | |
7418 | IFS=" "" $as_nl" | |
7419 | ||
7420 | # Find who we are. Look in the path if we contain no directory separator. | |
7421 | case $0 in #(( | |
7422 | *[\\/]* ) as_myself=$0 ;; | |
7423 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7424 | for as_dir in $PATH | |
7425 | do | |
7426 | IFS=$as_save_IFS | |
7427 | test -z "$as_dir" && as_dir=. | |
7428 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7429 | done | |
7430 | IFS=$as_save_IFS | |
7431 | ||
7432 | ;; | |
7433 | esac | |
7434 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7435 | # in which case we are not to be found in the path. | |
7436 | if test "x$as_myself" = x; then | |
7437 | as_myself=$0 | |
7438 | fi | |
7439 | if test ! -f "$as_myself"; then | |
7440 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7441 | exit 1 | |
7442 | fi | |
7443 | ||
7444 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7445 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7446 | # suppresses any "Segmentation fault" message there. '((' could | |
7447 | # trigger a bug in pdksh 5.2.14. | |
7448 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7449 | do eval test x\${$as_var+set} = xset \ | |
7450 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7451 | done | |
bae7f79e ILT |
7452 | PS1='$ ' |
7453 | PS2='> ' | |
7454 | PS4='+ ' | |
7455 | ||
7456 | # NLS nuisances. | |
81ecdfbb RW |
7457 | LC_ALL=C |
7458 | export LC_ALL | |
7459 | LANGUAGE=C | |
7460 | export LANGUAGE | |
7461 | ||
7462 | # CDPATH. | |
7463 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7464 | ||
7465 | ||
7466 | # as_fn_error ERROR [LINENO LOG_FD] | |
7467 | # --------------------------------- | |
7468 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7469 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7470 | # script with status $?, using 1 if that was 0. | |
7471 | as_fn_error () | |
7472 | { | |
7473 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7474 | if test "$3"; then | |
7475 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7476 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 7477 | fi |
81ecdfbb RW |
7478 | $as_echo "$as_me: error: $1" >&2 |
7479 | as_fn_exit $as_status | |
7480 | } # as_fn_error | |
7481 | ||
7482 | ||
7483 | # as_fn_set_status STATUS | |
7484 | # ----------------------- | |
7485 | # Set $? to STATUS, without forking. | |
7486 | as_fn_set_status () | |
7487 | { | |
7488 | return $1 | |
7489 | } # as_fn_set_status | |
bae7f79e | 7490 | |
81ecdfbb RW |
7491 | # as_fn_exit STATUS |
7492 | # ----------------- | |
7493 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7494 | as_fn_exit () | |
7495 | { | |
7496 | set +e | |
7497 | as_fn_set_status $1 | |
7498 | exit $1 | |
7499 | } # as_fn_exit | |
7500 | ||
7501 | # as_fn_unset VAR | |
7502 | # --------------- | |
7503 | # Portably unset VAR. | |
7504 | as_fn_unset () | |
7505 | { | |
7506 | { eval $1=; unset $1;} | |
7507 | } | |
7508 | as_unset=as_fn_unset | |
7509 | # as_fn_append VAR VALUE | |
7510 | # ---------------------- | |
7511 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7512 | # advantage of any shell optimizations that allow amortized linear growth over | |
7513 | # repeated appends, instead of the typical quadratic growth present in naive | |
7514 | # implementations. | |
7515 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7516 | eval 'as_fn_append () | |
7517 | { | |
7518 | eval $1+=\$2 | |
7519 | }' | |
7520 | else | |
7521 | as_fn_append () | |
7522 | { | |
7523 | eval $1=\$$1\$2 | |
7524 | } | |
7525 | fi # as_fn_append | |
7526 | ||
7527 | # as_fn_arith ARG... | |
7528 | # ------------------ | |
7529 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7530 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7531 | # must be portable across $(()) and expr. | |
7532 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7533 | eval 'as_fn_arith () | |
7534 | { | |
7535 | as_val=$(( $* )) | |
7536 | }' | |
7537 | else | |
7538 | as_fn_arith () | |
7539 | { | |
7540 | as_val=`expr "$@" || test $? -eq 1` | |
7541 | } | |
7542 | fi # as_fn_arith | |
7543 | ||
7544 | ||
7545 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7546 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
7547 | as_expr=expr |
7548 | else | |
7549 | as_expr=false | |
7550 | fi | |
7551 | ||
81ecdfbb | 7552 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
7553 | as_basename=basename |
7554 | else | |
7555 | as_basename=false | |
7556 | fi | |
7557 | ||
81ecdfbb RW |
7558 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7559 | as_dirname=dirname | |
7560 | else | |
7561 | as_dirname=false | |
7562 | fi | |
bae7f79e | 7563 | |
81ecdfbb | 7564 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
7565 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7566 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7567 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7568 | $as_echo X/"$0" | | |
7569 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7570 | s//\1/ | |
7571 | q | |
7572 | } | |
7573 | /^X\/\(\/\/\)$/{ | |
7574 | s//\1/ | |
7575 | q | |
7576 | } | |
7577 | /^X\/\(\/\).*/{ | |
7578 | s//\1/ | |
7579 | q | |
7580 | } | |
7581 | s/.*/./; q'` | |
bae7f79e | 7582 | |
bae7f79e ILT |
7583 | # Avoid depending upon Character Ranges. |
7584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7587 | as_cr_digits='0123456789' | |
7588 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7589 | ||
81ecdfbb RW |
7590 | ECHO_C= ECHO_N= ECHO_T= |
7591 | case `echo -n x` in #((((( | |
7592 | -n*) | |
7593 | case `echo 'xy\c'` in | |
7594 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7595 | xy) ECHO_C='\c';; | |
7596 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7597 | ECHO_T=' ';; | |
7598 | esac;; | |
7599 | *) | |
7600 | ECHO_N='-n';; | |
bae7f79e ILT |
7601 | esac |
7602 | ||
81ecdfbb RW |
7603 | rm -f conf$$ conf$$.exe conf$$.file |
7604 | if test -d conf$$.dir; then | |
7605 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 7606 | else |
81ecdfbb RW |
7607 | rm -f conf$$.dir |
7608 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 7609 | fi |
81ecdfbb RW |
7610 | if (echo >conf$$.file) 2>/dev/null; then |
7611 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 7612 | as_ln_s='ln -s' |
81ecdfbb RW |
7613 | # ... but there are two gotchas: |
7614 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7615 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7616 | # In both cases, we have to default to `cp -p'. | |
7617 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7618 | as_ln_s='cp -p' | |
7619 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7620 | as_ln_s=ln | |
7621 | else | |
7622 | as_ln_s='cp -p' | |
bae7f79e | 7623 | fi |
bae7f79e ILT |
7624 | else |
7625 | as_ln_s='cp -p' | |
7626 | fi | |
81ecdfbb RW |
7627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7628 | rmdir conf$$.dir 2>/dev/null | |
7629 | ||
7630 | ||
7631 | # as_fn_mkdir_p | |
7632 | # ------------- | |
7633 | # Create "$as_dir" as a directory, including parents if necessary. | |
7634 | as_fn_mkdir_p () | |
7635 | { | |
7636 | ||
7637 | case $as_dir in #( | |
7638 | -*) as_dir=./$as_dir;; | |
7639 | esac | |
7640 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7641 | as_dirs= | |
7642 | while :; do | |
7643 | case $as_dir in #( | |
7644 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7645 | *) as_qdir=$as_dir;; | |
7646 | esac | |
7647 | as_dirs="'$as_qdir' $as_dirs" | |
7648 | as_dir=`$as_dirname -- "$as_dir" || | |
7649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7650 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7651 | X"$as_dir" : 'X\(//\)$' \| \ | |
7652 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7653 | $as_echo X"$as_dir" | | |
7654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7655 | s//\1/ | |
7656 | q | |
7657 | } | |
7658 | /^X\(\/\/\)[^/].*/{ | |
7659 | s//\1/ | |
7660 | q | |
7661 | } | |
7662 | /^X\(\/\/\)$/{ | |
7663 | s//\1/ | |
7664 | q | |
7665 | } | |
7666 | /^X\(\/\).*/{ | |
7667 | s//\1/ | |
7668 | q | |
7669 | } | |
7670 | s/.*/./; q'` | |
7671 | test -d "$as_dir" && break | |
7672 | done | |
7673 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7674 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
7675 | ||
bae7f79e | 7676 | |
81ecdfbb | 7677 | } # as_fn_mkdir_p |
bae7f79e | 7678 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7679 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
7680 | else |
7681 | test -d ./-p && rmdir ./-p | |
7682 | as_mkdir_p=false | |
7683 | fi | |
7684 | ||
81ecdfbb RW |
7685 | if test -x / >/dev/null 2>&1; then |
7686 | as_test_x='test -x' | |
7687 | else | |
7688 | if ls -dL / >/dev/null 2>&1; then | |
7689 | as_ls_L_option=L | |
7690 | else | |
7691 | as_ls_L_option= | |
7692 | fi | |
7693 | as_test_x=' | |
7694 | eval sh -c '\'' | |
7695 | if test -d "$1"; then | |
7696 | test -d "$1/."; | |
7697 | else | |
7698 | case $1 in #( | |
7699 | -*)set "./$1";; | |
7700 | esac; | |
7701 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
7702 | ???[sx]*):;;*)false;;esac;fi | |
7703 | '\'' sh | |
7704 | ' | |
7705 | fi | |
7706 | as_executable_p=$as_test_x | |
bae7f79e ILT |
7707 | |
7708 | # Sed expression to map a string onto a valid CPP name. | |
7709 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7710 | ||
7711 | # Sed expression to map a string onto a valid variable name. | |
7712 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7713 | ||
7714 | ||
bae7f79e | 7715 | exec 6>&1 |
81ecdfbb RW |
7716 | ## ----------------------------------- ## |
7717 | ## Main body of $CONFIG_STATUS script. ## | |
7718 | ## ----------------------------------- ## | |
7719 | _ASEOF | |
7720 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 7721 | |
81ecdfbb RW |
7722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7723 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 7724 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7725 | # values after options handling. |
7726 | ac_log=" | |
8486ee48 | 7727 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 7728 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
7729 | |
7730 | CONFIG_FILES = $CONFIG_FILES | |
7731 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7732 | CONFIG_LINKS = $CONFIG_LINKS | |
7733 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7734 | $ $0 $@ | |
7735 | ||
81ecdfbb RW |
7736 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7737 | " | |
7738 | ||
bae7f79e ILT |
7739 | _ACEOF |
7740 | ||
81ecdfbb RW |
7741 | case $ac_config_files in *" |
7742 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7743 | esac | |
bae7f79e | 7744 | |
81ecdfbb RW |
7745 | case $ac_config_headers in *" |
7746 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7747 | esac | |
bae7f79e | 7748 | |
bae7f79e | 7749 | |
81ecdfbb RW |
7750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7751 | # Files that config.status was made for. | |
7752 | config_files="$ac_config_files" | |
7753 | config_headers="$ac_config_headers" | |
7754 | config_commands="$ac_config_commands" | |
bae7f79e | 7755 | |
81ecdfbb | 7756 | _ACEOF |
bae7f79e | 7757 | |
81ecdfbb | 7758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7759 | ac_cs_usage="\ |
81ecdfbb RW |
7760 | \`$as_me' instantiates files and other configuration actions |
7761 | from templates according to the current configuration. Unless the files | |
7762 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 7763 | |
81ecdfbb | 7764 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
7765 | |
7766 | -h, --help print this help, then exit | |
81ecdfbb RW |
7767 | -V, --version print version number and configuration settings, then exit |
7768 | -q, --quiet, --silent | |
7769 | do not print progress messages | |
bae7f79e ILT |
7770 | -d, --debug don't remove temporary files |
7771 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7772 | --file=FILE[:TEMPLATE] |
7773 | instantiate the configuration file FILE | |
7774 | --header=FILE[:TEMPLATE] | |
7775 | instantiate the configuration header FILE | |
bae7f79e ILT |
7776 | |
7777 | Configuration files: | |
7778 | $config_files | |
7779 | ||
7780 | Configuration headers: | |
7781 | $config_headers | |
7782 | ||
7783 | Configuration commands: | |
7784 | $config_commands | |
7785 | ||
81ecdfbb | 7786 | Report bugs to the package provider." |
bae7f79e | 7787 | |
81ecdfbb RW |
7788 | _ACEOF |
7789 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7790 | ac_cs_version="\\ |
8486ee48 | 7791 | gold config.status 0.1 |
81ecdfbb RW |
7792 | configured by $0, generated by GNU Autoconf 2.64, |
7793 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 7794 | |
81ecdfbb | 7795 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
7796 | This config.status script is free software; the Free Software Foundation |
7797 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7798 | |
7799 | ac_pwd='$ac_pwd' | |
7800 | srcdir='$srcdir' | |
7801 | INSTALL='$INSTALL' | |
7802 | MKDIR_P='$MKDIR_P' | |
7803 | AWK='$AWK' | |
7804 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
7805 | _ACEOF |
7806 | ||
81ecdfbb RW |
7807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7808 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
7809 | ac_need_defaults=: |
7810 | while test $# != 0 | |
7811 | do | |
7812 | case $1 in | |
7813 | --*=*) | |
81ecdfbb RW |
7814 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7815 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
7816 | ac_shift=: |
7817 | ;; | |
81ecdfbb | 7818 | *) |
bae7f79e ILT |
7819 | ac_option=$1 |
7820 | ac_optarg=$2 | |
7821 | ac_shift=shift | |
7822 | ;; | |
bae7f79e ILT |
7823 | esac |
7824 | ||
7825 | case $ac_option in | |
7826 | # Handling of the options. | |
bae7f79e ILT |
7827 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7828 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
7829 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7830 | $as_echo "$ac_cs_version"; exit ;; | |
7831 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
7832 | debug=: ;; |
7833 | --file | --fil | --fi | --f ) | |
7834 | $ac_shift | |
81ecdfbb RW |
7835 | case $ac_optarg in |
7836 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7837 | esac | |
7838 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
7839 | ac_need_defaults=false;; |
7840 | --header | --heade | --head | --hea ) | |
7841 | $ac_shift | |
81ecdfbb RW |
7842 | case $ac_optarg in |
7843 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7844 | esac | |
7845 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 7846 | ac_need_defaults=false;; |
81ecdfbb RW |
7847 | --he | --h) |
7848 | # Conflict between --help and --header | |
7849 | as_fn_error "ambiguous option: \`$1' | |
7850 | Try \`$0 --help' for more information.";; | |
7851 | --help | --hel | -h ) | |
7852 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
7853 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7854 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7855 | ac_cs_silent=: ;; | |
7856 | ||
7857 | # This is an error. | |
81ecdfbb RW |
7858 | -*) as_fn_error "unrecognized option: \`$1' |
7859 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 7860 | |
81ecdfbb RW |
7861 | *) as_fn_append ac_config_targets " $1" |
7862 | ac_need_defaults=false ;; | |
bae7f79e ILT |
7863 | |
7864 | esac | |
7865 | shift | |
7866 | done | |
7867 | ||
7868 | ac_configure_extra_args= | |
7869 | ||
7870 | if $ac_cs_silent; then | |
7871 | exec 6>/dev/null | |
7872 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7873 | fi | |
7874 | ||
7875 | _ACEOF | |
81ecdfbb | 7876 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 7877 | if \$ac_cs_recheck; then |
81ecdfbb RW |
7878 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7879 | shift | |
7880 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7881 | CONFIG_SHELL='$SHELL' | |
7882 | export CONFIG_SHELL | |
7883 | exec "\$@" | |
bae7f79e ILT |
7884 | fi |
7885 | ||
7886 | _ACEOF | |
81ecdfbb RW |
7887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7888 | exec 5>>config.log | |
7889 | { | |
7890 | echo | |
7891 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7892 | ## Running $as_me. ## | |
7893 | _ASBOX | |
7894 | $as_echo "$ac_log" | |
7895 | } >&5 | |
bae7f79e | 7896 | |
81ecdfbb RW |
7897 | _ACEOF |
7898 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7899 | # |
81ecdfbb | 7900 | # INIT-COMMANDS |
bae7f79e | 7901 | # |
bae7f79e ILT |
7902 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
7903 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
7904 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
7905 | # from automake. | |
7906 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
7907 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
7908 | LINGUAS="${LINGUAS-%UNSET%}" | |
7909 | ||
7910 | ||
7911 | _ACEOF | |
7912 | ||
81ecdfbb | 7913 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7914 | |
81ecdfbb | 7915 | # Handling of arguments. |
bae7f79e ILT |
7916 | for ac_config_target in $ac_config_targets |
7917 | do | |
81ecdfbb RW |
7918 | case $ac_config_target in |
7919 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
7920 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7921 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7922 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7923 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
7924 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
7925 | ||
7926 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
7927 | esac |
7928 | done | |
7929 | ||
81ecdfbb | 7930 | |
bae7f79e ILT |
7931 | # If the user did not use the arguments to specify the items to instantiate, |
7932 | # then the envvar interface is used. Set only those that are not. | |
7933 | # We use the long form for the default assignment because of an extremely | |
7934 | # bizarre bug on SunOS 4.1.3. | |
7935 | if $ac_need_defaults; then | |
7936 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7937 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7938 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7939 | fi | |
7940 | ||
7941 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 7942 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 7943 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7944 | # Hook for its removal unless debugging. |
7945 | # Note that there is a small window in which the directory will not be cleaned: | |
7946 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
7947 | $debug || |
7948 | { | |
81ecdfbb RW |
7949 | tmp= |
7950 | trap 'exit_status=$? | |
7951 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7952 | ' 0 | |
7953 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 7954 | } |
bae7f79e ILT |
7955 | # Create a (secure) tmp directory for tmp files. |
7956 | ||
7957 | { | |
81ecdfbb | 7958 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
7959 | test -n "$tmp" && test -d "$tmp" |
7960 | } || | |
7961 | { | |
81ecdfbb RW |
7962 | tmp=./conf$$-$RANDOM |
7963 | (umask 077 && mkdir "$tmp") | |
7964 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
7965 | ||
7966 | # Set up the scripts for CONFIG_FILES section. | |
7967 | # No need to generate them if there are no CONFIG_FILES. | |
7968 | # This happens for instance with `./config.status config.h'. | |
7969 | if test -n "$CONFIG_FILES"; then | |
7970 | ||
7971 | ||
7972 | ac_cr=`echo X | tr X '\015'` | |
7973 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7974 | # But we know of no other shell where ac_cr would be empty at this | |
7975 | # point, so we can use a bashism as a fallback. | |
7976 | if test "x$ac_cr" = x; then | |
7977 | eval ac_cr=\$\'\\r\' | |
7978 | fi | |
7979 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7980 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7981 | ac_cs_awk_cr='\r' | |
7982 | else | |
7983 | ac_cs_awk_cr=$ac_cr | |
7984 | fi | |
7985 | ||
7986 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
7987 | _ACEOF | |
7988 | ||
7989 | ||
7990 | { | |
7991 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7992 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7993 | echo "_ACEOF" | |
7994 | } >conf$$subs.sh || | |
7995 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7996 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7997 | ac_delim='%!_!# ' | |
7998 | for ac_last_try in false false false false false :; do | |
7999 | . ./conf$$subs.sh || | |
8000 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8001 | ||
8002 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8003 | if test $ac_delim_n = $ac_delim_num; then | |
8004 | break | |
8005 | elif $ac_last_try; then | |
8006 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8007 | else | |
8008 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8009 | fi | |
8010 | done | |
8011 | rm -f conf$$subs.sh | |
8012 | ||
8013 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8014 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8015 | _ACEOF | |
8016 | sed -n ' | |
8017 | h | |
8018 | s/^/S["/; s/!.*/"]=/ | |
8019 | p | |
8020 | g | |
8021 | s/^[^!]*!// | |
8022 | :repl | |
8023 | t repl | |
8024 | s/'"$ac_delim"'$// | |
8025 | t delim | |
8026 | :nl | |
8027 | h | |
8028 | s/\(.\{148\}\).*/\1/ | |
8029 | t more1 | |
8030 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8031 | p | |
8032 | n | |
8033 | b repl | |
8034 | :more1 | |
8035 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8036 | p | |
8037 | g | |
8038 | s/.\{148\}// | |
8039 | t nl | |
8040 | :delim | |
8041 | h | |
8042 | s/\(.\{148\}\).*/\1/ | |
8043 | t more2 | |
8044 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8045 | p | |
8046 | b | |
8047 | :more2 | |
8048 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8049 | p | |
8050 | g | |
8051 | s/.\{148\}// | |
8052 | t delim | |
8053 | ' <conf$$subs.awk | sed ' | |
8054 | /^[^""]/{ | |
8055 | N | |
8056 | s/\n// | |
8057 | } | |
8058 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8059 | rm -f conf$$subs.awk | |
8060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8061 | _ACAWK | |
8062 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8063 | for (key in S) S_is_set[key] = 1 | |
8064 | FS = "\a" | |
8065 | ||
8066 | } | |
bae7f79e | 8067 | { |
81ecdfbb RW |
8068 | line = $ 0 |
8069 | nfields = split(line, field, "@") | |
8070 | substed = 0 | |
8071 | len = length(field[1]) | |
8072 | for (i = 2; i < nfields; i++) { | |
8073 | key = field[i] | |
8074 | keylen = length(key) | |
8075 | if (S_is_set[key]) { | |
8076 | value = S[key] | |
8077 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8078 | len += length(value) + length(field[++i]) | |
8079 | substed = 1 | |
8080 | } else | |
8081 | len += 1 + keylen | |
8082 | } | |
8083 | ||
8084 | print line | |
bae7f79e ILT |
8085 | } |
8086 | ||
81ecdfbb RW |
8087 | _ACAWK |
8088 | _ACEOF | |
8089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8090 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8091 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8092 | else | |
8093 | cat | |
8094 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8095 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8096 | _ACEOF |
8097 | ||
81ecdfbb RW |
8098 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8099 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8100 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8101 | # (actually we leave an empty line to preserve line numbers). | |
8102 | if test "x$srcdir" = x.; then | |
8103 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8104 | s/:*\$(srcdir):*/:/ | |
8105 | s/:*\${srcdir}:*/:/ | |
8106 | s/:*@srcdir@:*/:/ | |
8107 | s/^\([^=]*=[ ]*\):*/\1/ | |
8108 | s/:*$// | |
8109 | s/^[^=]*=[ ]*$// | |
8110 | }' | |
8111 | fi | |
bae7f79e | 8112 | |
81ecdfbb RW |
8113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8114 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8115 | |
81ecdfbb RW |
8116 | # Set up the scripts for CONFIG_HEADERS section. |
8117 | # No need to generate them if there are no CONFIG_HEADERS. | |
8118 | # This happens for instance with `./config.status Makefile'. | |
8119 | if test -n "$CONFIG_HEADERS"; then | |
8120 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8121 | BEGIN { | |
bae7f79e ILT |
8122 | _ACEOF |
8123 | ||
81ecdfbb RW |
8124 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8125 | # here-document in config.status, that substitutes the proper values into | |
8126 | # config.h.in to produce config.h. | |
8127 | ||
8128 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8129 | # handling of long lines. | |
8130 | ac_delim='%!_!# ' | |
8131 | for ac_last_try in false false :; do | |
8132 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8133 | if test -z "$ac_t"; then | |
8134 | break | |
8135 | elif $ac_last_try; then | |
8136 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8137 | else | |
8138 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8139 | fi |
81ecdfbb | 8140 | done |
bae7f79e | 8141 | |
81ecdfbb RW |
8142 | # For the awk script, D is an array of macro values keyed by name, |
8143 | # likewise P contains macro parameters if any. Preserve backslash | |
8144 | # newline sequences. | |
8145 | ||
8146 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8147 | sed -n ' | |
8148 | s/.\{148\}/&'"$ac_delim"'/g | |
8149 | t rset | |
8150 | :rset | |
8151 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8152 | t def | |
8153 | d | |
8154 | :def | |
8155 | s/\\$// | |
8156 | t bsnl | |
8157 | s/["\\]/\\&/g | |
8158 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8159 | D["\1"]=" \3"/p | |
8160 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8161 | d | |
8162 | :bsnl | |
8163 | s/["\\]/\\&/g | |
8164 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8165 | D["\1"]=" \3\\\\\\n"\\/p | |
8166 | t cont | |
8167 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8168 | t cont | |
8169 | d | |
8170 | :cont | |
8171 | n | |
8172 | s/.\{148\}/&'"$ac_delim"'/g | |
8173 | t clear | |
8174 | :clear | |
8175 | s/\\$// | |
8176 | t bsnlc | |
8177 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8178 | d | |
8179 | :bsnlc | |
8180 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8181 | b cont | |
8182 | ' <confdefs.h | sed ' | |
8183 | s/'"$ac_delim"'/"\\\ | |
8184 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8185 | ||
8186 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8187 | for (key in D) D_is_set[key] = 1 | |
8188 | FS = "\a" | |
8189 | } | |
8190 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8191 | line = \$ 0 | |
8192 | split(line, arg, " ") | |
8193 | if (arg[1] == "#") { | |
8194 | defundef = arg[2] | |
8195 | mac1 = arg[3] | |
8196 | } else { | |
8197 | defundef = substr(arg[1], 2) | |
8198 | mac1 = arg[2] | |
8199 | } | |
8200 | split(mac1, mac2, "(") #) | |
8201 | macro = mac2[1] | |
8202 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8203 | if (D_is_set[macro]) { | |
8204 | # Preserve the white space surrounding the "#". | |
8205 | print prefix "define", macro P[macro] D[macro] | |
8206 | next | |
8207 | } else { | |
8208 | # Replace #undef with comments. This is necessary, for example, | |
8209 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8210 | # on some systems where configure will not decide to define it. | |
8211 | if (defundef == "undef") { | |
8212 | print "/*", prefix defundef, macro, "*/" | |
8213 | next | |
8214 | } | |
8215 | } | |
8216 | } | |
8217 | { print } | |
8218 | _ACAWK | |
bae7f79e | 8219 | _ACEOF |
81ecdfbb RW |
8220 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8221 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8222 | fi # test -n "$CONFIG_HEADERS" | |
8223 | ||
8224 | ||
8225 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8226 | shift | |
8227 | for ac_tag | |
8228 | do | |
8229 | case $ac_tag in | |
8230 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8231 | esac | |
8232 | case $ac_mode$ac_tag in | |
8233 | :[FHL]*:*);; | |
8234 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8235 | :[FH]-) ac_tag=-:-;; | |
8236 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8237 | esac | |
8238 | ac_save_IFS=$IFS | |
8239 | IFS=: | |
8240 | set x $ac_tag | |
8241 | IFS=$ac_save_IFS | |
8242 | shift | |
8243 | ac_file=$1 | |
8244 | shift | |
8245 | ||
8246 | case $ac_mode in | |
8247 | :L) ac_source=$1;; | |
8248 | :[FH]) | |
8249 | ac_file_inputs= | |
8250 | for ac_f | |
8251 | do | |
8252 | case $ac_f in | |
8253 | -) ac_f="$tmp/stdin";; | |
8254 | *) # Look for the file first in the build tree, then in the source tree | |
8255 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8256 | # because $ac_f cannot contain `:'. | |
8257 | test -f "$ac_f" || | |
8258 | case $ac_f in | |
8259 | [\\/$]*) false;; | |
8260 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8261 | esac || | |
8262 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8263 | esac | |
8264 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8265 | as_fn_append ac_file_inputs " '$ac_f'" | |
8266 | done | |
8267 | ||
8268 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8269 | # use $as_me), people would be surprised to read: | |
8270 | # /* config.h. Generated by config.status. */ | |
8271 | configure_input='Generated from '` | |
8272 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8273 | `' by configure.' | |
8274 | if test x"$ac_file" != x-; then | |
8275 | configure_input="$ac_file. $configure_input" | |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8277 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8278 | fi | |
8279 | # Neutralize special characters interpreted by sed in replacement strings. | |
8280 | case $configure_input in #( | |
8281 | *\&* | *\|* | *\\* ) | |
8282 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8283 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8284 | *) ac_sed_conf_input=$configure_input;; | |
8285 | esac | |
8286 | ||
8287 | case $ac_tag in | |
8288 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8289 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8290 | esac | |
8291 | ;; | |
bae7f79e ILT |
8292 | esac |
8293 | ||
81ecdfbb | 8294 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8295 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8296 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8297 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8298 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8299 | $as_echo X"$ac_file" | | |
8300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8301 | s//\1/ | |
8302 | q | |
8303 | } | |
8304 | /^X\(\/\/\)[^/].*/{ | |
8305 | s//\1/ | |
8306 | q | |
8307 | } | |
8308 | /^X\(\/\/\)$/{ | |
8309 | s//\1/ | |
8310 | q | |
8311 | } | |
8312 | /^X\(\/\).*/{ | |
8313 | s//\1/ | |
8314 | q | |
8315 | } | |
8316 | s/.*/./; q'` | |
8317 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8318 | ac_builddir=. |
8319 | ||
81ecdfbb RW |
8320 | case "$ac_dir" in |
8321 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8322 | *) | |
8323 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8324 | # A ".." for each directory in $ac_dir_suffix. | |
8325 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8326 | case $ac_top_builddir_sub in | |
8327 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8328 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8329 | esac ;; | |
8330 | esac | |
8331 | ac_abs_top_builddir=$ac_pwd | |
8332 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8333 | # for backward compatibility: | |
8334 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8335 | |
8336 | case $srcdir in | |
81ecdfbb | 8337 | .) # We are building in place. |
bae7f79e | 8338 | ac_srcdir=. |
81ecdfbb RW |
8339 | ac_top_srcdir=$ac_top_builddir_sub |
8340 | ac_abs_top_srcdir=$ac_pwd ;; | |
8341 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8342 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8343 | ac_top_srcdir=$srcdir |
8344 | ac_abs_top_srcdir=$srcdir ;; | |
8345 | *) # Relative name. | |
8346 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8347 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8348 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8349 | esac |
81ecdfbb | 8350 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8351 | |
bae7f79e | 8352 | |
81ecdfbb RW |
8353 | case $ac_mode in |
8354 | :F) | |
8355 | # | |
8356 | # CONFIG_FILE | |
8357 | # | |
bae7f79e ILT |
8358 | |
8359 | case $INSTALL in | |
8360 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8361 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8362 | esac |
81ecdfbb RW |
8363 | ac_MKDIR_P=$MKDIR_P |
8364 | case $MKDIR_P in | |
8365 | [\\/$]* | ?:[\\/]* ) ;; | |
8366 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8367 | esac | |
8368 | _ACEOF | |
bae7f79e | 8369 | |
81ecdfbb RW |
8370 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8371 | # If the template does not know about datarootdir, expand it. | |
8372 | # FIXME: This hack should be removed a few years after 2.60. | |
8373 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8374 | ac_sed_dataroot=' | |
8375 | /datarootdir/ { | |
8376 | p | |
8377 | q | |
8378 | } | |
8379 | /@datadir@/p | |
8380 | /@docdir@/p | |
8381 | /@infodir@/p | |
8382 | /@localedir@/p | |
8383 | /@mandir@/p' | |
8384 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8385 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8386 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8388 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8389 | _ACEOF | |
8390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8391 | ac_datarootdir_hack=' | |
8392 | s&@datadir@&$datadir&g | |
8393 | s&@docdir@&$docdir&g | |
8394 | s&@infodir@&$infodir&g | |
8395 | s&@localedir@&$localedir&g | |
8396 | s&@mandir@&$mandir&g | |
8397 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8398 | esac | |
bae7f79e | 8399 | _ACEOF |
81ecdfbb RW |
8400 | |
8401 | # Neutralize VPATH when `$srcdir' = `.'. | |
8402 | # Shell code in configure.ac might set extrasub. | |
8403 | # FIXME: do we really want to maintain this feature? | |
8404 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8405 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8406 | $extrasub |
8407 | _ACEOF | |
81ecdfbb | 8408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8409 | :t |
8410 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8411 | s|@configure_input@|$ac_sed_conf_input|;t t |
8412 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8413 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8414 | s&@srcdir@&$ac_srcdir&;t t | |
8415 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8416 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8417 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8418 | s&@builddir@&$ac_builddir&;t t | |
8419 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8420 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8421 | s&@INSTALL@&$ac_INSTALL&;t t | |
8422 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8423 | $ac_datarootdir_hack | |
8424 | " | |
8425 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8426 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8427 | ||
8428 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8429 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8430 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8432 | which seems to be undefined. Please make sure it is defined." >&5 | |
8433 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8434 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8435 | ||
8436 | rm -f "$tmp/stdin" | |
bae7f79e | 8437 | case $ac_file in |
81ecdfbb RW |
8438 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8439 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8440 | esac \ | |
8441 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8442 | ;; | |
8443 | :H) | |
8444 | # | |
8445 | # CONFIG_HEADER | |
8446 | # | |
bae7f79e | 8447 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8448 | { |
8449 | $as_echo "/* $configure_input */" \ | |
8450 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8451 | } >"$tmp/config.h" \ | |
8452 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8453 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8455 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8456 | else |
81ecdfbb RW |
8457 | rm -f "$ac_file" |
8458 | mv "$tmp/config.h" "$ac_file" \ | |
8459 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8460 | fi |
8461 | else | |
81ecdfbb RW |
8462 | $as_echo "/* $configure_input */" \ |
8463 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8464 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8465 | fi |
81ecdfbb RW |
8466 | # Compute "$ac_file"'s index in $config_headers. |
8467 | _am_arg="$ac_file" | |
bae7f79e ILT |
8468 | _am_stamp_count=1 |
8469 | for _am_header in $config_headers :; do | |
8470 | case $_am_header in | |
81ecdfbb | 8471 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8472 | break ;; |
8473 | * ) | |
8474 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8475 | esac | |
8476 | done | |
81ecdfbb RW |
8477 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8478 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8479 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8480 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8481 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8482 | $as_echo X"$_am_arg" | | |
8483 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8484 | s//\1/ | |
8485 | q | |
8486 | } | |
8487 | /^X\(\/\/\)[^/].*/{ | |
8488 | s//\1/ | |
8489 | q | |
8490 | } | |
8491 | /^X\(\/\/\)$/{ | |
8492 | s//\1/ | |
8493 | q | |
8494 | } | |
8495 | /^X\(\/\).*/{ | |
8496 | s//\1/ | |
8497 | q | |
8498 | } | |
8499 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8500 | ;; | |
bae7f79e | 8501 | |
81ecdfbb RW |
8502 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8503 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8504 | ;; | |
8505 | esac | |
bae7f79e ILT |
8506 | |
8507 | ||
81ecdfbb RW |
8508 | case $ac_file$ac_mode in |
8509 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8510 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8511 | # are listed without --file. Let's play safe and only enable the eval | |
8512 | # if we detect the quoting. | |
8513 | case $CONFIG_FILES in | |
8514 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8515 | *) set x $CONFIG_FILES ;; | |
8516 | esac | |
8517 | shift | |
8518 | for mf | |
8519 | do | |
8520 | # Strip MF so we end up with the name of the file. | |
8521 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8522 | # Check whether this is an Automake generated Makefile or not. | |
8523 | # We used to match only the files named `Makefile.in', but | |
8524 | # some people rename them; so instead we look at the file content. | |
8525 | # Grep'ing the first line is not enough: some people post-process | |
8526 | # each Makefile.in and add a new line on top of each file to say so. | |
8527 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8528 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8529 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8530 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
8531 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8532 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8533 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8534 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
8535 | $as_echo X"$mf" | | |
8536 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8537 | s//\1/ | |
8538 | q | |
8539 | } | |
8540 | /^X\(\/\/\)[^/].*/{ | |
8541 | s//\1/ | |
8542 | q | |
8543 | } | |
8544 | /^X\(\/\/\)$/{ | |
8545 | s//\1/ | |
8546 | q | |
8547 | } | |
8548 | /^X\(\/\).*/{ | |
8549 | s//\1/ | |
8550 | q | |
8551 | } | |
8552 | s/.*/./; q'` | |
8553 | else | |
8554 | continue | |
8555 | fi | |
8556 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8557 | # from the Makefile without running `make'. | |
8558 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8559 | test -z "$DEPDIR" && continue | |
8560 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8561 | test -z "am__include" && continue | |
8562 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8563 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8564 | U=`sed -n 's/^U = //p' < "$mf"` | |
8565 | # Find all dependency output files, they are included files with | |
8566 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8567 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8568 | # expansion. | |
8569 | for file in `sed -n " | |
8570 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8571 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8572 | # Make sure the directory exists. | |
8573 | test -f "$dirpart/$file" && continue | |
8574 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
8575 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8576 | X"$file" : 'X\(//\)[^/]' \| \ | |
8577 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8578 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
8579 | $as_echo X"$file" | | |
8580 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8581 | s//\1/ | |
8582 | q | |
8583 | } | |
8584 | /^X\(\/\/\)[^/].*/{ | |
8585 | s//\1/ | |
8586 | q | |
8587 | } | |
8588 | /^X\(\/\/\)$/{ | |
8589 | s//\1/ | |
8590 | q | |
8591 | } | |
8592 | /^X\(\/\).*/{ | |
8593 | s//\1/ | |
8594 | q | |
8595 | } | |
8596 | s/.*/./; q'` | |
8597 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8598 | # echo "creating $dirpart/$file" | |
8599 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 8600 | done |
bae7f79e | 8601 | done |
81ecdfbb | 8602 | } |
bae7f79e | 8603 | ;; |
81ecdfbb | 8604 | "default-1":C) |
bae7f79e ILT |
8605 | for ac_file in $CONFIG_FILES; do |
8606 | # Support "outfile[:infile[:infile...]]" | |
8607 | case "$ac_file" in | |
8608 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8609 | esac | |
8610 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8611 | case "$ac_file" in */Makefile.in) | |
8612 | # Adjust a relative srcdir. | |
8613 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 8614 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
8615 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8616 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8617 | # In autoconf-2.50 it is called $srcdir. | |
8618 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8619 | case "$ac_given_srcdir" in | |
8620 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8621 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8622 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8623 | esac | |
8624 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8625 | rm -f "$ac_dir/POTFILES" | |
8626 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8627 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8628 | POMAKEFILEDEPS="POTFILES.in" | |
8629 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8630 | # on $ac_dir but don't depend on user-specified configuration | |
8631 | # parameters. | |
8632 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8633 | # The LINGUAS file contains the set of available languages. | |
8634 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
8635 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
8636 | fi | |
8637 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8638 | # Hide the ALL_LINGUAS assigment from automake. | |
8639 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8640 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8641 | else | |
8642 | # The set of available languages was given in configure.in. | |
8643 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
8644 | fi | |
8645 | case "$ac_given_srcdir" in | |
8646 | .) srcdirpre= ;; | |
8647 | *) srcdirpre='$(srcdir)/' ;; | |
8648 | esac | |
8649 | POFILES= | |
8650 | GMOFILES= | |
8651 | UPDATEPOFILES= | |
8652 | DUMMYPOFILES= | |
8653 | for lang in $ALL_LINGUAS; do | |
8654 | POFILES="$POFILES $srcdirpre$lang.po" | |
8655 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8656 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8657 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8658 | done | |
8659 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8660 | # environment variable. | |
8661 | INST_LINGUAS= | |
8662 | if test -n "$ALL_LINGUAS"; then | |
8663 | for presentlang in $ALL_LINGUAS; do | |
8664 | useit=no | |
8665 | if test "%UNSET%" != "$LINGUAS"; then | |
8666 | desiredlanguages="$LINGUAS" | |
8667 | else | |
8668 | desiredlanguages="$ALL_LINGUAS" | |
8669 | fi | |
8670 | for desiredlang in $desiredlanguages; do | |
8671 | # Use the presentlang catalog if desiredlang is | |
8672 | # a. equal to presentlang, or | |
8673 | # b. a variant of presentlang (because in this case, | |
8674 | # presentlang can be used as a fallback for messages | |
8675 | # which are not translated in the desiredlang catalog). | |
8676 | case "$desiredlang" in | |
8677 | "$presentlang"*) useit=yes;; | |
8678 | esac | |
8679 | done | |
8680 | if test $useit = yes; then | |
8681 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8682 | fi | |
8683 | done | |
8684 | fi | |
8685 | CATALOGS= | |
8686 | if test -n "$INST_LINGUAS"; then | |
8687 | for lang in $INST_LINGUAS; do | |
8688 | CATALOGS="$CATALOGS $lang.gmo" | |
8689 | done | |
8690 | fi | |
8691 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8692 | 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" | |
8693 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8694 | if test -f "$f"; then | |
8695 | case "$f" in | |
8696 | *.orig | *.bak | *~) ;; | |
8697 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8698 | esac | |
8699 | fi | |
8700 | done | |
8701 | fi | |
8702 | ;; | |
8703 | esac | |
8704 | done ;; | |
81ecdfbb | 8705 | |
bae7f79e | 8706 | esac |
81ecdfbb | 8707 | done # for ac_tag |
bae7f79e | 8708 | |
bae7f79e | 8709 | |
81ecdfbb | 8710 | as_fn_exit 0 |
bae7f79e | 8711 | _ACEOF |
bae7f79e ILT |
8712 | ac_clean_files=$ac_clean_files_save |
8713 | ||
81ecdfbb RW |
8714 | test $ac_write_fail = 0 || |
8715 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8716 | ||
bae7f79e ILT |
8717 | |
8718 | # configure is writing to config.log, and then calls config.status. | |
8719 | # config.status does its own redirection, appending to config.log. | |
8720 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8721 | # by configure, so config.status won't be able to write to it; its | |
8722 | # output is simply discarded. So we exec the FD to /dev/null, | |
8723 | # effectively closing config.log, so it can be properly (re)opened and | |
8724 | # appended to by config.status. When coming back to configure, we | |
8725 | # need to make the FD available again. | |
8726 | if test "$no_create" != yes; then | |
8727 | ac_cs_success=: | |
8728 | ac_config_status_args= | |
8729 | test "$silent" = yes && | |
8730 | ac_config_status_args="$ac_config_status_args --quiet" | |
8731 | exec 5>/dev/null | |
8732 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8733 | exec 5>>config.log | |
8734 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8735 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
8736 | $ac_cs_success || as_fn_exit $? |
8737 | fi | |
8738 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8740 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
8741 | fi |
8742 |