Commit | Line | Data |
---|---|---|
bae7f79e ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64 for gold 0.1. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
bae7f79e | 8 | # |
bae7f79e ILT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bae7f79e | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bae7f79e | 31 | fi |
bae7f79e | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bae7f79e ILT |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bae7f79e ILT |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bae7f79e | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bae7f79e | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bae7f79e | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
bae7f79e | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bae7f79e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bae7f79e | 410 | |
bae7f79e ILT |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
bae7f79e | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bae7f79e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bae7f79e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bae7f79e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bae7f79e | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bae7f79e ILT |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bae7f79e ILT |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bae7f79e ILT |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
bae7f79e | 483 | fi |
bae7f79e ILT |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bae7f79e ILT |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bae7f79e ILT |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bae7f79e ILT |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bae7f79e ILT |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
81ecdfbb | 538 | ac_clean_files= |
bae7f79e | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bae7f79e ILT |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
bae7f79e ILT |
545 | |
546 | # Identity of this package. | |
8486ee48 ILT |
547 | PACKAGE_NAME='gold' |
548 | PACKAGE_TARNAME='gold' | |
549 | PACKAGE_VERSION='0.1' | |
550 | PACKAGE_STRING='gold 0.1' | |
551 | PACKAGE_BUGREPORT='' | |
81ecdfbb | 552 | PACKAGE_URL='' |
bae7f79e ILT |
553 | |
554 | ac_unique_file="gold.cc" | |
54dc6425 ILT |
555 | # Factoring default headers for most tests. |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
54dc6425 ILT |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
54dc6425 ILT |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
54dc6425 ILT |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
54dc6425 ILT |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
54dc6425 ILT |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
54dc6425 ILT |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
54dc6425 | 582 | # include <inttypes.h> |
54dc6425 | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
54dc6425 ILT |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
81ecdfbb RW |
591 | ac_subst_vars='am__EXEEXT_FALSE |
592 | am__EXEEXT_TRUE | |
593 | LTLIBOBJS | |
594 | MAINT | |
595 | MAINTAINER_MODE_FALSE | |
596 | MAINTAINER_MODE_TRUE | |
597 | CXXCPP | |
598 | HAVE_ZLIB_FALSE | |
599 | HAVE_ZLIB_TRUE | |
600 | LIBOBJS | |
601 | LFS_CFLAGS | |
602 | WARN_CXXFLAGS | |
603 | NO_WERROR | |
604 | WARN_CFLAGS | |
7223e9ca ILT |
605 | IFUNC_FALSE |
606 | IFUNC_TRUE | |
81ecdfbb RW |
607 | RANDOM_SEED_CFLAGS |
608 | CONSTRUCTOR_PRIORITY_FALSE | |
609 | CONSTRUCTOR_PRIORITY_TRUE | |
610 | TLS_DESCRIPTORS_FALSE | |
611 | TLS_DESCRIPTORS_TRUE | |
612 | TLS_GNU2_DIALECT_FALSE | |
613 | TLS_GNU2_DIALECT_TRUE | |
614 | OMP_SUPPORT_FALSE | |
615 | OMP_SUPPORT_TRUE | |
616 | STATIC_TLS_FALSE | |
617 | STATIC_TLS_TRUE | |
618 | TLS_FALSE | |
619 | TLS_TRUE | |
620 | MCMODEL_MEDIUM_FALSE | |
621 | MCMODEL_MEDIUM_TRUE | |
622 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
623 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
eb373049 ILT |
624 | NATIVE_OR_CROSS_LINKER_FALSE |
625 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
626 | GCC_FALSE |
627 | GCC_TRUE | |
628 | NATIVE_LINKER_FALSE | |
629 | NATIVE_LINKER_TRUE | |
630 | MSGMERGE | |
631 | MSGFMT | |
632 | MKINSTALLDIRS | |
633 | CATOBJEXT | |
634 | GENCAT | |
635 | INSTOBJEXT | |
636 | DATADIRNAME | |
637 | CATALOGS | |
638 | POSUB | |
639 | GMSGFMT | |
640 | XGETTEXT | |
641 | INCINTL | |
642 | LIBINTL_DEP | |
643 | LIBINTL | |
644 | USE_NLS | |
645 | EGREP | |
646 | GREP | |
647 | CPP | |
648 | LN_S | |
649 | RANLIB | |
650 | YFLAGS | |
651 | YACC | |
652 | am__fastdepCXX_FALSE | |
653 | am__fastdepCXX_TRUE | |
654 | CXXDEPMODE | |
655 | ac_ct_CXX | |
656 | CXXFLAGS | |
657 | CXX | |
658 | am__fastdepCC_FALSE | |
659 | am__fastdepCC_TRUE | |
660 | CCDEPMODE | |
661 | AMDEPBACKSLASH | |
662 | AMDEP_FALSE | |
663 | AMDEP_TRUE | |
664 | am__quote | |
665 | am__include | |
666 | DEPDIR | |
667 | OBJEXT | |
668 | EXEEXT | |
669 | ac_ct_CC | |
670 | CPPFLAGS | |
671 | LDFLAGS | |
672 | CFLAGS | |
673 | CC | |
674 | TARGETOBJS | |
364c7fa5 ILT |
675 | DEFAULT_TARGET_X86_64_FALSE |
676 | DEFAULT_TARGET_X86_64_TRUE | |
677 | DEFAULT_TARGET_SPARC_FALSE | |
678 | DEFAULT_TARGET_SPARC_TRUE | |
679 | DEFAULT_TARGET_POWERPC_FALSE | |
680 | DEFAULT_TARGET_POWERPC_TRUE | |
681 | DEFAULT_TARGET_I386_FALSE | |
682 | DEFAULT_TARGET_I386_TRUE | |
683 | DEFAULT_TARGET_ARM_FALSE | |
684 | DEFAULT_TARGET_ARM_TRUE | |
81ecdfbb RW |
685 | PLUGINS_FALSE |
686 | PLUGINS_TRUE | |
687 | THREADS_FALSE | |
688 | THREADS_TRUE | |
4fda8867 NC |
689 | installed_linker |
690 | install_as_default | |
81ecdfbb RW |
691 | am__untar |
692 | am__tar | |
693 | AMTAR | |
694 | am__leading_dot | |
695 | SET_MAKE | |
696 | AWK | |
697 | mkdir_p | |
698 | MKDIR_P | |
699 | INSTALL_STRIP_PROGRAM | |
700 | STRIP | |
701 | install_sh | |
702 | MAKEINFO | |
703 | AUTOHEADER | |
704 | AUTOMAKE | |
705 | AUTOCONF | |
706 | ACLOCAL | |
707 | VERSION | |
708 | PACKAGE | |
709 | CYGPATH_W | |
710 | am__isrc | |
711 | INSTALL_DATA | |
712 | INSTALL_SCRIPT | |
713 | INSTALL_PROGRAM | |
714 | target_os | |
715 | target_vendor | |
716 | target_cpu | |
717 | target | |
718 | host_os | |
719 | host_vendor | |
720 | host_cpu | |
721 | host | |
722 | build_os | |
723 | build_vendor | |
724 | build_cpu | |
725 | build | |
726 | target_alias | |
727 | host_alias | |
728 | build_alias | |
729 | LIBS | |
730 | ECHO_T | |
731 | ECHO_N | |
732 | ECHO_C | |
733 | DEFS | |
734 | mandir | |
735 | localedir | |
736 | libdir | |
737 | psdir | |
738 | pdfdir | |
739 | dvidir | |
740 | htmldir | |
741 | infodir | |
742 | docdir | |
743 | oldincludedir | |
744 | includedir | |
745 | localstatedir | |
746 | sharedstatedir | |
747 | sysconfdir | |
748 | datadir | |
749 | datarootdir | |
750 | libexecdir | |
751 | sbindir | |
752 | bindir | |
753 | program_transform_name | |
754 | prefix | |
755 | exec_prefix | |
756 | PACKAGE_URL | |
757 | PACKAGE_BUGREPORT | |
758 | PACKAGE_STRING | |
759 | PACKAGE_VERSION | |
760 | PACKAGE_TARNAME | |
761 | PACKAGE_NAME | |
762 | PATH_SEPARATOR | |
763 | SHELL' | |
bae7f79e | 764 | ac_subst_files='' |
81ecdfbb RW |
765 | ac_user_opts=' |
766 | enable_option_checking | |
767 | with_sysroot | |
4fda8867 | 768 | enable_gold |
81ecdfbb RW |
769 | enable_threads |
770 | enable_plugins | |
771 | enable_targets | |
772 | enable_dependency_tracking | |
773 | enable_nls | |
774 | enable_werror | |
775 | enable_build_warnings | |
776 | enable_maintainer_mode | |
777 | ' | |
778 | ac_precious_vars='build_alias | |
779 | host_alias | |
780 | target_alias | |
781 | CC | |
782 | CFLAGS | |
783 | LDFLAGS | |
784 | LIBS | |
785 | CPPFLAGS | |
786 | CXX | |
787 | CXXFLAGS | |
788 | CCC | |
789 | YACC | |
790 | YFLAGS | |
791 | CPP | |
792 | CXXCPP' | |
793 | ||
bae7f79e ILT |
794 | |
795 | # Initialize some variables set by options. | |
796 | ac_init_help= | |
797 | ac_init_version=false | |
81ecdfbb RW |
798 | ac_unrecognized_opts= |
799 | ac_unrecognized_sep= | |
bae7f79e ILT |
800 | # The variables have the same names as the options, with |
801 | # dashes changed to underlines. | |
802 | cache_file=/dev/null | |
803 | exec_prefix=NONE | |
804 | no_create= | |
805 | no_recursion= | |
806 | prefix=NONE | |
807 | program_prefix=NONE | |
808 | program_suffix=NONE | |
809 | program_transform_name=s,x,x, | |
810 | silent= | |
811 | site= | |
812 | srcdir= | |
813 | verbose= | |
814 | x_includes=NONE | |
815 | x_libraries=NONE | |
816 | ||
817 | # Installation directory options. | |
818 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
819 | # and all the variables that are supposed to be based on exec_prefix | |
820 | # by default will actually change. | |
821 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 822 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
823 | bindir='${exec_prefix}/bin' |
824 | sbindir='${exec_prefix}/sbin' | |
825 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
826 | datarootdir='${prefix}/share' |
827 | datadir='${datarootdir}' | |
bae7f79e ILT |
828 | sysconfdir='${prefix}/etc' |
829 | sharedstatedir='${prefix}/com' | |
830 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
831 | includedir='${prefix}/include' |
832 | oldincludedir='/usr/include' | |
81ecdfbb RW |
833 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
834 | infodir='${datarootdir}/info' | |
835 | htmldir='${docdir}' | |
836 | dvidir='${docdir}' | |
837 | pdfdir='${docdir}' | |
838 | psdir='${docdir}' | |
839 | libdir='${exec_prefix}/lib' | |
840 | localedir='${datarootdir}/locale' | |
841 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
842 | |
843 | ac_prev= | |
81ecdfbb | 844 | ac_dashdash= |
bae7f79e ILT |
845 | for ac_option |
846 | do | |
847 | # If the previous option needs an argument, assign it. | |
848 | if test -n "$ac_prev"; then | |
81ecdfbb | 849 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
850 | ac_prev= |
851 | continue | |
852 | fi | |
853 | ||
81ecdfbb RW |
854 | case $ac_option in |
855 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
856 | *) ac_optarg=yes ;; | |
857 | esac | |
bae7f79e ILT |
858 | |
859 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
860 | ||
81ecdfbb RW |
861 | case $ac_dashdash$ac_option in |
862 | --) | |
863 | ac_dashdash=yes ;; | |
bae7f79e ILT |
864 | |
865 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
866 | ac_prev=bindir ;; | |
867 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
868 | bindir=$ac_optarg ;; | |
869 | ||
870 | -build | --build | --buil | --bui | --bu) | |
871 | ac_prev=build_alias ;; | |
872 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
873 | build_alias=$ac_optarg ;; | |
874 | ||
875 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
876 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
877 | ac_prev=cache_file ;; | |
878 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
879 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
880 | cache_file=$ac_optarg ;; | |
881 | ||
882 | --config-cache | -C) | |
883 | cache_file=config.cache ;; | |
884 | ||
81ecdfbb | 885 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 886 | ac_prev=datadir ;; |
81ecdfbb | 887 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
888 | datadir=$ac_optarg ;; |
889 | ||
81ecdfbb RW |
890 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
891 | | --dataroo | --dataro | --datar) | |
892 | ac_prev=datarootdir ;; | |
893 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
894 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
895 | datarootdir=$ac_optarg ;; | |
896 | ||
bae7f79e | 897 | -disable-* | --disable-*) |
81ecdfbb | 898 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 899 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
900 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
901 | as_fn_error "invalid feature name: $ac_useropt" | |
902 | ac_useropt_orig=$ac_useropt | |
903 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
904 | case $ac_user_opts in | |
905 | *" | |
906 | "enable_$ac_useropt" | |
907 | "*) ;; | |
908 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
909 | ac_unrecognized_sep=', ';; | |
910 | esac | |
911 | eval enable_$ac_useropt=no ;; | |
912 | ||
913 | -docdir | --docdir | --docdi | --doc | --do) | |
914 | ac_prev=docdir ;; | |
915 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
916 | docdir=$ac_optarg ;; | |
917 | ||
918 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
919 | ac_prev=dvidir ;; | |
920 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
921 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
922 | |
923 | -enable-* | --enable-*) | |
81ecdfbb | 924 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 925 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
926 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
927 | as_fn_error "invalid feature name: $ac_useropt" | |
928 | ac_useropt_orig=$ac_useropt | |
929 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
930 | case $ac_user_opts in | |
931 | *" | |
932 | "enable_$ac_useropt" | |
933 | "*) ;; | |
934 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
935 | ac_unrecognized_sep=', ';; | |
bae7f79e | 936 | esac |
81ecdfbb | 937 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
938 | |
939 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
940 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
941 | | --exec | --exe | --ex) | |
942 | ac_prev=exec_prefix ;; | |
943 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
944 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
945 | | --exec=* | --exe=* | --ex=*) | |
946 | exec_prefix=$ac_optarg ;; | |
947 | ||
948 | -gas | --gas | --ga | --g) | |
949 | # Obsolete; use --with-gas. | |
950 | with_gas=yes ;; | |
951 | ||
952 | -help | --help | --hel | --he | -h) | |
953 | ac_init_help=long ;; | |
954 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
955 | ac_init_help=recursive ;; | |
956 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
957 | ac_init_help=short ;; | |
958 | ||
959 | -host | --host | --hos | --ho) | |
960 | ac_prev=host_alias ;; | |
961 | -host=* | --host=* | --hos=* | --ho=*) | |
962 | host_alias=$ac_optarg ;; | |
963 | ||
81ecdfbb RW |
964 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
965 | ac_prev=htmldir ;; | |
966 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
967 | | --ht=*) | |
968 | htmldir=$ac_optarg ;; | |
969 | ||
bae7f79e ILT |
970 | -includedir | --includedir | --includedi | --included | --include \ |
971 | | --includ | --inclu | --incl | --inc) | |
972 | ac_prev=includedir ;; | |
973 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
974 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
975 | includedir=$ac_optarg ;; | |
976 | ||
977 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
978 | ac_prev=infodir ;; | |
979 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
980 | infodir=$ac_optarg ;; | |
981 | ||
982 | -libdir | --libdir | --libdi | --libd) | |
983 | ac_prev=libdir ;; | |
984 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
985 | libdir=$ac_optarg ;; | |
986 | ||
987 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
988 | | --libexe | --libex | --libe) | |
989 | ac_prev=libexecdir ;; | |
990 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
991 | | --libexe=* | --libex=* | --libe=*) | |
992 | libexecdir=$ac_optarg ;; | |
993 | ||
81ecdfbb RW |
994 | -localedir | --localedir | --localedi | --localed | --locale) |
995 | ac_prev=localedir ;; | |
996 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
997 | localedir=$ac_optarg ;; | |
998 | ||
bae7f79e | 999 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1000 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1001 | ac_prev=localstatedir ;; |
1002 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1003 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1004 | localstatedir=$ac_optarg ;; |
1005 | ||
1006 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1007 | ac_prev=mandir ;; | |
1008 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1009 | mandir=$ac_optarg ;; | |
1010 | ||
1011 | -nfp | --nfp | --nf) | |
1012 | # Obsolete; use --without-fp. | |
1013 | with_fp=no ;; | |
1014 | ||
1015 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1016 | | --no-cr | --no-c | -n) | |
1017 | no_create=yes ;; | |
1018 | ||
1019 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1020 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1021 | no_recursion=yes ;; | |
1022 | ||
1023 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1024 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1025 | | --oldin | --oldi | --old | --ol | --o) | |
1026 | ac_prev=oldincludedir ;; | |
1027 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1028 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1029 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1030 | oldincludedir=$ac_optarg ;; | |
1031 | ||
1032 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1033 | ac_prev=prefix ;; | |
1034 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1035 | prefix=$ac_optarg ;; | |
1036 | ||
1037 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1038 | | --program-pre | --program-pr | --program-p) | |
1039 | ac_prev=program_prefix ;; | |
1040 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1041 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1042 | program_prefix=$ac_optarg ;; | |
1043 | ||
1044 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1045 | | --program-suf | --program-su | --program-s) | |
1046 | ac_prev=program_suffix ;; | |
1047 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1048 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1049 | program_suffix=$ac_optarg ;; | |
1050 | ||
1051 | -program-transform-name | --program-transform-name \ | |
1052 | | --program-transform-nam | --program-transform-na \ | |
1053 | | --program-transform-n | --program-transform- \ | |
1054 | | --program-transform | --program-transfor \ | |
1055 | | --program-transfo | --program-transf \ | |
1056 | | --program-trans | --program-tran \ | |
1057 | | --progr-tra | --program-tr | --program-t) | |
1058 | ac_prev=program_transform_name ;; | |
1059 | -program-transform-name=* | --program-transform-name=* \ | |
1060 | | --program-transform-nam=* | --program-transform-na=* \ | |
1061 | | --program-transform-n=* | --program-transform-=* \ | |
1062 | | --program-transform=* | --program-transfor=* \ | |
1063 | | --program-transfo=* | --program-transf=* \ | |
1064 | | --program-trans=* | --program-tran=* \ | |
1065 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1066 | program_transform_name=$ac_optarg ;; | |
1067 | ||
81ecdfbb RW |
1068 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1069 | ac_prev=pdfdir ;; | |
1070 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1071 | pdfdir=$ac_optarg ;; | |
1072 | ||
1073 | -psdir | --psdir | --psdi | --psd | --ps) | |
1074 | ac_prev=psdir ;; | |
1075 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1076 | psdir=$ac_optarg ;; | |
1077 | ||
bae7f79e ILT |
1078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1079 | | -silent | --silent | --silen | --sile | --sil) | |
1080 | silent=yes ;; | |
1081 | ||
1082 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1083 | ac_prev=sbindir ;; | |
1084 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1085 | | --sbi=* | --sb=*) | |
1086 | sbindir=$ac_optarg ;; | |
1087 | ||
1088 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1089 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1090 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1091 | | --sha | --sh) | |
1092 | ac_prev=sharedstatedir ;; | |
1093 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1094 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1095 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1096 | | --sha=* | --sh=*) | |
1097 | sharedstatedir=$ac_optarg ;; | |
1098 | ||
1099 | -site | --site | --sit) | |
1100 | ac_prev=site ;; | |
1101 | -site=* | --site=* | --sit=*) | |
1102 | site=$ac_optarg ;; | |
1103 | ||
1104 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1105 | ac_prev=srcdir ;; | |
1106 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1107 | srcdir=$ac_optarg ;; | |
1108 | ||
1109 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1110 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1111 | ac_prev=sysconfdir ;; | |
1112 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1113 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1114 | sysconfdir=$ac_optarg ;; | |
1115 | ||
1116 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1117 | ac_prev=target_alias ;; | |
1118 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1119 | target_alias=$ac_optarg ;; | |
1120 | ||
1121 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1122 | verbose=yes ;; | |
1123 | ||
1124 | -version | --version | --versio | --versi | --vers | -V) | |
1125 | ac_init_version=: ;; | |
1126 | ||
1127 | -with-* | --with-*) | |
81ecdfbb | 1128 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1129 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1130 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1131 | as_fn_error "invalid package name: $ac_useropt" | |
1132 | ac_useropt_orig=$ac_useropt | |
1133 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1134 | case $ac_user_opts in | |
1135 | *" | |
1136 | "with_$ac_useropt" | |
1137 | "*) ;; | |
1138 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1139 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1140 | esac |
81ecdfbb | 1141 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1142 | |
1143 | -without-* | --without-*) | |
81ecdfbb | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1145 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1147 | as_fn_error "invalid package name: $ac_useropt" | |
1148 | ac_useropt_orig=$ac_useropt | |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
1156 | esac | |
1157 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1158 | |
1159 | --x) | |
1160 | # Obsolete; use --with-x. | |
1161 | with_x=yes ;; | |
1162 | ||
1163 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1164 | | --x-incl | --x-inc | --x-in | --x-i) | |
1165 | ac_prev=x_includes ;; | |
1166 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1167 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1168 | x_includes=$ac_optarg ;; | |
1169 | ||
1170 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1171 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1172 | ac_prev=x_libraries ;; | |
1173 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1174 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1175 | x_libraries=$ac_optarg ;; | |
1176 | ||
81ecdfbb RW |
1177 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1178 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1179 | ;; |
1180 | ||
1181 | *=*) | |
1182 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1183 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1184 | case $ac_envvar in #( |
1185 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1186 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1187 | esac | |
1188 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1189 | export $ac_envvar ;; |
1190 | ||
1191 | *) | |
1192 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1193 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1194 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1195 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1196 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1197 | ;; | |
1198 | ||
1199 | esac | |
1200 | done | |
1201 | ||
1202 | if test -n "$ac_prev"; then | |
1203 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1204 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1205 | fi |
1206 | ||
81ecdfbb RW |
1207 | if test -n "$ac_unrecognized_opts"; then |
1208 | case $enable_option_checking in | |
1209 | no) ;; | |
1210 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1211 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1212 | esac |
81ecdfbb | 1213 | fi |
bae7f79e | 1214 | |
81ecdfbb RW |
1215 | # Check all directory arguments for consistency. |
1216 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1217 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1218 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1219 | libdir localedir mandir | |
bae7f79e | 1220 | do |
81ecdfbb RW |
1221 | eval ac_val=\$$ac_var |
1222 | # Remove trailing slashes. | |
1223 | case $ac_val in | |
1224 | */ ) | |
1225 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1226 | eval $ac_var=\$ac_val;; | |
1227 | esac | |
1228 | # Be sure to have absolute directory names. | |
bae7f79e | 1229 | case $ac_val in |
81ecdfbb RW |
1230 | [\\/$]* | ?:[\\/]* ) continue;; |
1231 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1232 | esac |
81ecdfbb | 1233 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1234 | done |
1235 | ||
1236 | # There might be people who depend on the old broken behavior: `$host' | |
1237 | # used to hold the argument of --host etc. | |
1238 | # FIXME: To remove some day. | |
1239 | build=$build_alias | |
1240 | host=$host_alias | |
1241 | target=$target_alias | |
1242 | ||
1243 | # FIXME: To remove some day. | |
1244 | if test "x$host_alias" != x; then | |
1245 | if test "x$build_alias" = x; then | |
1246 | cross_compiling=maybe | |
81ecdfbb | 1247 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1248 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1249 | elif test "x$build_alias" != "x$host_alias"; then | |
1250 | cross_compiling=yes | |
1251 | fi | |
1252 | fi | |
1253 | ||
1254 | ac_tool_prefix= | |
1255 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1256 | ||
1257 | test "$silent" = yes && exec 6>/dev/null | |
1258 | ||
1259 | ||
81ecdfbb RW |
1260 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1261 | ac_ls_di=`ls -di .` && | |
1262 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1263 | as_fn_error "working directory cannot be determined" | |
1264 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1265 | as_fn_error "pwd does not report name of working directory" | |
1266 | ||
1267 | ||
bae7f79e ILT |
1268 | # Find the source files, if location was not specified. |
1269 | if test -z "$srcdir"; then | |
1270 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1271 | # Try the directory containing this script, then the parent directory. |
1272 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1273 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1274 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1275 | X"$as_myself" : 'X\(//\)$' \| \ | |
1276 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1277 | $as_echo X"$as_myself" | | |
1278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | /^X\(\/\/\)[^/].*/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | /^X\(\/\/\)$/{ | |
1287 | s//\1/ | |
1288 | q | |
1289 | } | |
1290 | /^X\(\/\).*/{ | |
1291 | s//\1/ | |
1292 | q | |
1293 | } | |
1294 | s/.*/./; q'` | |
bae7f79e | 1295 | srcdir=$ac_confdir |
81ecdfbb | 1296 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1297 | srcdir=.. |
1298 | fi | |
1299 | else | |
1300 | ac_srcdir_defaulted=no | |
1301 | fi | |
81ecdfbb RW |
1302 | if test ! -r "$srcdir/$ac_unique_file"; then |
1303 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1304 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1305 | fi | |
1306 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1307 | ac_abs_confdir=`( | |
1308 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1309 | pwd)` | |
1310 | # When building in place, set srcdir=. | |
1311 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1312 | srcdir=. | |
1313 | fi | |
1314 | # Remove unnecessary trailing slashes from srcdir. | |
1315 | # Double slashes in file names in object file debugging info | |
1316 | # mess up M-x gdb in Emacs. | |
1317 | case $srcdir in | |
1318 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1319 | esac | |
1320 | for ac_var in $ac_precious_vars; do | |
1321 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1322 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1323 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1324 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1325 | done | |
bae7f79e ILT |
1326 | |
1327 | # | |
1328 | # Report the --help message. | |
1329 | # | |
1330 | if test "$ac_init_help" = "long"; then | |
1331 | # Omit some internal or obsolete options to make the list less imposing. | |
1332 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1333 | cat <<_ACEOF | |
8486ee48 | 1334 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1335 | |
1336 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1337 | ||
1338 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1339 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1340 | ||
1341 | Defaults for the options are specified in brackets. | |
1342 | ||
1343 | Configuration: | |
1344 | -h, --help display this help and exit | |
1345 | --help=short display options specific to this package | |
1346 | --help=recursive display the short help of all the included packages | |
1347 | -V, --version display version information and exit | |
1348 | -q, --quiet, --silent do not print \`checking...' messages | |
1349 | --cache-file=FILE cache test results in FILE [disabled] | |
1350 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1351 | -n, --no-create do not create output files | |
1352 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1353 | ||
bae7f79e ILT |
1354 | Installation directories: |
1355 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1356 | [$ac_default_prefix] |
bae7f79e | 1357 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1358 | [PREFIX] |
bae7f79e ILT |
1359 | |
1360 | By default, \`make install' will install all the files in | |
1361 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1362 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1363 | for instance \`--prefix=\$HOME'. | |
1364 | ||
1365 | For better control, use the options below. | |
1366 | ||
1367 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1368 | --bindir=DIR user executables [EPREFIX/bin] |
1369 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1370 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1371 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1372 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1373 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1374 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1375 | --includedir=DIR C header files [PREFIX/include] | |
1376 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1377 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1378 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1379 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1380 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1381 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1382 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1383 | --htmldir=DIR html documentation [DOCDIR] | |
1384 | --dvidir=DIR dvi documentation [DOCDIR] | |
1385 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1386 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1387 | _ACEOF |
1388 | ||
1389 | cat <<\_ACEOF | |
1390 | ||
1391 | Program names: | |
1392 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1393 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1394 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1395 | ||
1396 | System types: | |
1397 | --build=BUILD configure for building on BUILD [guessed] | |
1398 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1399 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1400 | _ACEOF | |
1401 | fi | |
1402 | ||
1403 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1404 | case $ac_init_help in |
1405 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1406 | esac | |
bae7f79e ILT |
1407 | cat <<\_ACEOF |
1408 | ||
1409 | Optional Features: | |
81ecdfbb | 1410 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1411 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1412 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
4fda8867 | 1413 | --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]] |
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 | ||
4fda8867 NC |
3250 | # Check whether --enable-gold was given. |
3251 | if test "${enable_gold+set}" = set; then : | |
3252 | enableval=$enable_gold; case "${enableval}" in | |
3253 | yes) | |
3254 | install_as_default=gold | |
3255 | installed_linker=ld | |
3256 | ;; | |
3257 | both/gold) | |
3258 | install_as_default=yes | |
3259 | installed_linker=ld.gold | |
3260 | ;; | |
3261 | both|both/ld) | |
3262 | install_as_default=no | |
3263 | installed_linker=ld.gold | |
3264 | ;; | |
3265 | *) | |
3266 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
3267 | ;; | |
3268 | esac | |
3269 | else | |
3270 | install_as_default=gold | |
3271 | installed_linker=ld | |
3272 | fi | |
3273 | ||
3274 | ||
3275 | ||
3276 | ||
81ecdfbb RW |
3277 | # Check whether --enable-threads was given. |
3278 | if test "${enable_threads+set}" = set; then : | |
3279 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3280 | yes | "") threads=yes ;; |
3281 | no) threads=no ;; | |
3282 | *) threads=yes ;; | |
3283 | esac | |
3284 | else | |
3285 | threads=no | |
81ecdfbb RW |
3286 | fi |
3287 | ||
fe9a4c12 ILT |
3288 | if test "$threads" = "yes"; then |
3289 | ||
81ecdfbb | 3290 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3291 | |
3292 | fi | |
81ecdfbb | 3293 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3294 | THREADS_TRUE= |
3295 | THREADS_FALSE='#' | |
3296 | else | |
3297 | THREADS_TRUE='#' | |
3298 | THREADS_FALSE= | |
3299 | fi | |
3300 | ||
3301 | ||
81ecdfbb RW |
3302 | # Check whether --enable-plugins was given. |
3303 | if test "${enable_plugins+set}" = set; then : | |
3304 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3305 | yes | "") plugins=yes ;; |
3306 | no) plugins=no ;; | |
3307 | *) plugins=yes ;; | |
3308 | esac | |
3309 | else | |
3310 | plugins=no | |
81ecdfbb RW |
3311 | fi |
3312 | ||
89fc3421 CC |
3313 | if test "$plugins" = "yes"; then |
3314 | ||
81ecdfbb | 3315 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3316 | |
3317 | fi | |
81ecdfbb | 3318 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3319 | PLUGINS_TRUE= |
3320 | PLUGINS_FALSE='#' | |
3321 | else | |
3322 | PLUGINS_TRUE='#' | |
3323 | PLUGINS_FALSE= | |
3324 | fi | |
3325 | ||
3326 | ||
81ecdfbb RW |
3327 | # Check whether --enable-targets was given. |
3328 | if test "${enable_targets+set}" = set; then : | |
3329 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3330 | yes | "") |
81ecdfbb | 3331 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3332 | ;; |
3333 | no) | |
3334 | enable_targets= | |
3335 | ;; | |
3336 | *) | |
3337 | enable_targets=$enableval | |
3338 | ;; | |
3339 | esac | |
3340 | else | |
3341 | # For now, enable all targets by default | |
3342 | enable_targets=all | |
3343 | ||
81ecdfbb RW |
3344 | fi |
3345 | ||
193a53d9 ILT |
3346 | |
3347 | # Canonicalize the enabled targets. | |
3348 | if test -n "$enable_targets"; then | |
3349 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3350 | result=`$ac_config_sub $targ 2>/dev/null` | |
3351 | if test -n "$result"; then | |
3352 | canon_targets="$canon_targets $result" | |
3353 | else | |
3354 | # Permit unrecognized target names, like "all". | |
3355 | canon_targets="$canon_targets $targ" | |
3356 | fi | |
3357 | done | |
3358 | fi | |
3359 | ||
3360 | # See which specific instantiations we need. | |
6df6da4a ILT |
3361 | targetobjs= |
3362 | all_targets= | |
fbfba508 ILT |
3363 | default_machine= |
3364 | default_size= | |
3365 | default_big_endian= | |
36959681 | 3366 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3367 | targ_32_little= |
3368 | targ_32_big= | |
81ecdfbb RW |
3369 | targ_64_little= |
3370 | targ_64_big= | |
3371 | for targ in $target $canon_targets; do | |
3372 | if test "$targ" = "all"; then | |
3373 | targ_32_little=yes | |
3374 | targ_32_big=yes | |
3375 | targ_64_little=yes | |
3376 | targ_64_big=yes | |
3377 | all_targets=yes | |
3378 | else | |
3379 | . ${srcdir}/configure.tgt | |
bae7f79e | 3380 | |
81ecdfbb RW |
3381 | if test "$targ_obj" = "UNKNOWN"; then |
3382 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3383 | else | |
3384 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3385 | if test "$targ_extra_obj" != ""; then | |
3386 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3387 | fi | |
3388 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3389 | if test "$targ_big_endian" = "true" \ | |
3390 | -o "$targ_extra_big_endian" = "true"; then | |
3391 | targ_32_big=yes | |
3392 | fi | |
3393 | if test "$targ_big_endian" = "false" \ | |
3394 | -o "$targ_extra_big_endian" = "false"; then | |
3395 | targ_32_little=yes | |
3396 | fi | |
3397 | fi | |
3398 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3399 | if test "$targ_big_endian" = "true" \ | |
3400 | -o "$targ_extra_big_endian" = "true"; then | |
3401 | targ_64_big=yes | |
3402 | fi | |
3403 | if test "$targ_big_endian" = "false" \ | |
3404 | -o "$targ_extra_big_endian" = "false"; then | |
3405 | targ_64_little=yes | |
3406 | fi | |
3407 | fi | |
bae7f79e | 3408 | |
81ecdfbb RW |
3409 | if test "$target" = "$targ"; then |
3410 | default_machine=$targ_machine | |
3411 | default_size=$targ_size | |
3412 | default_big_endian=$targ_big_endian | |
3413 | default_osabi=$targ_osabi | |
364c7fa5 ILT |
3414 | |
3415 | if test "$targ_obj" = "arm"; then | |
3416 | DEFAULT_TARGET_ARM_TRUE= | |
3417 | DEFAULT_TARGET_ARM_FALSE='#' | |
3418 | else | |
3419 | DEFAULT_TARGET_ARM_TRUE='#' | |
3420 | DEFAULT_TARGET_ARM_FALSE= | |
3421 | fi | |
3422 | ||
3423 | if test "$targ_obj" = "i386"; then | |
3424 | DEFAULT_TARGET_I386_TRUE= | |
3425 | DEFAULT_TARGET_I386_FALSE='#' | |
3426 | else | |
3427 | DEFAULT_TARGET_I386_TRUE='#' | |
3428 | DEFAULT_TARGET_I386_FALSE= | |
3429 | fi | |
3430 | ||
3431 | if test "$targ_obj" = "powerpc"; then | |
3432 | DEFAULT_TARGET_POWERPC_TRUE= | |
3433 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3434 | else | |
3435 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3436 | DEFAULT_TARGET_POWERPC_FALSE= | |
3437 | fi | |
3438 | ||
3439 | if test "$targ_obj" = "sparc"; then | |
3440 | DEFAULT_TARGET_SPARC_TRUE= | |
3441 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3442 | else | |
3443 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3444 | DEFAULT_TARGET_SPARC_FALSE= | |
3445 | fi | |
3446 | ||
3447 | if test "$targ_obj" = "x86_64"; then | |
3448 | DEFAULT_TARGET_X86_64_TRUE= | |
3449 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3450 | else | |
3451 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3452 | DEFAULT_TARGET_X86_64_FALSE= | |
3453 | fi | |
3454 | ||
81ecdfbb RW |
3455 | fi |
3456 | fi | |
bae7f79e | 3457 | fi |
81ecdfbb | 3458 | done |
bae7f79e | 3459 | |
6cfaf60b | 3460 | # Remove any duplicates. |
9109c078 ILT |
3461 | to="" |
3462 | for t in $targetobjs; do | |
3463 | case " $to " in | |
3464 | *" $t "*) ;; | |
3465 | *) to="$to $t" ;; | |
3466 | esac | |
3467 | done | |
3468 | targetobjs=$to | |
6cfaf60b | 3469 | |
81ecdfbb | 3470 | if test -n "$targ_32_little"; then |
bae7f79e | 3471 | |
81ecdfbb | 3472 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3473 | |
537b5f51 | 3474 | fi |
81ecdfbb | 3475 | if test -n "$targ_32_big"; then |
537b5f51 | 3476 | |
81ecdfbb | 3477 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3478 | |
81ecdfbb RW |
3479 | fi |
3480 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3481 | |
81ecdfbb | 3482 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3483 | |
81ecdfbb RW |
3484 | fi |
3485 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3486 | |
81ecdfbb | 3487 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3488 | |
bae7f79e | 3489 | fi |
bae7f79e | 3490 | |
81ecdfbb RW |
3491 | if test -n "$all_targets"; then |
3492 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3493 | else | |
3494 | TARGETOBJS="$targetobjs" | |
3495 | fi | |
bae7f79e | 3496 | |
bae7f79e ILT |
3497 | |
3498 | ||
81ecdfbb RW |
3499 | cat >>confdefs.h <<_ACEOF |
3500 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3501 | _ACEOF | |
bae7f79e | 3502 | |
bae7f79e | 3503 | |
81ecdfbb RW |
3504 | cat >>confdefs.h <<_ACEOF |
3505 | #define GOLD_DEFAULT_SIZE $default_size | |
3506 | _ACEOF | |
bae7f79e | 3507 | |
bae7f79e | 3508 | |
81ecdfbb RW |
3509 | cat >>confdefs.h <<_ACEOF |
3510 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3511 | _ACEOF | |
bae7f79e | 3512 | |
bae7f79e | 3513 | |
81ecdfbb RW |
3514 | cat >>confdefs.h <<_ACEOF |
3515 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3516 | _ACEOF | |
bae7f79e ILT |
3517 | |
3518 | ||
81ecdfbb RW |
3519 | ac_ext=c |
3520 | ac_cpp='$CPP $CPPFLAGS' | |
3521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3524 | if test -n "$ac_tool_prefix"; then | |
3525 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3526 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3528 | $as_echo_n "checking for $ac_word... " >&6; } | |
3529 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3530 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3531 | else |
81ecdfbb RW |
3532 | if test -n "$CC"; then |
3533 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3534 | else | |
3535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3536 | for as_dir in $PATH | |
3537 | do | |
3538 | IFS=$as_save_IFS | |
3539 | test -z "$as_dir" && as_dir=. | |
3540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3542 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3544 | break 2 | |
3545 | fi | |
3546 | done | |
3547 | done | |
3548 | IFS=$as_save_IFS | |
bae7f79e | 3549 | |
81ecdfbb RW |
3550 | fi |
3551 | fi | |
3552 | CC=$ac_cv_prog_CC | |
3553 | if test -n "$CC"; then | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3555 | $as_echo "$CC" >&6; } | |
3556 | else | |
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3558 | $as_echo "no" >&6; } | |
3559 | fi | |
bae7f79e ILT |
3560 | |
3561 | ||
bae7f79e | 3562 | fi |
81ecdfbb RW |
3563 | if test -z "$ac_cv_prog_CC"; then |
3564 | ac_ct_CC=$CC | |
3565 | # Extract the first word of "gcc", so it can be a program name with args. | |
3566 | set dummy gcc; ac_word=$2 | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3568 | $as_echo_n "checking for $ac_word... " >&6; } | |
3569 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3570 | $as_echo_n "(cached) " >&6 | |
3571 | else | |
3572 | if test -n "$ac_ct_CC"; then | |
3573 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3574 | else | |
3575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3576 | for as_dir in $PATH | |
3577 | do | |
3578 | IFS=$as_save_IFS | |
3579 | test -z "$as_dir" && as_dir=. | |
3580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3582 | ac_cv_prog_ac_ct_CC="gcc" | |
3583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3584 | break 2 | |
3585 | fi | |
3586 | done | |
3587 | done | |
3588 | IFS=$as_save_IFS | |
bae7f79e | 3589 | |
81ecdfbb RW |
3590 | fi |
3591 | fi | |
3592 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3593 | if test -n "$ac_ct_CC"; then | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3595 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3596 | else |
81ecdfbb RW |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3598 | $as_echo "no" >&6; } | |
bae7f79e | 3599 | fi |
bae7f79e | 3600 | |
81ecdfbb RW |
3601 | if test "x$ac_ct_CC" = x; then |
3602 | CC="" | |
3603 | else | |
3604 | case $cross_compiling:$ac_tool_warned in | |
3605 | yes:) | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3607 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3608 | ac_tool_warned=yes ;; | |
bae7f79e | 3609 | esac |
81ecdfbb RW |
3610 | CC=$ac_ct_CC |
3611 | fi | |
bae7f79e | 3612 | else |
81ecdfbb | 3613 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3614 | fi |
3615 | ||
81ecdfbb RW |
3616 | if test -z "$CC"; then |
3617 | if test -n "$ac_tool_prefix"; then | |
3618 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3619 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3621 | $as_echo_n "checking for $ac_word... " >&6; } | |
3622 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3623 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3624 | else |
81ecdfbb RW |
3625 | if test -n "$CC"; then |
3626 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3627 | else | |
3628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3629 | for as_dir in $PATH |
3630 | do | |
3631 | IFS=$as_save_IFS | |
3632 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3633 | for ac_exec_ext in '' $ac_executable_extensions; do |
3634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3635 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3637 | break 2 |
3638 | fi | |
3639 | done | |
81ecdfbb RW |
3640 | done |
3641 | IFS=$as_save_IFS | |
bae7f79e | 3642 | |
bae7f79e | 3643 | fi |
81ecdfbb RW |
3644 | fi |
3645 | CC=$ac_cv_prog_CC | |
3646 | if test -n "$CC"; then | |
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3648 | $as_echo "$CC" >&6; } | |
bae7f79e | 3649 | else |
81ecdfbb RW |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3651 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3652 | fi |
3653 | ||
3654 | ||
81ecdfbb RW |
3655 | fi |
3656 | fi | |
3657 | if test -z "$CC"; then | |
3658 | # Extract the first word of "cc", so it can be a program name with args. | |
3659 | set dummy cc; ac_word=$2 | |
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3661 | $as_echo_n "checking for $ac_word... " >&6; } | |
3662 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3663 | $as_echo_n "(cached) " >&6 | |
3664 | else | |
3665 | if test -n "$CC"; then | |
3666 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3667 | else | |
3668 | ac_prog_rejected=no | |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3670 | for as_dir in $PATH | |
3671 | do | |
3672 | IFS=$as_save_IFS | |
3673 | test -z "$as_dir" && as_dir=. | |
3674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3676 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3677 | ac_prog_rejected=yes | |
3678 | continue | |
3679 | fi | |
3680 | ac_cv_prog_CC="cc" | |
3681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3682 | break 2 | |
3683 | fi | |
3684 | done | |
3685 | done | |
3686 | IFS=$as_save_IFS | |
bae7f79e | 3687 | |
81ecdfbb RW |
3688 | if test $ac_prog_rejected = yes; then |
3689 | # We found a bogon in the path, so make sure we never use it. | |
3690 | set dummy $ac_cv_prog_CC | |
3691 | shift | |
3692 | if test $# != 0; then | |
3693 | # We chose a different compiler from the bogus one. | |
3694 | # However, it has the same basename, so the bogon will be chosen | |
3695 | # first if we set CC to just the basename; use the full file name. | |
3696 | shift | |
3697 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3698 | fi |
81ecdfbb RW |
3699 | fi |
3700 | fi | |
3701 | fi | |
3702 | CC=$ac_cv_prog_CC | |
3703 | if test -n "$CC"; then | |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3705 | $as_echo "$CC" >&6; } | |
3706 | else | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3708 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3709 | fi |
3710 | ||
81ecdfbb RW |
3711 | |
3712 | fi | |
3713 | if test -z "$CC"; then | |
3714 | if test -n "$ac_tool_prefix"; then | |
3715 | for ac_prog in cl.exe | |
3716 | do | |
3717 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3718 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3720 | $as_echo_n "checking for $ac_word... " >&6; } | |
3721 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3722 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3723 | else |
81ecdfbb RW |
3724 | if test -n "$CC"; then |
3725 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3726 | else | |
3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3728 | for as_dir in $PATH | |
3729 | do | |
3730 | IFS=$as_save_IFS | |
3731 | test -z "$as_dir" && as_dir=. | |
3732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3734 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3736 | break 2 | |
3737 | fi | |
3738 | done | |
3739 | done | |
3740 | IFS=$as_save_IFS | |
3741 | ||
3742 | fi | |
3743 | fi | |
3744 | CC=$ac_cv_prog_CC | |
3745 | if test -n "$CC"; then | |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3747 | $as_echo "$CC" >&6; } | |
3748 | else | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3750 | $as_echo "no" >&6; } | |
bae7f79e | 3751 | fi |
bae7f79e | 3752 | |
81ecdfbb RW |
3753 | |
3754 | test -n "$CC" && break | |
3755 | done | |
3756 | fi | |
3757 | if test -z "$CC"; then | |
3758 | ac_ct_CC=$CC | |
3759 | for ac_prog in cl.exe | |
3760 | do | |
3761 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3762 | set dummy $ac_prog; ac_word=$2 | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3764 | $as_echo_n "checking for $ac_word... " >&6; } | |
3765 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3766 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3767 | else |
81ecdfbb RW |
3768 | if test -n "$ac_ct_CC"; then |
3769 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3770 | else | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3772 | for as_dir in $PATH | |
3773 | do | |
3774 | IFS=$as_save_IFS | |
3775 | test -z "$as_dir" && as_dir=. | |
3776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3778 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3780 | break 2 | |
3781 | fi | |
3782 | done | |
3783 | done | |
3784 | IFS=$as_save_IFS | |
3785 | ||
bae7f79e | 3786 | fi |
81ecdfbb RW |
3787 | fi |
3788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3789 | if test -n "$ac_ct_CC"; then | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3791 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3792 | else |
81ecdfbb RW |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3794 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3795 | fi |
3796 | ||
bae7f79e | 3797 | |
81ecdfbb RW |
3798 | test -n "$ac_ct_CC" && break |
3799 | done | |
bae7f79e | 3800 | |
81ecdfbb RW |
3801 | if test "x$ac_ct_CC" = x; then |
3802 | CC="" | |
bae7f79e | 3803 | else |
81ecdfbb RW |
3804 | case $cross_compiling:$ac_tool_warned in |
3805 | yes:) | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3808 | ac_tool_warned=yes ;; | |
3809 | esac | |
3810 | CC=$ac_ct_CC | |
bae7f79e | 3811 | fi |
bae7f79e ILT |
3812 | fi |
3813 | ||
bae7f79e | 3814 | fi |
bae7f79e | 3815 | |
81ecdfbb RW |
3816 | |
3817 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3819 | as_fn_error "no acceptable C compiler found in \$PATH | |
3820 | See \`config.log' for more details." "$LINENO" 5; } | |
3821 | ||
3822 | # Provide some information about the compiler. | |
3823 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3824 | set X $ac_compile | |
3825 | ac_compiler=$2 | |
3826 | for ac_option in --version -v -V -qversion; do | |
3827 | { { ac_try="$ac_compiler $ac_option >&5" | |
3828 | case "(($ac_try" in | |
3829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3830 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 3831 | esac |
81ecdfbb RW |
3832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3833 | $as_echo "$ac_try_echo"; } >&5 | |
3834 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3835 | ac_status=$? | |
3836 | if test -s conftest.err; then | |
3837 | sed '10a\ | |
3838 | ... rest of stderr output deleted ... | |
3839 | 10q' conftest.err >conftest.er1 | |
3840 | cat conftest.er1 >&5 | |
3841 | rm -f conftest.er1 conftest.err | |
3842 | fi | |
3843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3844 | test $ac_status = 0; } | |
3845 | done | |
3846 | ||
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3848 | /* end confdefs.h. */ | |
3849 | ||
3850 | int | |
3851 | main () | |
3852 | { | |
3853 | ||
3854 | ; | |
3855 | return 0; | |
3856 | } | |
3857 | _ACEOF | |
3858 | ac_clean_files_save=$ac_clean_files | |
3859 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3860 | # Try to create an executable without -o first, disregard a.out. | |
3861 | # It will help us diagnose broken compilers, and finding out an intuition | |
3862 | # of exeext. | |
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3864 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3865 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3866 | ||
3867 | # The possible output files: | |
3868 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3869 | ||
3870 | ac_rmfiles= | |
3871 | for ac_file in $ac_files | |
3872 | do | |
3873 | case $ac_file in | |
3874 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3875 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3876 | esac | |
3877 | done | |
3878 | rm -f $ac_rmfiles | |
3879 | ||
3880 | if { { ac_try="$ac_link_default" | |
3881 | case "(($ac_try" in | |
3882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3883 | *) ac_try_echo=$ac_try;; | |
3884 | esac | |
3885 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3886 | $as_echo "$ac_try_echo"; } >&5 | |
3887 | (eval "$ac_link_default") 2>&5 | |
3888 | ac_status=$? | |
3889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3890 | test $ac_status = 0; }; then : | |
3891 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3892 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3893 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3894 | # so that the user can short-circuit this test for compilers unknown to | |
3895 | # Autoconf. | |
3896 | for ac_file in $ac_files '' | |
3897 | do | |
3898 | test -f "$ac_file" || continue | |
3899 | case $ac_file in | |
3900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3901 | ;; | |
3902 | [ab].out ) | |
3903 | # We found the default executable, but exeext='' is most | |
3904 | # certainly right. | |
3905 | break;; | |
3906 | *.* ) | |
3907 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3908 | then :; else | |
3909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3910 | fi | |
3911 | # We set ac_cv_exeext here because the later test for it is not | |
3912 | # safe: cross compilers may not add the suffix if given an `-o' | |
3913 | # argument, so we may need to know it at that point already. | |
3914 | # Even if this section looks crufty: it has the advantage of | |
3915 | # actually working. | |
3916 | break;; | |
3917 | * ) | |
3918 | break;; | |
3919 | esac | |
3920 | done | |
3921 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3922 | ||
bae7f79e | 3923 | else |
81ecdfbb | 3924 | ac_file='' |
bae7f79e | 3925 | fi |
81ecdfbb RW |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3927 | $as_echo "$ac_file" >&6; } | |
3928 | if test -z "$ac_file"; then : | |
3929 | $as_echo "$as_me: failed program was:" >&5 | |
3930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 3931 | |
81ecdfbb RW |
3932 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3934 | { as_fn_set_status 77 | |
3935 | as_fn_error "C compiler cannot create executables | |
3936 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3937 | fi | |
3938 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 3939 | |
81ecdfbb RW |
3940 | # Check that the compiler produces executables we can run. If not, either |
3941 | # the compiler is broken, or we cross compile. | |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3943 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3944 | # If not cross compiling, check that we can run a simple program. | |
3945 | if test "$cross_compiling" != yes; then | |
3946 | if { ac_try='./$ac_file' | |
3947 | { { case "(($ac_try" in | |
3948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3949 | *) ac_try_echo=$ac_try;; | |
3950 | esac | |
3951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3952 | $as_echo "$ac_try_echo"; } >&5 | |
3953 | (eval "$ac_try") 2>&5 | |
3954 | ac_status=$? | |
3955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3956 | test $ac_status = 0; }; }; then | |
3957 | cross_compiling=no | |
3958 | else | |
3959 | if test "$cross_compiling" = maybe; then | |
3960 | cross_compiling=yes | |
bae7f79e | 3961 | else |
81ecdfbb RW |
3962 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3963 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3964 | as_fn_error "cannot run C compiled programs. | |
3965 | If you meant to cross compile, use \`--host'. | |
3966 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 3967 | fi |
bae7f79e | 3968 | fi |
81ecdfbb RW |
3969 | fi |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3971 | $as_echo "yes" >&6; } | |
bae7f79e | 3972 | |
81ecdfbb RW |
3973 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3974 | ac_clean_files=$ac_clean_files_save | |
3975 | # Check that the compiler produces executables we can run. If not, either | |
3976 | # the compiler is broken, or we cross compile. | |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3978 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3980 | $as_echo "$cross_compiling" >&6; } | |
3981 | ||
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3983 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3984 | if { { ac_try="$ac_link" | |
3985 | case "(($ac_try" in | |
3986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3987 | *) ac_try_echo=$ac_try;; | |
3988 | esac | |
3989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3990 | $as_echo "$ac_try_echo"; } >&5 | |
3991 | (eval "$ac_link") 2>&5 | |
3992 | ac_status=$? | |
3993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3994 | test $ac_status = 0; }; then : | |
3995 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3996 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3997 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3998 | # `rm'. | |
3999 | for ac_file in conftest.exe conftest conftest.*; do | |
4000 | test -f "$ac_file" || continue | |
4001 | case $ac_file in | |
4002 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4003 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4004 | break;; | |
4005 | * ) break;; | |
4006 | esac | |
4007 | done | |
4008 | else | |
4009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4011 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4012 | See \`config.log' for more details." "$LINENO" 5; } | |
4013 | fi | |
4014 | rm -f conftest$ac_cv_exeext | |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4016 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4017 | |
81ecdfbb RW |
4018 | rm -f conftest.$ac_ext |
4019 | EXEEXT=$ac_cv_exeext | |
4020 | ac_exeext=$EXEEXT | |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4022 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4023 | if test "${ac_cv_objext+set}" = set; then : | |
4024 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4025 | else |
81ecdfbb | 4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4027 | /* end confdefs.h. */ |
92e059d8 ILT |
4028 | |
4029 | int | |
4030 | main () | |
4031 | { | |
92e059d8 ILT |
4032 | |
4033 | ; | |
4034 | return 0; | |
4035 | } | |
4036 | _ACEOF | |
81ecdfbb RW |
4037 | rm -f conftest.o conftest.obj |
4038 | if { { ac_try="$ac_compile" | |
4039 | case "(($ac_try" in | |
4040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4041 | *) ac_try_echo=$ac_try;; | |
4042 | esac | |
4043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4044 | $as_echo "$ac_try_echo"; } >&5 | |
4045 | (eval "$ac_compile") 2>&5 | |
4046 | ac_status=$? | |
4047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4048 | test $ac_status = 0; }; then : | |
4049 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4050 | test -f "$ac_file" || continue; | |
4051 | case $ac_file in | |
4052 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4053 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4054 | break;; | |
4055 | esac | |
4056 | done | |
4057 | else | |
4058 | $as_echo "$as_me: failed program was:" >&5 | |
4059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4060 | ||
4061 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4062 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4063 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4064 | See \`config.log' for more details." "$LINENO" 5; } | |
4065 | fi | |
4066 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4067 | fi | |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4069 | $as_echo "$ac_cv_objext" >&6; } | |
4070 | OBJEXT=$ac_cv_objext | |
4071 | ac_objext=$OBJEXT | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4073 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4074 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4075 | $as_echo_n "(cached) " >&6 | |
4076 | else | |
4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4078 | /* end confdefs.h. */ |
92e059d8 ILT |
4079 | |
4080 | int | |
4081 | main () | |
4082 | { | |
81ecdfbb RW |
4083 | #ifndef __GNUC__ |
4084 | choke me | |
92e059d8 ILT |
4085 | #endif |
4086 | ||
4087 | ; | |
4088 | return 0; | |
4089 | } | |
4090 | _ACEOF | |
81ecdfbb RW |
4091 | if ac_fn_c_try_compile "$LINENO"; then : |
4092 | ac_compiler_gnu=yes | |
92e059d8 | 4093 | else |
81ecdfbb RW |
4094 | ac_compiler_gnu=no |
4095 | fi | |
4096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4097 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4098 | |
92e059d8 | 4099 | fi |
81ecdfbb RW |
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4101 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4102 | if test $ac_compiler_gnu = yes; then | |
4103 | GCC=yes | |
92e059d8 | 4104 | else |
81ecdfbb RW |
4105 | GCC= |
4106 | fi | |
4107 | ac_test_CFLAGS=${CFLAGS+set} | |
4108 | ac_save_CFLAGS=$CFLAGS | |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4110 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4111 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4112 | $as_echo_n "(cached) " >&6 | |
4113 | else | |
4114 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4115 | ac_c_werror_flag=yes | |
4116 | ac_cv_prog_cc_g=no | |
4117 | CFLAGS="-g" | |
4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4119 | /* end confdefs.h. */ |
81ecdfbb | 4120 | |
92e059d8 ILT |
4121 | int |
4122 | main () | |
4123 | { | |
81ecdfbb | 4124 | |
92e059d8 ILT |
4125 | ; |
4126 | return 0; | |
4127 | } | |
4128 | _ACEOF | |
81ecdfbb RW |
4129 | if ac_fn_c_try_compile "$LINENO"; then : |
4130 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4131 | else |
81ecdfbb RW |
4132 | CFLAGS="" |
4133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4134 | /* end confdefs.h. */ |
81ecdfbb | 4135 | |
92e059d8 ILT |
4136 | int |
4137 | main () | |
4138 | { | |
81ecdfbb RW |
4139 | |
4140 | ; | |
4141 | return 0; | |
92e059d8 ILT |
4142 | } |
4143 | _ACEOF | |
81ecdfbb RW |
4144 | if ac_fn_c_try_compile "$LINENO"; then : |
4145 | ||
92e059d8 | 4146 | else |
81ecdfbb RW |
4147 | ac_c_werror_flag=$ac_save_c_werror_flag |
4148 | CFLAGS="-g" | |
4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4150 | /* end confdefs.h. */ | |
92e059d8 | 4151 | |
81ecdfbb RW |
4152 | int |
4153 | main () | |
4154 | { | |
92e059d8 | 4155 | |
81ecdfbb RW |
4156 | ; |
4157 | return 0; | |
4158 | } | |
92e059d8 | 4159 | _ACEOF |
81ecdfbb RW |
4160 | if ac_fn_c_try_compile "$LINENO"; then : |
4161 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4162 | fi |
81ecdfbb | 4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4164 | fi |
81ecdfbb | 4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4166 | fi |
81ecdfbb RW |
4167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4168 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4169 | fi |
81ecdfbb RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4171 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4172 | if test "$ac_test_CFLAGS" = set; then | |
4173 | CFLAGS=$ac_save_CFLAGS | |
4174 | elif test $ac_cv_prog_cc_g = yes; then | |
4175 | if test "$GCC" = yes; then | |
4176 | CFLAGS="-g -O2" | |
4177 | else | |
4178 | CFLAGS="-g" | |
4179 | fi | |
6eee141f | 4180 | else |
81ecdfbb RW |
4181 | if test "$GCC" = yes; then |
4182 | CFLAGS="-O2" | |
4183 | else | |
4184 | CFLAGS= | |
4185 | fi | |
097ec620 | 4186 | fi |
81ecdfbb RW |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4188 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4189 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4190 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4191 | else |
81ecdfbb RW |
4192 | ac_cv_prog_cc_c89=no |
4193 | ac_save_CC=$CC | |
4194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4195 | /* end confdefs.h. */ | |
4196 | #include <stdarg.h> | |
4197 | #include <stdio.h> | |
4198 | #include <sys/types.h> | |
4199 | #include <sys/stat.h> | |
4200 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4201 | struct buf { int x; }; | |
4202 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4203 | static char *e (p, i) | |
4204 | char **p; | |
4205 | int i; | |
4206 | { | |
4207 | return p[i]; | |
4208 | } | |
4209 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4210 | { | |
4211 | char *s; | |
4212 | va_list v; | |
4213 | va_start (v,p); | |
4214 | s = g (p, va_arg (v,int)); | |
4215 | va_end (v); | |
4216 | return s; | |
4217 | } | |
6eee141f | 4218 | |
81ecdfbb RW |
4219 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4220 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4221 | These don't provoke an error unfortunately, instead are silently treated | |
4222 | as 'x'. The following induces an error, until -std is added to get | |
4223 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4224 | array size at least. It's necessary to write '\x00'==0 to get something | |
4225 | that's true only with -std. */ | |
4226 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4227 | |
81ecdfbb RW |
4228 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4229 | inside strings and character constants. */ | |
4230 | #define FOO(x) 'x' | |
4231 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4232 | |
81ecdfbb RW |
4233 | int test (int i, double x); |
4234 | struct s1 {int (*f) (int a);}; | |
4235 | struct s2 {int (*f) (double a);}; | |
4236 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4237 | int argc; | |
4238 | char **argv; | |
4239 | int | |
4240 | main () | |
4241 | { | |
4242 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4243 | ; | |
4244 | return 0; | |
4245 | } | |
097ec620 | 4246 | _ACEOF |
81ecdfbb RW |
4247 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4248 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4249 | do | |
4250 | CC="$ac_save_CC $ac_arg" | |
4251 | if ac_fn_c_try_compile "$LINENO"; then : | |
4252 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4253 | fi |
81ecdfbb RW |
4254 | rm -f core conftest.err conftest.$ac_objext |
4255 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4256 | done | |
4257 | rm -f conftest.$ac_ext | |
4258 | CC=$ac_save_CC | |
097ec620 | 4259 | |
097ec620 | 4260 | fi |
81ecdfbb RW |
4261 | # AC_CACHE_VAL |
4262 | case "x$ac_cv_prog_cc_c89" in | |
4263 | x) | |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4265 | $as_echo "none needed" >&6; } ;; | |
4266 | xno) | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4268 | $as_echo "unsupported" >&6; } ;; | |
4269 | *) | |
4270 | CC="$CC $ac_cv_prog_cc_c89" | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4272 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4273 | esac | |
4274 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4275 | |
81ecdfbb | 4276 | fi |
097ec620 | 4277 | |
81ecdfbb RW |
4278 | ac_ext=c |
4279 | ac_cpp='$CPP $CPPFLAGS' | |
4280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4283 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4284 | |
81ecdfbb | 4285 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4286 | |
155a0dd7 | 4287 | |
81ecdfbb RW |
4288 | am_make=${MAKE-make} |
4289 | cat > confinc << 'END' | |
4290 | am__doit: | |
4291 | @echo this is the am__doit target | |
4292 | .PHONY: am__doit | |
4293 | END | |
4294 | # If we don't find an include directive, just comment out the code. | |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4296 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4297 | am__include="#" | |
4298 | am__quote= | |
4299 | _am_result=none | |
4300 | # First try GNU make style include. | |
4301 | echo "include confinc" > confmf | |
4302 | # Ignore all kinds of additional output from `make'. | |
4303 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4304 | *the\ am__doit\ target*) | |
4305 | am__include=include | |
4306 | am__quote= | |
4307 | _am_result=GNU | |
4308 | ;; | |
4309 | esac | |
4310 | # Now try BSD make style include. | |
4311 | if test "$am__include" = "#"; then | |
4312 | echo '.include "confinc"' > confmf | |
4313 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4314 | *the\ am__doit\ target*) | |
4315 | am__include=.include | |
4316 | am__quote="\"" | |
4317 | _am_result=BSD | |
4318 | ;; | |
4319 | esac | |
155a0dd7 | 4320 | fi |
155a0dd7 | 4321 | |
155a0dd7 | 4322 | |
81ecdfbb RW |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4324 | $as_echo "$_am_result" >&6; } | |
4325 | rm -f confinc confmf | |
155a0dd7 | 4326 | |
81ecdfbb RW |
4327 | # Check whether --enable-dependency-tracking was given. |
4328 | if test "${enable_dependency_tracking+set}" = set; then : | |
4329 | enableval=$enable_dependency_tracking; | |
4330 | fi | |
155a0dd7 | 4331 | |
81ecdfbb RW |
4332 | if test "x$enable_dependency_tracking" != xno; then |
4333 | am_depcomp="$ac_aux_dir/depcomp" | |
4334 | AMDEPBACKSLASH='\' | |
4335 | fi | |
4336 | if test "x$enable_dependency_tracking" != xno; then | |
4337 | AMDEP_TRUE= | |
4338 | AMDEP_FALSE='#' | |
155a0dd7 | 4339 | else |
81ecdfbb RW |
4340 | AMDEP_TRUE='#' |
4341 | AMDEP_FALSE= | |
155a0dd7 ILT |
4342 | fi |
4343 | ||
4344 | ||
c2b45e22 | 4345 | |
81ecdfbb | 4346 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4347 | |
81ecdfbb RW |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4349 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4350 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4351 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4352 | else |
81ecdfbb RW |
4353 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4354 | # We make a subdir and do the tests there. Otherwise we can end up | |
4355 | # making bogus files that we don't know about and never remove. For | |
4356 | # instance it was reported that on HP-UX the gcc test will end up | |
4357 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4358 | # in D'. | |
4359 | mkdir conftest.dir | |
4360 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4361 | # using a relative directory. | |
4362 | cp "$am_depcomp" conftest.dir | |
4363 | cd conftest.dir | |
4364 | # We will build objects and dependencies in a subdirectory because | |
4365 | # it helps to detect inapplicable dependency modes. For instance | |
4366 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4367 | # side effect of compilation, but ICC will put the dependencies in | |
4368 | # the current directory while Tru64 will put them in the object | |
4369 | # directory. | |
4370 | mkdir sub | |
c2b45e22 | 4371 | |
81ecdfbb RW |
4372 | am_cv_CC_dependencies_compiler_type=none |
4373 | if test "$am_compiler_list" = ""; then | |
4374 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4375 | fi | |
4376 | am__universal=false | |
4377 | case " $depcc " in #( | |
4378 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4379 | esac | |
c2b45e22 | 4380 | |
81ecdfbb RW |
4381 | for depmode in $am_compiler_list; do |
4382 | # Setup a source with many dependencies, because some compilers | |
4383 | # like to wrap large dependency lists on column 80 (with \), and | |
4384 | # we should not choose a depcomp mode which is confused by this. | |
4385 | # | |
4386 | # We need to recreate these files for each test, as the compiler may | |
4387 | # overwrite some of them when testing with obscure command lines. | |
4388 | # This happens at least with the AIX C compiler. | |
4389 | : > sub/conftest.c | |
4390 | for i in 1 2 3 4 5 6; do | |
4391 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4392 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4393 | # Solaris 8's {/usr,}/bin/sh. | |
4394 | touch sub/conftst$i.h | |
4395 | done | |
4396 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4397 | |
81ecdfbb RW |
4398 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4399 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4400 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4401 | # versions had trouble with output in subdirs | |
4402 | am__obj=sub/conftest.${OBJEXT-o} | |
4403 | am__minus_obj="-o $am__obj" | |
4404 | case $depmode in | |
4405 | gcc) | |
4406 | # This depmode causes a compiler race in universal mode. | |
4407 | test "$am__universal" = false || continue | |
4408 | ;; | |
4409 | nosideeffect) | |
4410 | # after this tag, mechanisms are not by side-effect, so they'll | |
4411 | # only be used when explicitly requested | |
4412 | if test "x$enable_dependency_tracking" = xyes; then | |
4413 | continue | |
4414 | else | |
4415 | break | |
4416 | fi | |
4417 | ;; | |
4418 | msvisualcpp | msvcmsys) | |
4419 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4420 | # not run yet. These depmodes are late enough in the game, and | |
4421 | # so weak that their functioning should not be impacted. | |
4422 | am__obj=conftest.${OBJEXT-o} | |
4423 | am__minus_obj= | |
4424 | ;; | |
4425 | none) break ;; | |
4426 | esac | |
4427 | if depmode=$depmode \ | |
4428 | source=sub/conftest.c object=$am__obj \ | |
4429 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4430 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4431 | >/dev/null 2>conftest.err && | |
4432 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4433 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4434 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4435 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4436 | # icc doesn't choke on unknown options, it will just issue warnings | |
4437 | # or remarks (even with -Werror). So we grep stderr for any message | |
4438 | # that says an option was ignored or not supported. | |
4439 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4440 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4441 | # The diagnosis changed in icc 8.0: | |
4442 | # icc: Command line remark: option '-MP' not supported | |
4443 | if (grep 'ignoring option' conftest.err || | |
4444 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4445 | am_cv_CC_dependencies_compiler_type=$depmode | |
4446 | break | |
4447 | fi | |
4448 | fi | |
4449 | done | |
c2b45e22 | 4450 | |
81ecdfbb RW |
4451 | cd .. |
4452 | rm -rf conftest.dir | |
c2b45e22 | 4453 | else |
81ecdfbb | 4454 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4455 | fi |
c2b45e22 | 4456 | |
81ecdfbb RW |
4457 | fi |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4459 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4460 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4461 | |
81ecdfbb RW |
4462 | if |
4463 | test "x$enable_dependency_tracking" != xno \ | |
4464 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4465 | am__fastdepCC_TRUE= | |
4466 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4467 | else |
81ecdfbb RW |
4468 | am__fastdepCC_TRUE='#' |
4469 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4470 | fi |
4471 | ||
4472 | ||
81ecdfbb RW |
4473 | ac_ext=cpp |
4474 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4478 | if test -z "$CXX"; then | |
4479 | if test -n "$CCC"; then | |
4480 | CXX=$CCC | |
4481 | else | |
4482 | if test -n "$ac_tool_prefix"; then | |
4483 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4484 | do | |
4485 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4486 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4488 | $as_echo_n "checking for $ac_word... " >&6; } | |
4489 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4490 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4491 | else |
81ecdfbb RW |
4492 | if test -n "$CXX"; then |
4493 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4494 | else |
81ecdfbb RW |
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4496 | for as_dir in $PATH | |
4497 | do | |
4498 | IFS=$as_save_IFS | |
4499 | test -z "$as_dir" && as_dir=. | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4502 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4504 | break 2 | |
4505 | fi | |
4506 | done | |
4507 | done | |
4508 | IFS=$as_save_IFS | |
2fd32231 | 4509 | |
2fd32231 | 4510 | fi |
2fd32231 | 4511 | fi |
81ecdfbb RW |
4512 | CXX=$ac_cv_prog_CXX |
4513 | if test -n "$CXX"; then | |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4515 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4516 | else |
81ecdfbb RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4518 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4519 | fi |
4520 | ||
4521 | ||
81ecdfbb RW |
4522 | test -n "$CXX" && break |
4523 | done | |
4524 | fi | |
4525 | if test -z "$CXX"; then | |
4526 | ac_ct_CXX=$CXX | |
4527 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4528 | do | |
4529 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4530 | set dummy $ac_prog; ac_word=$2 | |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4532 | $as_echo_n "checking for $ac_word... " >&6; } | |
4533 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4534 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4535 | else |
81ecdfbb RW |
4536 | if test -n "$ac_ct_CXX"; then |
4537 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4538 | else |
81ecdfbb RW |
4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4540 | for as_dir in $PATH | |
4541 | do | |
4542 | IFS=$as_save_IFS | |
4543 | test -z "$as_dir" && as_dir=. | |
4544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4546 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4548 | break 2 | |
4549 | fi | |
4550 | done | |
4551 | done | |
4552 | IFS=$as_save_IFS | |
1d1f116d | 4553 | |
1d1f116d | 4554 | fi |
1d1f116d | 4555 | fi |
81ecdfbb RW |
4556 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4557 | if test -n "$ac_ct_CXX"; then | |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4559 | $as_echo "$ac_ct_CXX" >&6; } | |
4560 | else | |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4562 | $as_echo "no" >&6; } | |
1d1f116d CD |
4563 | fi |
4564 | ||
4565 | ||
81ecdfbb RW |
4566 | test -n "$ac_ct_CXX" && break |
4567 | done | |
63402fe4 | 4568 | |
81ecdfbb RW |
4569 | if test "x$ac_ct_CXX" = x; then |
4570 | CXX="g++" | |
4571 | else | |
4572 | case $cross_compiling:$ac_tool_warned in | |
4573 | yes:) | |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4576 | ac_tool_warned=yes ;; | |
04bf7072 | 4577 | esac |
81ecdfbb RW |
4578 | CXX=$ac_ct_CXX |
4579 | fi | |
4580 | fi | |
04bf7072 | 4581 | |
81ecdfbb | 4582 | fi |
bae7f79e | 4583 | fi |
81ecdfbb RW |
4584 | # Provide some information about the compiler. |
4585 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4586 | set X $ac_compile | |
4587 | ac_compiler=$2 | |
4588 | for ac_option in --version -v -V -qversion; do | |
4589 | { { ac_try="$ac_compiler $ac_option >&5" | |
4590 | case "(($ac_try" in | |
4591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4592 | *) ac_try_echo=$ac_try;; | |
4593 | esac | |
4594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4595 | $as_echo "$ac_try_echo"; } >&5 | |
4596 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4597 | ac_status=$? | |
4598 | if test -s conftest.err; then | |
4599 | sed '10a\ | |
4600 | ... rest of stderr output deleted ... | |
4601 | 10q' conftest.err >conftest.er1 | |
4602 | cat conftest.er1 >&5 | |
4603 | rm -f conftest.er1 conftest.err | |
4604 | fi | |
4605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4606 | test $ac_status = 0; } | |
4607 | done | |
bae7f79e | 4608 | |
81ecdfbb RW |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4610 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4611 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4612 | $as_echo_n "(cached) " >&6 | |
4613 | else | |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4615 | /* end confdefs.h. */ | |
4616 | ||
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | #ifndef __GNUC__ | |
4621 | choke me | |
4622 | #endif | |
4623 | ||
4624 | ; | |
4625 | return 0; | |
4626 | } | |
4627 | _ACEOF | |
4628 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4629 | ac_compiler_gnu=yes | |
4630 | else | |
4631 | ac_compiler_gnu=no | |
bae7f79e | 4632 | fi |
81ecdfbb RW |
4633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4634 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4635 | |
bae7f79e | 4636 | fi |
81ecdfbb RW |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4638 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4639 | if test $ac_compiler_gnu = yes; then | |
4640 | GXX=yes | |
4641 | else | |
4642 | GXX= | |
4643 | fi | |
4644 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4645 | ac_save_CXXFLAGS=$CXXFLAGS | |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4647 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4648 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4649 | $as_echo_n "(cached) " >&6 | |
4650 | else | |
4651 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4652 | ac_cxx_werror_flag=yes | |
4653 | ac_cv_prog_cxx_g=no | |
4654 | CXXFLAGS="-g" | |
4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4656 | /* end confdefs.h. */ | |
bae7f79e | 4657 | |
81ecdfbb RW |
4658 | int |
4659 | main () | |
4660 | { | |
bae7f79e | 4661 | |
81ecdfbb RW |
4662 | ; |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
4666 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4667 | ac_cv_prog_cxx_g=yes | |
4668 | else | |
4669 | CXXFLAGS="" | |
4670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4671 | /* end confdefs.h. */ | |
bae7f79e | 4672 | |
81ecdfbb RW |
4673 | int |
4674 | main () | |
4675 | { | |
bae7f79e | 4676 | |
81ecdfbb RW |
4677 | ; |
4678 | return 0; | |
4679 | } | |
4680 | _ACEOF | |
4681 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4682 | |
81ecdfbb RW |
4683 | else |
4684 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4685 | CXXFLAGS="-g" | |
4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4687 | /* end confdefs.h. */ | |
bae7f79e | 4688 | |
81ecdfbb RW |
4689 | int |
4690 | main () | |
4691 | { | |
bae7f79e | 4692 | |
81ecdfbb RW |
4693 | ; |
4694 | return 0; | |
4695 | } | |
4696 | _ACEOF | |
4697 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4698 | ac_cv_prog_cxx_g=yes | |
4699 | fi | |
4700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4701 | fi | |
4702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4703 | fi | |
4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4705 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4706 | fi | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4708 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4709 | if test "$ac_test_CXXFLAGS" = set; then | |
4710 | CXXFLAGS=$ac_save_CXXFLAGS | |
4711 | elif test $ac_cv_prog_cxx_g = yes; then | |
4712 | if test "$GXX" = yes; then | |
4713 | CXXFLAGS="-g -O2" | |
4714 | else | |
4715 | CXXFLAGS="-g" | |
4716 | fi | |
4717 | else | |
4718 | if test "$GXX" = yes; then | |
4719 | CXXFLAGS="-O2" | |
4720 | else | |
4721 | CXXFLAGS= | |
4722 | fi | |
4723 | fi | |
4724 | ac_ext=c | |
4725 | ac_cpp='$CPP $CPPFLAGS' | |
4726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4729 | |
81ecdfbb | 4730 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4731 | |
81ecdfbb RW |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4733 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4734 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4735 | $as_echo_n "(cached) " >&6 | |
4736 | else | |
4737 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4738 | # We make a subdir and do the tests there. Otherwise we can end up | |
4739 | # making bogus files that we don't know about and never remove. For | |
4740 | # instance it was reported that on HP-UX the gcc test will end up | |
4741 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4742 | # in D'. | |
4743 | mkdir conftest.dir | |
4744 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4745 | # using a relative directory. | |
4746 | cp "$am_depcomp" conftest.dir | |
4747 | cd conftest.dir | |
4748 | # We will build objects and dependencies in a subdirectory because | |
4749 | # it helps to detect inapplicable dependency modes. For instance | |
4750 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4751 | # side effect of compilation, but ICC will put the dependencies in | |
4752 | # the current directory while Tru64 will put them in the object | |
4753 | # directory. | |
4754 | mkdir sub | |
bae7f79e | 4755 | |
81ecdfbb RW |
4756 | am_cv_CXX_dependencies_compiler_type=none |
4757 | if test "$am_compiler_list" = ""; then | |
4758 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4759 | fi | |
4760 | am__universal=false | |
4761 | case " $depcc " in #( | |
4762 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4763 | esac | |
bae7f79e | 4764 | |
81ecdfbb RW |
4765 | for depmode in $am_compiler_list; do |
4766 | # Setup a source with many dependencies, because some compilers | |
4767 | # like to wrap large dependency lists on column 80 (with \), and | |
4768 | # we should not choose a depcomp mode which is confused by this. | |
4769 | # | |
4770 | # We need to recreate these files for each test, as the compiler may | |
4771 | # overwrite some of them when testing with obscure command lines. | |
4772 | # This happens at least with the AIX C compiler. | |
4773 | : > sub/conftest.c | |
4774 | for i in 1 2 3 4 5 6; do | |
4775 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4776 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4777 | # Solaris 8's {/usr,}/bin/sh. | |
4778 | touch sub/conftst$i.h | |
4779 | done | |
4780 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4781 | |
81ecdfbb RW |
4782 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4783 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4784 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4785 | # versions had trouble with output in subdirs | |
4786 | am__obj=sub/conftest.${OBJEXT-o} | |
4787 | am__minus_obj="-o $am__obj" | |
4788 | case $depmode in | |
4789 | gcc) | |
4790 | # This depmode causes a compiler race in universal mode. | |
4791 | test "$am__universal" = false || continue | |
4792 | ;; | |
4793 | nosideeffect) | |
4794 | # after this tag, mechanisms are not by side-effect, so they'll | |
4795 | # only be used when explicitly requested | |
4796 | if test "x$enable_dependency_tracking" = xyes; then | |
4797 | continue | |
4798 | else | |
4799 | break | |
4800 | fi | |
4801 | ;; | |
4802 | msvisualcpp | msvcmsys) | |
4803 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4804 | # not run yet. These depmodes are late enough in the game, and | |
4805 | # so weak that their functioning should not be impacted. | |
4806 | am__obj=conftest.${OBJEXT-o} | |
4807 | am__minus_obj= | |
4808 | ;; | |
4809 | none) break ;; | |
4810 | esac | |
4811 | if depmode=$depmode \ | |
4812 | source=sub/conftest.c object=$am__obj \ | |
4813 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4814 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4815 | >/dev/null 2>conftest.err && | |
4816 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4817 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4818 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4819 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4820 | # icc doesn't choke on unknown options, it will just issue warnings | |
4821 | # or remarks (even with -Werror). So we grep stderr for any message | |
4822 | # that says an option was ignored or not supported. | |
4823 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4824 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4825 | # The diagnosis changed in icc 8.0: | |
4826 | # icc: Command line remark: option '-MP' not supported | |
4827 | if (grep 'ignoring option' conftest.err || | |
4828 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4829 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4830 | break | |
4831 | fi | |
4832 | fi | |
4833 | done | |
9201d894 | 4834 | |
81ecdfbb RW |
4835 | cd .. |
4836 | rm -rf conftest.dir | |
4837 | else | |
4838 | am_cv_CXX_dependencies_compiler_type=none | |
4839 | fi | |
9201d894 | 4840 | |
81ecdfbb RW |
4841 | fi |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4843 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4844 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 4845 | |
81ecdfbb RW |
4846 | if |
4847 | test "x$enable_dependency_tracking" != xno \ | |
4848 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4849 | am__fastdepCXX_TRUE= | |
4850 | am__fastdepCXX_FALSE='#' | |
4851 | else | |
4852 | am__fastdepCXX_TRUE='#' | |
4853 | am__fastdepCXX_FALSE= | |
4854 | fi | |
9201d894 | 4855 | |
9201d894 | 4856 | |
81ecdfbb RW |
4857 | for ac_prog in 'bison -y' byacc |
4858 | do | |
4859 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4860 | set dummy $ac_prog; ac_word=$2 | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4862 | $as_echo_n "checking for $ac_word... " >&6; } | |
4863 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
4864 | $as_echo_n "(cached) " >&6 | |
9201d894 | 4865 | else |
81ecdfbb RW |
4866 | if test -n "$YACC"; then |
4867 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4868 | else | |
4869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4870 | for as_dir in $PATH | |
4871 | do | |
4872 | IFS=$as_save_IFS | |
4873 | test -z "$as_dir" && as_dir=. | |
4874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4876 | ac_cv_prog_YACC="$ac_prog" | |
4877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4878 | break 2 | |
4879 | fi | |
4880 | done | |
4881 | done | |
4882 | IFS=$as_save_IFS | |
9201d894 | 4883 | |
9201d894 | 4884 | fi |
9201d894 | 4885 | fi |
81ecdfbb RW |
4886 | YACC=$ac_cv_prog_YACC |
4887 | if test -n "$YACC"; then | |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
4889 | $as_echo "$YACC" >&6; } | |
4890 | else | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4892 | $as_echo "no" >&6; } | |
9201d894 | 4893 | fi |
9201d894 | 4894 | |
2f35ab9b | 4895 | |
81ecdfbb RW |
4896 | test -n "$YACC" && break |
4897 | done | |
4898 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 4899 | |
81ecdfbb RW |
4900 | if test -n "$ac_tool_prefix"; then |
4901 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4902 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4904 | $as_echo_n "checking for $ac_word... " >&6; } | |
4905 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4906 | $as_echo_n "(cached) " >&6 | |
4907 | else | |
4908 | if test -n "$RANLIB"; then | |
4909 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4910 | else | |
4911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4912 | for as_dir in $PATH | |
82dcae9d | 4913 | do |
81ecdfbb RW |
4914 | IFS=$as_save_IFS |
4915 | test -z "$as_dir" && as_dir=. | |
4916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4918 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4920 | break 2 | |
4921 | fi | |
4922 | done | |
4923 | done | |
4924 | IFS=$as_save_IFS | |
82dcae9d | 4925 | |
81ecdfbb RW |
4926 | fi |
4927 | fi | |
4928 | RANLIB=$ac_cv_prog_RANLIB | |
4929 | if test -n "$RANLIB"; then | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4931 | $as_echo "$RANLIB" >&6; } | |
4932 | else | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4934 | $as_echo "no" >&6; } | |
4935 | fi | |
82dcae9d | 4936 | |
82dcae9d | 4937 | |
81ecdfbb RW |
4938 | fi |
4939 | if test -z "$ac_cv_prog_RANLIB"; then | |
4940 | ac_ct_RANLIB=$RANLIB | |
4941 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4942 | set dummy ranlib; ac_word=$2 | |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4944 | $as_echo_n "checking for $ac_word... " >&6; } | |
4945 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4946 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 4947 | else |
81ecdfbb RW |
4948 | if test -n "$ac_ct_RANLIB"; then |
4949 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4950 | else | |
4951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4952 | for as_dir in $PATH | |
4953 | do | |
4954 | IFS=$as_save_IFS | |
4955 | test -z "$as_dir" && as_dir=. | |
4956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4958 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4960 | break 2 | |
4961 | fi | |
4962 | done | |
4963 | done | |
4964 | IFS=$as_save_IFS | |
82dcae9d | 4965 | |
82dcae9d | 4966 | fi |
82dcae9d | 4967 | fi |
81ecdfbb RW |
4968 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4969 | if test -n "$ac_ct_RANLIB"; then | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4971 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 4972 | else |
81ecdfbb RW |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4974 | $as_echo "no" >&6; } | |
4975 | fi | |
4976 | ||
4977 | if test "x$ac_ct_RANLIB" = x; then | |
4978 | RANLIB=":" | |
4979 | else | |
4980 | case $cross_compiling:$ac_tool_warned in | |
4981 | yes:) | |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4983 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4984 | ac_tool_warned=yes ;; | |
82dcae9d | 4985 | esac |
81ecdfbb RW |
4986 | RANLIB=$ac_ct_RANLIB |
4987 | fi | |
4988 | else | |
4989 | RANLIB="$ac_cv_prog_RANLIB" | |
4990 | fi | |
82dcae9d | 4991 | |
81ecdfbb RW |
4992 | |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4994 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4995 | LN_S=$as_ln_s | |
4996 | if test "$LN_S" = "ln -s"; then | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4998 | $as_echo "yes" >&6; } | |
4999 | else | |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5001 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5002 | fi |
82dcae9d ILT |
5003 | |
5004 | ||
5005 | ||
9a0910c3 ILT |
5006 | ac_ext=c |
5007 | ac_cpp='$CPP $CPPFLAGS' | |
5008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5012 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5013 | # On Suns, sometimes $CPP names a directory. |
5014 | if test -n "$CPP" && test -d "$CPP"; then | |
5015 | CPP= | |
5016 | fi | |
5017 | if test -z "$CPP"; then | |
81ecdfbb RW |
5018 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5019 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5020 | else |
5021 | # Double quotes because CPP needs to be expanded | |
5022 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5023 | do | |
5024 | ac_preproc_ok=false | |
5025 | for ac_c_preproc_warn_flag in '' yes | |
5026 | do | |
5027 | # Use a header file that comes with gcc, so configuring glibc | |
5028 | # with a fresh cross-compiler works. | |
5029 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5030 | # <limits.h> exists even on freestanding compilers. | |
5031 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5032 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5034 | /* end confdefs.h. */ |
5035 | #ifdef __STDC__ | |
5036 | # include <limits.h> | |
5037 | #else | |
5038 | # include <assert.h> | |
5039 | #endif | |
5040 | Syntax error | |
5041 | _ACEOF | |
81ecdfbb | 5042 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5043 | |
81ecdfbb | 5044 | else |
9a0910c3 ILT |
5045 | # Broken: fails on valid input. |
5046 | continue | |
5047 | fi | |
5048 | rm -f conftest.err conftest.$ac_ext | |
5049 | ||
81ecdfbb | 5050 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5051 | # can be detected and how. |
81ecdfbb | 5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5053 | /* end confdefs.h. */ |
5054 | #include <ac_nonexistent.h> | |
5055 | _ACEOF | |
81ecdfbb | 5056 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5057 | # Broken: success on invalid input. |
5058 | continue | |
5059 | else | |
9a0910c3 ILT |
5060 | # Passes both tests. |
5061 | ac_preproc_ok=: | |
5062 | break | |
5063 | fi | |
5064 | rm -f conftest.err conftest.$ac_ext | |
5065 | ||
5066 | done | |
5067 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5068 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5069 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5070 | break |
5071 | fi | |
5072 | ||
5073 | done | |
5074 | ac_cv_prog_CPP=$CPP | |
5075 | ||
5076 | fi | |
5077 | CPP=$ac_cv_prog_CPP | |
5078 | else | |
5079 | ac_cv_prog_CPP=$CPP | |
5080 | fi | |
81ecdfbb RW |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5082 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5083 | ac_preproc_ok=false |
5084 | for ac_c_preproc_warn_flag in '' yes | |
5085 | do | |
5086 | # Use a header file that comes with gcc, so configuring glibc | |
5087 | # with a fresh cross-compiler works. | |
5088 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5089 | # <limits.h> exists even on freestanding compilers. | |
5090 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5091 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5093 | /* end confdefs.h. */ |
5094 | #ifdef __STDC__ | |
5095 | # include <limits.h> | |
5096 | #else | |
5097 | # include <assert.h> | |
5098 | #endif | |
5099 | Syntax error | |
5100 | _ACEOF | |
81ecdfbb | 5101 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5102 | |
81ecdfbb | 5103 | else |
9a0910c3 ILT |
5104 | # Broken: fails on valid input. |
5105 | continue | |
5106 | fi | |
5107 | rm -f conftest.err conftest.$ac_ext | |
5108 | ||
81ecdfbb | 5109 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5110 | # can be detected and how. |
81ecdfbb | 5111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5112 | /* end confdefs.h. */ |
5113 | #include <ac_nonexistent.h> | |
5114 | _ACEOF | |
81ecdfbb | 5115 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5116 | # Broken: success on invalid input. |
5117 | continue | |
5118 | else | |
9a0910c3 ILT |
5119 | # Passes both tests. |
5120 | ac_preproc_ok=: | |
5121 | break | |
5122 | fi | |
5123 | rm -f conftest.err conftest.$ac_ext | |
5124 | ||
5125 | done | |
5126 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5127 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5128 | if $ac_preproc_ok; then : |
5129 | ||
9a0910c3 | 5130 | else |
81ecdfbb RW |
5131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5132 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5133 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5134 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5135 | fi |
5136 | ||
5137 | ac_ext=c | |
5138 | ac_cpp='$CPP $CPPFLAGS' | |
5139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5142 | ||
5143 | ||
81ecdfbb RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5145 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5146 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5147 | $as_echo_n "(cached) " >&6 | |
5148 | else | |
5149 | if test -z "$GREP"; then | |
5150 | ac_path_GREP_found=false | |
5151 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5153 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5154 | do | |
5155 | IFS=$as_save_IFS | |
5156 | test -z "$as_dir" && as_dir=. | |
5157 | for ac_prog in grep ggrep; do | |
5158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5159 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5160 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5161 | # Check for GNU ac_path_GREP and select it if it is found. | |
5162 | # Check for GNU $ac_path_GREP | |
5163 | case `"$ac_path_GREP" --version 2>&1` in | |
5164 | *GNU*) | |
5165 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5166 | *) | |
5167 | ac_count=0 | |
5168 | $as_echo_n 0123456789 >"conftest.in" | |
5169 | while : | |
5170 | do | |
5171 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5172 | mv "conftest.tmp" "conftest.in" | |
5173 | cp "conftest.in" "conftest.nl" | |
5174 | $as_echo 'GREP' >> "conftest.nl" | |
5175 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5176 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5177 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5178 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5179 | # Best one so far, save it but keep looking for a better one | |
5180 | ac_cv_path_GREP="$ac_path_GREP" | |
5181 | ac_path_GREP_max=$ac_count | |
5182 | fi | |
5183 | # 10*(2^10) chars as input seems more than enough | |
5184 | test $ac_count -gt 10 && break | |
5185 | done | |
5186 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5187 | esac | |
5188 | ||
5189 | $ac_path_GREP_found && break 3 | |
5190 | done | |
5191 | done | |
5192 | done | |
5193 | IFS=$as_save_IFS | |
5194 | if test -z "$ac_cv_path_GREP"; then | |
5195 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5196 | fi | |
5197 | else | |
5198 | ac_cv_path_GREP=$GREP | |
5199 | fi | |
5200 | ||
5201 | fi | |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5203 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5204 | GREP="$ac_cv_path_GREP" | |
5205 | ||
5206 | ||
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5208 | $as_echo_n "checking for egrep... " >&6; } | |
5209 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5210 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5211 | else |
81ecdfbb RW |
5212 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5213 | then ac_cv_path_EGREP="$GREP -E" | |
5214 | else | |
5215 | if test -z "$EGREP"; then | |
5216 | ac_path_EGREP_found=false | |
5217 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5219 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5220 | do | |
5221 | IFS=$as_save_IFS | |
5222 | test -z "$as_dir" && as_dir=. | |
5223 | for ac_prog in egrep; do | |
5224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5225 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5226 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5227 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5228 | # Check for GNU $ac_path_EGREP | |
5229 | case `"$ac_path_EGREP" --version 2>&1` in | |
5230 | *GNU*) | |
5231 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5232 | *) | |
5233 | ac_count=0 | |
5234 | $as_echo_n 0123456789 >"conftest.in" | |
5235 | while : | |
5236 | do | |
5237 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5238 | mv "conftest.tmp" "conftest.in" | |
5239 | cp "conftest.in" "conftest.nl" | |
5240 | $as_echo 'EGREP' >> "conftest.nl" | |
5241 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5242 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5243 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5244 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5245 | # Best one so far, save it but keep looking for a better one | |
5246 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5247 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5248 | fi |
81ecdfbb RW |
5249 | # 10*(2^10) chars as input seems more than enough |
5250 | test $ac_count -gt 10 && break | |
5251 | done | |
5252 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5253 | esac | |
5254 | ||
5255 | $ac_path_EGREP_found && break 3 | |
5256 | done | |
5257 | done | |
5258 | done | |
5259 | IFS=$as_save_IFS | |
5260 | if test -z "$ac_cv_path_EGREP"; then | |
5261 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5262 | fi | |
5263 | else | |
5264 | ac_cv_path_EGREP=$EGREP | |
5265 | fi | |
5266 | ||
5267 | fi | |
9a0910c3 | 5268 | fi |
81ecdfbb RW |
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5270 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5271 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5272 | |
5273 | ||
81ecdfbb RW |
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5275 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5276 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5277 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5278 | else |
81ecdfbb | 5279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5280 | /* end confdefs.h. */ |
5281 | #include <stdlib.h> | |
5282 | #include <stdarg.h> | |
5283 | #include <string.h> | |
5284 | #include <float.h> | |
5285 | ||
5286 | int | |
5287 | main () | |
5288 | { | |
5289 | ||
5290 | ; | |
5291 | return 0; | |
5292 | } | |
5293 | _ACEOF | |
81ecdfbb | 5294 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5295 | ac_cv_header_stdc=yes |
5296 | else | |
81ecdfbb | 5297 | ac_cv_header_stdc=no |
9a0910c3 | 5298 | fi |
81ecdfbb | 5299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5300 | |
5301 | if test $ac_cv_header_stdc = yes; then | |
5302 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5304 | /* end confdefs.h. */ |
5305 | #include <string.h> | |
5306 | ||
5307 | _ACEOF | |
5308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5309 | $EGREP "memchr" >/dev/null 2>&1; then : |
5310 | ||
9a0910c3 ILT |
5311 | else |
5312 | ac_cv_header_stdc=no | |
5313 | fi | |
5314 | rm -f conftest* | |
5315 | ||
5316 | fi | |
5317 | ||
5318 | if test $ac_cv_header_stdc = yes; then | |
5319 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5321 | /* end confdefs.h. */ |
5322 | #include <stdlib.h> | |
5323 | ||
5324 | _ACEOF | |
5325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5326 | $EGREP "free" >/dev/null 2>&1; then : |
5327 | ||
9a0910c3 ILT |
5328 | else |
5329 | ac_cv_header_stdc=no | |
5330 | fi | |
5331 | rm -f conftest* | |
5332 | ||
5333 | fi | |
5334 | ||
5335 | if test $ac_cv_header_stdc = yes; then | |
5336 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5337 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5338 | : |
5339 | else | |
81ecdfbb | 5340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5341 | /* end confdefs.h. */ |
5342 | #include <ctype.h> | |
81ecdfbb | 5343 | #include <stdlib.h> |
9a0910c3 ILT |
5344 | #if ((' ' & 0x0FF) == 0x020) |
5345 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5346 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5347 | #else | |
5348 | # define ISLOWER(c) \ | |
5349 | (('a' <= (c) && (c) <= 'i') \ | |
5350 | || ('j' <= (c) && (c) <= 'r') \ | |
5351 | || ('s' <= (c) && (c) <= 'z')) | |
5352 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5353 | #endif | |
5354 | ||
5355 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5356 | int | |
5357 | main () | |
5358 | { | |
5359 | int i; | |
5360 | for (i = 0; i < 256; i++) | |
5361 | if (XOR (islower (i), ISLOWER (i)) | |
5362 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5363 | return 2; |
5364 | return 0; | |
9a0910c3 ILT |
5365 | } |
5366 | _ACEOF | |
81ecdfbb | 5367 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5368 | |
81ecdfbb RW |
5369 | else |
5370 | ac_cv_header_stdc=no | |
9a0910c3 | 5371 | fi |
81ecdfbb RW |
5372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5373 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5374 | fi |
81ecdfbb | 5375 | |
9a0910c3 ILT |
5376 | fi |
5377 | fi | |
81ecdfbb RW |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5379 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5380 | if test $ac_cv_header_stdc = yes; then |
5381 | ||
81ecdfbb | 5382 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5383 | |
5384 | fi | |
5385 | ||
5386 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5387 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5388 | inttypes.h stdint.h unistd.h | |
5389 | do : | |
5390 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5391 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5392 | " | |
5393 | eval as_val=\$$as_ac_Header | |
5394 | if test "x$as_val" = x""yes; then : | |
5395 | cat >>confdefs.h <<_ACEOF | |
5396 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5397 | _ACEOF | |
9a0910c3 | 5398 | |
81ecdfbb | 5399 | fi |
9a0910c3 | 5400 | |
81ecdfbb | 5401 | done |
9a0910c3 ILT |
5402 | |
5403 | ||
5404 | ||
81ecdfbb RW |
5405 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5406 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5407 | MINIX=yes | |
5408 | else | |
5409 | MINIX= | |
5410 | fi | |
9a0910c3 ILT |
5411 | |
5412 | ||
81ecdfbb | 5413 | if test "$MINIX" = yes; then |
9a0910c3 | 5414 | |
81ecdfbb | 5415 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5416 | |
9a0910c3 | 5417 | |
81ecdfbb | 5418 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5419 | |
9a0910c3 | 5420 | |
81ecdfbb | 5421 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5422 | |
81ecdfbb | 5423 | fi |
9a0910c3 ILT |
5424 | |
5425 | ||
81ecdfbb RW |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5427 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5428 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5429 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5430 | else |
81ecdfbb | 5431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5432 | /* end confdefs.h. */ |
5433 | ||
81ecdfbb RW |
5434 | # define __EXTENSIONS__ 1 |
5435 | $ac_includes_default | |
9a0910c3 ILT |
5436 | int |
5437 | main () | |
5438 | { | |
81ecdfbb | 5439 | |
9a0910c3 ILT |
5440 | ; |
5441 | return 0; | |
5442 | } | |
5443 | _ACEOF | |
81ecdfbb RW |
5444 | if ac_fn_c_try_compile "$LINENO"; then : |
5445 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5446 | else |
81ecdfbb | 5447 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5448 | fi |
81ecdfbb RW |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5450 | fi | |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5452 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5453 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5454 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5455 | |
81ecdfbb RW |
5456 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5457 | ||
5458 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5459 | |
81ecdfbb RW |
5460 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5461 | ||
5462 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | # If we haven't got the data from the intl directory, | |
5468 | # assume NLS is disabled. | |
5469 | USE_NLS=no | |
5470 | LIBINTL= | |
5471 | LIBINTL_DEP= | |
5472 | INCINTL= | |
5473 | XGETTEXT= | |
5474 | GMSGFMT= | |
5475 | POSUB= | |
5476 | ||
5477 | if test -f ../intl/config.intl; then | |
5478 | . ../intl/config.intl | |
9a0910c3 | 5479 | fi |
81ecdfbb RW |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5481 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5482 | if test x"$USE_NLS" != xyes; then | |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5484 | $as_echo "no" >&6; } | |
5485 | else | |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5487 | $as_echo "yes" >&6; } | |
5488 | ||
5489 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5490 | ||
5491 | ||
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5493 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5494 | # Look for .po and .gmo files in the source directory. | |
5495 | CATALOGS= | |
5496 | XLINGUAS= | |
5497 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5498 | # If there aren't any .gmo files the shell will give us the | |
5499 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5500 | # weeded out. | |
5501 | case "$cat" in *\**) | |
5502 | continue;; | |
5503 | esac | |
5504 | # The quadruple backslash is collapsed to a double backslash | |
5505 | # by the backticks, then collapsed again by the double quotes, | |
5506 | # leaving us with one backslash in the sed expression (right | |
5507 | # before the dot that mustn't act as a wildcard). | |
5508 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5509 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5510 | # The user is allowed to set LINGUAS to a list of languages to | |
5511 | # install catalogs for. If it's empty that means "all of them." | |
5512 | if test "x$LINGUAS" = x; then | |
5513 | CATALOGS="$CATALOGS $cat" | |
5514 | XLINGUAS="$XLINGUAS $lang" | |
5515 | else | |
5516 | case "$LINGUAS" in *$lang*) | |
5517 | CATALOGS="$CATALOGS $cat" | |
5518 | XLINGUAS="$XLINGUAS $lang" | |
5519 | ;; | |
5520 | esac | |
5521 | fi | |
9a0910c3 | 5522 | done |
81ecdfbb RW |
5523 | LINGUAS="$XLINGUAS" |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5525 | $as_echo "$LINGUAS" >&6; } | |
5526 | ||
5527 | ||
5528 | DATADIRNAME=share | |
5529 | ||
5530 | INSTOBJEXT=.mo | |
5531 | ||
5532 | GENCAT=gencat | |
5533 | ||
5534 | CATOBJEXT=.gmo | |
9a0910c3 | 5535 | |
9a0910c3 | 5536 | fi |
9a0910c3 | 5537 | |
81ecdfbb RW |
5538 | MKINSTALLDIRS= |
5539 | if test -n "$ac_aux_dir"; then | |
5540 | case "$ac_aux_dir" in | |
5541 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5542 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5543 | esac | |
5544 | fi | |
5545 | if test -z "$MKINSTALLDIRS"; then | |
5546 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5547 | fi | |
5548 | ||
5549 | ||
5550 | ||
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5552 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5553 | # Check whether --enable-nls was given. | |
5554 | if test "${enable_nls+set}" = set; then : | |
5555 | enableval=$enable_nls; USE_NLS=$enableval | |
5556 | else | |
5557 | USE_NLS=yes | |
9a0910c3 | 5558 | fi |
9a0910c3 | 5559 | |
81ecdfbb RW |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5561 | $as_echo "$USE_NLS" >&6; } | |
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | # Prepare PATH_SEPARATOR. | |
5569 | # The user is always right. | |
5570 | if test "${PATH_SEPARATOR+set}" != set; then | |
5571 | echo "#! /bin/sh" >conf$$.sh | |
5572 | echo "exit 0" >>conf$$.sh | |
5573 | chmod +x conf$$.sh | |
5574 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5575 | PATH_SEPARATOR=';' | |
9a0910c3 | 5576 | else |
81ecdfbb | 5577 | PATH_SEPARATOR=: |
9a0910c3 | 5578 | fi |
81ecdfbb | 5579 | rm -f conf$$.sh |
9a0910c3 | 5580 | fi |
81ecdfbb RW |
5581 | |
5582 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5583 | # as systems may use methods other than mode bits to determine executability. | |
5584 | cat >conf$$.file <<_ASEOF | |
5585 | #! /bin/sh | |
5586 | exit 0 | |
5587 | _ASEOF | |
5588 | chmod +x conf$$.file | |
5589 | if test -x conf$$.file >/dev/null 2>&1; then | |
5590 | ac_executable_p="test -x" | |
9a0910c3 | 5591 | else |
81ecdfbb RW |
5592 | ac_executable_p="test -f" |
5593 | fi | |
5594 | rm -f conf$$.file | |
9a0910c3 | 5595 | |
81ecdfbb RW |
5596 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5597 | set dummy msgfmt; ac_word=$2 | |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5599 | $as_echo_n "checking for $ac_word... " >&6; } | |
5600 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5601 | $as_echo_n "(cached) " >&6 | |
5602 | else | |
5603 | case "$MSGFMT" in | |
5604 | [\\/]* | ?:[\\/]*) | |
5605 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5606 | ;; | |
5607 | *) | |
5608 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5609 | for ac_dir in $PATH; do | |
5610 | IFS="$ac_save_IFS" | |
5611 | test -z "$ac_dir" && ac_dir=. | |
5612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5613 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5614 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5615 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5616 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5617 | break 2 | |
5618 | fi | |
5619 | fi | |
5620 | done | |
5621 | done | |
5622 | IFS="$ac_save_IFS" | |
5623 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5624 | ;; | |
5625 | esac | |
9a0910c3 | 5626 | fi |
81ecdfbb RW |
5627 | MSGFMT="$ac_cv_path_MSGFMT" |
5628 | if test "$MSGFMT" != ":"; then | |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5630 | $as_echo "$MSGFMT" >&6; } | |
5631 | else | |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5633 | $as_echo "no" >&6; } | |
5634 | fi | |
5635 | ||
5636 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5637 | set dummy gmsgfmt; ac_word=$2 | |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5639 | $as_echo_n "checking for $ac_word... " >&6; } | |
5640 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5641 | $as_echo_n "(cached) " >&6 | |
5642 | else | |
5643 | case $GMSGFMT in | |
5644 | [\\/]* | ?:[\\/]*) | |
5645 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5646 | ;; | |
5647 | *) | |
5648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5649 | for as_dir in $PATH | |
5650 | do | |
5651 | IFS=$as_save_IFS | |
5652 | test -z "$as_dir" && as_dir=. | |
5653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5655 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5657 | break 2 | |
5658 | fi | |
5659 | done | |
5660 | done | |
5661 | IFS=$as_save_IFS | |
9a0910c3 | 5662 | |
81ecdfbb RW |
5663 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5664 | ;; | |
9a0910c3 | 5665 | esac |
81ecdfbb RW |
5666 | fi |
5667 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5668 | if test -n "$GMSGFMT"; then | |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5670 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5671 | else |
81ecdfbb RW |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5673 | $as_echo "no" >&6; } | |
9a0910c3 | 5674 | fi |
9a0910c3 | 5675 | |
9a0910c3 | 5676 | |
9a0910c3 | 5677 | |
9a0910c3 | 5678 | |
81ecdfbb RW |
5679 | # Prepare PATH_SEPARATOR. |
5680 | # The user is always right. | |
5681 | if test "${PATH_SEPARATOR+set}" != set; then | |
5682 | echo "#! /bin/sh" >conf$$.sh | |
5683 | echo "exit 0" >>conf$$.sh | |
5684 | chmod +x conf$$.sh | |
5685 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5686 | PATH_SEPARATOR=';' | |
5687 | else | |
5688 | PATH_SEPARATOR=: | |
5689 | fi | |
5690 | rm -f conf$$.sh | |
9a0910c3 ILT |
5691 | fi |
5692 | ||
81ecdfbb RW |
5693 | # Find out how to test for executable files. Don't use a zero-byte file, |
5694 | # as systems may use methods other than mode bits to determine executability. | |
5695 | cat >conf$$.file <<_ASEOF | |
5696 | #! /bin/sh | |
5697 | exit 0 | |
5698 | _ASEOF | |
5699 | chmod +x conf$$.file | |
5700 | if test -x conf$$.file >/dev/null 2>&1; then | |
5701 | ac_executable_p="test -x" | |
7fcd0256 | 5702 | else |
81ecdfbb | 5703 | ac_executable_p="test -f" |
7fcd0256 | 5704 | fi |
81ecdfbb | 5705 | rm -f conf$$.file |
7fcd0256 | 5706 | |
81ecdfbb RW |
5707 | # Extract the first word of "xgettext", so it can be a program name with args. |
5708 | set dummy xgettext; ac_word=$2 | |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5710 | $as_echo_n "checking for $ac_word... " >&6; } | |
5711 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5712 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5713 | else |
81ecdfbb RW |
5714 | case "$XGETTEXT" in |
5715 | [\\/]* | ?:[\\/]*) | |
5716 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5717 | ;; | |
5718 | *) | |
5719 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5720 | for ac_dir in $PATH; do | |
5721 | IFS="$ac_save_IFS" | |
5722 | test -z "$ac_dir" && ac_dir=. | |
5723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5724 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5725 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5726 | (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 | |
5727 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5728 | break 2 | |
5729 | fi | |
5730 | fi | |
5731 | done | |
5732 | done | |
5733 | IFS="$ac_save_IFS" | |
5734 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5735 | ;; | |
5736 | esac | |
54dc6425 | 5737 | fi |
81ecdfbb RW |
5738 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5739 | if test "$XGETTEXT" != ":"; then | |
5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5741 | $as_echo "$XGETTEXT" >&6; } | |
5742 | else | |
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5744 | $as_echo "no" >&6; } | |
0639a6f6 | 5745 | fi |
0639a6f6 | 5746 | |
81ecdfbb | 5747 | rm -f messages.po |
0639a6f6 ILT |
5748 | |
5749 | ||
81ecdfbb RW |
5750 | # Prepare PATH_SEPARATOR. |
5751 | # The user is always right. | |
5752 | if test "${PATH_SEPARATOR+set}" != set; then | |
5753 | echo "#! /bin/sh" >conf$$.sh | |
5754 | echo "exit 0" >>conf$$.sh | |
5755 | chmod +x conf$$.sh | |
5756 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5757 | PATH_SEPARATOR=';' | |
5758 | else | |
5759 | PATH_SEPARATOR=: | |
5760 | fi | |
5761 | rm -f conf$$.sh | |
0639a6f6 | 5762 | fi |
0639a6f6 | 5763 | |
81ecdfbb RW |
5764 | # Find out how to test for executable files. Don't use a zero-byte file, |
5765 | # as systems may use methods other than mode bits to determine executability. | |
5766 | cat >conf$$.file <<_ASEOF | |
5767 | #! /bin/sh | |
5768 | exit 0 | |
5769 | _ASEOF | |
5770 | chmod +x conf$$.file | |
5771 | if test -x conf$$.file >/dev/null 2>&1; then | |
5772 | ac_executable_p="test -x" | |
54dc6425 | 5773 | else |
81ecdfbb | 5774 | ac_executable_p="test -f" |
54dc6425 | 5775 | fi |
81ecdfbb | 5776 | rm -f conf$$.file |
54dc6425 | 5777 | |
81ecdfbb RW |
5778 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5779 | set dummy msgmerge; ac_word=$2 | |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5781 | $as_echo_n "checking for $ac_word... " >&6; } | |
5782 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5783 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5784 | else |
81ecdfbb RW |
5785 | case "$MSGMERGE" in |
5786 | [\\/]* | ?:[\\/]*) | |
5787 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5788 | ;; | |
5789 | *) | |
5790 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5791 | for ac_dir in $PATH; do | |
5792 | IFS="$ac_save_IFS" | |
5793 | test -z "$ac_dir" && ac_dir=. | |
5794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5795 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5796 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5797 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5798 | break 2 | |
5799 | fi | |
5800 | fi | |
5801 | done | |
5802 | done | |
5803 | IFS="$ac_save_IFS" | |
5804 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5805 | ;; | |
5806 | esac | |
54dc6425 | 5807 | fi |
81ecdfbb RW |
5808 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5809 | if test "$MSGMERGE" != ":"; then | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
5811 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 5812 | else |
81ecdfbb RW |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5814 | $as_echo "no" >&6; } | |
5815 | fi | |
0639a6f6 | 5816 | |
54dc6425 | 5817 | |
81ecdfbb RW |
5818 | if test "$GMSGFMT" != ":"; then |
5819 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5820 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5821 | : ; | |
5822 | else | |
5823 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5825 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
5826 | GMSGFMT=":" | |
5827 | fi | |
5828 | fi | |
54dc6425 | 5829 | |
81ecdfbb RW |
5830 | if test "$XGETTEXT" != ":"; then |
5831 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5832 | (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 | |
5833 | : ; | |
5834 | else | |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5836 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
5837 | XGETTEXT=":" | |
5838 | fi | |
5839 | rm -f messages.po | |
5840 | fi | |
54dc6425 | 5841 | |
81ecdfbb | 5842 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 5843 | |
54dc6425 ILT |
5844 | |
5845 | ||
81ecdfbb RW |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5847 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5848 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
5849 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5850 | else |
81ecdfbb RW |
5851 | ac_cv_c_bigendian=unknown |
5852 | # See if we're dealing with a universal compiler. | |
5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 5854 | /* end confdefs.h. */ |
81ecdfbb RW |
5855 | #ifndef __APPLE_CC__ |
5856 | not a universal capable compiler | |
5857 | #endif | |
5858 | typedef int dummy; | |
5859 | ||
5860 | _ACEOF | |
5861 | if ac_fn_c_try_compile "$LINENO"; then : | |
5862 | ||
5863 | # Check for potential -arch flags. It is not universal unless | |
5864 | # there are at least two -arch flags with different values. | |
5865 | ac_arch= | |
5866 | ac_prev= | |
5867 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5868 | if test -n "$ac_prev"; then | |
5869 | case $ac_word in | |
5870 | i?86 | x86_64 | ppc | ppc64) | |
5871 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5872 | ac_arch=$ac_word | |
5873 | else | |
5874 | ac_cv_c_bigendian=universal | |
5875 | break | |
5876 | fi | |
5877 | ;; | |
5878 | esac | |
5879 | ac_prev= | |
5880 | elif test "x$ac_word" = "x-arch"; then | |
5881 | ac_prev=arch | |
5882 | fi | |
5883 | done | |
5884 | fi | |
5885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5886 | if test $ac_cv_c_bigendian = unknown; then | |
5887 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5889 | /* end confdefs.h. */ | |
5890 | #include <sys/types.h> | |
5891 | #include <sys/param.h> | |
5892 | ||
0639a6f6 ILT |
5893 | int |
5894 | main () | |
5895 | { | |
81ecdfbb RW |
5896 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5897 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5898 | && LITTLE_ENDIAN) | |
5899 | bogus endian macros | |
5900 | #endif | |
54dc6425 | 5901 | |
81ecdfbb RW |
5902 | ; |
5903 | return 0; | |
5904 | } | |
15d5fa16 | 5905 | _ACEOF |
81ecdfbb RW |
5906 | if ac_fn_c_try_compile "$LINENO"; then : |
5907 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5909 | /* end confdefs.h. */ |
81ecdfbb RW |
5910 | #include <sys/types.h> |
5911 | #include <sys/param.h> | |
5912 | ||
0639a6f6 ILT |
5913 | int |
5914 | main () | |
5915 | { | |
81ecdfbb RW |
5916 | #if BYTE_ORDER != BIG_ENDIAN |
5917 | not big endian | |
5918 | #endif | |
0639a6f6 ILT |
5919 | |
5920 | ; | |
5921 | return 0; | |
5922 | } | |
15d5fa16 | 5923 | _ACEOF |
81ecdfbb RW |
5924 | if ac_fn_c_try_compile "$LINENO"; then : |
5925 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5926 | else |
81ecdfbb | 5927 | ac_cv_c_bigendian=no |
15d5fa16 | 5928 | fi |
81ecdfbb | 5929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 5930 | fi |
81ecdfbb RW |
5931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5932 | fi | |
5933 | if test $ac_cv_c_bigendian = unknown; then | |
5934 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5936 | /* end confdefs.h. */ | |
5937 | #include <limits.h> | |
0639a6f6 | 5938 | |
81ecdfbb RW |
5939 | int |
5940 | main () | |
5941 | { | |
5942 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5943 | bogus endian macros | |
5944 | #endif | |
0639a6f6 | 5945 | |
81ecdfbb RW |
5946 | ; |
5947 | return 0; | |
5948 | } | |
15d5fa16 | 5949 | _ACEOF |
81ecdfbb RW |
5950 | if ac_fn_c_try_compile "$LINENO"; then : |
5951 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 5953 | /* end confdefs.h. */ |
81ecdfbb RW |
5954 | #include <limits.h> |
5955 | ||
0639a6f6 ILT |
5956 | int |
5957 | main () | |
5958 | { | |
81ecdfbb RW |
5959 | #ifndef _BIG_ENDIAN |
5960 | not big endian | |
5961 | #endif | |
0639a6f6 ILT |
5962 | |
5963 | ; | |
5964 | return 0; | |
5965 | } | |
15d5fa16 | 5966 | _ACEOF |
81ecdfbb RW |
5967 | if ac_fn_c_try_compile "$LINENO"; then : |
5968 | ac_cv_c_bigendian=yes | |
15d5fa16 | 5969 | else |
81ecdfbb | 5970 | ac_cv_c_bigendian=no |
15d5fa16 | 5971 | fi |
81ecdfbb | 5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 5973 | fi |
81ecdfbb RW |
5974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5975 | fi | |
5976 | if test $ac_cv_c_bigendian = unknown; then | |
5977 | # Compile a test program. | |
5978 | if test "$cross_compiling" = yes; then : | |
5979 | # Try to guess by grepping values from an object file. | |
5980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5981 | /* end confdefs.h. */ | |
5982 | short int ascii_mm[] = | |
5983 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5984 | short int ascii_ii[] = | |
5985 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5986 | int use_ascii (int i) { | |
5987 | return ascii_mm[i] + ascii_ii[i]; | |
5988 | } | |
5989 | short int ebcdic_ii[] = | |
5990 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5991 | short int ebcdic_mm[] = | |
5992 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5993 | int use_ebcdic (int i) { | |
5994 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5995 | } | |
5996 | extern int foo; | |
15d5fa16 | 5997 | |
81ecdfbb RW |
5998 | int |
5999 | main () | |
6000 | { | |
6001 | return use_ascii (foo) == use_ebcdic (foo); | |
6002 | ; | |
6003 | return 0; | |
6004 | } | |
0639a6f6 | 6005 | _ACEOF |
81ecdfbb RW |
6006 | if ac_fn_c_try_compile "$LINENO"; then : |
6007 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6008 | ac_cv_c_bigendian=yes | |
6009 | fi | |
6010 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6011 | if test "$ac_cv_c_bigendian" = unknown; then | |
6012 | ac_cv_c_bigendian=no | |
6013 | else | |
6014 | # finding both strings is unlikely to happen, but who knows? | |
6015 | ac_cv_c_bigendian=unknown | |
6016 | fi | |
6017 | fi | |
54dc6425 | 6018 | fi |
81ecdfbb | 6019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6020 | else |
81ecdfbb | 6021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6022 | /* end confdefs.h. */ |
6023 | $ac_includes_default | |
0639a6f6 ILT |
6024 | int |
6025 | main () | |
6026 | { | |
81ecdfbb RW |
6027 | |
6028 | /* Are we little or big endian? From Harbison&Steele. */ | |
6029 | union | |
6030 | { | |
6031 | long int l; | |
6032 | char c[sizeof (long int)]; | |
6033 | } u; | |
6034 | u.l = 1; | |
6035 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6036 | |
6037 | ; | |
6038 | return 0; | |
6039 | } | |
54dc6425 | 6040 | _ACEOF |
81ecdfbb RW |
6041 | if ac_fn_c_try_run "$LINENO"; then : |
6042 | ac_cv_c_bigendian=no | |
54dc6425 | 6043 | else |
81ecdfbb | 6044 | ac_cv_c_bigendian=yes |
54dc6425 | 6045 | fi |
81ecdfbb RW |
6046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6047 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6048 | fi |
54dc6425 | 6049 | |
81ecdfbb RW |
6050 | fi |
6051 | fi | |
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6053 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6054 | case $ac_cv_c_bigendian in #( | |
6055 | yes) | |
6056 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6057 | ;; #( | |
6058 | no) | |
6059 | ;; #( | |
6060 | universal) | |
6061 | ||
6062 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6063 | ||
6064 | ;; #( | |
6065 | *) | |
6066 | as_fn_error "unknown endianness | |
6067 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6068 | esac | |
0639a6f6 ILT |
6069 | |
6070 | ||
0639a6f6 ILT |
6071 | |
6072 | ||
81ecdfbb RW |
6073 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6074 | NATIVE_LINKER_TRUE= | |
6075 | NATIVE_LINKER_FALSE='#' | |
6076 | else | |
6077 | NATIVE_LINKER_TRUE='#' | |
6078 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6079 | fi |
6080 | ||
81ecdfbb RW |
6081 | if test "$GCC" = yes; then |
6082 | GCC_TRUE= | |
6083 | GCC_FALSE='#' | |
6084 | else | |
6085 | GCC_TRUE='#' | |
6086 | GCC_FALSE= | |
6087 | fi | |
0639a6f6 ILT |
6088 | |
6089 | ||
eb373049 ILT |
6090 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6091 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6092 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6093 | else | |
6094 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6095 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6096 | fi | |
6097 | ||
6098 | ||
81ecdfbb RW |
6099 | if |
6100 | case $target_cpu in | |
6101 | i?86) true;; | |
6102 | x86_64) false;; | |
6103 | sparc64) false;; | |
6104 | *) true;; | |
6105 | esac; then | |
6106 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6107 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6108 | else | |
6109 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6110 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6111 | fi | |
0639a6f6 ILT |
6112 | |
6113 | ||
084e2665 ILT |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6115 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6116 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6117 | $as_echo_n "(cached) " >&6 | |
6118 | else | |
6119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6120 | /* end confdefs.h. */ | |
6121 | ||
6122 | #if !defined __GNUC__ | |
6123 | error | |
6124 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6125 | error | |
6126 | #endif | |
6127 | ||
6128 | _ACEOF | |
6129 | if ac_fn_c_try_compile "$LINENO"; then : | |
6130 | gold_cv_prog_gcc41=yes | |
6131 | else | |
6132 | gold_cv_prog_gcc41=no | |
6133 | fi | |
6134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6135 | fi | |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6137 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6138 | ||
6139 | if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6140 | MCMODEL_MEDIUM_TRUE= |
6141 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6142 | else |
81ecdfbb RW |
6143 | MCMODEL_MEDIUM_TRUE='#' |
6144 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6145 | fi |
54dc6425 | 6146 | |
54dc6425 | 6147 | |
81ecdfbb RW |
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6149 | $as_echo_n "checking for thread support... " >&6; } | |
6150 | if test "${gold_cv_c_thread+set}" = set; then : | |
6151 | $as_echo_n "(cached) " >&6 | |
6152 | else | |
6153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6154 | /* end confdefs.h. */ |
81ecdfbb | 6155 | __thread int i = 1; |
e44fcf3b | 6156 | _ACEOF |
81ecdfbb RW |
6157 | if ac_fn_c_try_compile "$LINENO"; then : |
6158 | gold_cv_c_thread=yes | |
0639a6f6 | 6159 | else |
81ecdfbb | 6160 | gold_cv_c_thread=no |
0639a6f6 | 6161 | fi |
81ecdfbb | 6162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6163 | fi |
81ecdfbb RW |
6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6165 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6166 | |
81ecdfbb RW |
6167 | if test "$gold_cv_c_thread" = "yes"; then |
6168 | TLS_TRUE= | |
6169 | TLS_FALSE='#' | |
6170 | else | |
6171 | TLS_TRUE='#' | |
6172 | TLS_FALSE= | |
0639a6f6 | 6173 | fi |
e44fcf3b | 6174 | |
0639a6f6 | 6175 | |
81ecdfbb RW |
6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6177 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6178 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6179 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6180 | else |
81ecdfbb | 6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6182 | /* end confdefs.h. */ |
81ecdfbb RW |
6183 | |
6184 | #include <features.h> | |
6185 | #if !defined __GLIBC__ | |
6186 | error | |
6187 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6188 | error | |
1b77ea50 | 6189 | #endif |
81ecdfbb | 6190 | |
1b77ea50 | 6191 | _ACEOF |
81ecdfbb RW |
6192 | if ac_fn_c_try_compile "$LINENO"; then : |
6193 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6194 | else |
81ecdfbb | 6195 | gold_cv_lib_glibc24=no |
0639a6f6 | 6196 | fi |
81ecdfbb | 6197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6198 | fi |
81ecdfbb RW |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6200 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6201 | |
81ecdfbb RW |
6202 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6203 | STATIC_TLS_TRUE= | |
6204 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6205 | else |
81ecdfbb RW |
6206 | STATIC_TLS_TRUE='#' |
6207 | STATIC_TLS_FALSE= | |
0639a6f6 | 6208 | fi |
1b77ea50 | 6209 | |
0639a6f6 | 6210 | |
81ecdfbb RW |
6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6212 | $as_echo_n "checking for omp support... " >&6; } | |
6213 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6214 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6215 | else |
81ecdfbb RW |
6216 | save_CFLAGS="$CFLAGS" |
6217 | CFLAGS="$CFLAGS -fopenmp" | |
6218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6219 | /* end confdefs.h. */ | |
1b77ea50 | 6220 | |
81ecdfbb RW |
6221 | #include <omp.h> |
6222 | int i; | |
6223 | #pragma omp threadprivate (i) | |
1b77ea50 | 6224 | |
81ecdfbb RW |
6225 | _ACEOF |
6226 | if ac_fn_c_try_compile "$LINENO"; then : | |
6227 | gold_cv_c_threadprivate=yes | |
6228 | else | |
6229 | gold_cv_c_threadprivate=no | |
6230 | fi | |
6231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6232 | CFLAGS="$save_CFLAGS" | |
6233 | fi | |
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6235 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6236 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6237 | |
81ecdfbb | 6238 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6239 | |
0639a6f6 | 6240 | fi |
81ecdfbb RW |
6241 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6242 | OMP_SUPPORT_TRUE= | |
6243 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6244 | else |
81ecdfbb RW |
6245 | OMP_SUPPORT_TRUE='#' |
6246 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6247 | fi |
1b77ea50 | 6248 | |
81ecdfbb RW |
6249 | |
6250 | save_CFLAGS="$CFLAGS" | |
6251 | CFLAGS="$CFLAGS -mtls-dialect=gnu2" | |
6252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6253 | /* end confdefs.h. */ |
81ecdfbb | 6254 | int i; |
1b77ea50 | 6255 | _ACEOF |
81ecdfbb RW |
6256 | if ac_fn_c_try_compile "$LINENO"; then : |
6257 | have_tls_gnu2=yes | |
0639a6f6 | 6258 | else |
81ecdfbb | 6259 | have_tls_gnu2=no |
0639a6f6 | 6260 | fi |
81ecdfbb RW |
6261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6262 | CFLAGS="$save_CFLAGS" | |
6263 | if test "$have_tls_gnu2" = "yes"; then | |
6264 | TLS_GNU2_DIALECT_TRUE= | |
6265 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6266 | else |
81ecdfbb RW |
6267 | TLS_GNU2_DIALECT_TRUE='#' |
6268 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6269 | fi |
1b77ea50 | 6270 | |
81ecdfbb RW |
6271 | |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6273 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6274 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6275 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6276 | else |
81ecdfbb RW |
6277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6278 | /* end confdefs.h. */ | |
0639a6f6 | 6279 | |
81ecdfbb RW |
6280 | #include <features.h> |
6281 | #if !defined __GLIBC__ | |
6282 | error | |
6283 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6284 | error | |
6285 | #endif | |
1b77ea50 | 6286 | |
81ecdfbb RW |
6287 | _ACEOF |
6288 | if ac_fn_c_try_compile "$LINENO"; then : | |
6289 | gold_cv_lib_glibc29=yes | |
6290 | else | |
6291 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6292 | fi |
81ecdfbb RW |
6293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6294 | fi | |
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6296 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6297 | |
81ecdfbb RW |
6298 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6299 | TLS_DESCRIPTORS_TRUE= | |
6300 | TLS_DESCRIPTORS_FALSE='#' | |
6301 | else | |
6302 | TLS_DESCRIPTORS_TRUE='#' | |
6303 | TLS_DESCRIPTORS_FALSE= | |
6304 | fi | |
0639a6f6 ILT |
6305 | |
6306 | ||
81ecdfbb RW |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor priorities" >&5 |
6308 | $as_echo_n "checking for constructor priorities... " >&6; } | |
6309 | if test "${gold_cv_c_conprio+set}" = set; then : | |
6310 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6311 | else |
81ecdfbb | 6312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6313 | /* end confdefs.h. */ |
81ecdfbb | 6314 | void f() __attribute__ ((constructor (1))); |
1b77ea50 | 6315 | _ACEOF |
81ecdfbb RW |
6316 | if ac_fn_c_try_compile "$LINENO"; then : |
6317 | gold_cv_c_conprio=yes | |
1b77ea50 | 6318 | else |
81ecdfbb RW |
6319 | gold_cv_c_conprio=no |
6320 | fi | |
6321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6322 | fi | |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_conprio" >&5 | |
6324 | $as_echo "$gold_cv_c_conprio" >&6; } | |
1b77ea50 | 6325 | |
81ecdfbb RW |
6326 | if test "$gold_cv_c_conprio" = "yes"; then |
6327 | CONSTRUCTOR_PRIORITY_TRUE= | |
6328 | CONSTRUCTOR_PRIORITY_FALSE='#' | |
6329 | else | |
6330 | CONSTRUCTOR_PRIORITY_TRUE='#' | |
6331 | CONSTRUCTOR_PRIORITY_FALSE= | |
1b77ea50 | 6332 | fi |
1b77ea50 | 6333 | |
81ecdfbb RW |
6334 | |
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 | |
6336 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6337 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6338 | $as_echo_n "(cached) " >&6 | |
6339 | else | |
6340 | save_CFLAGS="$CFLAGS" | |
6341 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6343 | /* end confdefs.h. */ |
81ecdfbb | 6344 | int i; |
0639a6f6 | 6345 | _ACEOF |
81ecdfbb RW |
6346 | if ac_fn_c_try_compile "$LINENO"; then : |
6347 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6348 | else |
81ecdfbb RW |
6349 | gold_cv_c_random_seed=no |
6350 | fi | |
6351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6352 | CFLAGS="$save_CFLAGS" | |
6353 | fi | |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6355 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6356 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6357 | # In Makefile, '$@' will be expanded to be the name of the file | |
6358 | # being built, providing a unique seed for each file. | |
6359 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6360 | fi |
1b77ea50 | 6361 | |
81ecdfbb | 6362 | |
7223e9ca ILT |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.11" >&5 |
6364 | $as_echo_n "checking for glibc >= 2.11... " >&6; } | |
6365 | if test "${gold_cv_lib_glibc2_11+set}" = set; then : | |
6366 | $as_echo_n "(cached) " >&6 | |
6367 | else | |
6368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6369 | /* end confdefs.h. */ | |
6370 | ||
6371 | #include <features.h> | |
6372 | #if !defined __GLIBC__ | |
6373 | error | |
6374 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6375 | error | |
6376 | #endif | |
6377 | ||
6378 | _ACEOF | |
6379 | if ac_fn_c_try_compile "$LINENO"; then : | |
6380 | gold_cv_lib_glibc2_11=yes | |
6381 | else | |
6382 | gold_cv_lib_glibc2_11=no | |
6383 | fi | |
6384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6385 | fi | |
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc2_11" >&5 | |
6387 | $as_echo "$gold_cv_lib_glibc2_11" >&6; } | |
6388 | ||
6389 | if test "$gold_cv_lib_glibc2_11" = "yes"; then | |
6390 | IFUNC_TRUE= | |
6391 | IFUNC_FALSE='#' | |
6392 | else | |
6393 | IFUNC_TRUE='#' | |
6394 | IFUNC_FALSE= | |
6395 | fi | |
6396 | ||
6397 | ||
81ecdfbb | 6398 | |
efc8d4f2 RW |
6399 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
6400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6401 | /* end confdefs.h. */ | |
6402 | __GNUC__ | |
6403 | _ACEOF | |
6404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6405 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6406 | ||
6407 | else | |
6408 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6409 | fi | |
6410 | rm -f conftest* | |
6411 | ||
81ecdfbb RW |
6412 | |
6413 | # Check whether --enable-werror was given. | |
6414 | if test "${enable_werror+set}" = set; then : | |
6415 | enableval=$enable_werror; case "${enableval}" in | |
6416 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6417 | no | n) ERROR_ON_WARNING="no" ;; | |
6418 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6419 | esac | |
0639a6f6 | 6420 | fi |
1b77ea50 | 6421 | |
81ecdfbb | 6422 | |
efc8d4f2 | 6423 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6424 | case "${host}" in |
6425 | *-*-mingw32*) | |
6426 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6427 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6428 | fi | |
0639a6f6 | 6429 | ;; |
81ecdfbb | 6430 | *) ;; |
0639a6f6 | 6431 | esac |
81ecdfbb RW |
6432 | |
6433 | # Enable -Werror by default when using gcc | |
6434 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6435 | ERROR_ON_WARNING=yes | |
0639a6f6 | 6436 | fi |
0639a6f6 | 6437 | |
81ecdfbb RW |
6438 | NO_WERROR= |
6439 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6440 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
6441 | NO_WERROR="-Wno-error" | |
0639a6f6 | 6442 | fi |
1b77ea50 | 6443 | |
81ecdfbb RW |
6444 | if test "${GCC}" = yes ; then |
6445 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6446 | fi |
6447 | ||
81ecdfbb RW |
6448 | # Check whether --enable-build-warnings was given. |
6449 | if test "${enable_build_warnings+set}" = set; then : | |
6450 | enableval=$enable_build_warnings; case "${enableval}" in | |
6451 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6452 | no) if test "${GCC}" = yes ; then | |
6453 | WARN_CFLAGS="-w" | |
6454 | fi;; | |
6455 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6456 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6457 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6458 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6459 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6460 | esac | |
6461 | fi | |
0639a6f6 | 6462 | |
1b77ea50 | 6463 | |
81ecdfbb RW |
6464 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6465 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6466 | fi |
1b77ea50 | 6467 | |
1b77ea50 | 6468 | |
1b77ea50 | 6469 | |
0639a6f6 | 6470 | |
1b77ea50 | 6471 | |
2ea97941 | 6472 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6473 | |
6474 | ||
6475 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" | |
6476 | ||
6477 | ||
6478 | for ac_func in chsize | |
6479 | do : | |
6480 | ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" | |
6481 | if test "x$ac_cv_func_chsize" = x""yes; then : | |
0639a6f6 | 6482 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6483 | #define HAVE_CHSIZE 1 |
1b77ea50 ILT |
6484 | _ACEOF |
6485 | ||
0639a6f6 | 6486 | fi |
0639a6f6 | 6487 | done |
1b77ea50 | 6488 | |
81ecdfbb RW |
6489 | for ac_func in pread ftruncate mremap ffsll |
6490 | do : | |
6491 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6492 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6493 | eval as_val=\$$as_ac_var | |
6494 | if test "x$as_val" = x""yes; then : | |
6495 | cat >>confdefs.h <<_ACEOF | |
6496 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6497 | _ACEOF |
0639a6f6 | 6498 | |
81ecdfbb RW |
6499 | else |
6500 | case " $LIBOBJS " in | |
6501 | *" $ac_func.$ac_objext "* ) ;; | |
6502 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6503 | ;; | |
6504 | esac | |
0639a6f6 | 6505 | |
81ecdfbb RW |
6506 | fi |
6507 | done | |
0639a6f6 | 6508 | |
0639a6f6 | 6509 | |
81ecdfbb RW |
6510 | |
6511 | # Link in zlib if we can. This allows us to write compressed sections. | |
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
6513 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
6514 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6515 | $as_echo_n "(cached) " >&6 | |
6516 | else | |
6517 | ac_func_search_save_LIBS=$LIBS | |
6518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6519 | /* end confdefs.h. */ | |
6520 | ||
6521 | /* Override any GCC internal prototype to avoid an error. | |
6522 | Use char because int might match the return type of a GCC | |
6523 | builtin and then its argument prototype would still apply. */ | |
0639a6f6 | 6524 | #ifdef __cplusplus |
81ecdfbb | 6525 | extern "C" |
1b77ea50 | 6526 | #endif |
81ecdfbb | 6527 | char zlibVersion (); |
0639a6f6 ILT |
6528 | int |
6529 | main () | |
6530 | { | |
81ecdfbb | 6531 | return zlibVersion (); |
1b77ea50 ILT |
6532 | ; |
6533 | return 0; | |
6534 | } | |
6535 | _ACEOF | |
81ecdfbb RW |
6536 | for ac_lib in '' z; do |
6537 | if test -z "$ac_lib"; then | |
6538 | ac_res="none required" | |
6539 | else | |
6540 | ac_res=-l$ac_lib | |
6541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6542 | fi | |
6543 | if ac_fn_c_try_link "$LINENO"; then : | |
6544 | ac_cv_search_zlibVersion=$ac_res | |
6545 | fi | |
6546 | rm -f core conftest.err conftest.$ac_objext \ | |
6547 | conftest$ac_exeext | |
6548 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
6549 | break | |
6550 | fi | |
6551 | done | |
6552 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
1b77ea50 | 6553 | |
81ecdfbb RW |
6554 | else |
6555 | ac_cv_search_zlibVersion=no | |
1b77ea50 | 6556 | fi |
81ecdfbb RW |
6557 | rm conftest.$ac_ext |
6558 | LIBS=$ac_func_search_save_LIBS | |
1b77ea50 | 6559 | fi |
81ecdfbb RW |
6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
6561 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
6562 | ac_res=$ac_cv_search_zlibVersion | |
6563 | if test "$ac_res" != no; then : | |
6564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6565 | for ac_header in zlib.h | |
6566 | do : | |
6567 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
6568 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
1b77ea50 | 6569 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6570 | #define HAVE_ZLIB_H 1 |
1b77ea50 ILT |
6571 | _ACEOF |
6572 | ||
1b77ea50 | 6573 | fi |
81ecdfbb | 6574 | |
0639a6f6 | 6575 | done |
1b77ea50 | 6576 | |
81ecdfbb | 6577 | fi |
3d857b98 | 6578 | |
81ecdfbb RW |
6579 | if test "$ac_cv_search_zlibVersion" != "no"; then |
6580 | HAVE_ZLIB_TRUE= | |
6581 | HAVE_ZLIB_FALSE='#' | |
3d857b98 | 6582 | else |
81ecdfbb RW |
6583 | HAVE_ZLIB_TRUE='#' |
6584 | HAVE_ZLIB_FALSE= | |
3d857b98 | 6585 | fi |
81ecdfbb RW |
6586 | |
6587 | ||
6588 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6589 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6590 | ac_have_decl=1 | |
6591 | else | |
6592 | ac_have_decl=0 | |
3d857b98 | 6593 | fi |
3d857b98 DK |
6594 | |
6595 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6596 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6597 | _ACEOF |
81ecdfbb RW |
6598 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6599 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6600 | ac_have_decl=1 | |
3d857b98 | 6601 | else |
81ecdfbb | 6602 | ac_have_decl=0 |
3d857b98 | 6603 | fi |
3d857b98 | 6604 | |
81ecdfbb RW |
6605 | cat >>confdefs.h <<_ACEOF |
6606 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6607 | _ACEOF |
81ecdfbb RW |
6608 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6609 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6610 | ac_have_decl=1 | |
3d857b98 | 6611 | else |
81ecdfbb | 6612 | ac_have_decl=0 |
3d857b98 | 6613 | fi |
3d857b98 DK |
6614 | |
6615 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6616 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6617 | _ACEOF |
81ecdfbb RW |
6618 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6619 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6620 | ac_have_decl=1 | |
3d857b98 | 6621 | else |
81ecdfbb | 6622 | ac_have_decl=0 |
3d857b98 | 6623 | fi |
3d857b98 | 6624 | |
81ecdfbb RW |
6625 | cat >>confdefs.h <<_ACEOF |
6626 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6627 | _ACEOF |
81ecdfbb RW |
6628 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6629 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6630 | ac_have_decl=1 | |
3d857b98 | 6631 | else |
81ecdfbb RW |
6632 | ac_have_decl=0 |
6633 | fi | |
3d857b98 | 6634 | |
81ecdfbb RW |
6635 | cat >>confdefs.h <<_ACEOF |
6636 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6637 | _ACEOF | |
6638 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6639 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6640 | ac_have_decl=1 | |
6641 | else | |
6642 | ac_have_decl=0 | |
3d857b98 | 6643 | fi |
81ecdfbb RW |
6644 | |
6645 | cat >>confdefs.h <<_ACEOF | |
6646 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6647 | _ACEOF | |
6648 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6649 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6650 | ac_have_decl=1 | |
6651 | else | |
6652 | ac_have_decl=0 | |
3d857b98 | 6653 | fi |
3d857b98 DK |
6654 | |
6655 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6656 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
6657 | _ACEOF |
6658 | ||
6659 | ||
81ecdfbb RW |
6660 | ac_ext=cpp |
6661 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
6665 | |
6666 | ||
81ecdfbb RW |
6667 | |
6668 | ac_ext=cpp | |
6669 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6674 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6675 | if test -z "$CXXCPP"; then | |
6676 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
6677 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 6678 | else |
81ecdfbb RW |
6679 | # Double quotes because CXXCPP needs to be expanded |
6680 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6681 | do | |
6682 | ac_preproc_ok=false | |
6683 | for ac_cxx_preproc_warn_flag in '' yes | |
6684 | do | |
6685 | # Use a header file that comes with gcc, so configuring glibc | |
6686 | # with a fresh cross-compiler works. | |
6687 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6688 | # <limits.h> exists even on freestanding compilers. | |
6689 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6690 | # not just through cpp. "Syntax error" is here to catch this case. | |
6691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6692 | /* end confdefs.h. */ |
81ecdfbb RW |
6693 | #ifdef __STDC__ |
6694 | # include <limits.h> | |
6695 | #else | |
6696 | # include <assert.h> | |
3d857b98 | 6697 | #endif |
81ecdfbb | 6698 | Syntax error |
3d857b98 | 6699 | _ACEOF |
81ecdfbb | 6700 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6701 | |
81ecdfbb RW |
6702 | else |
6703 | # Broken: fails on valid input. | |
6704 | continue | |
3d857b98 | 6705 | fi |
81ecdfbb | 6706 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6707 | |
81ecdfbb RW |
6708 | # OK, works on sane cases. Now check whether nonexistent headers |
6709 | # can be detected and how. | |
6710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6711 | /* end confdefs.h. */ | |
6712 | #include <ac_nonexistent.h> | |
3d857b98 | 6713 | _ACEOF |
81ecdfbb RW |
6714 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6715 | # Broken: success on invalid input. | |
6716 | continue | |
3d857b98 | 6717 | else |
81ecdfbb RW |
6718 | # Passes both tests. |
6719 | ac_preproc_ok=: | |
6720 | break | |
6721 | fi | |
6722 | rm -f conftest.err conftest.$ac_ext | |
6723 | ||
6724 | done | |
6725 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6726 | rm -f conftest.err conftest.$ac_ext | |
6727 | if $ac_preproc_ok; then : | |
6728 | break | |
6729 | fi | |
3d857b98 | 6730 | |
81ecdfbb RW |
6731 | done |
6732 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
6733 | |
6734 | fi | |
81ecdfbb | 6735 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 6736 | else |
81ecdfbb RW |
6737 | ac_cv_prog_CXXCPP=$CXXCPP |
6738 | fi | |
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6740 | $as_echo "$CXXCPP" >&6; } | |
6741 | ac_preproc_ok=false | |
6742 | for ac_cxx_preproc_warn_flag in '' yes | |
6743 | do | |
6744 | # Use a header file that comes with gcc, so configuring glibc | |
6745 | # with a fresh cross-compiler works. | |
6746 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6747 | # <limits.h> exists even on freestanding compilers. | |
6748 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6749 | # not just through cpp. "Syntax error" is here to catch this case. | |
6750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 6751 | /* end confdefs.h. */ |
81ecdfbb RW |
6752 | #ifdef __STDC__ |
6753 | # include <limits.h> | |
6754 | #else | |
6755 | # include <assert.h> | |
3d857b98 | 6756 | #endif |
81ecdfbb | 6757 | Syntax error |
3d857b98 | 6758 | _ACEOF |
81ecdfbb | 6759 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 6760 | |
81ecdfbb RW |
6761 | else |
6762 | # Broken: fails on valid input. | |
6763 | continue | |
3d857b98 | 6764 | fi |
81ecdfbb | 6765 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 6766 | |
81ecdfbb RW |
6767 | # OK, works on sane cases. Now check whether nonexistent headers |
6768 | # can be detected and how. | |
6769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6770 | /* end confdefs.h. */ | |
6771 | #include <ac_nonexistent.h> | |
3d857b98 | 6772 | _ACEOF |
81ecdfbb RW |
6773 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
6774 | # Broken: success on invalid input. | |
6775 | continue | |
6776 | else | |
6777 | # Passes both tests. | |
6778 | ac_preproc_ok=: | |
6779 | break | |
6780 | fi | |
6781 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 6782 | |
81ecdfbb RW |
6783 | done |
6784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6785 | rm -f conftest.err conftest.$ac_ext | |
6786 | if $ac_preproc_ok; then : | |
3d857b98 DK |
6787 | |
6788 | else | |
81ecdfbb RW |
6789 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6790 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6791 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6792 | See \`config.log' for more details." "$LINENO" 5; } | |
6793 | fi | |
6794 | ||
6795 | ac_ext=cpp | |
6796 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6800 | ||
6801 | ||
6802 | for ac_header in tr1/unordered_set tr1/unordered_map | |
6803 | do : | |
6804 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6805 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6806 | eval as_val=\$$as_ac_Header | |
6807 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6808 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6809 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
6810 | _ACEOF |
6811 | ||
3d857b98 | 6812 | fi |
3d857b98 | 6813 | |
81ecdfbb RW |
6814 | done |
6815 | ||
6816 | for ac_header in ext/hash_map ext/hash_set | |
6817 | do : | |
6818 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6819 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6820 | eval as_val=\$$as_ac_Header | |
6821 | if test "x$as_val" = x""yes; then : | |
6822 | cat >>confdefs.h <<_ACEOF | |
6823 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6824 | _ACEOF | |
3d857b98 | 6825 | |
3d857b98 | 6826 | fi |
3d857b98 | 6827 | |
81ecdfbb RW |
6828 | done |
6829 | ||
6830 | for ac_header in byteswap.h | |
6831 | do : | |
6832 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
6833 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
6834 | cat >>confdefs.h <<_ACEOF | |
6835 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
6836 | _ACEOF |
6837 | ||
81ecdfbb | 6838 | fi |
3d857b98 | 6839 | |
81ecdfbb RW |
6840 | done |
6841 | ||
d675ff46 | 6842 | for ac_func in mallinfo posix_fallocate readv sysconf times |
81ecdfbb RW |
6843 | do : |
6844 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6845 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6846 | eval as_val=\$$as_ac_var | |
6847 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 6848 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6849 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
6850 | _ACEOF |
6851 | ||
3d857b98 | 6852 | fi |
81ecdfbb RW |
6853 | done |
6854 | ||
6855 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6856 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6857 | ac_have_decl=1 | |
3d857b98 | 6858 | else |
81ecdfbb RW |
6859 | ac_have_decl=0 |
6860 | fi | |
3d857b98 | 6861 | |
81ecdfbb RW |
6862 | cat >>confdefs.h <<_ACEOF |
6863 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 6864 | _ACEOF |
81ecdfbb RW |
6865 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6866 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6867 | ac_have_decl=1 | |
3d857b98 | 6868 | else |
81ecdfbb | 6869 | ac_have_decl=0 |
3d857b98 | 6870 | fi |
3d857b98 DK |
6871 | |
6872 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6873 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 6874 | _ACEOF |
81ecdfbb RW |
6875 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6876 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6877 | ac_have_decl=1 | |
3d857b98 | 6878 | else |
81ecdfbb | 6879 | ac_have_decl=0 |
3d857b98 | 6880 | fi |
3d857b98 | 6881 | |
81ecdfbb RW |
6882 | cat >>confdefs.h <<_ACEOF |
6883 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 6884 | _ACEOF |
81ecdfbb RW |
6885 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6886 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6887 | ac_have_decl=1 | |
3d857b98 | 6888 | else |
81ecdfbb | 6889 | ac_have_decl=0 |
3d857b98 | 6890 | fi |
3d857b98 DK |
6891 | |
6892 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6893 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 6894 | _ACEOF |
81ecdfbb RW |
6895 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6896 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6897 | ac_have_decl=1 | |
3d857b98 | 6898 | else |
81ecdfbb | 6899 | ac_have_decl=0 |
3d857b98 | 6900 | fi |
3d857b98 | 6901 | |
81ecdfbb RW |
6902 | cat >>confdefs.h <<_ACEOF |
6903 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 6904 | _ACEOF |
81ecdfbb RW |
6905 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
6906 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6907 | ac_have_decl=1 | |
3d857b98 | 6908 | else |
81ecdfbb | 6909 | ac_have_decl=0 |
3d857b98 | 6910 | fi |
3d857b98 DK |
6911 | |
6912 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6913 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 6914 | _ACEOF |
81ecdfbb RW |
6915 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
6916 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6917 | ac_have_decl=1 | |
3d857b98 | 6918 | else |
81ecdfbb RW |
6919 | ac_have_decl=0 |
6920 | fi | |
3d857b98 | 6921 | |
81ecdfbb RW |
6922 | cat >>confdefs.h <<_ACEOF |
6923 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
6924 | _ACEOF | |
6925 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
6926 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
6927 | ac_have_decl=1 | |
6928 | else | |
6929 | ac_have_decl=0 | |
6930 | fi | |
3d857b98 | 6931 | |
81ecdfbb RW |
6932 | cat >>confdefs.h <<_ACEOF |
6933 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
6934 | _ACEOF | |
6935 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
6936 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
6937 | ac_have_decl=1 | |
6938 | else | |
6939 | ac_have_decl=0 | |
3d857b98 DK |
6940 | fi |
6941 | ||
81ecdfbb RW |
6942 | cat >>confdefs.h <<_ACEOF |
6943 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
6944 | _ACEOF | |
3d857b98 | 6945 | |
e44fcf3b | 6946 | |
40fde488 CD |
6947 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
6948 | # at link time with some versions of GCC. | |
81ecdfbb RW |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
6950 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
6951 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
6952 | $as_echo_n "(cached) " >&6 | |
40fde488 | 6953 | else |
81ecdfbb | 6954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
6955 | /* end confdefs.h. */ |
6956 | ||
6957 | #include <tr1/unordered_map> | |
6958 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
6959 | ||
6960 | int | |
6961 | main () | |
6962 | { | |
6963 | ||
6964 | ; | |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
81ecdfbb | 6968 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
6969 | gold_cv_unordered_map_rehash=yes |
6970 | else | |
81ecdfbb | 6971 | gold_cv_unordered_map_rehash=no |
40fde488 | 6972 | fi |
81ecdfbb RW |
6973 | rm -f core conftest.err conftest.$ac_objext \ |
6974 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 6975 | fi |
81ecdfbb RW |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
6977 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
6978 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
6979 | ||
81ecdfbb | 6980 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
6981 | |
6982 | fi | |
6983 | ||
04bf7072 ILT |
6984 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
6985 | # function. Check for that. This is gcc bug 35546. This test can | |
6986 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
6988 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
6989 | if test "${gold_cv_template_attribute+set}" = set; then : | |
6990 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 6991 | else |
81ecdfbb RW |
6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6993 | /* end confdefs.h. */ | |
04bf7072 ILT |
6994 | |
6995 | template<typename T> extern void foo(const char*, ...) | |
6996 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
6997 | template<typename T> void foo(const char* format, ...) {} | |
6998 | void bar() { foo<int>("%s\n", "foo"); } | |
6999 | ||
7000 | _ACEOF | |
81ecdfbb | 7001 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7002 | gold_cv_template_attribute=yes |
7003 | else | |
81ecdfbb | 7004 | gold_cv_template_attribute=no |
04bf7072 | 7005 | fi |
81ecdfbb | 7006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7007 | fi |
81ecdfbb RW |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7009 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7010 | if test "$gold_cv_template_attribute" = "yes"; then |
7011 | ||
81ecdfbb | 7012 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7013 | |
7014 | fi | |
7015 | ||
5d329b7d ILT |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7017 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7018 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7019 | $as_echo_n "(cached) " >&6 | |
7020 | else | |
7021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7022 | /* end confdefs.h. */ | |
7023 | ||
7024 | #include <sys/stat.h> | |
7025 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7026 | ||
7027 | int | |
7028 | main () | |
7029 | { | |
7030 | ||
7031 | ; | |
7032 | return 0; | |
7033 | } | |
7034 | _ACEOF | |
7035 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7036 | gold_cv_stat_st_mtim=yes | |
7037 | else | |
7038 | gold_cv_stat_st_mtim=no | |
7039 | fi | |
7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7041 | fi | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7043 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7044 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7045 | ||
7046 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7047 | ||
7048 | fi | |
7049 | ||
54dc6425 ILT |
7050 | ac_ext=c |
7051 | ac_cpp='$CPP $CPPFLAGS' | |
7052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7055 | ||
7056 | ||
81ecdfbb RW |
7057 | |
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7059 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7060 | # Check whether --enable-maintainer-mode was given. | |
7061 | if test "${enable_maintainer_mode+set}" = set; then : | |
7062 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7063 | else |
7064 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7065 | fi |
bae7f79e | 7066 | |
81ecdfbb RW |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7068 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7069 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7070 | MAINTAINER_MODE_TRUE= |
7071 | MAINTAINER_MODE_FALSE='#' | |
7072 | else | |
7073 | MAINTAINER_MODE_TRUE='#' | |
7074 | MAINTAINER_MODE_FALSE= | |
7075 | fi | |
7076 | ||
7077 | MAINT=$MAINTAINER_MODE_TRUE | |
7078 | ||
7079 | ||
7080 | ||
81ecdfbb RW |
7081 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7082 | ||
bae7f79e ILT |
7083 | cat >confcache <<\_ACEOF |
7084 | # This file is a shell script that caches the results of configure | |
7085 | # tests run on this system so they can be shared between configure | |
7086 | # scripts and configure runs, see configure's option --config-cache. | |
7087 | # It is not useful on other systems. If it contains results you don't | |
7088 | # want to keep, you may remove or edit it. | |
7089 | # | |
7090 | # config.status only pays attention to the cache file if you give it | |
7091 | # the --recheck option to rerun configure. | |
7092 | # | |
7093 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7094 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7095 | # following values. | |
7096 | ||
7097 | _ACEOF | |
7098 | ||
7099 | # The following way of writing the cache mishandles newlines in values, | |
7100 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7101 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7102 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7103 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7104 | ( |
7105 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7106 | eval ac_val=\$$ac_var | |
7107 | case $ac_val in #( | |
7108 | *${as_nl}*) | |
7109 | case $ac_var in #( | |
7110 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7111 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7112 | esac | |
7113 | case $ac_var in #( | |
7114 | _ | IFS | as_nl) ;; #( | |
7115 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7116 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7117 | esac ;; | |
7118 | esac | |
7119 | done | |
7120 | ||
bae7f79e | 7121 | (set) 2>&1 | |
81ecdfbb RW |
7122 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7123 | *${as_nl}ac_space=\ *) | |
7124 | # `set' does not quote correctly, so add quotes: double-quote | |
7125 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7126 | sed -n \ |
7127 | "s/'/'\\\\''/g; | |
7128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7129 | ;; #( |
bae7f79e ILT |
7130 | *) |
7131 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7132 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7133 | ;; |
81ecdfbb RW |
7134 | esac | |
7135 | sort | |
7136 | ) | | |
bae7f79e | 7137 | sed ' |
81ecdfbb | 7138 | /^ac_cv_env_/b end |
bae7f79e | 7139 | t clear |
81ecdfbb | 7140 | :clear |
bae7f79e ILT |
7141 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7142 | t end | |
81ecdfbb RW |
7143 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7144 | :end' >>confcache | |
7145 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7146 | if test -w "$cache_file"; then | |
7147 | test "x$cache_file" != "x/dev/null" && | |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7149 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7150 | cat confcache >$cache_file |
7151 | else | |
81ecdfbb RW |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7153 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7154 | fi |
7155 | fi | |
7156 | rm -f confcache | |
7157 | ||
7158 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7159 | # Let make expand exec_prefix. | |
7160 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7161 | ||
bae7f79e ILT |
7162 | DEFS=-DHAVE_CONFIG_H |
7163 | ||
7164 | ac_libobjs= | |
7165 | ac_ltlibobjs= | |
7166 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7167 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7168 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7169 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7170 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7171 | # will be set to the directory where LIBOBJS objects are built. | |
7172 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7173 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7174 | done |
7175 | LIBOBJS=$ac_libobjs | |
7176 | ||
7177 | LTLIBOBJS=$ac_ltlibobjs | |
7178 | ||
7179 | ||
81ecdfbb RW |
7180 | if test -n "$EXEEXT"; then |
7181 | am__EXEEXT_TRUE= | |
7182 | am__EXEEXT_FALSE='#' | |
7183 | else | |
7184 | am__EXEEXT_TRUE='#' | |
7185 | am__EXEEXT_FALSE= | |
7186 | fi | |
7187 | ||
fe9a4c12 | 7188 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7189 | as_fn_error "conditional \"THREADS\" was never defined. |
7190 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7191 | fi |
89fc3421 | 7192 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7193 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7194 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7195 | fi |
364c7fa5 ILT |
7196 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7197 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7198 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7199 | fi | |
7200 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7201 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7202 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7203 | fi | |
7204 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7205 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7206 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7207 | fi | |
7208 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7209 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7210 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7211 | fi | |
7212 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then | |
7213 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7214 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7215 | fi | |
bae7f79e | 7216 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7217 | as_fn_error "conditional \"AMDEP\" was never defined. |
7218 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7219 | fi |
7220 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7221 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7222 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7223 | fi |
7224 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7225 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7226 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7227 | fi |
81ecdfbb | 7228 | |
537b5f51 | 7229 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7230 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7231 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7232 | fi |
7233 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7234 | as_fn_error "conditional \"GCC\" was never defined. |
7235 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7236 | fi |
eb373049 ILT |
7237 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7238 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7239 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7240 | fi | |
63402fe4 | 7241 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7242 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7243 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7244 | fi |
8a5e3e08 | 7245 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7246 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7247 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7248 | fi |
6eee141f | 7249 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7250 | as_fn_error "conditional \"TLS\" was never defined. |
7251 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7252 | fi |
097ec620 | 7253 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7254 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7255 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7256 | fi |
155a0dd7 | 7257 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7258 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7259 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7260 | fi |
c2b45e22 | 7261 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7262 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7263 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7264 | fi |
7265 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7266 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7267 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7268 | fi |
2fd32231 | 7269 | if test -z "${CONSTRUCTOR_PRIORITY_TRUE}" && test -z "${CONSTRUCTOR_PRIORITY_FALSE}"; then |
81ecdfbb RW |
7270 | as_fn_error "conditional \"CONSTRUCTOR_PRIORITY\" was never defined. |
7271 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd32231 | 7272 | fi |
7223e9ca ILT |
7273 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7274 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7275 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7276 | fi | |
7fcd0256 | 7277 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
81ecdfbb RW |
7278 | as_fn_error "conditional \"HAVE_ZLIB\" was never defined. |
7279 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7fcd0256 | 7280 | fi |
bae7f79e | 7281 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7282 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7283 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7284 | fi |
7285 | ||
7286 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7287 | ac_write_fail=0 |
bae7f79e ILT |
7288 | ac_clean_files_save=$ac_clean_files |
7289 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7291 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7292 | as_write_fail=0 | |
7293 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7294 | #! $SHELL |
7295 | # Generated by $as_me. | |
7296 | # Run this file to recreate the current configuration. | |
7297 | # Compiler output produced by configure, useful for debugging | |
7298 | # configure, is in config.log if it exists. | |
7299 | ||
7300 | debug=false | |
7301 | ac_cs_recheck=false | |
7302 | ac_cs_silent=false | |
bae7f79e | 7303 | |
81ecdfbb RW |
7304 | SHELL=\${CONFIG_SHELL-$SHELL} |
7305 | export SHELL | |
7306 | _ASEOF | |
7307 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7308 | ## -------------------- ## | |
7309 | ## M4sh Initialization. ## | |
7310 | ## -------------------- ## | |
bae7f79e | 7311 | |
81ecdfbb RW |
7312 | # Be more Bourne compatible |
7313 | DUALCASE=1; export DUALCASE # for MKS sh | |
7314 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7315 | emulate sh |
7316 | NULLCMD=: | |
81ecdfbb | 7317 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7318 | # is contrary to our usage. Disable this feature. |
7319 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7320 | setopt NO_GLOB_SUBST |
7321 | else | |
7322 | case `(set -o) 2>/dev/null` in #( | |
7323 | *posix*) : | |
7324 | set -o posix ;; #( | |
7325 | *) : | |
7326 | ;; | |
7327 | esac | |
bae7f79e | 7328 | fi |
bae7f79e | 7329 | |
81ecdfbb RW |
7330 | |
7331 | as_nl=' | |
7332 | ' | |
7333 | export as_nl | |
7334 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7335 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7336 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7337 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7338 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7339 | # but without wasting forks for bash or zsh. | |
7340 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7341 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7342 | as_echo='print -r --' | |
7343 | as_echo_n='print -rn --' | |
7344 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7345 | as_echo='printf %s\n' | |
7346 | as_echo_n='printf %s' | |
7347 | else | |
7348 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7349 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7350 | as_echo_n='/usr/ucb/echo -n' | |
7351 | else | |
7352 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7353 | as_echo_n_body='eval | |
7354 | arg=$1; | |
7355 | case $arg in #( | |
7356 | *"$as_nl"*) | |
7357 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7358 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7359 | esac; | |
7360 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7361 | ' | |
7362 | export as_echo_n_body | |
7363 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7364 | fi | |
7365 | export as_echo_body | |
7366 | as_echo='sh -c $as_echo_body as_echo' | |
7367 | fi | |
7368 | ||
7369 | # The user is always right. | |
7370 | if test "${PATH_SEPARATOR+set}" != set; then | |
7371 | PATH_SEPARATOR=: | |
7372 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7373 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7374 | PATH_SEPARATOR=';' | |
7375 | } | |
bae7f79e ILT |
7376 | fi |
7377 | ||
7378 | ||
81ecdfbb RW |
7379 | # IFS |
7380 | # We need space, tab and new line, in precisely that order. Quoting is | |
7381 | # there to prevent editors from complaining about space-tab. | |
7382 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7383 | # splitting by setting IFS to empty value.) | |
7384 | IFS=" "" $as_nl" | |
7385 | ||
7386 | # Find who we are. Look in the path if we contain no directory separator. | |
7387 | case $0 in #(( | |
7388 | *[\\/]* ) as_myself=$0 ;; | |
7389 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7390 | for as_dir in $PATH | |
7391 | do | |
7392 | IFS=$as_save_IFS | |
7393 | test -z "$as_dir" && as_dir=. | |
7394 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7395 | done | |
7396 | IFS=$as_save_IFS | |
7397 | ||
7398 | ;; | |
7399 | esac | |
7400 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7401 | # in which case we are not to be found in the path. | |
7402 | if test "x$as_myself" = x; then | |
7403 | as_myself=$0 | |
7404 | fi | |
7405 | if test ! -f "$as_myself"; then | |
7406 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7407 | exit 1 | |
7408 | fi | |
7409 | ||
7410 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7411 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7412 | # suppresses any "Segmentation fault" message there. '((' could | |
7413 | # trigger a bug in pdksh 5.2.14. | |
7414 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7415 | do eval test x\${$as_var+set} = xset \ | |
7416 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7417 | done | |
bae7f79e ILT |
7418 | PS1='$ ' |
7419 | PS2='> ' | |
7420 | PS4='+ ' | |
7421 | ||
7422 | # NLS nuisances. | |
81ecdfbb RW |
7423 | LC_ALL=C |
7424 | export LC_ALL | |
7425 | LANGUAGE=C | |
7426 | export LANGUAGE | |
7427 | ||
7428 | # CDPATH. | |
7429 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7430 | ||
7431 | ||
7432 | # as_fn_error ERROR [LINENO LOG_FD] | |
7433 | # --------------------------------- | |
7434 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7435 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7436 | # script with status $?, using 1 if that was 0. | |
7437 | as_fn_error () | |
7438 | { | |
7439 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7440 | if test "$3"; then | |
7441 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7442 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 7443 | fi |
81ecdfbb RW |
7444 | $as_echo "$as_me: error: $1" >&2 |
7445 | as_fn_exit $as_status | |
7446 | } # as_fn_error | |
7447 | ||
7448 | ||
7449 | # as_fn_set_status STATUS | |
7450 | # ----------------------- | |
7451 | # Set $? to STATUS, without forking. | |
7452 | as_fn_set_status () | |
7453 | { | |
7454 | return $1 | |
7455 | } # as_fn_set_status | |
bae7f79e | 7456 | |
81ecdfbb RW |
7457 | # as_fn_exit STATUS |
7458 | # ----------------- | |
7459 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7460 | as_fn_exit () | |
7461 | { | |
7462 | set +e | |
7463 | as_fn_set_status $1 | |
7464 | exit $1 | |
7465 | } # as_fn_exit | |
7466 | ||
7467 | # as_fn_unset VAR | |
7468 | # --------------- | |
7469 | # Portably unset VAR. | |
7470 | as_fn_unset () | |
7471 | { | |
7472 | { eval $1=; unset $1;} | |
7473 | } | |
7474 | as_unset=as_fn_unset | |
7475 | # as_fn_append VAR VALUE | |
7476 | # ---------------------- | |
7477 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7478 | # advantage of any shell optimizations that allow amortized linear growth over | |
7479 | # repeated appends, instead of the typical quadratic growth present in naive | |
7480 | # implementations. | |
7481 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7482 | eval 'as_fn_append () | |
7483 | { | |
7484 | eval $1+=\$2 | |
7485 | }' | |
7486 | else | |
7487 | as_fn_append () | |
7488 | { | |
7489 | eval $1=\$$1\$2 | |
7490 | } | |
7491 | fi # as_fn_append | |
7492 | ||
7493 | # as_fn_arith ARG... | |
7494 | # ------------------ | |
7495 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7496 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7497 | # must be portable across $(()) and expr. | |
7498 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7499 | eval 'as_fn_arith () | |
7500 | { | |
7501 | as_val=$(( $* )) | |
7502 | }' | |
7503 | else | |
7504 | as_fn_arith () | |
7505 | { | |
7506 | as_val=`expr "$@" || test $? -eq 1` | |
7507 | } | |
7508 | fi # as_fn_arith | |
7509 | ||
7510 | ||
7511 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7512 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
7513 | as_expr=expr |
7514 | else | |
7515 | as_expr=false | |
7516 | fi | |
7517 | ||
81ecdfbb | 7518 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
7519 | as_basename=basename |
7520 | else | |
7521 | as_basename=false | |
7522 | fi | |
7523 | ||
81ecdfbb RW |
7524 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7525 | as_dirname=dirname | |
7526 | else | |
7527 | as_dirname=false | |
7528 | fi | |
bae7f79e | 7529 | |
81ecdfbb | 7530 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
7531 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7532 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7533 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7534 | $as_echo X/"$0" | | |
7535 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7536 | s//\1/ | |
7537 | q | |
7538 | } | |
7539 | /^X\/\(\/\/\)$/{ | |
7540 | s//\1/ | |
7541 | q | |
7542 | } | |
7543 | /^X\/\(\/\).*/{ | |
7544 | s//\1/ | |
7545 | q | |
7546 | } | |
7547 | s/.*/./; q'` | |
bae7f79e | 7548 | |
bae7f79e ILT |
7549 | # Avoid depending upon Character Ranges. |
7550 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7551 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7552 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7553 | as_cr_digits='0123456789' | |
7554 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7555 | ||
81ecdfbb RW |
7556 | ECHO_C= ECHO_N= ECHO_T= |
7557 | case `echo -n x` in #((((( | |
7558 | -n*) | |
7559 | case `echo 'xy\c'` in | |
7560 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7561 | xy) ECHO_C='\c';; | |
7562 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7563 | ECHO_T=' ';; | |
7564 | esac;; | |
7565 | *) | |
7566 | ECHO_N='-n';; | |
bae7f79e ILT |
7567 | esac |
7568 | ||
81ecdfbb RW |
7569 | rm -f conf$$ conf$$.exe conf$$.file |
7570 | if test -d conf$$.dir; then | |
7571 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 7572 | else |
81ecdfbb RW |
7573 | rm -f conf$$.dir |
7574 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 7575 | fi |
81ecdfbb RW |
7576 | if (echo >conf$$.file) 2>/dev/null; then |
7577 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 7578 | as_ln_s='ln -s' |
81ecdfbb RW |
7579 | # ... but there are two gotchas: |
7580 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7581 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7582 | # In both cases, we have to default to `cp -p'. | |
7583 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7584 | as_ln_s='cp -p' | |
7585 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7586 | as_ln_s=ln | |
7587 | else | |
7588 | as_ln_s='cp -p' | |
bae7f79e | 7589 | fi |
bae7f79e ILT |
7590 | else |
7591 | as_ln_s='cp -p' | |
7592 | fi | |
81ecdfbb RW |
7593 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7594 | rmdir conf$$.dir 2>/dev/null | |
7595 | ||
7596 | ||
7597 | # as_fn_mkdir_p | |
7598 | # ------------- | |
7599 | # Create "$as_dir" as a directory, including parents if necessary. | |
7600 | as_fn_mkdir_p () | |
7601 | { | |
7602 | ||
7603 | case $as_dir in #( | |
7604 | -*) as_dir=./$as_dir;; | |
7605 | esac | |
7606 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7607 | as_dirs= | |
7608 | while :; do | |
7609 | case $as_dir in #( | |
7610 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7611 | *) as_qdir=$as_dir;; | |
7612 | esac | |
7613 | as_dirs="'$as_qdir' $as_dirs" | |
7614 | as_dir=`$as_dirname -- "$as_dir" || | |
7615 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7616 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7617 | X"$as_dir" : 'X\(//\)$' \| \ | |
7618 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7619 | $as_echo X"$as_dir" | | |
7620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7621 | s//\1/ | |
7622 | q | |
7623 | } | |
7624 | /^X\(\/\/\)[^/].*/{ | |
7625 | s//\1/ | |
7626 | q | |
7627 | } | |
7628 | /^X\(\/\/\)$/{ | |
7629 | s//\1/ | |
7630 | q | |
7631 | } | |
7632 | /^X\(\/\).*/{ | |
7633 | s//\1/ | |
7634 | q | |
7635 | } | |
7636 | s/.*/./; q'` | |
7637 | test -d "$as_dir" && break | |
7638 | done | |
7639 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7640 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
7641 | ||
bae7f79e | 7642 | |
81ecdfbb | 7643 | } # as_fn_mkdir_p |
bae7f79e | 7644 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7645 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
7646 | else |
7647 | test -d ./-p && rmdir ./-p | |
7648 | as_mkdir_p=false | |
7649 | fi | |
7650 | ||
81ecdfbb RW |
7651 | if test -x / >/dev/null 2>&1; then |
7652 | as_test_x='test -x' | |
7653 | else | |
7654 | if ls -dL / >/dev/null 2>&1; then | |
7655 | as_ls_L_option=L | |
7656 | else | |
7657 | as_ls_L_option= | |
7658 | fi | |
7659 | as_test_x=' | |
7660 | eval sh -c '\'' | |
7661 | if test -d "$1"; then | |
7662 | test -d "$1/."; | |
7663 | else | |
7664 | case $1 in #( | |
7665 | -*)set "./$1";; | |
7666 | esac; | |
7667 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
7668 | ???[sx]*):;;*)false;;esac;fi | |
7669 | '\'' sh | |
7670 | ' | |
7671 | fi | |
7672 | as_executable_p=$as_test_x | |
bae7f79e ILT |
7673 | |
7674 | # Sed expression to map a string onto a valid CPP name. | |
7675 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7676 | ||
7677 | # Sed expression to map a string onto a valid variable name. | |
7678 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7679 | ||
7680 | ||
bae7f79e | 7681 | exec 6>&1 |
81ecdfbb RW |
7682 | ## ----------------------------------- ## |
7683 | ## Main body of $CONFIG_STATUS script. ## | |
7684 | ## ----------------------------------- ## | |
7685 | _ASEOF | |
7686 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 7687 | |
81ecdfbb RW |
7688 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7689 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 7690 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7691 | # values after options handling. |
7692 | ac_log=" | |
8486ee48 | 7693 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 7694 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
7695 | |
7696 | CONFIG_FILES = $CONFIG_FILES | |
7697 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7698 | CONFIG_LINKS = $CONFIG_LINKS | |
7699 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7700 | $ $0 $@ | |
7701 | ||
81ecdfbb RW |
7702 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7703 | " | |
7704 | ||
bae7f79e ILT |
7705 | _ACEOF |
7706 | ||
81ecdfbb RW |
7707 | case $ac_config_files in *" |
7708 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7709 | esac | |
bae7f79e | 7710 | |
81ecdfbb RW |
7711 | case $ac_config_headers in *" |
7712 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7713 | esac | |
bae7f79e | 7714 | |
bae7f79e | 7715 | |
81ecdfbb RW |
7716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7717 | # Files that config.status was made for. | |
7718 | config_files="$ac_config_files" | |
7719 | config_headers="$ac_config_headers" | |
7720 | config_commands="$ac_config_commands" | |
bae7f79e | 7721 | |
81ecdfbb | 7722 | _ACEOF |
bae7f79e | 7723 | |
81ecdfbb | 7724 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7725 | ac_cs_usage="\ |
81ecdfbb RW |
7726 | \`$as_me' instantiates files and other configuration actions |
7727 | from templates according to the current configuration. Unless the files | |
7728 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 7729 | |
81ecdfbb | 7730 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
7731 | |
7732 | -h, --help print this help, then exit | |
81ecdfbb RW |
7733 | -V, --version print version number and configuration settings, then exit |
7734 | -q, --quiet, --silent | |
7735 | do not print progress messages | |
bae7f79e ILT |
7736 | -d, --debug don't remove temporary files |
7737 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7738 | --file=FILE[:TEMPLATE] |
7739 | instantiate the configuration file FILE | |
7740 | --header=FILE[:TEMPLATE] | |
7741 | instantiate the configuration header FILE | |
bae7f79e ILT |
7742 | |
7743 | Configuration files: | |
7744 | $config_files | |
7745 | ||
7746 | Configuration headers: | |
7747 | $config_headers | |
7748 | ||
7749 | Configuration commands: | |
7750 | $config_commands | |
7751 | ||
81ecdfbb | 7752 | Report bugs to the package provider." |
bae7f79e | 7753 | |
81ecdfbb RW |
7754 | _ACEOF |
7755 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7756 | ac_cs_version="\\ |
8486ee48 | 7757 | gold config.status 0.1 |
81ecdfbb RW |
7758 | configured by $0, generated by GNU Autoconf 2.64, |
7759 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 7760 | |
81ecdfbb | 7761 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
7762 | This config.status script is free software; the Free Software Foundation |
7763 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7764 | |
7765 | ac_pwd='$ac_pwd' | |
7766 | srcdir='$srcdir' | |
7767 | INSTALL='$INSTALL' | |
7768 | MKDIR_P='$MKDIR_P' | |
7769 | AWK='$AWK' | |
7770 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
7771 | _ACEOF |
7772 | ||
81ecdfbb RW |
7773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7774 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
7775 | ac_need_defaults=: |
7776 | while test $# != 0 | |
7777 | do | |
7778 | case $1 in | |
7779 | --*=*) | |
81ecdfbb RW |
7780 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7781 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
7782 | ac_shift=: |
7783 | ;; | |
81ecdfbb | 7784 | *) |
bae7f79e ILT |
7785 | ac_option=$1 |
7786 | ac_optarg=$2 | |
7787 | ac_shift=shift | |
7788 | ;; | |
bae7f79e ILT |
7789 | esac |
7790 | ||
7791 | case $ac_option in | |
7792 | # Handling of the options. | |
bae7f79e ILT |
7793 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7794 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
7795 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7796 | $as_echo "$ac_cs_version"; exit ;; | |
7797 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
7798 | debug=: ;; |
7799 | --file | --fil | --fi | --f ) | |
7800 | $ac_shift | |
81ecdfbb RW |
7801 | case $ac_optarg in |
7802 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7803 | esac | |
7804 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
7805 | ac_need_defaults=false;; |
7806 | --header | --heade | --head | --hea ) | |
7807 | $ac_shift | |
81ecdfbb RW |
7808 | case $ac_optarg in |
7809 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7810 | esac | |
7811 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 7812 | ac_need_defaults=false;; |
81ecdfbb RW |
7813 | --he | --h) |
7814 | # Conflict between --help and --header | |
7815 | as_fn_error "ambiguous option: \`$1' | |
7816 | Try \`$0 --help' for more information.";; | |
7817 | --help | --hel | -h ) | |
7818 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
7819 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7820 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7821 | ac_cs_silent=: ;; | |
7822 | ||
7823 | # This is an error. | |
81ecdfbb RW |
7824 | -*) as_fn_error "unrecognized option: \`$1' |
7825 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 7826 | |
81ecdfbb RW |
7827 | *) as_fn_append ac_config_targets " $1" |
7828 | ac_need_defaults=false ;; | |
bae7f79e ILT |
7829 | |
7830 | esac | |
7831 | shift | |
7832 | done | |
7833 | ||
7834 | ac_configure_extra_args= | |
7835 | ||
7836 | if $ac_cs_silent; then | |
7837 | exec 6>/dev/null | |
7838 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7839 | fi | |
7840 | ||
7841 | _ACEOF | |
81ecdfbb | 7842 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 7843 | if \$ac_cs_recheck; then |
81ecdfbb RW |
7844 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7845 | shift | |
7846 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7847 | CONFIG_SHELL='$SHELL' | |
7848 | export CONFIG_SHELL | |
7849 | exec "\$@" | |
bae7f79e ILT |
7850 | fi |
7851 | ||
7852 | _ACEOF | |
81ecdfbb RW |
7853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7854 | exec 5>>config.log | |
7855 | { | |
7856 | echo | |
7857 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7858 | ## Running $as_me. ## | |
7859 | _ASBOX | |
7860 | $as_echo "$ac_log" | |
7861 | } >&5 | |
bae7f79e | 7862 | |
81ecdfbb RW |
7863 | _ACEOF |
7864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 7865 | # |
81ecdfbb | 7866 | # INIT-COMMANDS |
bae7f79e | 7867 | # |
bae7f79e ILT |
7868 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
7869 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
7870 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
7871 | # from automake. | |
7872 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
7873 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
7874 | LINGUAS="${LINGUAS-%UNSET%}" | |
7875 | ||
7876 | ||
7877 | _ACEOF | |
7878 | ||
81ecdfbb | 7879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 7880 | |
81ecdfbb | 7881 | # Handling of arguments. |
bae7f79e ILT |
7882 | for ac_config_target in $ac_config_targets |
7883 | do | |
81ecdfbb RW |
7884 | case $ac_config_target in |
7885 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
7886 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7887 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7888 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7889 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
7890 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
7891 | ||
7892 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
7893 | esac |
7894 | done | |
7895 | ||
81ecdfbb | 7896 | |
bae7f79e ILT |
7897 | # If the user did not use the arguments to specify the items to instantiate, |
7898 | # then the envvar interface is used. Set only those that are not. | |
7899 | # We use the long form for the default assignment because of an extremely | |
7900 | # bizarre bug on SunOS 4.1.3. | |
7901 | if $ac_need_defaults; then | |
7902 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7903 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7904 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7905 | fi | |
7906 | ||
7907 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 7908 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 7909 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7910 | # Hook for its removal unless debugging. |
7911 | # Note that there is a small window in which the directory will not be cleaned: | |
7912 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
7913 | $debug || |
7914 | { | |
81ecdfbb RW |
7915 | tmp= |
7916 | trap 'exit_status=$? | |
7917 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7918 | ' 0 | |
7919 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 7920 | } |
bae7f79e ILT |
7921 | # Create a (secure) tmp directory for tmp files. |
7922 | ||
7923 | { | |
81ecdfbb | 7924 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
7925 | test -n "$tmp" && test -d "$tmp" |
7926 | } || | |
7927 | { | |
81ecdfbb RW |
7928 | tmp=./conf$$-$RANDOM |
7929 | (umask 077 && mkdir "$tmp") | |
7930 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
7931 | ||
7932 | # Set up the scripts for CONFIG_FILES section. | |
7933 | # No need to generate them if there are no CONFIG_FILES. | |
7934 | # This happens for instance with `./config.status config.h'. | |
7935 | if test -n "$CONFIG_FILES"; then | |
7936 | ||
7937 | ||
7938 | ac_cr=`echo X | tr X '\015'` | |
7939 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7940 | # But we know of no other shell where ac_cr would be empty at this | |
7941 | # point, so we can use a bashism as a fallback. | |
7942 | if test "x$ac_cr" = x; then | |
7943 | eval ac_cr=\$\'\\r\' | |
7944 | fi | |
7945 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7946 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7947 | ac_cs_awk_cr='\r' | |
7948 | else | |
7949 | ac_cs_awk_cr=$ac_cr | |
7950 | fi | |
7951 | ||
7952 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
7953 | _ACEOF | |
7954 | ||
7955 | ||
7956 | { | |
7957 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7958 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7959 | echo "_ACEOF" | |
7960 | } >conf$$subs.sh || | |
7961 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7962 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7963 | ac_delim='%!_!# ' | |
7964 | for ac_last_try in false false false false false :; do | |
7965 | . ./conf$$subs.sh || | |
7966 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7967 | ||
7968 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7969 | if test $ac_delim_n = $ac_delim_num; then | |
7970 | break | |
7971 | elif $ac_last_try; then | |
7972 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7973 | else | |
7974 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7975 | fi | |
7976 | done | |
7977 | rm -f conf$$subs.sh | |
7978 | ||
7979 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7980 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7981 | _ACEOF | |
7982 | sed -n ' | |
7983 | h | |
7984 | s/^/S["/; s/!.*/"]=/ | |
7985 | p | |
7986 | g | |
7987 | s/^[^!]*!// | |
7988 | :repl | |
7989 | t repl | |
7990 | s/'"$ac_delim"'$// | |
7991 | t delim | |
7992 | :nl | |
7993 | h | |
7994 | s/\(.\{148\}\).*/\1/ | |
7995 | t more1 | |
7996 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7997 | p | |
7998 | n | |
7999 | b repl | |
8000 | :more1 | |
8001 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8002 | p | |
8003 | g | |
8004 | s/.\{148\}// | |
8005 | t nl | |
8006 | :delim | |
8007 | h | |
8008 | s/\(.\{148\}\).*/\1/ | |
8009 | t more2 | |
8010 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8011 | p | |
8012 | b | |
8013 | :more2 | |
8014 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8015 | p | |
8016 | g | |
8017 | s/.\{148\}// | |
8018 | t delim | |
8019 | ' <conf$$subs.awk | sed ' | |
8020 | /^[^""]/{ | |
8021 | N | |
8022 | s/\n// | |
8023 | } | |
8024 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8025 | rm -f conf$$subs.awk | |
8026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8027 | _ACAWK | |
8028 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8029 | for (key in S) S_is_set[key] = 1 | |
8030 | FS = "\a" | |
8031 | ||
8032 | } | |
bae7f79e | 8033 | { |
81ecdfbb RW |
8034 | line = $ 0 |
8035 | nfields = split(line, field, "@") | |
8036 | substed = 0 | |
8037 | len = length(field[1]) | |
8038 | for (i = 2; i < nfields; i++) { | |
8039 | key = field[i] | |
8040 | keylen = length(key) | |
8041 | if (S_is_set[key]) { | |
8042 | value = S[key] | |
8043 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8044 | len += length(value) + length(field[++i]) | |
8045 | substed = 1 | |
8046 | } else | |
8047 | len += 1 + keylen | |
8048 | } | |
8049 | ||
8050 | print line | |
bae7f79e ILT |
8051 | } |
8052 | ||
81ecdfbb RW |
8053 | _ACAWK |
8054 | _ACEOF | |
8055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8056 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8057 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8058 | else | |
8059 | cat | |
8060 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8061 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8062 | _ACEOF |
8063 | ||
81ecdfbb RW |
8064 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8065 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8066 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8067 | # (actually we leave an empty line to preserve line numbers). | |
8068 | if test "x$srcdir" = x.; then | |
8069 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8070 | s/:*\$(srcdir):*/:/ | |
8071 | s/:*\${srcdir}:*/:/ | |
8072 | s/:*@srcdir@:*/:/ | |
8073 | s/^\([^=]*=[ ]*\):*/\1/ | |
8074 | s/:*$// | |
8075 | s/^[^=]*=[ ]*$// | |
8076 | }' | |
8077 | fi | |
bae7f79e | 8078 | |
81ecdfbb RW |
8079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8080 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8081 | |
81ecdfbb RW |
8082 | # Set up the scripts for CONFIG_HEADERS section. |
8083 | # No need to generate them if there are no CONFIG_HEADERS. | |
8084 | # This happens for instance with `./config.status Makefile'. | |
8085 | if test -n "$CONFIG_HEADERS"; then | |
8086 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8087 | BEGIN { | |
bae7f79e ILT |
8088 | _ACEOF |
8089 | ||
81ecdfbb RW |
8090 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8091 | # here-document in config.status, that substitutes the proper values into | |
8092 | # config.h.in to produce config.h. | |
8093 | ||
8094 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8095 | # handling of long lines. | |
8096 | ac_delim='%!_!# ' | |
8097 | for ac_last_try in false false :; do | |
8098 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8099 | if test -z "$ac_t"; then | |
8100 | break | |
8101 | elif $ac_last_try; then | |
8102 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8103 | else | |
8104 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8105 | fi |
81ecdfbb | 8106 | done |
bae7f79e | 8107 | |
81ecdfbb RW |
8108 | # For the awk script, D is an array of macro values keyed by name, |
8109 | # likewise P contains macro parameters if any. Preserve backslash | |
8110 | # newline sequences. | |
8111 | ||
8112 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8113 | sed -n ' | |
8114 | s/.\{148\}/&'"$ac_delim"'/g | |
8115 | t rset | |
8116 | :rset | |
8117 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8118 | t def | |
8119 | d | |
8120 | :def | |
8121 | s/\\$// | |
8122 | t bsnl | |
8123 | s/["\\]/\\&/g | |
8124 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8125 | D["\1"]=" \3"/p | |
8126 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8127 | d | |
8128 | :bsnl | |
8129 | s/["\\]/\\&/g | |
8130 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8131 | D["\1"]=" \3\\\\\\n"\\/p | |
8132 | t cont | |
8133 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8134 | t cont | |
8135 | d | |
8136 | :cont | |
8137 | n | |
8138 | s/.\{148\}/&'"$ac_delim"'/g | |
8139 | t clear | |
8140 | :clear | |
8141 | s/\\$// | |
8142 | t bsnlc | |
8143 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8144 | d | |
8145 | :bsnlc | |
8146 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8147 | b cont | |
8148 | ' <confdefs.h | sed ' | |
8149 | s/'"$ac_delim"'/"\\\ | |
8150 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8151 | ||
8152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8153 | for (key in D) D_is_set[key] = 1 | |
8154 | FS = "\a" | |
8155 | } | |
8156 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8157 | line = \$ 0 | |
8158 | split(line, arg, " ") | |
8159 | if (arg[1] == "#") { | |
8160 | defundef = arg[2] | |
8161 | mac1 = arg[3] | |
8162 | } else { | |
8163 | defundef = substr(arg[1], 2) | |
8164 | mac1 = arg[2] | |
8165 | } | |
8166 | split(mac1, mac2, "(") #) | |
8167 | macro = mac2[1] | |
8168 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8169 | if (D_is_set[macro]) { | |
8170 | # Preserve the white space surrounding the "#". | |
8171 | print prefix "define", macro P[macro] D[macro] | |
8172 | next | |
8173 | } else { | |
8174 | # Replace #undef with comments. This is necessary, for example, | |
8175 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8176 | # on some systems where configure will not decide to define it. | |
8177 | if (defundef == "undef") { | |
8178 | print "/*", prefix defundef, macro, "*/" | |
8179 | next | |
8180 | } | |
8181 | } | |
8182 | } | |
8183 | { print } | |
8184 | _ACAWK | |
bae7f79e | 8185 | _ACEOF |
81ecdfbb RW |
8186 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8187 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8188 | fi # test -n "$CONFIG_HEADERS" | |
8189 | ||
8190 | ||
8191 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8192 | shift | |
8193 | for ac_tag | |
8194 | do | |
8195 | case $ac_tag in | |
8196 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8197 | esac | |
8198 | case $ac_mode$ac_tag in | |
8199 | :[FHL]*:*);; | |
8200 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8201 | :[FH]-) ac_tag=-:-;; | |
8202 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8203 | esac | |
8204 | ac_save_IFS=$IFS | |
8205 | IFS=: | |
8206 | set x $ac_tag | |
8207 | IFS=$ac_save_IFS | |
8208 | shift | |
8209 | ac_file=$1 | |
8210 | shift | |
8211 | ||
8212 | case $ac_mode in | |
8213 | :L) ac_source=$1;; | |
8214 | :[FH]) | |
8215 | ac_file_inputs= | |
8216 | for ac_f | |
8217 | do | |
8218 | case $ac_f in | |
8219 | -) ac_f="$tmp/stdin";; | |
8220 | *) # Look for the file first in the build tree, then in the source tree | |
8221 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8222 | # because $ac_f cannot contain `:'. | |
8223 | test -f "$ac_f" || | |
8224 | case $ac_f in | |
8225 | [\\/$]*) false;; | |
8226 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8227 | esac || | |
8228 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8229 | esac | |
8230 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8231 | as_fn_append ac_file_inputs " '$ac_f'" | |
8232 | done | |
8233 | ||
8234 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8235 | # use $as_me), people would be surprised to read: | |
8236 | # /* config.h. Generated by config.status. */ | |
8237 | configure_input='Generated from '` | |
8238 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8239 | `' by configure.' | |
8240 | if test x"$ac_file" != x-; then | |
8241 | configure_input="$ac_file. $configure_input" | |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8243 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8244 | fi | |
8245 | # Neutralize special characters interpreted by sed in replacement strings. | |
8246 | case $configure_input in #( | |
8247 | *\&* | *\|* | *\\* ) | |
8248 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8249 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8250 | *) ac_sed_conf_input=$configure_input;; | |
8251 | esac | |
8252 | ||
8253 | case $ac_tag in | |
8254 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8255 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8256 | esac | |
8257 | ;; | |
bae7f79e ILT |
8258 | esac |
8259 | ||
81ecdfbb | 8260 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8261 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8262 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8263 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8264 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8265 | $as_echo X"$ac_file" | | |
8266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8267 | s//\1/ | |
8268 | q | |
8269 | } | |
8270 | /^X\(\/\/\)[^/].*/{ | |
8271 | s//\1/ | |
8272 | q | |
8273 | } | |
8274 | /^X\(\/\/\)$/{ | |
8275 | s//\1/ | |
8276 | q | |
8277 | } | |
8278 | /^X\(\/\).*/{ | |
8279 | s//\1/ | |
8280 | q | |
8281 | } | |
8282 | s/.*/./; q'` | |
8283 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8284 | ac_builddir=. |
8285 | ||
81ecdfbb RW |
8286 | case "$ac_dir" in |
8287 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8288 | *) | |
8289 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8290 | # A ".." for each directory in $ac_dir_suffix. | |
8291 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8292 | case $ac_top_builddir_sub in | |
8293 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8294 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8295 | esac ;; | |
8296 | esac | |
8297 | ac_abs_top_builddir=$ac_pwd | |
8298 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8299 | # for backward compatibility: | |
8300 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8301 | |
8302 | case $srcdir in | |
81ecdfbb | 8303 | .) # We are building in place. |
bae7f79e | 8304 | ac_srcdir=. |
81ecdfbb RW |
8305 | ac_top_srcdir=$ac_top_builddir_sub |
8306 | ac_abs_top_srcdir=$ac_pwd ;; | |
8307 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8308 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8309 | ac_top_srcdir=$srcdir |
8310 | ac_abs_top_srcdir=$srcdir ;; | |
8311 | *) # Relative name. | |
8312 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8313 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8314 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8315 | esac |
81ecdfbb | 8316 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8317 | |
bae7f79e | 8318 | |
81ecdfbb RW |
8319 | case $ac_mode in |
8320 | :F) | |
8321 | # | |
8322 | # CONFIG_FILE | |
8323 | # | |
bae7f79e ILT |
8324 | |
8325 | case $INSTALL in | |
8326 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8327 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8328 | esac |
81ecdfbb RW |
8329 | ac_MKDIR_P=$MKDIR_P |
8330 | case $MKDIR_P in | |
8331 | [\\/$]* | ?:[\\/]* ) ;; | |
8332 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8333 | esac | |
8334 | _ACEOF | |
bae7f79e | 8335 | |
81ecdfbb RW |
8336 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8337 | # If the template does not know about datarootdir, expand it. | |
8338 | # FIXME: This hack should be removed a few years after 2.60. | |
8339 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8340 | ac_sed_dataroot=' | |
8341 | /datarootdir/ { | |
8342 | p | |
8343 | q | |
8344 | } | |
8345 | /@datadir@/p | |
8346 | /@docdir@/p | |
8347 | /@infodir@/p | |
8348 | /@localedir@/p | |
8349 | /@mandir@/p' | |
8350 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8351 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8352 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8354 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8355 | _ACEOF | |
8356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8357 | ac_datarootdir_hack=' | |
8358 | s&@datadir@&$datadir&g | |
8359 | s&@docdir@&$docdir&g | |
8360 | s&@infodir@&$infodir&g | |
8361 | s&@localedir@&$localedir&g | |
8362 | s&@mandir@&$mandir&g | |
8363 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8364 | esac | |
bae7f79e | 8365 | _ACEOF |
81ecdfbb RW |
8366 | |
8367 | # Neutralize VPATH when `$srcdir' = `.'. | |
8368 | # Shell code in configure.ac might set extrasub. | |
8369 | # FIXME: do we really want to maintain this feature? | |
8370 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8371 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8372 | $extrasub |
8373 | _ACEOF | |
81ecdfbb | 8374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8375 | :t |
8376 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8377 | s|@configure_input@|$ac_sed_conf_input|;t t |
8378 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8379 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8380 | s&@srcdir@&$ac_srcdir&;t t | |
8381 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8382 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8383 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8384 | s&@builddir@&$ac_builddir&;t t | |
8385 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8386 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8387 | s&@INSTALL@&$ac_INSTALL&;t t | |
8388 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8389 | $ac_datarootdir_hack | |
8390 | " | |
8391 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8392 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8393 | ||
8394 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8395 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8396 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8398 | which seems to be undefined. Please make sure it is defined." >&5 | |
8399 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8400 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8401 | ||
8402 | rm -f "$tmp/stdin" | |
bae7f79e | 8403 | case $ac_file in |
81ecdfbb RW |
8404 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8405 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8406 | esac \ | |
8407 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8408 | ;; | |
8409 | :H) | |
8410 | # | |
8411 | # CONFIG_HEADER | |
8412 | # | |
bae7f79e | 8413 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8414 | { |
8415 | $as_echo "/* $configure_input */" \ | |
8416 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8417 | } >"$tmp/config.h" \ | |
8418 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8419 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8421 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 8422 | else |
81ecdfbb RW |
8423 | rm -f "$ac_file" |
8424 | mv "$tmp/config.h" "$ac_file" \ | |
8425 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
8426 | fi |
8427 | else | |
81ecdfbb RW |
8428 | $as_echo "/* $configure_input */" \ |
8429 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8430 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 8431 | fi |
81ecdfbb RW |
8432 | # Compute "$ac_file"'s index in $config_headers. |
8433 | _am_arg="$ac_file" | |
bae7f79e ILT |
8434 | _am_stamp_count=1 |
8435 | for _am_header in $config_headers :; do | |
8436 | case $_am_header in | |
81ecdfbb | 8437 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
8438 | break ;; |
8439 | * ) | |
8440 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8441 | esac | |
8442 | done | |
81ecdfbb RW |
8443 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8444 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8445 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8446 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8447 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8448 | $as_echo X"$_am_arg" | | |
8449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8450 | s//\1/ | |
8451 | q | |
8452 | } | |
8453 | /^X\(\/\/\)[^/].*/{ | |
8454 | s//\1/ | |
8455 | q | |
8456 | } | |
8457 | /^X\(\/\/\)$/{ | |
8458 | s//\1/ | |
8459 | q | |
8460 | } | |
8461 | /^X\(\/\).*/{ | |
8462 | s//\1/ | |
8463 | q | |
8464 | } | |
8465 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8466 | ;; | |
bae7f79e | 8467 | |
81ecdfbb RW |
8468 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8469 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8470 | ;; | |
8471 | esac | |
bae7f79e ILT |
8472 | |
8473 | ||
81ecdfbb RW |
8474 | case $ac_file$ac_mode in |
8475 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8476 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
8477 | # are listed without --file. Let's play safe and only enable the eval | |
8478 | # if we detect the quoting. | |
8479 | case $CONFIG_FILES in | |
8480 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8481 | *) set x $CONFIG_FILES ;; | |
8482 | esac | |
8483 | shift | |
8484 | for mf | |
8485 | do | |
8486 | # Strip MF so we end up with the name of the file. | |
8487 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8488 | # Check whether this is an Automake generated Makefile or not. | |
8489 | # We used to match only the files named `Makefile.in', but | |
8490 | # some people rename them; so instead we look at the file content. | |
8491 | # Grep'ing the first line is not enough: some people post-process | |
8492 | # each Makefile.in and add a new line on top of each file to say so. | |
8493 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8494 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8495 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8496 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
8497 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8498 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8499 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8500 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
8501 | $as_echo X"$mf" | | |
8502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8503 | s//\1/ | |
8504 | q | |
8505 | } | |
8506 | /^X\(\/\/\)[^/].*/{ | |
8507 | s//\1/ | |
8508 | q | |
8509 | } | |
8510 | /^X\(\/\/\)$/{ | |
8511 | s//\1/ | |
8512 | q | |
8513 | } | |
8514 | /^X\(\/\).*/{ | |
8515 | s//\1/ | |
8516 | q | |
8517 | } | |
8518 | s/.*/./; q'` | |
8519 | else | |
8520 | continue | |
8521 | fi | |
8522 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8523 | # from the Makefile without running `make'. | |
8524 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8525 | test -z "$DEPDIR" && continue | |
8526 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8527 | test -z "am__include" && continue | |
8528 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8529 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8530 | U=`sed -n 's/^U = //p' < "$mf"` | |
8531 | # Find all dependency output files, they are included files with | |
8532 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8533 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8534 | # expansion. | |
8535 | for file in `sed -n " | |
8536 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8537 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8538 | # Make sure the directory exists. | |
8539 | test -f "$dirpart/$file" && continue | |
8540 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
8541 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8542 | X"$file" : 'X\(//\)[^/]' \| \ | |
8543 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8544 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
8545 | $as_echo X"$file" | | |
8546 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8547 | s//\1/ | |
8548 | q | |
8549 | } | |
8550 | /^X\(\/\/\)[^/].*/{ | |
8551 | s//\1/ | |
8552 | q | |
8553 | } | |
8554 | /^X\(\/\/\)$/{ | |
8555 | s//\1/ | |
8556 | q | |
8557 | } | |
8558 | /^X\(\/\).*/{ | |
8559 | s//\1/ | |
8560 | q | |
8561 | } | |
8562 | s/.*/./; q'` | |
8563 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8564 | # echo "creating $dirpart/$file" | |
8565 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 8566 | done |
bae7f79e | 8567 | done |
81ecdfbb | 8568 | } |
bae7f79e | 8569 | ;; |
81ecdfbb | 8570 | "default-1":C) |
bae7f79e ILT |
8571 | for ac_file in $CONFIG_FILES; do |
8572 | # Support "outfile[:infile[:infile...]]" | |
8573 | case "$ac_file" in | |
8574 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8575 | esac | |
8576 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8577 | case "$ac_file" in */Makefile.in) | |
8578 | # Adjust a relative srcdir. | |
8579 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
eb373049 | 8580 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
bae7f79e ILT |
8581 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8582 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8583 | # In autoconf-2.50 it is called $srcdir. | |
8584 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8585 | case "$ac_given_srcdir" in | |
8586 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8587 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8588 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8589 | esac | |
8590 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8591 | rm -f "$ac_dir/POTFILES" | |
8592 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8593 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8594 | POMAKEFILEDEPS="POTFILES.in" | |
8595 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8596 | # on $ac_dir but don't depend on user-specified configuration | |
8597 | # parameters. | |
8598 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8599 | # The LINGUAS file contains the set of available languages. | |
8600 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
8601 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
8602 | fi | |
8603 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8604 | # Hide the ALL_LINGUAS assigment from automake. | |
8605 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8606 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8607 | else | |
8608 | # The set of available languages was given in configure.in. | |
8609 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
8610 | fi | |
8611 | case "$ac_given_srcdir" in | |
8612 | .) srcdirpre= ;; | |
8613 | *) srcdirpre='$(srcdir)/' ;; | |
8614 | esac | |
8615 | POFILES= | |
8616 | GMOFILES= | |
8617 | UPDATEPOFILES= | |
8618 | DUMMYPOFILES= | |
8619 | for lang in $ALL_LINGUAS; do | |
8620 | POFILES="$POFILES $srcdirpre$lang.po" | |
8621 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8622 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8623 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8624 | done | |
8625 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8626 | # environment variable. | |
8627 | INST_LINGUAS= | |
8628 | if test -n "$ALL_LINGUAS"; then | |
8629 | for presentlang in $ALL_LINGUAS; do | |
8630 | useit=no | |
8631 | if test "%UNSET%" != "$LINGUAS"; then | |
8632 | desiredlanguages="$LINGUAS" | |
8633 | else | |
8634 | desiredlanguages="$ALL_LINGUAS" | |
8635 | fi | |
8636 | for desiredlang in $desiredlanguages; do | |
8637 | # Use the presentlang catalog if desiredlang is | |
8638 | # a. equal to presentlang, or | |
8639 | # b. a variant of presentlang (because in this case, | |
8640 | # presentlang can be used as a fallback for messages | |
8641 | # which are not translated in the desiredlang catalog). | |
8642 | case "$desiredlang" in | |
8643 | "$presentlang"*) useit=yes;; | |
8644 | esac | |
8645 | done | |
8646 | if test $useit = yes; then | |
8647 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8648 | fi | |
8649 | done | |
8650 | fi | |
8651 | CATALOGS= | |
8652 | if test -n "$INST_LINGUAS"; then | |
8653 | for lang in $INST_LINGUAS; do | |
8654 | CATALOGS="$CATALOGS $lang.gmo" | |
8655 | done | |
8656 | fi | |
8657 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8658 | 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" | |
8659 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8660 | if test -f "$f"; then | |
8661 | case "$f" in | |
8662 | *.orig | *.bak | *~) ;; | |
8663 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8664 | esac | |
8665 | fi | |
8666 | done | |
8667 | fi | |
8668 | ;; | |
8669 | esac | |
8670 | done ;; | |
81ecdfbb | 8671 | |
bae7f79e | 8672 | esac |
81ecdfbb | 8673 | done # for ac_tag |
bae7f79e | 8674 | |
bae7f79e | 8675 | |
81ecdfbb | 8676 | as_fn_exit 0 |
bae7f79e | 8677 | _ACEOF |
bae7f79e ILT |
8678 | ac_clean_files=$ac_clean_files_save |
8679 | ||
81ecdfbb RW |
8680 | test $ac_write_fail = 0 || |
8681 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8682 | ||
bae7f79e ILT |
8683 | |
8684 | # configure is writing to config.log, and then calls config.status. | |
8685 | # config.status does its own redirection, appending to config.log. | |
8686 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8687 | # by configure, so config.status won't be able to write to it; its | |
8688 | # output is simply discarded. So we exec the FD to /dev/null, | |
8689 | # effectively closing config.log, so it can be properly (re)opened and | |
8690 | # appended to by config.status. When coming back to configure, we | |
8691 | # need to make the FD available again. | |
8692 | if test "$no_create" != yes; then | |
8693 | ac_cs_success=: | |
8694 | ac_config_status_args= | |
8695 | test "$silent" = yes && | |
8696 | ac_config_status_args="$ac_config_status_args --quiet" | |
8697 | exec 5>/dev/null | |
8698 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8699 | exec 5>>config.log | |
8700 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8701 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
8702 | $ac_cs_success || as_fn_exit $? |
8703 | fi | |
8704 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8706 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
8707 | fi |
8708 |