]>
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 [email protected] 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 | |
0bf402d5 | 597 | DLOPEN_LIBS |
81ecdfbb | 598 | CXXCPP |
ae447ddd CC |
599 | HAVE_NO_USE_LINKER_PLUGIN_FALSE |
600 | HAVE_NO_USE_LINKER_PLUGIN_TRUE | |
601 | HAVE_PUBNAMES_FALSE | |
602 | HAVE_PUBNAMES_TRUE | |
918357b9 L |
603 | zlibinc |
604 | zlibdir | |
81ecdfbb RW |
605 | LIBOBJS |
606 | LFS_CFLAGS | |
dc87f620 ILT |
607 | GOLD_LDADD |
608 | GOLD_LDFLAGS | |
81ecdfbb | 609 | WARN_CXXFLAGS |
6757cf57 | 610 | WARN_WRITE_STRINGS |
81ecdfbb RW |
611 | NO_WERROR |
612 | WARN_CFLAGS | |
ebb300b2 CC |
613 | IFUNC_STATIC_FALSE |
614 | IFUNC_STATIC_TRUE | |
7223e9ca ILT |
615 | IFUNC_FALSE |
616 | IFUNC_TRUE | |
81ecdfbb | 617 | RANDOM_SEED_CFLAGS |
81ecdfbb RW |
618 | TLS_DESCRIPTORS_FALSE |
619 | TLS_DESCRIPTORS_TRUE | |
620 | TLS_GNU2_DIALECT_FALSE | |
621 | TLS_GNU2_DIALECT_TRUE | |
622 | OMP_SUPPORT_FALSE | |
623 | OMP_SUPPORT_TRUE | |
624 | STATIC_TLS_FALSE | |
625 | STATIC_TLS_TRUE | |
626 | TLS_FALSE | |
627 | TLS_TRUE | |
2b64b551 | 628 | MERGE_CONSTANTS_FLAG |
81ecdfbb RW |
629 | MCMODEL_MEDIUM_FALSE |
630 | MCMODEL_MEDIUM_TRUE | |
631 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE | |
632 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE | |
328c7c2f ILT |
633 | HAVE_STATIC_FALSE |
634 | HAVE_STATIC_TRUE | |
eb373049 ILT |
635 | NATIVE_OR_CROSS_LINKER_FALSE |
636 | NATIVE_OR_CROSS_LINKER_TRUE | |
81ecdfbb RW |
637 | GCC_FALSE |
638 | GCC_TRUE | |
639 | NATIVE_LINKER_FALSE | |
640 | NATIVE_LINKER_TRUE | |
641 | MSGMERGE | |
642 | MSGFMT | |
643 | MKINSTALLDIRS | |
644 | CATOBJEXT | |
645 | GENCAT | |
646 | INSTOBJEXT | |
647 | DATADIRNAME | |
648 | CATALOGS | |
649 | POSUB | |
650 | GMSGFMT | |
651 | XGETTEXT | |
652 | INCINTL | |
653 | LIBINTL_DEP | |
654 | LIBINTL | |
655 | USE_NLS | |
656 | EGREP | |
657 | GREP | |
658 | CPP | |
659 | LN_S | |
660 | RANLIB | |
661 | YFLAGS | |
662 | YACC | |
663 | am__fastdepCXX_FALSE | |
664 | am__fastdepCXX_TRUE | |
665 | CXXDEPMODE | |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | am__fastdepCC_FALSE | |
670 | am__fastdepCC_TRUE | |
671 | CCDEPMODE | |
672 | AMDEPBACKSLASH | |
673 | AMDEP_FALSE | |
674 | AMDEP_TRUE | |
675 | am__quote | |
676 | am__include | |
677 | DEPDIR | |
678 | OBJEXT | |
679 | EXEEXT | |
680 | ac_ct_CC | |
681 | CPPFLAGS | |
682 | LDFLAGS | |
683 | CFLAGS | |
684 | CC | |
ebb300b2 | 685 | NM |
81ecdfbb | 686 | TARGETOBJS |
9df9de2c | 687 | DEFAULT_TARGET |
9810d34d SS |
688 | DEFAULT_TARGET_MIPS_FALSE |
689 | DEFAULT_TARGET_MIPS_TRUE | |
0a6f1bf2 AM |
690 | DEFAULT_TARGET_TILEGX_FALSE |
691 | DEFAULT_TARGET_TILEGX_TRUE | |
4fc1b9d4 L |
692 | DEFAULT_TARGET_X32_FALSE |
693 | DEFAULT_TARGET_X32_TRUE | |
364c7fa5 ILT |
694 | DEFAULT_TARGET_X86_64_FALSE |
695 | DEFAULT_TARGET_X86_64_TRUE | |
e79a4bad MK |
696 | DEFAULT_TARGET_S390_FALSE |
697 | DEFAULT_TARGET_S390_TRUE | |
364c7fa5 ILT |
698 | DEFAULT_TARGET_SPARC_FALSE |
699 | DEFAULT_TARGET_SPARC_TRUE | |
700 | DEFAULT_TARGET_POWERPC_FALSE | |
701 | DEFAULT_TARGET_POWERPC_TRUE | |
702 | DEFAULT_TARGET_I386_FALSE | |
703 | DEFAULT_TARGET_I386_TRUE | |
704 | DEFAULT_TARGET_ARM_FALSE | |
705 | DEFAULT_TARGET_ARM_TRUE | |
053a4d68 JY |
706 | DEFAULT_TARGET_AARCH64_FALSE |
707 | DEFAULT_TARGET_AARCH64_TRUE | |
81ecdfbb RW |
708 | PLUGINS_FALSE |
709 | PLUGINS_TRUE | |
710 | THREADS_FALSE | |
711 | THREADS_TRUE | |
4fda8867 NC |
712 | installed_linker |
713 | install_as_default | |
81ecdfbb RW |
714 | am__untar |
715 | am__tar | |
716 | AMTAR | |
717 | am__leading_dot | |
718 | SET_MAKE | |
719 | AWK | |
720 | mkdir_p | |
721 | MKDIR_P | |
722 | INSTALL_STRIP_PROGRAM | |
723 | STRIP | |
724 | install_sh | |
725 | MAKEINFO | |
726 | AUTOHEADER | |
727 | AUTOMAKE | |
728 | AUTOCONF | |
729 | ACLOCAL | |
730 | VERSION | |
731 | PACKAGE | |
732 | CYGPATH_W | |
733 | am__isrc | |
734 | INSTALL_DATA | |
735 | INSTALL_SCRIPT | |
736 | INSTALL_PROGRAM | |
737 | target_os | |
738 | target_vendor | |
739 | target_cpu | |
740 | target | |
741 | host_os | |
742 | host_vendor | |
743 | host_cpu | |
744 | host | |
745 | build_os | |
746 | build_vendor | |
747 | build_cpu | |
748 | build | |
749 | target_alias | |
750 | host_alias | |
751 | build_alias | |
752 | LIBS | |
753 | ECHO_T | |
754 | ECHO_N | |
755 | ECHO_C | |
756 | DEFS | |
757 | mandir | |
758 | localedir | |
759 | libdir | |
760 | psdir | |
761 | pdfdir | |
762 | dvidir | |
763 | htmldir | |
764 | infodir | |
765 | docdir | |
766 | oldincludedir | |
767 | includedir | |
768 | localstatedir | |
769 | sharedstatedir | |
770 | sysconfdir | |
771 | datadir | |
772 | datarootdir | |
773 | libexecdir | |
774 | sbindir | |
775 | bindir | |
776 | program_transform_name | |
777 | prefix | |
778 | exec_prefix | |
779 | PACKAGE_URL | |
780 | PACKAGE_BUGREPORT | |
781 | PACKAGE_STRING | |
782 | PACKAGE_VERSION | |
783 | PACKAGE_TARNAME | |
784 | PACKAGE_NAME | |
785 | PATH_SEPARATOR | |
786 | SHELL' | |
bae7f79e | 787 | ac_subst_files='' |
81ecdfbb RW |
788 | ac_user_opts=' |
789 | enable_option_checking | |
790 | with_sysroot | |
4fda8867 | 791 | enable_gold |
81ecdfbb RW |
792 | enable_threads |
793 | enable_plugins | |
794 | enable_targets | |
3f3cddf1 | 795 | with_lib_path |
81ecdfbb RW |
796 | enable_dependency_tracking |
797 | enable_nls | |
798 | enable_werror | |
799 | enable_build_warnings | |
dc87f620 ILT |
800 | with_gold_ldflags |
801 | with_gold_ldadd | |
918357b9 | 802 | with_system_zlib |
81ecdfbb RW |
803 | enable_maintainer_mode |
804 | ' | |
805 | ac_precious_vars='build_alias | |
806 | host_alias | |
807 | target_alias | |
808 | CC | |
809 | CFLAGS | |
810 | LDFLAGS | |
811 | LIBS | |
812 | CPPFLAGS | |
813 | CXX | |
814 | CXXFLAGS | |
815 | CCC | |
816 | YACC | |
817 | YFLAGS | |
818 | CPP | |
819 | CXXCPP' | |
820 | ||
bae7f79e ILT |
821 | |
822 | # Initialize some variables set by options. | |
823 | ac_init_help= | |
824 | ac_init_version=false | |
81ecdfbb RW |
825 | ac_unrecognized_opts= |
826 | ac_unrecognized_sep= | |
bae7f79e ILT |
827 | # The variables have the same names as the options, with |
828 | # dashes changed to underlines. | |
829 | cache_file=/dev/null | |
830 | exec_prefix=NONE | |
831 | no_create= | |
832 | no_recursion= | |
833 | prefix=NONE | |
834 | program_prefix=NONE | |
835 | program_suffix=NONE | |
836 | program_transform_name=s,x,x, | |
837 | silent= | |
838 | site= | |
839 | srcdir= | |
840 | verbose= | |
841 | x_includes=NONE | |
842 | x_libraries=NONE | |
843 | ||
844 | # Installation directory options. | |
845 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
846 | # and all the variables that are supposed to be based on exec_prefix | |
847 | # by default will actually change. | |
848 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 849 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
850 | bindir='${exec_prefix}/bin' |
851 | sbindir='${exec_prefix}/sbin' | |
852 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
853 | datarootdir='${prefix}/share' |
854 | datadir='${datarootdir}' | |
bae7f79e ILT |
855 | sysconfdir='${prefix}/etc' |
856 | sharedstatedir='${prefix}/com' | |
857 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
858 | includedir='${prefix}/include' |
859 | oldincludedir='/usr/include' | |
81ecdfbb RW |
860 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
861 | infodir='${datarootdir}/info' | |
862 | htmldir='${docdir}' | |
863 | dvidir='${docdir}' | |
864 | pdfdir='${docdir}' | |
865 | psdir='${docdir}' | |
866 | libdir='${exec_prefix}/lib' | |
867 | localedir='${datarootdir}/locale' | |
868 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
869 | |
870 | ac_prev= | |
81ecdfbb | 871 | ac_dashdash= |
bae7f79e ILT |
872 | for ac_option |
873 | do | |
874 | # If the previous option needs an argument, assign it. | |
875 | if test -n "$ac_prev"; then | |
81ecdfbb | 876 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
877 | ac_prev= |
878 | continue | |
879 | fi | |
880 | ||
81ecdfbb RW |
881 | case $ac_option in |
882 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
883 | *) ac_optarg=yes ;; | |
884 | esac | |
bae7f79e ILT |
885 | |
886 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
887 | ||
81ecdfbb RW |
888 | case $ac_dashdash$ac_option in |
889 | --) | |
890 | ac_dashdash=yes ;; | |
bae7f79e ILT |
891 | |
892 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
893 | ac_prev=bindir ;; | |
894 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
895 | bindir=$ac_optarg ;; | |
896 | ||
897 | -build | --build | --buil | --bui | --bu) | |
898 | ac_prev=build_alias ;; | |
899 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
900 | build_alias=$ac_optarg ;; | |
901 | ||
902 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
903 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
904 | ac_prev=cache_file ;; | |
905 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
906 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
907 | cache_file=$ac_optarg ;; | |
908 | ||
909 | --config-cache | -C) | |
910 | cache_file=config.cache ;; | |
911 | ||
81ecdfbb | 912 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 913 | ac_prev=datadir ;; |
81ecdfbb | 914 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
915 | datadir=$ac_optarg ;; |
916 | ||
81ecdfbb RW |
917 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
918 | | --dataroo | --dataro | --datar) | |
919 | ac_prev=datarootdir ;; | |
920 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
921 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
922 | datarootdir=$ac_optarg ;; | |
923 | ||
bae7f79e | 924 | -disable-* | --disable-*) |
81ecdfbb | 925 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 926 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
927 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
928 | as_fn_error "invalid feature name: $ac_useropt" | |
929 | ac_useropt_orig=$ac_useropt | |
930 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
931 | case $ac_user_opts in | |
932 | *" | |
933 | "enable_$ac_useropt" | |
934 | "*) ;; | |
935 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
936 | ac_unrecognized_sep=', ';; | |
937 | esac | |
938 | eval enable_$ac_useropt=no ;; | |
939 | ||
940 | -docdir | --docdir | --docdi | --doc | --do) | |
941 | ac_prev=docdir ;; | |
942 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
943 | docdir=$ac_optarg ;; | |
944 | ||
945 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
946 | ac_prev=dvidir ;; | |
947 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
948 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
949 | |
950 | -enable-* | --enable-*) | |
81ecdfbb | 951 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 952 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
954 | as_fn_error "invalid feature name: $ac_useropt" | |
955 | ac_useropt_orig=$ac_useropt | |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
bae7f79e | 963 | esac |
81ecdfbb | 964 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
965 | |
966 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
967 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
968 | | --exec | --exe | --ex) | |
969 | ac_prev=exec_prefix ;; | |
970 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
971 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
972 | | --exec=* | --exe=* | --ex=*) | |
973 | exec_prefix=$ac_optarg ;; | |
974 | ||
975 | -gas | --gas | --ga | --g) | |
976 | # Obsolete; use --with-gas. | |
977 | with_gas=yes ;; | |
978 | ||
979 | -help | --help | --hel | --he | -h) | |
980 | ac_init_help=long ;; | |
981 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
982 | ac_init_help=recursive ;; | |
983 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
984 | ac_init_help=short ;; | |
985 | ||
986 | -host | --host | --hos | --ho) | |
987 | ac_prev=host_alias ;; | |
988 | -host=* | --host=* | --hos=* | --ho=*) | |
989 | host_alias=$ac_optarg ;; | |
990 | ||
81ecdfbb RW |
991 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
992 | ac_prev=htmldir ;; | |
993 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
994 | | --ht=*) | |
995 | htmldir=$ac_optarg ;; | |
996 | ||
bae7f79e ILT |
997 | -includedir | --includedir | --includedi | --included | --include \ |
998 | | --includ | --inclu | --incl | --inc) | |
999 | ac_prev=includedir ;; | |
1000 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1001 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1002 | includedir=$ac_optarg ;; | |
1003 | ||
1004 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1005 | ac_prev=infodir ;; | |
1006 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1007 | infodir=$ac_optarg ;; | |
1008 | ||
1009 | -libdir | --libdir | --libdi | --libd) | |
1010 | ac_prev=libdir ;; | |
1011 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1012 | libdir=$ac_optarg ;; | |
1013 | ||
1014 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1015 | | --libexe | --libex | --libe) | |
1016 | ac_prev=libexecdir ;; | |
1017 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1018 | | --libexe=* | --libex=* | --libe=*) | |
1019 | libexecdir=$ac_optarg ;; | |
1020 | ||
81ecdfbb RW |
1021 | -localedir | --localedir | --localedi | --localed | --locale) |
1022 | ac_prev=localedir ;; | |
1023 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1024 | localedir=$ac_optarg ;; | |
1025 | ||
bae7f79e | 1026 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1027 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1028 | ac_prev=localstatedir ;; |
1029 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1030 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1031 | localstatedir=$ac_optarg ;; |
1032 | ||
1033 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1034 | ac_prev=mandir ;; | |
1035 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1036 | mandir=$ac_optarg ;; | |
1037 | ||
1038 | -nfp | --nfp | --nf) | |
1039 | # Obsolete; use --without-fp. | |
1040 | with_fp=no ;; | |
1041 | ||
1042 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1043 | | --no-cr | --no-c | -n) | |
1044 | no_create=yes ;; | |
1045 | ||
1046 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1047 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1048 | no_recursion=yes ;; | |
1049 | ||
1050 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1051 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1052 | | --oldin | --oldi | --old | --ol | --o) | |
1053 | ac_prev=oldincludedir ;; | |
1054 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1055 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1056 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1057 | oldincludedir=$ac_optarg ;; | |
1058 | ||
1059 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1060 | ac_prev=prefix ;; | |
1061 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1062 | prefix=$ac_optarg ;; | |
1063 | ||
1064 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1065 | | --program-pre | --program-pr | --program-p) | |
1066 | ac_prev=program_prefix ;; | |
1067 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1068 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1069 | program_prefix=$ac_optarg ;; | |
1070 | ||
1071 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1072 | | --program-suf | --program-su | --program-s) | |
1073 | ac_prev=program_suffix ;; | |
1074 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1075 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1076 | program_suffix=$ac_optarg ;; | |
1077 | ||
1078 | -program-transform-name | --program-transform-name \ | |
1079 | | --program-transform-nam | --program-transform-na \ | |
1080 | | --program-transform-n | --program-transform- \ | |
1081 | | --program-transform | --program-transfor \ | |
1082 | | --program-transfo | --program-transf \ | |
1083 | | --program-trans | --program-tran \ | |
1084 | | --progr-tra | --program-tr | --program-t) | |
1085 | ac_prev=program_transform_name ;; | |
1086 | -program-transform-name=* | --program-transform-name=* \ | |
1087 | | --program-transform-nam=* | --program-transform-na=* \ | |
1088 | | --program-transform-n=* | --program-transform-=* \ | |
1089 | | --program-transform=* | --program-transfor=* \ | |
1090 | | --program-transfo=* | --program-transf=* \ | |
1091 | | --program-trans=* | --program-tran=* \ | |
1092 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1093 | program_transform_name=$ac_optarg ;; | |
1094 | ||
81ecdfbb RW |
1095 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1096 | ac_prev=pdfdir ;; | |
1097 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1098 | pdfdir=$ac_optarg ;; | |
1099 | ||
1100 | -psdir | --psdir | --psdi | --psd | --ps) | |
1101 | ac_prev=psdir ;; | |
1102 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1103 | psdir=$ac_optarg ;; | |
1104 | ||
bae7f79e ILT |
1105 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1106 | | -silent | --silent | --silen | --sile | --sil) | |
1107 | silent=yes ;; | |
1108 | ||
1109 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1110 | ac_prev=sbindir ;; | |
1111 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1112 | | --sbi=* | --sb=*) | |
1113 | sbindir=$ac_optarg ;; | |
1114 | ||
1115 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1116 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1117 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1118 | | --sha | --sh) | |
1119 | ac_prev=sharedstatedir ;; | |
1120 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1121 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1122 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1123 | | --sha=* | --sh=*) | |
1124 | sharedstatedir=$ac_optarg ;; | |
1125 | ||
1126 | -site | --site | --sit) | |
1127 | ac_prev=site ;; | |
1128 | -site=* | --site=* | --sit=*) | |
1129 | site=$ac_optarg ;; | |
1130 | ||
1131 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1132 | ac_prev=srcdir ;; | |
1133 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1134 | srcdir=$ac_optarg ;; | |
1135 | ||
1136 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1137 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1138 | ac_prev=sysconfdir ;; | |
1139 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1140 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1141 | sysconfdir=$ac_optarg ;; | |
1142 | ||
1143 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1144 | ac_prev=target_alias ;; | |
1145 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1146 | target_alias=$ac_optarg ;; | |
1147 | ||
1148 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1149 | verbose=yes ;; | |
1150 | ||
1151 | -version | --version | --versio | --versi | --vers | -V) | |
1152 | ac_init_version=: ;; | |
1153 | ||
1154 | -with-* | --with-*) | |
81ecdfbb | 1155 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1156 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1158 | as_fn_error "invalid package name: $ac_useropt" | |
1159 | ac_useropt_orig=$ac_useropt | |
1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1161 | case $ac_user_opts in | |
1162 | *" | |
1163 | "with_$ac_useropt" | |
1164 | "*) ;; | |
1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1166 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1167 | esac |
81ecdfbb | 1168 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1169 | |
1170 | -without-* | --without-*) | |
81ecdfbb | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1172 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1174 | as_fn_error "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
1183 | esac | |
1184 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1185 | |
1186 | --x) | |
1187 | # Obsolete; use --with-x. | |
1188 | with_x=yes ;; | |
1189 | ||
1190 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1191 | | --x-incl | --x-inc | --x-in | --x-i) | |
1192 | ac_prev=x_includes ;; | |
1193 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1194 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1195 | x_includes=$ac_optarg ;; | |
1196 | ||
1197 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1198 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1199 | ac_prev=x_libraries ;; | |
1200 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1201 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1202 | x_libraries=$ac_optarg ;; | |
1203 | ||
81ecdfbb RW |
1204 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1205 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1206 | ;; |
1207 | ||
1208 | *=*) | |
1209 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1210 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1211 | case $ac_envvar in #( |
1212 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1213 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1214 | esac | |
1215 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1216 | export $ac_envvar ;; |
1217 | ||
1218 | *) | |
1219 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1220 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1221 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1222 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1223 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1224 | ;; | |
1225 | ||
1226 | esac | |
1227 | done | |
1228 | ||
1229 | if test -n "$ac_prev"; then | |
1230 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1231 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1232 | fi |
1233 | ||
81ecdfbb RW |
1234 | if test -n "$ac_unrecognized_opts"; then |
1235 | case $enable_option_checking in | |
1236 | no) ;; | |
1237 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1238 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1239 | esac |
81ecdfbb | 1240 | fi |
bae7f79e | 1241 | |
81ecdfbb RW |
1242 | # Check all directory arguments for consistency. |
1243 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1244 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1245 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1246 | libdir localedir mandir | |
bae7f79e | 1247 | do |
81ecdfbb RW |
1248 | eval ac_val=\$$ac_var |
1249 | # Remove trailing slashes. | |
1250 | case $ac_val in | |
1251 | */ ) | |
1252 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1253 | eval $ac_var=\$ac_val;; | |
1254 | esac | |
1255 | # Be sure to have absolute directory names. | |
bae7f79e | 1256 | case $ac_val in |
81ecdfbb RW |
1257 | [\\/$]* | ?:[\\/]* ) continue;; |
1258 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1259 | esac |
81ecdfbb | 1260 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1261 | done |
1262 | ||
1263 | # There might be people who depend on the old broken behavior: `$host' | |
1264 | # used to hold the argument of --host etc. | |
1265 | # FIXME: To remove some day. | |
1266 | build=$build_alias | |
1267 | host=$host_alias | |
1268 | target=$target_alias | |
1269 | ||
1270 | # FIXME: To remove some day. | |
1271 | if test "x$host_alias" != x; then | |
1272 | if test "x$build_alias" = x; then | |
1273 | cross_compiling=maybe | |
81ecdfbb | 1274 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1275 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1276 | elif test "x$build_alias" != "x$host_alias"; then | |
1277 | cross_compiling=yes | |
1278 | fi | |
1279 | fi | |
1280 | ||
1281 | ac_tool_prefix= | |
1282 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1283 | ||
1284 | test "$silent" = yes && exec 6>/dev/null | |
1285 | ||
1286 | ||
81ecdfbb RW |
1287 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1288 | ac_ls_di=`ls -di .` && | |
1289 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1290 | as_fn_error "working directory cannot be determined" | |
1291 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1292 | as_fn_error "pwd does not report name of working directory" | |
1293 | ||
1294 | ||
bae7f79e ILT |
1295 | # Find the source files, if location was not specified. |
1296 | if test -z "$srcdir"; then | |
1297 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1298 | # Try the directory containing this script, then the parent directory. |
1299 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1300 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1301 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1302 | X"$as_myself" : 'X\(//\)$' \| \ | |
1303 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1304 | $as_echo X"$as_myself" | | |
1305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1306 | s//\1/ | |
1307 | q | |
1308 | } | |
1309 | /^X\(\/\/\)[^/].*/{ | |
1310 | s//\1/ | |
1311 | q | |
1312 | } | |
1313 | /^X\(\/\/\)$/{ | |
1314 | s//\1/ | |
1315 | q | |
1316 | } | |
1317 | /^X\(\/\).*/{ | |
1318 | s//\1/ | |
1319 | q | |
1320 | } | |
1321 | s/.*/./; q'` | |
bae7f79e | 1322 | srcdir=$ac_confdir |
81ecdfbb | 1323 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1324 | srcdir=.. |
1325 | fi | |
1326 | else | |
1327 | ac_srcdir_defaulted=no | |
1328 | fi | |
81ecdfbb RW |
1329 | if test ! -r "$srcdir/$ac_unique_file"; then |
1330 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1331 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1332 | fi | |
1333 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1334 | ac_abs_confdir=`( | |
1335 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1336 | pwd)` | |
1337 | # When building in place, set srcdir=. | |
1338 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1339 | srcdir=. | |
1340 | fi | |
1341 | # Remove unnecessary trailing slashes from srcdir. | |
1342 | # Double slashes in file names in object file debugging info | |
1343 | # mess up M-x gdb in Emacs. | |
1344 | case $srcdir in | |
1345 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1346 | esac | |
1347 | for ac_var in $ac_precious_vars; do | |
1348 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1349 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1350 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1351 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1352 | done | |
bae7f79e ILT |
1353 | |
1354 | # | |
1355 | # Report the --help message. | |
1356 | # | |
1357 | if test "$ac_init_help" = "long"; then | |
1358 | # Omit some internal or obsolete options to make the list less imposing. | |
1359 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1360 | cat <<_ACEOF | |
8486ee48 | 1361 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1362 | |
1363 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1364 | ||
1365 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1366 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1367 | ||
1368 | Defaults for the options are specified in brackets. | |
1369 | ||
1370 | Configuration: | |
1371 | -h, --help display this help and exit | |
1372 | --help=short display options specific to this package | |
1373 | --help=recursive display the short help of all the included packages | |
1374 | -V, --version display version information and exit | |
1375 | -q, --quiet, --silent do not print \`checking...' messages | |
1376 | --cache-file=FILE cache test results in FILE [disabled] | |
1377 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1378 | -n, --no-create do not create output files | |
1379 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1380 | ||
bae7f79e ILT |
1381 | Installation directories: |
1382 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1383 | [$ac_default_prefix] |
bae7f79e | 1384 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1385 | [PREFIX] |
bae7f79e ILT |
1386 | |
1387 | By default, \`make install' will install all the files in | |
1388 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1389 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1390 | for instance \`--prefix=\$HOME'. | |
1391 | ||
1392 | For better control, use the options below. | |
1393 | ||
1394 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1395 | --bindir=DIR user executables [EPREFIX/bin] |
1396 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1397 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1398 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1399 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1400 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1401 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1402 | --includedir=DIR C header files [PREFIX/include] | |
1403 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1404 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1405 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1406 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1407 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1408 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1409 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1410 | --htmldir=DIR html documentation [DOCDIR] | |
1411 | --dvidir=DIR dvi documentation [DOCDIR] | |
1412 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1413 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1414 | _ACEOF |
1415 | ||
1416 | cat <<\_ACEOF | |
1417 | ||
1418 | Program names: | |
1419 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1420 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1421 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1422 | ||
1423 | System types: | |
1424 | --build=BUILD configure for building on BUILD [guessed] | |
1425 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1426 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1427 | _ACEOF | |
1428 | fi | |
1429 | ||
1430 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1431 | case $ac_init_help in |
1432 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1433 | esac | |
bae7f79e ILT |
1434 | cat <<\_ACEOF |
1435 | ||
1436 | Optional Features: | |
81ecdfbb | 1437 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1438 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1439 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1440 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
fe9a4c12 | 1441 | --enable-threads multi-threaded linking |
89fc3421 | 1442 | --enable-plugins linker plugins |
193a53d9 | 1443 | --enable-targets alternative target configurations |
bae7f79e ILT |
1444 | --disable-dependency-tracking speeds up one-time build |
1445 | --enable-dependency-tracking do not reject slow dependency extractors | |
1446 | --disable-nls do not use Native Language Support | |
1447 | --enable-werror treat compile warnings as errors | |
1448 | --enable-build-warnings enable build-time compiler warnings | |
1449 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1450 | (and sometimes confusing) to the casual installer | |
1451 | ||
ad2d6943 ILT |
1452 | Optional Packages: |
1453 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1454 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1455 | --with-sysroot=DIR search for usr/lib et al within DIR | |
3f3cddf1 | 1456 | --with-lib-path=dir1:dir2... set default LIB_PATH |
dc87f620 ILT |
1457 | --with-gold-ldflags=FLAGS additional link flags for gold |
1458 | --with-gold-ldadd=LIBS additional libraries for gold | |
918357b9 | 1459 | --with-system-zlib use installed libz |
ad2d6943 | 1460 | |
bae7f79e ILT |
1461 | Some influential environment variables: |
1462 | CC C compiler command | |
1463 | CFLAGS C compiler flags | |
1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1465 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1466 | LIBS libraries to pass to the linker, e.g. -l<library> |
1467 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1468 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1469 | CXX C++ compiler command |
1470 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1471 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1472 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1473 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1474 | This script will default YFLAGS to the empty string to avoid a | |
1475 | default value of `-d' given by some make applications. | |
9a0910c3 | 1476 | CPP C preprocessor |
54dc6425 | 1477 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1478 | |
1479 | Use these variables to override the choices made by `configure' or to help | |
1480 | it to find libraries and programs with nonstandard names/locations. | |
1481 | ||
81ecdfbb | 1482 | Report bugs to the package provider. |
bae7f79e | 1483 | _ACEOF |
81ecdfbb | 1484 | ac_status=$? |
bae7f79e ILT |
1485 | fi |
1486 | ||
1487 | if test "$ac_init_help" = "recursive"; then | |
1488 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1489 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1490 | test -d "$ac_dir" || |
1491 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1492 | continue | |
bae7f79e ILT |
1493 | ac_builddir=. |
1494 | ||
81ecdfbb RW |
1495 | case "$ac_dir" in |
1496 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1497 | *) | |
1498 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1499 | # A ".." for each directory in $ac_dir_suffix. | |
1500 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1501 | case $ac_top_builddir_sub in | |
1502 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1503 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1504 | esac ;; | |
1505 | esac | |
1506 | ac_abs_top_builddir=$ac_pwd | |
1507 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1508 | # for backward compatibility: | |
1509 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1510 | |
1511 | case $srcdir in | |
81ecdfbb | 1512 | .) # We are building in place. |
bae7f79e | 1513 | ac_srcdir=. |
81ecdfbb RW |
1514 | ac_top_srcdir=$ac_top_builddir_sub |
1515 | ac_abs_top_srcdir=$ac_pwd ;; | |
1516 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1517 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1518 | ac_top_srcdir=$srcdir |
1519 | ac_abs_top_srcdir=$srcdir ;; | |
1520 | *) # Relative name. | |
1521 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1522 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1523 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1524 | esac |
81ecdfbb RW |
1525 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1526 | ||
1527 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1528 | # Check for guested configure. | |
1529 | if test -f "$ac_srcdir/configure.gnu"; then | |
1530 | echo && | |
1531 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1532 | elif test -f "$ac_srcdir/configure"; then | |
1533 | echo && | |
1534 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1535 | else |
81ecdfbb RW |
1536 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1537 | fi || ac_status=$? | |
1538 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1539 | done |
1540 | fi | |
1541 | ||
81ecdfbb | 1542 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1543 | if $ac_init_version; then |
1544 | cat <<\_ACEOF | |
8486ee48 | 1545 | gold configure 0.1 |
81ecdfbb | 1546 | generated by GNU Autoconf 2.64 |
bae7f79e | 1547 | |
81ecdfbb | 1548 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1549 | This configure script is free software; the Free Software Foundation |
1550 | gives unlimited permission to copy, distribute and modify it. | |
1551 | _ACEOF | |
81ecdfbb | 1552 | exit |
bae7f79e | 1553 | fi |
bae7f79e | 1554 | |
81ecdfbb RW |
1555 | ## ------------------------ ## |
1556 | ## Autoconf initialization. ## | |
1557 | ## ------------------------ ## | |
bae7f79e | 1558 | |
81ecdfbb RW |
1559 | # ac_fn_c_try_compile LINENO |
1560 | # -------------------------- | |
1561 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1562 | ac_fn_c_try_compile () | |
bae7f79e | 1563 | { |
81ecdfbb RW |
1564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1565 | rm -f conftest.$ac_objext | |
1566 | if { { ac_try="$ac_compile" | |
1567 | case "(($ac_try" in | |
1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1569 | *) ac_try_echo=$ac_try;; | |
1570 | esac | |
1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1572 | $as_echo "$ac_try_echo"; } >&5 | |
1573 | (eval "$ac_compile") 2>conftest.err | |
1574 | ac_status=$? | |
1575 | if test -s conftest.err; then | |
1576 | grep -v '^ *+' conftest.err >conftest.er1 | |
1577 | cat conftest.er1 >&5 | |
1578 | mv -f conftest.er1 conftest.err | |
1579 | fi | |
1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1581 | test $ac_status = 0; } && { | |
1582 | test -z "$ac_c_werror_flag" || | |
1583 | test ! -s conftest.err | |
1584 | } && test -s conftest.$ac_objext; then : | |
1585 | ac_retval=0 | |
1586 | else | |
1587 | $as_echo "$as_me: failed program was:" >&5 | |
1588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1589 | |
81ecdfbb RW |
1590 | ac_retval=1 |
1591 | fi | |
1592 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1593 | return $ac_retval | |
bae7f79e | 1594 | |
81ecdfbb | 1595 | } # ac_fn_c_try_compile |
bae7f79e | 1596 | |
81ecdfbb RW |
1597 | # ac_fn_cxx_try_compile LINENO |
1598 | # ---------------------------- | |
1599 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1600 | ac_fn_cxx_try_compile () | |
1601 | { | |
1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1603 | rm -f conftest.$ac_objext | |
1604 | if { { ac_try="$ac_compile" | |
1605 | case "(($ac_try" in | |
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1607 | *) ac_try_echo=$ac_try;; | |
1608 | esac | |
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1610 | $as_echo "$ac_try_echo"; } >&5 | |
1611 | (eval "$ac_compile") 2>conftest.err | |
1612 | ac_status=$? | |
1613 | if test -s conftest.err; then | |
1614 | grep -v '^ *+' conftest.err >conftest.er1 | |
1615 | cat conftest.er1 >&5 | |
1616 | mv -f conftest.er1 conftest.err | |
1617 | fi | |
1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1619 | test $ac_status = 0; } && { | |
1620 | test -z "$ac_cxx_werror_flag" || | |
1621 | test ! -s conftest.err | |
1622 | } && test -s conftest.$ac_objext; then : | |
1623 | ac_retval=0 | |
1624 | else | |
1625 | $as_echo "$as_me: failed program was:" >&5 | |
1626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1627 | |
81ecdfbb RW |
1628 | ac_retval=1 |
1629 | fi | |
1630 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1631 | return $ac_retval | |
bae7f79e | 1632 | |
81ecdfbb | 1633 | } # ac_fn_cxx_try_compile |
bae7f79e | 1634 | |
81ecdfbb RW |
1635 | # ac_fn_c_try_cpp LINENO |
1636 | # ---------------------- | |
1637 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1638 | ac_fn_c_try_cpp () | |
1639 | { | |
1640 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1641 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1642 | case "(($ac_try" in | |
1643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1644 | *) ac_try_echo=$ac_try;; | |
1645 | esac | |
1646 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1647 | $as_echo "$ac_try_echo"; } >&5 | |
1648 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1649 | ac_status=$? | |
1650 | if test -s conftest.err; then | |
1651 | grep -v '^ *+' conftest.err >conftest.er1 | |
1652 | cat conftest.er1 >&5 | |
1653 | mv -f conftest.er1 conftest.err | |
1654 | fi | |
1655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1656 | test $ac_status = 0; } >/dev/null && { | |
1657 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1658 | test ! -s conftest.err | |
1659 | }; then : | |
1660 | ac_retval=0 | |
1661 | else | |
1662 | $as_echo "$as_me: failed program was:" >&5 | |
1663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1664 | |
81ecdfbb RW |
1665 | ac_retval=1 |
1666 | fi | |
1667 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1668 | return $ac_retval | |
bae7f79e | 1669 | |
81ecdfbb | 1670 | } # ac_fn_c_try_cpp |
bae7f79e | 1671 | |
81ecdfbb RW |
1672 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1673 | # ------------------------------------------------------- | |
1674 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1675 | # the include files in INCLUDES and setting the cache variable VAR | |
1676 | # accordingly. | |
1677 | ac_fn_c_check_header_mongrel () | |
1678 | { | |
1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1680 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1682 | $as_echo_n "checking for $2... " >&6; } | |
1683 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1684 | $as_echo_n "(cached) " >&6 | |
1685 | fi | |
1686 | eval ac_res=\$$3 | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1688 | $as_echo "$ac_res" >&6; } | |
1689 | else | |
1690 | # Is the header compilable? | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1692 | $as_echo_n "checking $2 usability... " >&6; } | |
1693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1694 | /* end confdefs.h. */ | |
1695 | $4 | |
1696 | #include <$2> | |
bae7f79e | 1697 | _ACEOF |
81ecdfbb RW |
1698 | if ac_fn_c_try_compile "$LINENO"; then : |
1699 | ac_header_compiler=yes | |
1700 | else | |
1701 | ac_header_compiler=no | |
1702 | fi | |
1703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1705 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1706 | |
81ecdfbb RW |
1707 | # Is the header present? |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1709 | $as_echo_n "checking $2 presence... " >&6; } | |
1710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1711 | /* end confdefs.h. */ | |
1712 | #include <$2> | |
1713 | _ACEOF | |
1714 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1715 | ac_header_preproc=yes | |
1716 | else | |
1717 | ac_header_preproc=no | |
1718 | fi | |
1719 | rm -f conftest.err conftest.$ac_ext | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1721 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1722 | |
81ecdfbb RW |
1723 | # So? What about this header? |
1724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1725 | yes:no: ) | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1730 | ;; | |
1731 | no:yes:* ) | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1739 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1741 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1742 | ;; | |
1743 | esac | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1745 | $as_echo_n "checking for $2... " >&6; } | |
1746 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1747 | $as_echo_n "(cached) " >&6 | |
1748 | else | |
1749 | eval "$3=\$ac_header_compiler" | |
1750 | fi | |
1751 | eval ac_res=\$$3 | |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1753 | $as_echo "$ac_res" >&6; } | |
1754 | fi | |
1755 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1756 | |
81ecdfbb | 1757 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1758 | |
81ecdfbb RW |
1759 | # ac_fn_c_try_run LINENO |
1760 | # ---------------------- | |
1761 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1762 | # that executables *can* be run. | |
1763 | ac_fn_c_try_run () | |
bae7f79e | 1764 | { |
81ecdfbb RW |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1766 | if { { ac_try="$ac_link" | |
1767 | case "(($ac_try" in | |
1768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1769 | *) ac_try_echo=$ac_try;; | |
1770 | esac | |
1771 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1772 | $as_echo "$ac_try_echo"; } >&5 | |
1773 | (eval "$ac_link") 2>&5 | |
1774 | ac_status=$? | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1777 | { { case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_try") 2>&5 | |
1784 | ac_status=$? | |
1785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1786 | test $ac_status = 0; }; }; then : | |
1787 | ac_retval=0 | |
1788 | else | |
1789 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1790 | $as_echo "$as_me: failed program was:" >&5 | |
1791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1792 | |
81ecdfbb RW |
1793 | ac_retval=$ac_status |
1794 | fi | |
1795 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1796 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1797 | return $ac_retval | |
bae7f79e | 1798 | |
81ecdfbb | 1799 | } # ac_fn_c_try_run |
bae7f79e | 1800 | |
81ecdfbb RW |
1801 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1802 | # ------------------------------------------------------- | |
1803 | # Tests whether HEADER exists and can be compiled using the include files in | |
1804 | # INCLUDES, setting the cache variable VAR accordingly. | |
1805 | ac_fn_c_check_header_compile () | |
1806 | { | |
1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1809 | $as_echo_n "checking for $2... " >&6; } | |
1810 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1811 | $as_echo_n "(cached) " >&6 | |
1812 | else | |
1813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1814 | /* end confdefs.h. */ | |
1815 | $4 | |
1816 | #include <$2> | |
1817 | _ACEOF | |
1818 | if ac_fn_c_try_compile "$LINENO"; then : | |
1819 | eval "$3=yes" | |
1820 | else | |
1821 | eval "$3=no" | |
1822 | fi | |
1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1824 | fi | |
1825 | eval ac_res=\$$3 | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1827 | $as_echo "$ac_res" >&6; } | |
1828 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1829 | |
81ecdfbb | 1830 | } # ac_fn_c_check_header_compile |
bae7f79e | 1831 | |
81ecdfbb RW |
1832 | # ac_fn_c_try_link LINENO |
1833 | # ----------------------- | |
1834 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1835 | ac_fn_c_try_link () | |
1836 | { | |
1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1839 | if { { ac_try="$ac_link" | |
1840 | case "(($ac_try" in | |
1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1842 | *) ac_try_echo=$ac_try;; | |
1843 | esac | |
1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1845 | $as_echo "$ac_try_echo"; } >&5 | |
1846 | (eval "$ac_link") 2>conftest.err | |
1847 | ac_status=$? | |
1848 | if test -s conftest.err; then | |
1849 | grep -v '^ *+' conftest.err >conftest.er1 | |
1850 | cat conftest.er1 >&5 | |
1851 | mv -f conftest.er1 conftest.err | |
1852 | fi | |
1853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1854 | test $ac_status = 0; } && { | |
1855 | test -z "$ac_c_werror_flag" || | |
1856 | test ! -s conftest.err | |
1857 | } && test -s conftest$ac_exeext && { | |
1858 | test "$cross_compiling" = yes || | |
1859 | $as_test_x conftest$ac_exeext | |
1860 | }; then : | |
1861 | ac_retval=0 | |
1862 | else | |
1863 | $as_echo "$as_me: failed program was:" >&5 | |
1864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1865 | |
81ecdfbb RW |
1866 | ac_retval=1 |
1867 | fi | |
1868 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1869 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1870 | # interfere with the next link command; also delete a directory that is | |
1871 | # left behind by Apple's compiler. We do this before executing the actions. | |
1872 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1873 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1874 | return $ac_retval | |
bae7f79e | 1875 | |
81ecdfbb | 1876 | } # ac_fn_c_try_link |
bae7f79e | 1877 | |
81ecdfbb RW |
1878 | # ac_fn_c_check_func LINENO FUNC VAR |
1879 | # ---------------------------------- | |
1880 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1881 | ac_fn_c_check_func () | |
1882 | { | |
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1885 | $as_echo_n "checking for $2... " >&6; } | |
1886 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1887 | $as_echo_n "(cached) " >&6 | |
1888 | else | |
1889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1890 | /* end confdefs.h. */ | |
1891 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1893 | #define $2 innocuous_$2 | |
bae7f79e | 1894 | |
81ecdfbb RW |
1895 | /* System header to define __stub macros and hopefully few prototypes, |
1896 | which can conflict with char $2 (); below. | |
1897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1898 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1899 | |
81ecdfbb RW |
1900 | #ifdef __STDC__ |
1901 | # include <limits.h> | |
1902 | #else | |
1903 | # include <assert.h> | |
1904 | #endif | |
bae7f79e | 1905 | |
81ecdfbb | 1906 | #undef $2 |
bae7f79e | 1907 | |
81ecdfbb RW |
1908 | /* Override any GCC internal prototype to avoid an error. |
1909 | Use char because int might match the return type of a GCC | |
1910 | builtin and then its argument prototype would still apply. */ | |
1911 | #ifdef __cplusplus | |
1912 | extern "C" | |
1913 | #endif | |
1914 | char $2 (); | |
1915 | /* The GNU C library defines this for functions which it implements | |
1916 | to always fail with ENOSYS. Some functions are actually named | |
1917 | something starting with __ and the normal name is an alias. */ | |
1918 | #if defined __stub_$2 || defined __stub___$2 | |
1919 | choke me | |
1920 | #endif | |
1921 | ||
1922 | int | |
1923 | main () | |
1924 | { | |
1925 | return $2 (); | |
1926 | ; | |
1927 | return 0; | |
1928 | } | |
bae7f79e | 1929 | _ACEOF |
81ecdfbb RW |
1930 | if ac_fn_c_try_link "$LINENO"; then : |
1931 | eval "$3=yes" | |
1932 | else | |
1933 | eval "$3=no" | |
1934 | fi | |
1935 | rm -f core conftest.err conftest.$ac_objext \ | |
1936 | conftest$ac_exeext conftest.$ac_ext | |
1937 | fi | |
1938 | eval ac_res=\$$3 | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1940 | $as_echo "$ac_res" >&6; } | |
1941 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1942 | |
81ecdfbb | 1943 | } # ac_fn_c_check_func |
bae7f79e | 1944 | |
81ecdfbb RW |
1945 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1946 | # ------------------------------------ | |
1947 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1948 | ac_fn_c_check_decl () | |
1949 | { | |
1950 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1951 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1952 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1954 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1955 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1956 | $as_echo_n "(cached) " >&6 | |
1957 | else | |
1958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1959 | /* end confdefs.h. */ | |
1960 | $4 | |
1961 | int | |
1962 | main () | |
1963 | { | |
7223e9ca ILT |
1964 | #ifndef $as_decl_name |
1965 | #ifdef __cplusplus | |
1966 | (void) $as_decl_use; | |
1967 | #else | |
1968 | (void) $as_decl_name; | |
1969 | #endif | |
81ecdfbb RW |
1970 | #endif |
1971 | ||
1972 | ; | |
1973 | return 0; | |
1974 | } | |
bae7f79e | 1975 | _ACEOF |
81ecdfbb RW |
1976 | if ac_fn_c_try_compile "$LINENO"; then : |
1977 | eval "$3=yes" | |
1978 | else | |
1979 | eval "$3=no" | |
1980 | fi | |
1981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1982 | fi | |
1983 | eval ac_res=\$$3 | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1985 | $as_echo "$ac_res" >&6; } | |
1986 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1987 | |
81ecdfbb | 1988 | } # ac_fn_c_check_decl |
bae7f79e | 1989 | |
81ecdfbb RW |
1990 | # ac_fn_cxx_try_cpp LINENO |
1991 | # ------------------------ | |
1992 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1993 | ac_fn_cxx_try_cpp () | |
1994 | { | |
1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1996 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1997 | case "(($ac_try" in | |
1998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1999 | *) ac_try_echo=$ac_try;; | |
2000 | esac | |
2001 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2002 | $as_echo "$ac_try_echo"; } >&5 | |
2003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2004 | ac_status=$? | |
2005 | if test -s conftest.err; then | |
2006 | grep -v '^ *+' conftest.err >conftest.er1 | |
2007 | cat conftest.er1 >&5 | |
2008 | mv -f conftest.er1 conftest.err | |
bae7f79e | 2009 | fi |
81ecdfbb RW |
2010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2011 | test $ac_status = 0; } >/dev/null && { | |
2012 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2013 | test ! -s conftest.err | |
2014 | }; then : | |
2015 | ac_retval=0 | |
2016 | else | |
2017 | $as_echo "$as_me: failed program was:" >&5 | |
2018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2019 | ||
2020 | ac_retval=1 | |
bae7f79e | 2021 | fi |
81ecdfbb RW |
2022 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2023 | return $ac_retval | |
bae7f79e | 2024 | |
81ecdfbb RW |
2025 | } # ac_fn_cxx_try_cpp |
2026 | ||
2027 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2028 | # --------------------------------------------------------- | |
2029 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2030 | # the include files in INCLUDES and setting the cache variable VAR | |
2031 | # accordingly. | |
2032 | ac_fn_cxx_check_header_mongrel () | |
2033 | { | |
2034 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2035 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2037 | $as_echo_n "checking for $2... " >&6; } | |
2038 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2039 | $as_echo_n "(cached) " >&6 | |
2040 | fi | |
2041 | eval ac_res=\$$3 | |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2043 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2044 | else |
81ecdfbb RW |
2045 | # Is the header compilable? |
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2047 | $as_echo_n "checking $2 usability... " >&6; } | |
2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2049 | /* end confdefs.h. */ | |
2050 | $4 | |
2051 | #include <$2> | |
2052 | _ACEOF | |
2053 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2054 | ac_header_compiler=yes | |
2055 | else | |
2056 | ac_header_compiler=no | |
bae7f79e | 2057 | fi |
81ecdfbb RW |
2058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2060 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2061 | |
81ecdfbb RW |
2062 | # Is the header present? |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2064 | $as_echo_n "checking $2 presence... " >&6; } | |
2065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2066 | /* end confdefs.h. */ | |
2067 | #include <$2> | |
2068 | _ACEOF | |
2069 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2070 | ac_header_preproc=yes | |
2071 | else | |
2072 | ac_header_preproc=no | |
bae7f79e | 2073 | fi |
81ecdfbb RW |
2074 | rm -f conftest.err conftest.$ac_ext |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2076 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2077 | |
81ecdfbb RW |
2078 | # So? What about this header? |
2079 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2080 | yes:no: ) | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2082 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2084 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2085 | ;; | |
2086 | no:yes:* ) | |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2088 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2090 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2092 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2094 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2096 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2097 | ;; | |
2098 | esac | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2100 | $as_echo_n "checking for $2... " >&6; } | |
2101 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2102 | $as_echo_n "(cached) " >&6 | |
2103 | else | |
2104 | eval "$3=\$ac_header_compiler" | |
2105 | fi | |
2106 | eval ac_res=\$$3 | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2108 | $as_echo "$ac_res" >&6; } | |
2109 | fi | |
2110 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2111 | ||
2112 | } # ac_fn_cxx_check_header_mongrel | |
2113 | ||
2114 | # ac_fn_cxx_try_link LINENO | |
2115 | # ------------------------- | |
2116 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2117 | ac_fn_cxx_try_link () | |
2118 | { | |
2119 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2121 | if { { ac_try="$ac_link" | |
2122 | case "(($ac_try" in | |
2123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2124 | *) ac_try_echo=$ac_try;; | |
2125 | esac | |
2126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2127 | $as_echo "$ac_try_echo"; } >&5 | |
2128 | (eval "$ac_link") 2>conftest.err | |
2129 | ac_status=$? | |
2130 | if test -s conftest.err; then | |
2131 | grep -v '^ *+' conftest.err >conftest.er1 | |
2132 | cat conftest.er1 >&5 | |
2133 | mv -f conftest.er1 conftest.err | |
2134 | fi | |
2135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2136 | test $ac_status = 0; } && { | |
2137 | test -z "$ac_cxx_werror_flag" || | |
2138 | test ! -s conftest.err | |
2139 | } && test -s conftest$ac_exeext && { | |
2140 | test "$cross_compiling" = yes || | |
2141 | $as_test_x conftest$ac_exeext | |
2142 | }; then : | |
2143 | ac_retval=0 | |
2144 | else | |
2145 | $as_echo "$as_me: failed program was:" >&5 | |
2146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2147 | |
81ecdfbb RW |
2148 | ac_retval=1 |
2149 | fi | |
2150 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2151 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2152 | # interfere with the next link command; also delete a directory that is | |
2153 | # left behind by Apple's compiler. We do this before executing the actions. | |
2154 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2155 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2156 | return $ac_retval | |
bae7f79e | 2157 | |
81ecdfbb | 2158 | } # ac_fn_cxx_try_link |
bae7f79e | 2159 | |
81ecdfbb RW |
2160 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2161 | # ------------------------------------ | |
2162 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2163 | ac_fn_cxx_check_func () | |
2164 | { | |
2165 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2167 | $as_echo_n "checking for $2... " >&6; } | |
2168 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2169 | $as_echo_n "(cached) " >&6 | |
2170 | else | |
2171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2172 | /* end confdefs.h. */ | |
2173 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2175 | #define $2 innocuous_$2 | |
bae7f79e | 2176 | |
81ecdfbb RW |
2177 | /* System header to define __stub macros and hopefully few prototypes, |
2178 | which can conflict with char $2 (); below. | |
2179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2180 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2181 | |
81ecdfbb RW |
2182 | #ifdef __STDC__ |
2183 | # include <limits.h> | |
2184 | #else | |
2185 | # include <assert.h> | |
2186 | #endif | |
bae7f79e | 2187 | |
81ecdfbb | 2188 | #undef $2 |
bae7f79e | 2189 | |
81ecdfbb RW |
2190 | /* Override any GCC internal prototype to avoid an error. |
2191 | Use char because int might match the return type of a GCC | |
2192 | builtin and then its argument prototype would still apply. */ | |
2193 | #ifdef __cplusplus | |
2194 | extern "C" | |
2195 | #endif | |
2196 | char $2 (); | |
2197 | /* The GNU C library defines this for functions which it implements | |
2198 | to always fail with ENOSYS. Some functions are actually named | |
2199 | something starting with __ and the normal name is an alias. */ | |
2200 | #if defined __stub_$2 || defined __stub___$2 | |
2201 | choke me | |
2202 | #endif | |
bae7f79e | 2203 | |
81ecdfbb RW |
2204 | int |
2205 | main () | |
2206 | { | |
2207 | return $2 (); | |
2208 | ; | |
2209 | return 0; | |
2210 | } | |
2211 | _ACEOF | |
2212 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2213 | eval "$3=yes" | |
2214 | else | |
2215 | eval "$3=no" | |
2216 | fi | |
2217 | rm -f core conftest.err conftest.$ac_objext \ | |
2218 | conftest$ac_exeext conftest.$ac_ext | |
2219 | fi | |
2220 | eval ac_res=\$$3 | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2222 | $as_echo "$ac_res" >&6; } | |
2223 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2224 | |
81ecdfbb | 2225 | } # ac_fn_cxx_check_func |
bae7f79e | 2226 | |
81ecdfbb RW |
2227 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2228 | # -------------------------------------- | |
2229 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2230 | ac_fn_cxx_check_decl () | |
2231 | { | |
2232 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2233 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2234 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2236 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2237 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2238 | $as_echo_n "(cached) " >&6 | |
2239 | else | |
2240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2241 | /* end confdefs.h. */ | |
2242 | $4 | |
2243 | int | |
2244 | main () | |
2245 | { | |
7223e9ca ILT |
2246 | #ifndef $as_decl_name |
2247 | #ifdef __cplusplus | |
2248 | (void) $as_decl_use; | |
2249 | #else | |
2250 | (void) $as_decl_name; | |
2251 | #endif | |
81ecdfbb | 2252 | #endif |
bae7f79e | 2253 | |
81ecdfbb RW |
2254 | ; |
2255 | return 0; | |
2256 | } | |
2257 | _ACEOF | |
2258 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2259 | eval "$3=yes" | |
2260 | else | |
2261 | eval "$3=no" | |
2262 | fi | |
2263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2264 | fi | |
2265 | eval ac_res=\$$3 | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2267 | $as_echo "$ac_res" >&6; } | |
2268 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2269 | |
81ecdfbb RW |
2270 | } # ac_fn_cxx_check_decl |
2271 | cat >config.log <<_ACEOF | |
2272 | This file contains any messages produced by compilers while | |
2273 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2274 | |
81ecdfbb RW |
2275 | It was created by gold $as_me 0.1, which was |
2276 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2277 | |
81ecdfbb | 2278 | $ $0 $@ |
8486ee48 | 2279 | |
81ecdfbb RW |
2280 | _ACEOF |
2281 | exec 5>>config.log | |
2282 | { | |
2283 | cat <<_ASUNAME | |
2284 | ## --------- ## | |
2285 | ## Platform. ## | |
2286 | ## --------- ## | |
8486ee48 | 2287 | |
81ecdfbb RW |
2288 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2289 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2290 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2291 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2292 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2293 | |
81ecdfbb RW |
2294 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2295 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2296 | |
81ecdfbb RW |
2297 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2298 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2299 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2300 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2301 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2302 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2303 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2304 | |
81ecdfbb | 2305 | _ASUNAME |
8486ee48 | 2306 | |
81ecdfbb RW |
2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2308 | for as_dir in $PATH | |
2309 | do | |
2310 | IFS=$as_save_IFS | |
2311 | test -z "$as_dir" && as_dir=. | |
2312 | $as_echo "PATH: $as_dir" | |
2313 | done | |
2314 | IFS=$as_save_IFS | |
bae7f79e | 2315 | |
81ecdfbb | 2316 | } >&5 |
bae7f79e | 2317 | |
81ecdfbb | 2318 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2319 | |
2320 | ||
81ecdfbb RW |
2321 | ## ----------- ## |
2322 | ## Core tests. ## | |
2323 | ## ----------- ## | |
bae7f79e | 2324 | |
81ecdfbb | 2325 | _ACEOF |
1d1f116d CD |
2326 | |
2327 | ||
81ecdfbb RW |
2328 | # Keep a trace of the command line. |
2329 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2330 | # Strip out --silent because we don't want to record it for future runs. | |
2331 | # Also quote any args containing shell meta-characters. | |
2332 | # Make two passes to allow for proper duplicate-argument suppression. | |
2333 | ac_configure_args= | |
2334 | ac_configure_args0= | |
2335 | ac_configure_args1= | |
2336 | ac_must_keep_next=false | |
2337 | for ac_pass in 1 2 | |
2338 | do | |
2339 | for ac_arg | |
2340 | do | |
2341 | case $ac_arg in | |
2342 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2344 | | -silent | --silent | --silen | --sile | --sil) | |
2345 | continue ;; | |
2346 | *\'*) | |
2347 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2348 | esac | |
2349 | case $ac_pass in | |
2350 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2351 | 2) | |
2352 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2353 | if test $ac_must_keep_next = true; then | |
2354 | ac_must_keep_next=false # Got value, back to normal. | |
2355 | else | |
2356 | case $ac_arg in | |
2357 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2358 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2359 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2360 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2361 | case "$ac_configure_args0 " in | |
2362 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2363 | esac | |
2364 | ;; | |
2365 | -* ) ac_must_keep_next=true ;; | |
2366 | esac | |
2367 | fi | |
2368 | as_fn_append ac_configure_args " '$ac_arg'" | |
2369 | ;; | |
2370 | esac | |
2371 | done | |
2372 | done | |
2373 | { ac_configure_args0=; unset ac_configure_args0;} | |
2374 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2375 | |
81ecdfbb RW |
2376 | # When interrupted or exit'd, cleanup temporary files, and complete |
2377 | # config.log. We remove comments because anyway the quotes in there | |
2378 | # would cause problems or look ugly. | |
2379 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2380 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2381 | trap 'exit_status=$? | |
2382 | # Save into config.log some information that might help in debugging. | |
2383 | { | |
2384 | echo | |
bae7f79e | 2385 | |
81ecdfbb RW |
2386 | cat <<\_ASBOX |
2387 | ## ---------------- ## | |
2388 | ## Cache variables. ## | |
2389 | ## ---------------- ## | |
2390 | _ASBOX | |
2391 | echo | |
2392 | # The following way of writing the cache mishandles newlines in values, | |
2393 | ( | |
2394 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2395 | eval ac_val=\$$ac_var | |
2396 | case $ac_val in #( | |
2397 | *${as_nl}*) | |
2398 | case $ac_var in #( | |
2399 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2400 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2401 | esac | |
2402 | case $ac_var in #( | |
2403 | _ | IFS | as_nl) ;; #( | |
2404 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2405 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2406 | esac ;; | |
2407 | esac | |
2408 | done | |
2409 | (set) 2>&1 | | |
2410 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2411 | *${as_nl}ac_space=\ *) | |
2412 | sed -n \ | |
2413 | "s/'\''/'\''\\\\'\'''\''/g; | |
2414 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2415 | ;; #( | |
2416 | *) | |
2417 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2418 | ;; | |
2419 | esac | | |
2420 | sort | |
2421 | ) | |
2422 | echo | |
bae7f79e | 2423 | |
81ecdfbb RW |
2424 | cat <<\_ASBOX |
2425 | ## ----------------- ## | |
2426 | ## Output variables. ## | |
2427 | ## ----------------- ## | |
2428 | _ASBOX | |
2429 | echo | |
2430 | for ac_var in $ac_subst_vars | |
2431 | do | |
2432 | eval ac_val=\$$ac_var | |
2433 | case $ac_val in | |
2434 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2435 | esac | |
2436 | $as_echo "$ac_var='\''$ac_val'\''" | |
2437 | done | sort | |
2438 | echo | |
bae7f79e | 2439 | |
81ecdfbb RW |
2440 | if test -n "$ac_subst_files"; then |
2441 | cat <<\_ASBOX | |
2442 | ## ------------------- ## | |
2443 | ## File substitutions. ## | |
2444 | ## ------------------- ## | |
2445 | _ASBOX | |
2446 | echo | |
2447 | for ac_var in $ac_subst_files | |
2448 | do | |
2449 | eval ac_val=\$$ac_var | |
2450 | case $ac_val in | |
2451 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2452 | esac | |
2453 | $as_echo "$ac_var='\''$ac_val'\''" | |
2454 | done | sort | |
2455 | echo | |
2456 | fi | |
bae7f79e | 2457 | |
81ecdfbb RW |
2458 | if test -s confdefs.h; then |
2459 | cat <<\_ASBOX | |
2460 | ## ----------- ## | |
2461 | ## confdefs.h. ## | |
2462 | ## ----------- ## | |
2463 | _ASBOX | |
2464 | echo | |
2465 | cat confdefs.h | |
2466 | echo | |
2467 | fi | |
2468 | test "$ac_signal" != 0 && | |
2469 | $as_echo "$as_me: caught signal $ac_signal" | |
2470 | $as_echo "$as_me: exit $exit_status" | |
2471 | } >&5 | |
2472 | rm -f core *.core core.conftest.* && | |
2473 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2474 | exit $exit_status | |
2475 | ' 0 | |
2476 | for ac_signal in 1 2 13 15; do | |
2477 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2478 | done |
81ecdfbb | 2479 | ac_signal=0 |
bae7f79e | 2480 | |
81ecdfbb RW |
2481 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2482 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2483 | |
81ecdfbb | 2484 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2485 | |
81ecdfbb | 2486 | # Predefined preprocessor variables. |
bae7f79e | 2487 | |
81ecdfbb RW |
2488 | cat >>confdefs.h <<_ACEOF |
2489 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2490 | _ACEOF | |
bae7f79e | 2491 | |
81ecdfbb RW |
2492 | cat >>confdefs.h <<_ACEOF |
2493 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2494 | _ACEOF | |
bae7f79e | 2495 | |
81ecdfbb RW |
2496 | cat >>confdefs.h <<_ACEOF |
2497 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2498 | _ACEOF | |
bae7f79e | 2499 | |
81ecdfbb RW |
2500 | cat >>confdefs.h <<_ACEOF |
2501 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2502 | _ACEOF | |
bae7f79e | 2503 | |
81ecdfbb RW |
2504 | cat >>confdefs.h <<_ACEOF |
2505 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2506 | _ACEOF | |
bae7f79e | 2507 | |
81ecdfbb RW |
2508 | cat >>confdefs.h <<_ACEOF |
2509 | #define PACKAGE_URL "$PACKAGE_URL" | |
2510 | _ACEOF | |
2511 | ||
2512 | ||
2513 | # Let the site file select an alternate cache file if it wants to. | |
2514 | # Prefer an explicitly selected file to automatically selected ones. | |
2515 | ac_site_file1=NONE | |
2516 | ac_site_file2=NONE | |
2517 | if test -n "$CONFIG_SITE"; then | |
2518 | ac_site_file1=$CONFIG_SITE | |
2519 | elif test "x$prefix" != xNONE; then | |
2520 | ac_site_file1=$prefix/share/config.site | |
2521 | ac_site_file2=$prefix/etc/config.site | |
2522 | else | |
2523 | ac_site_file1=$ac_default_prefix/share/config.site | |
2524 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2525 | fi | |
2526 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2527 | do | |
2528 | test "x$ac_site_file" = xNONE && continue | |
2529 | if test -r "$ac_site_file"; then | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2531 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2532 | sed 's/^/| /' "$ac_site_file" >&5 | |
2533 | . "$ac_site_file" | |
2534 | fi | |
2535 | done | |
2536 | ||
2537 | if test -r "$cache_file"; then | |
2538 | # Some versions of bash will fail to source /dev/null (special | |
2539 | # files actually), so we avoid doing that. | |
2540 | if test -f "$cache_file"; then | |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2542 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2543 | case $cache_file in | |
2544 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2545 | *) . "./$cache_file";; | |
2546 | esac | |
2547 | fi | |
2548 | else | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2550 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2551 | >$cache_file | |
2552 | fi | |
2553 | ||
2554 | # Check that the precious variables saved in the cache have kept the same | |
2555 | # value. | |
2556 | ac_cache_corrupted=false | |
2557 | for ac_var in $ac_precious_vars; do | |
2558 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2559 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2560 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2561 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2562 | case $ac_old_set,$ac_new_set in | |
2563 | set,) | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2565 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2566 | ac_cache_corrupted=: ;; | |
2567 | ,set) | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2569 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2570 | ac_cache_corrupted=: ;; | |
2571 | ,);; | |
2572 | *) | |
2573 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2574 | # differences in whitespace do not lead to failure. | |
2575 | ac_old_val_w=`echo x $ac_old_val` | |
2576 | ac_new_val_w=`echo x $ac_new_val` | |
2577 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2579 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2580 | ac_cache_corrupted=: | |
2581 | else | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2583 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2584 | eval $ac_var=\$ac_old_val | |
2585 | fi | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2587 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2589 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2590 | fi;; | |
2591 | esac | |
2592 | # Pass precious variables to config.status. | |
2593 | if test "$ac_new_set" = set; then | |
2594 | case $ac_new_val in | |
2595 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2596 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2597 | esac | |
2598 | case " $ac_configure_args " in | |
2599 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2600 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2601 | esac | |
2602 | fi | |
2603 | done | |
2604 | if $ac_cache_corrupted; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2608 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2609 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2610 | fi | |
2611 | ## -------------------- ## | |
2612 | ## Main body of script. ## | |
2613 | ## -------------------- ## | |
2614 | ||
2615 | ac_ext=c | |
2616 | ac_cpp='$CPP $CPPFLAGS' | |
2617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2620 | ||
2621 | ||
2622 | ||
2623 | ||
2624 | ||
2625 | ||
2626 | ||
2627 | ac_aux_dir= | |
2628 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2629 | for ac_t in install-sh install.sh shtool; do | |
2630 | if test -f "$ac_dir/$ac_t"; then | |
2631 | ac_aux_dir=$ac_dir | |
2632 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2633 | break 2 | |
2634 | fi | |
2635 | done | |
2636 | done | |
2637 | if test -z "$ac_aux_dir"; then | |
2638 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2639 | fi | |
2640 | ||
2641 | # These three variables are undocumented and unsupported, | |
2642 | # and are intended to be withdrawn in a future Autoconf release. | |
2643 | # They can cause serious problems if a builder's source tree is in a directory | |
2644 | # whose full name contains unusual characters. | |
2645 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2646 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2647 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2648 | ||
2649 | ||
2650 | # Make sure we can run config.sub. | |
2651 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2652 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2653 | ||
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2655 | $as_echo_n "checking build system type... " >&6; } | |
2656 | if test "${ac_cv_build+set}" = set; then : | |
2657 | $as_echo_n "(cached) " >&6 | |
2658 | else | |
2659 | ac_build_alias=$build_alias | |
2660 | test "x$ac_build_alias" = x && | |
2661 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2662 | test "x$ac_build_alias" = x && | |
2663 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2664 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2665 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2666 | ||
2667 | fi | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2669 | $as_echo "$ac_cv_build" >&6; } | |
2670 | case $ac_cv_build in | |
2671 | *-*-*) ;; | |
2672 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2673 | esac | |
2674 | build=$ac_cv_build | |
2675 | ac_save_IFS=$IFS; IFS='-' | |
2676 | set x $ac_cv_build | |
2677 | shift | |
2678 | build_cpu=$1 | |
2679 | build_vendor=$2 | |
2680 | shift; shift | |
2681 | # Remember, the first character of IFS is used to create $*, | |
2682 | # except with old shells: | |
2683 | build_os=$* | |
2684 | IFS=$ac_save_IFS | |
2685 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2686 | ||
2687 | ||
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2689 | $as_echo_n "checking host system type... " >&6; } | |
2690 | if test "${ac_cv_host+set}" = set; then : | |
2691 | $as_echo_n "(cached) " >&6 | |
2692 | else | |
2693 | if test "x$host_alias" = x; then | |
2694 | ac_cv_host=$ac_cv_build | |
2695 | else | |
2696 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2697 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2698 | fi | |
2699 | ||
2700 | fi | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2702 | $as_echo "$ac_cv_host" >&6; } | |
2703 | case $ac_cv_host in | |
2704 | *-*-*) ;; | |
2705 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2706 | esac | |
2707 | host=$ac_cv_host | |
2708 | ac_save_IFS=$IFS; IFS='-' | |
2709 | set x $ac_cv_host | |
2710 | shift | |
2711 | host_cpu=$1 | |
2712 | host_vendor=$2 | |
2713 | shift; shift | |
2714 | # Remember, the first character of IFS is used to create $*, | |
2715 | # except with old shells: | |
2716 | host_os=$* | |
2717 | IFS=$ac_save_IFS | |
2718 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2719 | ||
2720 | ||
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2722 | $as_echo_n "checking target system type... " >&6; } | |
2723 | if test "${ac_cv_target+set}" = set; then : | |
2724 | $as_echo_n "(cached) " >&6 | |
2725 | else | |
2726 | if test "x$target_alias" = x; then | |
2727 | ac_cv_target=$ac_cv_host | |
2728 | else | |
2729 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2730 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2731 | fi | |
2732 | ||
2733 | fi | |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2735 | $as_echo "$ac_cv_target" >&6; } | |
2736 | case $ac_cv_target in | |
2737 | *-*-*) ;; | |
2738 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2739 | esac | |
2740 | target=$ac_cv_target | |
2741 | ac_save_IFS=$IFS; IFS='-' | |
2742 | set x $ac_cv_target | |
2743 | shift | |
2744 | target_cpu=$1 | |
2745 | target_vendor=$2 | |
2746 | shift; shift | |
2747 | # Remember, the first character of IFS is used to create $*, | |
2748 | # except with old shells: | |
2749 | target_os=$* | |
2750 | IFS=$ac_save_IFS | |
2751 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2752 | ||
2753 | ||
2754 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2755 | # will get canonicalized. |
2756 | test -n "$target_alias" && | |
2757 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2758 | NONENONEs,x,x, && | |
2759 | program_prefix=${target_alias}- | |
2760 | ||
81ecdfbb RW |
2761 | am__api_version='1.11' |
2762 | ||
bae7f79e ILT |
2763 | # Find a good install program. We prefer a C program (faster), |
2764 | # so one script is as good as another. But avoid the broken or | |
2765 | # incompatible versions: | |
2766 | # SysV /etc/install, /usr/sbin/install | |
2767 | # SunOS /usr/etc/install | |
2768 | # IRIX /sbin/install | |
2769 | # AIX /bin/install | |
2770 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2771 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2772 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2773 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2774 | # OS/2's system install, which has a completely different semantic | |
2775 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2776 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2778 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2779 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2780 | if test "${ac_cv_path_install+set}" = set; then : |
2781 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2782 | else |
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2784 | for as_dir in $PATH | |
2785 | do | |
2786 | IFS=$as_save_IFS | |
2787 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2788 | # Account for people who put trailing slashes in PATH elements. |
2789 | case $as_dir/ in #(( | |
2790 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2791 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2792 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2793 | /usr/ucb/* ) ;; |
2794 | *) | |
2795 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2796 | # Don't use installbsd from OSF since it installs stuff as root | |
2797 | # by default. | |
2798 | for ac_prog in ginstall scoinst install; do | |
2799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2800 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2801 | if test $ac_prog = install && |
2802 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2803 | # AIX install. It has an incompatible calling convention. | |
2804 | : | |
2805 | elif test $ac_prog = install && | |
2806 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2807 | # program-specific install script used by HP pwplus--don't use. | |
2808 | : | |
2809 | else | |
f5314dd5 DM |
2810 | rm -rf conftest.one conftest.two conftest.dir |
2811 | echo one > conftest.one | |
2812 | echo two > conftest.two | |
2813 | mkdir conftest.dir | |
2814 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2815 | test -s conftest.one && test -s conftest.two && | |
2816 | test -s conftest.dir/conftest.one && | |
2817 | test -s conftest.dir/conftest.two | |
2818 | then | |
2819 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2820 | break 3 | |
2821 | fi | |
bae7f79e ILT |
2822 | fi |
2823 | fi | |
2824 | done | |
2825 | done | |
2826 | ;; | |
2827 | esac | |
81ecdfbb RW |
2828 | |
2829 | done | |
2830 | IFS=$as_save_IFS | |
bae7f79e | 2831 | |
f5314dd5 | 2832 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2833 | |
2834 | fi | |
2835 | if test "${ac_cv_path_install+set}" = set; then | |
2836 | INSTALL=$ac_cv_path_install | |
2837 | else | |
f5314dd5 DM |
2838 | # As a last resort, use the slow shell script. Don't cache a |
2839 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2840 | # break other packages using the cache if that directory is |
f5314dd5 | 2841 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2842 | INSTALL=$ac_install_sh |
2843 | fi | |
2844 | fi | |
81ecdfbb RW |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2846 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2847 | |
2848 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2849 | # It thinks the first close brace ends the variable substitution. | |
2850 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2851 | ||
2852 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2853 | ||
2854 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2855 | ||
81ecdfbb RW |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2857 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2858 | # Just in case |
2859 | sleep 1 | |
2860 | echo timestamp > conftest.file | |
81ecdfbb RW |
2861 | # Reject unsafe characters in $srcdir or the absolute working directory |
2862 | # name. Accept space and tab only in the latter. | |
2863 | am_lf=' | |
2864 | ' | |
2865 | case `pwd` in | |
2866 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2867 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2868 | esac | |
2869 | case $srcdir in | |
2870 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2871 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2872 | esac | |
2873 | ||
bae7f79e ILT |
2874 | # Do `set' in a subshell so we don't clobber the current shell's |
2875 | # arguments. Must try -L first in case configure is actually a | |
2876 | # symlink; some systems play weird games with the mod time of symlinks | |
2877 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2878 | # directory). | |
2879 | if ( | |
81ecdfbb | 2880 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2881 | if test "$*" = "X"; then |
2882 | # -L didn't work. | |
81ecdfbb | 2883 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2884 | fi |
2885 | rm -f conftest.file | |
2886 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2887 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2888 | ||
2889 | # If neither matched, then we have a broken ls. This can happen | |
2890 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2891 | # broken ls alias from the environment. This has actually | |
2892 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2893 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2894 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2895 | fi |
2896 | ||
2897 | test "$2" = conftest.file | |
2898 | ) | |
2899 | then | |
2900 | # Ok. | |
2901 | : | |
2902 | else | |
81ecdfbb RW |
2903 | as_fn_error "newly created file is older than distributed files! |
2904 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2905 | fi |
81ecdfbb RW |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2907 | $as_echo "yes" >&6; } | |
bae7f79e | 2908 | test "$program_prefix" != NONE && |
81ecdfbb | 2909 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2910 | # Use a double $ so make ignores it. |
2911 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2912 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2913 | # Double any \ or $. | |
bae7f79e | 2914 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2915 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2916 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2917 | |
2918 | # expand $ac_aux_dir to an absolute path | |
2919 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2920 | ||
81ecdfbb RW |
2921 | if test x"${MISSING+set}" != xset; then |
2922 | case $am_aux_dir in | |
2923 | *\ * | *\ *) | |
2924 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2925 | *) | |
2926 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2927 | esac | |
2928 | fi | |
bae7f79e ILT |
2929 | # Use eval to expand $SHELL |
2930 | if eval "$MISSING --run true"; then | |
2931 | am_missing_run="$MISSING --run " | |
2932 | else | |
2933 | am_missing_run= | |
81ecdfbb RW |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2935 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2936 | fi | |
2937 | ||
2938 | if test x"${install_sh}" != xset; then | |
2939 | case $am_aux_dir in | |
2940 | *\ * | *\ *) | |
2941 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2942 | *) | |
2943 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2944 | esac | |
2945 | fi | |
2946 | ||
2947 | # Installed binaries are usually stripped using `strip' when the user | |
2948 | # run `make install-strip'. However `strip' might not be the right | |
2949 | # tool to use in cross-compilation environments, therefore Automake | |
2950 | # will honor the `STRIP' environment variable to overrule this program. | |
2951 | if test "$cross_compiling" != no; then | |
2952 | if test -n "$ac_tool_prefix"; then | |
2953 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2954 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2956 | $as_echo_n "checking for $ac_word... " >&6; } | |
2957 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2958 | $as_echo_n "(cached) " >&6 | |
2959 | else | |
2960 | if test -n "$STRIP"; then | |
2961 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2962 | else | |
2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2964 | for as_dir in $PATH | |
2965 | do | |
2966 | IFS=$as_save_IFS | |
2967 | test -z "$as_dir" && as_dir=. | |
2968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2970 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2972 | break 2 | |
2973 | fi | |
2974 | done | |
2975 | done | |
2976 | IFS=$as_save_IFS | |
2977 | ||
2978 | fi | |
2979 | fi | |
2980 | STRIP=$ac_cv_prog_STRIP | |
2981 | if test -n "$STRIP"; then | |
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2983 | $as_echo "$STRIP" >&6; } | |
2984 | else | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2986 | $as_echo "no" >&6; } | |
2987 | fi | |
2988 | ||
2989 | ||
2990 | fi | |
2991 | if test -z "$ac_cv_prog_STRIP"; then | |
2992 | ac_ct_STRIP=$STRIP | |
2993 | # Extract the first word of "strip", so it can be a program name with args. | |
2994 | set dummy strip; ac_word=$2 | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2996 | $as_echo_n "checking for $ac_word... " >&6; } | |
2997 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2998 | $as_echo_n "(cached) " >&6 | |
2999 | else | |
3000 | if test -n "$ac_ct_STRIP"; then | |
3001 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3002 | else | |
3003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3004 | for as_dir in $PATH | |
3005 | do | |
3006 | IFS=$as_save_IFS | |
3007 | test -z "$as_dir" && as_dir=. | |
3008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3010 | ac_cv_prog_ac_ct_STRIP="strip" | |
3011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3012 | break 2 | |
3013 | fi | |
3014 | done | |
3015 | done | |
3016 | IFS=$as_save_IFS | |
3017 | ||
3018 | fi | |
3019 | fi | |
3020 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3021 | if test -n "$ac_ct_STRIP"; then | |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3023 | $as_echo "$ac_ct_STRIP" >&6; } | |
3024 | else | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3026 | $as_echo "no" >&6; } | |
3027 | fi | |
3028 | ||
3029 | if test "x$ac_ct_STRIP" = x; then | |
3030 | STRIP=":" | |
3031 | else | |
3032 | case $cross_compiling:$ac_tool_warned in | |
3033 | yes:) | |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3036 | ac_tool_warned=yes ;; | |
3037 | esac | |
3038 | STRIP=$ac_ct_STRIP | |
3039 | fi | |
3040 | else | |
3041 | STRIP="$ac_cv_prog_STRIP" | |
3042 | fi | |
3043 | ||
3044 | fi | |
3045 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3046 | ||
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3048 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3049 | if test -z "$MKDIR_P"; then | |
3050 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3051 | $as_echo_n "(cached) " >&6 | |
3052 | else | |
3053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3054 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3055 | do | |
3056 | IFS=$as_save_IFS | |
3057 | test -z "$as_dir" && as_dir=. | |
3058 | for ac_prog in mkdir gmkdir; do | |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3060 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3061 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3062 | 'mkdir (GNU coreutils) '* | \ | |
3063 | 'mkdir (coreutils) '* | \ | |
3064 | 'mkdir (fileutils) '4.1*) | |
3065 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3066 | break 3;; | |
3067 | esac | |
3068 | done | |
3069 | done | |
bae7f79e | 3070 | done |
81ecdfbb RW |
3071 | IFS=$as_save_IFS |
3072 | ||
3073 | fi | |
3074 | ||
3075 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3076 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3077 | else |
81ecdfbb RW |
3078 | # As a last resort, use the slow shell script. Don't cache a |
3079 | # value for MKDIR_P within a source directory, because that will | |
3080 | # break other packages using the cache if that directory is | |
3081 | # removed, or if the value is a relative name. | |
3082 | test -d ./--version && rmdir ./--version | |
3083 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3084 | fi |
3085 | fi | |
81ecdfbb RW |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3087 | $as_echo "$MKDIR_P" >&6; } | |
3088 | ||
3089 | mkdir_p="$MKDIR_P" | |
3090 | case $mkdir_p in | |
3091 | [\\/$]* | ?:[\\/]*) ;; | |
3092 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3093 | esac | |
bae7f79e ILT |
3094 | |
3095 | for ac_prog in gawk mawk nawk awk | |
3096 | do | |
3097 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3098 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3100 | $as_echo_n "checking for $ac_word... " >&6; } | |
3101 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3102 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3103 | else |
3104 | if test -n "$AWK"; then | |
3105 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3106 | else | |
3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3108 | for as_dir in $PATH | |
3109 | do | |
3110 | IFS=$as_save_IFS | |
3111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3112 | for ac_exec_ext in '' $ac_executable_extensions; do |
3113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3114 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3116 | break 2 |
3117 | fi | |
3118 | done | |
81ecdfbb RW |
3119 | done |
3120 | IFS=$as_save_IFS | |
bae7f79e ILT |
3121 | |
3122 | fi | |
3123 | fi | |
3124 | AWK=$ac_cv_prog_AWK | |
3125 | if test -n "$AWK"; then | |
81ecdfbb RW |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3127 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3128 | else |
81ecdfbb RW |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3130 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3131 | fi |
3132 | ||
81ecdfbb | 3133 | |
bae7f79e ILT |
3134 | test -n "$AWK" && break |
3135 | done | |
3136 | ||
81ecdfbb RW |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3138 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3139 | set x ${MAKE-make} | |
3140 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3141 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3142 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3143 | else |
3144 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3145 | SHELL = /bin/sh |
bae7f79e | 3146 | all: |
81ecdfbb | 3147 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3148 | _ACEOF |
3149 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3150 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3151 | *@@@%%%=?*=@@@%%%*) | |
3152 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3153 | *) | |
3154 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3155 | esac | |
bae7f79e ILT |
3156 | rm -f conftest.make |
3157 | fi | |
81ecdfbb RW |
3158 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3160 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3161 | SET_MAKE= |
3162 | else | |
81ecdfbb RW |
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3164 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3165 | SET_MAKE="MAKE=${MAKE-make}" |
3166 | fi | |
3167 | ||
3168 | rm -rf .tst 2>/dev/null | |
3169 | mkdir .tst 2>/dev/null | |
3170 | if test -d .tst; then | |
3171 | am__leading_dot=. | |
3172 | else | |
3173 | am__leading_dot=_ | |
3174 | fi | |
3175 | rmdir .tst 2>/dev/null | |
3176 | ||
81ecdfbb RW |
3177 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3178 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3179 | # is not polluted with repeated "-I." | |
3180 | am__isrc=' -I$(srcdir)' | |
3181 | # test to see if srcdir already configured | |
3182 | if test -f $srcdir/config.status; then | |
3183 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3184 | fi | |
bae7f79e ILT |
3185 | fi |
3186 | ||
3187 | # test whether we have cygpath | |
3188 | if test -z "$CYGPATH_W"; then | |
3189 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3190 | CYGPATH_W='cygpath -w' | |
3191 | else | |
3192 | CYGPATH_W=echo | |
3193 | fi | |
3194 | fi | |
3195 | ||
3196 | ||
3197 | # Define the identity of the package. | |
8486ee48 ILT |
3198 | PACKAGE='gold' |
3199 | VERSION='0.1' | |
bae7f79e ILT |
3200 | |
3201 | ||
3202 | cat >>confdefs.h <<_ACEOF | |
3203 | #define PACKAGE "$PACKAGE" | |
3204 | _ACEOF | |
3205 | ||
3206 | ||
3207 | cat >>confdefs.h <<_ACEOF | |
3208 | #define VERSION "$VERSION" | |
3209 | _ACEOF | |
3210 | ||
3211 | # Some tools Automake needs. | |
3212 | ||
3213 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3214 | ||
3215 | ||
3216 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3217 | ||
3218 | ||
3219 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3220 | ||
3221 | ||
3222 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3223 | ||
3224 | ||
3225 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3226 | ||
81ecdfbb RW |
3227 | # We need awk for the "check" target. The system "awk" is bad on |
3228 | # some platforms. | |
3229 | # Always define AMTAR for backward compatibility. | |
bae7f79e | 3230 | |
81ecdfbb | 3231 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
bae7f79e | 3232 | |
81ecdfbb RW |
3233 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3234 | ||
3235 | ||
3236 | ||
3237 | ||
3238 | ||
3239 | ||
3240 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3241 | ||
3242 | ||
7c0640fa | 3243 | # PR 14072 |
81ecdfbb | 3244 | |
df7b86aa NC |
3245 | |
3246 | ||
81ecdfbb RW |
3247 | # Check whether --with-sysroot was given. |
3248 | if test "${with_sysroot+set}" = set; then : | |
3249 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3250 | else |
81ecdfbb | 3251 | sysroot=no |
bae7f79e ILT |
3252 | fi |
3253 | ||
81ecdfbb RW |
3254 | |
3255 | if test "$sysroot" = "yes"; then | |
3256 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3257 | elif test "$sysroot" = "no"; then | |
3258 | sysroot= | |
ad2d6943 ILT |
3259 | fi |
3260 | ||
3261 | sysroot_relocatable=0 | |
3262 | if test -n "$sysroot"; then | |
3263 | case "sysroot" in | |
3264 | "${prefix}" | "${prefix}/"* | \ | |
3265 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3266 | '${prefix}' | '${prefix}/'*| \ | |
3267 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3268 | sysroot_relocatable=1 | |
3269 | ;; | |
3270 | esac | |
3271 | fi | |
3272 | ||
3273 | ||
3274 | cat >>confdefs.h <<_ACEOF | |
3275 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3276 | _ACEOF | |
3277 | ||
3278 | ||
3279 | cat >>confdefs.h <<_ACEOF | |
3280 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3281 | _ACEOF | |
3282 | ||
3283 | ||
c7791212 | 3284 | |
f2a6224b | 3285 | installed_linker=ld.gold |
4fda8867 NC |
3286 | # Check whether --enable-gold was given. |
3287 | if test "${enable_gold+set}" = set; then : | |
3288 | enableval=$enable_gold; case "${enableval}" in | |
f2a6224b L |
3289 | default) |
3290 | install_as_default=yes | |
3291 | ;; | |
3292 | yes) | |
3293 | if test x${enable_ld} = xno; then | |
c7791212 NC |
3294 | install_as_default=yes |
3295 | fi | |
4fda8867 NC |
3296 | ;; |
3297 | esac | |
3298 | else | |
c7791212 | 3299 | install_as_default=no |
4fda8867 NC |
3300 | fi |
3301 | ||
3302 | ||
3303 | ||
3304 | ||
81ecdfbb RW |
3305 | # Check whether --enable-threads was given. |
3306 | if test "${enable_threads+set}" = set; then : | |
3307 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3308 | yes | "") threads=yes ;; |
3309 | no) threads=no ;; | |
3310 | *) threads=yes ;; | |
3311 | esac | |
3312 | else | |
3313 | threads=no | |
81ecdfbb RW |
3314 | fi |
3315 | ||
fe9a4c12 ILT |
3316 | if test "$threads" = "yes"; then |
3317 | ||
81ecdfbb | 3318 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3319 | |
3320 | fi | |
81ecdfbb | 3321 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3322 | THREADS_TRUE= |
3323 | THREADS_FALSE='#' | |
3324 | else | |
3325 | THREADS_TRUE='#' | |
3326 | THREADS_FALSE= | |
3327 | fi | |
3328 | ||
3329 | ||
81ecdfbb RW |
3330 | # Check whether --enable-plugins was given. |
3331 | if test "${enable_plugins+set}" = set; then : | |
3332 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3333 | yes | "") plugins=yes ;; |
3334 | no) plugins=no ;; | |
3335 | *) plugins=yes ;; | |
3336 | esac | |
3337 | else | |
3338 | plugins=no | |
81ecdfbb RW |
3339 | fi |
3340 | ||
89fc3421 CC |
3341 | if test "$plugins" = "yes"; then |
3342 | ||
81ecdfbb | 3343 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3344 | |
3345 | fi | |
81ecdfbb | 3346 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3347 | PLUGINS_TRUE= |
3348 | PLUGINS_FALSE='#' | |
3349 | else | |
3350 | PLUGINS_TRUE='#' | |
3351 | PLUGINS_FALSE= | |
3352 | fi | |
3353 | ||
3354 | ||
81ecdfbb RW |
3355 | # Check whether --enable-targets was given. |
3356 | if test "${enable_targets+set}" = set; then : | |
3357 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3358 | yes | "") |
81ecdfbb | 3359 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3360 | ;; |
3361 | no) | |
3362 | enable_targets= | |
3363 | ;; | |
3364 | *) | |
3365 | enable_targets=$enableval | |
3366 | ;; | |
3367 | esac | |
3368 | else | |
3369 | # For now, enable all targets by default | |
3370 | enable_targets=all | |
3371 | ||
81ecdfbb RW |
3372 | fi |
3373 | ||
193a53d9 ILT |
3374 | |
3375 | # Canonicalize the enabled targets. | |
3376 | if test -n "$enable_targets"; then | |
3377 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3378 | result=`$ac_config_sub $targ 2>/dev/null` | |
3379 | if test -n "$result"; then | |
3380 | canon_targets="$canon_targets $result" | |
3381 | else | |
3382 | # Permit unrecognized target names, like "all". | |
3383 | canon_targets="$canon_targets $targ" | |
3384 | fi | |
3385 | done | |
3386 | fi | |
3387 | ||
3388 | # See which specific instantiations we need. | |
6df6da4a ILT |
3389 | targetobjs= |
3390 | all_targets= | |
fbfba508 ILT |
3391 | default_machine= |
3392 | default_size= | |
3393 | default_big_endian= | |
36959681 | 3394 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3395 | targ_32_little= |
3396 | targ_32_big= | |
81ecdfbb RW |
3397 | targ_64_little= |
3398 | targ_64_big= | |
3399 | for targ in $target $canon_targets; do | |
3400 | if test "$targ" = "all"; then | |
3401 | targ_32_little=yes | |
3402 | targ_32_big=yes | |
3403 | targ_64_little=yes | |
3404 | targ_64_big=yes | |
3405 | all_targets=yes | |
3406 | else | |
3407 | . ${srcdir}/configure.tgt | |
bae7f79e | 3408 | |
81ecdfbb RW |
3409 | if test "$targ_obj" = "UNKNOWN"; then |
3410 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3411 | else | |
3412 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3413 | if test "$targ_extra_obj" != ""; then | |
3414 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3415 | fi | |
3416 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3417 | if test "$targ_big_endian" = "true" \ | |
3418 | -o "$targ_extra_big_endian" = "true"; then | |
3419 | targ_32_big=yes | |
3420 | fi | |
3421 | if test "$targ_big_endian" = "false" \ | |
3422 | -o "$targ_extra_big_endian" = "false"; then | |
3423 | targ_32_little=yes | |
3424 | fi | |
3425 | fi | |
3426 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3427 | if test "$targ_big_endian" = "true" \ | |
3428 | -o "$targ_extra_big_endian" = "true"; then | |
3429 | targ_64_big=yes | |
3430 | fi | |
3431 | if test "$targ_big_endian" = "false" \ | |
3432 | -o "$targ_extra_big_endian" = "false"; then | |
3433 | targ_64_little=yes | |
3434 | fi | |
3435 | fi | |
bae7f79e | 3436 | |
81ecdfbb RW |
3437 | if test "$target" = "$targ"; then |
3438 | default_machine=$targ_machine | |
3439 | default_size=$targ_size | |
3440 | default_big_endian=$targ_big_endian | |
3441 | default_osabi=$targ_osabi | |
364c7fa5 | 3442 | |
053a4d68 JY |
3443 | if test "$targ_obj" = "aarch64"; then |
3444 | DEFAULT_TARGET_AARCH64_TRUE= | |
3445 | DEFAULT_TARGET_AARCH64_FALSE='#' | |
3446 | else | |
3447 | DEFAULT_TARGET_AARCH64_TRUE='#' | |
3448 | DEFAULT_TARGET_AARCH64_FALSE= | |
3449 | fi | |
3450 | ||
364c7fa5 ILT |
3451 | if test "$targ_obj" = "arm"; then |
3452 | DEFAULT_TARGET_ARM_TRUE= | |
3453 | DEFAULT_TARGET_ARM_FALSE='#' | |
3454 | else | |
3455 | DEFAULT_TARGET_ARM_TRUE='#' | |
3456 | DEFAULT_TARGET_ARM_FALSE= | |
3457 | fi | |
3458 | ||
3459 | if test "$targ_obj" = "i386"; then | |
3460 | DEFAULT_TARGET_I386_TRUE= | |
3461 | DEFAULT_TARGET_I386_FALSE='#' | |
3462 | else | |
3463 | DEFAULT_TARGET_I386_TRUE='#' | |
3464 | DEFAULT_TARGET_I386_FALSE= | |
3465 | fi | |
3466 | ||
3467 | if test "$targ_obj" = "powerpc"; then | |
3468 | DEFAULT_TARGET_POWERPC_TRUE= | |
3469 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3470 | else | |
3471 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3472 | DEFAULT_TARGET_POWERPC_FALSE= | |
3473 | fi | |
3474 | ||
3475 | if test "$targ_obj" = "sparc"; then | |
3476 | DEFAULT_TARGET_SPARC_TRUE= | |
3477 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3478 | else | |
3479 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3480 | DEFAULT_TARGET_SPARC_FALSE= | |
3481 | fi | |
3482 | ||
e79a4bad MK |
3483 | if test "$targ_obj" = "s390"; then |
3484 | DEFAULT_TARGET_S390_TRUE= | |
3485 | DEFAULT_TARGET_S390_FALSE='#' | |
3486 | else | |
3487 | DEFAULT_TARGET_S390_TRUE='#' | |
3488 | DEFAULT_TARGET_S390_FALSE= | |
3489 | fi | |
3490 | ||
4fc1b9d4 L |
3491 | target_x86_64=no |
3492 | target_x32=no | |
3493 | if test "$targ_obj" = "x86_64"; then | |
3494 | case "$target" in | |
3495 | x86_64*-linux-gnux32) | |
3496 | target_x32=yes | |
be66981e | 3497 | default_size=32 |
4fc1b9d4 L |
3498 | ;; |
3499 | *) | |
3500 | target_x86_64=yes | |
3501 | ;; | |
3502 | esac | |
3503 | fi | |
3504 | if test "$target_x86_64" = "yes"; then | |
364c7fa5 ILT |
3505 | DEFAULT_TARGET_X86_64_TRUE= |
3506 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3507 | else | |
3508 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3509 | DEFAULT_TARGET_X86_64_FALSE= | |
3510 | fi | |
3511 | ||
4fc1b9d4 L |
3512 | if test "$target_x32" = "yes"; then |
3513 | DEFAULT_TARGET_X32_TRUE= | |
3514 | DEFAULT_TARGET_X32_FALSE='#' | |
3515 | else | |
3516 | DEFAULT_TARGET_X32_TRUE='#' | |
3517 | DEFAULT_TARGET_X32_FALSE= | |
3518 | fi | |
3519 | ||
0a6f1bf2 AM |
3520 | if test "$targ_obj" = "tilegx"; then |
3521 | DEFAULT_TARGET_TILEGX_TRUE= | |
3522 | DEFAULT_TARGET_TILEGX_FALSE='#' | |
3523 | else | |
3524 | DEFAULT_TARGET_TILEGX_TRUE='#' | |
3525 | DEFAULT_TARGET_TILEGX_FALSE= | |
3526 | fi | |
3527 | ||
9810d34d SS |
3528 | if test "$targ_obj" = "mips"; then |
3529 | DEFAULT_TARGET_MIPS_TRUE= | |
3530 | DEFAULT_TARGET_MIPS_FALSE='#' | |
3531 | else | |
3532 | DEFAULT_TARGET_MIPS_TRUE='#' | |
3533 | DEFAULT_TARGET_MIPS_FALSE= | |
3534 | fi | |
3535 | ||
9df9de2c CC |
3536 | DEFAULT_TARGET=${targ_obj} |
3537 | ||
81ecdfbb RW |
3538 | fi |
3539 | fi | |
bae7f79e | 3540 | fi |
81ecdfbb | 3541 | done |
bae7f79e | 3542 | |
6cfaf60b | 3543 | # Remove any duplicates. |
9109c078 ILT |
3544 | to="" |
3545 | for t in $targetobjs; do | |
3546 | case " $to " in | |
3547 | *" $t "*) ;; | |
3548 | *) to="$to $t" ;; | |
3549 | esac | |
3550 | done | |
3551 | targetobjs=$to | |
6cfaf60b | 3552 | |
81ecdfbb | 3553 | if test -n "$targ_32_little"; then |
bae7f79e | 3554 | |
81ecdfbb | 3555 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3556 | |
537b5f51 | 3557 | fi |
81ecdfbb | 3558 | if test -n "$targ_32_big"; then |
537b5f51 | 3559 | |
81ecdfbb | 3560 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3561 | |
81ecdfbb RW |
3562 | fi |
3563 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3564 | |
81ecdfbb | 3565 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3566 | |
81ecdfbb RW |
3567 | fi |
3568 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3569 | |
81ecdfbb | 3570 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3571 | |
bae7f79e | 3572 | fi |
bae7f79e | 3573 | |
81ecdfbb RW |
3574 | if test -n "$all_targets"; then |
3575 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3576 | else | |
3577 | TARGETOBJS="$targetobjs" | |
3578 | fi | |
bae7f79e | 3579 | |
bae7f79e ILT |
3580 | |
3581 | ||
81ecdfbb RW |
3582 | cat >>confdefs.h <<_ACEOF |
3583 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3584 | _ACEOF | |
bae7f79e | 3585 | |
bae7f79e | 3586 | |
81ecdfbb RW |
3587 | cat >>confdefs.h <<_ACEOF |
3588 | #define GOLD_DEFAULT_SIZE $default_size | |
3589 | _ACEOF | |
bae7f79e | 3590 | |
bae7f79e | 3591 | |
81ecdfbb RW |
3592 | cat >>confdefs.h <<_ACEOF |
3593 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3594 | _ACEOF | |
bae7f79e | 3595 | |
bae7f79e | 3596 | |
81ecdfbb RW |
3597 | cat >>confdefs.h <<_ACEOF |
3598 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3599 | _ACEOF | |
bae7f79e ILT |
3600 | |
3601 | ||
3f3cddf1 ILT |
3602 | |
3603 | # Check whether --with-lib-path was given. | |
3604 | if test "${with_lib_path+set}" = set; then : | |
3605 | withval=$with_lib_path; case "$withval" in | |
3606 | yes) LIB_PATH='"/lib:/usr/lib"' ;; | |
3607 | no) LIB_PATH='""' ;; | |
3608 | *) LIB_PATH='"'"$withval"'"' ;; | |
3609 | esac | |
3610 | else | |
3611 | LIB_PATH='"::DEFAULT::"' | |
3612 | fi | |
3613 | ||
3614 | ||
3615 | cat >>confdefs.h <<_ACEOF | |
3616 | #define LIB_PATH $LIB_PATH | |
3617 | _ACEOF | |
3618 | ||
3619 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then | |
3620 | ||
3621 | $as_echo "#define NATIVE_LINKER 1" >>confdefs.h | |
3622 | ||
3623 | fi | |
3624 | ||
ebb300b2 CC |
3625 | if test -n "$ac_tool_prefix"; then |
3626 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3627 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3629 | $as_echo_n "checking for $ac_word... " >&6; } | |
3630 | if test "${ac_cv_prog_NM+set}" = set; then : | |
3631 | $as_echo_n "(cached) " >&6 | |
3632 | else | |
3633 | if test -n "$NM"; then | |
3634 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3635 | else | |
3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3637 | for as_dir in $PATH | |
3638 | do | |
3639 | IFS=$as_save_IFS | |
3640 | test -z "$as_dir" && as_dir=. | |
3641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3643 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3645 | break 2 | |
3646 | fi | |
3647 | done | |
3648 | done | |
3649 | IFS=$as_save_IFS | |
3650 | ||
3651 | fi | |
3652 | fi | |
3653 | NM=$ac_cv_prog_NM | |
3654 | if test -n "$NM"; then | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
3656 | $as_echo "$NM" >&6; } | |
3657 | else | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3659 | $as_echo "no" >&6; } | |
3660 | fi | |
3661 | ||
3662 | ||
3663 | fi | |
3664 | if test -z "$ac_cv_prog_NM"; then | |
3665 | ac_ct_NM=$NM | |
3666 | # Extract the first word of "nm", so it can be a program name with args. | |
3667 | set dummy nm; ac_word=$2 | |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3669 | $as_echo_n "checking for $ac_word... " >&6; } | |
3670 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
3671 | $as_echo_n "(cached) " >&6 | |
3672 | else | |
3673 | if test -n "$ac_ct_NM"; then | |
3674 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3675 | else | |
3676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3677 | for as_dir in $PATH | |
3678 | do | |
3679 | IFS=$as_save_IFS | |
3680 | test -z "$as_dir" && as_dir=. | |
3681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3683 | ac_cv_prog_ac_ct_NM="nm" | |
3684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3685 | break 2 | |
3686 | fi | |
3687 | done | |
3688 | done | |
3689 | IFS=$as_save_IFS | |
3690 | ||
3691 | fi | |
3692 | fi | |
3693 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3694 | if test -n "$ac_ct_NM"; then | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
3696 | $as_echo "$ac_ct_NM" >&6; } | |
3697 | else | |
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3699 | $as_echo "no" >&6; } | |
3700 | fi | |
3701 | ||
3702 | if test "x$ac_ct_NM" = x; then | |
3703 | NM="" | |
3704 | else | |
3705 | case $cross_compiling:$ac_tool_warned in | |
3706 | yes:) | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3708 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3709 | ac_tool_warned=yes ;; | |
3710 | esac | |
3711 | NM=$ac_ct_NM | |
3712 | fi | |
3713 | else | |
3714 | NM="$ac_cv_prog_NM" | |
3715 | fi | |
3716 | ||
3717 | ||
81ecdfbb RW |
3718 | ac_ext=c |
3719 | ac_cpp='$CPP $CPPFLAGS' | |
3720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3723 | if test -n "$ac_tool_prefix"; then | |
3724 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3725 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3727 | $as_echo_n "checking for $ac_word... " >&6; } | |
3728 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3729 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3730 | else |
81ecdfbb RW |
3731 | if test -n "$CC"; then |
3732 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3733 | else | |
3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3735 | for as_dir in $PATH | |
3736 | do | |
3737 | IFS=$as_save_IFS | |
3738 | test -z "$as_dir" && as_dir=. | |
3739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3741 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3743 | break 2 | |
3744 | fi | |
3745 | done | |
3746 | done | |
3747 | IFS=$as_save_IFS | |
bae7f79e | 3748 | |
81ecdfbb RW |
3749 | fi |
3750 | fi | |
3751 | CC=$ac_cv_prog_CC | |
3752 | if test -n "$CC"; then | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3754 | $as_echo "$CC" >&6; } | |
3755 | else | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3757 | $as_echo "no" >&6; } | |
3758 | fi | |
bae7f79e ILT |
3759 | |
3760 | ||
bae7f79e | 3761 | fi |
81ecdfbb RW |
3762 | if test -z "$ac_cv_prog_CC"; then |
3763 | ac_ct_CC=$CC | |
3764 | # Extract the first word of "gcc", so it can be a program name with args. | |
3765 | set dummy gcc; ac_word=$2 | |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3767 | $as_echo_n "checking for $ac_word... " >&6; } | |
3768 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3769 | $as_echo_n "(cached) " >&6 | |
3770 | else | |
3771 | if test -n "$ac_ct_CC"; then | |
3772 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3773 | else | |
3774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3775 | for as_dir in $PATH | |
3776 | do | |
3777 | IFS=$as_save_IFS | |
3778 | test -z "$as_dir" && as_dir=. | |
3779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3781 | ac_cv_prog_ac_ct_CC="gcc" | |
3782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3783 | break 2 | |
3784 | fi | |
3785 | done | |
3786 | done | |
3787 | IFS=$as_save_IFS | |
bae7f79e | 3788 | |
81ecdfbb RW |
3789 | fi |
3790 | fi | |
3791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3792 | if test -n "$ac_ct_CC"; then | |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3794 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3795 | else |
81ecdfbb RW |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3797 | $as_echo "no" >&6; } | |
bae7f79e | 3798 | fi |
bae7f79e | 3799 | |
81ecdfbb RW |
3800 | if test "x$ac_ct_CC" = x; then |
3801 | CC="" | |
3802 | else | |
3803 | case $cross_compiling:$ac_tool_warned in | |
3804 | yes:) | |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3806 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3807 | ac_tool_warned=yes ;; | |
bae7f79e | 3808 | esac |
81ecdfbb RW |
3809 | CC=$ac_ct_CC |
3810 | fi | |
bae7f79e | 3811 | else |
81ecdfbb | 3812 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3813 | fi |
3814 | ||
81ecdfbb RW |
3815 | if test -z "$CC"; then |
3816 | if test -n "$ac_tool_prefix"; then | |
3817 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3818 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3820 | $as_echo_n "checking for $ac_word... " >&6; } | |
3821 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3822 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3823 | else |
81ecdfbb RW |
3824 | if test -n "$CC"; then |
3825 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3826 | else | |
3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3828 | for as_dir in $PATH |
3829 | do | |
3830 | IFS=$as_save_IFS | |
3831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3832 | for ac_exec_ext in '' $ac_executable_extensions; do |
3833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3834 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3836 | break 2 |
3837 | fi | |
3838 | done | |
81ecdfbb RW |
3839 | done |
3840 | IFS=$as_save_IFS | |
bae7f79e | 3841 | |
bae7f79e | 3842 | fi |
81ecdfbb RW |
3843 | fi |
3844 | CC=$ac_cv_prog_CC | |
3845 | if test -n "$CC"; then | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3847 | $as_echo "$CC" >&6; } | |
bae7f79e | 3848 | else |
81ecdfbb RW |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3850 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3851 | fi |
3852 | ||
3853 | ||
81ecdfbb RW |
3854 | fi |
3855 | fi | |
3856 | if test -z "$CC"; then | |
3857 | # Extract the first word of "cc", so it can be a program name with args. | |
3858 | set dummy cc; ac_word=$2 | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3860 | $as_echo_n "checking for $ac_word... " >&6; } | |
3861 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3862 | $as_echo_n "(cached) " >&6 | |
3863 | else | |
3864 | if test -n "$CC"; then | |
3865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3866 | else | |
3867 | ac_prog_rejected=no | |
3868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3869 | for as_dir in $PATH | |
3870 | do | |
3871 | IFS=$as_save_IFS | |
3872 | test -z "$as_dir" && as_dir=. | |
3873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3875 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3876 | ac_prog_rejected=yes | |
3877 | continue | |
3878 | fi | |
3879 | ac_cv_prog_CC="cc" | |
3880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3881 | break 2 | |
3882 | fi | |
3883 | done | |
3884 | done | |
3885 | IFS=$as_save_IFS | |
bae7f79e | 3886 | |
81ecdfbb RW |
3887 | if test $ac_prog_rejected = yes; then |
3888 | # We found a bogon in the path, so make sure we never use it. | |
3889 | set dummy $ac_cv_prog_CC | |
3890 | shift | |
3891 | if test $# != 0; then | |
3892 | # We chose a different compiler from the bogus one. | |
3893 | # However, it has the same basename, so the bogon will be chosen | |
3894 | # first if we set CC to just the basename; use the full file name. | |
3895 | shift | |
3896 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3897 | fi |
81ecdfbb RW |
3898 | fi |
3899 | fi | |
3900 | fi | |
3901 | CC=$ac_cv_prog_CC | |
3902 | if test -n "$CC"; then | |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3904 | $as_echo "$CC" >&6; } | |
3905 | else | |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3907 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3908 | fi |
3909 | ||
81ecdfbb RW |
3910 | |
3911 | fi | |
3912 | if test -z "$CC"; then | |
3913 | if test -n "$ac_tool_prefix"; then | |
3914 | for ac_prog in cl.exe | |
3915 | do | |
3916 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3917 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3919 | $as_echo_n "checking for $ac_word... " >&6; } | |
3920 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3921 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3922 | else |
81ecdfbb RW |
3923 | if test -n "$CC"; then |
3924 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3925 | else | |
3926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3927 | for as_dir in $PATH | |
3928 | do | |
3929 | IFS=$as_save_IFS | |
3930 | test -z "$as_dir" && as_dir=. | |
3931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3933 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3935 | break 2 | |
3936 | fi | |
3937 | done | |
3938 | done | |
3939 | IFS=$as_save_IFS | |
3940 | ||
3941 | fi | |
3942 | fi | |
3943 | CC=$ac_cv_prog_CC | |
3944 | if test -n "$CC"; then | |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3946 | $as_echo "$CC" >&6; } | |
3947 | else | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3949 | $as_echo "no" >&6; } | |
bae7f79e | 3950 | fi |
bae7f79e | 3951 | |
81ecdfbb RW |
3952 | |
3953 | test -n "$CC" && break | |
3954 | done | |
3955 | fi | |
3956 | if test -z "$CC"; then | |
3957 | ac_ct_CC=$CC | |
3958 | for ac_prog in cl.exe | |
3959 | do | |
3960 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3961 | set dummy $ac_prog; ac_word=$2 | |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3963 | $as_echo_n "checking for $ac_word... " >&6; } | |
3964 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3965 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3966 | else |
81ecdfbb RW |
3967 | if test -n "$ac_ct_CC"; then |
3968 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3969 | else | |
3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3971 | for as_dir in $PATH | |
3972 | do | |
3973 | IFS=$as_save_IFS | |
3974 | test -z "$as_dir" && as_dir=. | |
3975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3977 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3979 | break 2 | |
3980 | fi | |
3981 | done | |
3982 | done | |
3983 | IFS=$as_save_IFS | |
3984 | ||
bae7f79e | 3985 | fi |
81ecdfbb RW |
3986 | fi |
3987 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3988 | if test -n "$ac_ct_CC"; then | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3990 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3991 | else |
81ecdfbb RW |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3993 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3994 | fi |
3995 | ||
bae7f79e | 3996 | |
81ecdfbb RW |
3997 | test -n "$ac_ct_CC" && break |
3998 | done | |
bae7f79e | 3999 | |
81ecdfbb RW |
4000 | if test "x$ac_ct_CC" = x; then |
4001 | CC="" | |
bae7f79e | 4002 | else |
81ecdfbb RW |
4003 | case $cross_compiling:$ac_tool_warned in |
4004 | yes:) | |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4006 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4007 | ac_tool_warned=yes ;; | |
4008 | esac | |
4009 | CC=$ac_ct_CC | |
bae7f79e | 4010 | fi |
bae7f79e ILT |
4011 | fi |
4012 | ||
bae7f79e | 4013 | fi |
bae7f79e | 4014 | |
81ecdfbb RW |
4015 | |
4016 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4017 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4018 | as_fn_error "no acceptable C compiler found in \$PATH | |
4019 | See \`config.log' for more details." "$LINENO" 5; } | |
4020 | ||
4021 | # Provide some information about the compiler. | |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4023 | set X $ac_compile | |
4024 | ac_compiler=$2 | |
4025 | for ac_option in --version -v -V -qversion; do | |
4026 | { { ac_try="$ac_compiler $ac_option >&5" | |
4027 | case "(($ac_try" in | |
4028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4029 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 4030 | esac |
81ecdfbb RW |
4031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4032 | $as_echo "$ac_try_echo"; } >&5 | |
4033 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4034 | ac_status=$? | |
4035 | if test -s conftest.err; then | |
4036 | sed '10a\ | |
4037 | ... rest of stderr output deleted ... | |
4038 | 10q' conftest.err >conftest.er1 | |
4039 | cat conftest.er1 >&5 | |
4040 | rm -f conftest.er1 conftest.err | |
4041 | fi | |
4042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4043 | test $ac_status = 0; } | |
4044 | done | |
4045 | ||
4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4047 | /* end confdefs.h. */ | |
4048 | ||
4049 | int | |
4050 | main () | |
4051 | { | |
4052 | ||
4053 | ; | |
4054 | return 0; | |
4055 | } | |
4056 | _ACEOF | |
4057 | ac_clean_files_save=$ac_clean_files | |
4058 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
4059 | # Try to create an executable without -o first, disregard a.out. | |
4060 | # It will help us diagnose broken compilers, and finding out an intuition | |
4061 | # of exeext. | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4063 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4064 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4065 | ||
4066 | # The possible output files: | |
4067 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4068 | ||
4069 | ac_rmfiles= | |
4070 | for ac_file in $ac_files | |
4071 | do | |
4072 | case $ac_file in | |
4073 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4074 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4075 | esac | |
4076 | done | |
4077 | rm -f $ac_rmfiles | |
4078 | ||
4079 | if { { ac_try="$ac_link_default" | |
4080 | case "(($ac_try" in | |
4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4082 | *) ac_try_echo=$ac_try;; | |
4083 | esac | |
4084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4085 | $as_echo "$ac_try_echo"; } >&5 | |
4086 | (eval "$ac_link_default") 2>&5 | |
4087 | ac_status=$? | |
4088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4089 | test $ac_status = 0; }; then : | |
4090 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4091 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4092 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4093 | # so that the user can short-circuit this test for compilers unknown to | |
4094 | # Autoconf. | |
4095 | for ac_file in $ac_files '' | |
4096 | do | |
4097 | test -f "$ac_file" || continue | |
4098 | case $ac_file in | |
4099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4100 | ;; | |
4101 | [ab].out ) | |
4102 | # We found the default executable, but exeext='' is most | |
4103 | # certainly right. | |
4104 | break;; | |
4105 | *.* ) | |
4106 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4107 | then :; else | |
4108 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4109 | fi | |
4110 | # We set ac_cv_exeext here because the later test for it is not | |
4111 | # safe: cross compilers may not add the suffix if given an `-o' | |
4112 | # argument, so we may need to know it at that point already. | |
4113 | # Even if this section looks crufty: it has the advantage of | |
4114 | # actually working. | |
4115 | break;; | |
4116 | * ) | |
4117 | break;; | |
4118 | esac | |
4119 | done | |
4120 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4121 | ||
bae7f79e | 4122 | else |
81ecdfbb | 4123 | ac_file='' |
bae7f79e | 4124 | fi |
81ecdfbb RW |
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4126 | $as_echo "$ac_file" >&6; } | |
4127 | if test -z "$ac_file"; then : | |
4128 | $as_echo "$as_me: failed program was:" >&5 | |
4129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 4130 | |
81ecdfbb RW |
4131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4132 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4133 | { as_fn_set_status 77 | |
4134 | as_fn_error "C compiler cannot create executables | |
4135 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4136 | fi | |
4137 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 4138 | |
81ecdfbb RW |
4139 | # Check that the compiler produces executables we can run. If not, either |
4140 | # the compiler is broken, or we cross compile. | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4142 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4143 | # If not cross compiling, check that we can run a simple program. | |
4144 | if test "$cross_compiling" != yes; then | |
4145 | if { ac_try='./$ac_file' | |
4146 | { { case "(($ac_try" in | |
4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4148 | *) ac_try_echo=$ac_try;; | |
4149 | esac | |
4150 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4151 | $as_echo "$ac_try_echo"; } >&5 | |
4152 | (eval "$ac_try") 2>&5 | |
4153 | ac_status=$? | |
4154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4155 | test $ac_status = 0; }; }; then | |
4156 | cross_compiling=no | |
4157 | else | |
4158 | if test "$cross_compiling" = maybe; then | |
4159 | cross_compiling=yes | |
bae7f79e | 4160 | else |
81ecdfbb RW |
4161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4162 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4163 | as_fn_error "cannot run C compiled programs. | |
4164 | If you meant to cross compile, use \`--host'. | |
4165 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 4166 | fi |
bae7f79e | 4167 | fi |
81ecdfbb RW |
4168 | fi |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4170 | $as_echo "yes" >&6; } | |
bae7f79e | 4171 | |
81ecdfbb RW |
4172 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4173 | ac_clean_files=$ac_clean_files_save | |
4174 | # Check that the compiler produces executables we can run. If not, either | |
4175 | # the compiler is broken, or we cross compile. | |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4177 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4179 | $as_echo "$cross_compiling" >&6; } | |
4180 | ||
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4182 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4183 | if { { ac_try="$ac_link" | |
4184 | case "(($ac_try" in | |
4185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4186 | *) ac_try_echo=$ac_try;; | |
4187 | esac | |
4188 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4189 | $as_echo "$ac_try_echo"; } >&5 | |
4190 | (eval "$ac_link") 2>&5 | |
4191 | ac_status=$? | |
4192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4193 | test $ac_status = 0; }; then : | |
4194 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4195 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4196 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4197 | # `rm'. | |
4198 | for ac_file in conftest.exe conftest conftest.*; do | |
4199 | test -f "$ac_file" || continue | |
4200 | case $ac_file in | |
4201 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4202 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4203 | break;; | |
4204 | * ) break;; | |
4205 | esac | |
4206 | done | |
4207 | else | |
4208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4210 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4211 | See \`config.log' for more details." "$LINENO" 5; } | |
4212 | fi | |
4213 | rm -f conftest$ac_cv_exeext | |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4215 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4216 | |
81ecdfbb RW |
4217 | rm -f conftest.$ac_ext |
4218 | EXEEXT=$ac_cv_exeext | |
4219 | ac_exeext=$EXEEXT | |
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4221 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4222 | if test "${ac_cv_objext+set}" = set; then : | |
4223 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4224 | else |
81ecdfbb | 4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4226 | /* end confdefs.h. */ |
92e059d8 ILT |
4227 | |
4228 | int | |
4229 | main () | |
4230 | { | |
92e059d8 ILT |
4231 | |
4232 | ; | |
4233 | return 0; | |
4234 | } | |
4235 | _ACEOF | |
81ecdfbb RW |
4236 | rm -f conftest.o conftest.obj |
4237 | if { { ac_try="$ac_compile" | |
4238 | case "(($ac_try" in | |
4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4240 | *) ac_try_echo=$ac_try;; | |
4241 | esac | |
4242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4243 | $as_echo "$ac_try_echo"; } >&5 | |
4244 | (eval "$ac_compile") 2>&5 | |
4245 | ac_status=$? | |
4246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4247 | test $ac_status = 0; }; then : | |
4248 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4249 | test -f "$ac_file" || continue; | |
4250 | case $ac_file in | |
4251 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4252 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4253 | break;; | |
4254 | esac | |
4255 | done | |
4256 | else | |
4257 | $as_echo "$as_me: failed program was:" >&5 | |
4258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4259 | ||
4260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4262 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4263 | See \`config.log' for more details." "$LINENO" 5; } | |
4264 | fi | |
4265 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4266 | fi | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4268 | $as_echo "$ac_cv_objext" >&6; } | |
4269 | OBJEXT=$ac_cv_objext | |
4270 | ac_objext=$OBJEXT | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4272 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4273 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4274 | $as_echo_n "(cached) " >&6 | |
4275 | else | |
4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4277 | /* end confdefs.h. */ |
92e059d8 ILT |
4278 | |
4279 | int | |
4280 | main () | |
4281 | { | |
81ecdfbb RW |
4282 | #ifndef __GNUC__ |
4283 | choke me | |
92e059d8 ILT |
4284 | #endif |
4285 | ||
4286 | ; | |
4287 | return 0; | |
4288 | } | |
4289 | _ACEOF | |
81ecdfbb RW |
4290 | if ac_fn_c_try_compile "$LINENO"; then : |
4291 | ac_compiler_gnu=yes | |
92e059d8 | 4292 | else |
81ecdfbb RW |
4293 | ac_compiler_gnu=no |
4294 | fi | |
4295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4296 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4297 | |
92e059d8 | 4298 | fi |
81ecdfbb RW |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4300 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4301 | if test $ac_compiler_gnu = yes; then | |
4302 | GCC=yes | |
92e059d8 | 4303 | else |
81ecdfbb RW |
4304 | GCC= |
4305 | fi | |
4306 | ac_test_CFLAGS=${CFLAGS+set} | |
4307 | ac_save_CFLAGS=$CFLAGS | |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4309 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4310 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4311 | $as_echo_n "(cached) " >&6 | |
4312 | else | |
4313 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4314 | ac_c_werror_flag=yes | |
4315 | ac_cv_prog_cc_g=no | |
4316 | CFLAGS="-g" | |
4317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4318 | /* end confdefs.h. */ |
81ecdfbb | 4319 | |
92e059d8 ILT |
4320 | int |
4321 | main () | |
4322 | { | |
81ecdfbb | 4323 | |
92e059d8 ILT |
4324 | ; |
4325 | return 0; | |
4326 | } | |
4327 | _ACEOF | |
81ecdfbb RW |
4328 | if ac_fn_c_try_compile "$LINENO"; then : |
4329 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4330 | else |
81ecdfbb RW |
4331 | CFLAGS="" |
4332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4333 | /* end confdefs.h. */ |
81ecdfbb | 4334 | |
92e059d8 ILT |
4335 | int |
4336 | main () | |
4337 | { | |
81ecdfbb RW |
4338 | |
4339 | ; | |
4340 | return 0; | |
92e059d8 ILT |
4341 | } |
4342 | _ACEOF | |
81ecdfbb RW |
4343 | if ac_fn_c_try_compile "$LINENO"; then : |
4344 | ||
92e059d8 | 4345 | else |
81ecdfbb RW |
4346 | ac_c_werror_flag=$ac_save_c_werror_flag |
4347 | CFLAGS="-g" | |
4348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4349 | /* end confdefs.h. */ | |
92e059d8 | 4350 | |
81ecdfbb RW |
4351 | int |
4352 | main () | |
4353 | { | |
92e059d8 | 4354 | |
81ecdfbb RW |
4355 | ; |
4356 | return 0; | |
4357 | } | |
92e059d8 | 4358 | _ACEOF |
81ecdfbb RW |
4359 | if ac_fn_c_try_compile "$LINENO"; then : |
4360 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4361 | fi |
81ecdfbb | 4362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4363 | fi |
81ecdfbb | 4364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4365 | fi |
81ecdfbb RW |
4366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4367 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4368 | fi |
81ecdfbb RW |
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4370 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4371 | if test "$ac_test_CFLAGS" = set; then | |
4372 | CFLAGS=$ac_save_CFLAGS | |
4373 | elif test $ac_cv_prog_cc_g = yes; then | |
4374 | if test "$GCC" = yes; then | |
4375 | CFLAGS="-g -O2" | |
4376 | else | |
4377 | CFLAGS="-g" | |
4378 | fi | |
6eee141f | 4379 | else |
81ecdfbb RW |
4380 | if test "$GCC" = yes; then |
4381 | CFLAGS="-O2" | |
4382 | else | |
4383 | CFLAGS= | |
4384 | fi | |
097ec620 | 4385 | fi |
81ecdfbb RW |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4387 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4388 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4389 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4390 | else |
81ecdfbb RW |
4391 | ac_cv_prog_cc_c89=no |
4392 | ac_save_CC=$CC | |
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4394 | /* end confdefs.h. */ | |
4395 | #include <stdarg.h> | |
4396 | #include <stdio.h> | |
4397 | #include <sys/types.h> | |
4398 | #include <sys/stat.h> | |
4399 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4400 | struct buf { int x; }; | |
4401 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4402 | static char *e (p, i) | |
4403 | char **p; | |
4404 | int i; | |
4405 | { | |
4406 | return p[i]; | |
4407 | } | |
4408 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4409 | { | |
4410 | char *s; | |
4411 | va_list v; | |
4412 | va_start (v,p); | |
4413 | s = g (p, va_arg (v,int)); | |
4414 | va_end (v); | |
4415 | return s; | |
4416 | } | |
6eee141f | 4417 | |
81ecdfbb RW |
4418 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4419 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4420 | These don't provoke an error unfortunately, instead are silently treated | |
4421 | as 'x'. The following induces an error, until -std is added to get | |
4422 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4423 | array size at least. It's necessary to write '\x00'==0 to get something | |
4424 | that's true only with -std. */ | |
4425 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4426 | |
81ecdfbb RW |
4427 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4428 | inside strings and character constants. */ | |
4429 | #define FOO(x) 'x' | |
4430 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4431 | |
81ecdfbb RW |
4432 | int test (int i, double x); |
4433 | struct s1 {int (*f) (int a);}; | |
4434 | struct s2 {int (*f) (double a);}; | |
4435 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4436 | int argc; | |
4437 | char **argv; | |
4438 | int | |
4439 | main () | |
4440 | { | |
4441 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4442 | ; | |
4443 | return 0; | |
4444 | } | |
097ec620 | 4445 | _ACEOF |
81ecdfbb RW |
4446 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4447 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4448 | do | |
4449 | CC="$ac_save_CC $ac_arg" | |
4450 | if ac_fn_c_try_compile "$LINENO"; then : | |
4451 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4452 | fi |
81ecdfbb RW |
4453 | rm -f core conftest.err conftest.$ac_objext |
4454 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4455 | done | |
4456 | rm -f conftest.$ac_ext | |
4457 | CC=$ac_save_CC | |
097ec620 | 4458 | |
097ec620 | 4459 | fi |
81ecdfbb RW |
4460 | # AC_CACHE_VAL |
4461 | case "x$ac_cv_prog_cc_c89" in | |
4462 | x) | |
4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4464 | $as_echo "none needed" >&6; } ;; | |
4465 | xno) | |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4467 | $as_echo "unsupported" >&6; } ;; | |
4468 | *) | |
4469 | CC="$CC $ac_cv_prog_cc_c89" | |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4471 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4472 | esac | |
4473 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4474 | |
81ecdfbb | 4475 | fi |
097ec620 | 4476 | |
81ecdfbb RW |
4477 | ac_ext=c |
4478 | ac_cpp='$CPP $CPPFLAGS' | |
4479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4482 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4483 | |
81ecdfbb | 4484 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4485 | |
155a0dd7 | 4486 | |
81ecdfbb RW |
4487 | am_make=${MAKE-make} |
4488 | cat > confinc << 'END' | |
4489 | am__doit: | |
4490 | @echo this is the am__doit target | |
4491 | .PHONY: am__doit | |
4492 | END | |
4493 | # If we don't find an include directive, just comment out the code. | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4495 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4496 | am__include="#" | |
4497 | am__quote= | |
4498 | _am_result=none | |
4499 | # First try GNU make style include. | |
4500 | echo "include confinc" > confmf | |
4501 | # Ignore all kinds of additional output from `make'. | |
4502 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4503 | *the\ am__doit\ target*) | |
4504 | am__include=include | |
4505 | am__quote= | |
4506 | _am_result=GNU | |
4507 | ;; | |
4508 | esac | |
4509 | # Now try BSD make style include. | |
4510 | if test "$am__include" = "#"; then | |
4511 | echo '.include "confinc"' > confmf | |
4512 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4513 | *the\ am__doit\ target*) | |
4514 | am__include=.include | |
4515 | am__quote="\"" | |
4516 | _am_result=BSD | |
4517 | ;; | |
4518 | esac | |
155a0dd7 | 4519 | fi |
155a0dd7 | 4520 | |
155a0dd7 | 4521 | |
81ecdfbb RW |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4523 | $as_echo "$_am_result" >&6; } | |
4524 | rm -f confinc confmf | |
155a0dd7 | 4525 | |
81ecdfbb RW |
4526 | # Check whether --enable-dependency-tracking was given. |
4527 | if test "${enable_dependency_tracking+set}" = set; then : | |
4528 | enableval=$enable_dependency_tracking; | |
4529 | fi | |
155a0dd7 | 4530 | |
81ecdfbb RW |
4531 | if test "x$enable_dependency_tracking" != xno; then |
4532 | am_depcomp="$ac_aux_dir/depcomp" | |
4533 | AMDEPBACKSLASH='\' | |
4534 | fi | |
4535 | if test "x$enable_dependency_tracking" != xno; then | |
4536 | AMDEP_TRUE= | |
4537 | AMDEP_FALSE='#' | |
155a0dd7 | 4538 | else |
81ecdfbb RW |
4539 | AMDEP_TRUE='#' |
4540 | AMDEP_FALSE= | |
155a0dd7 ILT |
4541 | fi |
4542 | ||
4543 | ||
c2b45e22 | 4544 | |
81ecdfbb | 4545 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4546 | |
81ecdfbb RW |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4548 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4549 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4550 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4551 | else |
81ecdfbb RW |
4552 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4553 | # We make a subdir and do the tests there. Otherwise we can end up | |
4554 | # making bogus files that we don't know about and never remove. For | |
4555 | # instance it was reported that on HP-UX the gcc test will end up | |
4556 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4557 | # in D'. | |
4558 | mkdir conftest.dir | |
4559 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4560 | # using a relative directory. | |
4561 | cp "$am_depcomp" conftest.dir | |
4562 | cd conftest.dir | |
4563 | # We will build objects and dependencies in a subdirectory because | |
4564 | # it helps to detect inapplicable dependency modes. For instance | |
4565 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4566 | # side effect of compilation, but ICC will put the dependencies in | |
4567 | # the current directory while Tru64 will put them in the object | |
4568 | # directory. | |
4569 | mkdir sub | |
c2b45e22 | 4570 | |
81ecdfbb RW |
4571 | am_cv_CC_dependencies_compiler_type=none |
4572 | if test "$am_compiler_list" = ""; then | |
4573 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4574 | fi | |
4575 | am__universal=false | |
4576 | case " $depcc " in #( | |
4577 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4578 | esac | |
c2b45e22 | 4579 | |
81ecdfbb RW |
4580 | for depmode in $am_compiler_list; do |
4581 | # Setup a source with many dependencies, because some compilers | |
4582 | # like to wrap large dependency lists on column 80 (with \), and | |
4583 | # we should not choose a depcomp mode which is confused by this. | |
4584 | # | |
4585 | # We need to recreate these files for each test, as the compiler may | |
4586 | # overwrite some of them when testing with obscure command lines. | |
4587 | # This happens at least with the AIX C compiler. | |
4588 | : > sub/conftest.c | |
4589 | for i in 1 2 3 4 5 6; do | |
4590 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4591 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4592 | # Solaris 8's {/usr,}/bin/sh. | |
4593 | touch sub/conftst$i.h | |
4594 | done | |
4595 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4596 | |
81ecdfbb RW |
4597 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4598 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4599 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4600 | # versions had trouble with output in subdirs | |
4601 | am__obj=sub/conftest.${OBJEXT-o} | |
4602 | am__minus_obj="-o $am__obj" | |
4603 | case $depmode in | |
4604 | gcc) | |
4605 | # This depmode causes a compiler race in universal mode. | |
4606 | test "$am__universal" = false || continue | |
4607 | ;; | |
4608 | nosideeffect) | |
4609 | # after this tag, mechanisms are not by side-effect, so they'll | |
4610 | # only be used when explicitly requested | |
4611 | if test "x$enable_dependency_tracking" = xyes; then | |
4612 | continue | |
4613 | else | |
4614 | break | |
4615 | fi | |
4616 | ;; | |
4617 | msvisualcpp | msvcmsys) | |
4618 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4619 | # not run yet. These depmodes are late enough in the game, and | |
4620 | # so weak that their functioning should not be impacted. | |
4621 | am__obj=conftest.${OBJEXT-o} | |
4622 | am__minus_obj= | |
4623 | ;; | |
4624 | none) break ;; | |
4625 | esac | |
4626 | if depmode=$depmode \ | |
4627 | source=sub/conftest.c object=$am__obj \ | |
4628 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4629 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4630 | >/dev/null 2>conftest.err && | |
4631 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4632 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4633 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4634 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4635 | # icc doesn't choke on unknown options, it will just issue warnings | |
4636 | # or remarks (even with -Werror). So we grep stderr for any message | |
4637 | # that says an option was ignored or not supported. | |
4638 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4639 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4640 | # The diagnosis changed in icc 8.0: | |
4641 | # icc: Command line remark: option '-MP' not supported | |
4642 | if (grep 'ignoring option' conftest.err || | |
4643 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4644 | am_cv_CC_dependencies_compiler_type=$depmode | |
4645 | break | |
4646 | fi | |
4647 | fi | |
4648 | done | |
c2b45e22 | 4649 | |
81ecdfbb RW |
4650 | cd .. |
4651 | rm -rf conftest.dir | |
c2b45e22 | 4652 | else |
81ecdfbb | 4653 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4654 | fi |
c2b45e22 | 4655 | |
81ecdfbb RW |
4656 | fi |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4658 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4659 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4660 | |
81ecdfbb RW |
4661 | if |
4662 | test "x$enable_dependency_tracking" != xno \ | |
4663 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4664 | am__fastdepCC_TRUE= | |
4665 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4666 | else |
81ecdfbb RW |
4667 | am__fastdepCC_TRUE='#' |
4668 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4669 | fi |
4670 | ||
4671 | ||
81ecdfbb RW |
4672 | ac_ext=cpp |
4673 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4674 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4675 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4676 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4677 | if test -z "$CXX"; then | |
4678 | if test -n "$CCC"; then | |
4679 | CXX=$CCC | |
4680 | else | |
4681 | if test -n "$ac_tool_prefix"; then | |
4682 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4683 | do | |
4684 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4685 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4687 | $as_echo_n "checking for $ac_word... " >&6; } | |
4688 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4689 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4690 | else |
81ecdfbb RW |
4691 | if test -n "$CXX"; then |
4692 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4693 | else |
81ecdfbb RW |
4694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4695 | for as_dir in $PATH | |
4696 | do | |
4697 | IFS=$as_save_IFS | |
4698 | test -z "$as_dir" && as_dir=. | |
4699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4701 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4703 | break 2 | |
4704 | fi | |
4705 | done | |
4706 | done | |
4707 | IFS=$as_save_IFS | |
2fd32231 | 4708 | |
2fd32231 | 4709 | fi |
2fd32231 | 4710 | fi |
81ecdfbb RW |
4711 | CXX=$ac_cv_prog_CXX |
4712 | if test -n "$CXX"; then | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4714 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4715 | else |
81ecdfbb RW |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4717 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4718 | fi |
4719 | ||
4720 | ||
81ecdfbb RW |
4721 | test -n "$CXX" && break |
4722 | done | |
4723 | fi | |
4724 | if test -z "$CXX"; then | |
4725 | ac_ct_CXX=$CXX | |
4726 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4727 | do | |
4728 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4729 | set dummy $ac_prog; ac_word=$2 | |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4731 | $as_echo_n "checking for $ac_word... " >&6; } | |
4732 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4733 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4734 | else |
81ecdfbb RW |
4735 | if test -n "$ac_ct_CXX"; then |
4736 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4737 | else |
81ecdfbb RW |
4738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4739 | for as_dir in $PATH | |
4740 | do | |
4741 | IFS=$as_save_IFS | |
4742 | test -z "$as_dir" && as_dir=. | |
4743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4745 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4747 | break 2 | |
4748 | fi | |
4749 | done | |
4750 | done | |
4751 | IFS=$as_save_IFS | |
1d1f116d | 4752 | |
1d1f116d | 4753 | fi |
1d1f116d | 4754 | fi |
81ecdfbb RW |
4755 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4756 | if test -n "$ac_ct_CXX"; then | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4758 | $as_echo "$ac_ct_CXX" >&6; } | |
4759 | else | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4761 | $as_echo "no" >&6; } | |
1d1f116d CD |
4762 | fi |
4763 | ||
4764 | ||
81ecdfbb RW |
4765 | test -n "$ac_ct_CXX" && break |
4766 | done | |
63402fe4 | 4767 | |
81ecdfbb RW |
4768 | if test "x$ac_ct_CXX" = x; then |
4769 | CXX="g++" | |
4770 | else | |
4771 | case $cross_compiling:$ac_tool_warned in | |
4772 | yes:) | |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4775 | ac_tool_warned=yes ;; | |
04bf7072 | 4776 | esac |
81ecdfbb RW |
4777 | CXX=$ac_ct_CXX |
4778 | fi | |
4779 | fi | |
04bf7072 | 4780 | |
81ecdfbb | 4781 | fi |
bae7f79e | 4782 | fi |
81ecdfbb RW |
4783 | # Provide some information about the compiler. |
4784 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4785 | set X $ac_compile | |
4786 | ac_compiler=$2 | |
4787 | for ac_option in --version -v -V -qversion; do | |
4788 | { { ac_try="$ac_compiler $ac_option >&5" | |
4789 | case "(($ac_try" in | |
4790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4791 | *) ac_try_echo=$ac_try;; | |
4792 | esac | |
4793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4794 | $as_echo "$ac_try_echo"; } >&5 | |
4795 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4796 | ac_status=$? | |
4797 | if test -s conftest.err; then | |
4798 | sed '10a\ | |
4799 | ... rest of stderr output deleted ... | |
4800 | 10q' conftest.err >conftest.er1 | |
4801 | cat conftest.er1 >&5 | |
4802 | rm -f conftest.er1 conftest.err | |
4803 | fi | |
4804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4805 | test $ac_status = 0; } | |
4806 | done | |
bae7f79e | 4807 | |
81ecdfbb RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4809 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4810 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4811 | $as_echo_n "(cached) " >&6 | |
4812 | else | |
4813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4814 | /* end confdefs.h. */ | |
4815 | ||
4816 | int | |
4817 | main () | |
4818 | { | |
4819 | #ifndef __GNUC__ | |
4820 | choke me | |
4821 | #endif | |
4822 | ||
4823 | ; | |
4824 | return 0; | |
4825 | } | |
4826 | _ACEOF | |
4827 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4828 | ac_compiler_gnu=yes | |
4829 | else | |
4830 | ac_compiler_gnu=no | |
bae7f79e | 4831 | fi |
81ecdfbb RW |
4832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4833 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4834 | |
bae7f79e | 4835 | fi |
81ecdfbb RW |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4837 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4838 | if test $ac_compiler_gnu = yes; then | |
4839 | GXX=yes | |
4840 | else | |
4841 | GXX= | |
4842 | fi | |
4843 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4844 | ac_save_CXXFLAGS=$CXXFLAGS | |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4846 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4847 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4848 | $as_echo_n "(cached) " >&6 | |
4849 | else | |
4850 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4851 | ac_cxx_werror_flag=yes | |
4852 | ac_cv_prog_cxx_g=no | |
4853 | CXXFLAGS="-g" | |
4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4855 | /* end confdefs.h. */ | |
bae7f79e | 4856 | |
81ecdfbb RW |
4857 | int |
4858 | main () | |
4859 | { | |
bae7f79e | 4860 | |
81ecdfbb RW |
4861 | ; |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4866 | ac_cv_prog_cxx_g=yes | |
4867 | else | |
4868 | CXXFLAGS="" | |
4869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4870 | /* end confdefs.h. */ | |
bae7f79e | 4871 | |
81ecdfbb RW |
4872 | int |
4873 | main () | |
4874 | { | |
bae7f79e | 4875 | |
81ecdfbb RW |
4876 | ; |
4877 | return 0; | |
4878 | } | |
4879 | _ACEOF | |
4880 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4881 | |
81ecdfbb RW |
4882 | else |
4883 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4884 | CXXFLAGS="-g" | |
4885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4886 | /* end confdefs.h. */ | |
bae7f79e | 4887 | |
81ecdfbb RW |
4888 | int |
4889 | main () | |
4890 | { | |
bae7f79e | 4891 | |
81ecdfbb RW |
4892 | ; |
4893 | return 0; | |
4894 | } | |
4895 | _ACEOF | |
4896 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4897 | ac_cv_prog_cxx_g=yes | |
4898 | fi | |
4899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4900 | fi | |
4901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4902 | fi | |
4903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4904 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4905 | fi | |
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4907 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4908 | if test "$ac_test_CXXFLAGS" = set; then | |
4909 | CXXFLAGS=$ac_save_CXXFLAGS | |
4910 | elif test $ac_cv_prog_cxx_g = yes; then | |
4911 | if test "$GXX" = yes; then | |
4912 | CXXFLAGS="-g -O2" | |
4913 | else | |
4914 | CXXFLAGS="-g" | |
4915 | fi | |
4916 | else | |
4917 | if test "$GXX" = yes; then | |
4918 | CXXFLAGS="-O2" | |
4919 | else | |
4920 | CXXFLAGS= | |
4921 | fi | |
4922 | fi | |
4923 | ac_ext=c | |
4924 | ac_cpp='$CPP $CPPFLAGS' | |
4925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4928 | |
81ecdfbb | 4929 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4930 | |
81ecdfbb RW |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4932 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4933 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4934 | $as_echo_n "(cached) " >&6 | |
4935 | else | |
4936 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4937 | # We make a subdir and do the tests there. Otherwise we can end up | |
4938 | # making bogus files that we don't know about and never remove. For | |
4939 | # instance it was reported that on HP-UX the gcc test will end up | |
4940 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4941 | # in D'. | |
4942 | mkdir conftest.dir | |
4943 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4944 | # using a relative directory. | |
4945 | cp "$am_depcomp" conftest.dir | |
4946 | cd conftest.dir | |
4947 | # We will build objects and dependencies in a subdirectory because | |
4948 | # it helps to detect inapplicable dependency modes. For instance | |
4949 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4950 | # side effect of compilation, but ICC will put the dependencies in | |
4951 | # the current directory while Tru64 will put them in the object | |
4952 | # directory. | |
4953 | mkdir sub | |
bae7f79e | 4954 | |
81ecdfbb RW |
4955 | am_cv_CXX_dependencies_compiler_type=none |
4956 | if test "$am_compiler_list" = ""; then | |
4957 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4958 | fi | |
4959 | am__universal=false | |
4960 | case " $depcc " in #( | |
4961 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4962 | esac | |
bae7f79e | 4963 | |
81ecdfbb RW |
4964 | for depmode in $am_compiler_list; do |
4965 | # Setup a source with many dependencies, because some compilers | |
4966 | # like to wrap large dependency lists on column 80 (with \), and | |
4967 | # we should not choose a depcomp mode which is confused by this. | |
4968 | # | |
4969 | # We need to recreate these files for each test, as the compiler may | |
4970 | # overwrite some of them when testing with obscure command lines. | |
4971 | # This happens at least with the AIX C compiler. | |
4972 | : > sub/conftest.c | |
4973 | for i in 1 2 3 4 5 6; do | |
4974 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4975 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4976 | # Solaris 8's {/usr,}/bin/sh. | |
4977 | touch sub/conftst$i.h | |
4978 | done | |
4979 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 4980 | |
81ecdfbb RW |
4981 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4982 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4983 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4984 | # versions had trouble with output in subdirs | |
4985 | am__obj=sub/conftest.${OBJEXT-o} | |
4986 | am__minus_obj="-o $am__obj" | |
4987 | case $depmode in | |
4988 | gcc) | |
4989 | # This depmode causes a compiler race in universal mode. | |
4990 | test "$am__universal" = false || continue | |
4991 | ;; | |
4992 | nosideeffect) | |
4993 | # after this tag, mechanisms are not by side-effect, so they'll | |
4994 | # only be used when explicitly requested | |
4995 | if test "x$enable_dependency_tracking" = xyes; then | |
4996 | continue | |
4997 | else | |
4998 | break | |
4999 | fi | |
5000 | ;; | |
5001 | msvisualcpp | msvcmsys) | |
5002 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5003 | # not run yet. These depmodes are late enough in the game, and | |
5004 | # so weak that their functioning should not be impacted. | |
5005 | am__obj=conftest.${OBJEXT-o} | |
5006 | am__minus_obj= | |
5007 | ;; | |
5008 | none) break ;; | |
5009 | esac | |
5010 | if depmode=$depmode \ | |
5011 | source=sub/conftest.c object=$am__obj \ | |
5012 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5013 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5014 | >/dev/null 2>conftest.err && | |
5015 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5016 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5017 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5018 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5019 | # icc doesn't choke on unknown options, it will just issue warnings | |
5020 | # or remarks (even with -Werror). So we grep stderr for any message | |
5021 | # that says an option was ignored or not supported. | |
5022 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5023 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5024 | # The diagnosis changed in icc 8.0: | |
5025 | # icc: Command line remark: option '-MP' not supported | |
5026 | if (grep 'ignoring option' conftest.err || | |
5027 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5028 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5029 | break | |
5030 | fi | |
5031 | fi | |
5032 | done | |
9201d894 | 5033 | |
81ecdfbb RW |
5034 | cd .. |
5035 | rm -rf conftest.dir | |
5036 | else | |
5037 | am_cv_CXX_dependencies_compiler_type=none | |
5038 | fi | |
9201d894 | 5039 | |
81ecdfbb RW |
5040 | fi |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5042 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5043 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 5044 | |
81ecdfbb RW |
5045 | if |
5046 | test "x$enable_dependency_tracking" != xno \ | |
5047 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5048 | am__fastdepCXX_TRUE= | |
5049 | am__fastdepCXX_FALSE='#' | |
5050 | else | |
5051 | am__fastdepCXX_TRUE='#' | |
5052 | am__fastdepCXX_FALSE= | |
5053 | fi | |
9201d894 | 5054 | |
9201d894 | 5055 | |
81ecdfbb RW |
5056 | for ac_prog in 'bison -y' byacc |
5057 | do | |
5058 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5059 | set dummy $ac_prog; ac_word=$2 | |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5061 | $as_echo_n "checking for $ac_word... " >&6; } | |
5062 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
5063 | $as_echo_n "(cached) " >&6 | |
9201d894 | 5064 | else |
81ecdfbb RW |
5065 | if test -n "$YACC"; then |
5066 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5067 | else | |
5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5069 | for as_dir in $PATH | |
5070 | do | |
5071 | IFS=$as_save_IFS | |
5072 | test -z "$as_dir" && as_dir=. | |
5073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5075 | ac_cv_prog_YACC="$ac_prog" | |
5076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5077 | break 2 | |
5078 | fi | |
5079 | done | |
5080 | done | |
5081 | IFS=$as_save_IFS | |
9201d894 | 5082 | |
9201d894 | 5083 | fi |
9201d894 | 5084 | fi |
81ecdfbb RW |
5085 | YACC=$ac_cv_prog_YACC |
5086 | if test -n "$YACC"; then | |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5088 | $as_echo "$YACC" >&6; } | |
5089 | else | |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5091 | $as_echo "no" >&6; } | |
9201d894 | 5092 | fi |
9201d894 | 5093 | |
2f35ab9b | 5094 | |
81ecdfbb RW |
5095 | test -n "$YACC" && break |
5096 | done | |
5097 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 5098 | |
81ecdfbb RW |
5099 | if test -n "$ac_tool_prefix"; then |
5100 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5101 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5103 | $as_echo_n "checking for $ac_word... " >&6; } | |
5104 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5105 | $as_echo_n "(cached) " >&6 | |
5106 | else | |
5107 | if test -n "$RANLIB"; then | |
5108 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5109 | else | |
5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5111 | for as_dir in $PATH | |
82dcae9d | 5112 | do |
81ecdfbb RW |
5113 | IFS=$as_save_IFS |
5114 | test -z "$as_dir" && as_dir=. | |
5115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5117 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5119 | break 2 | |
5120 | fi | |
5121 | done | |
5122 | done | |
5123 | IFS=$as_save_IFS | |
82dcae9d | 5124 | |
81ecdfbb RW |
5125 | fi |
5126 | fi | |
5127 | RANLIB=$ac_cv_prog_RANLIB | |
5128 | if test -n "$RANLIB"; then | |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5130 | $as_echo "$RANLIB" >&6; } | |
5131 | else | |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5133 | $as_echo "no" >&6; } | |
5134 | fi | |
82dcae9d | 5135 | |
82dcae9d | 5136 | |
81ecdfbb RW |
5137 | fi |
5138 | if test -z "$ac_cv_prog_RANLIB"; then | |
5139 | ac_ct_RANLIB=$RANLIB | |
5140 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5141 | set dummy ranlib; ac_word=$2 | |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5143 | $as_echo_n "checking for $ac_word... " >&6; } | |
5144 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5145 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 5146 | else |
81ecdfbb RW |
5147 | if test -n "$ac_ct_RANLIB"; then |
5148 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5149 | else | |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | test -z "$as_dir" && as_dir=. | |
5155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5157 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5159 | break 2 | |
5160 | fi | |
5161 | done | |
5162 | done | |
5163 | IFS=$as_save_IFS | |
82dcae9d | 5164 | |
82dcae9d | 5165 | fi |
82dcae9d | 5166 | fi |
81ecdfbb RW |
5167 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5168 | if test -n "$ac_ct_RANLIB"; then | |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5170 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 5171 | else |
81ecdfbb RW |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5173 | $as_echo "no" >&6; } | |
5174 | fi | |
5175 | ||
5176 | if test "x$ac_ct_RANLIB" = x; then | |
5177 | RANLIB=":" | |
5178 | else | |
5179 | case $cross_compiling:$ac_tool_warned in | |
5180 | yes:) | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5182 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5183 | ac_tool_warned=yes ;; | |
82dcae9d | 5184 | esac |
81ecdfbb RW |
5185 | RANLIB=$ac_ct_RANLIB |
5186 | fi | |
5187 | else | |
5188 | RANLIB="$ac_cv_prog_RANLIB" | |
5189 | fi | |
82dcae9d | 5190 | |
81ecdfbb RW |
5191 | |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5193 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5194 | LN_S=$as_ln_s | |
5195 | if test "$LN_S" = "ln -s"; then | |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5197 | $as_echo "yes" >&6; } | |
5198 | else | |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5200 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5201 | fi |
82dcae9d ILT |
5202 | |
5203 | ||
5204 | ||
9a0910c3 ILT |
5205 | ac_ext=c |
5206 | ac_cpp='$CPP $CPPFLAGS' | |
5207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5211 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5212 | # On Suns, sometimes $CPP names a directory. |
5213 | if test -n "$CPP" && test -d "$CPP"; then | |
5214 | CPP= | |
5215 | fi | |
5216 | if test -z "$CPP"; then | |
81ecdfbb RW |
5217 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5218 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5219 | else |
5220 | # Double quotes because CPP needs to be expanded | |
5221 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5222 | do | |
5223 | ac_preproc_ok=false | |
5224 | for ac_c_preproc_warn_flag in '' yes | |
5225 | do | |
5226 | # Use a header file that comes with gcc, so configuring glibc | |
5227 | # with a fresh cross-compiler works. | |
5228 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5229 | # <limits.h> exists even on freestanding compilers. | |
5230 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5231 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5233 | /* end confdefs.h. */ |
5234 | #ifdef __STDC__ | |
5235 | # include <limits.h> | |
5236 | #else | |
5237 | # include <assert.h> | |
5238 | #endif | |
5239 | Syntax error | |
5240 | _ACEOF | |
81ecdfbb | 5241 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5242 | |
81ecdfbb | 5243 | else |
9a0910c3 ILT |
5244 | # Broken: fails on valid input. |
5245 | continue | |
5246 | fi | |
5247 | rm -f conftest.err conftest.$ac_ext | |
5248 | ||
81ecdfbb | 5249 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5250 | # can be detected and how. |
81ecdfbb | 5251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5252 | /* end confdefs.h. */ |
5253 | #include <ac_nonexistent.h> | |
5254 | _ACEOF | |
81ecdfbb | 5255 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5256 | # Broken: success on invalid input. |
5257 | continue | |
5258 | else | |
9a0910c3 ILT |
5259 | # Passes both tests. |
5260 | ac_preproc_ok=: | |
5261 | break | |
5262 | fi | |
5263 | rm -f conftest.err conftest.$ac_ext | |
5264 | ||
5265 | done | |
5266 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5267 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5268 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5269 | break |
5270 | fi | |
5271 | ||
5272 | done | |
5273 | ac_cv_prog_CPP=$CPP | |
5274 | ||
5275 | fi | |
5276 | CPP=$ac_cv_prog_CPP | |
5277 | else | |
5278 | ac_cv_prog_CPP=$CPP | |
5279 | fi | |
81ecdfbb RW |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5281 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5282 | ac_preproc_ok=false |
5283 | for ac_c_preproc_warn_flag in '' yes | |
5284 | do | |
5285 | # Use a header file that comes with gcc, so configuring glibc | |
5286 | # with a fresh cross-compiler works. | |
5287 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5288 | # <limits.h> exists even on freestanding compilers. | |
5289 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5290 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5292 | /* end confdefs.h. */ |
5293 | #ifdef __STDC__ | |
5294 | # include <limits.h> | |
5295 | #else | |
5296 | # include <assert.h> | |
5297 | #endif | |
5298 | Syntax error | |
5299 | _ACEOF | |
81ecdfbb | 5300 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5301 | |
81ecdfbb | 5302 | else |
9a0910c3 ILT |
5303 | # Broken: fails on valid input. |
5304 | continue | |
5305 | fi | |
5306 | rm -f conftest.err conftest.$ac_ext | |
5307 | ||
81ecdfbb | 5308 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5309 | # can be detected and how. |
81ecdfbb | 5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5311 | /* end confdefs.h. */ |
5312 | #include <ac_nonexistent.h> | |
5313 | _ACEOF | |
81ecdfbb | 5314 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5315 | # Broken: success on invalid input. |
5316 | continue | |
5317 | else | |
9a0910c3 ILT |
5318 | # Passes both tests. |
5319 | ac_preproc_ok=: | |
5320 | break | |
5321 | fi | |
5322 | rm -f conftest.err conftest.$ac_ext | |
5323 | ||
5324 | done | |
5325 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5326 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5327 | if $ac_preproc_ok; then : |
5328 | ||
9a0910c3 | 5329 | else |
81ecdfbb RW |
5330 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5332 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5333 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5334 | fi |
5335 | ||
5336 | ac_ext=c | |
5337 | ac_cpp='$CPP $CPPFLAGS' | |
5338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5341 | ||
5342 | ||
81ecdfbb RW |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5344 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5345 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5346 | $as_echo_n "(cached) " >&6 | |
5347 | else | |
5348 | if test -z "$GREP"; then | |
5349 | ac_path_GREP_found=false | |
5350 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5352 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5353 | do | |
5354 | IFS=$as_save_IFS | |
5355 | test -z "$as_dir" && as_dir=. | |
5356 | for ac_prog in grep ggrep; do | |
5357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5358 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5359 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5360 | # Check for GNU ac_path_GREP and select it if it is found. | |
5361 | # Check for GNU $ac_path_GREP | |
5362 | case `"$ac_path_GREP" --version 2>&1` in | |
5363 | *GNU*) | |
5364 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5365 | *) | |
5366 | ac_count=0 | |
5367 | $as_echo_n 0123456789 >"conftest.in" | |
5368 | while : | |
5369 | do | |
5370 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5371 | mv "conftest.tmp" "conftest.in" | |
5372 | cp "conftest.in" "conftest.nl" | |
5373 | $as_echo 'GREP' >> "conftest.nl" | |
5374 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5375 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5376 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5377 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5378 | # Best one so far, save it but keep looking for a better one | |
5379 | ac_cv_path_GREP="$ac_path_GREP" | |
5380 | ac_path_GREP_max=$ac_count | |
5381 | fi | |
5382 | # 10*(2^10) chars as input seems more than enough | |
5383 | test $ac_count -gt 10 && break | |
5384 | done | |
5385 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5386 | esac | |
5387 | ||
5388 | $ac_path_GREP_found && break 3 | |
5389 | done | |
5390 | done | |
5391 | done | |
5392 | IFS=$as_save_IFS | |
5393 | if test -z "$ac_cv_path_GREP"; then | |
5394 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5395 | fi | |
5396 | else | |
5397 | ac_cv_path_GREP=$GREP | |
5398 | fi | |
5399 | ||
5400 | fi | |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5402 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5403 | GREP="$ac_cv_path_GREP" | |
5404 | ||
5405 | ||
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5407 | $as_echo_n "checking for egrep... " >&6; } | |
5408 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5409 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5410 | else |
81ecdfbb RW |
5411 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5412 | then ac_cv_path_EGREP="$GREP -E" | |
5413 | else | |
5414 | if test -z "$EGREP"; then | |
5415 | ac_path_EGREP_found=false | |
5416 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5418 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5419 | do | |
5420 | IFS=$as_save_IFS | |
5421 | test -z "$as_dir" && as_dir=. | |
5422 | for ac_prog in egrep; do | |
5423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5424 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5425 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5426 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5427 | # Check for GNU $ac_path_EGREP | |
5428 | case `"$ac_path_EGREP" --version 2>&1` in | |
5429 | *GNU*) | |
5430 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5431 | *) | |
5432 | ac_count=0 | |
5433 | $as_echo_n 0123456789 >"conftest.in" | |
5434 | while : | |
5435 | do | |
5436 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5437 | mv "conftest.tmp" "conftest.in" | |
5438 | cp "conftest.in" "conftest.nl" | |
5439 | $as_echo 'EGREP' >> "conftest.nl" | |
5440 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5441 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5442 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5443 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5444 | # Best one so far, save it but keep looking for a better one | |
5445 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5446 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5447 | fi |
81ecdfbb RW |
5448 | # 10*(2^10) chars as input seems more than enough |
5449 | test $ac_count -gt 10 && break | |
5450 | done | |
5451 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5452 | esac | |
5453 | ||
5454 | $ac_path_EGREP_found && break 3 | |
5455 | done | |
5456 | done | |
5457 | done | |
5458 | IFS=$as_save_IFS | |
5459 | if test -z "$ac_cv_path_EGREP"; then | |
5460 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5461 | fi | |
5462 | else | |
5463 | ac_cv_path_EGREP=$EGREP | |
5464 | fi | |
5465 | ||
5466 | fi | |
9a0910c3 | 5467 | fi |
81ecdfbb RW |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5469 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5470 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5471 | |
5472 | ||
81ecdfbb RW |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5474 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5475 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5476 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5477 | else |
81ecdfbb | 5478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5479 | /* end confdefs.h. */ |
5480 | #include <stdlib.h> | |
5481 | #include <stdarg.h> | |
5482 | #include <string.h> | |
5483 | #include <float.h> | |
5484 | ||
5485 | int | |
5486 | main () | |
5487 | { | |
5488 | ||
5489 | ; | |
5490 | return 0; | |
5491 | } | |
5492 | _ACEOF | |
81ecdfbb | 5493 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5494 | ac_cv_header_stdc=yes |
5495 | else | |
81ecdfbb | 5496 | ac_cv_header_stdc=no |
9a0910c3 | 5497 | fi |
81ecdfbb | 5498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5499 | |
5500 | if test $ac_cv_header_stdc = yes; then | |
5501 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5503 | /* end confdefs.h. */ |
5504 | #include <string.h> | |
5505 | ||
5506 | _ACEOF | |
5507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5508 | $EGREP "memchr" >/dev/null 2>&1; then : |
5509 | ||
9a0910c3 ILT |
5510 | else |
5511 | ac_cv_header_stdc=no | |
5512 | fi | |
5513 | rm -f conftest* | |
5514 | ||
5515 | fi | |
5516 | ||
5517 | if test $ac_cv_header_stdc = yes; then | |
5518 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5520 | /* end confdefs.h. */ |
5521 | #include <stdlib.h> | |
5522 | ||
5523 | _ACEOF | |
5524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5525 | $EGREP "free" >/dev/null 2>&1; then : |
5526 | ||
9a0910c3 ILT |
5527 | else |
5528 | ac_cv_header_stdc=no | |
5529 | fi | |
5530 | rm -f conftest* | |
5531 | ||
5532 | fi | |
5533 | ||
5534 | if test $ac_cv_header_stdc = yes; then | |
5535 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5536 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5537 | : |
5538 | else | |
81ecdfbb | 5539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5540 | /* end confdefs.h. */ |
5541 | #include <ctype.h> | |
81ecdfbb | 5542 | #include <stdlib.h> |
9a0910c3 ILT |
5543 | #if ((' ' & 0x0FF) == 0x020) |
5544 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5545 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5546 | #else | |
5547 | # define ISLOWER(c) \ | |
5548 | (('a' <= (c) && (c) <= 'i') \ | |
5549 | || ('j' <= (c) && (c) <= 'r') \ | |
5550 | || ('s' <= (c) && (c) <= 'z')) | |
5551 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5552 | #endif | |
5553 | ||
5554 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5555 | int | |
5556 | main () | |
5557 | { | |
5558 | int i; | |
5559 | for (i = 0; i < 256; i++) | |
5560 | if (XOR (islower (i), ISLOWER (i)) | |
5561 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5562 | return 2; |
5563 | return 0; | |
9a0910c3 ILT |
5564 | } |
5565 | _ACEOF | |
81ecdfbb | 5566 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5567 | |
81ecdfbb RW |
5568 | else |
5569 | ac_cv_header_stdc=no | |
9a0910c3 | 5570 | fi |
81ecdfbb RW |
5571 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5572 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5573 | fi |
81ecdfbb | 5574 | |
9a0910c3 ILT |
5575 | fi |
5576 | fi | |
81ecdfbb RW |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5578 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5579 | if test $ac_cv_header_stdc = yes; then |
5580 | ||
81ecdfbb | 5581 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5582 | |
5583 | fi | |
5584 | ||
5585 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5586 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5587 | inttypes.h stdint.h unistd.h | |
5588 | do : | |
5589 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5590 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5591 | " | |
5592 | eval as_val=\$$as_ac_Header | |
5593 | if test "x$as_val" = x""yes; then : | |
5594 | cat >>confdefs.h <<_ACEOF | |
5595 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5596 | _ACEOF | |
9a0910c3 | 5597 | |
81ecdfbb | 5598 | fi |
9a0910c3 | 5599 | |
81ecdfbb | 5600 | done |
9a0910c3 ILT |
5601 | |
5602 | ||
5603 | ||
81ecdfbb RW |
5604 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5605 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5606 | MINIX=yes | |
5607 | else | |
5608 | MINIX= | |
5609 | fi | |
9a0910c3 ILT |
5610 | |
5611 | ||
81ecdfbb | 5612 | if test "$MINIX" = yes; then |
9a0910c3 | 5613 | |
81ecdfbb | 5614 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5615 | |
9a0910c3 | 5616 | |
81ecdfbb | 5617 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5618 | |
9a0910c3 | 5619 | |
81ecdfbb | 5620 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5621 | |
81ecdfbb | 5622 | fi |
9a0910c3 ILT |
5623 | |
5624 | ||
81ecdfbb RW |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5626 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5627 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5628 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5629 | else |
81ecdfbb | 5630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5631 | /* end confdefs.h. */ |
5632 | ||
81ecdfbb RW |
5633 | # define __EXTENSIONS__ 1 |
5634 | $ac_includes_default | |
9a0910c3 ILT |
5635 | int |
5636 | main () | |
5637 | { | |
81ecdfbb | 5638 | |
9a0910c3 ILT |
5639 | ; |
5640 | return 0; | |
5641 | } | |
5642 | _ACEOF | |
81ecdfbb RW |
5643 | if ac_fn_c_try_compile "$LINENO"; then : |
5644 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5645 | else |
81ecdfbb | 5646 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5647 | fi |
81ecdfbb RW |
5648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5649 | fi | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5651 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5652 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5653 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5654 | |
81ecdfbb RW |
5655 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5656 | ||
5657 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5658 | |
81ecdfbb RW |
5659 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5660 | ||
5661 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | # If we haven't got the data from the intl directory, | |
5667 | # assume NLS is disabled. | |
5668 | USE_NLS=no | |
5669 | LIBINTL= | |
5670 | LIBINTL_DEP= | |
5671 | INCINTL= | |
5672 | XGETTEXT= | |
5673 | GMSGFMT= | |
5674 | POSUB= | |
5675 | ||
5676 | if test -f ../intl/config.intl; then | |
5677 | . ../intl/config.intl | |
9a0910c3 | 5678 | fi |
81ecdfbb RW |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5680 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5681 | if test x"$USE_NLS" != xyes; then | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5683 | $as_echo "no" >&6; } | |
5684 | else | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5686 | $as_echo "yes" >&6; } | |
5687 | ||
5688 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5689 | ||
5690 | ||
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5692 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5693 | # Look for .po and .gmo files in the source directory. | |
5694 | CATALOGS= | |
5695 | XLINGUAS= | |
5696 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5697 | # If there aren't any .gmo files the shell will give us the | |
5698 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5699 | # weeded out. | |
5700 | case "$cat" in *\**) | |
5701 | continue;; | |
5702 | esac | |
5703 | # The quadruple backslash is collapsed to a double backslash | |
5704 | # by the backticks, then collapsed again by the double quotes, | |
5705 | # leaving us with one backslash in the sed expression (right | |
5706 | # before the dot that mustn't act as a wildcard). | |
5707 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5708 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5709 | # The user is allowed to set LINGUAS to a list of languages to | |
5710 | # install catalogs for. If it's empty that means "all of them." | |
5711 | if test "x$LINGUAS" = x; then | |
5712 | CATALOGS="$CATALOGS $cat" | |
5713 | XLINGUAS="$XLINGUAS $lang" | |
5714 | else | |
5715 | case "$LINGUAS" in *$lang*) | |
5716 | CATALOGS="$CATALOGS $cat" | |
5717 | XLINGUAS="$XLINGUAS $lang" | |
5718 | ;; | |
5719 | esac | |
5720 | fi | |
9a0910c3 | 5721 | done |
81ecdfbb RW |
5722 | LINGUAS="$XLINGUAS" |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5724 | $as_echo "$LINGUAS" >&6; } | |
5725 | ||
5726 | ||
5727 | DATADIRNAME=share | |
5728 | ||
5729 | INSTOBJEXT=.mo | |
5730 | ||
5731 | GENCAT=gencat | |
5732 | ||
5733 | CATOBJEXT=.gmo | |
9a0910c3 | 5734 | |
9a0910c3 | 5735 | fi |
9a0910c3 | 5736 | |
81ecdfbb RW |
5737 | MKINSTALLDIRS= |
5738 | if test -n "$ac_aux_dir"; then | |
5739 | case "$ac_aux_dir" in | |
5740 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5741 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5742 | esac | |
5743 | fi | |
5744 | if test -z "$MKINSTALLDIRS"; then | |
5745 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5746 | fi | |
5747 | ||
5748 | ||
5749 | ||
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5751 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5752 | # Check whether --enable-nls was given. | |
5753 | if test "${enable_nls+set}" = set; then : | |
5754 | enableval=$enable_nls; USE_NLS=$enableval | |
5755 | else | |
5756 | USE_NLS=yes | |
9a0910c3 | 5757 | fi |
9a0910c3 | 5758 | |
81ecdfbb RW |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5760 | $as_echo "$USE_NLS" >&6; } | |
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | # Prepare PATH_SEPARATOR. | |
5768 | # The user is always right. | |
5769 | if test "${PATH_SEPARATOR+set}" != set; then | |
5770 | echo "#! /bin/sh" >conf$$.sh | |
5771 | echo "exit 0" >>conf$$.sh | |
5772 | chmod +x conf$$.sh | |
5773 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5774 | PATH_SEPARATOR=';' | |
9a0910c3 | 5775 | else |
81ecdfbb | 5776 | PATH_SEPARATOR=: |
9a0910c3 | 5777 | fi |
81ecdfbb | 5778 | rm -f conf$$.sh |
9a0910c3 | 5779 | fi |
81ecdfbb RW |
5780 | |
5781 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5782 | # as systems may use methods other than mode bits to determine executability. | |
5783 | cat >conf$$.file <<_ASEOF | |
5784 | #! /bin/sh | |
5785 | exit 0 | |
5786 | _ASEOF | |
5787 | chmod +x conf$$.file | |
5788 | if test -x conf$$.file >/dev/null 2>&1; then | |
5789 | ac_executable_p="test -x" | |
9a0910c3 | 5790 | else |
81ecdfbb RW |
5791 | ac_executable_p="test -f" |
5792 | fi | |
5793 | rm -f conf$$.file | |
9a0910c3 | 5794 | |
81ecdfbb RW |
5795 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5796 | set dummy msgfmt; ac_word=$2 | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5798 | $as_echo_n "checking for $ac_word... " >&6; } | |
5799 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5800 | $as_echo_n "(cached) " >&6 | |
5801 | else | |
5802 | case "$MSGFMT" in | |
5803 | [\\/]* | ?:[\\/]*) | |
5804 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5805 | ;; | |
5806 | *) | |
5807 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5808 | for ac_dir in $PATH; do | |
5809 | IFS="$ac_save_IFS" | |
5810 | test -z "$ac_dir" && ac_dir=. | |
5811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5812 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5813 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5814 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5815 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5816 | break 2 | |
5817 | fi | |
5818 | fi | |
5819 | done | |
5820 | done | |
5821 | IFS="$ac_save_IFS" | |
5822 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5823 | ;; | |
5824 | esac | |
9a0910c3 | 5825 | fi |
81ecdfbb RW |
5826 | MSGFMT="$ac_cv_path_MSGFMT" |
5827 | if test "$MSGFMT" != ":"; then | |
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5829 | $as_echo "$MSGFMT" >&6; } | |
5830 | else | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5832 | $as_echo "no" >&6; } | |
5833 | fi | |
5834 | ||
5835 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5836 | set dummy gmsgfmt; ac_word=$2 | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5838 | $as_echo_n "checking for $ac_word... " >&6; } | |
5839 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5840 | $as_echo_n "(cached) " >&6 | |
5841 | else | |
5842 | case $GMSGFMT in | |
5843 | [\\/]* | ?:[\\/]*) | |
5844 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5845 | ;; | |
5846 | *) | |
5847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5848 | for as_dir in $PATH | |
5849 | do | |
5850 | IFS=$as_save_IFS | |
5851 | test -z "$as_dir" && as_dir=. | |
5852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5854 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5856 | break 2 | |
5857 | fi | |
5858 | done | |
5859 | done | |
5860 | IFS=$as_save_IFS | |
9a0910c3 | 5861 | |
81ecdfbb RW |
5862 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5863 | ;; | |
9a0910c3 | 5864 | esac |
81ecdfbb RW |
5865 | fi |
5866 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5867 | if test -n "$GMSGFMT"; then | |
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5869 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5870 | else |
81ecdfbb RW |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5872 | $as_echo "no" >&6; } | |
9a0910c3 | 5873 | fi |
9a0910c3 | 5874 | |
9a0910c3 | 5875 | |
9a0910c3 | 5876 | |
9a0910c3 | 5877 | |
81ecdfbb RW |
5878 | # Prepare PATH_SEPARATOR. |
5879 | # The user is always right. | |
5880 | if test "${PATH_SEPARATOR+set}" != set; then | |
5881 | echo "#! /bin/sh" >conf$$.sh | |
5882 | echo "exit 0" >>conf$$.sh | |
5883 | chmod +x conf$$.sh | |
5884 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5885 | PATH_SEPARATOR=';' | |
5886 | else | |
5887 | PATH_SEPARATOR=: | |
5888 | fi | |
5889 | rm -f conf$$.sh | |
9a0910c3 ILT |
5890 | fi |
5891 | ||
81ecdfbb RW |
5892 | # Find out how to test for executable files. Don't use a zero-byte file, |
5893 | # as systems may use methods other than mode bits to determine executability. | |
5894 | cat >conf$$.file <<_ASEOF | |
5895 | #! /bin/sh | |
5896 | exit 0 | |
5897 | _ASEOF | |
5898 | chmod +x conf$$.file | |
5899 | if test -x conf$$.file >/dev/null 2>&1; then | |
5900 | ac_executable_p="test -x" | |
7fcd0256 | 5901 | else |
81ecdfbb | 5902 | ac_executable_p="test -f" |
7fcd0256 | 5903 | fi |
81ecdfbb | 5904 | rm -f conf$$.file |
7fcd0256 | 5905 | |
81ecdfbb RW |
5906 | # Extract the first word of "xgettext", so it can be a program name with args. |
5907 | set dummy xgettext; ac_word=$2 | |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5909 | $as_echo_n "checking for $ac_word... " >&6; } | |
5910 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5911 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5912 | else |
81ecdfbb RW |
5913 | case "$XGETTEXT" in |
5914 | [\\/]* | ?:[\\/]*) | |
5915 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5916 | ;; | |
5917 | *) | |
5918 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5919 | for ac_dir in $PATH; do | |
5920 | IFS="$ac_save_IFS" | |
5921 | test -z "$ac_dir" && ac_dir=. | |
5922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5923 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5924 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5925 | (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 | |
5926 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5927 | break 2 | |
5928 | fi | |
5929 | fi | |
5930 | done | |
5931 | done | |
5932 | IFS="$ac_save_IFS" | |
5933 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5934 | ;; | |
5935 | esac | |
54dc6425 | 5936 | fi |
81ecdfbb RW |
5937 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5938 | if test "$XGETTEXT" != ":"; then | |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5940 | $as_echo "$XGETTEXT" >&6; } | |
5941 | else | |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5943 | $as_echo "no" >&6; } | |
0639a6f6 | 5944 | fi |
0639a6f6 | 5945 | |
81ecdfbb | 5946 | rm -f messages.po |
0639a6f6 ILT |
5947 | |
5948 | ||
81ecdfbb RW |
5949 | # Prepare PATH_SEPARATOR. |
5950 | # The user is always right. | |
5951 | if test "${PATH_SEPARATOR+set}" != set; then | |
5952 | echo "#! /bin/sh" >conf$$.sh | |
5953 | echo "exit 0" >>conf$$.sh | |
5954 | chmod +x conf$$.sh | |
5955 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5956 | PATH_SEPARATOR=';' | |
5957 | else | |
5958 | PATH_SEPARATOR=: | |
5959 | fi | |
5960 | rm -f conf$$.sh | |
0639a6f6 | 5961 | fi |
0639a6f6 | 5962 | |
81ecdfbb RW |
5963 | # Find out how to test for executable files. Don't use a zero-byte file, |
5964 | # as systems may use methods other than mode bits to determine executability. | |
5965 | cat >conf$$.file <<_ASEOF | |
5966 | #! /bin/sh | |
5967 | exit 0 | |
5968 | _ASEOF | |
5969 | chmod +x conf$$.file | |
5970 | if test -x conf$$.file >/dev/null 2>&1; then | |
5971 | ac_executable_p="test -x" | |
54dc6425 | 5972 | else |
81ecdfbb | 5973 | ac_executable_p="test -f" |
54dc6425 | 5974 | fi |
81ecdfbb | 5975 | rm -f conf$$.file |
54dc6425 | 5976 | |
81ecdfbb RW |
5977 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5978 | set dummy msgmerge; ac_word=$2 | |
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5980 | $as_echo_n "checking for $ac_word... " >&6; } | |
5981 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
5982 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5983 | else |
81ecdfbb RW |
5984 | case "$MSGMERGE" in |
5985 | [\\/]* | ?:[\\/]*) | |
5986 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5987 | ;; | |
5988 | *) | |
5989 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5990 | for ac_dir in $PATH; do | |
5991 | IFS="$ac_save_IFS" | |
5992 | test -z "$ac_dir" && ac_dir=. | |
5993 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5994 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5995 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5996 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5997 | break 2 | |
5998 | fi | |
5999 | fi | |
6000 | done | |
6001 | done | |
6002 | IFS="$ac_save_IFS" | |
6003 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6004 | ;; | |
6005 | esac | |
54dc6425 | 6006 | fi |
81ecdfbb RW |
6007 | MSGMERGE="$ac_cv_path_MSGMERGE" |
6008 | if test "$MSGMERGE" != ":"; then | |
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6010 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 6011 | else |
81ecdfbb RW |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6013 | $as_echo "no" >&6; } | |
6014 | fi | |
0639a6f6 | 6015 | |
54dc6425 | 6016 | |
81ecdfbb RW |
6017 | if test "$GMSGFMT" != ":"; then |
6018 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
6019 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6020 | : ; | |
6021 | else | |
6022 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
6024 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
6025 | GMSGFMT=":" | |
6026 | fi | |
6027 | fi | |
54dc6425 | 6028 | |
81ecdfbb RW |
6029 | if test "$XGETTEXT" != ":"; then |
6030 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
6031 | (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 | |
6032 | : ; | |
6033 | else | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
6035 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
6036 | XGETTEXT=":" | |
6037 | fi | |
6038 | rm -f messages.po | |
6039 | fi | |
54dc6425 | 6040 | |
81ecdfbb | 6041 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 6042 | |
54dc6425 ILT |
6043 | |
6044 | ||
81ecdfbb RW |
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6046 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
6047 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
6048 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 6049 | else |
81ecdfbb RW |
6050 | ac_cv_c_bigendian=unknown |
6051 | # See if we're dealing with a universal compiler. | |
6052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 6053 | /* end confdefs.h. */ |
81ecdfbb RW |
6054 | #ifndef __APPLE_CC__ |
6055 | not a universal capable compiler | |
6056 | #endif | |
6057 | typedef int dummy; | |
6058 | ||
6059 | _ACEOF | |
6060 | if ac_fn_c_try_compile "$LINENO"; then : | |
6061 | ||
6062 | # Check for potential -arch flags. It is not universal unless | |
6063 | # there are at least two -arch flags with different values. | |
6064 | ac_arch= | |
6065 | ac_prev= | |
6066 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6067 | if test -n "$ac_prev"; then | |
6068 | case $ac_word in | |
6069 | i?86 | x86_64 | ppc | ppc64) | |
6070 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6071 | ac_arch=$ac_word | |
6072 | else | |
6073 | ac_cv_c_bigendian=universal | |
6074 | break | |
6075 | fi | |
6076 | ;; | |
6077 | esac | |
6078 | ac_prev= | |
6079 | elif test "x$ac_word" = "x-arch"; then | |
6080 | ac_prev=arch | |
6081 | fi | |
6082 | done | |
6083 | fi | |
6084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6085 | if test $ac_cv_c_bigendian = unknown; then | |
6086 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6088 | /* end confdefs.h. */ | |
6089 | #include <sys/types.h> | |
6090 | #include <sys/param.h> | |
6091 | ||
0639a6f6 ILT |
6092 | int |
6093 | main () | |
6094 | { | |
81ecdfbb RW |
6095 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6096 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6097 | && LITTLE_ENDIAN) | |
6098 | bogus endian macros | |
6099 | #endif | |
54dc6425 | 6100 | |
81ecdfbb RW |
6101 | ; |
6102 | return 0; | |
6103 | } | |
15d5fa16 | 6104 | _ACEOF |
81ecdfbb RW |
6105 | if ac_fn_c_try_compile "$LINENO"; then : |
6106 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6108 | /* end confdefs.h. */ |
81ecdfbb RW |
6109 | #include <sys/types.h> |
6110 | #include <sys/param.h> | |
6111 | ||
0639a6f6 ILT |
6112 | int |
6113 | main () | |
6114 | { | |
81ecdfbb RW |
6115 | #if BYTE_ORDER != BIG_ENDIAN |
6116 | not big endian | |
6117 | #endif | |
0639a6f6 ILT |
6118 | |
6119 | ; | |
6120 | return 0; | |
6121 | } | |
15d5fa16 | 6122 | _ACEOF |
81ecdfbb RW |
6123 | if ac_fn_c_try_compile "$LINENO"; then : |
6124 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6125 | else |
81ecdfbb | 6126 | ac_cv_c_bigendian=no |
15d5fa16 | 6127 | fi |
81ecdfbb | 6128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 6129 | fi |
81ecdfbb RW |
6130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6131 | fi | |
6132 | if test $ac_cv_c_bigendian = unknown; then | |
6133 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6135 | /* end confdefs.h. */ | |
6136 | #include <limits.h> | |
0639a6f6 | 6137 | |
81ecdfbb RW |
6138 | int |
6139 | main () | |
6140 | { | |
6141 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6142 | bogus endian macros | |
6143 | #endif | |
0639a6f6 | 6144 | |
81ecdfbb RW |
6145 | ; |
6146 | return 0; | |
6147 | } | |
15d5fa16 | 6148 | _ACEOF |
81ecdfbb RW |
6149 | if ac_fn_c_try_compile "$LINENO"; then : |
6150 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6152 | /* end confdefs.h. */ |
81ecdfbb RW |
6153 | #include <limits.h> |
6154 | ||
0639a6f6 ILT |
6155 | int |
6156 | main () | |
6157 | { | |
81ecdfbb RW |
6158 | #ifndef _BIG_ENDIAN |
6159 | not big endian | |
6160 | #endif | |
0639a6f6 ILT |
6161 | |
6162 | ; | |
6163 | return 0; | |
6164 | } | |
15d5fa16 | 6165 | _ACEOF |
81ecdfbb RW |
6166 | if ac_fn_c_try_compile "$LINENO"; then : |
6167 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6168 | else |
81ecdfbb | 6169 | ac_cv_c_bigendian=no |
15d5fa16 | 6170 | fi |
81ecdfbb | 6171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 6172 | fi |
81ecdfbb RW |
6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6174 | fi | |
6175 | if test $ac_cv_c_bigendian = unknown; then | |
6176 | # Compile a test program. | |
6177 | if test "$cross_compiling" = yes; then : | |
6178 | # Try to guess by grepping values from an object file. | |
6179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6180 | /* end confdefs.h. */ | |
6181 | short int ascii_mm[] = | |
6182 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6183 | short int ascii_ii[] = | |
6184 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6185 | int use_ascii (int i) { | |
6186 | return ascii_mm[i] + ascii_ii[i]; | |
6187 | } | |
6188 | short int ebcdic_ii[] = | |
6189 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6190 | short int ebcdic_mm[] = | |
6191 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6192 | int use_ebcdic (int i) { | |
6193 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6194 | } | |
6195 | extern int foo; | |
15d5fa16 | 6196 | |
81ecdfbb RW |
6197 | int |
6198 | main () | |
6199 | { | |
6200 | return use_ascii (foo) == use_ebcdic (foo); | |
6201 | ; | |
6202 | return 0; | |
6203 | } | |
0639a6f6 | 6204 | _ACEOF |
81ecdfbb RW |
6205 | if ac_fn_c_try_compile "$LINENO"; then : |
6206 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6207 | ac_cv_c_bigendian=yes | |
6208 | fi | |
6209 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6210 | if test "$ac_cv_c_bigendian" = unknown; then | |
6211 | ac_cv_c_bigendian=no | |
6212 | else | |
6213 | # finding both strings is unlikely to happen, but who knows? | |
6214 | ac_cv_c_bigendian=unknown | |
6215 | fi | |
6216 | fi | |
54dc6425 | 6217 | fi |
81ecdfbb | 6218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6219 | else |
81ecdfbb | 6220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6221 | /* end confdefs.h. */ |
6222 | $ac_includes_default | |
0639a6f6 ILT |
6223 | int |
6224 | main () | |
6225 | { | |
81ecdfbb RW |
6226 | |
6227 | /* Are we little or big endian? From Harbison&Steele. */ | |
6228 | union | |
6229 | { | |
6230 | long int l; | |
6231 | char c[sizeof (long int)]; | |
6232 | } u; | |
6233 | u.l = 1; | |
6234 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6235 | |
6236 | ; | |
6237 | return 0; | |
6238 | } | |
54dc6425 | 6239 | _ACEOF |
81ecdfbb RW |
6240 | if ac_fn_c_try_run "$LINENO"; then : |
6241 | ac_cv_c_bigendian=no | |
54dc6425 | 6242 | else |
81ecdfbb | 6243 | ac_cv_c_bigendian=yes |
54dc6425 | 6244 | fi |
81ecdfbb RW |
6245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6246 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6247 | fi |
54dc6425 | 6248 | |
81ecdfbb RW |
6249 | fi |
6250 | fi | |
6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6252 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6253 | case $ac_cv_c_bigendian in #( | |
6254 | yes) | |
6255 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6256 | ;; #( | |
6257 | no) | |
6258 | ;; #( | |
6259 | universal) | |
6260 | ||
6261 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6262 | ||
6263 | ;; #( | |
6264 | *) | |
6265 | as_fn_error "unknown endianness | |
6266 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6267 | esac | |
0639a6f6 ILT |
6268 | |
6269 | ||
0639a6f6 ILT |
6270 | |
6271 | ||
81ecdfbb RW |
6272 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6273 | NATIVE_LINKER_TRUE= | |
6274 | NATIVE_LINKER_FALSE='#' | |
6275 | else | |
6276 | NATIVE_LINKER_TRUE='#' | |
6277 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6278 | fi |
6279 | ||
81ecdfbb RW |
6280 | if test "$GCC" = yes; then |
6281 | GCC_TRUE= | |
6282 | GCC_FALSE='#' | |
6283 | else | |
6284 | GCC_TRUE='#' | |
6285 | GCC_FALSE= | |
6286 | fi | |
0639a6f6 ILT |
6287 | |
6288 | ||
eb373049 ILT |
6289 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6290 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6291 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6292 | else | |
6293 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6294 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6295 | fi | |
6296 | ||
6297 | ||
328c7c2f ILT |
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
6299 | $as_echo_n "checking whether static linking works... " >&6; } | |
6300 | if test "${gold_cv_lib_static+set}" = set; then : | |
6301 | $as_echo_n "(cached) " >&6 | |
6302 | else | |
6303 | LDFLAGS_hold=$LDFLAGS | |
6304 | LDFLAGS="$LDFLAGS -static" | |
6305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6306 | /* end confdefs.h. */ | |
6307 | ||
6308 | void f() { } | |
6309 | int | |
6310 | main () | |
6311 | { | |
6312 | ||
6313 | ; | |
6314 | return 0; | |
6315 | } | |
6316 | _ACEOF | |
6317 | if ac_fn_c_try_link "$LINENO"; then : | |
6318 | gold_cv_lib_static=yes | |
6319 | else | |
6320 | gold_cv_lib_static=no | |
6321 | fi | |
6322 | rm -f core conftest.err conftest.$ac_objext \ | |
6323 | conftest$ac_exeext conftest.$ac_ext | |
dd7af074 | 6324 | LDFLAGS=$LDFLAGS_hold |
328c7c2f ILT |
6325 | fi |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 | |
6327 | $as_echo "$gold_cv_lib_static" >&6; } | |
6328 | if test "$gold_cv_lib_static" = "yes"; then | |
6329 | HAVE_STATIC_TRUE= | |
6330 | HAVE_STATIC_FALSE='#' | |
6331 | else | |
6332 | HAVE_STATIC_TRUE='#' | |
6333 | HAVE_STATIC_FALSE= | |
6334 | fi | |
6335 | ||
6336 | ||
81ecdfbb RW |
6337 | if |
6338 | case $target_cpu in | |
864a1b56 | 6339 | powerpc*) false;; |
81ecdfbb RW |
6340 | x86_64) false;; |
6341 | sparc64) false;; | |
e79a4bad | 6342 | s390x) false;; |
81ecdfbb RW |
6343 | *) true;; |
6344 | esac; then | |
6345 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6346 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6347 | else | |
6348 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6349 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6350 | fi | |
0639a6f6 ILT |
6351 | |
6352 | ||
084e2665 ILT |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6354 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6355 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6356 | $as_echo_n "(cached) " >&6 | |
6357 | else | |
6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6359 | /* end confdefs.h. */ | |
6360 | ||
6361 | #if !defined __GNUC__ | |
6362 | error | |
6363 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6364 | error | |
6365 | #endif | |
6366 | ||
6367 | _ACEOF | |
6368 | if ac_fn_c_try_compile "$LINENO"; then : | |
6369 | gold_cv_prog_gcc41=yes | |
6370 | else | |
6371 | gold_cv_prog_gcc41=no | |
6372 | fi | |
6373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6374 | fi | |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6376 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6377 | ||
24482ca0 L |
6378 | save_CFLAGS="$CFLAGS" |
6379 | CFLAGS="$CFLAGS -mcmodel=medium" | |
6380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6381 | /* end confdefs.h. */ | |
6382 | int i; | |
6383 | _ACEOF | |
6384 | if ac_fn_c_try_compile "$LINENO"; then : | |
6385 | have_mcmodel_medium=yes | |
6386 | else | |
6387 | have_mcmodel_medium=no | |
6388 | fi | |
6389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6390 | CFLAGS="$save_CFLAGS" | |
6391 | if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6392 | MCMODEL_MEDIUM_TRUE= |
6393 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6394 | else |
81ecdfbb RW |
6395 | MCMODEL_MEDIUM_TRUE='#' |
6396 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6397 | fi |
54dc6425 | 6398 | |
54dc6425 | 6399 | |
2b64b551 RM |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 |
6401 | $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } | |
6402 | if test "${gold_cv_merge_constants+set}" = set; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
6404 | else | |
6405 | ||
6406 | save_CFLAGS="$CFLAGS" | |
6407 | CFLAGS="$CFLAGS -fmerge-constants" | |
6408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6409 | /* end confdefs.h. */ | |
6410 | const char *s = "foo"; | |
6411 | _ACEOF | |
6412 | if ac_fn_c_try_compile "$LINENO"; then : | |
2500c017 | 6413 | gold_cv_merge_constants=yes |
2b64b551 | 6414 | else |
2500c017 | 6415 | gold_cv_merge_constants=no |
2b64b551 RM |
6416 | fi |
6417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6418 | CFLAGS="$save_CFLAGS" | |
6419 | fi | |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 | |
6421 | $as_echo "$gold_cv_merge_constants" >&6; } | |
6422 | ||
6423 | if test "$gold_cv_merge_constants" = yes; then : | |
6424 | MERGE_CONSTANTS_FLAG=-fmerge-constants | |
6425 | else | |
6426 | MERGE_CONSTANTS_FLAG= | |
6427 | fi | |
6428 | ||
81ecdfbb RW |
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6430 | $as_echo_n "checking for thread support... " >&6; } | |
6431 | if test "${gold_cv_c_thread+set}" = set; then : | |
6432 | $as_echo_n "(cached) " >&6 | |
6433 | else | |
6434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6435 | /* end confdefs.h. */ |
81ecdfbb | 6436 | __thread int i = 1; |
e44fcf3b | 6437 | _ACEOF |
81ecdfbb RW |
6438 | if ac_fn_c_try_compile "$LINENO"; then : |
6439 | gold_cv_c_thread=yes | |
0639a6f6 | 6440 | else |
81ecdfbb | 6441 | gold_cv_c_thread=no |
0639a6f6 | 6442 | fi |
81ecdfbb | 6443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6444 | fi |
81ecdfbb RW |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6446 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6447 | |
81ecdfbb RW |
6448 | if test "$gold_cv_c_thread" = "yes"; then |
6449 | TLS_TRUE= | |
6450 | TLS_FALSE='#' | |
6451 | else | |
6452 | TLS_TRUE='#' | |
6453 | TLS_FALSE= | |
0639a6f6 | 6454 | fi |
e44fcf3b | 6455 | |
0639a6f6 | 6456 | |
81ecdfbb RW |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6458 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6459 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6460 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6461 | else |
81ecdfbb | 6462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6463 | /* end confdefs.h. */ |
81ecdfbb RW |
6464 | |
6465 | #include <features.h> | |
6466 | #if !defined __GLIBC__ | |
6467 | error | |
6468 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6469 | error | |
1b77ea50 | 6470 | #endif |
81ecdfbb | 6471 | |
1b77ea50 | 6472 | _ACEOF |
81ecdfbb RW |
6473 | if ac_fn_c_try_compile "$LINENO"; then : |
6474 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6475 | else |
81ecdfbb | 6476 | gold_cv_lib_glibc24=no |
0639a6f6 | 6477 | fi |
81ecdfbb | 6478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6479 | fi |
81ecdfbb RW |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6481 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6482 | |
81ecdfbb RW |
6483 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6484 | STATIC_TLS_TRUE= | |
6485 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6486 | else |
81ecdfbb RW |
6487 | STATIC_TLS_TRUE='#' |
6488 | STATIC_TLS_FALSE= | |
0639a6f6 | 6489 | fi |
1b77ea50 | 6490 | |
0639a6f6 | 6491 | |
81ecdfbb RW |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6493 | $as_echo_n "checking for omp support... " >&6; } | |
6494 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6495 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6496 | else |
81ecdfbb RW |
6497 | save_CFLAGS="$CFLAGS" |
6498 | CFLAGS="$CFLAGS -fopenmp" | |
6499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6500 | /* end confdefs.h. */ | |
1b77ea50 | 6501 | |
81ecdfbb RW |
6502 | #include <omp.h> |
6503 | int i; | |
6504 | #pragma omp threadprivate (i) | |
1b77ea50 | 6505 | |
81ecdfbb RW |
6506 | _ACEOF |
6507 | if ac_fn_c_try_compile "$LINENO"; then : | |
6508 | gold_cv_c_threadprivate=yes | |
6509 | else | |
6510 | gold_cv_c_threadprivate=no | |
6511 | fi | |
6512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6513 | CFLAGS="$save_CFLAGS" | |
6514 | fi | |
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6516 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6517 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6518 | |
81ecdfbb | 6519 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6520 | |
0639a6f6 | 6521 | fi |
81ecdfbb RW |
6522 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6523 | OMP_SUPPORT_TRUE= | |
6524 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6525 | else |
81ecdfbb RW |
6526 | OMP_SUPPORT_TRUE='#' |
6527 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6528 | fi |
1b77ea50 | 6529 | |
81ecdfbb RW |
6530 | |
6531 | save_CFLAGS="$CFLAGS" | |
13323c49 | 6532 | CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" |
81ecdfbb | 6533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0639a6f6 | 6534 | /* end confdefs.h. */ |
63887f3d L |
6535 | |
6536 | __thread int i; | |
6537 | void foo (void) | |
6538 | { | |
6539 | i = 10; | |
6540 | } | |
6541 | ||
1b77ea50 | 6542 | _ACEOF |
81ecdfbb RW |
6543 | if ac_fn_c_try_compile "$LINENO"; then : |
6544 | have_tls_gnu2=yes | |
0639a6f6 | 6545 | else |
81ecdfbb | 6546 | have_tls_gnu2=no |
0639a6f6 | 6547 | fi |
81ecdfbb RW |
6548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6549 | CFLAGS="$save_CFLAGS" | |
6550 | if test "$have_tls_gnu2" = "yes"; then | |
6551 | TLS_GNU2_DIALECT_TRUE= | |
6552 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6553 | else |
81ecdfbb RW |
6554 | TLS_GNU2_DIALECT_TRUE='#' |
6555 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6556 | fi |
1b77ea50 | 6557 | |
81ecdfbb RW |
6558 | |
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6560 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6561 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6562 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6563 | else |
81ecdfbb RW |
6564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6565 | /* end confdefs.h. */ | |
0639a6f6 | 6566 | |
81ecdfbb RW |
6567 | #include <features.h> |
6568 | #if !defined __GLIBC__ | |
6569 | error | |
6570 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6571 | error | |
6572 | #endif | |
1b77ea50 | 6573 | |
81ecdfbb RW |
6574 | _ACEOF |
6575 | if ac_fn_c_try_compile "$LINENO"; then : | |
6576 | gold_cv_lib_glibc29=yes | |
6577 | else | |
6578 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6579 | fi |
81ecdfbb RW |
6580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6581 | fi | |
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6583 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6584 | |
81ecdfbb RW |
6585 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6586 | TLS_DESCRIPTORS_TRUE= | |
6587 | TLS_DESCRIPTORS_FALSE='#' | |
6588 | else | |
6589 | TLS_DESCRIPTORS_TRUE='#' | |
6590 | TLS_DESCRIPTORS_FALSE= | |
6591 | fi | |
0639a6f6 ILT |
6592 | |
6593 | ||
81ecdfbb RW |
6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6595 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6596 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6597 | $as_echo_n "(cached) " >&6 | |
6598 | else | |
6599 | save_CFLAGS="$CFLAGS" | |
6600 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6602 | /* end confdefs.h. */ |
81ecdfbb | 6603 | int i; |
0639a6f6 | 6604 | _ACEOF |
81ecdfbb RW |
6605 | if ac_fn_c_try_compile "$LINENO"; then : |
6606 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6607 | else |
81ecdfbb RW |
6608 | gold_cv_c_random_seed=no |
6609 | fi | |
6610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6611 | CFLAGS="$save_CFLAGS" | |
6612 | fi | |
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6614 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6615 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6616 | # In Makefile, '$@' will be expanded to be the name of the file | |
6617 | # being built, providing a unique seed for each file. | |
6618 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6619 | fi |
1b77ea50 | 6620 | |
81ecdfbb | 6621 | |
ebb300b2 CC |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
6623 | $as_echo_n "checking for glibc ifunc support... " >&6; } | |
6624 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : | |
7223e9ca ILT |
6625 | $as_echo_n "(cached) " >&6 |
6626 | else | |
ebb300b2 CC |
6627 | save_LDFLAGS="$LDFLAGS" |
6628 | LDFLAGS="$LDFLAGS -static" | |
6629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7223e9ca ILT |
6630 | /* end confdefs.h. */ |
6631 | ||
6632 | #include <features.h> | |
6633 | #if !defined __GLIBC__ | |
6634 | error | |
6635 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6636 | error | |
6637 | #endif | |
ebb300b2 CC |
6638 | void func (void) { } |
6639 | void invoke (void); | |
6640 | __asm__(".type invoke, %gnu_indirect_function"); | |
6641 | typedef void (*funcptr) (void); | |
6642 | funcptr dispatch (void) __asm__ ("invoke"); | |
6643 | funcptr dispatch (void) { return &func; } | |
6644 | int | |
6645 | main () | |
6646 | { | |
6647 | invoke(); | |
6648 | ; | |
6649 | return 0; | |
6650 | } | |
7223e9ca ILT |
6651 | |
6652 | _ACEOF | |
ebb300b2 CC |
6653 | if ac_fn_c_try_link "$LINENO"; then : |
6654 | ||
6655 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then | |
6656 | gold_cv_lib_glibc_ifunc=both | |
7223e9ca | 6657 | else |
ebb300b2 | 6658 | gold_cv_lib_glibc_ifunc=dyn |
7223e9ca | 6659 | fi |
ebb300b2 CC |
6660 | else |
6661 | gold_cv_lib_glibc_ifunc=no | |
6662 | fi | |
6663 | rm -f core conftest.err conftest.$ac_objext \ | |
6664 | conftest$ac_exeext conftest.$ac_ext | |
6665 | LDFLAGS="$save_LDFLAGS" | |
7223e9ca | 6666 | fi |
ebb300b2 CC |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
6668 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } | |
7223e9ca | 6669 | |
ebb300b2 | 6670 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
7223e9ca ILT |
6671 | IFUNC_TRUE= |
6672 | IFUNC_FALSE='#' | |
6673 | else | |
6674 | IFUNC_TRUE='#' | |
6675 | IFUNC_FALSE= | |
6676 | fi | |
6677 | ||
ebb300b2 CC |
6678 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
6679 | IFUNC_STATIC_TRUE= | |
6680 | IFUNC_STATIC_FALSE='#' | |
6681 | else | |
6682 | IFUNC_STATIC_TRUE='#' | |
6683 | IFUNC_STATIC_FALSE= | |
6684 | fi | |
6685 | ||
7223e9ca | 6686 | |
81ecdfbb | 6687 | |
270c9937 JB |
6688 | # Set the 'development' global. |
6689 | . $srcdir/../bfd/development.sh | |
6690 | ||
9780e045 | 6691 | # Default set of GCC warnings to enable. |
efc8d4f2 | 6692 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
6693 | |
6694 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
efc8d4f2 RW |
6695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6696 | /* end confdefs.h. */ | |
6697 | __GNUC__ | |
6698 | _ACEOF | |
6699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6700 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6701 | ||
6702 | else | |
6703 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6704 | fi | |
6705 | rm -f conftest* | |
6706 | ||
81ecdfbb | 6707 | |
9780e045 NC |
6708 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6710 | /* end confdefs.h. */ | |
6711 | __GNUC__ | |
6712 | _ACEOF | |
6713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6714 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : | |
6715 | ||
6716 | else | |
6717 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
6718 | fi | |
6719 | rm -f conftest* | |
6720 | ||
6721 | ||
6757cf57 TS |
6722 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
6723 | WARN_WRITE_STRINGS="" | |
6724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6725 | /* end confdefs.h. */ | |
6726 | __GNUC__ | |
6727 | _ACEOF | |
6728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6729 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6730 | ||
6731 | else | |
6732 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
6733 | fi | |
6734 | rm -f conftest* | |
6735 | ||
9780e045 | 6736 | |
81ecdfbb RW |
6737 | # Check whether --enable-werror was given. |
6738 | if test "${enable_werror+set}" = set; then : | |
6739 | enableval=$enable_werror; case "${enableval}" in | |
6740 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6741 | no | n) ERROR_ON_WARNING="no" ;; | |
6742 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6743 | esac | |
0639a6f6 | 6744 | fi |
1b77ea50 | 6745 | |
81ecdfbb | 6746 | |
efc8d4f2 | 6747 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6748 | case "${host}" in |
6749 | *-*-mingw32*) | |
6750 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6751 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6752 | fi | |
0639a6f6 | 6753 | ;; |
81ecdfbb | 6754 | *) ;; |
0639a6f6 | 6755 | esac |
81ecdfbb | 6756 | |
270c9937 JB |
6757 | # Enable -Werror by default when using gcc. Turn it off for releases. |
6758 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
81ecdfbb | 6759 | ERROR_ON_WARNING=yes |
0639a6f6 | 6760 | fi |
0639a6f6 | 6761 | |
81ecdfbb RW |
6762 | NO_WERROR= |
6763 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 6764 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
81ecdfbb | 6765 | NO_WERROR="-Wno-error" |
0639a6f6 | 6766 | fi |
1b77ea50 | 6767 | |
81ecdfbb RW |
6768 | if test "${GCC}" = yes ; then |
6769 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6770 | fi |
6771 | ||
81ecdfbb RW |
6772 | # Check whether --enable-build-warnings was given. |
6773 | if test "${enable_build_warnings+set}" = set; then : | |
6774 | enableval=$enable_build_warnings; case "${enableval}" in | |
6775 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6776 | no) if test "${GCC}" = yes ; then | |
6777 | WARN_CFLAGS="-w" | |
6778 | fi;; | |
6779 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6780 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6781 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6782 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6783 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6784 | esac | |
6785 | fi | |
0639a6f6 | 6786 | |
1b77ea50 | 6787 | |
81ecdfbb RW |
6788 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6789 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6790 | fi |
1b77ea50 | 6791 | |
1b77ea50 | 6792 | |
1b77ea50 | 6793 | |
0639a6f6 | 6794 | |
1b77ea50 | 6795 | |
6757cf57 | 6796 | |
2ea97941 | 6797 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6798 | |
6799 | ||
dc87f620 ILT |
6800 | |
6801 | # Check whether --with-gold-ldflags was given. | |
6802 | if test "${with_gold_ldflags+set}" = set; then : | |
6803 | withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6804 | GOLD_LDFLAGS= | |
6805 | else | |
6806 | GOLD_LDFLAGS=$withval | |
6807 | fi | |
6808 | else | |
6809 | GOLD_LDFLAGS= | |
6810 | fi | |
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | # Check whether --with-gold-ldadd was given. | |
6816 | if test "${with_gold_ldadd+set}" = set; then : | |
6817 | withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6818 | GOLD_LDADD= | |
6819 | else | |
6820 | GOLD_LDADD=$withval | |
6821 | fi | |
6822 | else | |
6823 | GOLD_LDADD= | |
6824 | fi | |
6825 | ||
6826 | ||
6827 | ||
81ecdfbb RW |
6828 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
6829 | ||
6830 | ||
88597d34 | 6831 | for ac_header in sys/mman.h |
81ecdfbb | 6832 | do : |
88597d34 ILT |
6833 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6834 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6835 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6836 | #define HAVE_SYS_MMAN_H 1 |
6837 | _ACEOF | |
6838 | ||
6839 | fi | |
6840 | ||
6841 | done | |
6842 | ||
6843 | for ac_func in chsize mmap | |
6844 | do : | |
6845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6846 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6847 | eval as_val=\$$as_ac_var | |
6848 | if test "x$as_val" = x""yes; then : | |
6849 | cat >>confdefs.h <<_ACEOF | |
6850 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6851 | _ACEOF |
6852 | ||
0639a6f6 | 6853 | fi |
0639a6f6 | 6854 | done |
1b77ea50 | 6855 | |
88597d34 | 6856 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6857 | do : |
6858 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6859 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6860 | eval as_val=\$$as_ac_var | |
6861 | if test "x$as_val" = x""yes; then : | |
6862 | cat >>confdefs.h <<_ACEOF | |
6863 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6864 | _ACEOF |
0639a6f6 | 6865 | |
81ecdfbb RW |
6866 | else |
6867 | case " $LIBOBJS " in | |
6868 | *" $ac_func.$ac_objext "* ) ;; | |
6869 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6870 | ;; | |
6871 | esac | |
0639a6f6 | 6872 | |
81ecdfbb RW |
6873 | fi |
6874 | done | |
0639a6f6 | 6875 | |
0639a6f6 | 6876 | |
81ecdfbb | 6877 | |
88597d34 ILT |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6879 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6880 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6881 | $as_echo_n "(cached) " >&6 | |
6882 | else | |
6883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6884 | /* end confdefs.h. */ | |
6885 | ||
6886 | ||
6887 | #include <sys/mman.h> | |
6888 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6889 | ||
6890 | int | |
6891 | main () | |
6892 | { | |
6893 | ||
6894 | ; | |
6895 | return 0; | |
6896 | } | |
6897 | _ACEOF | |
6898 | if ac_fn_c_try_link "$LINENO"; then : | |
6899 | gold_cv_lib_mremap_maymove=yes | |
6900 | else | |
6901 | gold_cv_lib_mremap_maymove=no | |
6902 | fi | |
6903 | rm -f core conftest.err conftest.$ac_objext \ | |
6904 | conftest$ac_exeext conftest.$ac_ext | |
6905 | fi | |
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6907 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6908 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6909 | ||
6910 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6911 | ||
6912 | else | |
6913 | case " $LIBOBJS " in | |
6914 | *" mremap.$ac_objext "* ) ;; | |
6915 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6916 | ;; | |
6917 | esac | |
6918 | ||
6919 | fi | |
6920 | ||
81ecdfbb | 6921 | # Link in zlib if we can. This allows us to write compressed sections. |
ae2eea65 | 6922 | |
918357b9 | 6923 | # Use the system's zlib library. |
39f3de7c L |
6924 | zlibdir="-L\$(top_builddir)/../zlib" |
6925 | zlibinc="-I\$(top_srcdir)/../zlib" | |
ae2eea65 | 6926 | |
918357b9 L |
6927 | # Check whether --with-system-zlib was given. |
6928 | if test "${with_system_zlib+set}" = set; then : | |
6929 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
6930 | zlibdir= | |
6931 | zlibinc= | |
81ecdfbb | 6932 | fi |
1b77ea50 | 6933 | |
1b77ea50 | 6934 | fi |
1b77ea50 | 6935 | |
81ecdfbb | 6936 | |
1b77ea50 | 6937 | |
81ecdfbb RW |
6938 | |
6939 | ||
6940 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6941 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6942 | ac_have_decl=1 | |
6943 | else | |
6944 | ac_have_decl=0 | |
3d857b98 | 6945 | fi |
3d857b98 DK |
6946 | |
6947 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6948 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6949 | _ACEOF |
81ecdfbb RW |
6950 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6951 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6952 | ac_have_decl=1 | |
3d857b98 | 6953 | else |
81ecdfbb | 6954 | ac_have_decl=0 |
3d857b98 | 6955 | fi |
3d857b98 | 6956 | |
81ecdfbb RW |
6957 | cat >>confdefs.h <<_ACEOF |
6958 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6959 | _ACEOF |
81ecdfbb RW |
6960 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6961 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6962 | ac_have_decl=1 | |
3d857b98 | 6963 | else |
81ecdfbb | 6964 | ac_have_decl=0 |
3d857b98 | 6965 | fi |
3d857b98 DK |
6966 | |
6967 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6968 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6969 | _ACEOF |
81ecdfbb RW |
6970 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6971 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6972 | ac_have_decl=1 | |
3d857b98 | 6973 | else |
81ecdfbb | 6974 | ac_have_decl=0 |
3d857b98 | 6975 | fi |
3d857b98 | 6976 | |
81ecdfbb RW |
6977 | cat >>confdefs.h <<_ACEOF |
6978 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 6979 | _ACEOF |
81ecdfbb RW |
6980 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
6981 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6982 | ac_have_decl=1 | |
3d857b98 | 6983 | else |
81ecdfbb RW |
6984 | ac_have_decl=0 |
6985 | fi | |
3d857b98 | 6986 | |
81ecdfbb RW |
6987 | cat >>confdefs.h <<_ACEOF |
6988 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6989 | _ACEOF | |
6990 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6991 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6992 | ac_have_decl=1 | |
6993 | else | |
6994 | ac_have_decl=0 | |
3d857b98 | 6995 | fi |
81ecdfbb RW |
6996 | |
6997 | cat >>confdefs.h <<_ACEOF | |
6998 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6999 | _ACEOF | |
7000 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
7001 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7002 | ac_have_decl=1 | |
7003 | else | |
7004 | ac_have_decl=0 | |
3d857b98 | 7005 | fi |
3d857b98 DK |
7006 | |
7007 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7008 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
7009 | _ACEOF |
7010 | ||
7011 | ||
ae447ddd CC |
7012 | save_CFLAGS="$CFLAGS" |
7013 | CFLAGS="$CFLAGS -Werror -gpubnames" | |
7014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7015 | /* end confdefs.h. */ | |
7016 | int i; | |
7017 | _ACEOF | |
7018 | if ac_fn_c_try_compile "$LINENO"; then : | |
7019 | have_pubnames=yes | |
7020 | else | |
7021 | have_pubnames=no | |
7022 | fi | |
7023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7024 | CFLAGS="$save_CFLAGS" | |
7025 | if test "$have_pubnames" = "yes"; then | |
7026 | HAVE_PUBNAMES_TRUE= | |
7027 | HAVE_PUBNAMES_FALSE='#' | |
7028 | else | |
7029 | HAVE_PUBNAMES_TRUE='#' | |
7030 | HAVE_PUBNAMES_FALSE= | |
7031 | fi | |
7032 | ||
7033 | ||
7034 | save_CFLAGS="$CFLAGS" | |
7035 | CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin" | |
7036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7037 | /* end confdefs.h. */ | |
7038 | int i; | |
7039 | _ACEOF | |
7040 | if ac_fn_c_try_compile "$LINENO"; then : | |
7041 | have_no_use_linker_plugin=yes | |
7042 | else | |
7043 | have_no_use_linker_plugin=no | |
7044 | fi | |
7045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7046 | CFLAGS="$save_CFLAGS" | |
7047 | if test "$have_no_use_linker_plugin" = "yes"; then | |
7048 | HAVE_NO_USE_LINKER_PLUGIN_TRUE= | |
7049 | HAVE_NO_USE_LINKER_PLUGIN_FALSE='#' | |
7050 | else | |
7051 | HAVE_NO_USE_LINKER_PLUGIN_TRUE='#' | |
7052 | HAVE_NO_USE_LINKER_PLUGIN_FALSE= | |
7053 | fi | |
7054 | ||
7055 | ||
81ecdfbb RW |
7056 | ac_ext=cpp |
7057 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
7061 | |
7062 | ||
81ecdfbb RW |
7063 | |
7064 | ac_ext=cpp | |
7065 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7066 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7067 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7068 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
7070 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
7071 | if test -z "$CXXCPP"; then | |
7072 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
7073 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 7074 | else |
81ecdfbb RW |
7075 | # Double quotes because CXXCPP needs to be expanded |
7076 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7077 | do | |
7078 | ac_preproc_ok=false | |
7079 | for ac_cxx_preproc_warn_flag in '' yes | |
7080 | do | |
7081 | # Use a header file that comes with gcc, so configuring glibc | |
7082 | # with a fresh cross-compiler works. | |
7083 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7084 | # <limits.h> exists even on freestanding compilers. | |
7085 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7086 | # not just through cpp. "Syntax error" is here to catch this case. | |
7087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7088 | /* end confdefs.h. */ |
81ecdfbb RW |
7089 | #ifdef __STDC__ |
7090 | # include <limits.h> | |
7091 | #else | |
7092 | # include <assert.h> | |
3d857b98 | 7093 | #endif |
81ecdfbb | 7094 | Syntax error |
3d857b98 | 7095 | _ACEOF |
81ecdfbb | 7096 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7097 | |
81ecdfbb RW |
7098 | else |
7099 | # Broken: fails on valid input. | |
7100 | continue | |
3d857b98 | 7101 | fi |
81ecdfbb | 7102 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7103 | |
81ecdfbb RW |
7104 | # OK, works on sane cases. Now check whether nonexistent headers |
7105 | # can be detected and how. | |
7106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7107 | /* end confdefs.h. */ | |
7108 | #include <ac_nonexistent.h> | |
3d857b98 | 7109 | _ACEOF |
81ecdfbb RW |
7110 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7111 | # Broken: success on invalid input. | |
7112 | continue | |
3d857b98 | 7113 | else |
81ecdfbb RW |
7114 | # Passes both tests. |
7115 | ac_preproc_ok=: | |
7116 | break | |
7117 | fi | |
7118 | rm -f conftest.err conftest.$ac_ext | |
7119 | ||
7120 | done | |
7121 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7122 | rm -f conftest.err conftest.$ac_ext | |
7123 | if $ac_preproc_ok; then : | |
7124 | break | |
7125 | fi | |
3d857b98 | 7126 | |
81ecdfbb RW |
7127 | done |
7128 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
7129 | |
7130 | fi | |
81ecdfbb | 7131 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 7132 | else |
81ecdfbb RW |
7133 | ac_cv_prog_CXXCPP=$CXXCPP |
7134 | fi | |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
7136 | $as_echo "$CXXCPP" >&6; } | |
7137 | ac_preproc_ok=false | |
7138 | for ac_cxx_preproc_warn_flag in '' yes | |
7139 | do | |
7140 | # Use a header file that comes with gcc, so configuring glibc | |
7141 | # with a fresh cross-compiler works. | |
7142 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7143 | # <limits.h> exists even on freestanding compilers. | |
7144 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7145 | # not just through cpp. "Syntax error" is here to catch this case. | |
7146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7147 | /* end confdefs.h. */ |
81ecdfbb RW |
7148 | #ifdef __STDC__ |
7149 | # include <limits.h> | |
7150 | #else | |
7151 | # include <assert.h> | |
3d857b98 | 7152 | #endif |
81ecdfbb | 7153 | Syntax error |
3d857b98 | 7154 | _ACEOF |
81ecdfbb | 7155 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7156 | |
81ecdfbb RW |
7157 | else |
7158 | # Broken: fails on valid input. | |
7159 | continue | |
3d857b98 | 7160 | fi |
81ecdfbb | 7161 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7162 | |
81ecdfbb RW |
7163 | # OK, works on sane cases. Now check whether nonexistent headers |
7164 | # can be detected and how. | |
7165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7166 | /* end confdefs.h. */ | |
7167 | #include <ac_nonexistent.h> | |
3d857b98 | 7168 | _ACEOF |
81ecdfbb RW |
7169 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7170 | # Broken: success on invalid input. | |
7171 | continue | |
7172 | else | |
7173 | # Passes both tests. | |
7174 | ac_preproc_ok=: | |
7175 | break | |
7176 | fi | |
7177 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 7178 | |
81ecdfbb RW |
7179 | done |
7180 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7181 | rm -f conftest.err conftest.$ac_ext | |
7182 | if $ac_preproc_ok; then : | |
3d857b98 DK |
7183 | |
7184 | else | |
81ecdfbb RW |
7185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7187 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
7188 | See \`config.log' for more details." "$LINENO" 5; } | |
7189 | fi | |
7190 | ||
7191 | ac_ext=cpp | |
7192 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7193 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7194 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7195 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7196 | ||
7197 | ||
8356f2d0 CC |
7198 | for ac_header in unordered_set unordered_map |
7199 | do : | |
7200 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7201 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7202 | eval as_val=\$$as_ac_Header | |
7203 | if test "x$as_val" = x""yes; then : | |
7204 | cat >>confdefs.h <<_ACEOF | |
7205 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7206 | _ACEOF | |
7207 | ||
7208 | fi | |
7209 | ||
7210 | done | |
7211 | ||
81ecdfbb RW |
7212 | for ac_header in tr1/unordered_set tr1/unordered_map |
7213 | do : | |
7214 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7215 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7216 | eval as_val=\$$as_ac_Header | |
7217 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7218 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7219 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
7220 | _ACEOF |
7221 | ||
3d857b98 | 7222 | fi |
3d857b98 | 7223 | |
81ecdfbb RW |
7224 | done |
7225 | ||
7226 | for ac_header in ext/hash_map ext/hash_set | |
7227 | do : | |
7228 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7229 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7230 | eval as_val=\$$as_ac_Header | |
7231 | if test "x$as_val" = x""yes; then : | |
7232 | cat >>confdefs.h <<_ACEOF | |
7233 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7234 | _ACEOF | |
3d857b98 | 7235 | |
3d857b98 | 7236 | fi |
3d857b98 | 7237 | |
81ecdfbb RW |
7238 | done |
7239 | ||
7240 | for ac_header in byteswap.h | |
7241 | do : | |
7242 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
7243 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
7244 | cat >>confdefs.h <<_ACEOF | |
7245 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
7246 | _ACEOF |
7247 | ||
81ecdfbb | 7248 | fi |
3d857b98 | 7249 | |
81ecdfbb RW |
7250 | done |
7251 | ||
0bf402d5 ILT |
7252 | |
7253 | for ac_header in windows.h | |
7254 | do : | |
7255 | ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
7256 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
7257 | cat >>confdefs.h <<_ACEOF | |
7258 | #define HAVE_WINDOWS_H 1 | |
7259 | _ACEOF | |
7260 | ||
7261 | fi | |
7262 | ||
7263 | done | |
7264 | ||
7265 | for ac_header in dlfcn.h | |
7266 | do : | |
7267 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
7268 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7269 | cat >>confdefs.h <<_ACEOF | |
7270 | #define HAVE_DLFCN_H 1 | |
7271 | _ACEOF | |
6632e8cc | 7272 | |
0bf402d5 ILT |
7273 | fi |
7274 | ||
7275 | done | |
7276 | ||
6632e8cc CC |
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
7278 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
7279 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7280 | $as_echo_n "(cached) " >&6 | |
7281 | else | |
7282 | ac_func_search_save_LIBS=$LIBS | |
7283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7284 | /* end confdefs.h. */ | |
7285 | ||
7286 | /* Override any GCC internal prototype to avoid an error. | |
7287 | Use char because int might match the return type of a GCC | |
7288 | builtin and then its argument prototype would still apply. */ | |
7289 | #ifdef __cplusplus | |
7290 | extern "C" | |
7291 | #endif | |
7292 | char dlopen (); | |
7293 | int | |
7294 | main () | |
7295 | { | |
7296 | return dlopen (); | |
7297 | ; | |
7298 | return 0; | |
7299 | } | |
7300 | _ACEOF | |
7301 | for ac_lib in '' dl dld; do | |
7302 | if test -z "$ac_lib"; then | |
7303 | ac_res="none required" | |
7304 | else | |
7305 | ac_res=-l$ac_lib | |
7306 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7307 | fi | |
7308 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7309 | ac_cv_search_dlopen=$ac_res | |
7310 | fi | |
7311 | rm -f core conftest.err conftest.$ac_objext \ | |
7312 | conftest$ac_exeext | |
7313 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7314 | break | |
7315 | fi | |
7316 | done | |
7317 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7318 | ||
7319 | else | |
7320 | ac_cv_search_dlopen=no | |
7321 | fi | |
7322 | rm conftest.$ac_ext | |
7323 | LIBS=$ac_func_search_save_LIBS | |
7324 | fi | |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
7326 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
7327 | ac_res=$ac_cv_search_dlopen | |
7328 | if test "$ac_res" != no; then : | |
7329 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7330 | ||
7331 | fi | |
7332 | ||
7333 | case "$ac_cv_search_dlopen" in | |
7334 | no*) DLOPEN_LIBS="";; | |
7335 | *) DLOPEN_LIBS="$ac_cv_search_dlopen";; | |
7336 | esac | |
0bf402d5 ILT |
7337 | |
7338 | ||
7c0640fa | 7339 | for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |
81ecdfbb RW |
7340 | do : |
7341 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7342 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7343 | eval as_val=\$$as_ac_var | |
7344 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7345 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7346 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
7347 | _ACEOF |
7348 | ||
3d857b98 | 7349 | fi |
81ecdfbb RW |
7350 | done |
7351 | ||
7352 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
7353 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
7354 | ac_have_decl=1 | |
3d857b98 | 7355 | else |
81ecdfbb RW |
7356 | ac_have_decl=0 |
7357 | fi | |
3d857b98 | 7358 | |
81ecdfbb RW |
7359 | cat >>confdefs.h <<_ACEOF |
7360 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 7361 | _ACEOF |
81ecdfbb RW |
7362 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
7363 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
7364 | ac_have_decl=1 | |
3d857b98 | 7365 | else |
81ecdfbb | 7366 | ac_have_decl=0 |
3d857b98 | 7367 | fi |
3d857b98 DK |
7368 | |
7369 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7370 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 7371 | _ACEOF |
81ecdfbb RW |
7372 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
7373 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
7374 | ac_have_decl=1 | |
3d857b98 | 7375 | else |
81ecdfbb | 7376 | ac_have_decl=0 |
3d857b98 | 7377 | fi |
3d857b98 | 7378 | |
81ecdfbb RW |
7379 | cat >>confdefs.h <<_ACEOF |
7380 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 7381 | _ACEOF |
81ecdfbb RW |
7382 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
7383 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
7384 | ac_have_decl=1 | |
3d857b98 | 7385 | else |
81ecdfbb | 7386 | ac_have_decl=0 |
3d857b98 | 7387 | fi |
3d857b98 DK |
7388 | |
7389 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7390 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 7391 | _ACEOF |
81ecdfbb RW |
7392 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7393 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7394 | ac_have_decl=1 | |
3d857b98 | 7395 | else |
81ecdfbb | 7396 | ac_have_decl=0 |
3d857b98 | 7397 | fi |
3d857b98 | 7398 | |
81ecdfbb RW |
7399 | cat >>confdefs.h <<_ACEOF |
7400 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 7401 | _ACEOF |
81ecdfbb RW |
7402 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
7403 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7404 | ac_have_decl=1 | |
3d857b98 | 7405 | else |
81ecdfbb | 7406 | ac_have_decl=0 |
3d857b98 | 7407 | fi |
3d857b98 DK |
7408 | |
7409 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7410 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 7411 | _ACEOF |
81ecdfbb RW |
7412 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
7413 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7414 | ac_have_decl=1 | |
3d857b98 | 7415 | else |
81ecdfbb RW |
7416 | ac_have_decl=0 |
7417 | fi | |
3d857b98 | 7418 | |
81ecdfbb RW |
7419 | cat >>confdefs.h <<_ACEOF |
7420 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
7421 | _ACEOF | |
7422 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
7423 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
7424 | ac_have_decl=1 | |
7425 | else | |
7426 | ac_have_decl=0 | |
7427 | fi | |
3d857b98 | 7428 | |
81ecdfbb RW |
7429 | cat >>confdefs.h <<_ACEOF |
7430 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
7431 | _ACEOF | |
7432 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
7433 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
7434 | ac_have_decl=1 | |
7435 | else | |
7436 | ac_have_decl=0 | |
3d857b98 DK |
7437 | fi |
7438 | ||
81ecdfbb RW |
7439 | cat >>confdefs.h <<_ACEOF |
7440 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
7441 | _ACEOF | |
3d857b98 | 7442 | |
e44fcf3b | 7443 | |
40fde488 CD |
7444 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
7445 | # at link time with some versions of GCC. | |
81ecdfbb RW |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
7447 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
7448 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
7449 | $as_echo_n "(cached) " >&6 | |
40fde488 | 7450 | else |
81ecdfbb | 7451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
7452 | /* end confdefs.h. */ |
7453 | ||
7454 | #include <tr1/unordered_map> | |
7455 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
7456 | ||
7457 | int | |
7458 | main () | |
7459 | { | |
7460 | ||
7461 | ; | |
7462 | return 0; | |
7463 | } | |
7464 | _ACEOF | |
81ecdfbb | 7465 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7466 | gold_cv_unordered_map_rehash=yes |
7467 | else | |
81ecdfbb | 7468 | gold_cv_unordered_map_rehash=no |
40fde488 | 7469 | fi |
81ecdfbb RW |
7470 | rm -f core conftest.err conftest.$ac_objext \ |
7471 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7472 | fi |
81ecdfbb RW |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7474 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7475 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7476 | ||
81ecdfbb | 7477 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7478 | |
7479 | fi | |
7480 | ||
81c82a68 ILT |
7481 | # Use of tr1/unordered_map with off_t as a key is not supported on GCC |
7482 | # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type. | |
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5 | |
7484 | $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; } | |
7485 | if test "${gold_cv_hash_off_t+set}" = set; then : | |
7486 | $as_echo_n "(cached) " >&6 | |
7487 | else | |
7488 | CXXFLAGS_hold=$CXXFLAGS | |
7489 | CXXFLAGS="$CXXFLAGS $LFS_CFLAGS" | |
7490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7491 | /* end confdefs.h. */ | |
7492 | ||
7493 | #include <sys/types.h> | |
7494 | #include <tr1/unordered_map> | |
7495 | std::tr1::hash<off_t> h; | |
7496 | ||
7497 | _ACEOF | |
7498 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7499 | gold_cv_hash_off_t=yes | |
7500 | else | |
7501 | gold_cv_hash_off_t=no | |
7502 | fi | |
7503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26e4ef59 | 7504 | CXXFLAGS=$CXXFLAGS_hold |
81c82a68 ILT |
7505 | fi |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5 | |
7507 | $as_echo "$gold_cv_hash_off_t" >&6; } | |
7508 | if test "$gold_cv_hash_off_t" = "yes"; then | |
7509 | ||
7510 | $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h | |
7511 | ||
7512 | fi | |
7513 | ||
04bf7072 ILT |
7514 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7515 | # function. Check for that. This is gcc bug 35546. This test can | |
7516 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7518 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7519 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7520 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7521 | else |
81ecdfbb RW |
7522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7523 | /* end confdefs.h. */ | |
04bf7072 ILT |
7524 | |
7525 | template<typename T> extern void foo(const char*, ...) | |
7526 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7527 | template<typename T> void foo(const char* format, ...) {} | |
7528 | void bar() { foo<int>("%s\n", "foo"); } | |
7529 | ||
7530 | _ACEOF | |
81ecdfbb | 7531 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7532 | gold_cv_template_attribute=yes |
7533 | else | |
81ecdfbb | 7534 | gold_cv_template_attribute=no |
04bf7072 | 7535 | fi |
81ecdfbb | 7536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7537 | fi |
81ecdfbb RW |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7539 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7540 | if test "$gold_cv_template_attribute" = "yes"; then |
7541 | ||
81ecdfbb | 7542 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7543 | |
7544 | fi | |
7545 | ||
5d329b7d ILT |
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7547 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7548 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7549 | $as_echo_n "(cached) " >&6 | |
7550 | else | |
7551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7552 | /* end confdefs.h. */ | |
7553 | ||
7554 | #include <sys/stat.h> | |
7555 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7556 | ||
7557 | int | |
7558 | main () | |
7559 | { | |
7560 | ||
7561 | ; | |
7562 | return 0; | |
7563 | } | |
7564 | _ACEOF | |
7565 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7566 | gold_cv_stat_st_mtim=yes | |
7567 | else | |
7568 | gold_cv_stat_st_mtim=no | |
7569 | fi | |
7570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7571 | fi | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7573 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7574 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7575 | ||
7576 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7577 | ||
7578 | fi | |
7579 | ||
54dc6425 ILT |
7580 | ac_ext=c |
7581 | ac_cpp='$CPP $CPPFLAGS' | |
7582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7585 | ||
7586 | ||
58797674 RM |
7587 | for ac_header in locale.h |
7588 | do : | |
7589 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
7590 | if test "x$ac_cv_header_locale_h" = x""yes; then : | |
7591 | cat >>confdefs.h <<_ACEOF | |
7592 | #define HAVE_LOCALE_H 1 | |
7593 | _ACEOF | |
7594 | ||
7595 | fi | |
7596 | ||
7597 | done | |
7598 | ||
44350750 NC |
7599 | for ac_func in setlocale |
7600 | do : | |
7601 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | |
7602 | if test "x$ac_cv_func_setlocale" = x""yes; then : | |
7603 | cat >>confdefs.h <<_ACEOF | |
7604 | #define HAVE_SETLOCALE 1 | |
7605 | _ACEOF | |
7606 | ||
7607 | fi | |
7608 | done | |
7609 | ||
7610 | ||
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
7612 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
7613 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
7614 | $as_echo_n "(cached) " >&6 | |
7615 | else | |
7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7617 | /* end confdefs.h. */ | |
7618 | #include <locale.h> | |
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | return LC_MESSAGES | |
7623 | ; | |
7624 | return 0; | |
7625 | } | |
7626 | _ACEOF | |
7627 | if ac_fn_c_try_link "$LINENO"; then : | |
7628 | am_cv_val_LC_MESSAGES=yes | |
7629 | else | |
7630 | am_cv_val_LC_MESSAGES=no | |
7631 | fi | |
7632 | rm -f core conftest.err conftest.$ac_objext \ | |
7633 | conftest$ac_exeext conftest.$ac_ext | |
7634 | fi | |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
7636 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
7637 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7638 | ||
7639 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
7640 | ||
7641 | fi | |
7642 | ||
7643 | ||
81ecdfbb RW |
7644 | |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7646 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7647 | # Check whether --enable-maintainer-mode was given. | |
7648 | if test "${enable_maintainer_mode+set}" = set; then : | |
7649 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7650 | else |
7651 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7652 | fi |
bae7f79e | 7653 | |
81ecdfbb RW |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7655 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7656 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7657 | MAINTAINER_MODE_TRUE= |
7658 | MAINTAINER_MODE_FALSE='#' | |
7659 | else | |
7660 | MAINTAINER_MODE_TRUE='#' | |
7661 | MAINTAINER_MODE_FALSE= | |
7662 | fi | |
7663 | ||
7664 | MAINT=$MAINTAINER_MODE_TRUE | |
7665 | ||
7666 | ||
7667 | ||
81ecdfbb RW |
7668 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7669 | ||
bae7f79e ILT |
7670 | cat >confcache <<\_ACEOF |
7671 | # This file is a shell script that caches the results of configure | |
7672 | # tests run on this system so they can be shared between configure | |
7673 | # scripts and configure runs, see configure's option --config-cache. | |
7674 | # It is not useful on other systems. If it contains results you don't | |
7675 | # want to keep, you may remove or edit it. | |
7676 | # | |
7677 | # config.status only pays attention to the cache file if you give it | |
7678 | # the --recheck option to rerun configure. | |
7679 | # | |
7680 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7681 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7682 | # following values. | |
7683 | ||
7684 | _ACEOF | |
7685 | ||
7686 | # The following way of writing the cache mishandles newlines in values, | |
7687 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7688 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7689 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7690 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7691 | ( |
7692 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7693 | eval ac_val=\$$ac_var | |
7694 | case $ac_val in #( | |
7695 | *${as_nl}*) | |
7696 | case $ac_var in #( | |
7697 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7698 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7699 | esac | |
7700 | case $ac_var in #( | |
7701 | _ | IFS | as_nl) ;; #( | |
7702 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7703 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7704 | esac ;; | |
7705 | esac | |
7706 | done | |
7707 | ||
bae7f79e | 7708 | (set) 2>&1 | |
81ecdfbb RW |
7709 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7710 | *${as_nl}ac_space=\ *) | |
7711 | # `set' does not quote correctly, so add quotes: double-quote | |
7712 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7713 | sed -n \ |
7714 | "s/'/'\\\\''/g; | |
7715 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7716 | ;; #( |
bae7f79e ILT |
7717 | *) |
7718 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7719 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7720 | ;; |
81ecdfbb RW |
7721 | esac | |
7722 | sort | |
7723 | ) | | |
bae7f79e | 7724 | sed ' |
81ecdfbb | 7725 | /^ac_cv_env_/b end |
bae7f79e | 7726 | t clear |
81ecdfbb | 7727 | :clear |
bae7f79e ILT |
7728 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7729 | t end | |
81ecdfbb RW |
7730 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7731 | :end' >>confcache | |
7732 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7733 | if test -w "$cache_file"; then | |
7734 | test "x$cache_file" != "x/dev/null" && | |
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7736 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7737 | cat confcache >$cache_file |
7738 | else | |
81ecdfbb RW |
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7740 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7741 | fi |
7742 | fi | |
7743 | rm -f confcache | |
7744 | ||
7745 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7746 | # Let make expand exec_prefix. | |
7747 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7748 | ||
bae7f79e ILT |
7749 | DEFS=-DHAVE_CONFIG_H |
7750 | ||
7751 | ac_libobjs= | |
7752 | ac_ltlibobjs= | |
7753 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7754 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7755 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7756 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7757 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7758 | # will be set to the directory where LIBOBJS objects are built. | |
7759 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7760 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7761 | done |
7762 | LIBOBJS=$ac_libobjs | |
7763 | ||
7764 | LTLIBOBJS=$ac_ltlibobjs | |
7765 | ||
7766 | ||
81ecdfbb RW |
7767 | if test -n "$EXEEXT"; then |
7768 | am__EXEEXT_TRUE= | |
7769 | am__EXEEXT_FALSE='#' | |
7770 | else | |
7771 | am__EXEEXT_TRUE='#' | |
7772 | am__EXEEXT_FALSE= | |
7773 | fi | |
7774 | ||
fe9a4c12 | 7775 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7776 | as_fn_error "conditional \"THREADS\" was never defined. |
7777 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7778 | fi |
89fc3421 | 7779 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7780 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7781 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7782 | fi |
053a4d68 JY |
7783 | if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then |
7784 | as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined. | |
7785 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7786 | fi | |
364c7fa5 ILT |
7787 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7788 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7789 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7790 | fi | |
7791 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7792 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7793 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7794 | fi | |
7795 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7796 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7797 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7798 | fi | |
7799 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7800 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7801 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7802 | fi | |
e79a4bad MK |
7803 | if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then |
7804 | as_fn_error "conditional \"DEFAULT_TARGET_S390\" was never defined. | |
7805 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7806 | fi | |
364c7fa5 ILT |
7807 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then |
7808 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7809 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7810 | fi | |
4fc1b9d4 L |
7811 | if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then |
7812 | as_fn_error "conditional \"DEFAULT_TARGET_X32\" was never defined. | |
7813 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7814 | fi | |
0a6f1bf2 AM |
7815 | if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then |
7816 | as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined. | |
7817 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7818 | fi | |
9810d34d SS |
7819 | if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then |
7820 | as_fn_error "conditional \"DEFAULT_TARGET_MIPS\" was never defined. | |
7821 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7822 | fi | |
bae7f79e | 7823 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7824 | as_fn_error "conditional \"AMDEP\" was never defined. |
7825 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7826 | fi |
7827 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7828 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7829 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7830 | fi |
7831 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7832 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7833 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7834 | fi |
81ecdfbb | 7835 | |
537b5f51 | 7836 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7837 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7839 | fi |
7840 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7841 | as_fn_error "conditional \"GCC\" was never defined. |
7842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7843 | fi |
eb373049 ILT |
7844 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7845 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
328c7c2f ILT |
7847 | fi |
7848 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then | |
7849 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. | |
7850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
eb373049 | 7851 | fi |
63402fe4 | 7852 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7853 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7855 | fi |
8a5e3e08 | 7856 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7857 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7859 | fi |
6eee141f | 7860 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7861 | as_fn_error "conditional \"TLS\" was never defined. |
7862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7863 | fi |
097ec620 | 7864 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7865 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7867 | fi |
155a0dd7 | 7868 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7869 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7871 | fi |
c2b45e22 | 7872 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7873 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7874 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7875 | fi |
7876 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7877 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7878 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7879 | fi |
7223e9ca ILT |
7880 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7881 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7882 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7883 | fi | |
ebb300b2 CC |
7884 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
7885 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. | |
7886 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7887 | fi | |
f1415016 CC |
7888 | if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then |
7889 | as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined. | |
7890 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7891 | fi | |
ae447ddd CC |
7892 | if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then |
7893 | as_fn_error "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined. | |
7894 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7895 | fi | |
bae7f79e | 7896 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7897 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7898 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7899 | fi |
7900 | ||
7901 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7902 | ac_write_fail=0 |
bae7f79e ILT |
7903 | ac_clean_files_save=$ac_clean_files |
7904 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7906 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7907 | as_write_fail=0 | |
7908 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7909 | #! $SHELL |
7910 | # Generated by $as_me. | |
7911 | # Run this file to recreate the current configuration. | |
7912 | # Compiler output produced by configure, useful for debugging | |
7913 | # configure, is in config.log if it exists. | |
7914 | ||
7915 | debug=false | |
7916 | ac_cs_recheck=false | |
7917 | ac_cs_silent=false | |
bae7f79e | 7918 | |
81ecdfbb RW |
7919 | SHELL=\${CONFIG_SHELL-$SHELL} |
7920 | export SHELL | |
7921 | _ASEOF | |
7922 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7923 | ## -------------------- ## | |
7924 | ## M4sh Initialization. ## | |
7925 | ## -------------------- ## | |
bae7f79e | 7926 | |
81ecdfbb RW |
7927 | # Be more Bourne compatible |
7928 | DUALCASE=1; export DUALCASE # for MKS sh | |
7929 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7930 | emulate sh |
7931 | NULLCMD=: | |
81ecdfbb | 7932 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7933 | # is contrary to our usage. Disable this feature. |
7934 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7935 | setopt NO_GLOB_SUBST |
7936 | else | |
7937 | case `(set -o) 2>/dev/null` in #( | |
7938 | *posix*) : | |
7939 | set -o posix ;; #( | |
7940 | *) : | |
7941 | ;; | |
7942 | esac | |
bae7f79e | 7943 | fi |
bae7f79e | 7944 | |
81ecdfbb RW |
7945 | |
7946 | as_nl=' | |
7947 | ' | |
7948 | export as_nl | |
7949 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7950 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7951 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7952 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7953 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7954 | # but without wasting forks for bash or zsh. | |
7955 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7956 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7957 | as_echo='print -r --' | |
7958 | as_echo_n='print -rn --' | |
7959 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7960 | as_echo='printf %s\n' | |
7961 | as_echo_n='printf %s' | |
7962 | else | |
7963 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7964 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7965 | as_echo_n='/usr/ucb/echo -n' | |
7966 | else | |
7967 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7968 | as_echo_n_body='eval | |
7969 | arg=$1; | |
7970 | case $arg in #( | |
7971 | *"$as_nl"*) | |
7972 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7973 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7974 | esac; | |
7975 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7976 | ' | |
7977 | export as_echo_n_body | |
7978 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7979 | fi | |
7980 | export as_echo_body | |
7981 | as_echo='sh -c $as_echo_body as_echo' | |
7982 | fi | |
7983 | ||
7984 | # The user is always right. | |
7985 | if test "${PATH_SEPARATOR+set}" != set; then | |
7986 | PATH_SEPARATOR=: | |
7987 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7988 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7989 | PATH_SEPARATOR=';' | |
7990 | } | |
bae7f79e ILT |
7991 | fi |
7992 | ||
7993 | ||
81ecdfbb RW |
7994 | # IFS |
7995 | # We need space, tab and new line, in precisely that order. Quoting is | |
7996 | # there to prevent editors from complaining about space-tab. | |
7997 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7998 | # splitting by setting IFS to empty value.) | |
7999 | IFS=" "" $as_nl" | |
8000 | ||
8001 | # Find who we are. Look in the path if we contain no directory separator. | |
8002 | case $0 in #(( | |
8003 | *[\\/]* ) as_myself=$0 ;; | |
8004 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8005 | for as_dir in $PATH | |
8006 | do | |
8007 | IFS=$as_save_IFS | |
8008 | test -z "$as_dir" && as_dir=. | |
8009 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8010 | done | |
8011 | IFS=$as_save_IFS | |
8012 | ||
8013 | ;; | |
8014 | esac | |
8015 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8016 | # in which case we are not to be found in the path. | |
8017 | if test "x$as_myself" = x; then | |
8018 | as_myself=$0 | |
8019 | fi | |
8020 | if test ! -f "$as_myself"; then | |
8021 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8022 | exit 1 | |
8023 | fi | |
8024 | ||
8025 | # Unset variables that we do not need and which cause bugs (e.g. in | |
8026 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
8027 | # suppresses any "Segmentation fault" message there. '((' could | |
8028 | # trigger a bug in pdksh 5.2.14. | |
8029 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8030 | do eval test x\${$as_var+set} = xset \ | |
8031 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8032 | done | |
bae7f79e ILT |
8033 | PS1='$ ' |
8034 | PS2='> ' | |
8035 | PS4='+ ' | |
8036 | ||
8037 | # NLS nuisances. | |
81ecdfbb RW |
8038 | LC_ALL=C |
8039 | export LC_ALL | |
8040 | LANGUAGE=C | |
8041 | export LANGUAGE | |
8042 | ||
8043 | # CDPATH. | |
8044 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8045 | ||
8046 | ||
8047 | # as_fn_error ERROR [LINENO LOG_FD] | |
8048 | # --------------------------------- | |
8049 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
8050 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
8051 | # script with status $?, using 1 if that was 0. | |
8052 | as_fn_error () | |
8053 | { | |
8054 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
8055 | if test "$3"; then | |
8056 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8057 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 8058 | fi |
81ecdfbb RW |
8059 | $as_echo "$as_me: error: $1" >&2 |
8060 | as_fn_exit $as_status | |
8061 | } # as_fn_error | |
8062 | ||
8063 | ||
8064 | # as_fn_set_status STATUS | |
8065 | # ----------------------- | |
8066 | # Set $? to STATUS, without forking. | |
8067 | as_fn_set_status () | |
8068 | { | |
8069 | return $1 | |
8070 | } # as_fn_set_status | |
bae7f79e | 8071 | |
81ecdfbb RW |
8072 | # as_fn_exit STATUS |
8073 | # ----------------- | |
8074 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8075 | as_fn_exit () | |
8076 | { | |
8077 | set +e | |
8078 | as_fn_set_status $1 | |
8079 | exit $1 | |
8080 | } # as_fn_exit | |
8081 | ||
8082 | # as_fn_unset VAR | |
8083 | # --------------- | |
8084 | # Portably unset VAR. | |
8085 | as_fn_unset () | |
8086 | { | |
8087 | { eval $1=; unset $1;} | |
8088 | } | |
8089 | as_unset=as_fn_unset | |
8090 | # as_fn_append VAR VALUE | |
8091 | # ---------------------- | |
8092 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8093 | # advantage of any shell optimizations that allow amortized linear growth over | |
8094 | # repeated appends, instead of the typical quadratic growth present in naive | |
8095 | # implementations. | |
8096 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8097 | eval 'as_fn_append () | |
8098 | { | |
8099 | eval $1+=\$2 | |
8100 | }' | |
8101 | else | |
8102 | as_fn_append () | |
8103 | { | |
8104 | eval $1=\$$1\$2 | |
8105 | } | |
8106 | fi # as_fn_append | |
8107 | ||
8108 | # as_fn_arith ARG... | |
8109 | # ------------------ | |
8110 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8111 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8112 | # must be portable across $(()) and expr. | |
8113 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8114 | eval 'as_fn_arith () | |
8115 | { | |
8116 | as_val=$(( $* )) | |
8117 | }' | |
8118 | else | |
8119 | as_fn_arith () | |
8120 | { | |
8121 | as_val=`expr "$@" || test $? -eq 1` | |
8122 | } | |
8123 | fi # as_fn_arith | |
8124 | ||
8125 | ||
8126 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
8127 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
8128 | as_expr=expr |
8129 | else | |
8130 | as_expr=false | |
8131 | fi | |
8132 | ||
81ecdfbb | 8133 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
8134 | as_basename=basename |
8135 | else | |
8136 | as_basename=false | |
8137 | fi | |
8138 | ||
81ecdfbb RW |
8139 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8140 | as_dirname=dirname | |
8141 | else | |
8142 | as_dirname=false | |
8143 | fi | |
bae7f79e | 8144 | |
81ecdfbb | 8145 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
8146 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8147 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8148 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8149 | $as_echo X/"$0" | | |
8150 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8151 | s//\1/ | |
8152 | q | |
8153 | } | |
8154 | /^X\/\(\/\/\)$/{ | |
8155 | s//\1/ | |
8156 | q | |
8157 | } | |
8158 | /^X\/\(\/\).*/{ | |
8159 | s//\1/ | |
8160 | q | |
8161 | } | |
8162 | s/.*/./; q'` | |
bae7f79e | 8163 | |
bae7f79e ILT |
8164 | # Avoid depending upon Character Ranges. |
8165 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8166 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8167 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8168 | as_cr_digits='0123456789' | |
8169 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8170 | ||
81ecdfbb RW |
8171 | ECHO_C= ECHO_N= ECHO_T= |
8172 | case `echo -n x` in #((((( | |
8173 | -n*) | |
8174 | case `echo 'xy\c'` in | |
8175 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8176 | xy) ECHO_C='\c';; | |
8177 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8178 | ECHO_T=' ';; | |
8179 | esac;; | |
8180 | *) | |
8181 | ECHO_N='-n';; | |
bae7f79e ILT |
8182 | esac |
8183 | ||
81ecdfbb RW |
8184 | rm -f conf$$ conf$$.exe conf$$.file |
8185 | if test -d conf$$.dir; then | |
8186 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 8187 | else |
81ecdfbb RW |
8188 | rm -f conf$$.dir |
8189 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 8190 | fi |
81ecdfbb RW |
8191 | if (echo >conf$$.file) 2>/dev/null; then |
8192 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 8193 | as_ln_s='ln -s' |
81ecdfbb RW |
8194 | # ... but there are two gotchas: |
8195 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8196 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8197 | # In both cases, we have to default to `cp -p'. | |
8198 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8199 | as_ln_s='cp -p' | |
8200 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8201 | as_ln_s=ln | |
8202 | else | |
8203 | as_ln_s='cp -p' | |
bae7f79e | 8204 | fi |
bae7f79e ILT |
8205 | else |
8206 | as_ln_s='cp -p' | |
8207 | fi | |
81ecdfbb RW |
8208 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8209 | rmdir conf$$.dir 2>/dev/null | |
8210 | ||
8211 | ||
8212 | # as_fn_mkdir_p | |
8213 | # ------------- | |
8214 | # Create "$as_dir" as a directory, including parents if necessary. | |
8215 | as_fn_mkdir_p () | |
8216 | { | |
8217 | ||
8218 | case $as_dir in #( | |
8219 | -*) as_dir=./$as_dir;; | |
8220 | esac | |
8221 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8222 | as_dirs= | |
8223 | while :; do | |
8224 | case $as_dir in #( | |
8225 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8226 | *) as_qdir=$as_dir;; | |
8227 | esac | |
8228 | as_dirs="'$as_qdir' $as_dirs" | |
8229 | as_dir=`$as_dirname -- "$as_dir" || | |
8230 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8231 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8232 | X"$as_dir" : 'X\(//\)$' \| \ | |
8233 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8234 | $as_echo X"$as_dir" | | |
8235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8236 | s//\1/ | |
8237 | q | |
8238 | } | |
8239 | /^X\(\/\/\)[^/].*/{ | |
8240 | s//\1/ | |
8241 | q | |
8242 | } | |
8243 | /^X\(\/\/\)$/{ | |
8244 | s//\1/ | |
8245 | q | |
8246 | } | |
8247 | /^X\(\/\).*/{ | |
8248 | s//\1/ | |
8249 | q | |
8250 | } | |
8251 | s/.*/./; q'` | |
8252 | test -d "$as_dir" && break | |
8253 | done | |
8254 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8255 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
8256 | ||
bae7f79e | 8257 | |
81ecdfbb | 8258 | } # as_fn_mkdir_p |
bae7f79e | 8259 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 8260 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
8261 | else |
8262 | test -d ./-p && rmdir ./-p | |
8263 | as_mkdir_p=false | |
8264 | fi | |
8265 | ||
81ecdfbb RW |
8266 | if test -x / >/dev/null 2>&1; then |
8267 | as_test_x='test -x' | |
8268 | else | |
8269 | if ls -dL / >/dev/null 2>&1; then | |
8270 | as_ls_L_option=L | |
8271 | else | |
8272 | as_ls_L_option= | |
8273 | fi | |
8274 | as_test_x=' | |
8275 | eval sh -c '\'' | |
8276 | if test -d "$1"; then | |
8277 | test -d "$1/."; | |
8278 | else | |
8279 | case $1 in #( | |
8280 | -*)set "./$1";; | |
8281 | esac; | |
8282 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
8283 | ???[sx]*):;;*)false;;esac;fi | |
8284 | '\'' sh | |
8285 | ' | |
8286 | fi | |
8287 | as_executable_p=$as_test_x | |
bae7f79e ILT |
8288 | |
8289 | # Sed expression to map a string onto a valid CPP name. | |
8290 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8291 | ||
8292 | # Sed expression to map a string onto a valid variable name. | |
8293 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8294 | ||
8295 | ||
bae7f79e | 8296 | exec 6>&1 |
81ecdfbb RW |
8297 | ## ----------------------------------- ## |
8298 | ## Main body of $CONFIG_STATUS script. ## | |
8299 | ## ----------------------------------- ## | |
8300 | _ASEOF | |
8301 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 8302 | |
81ecdfbb RW |
8303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8304 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 8305 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8306 | # values after options handling. |
8307 | ac_log=" | |
8486ee48 | 8308 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 8309 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
8310 | |
8311 | CONFIG_FILES = $CONFIG_FILES | |
8312 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8313 | CONFIG_LINKS = $CONFIG_LINKS | |
8314 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8315 | $ $0 $@ | |
8316 | ||
81ecdfbb RW |
8317 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8318 | " | |
8319 | ||
bae7f79e ILT |
8320 | _ACEOF |
8321 | ||
81ecdfbb RW |
8322 | case $ac_config_files in *" |
8323 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8324 | esac | |
bae7f79e | 8325 | |
81ecdfbb RW |
8326 | case $ac_config_headers in *" |
8327 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8328 | esac | |
bae7f79e | 8329 | |
bae7f79e | 8330 | |
81ecdfbb RW |
8331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8332 | # Files that config.status was made for. | |
8333 | config_files="$ac_config_files" | |
8334 | config_headers="$ac_config_headers" | |
8335 | config_commands="$ac_config_commands" | |
bae7f79e | 8336 | |
81ecdfbb | 8337 | _ACEOF |
bae7f79e | 8338 | |
81ecdfbb | 8339 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8340 | ac_cs_usage="\ |
81ecdfbb RW |
8341 | \`$as_me' instantiates files and other configuration actions |
8342 | from templates according to the current configuration. Unless the files | |
8343 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 8344 | |
81ecdfbb | 8345 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
8346 | |
8347 | -h, --help print this help, then exit | |
81ecdfbb RW |
8348 | -V, --version print version number and configuration settings, then exit |
8349 | -q, --quiet, --silent | |
8350 | do not print progress messages | |
bae7f79e ILT |
8351 | -d, --debug don't remove temporary files |
8352 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8353 | --file=FILE[:TEMPLATE] |
8354 | instantiate the configuration file FILE | |
8355 | --header=FILE[:TEMPLATE] | |
8356 | instantiate the configuration header FILE | |
bae7f79e ILT |
8357 | |
8358 | Configuration files: | |
8359 | $config_files | |
8360 | ||
8361 | Configuration headers: | |
8362 | $config_headers | |
8363 | ||
8364 | Configuration commands: | |
8365 | $config_commands | |
8366 | ||
81ecdfbb | 8367 | Report bugs to the package provider." |
bae7f79e | 8368 | |
81ecdfbb RW |
8369 | _ACEOF |
8370 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8371 | ac_cs_version="\\ |
8486ee48 | 8372 | gold config.status 0.1 |
81ecdfbb RW |
8373 | configured by $0, generated by GNU Autoconf 2.64, |
8374 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 8375 | |
81ecdfbb | 8376 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
8377 | This config.status script is free software; the Free Software Foundation |
8378 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8379 | |
8380 | ac_pwd='$ac_pwd' | |
8381 | srcdir='$srcdir' | |
8382 | INSTALL='$INSTALL' | |
8383 | MKDIR_P='$MKDIR_P' | |
8384 | AWK='$AWK' | |
8385 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
8386 | _ACEOF |
8387 | ||
81ecdfbb RW |
8388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8389 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
8390 | ac_need_defaults=: |
8391 | while test $# != 0 | |
8392 | do | |
8393 | case $1 in | |
8394 | --*=*) | |
81ecdfbb RW |
8395 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8396 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
8397 | ac_shift=: |
8398 | ;; | |
81ecdfbb | 8399 | *) |
bae7f79e ILT |
8400 | ac_option=$1 |
8401 | ac_optarg=$2 | |
8402 | ac_shift=shift | |
8403 | ;; | |
bae7f79e ILT |
8404 | esac |
8405 | ||
8406 | case $ac_option in | |
8407 | # Handling of the options. | |
bae7f79e ILT |
8408 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8409 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8410 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8411 | $as_echo "$ac_cs_version"; exit ;; | |
8412 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
8413 | debug=: ;; |
8414 | --file | --fil | --fi | --f ) | |
8415 | $ac_shift | |
81ecdfbb RW |
8416 | case $ac_optarg in |
8417 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8418 | esac | |
8419 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
8420 | ac_need_defaults=false;; |
8421 | --header | --heade | --head | --hea ) | |
8422 | $ac_shift | |
81ecdfbb RW |
8423 | case $ac_optarg in |
8424 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8425 | esac | |
8426 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 8427 | ac_need_defaults=false;; |
81ecdfbb RW |
8428 | --he | --h) |
8429 | # Conflict between --help and --header | |
8430 | as_fn_error "ambiguous option: \`$1' | |
8431 | Try \`$0 --help' for more information.";; | |
8432 | --help | --hel | -h ) | |
8433 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
8434 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8435 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8436 | ac_cs_silent=: ;; | |
8437 | ||
8438 | # This is an error. | |
81ecdfbb RW |
8439 | -*) as_fn_error "unrecognized option: \`$1' |
8440 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 8441 | |
81ecdfbb RW |
8442 | *) as_fn_append ac_config_targets " $1" |
8443 | ac_need_defaults=false ;; | |
bae7f79e ILT |
8444 | |
8445 | esac | |
8446 | shift | |
8447 | done | |
8448 | ||
8449 | ac_configure_extra_args= | |
8450 | ||
8451 | if $ac_cs_silent; then | |
8452 | exec 6>/dev/null | |
8453 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8454 | fi | |
8455 | ||
8456 | _ACEOF | |
81ecdfbb | 8457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 8458 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8459 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8460 | shift | |
8461 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8462 | CONFIG_SHELL='$SHELL' | |
8463 | export CONFIG_SHELL | |
8464 | exec "\$@" | |
bae7f79e ILT |
8465 | fi |
8466 | ||
8467 | _ACEOF | |
81ecdfbb RW |
8468 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8469 | exec 5>>config.log | |
8470 | { | |
8471 | echo | |
8472 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8473 | ## Running $as_me. ## | |
8474 | _ASBOX | |
8475 | $as_echo "$ac_log" | |
8476 | } >&5 | |
bae7f79e | 8477 | |
81ecdfbb RW |
8478 | _ACEOF |
8479 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8480 | # |
81ecdfbb | 8481 | # INIT-COMMANDS |
bae7f79e | 8482 | # |
bae7f79e ILT |
8483 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8484 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
8485 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8486 | # from automake. | |
8487 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8488 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8489 | LINGUAS="${LINGUAS-%UNSET%}" | |
8490 | ||
8491 | ||
8492 | _ACEOF | |
8493 | ||
81ecdfbb | 8494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8495 | |
81ecdfbb | 8496 | # Handling of arguments. |
bae7f79e ILT |
8497 | for ac_config_target in $ac_config_targets |
8498 | do | |
81ecdfbb RW |
8499 | case $ac_config_target in |
8500 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8501 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8502 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8503 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8504 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
8505 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8506 | ||
8507 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
8508 | esac |
8509 | done | |
8510 | ||
81ecdfbb | 8511 | |
bae7f79e ILT |
8512 | # If the user did not use the arguments to specify the items to instantiate, |
8513 | # then the envvar interface is used. Set only those that are not. | |
8514 | # We use the long form for the default assignment because of an extremely | |
8515 | # bizarre bug on SunOS 4.1.3. | |
8516 | if $ac_need_defaults; then | |
8517 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8518 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8519 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8520 | fi | |
8521 | ||
8522 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8523 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 8524 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8525 | # Hook for its removal unless debugging. |
8526 | # Note that there is a small window in which the directory will not be cleaned: | |
8527 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
8528 | $debug || |
8529 | { | |
81ecdfbb RW |
8530 | tmp= |
8531 | trap 'exit_status=$? | |
8532 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8533 | ' 0 | |
8534 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 8535 | } |
bae7f79e ILT |
8536 | # Create a (secure) tmp directory for tmp files. |
8537 | ||
8538 | { | |
81ecdfbb | 8539 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
8540 | test -n "$tmp" && test -d "$tmp" |
8541 | } || | |
8542 | { | |
81ecdfbb RW |
8543 | tmp=./conf$$-$RANDOM |
8544 | (umask 077 && mkdir "$tmp") | |
8545 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8546 | ||
8547 | # Set up the scripts for CONFIG_FILES section. | |
8548 | # No need to generate them if there are no CONFIG_FILES. | |
8549 | # This happens for instance with `./config.status config.h'. | |
8550 | if test -n "$CONFIG_FILES"; then | |
8551 | ||
8552 | ||
8553 | ac_cr=`echo X | tr X '\015'` | |
8554 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8555 | # But we know of no other shell where ac_cr would be empty at this | |
8556 | # point, so we can use a bashism as a fallback. | |
8557 | if test "x$ac_cr" = x; then | |
8558 | eval ac_cr=\$\'\\r\' | |
8559 | fi | |
8560 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8561 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8562 | ac_cs_awk_cr='\r' | |
8563 | else | |
8564 | ac_cs_awk_cr=$ac_cr | |
8565 | fi | |
8566 | ||
8567 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8568 | _ACEOF | |
8569 | ||
8570 | ||
8571 | { | |
8572 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8573 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8574 | echo "_ACEOF" | |
8575 | } >conf$$subs.sh || | |
8576 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8577 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8578 | ac_delim='%!_!# ' | |
8579 | for ac_last_try in false false false false false :; do | |
8580 | . ./conf$$subs.sh || | |
8581 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8582 | ||
8583 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8584 | if test $ac_delim_n = $ac_delim_num; then | |
8585 | break | |
8586 | elif $ac_last_try; then | |
8587 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8588 | else | |
8589 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8590 | fi | |
8591 | done | |
8592 | rm -f conf$$subs.sh | |
8593 | ||
8594 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8595 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8596 | _ACEOF | |
8597 | sed -n ' | |
8598 | h | |
8599 | s/^/S["/; s/!.*/"]=/ | |
8600 | p | |
8601 | g | |
8602 | s/^[^!]*!// | |
8603 | :repl | |
8604 | t repl | |
8605 | s/'"$ac_delim"'$// | |
8606 | t delim | |
8607 | :nl | |
8608 | h | |
8609 | s/\(.\{148\}\).*/\1/ | |
8610 | t more1 | |
8611 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8612 | p | |
8613 | n | |
8614 | b repl | |
8615 | :more1 | |
8616 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8617 | p | |
8618 | g | |
8619 | s/.\{148\}// | |
8620 | t nl | |
8621 | :delim | |
8622 | h | |
8623 | s/\(.\{148\}\).*/\1/ | |
8624 | t more2 | |
8625 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8626 | p | |
8627 | b | |
8628 | :more2 | |
8629 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8630 | p | |
8631 | g | |
8632 | s/.\{148\}// | |
8633 | t delim | |
8634 | ' <conf$$subs.awk | sed ' | |
8635 | /^[^""]/{ | |
8636 | N | |
8637 | s/\n// | |
8638 | } | |
8639 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8640 | rm -f conf$$subs.awk | |
8641 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8642 | _ACAWK | |
8643 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8644 | for (key in S) S_is_set[key] = 1 | |
8645 | FS = "\a" | |
8646 | ||
8647 | } | |
bae7f79e | 8648 | { |
81ecdfbb RW |
8649 | line = $ 0 |
8650 | nfields = split(line, field, "@") | |
8651 | substed = 0 | |
8652 | len = length(field[1]) | |
8653 | for (i = 2; i < nfields; i++) { | |
8654 | key = field[i] | |
8655 | keylen = length(key) | |
8656 | if (S_is_set[key]) { | |
8657 | value = S[key] | |
8658 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8659 | len += length(value) + length(field[++i]) | |
8660 | substed = 1 | |
8661 | } else | |
8662 | len += 1 + keylen | |
8663 | } | |
8664 | ||
8665 | print line | |
bae7f79e ILT |
8666 | } |
8667 | ||
81ecdfbb RW |
8668 | _ACAWK |
8669 | _ACEOF | |
8670 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8671 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8672 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8673 | else | |
8674 | cat | |
8675 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8676 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8677 | _ACEOF |
8678 | ||
81ecdfbb RW |
8679 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8680 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8681 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8682 | # (actually we leave an empty line to preserve line numbers). | |
8683 | if test "x$srcdir" = x.; then | |
8684 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8685 | s/:*\$(srcdir):*/:/ | |
8686 | s/:*\${srcdir}:*/:/ | |
8687 | s/:*@srcdir@:*/:/ | |
8688 | s/^\([^=]*=[ ]*\):*/\1/ | |
8689 | s/:*$// | |
8690 | s/^[^=]*=[ ]*$// | |
8691 | }' | |
8692 | fi | |
bae7f79e | 8693 | |
81ecdfbb RW |
8694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8695 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8696 | |
81ecdfbb RW |
8697 | # Set up the scripts for CONFIG_HEADERS section. |
8698 | # No need to generate them if there are no CONFIG_HEADERS. | |
8699 | # This happens for instance with `./config.status Makefile'. | |
8700 | if test -n "$CONFIG_HEADERS"; then | |
8701 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8702 | BEGIN { | |
bae7f79e ILT |
8703 | _ACEOF |
8704 | ||
81ecdfbb RW |
8705 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8706 | # here-document in config.status, that substitutes the proper values into | |
8707 | # config.h.in to produce config.h. | |
8708 | ||
8709 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8710 | # handling of long lines. | |
8711 | ac_delim='%!_!# ' | |
8712 | for ac_last_try in false false :; do | |
8713 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8714 | if test -z "$ac_t"; then | |
8715 | break | |
8716 | elif $ac_last_try; then | |
8717 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8718 | else | |
8719 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8720 | fi |
81ecdfbb | 8721 | done |
bae7f79e | 8722 | |
81ecdfbb RW |
8723 | # For the awk script, D is an array of macro values keyed by name, |
8724 | # likewise P contains macro parameters if any. Preserve backslash | |
8725 | # newline sequences. | |
8726 | ||
8727 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8728 | sed -n ' | |
8729 | s/.\{148\}/&'"$ac_delim"'/g | |
8730 | t rset | |
8731 | :rset | |
8732 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8733 | t def | |
8734 | d | |
8735 | :def | |
8736 | s/\\$// | |
8737 | t bsnl | |
8738 | s/["\\]/\\&/g | |
8739 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8740 | D["\1"]=" \3"/p | |
8741 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8742 | d | |
8743 | :bsnl | |
8744 | s/["\\]/\\&/g | |
8745 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8746 | D["\1"]=" \3\\\\\\n"\\/p | |
8747 | t cont | |
8748 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8749 | t cont | |
8750 | d | |
8751 | :cont | |
8752 | n | |
8753 | s/.\{148\}/&'"$ac_delim"'/g | |
8754 | t clear | |
8755 | :clear | |
8756 | s/\\$// | |
8757 | t bsnlc | |
8758 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8759 | d | |
8760 | :bsnlc | |
8761 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8762 | b cont | |
8763 | ' <confdefs.h | sed ' | |
8764 | s/'"$ac_delim"'/"\\\ | |
8765 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8766 | ||
8767 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8768 | for (key in D) D_is_set[key] = 1 | |
8769 | FS = "\a" | |
8770 | } | |
8771 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8772 | line = \$ 0 | |
8773 | split(line, arg, " ") | |
8774 | if (arg[1] == "#") { | |
8775 | defundef = arg[2] | |
8776 | mac1 = arg[3] | |
8777 | } else { | |
8778 | defundef = substr(arg[1], 2) | |
8779 | mac1 = arg[2] | |
8780 | } | |
8781 | split(mac1, mac2, "(") #) | |
8782 | macro = mac2[1] | |
8783 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8784 | if (D_is_set[macro]) { | |
8785 | # Preserve the white space surrounding the "#". | |
8786 | print prefix "define", macro P[macro] D[macro] | |
8787 | next | |
8788 | } else { | |
8789 | # Replace #undef with comments. This is necessary, for example, | |
8790 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8791 | # on some systems where configure will not decide to define it. | |
8792 | if (defundef == "undef") { | |
8793 | print "/*", prefix defundef, macro, "*/" | |
8794 | next | |
8795 | } | |
8796 | } | |
8797 | } | |
8798 | { print } | |
8799 | _ACAWK | |
bae7f79e | 8800 | _ACEOF |
81ecdfbb RW |
8801 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8802 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8803 | fi # test -n "$CONFIG_HEADERS" | |
8804 | ||
8805 | ||
8806 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8807 | shift | |
8808 | for ac_tag | |
8809 | do | |
8810 | case $ac_tag in | |
8811 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8812 | esac | |
8813 | case $ac_mode$ac_tag in | |
8814 | :[FHL]*:*);; | |
8815 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8816 | :[FH]-) ac_tag=-:-;; | |
8817 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8818 | esac | |
8819 | ac_save_IFS=$IFS | |
8820 | IFS=: | |
8821 | set x $ac_tag | |
8822 | IFS=$ac_save_IFS | |
8823 | shift | |
8824 | ac_file=$1 | |
8825 | shift | |
8826 | ||
8827 | case $ac_mode in | |
8828 | :L) ac_source=$1;; | |
8829 | :[FH]) | |
8830 | ac_file_inputs= | |
8831 | for ac_f | |
8832 | do | |
8833 | case $ac_f in | |
8834 | -) ac_f="$tmp/stdin";; | |
8835 | *) # Look for the file first in the build tree, then in the source tree | |
8836 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8837 | # because $ac_f cannot contain `:'. | |
8838 | test -f "$ac_f" || | |
8839 | case $ac_f in | |
8840 | [\\/$]*) false;; | |
8841 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8842 | esac || | |
8843 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8844 | esac | |
8845 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8846 | as_fn_append ac_file_inputs " '$ac_f'" | |
8847 | done | |
8848 | ||
8849 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8850 | # use $as_me), people would be surprised to read: | |
8851 | # /* config.h. Generated by config.status. */ | |
8852 | configure_input='Generated from '` | |
8853 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8854 | `' by configure.' | |
8855 | if test x"$ac_file" != x-; then | |
8856 | configure_input="$ac_file. $configure_input" | |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8858 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8859 | fi | |
8860 | # Neutralize special characters interpreted by sed in replacement strings. | |
8861 | case $configure_input in #( | |
8862 | *\&* | *\|* | *\\* ) | |
8863 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8864 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8865 | *) ac_sed_conf_input=$configure_input;; | |
8866 | esac | |
8867 | ||
8868 | case $ac_tag in | |
8869 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8870 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8871 | esac | |
8872 | ;; | |
bae7f79e ILT |
8873 | esac |
8874 | ||
81ecdfbb | 8875 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8876 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8877 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8878 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8879 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8880 | $as_echo X"$ac_file" | | |
8881 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8882 | s//\1/ | |
8883 | q | |
8884 | } | |
8885 | /^X\(\/\/\)[^/].*/{ | |
8886 | s//\1/ | |
8887 | q | |
8888 | } | |
8889 | /^X\(\/\/\)$/{ | |
8890 | s//\1/ | |
8891 | q | |
8892 | } | |
8893 | /^X\(\/\).*/{ | |
8894 | s//\1/ | |
8895 | q | |
8896 | } | |
8897 | s/.*/./; q'` | |
8898 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8899 | ac_builddir=. |
8900 | ||
81ecdfbb RW |
8901 | case "$ac_dir" in |
8902 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8903 | *) | |
8904 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8905 | # A ".." for each directory in $ac_dir_suffix. | |
8906 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8907 | case $ac_top_builddir_sub in | |
8908 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8909 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8910 | esac ;; | |
8911 | esac | |
8912 | ac_abs_top_builddir=$ac_pwd | |
8913 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8914 | # for backward compatibility: | |
8915 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8916 | |
8917 | case $srcdir in | |
81ecdfbb | 8918 | .) # We are building in place. |
bae7f79e | 8919 | ac_srcdir=. |
81ecdfbb RW |
8920 | ac_top_srcdir=$ac_top_builddir_sub |
8921 | ac_abs_top_srcdir=$ac_pwd ;; | |
8922 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8923 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8924 | ac_top_srcdir=$srcdir |
8925 | ac_abs_top_srcdir=$srcdir ;; | |
8926 | *) # Relative name. | |
8927 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8928 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8929 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8930 | esac |
81ecdfbb | 8931 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8932 | |
bae7f79e | 8933 | |
81ecdfbb RW |
8934 | case $ac_mode in |
8935 | :F) | |
8936 | # | |
8937 | # CONFIG_FILE | |
8938 | # | |
bae7f79e ILT |
8939 | |
8940 | case $INSTALL in | |
8941 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8942 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8943 | esac |
81ecdfbb RW |
8944 | ac_MKDIR_P=$MKDIR_P |
8945 | case $MKDIR_P in | |
8946 | [\\/$]* | ?:[\\/]* ) ;; | |
8947 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8948 | esac | |
8949 | _ACEOF | |
bae7f79e | 8950 | |
81ecdfbb RW |
8951 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8952 | # If the template does not know about datarootdir, expand it. | |
8953 | # FIXME: This hack should be removed a few years after 2.60. | |
8954 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8955 | ac_sed_dataroot=' | |
8956 | /datarootdir/ { | |
8957 | p | |
8958 | q | |
8959 | } | |
8960 | /@datadir@/p | |
8961 | /@docdir@/p | |
8962 | /@infodir@/p | |
8963 | /@localedir@/p | |
8964 | /@mandir@/p' | |
8965 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8966 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8967 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8969 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8970 | _ACEOF | |
8971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8972 | ac_datarootdir_hack=' | |
8973 | s&@datadir@&$datadir&g | |
8974 | s&@docdir@&$docdir&g | |
8975 | s&@infodir@&$infodir&g | |
8976 | s&@localedir@&$localedir&g | |
8977 | s&@mandir@&$mandir&g | |
8978 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8979 | esac | |
bae7f79e | 8980 | _ACEOF |
81ecdfbb RW |
8981 | |
8982 | # Neutralize VPATH when `$srcdir' = `.'. | |
8983 | # Shell code in configure.ac might set extrasub. | |
8984 | # FIXME: do we really want to maintain this feature? | |
8985 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8986 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
8987 | $extrasub |
8988 | _ACEOF | |
81ecdfbb | 8989 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
8990 | :t |
8991 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8992 | s|@configure_input@|$ac_sed_conf_input|;t t |
8993 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8994 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8995 | s&@srcdir@&$ac_srcdir&;t t | |
8996 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8997 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8998 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8999 | s&@builddir@&$ac_builddir&;t t | |
9000 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9001 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9002 | s&@INSTALL@&$ac_INSTALL&;t t | |
9003 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
9004 | $ac_datarootdir_hack | |
9005 | " | |
9006 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9007 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9008 | ||
9009 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9010 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9011 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9013 | which seems to be undefined. Please make sure it is defined." >&5 | |
9014 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9015 | which seems to be undefined. Please make sure it is defined." >&2;} | |
9016 | ||
9017 | rm -f "$tmp/stdin" | |
bae7f79e | 9018 | case $ac_file in |
81ecdfbb RW |
9019 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9020 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9021 | esac \ | |
9022 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9023 | ;; | |
9024 | :H) | |
9025 | # | |
9026 | # CONFIG_HEADER | |
9027 | # | |
bae7f79e | 9028 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
9029 | { |
9030 | $as_echo "/* $configure_input */" \ | |
9031 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9032 | } >"$tmp/config.h" \ | |
9033 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9034 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
9036 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 9037 | else |
81ecdfbb RW |
9038 | rm -f "$ac_file" |
9039 | mv "$tmp/config.h" "$ac_file" \ | |
9040 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
9041 | fi |
9042 | else | |
81ecdfbb RW |
9043 | $as_echo "/* $configure_input */" \ |
9044 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9045 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 9046 | fi |
81ecdfbb RW |
9047 | # Compute "$ac_file"'s index in $config_headers. |
9048 | _am_arg="$ac_file" | |
bae7f79e ILT |
9049 | _am_stamp_count=1 |
9050 | for _am_header in $config_headers :; do | |
9051 | case $_am_header in | |
81ecdfbb | 9052 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
9053 | break ;; |
9054 | * ) | |
9055 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9056 | esac | |
9057 | done | |
81ecdfbb RW |
9058 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9059 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9060 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9061 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9062 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
9063 | $as_echo X"$_am_arg" | | |
9064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9065 | s//\1/ | |
9066 | q | |
9067 | } | |
9068 | /^X\(\/\/\)[^/].*/{ | |
9069 | s//\1/ | |
9070 | q | |
9071 | } | |
9072 | /^X\(\/\/\)$/{ | |
9073 | s//\1/ | |
9074 | q | |
9075 | } | |
9076 | /^X\(\/\).*/{ | |
9077 | s//\1/ | |
9078 | q | |
9079 | } | |
9080 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9081 | ;; | |
bae7f79e | 9082 | |
81ecdfbb RW |
9083 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9084 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9085 | ;; | |
9086 | esac | |
bae7f79e ILT |
9087 | |
9088 | ||
81ecdfbb RW |
9089 | case $ac_file$ac_mode in |
9090 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
9091 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
9092 | # are listed without --file. Let's play safe and only enable the eval | |
9093 | # if we detect the quoting. | |
9094 | case $CONFIG_FILES in | |
9095 | *\'*) eval set x "$CONFIG_FILES" ;; | |
9096 | *) set x $CONFIG_FILES ;; | |
9097 | esac | |
9098 | shift | |
9099 | for mf | |
9100 | do | |
9101 | # Strip MF so we end up with the name of the file. | |
9102 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9103 | # Check whether this is an Automake generated Makefile or not. | |
9104 | # We used to match only the files named `Makefile.in', but | |
9105 | # some people rename them; so instead we look at the file content. | |
9106 | # Grep'ing the first line is not enough: some people post-process | |
9107 | # each Makefile.in and add a new line on top of each file to say so. | |
9108 | # Grep'ing the whole file is not good either: AIX grep has a line | |
9109 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9110 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9111 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
9112 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9113 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9114 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9115 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
9116 | $as_echo X"$mf" | | |
9117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9118 | s//\1/ | |
9119 | q | |
9120 | } | |
9121 | /^X\(\/\/\)[^/].*/{ | |
9122 | s//\1/ | |
9123 | q | |
9124 | } | |
9125 | /^X\(\/\/\)$/{ | |
9126 | s//\1/ | |
9127 | q | |
9128 | } | |
9129 | /^X\(\/\).*/{ | |
9130 | s//\1/ | |
9131 | q | |
9132 | } | |
9133 | s/.*/./; q'` | |
9134 | else | |
9135 | continue | |
9136 | fi | |
9137 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9138 | # from the Makefile without running `make'. | |
9139 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9140 | test -z "$DEPDIR" && continue | |
9141 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9142 | test -z "am__include" && continue | |
9143 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9144 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9145 | U=`sed -n 's/^U = //p' < "$mf"` | |
9146 | # Find all dependency output files, they are included files with | |
9147 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9148 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9149 | # expansion. | |
9150 | for file in `sed -n " | |
9151 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9152 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9153 | # Make sure the directory exists. | |
9154 | test -f "$dirpart/$file" && continue | |
9155 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
9156 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9157 | X"$file" : 'X\(//\)[^/]' \| \ | |
9158 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9159 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
9160 | $as_echo X"$file" | | |
9161 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9162 | s//\1/ | |
9163 | q | |
9164 | } | |
9165 | /^X\(\/\/\)[^/].*/{ | |
9166 | s//\1/ | |
9167 | q | |
9168 | } | |
9169 | /^X\(\/\/\)$/{ | |
9170 | s//\1/ | |
9171 | q | |
9172 | } | |
9173 | /^X\(\/\).*/{ | |
9174 | s//\1/ | |
9175 | q | |
9176 | } | |
9177 | s/.*/./; q'` | |
9178 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
9179 | # echo "creating $dirpart/$file" | |
9180 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 9181 | done |
bae7f79e | 9182 | done |
81ecdfbb | 9183 | } |
bae7f79e | 9184 | ;; |
81ecdfbb | 9185 | "default-1":C) |
bae7f79e ILT |
9186 | for ac_file in $CONFIG_FILES; do |
9187 | # Support "outfile[:infile[:infile...]]" | |
9188 | case "$ac_file" in | |
9189 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9190 | esac | |
9191 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9192 | case "$ac_file" in */Makefile.in) | |
9193 | # Adjust a relative srcdir. | |
9194 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 9195 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
9196 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
9197 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
9198 | # In autoconf-2.50 it is called $srcdir. | |
9199 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
9200 | case "$ac_given_srcdir" in | |
9201 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
9202 | /*) top_srcdir="$ac_given_srcdir" ;; | |
9203 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9204 | esac | |
9205 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
9206 | rm -f "$ac_dir/POTFILES" | |
9207 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
9208 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
9209 | POMAKEFILEDEPS="POTFILES.in" | |
9210 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
9211 | # on $ac_dir but don't depend on user-specified configuration | |
9212 | # parameters. | |
9213 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
9214 | # The LINGUAS file contains the set of available languages. | |
9215 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 9216 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
bae7f79e ILT |
9217 | fi |
9218 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
9219 | # Hide the ALL_LINGUAS assigment from automake. | |
9220 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
9221 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
9222 | else | |
37a42ee9 | 9223 | # The set of available languages was given in configure.ac. |
bae7f79e ILT |
9224 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
9225 | fi | |
9226 | case "$ac_given_srcdir" in | |
9227 | .) srcdirpre= ;; | |
9228 | *) srcdirpre='$(srcdir)/' ;; | |
9229 | esac | |
9230 | POFILES= | |
9231 | GMOFILES= | |
9232 | UPDATEPOFILES= | |
9233 | DUMMYPOFILES= | |
9234 | for lang in $ALL_LINGUAS; do | |
9235 | POFILES="$POFILES $srcdirpre$lang.po" | |
9236 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
9237 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
9238 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
9239 | done | |
9240 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
9241 | # environment variable. | |
9242 | INST_LINGUAS= | |
9243 | if test -n "$ALL_LINGUAS"; then | |
9244 | for presentlang in $ALL_LINGUAS; do | |
9245 | useit=no | |
9246 | if test "%UNSET%" != "$LINGUAS"; then | |
9247 | desiredlanguages="$LINGUAS" | |
9248 | else | |
9249 | desiredlanguages="$ALL_LINGUAS" | |
9250 | fi | |
9251 | for desiredlang in $desiredlanguages; do | |
9252 | # Use the presentlang catalog if desiredlang is | |
9253 | # a. equal to presentlang, or | |
9254 | # b. a variant of presentlang (because in this case, | |
9255 | # presentlang can be used as a fallback for messages | |
9256 | # which are not translated in the desiredlang catalog). | |
9257 | case "$desiredlang" in | |
9258 | "$presentlang"*) useit=yes;; | |
9259 | esac | |
9260 | done | |
9261 | if test $useit = yes; then | |
9262 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
9263 | fi | |
9264 | done | |
9265 | fi | |
9266 | CATALOGS= | |
9267 | if test -n "$INST_LINGUAS"; then | |
9268 | for lang in $INST_LINGUAS; do | |
9269 | CATALOGS="$CATALOGS $lang.gmo" | |
9270 | done | |
9271 | fi | |
9272 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9273 | 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" | |
9274 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
9275 | if test -f "$f"; then | |
9276 | case "$f" in | |
9277 | *.orig | *.bak | *~) ;; | |
9278 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
9279 | esac | |
9280 | fi | |
9281 | done | |
9282 | fi | |
9283 | ;; | |
9284 | esac | |
9285 | done ;; | |
81ecdfbb | 9286 | |
bae7f79e | 9287 | esac |
81ecdfbb | 9288 | done # for ac_tag |
bae7f79e | 9289 | |
bae7f79e | 9290 | |
81ecdfbb | 9291 | as_fn_exit 0 |
bae7f79e | 9292 | _ACEOF |
bae7f79e ILT |
9293 | ac_clean_files=$ac_clean_files_save |
9294 | ||
81ecdfbb RW |
9295 | test $ac_write_fail = 0 || |
9296 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9297 | ||
bae7f79e ILT |
9298 | |
9299 | # configure is writing to config.log, and then calls config.status. | |
9300 | # config.status does its own redirection, appending to config.log. | |
9301 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9302 | # by configure, so config.status won't be able to write to it; its | |
9303 | # output is simply discarded. So we exec the FD to /dev/null, | |
9304 | # effectively closing config.log, so it can be properly (re)opened and | |
9305 | # appended to by config.status. When coming back to configure, we | |
9306 | # need to make the FD available again. | |
9307 | if test "$no_create" != yes; then | |
9308 | ac_cs_success=: | |
9309 | ac_config_status_args= | |
9310 | test "$silent" = yes && | |
9311 | ac_config_status_args="$ac_config_status_args --quiet" | |
9312 | exec 5>/dev/null | |
9313 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9314 | exec 5>>config.log | |
9315 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9316 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
9317 | $ac_cs_success || as_fn_exit $? |
9318 | fi | |
9319 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9321 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
9322 | fi |
9323 |