Commit | Line | Data |
---|---|---|
bae7f79e ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64 for gold 0.1. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
bae7f79e | 8 | # |
bae7f79e ILT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bae7f79e | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bae7f79e | 31 | fi |
bae7f79e | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bae7f79e ILT |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bae7f79e ILT |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bae7f79e | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bae7f79e | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bae7f79e | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
bae7f79e | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bae7f79e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bae7f79e | 410 | |
bae7f79e ILT |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
bae7f79e | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bae7f79e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bae7f79e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bae7f79e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bae7f79e | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bae7f79e ILT |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bae7f79e ILT |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bae7f79e ILT |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
bae7f79e | 483 | fi |
bae7f79e ILT |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bae7f79e ILT |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bae7f79e ILT |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bae7f79e ILT |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bae7f79e ILT |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
81ecdfbb | 538 | ac_clean_files= |
bae7f79e | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bae7f79e ILT |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
bae7f79e ILT |
545 | |
546 | # Identity of this package. | |
8486ee48 ILT |
547 | PACKAGE_NAME='gold' |
548 | PACKAGE_TARNAME='gold' | |
549 | PACKAGE_VERSION='0.1' | |
550 | PACKAGE_STRING='gold 0.1' | |
551 | PACKAGE_BUGREPORT='' | |
81ecdfbb | 552 | PACKAGE_URL='' |
bae7f79e ILT |
553 | |
554 | ac_unique_file="gold.cc" | |
54dc6425 ILT |
555 | # Factoring default headers for most tests. |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
54dc6425 ILT |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
54dc6425 ILT |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
54dc6425 ILT |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
54dc6425 ILT |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
54dc6425 ILT |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
54dc6425 ILT |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
54dc6425 | 582 | # include <inttypes.h> |
54dc6425 | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
54dc6425 ILT |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
81ecdfbb RW |
591 | ac_subst_vars='am__EXEEXT_FALSE |
592 | am__EXEEXT_TRUE | |
593 | LTLIBOBJS | |
594 | MAINT | |
595 | MAINTAINER_MODE_FALSE | |
596 | MAINTAINER_MODE_TRUE | |
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 | |
6eb7d830 | 672 | am__nodep |
81ecdfbb RW |
673 | AMDEPBACKSLASH |
674 | AMDEP_FALSE | |
675 | AMDEP_TRUE | |
676 | am__quote | |
677 | am__include | |
678 | DEPDIR | |
679 | OBJEXT | |
680 | EXEEXT | |
681 | ac_ct_CC | |
682 | CPPFLAGS | |
683 | LDFLAGS | |
684 | CFLAGS | |
685 | CC | |
ebb300b2 | 686 | NM |
81ecdfbb | 687 | TARGETOBJS |
9df9de2c | 688 | DEFAULT_TARGET |
9810d34d SS |
689 | DEFAULT_TARGET_MIPS_FALSE |
690 | DEFAULT_TARGET_MIPS_TRUE | |
0a6f1bf2 AM |
691 | DEFAULT_TARGET_TILEGX_FALSE |
692 | DEFAULT_TARGET_TILEGX_TRUE | |
4fc1b9d4 L |
693 | DEFAULT_TARGET_X32_FALSE |
694 | DEFAULT_TARGET_X32_TRUE | |
364c7fa5 ILT |
695 | DEFAULT_TARGET_X86_64_FALSE |
696 | DEFAULT_TARGET_X86_64_TRUE | |
e79a4bad MK |
697 | DEFAULT_TARGET_S390_FALSE |
698 | DEFAULT_TARGET_S390_TRUE | |
364c7fa5 ILT |
699 | DEFAULT_TARGET_SPARC_FALSE |
700 | DEFAULT_TARGET_SPARC_TRUE | |
701 | DEFAULT_TARGET_POWERPC_FALSE | |
702 | DEFAULT_TARGET_POWERPC_TRUE | |
703 | DEFAULT_TARGET_I386_FALSE | |
704 | DEFAULT_TARGET_I386_TRUE | |
705 | DEFAULT_TARGET_ARM_FALSE | |
706 | DEFAULT_TARGET_ARM_TRUE | |
053a4d68 JY |
707 | DEFAULT_TARGET_AARCH64_FALSE |
708 | DEFAULT_TARGET_AARCH64_TRUE | |
81ecdfbb RW |
709 | PLUGINS_FALSE |
710 | PLUGINS_TRUE | |
711 | THREADS_FALSE | |
712 | THREADS_TRUE | |
4fda8867 NC |
713 | installed_linker |
714 | install_as_default | |
81ecdfbb RW |
715 | am__untar |
716 | am__tar | |
717 | AMTAR | |
718 | am__leading_dot | |
719 | SET_MAKE | |
720 | AWK | |
721 | mkdir_p | |
722 | MKDIR_P | |
723 | INSTALL_STRIP_PROGRAM | |
724 | STRIP | |
725 | install_sh | |
726 | MAKEINFO | |
727 | AUTOHEADER | |
728 | AUTOMAKE | |
729 | AUTOCONF | |
730 | ACLOCAL | |
731 | VERSION | |
732 | PACKAGE | |
733 | CYGPATH_W | |
734 | am__isrc | |
735 | INSTALL_DATA | |
736 | INSTALL_SCRIPT | |
737 | INSTALL_PROGRAM | |
738 | target_os | |
739 | target_vendor | |
740 | target_cpu | |
741 | target | |
742 | host_os | |
743 | host_vendor | |
744 | host_cpu | |
745 | host | |
746 | build_os | |
747 | build_vendor | |
748 | build_cpu | |
749 | build | |
750 | target_alias | |
751 | host_alias | |
752 | build_alias | |
753 | LIBS | |
754 | ECHO_T | |
755 | ECHO_N | |
756 | ECHO_C | |
757 | DEFS | |
758 | mandir | |
759 | localedir | |
760 | libdir | |
761 | psdir | |
762 | pdfdir | |
763 | dvidir | |
764 | htmldir | |
765 | infodir | |
766 | docdir | |
767 | oldincludedir | |
768 | includedir | |
769 | localstatedir | |
770 | sharedstatedir | |
771 | sysconfdir | |
772 | datadir | |
773 | datarootdir | |
774 | libexecdir | |
775 | sbindir | |
776 | bindir | |
777 | program_transform_name | |
778 | prefix | |
779 | exec_prefix | |
780 | PACKAGE_URL | |
781 | PACKAGE_BUGREPORT | |
782 | PACKAGE_STRING | |
783 | PACKAGE_VERSION | |
784 | PACKAGE_TARNAME | |
785 | PACKAGE_NAME | |
786 | PATH_SEPARATOR | |
787 | SHELL' | |
bae7f79e | 788 | ac_subst_files='' |
81ecdfbb RW |
789 | ac_user_opts=' |
790 | enable_option_checking | |
791 | with_sysroot | |
4fda8867 | 792 | enable_gold |
81ecdfbb RW |
793 | enable_threads |
794 | enable_plugins | |
6b1edb94 | 795 | enable_relro |
81ecdfbb | 796 | enable_targets |
3f3cddf1 | 797 | with_lib_path |
81ecdfbb RW |
798 | enable_dependency_tracking |
799 | enable_nls | |
800 | enable_werror | |
801 | enable_build_warnings | |
dc87f620 ILT |
802 | with_gold_ldflags |
803 | with_gold_ldadd | |
918357b9 | 804 | with_system_zlib |
81ecdfbb RW |
805 | enable_maintainer_mode |
806 | ' | |
807 | ac_precious_vars='build_alias | |
808 | host_alias | |
809 | target_alias | |
810 | CC | |
811 | CFLAGS | |
812 | LDFLAGS | |
813 | LIBS | |
814 | CPPFLAGS | |
815 | CXX | |
816 | CXXFLAGS | |
817 | CCC | |
818 | YACC | |
819 | YFLAGS | |
820 | CPP | |
821 | CXXCPP' | |
822 | ||
bae7f79e ILT |
823 | |
824 | # Initialize some variables set by options. | |
825 | ac_init_help= | |
826 | ac_init_version=false | |
81ecdfbb RW |
827 | ac_unrecognized_opts= |
828 | ac_unrecognized_sep= | |
bae7f79e ILT |
829 | # The variables have the same names as the options, with |
830 | # dashes changed to underlines. | |
831 | cache_file=/dev/null | |
832 | exec_prefix=NONE | |
833 | no_create= | |
834 | no_recursion= | |
835 | prefix=NONE | |
836 | program_prefix=NONE | |
837 | program_suffix=NONE | |
838 | program_transform_name=s,x,x, | |
839 | silent= | |
840 | site= | |
841 | srcdir= | |
842 | verbose= | |
843 | x_includes=NONE | |
844 | x_libraries=NONE | |
845 | ||
846 | # Installation directory options. | |
847 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
848 | # and all the variables that are supposed to be based on exec_prefix | |
849 | # by default will actually change. | |
850 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 851 | # (The list follows the same order as the GNU Coding Standards.) |
bae7f79e ILT |
852 | bindir='${exec_prefix}/bin' |
853 | sbindir='${exec_prefix}/sbin' | |
854 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
855 | datarootdir='${prefix}/share' |
856 | datadir='${datarootdir}' | |
bae7f79e ILT |
857 | sysconfdir='${prefix}/etc' |
858 | sharedstatedir='${prefix}/com' | |
859 | localstatedir='${prefix}/var' | |
bae7f79e ILT |
860 | includedir='${prefix}/include' |
861 | oldincludedir='/usr/include' | |
81ecdfbb RW |
862 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
863 | infodir='${datarootdir}/info' | |
864 | htmldir='${docdir}' | |
865 | dvidir='${docdir}' | |
866 | pdfdir='${docdir}' | |
867 | psdir='${docdir}' | |
868 | libdir='${exec_prefix}/lib' | |
869 | localedir='${datarootdir}/locale' | |
870 | mandir='${datarootdir}/man' | |
bae7f79e ILT |
871 | |
872 | ac_prev= | |
81ecdfbb | 873 | ac_dashdash= |
bae7f79e ILT |
874 | for ac_option |
875 | do | |
876 | # If the previous option needs an argument, assign it. | |
877 | if test -n "$ac_prev"; then | |
81ecdfbb | 878 | eval $ac_prev=\$ac_option |
bae7f79e ILT |
879 | ac_prev= |
880 | continue | |
881 | fi | |
882 | ||
81ecdfbb RW |
883 | case $ac_option in |
884 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
885 | *) ac_optarg=yes ;; | |
886 | esac | |
bae7f79e ILT |
887 | |
888 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
889 | ||
81ecdfbb RW |
890 | case $ac_dashdash$ac_option in |
891 | --) | |
892 | ac_dashdash=yes ;; | |
bae7f79e ILT |
893 | |
894 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
895 | ac_prev=bindir ;; | |
896 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
897 | bindir=$ac_optarg ;; | |
898 | ||
899 | -build | --build | --buil | --bui | --bu) | |
900 | ac_prev=build_alias ;; | |
901 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
902 | build_alias=$ac_optarg ;; | |
903 | ||
904 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
905 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
906 | ac_prev=cache_file ;; | |
907 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
908 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
909 | cache_file=$ac_optarg ;; | |
910 | ||
911 | --config-cache | -C) | |
912 | cache_file=config.cache ;; | |
913 | ||
81ecdfbb | 914 | -datadir | --datadir | --datadi | --datad) |
bae7f79e | 915 | ac_prev=datadir ;; |
81ecdfbb | 916 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bae7f79e ILT |
917 | datadir=$ac_optarg ;; |
918 | ||
81ecdfbb RW |
919 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
920 | | --dataroo | --dataro | --datar) | |
921 | ac_prev=datarootdir ;; | |
922 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
923 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
924 | datarootdir=$ac_optarg ;; | |
925 | ||
bae7f79e | 926 | -disable-* | --disable-*) |
81ecdfbb | 927 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bae7f79e | 928 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
929 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
930 | as_fn_error "invalid feature name: $ac_useropt" | |
931 | ac_useropt_orig=$ac_useropt | |
932 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
933 | case $ac_user_opts in | |
934 | *" | |
935 | "enable_$ac_useropt" | |
936 | "*) ;; | |
937 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
938 | ac_unrecognized_sep=', ';; | |
939 | esac | |
940 | eval enable_$ac_useropt=no ;; | |
941 | ||
942 | -docdir | --docdir | --docdi | --doc | --do) | |
943 | ac_prev=docdir ;; | |
944 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
945 | docdir=$ac_optarg ;; | |
946 | ||
947 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
948 | ac_prev=dvidir ;; | |
949 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
950 | dvidir=$ac_optarg ;; | |
bae7f79e ILT |
951 | |
952 | -enable-* | --enable-*) | |
81ecdfbb | 953 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bae7f79e | 954 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
955 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
956 | as_fn_error "invalid feature name: $ac_useropt" | |
957 | ac_useropt_orig=$ac_useropt | |
958 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
959 | case $ac_user_opts in | |
960 | *" | |
961 | "enable_$ac_useropt" | |
962 | "*) ;; | |
963 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
964 | ac_unrecognized_sep=', ';; | |
bae7f79e | 965 | esac |
81ecdfbb | 966 | eval enable_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
967 | |
968 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
969 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
970 | | --exec | --exe | --ex) | |
971 | ac_prev=exec_prefix ;; | |
972 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
973 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
974 | | --exec=* | --exe=* | --ex=*) | |
975 | exec_prefix=$ac_optarg ;; | |
976 | ||
977 | -gas | --gas | --ga | --g) | |
978 | # Obsolete; use --with-gas. | |
979 | with_gas=yes ;; | |
980 | ||
981 | -help | --help | --hel | --he | -h) | |
982 | ac_init_help=long ;; | |
983 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
984 | ac_init_help=recursive ;; | |
985 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
986 | ac_init_help=short ;; | |
987 | ||
988 | -host | --host | --hos | --ho) | |
989 | ac_prev=host_alias ;; | |
990 | -host=* | --host=* | --hos=* | --ho=*) | |
991 | host_alias=$ac_optarg ;; | |
992 | ||
81ecdfbb RW |
993 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
994 | ac_prev=htmldir ;; | |
995 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
996 | | --ht=*) | |
997 | htmldir=$ac_optarg ;; | |
998 | ||
bae7f79e ILT |
999 | -includedir | --includedir | --includedi | --included | --include \ |
1000 | | --includ | --inclu | --incl | --inc) | |
1001 | ac_prev=includedir ;; | |
1002 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1003 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1004 | includedir=$ac_optarg ;; | |
1005 | ||
1006 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1007 | ac_prev=infodir ;; | |
1008 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1009 | infodir=$ac_optarg ;; | |
1010 | ||
1011 | -libdir | --libdir | --libdi | --libd) | |
1012 | ac_prev=libdir ;; | |
1013 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1014 | libdir=$ac_optarg ;; | |
1015 | ||
1016 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1017 | | --libexe | --libex | --libe) | |
1018 | ac_prev=libexecdir ;; | |
1019 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1020 | | --libexe=* | --libex=* | --libe=*) | |
1021 | libexecdir=$ac_optarg ;; | |
1022 | ||
81ecdfbb RW |
1023 | -localedir | --localedir | --localedi | --localed | --locale) |
1024 | ac_prev=localedir ;; | |
1025 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1026 | localedir=$ac_optarg ;; | |
1027 | ||
bae7f79e | 1028 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1029 | | --localstate | --localstat | --localsta | --localst | --locals) |
bae7f79e ILT |
1030 | ac_prev=localstatedir ;; |
1031 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1032 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bae7f79e ILT |
1033 | localstatedir=$ac_optarg ;; |
1034 | ||
1035 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1036 | ac_prev=mandir ;; | |
1037 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1038 | mandir=$ac_optarg ;; | |
1039 | ||
1040 | -nfp | --nfp | --nf) | |
1041 | # Obsolete; use --without-fp. | |
1042 | with_fp=no ;; | |
1043 | ||
1044 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1045 | | --no-cr | --no-c | -n) | |
1046 | no_create=yes ;; | |
1047 | ||
1048 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1049 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1050 | no_recursion=yes ;; | |
1051 | ||
1052 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1053 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1054 | | --oldin | --oldi | --old | --ol | --o) | |
1055 | ac_prev=oldincludedir ;; | |
1056 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1057 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1058 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1059 | oldincludedir=$ac_optarg ;; | |
1060 | ||
1061 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1062 | ac_prev=prefix ;; | |
1063 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1064 | prefix=$ac_optarg ;; | |
1065 | ||
1066 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1067 | | --program-pre | --program-pr | --program-p) | |
1068 | ac_prev=program_prefix ;; | |
1069 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1070 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1071 | program_prefix=$ac_optarg ;; | |
1072 | ||
1073 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1074 | | --program-suf | --program-su | --program-s) | |
1075 | ac_prev=program_suffix ;; | |
1076 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1077 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1078 | program_suffix=$ac_optarg ;; | |
1079 | ||
1080 | -program-transform-name | --program-transform-name \ | |
1081 | | --program-transform-nam | --program-transform-na \ | |
1082 | | --program-transform-n | --program-transform- \ | |
1083 | | --program-transform | --program-transfor \ | |
1084 | | --program-transfo | --program-transf \ | |
1085 | | --program-trans | --program-tran \ | |
1086 | | --progr-tra | --program-tr | --program-t) | |
1087 | ac_prev=program_transform_name ;; | |
1088 | -program-transform-name=* | --program-transform-name=* \ | |
1089 | | --program-transform-nam=* | --program-transform-na=* \ | |
1090 | | --program-transform-n=* | --program-transform-=* \ | |
1091 | | --program-transform=* | --program-transfor=* \ | |
1092 | | --program-transfo=* | --program-transf=* \ | |
1093 | | --program-trans=* | --program-tran=* \ | |
1094 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1095 | program_transform_name=$ac_optarg ;; | |
1096 | ||
81ecdfbb RW |
1097 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1098 | ac_prev=pdfdir ;; | |
1099 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1100 | pdfdir=$ac_optarg ;; | |
1101 | ||
1102 | -psdir | --psdir | --psdi | --psd | --ps) | |
1103 | ac_prev=psdir ;; | |
1104 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1105 | psdir=$ac_optarg ;; | |
1106 | ||
bae7f79e ILT |
1107 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1108 | | -silent | --silent | --silen | --sile | --sil) | |
1109 | silent=yes ;; | |
1110 | ||
1111 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1112 | ac_prev=sbindir ;; | |
1113 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1114 | | --sbi=* | --sb=*) | |
1115 | sbindir=$ac_optarg ;; | |
1116 | ||
1117 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1118 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1119 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1120 | | --sha | --sh) | |
1121 | ac_prev=sharedstatedir ;; | |
1122 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1123 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1124 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1125 | | --sha=* | --sh=*) | |
1126 | sharedstatedir=$ac_optarg ;; | |
1127 | ||
1128 | -site | --site | --sit) | |
1129 | ac_prev=site ;; | |
1130 | -site=* | --site=* | --sit=*) | |
1131 | site=$ac_optarg ;; | |
1132 | ||
1133 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1134 | ac_prev=srcdir ;; | |
1135 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1136 | srcdir=$ac_optarg ;; | |
1137 | ||
1138 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1139 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1140 | ac_prev=sysconfdir ;; | |
1141 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1142 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1143 | sysconfdir=$ac_optarg ;; | |
1144 | ||
1145 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1146 | ac_prev=target_alias ;; | |
1147 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1148 | target_alias=$ac_optarg ;; | |
1149 | ||
1150 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1151 | verbose=yes ;; | |
1152 | ||
1153 | -version | --version | --versio | --versi | --vers | -V) | |
1154 | ac_init_version=: ;; | |
1155 | ||
1156 | -with-* | --with-*) | |
81ecdfbb | 1157 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bae7f79e | 1158 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1159 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1160 | as_fn_error "invalid package name: $ac_useropt" | |
1161 | ac_useropt_orig=$ac_useropt | |
1162 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1163 | case $ac_user_opts in | |
1164 | *" | |
1165 | "with_$ac_useropt" | |
1166 | "*) ;; | |
1167 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1168 | ac_unrecognized_sep=', ';; | |
bae7f79e | 1169 | esac |
81ecdfbb | 1170 | eval with_$ac_useropt=\$ac_optarg ;; |
bae7f79e ILT |
1171 | |
1172 | -without-* | --without-*) | |
81ecdfbb | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bae7f79e | 1174 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1176 | as_fn_error "invalid package name: $ac_useropt" | |
1177 | ac_useropt_orig=$ac_useropt | |
1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1179 | case $ac_user_opts in | |
1180 | *" | |
1181 | "with_$ac_useropt" | |
1182 | "*) ;; | |
1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1184 | ac_unrecognized_sep=', ';; | |
1185 | esac | |
1186 | eval with_$ac_useropt=no ;; | |
bae7f79e ILT |
1187 | |
1188 | --x) | |
1189 | # Obsolete; use --with-x. | |
1190 | with_x=yes ;; | |
1191 | ||
1192 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1193 | | --x-incl | --x-inc | --x-in | --x-i) | |
1194 | ac_prev=x_includes ;; | |
1195 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1196 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1197 | x_includes=$ac_optarg ;; | |
1198 | ||
1199 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1200 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1201 | ac_prev=x_libraries ;; | |
1202 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1203 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1204 | x_libraries=$ac_optarg ;; | |
1205 | ||
81ecdfbb RW |
1206 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1207 | Try \`$0 --help' for more information." | |
bae7f79e ILT |
1208 | ;; |
1209 | ||
1210 | *=*) | |
1211 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1212 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1213 | case $ac_envvar in #( |
1214 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1215 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1216 | esac | |
1217 | eval $ac_envvar=\$ac_optarg | |
bae7f79e ILT |
1218 | export $ac_envvar ;; |
1219 | ||
1220 | *) | |
1221 | # FIXME: should be removed in autoconf 3.0. | |
81ecdfbb | 1222 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bae7f79e | 1223 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1224 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bae7f79e ILT |
1225 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1226 | ;; | |
1227 | ||
1228 | esac | |
1229 | done | |
1230 | ||
1231 | if test -n "$ac_prev"; then | |
1232 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
81ecdfbb | 1233 | as_fn_error "missing argument to $ac_option" |
bae7f79e ILT |
1234 | fi |
1235 | ||
81ecdfbb RW |
1236 | if test -n "$ac_unrecognized_opts"; then |
1237 | case $enable_option_checking in | |
1238 | no) ;; | |
1239 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1240 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bae7f79e | 1241 | esac |
81ecdfbb | 1242 | fi |
bae7f79e | 1243 | |
81ecdfbb RW |
1244 | # Check all directory arguments for consistency. |
1245 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1246 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1247 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1248 | libdir localedir mandir | |
bae7f79e | 1249 | do |
81ecdfbb RW |
1250 | eval ac_val=\$$ac_var |
1251 | # Remove trailing slashes. | |
1252 | case $ac_val in | |
1253 | */ ) | |
1254 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1255 | eval $ac_var=\$ac_val;; | |
1256 | esac | |
1257 | # Be sure to have absolute directory names. | |
bae7f79e | 1258 | case $ac_val in |
81ecdfbb RW |
1259 | [\\/$]* | ?:[\\/]* ) continue;; |
1260 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bae7f79e | 1261 | esac |
81ecdfbb | 1262 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bae7f79e ILT |
1263 | done |
1264 | ||
1265 | # There might be people who depend on the old broken behavior: `$host' | |
1266 | # used to hold the argument of --host etc. | |
1267 | # FIXME: To remove some day. | |
1268 | build=$build_alias | |
1269 | host=$host_alias | |
1270 | target=$target_alias | |
1271 | ||
1272 | # FIXME: To remove some day. | |
1273 | if test "x$host_alias" != x; then | |
1274 | if test "x$build_alias" = x; then | |
1275 | cross_compiling=maybe | |
81ecdfbb | 1276 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bae7f79e ILT |
1277 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1278 | elif test "x$build_alias" != "x$host_alias"; then | |
1279 | cross_compiling=yes | |
1280 | fi | |
1281 | fi | |
1282 | ||
1283 | ac_tool_prefix= | |
1284 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1285 | ||
1286 | test "$silent" = yes && exec 6>/dev/null | |
1287 | ||
1288 | ||
81ecdfbb RW |
1289 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1290 | ac_ls_di=`ls -di .` && | |
1291 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1292 | as_fn_error "working directory cannot be determined" | |
1293 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1294 | as_fn_error "pwd does not report name of working directory" | |
1295 | ||
1296 | ||
bae7f79e ILT |
1297 | # Find the source files, if location was not specified. |
1298 | if test -z "$srcdir"; then | |
1299 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1300 | # Try the directory containing this script, then the parent directory. |
1301 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1302 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1303 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1304 | X"$as_myself" : 'X\(//\)$' \| \ | |
1305 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1306 | $as_echo X"$as_myself" | | |
1307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1308 | s//\1/ | |
1309 | q | |
1310 | } | |
1311 | /^X\(\/\/\)[^/].*/{ | |
1312 | s//\1/ | |
1313 | q | |
1314 | } | |
1315 | /^X\(\/\/\)$/{ | |
1316 | s//\1/ | |
1317 | q | |
1318 | } | |
1319 | /^X\(\/\).*/{ | |
1320 | s//\1/ | |
1321 | q | |
1322 | } | |
1323 | s/.*/./; q'` | |
bae7f79e | 1324 | srcdir=$ac_confdir |
81ecdfbb | 1325 | if test ! -r "$srcdir/$ac_unique_file"; then |
bae7f79e ILT |
1326 | srcdir=.. |
1327 | fi | |
1328 | else | |
1329 | ac_srcdir_defaulted=no | |
1330 | fi | |
81ecdfbb RW |
1331 | if test ! -r "$srcdir/$ac_unique_file"; then |
1332 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1333 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1334 | fi | |
1335 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1336 | ac_abs_confdir=`( | |
1337 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1338 | pwd)` | |
1339 | # When building in place, set srcdir=. | |
1340 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1341 | srcdir=. | |
1342 | fi | |
1343 | # Remove unnecessary trailing slashes from srcdir. | |
1344 | # Double slashes in file names in object file debugging info | |
1345 | # mess up M-x gdb in Emacs. | |
1346 | case $srcdir in | |
1347 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1348 | esac | |
1349 | for ac_var in $ac_precious_vars; do | |
1350 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1351 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1352 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1353 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1354 | done | |
bae7f79e ILT |
1355 | |
1356 | # | |
1357 | # Report the --help message. | |
1358 | # | |
1359 | if test "$ac_init_help" = "long"; then | |
1360 | # Omit some internal or obsolete options to make the list less imposing. | |
1361 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1362 | cat <<_ACEOF | |
8486ee48 | 1363 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
bae7f79e ILT |
1364 | |
1365 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1366 | ||
1367 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1368 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1369 | ||
1370 | Defaults for the options are specified in brackets. | |
1371 | ||
1372 | Configuration: | |
1373 | -h, --help display this help and exit | |
1374 | --help=short display options specific to this package | |
1375 | --help=recursive display the short help of all the included packages | |
1376 | -V, --version display version information and exit | |
1377 | -q, --quiet, --silent do not print \`checking...' messages | |
1378 | --cache-file=FILE cache test results in FILE [disabled] | |
1379 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1380 | -n, --no-create do not create output files | |
1381 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1382 | ||
bae7f79e ILT |
1383 | Installation directories: |
1384 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1385 | [$ac_default_prefix] |
bae7f79e | 1386 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1387 | [PREFIX] |
bae7f79e ILT |
1388 | |
1389 | By default, \`make install' will install all the files in | |
1390 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1391 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1392 | for instance \`--prefix=\$HOME'. | |
1393 | ||
1394 | For better control, use the options below. | |
1395 | ||
1396 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1397 | --bindir=DIR user executables [EPREFIX/bin] |
1398 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1399 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1400 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1401 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1402 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1403 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1404 | --includedir=DIR C header files [PREFIX/include] | |
1405 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1406 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1407 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1408 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1409 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1410 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1411 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] | |
1412 | --htmldir=DIR html documentation [DOCDIR] | |
1413 | --dvidir=DIR dvi documentation [DOCDIR] | |
1414 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1415 | --psdir=DIR ps documentation [DOCDIR] | |
bae7f79e ILT |
1416 | _ACEOF |
1417 | ||
1418 | cat <<\_ACEOF | |
1419 | ||
1420 | Program names: | |
1421 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1422 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1423 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1424 | ||
1425 | System types: | |
1426 | --build=BUILD configure for building on BUILD [guessed] | |
1427 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1428 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1429 | _ACEOF | |
1430 | fi | |
1431 | ||
1432 | if test -n "$ac_init_help"; then | |
8486ee48 ILT |
1433 | case $ac_init_help in |
1434 | short | recursive ) echo "Configuration of gold 0.1:";; | |
1435 | esac | |
bae7f79e ILT |
1436 | cat <<\_ACEOF |
1437 | ||
1438 | Optional Features: | |
81ecdfbb | 1439 | --disable-option-checking ignore unrecognized --enable/--with options |
bae7f79e ILT |
1440 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1441 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1442 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
fe9a4c12 | 1443 | --enable-threads multi-threaded linking |
89fc3421 | 1444 | --enable-plugins linker plugins |
6b1edb94 | 1445 | --enable-relro enable -z relro in ELF linker by default |
193a53d9 | 1446 | --enable-targets alternative target configurations |
bae7f79e ILT |
1447 | --disable-dependency-tracking speeds up one-time build |
1448 | --enable-dependency-tracking do not reject slow dependency extractors | |
1449 | --disable-nls do not use Native Language Support | |
1450 | --enable-werror treat compile warnings as errors | |
1451 | --enable-build-warnings enable build-time compiler warnings | |
1452 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1453 | (and sometimes confusing) to the casual installer | |
1454 | ||
ad2d6943 ILT |
1455 | Optional Packages: |
1456 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1457 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1458 | --with-sysroot=DIR search for usr/lib et al within DIR | |
3f3cddf1 | 1459 | --with-lib-path=dir1:dir2... set default LIB_PATH |
dc87f620 ILT |
1460 | --with-gold-ldflags=FLAGS additional link flags for gold |
1461 | --with-gold-ldadd=LIBS additional libraries for gold | |
918357b9 | 1462 | --with-system-zlib use installed libz |
ad2d6943 | 1463 | |
bae7f79e ILT |
1464 | Some influential environment variables: |
1465 | CC C compiler command | |
1466 | CFLAGS C compiler flags | |
1467 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1468 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1469 | LIBS libraries to pass to the linker, e.g. -l<library> |
1470 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1471 | you have headers in a nonstandard directory <include dir> | |
bae7f79e ILT |
1472 | CXX C++ compiler command |
1473 | CXXFLAGS C++ compiler flags | |
81ecdfbb RW |
1474 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1475 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1476 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1477 | This script will default YFLAGS to the empty string to avoid a | |
1478 | default value of `-d' given by some make applications. | |
9a0910c3 | 1479 | CPP C preprocessor |
54dc6425 | 1480 | CXXCPP C++ preprocessor |
bae7f79e ILT |
1481 | |
1482 | Use these variables to override the choices made by `configure' or to help | |
1483 | it to find libraries and programs with nonstandard names/locations. | |
1484 | ||
81ecdfbb | 1485 | Report bugs to the package provider. |
bae7f79e | 1486 | _ACEOF |
81ecdfbb | 1487 | ac_status=$? |
bae7f79e ILT |
1488 | fi |
1489 | ||
1490 | if test "$ac_init_help" = "recursive"; then | |
1491 | # If there are subdirs, report their specific --help. | |
bae7f79e | 1492 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1493 | test -d "$ac_dir" || |
1494 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1495 | continue | |
bae7f79e ILT |
1496 | ac_builddir=. |
1497 | ||
81ecdfbb RW |
1498 | case "$ac_dir" in |
1499 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1500 | *) | |
1501 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1502 | # A ".." for each directory in $ac_dir_suffix. | |
1503 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1504 | case $ac_top_builddir_sub in | |
1505 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1506 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1507 | esac ;; | |
1508 | esac | |
1509 | ac_abs_top_builddir=$ac_pwd | |
1510 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1511 | # for backward compatibility: | |
1512 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
1513 | |
1514 | case $srcdir in | |
81ecdfbb | 1515 | .) # We are building in place. |
bae7f79e | 1516 | ac_srcdir=. |
81ecdfbb RW |
1517 | ac_top_srcdir=$ac_top_builddir_sub |
1518 | ac_abs_top_srcdir=$ac_pwd ;; | |
1519 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 1520 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1521 | ac_top_srcdir=$srcdir |
1522 | ac_abs_top_srcdir=$srcdir ;; | |
1523 | *) # Relative name. | |
1524 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1525 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1526 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 1527 | esac |
81ecdfbb RW |
1528 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1529 | ||
1530 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1531 | # Check for guested configure. | |
1532 | if test -f "$ac_srcdir/configure.gnu"; then | |
1533 | echo && | |
1534 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1535 | elif test -f "$ac_srcdir/configure"; then | |
1536 | echo && | |
1537 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bae7f79e | 1538 | else |
81ecdfbb RW |
1539 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1540 | fi || ac_status=$? | |
1541 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bae7f79e ILT |
1542 | done |
1543 | fi | |
1544 | ||
81ecdfbb | 1545 | test -n "$ac_init_help" && exit $ac_status |
bae7f79e ILT |
1546 | if $ac_init_version; then |
1547 | cat <<\_ACEOF | |
8486ee48 | 1548 | gold configure 0.1 |
81ecdfbb | 1549 | generated by GNU Autoconf 2.64 |
bae7f79e | 1550 | |
81ecdfbb | 1551 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
1552 | This configure script is free software; the Free Software Foundation |
1553 | gives unlimited permission to copy, distribute and modify it. | |
1554 | _ACEOF | |
81ecdfbb | 1555 | exit |
bae7f79e | 1556 | fi |
bae7f79e | 1557 | |
81ecdfbb RW |
1558 | ## ------------------------ ## |
1559 | ## Autoconf initialization. ## | |
1560 | ## ------------------------ ## | |
bae7f79e | 1561 | |
81ecdfbb RW |
1562 | # ac_fn_c_try_compile LINENO |
1563 | # -------------------------- | |
1564 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1565 | ac_fn_c_try_compile () | |
bae7f79e | 1566 | { |
81ecdfbb RW |
1567 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1568 | rm -f conftest.$ac_objext | |
1569 | if { { ac_try="$ac_compile" | |
1570 | case "(($ac_try" in | |
1571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1572 | *) ac_try_echo=$ac_try;; | |
1573 | esac | |
1574 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1575 | $as_echo "$ac_try_echo"; } >&5 | |
1576 | (eval "$ac_compile") 2>conftest.err | |
1577 | ac_status=$? | |
1578 | if test -s conftest.err; then | |
1579 | grep -v '^ *+' conftest.err >conftest.er1 | |
1580 | cat conftest.er1 >&5 | |
1581 | mv -f conftest.er1 conftest.err | |
1582 | fi | |
1583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1584 | test $ac_status = 0; } && { | |
1585 | test -z "$ac_c_werror_flag" || | |
1586 | test ! -s conftest.err | |
1587 | } && test -s conftest.$ac_objext; then : | |
1588 | ac_retval=0 | |
1589 | else | |
1590 | $as_echo "$as_me: failed program was:" >&5 | |
1591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1592 | |
81ecdfbb RW |
1593 | ac_retval=1 |
1594 | fi | |
1595 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1596 | return $ac_retval | |
bae7f79e | 1597 | |
81ecdfbb | 1598 | } # ac_fn_c_try_compile |
bae7f79e | 1599 | |
81ecdfbb RW |
1600 | # ac_fn_cxx_try_compile LINENO |
1601 | # ---------------------------- | |
1602 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1603 | ac_fn_cxx_try_compile () | |
1604 | { | |
1605 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1606 | rm -f conftest.$ac_objext | |
1607 | if { { ac_try="$ac_compile" | |
1608 | case "(($ac_try" in | |
1609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1610 | *) ac_try_echo=$ac_try;; | |
1611 | esac | |
1612 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1613 | $as_echo "$ac_try_echo"; } >&5 | |
1614 | (eval "$ac_compile") 2>conftest.err | |
1615 | ac_status=$? | |
1616 | if test -s conftest.err; then | |
1617 | grep -v '^ *+' conftest.err >conftest.er1 | |
1618 | cat conftest.er1 >&5 | |
1619 | mv -f conftest.er1 conftest.err | |
1620 | fi | |
1621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1622 | test $ac_status = 0; } && { | |
1623 | test -z "$ac_cxx_werror_flag" || | |
1624 | test ! -s conftest.err | |
1625 | } && test -s conftest.$ac_objext; then : | |
1626 | ac_retval=0 | |
1627 | else | |
1628 | $as_echo "$as_me: failed program was:" >&5 | |
1629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1630 | |
81ecdfbb RW |
1631 | ac_retval=1 |
1632 | fi | |
1633 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1634 | return $ac_retval | |
bae7f79e | 1635 | |
81ecdfbb | 1636 | } # ac_fn_cxx_try_compile |
bae7f79e | 1637 | |
81ecdfbb RW |
1638 | # ac_fn_c_try_cpp LINENO |
1639 | # ---------------------- | |
1640 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1641 | ac_fn_c_try_cpp () | |
1642 | { | |
1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1644 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1645 | case "(($ac_try" in | |
1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1647 | *) ac_try_echo=$ac_try;; | |
1648 | esac | |
1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1650 | $as_echo "$ac_try_echo"; } >&5 | |
1651 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1652 | ac_status=$? | |
1653 | if test -s conftest.err; then | |
1654 | grep -v '^ *+' conftest.err >conftest.er1 | |
1655 | cat conftest.er1 >&5 | |
1656 | mv -f conftest.er1 conftest.err | |
1657 | fi | |
1658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1659 | test $ac_status = 0; } >/dev/null && { | |
1660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1661 | test ! -s conftest.err | |
1662 | }; then : | |
1663 | ac_retval=0 | |
1664 | else | |
1665 | $as_echo "$as_me: failed program was:" >&5 | |
1666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1667 | |
81ecdfbb RW |
1668 | ac_retval=1 |
1669 | fi | |
1670 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1671 | return $ac_retval | |
bae7f79e | 1672 | |
81ecdfbb | 1673 | } # ac_fn_c_try_cpp |
bae7f79e | 1674 | |
81ecdfbb RW |
1675 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1676 | # ------------------------------------------------------- | |
1677 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1678 | # the include files in INCLUDES and setting the cache variable VAR | |
1679 | # accordingly. | |
1680 | ac_fn_c_check_header_mongrel () | |
1681 | { | |
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1683 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1685 | $as_echo_n "checking for $2... " >&6; } | |
1686 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1687 | $as_echo_n "(cached) " >&6 | |
1688 | fi | |
1689 | eval ac_res=\$$3 | |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1691 | $as_echo "$ac_res" >&6; } | |
1692 | else | |
1693 | # Is the header compilable? | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1695 | $as_echo_n "checking $2 usability... " >&6; } | |
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1697 | /* end confdefs.h. */ | |
1698 | $4 | |
1699 | #include <$2> | |
bae7f79e | 1700 | _ACEOF |
81ecdfbb RW |
1701 | if ac_fn_c_try_compile "$LINENO"; then : |
1702 | ac_header_compiler=yes | |
1703 | else | |
1704 | ac_header_compiler=no | |
1705 | fi | |
1706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1708 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 1709 | |
81ecdfbb RW |
1710 | # Is the header present? |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1712 | $as_echo_n "checking $2 presence... " >&6; } | |
1713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1714 | /* end confdefs.h. */ | |
1715 | #include <$2> | |
1716 | _ACEOF | |
1717 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1718 | ac_header_preproc=yes | |
1719 | else | |
1720 | ac_header_preproc=no | |
1721 | fi | |
1722 | rm -f conftest.err conftest.$ac_ext | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1724 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 1725 | |
81ecdfbb RW |
1726 | # So? What about this header? |
1727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1728 | yes:no: ) | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1730 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1732 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1733 | ;; | |
1734 | no:yes:* ) | |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1736 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1738 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1740 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1742 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1744 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1745 | ;; | |
1746 | esac | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1748 | $as_echo_n "checking for $2... " >&6; } | |
1749 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1750 | $as_echo_n "(cached) " >&6 | |
1751 | else | |
1752 | eval "$3=\$ac_header_compiler" | |
1753 | fi | |
1754 | eval ac_res=\$$3 | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1756 | $as_echo "$ac_res" >&6; } | |
1757 | fi | |
1758 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1759 | |
81ecdfbb | 1760 | } # ac_fn_c_check_header_mongrel |
bae7f79e | 1761 | |
81ecdfbb RW |
1762 | # ac_fn_c_try_run LINENO |
1763 | # ---------------------- | |
1764 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1765 | # that executables *can* be run. | |
1766 | ac_fn_c_try_run () | |
bae7f79e | 1767 | { |
81ecdfbb RW |
1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1769 | if { { ac_try="$ac_link" | |
1770 | case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_link") 2>&5 | |
1777 | ac_status=$? | |
1778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1780 | { { case "(($ac_try" in | |
1781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1782 | *) ac_try_echo=$ac_try;; | |
1783 | esac | |
1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1785 | $as_echo "$ac_try_echo"; } >&5 | |
1786 | (eval "$ac_try") 2>&5 | |
1787 | ac_status=$? | |
1788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1789 | test $ac_status = 0; }; }; then : | |
1790 | ac_retval=0 | |
1791 | else | |
1792 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1795 | |
81ecdfbb RW |
1796 | ac_retval=$ac_status |
1797 | fi | |
1798 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1799 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1800 | return $ac_retval | |
bae7f79e | 1801 | |
81ecdfbb | 1802 | } # ac_fn_c_try_run |
bae7f79e | 1803 | |
81ecdfbb RW |
1804 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1805 | # ------------------------------------------------------- | |
1806 | # Tests whether HEADER exists and can be compiled using the include files in | |
1807 | # INCLUDES, setting the cache variable VAR accordingly. | |
1808 | ac_fn_c_check_header_compile () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1812 | $as_echo_n "checking for $2... " >&6; } | |
1813 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1814 | $as_echo_n "(cached) " >&6 | |
1815 | else | |
1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1817 | /* end confdefs.h. */ | |
1818 | $4 | |
1819 | #include <$2> | |
1820 | _ACEOF | |
1821 | if ac_fn_c_try_compile "$LINENO"; then : | |
1822 | eval "$3=yes" | |
1823 | else | |
1824 | eval "$3=no" | |
1825 | fi | |
1826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1827 | fi | |
1828 | eval ac_res=\$$3 | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1830 | $as_echo "$ac_res" >&6; } | |
1831 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1832 | |
81ecdfbb | 1833 | } # ac_fn_c_check_header_compile |
bae7f79e | 1834 | |
81ecdfbb RW |
1835 | # ac_fn_c_try_link LINENO |
1836 | # ----------------------- | |
1837 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1838 | ac_fn_c_try_link () | |
1839 | { | |
1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1842 | if { { ac_try="$ac_link" | |
1843 | case "(($ac_try" in | |
1844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1845 | *) ac_try_echo=$ac_try;; | |
1846 | esac | |
1847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1848 | $as_echo "$ac_try_echo"; } >&5 | |
1849 | (eval "$ac_link") 2>conftest.err | |
1850 | ac_status=$? | |
1851 | if test -s conftest.err; then | |
1852 | grep -v '^ *+' conftest.err >conftest.er1 | |
1853 | cat conftest.er1 >&5 | |
1854 | mv -f conftest.er1 conftest.err | |
1855 | fi | |
1856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1857 | test $ac_status = 0; } && { | |
1858 | test -z "$ac_c_werror_flag" || | |
1859 | test ! -s conftest.err | |
1860 | } && test -s conftest$ac_exeext && { | |
1861 | test "$cross_compiling" = yes || | |
1862 | $as_test_x conftest$ac_exeext | |
1863 | }; then : | |
1864 | ac_retval=0 | |
1865 | else | |
1866 | $as_echo "$as_me: failed program was:" >&5 | |
1867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 1868 | |
81ecdfbb RW |
1869 | ac_retval=1 |
1870 | fi | |
1871 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1872 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1873 | # interfere with the next link command; also delete a directory that is | |
1874 | # left behind by Apple's compiler. We do this before executing the actions. | |
1875 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1876 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1877 | return $ac_retval | |
bae7f79e | 1878 | |
81ecdfbb | 1879 | } # ac_fn_c_try_link |
bae7f79e | 1880 | |
81ecdfbb RW |
1881 | # ac_fn_c_check_func LINENO FUNC VAR |
1882 | # ---------------------------------- | |
1883 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1884 | ac_fn_c_check_func () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1888 | $as_echo_n "checking for $2... " >&6; } | |
1889 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1890 | $as_echo_n "(cached) " >&6 | |
1891 | else | |
1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1893 | /* end confdefs.h. */ | |
1894 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1896 | #define $2 innocuous_$2 | |
bae7f79e | 1897 | |
81ecdfbb RW |
1898 | /* System header to define __stub macros and hopefully few prototypes, |
1899 | which can conflict with char $2 (); below. | |
1900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1901 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 1902 | |
81ecdfbb RW |
1903 | #ifdef __STDC__ |
1904 | # include <limits.h> | |
1905 | #else | |
1906 | # include <assert.h> | |
1907 | #endif | |
bae7f79e | 1908 | |
81ecdfbb | 1909 | #undef $2 |
bae7f79e | 1910 | |
81ecdfbb RW |
1911 | /* Override any GCC internal prototype to avoid an error. |
1912 | Use char because int might match the return type of a GCC | |
1913 | builtin and then its argument prototype would still apply. */ | |
1914 | #ifdef __cplusplus | |
1915 | extern "C" | |
1916 | #endif | |
1917 | char $2 (); | |
1918 | /* The GNU C library defines this for functions which it implements | |
1919 | to always fail with ENOSYS. Some functions are actually named | |
1920 | something starting with __ and the normal name is an alias. */ | |
1921 | #if defined __stub_$2 || defined __stub___$2 | |
1922 | choke me | |
1923 | #endif | |
1924 | ||
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | return $2 (); | |
1929 | ; | |
1930 | return 0; | |
1931 | } | |
bae7f79e | 1932 | _ACEOF |
81ecdfbb RW |
1933 | if ac_fn_c_try_link "$LINENO"; then : |
1934 | eval "$3=yes" | |
1935 | else | |
1936 | eval "$3=no" | |
1937 | fi | |
1938 | rm -f core conftest.err conftest.$ac_objext \ | |
1939 | conftest$ac_exeext conftest.$ac_ext | |
1940 | fi | |
1941 | eval ac_res=\$$3 | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1943 | $as_echo "$ac_res" >&6; } | |
1944 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1945 | |
81ecdfbb | 1946 | } # ac_fn_c_check_func |
bae7f79e | 1947 | |
81ecdfbb RW |
1948 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1949 | # ------------------------------------ | |
1950 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1951 | ac_fn_c_check_decl () | |
1952 | { | |
1953 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
1954 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1955 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1957 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1958 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1959 | $as_echo_n "(cached) " >&6 | |
1960 | else | |
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1962 | /* end confdefs.h. */ | |
1963 | $4 | |
1964 | int | |
1965 | main () | |
1966 | { | |
7223e9ca ILT |
1967 | #ifndef $as_decl_name |
1968 | #ifdef __cplusplus | |
1969 | (void) $as_decl_use; | |
1970 | #else | |
1971 | (void) $as_decl_name; | |
1972 | #endif | |
81ecdfbb RW |
1973 | #endif |
1974 | ||
1975 | ; | |
1976 | return 0; | |
1977 | } | |
bae7f79e | 1978 | _ACEOF |
81ecdfbb RW |
1979 | if ac_fn_c_try_compile "$LINENO"; then : |
1980 | eval "$3=yes" | |
1981 | else | |
1982 | eval "$3=no" | |
1983 | fi | |
1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1985 | fi | |
1986 | eval ac_res=\$$3 | |
1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1988 | $as_echo "$ac_res" >&6; } | |
1989 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 1990 | |
81ecdfbb | 1991 | } # ac_fn_c_check_decl |
bae7f79e | 1992 | |
81ecdfbb RW |
1993 | # ac_fn_cxx_try_cpp LINENO |
1994 | # ------------------------ | |
1995 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1996 | ac_fn_cxx_try_cpp () | |
1997 | { | |
1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1999 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2000 | case "(($ac_try" in | |
2001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2002 | *) ac_try_echo=$ac_try;; | |
2003 | esac | |
2004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2005 | $as_echo "$ac_try_echo"; } >&5 | |
2006 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2007 | ac_status=$? | |
2008 | if test -s conftest.err; then | |
2009 | grep -v '^ *+' conftest.err >conftest.er1 | |
2010 | cat conftest.er1 >&5 | |
2011 | mv -f conftest.er1 conftest.err | |
bae7f79e | 2012 | fi |
81ecdfbb RW |
2013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2014 | test $ac_status = 0; } >/dev/null && { | |
2015 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2016 | test ! -s conftest.err | |
2017 | }; then : | |
2018 | ac_retval=0 | |
2019 | else | |
2020 | $as_echo "$as_me: failed program was:" >&5 | |
2021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2022 | ||
2023 | ac_retval=1 | |
bae7f79e | 2024 | fi |
81ecdfbb RW |
2025 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2026 | return $ac_retval | |
bae7f79e | 2027 | |
81ecdfbb RW |
2028 | } # ac_fn_cxx_try_cpp |
2029 | ||
2030 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2031 | # --------------------------------------------------------- | |
2032 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2033 | # the include files in INCLUDES and setting the cache variable VAR | |
2034 | # accordingly. | |
2035 | ac_fn_cxx_check_header_mongrel () | |
2036 | { | |
2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2038 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2040 | $as_echo_n "checking for $2... " >&6; } | |
2041 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2042 | $as_echo_n "(cached) " >&6 | |
2043 | fi | |
2044 | eval ac_res=\$$3 | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
bae7f79e | 2047 | else |
81ecdfbb RW |
2048 | # Is the header compilable? |
2049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2050 | $as_echo_n "checking $2 usability... " >&6; } | |
2051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2052 | /* end confdefs.h. */ | |
2053 | $4 | |
2054 | #include <$2> | |
2055 | _ACEOF | |
2056 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2057 | ac_header_compiler=yes | |
2058 | else | |
2059 | ac_header_compiler=no | |
bae7f79e | 2060 | fi |
81ecdfbb RW |
2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2063 | $as_echo "$ac_header_compiler" >&6; } | |
bae7f79e | 2064 | |
81ecdfbb RW |
2065 | # Is the header present? |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2067 | $as_echo_n "checking $2 presence... " >&6; } | |
2068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2069 | /* end confdefs.h. */ | |
2070 | #include <$2> | |
2071 | _ACEOF | |
2072 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2073 | ac_header_preproc=yes | |
2074 | else | |
2075 | ac_header_preproc=no | |
bae7f79e | 2076 | fi |
81ecdfbb RW |
2077 | rm -f conftest.err conftest.$ac_ext |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2079 | $as_echo "$ac_header_preproc" >&6; } | |
bae7f79e | 2080 | |
81ecdfbb RW |
2081 | # So? What about this header? |
2082 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2083 | yes:no: ) | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2085 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2087 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2088 | ;; | |
2089 | no:yes:* ) | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2091 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2095 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2100 | ;; | |
2101 | esac | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2103 | $as_echo_n "checking for $2... " >&6; } | |
2104 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2105 | $as_echo_n "(cached) " >&6 | |
2106 | else | |
2107 | eval "$3=\$ac_header_compiler" | |
2108 | fi | |
2109 | eval ac_res=\$$3 | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2111 | $as_echo "$ac_res" >&6; } | |
2112 | fi | |
2113 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2114 | ||
2115 | } # ac_fn_cxx_check_header_mongrel | |
2116 | ||
2117 | # ac_fn_cxx_try_link LINENO | |
2118 | # ------------------------- | |
2119 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2120 | ac_fn_cxx_try_link () | |
2121 | { | |
2122 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2124 | if { { ac_try="$ac_link" | |
2125 | case "(($ac_try" in | |
2126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2127 | *) ac_try_echo=$ac_try;; | |
2128 | esac | |
2129 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2130 | $as_echo "$ac_try_echo"; } >&5 | |
2131 | (eval "$ac_link") 2>conftest.err | |
2132 | ac_status=$? | |
2133 | if test -s conftest.err; then | |
2134 | grep -v '^ *+' conftest.err >conftest.er1 | |
2135 | cat conftest.er1 >&5 | |
2136 | mv -f conftest.er1 conftest.err | |
2137 | fi | |
2138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2139 | test $ac_status = 0; } && { | |
2140 | test -z "$ac_cxx_werror_flag" || | |
2141 | test ! -s conftest.err | |
2142 | } && test -s conftest$ac_exeext && { | |
2143 | test "$cross_compiling" = yes || | |
2144 | $as_test_x conftest$ac_exeext | |
2145 | }; then : | |
2146 | ac_retval=0 | |
2147 | else | |
2148 | $as_echo "$as_me: failed program was:" >&5 | |
2149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 2150 | |
81ecdfbb RW |
2151 | ac_retval=1 |
2152 | fi | |
2153 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2154 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2155 | # interfere with the next link command; also delete a directory that is | |
2156 | # left behind by Apple's compiler. We do this before executing the actions. | |
2157 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2158 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2159 | return $ac_retval | |
bae7f79e | 2160 | |
81ecdfbb | 2161 | } # ac_fn_cxx_try_link |
bae7f79e | 2162 | |
81ecdfbb RW |
2163 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2164 | # ------------------------------------ | |
2165 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2166 | ac_fn_cxx_check_func () | |
2167 | { | |
2168 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2170 | $as_echo_n "checking for $2... " >&6; } | |
2171 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2172 | $as_echo_n "(cached) " >&6 | |
2173 | else | |
2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2175 | /* end confdefs.h. */ | |
2176 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2178 | #define $2 innocuous_$2 | |
bae7f79e | 2179 | |
81ecdfbb RW |
2180 | /* System header to define __stub macros and hopefully few prototypes, |
2181 | which can conflict with char $2 (); below. | |
2182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2183 | <limits.h> exists even on freestanding compilers. */ | |
bae7f79e | 2184 | |
81ecdfbb RW |
2185 | #ifdef __STDC__ |
2186 | # include <limits.h> | |
2187 | #else | |
2188 | # include <assert.h> | |
2189 | #endif | |
bae7f79e | 2190 | |
81ecdfbb | 2191 | #undef $2 |
bae7f79e | 2192 | |
81ecdfbb RW |
2193 | /* Override any GCC internal prototype to avoid an error. |
2194 | Use char because int might match the return type of a GCC | |
2195 | builtin and then its argument prototype would still apply. */ | |
2196 | #ifdef __cplusplus | |
2197 | extern "C" | |
2198 | #endif | |
2199 | char $2 (); | |
2200 | /* The GNU C library defines this for functions which it implements | |
2201 | to always fail with ENOSYS. Some functions are actually named | |
2202 | something starting with __ and the normal name is an alias. */ | |
2203 | #if defined __stub_$2 || defined __stub___$2 | |
2204 | choke me | |
2205 | #endif | |
bae7f79e | 2206 | |
81ecdfbb RW |
2207 | int |
2208 | main () | |
2209 | { | |
2210 | return $2 (); | |
2211 | ; | |
2212 | return 0; | |
2213 | } | |
2214 | _ACEOF | |
2215 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2216 | eval "$3=yes" | |
2217 | else | |
2218 | eval "$3=no" | |
2219 | fi | |
2220 | rm -f core conftest.err conftest.$ac_objext \ | |
2221 | conftest$ac_exeext conftest.$ac_ext | |
2222 | fi | |
2223 | eval ac_res=\$$3 | |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2225 | $as_echo "$ac_res" >&6; } | |
2226 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2227 | |
81ecdfbb | 2228 | } # ac_fn_cxx_check_func |
bae7f79e | 2229 | |
81ecdfbb RW |
2230 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
2231 | # -------------------------------------- | |
2232 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2233 | ac_fn_cxx_check_decl () | |
2234 | { | |
2235 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7223e9ca ILT |
2236 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2237 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2239 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2240 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2241 | $as_echo_n "(cached) " >&6 | |
2242 | else | |
2243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2244 | /* end confdefs.h. */ | |
2245 | $4 | |
2246 | int | |
2247 | main () | |
2248 | { | |
7223e9ca ILT |
2249 | #ifndef $as_decl_name |
2250 | #ifdef __cplusplus | |
2251 | (void) $as_decl_use; | |
2252 | #else | |
2253 | (void) $as_decl_name; | |
2254 | #endif | |
81ecdfbb | 2255 | #endif |
bae7f79e | 2256 | |
81ecdfbb RW |
2257 | ; |
2258 | return 0; | |
2259 | } | |
2260 | _ACEOF | |
2261 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2262 | eval "$3=yes" | |
2263 | else | |
2264 | eval "$3=no" | |
2265 | fi | |
2266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2267 | fi | |
2268 | eval ac_res=\$$3 | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2270 | $as_echo "$ac_res" >&6; } | |
2271 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
bae7f79e | 2272 | |
81ecdfbb RW |
2273 | } # ac_fn_cxx_check_decl |
2274 | cat >config.log <<_ACEOF | |
2275 | This file contains any messages produced by compilers while | |
2276 | running configure, to aid debugging if configure makes a mistake. | |
8486ee48 | 2277 | |
81ecdfbb RW |
2278 | It was created by gold $as_me 0.1, which was |
2279 | generated by GNU Autoconf 2.64. Invocation command line was | |
8486ee48 | 2280 | |
81ecdfbb | 2281 | $ $0 $@ |
8486ee48 | 2282 | |
81ecdfbb RW |
2283 | _ACEOF |
2284 | exec 5>>config.log | |
2285 | { | |
2286 | cat <<_ASUNAME | |
2287 | ## --------- ## | |
2288 | ## Platform. ## | |
2289 | ## --------- ## | |
8486ee48 | 2290 | |
81ecdfbb RW |
2291 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2292 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2293 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2294 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2295 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
8486ee48 | 2296 | |
81ecdfbb RW |
2297 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2298 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8486ee48 | 2299 | |
81ecdfbb RW |
2300 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2301 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2302 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2303 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2304 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2305 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2306 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
8486ee48 | 2307 | |
81ecdfbb | 2308 | _ASUNAME |
8486ee48 | 2309 | |
81ecdfbb RW |
2310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2311 | for as_dir in $PATH | |
2312 | do | |
2313 | IFS=$as_save_IFS | |
2314 | test -z "$as_dir" && as_dir=. | |
2315 | $as_echo "PATH: $as_dir" | |
2316 | done | |
2317 | IFS=$as_save_IFS | |
bae7f79e | 2318 | |
81ecdfbb | 2319 | } >&5 |
bae7f79e | 2320 | |
81ecdfbb | 2321 | cat >&5 <<_ACEOF |
bae7f79e ILT |
2322 | |
2323 | ||
81ecdfbb RW |
2324 | ## ----------- ## |
2325 | ## Core tests. ## | |
2326 | ## ----------- ## | |
bae7f79e | 2327 | |
81ecdfbb | 2328 | _ACEOF |
1d1f116d CD |
2329 | |
2330 | ||
81ecdfbb RW |
2331 | # Keep a trace of the command line. |
2332 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2333 | # Strip out --silent because we don't want to record it for future runs. | |
2334 | # Also quote any args containing shell meta-characters. | |
2335 | # Make two passes to allow for proper duplicate-argument suppression. | |
2336 | ac_configure_args= | |
2337 | ac_configure_args0= | |
2338 | ac_configure_args1= | |
2339 | ac_must_keep_next=false | |
2340 | for ac_pass in 1 2 | |
2341 | do | |
2342 | for ac_arg | |
2343 | do | |
2344 | case $ac_arg in | |
2345 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2346 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2347 | | -silent | --silent | --silen | --sile | --sil) | |
2348 | continue ;; | |
2349 | *\'*) | |
2350 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2351 | esac | |
2352 | case $ac_pass in | |
2353 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2354 | 2) | |
2355 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2356 | if test $ac_must_keep_next = true; then | |
2357 | ac_must_keep_next=false # Got value, back to normal. | |
2358 | else | |
2359 | case $ac_arg in | |
2360 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2361 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2362 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2363 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2364 | case "$ac_configure_args0 " in | |
2365 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2366 | esac | |
2367 | ;; | |
2368 | -* ) ac_must_keep_next=true ;; | |
2369 | esac | |
2370 | fi | |
2371 | as_fn_append ac_configure_args " '$ac_arg'" | |
2372 | ;; | |
2373 | esac | |
2374 | done | |
2375 | done | |
2376 | { ac_configure_args0=; unset ac_configure_args0;} | |
2377 | { ac_configure_args1=; unset ac_configure_args1;} | |
1d1f116d | 2378 | |
81ecdfbb RW |
2379 | # When interrupted or exit'd, cleanup temporary files, and complete |
2380 | # config.log. We remove comments because anyway the quotes in there | |
2381 | # would cause problems or look ugly. | |
2382 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2383 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2384 | trap 'exit_status=$? | |
2385 | # Save into config.log some information that might help in debugging. | |
2386 | { | |
2387 | echo | |
bae7f79e | 2388 | |
81ecdfbb RW |
2389 | cat <<\_ASBOX |
2390 | ## ---------------- ## | |
2391 | ## Cache variables. ## | |
2392 | ## ---------------- ## | |
2393 | _ASBOX | |
2394 | echo | |
2395 | # The following way of writing the cache mishandles newlines in values, | |
2396 | ( | |
2397 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2398 | eval ac_val=\$$ac_var | |
2399 | case $ac_val in #( | |
2400 | *${as_nl}*) | |
2401 | case $ac_var in #( | |
2402 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2403 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2404 | esac | |
2405 | case $ac_var in #( | |
2406 | _ | IFS | as_nl) ;; #( | |
2407 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2408 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2409 | esac ;; | |
2410 | esac | |
2411 | done | |
2412 | (set) 2>&1 | | |
2413 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2414 | *${as_nl}ac_space=\ *) | |
2415 | sed -n \ | |
2416 | "s/'\''/'\''\\\\'\'''\''/g; | |
2417 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2418 | ;; #( | |
2419 | *) | |
2420 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2421 | ;; | |
2422 | esac | | |
2423 | sort | |
2424 | ) | |
2425 | echo | |
bae7f79e | 2426 | |
81ecdfbb RW |
2427 | cat <<\_ASBOX |
2428 | ## ----------------- ## | |
2429 | ## Output variables. ## | |
2430 | ## ----------------- ## | |
2431 | _ASBOX | |
2432 | echo | |
2433 | for ac_var in $ac_subst_vars | |
2434 | do | |
2435 | eval ac_val=\$$ac_var | |
2436 | case $ac_val in | |
2437 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2438 | esac | |
2439 | $as_echo "$ac_var='\''$ac_val'\''" | |
2440 | done | sort | |
2441 | echo | |
bae7f79e | 2442 | |
81ecdfbb RW |
2443 | if test -n "$ac_subst_files"; then |
2444 | cat <<\_ASBOX | |
2445 | ## ------------------- ## | |
2446 | ## File substitutions. ## | |
2447 | ## ------------------- ## | |
2448 | _ASBOX | |
2449 | echo | |
2450 | for ac_var in $ac_subst_files | |
2451 | do | |
2452 | eval ac_val=\$$ac_var | |
2453 | case $ac_val in | |
2454 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2455 | esac | |
2456 | $as_echo "$ac_var='\''$ac_val'\''" | |
2457 | done | sort | |
2458 | echo | |
2459 | fi | |
bae7f79e | 2460 | |
81ecdfbb RW |
2461 | if test -s confdefs.h; then |
2462 | cat <<\_ASBOX | |
2463 | ## ----------- ## | |
2464 | ## confdefs.h. ## | |
2465 | ## ----------- ## | |
2466 | _ASBOX | |
2467 | echo | |
2468 | cat confdefs.h | |
2469 | echo | |
2470 | fi | |
2471 | test "$ac_signal" != 0 && | |
2472 | $as_echo "$as_me: caught signal $ac_signal" | |
2473 | $as_echo "$as_me: exit $exit_status" | |
2474 | } >&5 | |
2475 | rm -f core *.core core.conftest.* && | |
2476 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2477 | exit $exit_status | |
2478 | ' 0 | |
2479 | for ac_signal in 1 2 13 15; do | |
2480 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
bae7f79e | 2481 | done |
81ecdfbb | 2482 | ac_signal=0 |
bae7f79e | 2483 | |
81ecdfbb RW |
2484 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2485 | rm -f -r conftest* confdefs.h | |
bae7f79e | 2486 | |
81ecdfbb | 2487 | $as_echo "/* confdefs.h */" > confdefs.h |
bae7f79e | 2488 | |
81ecdfbb | 2489 | # Predefined preprocessor variables. |
bae7f79e | 2490 | |
81ecdfbb RW |
2491 | cat >>confdefs.h <<_ACEOF |
2492 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2493 | _ACEOF | |
bae7f79e | 2494 | |
81ecdfbb RW |
2495 | cat >>confdefs.h <<_ACEOF |
2496 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2497 | _ACEOF | |
bae7f79e | 2498 | |
81ecdfbb RW |
2499 | cat >>confdefs.h <<_ACEOF |
2500 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2501 | _ACEOF | |
bae7f79e | 2502 | |
81ecdfbb RW |
2503 | cat >>confdefs.h <<_ACEOF |
2504 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2505 | _ACEOF | |
bae7f79e | 2506 | |
81ecdfbb RW |
2507 | cat >>confdefs.h <<_ACEOF |
2508 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2509 | _ACEOF | |
bae7f79e | 2510 | |
81ecdfbb RW |
2511 | cat >>confdefs.h <<_ACEOF |
2512 | #define PACKAGE_URL "$PACKAGE_URL" | |
2513 | _ACEOF | |
2514 | ||
2515 | ||
2516 | # Let the site file select an alternate cache file if it wants to. | |
2517 | # Prefer an explicitly selected file to automatically selected ones. | |
2518 | ac_site_file1=NONE | |
2519 | ac_site_file2=NONE | |
2520 | if test -n "$CONFIG_SITE"; then | |
2521 | ac_site_file1=$CONFIG_SITE | |
2522 | elif test "x$prefix" != xNONE; then | |
2523 | ac_site_file1=$prefix/share/config.site | |
2524 | ac_site_file2=$prefix/etc/config.site | |
2525 | else | |
2526 | ac_site_file1=$ac_default_prefix/share/config.site | |
2527 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2528 | fi | |
2529 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2530 | do | |
2531 | test "x$ac_site_file" = xNONE && continue | |
2532 | if test -r "$ac_site_file"; then | |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2534 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2535 | sed 's/^/| /' "$ac_site_file" >&5 | |
2536 | . "$ac_site_file" | |
2537 | fi | |
2538 | done | |
2539 | ||
2540 | if test -r "$cache_file"; then | |
2541 | # Some versions of bash will fail to source /dev/null (special | |
2542 | # files actually), so we avoid doing that. | |
2543 | if test -f "$cache_file"; then | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2545 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2546 | case $cache_file in | |
2547 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2548 | *) . "./$cache_file";; | |
2549 | esac | |
2550 | fi | |
2551 | else | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2553 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2554 | >$cache_file | |
2555 | fi | |
2556 | ||
2557 | # Check that the precious variables saved in the cache have kept the same | |
2558 | # value. | |
2559 | ac_cache_corrupted=false | |
2560 | for ac_var in $ac_precious_vars; do | |
2561 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2562 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2563 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2564 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2565 | case $ac_old_set,$ac_new_set in | |
2566 | set,) | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2568 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2569 | ac_cache_corrupted=: ;; | |
2570 | ,set) | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2572 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2573 | ac_cache_corrupted=: ;; | |
2574 | ,);; | |
2575 | *) | |
2576 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2577 | # differences in whitespace do not lead to failure. | |
2578 | ac_old_val_w=`echo x $ac_old_val` | |
2579 | ac_new_val_w=`echo x $ac_new_val` | |
2580 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2582 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2583 | ac_cache_corrupted=: | |
2584 | else | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2586 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2587 | eval $ac_var=\$ac_old_val | |
2588 | fi | |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2590 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2592 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2593 | fi;; | |
2594 | esac | |
2595 | # Pass precious variables to config.status. | |
2596 | if test "$ac_new_set" = set; then | |
2597 | case $ac_new_val in | |
2598 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2599 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2600 | esac | |
2601 | case " $ac_configure_args " in | |
2602 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2603 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2604 | esac | |
2605 | fi | |
2606 | done | |
2607 | if $ac_cache_corrupted; then | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2611 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2612 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2613 | fi | |
2614 | ## -------------------- ## | |
2615 | ## Main body of script. ## | |
2616 | ## -------------------- ## | |
2617 | ||
2618 | ac_ext=c | |
2619 | ac_cpp='$CPP $CPPFLAGS' | |
2620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2623 | ||
2624 | ||
2625 | ||
2626 | ||
2627 | ||
2628 | ||
2629 | ||
2630 | ac_aux_dir= | |
2631 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2632 | for ac_t in install-sh install.sh shtool; do | |
2633 | if test -f "$ac_dir/$ac_t"; then | |
2634 | ac_aux_dir=$ac_dir | |
2635 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2636 | break 2 | |
2637 | fi | |
2638 | done | |
2639 | done | |
2640 | if test -z "$ac_aux_dir"; then | |
2641 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2642 | fi | |
2643 | ||
2644 | # These three variables are undocumented and unsupported, | |
2645 | # and are intended to be withdrawn in a future Autoconf release. | |
2646 | # They can cause serious problems if a builder's source tree is in a directory | |
2647 | # whose full name contains unusual characters. | |
2648 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2649 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2650 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2651 | ||
2652 | ||
2653 | # Make sure we can run config.sub. | |
2654 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2655 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2656 | ||
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2658 | $as_echo_n "checking build system type... " >&6; } | |
2659 | if test "${ac_cv_build+set}" = set; then : | |
2660 | $as_echo_n "(cached) " >&6 | |
2661 | else | |
2662 | ac_build_alias=$build_alias | |
2663 | test "x$ac_build_alias" = x && | |
2664 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2665 | test "x$ac_build_alias" = x && | |
2666 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2667 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2668 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2669 | ||
2670 | fi | |
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2672 | $as_echo "$ac_cv_build" >&6; } | |
2673 | case $ac_cv_build in | |
2674 | *-*-*) ;; | |
2675 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2676 | esac | |
2677 | build=$ac_cv_build | |
2678 | ac_save_IFS=$IFS; IFS='-' | |
2679 | set x $ac_cv_build | |
2680 | shift | |
2681 | build_cpu=$1 | |
2682 | build_vendor=$2 | |
2683 | shift; shift | |
2684 | # Remember, the first character of IFS is used to create $*, | |
2685 | # except with old shells: | |
2686 | build_os=$* | |
2687 | IFS=$ac_save_IFS | |
2688 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2689 | ||
2690 | ||
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2692 | $as_echo_n "checking host system type... " >&6; } | |
2693 | if test "${ac_cv_host+set}" = set; then : | |
2694 | $as_echo_n "(cached) " >&6 | |
2695 | else | |
2696 | if test "x$host_alias" = x; then | |
2697 | ac_cv_host=$ac_cv_build | |
2698 | else | |
2699 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2700 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2701 | fi | |
2702 | ||
2703 | fi | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2705 | $as_echo "$ac_cv_host" >&6; } | |
2706 | case $ac_cv_host in | |
2707 | *-*-*) ;; | |
2708 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2709 | esac | |
2710 | host=$ac_cv_host | |
2711 | ac_save_IFS=$IFS; IFS='-' | |
2712 | set x $ac_cv_host | |
2713 | shift | |
2714 | host_cpu=$1 | |
2715 | host_vendor=$2 | |
2716 | shift; shift | |
2717 | # Remember, the first character of IFS is used to create $*, | |
2718 | # except with old shells: | |
2719 | host_os=$* | |
2720 | IFS=$ac_save_IFS | |
2721 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2722 | ||
2723 | ||
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2725 | $as_echo_n "checking target system type... " >&6; } | |
2726 | if test "${ac_cv_target+set}" = set; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | if test "x$target_alias" = x; then | |
2730 | ac_cv_target=$ac_cv_host | |
2731 | else | |
2732 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2733 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2734 | fi | |
2735 | ||
2736 | fi | |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2738 | $as_echo "$ac_cv_target" >&6; } | |
2739 | case $ac_cv_target in | |
2740 | *-*-*) ;; | |
2741 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2742 | esac | |
2743 | target=$ac_cv_target | |
2744 | ac_save_IFS=$IFS; IFS='-' | |
2745 | set x $ac_cv_target | |
2746 | shift | |
2747 | target_cpu=$1 | |
2748 | target_vendor=$2 | |
2749 | shift; shift | |
2750 | # Remember, the first character of IFS is used to create $*, | |
2751 | # except with old shells: | |
2752 | target_os=$* | |
2753 | IFS=$ac_save_IFS | |
2754 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2755 | ||
2756 | ||
2757 | # The aliases save the names the user supplied, while $host etc. | |
bae7f79e ILT |
2758 | # will get canonicalized. |
2759 | test -n "$target_alias" && | |
2760 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2761 | NONENONEs,x,x, && | |
2762 | program_prefix=${target_alias}- | |
2763 | ||
81ecdfbb RW |
2764 | am__api_version='1.11' |
2765 | ||
bae7f79e ILT |
2766 | # Find a good install program. We prefer a C program (faster), |
2767 | # so one script is as good as another. But avoid the broken or | |
2768 | # incompatible versions: | |
2769 | # SysV /etc/install, /usr/sbin/install | |
2770 | # SunOS /usr/etc/install | |
2771 | # IRIX /sbin/install | |
2772 | # AIX /bin/install | |
2773 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2774 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2775 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2776 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2777 | # OS/2's system install, which has a completely different semantic | |
2778 | # ./install, which can be erroneously created by make from ./install.sh. | |
f5314dd5 | 2779 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2781 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bae7f79e | 2782 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2783 | if test "${ac_cv_path_install+set}" = set; then : |
2784 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
2785 | else |
2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2787 | for as_dir in $PATH | |
2788 | do | |
2789 | IFS=$as_save_IFS | |
2790 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2791 | # Account for people who put trailing slashes in PATH elements. |
2792 | case $as_dir/ in #(( | |
2793 | ./ | .// | /[cC]/* | \ | |
bae7f79e | 2794 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2795 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bae7f79e ILT |
2796 | /usr/ucb/* ) ;; |
2797 | *) | |
2798 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2799 | # Don't use installbsd from OSF since it installs stuff as root | |
2800 | # by default. | |
2801 | for ac_prog in ginstall scoinst install; do | |
2802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2803 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bae7f79e ILT |
2804 | if test $ac_prog = install && |
2805 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2806 | # AIX install. It has an incompatible calling convention. | |
2807 | : | |
2808 | elif test $ac_prog = install && | |
2809 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2810 | # program-specific install script used by HP pwplus--don't use. | |
2811 | : | |
2812 | else | |
f5314dd5 DM |
2813 | rm -rf conftest.one conftest.two conftest.dir |
2814 | echo one > conftest.one | |
2815 | echo two > conftest.two | |
2816 | mkdir conftest.dir | |
2817 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2818 | test -s conftest.one && test -s conftest.two && | |
2819 | test -s conftest.dir/conftest.one && | |
2820 | test -s conftest.dir/conftest.two | |
2821 | then | |
2822 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2823 | break 3 | |
2824 | fi | |
bae7f79e ILT |
2825 | fi |
2826 | fi | |
2827 | done | |
2828 | done | |
2829 | ;; | |
2830 | esac | |
81ecdfbb RW |
2831 | |
2832 | done | |
2833 | IFS=$as_save_IFS | |
bae7f79e | 2834 | |
f5314dd5 | 2835 | rm -rf conftest.one conftest.two conftest.dir |
bae7f79e ILT |
2836 | |
2837 | fi | |
2838 | if test "${ac_cv_path_install+set}" = set; then | |
2839 | INSTALL=$ac_cv_path_install | |
2840 | else | |
f5314dd5 DM |
2841 | # As a last resort, use the slow shell script. Don't cache a |
2842 | # value for INSTALL within a source directory, because that will | |
bae7f79e | 2843 | # break other packages using the cache if that directory is |
f5314dd5 | 2844 | # removed, or if the value is a relative name. |
bae7f79e ILT |
2845 | INSTALL=$ac_install_sh |
2846 | fi | |
2847 | fi | |
81ecdfbb RW |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2849 | $as_echo "$INSTALL" >&6; } | |
bae7f79e ILT |
2850 | |
2851 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2852 | # It thinks the first close brace ends the variable substitution. | |
2853 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2854 | ||
2855 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2856 | ||
2857 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2858 | ||
81ecdfbb RW |
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2860 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bae7f79e ILT |
2861 | # Just in case |
2862 | sleep 1 | |
2863 | echo timestamp > conftest.file | |
81ecdfbb RW |
2864 | # Reject unsafe characters in $srcdir or the absolute working directory |
2865 | # name. Accept space and tab only in the latter. | |
2866 | am_lf=' | |
2867 | ' | |
2868 | case `pwd` in | |
2869 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2870 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2871 | esac | |
2872 | case $srcdir in | |
2873 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2874 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2875 | esac | |
2876 | ||
bae7f79e ILT |
2877 | # Do `set' in a subshell so we don't clobber the current shell's |
2878 | # arguments. Must try -L first in case configure is actually a | |
2879 | # symlink; some systems play weird games with the mod time of symlinks | |
2880 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2881 | # directory). | |
2882 | if ( | |
81ecdfbb | 2883 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bae7f79e ILT |
2884 | if test "$*" = "X"; then |
2885 | # -L didn't work. | |
81ecdfbb | 2886 | set X `ls -t "$srcdir/configure" conftest.file` |
bae7f79e ILT |
2887 | fi |
2888 | rm -f conftest.file | |
2889 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2890 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2891 | ||
2892 | # If neither matched, then we have a broken ls. This can happen | |
2893 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2894 | # broken ls alias from the environment. This has actually | |
2895 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
2896 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2897 | alias in your environment" "$LINENO" 5 | |
bae7f79e ILT |
2898 | fi |
2899 | ||
2900 | test "$2" = conftest.file | |
2901 | ) | |
2902 | then | |
2903 | # Ok. | |
2904 | : | |
2905 | else | |
81ecdfbb RW |
2906 | as_fn_error "newly created file is older than distributed files! |
2907 | Check your system clock" "$LINENO" 5 | |
bae7f79e | 2908 | fi |
81ecdfbb RW |
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2910 | $as_echo "yes" >&6; } | |
bae7f79e | 2911 | test "$program_prefix" != NONE && |
81ecdfbb | 2912 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bae7f79e ILT |
2913 | # Use a double $ so make ignores it. |
2914 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2915 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2916 | # Double any \ or $. | |
bae7f79e | 2917 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2918 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2919 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bae7f79e ILT |
2920 | |
2921 | # expand $ac_aux_dir to an absolute path | |
2922 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2923 | ||
81ecdfbb RW |
2924 | if test x"${MISSING+set}" != xset; then |
2925 | case $am_aux_dir in | |
2926 | *\ * | *\ *) | |
2927 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2928 | *) | |
2929 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2930 | esac | |
2931 | fi | |
bae7f79e ILT |
2932 | # Use eval to expand $SHELL |
2933 | if eval "$MISSING --run true"; then | |
2934 | am_missing_run="$MISSING --run " | |
2935 | else | |
2936 | am_missing_run= | |
81ecdfbb RW |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2938 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2939 | fi | |
2940 | ||
2941 | if test x"${install_sh}" != xset; then | |
2942 | case $am_aux_dir in | |
2943 | *\ * | *\ *) | |
2944 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2945 | *) | |
2946 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2947 | esac | |
2948 | fi | |
2949 | ||
2950 | # Installed binaries are usually stripped using `strip' when the user | |
2951 | # run `make install-strip'. However `strip' might not be the right | |
2952 | # tool to use in cross-compilation environments, therefore Automake | |
2953 | # will honor the `STRIP' environment variable to overrule this program. | |
2954 | if test "$cross_compiling" != no; then | |
2955 | if test -n "$ac_tool_prefix"; then | |
2956 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2957 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2959 | $as_echo_n "checking for $ac_word... " >&6; } | |
2960 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2961 | $as_echo_n "(cached) " >&6 | |
2962 | else | |
2963 | if test -n "$STRIP"; then | |
2964 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2965 | else | |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2967 | for as_dir in $PATH | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2973 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2975 | break 2 | |
2976 | fi | |
2977 | done | |
2978 | done | |
2979 | IFS=$as_save_IFS | |
2980 | ||
2981 | fi | |
2982 | fi | |
2983 | STRIP=$ac_cv_prog_STRIP | |
2984 | if test -n "$STRIP"; then | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2986 | $as_echo "$STRIP" >&6; } | |
2987 | else | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2989 | $as_echo "no" >&6; } | |
2990 | fi | |
2991 | ||
2992 | ||
2993 | fi | |
2994 | if test -z "$ac_cv_prog_STRIP"; then | |
2995 | ac_ct_STRIP=$STRIP | |
2996 | # Extract the first word of "strip", so it can be a program name with args. | |
2997 | set dummy strip; ac_word=$2 | |
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2999 | $as_echo_n "checking for $ac_word... " >&6; } | |
3000 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3001 | $as_echo_n "(cached) " >&6 | |
3002 | else | |
3003 | if test -n "$ac_ct_STRIP"; then | |
3004 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3005 | else | |
3006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3007 | for as_dir in $PATH | |
3008 | do | |
3009 | IFS=$as_save_IFS | |
3010 | test -z "$as_dir" && as_dir=. | |
3011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3013 | ac_cv_prog_ac_ct_STRIP="strip" | |
3014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3015 | break 2 | |
3016 | fi | |
3017 | done | |
3018 | done | |
3019 | IFS=$as_save_IFS | |
3020 | ||
3021 | fi | |
3022 | fi | |
3023 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3024 | if test -n "$ac_ct_STRIP"; then | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3026 | $as_echo "$ac_ct_STRIP" >&6; } | |
3027 | else | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3029 | $as_echo "no" >&6; } | |
3030 | fi | |
3031 | ||
3032 | if test "x$ac_ct_STRIP" = x; then | |
3033 | STRIP=":" | |
3034 | else | |
3035 | case $cross_compiling:$ac_tool_warned in | |
3036 | yes:) | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3039 | ac_tool_warned=yes ;; | |
3040 | esac | |
3041 | STRIP=$ac_ct_STRIP | |
3042 | fi | |
3043 | else | |
3044 | STRIP="$ac_cv_prog_STRIP" | |
3045 | fi | |
3046 | ||
3047 | fi | |
3048 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3049 | ||
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3051 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3052 | if test -z "$MKDIR_P"; then | |
3053 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3054 | $as_echo_n "(cached) " >&6 | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
3061 | for ac_prog in mkdir gmkdir; do | |
3062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3063 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3064 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3065 | 'mkdir (GNU coreutils) '* | \ | |
3066 | 'mkdir (coreutils) '* | \ | |
3067 | 'mkdir (fileutils) '4.1*) | |
3068 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3069 | break 3;; | |
3070 | esac | |
3071 | done | |
3072 | done | |
bae7f79e | 3073 | done |
81ecdfbb RW |
3074 | IFS=$as_save_IFS |
3075 | ||
3076 | fi | |
3077 | ||
3078 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3079 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bae7f79e | 3080 | else |
81ecdfbb RW |
3081 | # As a last resort, use the slow shell script. Don't cache a |
3082 | # value for MKDIR_P within a source directory, because that will | |
3083 | # break other packages using the cache if that directory is | |
3084 | # removed, or if the value is a relative name. | |
3085 | test -d ./--version && rmdir ./--version | |
3086 | MKDIR_P="$ac_install_sh -d" | |
bae7f79e ILT |
3087 | fi |
3088 | fi | |
81ecdfbb RW |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3090 | $as_echo "$MKDIR_P" >&6; } | |
3091 | ||
3092 | mkdir_p="$MKDIR_P" | |
3093 | case $mkdir_p in | |
3094 | [\\/$]* | ?:[\\/]*) ;; | |
3095 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3096 | esac | |
bae7f79e ILT |
3097 | |
3098 | for ac_prog in gawk mawk nawk awk | |
3099 | do | |
3100 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3101 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3103 | $as_echo_n "checking for $ac_word... " >&6; } | |
3104 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3105 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3106 | else |
3107 | if test -n "$AWK"; then | |
3108 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3109 | else | |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3115 | for ac_exec_ext in '' $ac_executable_extensions; do |
3116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bae7f79e | 3117 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bae7f79e ILT |
3119 | break 2 |
3120 | fi | |
3121 | done | |
81ecdfbb RW |
3122 | done |
3123 | IFS=$as_save_IFS | |
bae7f79e ILT |
3124 | |
3125 | fi | |
3126 | fi | |
3127 | AWK=$ac_cv_prog_AWK | |
3128 | if test -n "$AWK"; then | |
81ecdfbb RW |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3130 | $as_echo "$AWK" >&6; } | |
bae7f79e | 3131 | else |
81ecdfbb RW |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3133 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3134 | fi |
3135 | ||
81ecdfbb | 3136 | |
bae7f79e ILT |
3137 | test -n "$AWK" && break |
3138 | done | |
3139 | ||
81ecdfbb RW |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3141 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3142 | set x ${MAKE-make} | |
3143 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3144 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3145 | $as_echo_n "(cached) " >&6 | |
bae7f79e ILT |
3146 | else |
3147 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3148 | SHELL = /bin/sh |
bae7f79e | 3149 | all: |
81ecdfbb | 3150 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bae7f79e ILT |
3151 | _ACEOF |
3152 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
3153 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3154 | *@@@%%%=?*=@@@%%%*) | |
3155 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3156 | *) | |
3157 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3158 | esac | |
bae7f79e ILT |
3159 | rm -f conftest.make |
3160 | fi | |
81ecdfbb RW |
3161 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3163 | $as_echo "yes" >&6; } | |
bae7f79e ILT |
3164 | SET_MAKE= |
3165 | else | |
81ecdfbb RW |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3167 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3168 | SET_MAKE="MAKE=${MAKE-make}" |
3169 | fi | |
3170 | ||
3171 | rm -rf .tst 2>/dev/null | |
3172 | mkdir .tst 2>/dev/null | |
3173 | if test -d .tst; then | |
3174 | am__leading_dot=. | |
3175 | else | |
3176 | am__leading_dot=_ | |
3177 | fi | |
3178 | rmdir .tst 2>/dev/null | |
3179 | ||
81ecdfbb RW |
3180 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3181 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3182 | # is not polluted with repeated "-I." | |
3183 | am__isrc=' -I$(srcdir)' | |
3184 | # test to see if srcdir already configured | |
3185 | if test -f $srcdir/config.status; then | |
3186 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3187 | fi | |
bae7f79e ILT |
3188 | fi |
3189 | ||
3190 | # test whether we have cygpath | |
3191 | if test -z "$CYGPATH_W"; then | |
3192 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3193 | CYGPATH_W='cygpath -w' | |
3194 | else | |
3195 | CYGPATH_W=echo | |
3196 | fi | |
3197 | fi | |
3198 | ||
3199 | ||
3200 | # Define the identity of the package. | |
8486ee48 ILT |
3201 | PACKAGE='gold' |
3202 | VERSION='0.1' | |
bae7f79e ILT |
3203 | |
3204 | ||
3205 | cat >>confdefs.h <<_ACEOF | |
3206 | #define PACKAGE "$PACKAGE" | |
3207 | _ACEOF | |
3208 | ||
3209 | ||
3210 | cat >>confdefs.h <<_ACEOF | |
3211 | #define VERSION "$VERSION" | |
3212 | _ACEOF | |
3213 | ||
3214 | # Some tools Automake needs. | |
3215 | ||
3216 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3217 | ||
3218 | ||
3219 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3220 | ||
3221 | ||
3222 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3223 | ||
3224 | ||
3225 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3226 | ||
3227 | ||
3228 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3229 | ||
81ecdfbb RW |
3230 | # We need awk for the "check" target. The system "awk" is bad on |
3231 | # some platforms. | |
6eb7d830 AM |
3232 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3233 | # in the wild :-( We should find a proper way to deprecate it ... | |
3234 | AMTAR='$${TAR-tar}' | |
bae7f79e | 3235 | |
6eb7d830 | 3236 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
81ecdfbb RW |
3237 | |
3238 | ||
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3244 | ||
3245 | ||
7c0640fa | 3246 | # PR 14072 |
81ecdfbb | 3247 | |
df7b86aa NC |
3248 | |
3249 | ||
81ecdfbb RW |
3250 | # Check whether --with-sysroot was given. |
3251 | if test "${with_sysroot+set}" = set; then : | |
3252 | withval=$with_sysroot; sysroot=$withval | |
bae7f79e | 3253 | else |
81ecdfbb | 3254 | sysroot=no |
bae7f79e ILT |
3255 | fi |
3256 | ||
81ecdfbb RW |
3257 | |
3258 | if test "$sysroot" = "yes"; then | |
3259 | sysroot='${exec_prefix}/${target_alias}/sys-root' | |
3260 | elif test "$sysroot" = "no"; then | |
3261 | sysroot= | |
ad2d6943 ILT |
3262 | fi |
3263 | ||
3264 | sysroot_relocatable=0 | |
3265 | if test -n "$sysroot"; then | |
3266 | case "sysroot" in | |
3267 | "${prefix}" | "${prefix}/"* | \ | |
3268 | "${exec_prefix}" | "${exec_prefix}/"* | \ | |
3269 | '${prefix}' | '${prefix}/'*| \ | |
3270 | '${exec_prefix}' | '${exec_prefix}/'*) | |
3271 | sysroot_relocatable=1 | |
3272 | ;; | |
3273 | esac | |
3274 | fi | |
3275 | ||
3276 | ||
3277 | cat >>confdefs.h <<_ACEOF | |
3278 | #define TARGET_SYSTEM_ROOT "$sysroot" | |
3279 | _ACEOF | |
3280 | ||
3281 | ||
3282 | cat >>confdefs.h <<_ACEOF | |
3283 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable | |
3284 | _ACEOF | |
3285 | ||
3286 | ||
c7791212 | 3287 | |
f2a6224b | 3288 | installed_linker=ld.gold |
4fda8867 NC |
3289 | # Check whether --enable-gold was given. |
3290 | if test "${enable_gold+set}" = set; then : | |
3291 | enableval=$enable_gold; case "${enableval}" in | |
f2a6224b L |
3292 | default) |
3293 | install_as_default=yes | |
3294 | ;; | |
3295 | yes) | |
3296 | if test x${enable_ld} = xno; then | |
c7791212 NC |
3297 | install_as_default=yes |
3298 | fi | |
4fda8867 NC |
3299 | ;; |
3300 | esac | |
3301 | else | |
c7791212 | 3302 | install_as_default=no |
4fda8867 NC |
3303 | fi |
3304 | ||
3305 | ||
3306 | ||
3307 | ||
81ecdfbb RW |
3308 | # Check whether --enable-threads was given. |
3309 | if test "${enable_threads+set}" = set; then : | |
3310 | enableval=$enable_threads; case "${enableval}" in | |
fe9a4c12 ILT |
3311 | yes | "") threads=yes ;; |
3312 | no) threads=no ;; | |
3313 | *) threads=yes ;; | |
3314 | esac | |
3315 | else | |
3316 | threads=no | |
81ecdfbb RW |
3317 | fi |
3318 | ||
fe9a4c12 ILT |
3319 | if test "$threads" = "yes"; then |
3320 | ||
81ecdfbb | 3321 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
fe9a4c12 ILT |
3322 | |
3323 | fi | |
81ecdfbb | 3324 | if test "$threads" = "yes"; then |
fe9a4c12 ILT |
3325 | THREADS_TRUE= |
3326 | THREADS_FALSE='#' | |
3327 | else | |
3328 | THREADS_TRUE='#' | |
3329 | THREADS_FALSE= | |
3330 | fi | |
3331 | ||
3332 | ||
81ecdfbb RW |
3333 | # Check whether --enable-plugins was given. |
3334 | if test "${enable_plugins+set}" = set; then : | |
3335 | enableval=$enable_plugins; case "${enableval}" in | |
89fc3421 CC |
3336 | yes | "") plugins=yes ;; |
3337 | no) plugins=no ;; | |
3338 | *) plugins=yes ;; | |
3339 | esac | |
3340 | else | |
3341 | plugins=no | |
81ecdfbb RW |
3342 | fi |
3343 | ||
89fc3421 CC |
3344 | if test "$plugins" = "yes"; then |
3345 | ||
81ecdfbb | 3346 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
89fc3421 CC |
3347 | |
3348 | fi | |
81ecdfbb | 3349 | if test "$plugins" = "yes"; then |
89fc3421 CC |
3350 | PLUGINS_TRUE= |
3351 | PLUGINS_FALSE='#' | |
3352 | else | |
3353 | PLUGINS_TRUE='#' | |
3354 | PLUGINS_FALSE= | |
3355 | fi | |
3356 | ||
3357 | ||
6b1edb94 L |
3358 | # Decide if -z relro should be enabled in ELF linker by default. |
3359 | ac_default_ld_z_relro=unset | |
3360 | # Provide a configure time option to override our default. | |
3361 | # Check whether --enable-relro was given. | |
3362 | if test "${enable_relro+set}" = set; then : | |
3363 | enableval=$enable_relro; case "${enableval}" in | |
3364 | yes) ac_default_ld_z_relro=1 ;; | |
3365 | no) ac_default_ld_z_relro=0 ;; | |
3366 | esac | |
3367 | fi | |
3368 | if test "${ac_default_ld_z_relro}" = unset; then | |
3369 | ac_default_ld_z_relro=1 | |
3370 | fi | |
3371 | ||
3372 | cat >>confdefs.h <<_ACEOF | |
3373 | #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro | |
3374 | _ACEOF | |
3375 | ||
3376 | ||
81ecdfbb RW |
3377 | # Check whether --enable-targets was given. |
3378 | if test "${enable_targets+set}" = set; then : | |
3379 | enableval=$enable_targets; case "${enableval}" in | |
193a53d9 | 3380 | yes | "") |
81ecdfbb | 3381 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
193a53d9 ILT |
3382 | ;; |
3383 | no) | |
3384 | enable_targets= | |
3385 | ;; | |
3386 | *) | |
3387 | enable_targets=$enableval | |
3388 | ;; | |
3389 | esac | |
3390 | else | |
3391 | # For now, enable all targets by default | |
3392 | enable_targets=all | |
3393 | ||
81ecdfbb RW |
3394 | fi |
3395 | ||
193a53d9 ILT |
3396 | |
3397 | # Canonicalize the enabled targets. | |
3398 | if test -n "$enable_targets"; then | |
3399 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do | |
3400 | result=`$ac_config_sub $targ 2>/dev/null` | |
3401 | if test -n "$result"; then | |
3402 | canon_targets="$canon_targets $result" | |
3403 | else | |
3404 | # Permit unrecognized target names, like "all". | |
3405 | canon_targets="$canon_targets $targ" | |
3406 | fi | |
3407 | done | |
3408 | fi | |
3409 | ||
3410 | # See which specific instantiations we need. | |
6df6da4a ILT |
3411 | targetobjs= |
3412 | all_targets= | |
fbfba508 ILT |
3413 | default_machine= |
3414 | default_size= | |
3415 | default_big_endian= | |
36959681 | 3416 | default_osabi=ELFOSABI_NONE |
fbfba508 ILT |
3417 | targ_32_little= |
3418 | targ_32_big= | |
81ecdfbb RW |
3419 | targ_64_little= |
3420 | targ_64_big= | |
3421 | for targ in $target $canon_targets; do | |
3422 | if test "$targ" = "all"; then | |
3423 | targ_32_little=yes | |
3424 | targ_32_big=yes | |
3425 | targ_64_little=yes | |
3426 | targ_64_big=yes | |
3427 | all_targets=yes | |
3428 | else | |
3429 | . ${srcdir}/configure.tgt | |
bae7f79e | 3430 | |
81ecdfbb RW |
3431 | if test "$targ_obj" = "UNKNOWN"; then |
3432 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 | |
3433 | else | |
3434 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" | |
3435 | if test "$targ_extra_obj" != ""; then | |
3436 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" | |
3437 | fi | |
3438 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then | |
3439 | if test "$targ_big_endian" = "true" \ | |
3440 | -o "$targ_extra_big_endian" = "true"; then | |
3441 | targ_32_big=yes | |
3442 | fi | |
3443 | if test "$targ_big_endian" = "false" \ | |
3444 | -o "$targ_extra_big_endian" = "false"; then | |
3445 | targ_32_little=yes | |
3446 | fi | |
3447 | fi | |
3448 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then | |
3449 | if test "$targ_big_endian" = "true" \ | |
3450 | -o "$targ_extra_big_endian" = "true"; then | |
3451 | targ_64_big=yes | |
3452 | fi | |
3453 | if test "$targ_big_endian" = "false" \ | |
3454 | -o "$targ_extra_big_endian" = "false"; then | |
3455 | targ_64_little=yes | |
3456 | fi | |
3457 | fi | |
bae7f79e | 3458 | |
81ecdfbb RW |
3459 | if test "$target" = "$targ"; then |
3460 | default_machine=$targ_machine | |
3461 | default_size=$targ_size | |
3462 | default_big_endian=$targ_big_endian | |
3463 | default_osabi=$targ_osabi | |
364c7fa5 | 3464 | |
053a4d68 JY |
3465 | if test "$targ_obj" = "aarch64"; then |
3466 | DEFAULT_TARGET_AARCH64_TRUE= | |
3467 | DEFAULT_TARGET_AARCH64_FALSE='#' | |
3468 | else | |
3469 | DEFAULT_TARGET_AARCH64_TRUE='#' | |
3470 | DEFAULT_TARGET_AARCH64_FALSE= | |
3471 | fi | |
3472 | ||
364c7fa5 ILT |
3473 | if test "$targ_obj" = "arm"; then |
3474 | DEFAULT_TARGET_ARM_TRUE= | |
3475 | DEFAULT_TARGET_ARM_FALSE='#' | |
3476 | else | |
3477 | DEFAULT_TARGET_ARM_TRUE='#' | |
3478 | DEFAULT_TARGET_ARM_FALSE= | |
3479 | fi | |
3480 | ||
3481 | if test "$targ_obj" = "i386"; then | |
3482 | DEFAULT_TARGET_I386_TRUE= | |
3483 | DEFAULT_TARGET_I386_FALSE='#' | |
3484 | else | |
3485 | DEFAULT_TARGET_I386_TRUE='#' | |
3486 | DEFAULT_TARGET_I386_FALSE= | |
3487 | fi | |
3488 | ||
3489 | if test "$targ_obj" = "powerpc"; then | |
3490 | DEFAULT_TARGET_POWERPC_TRUE= | |
3491 | DEFAULT_TARGET_POWERPC_FALSE='#' | |
3492 | else | |
3493 | DEFAULT_TARGET_POWERPC_TRUE='#' | |
3494 | DEFAULT_TARGET_POWERPC_FALSE= | |
3495 | fi | |
3496 | ||
3497 | if test "$targ_obj" = "sparc"; then | |
3498 | DEFAULT_TARGET_SPARC_TRUE= | |
3499 | DEFAULT_TARGET_SPARC_FALSE='#' | |
3500 | else | |
3501 | DEFAULT_TARGET_SPARC_TRUE='#' | |
3502 | DEFAULT_TARGET_SPARC_FALSE= | |
3503 | fi | |
3504 | ||
e79a4bad MK |
3505 | if test "$targ_obj" = "s390"; then |
3506 | DEFAULT_TARGET_S390_TRUE= | |
3507 | DEFAULT_TARGET_S390_FALSE='#' | |
3508 | else | |
3509 | DEFAULT_TARGET_S390_TRUE='#' | |
3510 | DEFAULT_TARGET_S390_FALSE= | |
3511 | fi | |
3512 | ||
4fc1b9d4 L |
3513 | target_x86_64=no |
3514 | target_x32=no | |
3515 | if test "$targ_obj" = "x86_64"; then | |
3516 | case "$target" in | |
3517 | x86_64*-linux-gnux32) | |
3518 | target_x32=yes | |
be66981e | 3519 | default_size=32 |
4fc1b9d4 L |
3520 | ;; |
3521 | *) | |
3522 | target_x86_64=yes | |
3523 | ;; | |
3524 | esac | |
3525 | fi | |
3526 | if test "$target_x86_64" = "yes"; then | |
364c7fa5 ILT |
3527 | DEFAULT_TARGET_X86_64_TRUE= |
3528 | DEFAULT_TARGET_X86_64_FALSE='#' | |
3529 | else | |
3530 | DEFAULT_TARGET_X86_64_TRUE='#' | |
3531 | DEFAULT_TARGET_X86_64_FALSE= | |
3532 | fi | |
3533 | ||
4fc1b9d4 L |
3534 | if test "$target_x32" = "yes"; then |
3535 | DEFAULT_TARGET_X32_TRUE= | |
3536 | DEFAULT_TARGET_X32_FALSE='#' | |
3537 | else | |
3538 | DEFAULT_TARGET_X32_TRUE='#' | |
3539 | DEFAULT_TARGET_X32_FALSE= | |
3540 | fi | |
3541 | ||
0a6f1bf2 AM |
3542 | if test "$targ_obj" = "tilegx"; then |
3543 | DEFAULT_TARGET_TILEGX_TRUE= | |
3544 | DEFAULT_TARGET_TILEGX_FALSE='#' | |
3545 | else | |
3546 | DEFAULT_TARGET_TILEGX_TRUE='#' | |
3547 | DEFAULT_TARGET_TILEGX_FALSE= | |
3548 | fi | |
3549 | ||
9810d34d SS |
3550 | if test "$targ_obj" = "mips"; then |
3551 | DEFAULT_TARGET_MIPS_TRUE= | |
3552 | DEFAULT_TARGET_MIPS_FALSE='#' | |
3553 | else | |
3554 | DEFAULT_TARGET_MIPS_TRUE='#' | |
3555 | DEFAULT_TARGET_MIPS_FALSE= | |
3556 | fi | |
3557 | ||
9df9de2c CC |
3558 | DEFAULT_TARGET=${targ_obj} |
3559 | ||
81ecdfbb RW |
3560 | fi |
3561 | fi | |
bae7f79e | 3562 | fi |
81ecdfbb | 3563 | done |
bae7f79e | 3564 | |
6cfaf60b | 3565 | # Remove any duplicates. |
9109c078 ILT |
3566 | to="" |
3567 | for t in $targetobjs; do | |
3568 | case " $to " in | |
3569 | *" $t "*) ;; | |
3570 | *) to="$to $t" ;; | |
3571 | esac | |
3572 | done | |
3573 | targetobjs=$to | |
6cfaf60b | 3574 | |
81ecdfbb | 3575 | if test -n "$targ_32_little"; then |
bae7f79e | 3576 | |
81ecdfbb | 3577 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
bae7f79e | 3578 | |
537b5f51 | 3579 | fi |
81ecdfbb | 3580 | if test -n "$targ_32_big"; then |
537b5f51 | 3581 | |
81ecdfbb | 3582 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
fa99aa09 | 3583 | |
81ecdfbb RW |
3584 | fi |
3585 | if test -n "$targ_64_little"; then | |
fa99aa09 | 3586 | |
81ecdfbb | 3587 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
fa99aa09 | 3588 | |
81ecdfbb RW |
3589 | fi |
3590 | if test -n "$targ_64_big"; then | |
fa99aa09 | 3591 | |
81ecdfbb | 3592 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
bae7f79e | 3593 | |
bae7f79e | 3594 | fi |
bae7f79e | 3595 | |
81ecdfbb RW |
3596 | if test -n "$all_targets"; then |
3597 | TARGETOBJS='$(ALL_TARGETOBJS)' | |
3598 | else | |
3599 | TARGETOBJS="$targetobjs" | |
3600 | fi | |
bae7f79e | 3601 | |
bae7f79e ILT |
3602 | |
3603 | ||
81ecdfbb RW |
3604 | cat >>confdefs.h <<_ACEOF |
3605 | #define GOLD_DEFAULT_MACHINE $default_machine | |
3606 | _ACEOF | |
bae7f79e | 3607 | |
bae7f79e | 3608 | |
81ecdfbb RW |
3609 | cat >>confdefs.h <<_ACEOF |
3610 | #define GOLD_DEFAULT_SIZE $default_size | |
3611 | _ACEOF | |
bae7f79e | 3612 | |
bae7f79e | 3613 | |
81ecdfbb RW |
3614 | cat >>confdefs.h <<_ACEOF |
3615 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian | |
3616 | _ACEOF | |
bae7f79e | 3617 | |
bae7f79e | 3618 | |
81ecdfbb RW |
3619 | cat >>confdefs.h <<_ACEOF |
3620 | #define GOLD_DEFAULT_OSABI $default_osabi | |
3621 | _ACEOF | |
bae7f79e ILT |
3622 | |
3623 | ||
3f3cddf1 ILT |
3624 | |
3625 | # Check whether --with-lib-path was given. | |
3626 | if test "${with_lib_path+set}" = set; then : | |
3627 | withval=$with_lib_path; case "$withval" in | |
3628 | yes) LIB_PATH='"/lib:/usr/lib"' ;; | |
3629 | no) LIB_PATH='""' ;; | |
3630 | *) LIB_PATH='"'"$withval"'"' ;; | |
3631 | esac | |
3632 | else | |
3633 | LIB_PATH='"::DEFAULT::"' | |
3634 | fi | |
3635 | ||
3636 | ||
3637 | cat >>confdefs.h <<_ACEOF | |
3638 | #define LIB_PATH $LIB_PATH | |
3639 | _ACEOF | |
3640 | ||
3641 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then | |
3642 | ||
3643 | $as_echo "#define NATIVE_LINKER 1" >>confdefs.h | |
3644 | ||
3645 | fi | |
3646 | ||
ebb300b2 CC |
3647 | if test -n "$ac_tool_prefix"; then |
3648 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
3649 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3651 | $as_echo_n "checking for $ac_word... " >&6; } | |
3652 | if test "${ac_cv_prog_NM+set}" = set; then : | |
3653 | $as_echo_n "(cached) " >&6 | |
3654 | else | |
3655 | if test -n "$NM"; then | |
3656 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3657 | else | |
3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3659 | for as_dir in $PATH | |
3660 | do | |
3661 | IFS=$as_save_IFS | |
3662 | test -z "$as_dir" && as_dir=. | |
3663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3665 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
3666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3667 | break 2 | |
3668 | fi | |
3669 | done | |
3670 | done | |
3671 | IFS=$as_save_IFS | |
3672 | ||
3673 | fi | |
3674 | fi | |
3675 | NM=$ac_cv_prog_NM | |
3676 | if test -n "$NM"; then | |
3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
3678 | $as_echo "$NM" >&6; } | |
3679 | else | |
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3681 | $as_echo "no" >&6; } | |
3682 | fi | |
3683 | ||
3684 | ||
3685 | fi | |
3686 | if test -z "$ac_cv_prog_NM"; then | |
3687 | ac_ct_NM=$NM | |
3688 | # Extract the first word of "nm", so it can be a program name with args. | |
3689 | set dummy nm; ac_word=$2 | |
3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3691 | $as_echo_n "checking for $ac_word... " >&6; } | |
3692 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
3693 | $as_echo_n "(cached) " >&6 | |
3694 | else | |
3695 | if test -n "$ac_ct_NM"; then | |
3696 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
3697 | else | |
3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3699 | for as_dir in $PATH | |
3700 | do | |
3701 | IFS=$as_save_IFS | |
3702 | test -z "$as_dir" && as_dir=. | |
3703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3705 | ac_cv_prog_ac_ct_NM="nm" | |
3706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3707 | break 2 | |
3708 | fi | |
3709 | done | |
3710 | done | |
3711 | IFS=$as_save_IFS | |
3712 | ||
3713 | fi | |
3714 | fi | |
3715 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3716 | if test -n "$ac_ct_NM"; then | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
3718 | $as_echo "$ac_ct_NM" >&6; } | |
3719 | else | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3721 | $as_echo "no" >&6; } | |
3722 | fi | |
3723 | ||
3724 | if test "x$ac_ct_NM" = x; then | |
3725 | NM="" | |
3726 | else | |
3727 | case $cross_compiling:$ac_tool_warned in | |
3728 | yes:) | |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3731 | ac_tool_warned=yes ;; | |
3732 | esac | |
3733 | NM=$ac_ct_NM | |
3734 | fi | |
3735 | else | |
3736 | NM="$ac_cv_prog_NM" | |
3737 | fi | |
3738 | ||
3739 | ||
81ecdfbb RW |
3740 | ac_ext=c |
3741 | ac_cpp='$CPP $CPPFLAGS' | |
3742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3745 | if test -n "$ac_tool_prefix"; then | |
3746 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3747 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3749 | $as_echo_n "checking for $ac_word... " >&6; } | |
3750 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3751 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3752 | else |
81ecdfbb RW |
3753 | if test -n "$CC"; then |
3754 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3755 | else | |
3756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3757 | for as_dir in $PATH | |
3758 | do | |
3759 | IFS=$as_save_IFS | |
3760 | test -z "$as_dir" && as_dir=. | |
3761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3763 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3765 | break 2 | |
3766 | fi | |
3767 | done | |
3768 | done | |
3769 | IFS=$as_save_IFS | |
bae7f79e | 3770 | |
81ecdfbb RW |
3771 | fi |
3772 | fi | |
3773 | CC=$ac_cv_prog_CC | |
3774 | if test -n "$CC"; then | |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3776 | $as_echo "$CC" >&6; } | |
3777 | else | |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3779 | $as_echo "no" >&6; } | |
3780 | fi | |
bae7f79e ILT |
3781 | |
3782 | ||
bae7f79e | 3783 | fi |
81ecdfbb RW |
3784 | if test -z "$ac_cv_prog_CC"; then |
3785 | ac_ct_CC=$CC | |
3786 | # Extract the first word of "gcc", so it can be a program name with args. | |
3787 | set dummy gcc; ac_word=$2 | |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3789 | $as_echo_n "checking for $ac_word... " >&6; } | |
3790 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3791 | $as_echo_n "(cached) " >&6 | |
3792 | else | |
3793 | if test -n "$ac_ct_CC"; then | |
3794 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3795 | else | |
3796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3797 | for as_dir in $PATH | |
3798 | do | |
3799 | IFS=$as_save_IFS | |
3800 | test -z "$as_dir" && as_dir=. | |
3801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3803 | ac_cv_prog_ac_ct_CC="gcc" | |
3804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3805 | break 2 | |
3806 | fi | |
3807 | done | |
3808 | done | |
3809 | IFS=$as_save_IFS | |
bae7f79e | 3810 | |
81ecdfbb RW |
3811 | fi |
3812 | fi | |
3813 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3814 | if test -n "$ac_ct_CC"; then | |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3816 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 3817 | else |
81ecdfbb RW |
3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3819 | $as_echo "no" >&6; } | |
bae7f79e | 3820 | fi |
bae7f79e | 3821 | |
81ecdfbb RW |
3822 | if test "x$ac_ct_CC" = x; then |
3823 | CC="" | |
3824 | else | |
3825 | case $cross_compiling:$ac_tool_warned in | |
3826 | yes:) | |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3828 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3829 | ac_tool_warned=yes ;; | |
bae7f79e | 3830 | esac |
81ecdfbb RW |
3831 | CC=$ac_ct_CC |
3832 | fi | |
bae7f79e | 3833 | else |
81ecdfbb | 3834 | CC="$ac_cv_prog_CC" |
bae7f79e ILT |
3835 | fi |
3836 | ||
81ecdfbb RW |
3837 | if test -z "$CC"; then |
3838 | if test -n "$ac_tool_prefix"; then | |
3839 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3840 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3842 | $as_echo_n "checking for $ac_word... " >&6; } | |
3843 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3844 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3845 | else |
81ecdfbb RW |
3846 | if test -n "$CC"; then |
3847 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3848 | else | |
3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bae7f79e ILT |
3850 | for as_dir in $PATH |
3851 | do | |
3852 | IFS=$as_save_IFS | |
3853 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3854 | for ac_exec_ext in '' $ac_executable_extensions; do |
3855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3856 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bae7f79e ILT |
3858 | break 2 |
3859 | fi | |
3860 | done | |
81ecdfbb RW |
3861 | done |
3862 | IFS=$as_save_IFS | |
bae7f79e | 3863 | |
bae7f79e | 3864 | fi |
81ecdfbb RW |
3865 | fi |
3866 | CC=$ac_cv_prog_CC | |
3867 | if test -n "$CC"; then | |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3869 | $as_echo "$CC" >&6; } | |
bae7f79e | 3870 | else |
81ecdfbb RW |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3872 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3873 | fi |
3874 | ||
3875 | ||
81ecdfbb RW |
3876 | fi |
3877 | fi | |
3878 | if test -z "$CC"; then | |
3879 | # Extract the first word of "cc", so it can be a program name with args. | |
3880 | set dummy cc; ac_word=$2 | |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3882 | $as_echo_n "checking for $ac_word... " >&6; } | |
3883 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3884 | $as_echo_n "(cached) " >&6 | |
3885 | else | |
3886 | if test -n "$CC"; then | |
3887 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3888 | else | |
3889 | ac_prog_rejected=no | |
3890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3891 | for as_dir in $PATH | |
3892 | do | |
3893 | IFS=$as_save_IFS | |
3894 | test -z "$as_dir" && as_dir=. | |
3895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3897 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3898 | ac_prog_rejected=yes | |
3899 | continue | |
3900 | fi | |
3901 | ac_cv_prog_CC="cc" | |
3902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3903 | break 2 | |
3904 | fi | |
3905 | done | |
3906 | done | |
3907 | IFS=$as_save_IFS | |
bae7f79e | 3908 | |
81ecdfbb RW |
3909 | if test $ac_prog_rejected = yes; then |
3910 | # We found a bogon in the path, so make sure we never use it. | |
3911 | set dummy $ac_cv_prog_CC | |
3912 | shift | |
3913 | if test $# != 0; then | |
3914 | # We chose a different compiler from the bogus one. | |
3915 | # However, it has the same basename, so the bogon will be chosen | |
3916 | # first if we set CC to just the basename; use the full file name. | |
3917 | shift | |
3918 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
bae7f79e | 3919 | fi |
81ecdfbb RW |
3920 | fi |
3921 | fi | |
3922 | fi | |
3923 | CC=$ac_cv_prog_CC | |
3924 | if test -n "$CC"; then | |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3926 | $as_echo "$CC" >&6; } | |
3927 | else | |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3929 | $as_echo "no" >&6; } | |
bae7f79e ILT |
3930 | fi |
3931 | ||
81ecdfbb RW |
3932 | |
3933 | fi | |
3934 | if test -z "$CC"; then | |
3935 | if test -n "$ac_tool_prefix"; then | |
3936 | for ac_prog in cl.exe | |
3937 | do | |
3938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3941 | $as_echo_n "checking for $ac_word... " >&6; } | |
3942 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3943 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3944 | else |
81ecdfbb RW |
3945 | if test -n "$CC"; then |
3946 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3947 | else | |
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3949 | for as_dir in $PATH | |
3950 | do | |
3951 | IFS=$as_save_IFS | |
3952 | test -z "$as_dir" && as_dir=. | |
3953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3955 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3957 | break 2 | |
3958 | fi | |
3959 | done | |
3960 | done | |
3961 | IFS=$as_save_IFS | |
3962 | ||
3963 | fi | |
3964 | fi | |
3965 | CC=$ac_cv_prog_CC | |
3966 | if test -n "$CC"; then | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3968 | $as_echo "$CC" >&6; } | |
3969 | else | |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3971 | $as_echo "no" >&6; } | |
bae7f79e | 3972 | fi |
bae7f79e | 3973 | |
81ecdfbb RW |
3974 | |
3975 | test -n "$CC" && break | |
3976 | done | |
3977 | fi | |
3978 | if test -z "$CC"; then | |
3979 | ac_ct_CC=$CC | |
3980 | for ac_prog in cl.exe | |
3981 | do | |
3982 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3983 | set dummy $ac_prog; ac_word=$2 | |
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3985 | $as_echo_n "checking for $ac_word... " >&6; } | |
3986 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3987 | $as_echo_n "(cached) " >&6 | |
bae7f79e | 3988 | else |
81ecdfbb RW |
3989 | if test -n "$ac_ct_CC"; then |
3990 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3991 | else | |
3992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3993 | for as_dir in $PATH | |
3994 | do | |
3995 | IFS=$as_save_IFS | |
3996 | test -z "$as_dir" && as_dir=. | |
3997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3999 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4001 | break 2 | |
4002 | fi | |
4003 | done | |
4004 | done | |
4005 | IFS=$as_save_IFS | |
4006 | ||
bae7f79e | 4007 | fi |
81ecdfbb RW |
4008 | fi |
4009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4010 | if test -n "$ac_ct_CC"; then | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4012 | $as_echo "$ac_ct_CC" >&6; } | |
bae7f79e | 4013 | else |
81ecdfbb RW |
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4015 | $as_echo "no" >&6; } | |
bae7f79e ILT |
4016 | fi |
4017 | ||
bae7f79e | 4018 | |
81ecdfbb RW |
4019 | test -n "$ac_ct_CC" && break |
4020 | done | |
bae7f79e | 4021 | |
81ecdfbb RW |
4022 | if test "x$ac_ct_CC" = x; then |
4023 | CC="" | |
bae7f79e | 4024 | else |
81ecdfbb RW |
4025 | case $cross_compiling:$ac_tool_warned in |
4026 | yes:) | |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4029 | ac_tool_warned=yes ;; | |
4030 | esac | |
4031 | CC=$ac_ct_CC | |
bae7f79e | 4032 | fi |
bae7f79e ILT |
4033 | fi |
4034 | ||
bae7f79e | 4035 | fi |
bae7f79e | 4036 | |
81ecdfbb RW |
4037 | |
4038 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4040 | as_fn_error "no acceptable C compiler found in \$PATH | |
4041 | See \`config.log' for more details." "$LINENO" 5; } | |
4042 | ||
4043 | # Provide some information about the compiler. | |
4044 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4045 | set X $ac_compile | |
4046 | ac_compiler=$2 | |
4047 | for ac_option in --version -v -V -qversion; do | |
4048 | { { ac_try="$ac_compiler $ac_option >&5" | |
4049 | case "(($ac_try" in | |
4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4051 | *) ac_try_echo=$ac_try;; | |
bae7f79e | 4052 | esac |
81ecdfbb RW |
4053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4054 | $as_echo "$ac_try_echo"; } >&5 | |
4055 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4056 | ac_status=$? | |
4057 | if test -s conftest.err; then | |
4058 | sed '10a\ | |
4059 | ... rest of stderr output deleted ... | |
4060 | 10q' conftest.err >conftest.er1 | |
4061 | cat conftest.er1 >&5 | |
4062 | rm -f conftest.er1 conftest.err | |
4063 | fi | |
4064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4065 | test $ac_status = 0; } | |
4066 | done | |
4067 | ||
4068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4069 | /* end confdefs.h. */ | |
4070 | ||
4071 | int | |
4072 | main () | |
4073 | { | |
4074 | ||
4075 | ; | |
4076 | return 0; | |
4077 | } | |
4078 | _ACEOF | |
4079 | ac_clean_files_save=$ac_clean_files | |
4080 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
4081 | # Try to create an executable without -o first, disregard a.out. | |
4082 | # It will help us diagnose broken compilers, and finding out an intuition | |
4083 | # of exeext. | |
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4085 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4086 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4087 | ||
4088 | # The possible output files: | |
4089 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4090 | ||
4091 | ac_rmfiles= | |
4092 | for ac_file in $ac_files | |
4093 | do | |
4094 | case $ac_file in | |
4095 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4096 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4097 | esac | |
4098 | done | |
4099 | rm -f $ac_rmfiles | |
4100 | ||
4101 | if { { ac_try="$ac_link_default" | |
4102 | case "(($ac_try" in | |
4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | *) ac_try_echo=$ac_try;; | |
4105 | esac | |
4106 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4107 | $as_echo "$ac_try_echo"; } >&5 | |
4108 | (eval "$ac_link_default") 2>&5 | |
4109 | ac_status=$? | |
4110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4111 | test $ac_status = 0; }; then : | |
4112 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4113 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4114 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4115 | # so that the user can short-circuit this test for compilers unknown to | |
4116 | # Autoconf. | |
4117 | for ac_file in $ac_files '' | |
4118 | do | |
4119 | test -f "$ac_file" || continue | |
4120 | case $ac_file in | |
4121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4122 | ;; | |
4123 | [ab].out ) | |
4124 | # We found the default executable, but exeext='' is most | |
4125 | # certainly right. | |
4126 | break;; | |
4127 | *.* ) | |
4128 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4129 | then :; else | |
4130 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4131 | fi | |
4132 | # We set ac_cv_exeext here because the later test for it is not | |
4133 | # safe: cross compilers may not add the suffix if given an `-o' | |
4134 | # argument, so we may need to know it at that point already. | |
4135 | # Even if this section looks crufty: it has the advantage of | |
4136 | # actually working. | |
4137 | break;; | |
4138 | * ) | |
4139 | break;; | |
4140 | esac | |
4141 | done | |
4142 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4143 | ||
bae7f79e | 4144 | else |
81ecdfbb | 4145 | ac_file='' |
bae7f79e | 4146 | fi |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4148 | $as_echo "$ac_file" >&6; } | |
4149 | if test -z "$ac_file"; then : | |
4150 | $as_echo "$as_me: failed program was:" >&5 | |
4151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bae7f79e | 4152 | |
81ecdfbb RW |
4153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4155 | { as_fn_set_status 77 | |
4156 | as_fn_error "C compiler cannot create executables | |
4157 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4158 | fi | |
4159 | ac_exeext=$ac_cv_exeext | |
bae7f79e | 4160 | |
81ecdfbb RW |
4161 | # Check that the compiler produces executables we can run. If not, either |
4162 | # the compiler is broken, or we cross compile. | |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4164 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4165 | # If not cross compiling, check that we can run a simple program. | |
4166 | if test "$cross_compiling" != yes; then | |
4167 | if { ac_try='./$ac_file' | |
4168 | { { case "(($ac_try" in | |
4169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4170 | *) ac_try_echo=$ac_try;; | |
4171 | esac | |
4172 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4173 | $as_echo "$ac_try_echo"; } >&5 | |
4174 | (eval "$ac_try") 2>&5 | |
4175 | ac_status=$? | |
4176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4177 | test $ac_status = 0; }; }; then | |
4178 | cross_compiling=no | |
4179 | else | |
4180 | if test "$cross_compiling" = maybe; then | |
4181 | cross_compiling=yes | |
bae7f79e | 4182 | else |
81ecdfbb RW |
4183 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4185 | as_fn_error "cannot run C compiled programs. | |
4186 | If you meant to cross compile, use \`--host'. | |
4187 | See \`config.log' for more details." "$LINENO" 5; } | |
bae7f79e | 4188 | fi |
bae7f79e | 4189 | fi |
81ecdfbb RW |
4190 | fi |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4192 | $as_echo "yes" >&6; } | |
bae7f79e | 4193 | |
81ecdfbb RW |
4194 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4195 | ac_clean_files=$ac_clean_files_save | |
4196 | # Check that the compiler produces executables we can run. If not, either | |
4197 | # the compiler is broken, or we cross compile. | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4199 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4201 | $as_echo "$cross_compiling" >&6; } | |
4202 | ||
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4204 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4205 | if { { ac_try="$ac_link" | |
4206 | case "(($ac_try" in | |
4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4208 | *) ac_try_echo=$ac_try;; | |
4209 | esac | |
4210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4211 | $as_echo "$ac_try_echo"; } >&5 | |
4212 | (eval "$ac_link") 2>&5 | |
4213 | ac_status=$? | |
4214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4215 | test $ac_status = 0; }; then : | |
4216 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4217 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4218 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4219 | # `rm'. | |
4220 | for ac_file in conftest.exe conftest conftest.*; do | |
4221 | test -f "$ac_file" || continue | |
4222 | case $ac_file in | |
4223 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4224 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4225 | break;; | |
4226 | * ) break;; | |
4227 | esac | |
4228 | done | |
4229 | else | |
4230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4232 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4233 | See \`config.log' for more details." "$LINENO" 5; } | |
4234 | fi | |
4235 | rm -f conftest$ac_cv_exeext | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4237 | $as_echo "$ac_cv_exeext" >&6; } | |
bae7f79e | 4238 | |
81ecdfbb RW |
4239 | rm -f conftest.$ac_ext |
4240 | EXEEXT=$ac_cv_exeext | |
4241 | ac_exeext=$EXEEXT | |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4243 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4244 | if test "${ac_cv_objext+set}" = set; then : | |
4245 | $as_echo_n "(cached) " >&6 | |
92e059d8 | 4246 | else |
81ecdfbb | 4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
92e059d8 | 4248 | /* end confdefs.h. */ |
92e059d8 ILT |
4249 | |
4250 | int | |
4251 | main () | |
4252 | { | |
92e059d8 ILT |
4253 | |
4254 | ; | |
4255 | return 0; | |
4256 | } | |
4257 | _ACEOF | |
81ecdfbb RW |
4258 | rm -f conftest.o conftest.obj |
4259 | if { { ac_try="$ac_compile" | |
4260 | case "(($ac_try" in | |
4261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4262 | *) ac_try_echo=$ac_try;; | |
4263 | esac | |
4264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4265 | $as_echo "$ac_try_echo"; } >&5 | |
4266 | (eval "$ac_compile") 2>&5 | |
4267 | ac_status=$? | |
4268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4269 | test $ac_status = 0; }; then : | |
4270 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4271 | test -f "$ac_file" || continue; | |
4272 | case $ac_file in | |
4273 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4274 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4275 | break;; | |
4276 | esac | |
4277 | done | |
4278 | else | |
4279 | $as_echo "$as_me: failed program was:" >&5 | |
4280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4281 | ||
4282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4284 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4285 | See \`config.log' for more details." "$LINENO" 5; } | |
4286 | fi | |
4287 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4288 | fi | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4290 | $as_echo "$ac_cv_objext" >&6; } | |
4291 | OBJEXT=$ac_cv_objext | |
4292 | ac_objext=$OBJEXT | |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4294 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4295 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4296 | $as_echo_n "(cached) " >&6 | |
4297 | else | |
4298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4299 | /* end confdefs.h. */ |
92e059d8 ILT |
4300 | |
4301 | int | |
4302 | main () | |
4303 | { | |
81ecdfbb RW |
4304 | #ifndef __GNUC__ |
4305 | choke me | |
92e059d8 ILT |
4306 | #endif |
4307 | ||
4308 | ; | |
4309 | return 0; | |
4310 | } | |
4311 | _ACEOF | |
81ecdfbb RW |
4312 | if ac_fn_c_try_compile "$LINENO"; then : |
4313 | ac_compiler_gnu=yes | |
92e059d8 | 4314 | else |
81ecdfbb RW |
4315 | ac_compiler_gnu=no |
4316 | fi | |
4317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4318 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
92e059d8 | 4319 | |
92e059d8 | 4320 | fi |
81ecdfbb RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4322 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4323 | if test $ac_compiler_gnu = yes; then | |
4324 | GCC=yes | |
92e059d8 | 4325 | else |
81ecdfbb RW |
4326 | GCC= |
4327 | fi | |
4328 | ac_test_CFLAGS=${CFLAGS+set} | |
4329 | ac_save_CFLAGS=$CFLAGS | |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4331 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4332 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4333 | $as_echo_n "(cached) " >&6 | |
4334 | else | |
4335 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4336 | ac_c_werror_flag=yes | |
4337 | ac_cv_prog_cc_g=no | |
4338 | CFLAGS="-g" | |
4339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4340 | /* end confdefs.h. */ |
81ecdfbb | 4341 | |
92e059d8 ILT |
4342 | int |
4343 | main () | |
4344 | { | |
81ecdfbb | 4345 | |
92e059d8 ILT |
4346 | ; |
4347 | return 0; | |
4348 | } | |
4349 | _ACEOF | |
81ecdfbb RW |
4350 | if ac_fn_c_try_compile "$LINENO"; then : |
4351 | ac_cv_prog_cc_g=yes | |
92e059d8 | 4352 | else |
81ecdfbb RW |
4353 | CFLAGS="" |
4354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
92e059d8 | 4355 | /* end confdefs.h. */ |
81ecdfbb | 4356 | |
92e059d8 ILT |
4357 | int |
4358 | main () | |
4359 | { | |
81ecdfbb RW |
4360 | |
4361 | ; | |
4362 | return 0; | |
92e059d8 ILT |
4363 | } |
4364 | _ACEOF | |
81ecdfbb RW |
4365 | if ac_fn_c_try_compile "$LINENO"; then : |
4366 | ||
92e059d8 | 4367 | else |
81ecdfbb RW |
4368 | ac_c_werror_flag=$ac_save_c_werror_flag |
4369 | CFLAGS="-g" | |
4370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4371 | /* end confdefs.h. */ | |
92e059d8 | 4372 | |
81ecdfbb RW |
4373 | int |
4374 | main () | |
4375 | { | |
92e059d8 | 4376 | |
81ecdfbb RW |
4377 | ; |
4378 | return 0; | |
4379 | } | |
92e059d8 | 4380 | _ACEOF |
81ecdfbb RW |
4381 | if ac_fn_c_try_compile "$LINENO"; then : |
4382 | ac_cv_prog_cc_g=yes | |
537b5f51 | 4383 | fi |
81ecdfbb | 4384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
537b5f51 | 4385 | fi |
81ecdfbb | 4386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
63402fe4 | 4387 | fi |
81ecdfbb RW |
4388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4389 | ac_c_werror_flag=$ac_save_c_werror_flag | |
8a5e3e08 | 4390 | fi |
81ecdfbb RW |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4392 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4393 | if test "$ac_test_CFLAGS" = set; then | |
4394 | CFLAGS=$ac_save_CFLAGS | |
4395 | elif test $ac_cv_prog_cc_g = yes; then | |
4396 | if test "$GCC" = yes; then | |
4397 | CFLAGS="-g -O2" | |
4398 | else | |
4399 | CFLAGS="-g" | |
4400 | fi | |
6eee141f | 4401 | else |
81ecdfbb RW |
4402 | if test "$GCC" = yes; then |
4403 | CFLAGS="-O2" | |
4404 | else | |
4405 | CFLAGS= | |
4406 | fi | |
097ec620 | 4407 | fi |
81ecdfbb RW |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4409 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4410 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4411 | $as_echo_n "(cached) " >&6 | |
6eee141f | 4412 | else |
81ecdfbb RW |
4413 | ac_cv_prog_cc_c89=no |
4414 | ac_save_CC=$CC | |
4415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4416 | /* end confdefs.h. */ | |
4417 | #include <stdarg.h> | |
4418 | #include <stdio.h> | |
4419 | #include <sys/types.h> | |
4420 | #include <sys/stat.h> | |
4421 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4422 | struct buf { int x; }; | |
4423 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4424 | static char *e (p, i) | |
4425 | char **p; | |
4426 | int i; | |
4427 | { | |
4428 | return p[i]; | |
4429 | } | |
4430 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4431 | { | |
4432 | char *s; | |
4433 | va_list v; | |
4434 | va_start (v,p); | |
4435 | s = g (p, va_arg (v,int)); | |
4436 | va_end (v); | |
4437 | return s; | |
4438 | } | |
6eee141f | 4439 | |
81ecdfbb RW |
4440 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4441 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4442 | These don't provoke an error unfortunately, instead are silently treated | |
4443 | as 'x'. The following induces an error, until -std is added to get | |
4444 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4445 | array size at least. It's necessary to write '\x00'==0 to get something | |
4446 | that's true only with -std. */ | |
4447 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
097ec620 | 4448 | |
81ecdfbb RW |
4449 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4450 | inside strings and character constants. */ | |
4451 | #define FOO(x) 'x' | |
4452 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
097ec620 | 4453 | |
81ecdfbb RW |
4454 | int test (int i, double x); |
4455 | struct s1 {int (*f) (int a);}; | |
4456 | struct s2 {int (*f) (double a);}; | |
4457 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4458 | int argc; | |
4459 | char **argv; | |
4460 | int | |
4461 | main () | |
4462 | { | |
4463 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4464 | ; | |
4465 | return 0; | |
4466 | } | |
097ec620 | 4467 | _ACEOF |
81ecdfbb RW |
4468 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4469 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4470 | do | |
4471 | CC="$ac_save_CC $ac_arg" | |
4472 | if ac_fn_c_try_compile "$LINENO"; then : | |
4473 | ac_cv_prog_cc_c89=$ac_arg | |
097ec620 | 4474 | fi |
81ecdfbb RW |
4475 | rm -f core conftest.err conftest.$ac_objext |
4476 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4477 | done | |
4478 | rm -f conftest.$ac_ext | |
4479 | CC=$ac_save_CC | |
097ec620 | 4480 | |
097ec620 | 4481 | fi |
81ecdfbb RW |
4482 | # AC_CACHE_VAL |
4483 | case "x$ac_cv_prog_cc_c89" in | |
4484 | x) | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4486 | $as_echo "none needed" >&6; } ;; | |
4487 | xno) | |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4489 | $as_echo "unsupported" >&6; } ;; | |
4490 | *) | |
4491 | CC="$CC $ac_cv_prog_cc_c89" | |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4493 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4494 | esac | |
4495 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
097ec620 | 4496 | |
81ecdfbb | 4497 | fi |
097ec620 | 4498 | |
81ecdfbb RW |
4499 | ac_ext=c |
4500 | ac_cpp='$CPP $CPPFLAGS' | |
4501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4504 | DEPDIR="${am__leading_dot}deps" | |
155a0dd7 | 4505 | |
81ecdfbb | 4506 | ac_config_commands="$ac_config_commands depfiles" |
155a0dd7 | 4507 | |
155a0dd7 | 4508 | |
81ecdfbb RW |
4509 | am_make=${MAKE-make} |
4510 | cat > confinc << 'END' | |
4511 | am__doit: | |
4512 | @echo this is the am__doit target | |
4513 | .PHONY: am__doit | |
4514 | END | |
4515 | # If we don't find an include directive, just comment out the code. | |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4517 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4518 | am__include="#" | |
4519 | am__quote= | |
4520 | _am_result=none | |
4521 | # First try GNU make style include. | |
4522 | echo "include confinc" > confmf | |
4523 | # Ignore all kinds of additional output from `make'. | |
4524 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4525 | *the\ am__doit\ target*) | |
4526 | am__include=include | |
4527 | am__quote= | |
4528 | _am_result=GNU | |
4529 | ;; | |
4530 | esac | |
4531 | # Now try BSD make style include. | |
4532 | if test "$am__include" = "#"; then | |
4533 | echo '.include "confinc"' > confmf | |
4534 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4535 | *the\ am__doit\ target*) | |
4536 | am__include=.include | |
4537 | am__quote="\"" | |
4538 | _am_result=BSD | |
4539 | ;; | |
4540 | esac | |
155a0dd7 | 4541 | fi |
155a0dd7 | 4542 | |
155a0dd7 | 4543 | |
81ecdfbb RW |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4545 | $as_echo "$_am_result" >&6; } | |
4546 | rm -f confinc confmf | |
155a0dd7 | 4547 | |
81ecdfbb RW |
4548 | # Check whether --enable-dependency-tracking was given. |
4549 | if test "${enable_dependency_tracking+set}" = set; then : | |
4550 | enableval=$enable_dependency_tracking; | |
4551 | fi | |
155a0dd7 | 4552 | |
81ecdfbb RW |
4553 | if test "x$enable_dependency_tracking" != xno; then |
4554 | am_depcomp="$ac_aux_dir/depcomp" | |
4555 | AMDEPBACKSLASH='\' | |
6eb7d830 | 4556 | am__nodep='_no' |
81ecdfbb RW |
4557 | fi |
4558 | if test "x$enable_dependency_tracking" != xno; then | |
4559 | AMDEP_TRUE= | |
4560 | AMDEP_FALSE='#' | |
155a0dd7 | 4561 | else |
81ecdfbb RW |
4562 | AMDEP_TRUE='#' |
4563 | AMDEP_FALSE= | |
155a0dd7 ILT |
4564 | fi |
4565 | ||
4566 | ||
c2b45e22 | 4567 | |
81ecdfbb | 4568 | depcc="$CC" am_compiler_list= |
c2b45e22 | 4569 | |
81ecdfbb RW |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4571 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4572 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4573 | $as_echo_n "(cached) " >&6 | |
c2b45e22 | 4574 | else |
81ecdfbb RW |
4575 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4576 | # We make a subdir and do the tests there. Otherwise we can end up | |
4577 | # making bogus files that we don't know about and never remove. For | |
4578 | # instance it was reported that on HP-UX the gcc test will end up | |
4579 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4580 | # in D'. | |
6eb7d830 | 4581 | rm -rf conftest.dir |
81ecdfbb RW |
4582 | mkdir conftest.dir |
4583 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4584 | # using a relative directory. | |
4585 | cp "$am_depcomp" conftest.dir | |
4586 | cd conftest.dir | |
4587 | # We will build objects and dependencies in a subdirectory because | |
4588 | # it helps to detect inapplicable dependency modes. For instance | |
4589 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4590 | # side effect of compilation, but ICC will put the dependencies in | |
4591 | # the current directory while Tru64 will put them in the object | |
4592 | # directory. | |
4593 | mkdir sub | |
c2b45e22 | 4594 | |
81ecdfbb RW |
4595 | am_cv_CC_dependencies_compiler_type=none |
4596 | if test "$am_compiler_list" = ""; then | |
4597 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4598 | fi | |
4599 | am__universal=false | |
4600 | case " $depcc " in #( | |
4601 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4602 | esac | |
c2b45e22 | 4603 | |
81ecdfbb RW |
4604 | for depmode in $am_compiler_list; do |
4605 | # Setup a source with many dependencies, because some compilers | |
4606 | # like to wrap large dependency lists on column 80 (with \), and | |
4607 | # we should not choose a depcomp mode which is confused by this. | |
4608 | # | |
4609 | # We need to recreate these files for each test, as the compiler may | |
4610 | # overwrite some of them when testing with obscure command lines. | |
4611 | # This happens at least with the AIX C compiler. | |
4612 | : > sub/conftest.c | |
4613 | for i in 1 2 3 4 5 6; do | |
4614 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4615 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4616 | # Solaris 8's {/usr,}/bin/sh. | |
4617 | touch sub/conftst$i.h | |
4618 | done | |
4619 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c2b45e22 | 4620 | |
81ecdfbb RW |
4621 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4622 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4623 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4624 | # versions had trouble with output in subdirs | |
4625 | am__obj=sub/conftest.${OBJEXT-o} | |
4626 | am__minus_obj="-o $am__obj" | |
4627 | case $depmode in | |
4628 | gcc) | |
4629 | # This depmode causes a compiler race in universal mode. | |
4630 | test "$am__universal" = false || continue | |
4631 | ;; | |
4632 | nosideeffect) | |
4633 | # after this tag, mechanisms are not by side-effect, so they'll | |
4634 | # only be used when explicitly requested | |
4635 | if test "x$enable_dependency_tracking" = xyes; then | |
4636 | continue | |
4637 | else | |
4638 | break | |
4639 | fi | |
4640 | ;; | |
6eb7d830 | 4641 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
81ecdfbb RW |
4642 | # This compiler won't grok `-c -o', but also, the minuso test has |
4643 | # not run yet. These depmodes are late enough in the game, and | |
4644 | # so weak that their functioning should not be impacted. | |
4645 | am__obj=conftest.${OBJEXT-o} | |
4646 | am__minus_obj= | |
4647 | ;; | |
4648 | none) break ;; | |
4649 | esac | |
4650 | if depmode=$depmode \ | |
4651 | source=sub/conftest.c object=$am__obj \ | |
4652 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4653 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4654 | >/dev/null 2>conftest.err && | |
4655 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4656 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4657 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4658 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4659 | # icc doesn't choke on unknown options, it will just issue warnings | |
4660 | # or remarks (even with -Werror). So we grep stderr for any message | |
4661 | # that says an option was ignored or not supported. | |
4662 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4663 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4664 | # The diagnosis changed in icc 8.0: | |
4665 | # icc: Command line remark: option '-MP' not supported | |
4666 | if (grep 'ignoring option' conftest.err || | |
4667 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4668 | am_cv_CC_dependencies_compiler_type=$depmode | |
4669 | break | |
4670 | fi | |
4671 | fi | |
4672 | done | |
c2b45e22 | 4673 | |
81ecdfbb RW |
4674 | cd .. |
4675 | rm -rf conftest.dir | |
c2b45e22 | 4676 | else |
81ecdfbb | 4677 | am_cv_CC_dependencies_compiler_type=none |
c2b45e22 | 4678 | fi |
c2b45e22 | 4679 | |
81ecdfbb RW |
4680 | fi |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4682 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4683 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c2b45e22 | 4684 | |
81ecdfbb RW |
4685 | if |
4686 | test "x$enable_dependency_tracking" != xno \ | |
4687 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4688 | am__fastdepCC_TRUE= | |
4689 | am__fastdepCC_FALSE='#' | |
c2b45e22 | 4690 | else |
81ecdfbb RW |
4691 | am__fastdepCC_TRUE='#' |
4692 | am__fastdepCC_FALSE= | |
c2b45e22 CC |
4693 | fi |
4694 | ||
4695 | ||
81ecdfbb RW |
4696 | ac_ext=cpp |
4697 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4701 | if test -z "$CXX"; then | |
4702 | if test -n "$CCC"; then | |
4703 | CXX=$CCC | |
4704 | else | |
4705 | if test -n "$ac_tool_prefix"; then | |
4706 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4707 | do | |
4708 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4709 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4711 | $as_echo_n "checking for $ac_word... " >&6; } | |
4712 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4713 | $as_echo_n "(cached) " >&6 | |
2fd32231 | 4714 | else |
81ecdfbb RW |
4715 | if test -n "$CXX"; then |
4716 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2fd32231 | 4717 | else |
81ecdfbb RW |
4718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4719 | for as_dir in $PATH | |
4720 | do | |
4721 | IFS=$as_save_IFS | |
4722 | test -z "$as_dir" && as_dir=. | |
4723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4725 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4727 | break 2 | |
4728 | fi | |
4729 | done | |
4730 | done | |
4731 | IFS=$as_save_IFS | |
2fd32231 | 4732 | |
2fd32231 | 4733 | fi |
2fd32231 | 4734 | fi |
81ecdfbb RW |
4735 | CXX=$ac_cv_prog_CXX |
4736 | if test -n "$CXX"; then | |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4738 | $as_echo "$CXX" >&6; } | |
2fd32231 | 4739 | else |
81ecdfbb RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4741 | $as_echo "no" >&6; } | |
2fd32231 ILT |
4742 | fi |
4743 | ||
4744 | ||
81ecdfbb RW |
4745 | test -n "$CXX" && break |
4746 | done | |
4747 | fi | |
4748 | if test -z "$CXX"; then | |
4749 | ac_ct_CXX=$CXX | |
4750 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4751 | do | |
4752 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4753 | set dummy $ac_prog; ac_word=$2 | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4755 | $as_echo_n "checking for $ac_word... " >&6; } | |
4756 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4757 | $as_echo_n "(cached) " >&6 | |
1d1f116d | 4758 | else |
81ecdfbb RW |
4759 | if test -n "$ac_ct_CXX"; then |
4760 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1d1f116d | 4761 | else |
81ecdfbb RW |
4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4763 | for as_dir in $PATH | |
4764 | do | |
4765 | IFS=$as_save_IFS | |
4766 | test -z "$as_dir" && as_dir=. | |
4767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4769 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4771 | break 2 | |
4772 | fi | |
4773 | done | |
4774 | done | |
4775 | IFS=$as_save_IFS | |
1d1f116d | 4776 | |
1d1f116d | 4777 | fi |
1d1f116d | 4778 | fi |
81ecdfbb RW |
4779 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4780 | if test -n "$ac_ct_CXX"; then | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4782 | $as_echo "$ac_ct_CXX" >&6; } | |
4783 | else | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4785 | $as_echo "no" >&6; } | |
1d1f116d CD |
4786 | fi |
4787 | ||
4788 | ||
81ecdfbb RW |
4789 | test -n "$ac_ct_CXX" && break |
4790 | done | |
63402fe4 | 4791 | |
81ecdfbb RW |
4792 | if test "x$ac_ct_CXX" = x; then |
4793 | CXX="g++" | |
4794 | else | |
4795 | case $cross_compiling:$ac_tool_warned in | |
4796 | yes:) | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4798 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4799 | ac_tool_warned=yes ;; | |
04bf7072 | 4800 | esac |
81ecdfbb RW |
4801 | CXX=$ac_ct_CXX |
4802 | fi | |
4803 | fi | |
04bf7072 | 4804 | |
81ecdfbb | 4805 | fi |
bae7f79e | 4806 | fi |
81ecdfbb RW |
4807 | # Provide some information about the compiler. |
4808 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4809 | set X $ac_compile | |
4810 | ac_compiler=$2 | |
4811 | for ac_option in --version -v -V -qversion; do | |
4812 | { { ac_try="$ac_compiler $ac_option >&5" | |
4813 | case "(($ac_try" in | |
4814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4815 | *) ac_try_echo=$ac_try;; | |
4816 | esac | |
4817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4818 | $as_echo "$ac_try_echo"; } >&5 | |
4819 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4820 | ac_status=$? | |
4821 | if test -s conftest.err; then | |
4822 | sed '10a\ | |
4823 | ... rest of stderr output deleted ... | |
4824 | 10q' conftest.err >conftest.er1 | |
4825 | cat conftest.er1 >&5 | |
4826 | rm -f conftest.er1 conftest.err | |
4827 | fi | |
4828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4829 | test $ac_status = 0; } | |
4830 | done | |
bae7f79e | 4831 | |
81ecdfbb RW |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4833 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4834 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4835 | $as_echo_n "(cached) " >&6 | |
4836 | else | |
4837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4838 | /* end confdefs.h. */ | |
4839 | ||
4840 | int | |
4841 | main () | |
4842 | { | |
4843 | #ifndef __GNUC__ | |
4844 | choke me | |
4845 | #endif | |
4846 | ||
4847 | ; | |
4848 | return 0; | |
4849 | } | |
4850 | _ACEOF | |
4851 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4852 | ac_compiler_gnu=yes | |
4853 | else | |
4854 | ac_compiler_gnu=no | |
bae7f79e | 4855 | fi |
81ecdfbb RW |
4856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4857 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
bae7f79e | 4858 | |
bae7f79e | 4859 | fi |
81ecdfbb RW |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4861 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4862 | if test $ac_compiler_gnu = yes; then | |
4863 | GXX=yes | |
4864 | else | |
4865 | GXX= | |
4866 | fi | |
4867 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4868 | ac_save_CXXFLAGS=$CXXFLAGS | |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4870 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4871 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4872 | $as_echo_n "(cached) " >&6 | |
4873 | else | |
4874 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4875 | ac_cxx_werror_flag=yes | |
4876 | ac_cv_prog_cxx_g=no | |
4877 | CXXFLAGS="-g" | |
4878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4879 | /* end confdefs.h. */ | |
bae7f79e | 4880 | |
81ecdfbb RW |
4881 | int |
4882 | main () | |
4883 | { | |
bae7f79e | 4884 | |
81ecdfbb RW |
4885 | ; |
4886 | return 0; | |
4887 | } | |
4888 | _ACEOF | |
4889 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4890 | ac_cv_prog_cxx_g=yes | |
4891 | else | |
4892 | CXXFLAGS="" | |
4893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4894 | /* end confdefs.h. */ | |
bae7f79e | 4895 | |
81ecdfbb RW |
4896 | int |
4897 | main () | |
4898 | { | |
bae7f79e | 4899 | |
81ecdfbb RW |
4900 | ; |
4901 | return 0; | |
4902 | } | |
4903 | _ACEOF | |
4904 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
bae7f79e | 4905 | |
81ecdfbb RW |
4906 | else |
4907 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4908 | CXXFLAGS="-g" | |
4909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4910 | /* end confdefs.h. */ | |
bae7f79e | 4911 | |
81ecdfbb RW |
4912 | int |
4913 | main () | |
4914 | { | |
bae7f79e | 4915 | |
81ecdfbb RW |
4916 | ; |
4917 | return 0; | |
4918 | } | |
4919 | _ACEOF | |
4920 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4921 | ac_cv_prog_cxx_g=yes | |
4922 | fi | |
4923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4924 | fi | |
4925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4926 | fi | |
4927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4928 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4929 | fi | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4931 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4932 | if test "$ac_test_CXXFLAGS" = set; then | |
4933 | CXXFLAGS=$ac_save_CXXFLAGS | |
4934 | elif test $ac_cv_prog_cxx_g = yes; then | |
4935 | if test "$GXX" = yes; then | |
4936 | CXXFLAGS="-g -O2" | |
4937 | else | |
4938 | CXXFLAGS="-g" | |
4939 | fi | |
4940 | else | |
4941 | if test "$GXX" = yes; then | |
4942 | CXXFLAGS="-O2" | |
4943 | else | |
4944 | CXXFLAGS= | |
4945 | fi | |
4946 | fi | |
4947 | ac_ext=c | |
4948 | ac_cpp='$CPP $CPPFLAGS' | |
4949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bae7f79e | 4952 | |
81ecdfbb | 4953 | depcc="$CXX" am_compiler_list= |
bae7f79e | 4954 | |
81ecdfbb RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4956 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4957 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
4958 | $as_echo_n "(cached) " >&6 | |
4959 | else | |
4960 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4961 | # We make a subdir and do the tests there. Otherwise we can end up | |
4962 | # making bogus files that we don't know about and never remove. For | |
4963 | # instance it was reported that on HP-UX the gcc test will end up | |
4964 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4965 | # in D'. | |
6eb7d830 | 4966 | rm -rf conftest.dir |
81ecdfbb RW |
4967 | mkdir conftest.dir |
4968 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4969 | # using a relative directory. | |
4970 | cp "$am_depcomp" conftest.dir | |
4971 | cd conftest.dir | |
4972 | # We will build objects and dependencies in a subdirectory because | |
4973 | # it helps to detect inapplicable dependency modes. For instance | |
4974 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4975 | # side effect of compilation, but ICC will put the dependencies in | |
4976 | # the current directory while Tru64 will put them in the object | |
4977 | # directory. | |
4978 | mkdir sub | |
bae7f79e | 4979 | |
81ecdfbb RW |
4980 | am_cv_CXX_dependencies_compiler_type=none |
4981 | if test "$am_compiler_list" = ""; then | |
4982 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4983 | fi | |
4984 | am__universal=false | |
4985 | case " $depcc " in #( | |
4986 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4987 | esac | |
bae7f79e | 4988 | |
81ecdfbb RW |
4989 | for depmode in $am_compiler_list; do |
4990 | # Setup a source with many dependencies, because some compilers | |
4991 | # like to wrap large dependency lists on column 80 (with \), and | |
4992 | # we should not choose a depcomp mode which is confused by this. | |
4993 | # | |
4994 | # We need to recreate these files for each test, as the compiler may | |
4995 | # overwrite some of them when testing with obscure command lines. | |
4996 | # This happens at least with the AIX C compiler. | |
4997 | : > sub/conftest.c | |
4998 | for i in 1 2 3 4 5 6; do | |
4999 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5000 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5001 | # Solaris 8's {/usr,}/bin/sh. | |
5002 | touch sub/conftst$i.h | |
5003 | done | |
5004 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
82dcae9d | 5005 | |
81ecdfbb RW |
5006 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5007 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5008 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5009 | # versions had trouble with output in subdirs | |
5010 | am__obj=sub/conftest.${OBJEXT-o} | |
5011 | am__minus_obj="-o $am__obj" | |
5012 | case $depmode in | |
5013 | gcc) | |
5014 | # This depmode causes a compiler race in universal mode. | |
5015 | test "$am__universal" = false || continue | |
5016 | ;; | |
5017 | nosideeffect) | |
5018 | # after this tag, mechanisms are not by side-effect, so they'll | |
5019 | # only be used when explicitly requested | |
5020 | if test "x$enable_dependency_tracking" = xyes; then | |
5021 | continue | |
5022 | else | |
5023 | break | |
5024 | fi | |
5025 | ;; | |
6eb7d830 | 5026 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
81ecdfbb RW |
5027 | # This compiler won't grok `-c -o', but also, the minuso test has |
5028 | # not run yet. These depmodes are late enough in the game, and | |
5029 | # so weak that their functioning should not be impacted. | |
5030 | am__obj=conftest.${OBJEXT-o} | |
5031 | am__minus_obj= | |
5032 | ;; | |
5033 | none) break ;; | |
5034 | esac | |
5035 | if depmode=$depmode \ | |
5036 | source=sub/conftest.c object=$am__obj \ | |
5037 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5038 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5039 | >/dev/null 2>conftest.err && | |
5040 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5041 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5042 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5043 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5044 | # icc doesn't choke on unknown options, it will just issue warnings | |
5045 | # or remarks (even with -Werror). So we grep stderr for any message | |
5046 | # that says an option was ignored or not supported. | |
5047 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5048 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5049 | # The diagnosis changed in icc 8.0: | |
5050 | # icc: Command line remark: option '-MP' not supported | |
5051 | if (grep 'ignoring option' conftest.err || | |
5052 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5053 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5054 | break | |
5055 | fi | |
5056 | fi | |
5057 | done | |
9201d894 | 5058 | |
81ecdfbb RW |
5059 | cd .. |
5060 | rm -rf conftest.dir | |
5061 | else | |
5062 | am_cv_CXX_dependencies_compiler_type=none | |
5063 | fi | |
9201d894 | 5064 | |
81ecdfbb RW |
5065 | fi |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5067 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5068 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
9201d894 | 5069 | |
81ecdfbb RW |
5070 | if |
5071 | test "x$enable_dependency_tracking" != xno \ | |
5072 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5073 | am__fastdepCXX_TRUE= | |
5074 | am__fastdepCXX_FALSE='#' | |
5075 | else | |
5076 | am__fastdepCXX_TRUE='#' | |
5077 | am__fastdepCXX_FALSE= | |
5078 | fi | |
9201d894 | 5079 | |
9201d894 | 5080 | |
81ecdfbb RW |
5081 | for ac_prog in 'bison -y' byacc |
5082 | do | |
5083 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5084 | set dummy $ac_prog; ac_word=$2 | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5086 | $as_echo_n "checking for $ac_word... " >&6; } | |
5087 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
5088 | $as_echo_n "(cached) " >&6 | |
9201d894 | 5089 | else |
81ecdfbb RW |
5090 | if test -n "$YACC"; then |
5091 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5092 | else | |
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5094 | for as_dir in $PATH | |
5095 | do | |
5096 | IFS=$as_save_IFS | |
5097 | test -z "$as_dir" && as_dir=. | |
5098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5100 | ac_cv_prog_YACC="$ac_prog" | |
5101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5102 | break 2 | |
5103 | fi | |
5104 | done | |
5105 | done | |
5106 | IFS=$as_save_IFS | |
9201d894 | 5107 | |
9201d894 | 5108 | fi |
9201d894 | 5109 | fi |
81ecdfbb RW |
5110 | YACC=$ac_cv_prog_YACC |
5111 | if test -n "$YACC"; then | |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5113 | $as_echo "$YACC" >&6; } | |
5114 | else | |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5116 | $as_echo "no" >&6; } | |
9201d894 | 5117 | fi |
9201d894 | 5118 | |
2f35ab9b | 5119 | |
81ecdfbb RW |
5120 | test -n "$YACC" && break |
5121 | done | |
5122 | test -n "$YACC" || YACC="yacc" | |
fd03461a | 5123 | |
81ecdfbb RW |
5124 | if test -n "$ac_tool_prefix"; then |
5125 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5126 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5128 | $as_echo_n "checking for $ac_word... " >&6; } | |
5129 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5130 | $as_echo_n "(cached) " >&6 | |
5131 | else | |
5132 | if test -n "$RANLIB"; then | |
5133 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5134 | else | |
5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5136 | for as_dir in $PATH | |
82dcae9d | 5137 | do |
81ecdfbb RW |
5138 | IFS=$as_save_IFS |
5139 | test -z "$as_dir" && as_dir=. | |
5140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5142 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5144 | break 2 | |
5145 | fi | |
5146 | done | |
5147 | done | |
5148 | IFS=$as_save_IFS | |
82dcae9d | 5149 | |
81ecdfbb RW |
5150 | fi |
5151 | fi | |
5152 | RANLIB=$ac_cv_prog_RANLIB | |
5153 | if test -n "$RANLIB"; then | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5155 | $as_echo "$RANLIB" >&6; } | |
5156 | else | |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5158 | $as_echo "no" >&6; } | |
5159 | fi | |
82dcae9d | 5160 | |
82dcae9d | 5161 | |
81ecdfbb RW |
5162 | fi |
5163 | if test -z "$ac_cv_prog_RANLIB"; then | |
5164 | ac_ct_RANLIB=$RANLIB | |
5165 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5166 | set dummy ranlib; ac_word=$2 | |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5168 | $as_echo_n "checking for $ac_word... " >&6; } | |
5169 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5170 | $as_echo_n "(cached) " >&6 | |
82dcae9d | 5171 | else |
81ecdfbb RW |
5172 | if test -n "$ac_ct_RANLIB"; then |
5173 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5174 | else | |
5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5176 | for as_dir in $PATH | |
5177 | do | |
5178 | IFS=$as_save_IFS | |
5179 | test -z "$as_dir" && as_dir=. | |
5180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5182 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5184 | break 2 | |
5185 | fi | |
5186 | done | |
5187 | done | |
5188 | IFS=$as_save_IFS | |
82dcae9d | 5189 | |
82dcae9d | 5190 | fi |
82dcae9d | 5191 | fi |
81ecdfbb RW |
5192 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5193 | if test -n "$ac_ct_RANLIB"; then | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5195 | $as_echo "$ac_ct_RANLIB" >&6; } | |
82dcae9d | 5196 | else |
81ecdfbb RW |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5198 | $as_echo "no" >&6; } | |
5199 | fi | |
5200 | ||
5201 | if test "x$ac_ct_RANLIB" = x; then | |
5202 | RANLIB=":" | |
5203 | else | |
5204 | case $cross_compiling:$ac_tool_warned in | |
5205 | yes:) | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5208 | ac_tool_warned=yes ;; | |
82dcae9d | 5209 | esac |
81ecdfbb RW |
5210 | RANLIB=$ac_ct_RANLIB |
5211 | fi | |
5212 | else | |
5213 | RANLIB="$ac_cv_prog_RANLIB" | |
5214 | fi | |
82dcae9d | 5215 | |
81ecdfbb RW |
5216 | |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5218 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5219 | LN_S=$as_ln_s | |
5220 | if test "$LN_S" = "ln -s"; then | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5222 | $as_echo "yes" >&6; } | |
5223 | else | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5225 | $as_echo "no, using $LN_S" >&6; } | |
82dcae9d | 5226 | fi |
82dcae9d ILT |
5227 | |
5228 | ||
5229 | ||
9a0910c3 ILT |
5230 | ac_ext=c |
5231 | ac_cpp='$CPP $CPPFLAGS' | |
5232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5236 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
9a0910c3 ILT |
5237 | # On Suns, sometimes $CPP names a directory. |
5238 | if test -n "$CPP" && test -d "$CPP"; then | |
5239 | CPP= | |
5240 | fi | |
5241 | if test -z "$CPP"; then | |
81ecdfbb RW |
5242 | if test "${ac_cv_prog_CPP+set}" = set; then : |
5243 | $as_echo_n "(cached) " >&6 | |
9a0910c3 ILT |
5244 | else |
5245 | # Double quotes because CPP needs to be expanded | |
5246 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5247 | do | |
5248 | ac_preproc_ok=false | |
5249 | for ac_c_preproc_warn_flag in '' yes | |
5250 | do | |
5251 | # Use a header file that comes with gcc, so configuring glibc | |
5252 | # with a fresh cross-compiler works. | |
5253 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5254 | # <limits.h> exists even on freestanding compilers. | |
5255 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5256 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5258 | /* end confdefs.h. */ |
5259 | #ifdef __STDC__ | |
5260 | # include <limits.h> | |
5261 | #else | |
5262 | # include <assert.h> | |
5263 | #endif | |
5264 | Syntax error | |
5265 | _ACEOF | |
81ecdfbb | 5266 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5267 | |
81ecdfbb | 5268 | else |
9a0910c3 ILT |
5269 | # Broken: fails on valid input. |
5270 | continue | |
5271 | fi | |
5272 | rm -f conftest.err conftest.$ac_ext | |
5273 | ||
81ecdfbb | 5274 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5275 | # can be detected and how. |
81ecdfbb | 5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5277 | /* end confdefs.h. */ |
5278 | #include <ac_nonexistent.h> | |
5279 | _ACEOF | |
81ecdfbb | 5280 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5281 | # Broken: success on invalid input. |
5282 | continue | |
5283 | else | |
9a0910c3 ILT |
5284 | # Passes both tests. |
5285 | ac_preproc_ok=: | |
5286 | break | |
5287 | fi | |
5288 | rm -f conftest.err conftest.$ac_ext | |
5289 | ||
5290 | done | |
5291 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5292 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5293 | if $ac_preproc_ok; then : |
9a0910c3 ILT |
5294 | break |
5295 | fi | |
5296 | ||
5297 | done | |
5298 | ac_cv_prog_CPP=$CPP | |
5299 | ||
5300 | fi | |
5301 | CPP=$ac_cv_prog_CPP | |
5302 | else | |
5303 | ac_cv_prog_CPP=$CPP | |
5304 | fi | |
81ecdfbb RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5306 | $as_echo "$CPP" >&6; } | |
9a0910c3 ILT |
5307 | ac_preproc_ok=false |
5308 | for ac_c_preproc_warn_flag in '' yes | |
5309 | do | |
5310 | # Use a header file that comes with gcc, so configuring glibc | |
5311 | # with a fresh cross-compiler works. | |
5312 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5313 | # <limits.h> exists even on freestanding compilers. | |
5314 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5315 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5317 | /* end confdefs.h. */ |
5318 | #ifdef __STDC__ | |
5319 | # include <limits.h> | |
5320 | #else | |
5321 | # include <assert.h> | |
5322 | #endif | |
5323 | Syntax error | |
5324 | _ACEOF | |
81ecdfbb | 5325 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 | 5326 | |
81ecdfbb | 5327 | else |
9a0910c3 ILT |
5328 | # Broken: fails on valid input. |
5329 | continue | |
5330 | fi | |
5331 | rm -f conftest.err conftest.$ac_ext | |
5332 | ||
81ecdfbb | 5333 | # OK, works on sane cases. Now check whether nonexistent headers |
9a0910c3 | 5334 | # can be detected and how. |
81ecdfbb | 5335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5336 | /* end confdefs.h. */ |
5337 | #include <ac_nonexistent.h> | |
5338 | _ACEOF | |
81ecdfbb | 5339 | if ac_fn_c_try_cpp "$LINENO"; then : |
9a0910c3 ILT |
5340 | # Broken: success on invalid input. |
5341 | continue | |
5342 | else | |
9a0910c3 ILT |
5343 | # Passes both tests. |
5344 | ac_preproc_ok=: | |
5345 | break | |
5346 | fi | |
5347 | rm -f conftest.err conftest.$ac_ext | |
5348 | ||
5349 | done | |
5350 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5351 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5352 | if $ac_preproc_ok; then : |
5353 | ||
9a0910c3 | 5354 | else |
81ecdfbb RW |
5355 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5356 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5357 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5358 | See \`config.log' for more details." "$LINENO" 5; } | |
9a0910c3 ILT |
5359 | fi |
5360 | ||
5361 | ac_ext=c | |
5362 | ac_cpp='$CPP $CPPFLAGS' | |
5363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5366 | ||
5367 | ||
81ecdfbb RW |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5369 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5370 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5371 | $as_echo_n "(cached) " >&6 | |
5372 | else | |
5373 | if test -z "$GREP"; then | |
5374 | ac_path_GREP_found=false | |
5375 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5377 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5378 | do | |
5379 | IFS=$as_save_IFS | |
5380 | test -z "$as_dir" && as_dir=. | |
5381 | for ac_prog in grep ggrep; do | |
5382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5383 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5384 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5385 | # Check for GNU ac_path_GREP and select it if it is found. | |
5386 | # Check for GNU $ac_path_GREP | |
5387 | case `"$ac_path_GREP" --version 2>&1` in | |
5388 | *GNU*) | |
5389 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5390 | *) | |
5391 | ac_count=0 | |
5392 | $as_echo_n 0123456789 >"conftest.in" | |
5393 | while : | |
5394 | do | |
5395 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5396 | mv "conftest.tmp" "conftest.in" | |
5397 | cp "conftest.in" "conftest.nl" | |
5398 | $as_echo 'GREP' >> "conftest.nl" | |
5399 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5400 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5401 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5402 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5403 | # Best one so far, save it but keep looking for a better one | |
5404 | ac_cv_path_GREP="$ac_path_GREP" | |
5405 | ac_path_GREP_max=$ac_count | |
5406 | fi | |
5407 | # 10*(2^10) chars as input seems more than enough | |
5408 | test $ac_count -gt 10 && break | |
5409 | done | |
5410 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5411 | esac | |
5412 | ||
5413 | $ac_path_GREP_found && break 3 | |
5414 | done | |
5415 | done | |
5416 | done | |
5417 | IFS=$as_save_IFS | |
5418 | if test -z "$ac_cv_path_GREP"; then | |
5419 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5420 | fi | |
5421 | else | |
5422 | ac_cv_path_GREP=$GREP | |
5423 | fi | |
5424 | ||
5425 | fi | |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5427 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5428 | GREP="$ac_cv_path_GREP" | |
5429 | ||
5430 | ||
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5432 | $as_echo_n "checking for egrep... " >&6; } | |
5433 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5434 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5435 | else |
81ecdfbb RW |
5436 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5437 | then ac_cv_path_EGREP="$GREP -E" | |
5438 | else | |
5439 | if test -z "$EGREP"; then | |
5440 | ac_path_EGREP_found=false | |
5441 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5443 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5444 | do | |
5445 | IFS=$as_save_IFS | |
5446 | test -z "$as_dir" && as_dir=. | |
5447 | for ac_prog in egrep; do | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5449 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5450 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5451 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5452 | # Check for GNU $ac_path_EGREP | |
5453 | case `"$ac_path_EGREP" --version 2>&1` in | |
5454 | *GNU*) | |
5455 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5456 | *) | |
5457 | ac_count=0 | |
5458 | $as_echo_n 0123456789 >"conftest.in" | |
5459 | while : | |
5460 | do | |
5461 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5462 | mv "conftest.tmp" "conftest.in" | |
5463 | cp "conftest.in" "conftest.nl" | |
5464 | $as_echo 'EGREP' >> "conftest.nl" | |
5465 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5466 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5467 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5468 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5469 | # Best one so far, save it but keep looking for a better one | |
5470 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5471 | ac_path_EGREP_max=$ac_count | |
9a0910c3 | 5472 | fi |
81ecdfbb RW |
5473 | # 10*(2^10) chars as input seems more than enough |
5474 | test $ac_count -gt 10 && break | |
5475 | done | |
5476 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5477 | esac | |
5478 | ||
5479 | $ac_path_EGREP_found && break 3 | |
5480 | done | |
5481 | done | |
5482 | done | |
5483 | IFS=$as_save_IFS | |
5484 | if test -z "$ac_cv_path_EGREP"; then | |
5485 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5486 | fi | |
5487 | else | |
5488 | ac_cv_path_EGREP=$EGREP | |
5489 | fi | |
5490 | ||
5491 | fi | |
9a0910c3 | 5492 | fi |
81ecdfbb RW |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5494 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5495 | EGREP="$ac_cv_path_EGREP" | |
9a0910c3 ILT |
5496 | |
5497 | ||
81ecdfbb RW |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5499 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5500 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5501 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5502 | else |
81ecdfbb | 5503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5504 | /* end confdefs.h. */ |
5505 | #include <stdlib.h> | |
5506 | #include <stdarg.h> | |
5507 | #include <string.h> | |
5508 | #include <float.h> | |
5509 | ||
5510 | int | |
5511 | main () | |
5512 | { | |
5513 | ||
5514 | ; | |
5515 | return 0; | |
5516 | } | |
5517 | _ACEOF | |
81ecdfbb | 5518 | if ac_fn_c_try_compile "$LINENO"; then : |
9a0910c3 ILT |
5519 | ac_cv_header_stdc=yes |
5520 | else | |
81ecdfbb | 5521 | ac_cv_header_stdc=no |
9a0910c3 | 5522 | fi |
81ecdfbb | 5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9a0910c3 ILT |
5524 | |
5525 | if test $ac_cv_header_stdc = yes; then | |
5526 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5528 | /* end confdefs.h. */ |
5529 | #include <string.h> | |
5530 | ||
5531 | _ACEOF | |
5532 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5533 | $EGREP "memchr" >/dev/null 2>&1; then : |
5534 | ||
9a0910c3 ILT |
5535 | else |
5536 | ac_cv_header_stdc=no | |
5537 | fi | |
5538 | rm -f conftest* | |
5539 | ||
5540 | fi | |
5541 | ||
5542 | if test $ac_cv_header_stdc = yes; then | |
5543 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5545 | /* end confdefs.h. */ |
5546 | #include <stdlib.h> | |
5547 | ||
5548 | _ACEOF | |
5549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5550 | $EGREP "free" >/dev/null 2>&1; then : |
5551 | ||
9a0910c3 ILT |
5552 | else |
5553 | ac_cv_header_stdc=no | |
5554 | fi | |
5555 | rm -f conftest* | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | if test $ac_cv_header_stdc = yes; then | |
5560 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5561 | if test "$cross_compiling" = yes; then : |
9a0910c3 ILT |
5562 | : |
5563 | else | |
81ecdfbb | 5564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5565 | /* end confdefs.h. */ |
5566 | #include <ctype.h> | |
81ecdfbb | 5567 | #include <stdlib.h> |
9a0910c3 ILT |
5568 | #if ((' ' & 0x0FF) == 0x020) |
5569 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5570 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5571 | #else | |
5572 | # define ISLOWER(c) \ | |
5573 | (('a' <= (c) && (c) <= 'i') \ | |
5574 | || ('j' <= (c) && (c) <= 'r') \ | |
5575 | || ('s' <= (c) && (c) <= 'z')) | |
5576 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5577 | #endif | |
5578 | ||
5579 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5580 | int | |
5581 | main () | |
5582 | { | |
5583 | int i; | |
5584 | for (i = 0; i < 256; i++) | |
5585 | if (XOR (islower (i), ISLOWER (i)) | |
5586 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5587 | return 2; |
5588 | return 0; | |
9a0910c3 ILT |
5589 | } |
5590 | _ACEOF | |
81ecdfbb | 5591 | if ac_fn_c_try_run "$LINENO"; then : |
9a0910c3 | 5592 | |
81ecdfbb RW |
5593 | else |
5594 | ac_cv_header_stdc=no | |
9a0910c3 | 5595 | fi |
81ecdfbb RW |
5596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5597 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9a0910c3 | 5598 | fi |
81ecdfbb | 5599 | |
9a0910c3 ILT |
5600 | fi |
5601 | fi | |
81ecdfbb RW |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5603 | $as_echo "$ac_cv_header_stdc" >&6; } | |
9a0910c3 ILT |
5604 | if test $ac_cv_header_stdc = yes; then |
5605 | ||
81ecdfbb | 5606 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9a0910c3 ILT |
5607 | |
5608 | fi | |
5609 | ||
5610 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
5611 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5612 | inttypes.h stdint.h unistd.h | |
5613 | do : | |
5614 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5615 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5616 | " | |
5617 | eval as_val=\$$as_ac_Header | |
5618 | if test "x$as_val" = x""yes; then : | |
5619 | cat >>confdefs.h <<_ACEOF | |
5620 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5621 | _ACEOF | |
9a0910c3 | 5622 | |
81ecdfbb | 5623 | fi |
9a0910c3 | 5624 | |
81ecdfbb | 5625 | done |
9a0910c3 ILT |
5626 | |
5627 | ||
5628 | ||
81ecdfbb RW |
5629 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5630 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5631 | MINIX=yes | |
5632 | else | |
5633 | MINIX= | |
5634 | fi | |
9a0910c3 ILT |
5635 | |
5636 | ||
81ecdfbb | 5637 | if test "$MINIX" = yes; then |
9a0910c3 | 5638 | |
81ecdfbb | 5639 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
9a0910c3 | 5640 | |
9a0910c3 | 5641 | |
81ecdfbb | 5642 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
9a0910c3 | 5643 | |
9a0910c3 | 5644 | |
81ecdfbb | 5645 | $as_echo "#define _MINIX 1" >>confdefs.h |
9a0910c3 | 5646 | |
81ecdfbb | 5647 | fi |
9a0910c3 ILT |
5648 | |
5649 | ||
81ecdfbb RW |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5651 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5652 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5653 | $as_echo_n "(cached) " >&6 | |
9a0910c3 | 5654 | else |
81ecdfbb | 5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9a0910c3 ILT |
5656 | /* end confdefs.h. */ |
5657 | ||
81ecdfbb RW |
5658 | # define __EXTENSIONS__ 1 |
5659 | $ac_includes_default | |
9a0910c3 ILT |
5660 | int |
5661 | main () | |
5662 | { | |
81ecdfbb | 5663 | |
9a0910c3 ILT |
5664 | ; |
5665 | return 0; | |
5666 | } | |
5667 | _ACEOF | |
81ecdfbb RW |
5668 | if ac_fn_c_try_compile "$LINENO"; then : |
5669 | ac_cv_safe_to_define___extensions__=yes | |
9a0910c3 | 5670 | else |
81ecdfbb | 5671 | ac_cv_safe_to_define___extensions__=no |
9a0910c3 | 5672 | fi |
81ecdfbb RW |
5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5674 | fi | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5676 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5677 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5678 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
9a0910c3 | 5679 | |
81ecdfbb RW |
5680 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
5681 | ||
5682 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
9a0910c3 | 5683 | |
81ecdfbb RW |
5684 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5685 | ||
5686 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5687 | ||
5688 | ||
5689 | ||
5690 | ||
5691 | # If we haven't got the data from the intl directory, | |
5692 | # assume NLS is disabled. | |
5693 | USE_NLS=no | |
5694 | LIBINTL= | |
5695 | LIBINTL_DEP= | |
5696 | INCINTL= | |
5697 | XGETTEXT= | |
5698 | GMSGFMT= | |
5699 | POSUB= | |
5700 | ||
5701 | if test -f ../intl/config.intl; then | |
5702 | . ../intl/config.intl | |
9a0910c3 | 5703 | fi |
81ecdfbb RW |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5705 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5706 | if test x"$USE_NLS" != xyes; then | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5708 | $as_echo "no" >&6; } | |
5709 | else | |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5711 | $as_echo "yes" >&6; } | |
5712 | ||
5713 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
5714 | ||
5715 | ||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
5717 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
5718 | # Look for .po and .gmo files in the source directory. | |
5719 | CATALOGS= | |
5720 | XLINGUAS= | |
5721 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5722 | # If there aren't any .gmo files the shell will give us the | |
5723 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5724 | # weeded out. | |
5725 | case "$cat" in *\**) | |
5726 | continue;; | |
5727 | esac | |
5728 | # The quadruple backslash is collapsed to a double backslash | |
5729 | # by the backticks, then collapsed again by the double quotes, | |
5730 | # leaving us with one backslash in the sed expression (right | |
5731 | # before the dot that mustn't act as a wildcard). | |
5732 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5733 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5734 | # The user is allowed to set LINGUAS to a list of languages to | |
5735 | # install catalogs for. If it's empty that means "all of them." | |
5736 | if test "x$LINGUAS" = x; then | |
5737 | CATALOGS="$CATALOGS $cat" | |
5738 | XLINGUAS="$XLINGUAS $lang" | |
5739 | else | |
5740 | case "$LINGUAS" in *$lang*) | |
5741 | CATALOGS="$CATALOGS $cat" | |
5742 | XLINGUAS="$XLINGUAS $lang" | |
5743 | ;; | |
5744 | esac | |
5745 | fi | |
9a0910c3 | 5746 | done |
81ecdfbb RW |
5747 | LINGUAS="$XLINGUAS" |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
5749 | $as_echo "$LINGUAS" >&6; } | |
5750 | ||
5751 | ||
5752 | DATADIRNAME=share | |
5753 | ||
5754 | INSTOBJEXT=.mo | |
5755 | ||
5756 | GENCAT=gencat | |
5757 | ||
5758 | CATOBJEXT=.gmo | |
9a0910c3 | 5759 | |
9a0910c3 | 5760 | fi |
9a0910c3 | 5761 | |
81ecdfbb RW |
5762 | MKINSTALLDIRS= |
5763 | if test -n "$ac_aux_dir"; then | |
5764 | case "$ac_aux_dir" in | |
5765 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5766 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5767 | esac | |
5768 | fi | |
5769 | if test -z "$MKINSTALLDIRS"; then | |
5770 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5771 | fi | |
5772 | ||
5773 | ||
5774 | ||
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
5776 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5777 | # Check whether --enable-nls was given. | |
5778 | if test "${enable_nls+set}" = set; then : | |
5779 | enableval=$enable_nls; USE_NLS=$enableval | |
5780 | else | |
5781 | USE_NLS=yes | |
9a0910c3 | 5782 | fi |
9a0910c3 | 5783 | |
81ecdfbb RW |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
5785 | $as_echo "$USE_NLS" >&6; } | |
5786 | ||
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | ||
5792 | # Prepare PATH_SEPARATOR. | |
5793 | # The user is always right. | |
5794 | if test "${PATH_SEPARATOR+set}" != set; then | |
5795 | echo "#! /bin/sh" >conf$$.sh | |
5796 | echo "exit 0" >>conf$$.sh | |
5797 | chmod +x conf$$.sh | |
5798 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5799 | PATH_SEPARATOR=';' | |
9a0910c3 | 5800 | else |
81ecdfbb | 5801 | PATH_SEPARATOR=: |
9a0910c3 | 5802 | fi |
81ecdfbb | 5803 | rm -f conf$$.sh |
9a0910c3 | 5804 | fi |
81ecdfbb RW |
5805 | |
5806 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5807 | # as systems may use methods other than mode bits to determine executability. | |
5808 | cat >conf$$.file <<_ASEOF | |
5809 | #! /bin/sh | |
5810 | exit 0 | |
5811 | _ASEOF | |
5812 | chmod +x conf$$.file | |
5813 | if test -x conf$$.file >/dev/null 2>&1; then | |
5814 | ac_executable_p="test -x" | |
9a0910c3 | 5815 | else |
81ecdfbb RW |
5816 | ac_executable_p="test -f" |
5817 | fi | |
5818 | rm -f conf$$.file | |
9a0910c3 | 5819 | |
81ecdfbb RW |
5820 | # Extract the first word of "msgfmt", so it can be a program name with args. |
5821 | set dummy msgfmt; ac_word=$2 | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5823 | $as_echo_n "checking for $ac_word... " >&6; } | |
5824 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
5825 | $as_echo_n "(cached) " >&6 | |
5826 | else | |
5827 | case "$MSGFMT" in | |
5828 | [\\/]* | ?:[\\/]*) | |
5829 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5830 | ;; | |
5831 | *) | |
5832 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5833 | for ac_dir in $PATH; do | |
5834 | IFS="$ac_save_IFS" | |
5835 | test -z "$ac_dir" && ac_dir=. | |
5836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5837 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5838 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5839 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5840 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5841 | break 2 | |
5842 | fi | |
5843 | fi | |
5844 | done | |
5845 | done | |
5846 | IFS="$ac_save_IFS" | |
5847 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5848 | ;; | |
5849 | esac | |
9a0910c3 | 5850 | fi |
81ecdfbb RW |
5851 | MSGFMT="$ac_cv_path_MSGFMT" |
5852 | if test "$MSGFMT" != ":"; then | |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5854 | $as_echo "$MSGFMT" >&6; } | |
5855 | else | |
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5857 | $as_echo "no" >&6; } | |
5858 | fi | |
5859 | ||
5860 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5861 | set dummy gmsgfmt; ac_word=$2 | |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5863 | $as_echo_n "checking for $ac_word... " >&6; } | |
5864 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
5865 | $as_echo_n "(cached) " >&6 | |
5866 | else | |
5867 | case $GMSGFMT in | |
5868 | [\\/]* | ?:[\\/]*) | |
5869 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5870 | ;; | |
5871 | *) | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
5876 | test -z "$as_dir" && as_dir=. | |
5877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5879 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5881 | break 2 | |
5882 | fi | |
5883 | done | |
5884 | done | |
5885 | IFS=$as_save_IFS | |
9a0910c3 | 5886 | |
81ecdfbb RW |
5887 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5888 | ;; | |
9a0910c3 | 5889 | esac |
81ecdfbb RW |
5890 | fi |
5891 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5892 | if test -n "$GMSGFMT"; then | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
5894 | $as_echo "$GMSGFMT" >&6; } | |
9a0910c3 | 5895 | else |
81ecdfbb RW |
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5897 | $as_echo "no" >&6; } | |
9a0910c3 | 5898 | fi |
9a0910c3 | 5899 | |
9a0910c3 | 5900 | |
9a0910c3 | 5901 | |
9a0910c3 | 5902 | |
81ecdfbb RW |
5903 | # Prepare PATH_SEPARATOR. |
5904 | # The user is always right. | |
5905 | if test "${PATH_SEPARATOR+set}" != set; then | |
5906 | echo "#! /bin/sh" >conf$$.sh | |
5907 | echo "exit 0" >>conf$$.sh | |
5908 | chmod +x conf$$.sh | |
5909 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5910 | PATH_SEPARATOR=';' | |
5911 | else | |
5912 | PATH_SEPARATOR=: | |
5913 | fi | |
5914 | rm -f conf$$.sh | |
9a0910c3 ILT |
5915 | fi |
5916 | ||
81ecdfbb RW |
5917 | # Find out how to test for executable files. Don't use a zero-byte file, |
5918 | # as systems may use methods other than mode bits to determine executability. | |
5919 | cat >conf$$.file <<_ASEOF | |
5920 | #! /bin/sh | |
5921 | exit 0 | |
5922 | _ASEOF | |
5923 | chmod +x conf$$.file | |
5924 | if test -x conf$$.file >/dev/null 2>&1; then | |
5925 | ac_executable_p="test -x" | |
7fcd0256 | 5926 | else |
81ecdfbb | 5927 | ac_executable_p="test -f" |
7fcd0256 | 5928 | fi |
81ecdfbb | 5929 | rm -f conf$$.file |
7fcd0256 | 5930 | |
81ecdfbb RW |
5931 | # Extract the first word of "xgettext", so it can be a program name with args. |
5932 | set dummy xgettext; ac_word=$2 | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5934 | $as_echo_n "checking for $ac_word... " >&6; } | |
5935 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
5936 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 5937 | else |
81ecdfbb RW |
5938 | case "$XGETTEXT" in |
5939 | [\\/]* | ?:[\\/]*) | |
5940 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5941 | ;; | |
5942 | *) | |
5943 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5944 | for ac_dir in $PATH; do | |
5945 | IFS="$ac_save_IFS" | |
5946 | test -z "$ac_dir" && ac_dir=. | |
5947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5948 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5949 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5950 | (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 | |
5951 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5952 | break 2 | |
5953 | fi | |
5954 | fi | |
5955 | done | |
5956 | done | |
5957 | IFS="$ac_save_IFS" | |
5958 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5959 | ;; | |
5960 | esac | |
54dc6425 | 5961 | fi |
81ecdfbb RW |
5962 | XGETTEXT="$ac_cv_path_XGETTEXT" |
5963 | if test "$XGETTEXT" != ":"; then | |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
5965 | $as_echo "$XGETTEXT" >&6; } | |
5966 | else | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5968 | $as_echo "no" >&6; } | |
0639a6f6 | 5969 | fi |
0639a6f6 | 5970 | |
81ecdfbb | 5971 | rm -f messages.po |
0639a6f6 ILT |
5972 | |
5973 | ||
81ecdfbb RW |
5974 | # Prepare PATH_SEPARATOR. |
5975 | # The user is always right. | |
5976 | if test "${PATH_SEPARATOR+set}" != set; then | |
5977 | echo "#! /bin/sh" >conf$$.sh | |
5978 | echo "exit 0" >>conf$$.sh | |
5979 | chmod +x conf$$.sh | |
5980 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5981 | PATH_SEPARATOR=';' | |
5982 | else | |
5983 | PATH_SEPARATOR=: | |
5984 | fi | |
5985 | rm -f conf$$.sh | |
0639a6f6 | 5986 | fi |
0639a6f6 | 5987 | |
81ecdfbb RW |
5988 | # Find out how to test for executable files. Don't use a zero-byte file, |
5989 | # as systems may use methods other than mode bits to determine executability. | |
5990 | cat >conf$$.file <<_ASEOF | |
5991 | #! /bin/sh | |
5992 | exit 0 | |
5993 | _ASEOF | |
5994 | chmod +x conf$$.file | |
5995 | if test -x conf$$.file >/dev/null 2>&1; then | |
5996 | ac_executable_p="test -x" | |
54dc6425 | 5997 | else |
81ecdfbb | 5998 | ac_executable_p="test -f" |
54dc6425 | 5999 | fi |
81ecdfbb | 6000 | rm -f conf$$.file |
54dc6425 | 6001 | |
81ecdfbb RW |
6002 | # Extract the first word of "msgmerge", so it can be a program name with args. |
6003 | set dummy msgmerge; ac_word=$2 | |
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6005 | $as_echo_n "checking for $ac_word... " >&6; } | |
6006 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
6007 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 6008 | else |
81ecdfbb RW |
6009 | case "$MSGMERGE" in |
6010 | [\\/]* | ?:[\\/]*) | |
6011 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6012 | ;; | |
6013 | *) | |
6014 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6015 | for ac_dir in $PATH; do | |
6016 | IFS="$ac_save_IFS" | |
6017 | test -z "$ac_dir" && ac_dir=. | |
6018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6019 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6020 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
6021 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
6022 | break 2 | |
6023 | fi | |
6024 | fi | |
6025 | done | |
6026 | done | |
6027 | IFS="$ac_save_IFS" | |
6028 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6029 | ;; | |
6030 | esac | |
54dc6425 | 6031 | fi |
81ecdfbb RW |
6032 | MSGMERGE="$ac_cv_path_MSGMERGE" |
6033 | if test "$MSGMERGE" != ":"; then | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6035 | $as_echo "$MSGMERGE" >&6; } | |
0639a6f6 | 6036 | else |
81ecdfbb RW |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6038 | $as_echo "no" >&6; } | |
6039 | fi | |
0639a6f6 | 6040 | |
54dc6425 | 6041 | |
81ecdfbb RW |
6042 | if test "$GMSGFMT" != ":"; then |
6043 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
6044 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6045 | : ; | |
6046 | else | |
6047 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
6049 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
6050 | GMSGFMT=":" | |
6051 | fi | |
6052 | fi | |
54dc6425 | 6053 | |
81ecdfbb RW |
6054 | if test "$XGETTEXT" != ":"; then |
6055 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
6056 | (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 | |
6057 | : ; | |
6058 | else | |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
6060 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
6061 | XGETTEXT=":" | |
6062 | fi | |
6063 | rm -f messages.po | |
6064 | fi | |
54dc6425 | 6065 | |
81ecdfbb | 6066 | ac_config_commands="$ac_config_commands default-1" |
54dc6425 | 6067 | |
54dc6425 ILT |
6068 | |
6069 | ||
81ecdfbb RW |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6071 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
6072 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
6073 | $as_echo_n "(cached) " >&6 | |
54dc6425 | 6074 | else |
81ecdfbb RW |
6075 | ac_cv_c_bigendian=unknown |
6076 | # See if we're dealing with a universal compiler. | |
6077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
54dc6425 | 6078 | /* end confdefs.h. */ |
81ecdfbb RW |
6079 | #ifndef __APPLE_CC__ |
6080 | not a universal capable compiler | |
6081 | #endif | |
6082 | typedef int dummy; | |
6083 | ||
6084 | _ACEOF | |
6085 | if ac_fn_c_try_compile "$LINENO"; then : | |
6086 | ||
6087 | # Check for potential -arch flags. It is not universal unless | |
6088 | # there are at least two -arch flags with different values. | |
6089 | ac_arch= | |
6090 | ac_prev= | |
6091 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6092 | if test -n "$ac_prev"; then | |
6093 | case $ac_word in | |
6094 | i?86 | x86_64 | ppc | ppc64) | |
6095 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6096 | ac_arch=$ac_word | |
6097 | else | |
6098 | ac_cv_c_bigendian=universal | |
6099 | break | |
6100 | fi | |
6101 | ;; | |
6102 | esac | |
6103 | ac_prev= | |
6104 | elif test "x$ac_word" = "x-arch"; then | |
6105 | ac_prev=arch | |
6106 | fi | |
6107 | done | |
6108 | fi | |
6109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6110 | if test $ac_cv_c_bigendian = unknown; then | |
6111 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6113 | /* end confdefs.h. */ | |
6114 | #include <sys/types.h> | |
6115 | #include <sys/param.h> | |
6116 | ||
0639a6f6 ILT |
6117 | int |
6118 | main () | |
6119 | { | |
81ecdfbb RW |
6120 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6121 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6122 | && LITTLE_ENDIAN) | |
6123 | bogus endian macros | |
6124 | #endif | |
54dc6425 | 6125 | |
81ecdfbb RW |
6126 | ; |
6127 | return 0; | |
6128 | } | |
15d5fa16 | 6129 | _ACEOF |
81ecdfbb RW |
6130 | if ac_fn_c_try_compile "$LINENO"; then : |
6131 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6133 | /* end confdefs.h. */ |
81ecdfbb RW |
6134 | #include <sys/types.h> |
6135 | #include <sys/param.h> | |
6136 | ||
0639a6f6 ILT |
6137 | int |
6138 | main () | |
6139 | { | |
81ecdfbb RW |
6140 | #if BYTE_ORDER != BIG_ENDIAN |
6141 | not big endian | |
6142 | #endif | |
0639a6f6 ILT |
6143 | |
6144 | ; | |
6145 | return 0; | |
6146 | } | |
15d5fa16 | 6147 | _ACEOF |
81ecdfbb RW |
6148 | if ac_fn_c_try_compile "$LINENO"; then : |
6149 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6150 | else |
81ecdfbb | 6151 | ac_cv_c_bigendian=no |
15d5fa16 | 6152 | fi |
81ecdfbb | 6153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0639a6f6 | 6154 | fi |
81ecdfbb RW |
6155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6156 | fi | |
6157 | if test $ac_cv_c_bigendian = unknown; then | |
6158 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6160 | /* end confdefs.h. */ | |
6161 | #include <limits.h> | |
0639a6f6 | 6162 | |
81ecdfbb RW |
6163 | int |
6164 | main () | |
6165 | { | |
6166 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6167 | bogus endian macros | |
6168 | #endif | |
0639a6f6 | 6169 | |
81ecdfbb RW |
6170 | ; |
6171 | return 0; | |
6172 | } | |
15d5fa16 | 6173 | _ACEOF |
81ecdfbb RW |
6174 | if ac_fn_c_try_compile "$LINENO"; then : |
6175 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15d5fa16 | 6177 | /* end confdefs.h. */ |
81ecdfbb RW |
6178 | #include <limits.h> |
6179 | ||
0639a6f6 ILT |
6180 | int |
6181 | main () | |
6182 | { | |
81ecdfbb RW |
6183 | #ifndef _BIG_ENDIAN |
6184 | not big endian | |
6185 | #endif | |
0639a6f6 ILT |
6186 | |
6187 | ; | |
6188 | return 0; | |
6189 | } | |
15d5fa16 | 6190 | _ACEOF |
81ecdfbb RW |
6191 | if ac_fn_c_try_compile "$LINENO"; then : |
6192 | ac_cv_c_bigendian=yes | |
15d5fa16 | 6193 | else |
81ecdfbb | 6194 | ac_cv_c_bigendian=no |
15d5fa16 | 6195 | fi |
81ecdfbb | 6196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15d5fa16 | 6197 | fi |
81ecdfbb RW |
6198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6199 | fi | |
6200 | if test $ac_cv_c_bigendian = unknown; then | |
6201 | # Compile a test program. | |
6202 | if test "$cross_compiling" = yes; then : | |
6203 | # Try to guess by grepping values from an object file. | |
6204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6205 | /* end confdefs.h. */ | |
6206 | short int ascii_mm[] = | |
6207 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6208 | short int ascii_ii[] = | |
6209 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6210 | int use_ascii (int i) { | |
6211 | return ascii_mm[i] + ascii_ii[i]; | |
6212 | } | |
6213 | short int ebcdic_ii[] = | |
6214 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6215 | short int ebcdic_mm[] = | |
6216 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6217 | int use_ebcdic (int i) { | |
6218 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6219 | } | |
6220 | extern int foo; | |
15d5fa16 | 6221 | |
81ecdfbb RW |
6222 | int |
6223 | main () | |
6224 | { | |
6225 | return use_ascii (foo) == use_ebcdic (foo); | |
6226 | ; | |
6227 | return 0; | |
6228 | } | |
0639a6f6 | 6229 | _ACEOF |
81ecdfbb RW |
6230 | if ac_fn_c_try_compile "$LINENO"; then : |
6231 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6232 | ac_cv_c_bigendian=yes | |
6233 | fi | |
6234 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6235 | if test "$ac_cv_c_bigendian" = unknown; then | |
6236 | ac_cv_c_bigendian=no | |
6237 | else | |
6238 | # finding both strings is unlikely to happen, but who knows? | |
6239 | ac_cv_c_bigendian=unknown | |
6240 | fi | |
6241 | fi | |
54dc6425 | 6242 | fi |
81ecdfbb | 6243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
54dc6425 | 6244 | else |
81ecdfbb | 6245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54dc6425 ILT |
6246 | /* end confdefs.h. */ |
6247 | $ac_includes_default | |
0639a6f6 ILT |
6248 | int |
6249 | main () | |
6250 | { | |
81ecdfbb RW |
6251 | |
6252 | /* Are we little or big endian? From Harbison&Steele. */ | |
6253 | union | |
6254 | { | |
6255 | long int l; | |
6256 | char c[sizeof (long int)]; | |
6257 | } u; | |
6258 | u.l = 1; | |
6259 | return u.c[sizeof (long int) - 1] == 1; | |
0639a6f6 ILT |
6260 | |
6261 | ; | |
6262 | return 0; | |
6263 | } | |
54dc6425 | 6264 | _ACEOF |
81ecdfbb RW |
6265 | if ac_fn_c_try_run "$LINENO"; then : |
6266 | ac_cv_c_bigendian=no | |
54dc6425 | 6267 | else |
81ecdfbb | 6268 | ac_cv_c_bigendian=yes |
54dc6425 | 6269 | fi |
81ecdfbb RW |
6270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6271 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0639a6f6 | 6272 | fi |
54dc6425 | 6273 | |
81ecdfbb RW |
6274 | fi |
6275 | fi | |
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6277 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6278 | case $ac_cv_c_bigendian in #( | |
6279 | yes) | |
6280 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6281 | ;; #( | |
6282 | no) | |
6283 | ;; #( | |
6284 | universal) | |
6285 | ||
6286 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6287 | ||
6288 | ;; #( | |
6289 | *) | |
6290 | as_fn_error "unknown endianness | |
6291 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6292 | esac | |
0639a6f6 ILT |
6293 | |
6294 | ||
0639a6f6 ILT |
6295 | |
6296 | ||
81ecdfbb RW |
6297 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
6298 | NATIVE_LINKER_TRUE= | |
6299 | NATIVE_LINKER_FALSE='#' | |
6300 | else | |
6301 | NATIVE_LINKER_TRUE='#' | |
6302 | NATIVE_LINKER_FALSE= | |
0639a6f6 ILT |
6303 | fi |
6304 | ||
81ecdfbb RW |
6305 | if test "$GCC" = yes; then |
6306 | GCC_TRUE= | |
6307 | GCC_FALSE='#' | |
6308 | else | |
6309 | GCC_TRUE='#' | |
6310 | GCC_FALSE= | |
6311 | fi | |
0639a6f6 ILT |
6312 | |
6313 | ||
eb373049 ILT |
6314 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
6315 | NATIVE_OR_CROSS_LINKER_TRUE= | |
6316 | NATIVE_OR_CROSS_LINKER_FALSE='#' | |
6317 | else | |
6318 | NATIVE_OR_CROSS_LINKER_TRUE='#' | |
6319 | NATIVE_OR_CROSS_LINKER_FALSE= | |
6320 | fi | |
6321 | ||
6322 | ||
328c7c2f ILT |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
6324 | $as_echo_n "checking whether static linking works... " >&6; } | |
6325 | if test "${gold_cv_lib_static+set}" = set; then : | |
6326 | $as_echo_n "(cached) " >&6 | |
6327 | else | |
6328 | LDFLAGS_hold=$LDFLAGS | |
6329 | LDFLAGS="$LDFLAGS -static" | |
6330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6331 | /* end confdefs.h. */ | |
6332 | ||
6333 | void f() { } | |
6334 | int | |
6335 | main () | |
6336 | { | |
6337 | ||
6338 | ; | |
6339 | return 0; | |
6340 | } | |
6341 | _ACEOF | |
6342 | if ac_fn_c_try_link "$LINENO"; then : | |
6343 | gold_cv_lib_static=yes | |
6344 | else | |
6345 | gold_cv_lib_static=no | |
6346 | fi | |
6347 | rm -f core conftest.err conftest.$ac_objext \ | |
6348 | conftest$ac_exeext conftest.$ac_ext | |
dd7af074 | 6349 | LDFLAGS=$LDFLAGS_hold |
328c7c2f ILT |
6350 | fi |
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 | |
6352 | $as_echo "$gold_cv_lib_static" >&6; } | |
6353 | if test "$gold_cv_lib_static" = "yes"; then | |
6354 | HAVE_STATIC_TRUE= | |
6355 | HAVE_STATIC_FALSE='#' | |
6356 | else | |
6357 | HAVE_STATIC_TRUE='#' | |
6358 | HAVE_STATIC_FALSE= | |
6359 | fi | |
6360 | ||
6361 | ||
81ecdfbb RW |
6362 | if |
6363 | case $target_cpu in | |
864a1b56 | 6364 | powerpc*) false;; |
81ecdfbb RW |
6365 | x86_64) false;; |
6366 | sparc64) false;; | |
e79a4bad | 6367 | s390x) false;; |
81ecdfbb RW |
6368 | *) true;; |
6369 | esac; then | |
6370 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= | |
6371 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' | |
6372 | else | |
6373 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' | |
6374 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= | |
6375 | fi | |
0639a6f6 ILT |
6376 | |
6377 | ||
084e2665 ILT |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
6379 | $as_echo_n "checking for gcc >= 4.1... " >&6; } | |
6380 | if test "${gold_cv_prog_gcc41+set}" = set; then : | |
6381 | $as_echo_n "(cached) " >&6 | |
6382 | else | |
6383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6384 | /* end confdefs.h. */ | |
6385 | ||
6386 | #if !defined __GNUC__ | |
6387 | error | |
6388 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) | |
6389 | error | |
6390 | #endif | |
6391 | ||
6392 | _ACEOF | |
6393 | if ac_fn_c_try_compile "$LINENO"; then : | |
6394 | gold_cv_prog_gcc41=yes | |
6395 | else | |
6396 | gold_cv_prog_gcc41=no | |
6397 | fi | |
6398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6399 | fi | |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 | |
6401 | $as_echo "$gold_cv_prog_gcc41" >&6; } | |
6402 | ||
24482ca0 L |
6403 | save_CFLAGS="$CFLAGS" |
6404 | CFLAGS="$CFLAGS -mcmodel=medium" | |
6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6406 | /* end confdefs.h. */ | |
6407 | int i; | |
6408 | _ACEOF | |
6409 | if ac_fn_c_try_compile "$LINENO"; then : | |
6410 | have_mcmodel_medium=yes | |
6411 | else | |
6412 | have_mcmodel_medium=no | |
6413 | fi | |
6414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6415 | CFLAGS="$save_CFLAGS" | |
6416 | if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then | |
81ecdfbb RW |
6417 | MCMODEL_MEDIUM_TRUE= |
6418 | MCMODEL_MEDIUM_FALSE='#' | |
54dc6425 | 6419 | else |
81ecdfbb RW |
6420 | MCMODEL_MEDIUM_TRUE='#' |
6421 | MCMODEL_MEDIUM_FALSE= | |
54dc6425 | 6422 | fi |
54dc6425 | 6423 | |
54dc6425 | 6424 | |
2b64b551 RM |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 |
6426 | $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } | |
6427 | if test "${gold_cv_merge_constants+set}" = set; then : | |
6428 | $as_echo_n "(cached) " >&6 | |
6429 | else | |
6430 | ||
6431 | save_CFLAGS="$CFLAGS" | |
6432 | CFLAGS="$CFLAGS -fmerge-constants" | |
6433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6434 | /* end confdefs.h. */ | |
6435 | const char *s = "foo"; | |
6436 | _ACEOF | |
6437 | if ac_fn_c_try_compile "$LINENO"; then : | |
2500c017 | 6438 | gold_cv_merge_constants=yes |
2b64b551 | 6439 | else |
2500c017 | 6440 | gold_cv_merge_constants=no |
2b64b551 RM |
6441 | fi |
6442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6443 | CFLAGS="$save_CFLAGS" | |
6444 | fi | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 | |
6446 | $as_echo "$gold_cv_merge_constants" >&6; } | |
6447 | ||
6448 | if test "$gold_cv_merge_constants" = yes; then : | |
6449 | MERGE_CONSTANTS_FLAG=-fmerge-constants | |
6450 | else | |
6451 | MERGE_CONSTANTS_FLAG= | |
6452 | fi | |
6453 | ||
81ecdfbb RW |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
6455 | $as_echo_n "checking for thread support... " >&6; } | |
6456 | if test "${gold_cv_c_thread+set}" = set; then : | |
6457 | $as_echo_n "(cached) " >&6 | |
6458 | else | |
6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e44fcf3b | 6460 | /* end confdefs.h. */ |
81ecdfbb | 6461 | __thread int i = 1; |
e44fcf3b | 6462 | _ACEOF |
81ecdfbb RW |
6463 | if ac_fn_c_try_compile "$LINENO"; then : |
6464 | gold_cv_c_thread=yes | |
0639a6f6 | 6465 | else |
81ecdfbb | 6466 | gold_cv_c_thread=no |
0639a6f6 | 6467 | fi |
81ecdfbb | 6468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e44fcf3b | 6469 | fi |
81ecdfbb RW |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
6471 | $as_echo "$gold_cv_c_thread" >&6; } | |
e44fcf3b | 6472 | |
81ecdfbb RW |
6473 | if test "$gold_cv_c_thread" = "yes"; then |
6474 | TLS_TRUE= | |
6475 | TLS_FALSE='#' | |
6476 | else | |
6477 | TLS_TRUE='#' | |
6478 | TLS_FALSE= | |
0639a6f6 | 6479 | fi |
e44fcf3b | 6480 | |
0639a6f6 | 6481 | |
81ecdfbb RW |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
6483 | $as_echo_n "checking for glibc >= 2.4... " >&6; } | |
6484 | if test "${gold_cv_lib_glibc24+set}" = set; then : | |
6485 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6486 | else |
81ecdfbb | 6487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1b77ea50 | 6488 | /* end confdefs.h. */ |
81ecdfbb RW |
6489 | |
6490 | #include <features.h> | |
6491 | #if !defined __GLIBC__ | |
6492 | error | |
6493 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) | |
6494 | error | |
1b77ea50 | 6495 | #endif |
81ecdfbb | 6496 | |
1b77ea50 | 6497 | _ACEOF |
81ecdfbb RW |
6498 | if ac_fn_c_try_compile "$LINENO"; then : |
6499 | gold_cv_lib_glibc24=yes | |
0639a6f6 | 6500 | else |
81ecdfbb | 6501 | gold_cv_lib_glibc24=no |
0639a6f6 | 6502 | fi |
81ecdfbb | 6503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1b77ea50 | 6504 | fi |
81ecdfbb RW |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
6506 | $as_echo "$gold_cv_lib_glibc24" >&6; } | |
1b77ea50 | 6507 | |
81ecdfbb RW |
6508 | if test "$gold_cv_lib_glibc24" = "yes"; then |
6509 | STATIC_TLS_TRUE= | |
6510 | STATIC_TLS_FALSE='#' | |
0639a6f6 | 6511 | else |
81ecdfbb RW |
6512 | STATIC_TLS_TRUE='#' |
6513 | STATIC_TLS_FALSE= | |
0639a6f6 | 6514 | fi |
1b77ea50 | 6515 | |
0639a6f6 | 6516 | |
81ecdfbb RW |
6517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
6518 | $as_echo_n "checking for omp support... " >&6; } | |
6519 | if test "${gold_cv_c_threadprivate+set}" = set; then : | |
6520 | $as_echo_n "(cached) " >&6 | |
0639a6f6 | 6521 | else |
81ecdfbb RW |
6522 | save_CFLAGS="$CFLAGS" |
6523 | CFLAGS="$CFLAGS -fopenmp" | |
6524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6525 | /* end confdefs.h. */ | |
1b77ea50 | 6526 | |
81ecdfbb RW |
6527 | #include <omp.h> |
6528 | int i; | |
6529 | #pragma omp threadprivate (i) | |
1b77ea50 | 6530 | |
81ecdfbb RW |
6531 | _ACEOF |
6532 | if ac_fn_c_try_compile "$LINENO"; then : | |
6533 | gold_cv_c_threadprivate=yes | |
6534 | else | |
6535 | gold_cv_c_threadprivate=no | |
6536 | fi | |
6537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6538 | CFLAGS="$save_CFLAGS" | |
6539 | fi | |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 | |
6541 | $as_echo "$gold_cv_c_threadprivate" >&6; } | |
6542 | if test "$gold_cv_c_threadprivate" = "yes"; then | |
1b77ea50 | 6543 | |
81ecdfbb | 6544 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
1b77ea50 | 6545 | |
0639a6f6 | 6546 | fi |
81ecdfbb RW |
6547 | if test "$gold_cv_c_threadprivate" = "yes"; then |
6548 | OMP_SUPPORT_TRUE= | |
6549 | OMP_SUPPORT_FALSE='#' | |
1b77ea50 | 6550 | else |
81ecdfbb RW |
6551 | OMP_SUPPORT_TRUE='#' |
6552 | OMP_SUPPORT_FALSE= | |
1b77ea50 | 6553 | fi |
1b77ea50 | 6554 | |
81ecdfbb RW |
6555 | |
6556 | save_CFLAGS="$CFLAGS" | |
13323c49 | 6557 | CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" |
81ecdfbb | 6558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0639a6f6 | 6559 | /* end confdefs.h. */ |
63887f3d L |
6560 | |
6561 | __thread int i; | |
6562 | void foo (void) | |
6563 | { | |
6564 | i = 10; | |
6565 | } | |
6566 | ||
1b77ea50 | 6567 | _ACEOF |
81ecdfbb RW |
6568 | if ac_fn_c_try_compile "$LINENO"; then : |
6569 | have_tls_gnu2=yes | |
0639a6f6 | 6570 | else |
81ecdfbb | 6571 | have_tls_gnu2=no |
0639a6f6 | 6572 | fi |
81ecdfbb RW |
6573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6574 | CFLAGS="$save_CFLAGS" | |
6575 | if test "$have_tls_gnu2" = "yes"; then | |
6576 | TLS_GNU2_DIALECT_TRUE= | |
6577 | TLS_GNU2_DIALECT_FALSE='#' | |
0639a6f6 | 6578 | else |
81ecdfbb RW |
6579 | TLS_GNU2_DIALECT_TRUE='#' |
6580 | TLS_GNU2_DIALECT_FALSE= | |
0639a6f6 | 6581 | fi |
1b77ea50 | 6582 | |
81ecdfbb RW |
6583 | |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 | |
6585 | $as_echo_n "checking for glibc >= 2.9... " >&6; } | |
6586 | if test "${gold_cv_lib_glibc29+set}" = set; then : | |
6587 | $as_echo_n "(cached) " >&6 | |
1b77ea50 | 6588 | else |
81ecdfbb RW |
6589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6590 | /* end confdefs.h. */ | |
0639a6f6 | 6591 | |
81ecdfbb RW |
6592 | #include <features.h> |
6593 | #if !defined __GLIBC__ | |
6594 | error | |
6595 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) | |
6596 | error | |
6597 | #endif | |
1b77ea50 | 6598 | |
81ecdfbb RW |
6599 | _ACEOF |
6600 | if ac_fn_c_try_compile "$LINENO"; then : | |
6601 | gold_cv_lib_glibc29=yes | |
6602 | else | |
6603 | gold_cv_lib_glibc29=no | |
1b77ea50 | 6604 | fi |
81ecdfbb RW |
6605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6606 | fi | |
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 | |
6608 | $as_echo "$gold_cv_lib_glibc29" >&6; } | |
0639a6f6 | 6609 | |
81ecdfbb RW |
6610 | if test "$gold_cv_lib_glibc29" = "yes"; then |
6611 | TLS_DESCRIPTORS_TRUE= | |
6612 | TLS_DESCRIPTORS_FALSE='#' | |
6613 | else | |
6614 | TLS_DESCRIPTORS_TRUE='#' | |
6615 | TLS_DESCRIPTORS_FALSE= | |
6616 | fi | |
0639a6f6 ILT |
6617 | |
6618 | ||
81ecdfbb RW |
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
6620 | $as_echo_n "checking for -frandom-seed support... " >&6; } | |
6621 | if test "${gold_cv_c_random_seed+set}" = set; then : | |
6622 | $as_echo_n "(cached) " >&6 | |
6623 | else | |
6624 | save_CFLAGS="$CFLAGS" | |
6625 | CFLAGS="$CFLAGS -frandom-seed=foo" | |
6626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0639a6f6 | 6627 | /* end confdefs.h. */ |
81ecdfbb | 6628 | int i; |
0639a6f6 | 6629 | _ACEOF |
81ecdfbb RW |
6630 | if ac_fn_c_try_compile "$LINENO"; then : |
6631 | gold_cv_c_random_seed=yes | |
0639a6f6 | 6632 | else |
81ecdfbb RW |
6633 | gold_cv_c_random_seed=no |
6634 | fi | |
6635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6636 | CFLAGS="$save_CFLAGS" | |
6637 | fi | |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 | |
6639 | $as_echo "$gold_cv_c_random_seed" >&6; } | |
6640 | if test "$gold_cv_c_random_seed" = "yes"; then | |
6641 | # In Makefile, '$@' will be expanded to be the name of the file | |
6642 | # being built, providing a unique seed for each file. | |
6643 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ | |
0639a6f6 | 6644 | fi |
1b77ea50 | 6645 | |
81ecdfbb | 6646 | |
ebb300b2 CC |
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
6648 | $as_echo_n "checking for glibc ifunc support... " >&6; } | |
6649 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : | |
7223e9ca ILT |
6650 | $as_echo_n "(cached) " >&6 |
6651 | else | |
ebb300b2 CC |
6652 | save_LDFLAGS="$LDFLAGS" |
6653 | LDFLAGS="$LDFLAGS -static" | |
6654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7223e9ca ILT |
6655 | /* end confdefs.h. */ |
6656 | ||
6657 | #include <features.h> | |
6658 | #if !defined __GLIBC__ | |
6659 | error | |
6660 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) | |
6661 | error | |
6662 | #endif | |
ebb300b2 CC |
6663 | void func (void) { } |
6664 | void invoke (void); | |
6665 | __asm__(".type invoke, %gnu_indirect_function"); | |
6666 | typedef void (*funcptr) (void); | |
6667 | funcptr dispatch (void) __asm__ ("invoke"); | |
6668 | funcptr dispatch (void) { return &func; } | |
6669 | int | |
6670 | main () | |
6671 | { | |
6672 | invoke(); | |
6673 | ; | |
6674 | return 0; | |
6675 | } | |
7223e9ca ILT |
6676 | |
6677 | _ACEOF | |
ebb300b2 CC |
6678 | if ac_fn_c_try_link "$LINENO"; then : |
6679 | ||
6680 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then | |
6681 | gold_cv_lib_glibc_ifunc=both | |
7223e9ca | 6682 | else |
ebb300b2 | 6683 | gold_cv_lib_glibc_ifunc=dyn |
7223e9ca | 6684 | fi |
ebb300b2 CC |
6685 | else |
6686 | gold_cv_lib_glibc_ifunc=no | |
6687 | fi | |
6688 | rm -f core conftest.err conftest.$ac_objext \ | |
6689 | conftest$ac_exeext conftest.$ac_ext | |
6690 | LDFLAGS="$save_LDFLAGS" | |
7223e9ca | 6691 | fi |
ebb300b2 CC |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
6693 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } | |
7223e9ca | 6694 | |
ebb300b2 | 6695 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
7223e9ca ILT |
6696 | IFUNC_TRUE= |
6697 | IFUNC_FALSE='#' | |
6698 | else | |
6699 | IFUNC_TRUE='#' | |
6700 | IFUNC_FALSE= | |
6701 | fi | |
6702 | ||
ebb300b2 CC |
6703 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
6704 | IFUNC_STATIC_TRUE= | |
6705 | IFUNC_STATIC_FALSE='#' | |
6706 | else | |
6707 | IFUNC_STATIC_TRUE='#' | |
6708 | IFUNC_STATIC_FALSE= | |
6709 | fi | |
6710 | ||
7223e9ca | 6711 | |
81ecdfbb | 6712 | |
270c9937 JB |
6713 | # Set the 'development' global. |
6714 | . $srcdir/../bfd/development.sh | |
6715 | ||
9780e045 | 6716 | # Default set of GCC warnings to enable. |
efc8d4f2 | 6717 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
6718 | |
6719 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
efc8d4f2 RW |
6720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6721 | /* end confdefs.h. */ | |
6722 | __GNUC__ | |
6723 | _ACEOF | |
6724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6725 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6726 | ||
6727 | else | |
6728 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
6729 | fi | |
6730 | rm -f conftest* | |
6731 | ||
81ecdfbb | 6732 | |
9780e045 NC |
6733 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
6734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6735 | /* end confdefs.h. */ | |
6736 | __GNUC__ | |
6737 | _ACEOF | |
6738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6739 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : | |
6740 | ||
6741 | else | |
6742 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
6743 | fi | |
6744 | rm -f conftest* | |
6745 | ||
6746 | ||
6757cf57 TS |
6747 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
6748 | WARN_WRITE_STRINGS="" | |
6749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6750 | /* end confdefs.h. */ | |
6751 | __GNUC__ | |
6752 | _ACEOF | |
6753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6754 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
6755 | ||
6756 | else | |
6757 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
6758 | fi | |
6759 | rm -f conftest* | |
6760 | ||
9780e045 | 6761 | |
81ecdfbb RW |
6762 | # Check whether --enable-werror was given. |
6763 | if test "${enable_werror+set}" = set; then : | |
6764 | enableval=$enable_werror; case "${enableval}" in | |
6765 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6766 | no | n) ERROR_ON_WARNING="no" ;; | |
6767 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6768 | esac | |
0639a6f6 | 6769 | fi |
1b77ea50 | 6770 | |
81ecdfbb | 6771 | |
efc8d4f2 | 6772 | # Disable -Wformat by default when using gcc on mingw |
81ecdfbb RW |
6773 | case "${host}" in |
6774 | *-*-mingw32*) | |
6775 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6776 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
6777 | fi | |
0639a6f6 | 6778 | ;; |
81ecdfbb | 6779 | *) ;; |
0639a6f6 | 6780 | esac |
81ecdfbb | 6781 | |
270c9937 JB |
6782 | # Enable -Werror by default when using gcc. Turn it off for releases. |
6783 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
81ecdfbb | 6784 | ERROR_ON_WARNING=yes |
0639a6f6 | 6785 | fi |
0639a6f6 | 6786 | |
81ecdfbb RW |
6787 | NO_WERROR= |
6788 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 6789 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
81ecdfbb | 6790 | NO_WERROR="-Wno-error" |
0639a6f6 | 6791 | fi |
1b77ea50 | 6792 | |
81ecdfbb RW |
6793 | if test "${GCC}" = yes ; then |
6794 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
0639a6f6 ILT |
6795 | fi |
6796 | ||
81ecdfbb RW |
6797 | # Check whether --enable-build-warnings was given. |
6798 | if test "${enable_build_warnings+set}" = set; then : | |
6799 | enableval=$enable_build_warnings; case "${enableval}" in | |
6800 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
6801 | no) if test "${GCC}" = yes ; then | |
6802 | WARN_CFLAGS="-w" | |
6803 | fi;; | |
6804 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6805 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
6806 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6807 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
6808 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6809 | esac | |
6810 | fi | |
0639a6f6 | 6811 | |
1b77ea50 | 6812 | |
81ecdfbb RW |
6813 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
6814 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
0639a6f6 | 6815 | fi |
1b77ea50 | 6816 | |
1b77ea50 | 6817 | |
1b77ea50 | 6818 | |
0639a6f6 | 6819 | |
1b77ea50 | 6820 | |
6757cf57 | 6821 | |
2ea97941 | 6822 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
81ecdfbb RW |
6823 | |
6824 | ||
dc87f620 ILT |
6825 | |
6826 | # Check whether --with-gold-ldflags was given. | |
6827 | if test "${with_gold_ldflags+set}" = set; then : | |
6828 | withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6829 | GOLD_LDFLAGS= | |
6830 | else | |
6831 | GOLD_LDFLAGS=$withval | |
6832 | fi | |
6833 | else | |
6834 | GOLD_LDFLAGS= | |
6835 | fi | |
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | # Check whether --with-gold-ldadd was given. | |
6841 | if test "${with_gold_ldadd+set}" = set; then : | |
6842 | withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6843 | GOLD_LDADD= | |
6844 | else | |
6845 | GOLD_LDADD=$withval | |
6846 | fi | |
6847 | else | |
6848 | GOLD_LDADD= | |
6849 | fi | |
6850 | ||
6851 | ||
6852 | ||
81ecdfbb RW |
6853 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
6854 | ||
6855 | ||
88597d34 | 6856 | for ac_header in sys/mman.h |
81ecdfbb | 6857 | do : |
88597d34 ILT |
6858 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
6859 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
0639a6f6 | 6860 | cat >>confdefs.h <<_ACEOF |
88597d34 ILT |
6861 | #define HAVE_SYS_MMAN_H 1 |
6862 | _ACEOF | |
6863 | ||
6864 | fi | |
6865 | ||
6866 | done | |
6867 | ||
6868 | for ac_func in chsize mmap | |
6869 | do : | |
6870 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6871 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6872 | eval as_val=\$$as_ac_var | |
6873 | if test "x$as_val" = x""yes; then : | |
6874 | cat >>confdefs.h <<_ACEOF | |
6875 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 ILT |
6876 | _ACEOF |
6877 | ||
0639a6f6 | 6878 | fi |
0639a6f6 | 6879 | done |
1b77ea50 | 6880 | |
88597d34 | 6881 | for ac_func in pread ftruncate ffsll |
81ecdfbb RW |
6882 | do : |
6883 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6884 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6885 | eval as_val=\$$as_ac_var | |
6886 | if test "x$as_val" = x""yes; then : | |
6887 | cat >>confdefs.h <<_ACEOF | |
6888 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1b77ea50 | 6889 | _ACEOF |
0639a6f6 | 6890 | |
81ecdfbb RW |
6891 | else |
6892 | case " $LIBOBJS " in | |
6893 | *" $ac_func.$ac_objext "* ) ;; | |
6894 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
6895 | ;; | |
6896 | esac | |
0639a6f6 | 6897 | |
81ecdfbb RW |
6898 | fi |
6899 | done | |
0639a6f6 | 6900 | |
0639a6f6 | 6901 | |
81ecdfbb | 6902 | |
88597d34 ILT |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
6904 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } | |
6905 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : | |
6906 | $as_echo_n "(cached) " >&6 | |
6907 | else | |
6908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6909 | /* end confdefs.h. */ | |
6910 | ||
6911 | ||
6912 | #include <sys/mman.h> | |
6913 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } | |
6914 | ||
6915 | int | |
6916 | main () | |
6917 | { | |
6918 | ||
6919 | ; | |
6920 | return 0; | |
6921 | } | |
6922 | _ACEOF | |
6923 | if ac_fn_c_try_link "$LINENO"; then : | |
6924 | gold_cv_lib_mremap_maymove=yes | |
6925 | else | |
6926 | gold_cv_lib_mremap_maymove=no | |
6927 | fi | |
6928 | rm -f core conftest.err conftest.$ac_objext \ | |
6929 | conftest$ac_exeext conftest.$ac_ext | |
6930 | fi | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 | |
6932 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } | |
6933 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then | |
6934 | ||
6935 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h | |
6936 | ||
6937 | else | |
6938 | case " $LIBOBJS " in | |
6939 | *" mremap.$ac_objext "* ) ;; | |
6940 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" | |
6941 | ;; | |
6942 | esac | |
6943 | ||
6944 | fi | |
6945 | ||
81ecdfbb | 6946 | # Link in zlib if we can. This allows us to write compressed sections. |
ae2eea65 | 6947 | |
918357b9 | 6948 | # Use the system's zlib library. |
39f3de7c L |
6949 | zlibdir="-L\$(top_builddir)/../zlib" |
6950 | zlibinc="-I\$(top_srcdir)/../zlib" | |
ae2eea65 | 6951 | |
918357b9 L |
6952 | # Check whether --with-system-zlib was given. |
6953 | if test "${with_system_zlib+set}" = set; then : | |
6954 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
6955 | zlibdir= | |
6956 | zlibinc= | |
81ecdfbb | 6957 | fi |
1b77ea50 | 6958 | |
1b77ea50 | 6959 | fi |
1b77ea50 | 6960 | |
81ecdfbb | 6961 | |
1b77ea50 | 6962 | |
81ecdfbb RW |
6963 | |
6964 | ||
6965 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
6966 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
6967 | ac_have_decl=1 | |
6968 | else | |
6969 | ac_have_decl=0 | |
3d857b98 | 6970 | fi |
3d857b98 DK |
6971 | |
6972 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6973 | #define HAVE_DECL_BASENAME $ac_have_decl |
3d857b98 | 6974 | _ACEOF |
81ecdfbb RW |
6975 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
6976 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6977 | ac_have_decl=1 | |
3d857b98 | 6978 | else |
81ecdfbb | 6979 | ac_have_decl=0 |
3d857b98 | 6980 | fi |
3d857b98 | 6981 | |
81ecdfbb RW |
6982 | cat >>confdefs.h <<_ACEOF |
6983 | #define HAVE_DECL_FFS $ac_have_decl | |
3d857b98 | 6984 | _ACEOF |
81ecdfbb RW |
6985 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
6986 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6987 | ac_have_decl=1 | |
3d857b98 | 6988 | else |
81ecdfbb | 6989 | ac_have_decl=0 |
3d857b98 | 6990 | fi |
3d857b98 DK |
6991 | |
6992 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 6993 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
3d857b98 | 6994 | _ACEOF |
81ecdfbb RW |
6995 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6996 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6997 | ac_have_decl=1 | |
3d857b98 | 6998 | else |
81ecdfbb | 6999 | ac_have_decl=0 |
3d857b98 | 7000 | fi |
3d857b98 | 7001 | |
81ecdfbb RW |
7002 | cat >>confdefs.h <<_ACEOF |
7003 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
3d857b98 | 7004 | _ACEOF |
81ecdfbb RW |
7005 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7006 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7007 | ac_have_decl=1 | |
3d857b98 | 7008 | else |
81ecdfbb RW |
7009 | ac_have_decl=0 |
7010 | fi | |
3d857b98 | 7011 | |
81ecdfbb RW |
7012 | cat >>confdefs.h <<_ACEOF |
7013 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
7014 | _ACEOF | |
7015 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
7016 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7017 | ac_have_decl=1 | |
7018 | else | |
7019 | ac_have_decl=0 | |
3d857b98 | 7020 | fi |
81ecdfbb RW |
7021 | |
7022 | cat >>confdefs.h <<_ACEOF | |
7023 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
7024 | _ACEOF | |
7025 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
7026 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7027 | ac_have_decl=1 | |
7028 | else | |
7029 | ac_have_decl=0 | |
3d857b98 | 7030 | fi |
3d857b98 DK |
7031 | |
7032 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7033 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
3d857b98 DK |
7034 | _ACEOF |
7035 | ||
7036 | ||
ae447ddd CC |
7037 | save_CFLAGS="$CFLAGS" |
7038 | CFLAGS="$CFLAGS -Werror -gpubnames" | |
7039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7040 | /* end confdefs.h. */ | |
7041 | int i; | |
7042 | _ACEOF | |
7043 | if ac_fn_c_try_compile "$LINENO"; then : | |
7044 | have_pubnames=yes | |
7045 | else | |
7046 | have_pubnames=no | |
7047 | fi | |
7048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7049 | CFLAGS="$save_CFLAGS" | |
7050 | if test "$have_pubnames" = "yes"; then | |
7051 | HAVE_PUBNAMES_TRUE= | |
7052 | HAVE_PUBNAMES_FALSE='#' | |
7053 | else | |
7054 | HAVE_PUBNAMES_TRUE='#' | |
7055 | HAVE_PUBNAMES_FALSE= | |
7056 | fi | |
7057 | ||
7058 | ||
7059 | save_CFLAGS="$CFLAGS" | |
7060 | CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin" | |
7061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7062 | /* end confdefs.h. */ | |
7063 | int i; | |
7064 | _ACEOF | |
7065 | if ac_fn_c_try_compile "$LINENO"; then : | |
7066 | have_no_use_linker_plugin=yes | |
7067 | else | |
7068 | have_no_use_linker_plugin=no | |
7069 | fi | |
7070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7071 | CFLAGS="$save_CFLAGS" | |
7072 | if test "$have_no_use_linker_plugin" = "yes"; then | |
7073 | HAVE_NO_USE_LINKER_PLUGIN_TRUE= | |
7074 | HAVE_NO_USE_LINKER_PLUGIN_FALSE='#' | |
7075 | else | |
7076 | HAVE_NO_USE_LINKER_PLUGIN_TRUE='#' | |
7077 | HAVE_NO_USE_LINKER_PLUGIN_FALSE= | |
7078 | fi | |
7079 | ||
7080 | ||
81ecdfbb RW |
7081 | ac_ext=cpp |
7082 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3d857b98 DK |
7086 | |
7087 | ||
81ecdfbb RW |
7088 | |
7089 | ac_ext=cpp | |
7090 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
7095 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
7096 | if test -z "$CXXCPP"; then | |
7097 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
7098 | $as_echo_n "(cached) " >&6 | |
3d857b98 | 7099 | else |
81ecdfbb RW |
7100 | # Double quotes because CXXCPP needs to be expanded |
7101 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7102 | do | |
7103 | ac_preproc_ok=false | |
7104 | for ac_cxx_preproc_warn_flag in '' yes | |
7105 | do | |
7106 | # Use a header file that comes with gcc, so configuring glibc | |
7107 | # with a fresh cross-compiler works. | |
7108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7109 | # <limits.h> exists even on freestanding compilers. | |
7110 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7111 | # not just through cpp. "Syntax error" is here to catch this case. | |
7112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7113 | /* end confdefs.h. */ |
81ecdfbb RW |
7114 | #ifdef __STDC__ |
7115 | # include <limits.h> | |
7116 | #else | |
7117 | # include <assert.h> | |
3d857b98 | 7118 | #endif |
81ecdfbb | 7119 | Syntax error |
3d857b98 | 7120 | _ACEOF |
81ecdfbb | 7121 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7122 | |
81ecdfbb RW |
7123 | else |
7124 | # Broken: fails on valid input. | |
7125 | continue | |
3d857b98 | 7126 | fi |
81ecdfbb | 7127 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7128 | |
81ecdfbb RW |
7129 | # OK, works on sane cases. Now check whether nonexistent headers |
7130 | # can be detected and how. | |
7131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7132 | /* end confdefs.h. */ | |
7133 | #include <ac_nonexistent.h> | |
3d857b98 | 7134 | _ACEOF |
81ecdfbb RW |
7135 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7136 | # Broken: success on invalid input. | |
7137 | continue | |
3d857b98 | 7138 | else |
81ecdfbb RW |
7139 | # Passes both tests. |
7140 | ac_preproc_ok=: | |
7141 | break | |
7142 | fi | |
7143 | rm -f conftest.err conftest.$ac_ext | |
7144 | ||
7145 | done | |
7146 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7147 | rm -f conftest.err conftest.$ac_ext | |
7148 | if $ac_preproc_ok; then : | |
7149 | break | |
7150 | fi | |
3d857b98 | 7151 | |
81ecdfbb RW |
7152 | done |
7153 | ac_cv_prog_CXXCPP=$CXXCPP | |
3d857b98 DK |
7154 | |
7155 | fi | |
81ecdfbb | 7156 | CXXCPP=$ac_cv_prog_CXXCPP |
3d857b98 | 7157 | else |
81ecdfbb RW |
7158 | ac_cv_prog_CXXCPP=$CXXCPP |
7159 | fi | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
7161 | $as_echo "$CXXCPP" >&6; } | |
7162 | ac_preproc_ok=false | |
7163 | for ac_cxx_preproc_warn_flag in '' yes | |
7164 | do | |
7165 | # Use a header file that comes with gcc, so configuring glibc | |
7166 | # with a fresh cross-compiler works. | |
7167 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7168 | # <limits.h> exists even on freestanding compilers. | |
7169 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7170 | # not just through cpp. "Syntax error" is here to catch this case. | |
7171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3d857b98 | 7172 | /* end confdefs.h. */ |
81ecdfbb RW |
7173 | #ifdef __STDC__ |
7174 | # include <limits.h> | |
7175 | #else | |
7176 | # include <assert.h> | |
3d857b98 | 7177 | #endif |
81ecdfbb | 7178 | Syntax error |
3d857b98 | 7179 | _ACEOF |
81ecdfbb | 7180 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
3d857b98 | 7181 | |
81ecdfbb RW |
7182 | else |
7183 | # Broken: fails on valid input. | |
7184 | continue | |
3d857b98 | 7185 | fi |
81ecdfbb | 7186 | rm -f conftest.err conftest.$ac_ext |
3d857b98 | 7187 | |
81ecdfbb RW |
7188 | # OK, works on sane cases. Now check whether nonexistent headers |
7189 | # can be detected and how. | |
7190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7191 | /* end confdefs.h. */ | |
7192 | #include <ac_nonexistent.h> | |
3d857b98 | 7193 | _ACEOF |
81ecdfbb RW |
7194 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
7195 | # Broken: success on invalid input. | |
7196 | continue | |
7197 | else | |
7198 | # Passes both tests. | |
7199 | ac_preproc_ok=: | |
7200 | break | |
7201 | fi | |
7202 | rm -f conftest.err conftest.$ac_ext | |
3d857b98 | 7203 | |
81ecdfbb RW |
7204 | done |
7205 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7206 | rm -f conftest.err conftest.$ac_ext | |
7207 | if $ac_preproc_ok; then : | |
3d857b98 DK |
7208 | |
7209 | else | |
81ecdfbb RW |
7210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7212 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
7213 | See \`config.log' for more details." "$LINENO" 5; } | |
7214 | fi | |
7215 | ||
7216 | ac_ext=cpp | |
7217 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7218 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7219 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7220 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7221 | ||
7222 | ||
8356f2d0 CC |
7223 | for ac_header in unordered_set unordered_map |
7224 | do : | |
7225 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7226 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7227 | eval as_val=\$$as_ac_Header | |
7228 | if test "x$as_val" = x""yes; then : | |
7229 | cat >>confdefs.h <<_ACEOF | |
7230 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7231 | _ACEOF | |
7232 | ||
7233 | fi | |
7234 | ||
7235 | done | |
7236 | ||
81ecdfbb RW |
7237 | for ac_header in tr1/unordered_set tr1/unordered_map |
7238 | do : | |
7239 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7240 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7241 | eval as_val=\$$as_ac_Header | |
7242 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7243 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7244 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3d857b98 DK |
7245 | _ACEOF |
7246 | ||
3d857b98 | 7247 | fi |
3d857b98 | 7248 | |
81ecdfbb RW |
7249 | done |
7250 | ||
7251 | for ac_header in ext/hash_map ext/hash_set | |
7252 | do : | |
7253 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7254 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7255 | eval as_val=\$$as_ac_Header | |
7256 | if test "x$as_val" = x""yes; then : | |
7257 | cat >>confdefs.h <<_ACEOF | |
7258 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7259 | _ACEOF | |
3d857b98 | 7260 | |
3d857b98 | 7261 | fi |
3d857b98 | 7262 | |
81ecdfbb RW |
7263 | done |
7264 | ||
7265 | for ac_header in byteswap.h | |
7266 | do : | |
7267 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
7268 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : | |
7269 | cat >>confdefs.h <<_ACEOF | |
7270 | #define HAVE_BYTESWAP_H 1 | |
3d857b98 DK |
7271 | _ACEOF |
7272 | ||
81ecdfbb | 7273 | fi |
3d857b98 | 7274 | |
81ecdfbb RW |
7275 | done |
7276 | ||
0bf402d5 ILT |
7277 | |
7278 | for ac_header in windows.h | |
7279 | do : | |
7280 | ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
7281 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
7282 | cat >>confdefs.h <<_ACEOF | |
7283 | #define HAVE_WINDOWS_H 1 | |
7284 | _ACEOF | |
7285 | ||
7286 | fi | |
7287 | ||
7288 | done | |
7289 | ||
7290 | for ac_header in dlfcn.h | |
7291 | do : | |
7292 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
7293 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7294 | cat >>confdefs.h <<_ACEOF | |
7295 | #define HAVE_DLFCN_H 1 | |
7296 | _ACEOF | |
6632e8cc | 7297 | |
0bf402d5 ILT |
7298 | fi |
7299 | ||
7300 | done | |
7301 | ||
6632e8cc CC |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
7303 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
7304 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7305 | $as_echo_n "(cached) " >&6 | |
7306 | else | |
7307 | ac_func_search_save_LIBS=$LIBS | |
7308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7309 | /* end confdefs.h. */ | |
7310 | ||
7311 | /* Override any GCC internal prototype to avoid an error. | |
7312 | Use char because int might match the return type of a GCC | |
7313 | builtin and then its argument prototype would still apply. */ | |
7314 | #ifdef __cplusplus | |
7315 | extern "C" | |
7316 | #endif | |
7317 | char dlopen (); | |
7318 | int | |
7319 | main () | |
7320 | { | |
7321 | return dlopen (); | |
7322 | ; | |
7323 | return 0; | |
7324 | } | |
7325 | _ACEOF | |
7326 | for ac_lib in '' dl dld; do | |
7327 | if test -z "$ac_lib"; then | |
7328 | ac_res="none required" | |
7329 | else | |
7330 | ac_res=-l$ac_lib | |
7331 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7332 | fi | |
7333 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7334 | ac_cv_search_dlopen=$ac_res | |
7335 | fi | |
7336 | rm -f core conftest.err conftest.$ac_objext \ | |
7337 | conftest$ac_exeext | |
7338 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7339 | break | |
7340 | fi | |
7341 | done | |
7342 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
7343 | ||
7344 | else | |
7345 | ac_cv_search_dlopen=no | |
7346 | fi | |
7347 | rm conftest.$ac_ext | |
7348 | LIBS=$ac_func_search_save_LIBS | |
7349 | fi | |
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
7351 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
7352 | ac_res=$ac_cv_search_dlopen | |
7353 | if test "$ac_res" != no; then : | |
7354 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7355 | ||
7356 | fi | |
7357 | ||
7358 | case "$ac_cv_search_dlopen" in | |
7359 | no*) DLOPEN_LIBS="";; | |
7360 | *) DLOPEN_LIBS="$ac_cv_search_dlopen";; | |
7361 | esac | |
0bf402d5 ILT |
7362 | |
7363 | ||
7c0640fa | 7364 | for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |
81ecdfbb RW |
7365 | do : |
7366 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7367 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7368 | eval as_val=\$$as_ac_var | |
7369 | if test "x$as_val" = x""yes; then : | |
3d857b98 | 7370 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7371 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3d857b98 DK |
7372 | _ACEOF |
7373 | ||
3d857b98 | 7374 | fi |
81ecdfbb RW |
7375 | done |
7376 | ||
7377 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
7378 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
7379 | ac_have_decl=1 | |
3d857b98 | 7380 | else |
81ecdfbb RW |
7381 | ac_have_decl=0 |
7382 | fi | |
3d857b98 | 7383 | |
81ecdfbb RW |
7384 | cat >>confdefs.h <<_ACEOF |
7385 | #define HAVE_DECL_BASENAME $ac_have_decl | |
3d857b98 | 7386 | _ACEOF |
81ecdfbb RW |
7387 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
7388 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
7389 | ac_have_decl=1 | |
3d857b98 | 7390 | else |
81ecdfbb | 7391 | ac_have_decl=0 |
3d857b98 | 7392 | fi |
3d857b98 DK |
7393 | |
7394 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7395 | #define HAVE_DECL_FFS $ac_have_decl |
3d857b98 | 7396 | _ACEOF |
81ecdfbb RW |
7397 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
7398 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
7399 | ac_have_decl=1 | |
3d857b98 | 7400 | else |
81ecdfbb | 7401 | ac_have_decl=0 |
3d857b98 | 7402 | fi |
3d857b98 | 7403 | |
81ecdfbb RW |
7404 | cat >>confdefs.h <<_ACEOF |
7405 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
3d857b98 | 7406 | _ACEOF |
81ecdfbb RW |
7407 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
7408 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
7409 | ac_have_decl=1 | |
3d857b98 | 7410 | else |
81ecdfbb | 7411 | ac_have_decl=0 |
3d857b98 | 7412 | fi |
3d857b98 DK |
7413 | |
7414 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7415 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
3d857b98 | 7416 | _ACEOF |
81ecdfbb RW |
7417 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
7418 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
7419 | ac_have_decl=1 | |
3d857b98 | 7420 | else |
81ecdfbb | 7421 | ac_have_decl=0 |
3d857b98 | 7422 | fi |
3d857b98 | 7423 | |
81ecdfbb RW |
7424 | cat >>confdefs.h <<_ACEOF |
7425 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
3d857b98 | 7426 | _ACEOF |
81ecdfbb RW |
7427 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
7428 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
7429 | ac_have_decl=1 | |
3d857b98 | 7430 | else |
81ecdfbb | 7431 | ac_have_decl=0 |
3d857b98 | 7432 | fi |
3d857b98 DK |
7433 | |
7434 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 7435 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
3d857b98 | 7436 | _ACEOF |
81ecdfbb RW |
7437 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
7438 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
7439 | ac_have_decl=1 | |
3d857b98 | 7440 | else |
81ecdfbb RW |
7441 | ac_have_decl=0 |
7442 | fi | |
3d857b98 | 7443 | |
81ecdfbb RW |
7444 | cat >>confdefs.h <<_ACEOF |
7445 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
7446 | _ACEOF | |
7447 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" | |
7448 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : | |
7449 | ac_have_decl=1 | |
7450 | else | |
7451 | ac_have_decl=0 | |
7452 | fi | |
3d857b98 | 7453 | |
81ecdfbb RW |
7454 | cat >>confdefs.h <<_ACEOF |
7455 | #define HAVE_DECL_STRNDUP $ac_have_decl | |
7456 | _ACEOF | |
7457 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
7458 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
7459 | ac_have_decl=1 | |
7460 | else | |
7461 | ac_have_decl=0 | |
3d857b98 DK |
7462 | fi |
7463 | ||
81ecdfbb RW |
7464 | cat >>confdefs.h <<_ACEOF |
7465 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
7466 | _ACEOF | |
3d857b98 | 7467 | |
e44fcf3b | 7468 | |
40fde488 CD |
7469 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
7470 | # at link time with some versions of GCC. | |
81ecdfbb RW |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
7472 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } | |
7473 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : | |
7474 | $as_echo_n "(cached) " >&6 | |
40fde488 | 7475 | else |
81ecdfbb | 7476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
40fde488 CD |
7477 | /* end confdefs.h. */ |
7478 | ||
7479 | #include <tr1/unordered_map> | |
7480 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } | |
7481 | ||
7482 | int | |
7483 | main () | |
7484 | { | |
7485 | ||
7486 | ; | |
7487 | return 0; | |
7488 | } | |
7489 | _ACEOF | |
81ecdfbb | 7490 | if ac_fn_cxx_try_link "$LINENO"; then : |
40fde488 CD |
7491 | gold_cv_unordered_map_rehash=yes |
7492 | else | |
81ecdfbb | 7493 | gold_cv_unordered_map_rehash=no |
40fde488 | 7494 | fi |
81ecdfbb RW |
7495 | rm -f core conftest.err conftest.$ac_objext \ |
7496 | conftest$ac_exeext conftest.$ac_ext | |
40fde488 | 7497 | fi |
81ecdfbb RW |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
7499 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } | |
40fde488 CD |
7500 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
7501 | ||
81ecdfbb | 7502 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
40fde488 CD |
7503 | |
7504 | fi | |
7505 | ||
81c82a68 ILT |
7506 | # Use of tr1/unordered_map with off_t as a key is not supported on GCC |
7507 | # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type. | |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5 | |
7509 | $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; } | |
7510 | if test "${gold_cv_hash_off_t+set}" = set; then : | |
7511 | $as_echo_n "(cached) " >&6 | |
7512 | else | |
7513 | CXXFLAGS_hold=$CXXFLAGS | |
7514 | CXXFLAGS="$CXXFLAGS $LFS_CFLAGS" | |
7515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7516 | /* end confdefs.h. */ | |
7517 | ||
7518 | #include <sys/types.h> | |
7519 | #include <tr1/unordered_map> | |
7520 | std::tr1::hash<off_t> h; | |
7521 | ||
7522 | _ACEOF | |
7523 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7524 | gold_cv_hash_off_t=yes | |
7525 | else | |
7526 | gold_cv_hash_off_t=no | |
7527 | fi | |
7528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26e4ef59 | 7529 | CXXFLAGS=$CXXFLAGS_hold |
81c82a68 ILT |
7530 | fi |
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5 | |
7532 | $as_echo "$gold_cv_hash_off_t" >&6; } | |
7533 | if test "$gold_cv_hash_off_t" = "yes"; then | |
7534 | ||
7535 | $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h | |
7536 | ||
7537 | fi | |
7538 | ||
04bf7072 ILT |
7539 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
7540 | # function. Check for that. This is gcc bug 35546. This test can | |
7541 | # probably be removed after the bug has been fixed for a while. | |
81ecdfbb RW |
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
7543 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } | |
7544 | if test "${gold_cv_template_attribute+set}" = set; then : | |
7545 | $as_echo_n "(cached) " >&6 | |
04bf7072 | 7546 | else |
81ecdfbb RW |
7547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7548 | /* end confdefs.h. */ | |
04bf7072 ILT |
7549 | |
7550 | template<typename T> extern void foo(const char*, ...) | |
7551 | __attribute__ ((__format__ (__printf__, 1, 2))); | |
7552 | template<typename T> void foo(const char* format, ...) {} | |
7553 | void bar() { foo<int>("%s\n", "foo"); } | |
7554 | ||
7555 | _ACEOF | |
81ecdfbb | 7556 | if ac_fn_cxx_try_compile "$LINENO"; then : |
04bf7072 ILT |
7557 | gold_cv_template_attribute=yes |
7558 | else | |
81ecdfbb | 7559 | gold_cv_template_attribute=no |
04bf7072 | 7560 | fi |
81ecdfbb | 7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
04bf7072 | 7562 | fi |
81ecdfbb RW |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
7564 | $as_echo "$gold_cv_template_attribute" >&6; } | |
04bf7072 ILT |
7565 | if test "$gold_cv_template_attribute" = "yes"; then |
7566 | ||
81ecdfbb | 7567 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
04bf7072 ILT |
7568 | |
7569 | fi | |
7570 | ||
5d329b7d ILT |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
7572 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } | |
7573 | if test "${gold_cv_stat_st_mtim+set}" = set; then : | |
7574 | $as_echo_n "(cached) " >&6 | |
7575 | else | |
7576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7577 | /* end confdefs.h. */ | |
7578 | ||
7579 | #include <sys/stat.h> | |
7580 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} | |
7581 | ||
7582 | int | |
7583 | main () | |
7584 | { | |
7585 | ||
7586 | ; | |
7587 | return 0; | |
7588 | } | |
7589 | _ACEOF | |
7590 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7591 | gold_cv_stat_st_mtim=yes | |
7592 | else | |
7593 | gold_cv_stat_st_mtim=no | |
7594 | fi | |
7595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7596 | fi | |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 | |
7598 | $as_echo "$gold_cv_stat_st_mtim" >&6; } | |
7599 | if test "$gold_cv_stat_st_mtim" = "yes"; then | |
7600 | ||
7601 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h | |
7602 | ||
7603 | fi | |
7604 | ||
54dc6425 ILT |
7605 | ac_ext=c |
7606 | ac_cpp='$CPP $CPPFLAGS' | |
7607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7610 | ||
7611 | ||
58797674 RM |
7612 | for ac_header in locale.h |
7613 | do : | |
7614 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
7615 | if test "x$ac_cv_header_locale_h" = x""yes; then : | |
7616 | cat >>confdefs.h <<_ACEOF | |
7617 | #define HAVE_LOCALE_H 1 | |
7618 | _ACEOF | |
7619 | ||
7620 | fi | |
7621 | ||
7622 | done | |
7623 | ||
44350750 NC |
7624 | for ac_func in setlocale |
7625 | do : | |
7626 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | |
7627 | if test "x$ac_cv_func_setlocale" = x""yes; then : | |
7628 | cat >>confdefs.h <<_ACEOF | |
7629 | #define HAVE_SETLOCALE 1 | |
7630 | _ACEOF | |
7631 | ||
7632 | fi | |
7633 | done | |
7634 | ||
7635 | ||
7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
7637 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
7638 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
7639 | $as_echo_n "(cached) " >&6 | |
7640 | else | |
7641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7642 | /* end confdefs.h. */ | |
7643 | #include <locale.h> | |
7644 | int | |
7645 | main () | |
7646 | { | |
7647 | return LC_MESSAGES | |
7648 | ; | |
7649 | return 0; | |
7650 | } | |
7651 | _ACEOF | |
7652 | if ac_fn_c_try_link "$LINENO"; then : | |
7653 | am_cv_val_LC_MESSAGES=yes | |
7654 | else | |
7655 | am_cv_val_LC_MESSAGES=no | |
7656 | fi | |
7657 | rm -f core conftest.err conftest.$ac_objext \ | |
7658 | conftest$ac_exeext conftest.$ac_ext | |
7659 | fi | |
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
7661 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
7662 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7663 | ||
7664 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
7665 | ||
7666 | fi | |
7667 | ||
7668 | ||
81ecdfbb RW |
7669 | |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7671 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
7672 | # Check whether --enable-maintainer-mode was given. | |
7673 | if test "${enable_maintainer_mode+set}" = set; then : | |
7674 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
bae7f79e ILT |
7675 | else |
7676 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 7677 | fi |
bae7f79e | 7678 | |
81ecdfbb RW |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
7680 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
7681 | if test $USE_MAINTAINER_MODE = yes; then | |
bae7f79e ILT |
7682 | MAINTAINER_MODE_TRUE= |
7683 | MAINTAINER_MODE_FALSE='#' | |
7684 | else | |
7685 | MAINTAINER_MODE_TRUE='#' | |
7686 | MAINTAINER_MODE_FALSE= | |
7687 | fi | |
7688 | ||
7689 | MAINT=$MAINTAINER_MODE_TRUE | |
7690 | ||
7691 | ||
7692 | ||
81ecdfbb RW |
7693 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
7694 | ||
bae7f79e ILT |
7695 | cat >confcache <<\_ACEOF |
7696 | # This file is a shell script that caches the results of configure | |
7697 | # tests run on this system so they can be shared between configure | |
7698 | # scripts and configure runs, see configure's option --config-cache. | |
7699 | # It is not useful on other systems. If it contains results you don't | |
7700 | # want to keep, you may remove or edit it. | |
7701 | # | |
7702 | # config.status only pays attention to the cache file if you give it | |
7703 | # the --recheck option to rerun configure. | |
7704 | # | |
7705 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7706 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7707 | # following values. | |
7708 | ||
7709 | _ACEOF | |
7710 | ||
7711 | # The following way of writing the cache mishandles newlines in values, | |
7712 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7713 | # So, we kill variables containing newlines. |
bae7f79e ILT |
7714 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7715 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7716 | ( |
7717 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7718 | eval ac_val=\$$ac_var | |
7719 | case $ac_val in #( | |
7720 | *${as_nl}*) | |
7721 | case $ac_var in #( | |
7722 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7723 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7724 | esac | |
7725 | case $ac_var in #( | |
7726 | _ | IFS | as_nl) ;; #( | |
7727 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7728 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7729 | esac ;; | |
7730 | esac | |
7731 | done | |
7732 | ||
bae7f79e | 7733 | (set) 2>&1 | |
81ecdfbb RW |
7734 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7735 | *${as_nl}ac_space=\ *) | |
7736 | # `set' does not quote correctly, so add quotes: double-quote | |
7737 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bae7f79e ILT |
7738 | sed -n \ |
7739 | "s/'/'\\\\''/g; | |
7740 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7741 | ;; #( |
bae7f79e ILT |
7742 | *) |
7743 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7744 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bae7f79e | 7745 | ;; |
81ecdfbb RW |
7746 | esac | |
7747 | sort | |
7748 | ) | | |
bae7f79e | 7749 | sed ' |
81ecdfbb | 7750 | /^ac_cv_env_/b end |
bae7f79e | 7751 | t clear |
81ecdfbb | 7752 | :clear |
bae7f79e ILT |
7753 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7754 | t end | |
81ecdfbb RW |
7755 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7756 | :end' >>confcache | |
7757 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7758 | if test -w "$cache_file"; then | |
7759 | test "x$cache_file" != "x/dev/null" && | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7761 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bae7f79e ILT |
7762 | cat confcache >$cache_file |
7763 | else | |
81ecdfbb RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7765 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bae7f79e ILT |
7766 | fi |
7767 | fi | |
7768 | rm -f confcache | |
7769 | ||
7770 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7771 | # Let make expand exec_prefix. | |
7772 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7773 | ||
bae7f79e ILT |
7774 | DEFS=-DHAVE_CONFIG_H |
7775 | ||
7776 | ac_libobjs= | |
7777 | ac_ltlibobjs= | |
7778 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7779 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7780 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7781 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7782 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7783 | # will be set to the directory where LIBOBJS objects are built. | |
7784 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7785 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bae7f79e ILT |
7786 | done |
7787 | LIBOBJS=$ac_libobjs | |
7788 | ||
7789 | LTLIBOBJS=$ac_ltlibobjs | |
7790 | ||
7791 | ||
81ecdfbb RW |
7792 | if test -n "$EXEEXT"; then |
7793 | am__EXEEXT_TRUE= | |
7794 | am__EXEEXT_FALSE='#' | |
7795 | else | |
7796 | am__EXEEXT_TRUE='#' | |
7797 | am__EXEEXT_FALSE= | |
7798 | fi | |
7799 | ||
fe9a4c12 | 7800 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
81ecdfbb RW |
7801 | as_fn_error "conditional \"THREADS\" was never defined. |
7802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fe9a4c12 | 7803 | fi |
89fc3421 | 7804 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
81ecdfbb RW |
7805 | as_fn_error "conditional \"PLUGINS\" was never defined. |
7806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
89fc3421 | 7807 | fi |
053a4d68 JY |
7808 | if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then |
7809 | as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined. | |
7810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7811 | fi | |
364c7fa5 ILT |
7812 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
7813 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. | |
7814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7815 | fi | |
7816 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then | |
7817 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. | |
7818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7819 | fi | |
7820 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then | |
7821 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. | |
7822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7823 | fi | |
7824 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then | |
7825 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. | |
7826 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7827 | fi | |
e79a4bad MK |
7828 | if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then |
7829 | as_fn_error "conditional \"DEFAULT_TARGET_S390\" was never defined. | |
7830 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7831 | fi | |
364c7fa5 ILT |
7832 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then |
7833 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. | |
7834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7835 | fi | |
4fc1b9d4 L |
7836 | if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then |
7837 | as_fn_error "conditional \"DEFAULT_TARGET_X32\" was never defined. | |
7838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7839 | fi | |
0a6f1bf2 AM |
7840 | if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then |
7841 | as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined. | |
7842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7843 | fi | |
9810d34d SS |
7844 | if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then |
7845 | as_fn_error "conditional \"DEFAULT_TARGET_MIPS\" was never defined. | |
7846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7847 | fi | |
bae7f79e | 7848 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
7849 | as_fn_error "conditional \"AMDEP\" was never defined. |
7850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7851 | fi |
7852 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
7853 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
7854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7855 | fi |
7856 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
81ecdfbb RW |
7857 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
7858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e | 7859 | fi |
81ecdfbb | 7860 | |
537b5f51 | 7861 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
81ecdfbb RW |
7862 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
7863 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 ILT |
7864 | fi |
7865 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then | |
81ecdfbb RW |
7866 | as_fn_error "conditional \"GCC\" was never defined. |
7867 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
537b5f51 | 7868 | fi |
eb373049 ILT |
7869 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
7870 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. | |
7871 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
328c7c2f ILT |
7872 | fi |
7873 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then | |
7874 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. | |
7875 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
eb373049 | 7876 | fi |
63402fe4 | 7877 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
81ecdfbb RW |
7878 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
7879 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
63402fe4 | 7880 | fi |
8a5e3e08 | 7881 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
81ecdfbb RW |
7882 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
7883 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8a5e3e08 | 7884 | fi |
6eee141f | 7885 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
81ecdfbb RW |
7886 | as_fn_error "conditional \"TLS\" was never defined. |
7887 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6eee141f | 7888 | fi |
097ec620 | 7889 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
81ecdfbb RW |
7890 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
7891 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
097ec620 | 7892 | fi |
155a0dd7 | 7893 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
81ecdfbb RW |
7894 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
7895 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
155a0dd7 | 7896 | fi |
c2b45e22 | 7897 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
81ecdfbb RW |
7898 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
7899 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 CC |
7900 | fi |
7901 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then | |
81ecdfbb RW |
7902 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
7903 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c2b45e22 | 7904 | fi |
7223e9ca ILT |
7905 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
7906 | as_fn_error "conditional \"IFUNC\" was never defined. | |
7907 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7908 | fi | |
ebb300b2 CC |
7909 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
7910 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. | |
7911 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7912 | fi | |
f1415016 CC |
7913 | if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then |
7914 | as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined. | |
7915 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7916 | fi | |
ae447ddd CC |
7917 | if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then |
7918 | as_fn_error "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined. | |
7919 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7920 | fi | |
bae7f79e | 7921 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
7922 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
7923 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
bae7f79e ILT |
7924 | fi |
7925 | ||
7926 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7927 | ac_write_fail=0 |
bae7f79e ILT |
7928 | ac_clean_files_save=$ac_clean_files |
7929 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7931 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7932 | as_write_fail=0 | |
7933 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bae7f79e ILT |
7934 | #! $SHELL |
7935 | # Generated by $as_me. | |
7936 | # Run this file to recreate the current configuration. | |
7937 | # Compiler output produced by configure, useful for debugging | |
7938 | # configure, is in config.log if it exists. | |
7939 | ||
7940 | debug=false | |
7941 | ac_cs_recheck=false | |
7942 | ac_cs_silent=false | |
bae7f79e | 7943 | |
81ecdfbb RW |
7944 | SHELL=\${CONFIG_SHELL-$SHELL} |
7945 | export SHELL | |
7946 | _ASEOF | |
7947 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7948 | ## -------------------- ## | |
7949 | ## M4sh Initialization. ## | |
7950 | ## -------------------- ## | |
bae7f79e | 7951 | |
81ecdfbb RW |
7952 | # Be more Bourne compatible |
7953 | DUALCASE=1; export DUALCASE # for MKS sh | |
7954 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bae7f79e ILT |
7955 | emulate sh |
7956 | NULLCMD=: | |
81ecdfbb | 7957 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bae7f79e ILT |
7958 | # is contrary to our usage. Disable this feature. |
7959 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7960 | setopt NO_GLOB_SUBST |
7961 | else | |
7962 | case `(set -o) 2>/dev/null` in #( | |
7963 | *posix*) : | |
7964 | set -o posix ;; #( | |
7965 | *) : | |
7966 | ;; | |
7967 | esac | |
bae7f79e | 7968 | fi |
bae7f79e | 7969 | |
81ecdfbb RW |
7970 | |
7971 | as_nl=' | |
7972 | ' | |
7973 | export as_nl | |
7974 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7975 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7976 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7977 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7978 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7979 | # but without wasting forks for bash or zsh. | |
7980 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7981 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7982 | as_echo='print -r --' | |
7983 | as_echo_n='print -rn --' | |
7984 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7985 | as_echo='printf %s\n' | |
7986 | as_echo_n='printf %s' | |
7987 | else | |
7988 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7989 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7990 | as_echo_n='/usr/ucb/echo -n' | |
7991 | else | |
7992 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7993 | as_echo_n_body='eval | |
7994 | arg=$1; | |
7995 | case $arg in #( | |
7996 | *"$as_nl"*) | |
7997 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7998 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7999 | esac; | |
8000 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8001 | ' | |
8002 | export as_echo_n_body | |
8003 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
8004 | fi | |
8005 | export as_echo_body | |
8006 | as_echo='sh -c $as_echo_body as_echo' | |
8007 | fi | |
8008 | ||
8009 | # The user is always right. | |
8010 | if test "${PATH_SEPARATOR+set}" != set; then | |
8011 | PATH_SEPARATOR=: | |
8012 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8013 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8014 | PATH_SEPARATOR=';' | |
8015 | } | |
bae7f79e ILT |
8016 | fi |
8017 | ||
8018 | ||
81ecdfbb RW |
8019 | # IFS |
8020 | # We need space, tab and new line, in precisely that order. Quoting is | |
8021 | # there to prevent editors from complaining about space-tab. | |
8022 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8023 | # splitting by setting IFS to empty value.) | |
8024 | IFS=" "" $as_nl" | |
8025 | ||
8026 | # Find who we are. Look in the path if we contain no directory separator. | |
8027 | case $0 in #(( | |
8028 | *[\\/]* ) as_myself=$0 ;; | |
8029 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8030 | for as_dir in $PATH | |
8031 | do | |
8032 | IFS=$as_save_IFS | |
8033 | test -z "$as_dir" && as_dir=. | |
8034 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8035 | done | |
8036 | IFS=$as_save_IFS | |
8037 | ||
8038 | ;; | |
8039 | esac | |
8040 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8041 | # in which case we are not to be found in the path. | |
8042 | if test "x$as_myself" = x; then | |
8043 | as_myself=$0 | |
8044 | fi | |
8045 | if test ! -f "$as_myself"; then | |
8046 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8047 | exit 1 | |
8048 | fi | |
8049 | ||
8050 | # Unset variables that we do not need and which cause bugs (e.g. in | |
8051 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
8052 | # suppresses any "Segmentation fault" message there. '((' could | |
8053 | # trigger a bug in pdksh 5.2.14. | |
8054 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8055 | do eval test x\${$as_var+set} = xset \ | |
8056 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8057 | done | |
bae7f79e ILT |
8058 | PS1='$ ' |
8059 | PS2='> ' | |
8060 | PS4='+ ' | |
8061 | ||
8062 | # NLS nuisances. | |
81ecdfbb RW |
8063 | LC_ALL=C |
8064 | export LC_ALL | |
8065 | LANGUAGE=C | |
8066 | export LANGUAGE | |
8067 | ||
8068 | # CDPATH. | |
8069 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8070 | ||
8071 | ||
8072 | # as_fn_error ERROR [LINENO LOG_FD] | |
8073 | # --------------------------------- | |
8074 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
8075 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
8076 | # script with status $?, using 1 if that was 0. | |
8077 | as_fn_error () | |
8078 | { | |
8079 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
8080 | if test "$3"; then | |
8081 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8082 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bae7f79e | 8083 | fi |
81ecdfbb RW |
8084 | $as_echo "$as_me: error: $1" >&2 |
8085 | as_fn_exit $as_status | |
8086 | } # as_fn_error | |
8087 | ||
8088 | ||
8089 | # as_fn_set_status STATUS | |
8090 | # ----------------------- | |
8091 | # Set $? to STATUS, without forking. | |
8092 | as_fn_set_status () | |
8093 | { | |
8094 | return $1 | |
8095 | } # as_fn_set_status | |
bae7f79e | 8096 | |
81ecdfbb RW |
8097 | # as_fn_exit STATUS |
8098 | # ----------------- | |
8099 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8100 | as_fn_exit () | |
8101 | { | |
8102 | set +e | |
8103 | as_fn_set_status $1 | |
8104 | exit $1 | |
8105 | } # as_fn_exit | |
8106 | ||
8107 | # as_fn_unset VAR | |
8108 | # --------------- | |
8109 | # Portably unset VAR. | |
8110 | as_fn_unset () | |
8111 | { | |
8112 | { eval $1=; unset $1;} | |
8113 | } | |
8114 | as_unset=as_fn_unset | |
8115 | # as_fn_append VAR VALUE | |
8116 | # ---------------------- | |
8117 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8118 | # advantage of any shell optimizations that allow amortized linear growth over | |
8119 | # repeated appends, instead of the typical quadratic growth present in naive | |
8120 | # implementations. | |
8121 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8122 | eval 'as_fn_append () | |
8123 | { | |
8124 | eval $1+=\$2 | |
8125 | }' | |
8126 | else | |
8127 | as_fn_append () | |
8128 | { | |
8129 | eval $1=\$$1\$2 | |
8130 | } | |
8131 | fi # as_fn_append | |
8132 | ||
8133 | # as_fn_arith ARG... | |
8134 | # ------------------ | |
8135 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8136 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8137 | # must be portable across $(()) and expr. | |
8138 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8139 | eval 'as_fn_arith () | |
8140 | { | |
8141 | as_val=$(( $* )) | |
8142 | }' | |
8143 | else | |
8144 | as_fn_arith () | |
8145 | { | |
8146 | as_val=`expr "$@" || test $? -eq 1` | |
8147 | } | |
8148 | fi # as_fn_arith | |
8149 | ||
8150 | ||
8151 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
8152 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bae7f79e ILT |
8153 | as_expr=expr |
8154 | else | |
8155 | as_expr=false | |
8156 | fi | |
8157 | ||
81ecdfbb | 8158 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bae7f79e ILT |
8159 | as_basename=basename |
8160 | else | |
8161 | as_basename=false | |
8162 | fi | |
8163 | ||
81ecdfbb RW |
8164 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8165 | as_dirname=dirname | |
8166 | else | |
8167 | as_dirname=false | |
8168 | fi | |
bae7f79e | 8169 | |
81ecdfbb | 8170 | as_me=`$as_basename -- "$0" || |
bae7f79e ILT |
8171 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8172 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8173 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8174 | $as_echo X/"$0" | | |
8175 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8176 | s//\1/ | |
8177 | q | |
8178 | } | |
8179 | /^X\/\(\/\/\)$/{ | |
8180 | s//\1/ | |
8181 | q | |
8182 | } | |
8183 | /^X\/\(\/\).*/{ | |
8184 | s//\1/ | |
8185 | q | |
8186 | } | |
8187 | s/.*/./; q'` | |
bae7f79e | 8188 | |
bae7f79e ILT |
8189 | # Avoid depending upon Character Ranges. |
8190 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8191 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8192 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8193 | as_cr_digits='0123456789' | |
8194 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8195 | ||
81ecdfbb RW |
8196 | ECHO_C= ECHO_N= ECHO_T= |
8197 | case `echo -n x` in #((((( | |
8198 | -n*) | |
8199 | case `echo 'xy\c'` in | |
8200 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8201 | xy) ECHO_C='\c';; | |
8202 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8203 | ECHO_T=' ';; | |
8204 | esac;; | |
8205 | *) | |
8206 | ECHO_N='-n';; | |
bae7f79e ILT |
8207 | esac |
8208 | ||
81ecdfbb RW |
8209 | rm -f conf$$ conf$$.exe conf$$.file |
8210 | if test -d conf$$.dir; then | |
8211 | rm -f conf$$.dir/conf$$.file | |
bae7f79e | 8212 | else |
81ecdfbb RW |
8213 | rm -f conf$$.dir |
8214 | mkdir conf$$.dir 2>/dev/null | |
bae7f79e | 8215 | fi |
81ecdfbb RW |
8216 | if (echo >conf$$.file) 2>/dev/null; then |
8217 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bae7f79e | 8218 | as_ln_s='ln -s' |
81ecdfbb RW |
8219 | # ... but there are two gotchas: |
8220 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8221 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8222 | # In both cases, we have to default to `cp -p'. | |
8223 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8224 | as_ln_s='cp -p' | |
8225 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8226 | as_ln_s=ln | |
8227 | else | |
8228 | as_ln_s='cp -p' | |
bae7f79e | 8229 | fi |
bae7f79e ILT |
8230 | else |
8231 | as_ln_s='cp -p' | |
8232 | fi | |
81ecdfbb RW |
8233 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8234 | rmdir conf$$.dir 2>/dev/null | |
8235 | ||
8236 | ||
8237 | # as_fn_mkdir_p | |
8238 | # ------------- | |
8239 | # Create "$as_dir" as a directory, including parents if necessary. | |
8240 | as_fn_mkdir_p () | |
8241 | { | |
8242 | ||
8243 | case $as_dir in #( | |
8244 | -*) as_dir=./$as_dir;; | |
8245 | esac | |
8246 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8247 | as_dirs= | |
8248 | while :; do | |
8249 | case $as_dir in #( | |
8250 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8251 | *) as_qdir=$as_dir;; | |
8252 | esac | |
8253 | as_dirs="'$as_qdir' $as_dirs" | |
8254 | as_dir=`$as_dirname -- "$as_dir" || | |
8255 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8256 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8257 | X"$as_dir" : 'X\(//\)$' \| \ | |
8258 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8259 | $as_echo X"$as_dir" | | |
8260 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8261 | s//\1/ | |
8262 | q | |
8263 | } | |
8264 | /^X\(\/\/\)[^/].*/{ | |
8265 | s//\1/ | |
8266 | q | |
8267 | } | |
8268 | /^X\(\/\/\)$/{ | |
8269 | s//\1/ | |
8270 | q | |
8271 | } | |
8272 | /^X\(\/\).*/{ | |
8273 | s//\1/ | |
8274 | q | |
8275 | } | |
8276 | s/.*/./; q'` | |
8277 | test -d "$as_dir" && break | |
8278 | done | |
8279 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8280 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
8281 | ||
bae7f79e | 8282 | |
81ecdfbb | 8283 | } # as_fn_mkdir_p |
bae7f79e | 8284 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 8285 | as_mkdir_p='mkdir -p "$as_dir"' |
bae7f79e ILT |
8286 | else |
8287 | test -d ./-p && rmdir ./-p | |
8288 | as_mkdir_p=false | |
8289 | fi | |
8290 | ||
81ecdfbb RW |
8291 | if test -x / >/dev/null 2>&1; then |
8292 | as_test_x='test -x' | |
8293 | else | |
8294 | if ls -dL / >/dev/null 2>&1; then | |
8295 | as_ls_L_option=L | |
8296 | else | |
8297 | as_ls_L_option= | |
8298 | fi | |
8299 | as_test_x=' | |
8300 | eval sh -c '\'' | |
8301 | if test -d "$1"; then | |
8302 | test -d "$1/."; | |
8303 | else | |
8304 | case $1 in #( | |
8305 | -*)set "./$1";; | |
8306 | esac; | |
8307 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
8308 | ???[sx]*):;;*)false;;esac;fi | |
8309 | '\'' sh | |
8310 | ' | |
8311 | fi | |
8312 | as_executable_p=$as_test_x | |
bae7f79e ILT |
8313 | |
8314 | # Sed expression to map a string onto a valid CPP name. | |
8315 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8316 | ||
8317 | # Sed expression to map a string onto a valid variable name. | |
8318 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8319 | ||
8320 | ||
bae7f79e | 8321 | exec 6>&1 |
81ecdfbb RW |
8322 | ## ----------------------------------- ## |
8323 | ## Main body of $CONFIG_STATUS script. ## | |
8324 | ## ----------------------------------- ## | |
8325 | _ASEOF | |
8326 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
bae7f79e | 8327 | |
81ecdfbb RW |
8328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8329 | # Save the log message, to keep $0 and so on meaningful, and to | |
bae7f79e | 8330 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8331 | # values after options handling. |
8332 | ac_log=" | |
8486ee48 | 8333 | This file was extended by gold $as_me 0.1, which was |
81ecdfbb | 8334 | generated by GNU Autoconf 2.64. Invocation command line was |
bae7f79e ILT |
8335 | |
8336 | CONFIG_FILES = $CONFIG_FILES | |
8337 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8338 | CONFIG_LINKS = $CONFIG_LINKS | |
8339 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8340 | $ $0 $@ | |
8341 | ||
81ecdfbb RW |
8342 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8343 | " | |
8344 | ||
bae7f79e ILT |
8345 | _ACEOF |
8346 | ||
81ecdfbb RW |
8347 | case $ac_config_files in *" |
8348 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8349 | esac | |
bae7f79e | 8350 | |
81ecdfbb RW |
8351 | case $ac_config_headers in *" |
8352 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8353 | esac | |
bae7f79e | 8354 | |
bae7f79e | 8355 | |
81ecdfbb RW |
8356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8357 | # Files that config.status was made for. | |
8358 | config_files="$ac_config_files" | |
8359 | config_headers="$ac_config_headers" | |
8360 | config_commands="$ac_config_commands" | |
bae7f79e | 8361 | |
81ecdfbb | 8362 | _ACEOF |
bae7f79e | 8363 | |
81ecdfbb | 8364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8365 | ac_cs_usage="\ |
81ecdfbb RW |
8366 | \`$as_me' instantiates files and other configuration actions |
8367 | from templates according to the current configuration. Unless the files | |
8368 | and actions are specified as TAGs, all are instantiated by default. | |
bae7f79e | 8369 | |
81ecdfbb | 8370 | Usage: $0 [OPTION]... [TAG]... |
bae7f79e ILT |
8371 | |
8372 | -h, --help print this help, then exit | |
81ecdfbb RW |
8373 | -V, --version print version number and configuration settings, then exit |
8374 | -q, --quiet, --silent | |
8375 | do not print progress messages | |
bae7f79e ILT |
8376 | -d, --debug don't remove temporary files |
8377 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8378 | --file=FILE[:TEMPLATE] |
8379 | instantiate the configuration file FILE | |
8380 | --header=FILE[:TEMPLATE] | |
8381 | instantiate the configuration header FILE | |
bae7f79e ILT |
8382 | |
8383 | Configuration files: | |
8384 | $config_files | |
8385 | ||
8386 | Configuration headers: | |
8387 | $config_headers | |
8388 | ||
8389 | Configuration commands: | |
8390 | $config_commands | |
8391 | ||
81ecdfbb | 8392 | Report bugs to the package provider." |
bae7f79e | 8393 | |
81ecdfbb RW |
8394 | _ACEOF |
8395 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8396 | ac_cs_version="\\ |
8486ee48 | 8397 | gold config.status 0.1 |
81ecdfbb RW |
8398 | configured by $0, generated by GNU Autoconf 2.64, |
8399 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bae7f79e | 8400 | |
81ecdfbb | 8401 | Copyright (C) 2009 Free Software Foundation, Inc. |
bae7f79e ILT |
8402 | This config.status script is free software; the Free Software Foundation |
8403 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8404 | |
8405 | ac_pwd='$ac_pwd' | |
8406 | srcdir='$srcdir' | |
8407 | INSTALL='$INSTALL' | |
8408 | MKDIR_P='$MKDIR_P' | |
8409 | AWK='$AWK' | |
8410 | test -n "\$AWK" || AWK=awk | |
bae7f79e ILT |
8411 | _ACEOF |
8412 | ||
81ecdfbb RW |
8413 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8414 | # The default lists apply if the user does not specify any file. | |
bae7f79e ILT |
8415 | ac_need_defaults=: |
8416 | while test $# != 0 | |
8417 | do | |
8418 | case $1 in | |
8419 | --*=*) | |
81ecdfbb RW |
8420 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8421 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bae7f79e ILT |
8422 | ac_shift=: |
8423 | ;; | |
81ecdfbb | 8424 | *) |
bae7f79e ILT |
8425 | ac_option=$1 |
8426 | ac_optarg=$2 | |
8427 | ac_shift=shift | |
8428 | ;; | |
bae7f79e ILT |
8429 | esac |
8430 | ||
8431 | case $ac_option in | |
8432 | # Handling of the options. | |
bae7f79e ILT |
8433 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8434 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8435 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8436 | $as_echo "$ac_cs_version"; exit ;; | |
8437 | --debug | --debu | --deb | --de | --d | -d ) | |
bae7f79e ILT |
8438 | debug=: ;; |
8439 | --file | --fil | --fi | --f ) | |
8440 | $ac_shift | |
81ecdfbb RW |
8441 | case $ac_optarg in |
8442 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8443 | esac | |
8444 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bae7f79e ILT |
8445 | ac_need_defaults=false;; |
8446 | --header | --heade | --head | --hea ) | |
8447 | $ac_shift | |
81ecdfbb RW |
8448 | case $ac_optarg in |
8449 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8450 | esac | |
8451 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bae7f79e | 8452 | ac_need_defaults=false;; |
81ecdfbb RW |
8453 | --he | --h) |
8454 | # Conflict between --help and --header | |
8455 | as_fn_error "ambiguous option: \`$1' | |
8456 | Try \`$0 --help' for more information.";; | |
8457 | --help | --hel | -h ) | |
8458 | $as_echo "$ac_cs_usage"; exit ;; | |
bae7f79e ILT |
8459 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8460 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8461 | ac_cs_silent=: ;; | |
8462 | ||
8463 | # This is an error. | |
81ecdfbb RW |
8464 | -*) as_fn_error "unrecognized option: \`$1' |
8465 | Try \`$0 --help' for more information." ;; | |
bae7f79e | 8466 | |
81ecdfbb RW |
8467 | *) as_fn_append ac_config_targets " $1" |
8468 | ac_need_defaults=false ;; | |
bae7f79e ILT |
8469 | |
8470 | esac | |
8471 | shift | |
8472 | done | |
8473 | ||
8474 | ac_configure_extra_args= | |
8475 | ||
8476 | if $ac_cs_silent; then | |
8477 | exec 6>/dev/null | |
8478 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8479 | fi | |
8480 | ||
8481 | _ACEOF | |
81ecdfbb | 8482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bae7f79e | 8483 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8484 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8485 | shift | |
8486 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8487 | CONFIG_SHELL='$SHELL' | |
8488 | export CONFIG_SHELL | |
8489 | exec "\$@" | |
bae7f79e ILT |
8490 | fi |
8491 | ||
8492 | _ACEOF | |
81ecdfbb RW |
8493 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8494 | exec 5>>config.log | |
8495 | { | |
8496 | echo | |
8497 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8498 | ## Running $as_me. ## | |
8499 | _ASBOX | |
8500 | $as_echo "$ac_log" | |
8501 | } >&5 | |
bae7f79e | 8502 | |
81ecdfbb RW |
8503 | _ACEOF |
8504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bae7f79e | 8505 | # |
81ecdfbb | 8506 | # INIT-COMMANDS |
bae7f79e | 8507 | # |
bae7f79e ILT |
8508 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8509 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
8510 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8511 | # from automake. | |
8512 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8513 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8514 | LINGUAS="${LINGUAS-%UNSET%}" | |
8515 | ||
8516 | ||
8517 | _ACEOF | |
8518 | ||
81ecdfbb | 8519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e | 8520 | |
81ecdfbb | 8521 | # Handling of arguments. |
bae7f79e ILT |
8522 | for ac_config_target in $ac_config_targets |
8523 | do | |
81ecdfbb RW |
8524 | case $ac_config_target in |
8525 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8526 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8527 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8528 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8529 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
8530 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8531 | ||
8532 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
bae7f79e ILT |
8533 | esac |
8534 | done | |
8535 | ||
81ecdfbb | 8536 | |
bae7f79e ILT |
8537 | # If the user did not use the arguments to specify the items to instantiate, |
8538 | # then the envvar interface is used. Set only those that are not. | |
8539 | # We use the long form for the default assignment because of an extremely | |
8540 | # bizarre bug on SunOS 4.1.3. | |
8541 | if $ac_need_defaults; then | |
8542 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8543 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8544 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8545 | fi | |
8546 | ||
8547 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8548 | # simply because there is no reason against having it here, and in addition, |
bae7f79e | 8549 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8550 | # Hook for its removal unless debugging. |
8551 | # Note that there is a small window in which the directory will not be cleaned: | |
8552 | # after its creation but before its name has been assigned to `$tmp'. | |
bae7f79e ILT |
8553 | $debug || |
8554 | { | |
81ecdfbb RW |
8555 | tmp= |
8556 | trap 'exit_status=$? | |
8557 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8558 | ' 0 | |
8559 | trap 'as_fn_exit 1' 1 2 13 15 | |
bae7f79e | 8560 | } |
bae7f79e ILT |
8561 | # Create a (secure) tmp directory for tmp files. |
8562 | ||
8563 | { | |
81ecdfbb | 8564 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bae7f79e ILT |
8565 | test -n "$tmp" && test -d "$tmp" |
8566 | } || | |
8567 | { | |
81ecdfbb RW |
8568 | tmp=./conf$$-$RANDOM |
8569 | (umask 077 && mkdir "$tmp") | |
8570 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8571 | ||
8572 | # Set up the scripts for CONFIG_FILES section. | |
8573 | # No need to generate them if there are no CONFIG_FILES. | |
8574 | # This happens for instance with `./config.status config.h'. | |
8575 | if test -n "$CONFIG_FILES"; then | |
8576 | ||
8577 | ||
8578 | ac_cr=`echo X | tr X '\015'` | |
8579 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8580 | # But we know of no other shell where ac_cr would be empty at this | |
8581 | # point, so we can use a bashism as a fallback. | |
8582 | if test "x$ac_cr" = x; then | |
8583 | eval ac_cr=\$\'\\r\' | |
8584 | fi | |
8585 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8586 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8587 | ac_cs_awk_cr='\r' | |
8588 | else | |
8589 | ac_cs_awk_cr=$ac_cr | |
8590 | fi | |
8591 | ||
8592 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8593 | _ACEOF | |
8594 | ||
8595 | ||
8596 | { | |
8597 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8598 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8599 | echo "_ACEOF" | |
8600 | } >conf$$subs.sh || | |
8601 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8602 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8603 | ac_delim='%!_!# ' | |
8604 | for ac_last_try in false false false false false :; do | |
8605 | . ./conf$$subs.sh || | |
8606 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8607 | ||
8608 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8609 | if test $ac_delim_n = $ac_delim_num; then | |
8610 | break | |
8611 | elif $ac_last_try; then | |
8612 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8613 | else | |
8614 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8615 | fi | |
8616 | done | |
8617 | rm -f conf$$subs.sh | |
8618 | ||
8619 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8620 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8621 | _ACEOF | |
8622 | sed -n ' | |
8623 | h | |
8624 | s/^/S["/; s/!.*/"]=/ | |
8625 | p | |
8626 | g | |
8627 | s/^[^!]*!// | |
8628 | :repl | |
8629 | t repl | |
8630 | s/'"$ac_delim"'$// | |
8631 | t delim | |
8632 | :nl | |
8633 | h | |
8634 | s/\(.\{148\}\).*/\1/ | |
8635 | t more1 | |
8636 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8637 | p | |
8638 | n | |
8639 | b repl | |
8640 | :more1 | |
8641 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8642 | p | |
8643 | g | |
8644 | s/.\{148\}// | |
8645 | t nl | |
8646 | :delim | |
8647 | h | |
8648 | s/\(.\{148\}\).*/\1/ | |
8649 | t more2 | |
8650 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8651 | p | |
8652 | b | |
8653 | :more2 | |
8654 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8655 | p | |
8656 | g | |
8657 | s/.\{148\}// | |
8658 | t delim | |
8659 | ' <conf$$subs.awk | sed ' | |
8660 | /^[^""]/{ | |
8661 | N | |
8662 | s/\n// | |
8663 | } | |
8664 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8665 | rm -f conf$$subs.awk | |
8666 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8667 | _ACAWK | |
8668 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8669 | for (key in S) S_is_set[key] = 1 | |
8670 | FS = "\a" | |
8671 | ||
8672 | } | |
bae7f79e | 8673 | { |
81ecdfbb RW |
8674 | line = $ 0 |
8675 | nfields = split(line, field, "@") | |
8676 | substed = 0 | |
8677 | len = length(field[1]) | |
8678 | for (i = 2; i < nfields; i++) { | |
8679 | key = field[i] | |
8680 | keylen = length(key) | |
8681 | if (S_is_set[key]) { | |
8682 | value = S[key] | |
8683 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8684 | len += length(value) + length(field[++i]) | |
8685 | substed = 1 | |
8686 | } else | |
8687 | len += 1 + keylen | |
8688 | } | |
8689 | ||
8690 | print line | |
bae7f79e ILT |
8691 | } |
8692 | ||
81ecdfbb RW |
8693 | _ACAWK |
8694 | _ACEOF | |
8695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8696 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8697 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8698 | else | |
8699 | cat | |
8700 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8701 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bae7f79e ILT |
8702 | _ACEOF |
8703 | ||
81ecdfbb RW |
8704 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8705 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8706 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8707 | # (actually we leave an empty line to preserve line numbers). | |
8708 | if test "x$srcdir" = x.; then | |
8709 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8710 | s/:*\$(srcdir):*/:/ | |
8711 | s/:*\${srcdir}:*/:/ | |
8712 | s/:*@srcdir@:*/:/ | |
8713 | s/^\([^=]*=[ ]*\):*/\1/ | |
8714 | s/:*$// | |
8715 | s/^[^=]*=[ ]*$// | |
8716 | }' | |
8717 | fi | |
bae7f79e | 8718 | |
81ecdfbb RW |
8719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8720 | fi # test -n "$CONFIG_FILES" | |
bae7f79e | 8721 | |
81ecdfbb RW |
8722 | # Set up the scripts for CONFIG_HEADERS section. |
8723 | # No need to generate them if there are no CONFIG_HEADERS. | |
8724 | # This happens for instance with `./config.status Makefile'. | |
8725 | if test -n "$CONFIG_HEADERS"; then | |
8726 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8727 | BEGIN { | |
bae7f79e ILT |
8728 | _ACEOF |
8729 | ||
81ecdfbb RW |
8730 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8731 | # here-document in config.status, that substitutes the proper values into | |
8732 | # config.h.in to produce config.h. | |
8733 | ||
8734 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8735 | # handling of long lines. | |
8736 | ac_delim='%!_!# ' | |
8737 | for ac_last_try in false false :; do | |
8738 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8739 | if test -z "$ac_t"; then | |
8740 | break | |
8741 | elif $ac_last_try; then | |
8742 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8743 | else | |
8744 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
bae7f79e | 8745 | fi |
81ecdfbb | 8746 | done |
bae7f79e | 8747 | |
81ecdfbb RW |
8748 | # For the awk script, D is an array of macro values keyed by name, |
8749 | # likewise P contains macro parameters if any. Preserve backslash | |
8750 | # newline sequences. | |
8751 | ||
8752 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8753 | sed -n ' | |
8754 | s/.\{148\}/&'"$ac_delim"'/g | |
8755 | t rset | |
8756 | :rset | |
8757 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8758 | t def | |
8759 | d | |
8760 | :def | |
8761 | s/\\$// | |
8762 | t bsnl | |
8763 | s/["\\]/\\&/g | |
8764 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8765 | D["\1"]=" \3"/p | |
8766 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8767 | d | |
8768 | :bsnl | |
8769 | s/["\\]/\\&/g | |
8770 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8771 | D["\1"]=" \3\\\\\\n"\\/p | |
8772 | t cont | |
8773 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8774 | t cont | |
8775 | d | |
8776 | :cont | |
8777 | n | |
8778 | s/.\{148\}/&'"$ac_delim"'/g | |
8779 | t clear | |
8780 | :clear | |
8781 | s/\\$// | |
8782 | t bsnlc | |
8783 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8784 | d | |
8785 | :bsnlc | |
8786 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8787 | b cont | |
8788 | ' <confdefs.h | sed ' | |
8789 | s/'"$ac_delim"'/"\\\ | |
8790 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8791 | ||
8792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8793 | for (key in D) D_is_set[key] = 1 | |
8794 | FS = "\a" | |
8795 | } | |
8796 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8797 | line = \$ 0 | |
8798 | split(line, arg, " ") | |
8799 | if (arg[1] == "#") { | |
8800 | defundef = arg[2] | |
8801 | mac1 = arg[3] | |
8802 | } else { | |
8803 | defundef = substr(arg[1], 2) | |
8804 | mac1 = arg[2] | |
8805 | } | |
8806 | split(mac1, mac2, "(") #) | |
8807 | macro = mac2[1] | |
8808 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8809 | if (D_is_set[macro]) { | |
8810 | # Preserve the white space surrounding the "#". | |
8811 | print prefix "define", macro P[macro] D[macro] | |
8812 | next | |
8813 | } else { | |
8814 | # Replace #undef with comments. This is necessary, for example, | |
8815 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8816 | # on some systems where configure will not decide to define it. | |
8817 | if (defundef == "undef") { | |
8818 | print "/*", prefix defundef, macro, "*/" | |
8819 | next | |
8820 | } | |
8821 | } | |
8822 | } | |
8823 | { print } | |
8824 | _ACAWK | |
bae7f79e | 8825 | _ACEOF |
81ecdfbb RW |
8826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8827 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8828 | fi # test -n "$CONFIG_HEADERS" | |
8829 | ||
8830 | ||
8831 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8832 | shift | |
8833 | for ac_tag | |
8834 | do | |
8835 | case $ac_tag in | |
8836 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8837 | esac | |
8838 | case $ac_mode$ac_tag in | |
8839 | :[FHL]*:*);; | |
8840 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8841 | :[FH]-) ac_tag=-:-;; | |
8842 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8843 | esac | |
8844 | ac_save_IFS=$IFS | |
8845 | IFS=: | |
8846 | set x $ac_tag | |
8847 | IFS=$ac_save_IFS | |
8848 | shift | |
8849 | ac_file=$1 | |
8850 | shift | |
8851 | ||
8852 | case $ac_mode in | |
8853 | :L) ac_source=$1;; | |
8854 | :[FH]) | |
8855 | ac_file_inputs= | |
8856 | for ac_f | |
8857 | do | |
8858 | case $ac_f in | |
8859 | -) ac_f="$tmp/stdin";; | |
8860 | *) # Look for the file first in the build tree, then in the source tree | |
8861 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8862 | # because $ac_f cannot contain `:'. | |
8863 | test -f "$ac_f" || | |
8864 | case $ac_f in | |
8865 | [\\/$]*) false;; | |
8866 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8867 | esac || | |
8868 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8869 | esac | |
8870 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8871 | as_fn_append ac_file_inputs " '$ac_f'" | |
8872 | done | |
8873 | ||
8874 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8875 | # use $as_me), people would be surprised to read: | |
8876 | # /* config.h. Generated by config.status. */ | |
8877 | configure_input='Generated from '` | |
8878 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8879 | `' by configure.' | |
8880 | if test x"$ac_file" != x-; then | |
8881 | configure_input="$ac_file. $configure_input" | |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8883 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8884 | fi | |
8885 | # Neutralize special characters interpreted by sed in replacement strings. | |
8886 | case $configure_input in #( | |
8887 | *\&* | *\|* | *\\* ) | |
8888 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8889 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8890 | *) ac_sed_conf_input=$configure_input;; | |
8891 | esac | |
8892 | ||
8893 | case $ac_tag in | |
8894 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8895 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8896 | esac | |
8897 | ;; | |
bae7f79e ILT |
8898 | esac |
8899 | ||
81ecdfbb | 8900 | ac_dir=`$as_dirname -- "$ac_file" || |
bae7f79e ILT |
8901 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8902 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8903 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8904 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8905 | $as_echo X"$ac_file" | | |
8906 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8907 | s//\1/ | |
8908 | q | |
8909 | } | |
8910 | /^X\(\/\/\)[^/].*/{ | |
8911 | s//\1/ | |
8912 | q | |
8913 | } | |
8914 | /^X\(\/\/\)$/{ | |
8915 | s//\1/ | |
8916 | q | |
8917 | } | |
8918 | /^X\(\/\).*/{ | |
8919 | s//\1/ | |
8920 | q | |
8921 | } | |
8922 | s/.*/./; q'` | |
8923 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bae7f79e ILT |
8924 | ac_builddir=. |
8925 | ||
81ecdfbb RW |
8926 | case "$ac_dir" in |
8927 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8928 | *) | |
8929 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8930 | # A ".." for each directory in $ac_dir_suffix. | |
8931 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8932 | case $ac_top_builddir_sub in | |
8933 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8934 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8935 | esac ;; | |
8936 | esac | |
8937 | ac_abs_top_builddir=$ac_pwd | |
8938 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8939 | # for backward compatibility: | |
8940 | ac_top_builddir=$ac_top_build_prefix | |
bae7f79e ILT |
8941 | |
8942 | case $srcdir in | |
81ecdfbb | 8943 | .) # We are building in place. |
bae7f79e | 8944 | ac_srcdir=. |
81ecdfbb RW |
8945 | ac_top_srcdir=$ac_top_builddir_sub |
8946 | ac_abs_top_srcdir=$ac_pwd ;; | |
8947 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bae7f79e | 8948 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8949 | ac_top_srcdir=$srcdir |
8950 | ac_abs_top_srcdir=$srcdir ;; | |
8951 | *) # Relative name. | |
8952 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8953 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8954 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bae7f79e | 8955 | esac |
81ecdfbb | 8956 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bae7f79e | 8957 | |
bae7f79e | 8958 | |
81ecdfbb RW |
8959 | case $ac_mode in |
8960 | :F) | |
8961 | # | |
8962 | # CONFIG_FILE | |
8963 | # | |
bae7f79e ILT |
8964 | |
8965 | case $INSTALL in | |
8966 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8967 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bae7f79e | 8968 | esac |
81ecdfbb RW |
8969 | ac_MKDIR_P=$MKDIR_P |
8970 | case $MKDIR_P in | |
8971 | [\\/$]* | ?:[\\/]* ) ;; | |
8972 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8973 | esac | |
8974 | _ACEOF | |
bae7f79e | 8975 | |
81ecdfbb RW |
8976 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8977 | # If the template does not know about datarootdir, expand it. | |
8978 | # FIXME: This hack should be removed a few years after 2.60. | |
8979 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8980 | ac_sed_dataroot=' | |
8981 | /datarootdir/ { | |
8982 | p | |
8983 | q | |
8984 | } | |
8985 | /@datadir@/p | |
8986 | /@docdir@/p | |
8987 | /@infodir@/p | |
8988 | /@localedir@/p | |
8989 | /@mandir@/p' | |
8990 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8991 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8992 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8994 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8995 | _ACEOF | |
8996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8997 | ac_datarootdir_hack=' | |
8998 | s&@datadir@&$datadir&g | |
8999 | s&@docdir@&$docdir&g | |
9000 | s&@infodir@&$infodir&g | |
9001 | s&@localedir@&$localedir&g | |
9002 | s&@mandir@&$mandir&g | |
9003 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9004 | esac | |
bae7f79e | 9005 | _ACEOF |
81ecdfbb RW |
9006 | |
9007 | # Neutralize VPATH when `$srcdir' = `.'. | |
9008 | # Shell code in configure.ac might set extrasub. | |
9009 | # FIXME: do we really want to maintain this feature? | |
9010 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9011 | ac_sed_extra="$ac_vpsub | |
bae7f79e ILT |
9012 | $extrasub |
9013 | _ACEOF | |
81ecdfbb | 9014 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bae7f79e ILT |
9015 | :t |
9016 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
9017 | s|@configure_input@|$ac_sed_conf_input|;t t |
9018 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
9019 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
9020 | s&@srcdir@&$ac_srcdir&;t t | |
9021 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9022 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9023 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9024 | s&@builddir@&$ac_builddir&;t t | |
9025 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9026 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9027 | s&@INSTALL@&$ac_INSTALL&;t t | |
9028 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
9029 | $ac_datarootdir_hack | |
9030 | " | |
9031 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9032 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9033 | ||
9034 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9035 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9036 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9038 | which seems to be undefined. Please make sure it is defined." >&5 | |
9039 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9040 | which seems to be undefined. Please make sure it is defined." >&2;} | |
9041 | ||
9042 | rm -f "$tmp/stdin" | |
bae7f79e | 9043 | case $ac_file in |
81ecdfbb RW |
9044 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9045 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9046 | esac \ | |
9047 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9048 | ;; | |
9049 | :H) | |
9050 | # | |
9051 | # CONFIG_HEADER | |
9052 | # | |
bae7f79e | 9053 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
9054 | { |
9055 | $as_echo "/* $configure_input */" \ | |
9056 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9057 | } >"$tmp/config.h" \ | |
9058 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9059 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
9061 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bae7f79e | 9062 | else |
81ecdfbb RW |
9063 | rm -f "$ac_file" |
9064 | mv "$tmp/config.h" "$ac_file" \ | |
9065 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
bae7f79e ILT |
9066 | fi |
9067 | else | |
81ecdfbb RW |
9068 | $as_echo "/* $configure_input */" \ |
9069 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9070 | || as_fn_error "could not create -" "$LINENO" 5 | |
bae7f79e | 9071 | fi |
81ecdfbb RW |
9072 | # Compute "$ac_file"'s index in $config_headers. |
9073 | _am_arg="$ac_file" | |
bae7f79e ILT |
9074 | _am_stamp_count=1 |
9075 | for _am_header in $config_headers :; do | |
9076 | case $_am_header in | |
81ecdfbb | 9077 | $_am_arg | $_am_arg:* ) |
bae7f79e ILT |
9078 | break ;; |
9079 | * ) | |
9080 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9081 | esac | |
9082 | done | |
81ecdfbb RW |
9083 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9084 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9085 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9086 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9087 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
9088 | $as_echo X"$_am_arg" | | |
9089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9090 | s//\1/ | |
9091 | q | |
9092 | } | |
9093 | /^X\(\/\/\)[^/].*/{ | |
9094 | s//\1/ | |
9095 | q | |
9096 | } | |
9097 | /^X\(\/\/\)$/{ | |
9098 | s//\1/ | |
9099 | q | |
9100 | } | |
9101 | /^X\(\/\).*/{ | |
9102 | s//\1/ | |
9103 | q | |
9104 | } | |
9105 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9106 | ;; | |
bae7f79e | 9107 | |
81ecdfbb RW |
9108 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9109 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9110 | ;; | |
9111 | esac | |
bae7f79e ILT |
9112 | |
9113 | ||
81ecdfbb RW |
9114 | case $ac_file$ac_mode in |
9115 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
9116 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
9117 | # are listed without --file. Let's play safe and only enable the eval | |
9118 | # if we detect the quoting. | |
9119 | case $CONFIG_FILES in | |
9120 | *\'*) eval set x "$CONFIG_FILES" ;; | |
9121 | *) set x $CONFIG_FILES ;; | |
9122 | esac | |
9123 | shift | |
9124 | for mf | |
9125 | do | |
9126 | # Strip MF so we end up with the name of the file. | |
9127 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9128 | # Check whether this is an Automake generated Makefile or not. | |
9129 | # We used to match only the files named `Makefile.in', but | |
9130 | # some people rename them; so instead we look at the file content. | |
9131 | # Grep'ing the first line is not enough: some people post-process | |
9132 | # each Makefile.in and add a new line on top of each file to say so. | |
9133 | # Grep'ing the whole file is not good either: AIX grep has a line | |
9134 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9135 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9136 | dirpart=`$as_dirname -- "$mf" || | |
bae7f79e ILT |
9137 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9138 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9139 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9140 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
9141 | $as_echo X"$mf" | | |
9142 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9143 | s//\1/ | |
9144 | q | |
9145 | } | |
9146 | /^X\(\/\/\)[^/].*/{ | |
9147 | s//\1/ | |
9148 | q | |
9149 | } | |
9150 | /^X\(\/\/\)$/{ | |
9151 | s//\1/ | |
9152 | q | |
9153 | } | |
9154 | /^X\(\/\).*/{ | |
9155 | s//\1/ | |
9156 | q | |
9157 | } | |
9158 | s/.*/./; q'` | |
9159 | else | |
9160 | continue | |
9161 | fi | |
9162 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9163 | # from the Makefile without running `make'. | |
9164 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9165 | test -z "$DEPDIR" && continue | |
9166 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9167 | test -z "am__include" && continue | |
9168 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9169 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9170 | U=`sed -n 's/^U = //p' < "$mf"` | |
9171 | # Find all dependency output files, they are included files with | |
9172 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9173 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9174 | # expansion. | |
9175 | for file in `sed -n " | |
9176 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9177 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9178 | # Make sure the directory exists. | |
9179 | test -f "$dirpart/$file" && continue | |
9180 | fdir=`$as_dirname -- "$file" || | |
bae7f79e ILT |
9181 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9182 | X"$file" : 'X\(//\)[^/]' \| \ | |
9183 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9184 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
9185 | $as_echo X"$file" | | |
9186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9187 | s//\1/ | |
9188 | q | |
9189 | } | |
9190 | /^X\(\/\/\)[^/].*/{ | |
9191 | s//\1/ | |
9192 | q | |
9193 | } | |
9194 | /^X\(\/\/\)$/{ | |
9195 | s//\1/ | |
9196 | q | |
9197 | } | |
9198 | /^X\(\/\).*/{ | |
9199 | s//\1/ | |
9200 | q | |
9201 | } | |
9202 | s/.*/./; q'` | |
9203 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
9204 | # echo "creating $dirpart/$file" | |
9205 | echo '# dummy' > "$dirpart/$file" | |
bae7f79e | 9206 | done |
bae7f79e | 9207 | done |
81ecdfbb | 9208 | } |
bae7f79e | 9209 | ;; |
81ecdfbb | 9210 | "default-1":C) |
bae7f79e ILT |
9211 | for ac_file in $CONFIG_FILES; do |
9212 | # Support "outfile[:infile[:infile...]]" | |
9213 | case "$ac_file" in | |
9214 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9215 | esac | |
9216 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9217 | case "$ac_file" in */Makefile.in) | |
9218 | # Adjust a relative srcdir. | |
9219 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
c7791212 | 9220 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
bae7f79e ILT |
9221 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
9222 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
9223 | # In autoconf-2.50 it is called $srcdir. | |
9224 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
9225 | case "$ac_given_srcdir" in | |
9226 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
9227 | /*) top_srcdir="$ac_given_srcdir" ;; | |
9228 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9229 | esac | |
9230 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
9231 | rm -f "$ac_dir/POTFILES" | |
9232 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
9233 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
9234 | POMAKEFILEDEPS="POTFILES.in" | |
9235 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
9236 | # on $ac_dir but don't depend on user-specified configuration | |
9237 | # parameters. | |
9238 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
9239 | # The LINGUAS file contains the set of available languages. | |
9240 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 9241 | 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 |
9242 | fi |
9243 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
9244 | # Hide the ALL_LINGUAS assigment from automake. | |
9245 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
9246 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
9247 | else | |
37a42ee9 | 9248 | # The set of available languages was given in configure.ac. |
bae7f79e ILT |
9249 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
9250 | fi | |
9251 | case "$ac_given_srcdir" in | |
9252 | .) srcdirpre= ;; | |
9253 | *) srcdirpre='$(srcdir)/' ;; | |
9254 | esac | |
9255 | POFILES= | |
9256 | GMOFILES= | |
9257 | UPDATEPOFILES= | |
9258 | DUMMYPOFILES= | |
9259 | for lang in $ALL_LINGUAS; do | |
9260 | POFILES="$POFILES $srcdirpre$lang.po" | |
9261 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
9262 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
9263 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
9264 | done | |
9265 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
9266 | # environment variable. | |
9267 | INST_LINGUAS= | |
9268 | if test -n "$ALL_LINGUAS"; then | |
9269 | for presentlang in $ALL_LINGUAS; do | |
9270 | useit=no | |
9271 | if test "%UNSET%" != "$LINGUAS"; then | |
9272 | desiredlanguages="$LINGUAS" | |
9273 | else | |
9274 | desiredlanguages="$ALL_LINGUAS" | |
9275 | fi | |
9276 | for desiredlang in $desiredlanguages; do | |
9277 | # Use the presentlang catalog if desiredlang is | |
9278 | # a. equal to presentlang, or | |
9279 | # b. a variant of presentlang (because in this case, | |
9280 | # presentlang can be used as a fallback for messages | |
9281 | # which are not translated in the desiredlang catalog). | |
9282 | case "$desiredlang" in | |
9283 | "$presentlang"*) useit=yes;; | |
9284 | esac | |
9285 | done | |
9286 | if test $useit = yes; then | |
9287 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
9288 | fi | |
9289 | done | |
9290 | fi | |
9291 | CATALOGS= | |
9292 | if test -n "$INST_LINGUAS"; then | |
9293 | for lang in $INST_LINGUAS; do | |
9294 | CATALOGS="$CATALOGS $lang.gmo" | |
9295 | done | |
9296 | fi | |
9297 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9298 | 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" | |
9299 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
9300 | if test -f "$f"; then | |
9301 | case "$f" in | |
9302 | *.orig | *.bak | *~) ;; | |
9303 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
9304 | esac | |
9305 | fi | |
9306 | done | |
9307 | fi | |
9308 | ;; | |
9309 | esac | |
9310 | done ;; | |
81ecdfbb | 9311 | |
bae7f79e | 9312 | esac |
81ecdfbb | 9313 | done # for ac_tag |
bae7f79e | 9314 | |
bae7f79e | 9315 | |
81ecdfbb | 9316 | as_fn_exit 0 |
bae7f79e | 9317 | _ACEOF |
bae7f79e ILT |
9318 | ac_clean_files=$ac_clean_files_save |
9319 | ||
81ecdfbb RW |
9320 | test $ac_write_fail = 0 || |
9321 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9322 | ||
bae7f79e ILT |
9323 | |
9324 | # configure is writing to config.log, and then calls config.status. | |
9325 | # config.status does its own redirection, appending to config.log. | |
9326 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9327 | # by configure, so config.status won't be able to write to it; its | |
9328 | # output is simply discarded. So we exec the FD to /dev/null, | |
9329 | # effectively closing config.log, so it can be properly (re)opened and | |
9330 | # appended to by config.status. When coming back to configure, we | |
9331 | # need to make the FD available again. | |
9332 | if test "$no_create" != yes; then | |
9333 | ac_cs_success=: | |
9334 | ac_config_status_args= | |
9335 | test "$silent" = yes && | |
9336 | ac_config_status_args="$ac_config_status_args --quiet" | |
9337 | exec 5>/dev/null | |
9338 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9339 | exec 5>>config.log | |
9340 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9341 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
9342 | $ac_cs_success || as_fn_exit $? |
9343 | fi | |
9344 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9346 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bae7f79e ILT |
9347 | fi |
9348 |