Commit | Line | Data |
---|---|---|
d6e9fb05 | 1 | #! /bin/sh |
d6e9fb05 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
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. | |
d6e9fb05 JK |
8 | # |
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 | ## -------------------- ## | |
bec39cab | 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 : | |
bec39cab AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
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 | |
bec39cab | 31 | fi |
bec39cab | 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' | |
bec39cab | 50 | else |
81ecdfbb RW |
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 | } | |
bec39cab AC |
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 | |
bec39cab AC |
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 | |
bec39cab | 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." | |
bec39cab | 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." | |
bec39cab | 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 | |
263 | ||
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 | |
bec39cab | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
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 |
bec39cab AC |
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 | |
bec39cab | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
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'` | |
bec39cab | 410 | |
dae5f5cf DJ |
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 | |
b80864fb | 417 | |
bec39cab | 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 | | |
bec39cab | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bec39cab | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bec39cab | 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; } | |
bec39cab AC |
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" | |
bec39cab AC |
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';; | |
bec39cab AC |
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 | |
bec39cab | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 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' | |
dae5f5cf | 483 | fi |
bec39cab AC |
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 | |
bec39cab AC |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
d6e9fb05 | 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 | |
bec39cab AC |
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 |
bec39cab AC |
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 | ||
bec39cab AC |
534 | # |
535 | # Initializations. | |
536 | # | |
d6e9fb05 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
bec39cab | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bec39cab AC |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
dae5f5cf | 545 | |
bec39cab AC |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
bec39cab AC |
553 | |
554 | ac_unique_file="server.c" | |
555 | # Factoring default headers for most tests. | |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
bec39cab AC |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
bec39cab AC |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
bec39cab AC |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
bec39cab AC |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bec39cab AC |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
bec39cab AC |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
bec39cab | 582 | # include <inttypes.h> |
bec39cab | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
bec39cab AC |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
c971b7fa | 591 | ac_subst_vars='LTLIBOBJS |
698b3e08 | 592 | LIBOBJS |
c9a1864a | 593 | GNULIB_STDINT_H |
fa593d66 PA |
594 | extra_libraries |
595 | IPA_DEPFILES | |
81ecdfbb RW |
596 | srv_xmlfiles |
597 | srv_xmlbuiltin | |
81ecdfbb RW |
598 | GDBSERVER_LIBS |
599 | GDBSERVER_DEPFILES | |
600 | RDYNAMIC | |
601 | REPORT_BUGS_TEXI | |
602 | REPORT_BUGS_TO | |
603 | PKGVERSION | |
d4596a3d PA |
604 | WERROR_CFLAGS |
605 | WARN_CFLAGS | |
0fb4aa4b PA |
606 | ustinc |
607 | ustlibs | |
9c232dda | 608 | ALLOCA |
61c125b9 TT |
609 | SET_MAKE |
610 | GMAKE_FALSE | |
611 | GMAKE_TRUE | |
c9a1864a | 612 | MAKE |
61c125b9 TT |
613 | CCDEPMODE |
614 | DEPDIR | |
615 | am__leading_dot | |
bd885420 YQ |
616 | host_noncanonical |
617 | target_noncanonical | |
a994041d | 618 | COMPILER_CFLAGS |
3bc3d82a | 619 | COMPILER |
c971b7fa | 620 | RANLIB |
e1d2394b | 621 | AR |
81ecdfbb RW |
622 | INSTALL_DATA |
623 | INSTALL_SCRIPT | |
624 | INSTALL_PROGRAM | |
625 | target_os | |
626 | target_vendor | |
627 | target_cpu | |
628 | target | |
629 | host_os | |
630 | host_vendor | |
631 | host_cpu | |
632 | host | |
633 | build_os | |
634 | build_vendor | |
635 | build_cpu | |
636 | build | |
770d76d7 PA |
637 | EGREP |
638 | GREP | |
639 | CPP | |
3bc3d82a PA |
640 | ac_ct_CXX |
641 | CXXFLAGS | |
642 | CXX | |
81ecdfbb RW |
643 | OBJEXT |
644 | EXEEXT | |
645 | ac_ct_CC | |
646 | CPPFLAGS | |
647 | LDFLAGS | |
648 | CFLAGS | |
649 | CC | |
c9a1864a YQ |
650 | MAINT |
651 | MAINTAINER_MODE_FALSE | |
652 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
653 | target_alias |
654 | host_alias | |
655 | build_alias | |
656 | LIBS | |
657 | ECHO_T | |
658 | ECHO_N | |
659 | ECHO_C | |
660 | DEFS | |
661 | mandir | |
662 | localedir | |
663 | libdir | |
664 | psdir | |
665 | pdfdir | |
666 | dvidir | |
667 | htmldir | |
668 | infodir | |
669 | docdir | |
670 | oldincludedir | |
671 | includedir | |
672 | localstatedir | |
673 | sharedstatedir | |
674 | sysconfdir | |
675 | datadir | |
676 | datarootdir | |
677 | libexecdir | |
678 | sbindir | |
679 | bindir | |
680 | program_transform_name | |
681 | prefix | |
682 | exec_prefix | |
683 | PACKAGE_URL | |
684 | PACKAGE_BUGREPORT | |
685 | PACKAGE_STRING | |
686 | PACKAGE_VERSION | |
687 | PACKAGE_TARNAME | |
688 | PACKAGE_NAME | |
689 | PATH_SEPARATOR | |
690 | SHELL' | |
bec39cab | 691 | ac_subst_files='' |
81ecdfbb RW |
692 | ac_user_opts=' |
693 | enable_option_checking | |
c9a1864a | 694 | enable_maintainer_mode |
589bc927 | 695 | enable_largefile |
3bc3d82a | 696 | enable_build_with_cxx |
17ef446e | 697 | enable_libmcheck |
0fb4aa4b PA |
698 | with_ust |
699 | with_ust_include | |
700 | with_ust_lib | |
d4596a3d | 701 | enable_werror |
8f13a3ce MF |
702 | enable_build_warnings |
703 | enable_gdb_build_warnings | |
81ecdfbb RW |
704 | with_pkgversion |
705 | with_bugurl | |
96f15937 | 706 | with_libthread_db |
c2a66c29 | 707 | enable_inprocess_agent |
81ecdfbb RW |
708 | ' |
709 | ac_precious_vars='build_alias | |
710 | host_alias | |
711 | target_alias | |
712 | CC | |
713 | CFLAGS | |
714 | LDFLAGS | |
715 | LIBS | |
716 | CPPFLAGS | |
3bc3d82a PA |
717 | CXX |
718 | CXXFLAGS | |
719 | CCC | |
81ecdfbb RW |
720 | CPP' |
721 | ||
d6e9fb05 JK |
722 | |
723 | # Initialize some variables set by options. | |
bec39cab AC |
724 | ac_init_help= |
725 | ac_init_version=false | |
81ecdfbb RW |
726 | ac_unrecognized_opts= |
727 | ac_unrecognized_sep= | |
d6e9fb05 JK |
728 | # The variables have the same names as the options, with |
729 | # dashes changed to underlines. | |
bec39cab | 730 | cache_file=/dev/null |
d6e9fb05 | 731 | exec_prefix=NONE |
d6e9fb05 | 732 | no_create= |
d6e9fb05 JK |
733 | no_recursion= |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
d6e9fb05 JK |
741 | verbose= |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
bec39cab AC |
744 | |
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 750 | # (The list follows the same order as the GNU Coding Standards.) |
d6e9fb05 JK |
751 | bindir='${exec_prefix}/bin' |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
754 | datarootdir='${prefix}/share' |
755 | datadir='${datarootdir}' | |
d6e9fb05 JK |
756 | sysconfdir='${prefix}/etc' |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
d6e9fb05 JK |
759 | includedir='${prefix}/include' |
760 | oldincludedir='/usr/include' | |
81ecdfbb RW |
761 | docdir='${datarootdir}/doc/${PACKAGE}' |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
d6e9fb05 | 770 | |
d6e9fb05 | 771 | ac_prev= |
81ecdfbb | 772 | ac_dashdash= |
d6e9fb05 JK |
773 | for ac_option |
774 | do | |
d6e9fb05 JK |
775 | # If the previous option needs an argument, assign it. |
776 | if test -n "$ac_prev"; then | |
81ecdfbb | 777 | eval $ac_prev=\$ac_option |
d6e9fb05 JK |
778 | ac_prev= |
779 | continue | |
780 | fi | |
781 | ||
81ecdfbb RW |
782 | case $ac_option in |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
d6e9fb05 JK |
786 | |
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
81ecdfbb RW |
789 | case $ac_dashdash$ac_option in |
790 | --) | |
791 | ac_dashdash=yes ;; | |
d6e9fb05 JK |
792 | |
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 796 | bindir=$ac_optarg ;; |
d6e9fb05 JK |
797 | |
798 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 799 | ac_prev=build_alias ;; |
d6e9fb05 | 800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 801 | build_alias=$ac_optarg ;; |
d6e9fb05 JK |
802 | |
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
808 | cache_file=$ac_optarg ;; |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
d6e9fb05 | 812 | |
81ecdfbb | 813 | -datadir | --datadir | --datadi | --datad) |
d6e9fb05 | 814 | ac_prev=datadir ;; |
81ecdfbb | 815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bec39cab | 816 | datadir=$ac_optarg ;; |
d6e9fb05 | 817 | |
81ecdfbb RW |
818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
d6e9fb05 | 825 | -disable-* | --disable-*) |
81ecdfbb | 826 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d6e9fb05 | 827 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
828 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
829 | as_fn_error "invalid feature name: $ac_useropt" | |
830 | ac_useropt_orig=$ac_useropt | |
831 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
832 | case $ac_user_opts in | |
833 | *" | |
834 | "enable_$ac_useropt" | |
835 | "*) ;; | |
836 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
837 | ac_unrecognized_sep=', ';; | |
838 | esac | |
839 | eval enable_$ac_useropt=no ;; | |
840 | ||
841 | -docdir | --docdir | --docdi | --doc | --do) | |
842 | ac_prev=docdir ;; | |
843 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
844 | docdir=$ac_optarg ;; | |
845 | ||
846 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
847 | ac_prev=dvidir ;; | |
848 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
849 | dvidir=$ac_optarg ;; | |
d6e9fb05 JK |
850 | |
851 | -enable-* | --enable-*) | |
81ecdfbb | 852 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d6e9fb05 | 853 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
854 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
855 | as_fn_error "invalid feature name: $ac_useropt" | |
856 | ac_useropt_orig=$ac_useropt | |
857 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
858 | case $ac_user_opts in | |
859 | *" | |
860 | "enable_$ac_useropt" | |
861 | "*) ;; | |
862 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
863 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 864 | esac |
81ecdfbb | 865 | eval enable_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
866 | |
867 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
868 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
869 | | --exec | --exe | --ex) | |
870 | ac_prev=exec_prefix ;; | |
871 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
872 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
873 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 874 | exec_prefix=$ac_optarg ;; |
d6e9fb05 JK |
875 | |
876 | -gas | --gas | --ga | --g) | |
877 | # Obsolete; use --with-gas. | |
878 | with_gas=yes ;; | |
879 | ||
bec39cab AC |
880 | -help | --help | --hel | --he | -h) |
881 | ac_init_help=long ;; | |
882 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
883 | ac_init_help=recursive ;; | |
884 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
885 | ac_init_help=short ;; | |
d6e9fb05 JK |
886 | |
887 | -host | --host | --hos | --ho) | |
bec39cab | 888 | ac_prev=host_alias ;; |
d6e9fb05 | 889 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 890 | host_alias=$ac_optarg ;; |
d6e9fb05 | 891 | |
81ecdfbb RW |
892 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
893 | ac_prev=htmldir ;; | |
894 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
895 | | --ht=*) | |
896 | htmldir=$ac_optarg ;; | |
897 | ||
d6e9fb05 JK |
898 | -includedir | --includedir | --includedi | --included | --include \ |
899 | | --includ | --inclu | --incl | --inc) | |
900 | ac_prev=includedir ;; | |
901 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
902 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 903 | includedir=$ac_optarg ;; |
d6e9fb05 JK |
904 | |
905 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
906 | ac_prev=infodir ;; | |
907 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 908 | infodir=$ac_optarg ;; |
d6e9fb05 JK |
909 | |
910 | -libdir | --libdir | --libdi | --libd) | |
911 | ac_prev=libdir ;; | |
912 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 913 | libdir=$ac_optarg ;; |
d6e9fb05 JK |
914 | |
915 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
916 | | --libexe | --libex | --libe) | |
917 | ac_prev=libexecdir ;; | |
918 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
919 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 920 | libexecdir=$ac_optarg ;; |
d6e9fb05 | 921 | |
81ecdfbb RW |
922 | -localedir | --localedir | --localedi | --localed | --locale) |
923 | ac_prev=localedir ;; | |
924 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
925 | localedir=$ac_optarg ;; | |
926 | ||
d6e9fb05 | 927 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 928 | | --localstate | --localstat | --localsta | --localst | --locals) |
d6e9fb05 JK |
929 | ac_prev=localstatedir ;; |
930 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 931 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bec39cab | 932 | localstatedir=$ac_optarg ;; |
d6e9fb05 JK |
933 | |
934 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
935 | ac_prev=mandir ;; | |
936 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 937 | mandir=$ac_optarg ;; |
d6e9fb05 JK |
938 | |
939 | -nfp | --nfp | --nf) | |
940 | # Obsolete; use --without-fp. | |
941 | with_fp=no ;; | |
942 | ||
943 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 944 | | --no-cr | --no-c | -n) |
d6e9fb05 JK |
945 | no_create=yes ;; |
946 | ||
947 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
948 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
949 | no_recursion=yes ;; | |
950 | ||
951 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
952 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
953 | | --oldin | --oldi | --old | --ol | --o) | |
954 | ac_prev=oldincludedir ;; | |
955 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
956 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
957 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 958 | oldincludedir=$ac_optarg ;; |
d6e9fb05 JK |
959 | |
960 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
961 | ac_prev=prefix ;; | |
962 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 963 | prefix=$ac_optarg ;; |
d6e9fb05 JK |
964 | |
965 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
966 | | --program-pre | --program-pr | --program-p) | |
967 | ac_prev=program_prefix ;; | |
968 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
969 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 970 | program_prefix=$ac_optarg ;; |
d6e9fb05 JK |
971 | |
972 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
973 | | --program-suf | --program-su | --program-s) | |
974 | ac_prev=program_suffix ;; | |
975 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
976 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 977 | program_suffix=$ac_optarg ;; |
d6e9fb05 JK |
978 | |
979 | -program-transform-name | --program-transform-name \ | |
980 | | --program-transform-nam | --program-transform-na \ | |
981 | | --program-transform-n | --program-transform- \ | |
982 | | --program-transform | --program-transfor \ | |
983 | | --program-transfo | --program-transf \ | |
984 | | --program-trans | --program-tran \ | |
985 | | --progr-tra | --program-tr | --program-t) | |
986 | ac_prev=program_transform_name ;; | |
987 | -program-transform-name=* | --program-transform-name=* \ | |
988 | | --program-transform-nam=* | --program-transform-na=* \ | |
989 | | --program-transform-n=* | --program-transform-=* \ | |
990 | | --program-transform=* | --program-transfor=* \ | |
991 | | --program-transfo=* | --program-transf=* \ | |
992 | | --program-trans=* | --program-tran=* \ | |
993 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 994 | program_transform_name=$ac_optarg ;; |
d6e9fb05 | 995 | |
81ecdfbb RW |
996 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
997 | ac_prev=pdfdir ;; | |
998 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
999 | pdfdir=$ac_optarg ;; | |
1000 | ||
1001 | -psdir | --psdir | --psdi | --psd | --ps) | |
1002 | ac_prev=psdir ;; | |
1003 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1004 | psdir=$ac_optarg ;; | |
1005 | ||
d6e9fb05 JK |
1006 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1007 | | -silent | --silent | --silen | --sile | --sil) | |
1008 | silent=yes ;; | |
1009 | ||
1010 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1011 | ac_prev=sbindir ;; | |
1012 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1013 | | --sbi=* | --sb=*) | |
bec39cab | 1014 | sbindir=$ac_optarg ;; |
d6e9fb05 JK |
1015 | |
1016 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1017 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1018 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1019 | | --sha | --sh) | |
1020 | ac_prev=sharedstatedir ;; | |
1021 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1022 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1023 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1024 | | --sha=* | --sh=*) | |
bec39cab | 1025 | sharedstatedir=$ac_optarg ;; |
d6e9fb05 JK |
1026 | |
1027 | -site | --site | --sit) | |
1028 | ac_prev=site ;; | |
1029 | -site=* | --site=* | --sit=*) | |
bec39cab | 1030 | site=$ac_optarg ;; |
434c4c77 | 1031 | |
d6e9fb05 JK |
1032 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1033 | ac_prev=srcdir ;; | |
1034 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 1035 | srcdir=$ac_optarg ;; |
d6e9fb05 JK |
1036 | |
1037 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1038 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1039 | ac_prev=sysconfdir ;; | |
1040 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1041 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 1042 | sysconfdir=$ac_optarg ;; |
d6e9fb05 JK |
1043 | |
1044 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 1045 | ac_prev=target_alias ;; |
d6e9fb05 | 1046 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 1047 | target_alias=$ac_optarg ;; |
d6e9fb05 JK |
1048 | |
1049 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1050 | verbose=yes ;; | |
1051 | ||
bec39cab AC |
1052 | -version | --version | --versio | --versi | --vers | -V) |
1053 | ac_init_version=: ;; | |
d6e9fb05 JK |
1054 | |
1055 | -with-* | --with-*) | |
81ecdfbb | 1056 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d6e9fb05 | 1057 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1058 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1059 | as_fn_error "invalid package name: $ac_useropt" | |
1060 | ac_useropt_orig=$ac_useropt | |
1061 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1062 | case $ac_user_opts in | |
1063 | *" | |
1064 | "with_$ac_useropt" | |
1065 | "*) ;; | |
1066 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1067 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 1068 | esac |
81ecdfbb | 1069 | eval with_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
1070 | |
1071 | -without-* | --without-*) | |
81ecdfbb | 1072 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d6e9fb05 | 1073 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1074 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1075 | as_fn_error "invalid package name: $ac_useropt" | |
1076 | ac_useropt_orig=$ac_useropt | |
1077 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1078 | case $ac_user_opts in | |
1079 | *" | |
1080 | "with_$ac_useropt" | |
1081 | "*) ;; | |
1082 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1083 | ac_unrecognized_sep=', ';; | |
1084 | esac | |
1085 | eval with_$ac_useropt=no ;; | |
d6e9fb05 JK |
1086 | |
1087 | --x) | |
1088 | # Obsolete; use --with-x. | |
1089 | with_x=yes ;; | |
1090 | ||
1091 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1092 | | --x-incl | --x-inc | --x-in | --x-i) | |
1093 | ac_prev=x_includes ;; | |
1094 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1095 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 1096 | x_includes=$ac_optarg ;; |
d6e9fb05 JK |
1097 | |
1098 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1099 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1100 | ac_prev=x_libraries ;; | |
1101 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1102 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 1103 | x_libraries=$ac_optarg ;; |
d6e9fb05 | 1104 | |
81ecdfbb RW |
1105 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1106 | Try \`$0 --help' for more information." | |
d6e9fb05 JK |
1107 | ;; |
1108 | ||
bec39cab AC |
1109 | *=*) |
1110 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1111 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1112 | case $ac_envvar in #( |
1113 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1114 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1115 | esac | |
1116 | eval $ac_envvar=\$ac_optarg | |
bec39cab AC |
1117 | export $ac_envvar ;; |
1118 | ||
d6e9fb05 | 1119 | *) |
bec39cab | 1120 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1121 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bec39cab | 1122 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1123 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bec39cab | 1124 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
d6e9fb05 JK |
1125 | ;; |
1126 | ||
1127 | esac | |
1128 | done | |
1129 | ||
1130 | if test -n "$ac_prev"; then | |
bec39cab | 1131 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1132 | as_fn_error "missing argument to $ac_option" |
d6e9fb05 | 1133 | fi |
d6e9fb05 | 1134 | |
81ecdfbb RW |
1135 | if test -n "$ac_unrecognized_opts"; then |
1136 | case $enable_option_checking in | |
1137 | no) ;; | |
1138 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1139 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
dae5f5cf | 1140 | esac |
81ecdfbb | 1141 | fi |
dae5f5cf | 1142 | |
81ecdfbb RW |
1143 | # Check all directory arguments for consistency. |
1144 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1145 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1146 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1147 | libdir localedir mandir | |
dae5f5cf | 1148 | do |
81ecdfbb RW |
1149 | eval ac_val=\$$ac_var |
1150 | # Remove trailing slashes. | |
1151 | case $ac_val in | |
1152 | */ ) | |
1153 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1154 | eval $ac_var=\$ac_val;; | |
1155 | esac | |
1156 | # Be sure to have absolute directory names. | |
dae5f5cf | 1157 | case $ac_val in |
81ecdfbb RW |
1158 | [\\/$]* | ?:[\\/]* ) continue;; |
1159 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d6e9fb05 | 1160 | esac |
81ecdfbb | 1161 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
d6e9fb05 JK |
1162 | done |
1163 | ||
bec39cab AC |
1164 | # There might be people who depend on the old broken behavior: `$host' |
1165 | # used to hold the argument of --host etc. | |
1166 | # FIXME: To remove some day. | |
1167 | build=$build_alias | |
1168 | host=$host_alias | |
1169 | target=$target_alias | |
1170 | ||
1171 | # FIXME: To remove some day. | |
1172 | if test "x$host_alias" != x; then | |
1173 | if test "x$build_alias" = x; then | |
1174 | cross_compiling=maybe | |
81ecdfbb | 1175 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bec39cab AC |
1176 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1177 | elif test "x$build_alias" != "x$host_alias"; then | |
1178 | cross_compiling=yes | |
1179 | fi | |
1180 | fi | |
d6e9fb05 | 1181 | |
bec39cab AC |
1182 | ac_tool_prefix= |
1183 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1184 | ||
1185 | test "$silent" = yes && exec 6>/dev/null | |
d6e9fb05 | 1186 | |
d6e9fb05 | 1187 | |
81ecdfbb RW |
1188 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1189 | ac_ls_di=`ls -di .` && | |
1190 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1191 | as_fn_error "working directory cannot be determined" | |
1192 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1193 | as_fn_error "pwd does not report name of working directory" | |
1194 | ||
1195 | ||
d6e9fb05 JK |
1196 | # Find the source files, if location was not specified. |
1197 | if test -z "$srcdir"; then | |
1198 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1199 | # Try the directory containing this script, then the parent directory. |
1200 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1201 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1202 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1203 | X"$as_myself" : 'X\(//\)$' \| \ | |
1204 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1205 | $as_echo X"$as_myself" | | |
1206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1207 | s//\1/ | |
1208 | q | |
1209 | } | |
1210 | /^X\(\/\/\)[^/].*/{ | |
1211 | s//\1/ | |
1212 | q | |
1213 | } | |
1214 | /^X\(\/\/\)$/{ | |
1215 | s//\1/ | |
1216 | q | |
1217 | } | |
1218 | /^X\(\/\).*/{ | |
1219 | s//\1/ | |
1220 | q | |
1221 | } | |
1222 | s/.*/./; q'` | |
d6e9fb05 | 1223 | srcdir=$ac_confdir |
81ecdfbb | 1224 | if test ! -r "$srcdir/$ac_unique_file"; then |
d6e9fb05 JK |
1225 | srcdir=.. |
1226 | fi | |
1227 | else | |
1228 | ac_srcdir_defaulted=no | |
1229 | fi | |
81ecdfbb RW |
1230 | if test ! -r "$srcdir/$ac_unique_file"; then |
1231 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1232 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1233 | fi | |
1234 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1235 | ac_abs_confdir=`( | |
1236 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1237 | pwd)` | |
1238 | # When building in place, set srcdir=. | |
1239 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1240 | srcdir=. | |
1241 | fi | |
1242 | # Remove unnecessary trailing slashes from srcdir. | |
1243 | # Double slashes in file names in object file debugging info | |
1244 | # mess up M-x gdb in Emacs. | |
1245 | case $srcdir in | |
1246 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1247 | esac | |
1248 | for ac_var in $ac_precious_vars; do | |
1249 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1250 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1251 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1252 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1253 | done | |
d6e9fb05 | 1254 | |
bec39cab AC |
1255 | # |
1256 | # Report the --help message. | |
1257 | # | |
1258 | if test "$ac_init_help" = "long"; then | |
1259 | # Omit some internal or obsolete options to make the list less imposing. | |
1260 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1261 | cat <<_ACEOF | |
1262 | \`configure' configures this package to adapt to many kinds of systems. | |
1263 | ||
1264 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1265 | ||
1266 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1267 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1268 | ||
1269 | Defaults for the options are specified in brackets. | |
1270 | ||
1271 | Configuration: | |
1272 | -h, --help display this help and exit | |
1273 | --help=short display options specific to this package | |
1274 | --help=recursive display the short help of all the included packages | |
1275 | -V, --version display version information and exit | |
1276 | -q, --quiet, --silent do not print \`checking...' messages | |
1277 | --cache-file=FILE cache test results in FILE [disabled] | |
1278 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1279 | -n, --no-create do not create output files | |
1280 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1281 | ||
bec39cab AC |
1282 | Installation directories: |
1283 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1284 | [$ac_default_prefix] |
bec39cab | 1285 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1286 | [PREFIX] |
bec39cab AC |
1287 | |
1288 | By default, \`make install' will install all the files in | |
1289 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1290 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1291 | for instance \`--prefix=\$HOME'. | |
1292 | ||
1293 | For better control, use the options below. | |
1294 | ||
1295 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1296 | --bindir=DIR user executables [EPREFIX/bin] |
1297 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1298 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1299 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1300 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1301 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1302 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1303 | --includedir=DIR C header files [PREFIX/include] | |
1304 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1305 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1306 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1307 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1308 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1309 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1310 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1311 | --htmldir=DIR html documentation [DOCDIR] | |
1312 | --dvidir=DIR dvi documentation [DOCDIR] | |
1313 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1314 | --psdir=DIR ps documentation [DOCDIR] | |
bec39cab AC |
1315 | _ACEOF |
1316 | ||
1317 | cat <<\_ACEOF | |
1318 | ||
dcdb98d2 DJ |
1319 | Program names: |
1320 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1321 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1322 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1323 | ||
bec39cab AC |
1324 | System types: |
1325 | --build=BUILD configure for building on BUILD [guessed] | |
1326 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1327 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1328 | _ACEOF | |
1329 | fi | |
1330 | ||
1331 | if test -n "$ac_init_help"; then | |
1332 | ||
1333 | cat <<\_ACEOF | |
1334 | ||
d4596a3d PA |
1335 | Optional Features: |
1336 | --disable-option-checking ignore unrecognized --enable/--with options | |
1337 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1338 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c9a1864a YQ |
1339 | --enable-maintainer-mode enable make rules and dependencies not useful |
1340 | (and sometimes confusing) to the casual installer | |
589bc927 | 1341 | --disable-largefile omit support for large files |
3bc3d82a | 1342 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
17ef446e | 1343 | --enable-libmcheck Try linking with -lmcheck if available |
d4596a3d | 1344 | --enable-werror treat compile warnings as errors |
8f13a3ce MF |
1345 | --enable-build-warnings enable build-time compiler warnings if gcc is used |
1346 | --enable-gdb-build-warnings | |
1347 | enable GDB specific build-time compiler warnings if | |
1348 | gcc is used | |
c2a66c29 NS |
1349 | --enable-inprocess-agent |
1350 | inprocess agent | |
d4596a3d | 1351 | |
c16158bc JM |
1352 | Optional Packages: |
1353 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1354 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
0fb4aa4b PA |
1355 | --with-ust=PATH Specify prefix directory for the installed UST package |
1356 | Equivalent to --with-ust-include=PATH/include | |
1357 | plus --with-ust-lib=PATH/lib | |
1358 | --with-ust-include=PATH Specify directory for installed UST include files | |
1359 | --with-ust-lib=PATH Specify the directory for the installed UST library | |
c16158bc JM |
1360 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
1361 | --with-bugurl=URL Direct users to URL to report a bug | |
96f15937 PP |
1362 | --with-libthread-db=PATH |
1363 | use given libthread_db directly | |
c16158bc | 1364 | |
bec39cab AC |
1365 | Some influential environment variables: |
1366 | CC C compiler command | |
1367 | CFLAGS C compiler flags | |
1368 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1369 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1370 | LIBS libraries to pass to the linker, e.g. -l<library> |
1371 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1372 | you have headers in a nonstandard directory <include dir> | |
3bc3d82a PA |
1373 | CXX C++ compiler command |
1374 | CXXFLAGS C++ compiler flags | |
bec39cab AC |
1375 | CPP C preprocessor |
1376 | ||
1377 | Use these variables to override the choices made by `configure' or to help | |
1378 | it to find libraries and programs with nonstandard names/locations. | |
1379 | ||
81ecdfbb | 1380 | Report bugs to the package provider. |
bec39cab | 1381 | _ACEOF |
81ecdfbb | 1382 | ac_status=$? |
bec39cab AC |
1383 | fi |
1384 | ||
1385 | if test "$ac_init_help" = "recursive"; then | |
1386 | # If there are subdirs, report their specific --help. | |
bec39cab | 1387 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1388 | test -d "$ac_dir" || |
1389 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1390 | continue | |
bec39cab AC |
1391 | ac_builddir=. |
1392 | ||
81ecdfbb RW |
1393 | case "$ac_dir" in |
1394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1395 | *) | |
1396 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1397 | # A ".." for each directory in $ac_dir_suffix. | |
1398 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1399 | case $ac_top_builddir_sub in | |
1400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1402 | esac ;; | |
1403 | esac | |
1404 | ac_abs_top_builddir=$ac_pwd | |
1405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1406 | # for backward compatibility: | |
1407 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
1408 | |
1409 | case $srcdir in | |
81ecdfbb | 1410 | .) # We are building in place. |
bec39cab | 1411 | ac_srcdir=. |
81ecdfbb RW |
1412 | ac_top_srcdir=$ac_top_builddir_sub |
1413 | ac_abs_top_srcdir=$ac_pwd ;; | |
1414 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 1415 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1416 | ac_top_srcdir=$srcdir |
1417 | ac_abs_top_srcdir=$srcdir ;; | |
1418 | *) # Relative name. | |
1419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1420 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dae5f5cf | 1422 | esac |
81ecdfbb RW |
1423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1424 | ||
1425 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1426 | # Check for guested configure. | |
1427 | if test -f "$ac_srcdir/configure.gnu"; then | |
1428 | echo && | |
1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1430 | elif test -f "$ac_srcdir/configure"; then | |
1431 | echo && | |
1432 | $SHELL "$ac_srcdir/configure" --help=recursive | |
434c4c77 | 1433 | else |
81ecdfbb RW |
1434 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1435 | fi || ac_status=$? | |
1436 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bec39cab AC |
1437 | done |
1438 | fi | |
1439 | ||
81ecdfbb | 1440 | test -n "$ac_init_help" && exit $ac_status |
bec39cab AC |
1441 | if $ac_init_version; then |
1442 | cat <<\_ACEOF | |
81ecdfbb RW |
1443 | configure |
1444 | generated by GNU Autoconf 2.64 | |
bec39cab | 1445 | |
81ecdfbb | 1446 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
1447 | This configure script is free software; the Free Software Foundation |
1448 | gives unlimited permission to copy, distribute and modify it. | |
1449 | _ACEOF | |
81ecdfbb | 1450 | exit |
bec39cab | 1451 | fi |
bec39cab | 1452 | |
81ecdfbb RW |
1453 | ## ------------------------ ## |
1454 | ## Autoconf initialization. ## | |
1455 | ## ------------------------ ## | |
bec39cab | 1456 | |
81ecdfbb RW |
1457 | # ac_fn_c_try_compile LINENO |
1458 | # -------------------------- | |
1459 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1460 | ac_fn_c_try_compile () | |
bec39cab | 1461 | { |
81ecdfbb RW |
1462 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1463 | rm -f conftest.$ac_objext | |
1464 | if { { ac_try="$ac_compile" | |
1465 | case "(($ac_try" in | |
1466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1467 | *) ac_try_echo=$ac_try;; | |
1468 | esac | |
1469 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1470 | $as_echo "$ac_try_echo"; } >&5 | |
1471 | (eval "$ac_compile") 2>conftest.err | |
1472 | ac_status=$? | |
1473 | if test -s conftest.err; then | |
1474 | grep -v '^ *+' conftest.err >conftest.er1 | |
1475 | cat conftest.er1 >&5 | |
1476 | mv -f conftest.er1 conftest.err | |
1477 | fi | |
1478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1479 | test $ac_status = 0; } && { | |
1480 | test -z "$ac_c_werror_flag" || | |
1481 | test ! -s conftest.err | |
1482 | } && test -s conftest.$ac_objext; then : | |
1483 | ac_retval=0 | |
1484 | else | |
1485 | $as_echo "$as_me: failed program was:" >&5 | |
1486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1487 | |
81ecdfbb RW |
1488 | ac_retval=1 |
1489 | fi | |
1490 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1491 | return $ac_retval | |
bec39cab | 1492 | |
81ecdfbb | 1493 | } # ac_fn_c_try_compile |
bec39cab | 1494 | |
3bc3d82a PA |
1495 | # ac_fn_cxx_try_compile LINENO |
1496 | # ---------------------------- | |
1497 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1498 | ac_fn_cxx_try_compile () | |
1499 | { | |
1500 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1501 | rm -f conftest.$ac_objext | |
1502 | if { { ac_try="$ac_compile" | |
1503 | case "(($ac_try" in | |
1504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1505 | *) ac_try_echo=$ac_try;; | |
1506 | esac | |
1507 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1508 | $as_echo "$ac_try_echo"; } >&5 | |
1509 | (eval "$ac_compile") 2>conftest.err | |
1510 | ac_status=$? | |
1511 | if test -s conftest.err; then | |
1512 | grep -v '^ *+' conftest.err >conftest.er1 | |
1513 | cat conftest.er1 >&5 | |
1514 | mv -f conftest.er1 conftest.err | |
1515 | fi | |
1516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1517 | test $ac_status = 0; } && { | |
1518 | test -z "$ac_cxx_werror_flag" || | |
1519 | test ! -s conftest.err | |
1520 | } && test -s conftest.$ac_objext; then : | |
1521 | ac_retval=0 | |
1522 | else | |
1523 | $as_echo "$as_me: failed program was:" >&5 | |
1524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1525 | ||
1526 | ac_retval=1 | |
1527 | fi | |
1528 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1529 | return $ac_retval | |
1530 | ||
1531 | } # ac_fn_cxx_try_compile | |
1532 | ||
81ecdfbb RW |
1533 | # ac_fn_c_try_cpp LINENO |
1534 | # ---------------------- | |
1535 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1536 | ac_fn_c_try_cpp () | |
1537 | { | |
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1539 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1540 | case "(($ac_try" in | |
1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1542 | *) ac_try_echo=$ac_try;; | |
1543 | esac | |
1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1545 | $as_echo "$ac_try_echo"; } >&5 | |
1546 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1547 | ac_status=$? | |
1548 | if test -s conftest.err; then | |
1549 | grep -v '^ *+' conftest.err >conftest.er1 | |
1550 | cat conftest.er1 >&5 | |
1551 | mv -f conftest.er1 conftest.err | |
1552 | fi | |
1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1554 | test $ac_status = 0; } >/dev/null && { | |
1555 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1556 | test ! -s conftest.err | |
1557 | }; then : | |
1558 | ac_retval=0 | |
1559 | else | |
1560 | $as_echo "$as_me: failed program was:" >&5 | |
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1562 | |
81ecdfbb RW |
1563 | ac_retval=1 |
1564 | fi | |
1565 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1566 | return $ac_retval | |
bec39cab | 1567 | |
81ecdfbb RW |
1568 | } # ac_fn_c_try_cpp |
1569 | ||
1570 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1571 | # ------------------------------------------------------- | |
1572 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1573 | # the include files in INCLUDES and setting the cache variable VAR | |
1574 | # accordingly. | |
1575 | ac_fn_c_check_header_mongrel () | |
1576 | { | |
1577 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1578 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1580 | $as_echo_n "checking for $2... " >&6; } | |
1581 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1582 | $as_echo_n "(cached) " >&6 | |
1583 | fi | |
1584 | eval ac_res=\$$3 | |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1586 | $as_echo "$ac_res" >&6; } | |
1587 | else | |
1588 | # Is the header compilable? | |
1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1590 | $as_echo_n "checking $2 usability... " >&6; } | |
1591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1592 | /* end confdefs.h. */ | |
1593 | $4 | |
1594 | #include <$2> | |
1595 | _ACEOF | |
1596 | if ac_fn_c_try_compile "$LINENO"; then : | |
1597 | ac_header_compiler=yes | |
1598 | else | |
1599 | ac_header_compiler=no | |
1600 | fi | |
1601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1603 | $as_echo "$ac_header_compiler" >&6; } | |
1604 | ||
1605 | # Is the header present? | |
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1607 | $as_echo_n "checking $2 presence... " >&6; } | |
1608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1609 | /* end confdefs.h. */ | |
1610 | #include <$2> | |
1611 | _ACEOF | |
1612 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1613 | ac_header_preproc=yes | |
1614 | else | |
1615 | ac_header_preproc=no | |
1616 | fi | |
1617 | rm -f conftest.err conftest.$ac_ext | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1619 | $as_echo "$ac_header_preproc" >&6; } | |
1620 | ||
1621 | # So? What about this header? | |
1622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1623 | yes:no: ) | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1625 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1627 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1628 | ;; | |
1629 | no:yes:* ) | |
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1631 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1633 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1635 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1637 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1639 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1640 | ;; | |
1641 | esac | |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1643 | $as_echo_n "checking for $2... " >&6; } | |
1644 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1645 | $as_echo_n "(cached) " >&6 | |
1646 | else | |
1647 | eval "$3=\$ac_header_compiler" | |
1648 | fi | |
1649 | eval ac_res=\$$3 | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1651 | $as_echo "$ac_res" >&6; } | |
1652 | fi | |
1653 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1654 | ||
1655 | } # ac_fn_c_check_header_mongrel | |
1656 | ||
1657 | # ac_fn_c_try_run LINENO | |
1658 | # ---------------------- | |
1659 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1660 | # that executables *can* be run. | |
1661 | ac_fn_c_try_run () | |
1662 | { | |
1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1664 | if { { ac_try="$ac_link" | |
1665 | case "(($ac_try" in | |
1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1667 | *) ac_try_echo=$ac_try;; | |
1668 | esac | |
1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1670 | $as_echo "$ac_try_echo"; } >&5 | |
1671 | (eval "$ac_link") 2>&5 | |
1672 | ac_status=$? | |
1673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1674 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1675 | { { case "(($ac_try" in | |
1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1677 | *) ac_try_echo=$ac_try;; | |
1678 | esac | |
1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1680 | $as_echo "$ac_try_echo"; } >&5 | |
1681 | (eval "$ac_try") 2>&5 | |
1682 | ac_status=$? | |
1683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1684 | test $ac_status = 0; }; }; then : | |
1685 | ac_retval=0 | |
1686 | else | |
1687 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1688 | $as_echo "$as_me: failed program was:" >&5 | |
1689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1690 | ||
1691 | ac_retval=$ac_status | |
1692 | fi | |
1693 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1694 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1695 | return $ac_retval | |
1696 | ||
1697 | } # ac_fn_c_try_run | |
1698 | ||
1699 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1700 | # ------------------------------------------------------- | |
1701 | # Tests whether HEADER exists and can be compiled using the include files in | |
1702 | # INCLUDES, setting the cache variable VAR accordingly. | |
1703 | ac_fn_c_check_header_compile () | |
1704 | { | |
1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1707 | $as_echo_n "checking for $2... " >&6; } | |
1708 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1709 | $as_echo_n "(cached) " >&6 | |
1710 | else | |
1711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1712 | /* end confdefs.h. */ | |
1713 | $4 | |
1714 | #include <$2> | |
1715 | _ACEOF | |
1716 | if ac_fn_c_try_compile "$LINENO"; then : | |
1717 | eval "$3=yes" | |
1718 | else | |
1719 | eval "$3=no" | |
1720 | fi | |
1721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1722 | fi | |
1723 | eval ac_res=\$$3 | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1725 | $as_echo "$ac_res" >&6; } | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1727 | ||
1728 | } # ac_fn_c_check_header_compile | |
1729 | ||
1730 | # ac_fn_c_try_link LINENO | |
1731 | # ----------------------- | |
1732 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1733 | ac_fn_c_try_link () | |
1734 | { | |
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1737 | if { { ac_try="$ac_link" | |
1738 | case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_link") 2>conftest.err | |
1745 | ac_status=$? | |
1746 | if test -s conftest.err; then | |
1747 | grep -v '^ *+' conftest.err >conftest.er1 | |
1748 | cat conftest.er1 >&5 | |
1749 | mv -f conftest.er1 conftest.err | |
1750 | fi | |
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1752 | test $ac_status = 0; } && { | |
1753 | test -z "$ac_c_werror_flag" || | |
1754 | test ! -s conftest.err | |
1755 | } && test -s conftest$ac_exeext && { | |
1756 | test "$cross_compiling" = yes || | |
1757 | $as_test_x conftest$ac_exeext | |
1758 | }; then : | |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1767 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1768 | # interfere with the next link command; also delete a directory that is | |
1769 | # left behind by Apple's compiler. We do this before executing the actions. | |
1770 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1771 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1772 | return $ac_retval | |
1773 | ||
1774 | } # ac_fn_c_try_link | |
1775 | ||
eb0edac8 GB |
1776 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1777 | # ------------------------------------------- | |
1778 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1779 | # variable VAR accordingly. | |
1780 | ac_fn_c_check_type () | |
1781 | { | |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1784 | $as_echo_n "checking for $2... " >&6; } | |
1785 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1786 | $as_echo_n "(cached) " >&6 | |
1787 | else | |
1788 | eval "$3=no" | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | int | |
1793 | main () | |
1794 | { | |
1795 | if (sizeof ($2)) | |
1796 | return 0; | |
1797 | ; | |
1798 | return 0; | |
1799 | } | |
1800 | _ACEOF | |
1801 | if ac_fn_c_try_compile "$LINENO"; then : | |
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1803 | /* end confdefs.h. */ | |
1804 | $4 | |
1805 | int | |
1806 | main () | |
1807 | { | |
1808 | if (sizeof (($2))) | |
1809 | return 0; | |
1810 | ; | |
1811 | return 0; | |
1812 | } | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | ||
1816 | else | |
1817 | eval "$3=yes" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | fi | |
1823 | eval ac_res=\$$3 | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1825 | $as_echo "$ac_res" >&6; } | |
1826 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1827 | ||
1828 | } # ac_fn_c_check_type | |
1829 | ||
81ecdfbb RW |
1830 | # ac_fn_c_check_func LINENO FUNC VAR |
1831 | # ---------------------------------- | |
1832 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1833 | ac_fn_c_check_func () | |
1834 | { | |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1837 | $as_echo_n "checking for $2... " >&6; } | |
1838 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1839 | $as_echo_n "(cached) " >&6 | |
1840 | else | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1842 | /* end confdefs.h. */ | |
1843 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1845 | #define $2 innocuous_$2 | |
1846 | ||
1847 | /* System header to define __stub macros and hopefully few prototypes, | |
1848 | which can conflict with char $2 (); below. | |
1849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1850 | <limits.h> exists even on freestanding compilers. */ | |
1851 | ||
1852 | #ifdef __STDC__ | |
1853 | # include <limits.h> | |
1854 | #else | |
1855 | # include <assert.h> | |
1856 | #endif | |
1857 | ||
1858 | #undef $2 | |
1859 | ||
1860 | /* Override any GCC internal prototype to avoid an error. | |
1861 | Use char because int might match the return type of a GCC | |
1862 | builtin and then its argument prototype would still apply. */ | |
1863 | #ifdef __cplusplus | |
1864 | extern "C" | |
1865 | #endif | |
1866 | char $2 (); | |
1867 | /* The GNU C library defines this for functions which it implements | |
1868 | to always fail with ENOSYS. Some functions are actually named | |
1869 | something starting with __ and the normal name is an alias. */ | |
1870 | #if defined __stub_$2 || defined __stub___$2 | |
1871 | choke me | |
1872 | #endif | |
1873 | ||
1874 | int | |
1875 | main () | |
1876 | { | |
1877 | return $2 (); | |
1878 | ; | |
1879 | return 0; | |
1880 | } | |
1881 | _ACEOF | |
1882 | if ac_fn_c_try_link "$LINENO"; then : | |
1883 | eval "$3=yes" | |
1884 | else | |
1885 | eval "$3=no" | |
1886 | fi | |
1887 | rm -f core conftest.err conftest.$ac_objext \ | |
1888 | conftest$ac_exeext conftest.$ac_ext | |
1889 | fi | |
1890 | eval ac_res=\$$3 | |
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1892 | $as_echo "$ac_res" >&6; } | |
1893 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1894 | ||
1895 | } # ac_fn_c_check_func | |
1896 | ||
1897 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1898 | # ------------------------------------ | |
1899 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1900 | ac_fn_c_check_decl () | |
1901 | { | |
1902 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
0fb4aa4b PA |
1903 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1904 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1906 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1907 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1908 | $as_echo_n "(cached) " >&6 | |
1909 | else | |
1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1911 | /* end confdefs.h. */ | |
1912 | $4 | |
1913 | int | |
1914 | main () | |
1915 | { | |
0fb4aa4b PA |
1916 | #ifndef $as_decl_name |
1917 | #ifdef __cplusplus | |
1918 | (void) $as_decl_use; | |
1919 | #else | |
1920 | (void) $as_decl_name; | |
1921 | #endif | |
81ecdfbb RW |
1922 | #endif |
1923 | ||
1924 | ; | |
1925 | return 0; | |
1926 | } | |
1927 | _ACEOF | |
1928 | if ac_fn_c_try_compile "$LINENO"; then : | |
1929 | eval "$3=yes" | |
1930 | else | |
1931 | eval "$3=no" | |
1932 | fi | |
1933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1934 | fi | |
1935 | eval ac_res=\$$3 | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1937 | $as_echo "$ac_res" >&6; } | |
1938 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1939 | ||
1940 | } # ac_fn_c_check_decl | |
1941 | ||
54019719 PA |
1942 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
1943 | # -------------------------------------- | |
1944 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1945 | ac_fn_cxx_check_decl () | |
1946 | { | |
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1948 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1949 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1951 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1952 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1953 | $as_echo_n "(cached) " >&6 | |
1954 | else | |
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1956 | /* end confdefs.h. */ | |
1957 | $4 | |
1958 | int | |
1959 | main () | |
1960 | { | |
1961 | #ifndef $as_decl_name | |
1962 | #ifdef __cplusplus | |
1963 | (void) $as_decl_use; | |
1964 | #else | |
1965 | (void) $as_decl_name; | |
1966 | #endif | |
1967 | #endif | |
1968 | ||
1969 | ; | |
1970 | return 0; | |
1971 | } | |
1972 | _ACEOF | |
1973 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1974 | eval "$3=yes" | |
1975 | else | |
1976 | eval "$3=no" | |
1977 | fi | |
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1979 | fi | |
1980 | eval ac_res=\$$3 | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1982 | $as_echo "$ac_res" >&6; } | |
1983 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1984 | ||
1985 | } # ac_fn_cxx_check_decl | |
1986 | ||
07697489 PA |
1987 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1988 | # -------------------------------------------- | |
1989 | # Tries to find the compile-time value of EXPR in a program that includes | |
1990 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1991 | # computed | |
1992 | ac_fn_c_compute_int () | |
1993 | { | |
1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1995 | if test "$cross_compiling" = yes; then | |
1996 | # Depending upon the size, compute the lo and hi bounds. | |
1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 | /* end confdefs.h. */ | |
1999 | $4 | |
2000 | int | |
2001 | main () | |
2002 | { | |
2003 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2004 | test_array [0] = 0 | |
2005 | ||
2006 | ; | |
2007 | return 0; | |
2008 | } | |
2009 | _ACEOF | |
2010 | if ac_fn_c_try_compile "$LINENO"; then : | |
2011 | ac_lo=0 ac_mid=0 | |
2012 | while :; do | |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2014 | /* end confdefs.h. */ | |
2015 | $4 | |
2016 | int | |
2017 | main () | |
2018 | { | |
2019 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2020 | test_array [0] = 0 | |
2021 | ||
2022 | ; | |
2023 | return 0; | |
2024 | } | |
2025 | _ACEOF | |
2026 | if ac_fn_c_try_compile "$LINENO"; then : | |
2027 | ac_hi=$ac_mid; break | |
2028 | else | |
2029 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2030 | if test $ac_lo -le $ac_mid; then | |
2031 | ac_lo= ac_hi= | |
2032 | break | |
2033 | fi | |
2034 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2035 | fi | |
2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2037 | done | |
2038 | else | |
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2040 | /* end confdefs.h. */ | |
2041 | $4 | |
2042 | int | |
2043 | main () | |
2044 | { | |
2045 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2046 | test_array [0] = 0 | |
2047 | ||
2048 | ; | |
2049 | return 0; | |
2050 | } | |
2051 | _ACEOF | |
2052 | if ac_fn_c_try_compile "$LINENO"; then : | |
2053 | ac_hi=-1 ac_mid=-1 | |
2054 | while :; do | |
2055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2056 | /* end confdefs.h. */ | |
2057 | $4 | |
2058 | int | |
2059 | main () | |
2060 | { | |
2061 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2062 | test_array [0] = 0 | |
2063 | ||
2064 | ; | |
2065 | return 0; | |
2066 | } | |
2067 | _ACEOF | |
2068 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069 | ac_lo=$ac_mid; break | |
2070 | else | |
2071 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2072 | if test $ac_mid -le $ac_hi; then | |
2073 | ac_lo= ac_hi= | |
2074 | break | |
2075 | fi | |
2076 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2077 | fi | |
2078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2079 | done | |
2080 | else | |
2081 | ac_lo= ac_hi= | |
2082 | fi | |
2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2084 | fi | |
2085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2086 | # Binary search between lo and hi bounds. | |
2087 | while test "x$ac_lo" != "x$ac_hi"; do | |
2088 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2090 | /* end confdefs.h. */ | |
2091 | $4 | |
2092 | int | |
2093 | main () | |
2094 | { | |
2095 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2096 | test_array [0] = 0 | |
2097 | ||
2098 | ; | |
2099 | return 0; | |
2100 | } | |
2101 | _ACEOF | |
2102 | if ac_fn_c_try_compile "$LINENO"; then : | |
2103 | ac_hi=$ac_mid | |
2104 | else | |
2105 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2106 | fi | |
2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2108 | done | |
2109 | case $ac_lo in #(( | |
2110 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2111 | '') ac_retval=1 ;; | |
2112 | esac | |
2113 | else | |
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2115 | /* end confdefs.h. */ | |
2116 | $4 | |
2117 | static long int longval () { return $2; } | |
2118 | static unsigned long int ulongval () { return $2; } | |
2119 | #include <stdio.h> | |
2120 | #include <stdlib.h> | |
2121 | int | |
2122 | main () | |
2123 | { | |
2124 | ||
2125 | FILE *f = fopen ("conftest.val", "w"); | |
2126 | if (! f) | |
2127 | return 1; | |
2128 | if (($2) < 0) | |
2129 | { | |
2130 | long int i = longval (); | |
2131 | if (i != ($2)) | |
2132 | return 1; | |
2133 | fprintf (f, "%ld", i); | |
2134 | } | |
2135 | else | |
2136 | { | |
2137 | unsigned long int i = ulongval (); | |
2138 | if (i != ($2)) | |
2139 | return 1; | |
2140 | fprintf (f, "%lu", i); | |
2141 | } | |
2142 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2143 | on some platforms. */ | |
2144 | return ferror (f) || fclose (f) != 0; | |
2145 | ||
2146 | ; | |
2147 | return 0; | |
2148 | } | |
2149 | _ACEOF | |
2150 | if ac_fn_c_try_run "$LINENO"; then : | |
2151 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2152 | else | |
2153 | ac_retval=1 | |
2154 | fi | |
2155 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2156 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2157 | rm -f conftest.val | |
2158 | ||
2159 | fi | |
2160 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2161 | return $ac_retval | |
2162 | ||
2163 | } # ac_fn_c_compute_int | |
791c0056 GB |
2164 | |
2165 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2166 | # ---------------------------------------------------- | |
2167 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2168 | # INCLUDES, setting cache variable VAR accordingly. | |
2169 | ac_fn_c_check_member () | |
2170 | { | |
2171 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2173 | $as_echo_n "checking for $2.$3... " >&6; } | |
2174 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2175 | $as_echo_n "(cached) " >&6 | |
2176 | else | |
2177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2178 | /* end confdefs.h. */ | |
2179 | $5 | |
2180 | int | |
2181 | main () | |
2182 | { | |
2183 | static $2 ac_aggr; | |
2184 | if (ac_aggr.$3) | |
2185 | return 0; | |
2186 | ; | |
2187 | return 0; | |
2188 | } | |
2189 | _ACEOF | |
2190 | if ac_fn_c_try_compile "$LINENO"; then : | |
2191 | eval "$4=yes" | |
2192 | else | |
2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2194 | /* end confdefs.h. */ | |
2195 | $5 | |
2196 | int | |
2197 | main () | |
2198 | { | |
2199 | static $2 ac_aggr; | |
2200 | if (sizeof ac_aggr.$3) | |
2201 | return 0; | |
2202 | ; | |
2203 | return 0; | |
2204 | } | |
2205 | _ACEOF | |
2206 | if ac_fn_c_try_compile "$LINENO"; then : | |
2207 | eval "$4=yes" | |
2208 | else | |
2209 | eval "$4=no" | |
2210 | fi | |
2211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2212 | fi | |
2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2214 | fi | |
2215 | eval ac_res=\$$4 | |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2217 | $as_echo "$ac_res" >&6; } | |
2218 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2219 | ||
2220 | } # ac_fn_c_check_member | |
81ecdfbb RW |
2221 | cat >config.log <<_ACEOF |
2222 | This file contains any messages produced by compilers while | |
2223 | running configure, to aid debugging if configure makes a mistake. | |
2224 | ||
2225 | It was created by $as_me, which was | |
2226 | generated by GNU Autoconf 2.64. Invocation command line was | |
2227 | ||
2228 | $ $0 $@ | |
2229 | ||
2230 | _ACEOF | |
2231 | exec 5>>config.log | |
2232 | { | |
2233 | cat <<_ASUNAME | |
2234 | ## --------- ## | |
2235 | ## Platform. ## | |
2236 | ## --------- ## | |
2237 | ||
2238 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2239 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2240 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2241 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2242 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2243 | ||
2244 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2245 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2246 | ||
2247 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2248 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2249 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2250 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2251 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2252 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2253 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2254 | ||
2255 | _ASUNAME | |
2256 | ||
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2258 | for as_dir in $PATH | |
2259 | do | |
2260 | IFS=$as_save_IFS | |
2261 | test -z "$as_dir" && as_dir=. | |
2262 | $as_echo "PATH: $as_dir" | |
2263 | done | |
2264 | IFS=$as_save_IFS | |
2265 | ||
2266 | } >&5 | |
2267 | ||
2268 | cat >&5 <<_ACEOF | |
2269 | ||
2270 | ||
2271 | ## ----------- ## | |
2272 | ## Core tests. ## | |
2273 | ## ----------- ## | |
bec39cab AC |
2274 | |
2275 | _ACEOF | |
2276 | ||
2277 | ||
2278 | # Keep a trace of the command line. | |
2279 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2280 | # Strip out --silent because we don't want to record it for future runs. | |
2281 | # Also quote any args containing shell meta-characters. | |
2282 | # Make two passes to allow for proper duplicate-argument suppression. | |
2283 | ac_configure_args= | |
2284 | ac_configure_args0= | |
2285 | ac_configure_args1= | |
bec39cab AC |
2286 | ac_must_keep_next=false |
2287 | for ac_pass in 1 2 | |
2288 | do | |
2289 | for ac_arg | |
2290 | do | |
2291 | case $ac_arg in | |
2292 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2293 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2294 | | -silent | --silent | --silen | --sile | --sil) | |
2295 | continue ;; | |
81ecdfbb RW |
2296 | *\'*) |
2297 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
2298 | esac |
2299 | case $ac_pass in | |
81ecdfbb | 2300 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bec39cab | 2301 | 2) |
81ecdfbb | 2302 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bec39cab AC |
2303 | if test $ac_must_keep_next = true; then |
2304 | ac_must_keep_next=false # Got value, back to normal. | |
2305 | else | |
2306 | case $ac_arg in | |
2307 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2308 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2309 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2310 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2311 | case "$ac_configure_args0 " in | |
2312 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2313 | esac | |
2314 | ;; | |
2315 | -* ) ac_must_keep_next=true ;; | |
2316 | esac | |
2317 | fi | |
81ecdfbb | 2318 | as_fn_append ac_configure_args " '$ac_arg'" |
bec39cab AC |
2319 | ;; |
2320 | esac | |
2321 | done | |
2322 | done | |
81ecdfbb RW |
2323 | { ac_configure_args0=; unset ac_configure_args0;} |
2324 | { ac_configure_args1=; unset ac_configure_args1;} | |
bec39cab AC |
2325 | |
2326 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2327 | # config.log. We remove comments because anyway the quotes in there | |
2328 | # would cause problems or look ugly. | |
81ecdfbb RW |
2329 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2330 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bec39cab AC |
2331 | trap 'exit_status=$? |
2332 | # Save into config.log some information that might help in debugging. | |
2333 | { | |
2334 | echo | |
2335 | ||
2336 | cat <<\_ASBOX | |
2337 | ## ---------------- ## | |
2338 | ## Cache variables. ## | |
2339 | ## ---------------- ## | |
2340 | _ASBOX | |
2341 | echo | |
2342 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2343 | ( |
2344 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2345 | eval ac_val=\$$ac_var | |
2346 | case $ac_val in #( | |
2347 | *${as_nl}*) | |
2348 | case $ac_var in #( | |
2349 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2350 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2351 | esac | |
2352 | case $ac_var in #( | |
2353 | _ | IFS | as_nl) ;; #( | |
2354 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2355 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2356 | esac ;; | |
2357 | esac | |
2358 | done | |
bec39cab | 2359 | (set) 2>&1 | |
81ecdfbb RW |
2360 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2361 | *${as_nl}ac_space=\ *) | |
bec39cab | 2362 | sed -n \ |
81ecdfbb RW |
2363 | "s/'\''/'\''\\\\'\'''\''/g; |
2364 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2365 | ;; #( | |
bec39cab | 2366 | *) |
81ecdfbb | 2367 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 2368 | ;; |
81ecdfbb RW |
2369 | esac | |
2370 | sort | |
2371 | ) | |
bec39cab AC |
2372 | echo |
2373 | ||
2374 | cat <<\_ASBOX | |
2375 | ## ----------------- ## | |
2376 | ## Output variables. ## | |
2377 | ## ----------------- ## | |
2378 | _ASBOX | |
2379 | echo | |
2380 | for ac_var in $ac_subst_vars | |
2381 | do | |
81ecdfbb RW |
2382 | eval ac_val=\$$ac_var |
2383 | case $ac_val in | |
2384 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2385 | esac | |
2386 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2387 | done | sort |
2388 | echo | |
2389 | ||
2390 | if test -n "$ac_subst_files"; then | |
2391 | cat <<\_ASBOX | |
81ecdfbb RW |
2392 | ## ------------------- ## |
2393 | ## File substitutions. ## | |
2394 | ## ------------------- ## | |
bec39cab AC |
2395 | _ASBOX |
2396 | echo | |
2397 | for ac_var in $ac_subst_files | |
2398 | do | |
81ecdfbb RW |
2399 | eval ac_val=\$$ac_var |
2400 | case $ac_val in | |
2401 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2402 | esac | |
2403 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2404 | done | sort |
2405 | echo | |
434c4c77 | 2406 | fi |
bec39cab AC |
2407 | |
2408 | if test -s confdefs.h; then | |
2409 | cat <<\_ASBOX | |
2410 | ## ----------- ## | |
2411 | ## confdefs.h. ## | |
2412 | ## ----------- ## | |
2413 | _ASBOX | |
2414 | echo | |
81ecdfbb | 2415 | cat confdefs.h |
bec39cab AC |
2416 | echo |
2417 | fi | |
2418 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2419 | $as_echo "$as_me: caught signal $ac_signal" |
2420 | $as_echo "$as_me: exit $exit_status" | |
bec39cab | 2421 | } >&5 |
81ecdfbb RW |
2422 | rm -f core *.core core.conftest.* && |
2423 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 2424 | exit $exit_status |
81ecdfbb | 2425 | ' 0 |
bec39cab | 2426 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2427 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bec39cab AC |
2428 | done |
2429 | ac_signal=0 | |
2430 | ||
2431 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2432 | rm -f -r conftest* confdefs.h |
2433 | ||
2434 | $as_echo "/* confdefs.h */" > confdefs.h | |
bec39cab AC |
2435 | |
2436 | # Predefined preprocessor variables. | |
2437 | ||
2438 | cat >>confdefs.h <<_ACEOF | |
2439 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2440 | _ACEOF | |
2441 | ||
bec39cab AC |
2442 | cat >>confdefs.h <<_ACEOF |
2443 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2444 | _ACEOF | |
2445 | ||
bec39cab AC |
2446 | cat >>confdefs.h <<_ACEOF |
2447 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2448 | _ACEOF | |
2449 | ||
bec39cab AC |
2450 | cat >>confdefs.h <<_ACEOF |
2451 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2452 | _ACEOF | |
2453 | ||
bec39cab AC |
2454 | cat >>confdefs.h <<_ACEOF |
2455 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2456 | _ACEOF | |
2457 | ||
81ecdfbb RW |
2458 | cat >>confdefs.h <<_ACEOF |
2459 | #define PACKAGE_URL "$PACKAGE_URL" | |
2460 | _ACEOF | |
2461 | ||
bec39cab AC |
2462 | |
2463 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2464 | # Prefer an explicitly selected file to automatically selected ones. |
2465 | ac_site_file1=NONE | |
2466 | ac_site_file2=NONE | |
2467 | if test -n "$CONFIG_SITE"; then | |
2468 | ac_site_file1=$CONFIG_SITE | |
2469 | elif test "x$prefix" != xNONE; then | |
2470 | ac_site_file1=$prefix/share/config.site | |
2471 | ac_site_file2=$prefix/etc/config.site | |
2472 | else | |
2473 | ac_site_file1=$ac_default_prefix/share/config.site | |
2474 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d6e9fb05 | 2475 | fi |
81ecdfbb RW |
2476 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2477 | do | |
2478 | test "x$ac_site_file" = xNONE && continue | |
d6e9fb05 | 2479 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2481 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bec39cab | 2482 | sed 's/^/| /' "$ac_site_file" >&5 |
d6e9fb05 JK |
2483 | . "$ac_site_file" |
2484 | fi | |
2485 | done | |
2486 | ||
2487 | if test -r "$cache_file"; then | |
bec39cab AC |
2488 | # Some versions of bash will fail to source /dev/null (special |
2489 | # files actually), so we avoid doing that. | |
2490 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2492 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bec39cab | 2493 | case $cache_file in |
81ecdfbb RW |
2494 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2495 | *) . "./$cache_file";; | |
bec39cab AC |
2496 | esac |
2497 | fi | |
d6e9fb05 | 2498 | else |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2500 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bec39cab | 2501 | >$cache_file |
d6e9fb05 JK |
2502 | fi |
2503 | ||
bec39cab AC |
2504 | # Check that the precious variables saved in the cache have kept the same |
2505 | # value. | |
2506 | ac_cache_corrupted=false | |
81ecdfbb | 2507 | for ac_var in $ac_precious_vars; do |
bec39cab AC |
2508 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2509 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2510 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2511 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bec39cab AC |
2512 | case $ac_old_set,$ac_new_set in |
2513 | set,) | |
81ecdfbb RW |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2515 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bec39cab AC |
2516 | ac_cache_corrupted=: ;; |
2517 | ,set) | |
81ecdfbb RW |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2519 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bec39cab AC |
2520 | ac_cache_corrupted=: ;; |
2521 | ,);; | |
2522 | *) | |
2523 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2524 | # differences in whitespace do not lead to failure. |
2525 | ac_old_val_w=`echo x $ac_old_val` | |
2526 | ac_new_val_w=`echo x $ac_new_val` | |
2527 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2529 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2530 | ac_cache_corrupted=: | |
2531 | else | |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2533 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2534 | eval $ac_var=\$ac_old_val | |
2535 | fi | |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2537 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2539 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
2540 | fi;; |
2541 | esac | |
2542 | # Pass precious variables to config.status. | |
2543 | if test "$ac_new_set" = set; then | |
2544 | case $ac_new_val in | |
81ecdfbb | 2545 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bec39cab AC |
2546 | *) ac_arg=$ac_var=$ac_new_val ;; |
2547 | esac | |
2548 | case " $ac_configure_args " in | |
2549 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2550 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bec39cab | 2551 | esac |
d6e9fb05 | 2552 | fi |
bec39cab AC |
2553 | done |
2554 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2558 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2559 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
d6e9fb05 | 2560 | fi |
81ecdfbb RW |
2561 | ## -------------------- ## |
2562 | ## Main body of script. ## | |
2563 | ## -------------------- ## | |
d6e9fb05 | 2564 | |
dae5f5cf DJ |
2565 | ac_ext=c |
2566 | ac_cpp='$CPP $CPPFLAGS' | |
2567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2570 | ||
d6e9fb05 | 2571 | |
84563040 | 2572 | |
bec39cab AC |
2573 | |
2574 | ||
81ecdfbb | 2575 | ac_config_headers="$ac_config_headers config.h:config.in" |
bec39cab AC |
2576 | |
2577 | ||
e28b3332 | 2578 | |
c9a1864a YQ |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2580 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2581 | # Check whether --enable-maintainer-mode was given. | |
2582 | if test "${enable_maintainer_mode+set}" = set; then : | |
2583 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2584 | else | |
2585 | USE_MAINTAINER_MODE=no | |
2586 | fi | |
2587 | ||
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2589 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2590 | if test $USE_MAINTAINER_MODE = yes; then | |
2591 | MAINTAINER_MODE_TRUE= | |
2592 | MAINTAINER_MODE_FALSE='#' | |
2593 | else | |
2594 | MAINTAINER_MODE_TRUE='#' | |
2595 | MAINTAINER_MODE_FALSE= | |
2596 | fi | |
2597 | ||
2598 | MAINT=$MAINTAINER_MODE_TRUE | |
2599 | ||
2600 | ||
2601 | ||
bec39cab AC |
2602 | ac_ext=c |
2603 | ac_cpp='$CPP $CPPFLAGS' | |
2604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2607 | if test -n "$ac_tool_prefix"; then | |
2608 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2609 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2611 | $as_echo_n "checking for $ac_word... " >&6; } | |
2612 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2613 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2614 | else |
2615 | if test -n "$CC"; then | |
2616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2617 | else | |
bec39cab AC |
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2619 | for as_dir in $PATH | |
2620 | do | |
2621 | IFS=$as_save_IFS | |
2622 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2625 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2627 | break 2 |
2628 | fi | |
2629 | done | |
81ecdfbb RW |
2630 | done |
2631 | IFS=$as_save_IFS | |
bec39cab | 2632 | |
84563040 DJ |
2633 | fi |
2634 | fi | |
bec39cab | 2635 | CC=$ac_cv_prog_CC |
84563040 | 2636 | if test -n "$CC"; then |
81ecdfbb RW |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2638 | $as_echo "$CC" >&6; } | |
84563040 | 2639 | else |
81ecdfbb RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2641 | $as_echo "no" >&6; } | |
84563040 DJ |
2642 | fi |
2643 | ||
81ecdfbb | 2644 | |
bec39cab AC |
2645 | fi |
2646 | if test -z "$ac_cv_prog_CC"; then | |
2647 | ac_ct_CC=$CC | |
2648 | # Extract the first word of "gcc", so it can be a program name with args. | |
2649 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2651 | $as_echo_n "checking for $ac_word... " >&6; } | |
2652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2653 | $as_echo_n "(cached) " >&6 | |
84563040 | 2654 | else |
bec39cab AC |
2655 | if test -n "$ac_ct_CC"; then |
2656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
84563040 | 2657 | else |
bec39cab AC |
2658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2659 | for as_dir in $PATH | |
2660 | do | |
2661 | IFS=$as_save_IFS | |
2662 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do |
2664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2665 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2667 | break 2 |
2668 | fi | |
2669 | done | |
81ecdfbb RW |
2670 | done |
2671 | IFS=$as_save_IFS | |
bec39cab AC |
2672 | |
2673 | fi | |
2674 | fi | |
2675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2676 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2678 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2679 | else |
81ecdfbb RW |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2681 | $as_echo "no" >&6; } | |
bec39cab AC |
2682 | fi |
2683 | ||
81ecdfbb RW |
2684 | if test "x$ac_ct_CC" = x; then |
2685 | CC="" | |
2686 | else | |
2687 | case $cross_compiling:$ac_tool_warned in | |
2688 | yes:) | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2690 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2691 | ac_tool_warned=yes ;; | |
2692 | esac | |
2693 | CC=$ac_ct_CC | |
2694 | fi | |
bec39cab AC |
2695 | else |
2696 | CC="$ac_cv_prog_CC" | |
2697 | fi | |
2698 | ||
2699 | if test -z "$CC"; then | |
81ecdfbb RW |
2700 | if test -n "$ac_tool_prefix"; then |
2701 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 2702 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2704 | $as_echo_n "checking for $ac_word... " >&6; } | |
2705 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2706 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2707 | else |
2708 | if test -n "$CC"; then | |
2709 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2710 | else | |
2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2712 | for as_dir in $PATH | |
2713 | do | |
2714 | IFS=$as_save_IFS | |
2715 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2716 | for ac_exec_ext in '' $ac_executable_extensions; do |
2717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2718 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2720 | break 2 |
2721 | fi | |
2722 | done | |
81ecdfbb RW |
2723 | done |
2724 | IFS=$as_save_IFS | |
bec39cab AC |
2725 | |
2726 | fi | |
2727 | fi | |
2728 | CC=$ac_cv_prog_CC | |
2729 | if test -n "$CC"; then | |
81ecdfbb RW |
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2731 | $as_echo "$CC" >&6; } | |
bec39cab | 2732 | else |
81ecdfbb RW |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2734 | $as_echo "no" >&6; } | |
bec39cab AC |
2735 | fi |
2736 | ||
81ecdfbb RW |
2737 | |
2738 | fi | |
dae5f5cf | 2739 | fi |
81ecdfbb | 2740 | if test -z "$CC"; then |
dae5f5cf DJ |
2741 | # Extract the first word of "cc", so it can be a program name with args. |
2742 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2744 | $as_echo_n "checking for $ac_word... " >&6; } | |
2745 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2746 | $as_echo_n "(cached) " >&6 | |
dae5f5cf | 2747 | else |
81ecdfbb RW |
2748 | if test -n "$CC"; then |
2749 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dae5f5cf | 2750 | else |
81ecdfbb | 2751 | ac_prog_rejected=no |
dae5f5cf DJ |
2752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2753 | for as_dir in $PATH | |
2754 | do | |
2755 | IFS=$as_save_IFS | |
2756 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2757 | for ac_exec_ext in '' $ac_executable_extensions; do |
2758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2759 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2760 | ac_prog_rejected=yes | |
2761 | continue | |
2762 | fi | |
2763 | ac_cv_prog_CC="cc" | |
2764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
dae5f5cf | 2765 | break 2 |
b80864fb | 2766 | fi |
dae5f5cf | 2767 | done |
81ecdfbb RW |
2768 | done |
2769 | IFS=$as_save_IFS | |
bec39cab | 2770 | |
84563040 DJ |
2771 | if test $ac_prog_rejected = yes; then |
2772 | # We found a bogon in the path, so make sure we never use it. | |
2773 | set dummy $ac_cv_prog_CC | |
2774 | shift | |
bec39cab | 2775 | if test $# != 0; then |
84563040 DJ |
2776 | # We chose a different compiler from the bogus one. |
2777 | # However, it has the same basename, so the bogon will be chosen | |
2778 | # first if we set CC to just the basename; use the full file name. | |
2779 | shift | |
bec39cab | 2780 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
84563040 DJ |
2781 | fi |
2782 | fi | |
2783 | fi | |
2784 | fi | |
bec39cab | 2785 | CC=$ac_cv_prog_CC |
84563040 | 2786 | if test -n "$CC"; then |
81ecdfbb RW |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2788 | $as_echo "$CC" >&6; } | |
84563040 | 2789 | else |
81ecdfbb RW |
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2791 | $as_echo "no" >&6; } | |
84563040 DJ |
2792 | fi |
2793 | ||
81ecdfbb | 2794 | |
bec39cab AC |
2795 | fi |
2796 | if test -z "$CC"; then | |
2797 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2798 | for ac_prog in cl.exe |
bec39cab AC |
2799 | do |
2800 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2801 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2803 | $as_echo_n "checking for $ac_word... " >&6; } | |
2804 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2805 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2806 | else |
2807 | if test -n "$CC"; then | |
2808 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2809 | else | |
bec39cab AC |
2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2811 | for as_dir in $PATH | |
2812 | do | |
2813 | IFS=$as_save_IFS | |
2814 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
2816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2817 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2819 | break 2 |
2820 | fi | |
2821 | done | |
81ecdfbb RW |
2822 | done |
2823 | IFS=$as_save_IFS | |
bec39cab | 2824 | |
84563040 DJ |
2825 | fi |
2826 | fi | |
bec39cab | 2827 | CC=$ac_cv_prog_CC |
84563040 | 2828 | if test -n "$CC"; then |
81ecdfbb RW |
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2830 | $as_echo "$CC" >&6; } | |
84563040 | 2831 | else |
81ecdfbb RW |
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2833 | $as_echo "no" >&6; } | |
84563040 | 2834 | fi |
bec39cab | 2835 | |
81ecdfbb | 2836 | |
bec39cab AC |
2837 | test -n "$CC" && break |
2838 | done | |
2839 | fi | |
2840 | if test -z "$CC"; then | |
2841 | ac_ct_CC=$CC | |
81ecdfbb | 2842 | for ac_prog in cl.exe |
bec39cab AC |
2843 | do |
2844 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2845 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2847 | $as_echo_n "checking for $ac_word... " >&6; } | |
2848 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2849 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2850 | else |
2851 | if test -n "$ac_ct_CC"; then | |
2852 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2853 | else | |
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2855 | for as_dir in $PATH | |
2856 | do | |
2857 | IFS=$as_save_IFS | |
2858 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2859 | for ac_exec_ext in '' $ac_executable_extensions; do |
2860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2861 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab | 2863 | break 2 |
84563040 | 2864 | fi |
bec39cab | 2865 | done |
81ecdfbb RW |
2866 | done |
2867 | IFS=$as_save_IFS | |
bec39cab AC |
2868 | |
2869 | fi | |
2870 | fi | |
2871 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2872 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2874 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2875 | else |
81ecdfbb RW |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2877 | $as_echo "no" >&6; } | |
84563040 DJ |
2878 | fi |
2879 | ||
81ecdfbb | 2880 | |
bec39cab AC |
2881 | test -n "$ac_ct_CC" && break |
2882 | done | |
84563040 | 2883 | |
81ecdfbb RW |
2884 | if test "x$ac_ct_CC" = x; then |
2885 | CC="" | |
2886 | else | |
2887 | case $cross_compiling:$ac_tool_warned in | |
2888 | yes:) | |
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2891 | ac_tool_warned=yes ;; | |
2892 | esac | |
2893 | CC=$ac_ct_CC | |
2894 | fi | |
bec39cab AC |
2895 | fi |
2896 | ||
2897 | fi | |
2898 | ||
2899 | ||
81ecdfbb RW |
2900 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2902 | as_fn_error "no acceptable C compiler found in \$PATH | |
2903 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
2904 | |
2905 | # Provide some information about the compiler. | |
81ecdfbb RW |
2906 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2907 | set X $ac_compile | |
2908 | ac_compiler=$2 | |
2909 | for ac_option in --version -v -V -qversion; do | |
2910 | { { ac_try="$ac_compiler $ac_option >&5" | |
2911 | case "(($ac_try" in | |
2912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2913 | *) ac_try_echo=$ac_try;; | |
2914 | esac | |
2915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2916 | $as_echo "$ac_try_echo"; } >&5 | |
2917 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
bec39cab | 2918 | ac_status=$? |
81ecdfbb RW |
2919 | if test -s conftest.err; then |
2920 | sed '10a\ | |
2921 | ... rest of stderr output deleted ... | |
2922 | 10q' conftest.err >conftest.er1 | |
2923 | cat conftest.er1 >&5 | |
2924 | rm -f conftest.er1 conftest.err | |
2925 | fi | |
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2927 | test $ac_status = 0; } | |
2928 | done | |
bec39cab | 2929 | |
81ecdfbb | 2930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2931 | /* end confdefs.h. */ |
2932 | ||
2933 | int | |
2934 | main () | |
2935 | { | |
2936 | ||
2937 | ; | |
2938 | return 0; | |
2939 | } | |
2940 | _ACEOF | |
2941 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2942 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
bec39cab AC |
2943 | # Try to create an executable without -o first, disregard a.out. |
2944 | # It will help us diagnose broken compilers, and finding out an intuition | |
2945 | # of exeext. | |
81ecdfbb RW |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2947 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2948 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2949 | ||
2950 | # The possible output files: | |
2951 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2952 | ||
2953 | ac_rmfiles= | |
2954 | for ac_file in $ac_files | |
2955 | do | |
2956 | case $ac_file in | |
2957 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2958 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2959 | esac | |
2960 | done | |
2961 | rm -f $ac_rmfiles | |
2962 | ||
2963 | if { { ac_try="$ac_link_default" | |
2964 | case "(($ac_try" in | |
2965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2966 | *) ac_try_echo=$ac_try;; | |
2967 | esac | |
2968 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2969 | $as_echo "$ac_try_echo"; } >&5 | |
2970 | (eval "$ac_link_default") 2>&5 | |
bec39cab | 2971 | ac_status=$? |
81ecdfbb RW |
2972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2973 | test $ac_status = 0; }; then : | |
2974 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2975 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2976 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2977 | # so that the user can short-circuit this test for compilers unknown to | |
2978 | # Autoconf. | |
2979 | for ac_file in $ac_files '' | |
bec39cab AC |
2980 | do |
2981 | test -f "$ac_file" || continue | |
2982 | case $ac_file in | |
81ecdfbb | 2983 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bec39cab AC |
2984 | ;; |
2985 | [ab].out ) | |
2986 | # We found the default executable, but exeext='' is most | |
2987 | # certainly right. | |
2988 | break;; | |
2989 | *.* ) | |
81ecdfbb RW |
2990 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2991 | then :; else | |
2992 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2993 | fi | |
2994 | # We set ac_cv_exeext here because the later test for it is not | |
2995 | # safe: cross compilers may not add the suffix if given an `-o' | |
2996 | # argument, so we may need to know it at that point already. | |
2997 | # Even if this section looks crufty: it has the advantage of | |
2998 | # actually working. | |
bec39cab AC |
2999 | break;; |
3000 | * ) | |
3001 | break;; | |
3002 | esac | |
3003 | done | |
81ecdfbb RW |
3004 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3005 | ||
bec39cab | 3006 | else |
81ecdfbb RW |
3007 | ac_file='' |
3008 | fi | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3010 | $as_echo "$ac_file" >&6; } | |
3011 | if test -z "$ac_file"; then : | |
3012 | $as_echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
3013 | sed 's/^/| /' conftest.$ac_ext >&5 |
3014 | ||
81ecdfbb RW |
3015 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3016 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3017 | { as_fn_set_status 77 | |
3018 | as_fn_error "C compiler cannot create executables | |
3019 | See \`config.log' for more details." "$LINENO" 5; }; } | |
bec39cab | 3020 | fi |
bec39cab | 3021 | ac_exeext=$ac_cv_exeext |
bec39cab | 3022 | |
81ecdfbb | 3023 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 3024 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3026 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bec39cab AC |
3027 | # If not cross compiling, check that we can run a simple program. |
3028 | if test "$cross_compiling" != yes; then | |
3029 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3030 | { { case "(($ac_try" in |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3032 | *) ac_try_echo=$ac_try;; | |
3033 | esac | |
3034 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3035 | $as_echo "$ac_try_echo"; } >&5 | |
3036 | (eval "$ac_try") 2>&5 | |
bec39cab | 3037 | ac_status=$? |
81ecdfbb RW |
3038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3039 | test $ac_status = 0; }; }; then | |
bec39cab | 3040 | cross_compiling=no |
84563040 | 3041 | else |
bec39cab AC |
3042 | if test "$cross_compiling" = maybe; then |
3043 | cross_compiling=yes | |
3044 | else | |
81ecdfbb RW |
3045 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3047 | as_fn_error "cannot run C compiled programs. | |
bec39cab | 3048 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3049 | See \`config.log' for more details." "$LINENO" 5; } |
bec39cab | 3050 | fi |
84563040 | 3051 | fi |
84563040 | 3052 | fi |
81ecdfbb RW |
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3054 | $as_echo "yes" >&6; } | |
bec39cab | 3055 | |
81ecdfbb | 3056 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
bec39cab | 3057 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3058 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 3059 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3061 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3063 | $as_echo "$cross_compiling" >&6; } | |
3064 | ||
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3066 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3067 | if { { ac_try="$ac_link" | |
3068 | case "(($ac_try" in | |
3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3070 | *) ac_try_echo=$ac_try;; | |
3071 | esac | |
3072 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3073 | $as_echo "$ac_try_echo"; } >&5 | |
3074 | (eval "$ac_link") 2>&5 | |
bec39cab | 3075 | ac_status=$? |
81ecdfbb RW |
3076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3077 | test $ac_status = 0; }; then : | |
bec39cab AC |
3078 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3079 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3080 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3081 | # `rm'. | |
3082 | for ac_file in conftest.exe conftest conftest.*; do | |
3083 | test -f "$ac_file" || continue | |
3084 | case $ac_file in | |
81ecdfbb | 3085 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bec39cab | 3086 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bec39cab AC |
3087 | break;; |
3088 | * ) break;; | |
3089 | esac | |
3090 | done | |
84563040 | 3091 | else |
81ecdfbb RW |
3092 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3094 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3095 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 3096 | fi |
bec39cab | 3097 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3099 | $as_echo "$ac_cv_exeext" >&6; } | |
bec39cab AC |
3100 | |
3101 | rm -f conftest.$ac_ext | |
3102 | EXEEXT=$ac_cv_exeext | |
3103 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3105 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3106 | if test "${ac_cv_objext+set}" = set; then : | |
3107 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3108 | else |
81ecdfbb | 3109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3110 | /* end confdefs.h. */ |
3111 | ||
3112 | int | |
3113 | main () | |
3114 | { | |
3115 | ||
3116 | ; | |
3117 | return 0; | |
3118 | } | |
3119 | _ACEOF | |
3120 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3121 | if { { ac_try="$ac_compile" |
3122 | case "(($ac_try" in | |
3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3124 | *) ac_try_echo=$ac_try;; | |
3125 | esac | |
3126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3127 | $as_echo "$ac_try_echo"; } >&5 | |
3128 | (eval "$ac_compile") 2>&5 | |
bec39cab | 3129 | ac_status=$? |
81ecdfbb RW |
3130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3131 | test $ac_status = 0; }; then : | |
3132 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3133 | test -f "$ac_file" || continue; | |
bec39cab | 3134 | case $ac_file in |
81ecdfbb | 3135 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bec39cab AC |
3136 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3137 | break;; | |
3138 | esac | |
3139 | done | |
3140 | else | |
81ecdfbb | 3141 | $as_echo "$as_me: failed program was:" >&5 |
bec39cab AC |
3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
3143 | ||
81ecdfbb RW |
3144 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3145 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3146 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3147 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 3148 | fi |
bec39cab AC |
3149 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3150 | fi | |
81ecdfbb RW |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3152 | $as_echo "$ac_cv_objext" >&6; } | |
bec39cab AC |
3153 | OBJEXT=$ac_cv_objext |
3154 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3156 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3157 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3158 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3159 | else |
81ecdfbb | 3160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3161 | /* end confdefs.h. */ |
3162 | ||
3163 | int | |
3164 | main () | |
3165 | { | |
3166 | #ifndef __GNUC__ | |
3167 | choke me | |
3168 | #endif | |
84563040 | 3169 | |
bec39cab AC |
3170 | ; |
3171 | return 0; | |
3172 | } | |
3173 | _ACEOF | |
81ecdfbb | 3174 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab | 3175 | ac_compiler_gnu=yes |
84563040 | 3176 | else |
81ecdfbb | 3177 | ac_compiler_gnu=no |
84563040 | 3178 | fi |
81ecdfbb | 3179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 3180 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
84563040 | 3181 | |
bec39cab | 3182 | fi |
81ecdfbb RW |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3184 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3185 | if test $ac_compiler_gnu = yes; then | |
3186 | GCC=yes | |
3187 | else | |
3188 | GCC= | |
3189 | fi | |
bec39cab AC |
3190 | ac_test_CFLAGS=${CFLAGS+set} |
3191 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3193 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3194 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3195 | $as_echo_n "(cached) " >&6 | |
3196 | else | |
3197 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3198 | ac_c_werror_flag=yes | |
3199 | ac_cv_prog_cc_g=no | |
3200 | CFLAGS="-g" | |
3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab AC |
3202 | /* end confdefs.h. */ |
3203 | ||
3204 | int | |
3205 | main () | |
3206 | { | |
3207 | ||
3208 | ; | |
3209 | return 0; | |
3210 | } | |
3211 | _ACEOF | |
81ecdfbb | 3212 | if ac_fn_c_try_compile "$LINENO"; then : |
84563040 DJ |
3213 | ac_cv_prog_cc_g=yes |
3214 | else | |
81ecdfbb RW |
3215 | CFLAGS="" |
3216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3217 | /* end confdefs.h. */ | |
3218 | ||
3219 | int | |
3220 | main () | |
3221 | { | |
3222 | ||
3223 | ; | |
3224 | return 0; | |
3225 | } | |
3226 | _ACEOF | |
3227 | if ac_fn_c_try_compile "$LINENO"; then : | |
3228 | ||
3229 | else | |
3230 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3231 | CFLAGS="-g" | |
3232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3233 | /* end confdefs.h. */ | |
3234 | ||
3235 | int | |
3236 | main () | |
3237 | { | |
84563040 | 3238 | |
81ecdfbb RW |
3239 | ; |
3240 | return 0; | |
3241 | } | |
3242 | _ACEOF | |
3243 | if ac_fn_c_try_compile "$LINENO"; then : | |
3244 | ac_cv_prog_cc_g=yes | |
3245 | fi | |
3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84563040 | 3247 | fi |
81ecdfbb | 3248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 3249 | fi |
81ecdfbb RW |
3250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3251 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3252 | fi | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3254 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
84563040 | 3255 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 3256 | CFLAGS=$ac_save_CFLAGS |
84563040 DJ |
3257 | elif test $ac_cv_prog_cc_g = yes; then |
3258 | if test "$GCC" = yes; then | |
3259 | CFLAGS="-g -O2" | |
3260 | else | |
3261 | CFLAGS="-g" | |
3262 | fi | |
3263 | else | |
3264 | if test "$GCC" = yes; then | |
3265 | CFLAGS="-O2" | |
3266 | else | |
3267 | CFLAGS= | |
3268 | fi | |
3269 | fi | |
81ecdfbb RW |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3271 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3272 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3273 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3274 | else |
81ecdfbb | 3275 | ac_cv_prog_cc_c89=no |
bec39cab | 3276 | ac_save_CC=$CC |
81ecdfbb | 3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3278 | /* end confdefs.h. */ |
3279 | #include <stdarg.h> | |
3280 | #include <stdio.h> | |
3281 | #include <sys/types.h> | |
3282 | #include <sys/stat.h> | |
3283 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3284 | struct buf { int x; }; | |
3285 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3286 | static char *e (p, i) | |
3287 | char **p; | |
3288 | int i; | |
3289 | { | |
3290 | return p[i]; | |
3291 | } | |
3292 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3293 | { | |
3294 | char *s; | |
3295 | va_list v; | |
3296 | va_start (v,p); | |
3297 | s = g (p, va_arg (v,int)); | |
3298 | va_end (v); | |
3299 | return s; | |
3300 | } | |
3301 | ||
3302 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3303 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3304 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3305 | as 'x'. The following induces an error, until -std is added to get |
bec39cab AC |
3306 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3307 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3308 | that's true only with -std. */ |
bec39cab AC |
3309 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3310 | ||
81ecdfbb RW |
3311 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3312 | inside strings and character constants. */ | |
3313 | #define FOO(x) 'x' | |
3314 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3315 | ||
bec39cab AC |
3316 | int test (int i, double x); |
3317 | struct s1 {int (*f) (int a);}; | |
3318 | struct s2 {int (*f) (double a);}; | |
3319 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3320 | int argc; | |
3321 | char **argv; | |
3322 | int | |
3323 | main () | |
3324 | { | |
3325 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
81ecdfbb RW |
3330 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3331 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
3332 | do |
3333 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3334 | if ac_fn_c_try_compile "$LINENO"; then : |
3335 | ac_cv_prog_cc_c89=$ac_arg | |
bec39cab | 3336 | fi |
81ecdfbb RW |
3337 | rm -f core conftest.err conftest.$ac_objext |
3338 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bec39cab | 3339 | done |
81ecdfbb | 3340 | rm -f conftest.$ac_ext |
bec39cab AC |
3341 | CC=$ac_save_CC |
3342 | ||
3343 | fi | |
81ecdfbb RW |
3344 | # AC_CACHE_VAL |
3345 | case "x$ac_cv_prog_cc_c89" in | |
3346 | x) | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3348 | $as_echo "none needed" >&6; } ;; | |
3349 | xno) | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3351 | $as_echo "unsupported" >&6; } ;; | |
bec39cab | 3352 | *) |
81ecdfbb RW |
3353 | CC="$CC $ac_cv_prog_cc_c89" |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3355 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bec39cab | 3356 | esac |
81ecdfbb | 3357 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bec39cab | 3358 | |
dae5f5cf DJ |
3359 | fi |
3360 | ||
dae5f5cf | 3361 | ac_ext=c |
bec39cab AC |
3362 | ac_cpp='$CPP $CPPFLAGS' |
3363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
84563040 | 3366 | |
3bc3d82a PA |
3367 | ac_ext=cpp |
3368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3372 | if test -z "$CXX"; then | |
3373 | if test -n "$CCC"; then | |
3374 | CXX=$CCC | |
3375 | else | |
3376 | if test -n "$ac_tool_prefix"; then | |
3377 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3378 | do | |
3379 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3380 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3382 | $as_echo_n "checking for $ac_word... " >&6; } | |
3383 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
3384 | $as_echo_n "(cached) " >&6 | |
3385 | else | |
3386 | if test -n "$CXX"; then | |
3387 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3388 | else | |
3389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3390 | for as_dir in $PATH | |
3391 | do | |
3392 | IFS=$as_save_IFS | |
3393 | test -z "$as_dir" && as_dir=. | |
3394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3396 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3398 | break 2 | |
3399 | fi | |
3400 | done | |
3401 | done | |
3402 | IFS=$as_save_IFS | |
3403 | ||
3404 | fi | |
3405 | fi | |
3406 | CXX=$ac_cv_prog_CXX | |
3407 | if test -n "$CXX"; then | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3409 | $as_echo "$CXX" >&6; } | |
3410 | else | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3412 | $as_echo "no" >&6; } | |
3413 | fi | |
3414 | ||
3415 | ||
3416 | test -n "$CXX" && break | |
3417 | done | |
3418 | fi | |
3419 | if test -z "$CXX"; then | |
3420 | ac_ct_CXX=$CXX | |
3421 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3422 | do | |
3423 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3424 | set dummy $ac_prog; ac_word=$2 | |
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3426 | $as_echo_n "checking for $ac_word... " >&6; } | |
3427 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
3428 | $as_echo_n "(cached) " >&6 | |
3429 | else | |
3430 | if test -n "$ac_ct_CXX"; then | |
3431 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3432 | else | |
3433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3434 | for as_dir in $PATH | |
3435 | do | |
3436 | IFS=$as_save_IFS | |
3437 | test -z "$as_dir" && as_dir=. | |
3438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3440 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3442 | break 2 | |
3443 | fi | |
3444 | done | |
3445 | done | |
3446 | IFS=$as_save_IFS | |
3447 | ||
3448 | fi | |
3449 | fi | |
3450 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3451 | if test -n "$ac_ct_CXX"; then | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3453 | $as_echo "$ac_ct_CXX" >&6; } | |
3454 | else | |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3456 | $as_echo "no" >&6; } | |
3457 | fi | |
3458 | ||
3459 | ||
3460 | test -n "$ac_ct_CXX" && break | |
3461 | done | |
3462 | ||
3463 | if test "x$ac_ct_CXX" = x; then | |
3464 | CXX="g++" | |
3465 | else | |
3466 | case $cross_compiling:$ac_tool_warned in | |
3467 | yes:) | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3469 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3470 | ac_tool_warned=yes ;; | |
3471 | esac | |
3472 | CXX=$ac_ct_CXX | |
3473 | fi | |
3474 | fi | |
3475 | ||
3476 | fi | |
3477 | fi | |
3478 | # Provide some information about the compiler. | |
3479 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3480 | set X $ac_compile | |
3481 | ac_compiler=$2 | |
3482 | for ac_option in --version -v -V -qversion; do | |
3483 | { { ac_try="$ac_compiler $ac_option >&5" | |
3484 | case "(($ac_try" in | |
3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3486 | *) ac_try_echo=$ac_try;; | |
3487 | esac | |
3488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3489 | $as_echo "$ac_try_echo"; } >&5 | |
3490 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3491 | ac_status=$? | |
3492 | if test -s conftest.err; then | |
3493 | sed '10a\ | |
3494 | ... rest of stderr output deleted ... | |
3495 | 10q' conftest.err >conftest.er1 | |
3496 | cat conftest.er1 >&5 | |
3497 | rm -f conftest.er1 conftest.err | |
3498 | fi | |
3499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3500 | test $ac_status = 0; } | |
3501 | done | |
3502 | ||
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3504 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3505 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
3506 | $as_echo_n "(cached) " >&6 | |
3507 | else | |
3508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3509 | /* end confdefs.h. */ | |
3510 | ||
3511 | int | |
3512 | main () | |
3513 | { | |
3514 | #ifndef __GNUC__ | |
3515 | choke me | |
3516 | #endif | |
3517 | ||
3518 | ; | |
3519 | return 0; | |
3520 | } | |
3521 | _ACEOF | |
3522 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3523 | ac_compiler_gnu=yes | |
3524 | else | |
3525 | ac_compiler_gnu=no | |
3526 | fi | |
3527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3528 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3529 | ||
3530 | fi | |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3532 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3533 | if test $ac_compiler_gnu = yes; then | |
3534 | GXX=yes | |
3535 | else | |
3536 | GXX= | |
3537 | fi | |
3538 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3539 | ac_save_CXXFLAGS=$CXXFLAGS | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3541 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3542 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
3543 | $as_echo_n "(cached) " >&6 | |
3544 | else | |
3545 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3546 | ac_cxx_werror_flag=yes | |
3547 | ac_cv_prog_cxx_g=no | |
3548 | CXXFLAGS="-g" | |
3549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3550 | /* end confdefs.h. */ | |
3551 | ||
3552 | int | |
3553 | main () | |
3554 | { | |
3555 | ||
3556 | ; | |
3557 | return 0; | |
3558 | } | |
3559 | _ACEOF | |
3560 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3561 | ac_cv_prog_cxx_g=yes | |
3562 | else | |
3563 | CXXFLAGS="" | |
3564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3565 | /* end confdefs.h. */ | |
3566 | ||
3567 | int | |
3568 | main () | |
3569 | { | |
3570 | ||
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3576 | ||
3577 | else | |
3578 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3579 | CXXFLAGS="-g" | |
3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3581 | /* end confdefs.h. */ | |
3582 | ||
3583 | int | |
3584 | main () | |
3585 | { | |
3586 | ||
3587 | ; | |
3588 | return 0; | |
3589 | } | |
3590 | _ACEOF | |
3591 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3592 | ac_cv_prog_cxx_g=yes | |
3593 | fi | |
3594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3595 | fi | |
3596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3597 | fi | |
3598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3599 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3600 | fi | |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3602 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3603 | if test "$ac_test_CXXFLAGS" = set; then | |
3604 | CXXFLAGS=$ac_save_CXXFLAGS | |
3605 | elif test $ac_cv_prog_cxx_g = yes; then | |
3606 | if test "$GXX" = yes; then | |
3607 | CXXFLAGS="-g -O2" | |
3608 | else | |
3609 | CXXFLAGS="-g" | |
3610 | fi | |
3611 | else | |
3612 | if test "$GXX" = yes; then | |
3613 | CXXFLAGS="-O2" | |
3614 | else | |
3615 | CXXFLAGS= | |
3616 | fi | |
3617 | fi | |
3618 | ac_ext=c | |
3619 | ac_cpp='$CPP $CPPFLAGS' | |
3620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3623 | ||
c9a1864a YQ |
3624 | |
3625 | ac_ext=c | |
3626 | ac_cpp='$CPP $CPPFLAGS' | |
3627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3631 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3632 | # On Suns, sometimes $CPP names a directory. | |
3633 | if test -n "$CPP" && test -d "$CPP"; then | |
3634 | CPP= | |
3635 | fi | |
3636 | if test -z "$CPP"; then | |
3637 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3638 | $as_echo_n "(cached) " >&6 | |
3639 | else | |
3640 | # Double quotes because CPP needs to be expanded | |
3641 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3642 | do | |
3643 | ac_preproc_ok=false | |
3644 | for ac_c_preproc_warn_flag in '' yes | |
3645 | do | |
3646 | # Use a header file that comes with gcc, so configuring glibc | |
3647 | # with a fresh cross-compiler works. | |
3648 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3649 | # <limits.h> exists even on freestanding compilers. | |
3650 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3651 | # not just through cpp. "Syntax error" is here to catch this case. | |
3652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3653 | /* end confdefs.h. */ | |
3654 | #ifdef __STDC__ | |
3655 | # include <limits.h> | |
3656 | #else | |
3657 | # include <assert.h> | |
3658 | #endif | |
3659 | Syntax error | |
3660 | _ACEOF | |
3661 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3662 | ||
3663 | else | |
3664 | # Broken: fails on valid input. | |
3665 | continue | |
3666 | fi | |
3667 | rm -f conftest.err conftest.$ac_ext | |
3668 | ||
3669 | # OK, works on sane cases. Now check whether nonexistent headers | |
3670 | # can be detected and how. | |
3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3672 | /* end confdefs.h. */ | |
3673 | #include <ac_nonexistent.h> | |
3674 | _ACEOF | |
3675 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3676 | # Broken: success on invalid input. | |
3677 | continue | |
3678 | else | |
3679 | # Passes both tests. | |
3680 | ac_preproc_ok=: | |
3681 | break | |
3682 | fi | |
3683 | rm -f conftest.err conftest.$ac_ext | |
3684 | ||
3685 | done | |
3686 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3687 | rm -f conftest.err conftest.$ac_ext | |
3688 | if $ac_preproc_ok; then : | |
3689 | break | |
3690 | fi | |
3691 | ||
3692 | done | |
3693 | ac_cv_prog_CPP=$CPP | |
3694 | ||
3695 | fi | |
3696 | CPP=$ac_cv_prog_CPP | |
3697 | else | |
3698 | ac_cv_prog_CPP=$CPP | |
3699 | fi | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3701 | $as_echo "$CPP" >&6; } | |
3702 | ac_preproc_ok=false | |
3703 | for ac_c_preproc_warn_flag in '' yes | |
3704 | do | |
3705 | # Use a header file that comes with gcc, so configuring glibc | |
3706 | # with a fresh cross-compiler works. | |
3707 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3708 | # <limits.h> exists even on freestanding compilers. | |
3709 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3710 | # not just through cpp. "Syntax error" is here to catch this case. | |
3711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3712 | /* end confdefs.h. */ | |
3713 | #ifdef __STDC__ | |
3714 | # include <limits.h> | |
3715 | #else | |
3716 | # include <assert.h> | |
3717 | #endif | |
3718 | Syntax error | |
3719 | _ACEOF | |
3720 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3721 | ||
3722 | else | |
3723 | # Broken: fails on valid input. | |
3724 | continue | |
3725 | fi | |
3726 | rm -f conftest.err conftest.$ac_ext | |
3727 | ||
3728 | # OK, works on sane cases. Now check whether nonexistent headers | |
3729 | # can be detected and how. | |
81ecdfbb | 3730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3731 | /* end confdefs.h. */ |
3732 | #include <ac_nonexistent.h> | |
3733 | _ACEOF | |
81ecdfbb | 3734 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab AC |
3735 | # Broken: success on invalid input. |
3736 | continue | |
3737 | else | |
bec39cab AC |
3738 | # Passes both tests. |
3739 | ac_preproc_ok=: | |
3740 | break | |
3741 | fi | |
3742 | rm -f conftest.err conftest.$ac_ext | |
3743 | ||
3744 | done | |
3745 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3746 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3747 | if $ac_preproc_ok; then : |
3748 | ||
3749 | else | |
3750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3752 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3753 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
3754 | fi |
3755 | ||
81ecdfbb RW |
3756 | ac_ext=c |
3757 | ac_cpp='$CPP $CPPFLAGS' | |
3758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bec39cab | 3761 | |
81ecdfbb RW |
3762 | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3764 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3765 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3766 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3767 | else |
81ecdfbb RW |
3768 | if test -z "$GREP"; then |
3769 | ac_path_GREP_found=false | |
3770 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3772 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
bec39cab | 3773 | do |
81ecdfbb RW |
3774 | IFS=$as_save_IFS |
3775 | test -z "$as_dir" && as_dir=. | |
3776 | for ac_prog in grep ggrep; do | |
3777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3778 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3779 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3780 | # Check for GNU ac_path_GREP and select it if it is found. | |
3781 | # Check for GNU $ac_path_GREP | |
3782 | case `"$ac_path_GREP" --version 2>&1` in | |
3783 | *GNU*) | |
3784 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3785 | *) | |
3786 | ac_count=0 | |
3787 | $as_echo_n 0123456789 >"conftest.in" | |
3788 | while : | |
3789 | do | |
3790 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3791 | mv "conftest.tmp" "conftest.in" | |
3792 | cp "conftest.in" "conftest.nl" | |
3793 | $as_echo 'GREP' >> "conftest.nl" | |
3794 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3795 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3796 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3797 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3798 | # Best one so far, save it but keep looking for a better one | |
3799 | ac_cv_path_GREP="$ac_path_GREP" | |
3800 | ac_path_GREP_max=$ac_count | |
3801 | fi | |
3802 | # 10*(2^10) chars as input seems more than enough | |
3803 | test $ac_count -gt 10 && break | |
3804 | done | |
3805 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3806 | esac | |
3807 | ||
3808 | $ac_path_GREP_found && break 3 | |
3809 | done | |
3810 | done | |
3811 | done | |
3812 | IFS=$as_save_IFS | |
3813 | if test -z "$ac_cv_path_GREP"; then | |
3814 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
bec39cab AC |
3815 | fi |
3816 | else | |
81ecdfbb | 3817 | ac_cv_path_GREP=$GREP |
bec39cab | 3818 | fi |
bec39cab | 3819 | |
84563040 | 3820 | fi |
81ecdfbb RW |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3822 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3823 | GREP="$ac_cv_path_GREP" | |
bec39cab | 3824 | |
bec39cab | 3825 | |
81ecdfbb RW |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3827 | $as_echo_n "checking for egrep... " >&6; } | |
3828 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3829 | $as_echo_n "(cached) " >&6 | |
3830 | else | |
3831 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3832 | then ac_cv_path_EGREP="$GREP -E" | |
3833 | else | |
3834 | if test -z "$EGREP"; then | |
3835 | ac_path_EGREP_found=false | |
3836 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3838 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3839 | do | |
3840 | IFS=$as_save_IFS | |
3841 | test -z "$as_dir" && as_dir=. | |
3842 | for ac_prog in egrep; do | |
3843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3844 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3845 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3846 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3847 | # Check for GNU $ac_path_EGREP | |
3848 | case `"$ac_path_EGREP" --version 2>&1` in | |
3849 | *GNU*) | |
3850 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3851 | *) | |
3852 | ac_count=0 | |
3853 | $as_echo_n 0123456789 >"conftest.in" | |
3854 | while : | |
3855 | do | |
3856 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3857 | mv "conftest.tmp" "conftest.in" | |
3858 | cp "conftest.in" "conftest.nl" | |
3859 | $as_echo 'EGREP' >> "conftest.nl" | |
3860 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3861 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3862 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3863 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3864 | # Best one so far, save it but keep looking for a better one | |
3865 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3866 | ac_path_EGREP_max=$ac_count | |
3867 | fi | |
3868 | # 10*(2^10) chars as input seems more than enough | |
3869 | test $ac_count -gt 10 && break | |
3870 | done | |
3871 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3872 | esac | |
bec39cab | 3873 | |
81ecdfbb RW |
3874 | $ac_path_EGREP_found && break 3 |
3875 | done | |
3876 | done | |
3877 | done | |
3878 | IFS=$as_save_IFS | |
3879 | if test -z "$ac_cv_path_EGREP"; then | |
3880 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3881 | fi | |
bec39cab | 3882 | else |
81ecdfbb | 3883 | ac_cv_path_EGREP=$EGREP |
84563040 | 3884 | fi |
bec39cab | 3885 | |
81ecdfbb | 3886 | fi |
b80864fb | 3887 | fi |
81ecdfbb RW |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3889 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3890 | EGREP="$ac_cv_path_EGREP" | |
b80864fb DJ |
3891 | |
3892 | ||
c971b7fa PA |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3894 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3895 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3896 | $as_echo_n "(cached) " >&6 | |
3897 | else | |
3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3899 | /* end confdefs.h. */ | |
3900 | #include <stdlib.h> | |
3901 | #include <stdarg.h> | |
3902 | #include <string.h> | |
3903 | #include <float.h> | |
bec39cab | 3904 | |
c971b7fa PA |
3905 | int |
3906 | main () | |
3907 | { | |
bec39cab | 3908 | |
c971b7fa PA |
3909 | ; |
3910 | return 0; | |
3911 | } | |
3912 | _ACEOF | |
3913 | if ac_fn_c_try_compile "$LINENO"; then : | |
3914 | ac_cv_header_stdc=yes | |
84563040 | 3915 | else |
c971b7fa PA |
3916 | ac_cv_header_stdc=no |
3917 | fi | |
3918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84563040 | 3919 | |
c971b7fa PA |
3920 | if test $ac_cv_header_stdc = yes; then |
3921 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab | 3923 | /* end confdefs.h. */ |
c971b7fa | 3924 | #include <string.h> |
bec39cab AC |
3925 | |
3926 | _ACEOF | |
84563040 | 3927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
c971b7fa PA |
3928 | $EGREP "memchr" >/dev/null 2>&1; then : |
3929 | ||
84563040 | 3930 | else |
c971b7fa | 3931 | ac_cv_header_stdc=no |
84563040 DJ |
3932 | fi |
3933 | rm -f conftest* | |
3934 | ||
770d76d7 | 3935 | fi |
81ecdfbb | 3936 | |
c971b7fa PA |
3937 | if test $ac_cv_header_stdc = yes; then |
3938 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3940 | /* end confdefs.h. */ | |
3941 | #include <stdlib.h> | |
3942 | ||
3943 | _ACEOF | |
3944 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3945 | $EGREP "free" >/dev/null 2>&1; then : | |
3946 | ||
770d76d7 | 3947 | else |
c971b7fa | 3948 | ac_cv_header_stdc=no |
bec39cab | 3949 | fi |
c971b7fa | 3950 | rm -f conftest* |
bec39cab AC |
3951 | |
3952 | fi | |
c971b7fa PA |
3953 | |
3954 | if test $ac_cv_header_stdc = yes; then | |
3955 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3956 | if test "$cross_compiling" = yes; then : | |
3957 | : | |
770d76d7 | 3958 | else |
c971b7fa PA |
3959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3960 | /* end confdefs.h. */ | |
3961 | #include <ctype.h> | |
3962 | #include <stdlib.h> | |
3963 | #if ((' ' & 0x0FF) == 0x020) | |
3964 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3965 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3966 | #else | |
3967 | # define ISLOWER(c) \ | |
3968 | (('a' <= (c) && (c) <= 'i') \ | |
3969 | || ('j' <= (c) && (c) <= 'r') \ | |
3970 | || ('s' <= (c) && (c) <= 'z')) | |
3971 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3972 | #endif | |
3973 | ||
3974 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3975 | int | |
3976 | main () | |
3977 | { | |
3978 | int i; | |
3979 | for (i = 0; i < 256; i++) | |
3980 | if (XOR (islower (i), ISLOWER (i)) | |
3981 | || toupper (i) != TOUPPER (i)) | |
3982 | return 2; | |
3983 | return 0; | |
3984 | } | |
3985 | _ACEOF | |
3986 | if ac_fn_c_try_run "$LINENO"; then : | |
3987 | ||
770d76d7 | 3988 | else |
c971b7fa PA |
3989 | ac_cv_header_stdc=no |
3990 | fi | |
3991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3992 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3993 | fi | |
bec39cab | 3994 | |
770d76d7 PA |
3995 | fi |
3996 | fi | |
c971b7fa PA |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3998 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3999 | if test $ac_cv_header_stdc = yes; then | |
4000 | ||
4001 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4002 | ||
770d76d7 | 4003 | fi |
bec39cab | 4004 | |
c971b7fa PA |
4005 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4006 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4007 | inttypes.h stdint.h unistd.h | |
4008 | do : | |
4009 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4010 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4011 | " | |
4012 | eval as_val=\$$as_ac_Header | |
4013 | if test "x$as_val" = x""yes; then : | |
4014 | cat >>confdefs.h <<_ACEOF | |
4015 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4016 | _ACEOF | |
4017 | ||
81ecdfbb | 4018 | fi |
bec39cab | 4019 | |
c971b7fa | 4020 | done |
bec39cab AC |
4021 | |
4022 | ||
4023 | ||
c971b7fa PA |
4024 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4025 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
4026 | MINIX=yes | |
770d76d7 | 4027 | else |
c971b7fa | 4028 | MINIX= |
770d76d7 | 4029 | fi |
bec39cab AC |
4030 | |
4031 | ||
c971b7fa PA |
4032 | if test "$MINIX" = yes; then |
4033 | ||
4034 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4035 | ||
4036 | ||
4037 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4038 | ||
4039 | ||
4040 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4041 | ||
770d76d7 | 4042 | fi |
bec39cab | 4043 | |
c971b7fa PA |
4044 | |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4046 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4047 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4048 | $as_echo_n "(cached) " >&6 | |
770d76d7 | 4049 | else |
c971b7fa PA |
4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4051 | /* end confdefs.h. */ | |
bec39cab | 4052 | |
c971b7fa PA |
4053 | # define __EXTENSIONS__ 1 |
4054 | $ac_includes_default | |
4055 | int | |
4056 | main () | |
4057 | { | |
4058 | ||
4059 | ; | |
4060 | return 0; | |
4061 | } | |
4062 | _ACEOF | |
4063 | if ac_fn_c_try_compile "$LINENO"; then : | |
4064 | ac_cv_safe_to_define___extensions__=yes | |
770d76d7 | 4065 | else |
c971b7fa PA |
4066 | ac_cv_safe_to_define___extensions__=no |
4067 | fi | |
4068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
770d76d7 | 4069 | fi |
c971b7fa PA |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4071 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4072 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4073 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4074 | ||
4075 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4076 | ||
4077 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4078 | ||
4079 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4080 | ||
4081 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4082 | ||
bec39cab | 4083 | |
c9a1864a | 4084 | |
589bc927 TT |
4085 | # Check whether --enable-largefile was given. |
4086 | if test "${enable_largefile+set}" = set; then : | |
4087 | enableval=$enable_largefile; | |
4088 | fi | |
4089 | ||
4090 | if test "$enable_largefile" != no; then | |
4091 | ||
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4093 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
4094 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
4095 | $as_echo_n "(cached) " >&6 | |
4096 | else | |
4097 | ac_cv_sys_largefile_CC=no | |
4098 | if test "$GCC" != yes; then | |
4099 | ac_save_CC=$CC | |
4100 | while :; do | |
4101 | # IRIX 6.2 and later do not support large files by default, | |
4102 | # so use the C compiler's -n32 option if that helps. | |
4103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4104 | /* end confdefs.h. */ | |
4105 | #include <sys/types.h> | |
4106 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4107 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4108 | since some C++ compilers masquerading as C compilers | |
4109 | incorrectly reject 9223372036854775807. */ | |
4110 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4111 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4112 | && LARGE_OFF_T % 2147483647 == 1) | |
4113 | ? 1 : -1]; | |
4114 | int | |
4115 | main () | |
4116 | { | |
4117 | ||
4118 | ; | |
4119 | return 0; | |
4120 | } | |
4121 | _ACEOF | |
4122 | if ac_fn_c_try_compile "$LINENO"; then : | |
4123 | break | |
4124 | fi | |
4125 | rm -f core conftest.err conftest.$ac_objext | |
4126 | CC="$CC -n32" | |
4127 | if ac_fn_c_try_compile "$LINENO"; then : | |
4128 | ac_cv_sys_largefile_CC=' -n32'; break | |
4129 | fi | |
4130 | rm -f core conftest.err conftest.$ac_objext | |
4131 | break | |
4132 | done | |
4133 | CC=$ac_save_CC | |
4134 | rm -f conftest.$ac_ext | |
4135 | fi | |
4136 | fi | |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4138 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4139 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4140 | CC=$CC$ac_cv_sys_largefile_CC | |
4141 | fi | |
4142 | ||
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4144 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
4145 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
4146 | $as_echo_n "(cached) " >&6 | |
4147 | else | |
4148 | while :; do | |
4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4150 | /* end confdefs.h. */ | |
4151 | #include <sys/types.h> | |
4152 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4153 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4154 | since some C++ compilers masquerading as C compilers | |
4155 | incorrectly reject 9223372036854775807. */ | |
4156 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4157 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4158 | && LARGE_OFF_T % 2147483647 == 1) | |
4159 | ? 1 : -1]; | |
4160 | int | |
4161 | main () | |
4162 | { | |
4163 | ||
4164 | ; | |
4165 | return 0; | |
4166 | } | |
4167 | _ACEOF | |
4168 | if ac_fn_c_try_compile "$LINENO"; then : | |
4169 | ac_cv_sys_file_offset_bits=no; break | |
4170 | fi | |
4171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4173 | /* end confdefs.h. */ | |
4174 | #define _FILE_OFFSET_BITS 64 | |
4175 | #include <sys/types.h> | |
4176 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4177 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4178 | since some C++ compilers masquerading as C compilers | |
4179 | incorrectly reject 9223372036854775807. */ | |
4180 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4181 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4182 | && LARGE_OFF_T % 2147483647 == 1) | |
4183 | ? 1 : -1]; | |
4184 | int | |
4185 | main () | |
4186 | { | |
4187 | ||
4188 | ; | |
4189 | return 0; | |
4190 | } | |
4191 | _ACEOF | |
4192 | if ac_fn_c_try_compile "$LINENO"; then : | |
4193 | ac_cv_sys_file_offset_bits=64; break | |
4194 | fi | |
4195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4196 | ac_cv_sys_file_offset_bits=unknown | |
4197 | break | |
4198 | done | |
4199 | fi | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4201 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4202 | case $ac_cv_sys_file_offset_bits in #( | |
4203 | no | unknown) ;; | |
4204 | *) | |
4205 | cat >>confdefs.h <<_ACEOF | |
4206 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4207 | _ACEOF | |
4208 | ;; | |
4209 | esac | |
4210 | rm -rf conftest* | |
4211 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4213 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
4214 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
4215 | $as_echo_n "(cached) " >&6 | |
4216 | else | |
4217 | while :; do | |
4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4219 | /* end confdefs.h. */ | |
4220 | #include <sys/types.h> | |
4221 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4222 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4223 | since some C++ compilers masquerading as C compilers | |
4224 | incorrectly reject 9223372036854775807. */ | |
4225 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4226 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4227 | && LARGE_OFF_T % 2147483647 == 1) | |
4228 | ? 1 : -1]; | |
4229 | int | |
4230 | main () | |
4231 | { | |
4232 | ||
4233 | ; | |
4234 | return 0; | |
4235 | } | |
4236 | _ACEOF | |
4237 | if ac_fn_c_try_compile "$LINENO"; then : | |
4238 | ac_cv_sys_large_files=no; break | |
4239 | fi | |
4240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4242 | /* end confdefs.h. */ | |
4243 | #define _LARGE_FILES 1 | |
4244 | #include <sys/types.h> | |
4245 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4246 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4247 | since some C++ compilers masquerading as C compilers | |
4248 | incorrectly reject 9223372036854775807. */ | |
4249 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4250 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4251 | && LARGE_OFF_T % 2147483647 == 1) | |
4252 | ? 1 : -1]; | |
4253 | int | |
4254 | main () | |
4255 | { | |
4256 | ||
4257 | ; | |
4258 | return 0; | |
4259 | } | |
4260 | _ACEOF | |
4261 | if ac_fn_c_try_compile "$LINENO"; then : | |
4262 | ac_cv_sys_large_files=1; break | |
4263 | fi | |
4264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4265 | ac_cv_sys_large_files=unknown | |
4266 | break | |
4267 | done | |
4268 | fi | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4270 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4271 | case $ac_cv_sys_large_files in #( | |
4272 | no | unknown) ;; | |
4273 | *) | |
4274 | cat >>confdefs.h <<_ACEOF | |
4275 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4276 | _ACEOF | |
4277 | ;; | |
4278 | esac | |
4279 | rm -rf conftest* | |
4280 | fi | |
4281 | fi | |
4282 | ||
c9a1864a | 4283 | |
770d76d7 PA |
4284 | ac_aux_dir= |
4285 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
4286 | for ac_t in install-sh install.sh shtool; do | |
4287 | if test -f "$ac_dir/$ac_t"; then | |
4288 | ac_aux_dir=$ac_dir | |
4289 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
4290 | break 2 | |
4291 | fi | |
4292 | done | |
4293 | done | |
4294 | if test -z "$ac_aux_dir"; then | |
4295 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
4296 | fi | |
4297 | ||
4298 | # These three variables are undocumented and unsupported, | |
4299 | # and are intended to be withdrawn in a future Autoconf release. | |
4300 | # They can cause serious problems if a builder's source tree is in a directory | |
4301 | # whose full name contains unusual characters. | |
4302 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4303 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4304 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
c9a1864a | 4305 | |
bec39cab | 4306 | |
770d76d7 PA |
4307 | # Make sure we can run config.sub. |
4308 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4309 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4310 | ||
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4312 | $as_echo_n "checking build system type... " >&6; } | |
4313 | if test "${ac_cv_build+set}" = set; then : | |
81ecdfbb RW |
4314 | $as_echo_n "(cached) " >&6 |
4315 | else | |
770d76d7 PA |
4316 | ac_build_alias=$build_alias |
4317 | test "x$ac_build_alias" = x && | |
4318 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4319 | test "x$ac_build_alias" = x && | |
4320 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
4321 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4322 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4323 | ||
4324 | fi | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4326 | $as_echo "$ac_cv_build" >&6; } | |
4327 | case $ac_cv_build in | |
4328 | *-*-*) ;; | |
4329 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
4330 | esac | |
4331 | build=$ac_cv_build | |
4332 | ac_save_IFS=$IFS; IFS='-' | |
4333 | set x $ac_cv_build | |
4334 | shift | |
4335 | build_cpu=$1 | |
4336 | build_vendor=$2 | |
4337 | shift; shift | |
4338 | # Remember, the first character of IFS is used to create $*, | |
4339 | # except with old shells: | |
4340 | build_os=$* | |
4341 | IFS=$ac_save_IFS | |
4342 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4343 | ||
4344 | ||
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4346 | $as_echo_n "checking host system type... " >&6; } | |
4347 | if test "${ac_cv_host+set}" = set; then : | |
4348 | $as_echo_n "(cached) " >&6 | |
4349 | else | |
4350 | if test "x$host_alias" = x; then | |
4351 | ac_cv_host=$ac_cv_build | |
4352 | else | |
4353 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4354 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4355 | fi | |
4356 | ||
4357 | fi | |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4359 | $as_echo "$ac_cv_host" >&6; } | |
4360 | case $ac_cv_host in | |
4361 | *-*-*) ;; | |
4362 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
4363 | esac | |
4364 | host=$ac_cv_host | |
4365 | ac_save_IFS=$IFS; IFS='-' | |
4366 | set x $ac_cv_host | |
4367 | shift | |
4368 | host_cpu=$1 | |
4369 | host_vendor=$2 | |
4370 | shift; shift | |
4371 | # Remember, the first character of IFS is used to create $*, | |
4372 | # except with old shells: | |
4373 | host_os=$* | |
4374 | IFS=$ac_save_IFS | |
4375 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4376 | ||
4377 | ||
c971b7fa PA |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
4379 | $as_echo_n "checking target system type... " >&6; } | |
4380 | if test "${ac_cv_target+set}" = set; then : | |
770d76d7 PA |
4381 | $as_echo_n "(cached) " >&6 |
4382 | else | |
c971b7fa PA |
4383 | if test "x$target_alias" = x; then |
4384 | ac_cv_target=$ac_cv_host | |
770d76d7 | 4385 | else |
c971b7fa PA |
4386 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
4387 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
770d76d7 | 4388 | fi |
770d76d7 PA |
4389 | |
4390 | fi | |
c971b7fa PA |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
4392 | $as_echo "$ac_cv_target" >&6; } | |
4393 | case $ac_cv_target in | |
4394 | *-*-*) ;; | |
4395 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
4396 | esac | |
4397 | target=$ac_cv_target | |
4398 | ac_save_IFS=$IFS; IFS='-' | |
4399 | set x $ac_cv_target | |
4400 | shift | |
4401 | target_cpu=$1 | |
4402 | target_vendor=$2 | |
4403 | shift; shift | |
4404 | # Remember, the first character of IFS is used to create $*, | |
4405 | # except with old shells: | |
4406 | target_os=$* | |
4407 | IFS=$ac_save_IFS | |
4408 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
770d76d7 | 4409 | |
770d76d7 | 4410 | |
c971b7fa PA |
4411 | # The aliases save the names the user supplied, while $host etc. |
4412 | # will get canonicalized. | |
4413 | test -n "$target_alias" && | |
4414 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
4415 | NONENONEs,x,x, && | |
4416 | program_prefix=${target_alias}- | |
770d76d7 | 4417 | |
770d76d7 | 4418 | |
c971b7fa PA |
4419 | # Find a good install program. We prefer a C program (faster), |
4420 | # so one script is as good as another. But avoid the broken or | |
4421 | # incompatible versions: | |
4422 | # SysV /etc/install, /usr/sbin/install | |
4423 | # SunOS /usr/etc/install | |
4424 | # IRIX /sbin/install | |
4425 | # AIX /bin/install | |
4426 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4427 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4428 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4429 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4430 | # OS/2's system install, which has a completely different semantic | |
4431 | # ./install, which can be erroneously created by make from ./install.sh. | |
4432 | # Reject install programs that cannot install multiple files. | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4434 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4435 | if test -z "$INSTALL"; then | |
4436 | if test "${ac_cv_path_install+set}" = set; then : | |
4437 | $as_echo_n "(cached) " >&6 | |
81ecdfbb RW |
4438 | else |
4439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4440 | for as_dir in $PATH | |
fd462a61 | 4441 | do |
81ecdfbb RW |
4442 | IFS=$as_save_IFS |
4443 | test -z "$as_dir" && as_dir=. | |
4444 | # Account for people who put trailing slashes in PATH elements. | |
4445 | case $as_dir/ in #(( | |
4446 | ./ | .// | /[cC]/* | \ | |
4447 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4448 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4449 | /usr/ucb/* ) ;; | |
4450 | *) | |
4451 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4452 | # Don't use installbsd from OSF since it installs stuff as root | |
4453 | # by default. | |
4454 | for ac_prog in ginstall scoinst install; do | |
4455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4456 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4457 | if test $ac_prog = install && | |
4458 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4459 | # AIX install. It has an incompatible calling convention. | |
4460 | : | |
4461 | elif test $ac_prog = install && | |
4462 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4463 | # program-specific install script used by HP pwplus--don't use. | |
4464 | : | |
4465 | else | |
4466 | rm -rf conftest.one conftest.two conftest.dir | |
4467 | echo one > conftest.one | |
4468 | echo two > conftest.two | |
4469 | mkdir conftest.dir | |
4470 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4471 | test -s conftest.one && test -s conftest.two && | |
4472 | test -s conftest.dir/conftest.one && | |
4473 | test -s conftest.dir/conftest.two | |
4474 | then | |
4475 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4476 | break 3 | |
4477 | fi | |
4478 | fi | |
4479 | fi | |
4480 | done | |
4481 | done | |
4482 | ;; | |
4483 | esac | |
fd462a61 | 4484 | |
81ecdfbb RW |
4485 | done |
4486 | IFS=$as_save_IFS | |
fd462a61 | 4487 | |
81ecdfbb | 4488 | rm -rf conftest.one conftest.two conftest.dir |
fd462a61 | 4489 | |
fd462a61 | 4490 | fi |
81ecdfbb RW |
4491 | if test "${ac_cv_path_install+set}" = set; then |
4492 | INSTALL=$ac_cv_path_install | |
4493 | else | |
4494 | # As a last resort, use the slow shell script. Don't cache a | |
4495 | # value for INSTALL within a source directory, because that will | |
4496 | # break other packages using the cache if that directory is | |
4497 | # removed, or if the value is a relative name. | |
4498 | INSTALL=$ac_install_sh | |
4499 | fi | |
fd462a61 | 4500 | fi |
81ecdfbb RW |
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4502 | $as_echo "$INSTALL" >&6; } | |
fd462a61 | 4503 | |
81ecdfbb RW |
4504 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4505 | # It thinks the first close brace ends the variable substitution. | |
4506 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
fd462a61 | 4507 | |
81ecdfbb | 4508 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fd462a61 | 4509 | |
81ecdfbb | 4510 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
e28b3332 | 4511 | |
e1d2394b MS |
4512 | if test -n "$ac_tool_prefix"; then |
4513 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4514 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4516 | $as_echo_n "checking for $ac_word... " >&6; } | |
4517 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4518 | $as_echo_n "(cached) " >&6 | |
4519 | else | |
4520 | if test -n "$AR"; then | |
4521 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4522 | else | |
4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4524 | for as_dir in $PATH | |
4525 | do | |
4526 | IFS=$as_save_IFS | |
4527 | test -z "$as_dir" && as_dir=. | |
4528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4530 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4532 | break 2 | |
4533 | fi | |
4534 | done | |
4535 | done | |
4536 | IFS=$as_save_IFS | |
4537 | ||
4538 | fi | |
4539 | fi | |
4540 | AR=$ac_cv_prog_AR | |
4541 | if test -n "$AR"; then | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4543 | $as_echo "$AR" >&6; } | |
4544 | else | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4546 | $as_echo "no" >&6; } | |
4547 | fi | |
4548 | ||
4549 | ||
4550 | fi | |
4551 | if test -z "$ac_cv_prog_AR"; then | |
4552 | ac_ct_AR=$AR | |
4553 | # Extract the first word of "ar", so it can be a program name with args. | |
4554 | set dummy ar; ac_word=$2 | |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4556 | $as_echo_n "checking for $ac_word... " >&6; } | |
4557 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4558 | $as_echo_n "(cached) " >&6 | |
4559 | else | |
4560 | if test -n "$ac_ct_AR"; then | |
4561 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4562 | else | |
4563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4564 | for as_dir in $PATH | |
4565 | do | |
4566 | IFS=$as_save_IFS | |
4567 | test -z "$as_dir" && as_dir=. | |
4568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4570 | ac_cv_prog_ac_ct_AR="ar" | |
4571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4572 | break 2 | |
4573 | fi | |
4574 | done | |
4575 | done | |
4576 | IFS=$as_save_IFS | |
4577 | ||
4578 | fi | |
4579 | fi | |
4580 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4581 | if test -n "$ac_ct_AR"; then | |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4583 | $as_echo "$ac_ct_AR" >&6; } | |
4584 | else | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4586 | $as_echo "no" >&6; } | |
4587 | fi | |
4588 | ||
4589 | if test "x$ac_ct_AR" = x; then | |
4590 | AR="" | |
4591 | else | |
4592 | case $cross_compiling:$ac_tool_warned in | |
4593 | yes:) | |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4596 | ac_tool_warned=yes ;; | |
4597 | esac | |
4598 | AR=$ac_ct_AR | |
4599 | fi | |
4600 | else | |
4601 | AR="$ac_cv_prog_AR" | |
4602 | fi | |
4603 | ||
c971b7fa PA |
4604 | if test -n "$ac_tool_prefix"; then |
4605 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4606 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4608 | $as_echo_n "checking for $ac_word... " >&6; } | |
4609 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
81ecdfbb RW |
4610 | $as_echo_n "(cached) " >&6 |
4611 | else | |
c971b7fa PA |
4612 | if test -n "$RANLIB"; then |
4613 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
e28b3332 | 4614 | else |
c971b7fa PA |
4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4616 | for as_dir in $PATH | |
4617 | do | |
4618 | IFS=$as_save_IFS | |
4619 | test -z "$as_dir" && as_dir=. | |
4620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4622 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4624 | break 2 | |
4625 | fi | |
4626 | done | |
4627 | done | |
4628 | IFS=$as_save_IFS | |
4629 | ||
4630 | fi | |
4631 | fi | |
4632 | RANLIB=$ac_cv_prog_RANLIB | |
4633 | if test -n "$RANLIB"; then | |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4635 | $as_echo "$RANLIB" >&6; } | |
4636 | else | |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4638 | $as_echo "no" >&6; } | |
4639 | fi | |
4640 | ||
4641 | ||
4642 | fi | |
4643 | if test -z "$ac_cv_prog_RANLIB"; then | |
4644 | ac_ct_RANLIB=$RANLIB | |
4645 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4646 | set dummy ranlib; ac_word=$2 | |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4648 | $as_echo_n "checking for $ac_word... " >&6; } | |
4649 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4650 | $as_echo_n "(cached) " >&6 | |
4651 | else | |
4652 | if test -n "$ac_ct_RANLIB"; then | |
4653 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4654 | else | |
4655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4656 | for as_dir in $PATH | |
4657 | do | |
4658 | IFS=$as_save_IFS | |
4659 | test -z "$as_dir" && as_dir=. | |
4660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4662 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4664 | break 2 | |
4665 | fi | |
4666 | done | |
4667 | done | |
4668 | IFS=$as_save_IFS | |
4669 | ||
4670 | fi | |
4671 | fi | |
4672 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4673 | if test -n "$ac_ct_RANLIB"; then | |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4675 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4676 | else | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4678 | $as_echo "no" >&6; } | |
4679 | fi | |
4680 | ||
4681 | if test "x$ac_ct_RANLIB" = x; then | |
4682 | RANLIB=":" | |
4683 | else | |
4684 | case $cross_compiling:$ac_tool_warned in | |
4685 | yes:) | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4687 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4688 | ac_tool_warned=yes ;; | |
4689 | esac | |
4690 | RANLIB=$ac_ct_RANLIB | |
4691 | fi | |
4692 | else | |
4693 | RANLIB="$ac_cv_prog_RANLIB" | |
4694 | fi | |
4695 | ||
4696 | ||
4697 | test "$program_prefix" != NONE && | |
4698 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4699 | # Use a double $ so make ignores it. | |
4700 | test "$program_suffix" != NONE && | |
4701 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4702 | # Double any \ or $. | |
4703 | # By default was `s,x,x', remove it if useless. | |
4704 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4705 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4706 | ||
4707 | ||
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4709 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4710 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4711 | $as_echo_n "(cached) " >&6 | |
4712 | else | |
4713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4714 | /* end confdefs.h. */ | |
4715 | #include <stdlib.h> | |
4716 | #include <stdarg.h> | |
4717 | #include <string.h> | |
4718 | #include <float.h> | |
4719 | ||
4720 | int | |
4721 | main () | |
4722 | { | |
4723 | ||
4724 | ; | |
4725 | return 0; | |
4726 | } | |
4727 | _ACEOF | |
4728 | if ac_fn_c_try_compile "$LINENO"; then : | |
4729 | ac_cv_header_stdc=yes | |
4730 | else | |
4731 | ac_cv_header_stdc=no | |
4732 | fi | |
4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4734 | ||
4735 | if test $ac_cv_header_stdc = yes; then | |
4736 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4738 | /* end confdefs.h. */ | |
4739 | #include <string.h> | |
4740 | ||
4741 | _ACEOF | |
4742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4743 | $EGREP "memchr" >/dev/null 2>&1; then : |
4744 | ||
68070c10 | 4745 | else |
81ecdfbb RW |
4746 | ac_cv_header_stdc=no |
4747 | fi | |
4748 | rm -f conftest* | |
68070c10 PA |
4749 | |
4750 | fi | |
68070c10 | 4751 | |
81ecdfbb RW |
4752 | if test $ac_cv_header_stdc = yes; then |
4753 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4755 | /* end confdefs.h. */ | |
4756 | #include <stdlib.h> | |
68070c10 | 4757 | |
68070c10 | 4758 | _ACEOF |
81ecdfbb RW |
4759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4760 | $EGREP "free" >/dev/null 2>&1; then : | |
68070c10 PA |
4761 | |
4762 | else | |
81ecdfbb | 4763 | ac_cv_header_stdc=no |
68070c10 | 4764 | fi |
81ecdfbb RW |
4765 | rm -f conftest* |
4766 | ||
68070c10 PA |
4767 | fi |
4768 | ||
81ecdfbb RW |
4769 | if test $ac_cv_header_stdc = yes; then |
4770 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4771 | if test "$cross_compiling" = yes; then : | |
4772 | : | |
43d5792c | 4773 | else |
81ecdfbb | 4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 4775 | /* end confdefs.h. */ |
81ecdfbb RW |
4776 | #include <ctype.h> |
4777 | #include <stdlib.h> | |
4778 | #if ((' ' & 0x0FF) == 0x020) | |
4779 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4780 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4781 | #else | |
4782 | # define ISLOWER(c) \ | |
4783 | (('a' <= (c) && (c) <= 'i') \ | |
4784 | || ('j' <= (c) && (c) <= 'r') \ | |
4785 | || ('s' <= (c) && (c) <= 'z')) | |
4786 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4787 | #endif | |
4788 | ||
4789 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
bec39cab AC |
4790 | int |
4791 | main () | |
4792 | { | |
81ecdfbb RW |
4793 | int i; |
4794 | for (i = 0; i < 256; i++) | |
4795 | if (XOR (islower (i), ISLOWER (i)) | |
4796 | || toupper (i) != TOUPPER (i)) | |
4797 | return 2; | |
bec39cab AC |
4798 | return 0; |
4799 | } | |
4800 | _ACEOF | |
81ecdfbb | 4801 | if ac_fn_c_try_run "$LINENO"; then : |
bec39cab | 4802 | |
81ecdfbb RW |
4803 | else |
4804 | ac_cv_header_stdc=no | |
43d5792c | 4805 | fi |
81ecdfbb RW |
4806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4807 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
43d5792c | 4808 | fi |
e122f1f5 | 4809 | |
68070c10 | 4810 | fi |
81ecdfbb RW |
4811 | fi |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4813 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4814 | if test $ac_cv_header_stdc = yes; then | |
68070c10 | 4815 | |
81ecdfbb | 4816 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
68070c10 | 4817 | |
68070c10 | 4818 | fi |
68070c10 | 4819 | |
68070c10 | 4820 | |
3bc3d82a PA |
4821 | # See if we are building with C++, and substitute COMPILER. |
4822 | ||
4823 | # Check whether --enable-build-with-cxx was given. | |
4824 | if test "${enable_build_with_cxx+set}" = set; then : | |
4825 | enableval=$enable_build_with_cxx; case $enableval in | |
4826 | yes | no) | |
4827 | ;; | |
4828 | *) | |
4829 | as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;; | |
4830 | esac | |
4831 | else | |
4832 | enable_build_with_cxx=no | |
4833 | fi | |
4834 | ||
4835 | ||
4836 | if test "$enable_build_with_cxx" = "yes"; then | |
dad44a1f | 4837 | COMPILER='$(CXX)' |
a994041d | 4838 | COMPILER_CFLAGS='$(CXXFLAGS)' |
3bc3d82a PA |
4839 | else |
4840 | COMPILER='$(CC)' | |
a994041d | 4841 | COMPILER_CFLAGS='$(CFLAGS)' |
3bc3d82a PA |
4842 | fi |
4843 | ||
4844 | ||
4845 | ||
a994041d | 4846 | |
17ef446e | 4847 | # Set the 'development' global. |
270c9937 | 4848 | . $srcdir/../../bfd/development.sh |
17ef446e PA |
4849 | |
4850 | # Enable -lmcheck by default (it provides cheap-enough memory | |
4851 | # mangling), but turn it off for releases. | |
4852 | if $development; then | |
4853 | libmcheck_default=yes | |
4854 | else | |
4855 | libmcheck_default=no | |
4856 | fi | |
4857 | ||
4858 | # Check whether --enable-libmcheck was given. | |
4859 | if test "${enable_libmcheck+set}" = set; then : | |
4860 | enableval=$enable_libmcheck; case "${enableval}" in | |
4861 | yes | y) ENABLE_LIBMCHECK="yes" ;; | |
4862 | no | n) ENABLE_LIBMCHECK="no" ;; | |
4863 | *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;; | |
4864 | esac | |
4865 | fi | |
4866 | ||
4867 | ||
4868 | if test -z "${ENABLE_LIBMCHECK}"; then | |
4869 | ENABLE_LIBMCHECK=${libmcheck_default} | |
4870 | fi | |
4871 | ||
4872 | if test "$ENABLE_LIBMCHECK" = "yes" ; then | |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5 | |
4874 | $as_echo_n "checking for main in -lmcheck... " >&6; } | |
4875 | if test "${ac_cv_lib_mcheck_main+set}" = set; then : | |
4876 | $as_echo_n "(cached) " >&6 | |
4877 | else | |
4878 | ac_check_lib_save_LIBS=$LIBS | |
4879 | LIBS="-lmcheck $LIBS" | |
4880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4881 | /* end confdefs.h. */ | |
4882 | ||
4883 | ||
4884 | int | |
4885 | main () | |
4886 | { | |
4887 | return main (); | |
4888 | ; | |
4889 | return 0; | |
4890 | } | |
4891 | _ACEOF | |
4892 | if ac_fn_c_try_link "$LINENO"; then : | |
4893 | ac_cv_lib_mcheck_main=yes | |
4894 | else | |
4895 | ac_cv_lib_mcheck_main=no | |
4896 | fi | |
4897 | rm -f core conftest.err conftest.$ac_objext \ | |
4898 | conftest$ac_exeext conftest.$ac_ext | |
4899 | LIBS=$ac_check_lib_save_LIBS | |
4900 | fi | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5 | |
4902 | $as_echo "$ac_cv_lib_mcheck_main" >&6; } | |
4903 | if test "x$ac_cv_lib_mcheck_main" = x""yes; then : | |
4904 | cat >>confdefs.h <<_ACEOF | |
4905 | #define HAVE_LIBMCHECK 1 | |
4906 | _ACEOF | |
4907 | ||
4908 | LIBS="-lmcheck $LIBS" | |
4909 | ||
4910 | fi | |
4911 | ||
4912 | fi | |
4913 | ||
4914 | ||
bd885420 YQ |
4915 | case ${build_alias} in |
4916 | "") build_noncanonical=${build} ;; | |
4917 | *) build_noncanonical=${build_alias} ;; | |
4918 | esac | |
4919 | ||
4920 | case ${host_alias} in | |
4921 | "") host_noncanonical=${build_noncanonical} ;; | |
4922 | *) host_noncanonical=${host_alias} ;; | |
4923 | esac | |
4924 | ||
4925 | case ${target_alias} in | |
4926 | "") target_noncanonical=${host_noncanonical} ;; | |
4927 | *) target_noncanonical=${target_alias} ;; | |
4928 | esac | |
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
61c125b9 TT |
4935 | # Dependency checking. |
4936 | rm -rf .tst 2>/dev/null | |
4937 | mkdir .tst 2>/dev/null | |
4938 | if test -d .tst; then | |
4939 | am__leading_dot=. | |
4940 | else | |
4941 | am__leading_dot=_ | |
4942 | fi | |
4943 | rmdir .tst 2>/dev/null | |
4944 | ||
4945 | DEPDIR="${am__leading_dot}deps" | |
4946 | ||
4947 | ac_config_commands="$ac_config_commands depdir" | |
4948 | ||
4949 | ||
4950 | depcc="$CC" am_compiler_list= | |
4951 | ||
4952 | am_depcomp=$ac_aux_dir/depcomp | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4954 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4955 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4956 | $as_echo_n "(cached) " >&6 | |
4957 | else | |
4958 | if test -f "$am_depcomp"; then | |
4959 | # We make a subdir and do the tests there. Otherwise we can end up | |
4960 | # making bogus files that we don't know about and never remove. For | |
4961 | # instance it was reported that on HP-UX the gcc test will end up | |
4962 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4963 | # in D'. | |
4964 | mkdir conftest.dir | |
4965 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4966 | # using a relative directory. | |
4967 | cp "$am_depcomp" conftest.dir | |
4968 | cd conftest.dir | |
4969 | # We will build objects and dependencies in a subdirectory because | |
4970 | # it helps to detect inapplicable dependency modes. For instance | |
4971 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4972 | # side effect of compilation, but ICC will put the dependencies in | |
4973 | # the current directory while Tru64 will put them in the object | |
4974 | # directory. | |
4975 | mkdir sub | |
4976 | ||
4977 | am_cv_CC_dependencies_compiler_type=none | |
4978 | if test "$am_compiler_list" = ""; then | |
4979 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4980 | fi | |
4981 | for depmode in $am_compiler_list; do | |
4982 | if test $depmode = none; then break; fi | |
4983 | ||
4984 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
4985 | # Setup a source with many dependencies, because some compilers | |
4986 | # like to wrap large dependency lists on column 80 (with \), and | |
4987 | # we should not choose a depcomp mode which is confused by this. | |
4988 | # | |
4989 | # We need to recreate these files for each test, as the compiler may | |
4990 | # overwrite some of them when testing with obscure command lines. | |
4991 | # This happens at least with the AIX C compiler. | |
4992 | : > sub/conftest.c | |
4993 | for i in 1 2 3 4 5 6; do | |
4994 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4995 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4996 | # Solaris 8's {/usr,}/bin/sh. | |
4997 | touch sub/conftst$i.h | |
4998 | done | |
4999 | echo "include sub/conftest.Po" > confmf | |
5000 | ||
5001 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5002 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5003 | # handle `-M -o', and we need to detect this. | |
5004 | depcmd="depmode=$depmode \ | |
5005 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5006 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5007 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
5008 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
5009 | if env $depcmd > conftest.err 2>&1 && | |
5010 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
5011 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
5012 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
5013 | # icc doesn't choke on unknown options, it will just issue warnings | |
5014 | # or remarks (even with -Werror). So we grep stderr for any message | |
5015 | # that says an option was ignored or not supported. | |
5016 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5017 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5018 | # The diagnosis changed in icc 8.0: | |
5019 | # icc: Command line remark: option '-MP' not supported | |
5020 | if (grep 'ignoring option' conftest.err || | |
5021 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5022 | am_cv_CC_dependencies_compiler_type=$depmode | |
5023 | $as_echo "$as_me:$LINENO: success" >&5 | |
5024 | break | |
5025 | fi | |
5026 | fi | |
5027 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
5028 | sed -e 's/^/| /' < conftest.err >&5 | |
5029 | done | |
5030 | ||
5031 | cd .. | |
5032 | rm -rf conftest.dir | |
5033 | else | |
5034 | am_cv_CC_dependencies_compiler_type=none | |
5035 | fi | |
5036 | ||
5037 | fi | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5039 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5040 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
5041 | then as_fn_error "no usable dependency style found" "$LINENO" 5 | |
5042 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5043 | ||
5044 | fi | |
5045 | ||
5046 | ||
c9a1864a YQ |
5047 | # Check for the 'make' the user wants to use. |
5048 | for ac_prog in make | |
5049 | do | |
5050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5051 | set dummy $ac_prog; ac_word=$2 | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5053 | $as_echo_n "checking for $ac_word... " >&6; } | |
5054 | if test "${ac_cv_prog_MAKE+set}" = set; then : | |
5055 | $as_echo_n "(cached) " >&6 | |
5056 | else | |
5057 | if test -n "$MAKE"; then | |
5058 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
5059 | else | |
5060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5061 | for as_dir in $PATH | |
5062 | do | |
5063 | IFS=$as_save_IFS | |
5064 | test -z "$as_dir" && as_dir=. | |
5065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5067 | ac_cv_prog_MAKE="$ac_prog" | |
5068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5069 | break 2 | |
5070 | fi | |
5071 | done | |
5072 | done | |
5073 | IFS=$as_save_IFS | |
5074 | ||
5075 | fi | |
5076 | fi | |
5077 | MAKE=$ac_cv_prog_MAKE | |
5078 | if test -n "$MAKE"; then | |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
5080 | $as_echo "$MAKE" >&6; } | |
5081 | else | |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5083 | $as_echo "no" >&6; } | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | test -n "$MAKE" && break | |
5088 | done | |
5089 | ||
61c125b9 TT |
5090 | MAKE_IS_GNU= |
5091 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
5092 | *GNU*) | |
5093 | MAKE_IS_GNU=yes | |
5094 | ;; | |
5095 | esac | |
5096 | if test "$MAKE_IS_GNU" = yes; then | |
5097 | GMAKE_TRUE= | |
5098 | GMAKE_FALSE='#' | |
5099 | else | |
5100 | GMAKE_TRUE='#' | |
5101 | GMAKE_FALSE= | |
5102 | fi | |
5103 | ||
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5105 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5106 | set x ${MAKE-make} | |
5107 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5108 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
5109 | $as_echo_n "(cached) " >&6 | |
5110 | else | |
5111 | cat >conftest.make <<\_ACEOF | |
5112 | SHELL = /bin/sh | |
5113 | all: | |
5114 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5115 | _ACEOF | |
5116 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5117 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5118 | *@@@%%%=?*=@@@%%%*) | |
5119 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5120 | *) | |
5121 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5122 | esac | |
5123 | rm -f conftest.make | |
5124 | fi | |
5125 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5127 | $as_echo "yes" >&6; } | |
5128 | SET_MAKE= | |
5129 | else | |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5131 | $as_echo "no" >&6; } | |
5132 | SET_MAKE="MAKE=${MAKE-make}" | |
5133 | fi | |
5134 | ||
c9a1864a | 5135 | |
648d586d JB |
5136 | gnulib_extra_configure_args= |
5137 | # If large-file support is disabled, make sure gnulib does the same. | |
5138 | if test "$enable_largefile" = no; then | |
5139 | gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile" | |
5140 | fi | |
5141 | ||
c971b7fa PA |
5142 | # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect |
5143 | # to find the the source subdir to be configured directly under | |
5144 | # gdbserver/. We need to build gnulib under some other directory not | |
5145 | # "gnulib", to avoid the problem of both GDB and GDBserver wanting to | |
5146 | # build it in the same directory, when building in the source dir. | |
5147 | ||
5148 | in_src="../gnulib" | |
5149 | in_build="build-gnulib-gdbserver" | |
648d586d | 5150 | in_extra_args="$gnulib_extra_configure_args" |
c971b7fa PA |
5151 | |
5152 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
5153 | # so they do not pile up. | |
5154 | ac_sub_configure_args= | |
5155 | ac_prev= | |
5156 | eval "set x $ac_configure_args" | |
5157 | shift | |
5158 | for ac_arg | |
5159 | do | |
5160 | if test -n "$ac_prev"; then | |
5161 | ac_prev= | |
5162 | continue | |
5163 | fi | |
5164 | case $ac_arg in | |
5165 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
5166 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
5167 | ac_prev=cache_file ;; | |
5168 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
5169 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
5170 | | --c=*) | |
5171 | ;; | |
5172 | --config-cache | -C) | |
5173 | ;; | |
5174 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
5175 | ac_prev=srcdir ;; | |
5176 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5177 | ;; | |
5178 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
5179 | ac_prev=prefix ;; | |
5180 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5181 | ;; | |
5182 | --disable-option-checking) | |
5183 | ;; | |
5184 | *) | |
5185 | case $ac_arg in | |
5186 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5187 | esac | |
5188 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
5189 | esac | |
5190 | done | |
5191 | ||
5192 | # Always prepend --prefix to ensure using the same prefix | |
5193 | # in subdir configurations. | |
5194 | ac_arg="--prefix=$prefix" | |
5195 | case $ac_arg in | |
5196 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5197 | esac | |
5198 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
5199 | ||
5200 | # Pass --silent | |
5201 | if test "$silent" = yes; then | |
5202 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
5203 | fi | |
5204 | ||
5205 | # Always prepend --disable-option-checking to silence warnings, since | |
5206 | # different subdirs can have different --enable and --with options. | |
5207 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
5208 | ||
5209 | ac_popdir=`pwd` | |
5210 | ac_dir=$in_build | |
5211 | ||
5212 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
5213 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
5214 | $as_echo "$ac_msg" >&6 | |
5215 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5216 | ||
38ea300a PA |
5217 | case $srcdir in |
5218 | [\\/]* | ?:[\\/]* ) | |
5219 | ac_srcdir=$srcdir/$in_src ;; | |
5220 | *) # Relative name. | |
5221 | ac_srcdir=../$srcdir/$in_src ;; | |
5222 | esac | |
c971b7fa PA |
5223 | |
5224 | cd "$ac_dir" | |
5225 | ||
5226 | ac_sub_configure=$ac_srcdir/configure | |
5227 | ||
5228 | # Make the cache file name correct relative to the subdirectory. | |
5229 | case $cache_file in | |
5230 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
5231 | *) # Relative name. | |
5232 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5233 | esac | |
5234 | ||
648d586d JB |
5235 | if test -n "$in_extra_args"; then |
5236 | # Add the extra args at the end. | |
5237 | ac_sub_configure_args="$ac_sub_configure_args $in_extra_args" | |
5238 | fi | |
5239 | ||
c971b7fa PA |
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
5241 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5242 | # The eval makes quoting arguments work. | |
5243 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
5244 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5245 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
5246 | ||
5247 | cd "$ac_popdir" | |
5248 | ||
5249 | ||
0b04e523 TT |
5250 | |
5251 | in_src="../../libiberty" | |
5252 | in_build="build-libiberty-gdbserver" | |
648d586d | 5253 | in_extra_args= |
0b04e523 TT |
5254 | |
5255 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
5256 | # so they do not pile up. | |
5257 | ac_sub_configure_args= | |
5258 | ac_prev= | |
5259 | eval "set x $ac_configure_args" | |
5260 | shift | |
5261 | for ac_arg | |
5262 | do | |
5263 | if test -n "$ac_prev"; then | |
5264 | ac_prev= | |
5265 | continue | |
5266 | fi | |
5267 | case $ac_arg in | |
5268 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
5269 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
5270 | ac_prev=cache_file ;; | |
5271 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
5272 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
5273 | | --c=*) | |
5274 | ;; | |
5275 | --config-cache | -C) | |
5276 | ;; | |
5277 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
5278 | ac_prev=srcdir ;; | |
5279 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5280 | ;; | |
5281 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
5282 | ac_prev=prefix ;; | |
5283 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5284 | ;; | |
5285 | --disable-option-checking) | |
5286 | ;; | |
5287 | *) | |
5288 | case $ac_arg in | |
5289 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5290 | esac | |
5291 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
5292 | esac | |
5293 | done | |
5294 | ||
5295 | # Always prepend --prefix to ensure using the same prefix | |
5296 | # in subdir configurations. | |
5297 | ac_arg="--prefix=$prefix" | |
5298 | case $ac_arg in | |
5299 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5300 | esac | |
5301 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
5302 | ||
5303 | # Pass --silent | |
5304 | if test "$silent" = yes; then | |
5305 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
5306 | fi | |
5307 | ||
5308 | # Always prepend --disable-option-checking to silence warnings, since | |
5309 | # different subdirs can have different --enable and --with options. | |
5310 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
5311 | ||
5312 | ac_popdir=`pwd` | |
5313 | ac_dir=$in_build | |
5314 | ||
5315 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
5316 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
5317 | $as_echo "$ac_msg" >&6 | |
5318 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5319 | ||
5320 | case $srcdir in | |
5321 | [\\/]* | ?:[\\/]* ) | |
5322 | ac_srcdir=$srcdir/$in_src ;; | |
5323 | *) # Relative name. | |
5324 | ac_srcdir=../$srcdir/$in_src ;; | |
5325 | esac | |
5326 | ||
5327 | cd "$ac_dir" | |
5328 | ||
5329 | ac_sub_configure=$ac_srcdir/configure | |
5330 | ||
5331 | # Make the cache file name correct relative to the subdirectory. | |
5332 | case $cache_file in | |
5333 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
5334 | *) # Relative name. | |
5335 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5336 | esac | |
5337 | ||
648d586d JB |
5338 | if test -n "$in_extra_args"; then |
5339 | # Add the extra args at the end. | |
5340 | ac_sub_configure_args="$ac_sub_configure_args $in_extra_args" | |
5341 | fi | |
5342 | ||
0b04e523 TT |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
5344 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
5345 | # The eval makes quoting arguments work. | |
5346 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
5347 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5348 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
5349 | ||
5350 | cd "$ac_popdir" | |
5351 | ||
5352 | ||
9c232dda | 5353 | for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h |
81ecdfbb RW |
5354 | do : |
5355 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5356 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5357 | eval as_val=\$$as_ac_Header | |
5358 | if test "x$as_val" = x""yes; then : | |
68070c10 | 5359 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 5360 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
68070c10 PA |
5361 | _ACEOF |
5362 | ||
ec56be1b | 5363 | fi |
ec56be1b | 5364 | |
81ecdfbb RW |
5365 | done |
5366 | ||
eb0edac8 GB |
5367 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5368 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
5369 | ||
5370 | else | |
5371 | ||
5372 | cat >>confdefs.h <<_ACEOF | |
5373 | #define pid_t int | |
5374 | _ACEOF | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | for ac_header in vfork.h | |
5379 | do : | |
5380 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5381 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5382 | cat >>confdefs.h <<_ACEOF | |
5383 | #define HAVE_VFORK_H 1 | |
5384 | _ACEOF | |
5385 | ||
5386 | fi | |
5387 | ||
5388 | done | |
5389 | ||
5390 | for ac_func in fork vfork | |
5391 | do : | |
5392 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5393 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5394 | eval as_val=\$$as_ac_var | |
5395 | if test "x$as_val" = x""yes; then : | |
5396 | cat >>confdefs.h <<_ACEOF | |
5397 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5398 | _ACEOF | |
5399 | ||
5400 | fi | |
5401 | done | |
5402 | ||
5403 | if test "x$ac_cv_func_fork" = xyes; then | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5405 | $as_echo_n "checking for working fork... " >&6; } | |
5406 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5407 | $as_echo_n "(cached) " >&6 | |
5408 | else | |
5409 | if test "$cross_compiling" = yes; then : | |
5410 | ac_cv_func_fork_works=cross | |
5411 | else | |
5412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5413 | /* end confdefs.h. */ | |
5414 | $ac_includes_default | |
5415 | int | |
5416 | main () | |
5417 | { | |
5418 | ||
5419 | /* By Ruediger Kuhlmann. */ | |
5420 | return fork () < 0; | |
5421 | ||
5422 | ; | |
5423 | return 0; | |
5424 | } | |
5425 | _ACEOF | |
5426 | if ac_fn_c_try_run "$LINENO"; then : | |
5427 | ac_cv_func_fork_works=yes | |
5428 | else | |
5429 | ac_cv_func_fork_works=no | |
5430 | fi | |
5431 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5432 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5433 | fi | |
5434 | ||
5435 | fi | |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5437 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5438 | ||
5439 | else | |
5440 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5441 | fi | |
5442 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5443 | case $host in | |
5444 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5445 | # Override, as these systems have only a dummy fork() stub | |
5446 | ac_cv_func_fork_works=no | |
5447 | ;; | |
5448 | *) | |
5449 | ac_cv_func_fork_works=yes | |
5450 | ;; | |
5451 | esac | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5453 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5454 | fi | |
5455 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5456 | if test "x$ac_cv_func_vfork" = xyes; then | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5458 | $as_echo_n "checking for working vfork... " >&6; } | |
5459 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | if test "$cross_compiling" = yes; then : | |
5463 | ac_cv_func_vfork_works=cross | |
5464 | else | |
5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5466 | /* end confdefs.h. */ | |
5467 | /* Thanks to Paul Eggert for this test. */ | |
5468 | $ac_includes_default | |
5469 | #include <sys/wait.h> | |
5470 | #ifdef HAVE_VFORK_H | |
5471 | # include <vfork.h> | |
5472 | #endif | |
5473 | /* On some sparc systems, changes by the child to local and incoming | |
5474 | argument registers are propagated back to the parent. The compiler | |
5475 | is told about this with #include <vfork.h>, but some compilers | |
5476 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5477 | static variable whose address is put into a register that is | |
5478 | clobbered by the vfork. */ | |
5479 | static void | |
5480 | #ifdef __cplusplus | |
5481 | sparc_address_test (int arg) | |
5482 | # else | |
5483 | sparc_address_test (arg) int arg; | |
5484 | #endif | |
5485 | { | |
5486 | static pid_t child; | |
5487 | if (!child) { | |
5488 | child = vfork (); | |
5489 | if (child < 0) { | |
5490 | perror ("vfork"); | |
5491 | _exit(2); | |
5492 | } | |
5493 | if (!child) { | |
5494 | arg = getpid(); | |
5495 | write(-1, "", 0); | |
5496 | _exit (arg); | |
5497 | } | |
5498 | } | |
5499 | } | |
5500 | ||
5501 | int | |
5502 | main () | |
5503 | { | |
5504 | pid_t parent = getpid (); | |
5505 | pid_t child; | |
5506 | ||
5507 | sparc_address_test (0); | |
5508 | ||
5509 | child = vfork (); | |
5510 | ||
5511 | if (child == 0) { | |
5512 | /* Here is another test for sparc vfork register problems. This | |
5513 | test uses lots of local variables, at least as many local | |
5514 | variables as main has allocated so far including compiler | |
5515 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5516 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5517 | reuse the register of parent for one of the local variables, | |
5518 | since it will think that parent can't possibly be used any more | |
5519 | in this routine. Assigning to the local variable will thus | |
5520 | munge parent in the parent process. */ | |
5521 | pid_t | |
5522 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5523 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5524 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5525 | use the same hardware register for all 8 local variables. */ | |
5526 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5527 | || p != p5 || p != p6 || p != p7) | |
5528 | _exit(1); | |
5529 | ||
5530 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5531 | from child file descriptors. If the child closes a descriptor | |
5532 | before it execs or exits, this munges the parent's descriptor | |
5533 | as well. Test for this by closing stdout in the child. */ | |
5534 | _exit(close(fileno(stdout)) != 0); | |
5535 | } else { | |
5536 | int status; | |
5537 | struct stat st; | |
5538 | ||
5539 | while (wait(&status) != child) | |
5540 | ; | |
5541 | return ( | |
5542 | /* Was there some problem with vforking? */ | |
5543 | child < 0 | |
5544 | ||
5545 | /* Did the child fail? (This shouldn't happen.) */ | |
5546 | || status | |
5547 | ||
5548 | /* Did the vfork/compiler bug occur? */ | |
5549 | || parent != getpid() | |
5550 | ||
5551 | /* Did the file descriptor bug occur? */ | |
5552 | || fstat(fileno(stdout), &st) != 0 | |
5553 | ); | |
5554 | } | |
5555 | } | |
5556 | _ACEOF | |
5557 | if ac_fn_c_try_run "$LINENO"; then : | |
5558 | ac_cv_func_vfork_works=yes | |
5559 | else | |
5560 | ac_cv_func_vfork_works=no | |
5561 | fi | |
5562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5563 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5564 | fi | |
5565 | ||
5566 | fi | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
5568 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
5569 | ||
5570 | fi; | |
5571 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5572 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5574 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5575 | fi | |
5576 | ||
5577 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5578 | ||
5579 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
5580 | ||
5581 | else | |
5582 | ||
5583 | $as_echo "#define vfork fork" >>confdefs.h | |
5584 | ||
5585 | fi | |
5586 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5587 | ||
5588 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
5589 | ||
5590 | fi | |
5591 | ||
4b8b5e72 | 5592 | for ac_func in getauxval pread pwrite pread64 setns |
81ecdfbb RW |
5593 | do : |
5594 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5595 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5596 | eval as_val=\$$as_ac_var | |
5597 | if test "x$as_val" = x""yes; then : | |
5598 | cat >>confdefs.h <<_ACEOF | |
5599 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ec56be1b PA |
5600 | _ACEOF |
5601 | ||
81ecdfbb RW |
5602 | fi |
5603 | done | |
ec56be1b | 5604 | |
e122f1f5 | 5605 | |
3266f10b TT |
5606 | |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5608 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5609 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5610 | $as_echo_n "(cached) " >&6 | |
5611 | else | |
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5613 | /* end confdefs.h. */ | |
5614 | #include <stdlib.h> | |
5615 | #include <stdarg.h> | |
5616 | #include <string.h> | |
5617 | #include <float.h> | |
5618 | ||
5619 | int | |
5620 | main () | |
5621 | { | |
5622 | ||
5623 | ; | |
5624 | return 0; | |
5625 | } | |
5626 | _ACEOF | |
5627 | if ac_fn_c_try_compile "$LINENO"; then : | |
5628 | ac_cv_header_stdc=yes | |
5629 | else | |
5630 | ac_cv_header_stdc=no | |
5631 | fi | |
5632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5633 | ||
5634 | if test $ac_cv_header_stdc = yes; then | |
5635 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5637 | /* end confdefs.h. */ | |
5638 | #include <string.h> | |
5639 | ||
5640 | _ACEOF | |
5641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5642 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5643 | ||
5644 | else | |
5645 | ac_cv_header_stdc=no | |
5646 | fi | |
5647 | rm -f conftest* | |
5648 | ||
5649 | fi | |
5650 | ||
5651 | if test $ac_cv_header_stdc = yes; then | |
5652 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5654 | /* end confdefs.h. */ | |
5655 | #include <stdlib.h> | |
5656 | ||
5657 | _ACEOF | |
5658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5659 | $EGREP "free" >/dev/null 2>&1; then : | |
5660 | ||
5661 | else | |
5662 | ac_cv_header_stdc=no | |
5663 | fi | |
5664 | rm -f conftest* | |
5665 | ||
5666 | fi | |
5667 | ||
5668 | if test $ac_cv_header_stdc = yes; then | |
5669 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5670 | if test "$cross_compiling" = yes; then : | |
5671 | : | |
5672 | else | |
5673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5674 | /* end confdefs.h. */ | |
5675 | #include <ctype.h> | |
5676 | #include <stdlib.h> | |
5677 | #if ((' ' & 0x0FF) == 0x020) | |
5678 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5679 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5680 | #else | |
5681 | # define ISLOWER(c) \ | |
5682 | (('a' <= (c) && (c) <= 'i') \ | |
5683 | || ('j' <= (c) && (c) <= 'r') \ | |
5684 | || ('s' <= (c) && (c) <= 'z')) | |
5685 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5686 | #endif | |
5687 | ||
5688 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5689 | int | |
5690 | main () | |
5691 | { | |
5692 | int i; | |
5693 | for (i = 0; i < 256; i++) | |
5694 | if (XOR (islower (i), ISLOWER (i)) | |
5695 | || toupper (i) != TOUPPER (i)) | |
5696 | return 2; | |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
5700 | if ac_fn_c_try_run "$LINENO"; then : | |
5701 | ||
5702 | else | |
5703 | ac_cv_header_stdc=no | |
5704 | fi | |
5705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5706 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5707 | fi | |
5708 | ||
5709 | fi | |
5710 | fi | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5712 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5713 | if test $ac_cv_header_stdc = yes; then | |
5714 | ||
5715 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5716 | ||
3266f10b TT |
5717 | fi |
5718 | ||
5719 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5720 | # for constant arguments. Useless! | |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5722 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5723 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5724 | $as_echo_n "(cached) " >&6 | |
5725 | else | |
5726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5727 | /* end confdefs.h. */ | |
5728 | #include <alloca.h> | |
5729 | int | |
5730 | main () | |
5731 | { | |
5732 | char *p = (char *) alloca (2 * sizeof (int)); | |
5733 | if (p) return 0; | |
5734 | ; | |
5735 | return 0; | |
5736 | } | |
5737 | _ACEOF | |
5738 | if ac_fn_c_try_link "$LINENO"; then : | |
5739 | ac_cv_working_alloca_h=yes | |
5740 | else | |
5741 | ac_cv_working_alloca_h=no | |
5742 | fi | |
5743 | rm -f core conftest.err conftest.$ac_objext \ | |
5744 | conftest$ac_exeext conftest.$ac_ext | |
5745 | fi | |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
5747 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5748 | if test $ac_cv_working_alloca_h = yes; then | |
5749 | ||
5750 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
5751 | ||
5752 | fi | |
5753 | ||
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
5755 | $as_echo_n "checking for alloca... " >&6; } | |
5756 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
5757 | $as_echo_n "(cached) " >&6 | |
5758 | else | |
5759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5760 | /* end confdefs.h. */ | |
5761 | #ifdef __GNUC__ | |
5762 | # define alloca __builtin_alloca | |
5763 | #else | |
5764 | # ifdef _MSC_VER | |
5765 | # include <malloc.h> | |
5766 | # define alloca _alloca | |
5767 | # else | |
5768 | # ifdef HAVE_ALLOCA_H | |
5769 | # include <alloca.h> | |
5770 | # else | |
5771 | # ifdef _AIX | |
5772 | #pragma alloca | |
5773 | # else | |
5774 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5775 | char *alloca (); | |
5776 | # endif | |
5777 | # endif | |
5778 | # endif | |
5779 | # endif | |
5780 | #endif | |
5781 | ||
5782 | int | |
5783 | main () | |
5784 | { | |
5785 | char *p = (char *) alloca (1); | |
5786 | if (p) return 0; | |
5787 | ; | |
5788 | return 0; | |
5789 | } | |
5790 | _ACEOF | |
5791 | if ac_fn_c_try_link "$LINENO"; then : | |
5792 | ac_cv_func_alloca_works=yes | |
5793 | else | |
5794 | ac_cv_func_alloca_works=no | |
5795 | fi | |
5796 | rm -f core conftest.err conftest.$ac_objext \ | |
5797 | conftest$ac_exeext conftest.$ac_ext | |
5798 | fi | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5800 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
5801 | ||
5802 | if test $ac_cv_func_alloca_works = yes; then | |
5803 | ||
5804 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
5805 | ||
5806 | else | |
5807 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5808 | # that cause trouble. Some versions do not even contain alloca or | |
5809 | # contain a buggy version. If you still want to use their alloca, | |
5810 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5811 | ||
5812 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
5813 | ||
5814 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
5815 | ||
5816 | ||
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5818 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5819 | if test "${ac_cv_os_cray+set}" = set; then : | |
5820 | $as_echo_n "(cached) " >&6 | |
5821 | else | |
5822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5823 | /* end confdefs.h. */ | |
5824 | #if defined CRAY && ! defined CRAY2 | |
5825 | webecray | |
5826 | #else | |
5827 | wenotbecray | |
5828 | #endif | |
5829 | ||
5830 | _ACEOF | |
5831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5832 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5833 | ac_cv_os_cray=yes | |
5834 | else | |
5835 | ac_cv_os_cray=no | |
5836 | fi | |
5837 | rm -f conftest* | |
5838 | ||
5839 | fi | |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5841 | $as_echo "$ac_cv_os_cray" >&6; } | |
5842 | if test $ac_cv_os_cray = yes; then | |
5843 | for ac_func in _getb67 GETB67 getb67; do | |
5844 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5845 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5846 | eval as_val=\$$as_ac_var | |
5847 | if test "x$as_val" = x""yes; then : | |
5848 | ||
5849 | cat >>confdefs.h <<_ACEOF | |
5850 | #define CRAY_STACKSEG_END $ac_func | |
5851 | _ACEOF | |
5852 | ||
5853 | break | |
5854 | fi | |
5855 | ||
5856 | done | |
5857 | fi | |
5858 | ||
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
5860 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5861 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
5862 | $as_echo_n "(cached) " >&6 | |
5863 | else | |
5864 | if test "$cross_compiling" = yes; then : | |
5865 | ac_cv_c_stack_direction=0 | |
5866 | else | |
5867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5868 | /* end confdefs.h. */ | |
5869 | $ac_includes_default | |
5870 | int | |
5871 | find_stack_direction () | |
5872 | { | |
5873 | static char *addr = 0; | |
5874 | auto char dummy; | |
5875 | if (addr == 0) | |
5876 | { | |
5877 | addr = &dummy; | |
5878 | return find_stack_direction (); | |
5879 | } | |
5880 | else | |
5881 | return (&dummy > addr) ? 1 : -1; | |
5882 | } | |
5883 | ||
5884 | int | |
5885 | main () | |
5886 | { | |
5887 | return find_stack_direction () < 0; | |
5888 | } | |
5889 | _ACEOF | |
5890 | if ac_fn_c_try_run "$LINENO"; then : | |
5891 | ac_cv_c_stack_direction=1 | |
5892 | else | |
5893 | ac_cv_c_stack_direction=-1 | |
5894 | fi | |
5895 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5896 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5897 | fi | |
5898 | ||
5899 | fi | |
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
5901 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5902 | cat >>confdefs.h <<_ACEOF | |
5903 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5904 | _ACEOF | |
5905 | ||
5906 | ||
5907 | fi | |
5908 | ||
5909 | ||
5910 | ||
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | |
5912 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
5913 | if test "${am_cv_langinfo_codeset+set}" = set; then : | |
5914 | $as_echo_n "(cached) " >&6 | |
5915 | else | |
5916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5917 | /* end confdefs.h. */ | |
5918 | #include <langinfo.h> | |
5919 | int | |
5920 | main () | |
5921 | { | |
5922 | char* cs = nl_langinfo(CODESET); | |
5923 | ; | |
5924 | return 0; | |
5925 | } | |
5926 | _ACEOF | |
5927 | if ac_fn_c_try_link "$LINENO"; then : | |
5928 | am_cv_langinfo_codeset=yes | |
5929 | else | |
5930 | am_cv_langinfo_codeset=no | |
5931 | fi | |
5932 | rm -f core conftest.err conftest.$ac_objext \ | |
5933 | conftest$ac_exeext conftest.$ac_ext | |
5934 | ||
5935 | fi | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 | |
5937 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
5938 | if test $am_cv_langinfo_codeset = yes; then | |
5939 | ||
5940 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h | |
5941 | ||
5942 | fi | |
5943 | ||
5944 | ||
a3d08894 | 5945 | for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h |
3266f10b TT |
5946 | do : |
5947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5948 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5949 | eval as_val=\$$as_ac_Header | |
5950 | if test "x$as_val" = x""yes; then : | |
5951 | cat >>confdefs.h <<_ACEOF | |
5952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5953 | _ACEOF | |
5954 | ||
5955 | fi | |
5956 | ||
5957 | done | |
5958 | ||
5959 | ||
5960 | for ac_func in fdwalk getrlimit pipe pipe2 socketpair | |
5961 | do : | |
5962 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5963 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5964 | eval as_val=\$$as_ac_var | |
5965 | if test "x$as_val" = x""yes; then : | |
5966 | cat >>confdefs.h <<_ACEOF | |
5967 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5968 | _ACEOF | |
5969 | ||
5970 | fi | |
5971 | done | |
5972 | ||
5973 | ||
5974 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" | |
5975 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : | |
5976 | ac_have_decl=1 | |
5977 | else | |
5978 | ac_have_decl=0 | |
5979 | fi | |
5980 | ||
5981 | cat >>confdefs.h <<_ACEOF | |
5982 | #define HAVE_DECL_STRERROR $ac_have_decl | |
5983 | _ACEOF | |
5984 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" | |
5985 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
5986 | ac_have_decl=1 | |
5987 | else | |
5988 | ac_have_decl=0 | |
5989 | fi | |
5990 | ||
5991 | cat >>confdefs.h <<_ACEOF | |
5992 | #define HAVE_DECL_STRSTR $ac_have_decl | |
5993 | _ACEOF | |
5994 | ||
5995 | ||
e9bcb658 GB |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 |
5997 | $as_echo_n "checking for sigsetjmp... " >&6; } | |
5998 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then : | |
5999 | $as_echo_n "(cached) " >&6 | |
6000 | else | |
6001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6002 | /* end confdefs.h. */ | |
6003 | ||
6004 | #include <setjmp.h> | |
6005 | ||
6006 | int | |
6007 | main () | |
6008 | { | |
6009 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); | |
6010 | ; | |
6011 | return 0; | |
6012 | } | |
6013 | _ACEOF | |
6014 | if ac_fn_c_try_compile "$LINENO"; then : | |
6015 | gdb_cv_func_sigsetjmp=yes | |
6016 | else | |
6017 | gdb_cv_func_sigsetjmp=no | |
6018 | fi | |
6019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6020 | fi | |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 | |
6022 | $as_echo "$gdb_cv_func_sigsetjmp" >&6; } | |
6023 | if test $gdb_cv_func_sigsetjmp = yes; then | |
6024 | ||
6025 | $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h | |
6026 | ||
6027 | fi | |
6028 | ||
3266f10b | 6029 | |
eb7aa561 PA |
6030 | # Check the return and argument types of ptrace. |
6031 | ||
6032 | ||
54019719 | 6033 | |
eb7aa561 PA |
6034 | for ac_header in sys/ptrace.h ptrace.h |
6035 | do : | |
6036 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6037 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6038 | eval as_val=\$$as_ac_Header | |
6039 | if test "x$as_val" = x""yes; then : | |
6040 | cat >>confdefs.h <<_ACEOF | |
6041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6042 | _ACEOF | |
6043 | ||
6044 | fi | |
6045 | ||
6046 | done | |
6047 | ||
6048 | ||
54019719 PA |
6049 | # Needs to be tested in C++ mode, to detect whether we need to cast |
6050 | # the first argument to enum __ptrace_request. | |
6051 | if test "$enable_build_with_cxx" = "yes"; then | |
6052 | ac_ext=cpp | |
6053 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6057 | ||
6058 | fi | |
6059 | ||
eb7aa561 PA |
6060 | gdb_ptrace_headers=' |
6061 | #include <sys/types.h> | |
6062 | #if HAVE_SYS_PTRACE_H | |
6063 | # include <sys/ptrace.h> | |
6064 | #endif | |
6065 | #if HAVE_UNISTD_H | |
6066 | # include <unistd.h> | |
6067 | #endif | |
6068 | ' | |
6069 | # There is no point in checking if we don't have a prototype. | |
54019719 | 6070 | ac_fn_cxx_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers |
eb7aa561 PA |
6071 | " |
6072 | if test "x$ac_cv_have_decl_ptrace" = x""yes; then : | |
6073 | ac_have_decl=1 | |
6074 | else | |
6075 | ac_have_decl=0 | |
6076 | fi | |
6077 | ||
6078 | cat >>confdefs.h <<_ACEOF | |
6079 | #define HAVE_DECL_PTRACE $ac_have_decl | |
6080 | _ACEOF | |
6081 | if test $ac_have_decl = 1; then : | |
6082 | ||
6083 | else | |
6084 | ||
6085 | : ${gdb_cv_func_ptrace_ret='int'} | |
6086 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
6087 | ||
6088 | fi | |
6089 | ||
6090 | # Check return type. Varargs (used on GNU/Linux) conflict with the | |
6091 | # empty argument list, so check for that explicitly. | |
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5 | |
6093 | $as_echo_n "checking return type of ptrace... " >&6; } | |
6094 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then : | |
6095 | $as_echo_n "(cached) " >&6 | |
6096 | else | |
6097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6098 | /* end confdefs.h. */ | |
6099 | $gdb_ptrace_headers | |
6100 | int | |
6101 | main () | |
6102 | { | |
6103 | extern long ptrace (enum __ptrace_request, ...); | |
6104 | ; | |
6105 | return 0; | |
6106 | } | |
6107 | _ACEOF | |
54019719 | 6108 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eb7aa561 PA |
6109 | gdb_cv_func_ptrace_ret='long' |
6110 | else | |
6111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6112 | /* end confdefs.h. */ | |
6113 | $gdb_ptrace_headers | |
6114 | int | |
6115 | main () | |
6116 | { | |
6117 | extern int ptrace (); | |
6118 | ; | |
6119 | return 0; | |
6120 | } | |
6121 | _ACEOF | |
54019719 | 6122 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eb7aa561 PA |
6123 | gdb_cv_func_ptrace_ret='int' |
6124 | else | |
6125 | gdb_cv_func_ptrace_ret='long' | |
6126 | fi | |
6127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6128 | fi | |
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6130 | fi | |
6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5 | |
6132 | $as_echo "$gdb_cv_func_ptrace_ret" >&6; } | |
6133 | ||
6134 | cat >>confdefs.h <<_ACEOF | |
6135 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
6136 | _ACEOF | |
6137 | ||
6138 | # Check argument types. | |
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5 | |
6140 | $as_echo_n "checking types of arguments for ptrace... " >&6; } | |
6141 | if test "${gdb_cv_func_ptrace_args+set}" = set; then : | |
6142 | $as_echo_n "(cached) " >&6 | |
6143 | else | |
6144 | ||
6145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6146 | /* end confdefs.h. */ | |
6147 | $gdb_ptrace_headers | |
6148 | int | |
6149 | main () | |
6150 | { | |
6151 | extern long ptrace (enum __ptrace_request, ...); | |
6152 | ; | |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
54019719 PA |
6156 | if ac_fn_cxx_try_compile "$LINENO"; then : |
6157 | gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long' | |
eb7aa561 PA |
6158 | else |
6159 | ||
6160 | for gdb_arg1 in 'int' 'long'; do | |
6161 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
6162 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do | |
6163 | for gdb_arg4 in 'int' 'long' 'void *'; do | |
6164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6165 | /* end confdefs.h. */ | |
6166 | $gdb_ptrace_headers | |
6167 | int | |
6168 | main () | |
6169 | { | |
6170 | ||
6171 | extern $gdb_cv_func_ptrace_ret | |
6172 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
6173 | ||
6174 | ; | |
6175 | return 0; | |
6176 | } | |
6177 | _ACEOF | |
54019719 | 6178 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eb7aa561 PA |
6179 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
6180 | break 4; | |
6181 | fi | |
6182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6183 | for gdb_arg5 in 'int *' 'int' 'long'; do | |
6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6185 | /* end confdefs.h. */ | |
6186 | $gdb_ptrace_headers | |
6187 | int | |
6188 | main () | |
6189 | { | |
6190 | ||
6191 | extern $gdb_cv_func_ptrace_ret | |
6192 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
6193 | ||
6194 | ; | |
6195 | return 0; | |
6196 | } | |
6197 | _ACEOF | |
54019719 | 6198 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eb7aa561 PA |
6199 | |
6200 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
6201 | break 5; | |
6202 | fi | |
6203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6204 | done | |
6205 | done | |
6206 | done | |
6207 | done | |
6208 | done | |
6209 | # Provide a safe default value. | |
6210 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
6211 | ||
6212 | fi | |
6213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6214 | fi | |
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5 | |
6216 | $as_echo "$gdb_cv_func_ptrace_args" >&6; } | |
6217 | ac_save_IFS=$IFS; IFS=',' | |
6218 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
6219 | IFS=$ac_save_IFS | |
6220 | shift | |
6221 | ||
54019719 PA |
6222 | cat >>confdefs.h <<_ACEOF |
6223 | #define PTRACE_TYPE_ARG1 $1 | |
6224 | _ACEOF | |
6225 | ||
6226 | ||
eb7aa561 PA |
6227 | cat >>confdefs.h <<_ACEOF |
6228 | #define PTRACE_TYPE_ARG3 $3 | |
6229 | _ACEOF | |
6230 | ||
6231 | ||
6232 | cat >>confdefs.h <<_ACEOF | |
6233 | #define PTRACE_TYPE_ARG4 $4 | |
6234 | _ACEOF | |
6235 | ||
6236 | if test -n "$5"; then | |
6237 | ||
6238 | cat >>confdefs.h <<_ACEOF | |
6239 | #define PTRACE_TYPE_ARG5 $5 | |
6240 | _ACEOF | |
6241 | ||
6242 | fi | |
6243 | ||
54019719 PA |
6244 | if test "$enable_build_with_cxx" = "yes"; then |
6245 | ac_ext=c | |
6246 | ac_cpp='$CPP $CPPFLAGS' | |
6247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6250 | ||
6251 | fi | |
6252 | ||
eb7aa561 | 6253 | |
0fb4aa4b PA |
6254 | # Check for UST |
6255 | ustlibs="" | |
6256 | ustinc="" | |
6257 | ||
6258 | ||
6259 | # Check whether --with-ust was given. | |
6260 | if test "${with_ust+set}" = set; then : | |
6261 | withval=$with_ust; | |
6262 | fi | |
6263 | ||
6264 | ||
6265 | # Check whether --with-ust_include was given. | |
6266 | if test "${with_ust_include+set}" = set; then : | |
6267 | withval=$with_ust_include; | |
6268 | fi | |
6269 | ||
6270 | ||
6271 | # Check whether --with-ust_lib was given. | |
6272 | if test "${with_ust_lib+set}" = set; then : | |
6273 | withval=$with_ust_lib; | |
6274 | fi | |
6275 | ||
6276 | ||
6277 | case $with_ust in | |
6278 | no) | |
6279 | ustlibs= | |
6280 | ustinc= | |
6281 | ;; | |
6282 | "" | yes) | |
6283 | ustlibs=" -lust " | |
6284 | ustinc="" | |
6285 | ;; | |
6286 | *) | |
6287 | ustlibs="-L$with_ust/lib -lust" | |
6288 | ustinc="-I$with_ust/include " | |
6289 | ;; | |
6290 | esac | |
6291 | if test "x$with_ust_include" != x; then | |
6292 | ustinc="-I$with_ust_include " | |
6293 | fi | |
6294 | if test "x$with_ust_lib" != x; then | |
6295 | ustlibs="-L$with_ust_lib -lust" | |
6296 | fi | |
6297 | ||
6298 | if test "x$with_ust" != "xno"; then | |
6299 | saved_CFLAGS="$CFLAGS" | |
6300 | CFLAGS="$CFLAGS $ustinc" | |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5 | |
6302 | $as_echo_n "checking for ust... " >&6; } | |
6303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6304 | /* end confdefs.h. */ | |
6305 | ||
6306 | #define CONFIG_UST_GDB_INTEGRATION | |
6307 | #include <ust/ust.h> | |
6308 | ||
6309 | int | |
6310 | main () | |
6311 | { | |
6312 | ||
6313 | ; | |
6314 | return 0; | |
6315 | } | |
6316 | _ACEOF | |
6317 | if ac_fn_c_try_compile "$LINENO"; then : | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6319 | $as_echo "yes" >&6; }; | |
6320 | $as_echo "#define HAVE_UST 1" >>confdefs.h | |
6321 | ||
6322 | else | |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6324 | $as_echo "no" >&6; }; ustlibs= ; ustinc= | |
6325 | fi | |
6326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6327 | CFLAGS="$saved_CFLAGS" | |
6328 | fi | |
6329 | ||
6330 | # Flags needed for UST | |
6331 | ||
6332 | ||
6333 | ||
8f13a3ce | 6334 | |
d4596a3d PA |
6335 | # Check whether --enable-werror was given. |
6336 | if test "${enable_werror+set}" = set; then : | |
6337 | enableval=$enable_werror; case "${enableval}" in | |
6338 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6339 | no | n) ERROR_ON_WARNING="no" ;; | |
6340 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
6341 | esac | |
6342 | fi | |
6343 | ||
6344 | ||
9a084706 | 6345 | # Enable -Werror by default when using gcc. Turn it off for releases. |
8f13a3ce | 6346 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then |
d4596a3d PA |
6347 | ERROR_ON_WARNING=yes |
6348 | fi | |
6349 | ||
6350 | WERROR_CFLAGS="" | |
6351 | if test "${ERROR_ON_WARNING}" = yes ; then | |
6352 | WERROR_CFLAGS="-Werror" | |
6353 | fi | |
6354 | ||
8f13a3ce | 6355 | # These options work in either C or C++ modes. |
aac331e4 | 6356 | build_warnings="-Wall -Wpointer-arith \ |
8f13a3ce MF |
6357 | -Wno-unused -Wunused-value -Wunused-function \ |
6358 | -Wno-switch -Wno-char-subscripts \ | |
6359 | -Wempty-body" | |
d4596a3d | 6360 | |
3bc3d82a PA |
6361 | # Now add in C and C++ specific options, depending on mode. |
6362 | if test "$enable_build_with_cxx" = "yes"; then | |
6363 | build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \ | |
6364 | -Wno-narrowing" | |
aac331e4 | 6365 | else |
8f13a3ce MF |
6366 | build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \ |
6367 | -Wdeclaration-after-statement -Wmissing-parameter-type \ | |
6368 | -Wold-style-declaration -Wold-style-definition" | |
6369 | fi | |
6370 | ||
6371 | # Enable -Wno-format by default when using gcc on mingw since many | |
6372 | # GCC versions complain about %I64. | |
6373 | case "${host}" in | |
6374 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
6375 | *) build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
6376 | esac | |
6377 | ||
6378 | # Check whether --enable-build-warnings was given. | |
6379 | if test "${enable_build_warnings+set}" = set; then : | |
6380 | enableval=$enable_build_warnings; case "${enableval}" in | |
6381 | yes) ;; | |
6382 | no) build_warnings="-w";; | |
6383 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6384 | build_warnings="${build_warnings} ${t}";; | |
6385 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6386 | build_warnings="${t} ${build_warnings}";; | |
6387 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6388 | esac | |
6389 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
6390 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
6391 | fi | |
6392 | fi | |
6393 | # Check whether --enable-gdb-build-warnings was given. | |
6394 | if test "${enable_gdb_build_warnings+set}" = set; then : | |
6395 | enableval=$enable_gdb_build_warnings; case "${enableval}" in | |
6396 | yes) ;; | |
6397 | no) build_warnings="-w";; | |
6398 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6399 | build_warnings="${build_warnings} ${t}";; | |
6400 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
6401 | build_warnings="${t} ${build_warnings}";; | |
6402 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6403 | esac | |
6404 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
6405 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
6406 | fi | |
3bc3d82a PA |
6407 | fi |
6408 | ||
6409 | # The set of warnings supported by a C++ compiler is not the same as | |
6410 | # of the C compiler. | |
6411 | if test "$enable_build_with_cxx" = "yes"; then | |
6412 | ac_ext=cpp | |
6413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6417 | ||
6418 | fi | |
6419 | ||
d4596a3d | 6420 | WARN_CFLAGS="" |
8f13a3ce | 6421 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
d4596a3d PA |
6422 | then |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
6424 | $as_echo_n "checking compiler warning flags... " >&6; } | |
6425 | # Separate out the -Werror flag as some files just cannot be | |
6426 | # compiled with it enabled. | |
6427 | for w in ${build_warnings}; do | |
7544db95 PA |
6428 | # GCC does not complain about -Wno-unknown-warning. Invert |
6429 | # and test -Wunknown-warning instead. | |
6430 | case $w in | |
6431 | -Wno-*) | |
6432 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
6433 | *) | |
6434 | wtest=$w ;; | |
6435 | esac | |
6436 | ||
d4596a3d PA |
6437 | case $w in |
6438 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
3bc3d82a PA |
6439 | *) |
6440 | # Check whether GCC accepts it. | |
d4596a3d | 6441 | saved_CFLAGS="$CFLAGS" |
7544db95 | 6442 | CFLAGS="$CFLAGS $wtest" |
3bc3d82a | 6443 | saved_CXXFLAGS="$CXXFLAGS" |
7544db95 | 6444 | CXXFLAGS="$CXXFLAGS $wtest" |
54019719 | 6445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d4596a3d PA |
6446 | /* end confdefs.h. */ |
6447 | ||
6448 | int | |
6449 | main () | |
6450 | { | |
6451 | ||
6452 | ; | |
6453 | return 0; | |
6454 | } | |
6455 | _ACEOF | |
3bc3d82a | 6456 | if ac_fn_cxx_try_compile "$LINENO"; then : |
d4596a3d PA |
6457 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
6458 | fi | |
6459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6460 | CFLAGS="$saved_CFLAGS" | |
3bc3d82a | 6461 | CXXFLAGS="$saved_CXXFLAGS" |
d4596a3d PA |
6462 | esac |
6463 | done | |
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
6465 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
6466 | fi | |
6467 | ||
6468 | ||
6469 | ||
3bc3d82a PA |
6470 | if test "$enable_build_with_cxx" = "yes"; then |
6471 | ac_ext=c | |
6472 | ac_cpp='$CPP $CPPFLAGS' | |
6473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6476 | ||
6477 | fi | |
6478 | ||
8f13a3ce MF |
6479 | case " $WARN_CFLAGS " in |
6480 | *" -Wmissing-prototypes "*) | |
6481 | WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes" | |
6482 | ;; | |
6483 | esac | |
6484 | ||
10e86dd7 DE |
6485 | old_LIBS="$LIBS" |
6486 | LIBS="$LIBS -ldl" | |
6487 | for ac_func in dladdr | |
6488 | do : | |
6489 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" | |
6490 | if test "x$ac_cv_func_dladdr" = x""yes; then : | |
6491 | cat >>confdefs.h <<_ACEOF | |
6492 | #define HAVE_DLADDR 1 | |
6493 | _ACEOF | |
6494 | ||
6495 | fi | |
6496 | done | |
6497 | ||
6498 | LIBS="$old_LIBS" | |
6499 | ||
07697489 PA |
6500 | |
6501 | # Check for presence and size of long long. | |
6502 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | |
6503 | if test "x$ac_cv_type_long_long" = x""yes; then : | |
6504 | ||
6505 | cat >>confdefs.h <<_ACEOF | |
6506 | #define HAVE_LONG_LONG 1 | |
6507 | _ACEOF | |
6508 | ||
6509 | # The cast to long int works around a bug in the HP C Compiler | |
6510 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6511 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6512 | # This bug is HP SR number 8606223364. | |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
6514 | $as_echo_n "checking size of long long... " >&6; } | |
6515 | if test "${ac_cv_sizeof_long_long+set}" = set; then : | |
6516 | $as_echo_n "(cached) " >&6 | |
6517 | else | |
6518 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
6519 | ||
6520 | else | |
6521 | if test "$ac_cv_type_long_long" = yes; then | |
6522 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6524 | { as_fn_set_status 77 | |
6525 | as_fn_error "cannot compute sizeof (long long) | |
6526 | See \`config.log' for more details." "$LINENO" 5; }; } | |
6527 | else | |
6528 | ac_cv_sizeof_long_long=0 | |
6529 | fi | |
6530 | fi | |
6531 | ||
6532 | fi | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
6534 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
6535 | ||
6536 | ||
6537 | ||
6538 | cat >>confdefs.h <<_ACEOF | |
6539 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6540 | _ACEOF | |
6541 | ||
6542 | ||
6543 | fi | |
6544 | ||
6545 | ||
6546 | ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default" | |
6547 | if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then : | |
6548 | ac_have_decl=1 | |
6549 | else | |
6550 | ac_have_decl=0 | |
6551 | fi | |
6552 | ||
6553 | cat >>confdefs.h <<_ACEOF | |
6554 | #define HAVE_DECL_BASENAME $ac_have_decl | |
6555 | _ACEOF | |
6556 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" | |
6557 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : | |
6558 | ac_have_decl=1 | |
6559 | else | |
6560 | ac_have_decl=0 | |
6561 | fi | |
6562 | ||
6563 | cat >>confdefs.h <<_ACEOF | |
6564 | #define HAVE_DECL_FFS $ac_have_decl | |
6565 | _ACEOF | |
6566 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" | |
6567 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : | |
6568 | ac_have_decl=1 | |
6569 | else | |
6570 | ac_have_decl=0 | |
6571 | fi | |
6572 | ||
6573 | cat >>confdefs.h <<_ACEOF | |
6574 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
6575 | _ACEOF | |
6576 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" | |
6577 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6578 | ac_have_decl=1 | |
6579 | else | |
6580 | ac_have_decl=0 | |
6581 | fi | |
6582 | ||
6583 | cat >>confdefs.h <<_ACEOF | |
6584 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
6585 | _ACEOF | |
6586 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" | |
6587 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : | |
6588 | ac_have_decl=1 | |
6589 | else | |
6590 | ac_have_decl=0 | |
6591 | fi | |
6592 | ||
6593 | cat >>confdefs.h <<_ACEOF | |
6594 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
6595 | _ACEOF | |
6596 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6597 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6598 | ac_have_decl=1 | |
6599 | else | |
6600 | ac_have_decl=0 | |
6601 | fi | |
6602 | ||
6603 | cat >>confdefs.h <<_ACEOF | |
6604 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6605 | _ACEOF | |
6606 | ||
6607 | ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" | |
6608 | if test "x$ac_cv_have_decl_strtol" = x""yes; then : | |
6609 | ac_have_decl=1 | |
6610 | else | |
6611 | ac_have_decl=0 | |
6612 | fi | |
6613 | ||
6614 | cat >>confdefs.h <<_ACEOF | |
6615 | #define HAVE_DECL_STRTOL $ac_have_decl | |
6616 | _ACEOF | |
6617 | ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" | |
6618 | if test "x$ac_cv_have_decl_strtoul" = x""yes; then : | |
6619 | ac_have_decl=1 | |
6620 | else | |
6621 | ac_have_decl=0 | |
6622 | fi | |
6623 | ||
6624 | cat >>confdefs.h <<_ACEOF | |
6625 | #define HAVE_DECL_STRTOUL $ac_have_decl | |
6626 | _ACEOF | |
6627 | ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" | |
6628 | if test "x$ac_cv_have_decl_strtoll" = x""yes; then : | |
6629 | ac_have_decl=1 | |
6630 | else | |
6631 | ac_have_decl=0 | |
6632 | fi | |
6633 | ||
6634 | cat >>confdefs.h <<_ACEOF | |
6635 | #define HAVE_DECL_STRTOLL $ac_have_decl | |
6636 | _ACEOF | |
6637 | ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" | |
6638 | if test "x$ac_cv_have_decl_strtoull" = x""yes; then : | |
6639 | ac_have_decl=1 | |
6640 | else | |
6641 | ac_have_decl=0 | |
6642 | fi | |
6643 | ||
6644 | cat >>confdefs.h <<_ACEOF | |
6645 | #define HAVE_DECL_STRTOULL $ac_have_decl | |
6646 | _ACEOF | |
6647 | ||
6648 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
6649 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | |
6650 | ac_have_decl=1 | |
6651 | else | |
6652 | ac_have_decl=0 | |
6653 | fi | |
6654 | ||
6655 | cat >>confdefs.h <<_ACEOF | |
6656 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
6657 | _ACEOF | |
6658 | ||
6659 | ||
6660 | ||
81ecdfbb RW |
6661 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" |
6662 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : | |
6663 | ac_have_decl=1 | |
6664 | else | |
6665 | ac_have_decl=0 | |
6666 | fi | |
f450004a | 6667 | |
81ecdfbb RW |
6668 | cat >>confdefs.h <<_ACEOF |
6669 | #define HAVE_DECL_STRERROR $ac_have_decl | |
6670 | _ACEOF | |
6671 | ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default" | |
6672 | if test "x$ac_cv_have_decl_perror" = x""yes; then : | |
6673 | ac_have_decl=1 | |
6674 | else | |
6675 | ac_have_decl=0 | |
f450004a | 6676 | fi |
81ecdfbb RW |
6677 | |
6678 | cat >>confdefs.h <<_ACEOF | |
6679 | #define HAVE_DECL_PERROR $ac_have_decl | |
6680 | _ACEOF | |
bb0116a4 JB |
6681 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
6682 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
6683 | ac_have_decl=1 | |
6684 | else | |
6685 | ac_have_decl=0 | |
6686 | fi | |
6687 | ||
6688 | cat >>confdefs.h <<_ACEOF | |
6689 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
6690 | _ACEOF | |
6691 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
6692 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
6693 | ac_have_decl=1 | |
6694 | else | |
6695 | ac_have_decl=0 | |
6696 | fi | |
6697 | ||
6698 | cat >>confdefs.h <<_ACEOF | |
6699 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
6700 | _ACEOF | |
81ecdfbb RW |
6701 | |
6702 | ||
791c0056 GB |
6703 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
6704 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | |
6705 | ||
6706 | cat >>confdefs.h <<_ACEOF | |
6707 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
6708 | _ACEOF | |
6709 | ||
6710 | ||
6711 | fi | |
6712 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
6713 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : | |
6714 | ||
6715 | cat >>confdefs.h <<_ACEOF | |
6716 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
6717 | _ACEOF | |
6718 | ||
6719 | ||
6720 | fi | |
6721 | ||
6722 | ||
81ecdfbb RW |
6723 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6724 | #include <sys/socket.h> | |
6725 | ||
6726 | " | |
6727 | if test "x$ac_cv_type_socklen_t" = x""yes; then : | |
f450004a | 6728 | |
ccbd4912 | 6729 | cat >>confdefs.h <<_ACEOF |
f450004a DJ |
6730 | #define HAVE_SOCKLEN_T 1 |
6731 | _ACEOF | |
6732 | ||
f450004a | 6733 | |
ccbd4912 | 6734 | fi |
f450004a | 6735 | |
fb1e4ffc | 6736 | |
64da5dd5 JB |
6737 | case "${target}" in |
6738 | *-android*) | |
6739 | # Starting with NDK version 9, <elf.h> actually includes definitions | |
6740 | # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes | |
6741 | # <sys/exec_elf.h> which defines some of the ELF types incorrectly, | |
6742 | # leading to conflicts with the defintions from <linux/elf.h>. | |
6743 | # This makes it impossible for us to include both <elf.h> and | |
6744 | # <linux/elf.h>, which means that, in practice, we do not have | |
6745 | # access to Elf32_auxv_t and Elf64_auxv_t on this platform. | |
6746 | # Therefore, do not try to auto-detect availability, as it would | |
6747 | # get it wrong on this platform. | |
6748 | ;; | |
6749 | *) | |
6750 | ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h> | |
8365dcf5 TJB |
6751 | |
6752 | " | |
6753 | if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then : | |
6754 | ||
6755 | cat >>confdefs.h <<_ACEOF | |
6756 | #define HAVE_ELF32_AUXV_T 1 | |
6757 | _ACEOF | |
6758 | ||
6759 | ||
6760 | fi | |
6761 | ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h> | |
6762 | ||
6763 | " | |
6764 | if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then : | |
6765 | ||
6766 | cat >>confdefs.h <<_ACEOF | |
6767 | #define HAVE_ELF64_AUXV_T 1 | |
6768 | _ACEOF | |
6769 | ||
6770 | ||
6771 | fi | |
6772 | ||
64da5dd5 | 6773 | esac |
8365dcf5 | 6774 | |
c16158bc JM |
6775 | |
6776 | ||
81ecdfbb RW |
6777 | # Check whether --with-pkgversion was given. |
6778 | if test "${with_pkgversion+set}" = set; then : | |
6779 | withval=$with_pkgversion; case "$withval" in | |
6780 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; | |
c16158bc JM |
6781 | no) PKGVERSION= ;; |
6782 | *) PKGVERSION="($withval) " ;; | |
6783 | esac | |
6784 | else | |
6785 | PKGVERSION="(GDB) " | |
6786 | ||
81ecdfbb RW |
6787 | fi |
6788 | ||
c16158bc JM |
6789 | |
6790 | ||
6791 | ||
6792 | ||
81ecdfbb RW |
6793 | # Check whether --with-bugurl was given. |
6794 | if test "${with_bugurl+set}" = set; then : | |
6795 | withval=$with_bugurl; case "$withval" in | |
6796 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; | |
c16158bc JM |
6797 | no) BUGURL= |
6798 | ;; | |
6799 | *) BUGURL="$withval" | |
6800 | ;; | |
6801 | esac | |
6802 | else | |
6803 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
6804 | ||
81ecdfbb RW |
6805 | fi |
6806 | ||
c16158bc JM |
6807 | case ${BUGURL} in |
6808 | "") | |
6809 | REPORT_BUGS_TO= | |
6810 | REPORT_BUGS_TEXI= | |
6811 | ;; | |
6812 | *) | |
6813 | REPORT_BUGS_TO="<$BUGURL>" | |
6814 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
6815 | ;; | |
6816 | esac; | |
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | cat >>confdefs.h <<_ACEOF | |
6822 | #define PKGVERSION "$PKGVERSION" | |
6823 | _ACEOF | |
6824 | ||
6825 | ||
6826 | cat >>confdefs.h <<_ACEOF | |
6827 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
6828 | _ACEOF | |
6829 | ||
6830 | ||
8838b45e NS |
6831 | # Check for various supplementary target information (beyond the |
6832 | # triplet) which might affect the choices in configure.srv. | |
6833 | case "${target}" in | |
6834 | i[34567]86-*-linux*) | |
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5 | |
6836 | $as_echo_n "checking if building for x86-64... " >&6; } | |
6837 | if test "${gdb_cv_i386_is_x86_64+set}" = set; then : | |
6838 | $as_echo_n "(cached) " >&6 | |
6839 | else | |
6840 | save_CPPFLAGS="$CPPFLAGS" | |
6841 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
6842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6843 | /* end confdefs.h. */ | |
6844 | ||
6845 | #if __x86_64__ | |
6846 | got it | |
6847 | #endif | |
6848 | ||
6849 | _ACEOF | |
6850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6851 | $EGREP "got it" >/dev/null 2>&1; then : | |
6852 | gdb_cv_i386_is_x86_64=yes | |
6853 | else | |
6854 | gdb_cv_i386_is_x86_64=no | |
6855 | fi | |
6856 | rm -f conftest* | |
6857 | ||
6858 | CPPFLAGS="$save_CPPFLAGS" | |
6859 | fi | |
6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5 | |
6861 | $as_echo "$gdb_cv_i386_is_x86_64" >&6; } | |
6862 | ;; | |
9ac544ce MK |
6863 | m68k-*-*) |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5 | |
6865 | $as_echo_n "checking if building for Coldfire... " >&6; } | |
6866 | if test "${gdb_cv_m68k_is_coldfire+set}" = set; then : | |
6867 | $as_echo_n "(cached) " >&6 | |
6868 | else | |
6869 | save_CPPFLAGS="$CPPFLAGS" | |
6870 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
6871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6872 | /* end confdefs.h. */ | |
6873 | ||
6874 | #ifdef __mcoldfire__ | |
6875 | got it | |
6876 | #endif | |
6877 | ||
6878 | _ACEOF | |
6879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6880 | $EGREP "got it" >/dev/null 2>&1; then : | |
6881 | gdb_cv_m68k_is_coldfire=yes | |
6882 | else | |
6883 | gdb_cv_m68k_is_coldfire=no | |
6884 | fi | |
6885 | rm -f conftest* | |
6886 | ||
6887 | CPPFLAGS="$save_CPPFLAGS" | |
6888 | fi | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5 | |
6890 | $as_echo "$gdb_cv_m68k_is_coldfire" >&6; } | |
6891 | ;; | |
8838b45e NS |
6892 | esac |
6893 | ||
7ea81414 | 6894 | . ${srcdir}/configure.srv |
d6e9fb05 | 6895 | |
fb23d554 SDJ |
6896 | # Add in the common host objects. |
6897 | . ${srcdir}/../common/common.host | |
6898 | srv_host_obs="$common_host_obs" | |
6899 | ||
68070c10 PA |
6900 | if test "${srv_mingwce}" = "yes"; then |
6901 | LIBS="$LIBS -lws2" | |
6902 | elif test "${srv_mingw}" = "yes"; then | |
12ea4b69 | 6903 | LIBS="$LIBS -lws2_32" |
ac8c974e AR |
6904 | elif test "${srv_qnx}" = "yes"; then |
6905 | LIBS="$LIBS -lsocket" | |
8ed54b31 JB |
6906 | elif test "${srv_lynxos}" = "yes"; then |
6907 | LIBS="$LIBS -lnetinet" | |
68070c10 PA |
6908 | fi |
6909 | ||
6910 | if test "${srv_mingw}" = "yes"; then | |
b80864fb | 6911 | |
81ecdfbb | 6912 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
b80864fb DJ |
6913 | |
6914 | fi | |
6915 | ||
58caa3dc | 6916 | if test "${srv_linux_usrregs}" = "yes"; then |
f450004a | 6917 | |
81ecdfbb | 6918 | $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h |
58caa3dc DJ |
6919 | |
6920 | fi | |
6921 | ||
6922 | if test "${srv_linux_regsets}" = "yes"; then | |
e9d25b98 | 6923 | |
81ecdfbb | 6924 | $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h |
e9d25b98 DJ |
6925 | |
6926 | ||
81ecdfbb RW |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 |
6928 | $as_echo_n "checking for PTRACE_GETREGS... " >&6; } | |
6929 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then : | |
6930 | $as_echo_n "(cached) " >&6 | |
bec39cab | 6931 | else |
81ecdfbb | 6932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 6933 | /* end confdefs.h. */ |
58caa3dc | 6934 | #include <sys/ptrace.h> |
bec39cab AC |
6935 | int |
6936 | main () | |
6937 | { | |
58caa3dc | 6938 | PTRACE_GETREGS; |
bec39cab AC |
6939 | ; |
6940 | return 0; | |
6941 | } | |
6942 | _ACEOF | |
81ecdfbb | 6943 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
6944 | gdbsrv_cv_have_ptrace_getregs=yes |
6945 | else | |
81ecdfbb | 6946 | gdbsrv_cv_have_ptrace_getregs=no |
58caa3dc | 6947 | fi |
81ecdfbb | 6948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
6949 | fi |
6950 | ||
81ecdfbb RW |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
6952 | $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; } | |
58caa3dc | 6953 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
f450004a | 6954 | |
81ecdfbb | 6955 | $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h |
58caa3dc DJ |
6956 | |
6957 | fi | |
6958 | ||
81ecdfbb RW |
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 |
6960 | $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } | |
6961 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then : | |
6962 | $as_echo_n "(cached) " >&6 | |
58caa3dc | 6963 | else |
81ecdfbb | 6964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 6965 | /* end confdefs.h. */ |
58caa3dc | 6966 | #include <sys/ptrace.h> |
bec39cab AC |
6967 | int |
6968 | main () | |
6969 | { | |
58caa3dc | 6970 | PTRACE_GETFPXREGS; |
bec39cab AC |
6971 | ; |
6972 | return 0; | |
6973 | } | |
6974 | _ACEOF | |
81ecdfbb | 6975 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
6976 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
6977 | else | |
81ecdfbb | 6978 | gdbsrv_cv_have_ptrace_getfpxregs=no |
58caa3dc | 6979 | fi |
81ecdfbb | 6980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
6981 | fi |
6982 | ||
81ecdfbb RW |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
6984 | $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; } | |
58caa3dc | 6985 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
f450004a | 6986 | |
81ecdfbb | 6987 | $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h |
58caa3dc DJ |
6988 | |
6989 | fi | |
6990 | fi | |
6991 | ||
9accd112 MM |
6992 | if test "${srv_linux_btrace}" = "yes"; then |
6993 | ||
6994 | $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h | |
6995 | ||
6996 | fi | |
6997 | ||
0d62e5e8 | 6998 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
81ecdfbb RW |
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 |
7000 | $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } | |
7001 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : | |
7002 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 7003 | else |
81ecdfbb | 7004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 7005 | /* end confdefs.h. */ |
0d62e5e8 DJ |
7006 | |
7007 | #define _SYSCALL32 | |
8e642873 PM |
7008 | /* Needed for new procfs interface on sparc-solaris. */ |
7009 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 7010 | #include <sys/procfs.h> |
bec39cab AC |
7011 | int |
7012 | main () | |
7013 | { | |
0d62e5e8 | 7014 | lwpid_t avar |
bec39cab AC |
7015 | ; |
7016 | return 0; | |
7017 | } | |
7018 | _ACEOF | |
81ecdfbb | 7019 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
7020 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
7021 | else | |
81ecdfbb | 7022 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 7023 | |
0d62e5e8 | 7024 | fi |
81ecdfbb | 7025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
7026 | fi |
7027 | ||
7028 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then | |
bec39cab | 7029 | |
81ecdfbb | 7030 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
0d62e5e8 DJ |
7031 | |
7032 | fi | |
81ecdfbb RW |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
7034 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } | |
0d62e5e8 | 7035 | |
81ecdfbb RW |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 |
7037 | $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } | |
7038 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : | |
7039 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 7040 | else |
81ecdfbb | 7041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 7042 | /* end confdefs.h. */ |
0d62e5e8 DJ |
7043 | |
7044 | #define _SYSCALL32 | |
8e642873 PM |
7045 | /* Needed for new procfs interface on sparc-solaris. */ |
7046 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 7047 | #include <sys/procfs.h> |
bec39cab AC |
7048 | int |
7049 | main () | |
7050 | { | |
0d62e5e8 | 7051 | psaddr_t avar |
bec39cab AC |
7052 | ; |
7053 | return 0; | |
7054 | } | |
7055 | _ACEOF | |
81ecdfbb | 7056 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
7057 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
7058 | else | |
81ecdfbb | 7059 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 7060 | |
0d62e5e8 | 7061 | fi |
81ecdfbb | 7062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
7063 | fi |
7064 | ||
7065 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then | |
bec39cab | 7066 | |
81ecdfbb | 7067 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
0d62e5e8 DJ |
7068 | |
7069 | fi | |
81ecdfbb RW |
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
7071 | $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } | |
0d62e5e8 | 7072 | |
81ecdfbb RW |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 |
7074 | $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } | |
7075 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : | |
7076 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 7077 | else |
81ecdfbb | 7078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 7079 | /* end confdefs.h. */ |
0d62e5e8 DJ |
7080 | |
7081 | #define _SYSCALL32 | |
8e642873 PM |
7082 | /* Needed for new procfs interface on sparc-solaris. */ |
7083 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 7084 | #include <sys/procfs.h> |
bec39cab AC |
7085 | int |
7086 | main () | |
7087 | { | |
0d62e5e8 | 7088 | prgregset_t avar |
bec39cab AC |
7089 | ; |
7090 | return 0; | |
7091 | } | |
7092 | _ACEOF | |
81ecdfbb | 7093 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
7094 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
7095 | else | |
81ecdfbb | 7096 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 7097 | |
0d62e5e8 | 7098 | fi |
81ecdfbb | 7099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
7100 | fi |
7101 | ||
7102 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then | |
bec39cab | 7103 | |
81ecdfbb | 7104 | $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
7105 | |
7106 | fi | |
81ecdfbb RW |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
7108 | $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } | |
0d62e5e8 | 7109 | |
1041a03c JB |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5 |
7111 | $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; } | |
7112 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then : | |
7113 | $as_echo_n "(cached) " >&6 | |
7114 | else | |
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7116 | /* end confdefs.h. */ | |
7117 | ||
7118 | #define _SYSCALL32 | |
7119 | /* Needed for new procfs interface on sparc-solaris. */ | |
7120 | #define _STRUCTURED_PROC 1 | |
7121 | #include <sys/procfs.h> | |
7122 | int | |
7123 | main () | |
7124 | { | |
7125 | prfpregset_t avar | |
7126 | ; | |
7127 | return 0; | |
7128 | } | |
7129 | _ACEOF | |
7130 | if ac_fn_c_try_compile "$LINENO"; then : | |
7131 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes | |
7132 | else | |
7133 | bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
7134 | ||
7135 | fi | |
7136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7137 | fi | |
7138 | ||
7139 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then | |
7140 | ||
7141 | $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h | |
7142 | ||
7143 | fi | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 | |
7145 | $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } | |
7146 | ||
81ecdfbb RW |
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 |
7148 | $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } | |
7149 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then : | |
7150 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 7151 | else |
81ecdfbb | 7152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 7153 | /* end confdefs.h. */ |
0d62e5e8 DJ |
7154 | |
7155 | #define _SYSCALL32 | |
8e642873 PM |
7156 | /* Needed for new procfs interface on sparc-solaris. */ |
7157 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 7158 | #include <sys/procfs.h> |
bec39cab AC |
7159 | int |
7160 | main () | |
7161 | { | |
0d62e5e8 | 7162 | elf_fpregset_t avar |
bec39cab AC |
7163 | ; |
7164 | return 0; | |
7165 | } | |
7166 | _ACEOF | |
81ecdfbb | 7167 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
7168 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
7169 | else | |
81ecdfbb | 7170 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
bec39cab | 7171 | |
0d62e5e8 | 7172 | fi |
81ecdfbb | 7173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
7174 | fi |
7175 | ||
7176 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then | |
bec39cab | 7177 | |
81ecdfbb | 7178 | $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
7179 | |
7180 | fi | |
81ecdfbb RW |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
7182 | $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } | |
0d62e5e8 DJ |
7183 | |
7184 | fi | |
7185 | ||
18f5fd81 TJB |
7186 | if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5 | |
7188 | $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; } | |
7189 | if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then : | |
7190 | $as_echo_n "(cached) " >&6 | |
7191 | else | |
7192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7193 | /* end confdefs.h. */ | |
7194 | ||
7195 | #include <thread_db.h> | |
7196 | int | |
7197 | main () | |
7198 | { | |
7199 | lwpid_t avar | |
7200 | ; | |
7201 | return 0; | |
7202 | } | |
7203 | _ACEOF | |
7204 | if ac_fn_c_try_compile "$LINENO"; then : | |
7205 | gdbserver_cv_have_thread_db_type_lwpid_t=yes | |
7206 | else | |
7207 | gdbserver_cv_have_thread_db_type_lwpid_t=no | |
7208 | ||
7209 | fi | |
7210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7211 | fi | |
7212 | ||
7213 | if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then | |
7214 | ||
7215 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h | |
7216 | ||
7217 | fi | |
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5 | |
7219 | $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; } | |
7220 | ||
7221 | fi | |
7222 | ||
7223 | if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then | |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5 | |
7225 | $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; } | |
7226 | if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then : | |
7227 | $as_echo_n "(cached) " >&6 | |
7228 | else | |
7229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7230 | /* end confdefs.h. */ | |
7231 | ||
7232 | #include <thread_db.h> | |
7233 | int | |
7234 | main () | |
7235 | { | |
7236 | psaddr_t avar | |
7237 | ; | |
7238 | return 0; | |
7239 | } | |
7240 | _ACEOF | |
7241 | if ac_fn_c_try_compile "$LINENO"; then : | |
7242 | gdbserver_cv_have_thread_db_type_psaddr_t=yes | |
7243 | else | |
7244 | gdbserver_cv_have_thread_db_type_psaddr_t=no | |
7245 | ||
7246 | fi | |
7247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7248 | fi | |
7249 | ||
7250 | if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then | |
7251 | ||
7252 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h | |
7253 | ||
7254 | fi | |
7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5 | |
7256 | $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; } | |
7257 | ||
7258 | fi | |
7259 | ||
193f13e6 MK |
7260 | old_LIBS="$LIBS" |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
7262 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
7263 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
7264 | $as_echo_n "(cached) " >&6 | |
7265 | else | |
7266 | ac_check_lib_save_LIBS=$LIBS | |
7267 | LIBS="-ldl $LIBS" | |
7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7269 | /* end confdefs.h. */ | |
7270 | ||
7271 | /* Override any GCC internal prototype to avoid an error. | |
7272 | Use char because int might match the return type of a GCC | |
7273 | builtin and then its argument prototype would still apply. */ | |
7274 | #ifdef __cplusplus | |
7275 | extern "C" | |
7276 | #endif | |
7277 | char dlopen (); | |
7278 | int | |
7279 | main () | |
7280 | { | |
7281 | return dlopen (); | |
7282 | ; | |
7283 | return 0; | |
7284 | } | |
7285 | _ACEOF | |
7286 | if ac_fn_c_try_link "$LINENO"; then : | |
7287 | ac_cv_lib_dl_dlopen=yes | |
7288 | else | |
7289 | ac_cv_lib_dl_dlopen=no | |
7290 | fi | |
7291 | rm -f core conftest.err conftest.$ac_objext \ | |
7292 | conftest$ac_exeext conftest.$ac_ext | |
7293 | LIBS=$ac_check_lib_save_LIBS | |
7294 | fi | |
7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
7296 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
7297 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
7298 | cat >>confdefs.h <<_ACEOF | |
7299 | #define HAVE_LIBDL 1 | |
7300 | _ACEOF | |
7301 | ||
7302 | LIBS="-ldl $LIBS" | |
7303 | ||
7304 | fi | |
7305 | ||
7306 | LIBS="$old_LIBS" | |
7307 | ||
0d62e5e8 DJ |
7308 | srv_thread_depfiles= |
7309 | srv_libs= | |
0d62e5e8 DJ |
7310 | |
7311 | if test "$srv_linux_thread_db" = "yes"; then | |
193f13e6 MK |
7312 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
7313 | srv_libs="-ldl" | |
f6528abd JK |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 |
7315 | $as_echo_n "checking for the dynamic export flag... " >&6; } | |
193f13e6 | 7316 | old_LDFLAGS="$LDFLAGS" |
f6528abd JK |
7317 | # Older GNU ld supports --export-dynamic but --dynamic-list may not be |
7318 | # supported there. | |
7319 | RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" | |
7320 | LDFLAGS="$LDFLAGS $RDYNAMIC" | |
193f13e6 | 7321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
7322 | /* end confdefs.h. */ |
7323 | ||
7324 | int | |
7325 | main () | |
7326 | { | |
7327 | ||
7328 | ; | |
7329 | return 0; | |
7330 | } | |
7331 | _ACEOF | |
81ecdfbb | 7332 | if ac_fn_c_try_link "$LINENO"; then : |
f6528abd JK |
7333 | found="-Wl,--dynamic-list" |
7334 | RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' | |
f6de3c42 | 7335 | else |
f6528abd JK |
7336 | RDYNAMIC="-rdynamic" |
7337 | LDFLAGS="$old_LDFLAGS $RDYNAMIC" | |
7338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7339 | /* end confdefs.h. */ | |
7340 | ||
7341 | int | |
7342 | main () | |
7343 | { | |
7344 | ||
7345 | ; | |
7346 | return 0; | |
7347 | } | |
7348 | _ACEOF | |
7349 | if ac_fn_c_try_link "$LINENO"; then : | |
7350 | found="-rdynamic" | |
7351 | else | |
7352 | found="no" | |
7353 | RDYNAMIC="" | |
770d76d7 PA |
7354 | fi |
7355 | rm -f core conftest.err conftest.$ac_objext \ | |
7356 | conftest$ac_exeext conftest.$ac_ext | |
7357 | fi | |
7358 | rm -f core conftest.err conftest.$ac_objext \ | |
7359 | conftest$ac_exeext conftest.$ac_ext | |
7360 | ||
7361 | LDFLAGS="$old_LDFLAGS" | |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 | |
7363 | $as_echo "$found" >&6; } | |
7364 | else | |
7365 | srv_libs="-lthread_db" | |
7366 | fi | |
55a8c076 | 7367 | |
770d76d7 | 7368 | srv_thread_depfiles="thread-db.o proc-service.o" |
7d4e5717 PA |
7369 | |
7370 | $as_echo "#define USE_THREAD_DB 1" >>confdefs.h | |
7371 | ||
770d76d7 PA |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 |
7373 | $as_echo_n "checking for TD_VERSION... " >&6; } | |
7374 | if test "${gdbsrv_cv_have_td_version+set}" = set; then : | |
7375 | $as_echo_n "(cached) " >&6 | |
7376 | else | |
7377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7378 | /* end confdefs.h. */ | |
7379 | #include <thread_db.h> | |
55a8c076 YQ |
7380 | int |
7381 | main () | |
7382 | { | |
770d76d7 | 7383 | TD_VERSION; |
c9a1864a YQ |
7384 | ; |
7385 | return 0; | |
7386 | } | |
7387 | _ACEOF | |
55a8c076 | 7388 | if ac_fn_c_try_compile "$LINENO"; then : |
770d76d7 | 7389 | gdbsrv_cv_have_td_version=yes |
c9a1864a | 7390 | else |
770d76d7 PA |
7391 | gdbsrv_cv_have_td_version=no |
7392 | fi | |
7393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7394 | fi | |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5 | |
7396 | $as_echo "$gdbsrv_cv_have_td_version" >&6; } | |
7397 | if test $gdbsrv_cv_have_td_version = yes; then | |
c9a1864a | 7398 | |
770d76d7 | 7399 | $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h |
55a8c076 | 7400 | |
770d76d7 PA |
7401 | fi |
7402 | fi | |
c9a1864a YQ |
7403 | |
7404 | ||
770d76d7 PA |
7405 | # Check whether --with-libthread-db was given. |
7406 | if test "${with_libthread_db+set}" = set; then : | |
7407 | withval=$with_libthread_db; srv_libthread_db_path="${withval}" | |
7408 | srv_libs="$srv_libthread_db_path" | |
c9a1864a | 7409 | |
770d76d7 | 7410 | fi |
c9a1864a YQ |
7411 | |
7412 | ||
770d76d7 | 7413 | if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then |
c9a1864a | 7414 | |
770d76d7 | 7415 | $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h |
c9a1864a | 7416 | |
55a8c076 | 7417 | fi |
c9a1864a | 7418 | |
770d76d7 PA |
7419 | if test "$srv_xmlfiles" != ""; then |
7420 | srv_xmlbuiltin="xml-builtin.o" | |
c9a1864a | 7421 | |
770d76d7 | 7422 | $as_echo "#define USE_XML 1" >>confdefs.h |
c9a1864a | 7423 | |
c9a1864a | 7424 | |
770d76d7 PA |
7425 | tmp_xmlfiles=$srv_xmlfiles |
7426 | srv_xmlfiles="" | |
7427 | for f in $tmp_xmlfiles; do | |
7428 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" | |
7429 | done | |
c9a1864a YQ |
7430 | fi |
7431 | ||
fb23d554 | 7432 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs" |
770d76d7 | 7433 | GDBSERVER_LIBS="$srv_libs" |
c9a1864a | 7434 | |
770d76d7 PA |
7435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 |
7436 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
7437 | if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then : | |
7438 | $as_echo_n "(cached) " >&6 | |
7439 | else | |
c9a1864a | 7440 | |
770d76d7 PA |
7441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7442 | /* end confdefs.h. */ | |
c9a1864a | 7443 | |
770d76d7 PA |
7444 | int |
7445 | main () | |
7446 | { | |
7447 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
7448 | ; | |
7449 | return 0; | |
7450 | } | |
7451 | _ACEOF | |
7452 | if ac_fn_c_try_link "$LINENO"; then : | |
7453 | gdbsrv_cv_have_sync_builtins=yes | |
7454 | else | |
c971b7fa | 7455 | gdbsrv_cv_have_sync_builtins=no |
c9a1864a | 7456 | fi |
c971b7fa PA |
7457 | rm -f core conftest.err conftest.$ac_objext \ |
7458 | conftest$ac_exeext conftest.$ac_ext | |
c9a1864a | 7459 | fi |
c971b7fa PA |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 |
7461 | $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } | |
7462 | if test $gdbsrv_cv_have_sync_builtins = yes; then | |
7463 | ||
7464 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h | |
7465 | ||
c9a1864a YQ |
7466 | fi |
7467 | ||
c971b7fa PA |
7468 | saved_cflags="$CFLAGS" |
7469 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
7470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7471 | /* end confdefs.h. */ | |
c9a1864a | 7472 | |
c971b7fa PA |
7473 | int |
7474 | main () | |
7475 | { | |
c9a1864a | 7476 | |
c971b7fa PA |
7477 | ; |
7478 | return 0; | |
7479 | } | |
c9a1864a | 7480 | _ACEOF |
c971b7fa PA |
7481 | if ac_fn_c_try_compile "$LINENO"; then : |
7482 | gdbsrv_cv_have_visibility_hidden=yes | |
7483 | else | |
7484 | gdbsrv_cv_have_visibility_hidden=no | |
c9a1864a | 7485 | fi |
c971b7fa PA |
7486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7487 | CFLAGS="$saved_cflags" | |
7488 | ||
7489 | ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> | |
7490 | " | |
7491 | if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then : | |
7492 | ac_have_decl=1 | |
c9a1864a | 7493 | else |
c971b7fa | 7494 | ac_have_decl=0 |
c9a1864a YQ |
7495 | fi |
7496 | ||
c971b7fa PA |
7497 | cat >>confdefs.h <<_ACEOF |
7498 | #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl | |
7499 | _ACEOF | |
c9a1864a | 7500 | |
c9a1864a | 7501 | |
c971b7fa PA |
7502 | if test "$cross_compiling" = yes; then : |
7503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7504 | /* end confdefs.h. */ | |
7505 | #include <sys/personality.h> | |
7506 | int | |
7507 | main () | |
7508 | { | |
fb1e4ffc | 7509 | |
c971b7fa PA |
7510 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
7511 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
7512 | # endif | |
7513 | /* Test the flag could be set and stays set. */ | |
7514 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
7515 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
7516 | return 1 | |
7517 | ; | |
7518 | return 0; | |
7519 | } | |
7520 | _ACEOF | |
7521 | if ac_fn_c_try_link "$LINENO"; then : | |
7522 | gdbsrv_cv_have_personality=true | |
fa593d66 | 7523 | else |
c971b7fa | 7524 | gdbsrv_cv_have_personality=false |
c9a1864a | 7525 | fi |
c971b7fa PA |
7526 | rm -f core conftest.err conftest.$ac_objext \ |
7527 | conftest$ac_exeext conftest.$ac_ext | |
7528 | else | |
7529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7530 | /* end confdefs.h. */ | |
7531 | #include <sys/personality.h> | |
7532 | int | |
7533 | main () | |
7534 | { | |
fa593d66 | 7535 | |
c971b7fa PA |
7536 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
7537 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
7538 | # endif | |
7539 | /* Test the flag could be set and stays set. */ | |
7540 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
7541 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
7542 | return 1 | |
7543 | ; | |
7544 | return 0; | |
7545 | } | |
7546 | _ACEOF | |
7547 | if ac_fn_c_try_run "$LINENO"; then : | |
7548 | gdbsrv_cv_have_personality=true | |
7549 | else | |
7550 | gdbsrv_cv_have_personality=false | |
fa593d66 | 7551 | fi |
c971b7fa PA |
7552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7553 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
fa593d66 | 7554 | fi |
fa593d66 | 7555 | |
c971b7fa PA |
7556 | if $gdbsrv_cv_have_personality |
7557 | then | |
fa593d66 | 7558 | |
c971b7fa | 7559 | $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h |
03583c20 | 7560 | |
c971b7fa | 7561 | fi |
03583c20 | 7562 | |
03583c20 | 7563 | |
c971b7fa PA |
7564 | IPA_DEPFILES="" |
7565 | extra_libraries="" | |
c2a66c29 | 7566 | |
c971b7fa PA |
7567 | # check whether to enable the inprocess agent |
7568 | if test "$ipa_obj" != "" \ | |
7569 | -a "$gdbsrv_cv_have_sync_builtins" = yes \ | |
7570 | -a "$gdbsrv_cv_have_visibility_hidden" = yes; then | |
7571 | have_ipa=true | |
7572 | else | |
7573 | have_ipa=false | |
7574 | fi | |
fa593d66 | 7575 | |
c971b7fa PA |
7576 | # Check whether --enable-inprocess-agent was given. |
7577 | if test "${enable_inprocess_agent+set}" = set; then : | |
7578 | enableval=$enable_inprocess_agent; case "$enableval" in | |
7579 | yes) want_ipa=true ;; | |
7580 | no) want_ipa=false ;; | |
7581 | *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;; | |
7582 | esac | |
7583 | else | |
7584 | want_ipa=$have_ipa | |
7585 | fi | |
c2a66c29 | 7586 | |
c9a1864a | 7587 | |
c971b7fa PA |
7588 | if $want_ipa ; then |
7589 | if $have_ipa ; then | |
7590 | IPA_DEPFILES="$ipa_obj" | |
7591 | extra_libraries="$extra_libraries libinproctrace.so" | |
7592 | else | |
7593 | as_fn_error "inprocess agent not supported for this target" "$LINENO" 5 | |
7594 | fi | |
7595 | fi | |
c9a1864a | 7596 | |
c9a1864a | 7597 | |
c2a66c29 NS |
7598 | |
7599 | ||
fa593d66 PA |
7600 | |
7601 | ||
7602 | ||
0d62e5e8 | 7603 | |
c971b7fa | 7604 | GNULIB=build-gnulib-gdbserver/import |
d6e9fb05 | 7605 | |
c9a1864a YQ |
7606 | GNULIB_STDINT_H= |
7607 | if test x"$STDINT_H" != x; then | |
c971b7fa | 7608 | GNULIB_STDINT_H=$GNULIB/$STDINT_H |
c9a1864a | 7609 | fi |
d6e9fb05 | 7610 | |
fb1e4ffc | 7611 | |
c971b7fa | 7612 | ac_config_files="$ac_config_files Makefile" |
81ecdfbb | 7613 | |
81ecdfbb | 7614 | |
bec39cab | 7615 | cat >confcache <<\_ACEOF |
d6e9fb05 JK |
7616 | # This file is a shell script that caches the results of configure |
7617 | # tests run on this system so they can be shared between configure | |
bec39cab AC |
7618 | # scripts and configure runs, see configure's option --config-cache. |
7619 | # It is not useful on other systems. If it contains results you don't | |
7620 | # want to keep, you may remove or edit it. | |
d6e9fb05 | 7621 | # |
bec39cab AC |
7622 | # config.status only pays attention to the cache file if you give it |
7623 | # the --recheck option to rerun configure. | |
d6e9fb05 | 7624 | # |
bec39cab AC |
7625 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7626 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7627 | # following values. | |
7628 | ||
7629 | _ACEOF | |
7630 | ||
d6e9fb05 JK |
7631 | # The following way of writing the cache mishandles newlines in values, |
7632 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7633 | # So, we kill variables containing newlines. |
d6e9fb05 JK |
7634 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7635 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7636 | ( |
7637 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7638 | eval ac_val=\$$ac_var | |
7639 | case $ac_val in #( | |
7640 | *${as_nl}*) | |
7641 | case $ac_var in #( | |
7642 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7643 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7644 | esac | |
7645 | case $ac_var in #( | |
7646 | _ | IFS | as_nl) ;; #( | |
7647 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7648 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7649 | esac ;; | |
7650 | esac | |
7651 | done | |
7652 | ||
bec39cab | 7653 | (set) 2>&1 | |
81ecdfbb RW |
7654 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7655 | *${as_nl}ac_space=\ *) | |
7656 | # `set' does not quote correctly, so add quotes: double-quote | |
7657 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bec39cab AC |
7658 | sed -n \ |
7659 | "s/'/'\\\\''/g; | |
7660 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7661 | ;; #( |
bec39cab AC |
7662 | *) |
7663 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7664 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 7665 | ;; |
81ecdfbb RW |
7666 | esac | |
7667 | sort | |
7668 | ) | | |
bec39cab | 7669 | sed ' |
81ecdfbb | 7670 | /^ac_cv_env_/b end |
bec39cab | 7671 | t clear |
81ecdfbb | 7672 | :clear |
bec39cab AC |
7673 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7674 | t end | |
81ecdfbb RW |
7675 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7676 | :end' >>confcache | |
7677 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7678 | if test -w "$cache_file"; then | |
7679 | test "x$cache_file" != "x/dev/null" && | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7681 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bec39cab | 7682 | cat confcache >$cache_file |
d6e9fb05 | 7683 | else |
81ecdfbb RW |
7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7685 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d6e9fb05 JK |
7686 | fi |
7687 | fi | |
7688 | rm -f confcache | |
7689 | ||
d6e9fb05 JK |
7690 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7691 | # Let make expand exec_prefix. | |
7692 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7693 | ||
84563040 | 7694 | DEFS=-DHAVE_CONFIG_H |
d6e9fb05 | 7695 | |
bec39cab AC |
7696 | ac_libobjs= |
7697 | ac_ltlibobjs= | |
7698 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7699 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7700 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7701 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7702 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7703 | # will be set to the directory where LIBOBJS objects are built. | |
7704 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7705 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bec39cab AC |
7706 | done |
7707 | LIBOBJS=$ac_libobjs | |
d6e9fb05 | 7708 | |
bec39cab AC |
7709 | LTLIBOBJS=$ac_ltlibobjs |
7710 | ||
7711 | ||
c9a1864a YQ |
7712 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
7713 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
7714 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7715 | fi | |
61c125b9 TT |
7716 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
7717 | as_fn_error "conditional \"GMAKE\" was never defined. | |
7718 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7719 | fi | |
bec39cab AC |
7720 | |
7721 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 7722 | ac_write_fail=0 |
bec39cab AC |
7723 | ac_clean_files_save=$ac_clean_files |
7724 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7726 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7727 | as_write_fail=0 | |
7728 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bec39cab AC |
7729 | #! $SHELL |
7730 | # Generated by $as_me. | |
d6e9fb05 | 7731 | # Run this file to recreate the current configuration. |
d6e9fb05 | 7732 | # Compiler output produced by configure, useful for debugging |
bec39cab AC |
7733 | # configure, is in config.log if it exists. |
7734 | ||
7735 | debug=false | |
7736 | ac_cs_recheck=false | |
7737 | ac_cs_silent=false | |
bec39cab | 7738 | |
81ecdfbb RW |
7739 | SHELL=\${CONFIG_SHELL-$SHELL} |
7740 | export SHELL | |
7741 | _ASEOF | |
7742 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7743 | ## -------------------- ## | |
7744 | ## M4sh Initialization. ## | |
7745 | ## -------------------- ## | |
7746 | ||
7747 | # Be more Bourne compatible | |
7748 | DUALCASE=1; export DUALCASE # for MKS sh | |
7749 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
7750 | emulate sh |
7751 | NULLCMD=: | |
81ecdfbb | 7752 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
7753 | # is contrary to our usage. Disable this feature. |
7754 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7755 | setopt NO_GLOB_SUBST |
7756 | else | |
7757 | case `(set -o) 2>/dev/null` in #( | |
7758 | *posix*) : | |
7759 | set -o posix ;; #( | |
7760 | *) : | |
7761 | ;; | |
7762 | esac | |
bec39cab | 7763 | fi |
d6e9fb05 | 7764 | |
81ecdfbb RW |
7765 | |
7766 | as_nl=' | |
7767 | ' | |
7768 | export as_nl | |
7769 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7770 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7771 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7772 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7773 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7774 | # but without wasting forks for bash or zsh. | |
7775 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7776 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7777 | as_echo='print -r --' | |
7778 | as_echo_n='print -rn --' | |
7779 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7780 | as_echo='printf %s\n' | |
7781 | as_echo_n='printf %s' | |
bec39cab | 7782 | else |
81ecdfbb RW |
7783 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
7784 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7785 | as_echo_n='/usr/ucb/echo -n' | |
7786 | else | |
7787 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7788 | as_echo_n_body='eval | |
7789 | arg=$1; | |
7790 | case $arg in #( | |
7791 | *"$as_nl"*) | |
7792 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7793 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7794 | esac; | |
7795 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7796 | ' | |
7797 | export as_echo_n_body | |
7798 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7799 | fi | |
7800 | export as_echo_body | |
7801 | as_echo='sh -c $as_echo_body as_echo' | |
7802 | fi | |
7803 | ||
7804 | # The user is always right. | |
7805 | if test "${PATH_SEPARATOR+set}" != set; then | |
7806 | PATH_SEPARATOR=: | |
7807 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7808 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7809 | PATH_SEPARATOR=';' | |
7810 | } | |
bec39cab AC |
7811 | fi |
7812 | ||
7813 | ||
81ecdfbb RW |
7814 | # IFS |
7815 | # We need space, tab and new line, in precisely that order. Quoting is | |
7816 | # there to prevent editors from complaining about space-tab. | |
7817 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7818 | # splitting by setting IFS to empty value.) | |
7819 | IFS=" "" $as_nl" | |
7820 | ||
7821 | # Find who we are. Look in the path if we contain no directory separator. | |
7822 | case $0 in #(( | |
7823 | *[\\/]* ) as_myself=$0 ;; | |
7824 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7825 | for as_dir in $PATH | |
7826 | do | |
7827 | IFS=$as_save_IFS | |
7828 | test -z "$as_dir" && as_dir=. | |
7829 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7830 | done | |
7831 | IFS=$as_save_IFS | |
7832 | ||
7833 | ;; | |
7834 | esac | |
7835 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7836 | # in which case we are not to be found in the path. | |
7837 | if test "x$as_myself" = x; then | |
7838 | as_myself=$0 | |
7839 | fi | |
7840 | if test ! -f "$as_myself"; then | |
7841 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7842 | exit 1 | |
7843 | fi | |
7844 | ||
7845 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7846 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7847 | # suppresses any "Segmentation fault" message there. '((' could | |
7848 | # trigger a bug in pdksh 5.2.14. | |
7849 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7850 | do eval test x\${$as_var+set} = xset \ | |
7851 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7852 | done | |
bec39cab AC |
7853 | PS1='$ ' |
7854 | PS2='> ' | |
7855 | PS4='+ ' | |
7856 | ||
7857 | # NLS nuisances. | |
81ecdfbb RW |
7858 | LC_ALL=C |
7859 | export LC_ALL | |
7860 | LANGUAGE=C | |
7861 | export LANGUAGE | |
7862 | ||
7863 | # CDPATH. | |
7864 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7865 | ||
7866 | ||
7867 | # as_fn_error ERROR [LINENO LOG_FD] | |
7868 | # --------------------------------- | |
7869 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7870 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7871 | # script with status $?, using 1 if that was 0. | |
7872 | as_fn_error () | |
7873 | { | |
7874 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
7875 | if test "$3"; then | |
7876 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7877 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bec39cab | 7878 | fi |
81ecdfbb RW |
7879 | $as_echo "$as_me: error: $1" >&2 |
7880 | as_fn_exit $as_status | |
7881 | } # as_fn_error | |
7882 | ||
7883 | ||
7884 | # as_fn_set_status STATUS | |
7885 | # ----------------------- | |
7886 | # Set $? to STATUS, without forking. | |
7887 | as_fn_set_status () | |
7888 | { | |
7889 | return $1 | |
7890 | } # as_fn_set_status | |
7891 | ||
7892 | # as_fn_exit STATUS | |
7893 | # ----------------- | |
7894 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7895 | as_fn_exit () | |
7896 | { | |
7897 | set +e | |
7898 | as_fn_set_status $1 | |
7899 | exit $1 | |
7900 | } # as_fn_exit | |
7901 | ||
7902 | # as_fn_unset VAR | |
7903 | # --------------- | |
7904 | # Portably unset VAR. | |
7905 | as_fn_unset () | |
7906 | { | |
7907 | { eval $1=; unset $1;} | |
7908 | } | |
7909 | as_unset=as_fn_unset | |
7910 | # as_fn_append VAR VALUE | |
7911 | # ---------------------- | |
7912 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7913 | # advantage of any shell optimizations that allow amortized linear growth over | |
7914 | # repeated appends, instead of the typical quadratic growth present in naive | |
7915 | # implementations. | |
7916 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7917 | eval 'as_fn_append () | |
7918 | { | |
7919 | eval $1+=\$2 | |
7920 | }' | |
7921 | else | |
7922 | as_fn_append () | |
7923 | { | |
7924 | eval $1=\$$1\$2 | |
7925 | } | |
7926 | fi # as_fn_append | |
7927 | ||
7928 | # as_fn_arith ARG... | |
7929 | # ------------------ | |
7930 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7931 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7932 | # must be portable across $(()) and expr. | |
7933 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7934 | eval 'as_fn_arith () | |
7935 | { | |
7936 | as_val=$(( $* )) | |
7937 | }' | |
7938 | else | |
7939 | as_fn_arith () | |
7940 | { | |
7941 | as_val=`expr "$@" || test $? -eq 1` | |
7942 | } | |
7943 | fi # as_fn_arith | |
7944 | ||
d6e9fb05 | 7945 | |
81ecdfbb RW |
7946 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7947 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
7948 | as_expr=expr |
7949 | else | |
7950 | as_expr=false | |
7951 | fi | |
d6e9fb05 | 7952 | |
81ecdfbb | 7953 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
7954 | as_basename=basename |
7955 | else | |
7956 | as_basename=false | |
7957 | fi | |
d6e9fb05 | 7958 | |
81ecdfbb RW |
7959 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7960 | as_dirname=dirname | |
7961 | else | |
7962 | as_dirname=false | |
7963 | fi | |
d6e9fb05 | 7964 | |
81ecdfbb | 7965 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
7966 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7967 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7968 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7969 | $as_echo X/"$0" | | |
7970 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7971 | s//\1/ | |
7972 | q | |
7973 | } | |
7974 | /^X\/\(\/\/\)$/{ | |
7975 | s//\1/ | |
7976 | q | |
7977 | } | |
7978 | /^X\/\(\/\).*/{ | |
7979 | s//\1/ | |
7980 | q | |
7981 | } | |
7982 | s/.*/./; q'` | |
bec39cab | 7983 | |
dae5f5cf DJ |
7984 | # Avoid depending upon Character Ranges. |
7985 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7986 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7987 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7988 | as_cr_digits='0123456789' | |
7989 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7990 | ||
81ecdfbb RW |
7991 | ECHO_C= ECHO_N= ECHO_T= |
7992 | case `echo -n x` in #((((( | |
7993 | -n*) | |
7994 | case `echo 'xy\c'` in | |
7995 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7996 | xy) ECHO_C='\c';; | |
7997 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7998 | ECHO_T=' ';; | |
7999 | esac;; | |
8000 | *) | |
8001 | ECHO_N='-n';; | |
bec39cab AC |
8002 | esac |
8003 | ||
81ecdfbb RW |
8004 | rm -f conf$$ conf$$.exe conf$$.file |
8005 | if test -d conf$$.dir; then | |
8006 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 8007 | else |
81ecdfbb RW |
8008 | rm -f conf$$.dir |
8009 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 8010 | fi |
81ecdfbb RW |
8011 | if (echo >conf$$.file) 2>/dev/null; then |
8012 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 8013 | as_ln_s='ln -s' |
81ecdfbb RW |
8014 | # ... but there are two gotchas: |
8015 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8016 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8017 | # In both cases, we have to default to `cp -p'. | |
8018 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8019 | as_ln_s='cp -p' | |
8020 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8021 | as_ln_s=ln | |
8022 | else | |
8023 | as_ln_s='cp -p' | |
dae5f5cf | 8024 | fi |
bec39cab AC |
8025 | else |
8026 | as_ln_s='cp -p' | |
8027 | fi | |
81ecdfbb RW |
8028 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8029 | rmdir conf$$.dir 2>/dev/null | |
8030 | ||
8031 | ||
8032 | # as_fn_mkdir_p | |
8033 | # ------------- | |
8034 | # Create "$as_dir" as a directory, including parents if necessary. | |
8035 | as_fn_mkdir_p () | |
8036 | { | |
8037 | ||
8038 | case $as_dir in #( | |
8039 | -*) as_dir=./$as_dir;; | |
8040 | esac | |
8041 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8042 | as_dirs= | |
8043 | while :; do | |
8044 | case $as_dir in #( | |
8045 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8046 | *) as_qdir=$as_dir;; | |
8047 | esac | |
8048 | as_dirs="'$as_qdir' $as_dirs" | |
8049 | as_dir=`$as_dirname -- "$as_dir" || | |
8050 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8051 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8052 | X"$as_dir" : 'X\(//\)$' \| \ | |
8053 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8054 | $as_echo X"$as_dir" | | |
8055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8056 | s//\1/ | |
8057 | q | |
8058 | } | |
8059 | /^X\(\/\/\)[^/].*/{ | |
8060 | s//\1/ | |
8061 | q | |
8062 | } | |
8063 | /^X\(\/\/\)$/{ | |
8064 | s//\1/ | |
8065 | q | |
8066 | } | |
8067 | /^X\(\/\).*/{ | |
8068 | s//\1/ | |
8069 | q | |
8070 | } | |
8071 | s/.*/./; q'` | |
8072 | test -d "$as_dir" && break | |
8073 | done | |
8074 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8075 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
bec39cab | 8076 | |
81ecdfbb RW |
8077 | |
8078 | } # as_fn_mkdir_p | |
bec39cab | 8079 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 8080 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
8081 | else |
8082 | test -d ./-p && rmdir ./-p | |
8083 | as_mkdir_p=false | |
8084 | fi | |
8085 | ||
81ecdfbb RW |
8086 | if test -x / >/dev/null 2>&1; then |
8087 | as_test_x='test -x' | |
8088 | else | |
8089 | if ls -dL / >/dev/null 2>&1; then | |
8090 | as_ls_L_option=L | |
8091 | else | |
8092 | as_ls_L_option= | |
8093 | fi | |
8094 | as_test_x=' | |
8095 | eval sh -c '\'' | |
8096 | if test -d "$1"; then | |
8097 | test -d "$1/."; | |
8098 | else | |
8099 | case $1 in #( | |
8100 | -*)set "./$1";; | |
8101 | esac; | |
8102 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
8103 | ???[sx]*):;;*)false;;esac;fi | |
8104 | '\'' sh | |
8105 | ' | |
8106 | fi | |
8107 | as_executable_p=$as_test_x | |
bec39cab AC |
8108 | |
8109 | # Sed expression to map a string onto a valid CPP name. | |
8110 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8111 | ||
8112 | # Sed expression to map a string onto a valid variable name. | |
8113 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8114 | ||
8115 | ||
bec39cab | 8116 | exec 6>&1 |
81ecdfbb RW |
8117 | ## ----------------------------------- ## |
8118 | ## Main body of $CONFIG_STATUS script. ## | |
8119 | ## ----------------------------------- ## | |
8120 | _ASEOF | |
8121 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
8122 | ||
8123 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8124 | # Save the log message, to keep $0 and so on meaningful, and to | |
bec39cab | 8125 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8126 | # values after options handling. |
8127 | ac_log=" | |
bec39cab | 8128 | This file was extended by $as_me, which was |
81ecdfbb | 8129 | generated by GNU Autoconf 2.64. Invocation command line was |
bec39cab AC |
8130 | |
8131 | CONFIG_FILES = $CONFIG_FILES | |
8132 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8133 | CONFIG_LINKS = $CONFIG_LINKS | |
8134 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8135 | $ $0 $@ | |
8136 | ||
81ecdfbb RW |
8137 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8138 | " | |
8139 | ||
bec39cab AC |
8140 | _ACEOF |
8141 | ||
81ecdfbb RW |
8142 | case $ac_config_files in *" |
8143 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8144 | esac | |
bec39cab | 8145 | |
81ecdfbb RW |
8146 | case $ac_config_headers in *" |
8147 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8148 | esac | |
dae5f5cf | 8149 | |
dae5f5cf | 8150 | |
81ecdfbb RW |
8151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8152 | # Files that config.status was made for. | |
8153 | config_files="$ac_config_files" | |
8154 | config_headers="$ac_config_headers" | |
8155 | config_commands="$ac_config_commands" | |
bec39cab | 8156 | |
81ecdfbb | 8157 | _ACEOF |
dae5f5cf | 8158 | |
81ecdfbb | 8159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab | 8160 | ac_cs_usage="\ |
81ecdfbb RW |
8161 | \`$as_me' instantiates files and other configuration actions |
8162 | from templates according to the current configuration. Unless the files | |
8163 | and actions are specified as TAGs, all are instantiated by default. | |
bec39cab | 8164 | |
81ecdfbb | 8165 | Usage: $0 [OPTION]... [TAG]... |
bec39cab AC |
8166 | |
8167 | -h, --help print this help, then exit | |
81ecdfbb RW |
8168 | -V, --version print version number and configuration settings, then exit |
8169 | -q, --quiet, --silent | |
8170 | do not print progress messages | |
bec39cab AC |
8171 | -d, --debug don't remove temporary files |
8172 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8173 | --file=FILE[:TEMPLATE] |
8174 | instantiate the configuration file FILE | |
8175 | --header=FILE[:TEMPLATE] | |
8176 | instantiate the configuration header FILE | |
bec39cab AC |
8177 | |
8178 | Configuration files: | |
8179 | $config_files | |
8180 | ||
8181 | Configuration headers: | |
8182 | $config_headers | |
8183 | ||
8184 | Configuration commands: | |
8185 | $config_commands | |
8186 | ||
81ecdfbb | 8187 | Report bugs to the package provider." |
dae5f5cf | 8188 | |
81ecdfbb RW |
8189 | _ACEOF |
8190 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bec39cab AC |
8191 | ac_cs_version="\\ |
8192 | config.status | |
81ecdfbb RW |
8193 | configured by $0, generated by GNU Autoconf 2.64, |
8194 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bec39cab | 8195 | |
81ecdfbb | 8196 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
8197 | This config.status script is free software; the Free Software Foundation |
8198 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8199 | |
8200 | ac_pwd='$ac_pwd' | |
8201 | srcdir='$srcdir' | |
8202 | INSTALL='$INSTALL' | |
8203 | test -n "\$AWK" || AWK=awk | |
bec39cab AC |
8204 | _ACEOF |
8205 | ||
81ecdfbb RW |
8206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8207 | # The default lists apply if the user does not specify any file. | |
bec39cab AC |
8208 | ac_need_defaults=: |
8209 | while test $# != 0 | |
8210 | do | |
8211 | case $1 in | |
8212 | --*=*) | |
81ecdfbb RW |
8213 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8214 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bec39cab AC |
8215 | ac_shift=: |
8216 | ;; | |
81ecdfbb | 8217 | *) |
bec39cab AC |
8218 | ac_option=$1 |
8219 | ac_optarg=$2 | |
8220 | ac_shift=shift | |
8221 | ;; | |
bec39cab AC |
8222 | esac |
8223 | ||
8224 | case $ac_option in | |
8225 | # Handling of the options. | |
bec39cab AC |
8226 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8227 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8228 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8229 | $as_echo "$ac_cs_version"; exit ;; | |
8230 | --debug | --debu | --deb | --de | --d | -d ) | |
bec39cab AC |
8231 | debug=: ;; |
8232 | --file | --fil | --fi | --f ) | |
8233 | $ac_shift | |
81ecdfbb RW |
8234 | case $ac_optarg in |
8235 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8236 | esac | |
8237 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bec39cab AC |
8238 | ac_need_defaults=false;; |
8239 | --header | --heade | --head | --hea ) | |
8240 | $ac_shift | |
81ecdfbb RW |
8241 | case $ac_optarg in |
8242 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8243 | esac | |
8244 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bec39cab | 8245 | ac_need_defaults=false;; |
81ecdfbb RW |
8246 | --he | --h) |
8247 | # Conflict between --help and --header | |
8248 | as_fn_error "ambiguous option: \`$1' | |
8249 | Try \`$0 --help' for more information.";; | |
8250 | --help | --hel | -h ) | |
8251 | $as_echo "$ac_cs_usage"; exit ;; | |
bec39cab AC |
8252 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8253 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8254 | ac_cs_silent=: ;; | |
8255 | ||
8256 | # This is an error. | |
81ecdfbb RW |
8257 | -*) as_fn_error "unrecognized option: \`$1' |
8258 | Try \`$0 --help' for more information." ;; | |
bec39cab | 8259 | |
81ecdfbb RW |
8260 | *) as_fn_append ac_config_targets " $1" |
8261 | ac_need_defaults=false ;; | |
bec39cab AC |
8262 | |
8263 | esac | |
8264 | shift | |
d6e9fb05 | 8265 | done |
bec39cab AC |
8266 | |
8267 | ac_configure_extra_args= | |
8268 | ||
8269 | if $ac_cs_silent; then | |
8270 | exec 6>/dev/null | |
8271 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d6e9fb05 | 8272 | fi |
d6e9fb05 | 8273 | |
bec39cab | 8274 | _ACEOF |
81ecdfbb | 8275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bec39cab | 8276 | if \$ac_cs_recheck; then |
81ecdfbb RW |
8277 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8278 | shift | |
8279 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8280 | CONFIG_SHELL='$SHELL' | |
8281 | export CONFIG_SHELL | |
8282 | exec "\$@" | |
bec39cab | 8283 | fi |
d6e9fb05 | 8284 | |
bec39cab | 8285 | _ACEOF |
81ecdfbb RW |
8286 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8287 | exec 5>>config.log | |
8288 | { | |
8289 | echo | |
8290 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8291 | ## Running $as_me. ## | |
8292 | _ASBOX | |
8293 | $as_echo "$ac_log" | |
8294 | } >&5 | |
bec39cab | 8295 | |
81ecdfbb RW |
8296 | _ACEOF |
8297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
61c125b9 TT |
8298 | # |
8299 | # INIT-COMMANDS | |
8300 | # | |
8301 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
8302 | ||
81ecdfbb | 8303 | _ACEOF |
bec39cab | 8304 | |
81ecdfbb | 8305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80864fb | 8306 | |
81ecdfbb | 8307 | # Handling of arguments. |
bec39cab AC |
8308 | for ac_config_target in $ac_config_targets |
8309 | do | |
81ecdfbb RW |
8310 | case $ac_config_target in |
8311 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
61c125b9 | 8312 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
81ecdfbb | 8313 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
81ecdfbb RW |
8314 | |
8315 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
d6e9fb05 | 8316 | esac |
bec39cab AC |
8317 | done |
8318 | ||
81ecdfbb | 8319 | |
bec39cab AC |
8320 | # If the user did not use the arguments to specify the items to instantiate, |
8321 | # then the envvar interface is used. Set only those that are not. | |
8322 | # We use the long form for the default assignment because of an extremely | |
8323 | # bizarre bug on SunOS 4.1.3. | |
8324 | if $ac_need_defaults; then | |
8325 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8326 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8327 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8328 | fi | |
d6e9fb05 | 8329 | |
bec39cab | 8330 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 8331 | # simply because there is no reason against having it here, and in addition, |
bec39cab | 8332 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8333 | # Hook for its removal unless debugging. |
8334 | # Note that there is a small window in which the directory will not be cleaned: | |
8335 | # after its creation but before its name has been assigned to `$tmp'. | |
bec39cab AC |
8336 | $debug || |
8337 | { | |
81ecdfbb RW |
8338 | tmp= |
8339 | trap 'exit_status=$? | |
8340 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8341 | ' 0 | |
8342 | trap 'as_fn_exit 1' 1 2 13 15 | |
bec39cab | 8343 | } |
bec39cab AC |
8344 | # Create a (secure) tmp directory for tmp files. |
8345 | ||
8346 | { | |
81ecdfbb | 8347 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bec39cab AC |
8348 | test -n "$tmp" && test -d "$tmp" |
8349 | } || | |
8350 | { | |
81ecdfbb RW |
8351 | tmp=./conf$$-$RANDOM |
8352 | (umask 077 && mkdir "$tmp") | |
8353 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
8354 | ||
8355 | # Set up the scripts for CONFIG_FILES section. | |
8356 | # No need to generate them if there are no CONFIG_FILES. | |
8357 | # This happens for instance with `./config.status config.h'. | |
8358 | if test -n "$CONFIG_FILES"; then | |
8359 | ||
8360 | ||
8361 | ac_cr=`echo X | tr X '\015'` | |
8362 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8363 | # But we know of no other shell where ac_cr would be empty at this | |
8364 | # point, so we can use a bashism as a fallback. | |
8365 | if test "x$ac_cr" = x; then | |
8366 | eval ac_cr=\$\'\\r\' | |
8367 | fi | |
8368 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8369 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8370 | ac_cs_awk_cr='\r' | |
8371 | else | |
8372 | ac_cs_awk_cr=$ac_cr | |
8373 | fi | |
8374 | ||
8375 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
8376 | _ACEOF | |
8377 | ||
8378 | ||
8379 | { | |
8380 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8381 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8382 | echo "_ACEOF" | |
8383 | } >conf$$subs.sh || | |
8384 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8385 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
8386 | ac_delim='%!_!# ' | |
8387 | for ac_last_try in false false false false false :; do | |
8388 | . ./conf$$subs.sh || | |
8389 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8390 | ||
8391 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8392 | if test $ac_delim_n = $ac_delim_num; then | |
8393 | break | |
8394 | elif $ac_last_try; then | |
8395 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8396 | else | |
8397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8398 | fi | |
8399 | done | |
8400 | rm -f conf$$subs.sh | |
8401 | ||
8402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8403 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
8404 | _ACEOF | |
8405 | sed -n ' | |
8406 | h | |
8407 | s/^/S["/; s/!.*/"]=/ | |
8408 | p | |
8409 | g | |
8410 | s/^[^!]*!// | |
8411 | :repl | |
8412 | t repl | |
8413 | s/'"$ac_delim"'$// | |
8414 | t delim | |
8415 | :nl | |
8416 | h | |
8417 | s/\(.\{148\}\).*/\1/ | |
8418 | t more1 | |
8419 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8420 | p | |
8421 | n | |
8422 | b repl | |
8423 | :more1 | |
8424 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8425 | p | |
8426 | g | |
8427 | s/.\{148\}// | |
8428 | t nl | |
8429 | :delim | |
8430 | h | |
8431 | s/\(.\{148\}\).*/\1/ | |
8432 | t more2 | |
8433 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8434 | p | |
8435 | b | |
8436 | :more2 | |
8437 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8438 | p | |
8439 | g | |
8440 | s/.\{148\}// | |
8441 | t delim | |
8442 | ' <conf$$subs.awk | sed ' | |
8443 | /^[^""]/{ | |
8444 | N | |
8445 | s/\n// | |
8446 | } | |
8447 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8448 | rm -f conf$$subs.awk | |
8449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8450 | _ACAWK | |
8451 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
8452 | for (key in S) S_is_set[key] = 1 | |
8453 | FS = "\a" | |
8454 | ||
8455 | } | |
bec39cab | 8456 | { |
81ecdfbb RW |
8457 | line = $ 0 |
8458 | nfields = split(line, field, "@") | |
8459 | substed = 0 | |
8460 | len = length(field[1]) | |
8461 | for (i = 2; i < nfields; i++) { | |
8462 | key = field[i] | |
8463 | keylen = length(key) | |
8464 | if (S_is_set[key]) { | |
8465 | value = S[key] | |
8466 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8467 | len += length(value) + length(field[++i]) | |
8468 | substed = 1 | |
8469 | } else | |
8470 | len += 1 + keylen | |
8471 | } | |
8472 | ||
8473 | print line | |
bec39cab AC |
8474 | } |
8475 | ||
81ecdfbb RW |
8476 | _ACAWK |
8477 | _ACEOF | |
8478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8479 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8480 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8481 | else | |
8482 | cat | |
8483 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
8484 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
dae5f5cf DJ |
8485 | _ACEOF |
8486 | ||
81ecdfbb RW |
8487 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8488 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8489 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8490 | # (actually we leave an empty line to preserve line numbers). | |
8491 | if test "x$srcdir" = x.; then | |
8492 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8493 | s/:*\$(srcdir):*/:/ | |
8494 | s/:*\${srcdir}:*/:/ | |
8495 | s/:*@srcdir@:*/:/ | |
8496 | s/^\([^=]*=[ ]*\):*/\1/ | |
8497 | s/:*$// | |
8498 | s/^[^=]*=[ ]*$// | |
8499 | }' | |
8500 | fi | |
bec39cab | 8501 | |
81ecdfbb RW |
8502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8503 | fi # test -n "$CONFIG_FILES" | |
bec39cab | 8504 | |
81ecdfbb RW |
8505 | # Set up the scripts for CONFIG_HEADERS section. |
8506 | # No need to generate them if there are no CONFIG_HEADERS. | |
8507 | # This happens for instance with `./config.status Makefile'. | |
8508 | if test -n "$CONFIG_HEADERS"; then | |
8509 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
8510 | BEGIN { | |
b80864fb DJ |
8511 | _ACEOF |
8512 | ||
81ecdfbb RW |
8513 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8514 | # here-document in config.status, that substitutes the proper values into | |
8515 | # config.h.in to produce config.h. | |
8516 | ||
8517 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8518 | # handling of long lines. | |
8519 | ac_delim='%!_!# ' | |
8520 | for ac_last_try in false false :; do | |
8521 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
8522 | if test -z "$ac_t"; then | |
8523 | break | |
8524 | elif $ac_last_try; then | |
8525 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8526 | else | |
8527 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d6e9fb05 | 8528 | fi |
81ecdfbb | 8529 | done |
d6e9fb05 | 8530 | |
81ecdfbb RW |
8531 | # For the awk script, D is an array of macro values keyed by name, |
8532 | # likewise P contains macro parameters if any. Preserve backslash | |
8533 | # newline sequences. | |
8534 | ||
8535 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8536 | sed -n ' | |
8537 | s/.\{148\}/&'"$ac_delim"'/g | |
8538 | t rset | |
8539 | :rset | |
8540 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8541 | t def | |
8542 | d | |
8543 | :def | |
8544 | s/\\$// | |
8545 | t bsnl | |
8546 | s/["\\]/\\&/g | |
8547 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8548 | D["\1"]=" \3"/p | |
8549 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8550 | d | |
8551 | :bsnl | |
8552 | s/["\\]/\\&/g | |
8553 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8554 | D["\1"]=" \3\\\\\\n"\\/p | |
8555 | t cont | |
8556 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8557 | t cont | |
8558 | d | |
8559 | :cont | |
8560 | n | |
8561 | s/.\{148\}/&'"$ac_delim"'/g | |
8562 | t clear | |
8563 | :clear | |
8564 | s/\\$// | |
8565 | t bsnlc | |
8566 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8567 | d | |
8568 | :bsnlc | |
8569 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8570 | b cont | |
8571 | ' <confdefs.h | sed ' | |
8572 | s/'"$ac_delim"'/"\\\ | |
8573 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8574 | ||
8575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8576 | for (key in D) D_is_set[key] = 1 | |
8577 | FS = "\a" | |
8578 | } | |
8579 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8580 | line = \$ 0 | |
8581 | split(line, arg, " ") | |
8582 | if (arg[1] == "#") { | |
8583 | defundef = arg[2] | |
8584 | mac1 = arg[3] | |
8585 | } else { | |
8586 | defundef = substr(arg[1], 2) | |
8587 | mac1 = arg[2] | |
8588 | } | |
8589 | split(mac1, mac2, "(") #) | |
8590 | macro = mac2[1] | |
8591 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8592 | if (D_is_set[macro]) { | |
8593 | # Preserve the white space surrounding the "#". | |
8594 | print prefix "define", macro P[macro] D[macro] | |
8595 | next | |
8596 | } else { | |
8597 | # Replace #undef with comments. This is necessary, for example, | |
8598 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8599 | # on some systems where configure will not decide to define it. | |
8600 | if (defundef == "undef") { | |
8601 | print "/*", prefix defundef, macro, "*/" | |
8602 | next | |
8603 | } | |
8604 | } | |
8605 | } | |
8606 | { print } | |
8607 | _ACAWK | |
bec39cab | 8608 | _ACEOF |
81ecdfbb RW |
8609 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8610 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
8611 | fi # test -n "$CONFIG_HEADERS" | |
8612 | ||
8613 | ||
8614 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8615 | shift | |
8616 | for ac_tag | |
8617 | do | |
8618 | case $ac_tag in | |
8619 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8620 | esac | |
8621 | case $ac_mode$ac_tag in | |
8622 | :[FHL]*:*);; | |
8623 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8624 | :[FH]-) ac_tag=-:-;; | |
8625 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8626 | esac | |
8627 | ac_save_IFS=$IFS | |
8628 | IFS=: | |
8629 | set x $ac_tag | |
8630 | IFS=$ac_save_IFS | |
8631 | shift | |
8632 | ac_file=$1 | |
8633 | shift | |
8634 | ||
8635 | case $ac_mode in | |
8636 | :L) ac_source=$1;; | |
8637 | :[FH]) | |
8638 | ac_file_inputs= | |
8639 | for ac_f | |
8640 | do | |
8641 | case $ac_f in | |
8642 | -) ac_f="$tmp/stdin";; | |
8643 | *) # Look for the file first in the build tree, then in the source tree | |
8644 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8645 | # because $ac_f cannot contain `:'. | |
8646 | test -f "$ac_f" || | |
8647 | case $ac_f in | |
8648 | [\\/$]*) false;; | |
8649 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8650 | esac || | |
8651 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8652 | esac | |
8653 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8654 | as_fn_append ac_file_inputs " '$ac_f'" | |
8655 | done | |
8656 | ||
8657 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8658 | # use $as_me), people would be surprised to read: | |
8659 | # /* config.h. Generated by config.status. */ | |
8660 | configure_input='Generated from '` | |
8661 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8662 | `' by configure.' | |
8663 | if test x"$ac_file" != x-; then | |
8664 | configure_input="$ac_file. $configure_input" | |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8666 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8667 | fi | |
8668 | # Neutralize special characters interpreted by sed in replacement strings. | |
8669 | case $configure_input in #( | |
8670 | *\&* | *\|* | *\\* ) | |
8671 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8672 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8673 | *) ac_sed_conf_input=$configure_input;; | |
8674 | esac | |
8675 | ||
8676 | case $ac_tag in | |
8677 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8678 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
8679 | esac | |
8680 | ;; | |
d6e9fb05 JK |
8681 | esac |
8682 | ||
81ecdfbb | 8683 | ac_dir=`$as_dirname -- "$ac_file" || |
bec39cab AC |
8684 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8685 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8686 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8687 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8688 | $as_echo X"$ac_file" | | |
8689 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8690 | s//\1/ | |
8691 | q | |
8692 | } | |
8693 | /^X\(\/\/\)[^/].*/{ | |
8694 | s//\1/ | |
8695 | q | |
8696 | } | |
8697 | /^X\(\/\/\)$/{ | |
8698 | s//\1/ | |
8699 | q | |
8700 | } | |
8701 | /^X\(\/\).*/{ | |
8702 | s//\1/ | |
8703 | q | |
8704 | } | |
8705 | s/.*/./; q'` | |
8706 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bec39cab AC |
8707 | ac_builddir=. |
8708 | ||
81ecdfbb RW |
8709 | case "$ac_dir" in |
8710 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8711 | *) | |
8712 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8713 | # A ".." for each directory in $ac_dir_suffix. | |
8714 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8715 | case $ac_top_builddir_sub in | |
8716 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8717 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8718 | esac ;; | |
8719 | esac | |
8720 | ac_abs_top_builddir=$ac_pwd | |
8721 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8722 | # for backward compatibility: | |
8723 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
8724 | |
8725 | case $srcdir in | |
81ecdfbb | 8726 | .) # We are building in place. |
bec39cab | 8727 | ac_srcdir=. |
81ecdfbb RW |
8728 | ac_top_srcdir=$ac_top_builddir_sub |
8729 | ac_abs_top_srcdir=$ac_pwd ;; | |
8730 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 8731 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8732 | ac_top_srcdir=$srcdir |
8733 | ac_abs_top_srcdir=$srcdir ;; | |
8734 | *) # Relative name. | |
8735 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8736 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8737 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 8738 | esac |
81ecdfbb | 8739 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 8740 | |
bec39cab | 8741 | |
81ecdfbb RW |
8742 | case $ac_mode in |
8743 | :F) | |
8744 | # | |
8745 | # CONFIG_FILE | |
8746 | # | |
d6e9fb05 | 8747 | |
bec39cab AC |
8748 | case $INSTALL in |
8749 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8750 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d6e9fb05 | 8751 | esac |
81ecdfbb | 8752 | _ACEOF |
3db0444b | 8753 | |
81ecdfbb RW |
8754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8755 | # If the template does not know about datarootdir, expand it. | |
8756 | # FIXME: This hack should be removed a few years after 2.60. | |
8757 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8758 | ac_sed_dataroot=' | |
8759 | /datarootdir/ { | |
8760 | p | |
8761 | q | |
8762 | } | |
8763 | /@datadir@/p | |
8764 | /@docdir@/p | |
8765 | /@infodir@/p | |
8766 | /@localedir@/p | |
8767 | /@mandir@/p' | |
8768 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8769 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8770 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8772 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8773 | _ACEOF | |
8774 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8775 | ac_datarootdir_hack=' | |
8776 | s&@datadir@&$datadir&g | |
8777 | s&@docdir@&$docdir&g | |
8778 | s&@infodir@&$infodir&g | |
8779 | s&@localedir@&$localedir&g | |
8780 | s&@mandir@&$mandir&g | |
8781 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8782 | esac | |
bec39cab | 8783 | _ACEOF |
81ecdfbb RW |
8784 | |
8785 | # Neutralize VPATH when `$srcdir' = `.'. | |
8786 | # Shell code in configure.ac might set extrasub. | |
8787 | # FIXME: do we really want to maintain this feature? | |
8788 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8789 | ac_sed_extra="$ac_vpsub | |
bec39cab AC |
8790 | $extrasub |
8791 | _ACEOF | |
81ecdfbb | 8792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab AC |
8793 | :t |
8794 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8795 | s|@configure_input@|$ac_sed_conf_input|;t t |
8796 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8797 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8798 | s&@srcdir@&$ac_srcdir&;t t | |
8799 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8800 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8801 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8802 | s&@builddir@&$ac_builddir&;t t | |
8803 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8804 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8805 | s&@INSTALL@&$ac_INSTALL&;t t | |
8806 | $ac_datarootdir_hack | |
8807 | " | |
8808 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8809 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8810 | ||
8811 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8812 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8813 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8815 | which seems to be undefined. Please make sure it is defined." >&5 | |
8816 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8817 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8818 | ||
8819 | rm -f "$tmp/stdin" | |
bec39cab | 8820 | case $ac_file in |
81ecdfbb RW |
8821 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
8822 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
8823 | esac \ | |
8824 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8825 | ;; | |
8826 | :H) | |
8827 | # | |
8828 | # CONFIG_HEADER | |
8829 | # | |
bec39cab | 8830 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8831 | { |
8832 | $as_echo "/* $configure_input */" \ | |
8833 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8834 | } >"$tmp/config.h" \ | |
8835 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
8836 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8838 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bec39cab | 8839 | else |
81ecdfbb RW |
8840 | rm -f "$ac_file" |
8841 | mv "$tmp/config.h" "$ac_file" \ | |
8842 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
84563040 | 8843 | fi |
bec39cab | 8844 | else |
81ecdfbb RW |
8845 | $as_echo "/* $configure_input */" \ |
8846 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8847 | || as_fn_error "could not create -" "$LINENO" 5 | |
d6e9fb05 | 8848 | fi |
81ecdfbb | 8849 | ;; |
dae5f5cf | 8850 | |
81ecdfbb RW |
8851 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8852 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8853 | ;; | |
8854 | esac | |
dae5f5cf DJ |
8855 | |
8856 | ||
81ecdfbb | 8857 | case $ac_file$ac_mode in |
61c125b9 | 8858 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
1e94266c | 8859 | "Makefile":F) case x$CONFIG_HEADERS in |
c3a3ccc7 DJ |
8860 | xconfig.h:config.in) |
8861 | echo > stamp-h ;; | |
8862 | esac | |
bec39cab | 8863 | ;; |
81ecdfbb | 8864 | |
bec39cab | 8865 | esac |
81ecdfbb | 8866 | done # for ac_tag |
d6e9fb05 | 8867 | |
bec39cab | 8868 | |
81ecdfbb | 8869 | as_fn_exit 0 |
bec39cab | 8870 | _ACEOF |
bec39cab AC |
8871 | ac_clean_files=$ac_clean_files_save |
8872 | ||
81ecdfbb RW |
8873 | test $ac_write_fail = 0 || |
8874 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8875 | ||
bec39cab AC |
8876 | |
8877 | # configure is writing to config.log, and then calls config.status. | |
8878 | # config.status does its own redirection, appending to config.log. | |
8879 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8880 | # by configure, so config.status won't be able to write to it; its | |
8881 | # output is simply discarded. So we exec the FD to /dev/null, | |
8882 | # effectively closing config.log, so it can be properly (re)opened and | |
8883 | # appended to by config.status. When coming back to configure, we | |
8884 | # need to make the FD available again. | |
8885 | if test "$no_create" != yes; then | |
8886 | ac_cs_success=: | |
8887 | ac_config_status_args= | |
8888 | test "$silent" = yes && | |
8889 | ac_config_status_args="$ac_config_status_args --quiet" | |
8890 | exec 5>/dev/null | |
8891 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8892 | exec 5>>config.log | |
8893 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8894 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
8895 | $ac_cs_success || as_fn_exit $? |
8896 | fi | |
8897 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8899 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bec39cab | 8900 | fi |
d6e9fb05 | 8901 |