Lines 1-11
Link Here
|
1 |
--- configure.orig 2011-04-19 11:36:37.000000000 -0400 |
1 |
--- configure.orig 2013-09-21 22:40:39 UTC |
2 |
+++ configure 2011-10-18 13:48:27.000000000 -0400 |
2 |
+++ configure |
3 |
@@ -1762,6 +1762,8 @@ |
3 |
@@ -1,80 +1,754 @@ |
4 |
cat > conftest.$ac_ext <<EOF |
4 |
#! /bin/sh |
5 |
#line 1764 "configure" |
5 |
-LANG= |
6 |
#include "confdefs.h" |
6 |
-LC_ALL= |
7 |
+#include <sys/types.h> |
7 |
- |
8 |
+#include <netinet/in.h> |
8 |
# Guess values for system-dependent variables and create Makefiles. |
|
|
9 |
-# Generated automatically using autoconf version 2.13 |
10 |
-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
11 |
+# Generated by GNU Autoconf 2.69. |
12 |
+# |
13 |
+# |
14 |
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
15 |
+# |
16 |
# |
17 |
# This configure script is free software; the Free Software Foundation |
18 |
# gives unlimited permission to copy, distribute and modify it. |
19 |
+## -------------------- ## |
20 |
+## M4sh Initialization. ## |
21 |
+## -------------------- ## |
22 |
|
23 |
-# Defaults: |
24 |
-ac_help= |
25 |
+# Be more Bourne compatible |
26 |
+DUALCASE=1; export DUALCASE # for MKS sh |
27 |
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
28 |
+ emulate sh |
29 |
+ NULLCMD=: |
30 |
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
31 |
+ # is contrary to our usage. Disable this feature. |
32 |
+ alias -g '${1+"$@"}'='"$@"' |
33 |
+ setopt NO_GLOB_SUBST |
34 |
+else |
35 |
+ case `(set -o) 2>/dev/null` in #( |
36 |
+ *posix*) : |
37 |
+ set -o posix ;; #( |
38 |
+ *) : |
39 |
+ ;; |
40 |
+esac |
41 |
+fi |
42 |
+ |
43 |
+ |
44 |
+as_nl=' |
45 |
+' |
46 |
+export as_nl |
47 |
+# Printing a long string crashes Solaris 7 /usr/bin/printf. |
48 |
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
49 |
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
50 |
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
51 |
+# Prefer a ksh shell builtin over an external printf program on Solaris, |
52 |
+# but without wasting forks for bash or zsh. |
53 |
+if test -z "$BASH_VERSION$ZSH_VERSION" \ |
54 |
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
55 |
+ as_echo='print -r --' |
56 |
+ as_echo_n='print -rn --' |
57 |
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
58 |
+ as_echo='printf %s\n' |
59 |
+ as_echo_n='printf %s' |
60 |
+else |
61 |
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
62 |
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
63 |
+ as_echo_n='/usr/ucb/echo -n' |
64 |
+ else |
65 |
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
66 |
+ as_echo_n_body='eval |
67 |
+ arg=$1; |
68 |
+ case $arg in #( |
69 |
+ *"$as_nl"*) |
70 |
+ expr "X$arg" : "X\\(.*\\)$as_nl"; |
71 |
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
72 |
+ esac; |
73 |
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
74 |
+ ' |
75 |
+ export as_echo_n_body |
76 |
+ as_echo_n='sh -c $as_echo_n_body as_echo' |
77 |
+ fi |
78 |
+ export as_echo_body |
79 |
+ as_echo='sh -c $as_echo_body as_echo' |
80 |
+fi |
81 |
+ |
82 |
+# The user is always right. |
83 |
+if test "${PATH_SEPARATOR+set}" != set; then |
84 |
+ PATH_SEPARATOR=: |
85 |
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
86 |
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
87 |
+ PATH_SEPARATOR=';' |
88 |
+ } |
89 |
+fi |
90 |
+ |
91 |
+ |
92 |
+# IFS |
93 |
+# We need space, tab and new line, in precisely that order. Quoting is |
94 |
+# there to prevent editors from complaining about space-tab. |
95 |
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
96 |
+# splitting by setting IFS to empty value.) |
97 |
+IFS=" "" $as_nl" |
98 |
+ |
99 |
+# Find who we are. Look in the path if we contain no directory separator. |
100 |
+as_myself= |
101 |
+case $0 in #(( |
102 |
+ *[\\/]* ) as_myself=$0 ;; |
103 |
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
104 |
+for as_dir in $PATH |
105 |
+do |
106 |
+ IFS=$as_save_IFS |
107 |
+ test -z "$as_dir" && as_dir=. |
108 |
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
109 |
+ done |
110 |
+IFS=$as_save_IFS |
111 |
+ |
112 |
+ ;; |
113 |
+esac |
114 |
+# We did not find ourselves, most probably we were run as `sh COMMAND' |
115 |
+# in which case we are not to be found in the path. |
116 |
+if test "x$as_myself" = x; then |
117 |
+ as_myself=$0 |
118 |
+fi |
119 |
+if test ! -f "$as_myself"; then |
120 |
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
121 |
+ exit 1 |
122 |
+fi |
123 |
+ |
124 |
+# Unset variables that we do not need and which cause bugs (e.g. in |
125 |
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
126 |
+# suppresses any "Segmentation fault" message there. '((' could |
127 |
+# trigger a bug in pdksh 5.2.14. |
128 |
+for as_var in BASH_ENV ENV MAIL MAILPATH |
129 |
+do eval test x\${$as_var+set} = xset \ |
130 |
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
131 |
+done |
132 |
+PS1='$ ' |
133 |
+PS2='> ' |
134 |
+PS4='+ ' |
135 |
+ |
136 |
+# NLS nuisances. |
137 |
+LC_ALL=C |
138 |
+export LC_ALL |
139 |
+LANGUAGE=C |
140 |
+export LANGUAGE |
141 |
+ |
142 |
+# CDPATH. |
143 |
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
144 |
+ |
145 |
+# Use a proper internal environment variable to ensure we don't fall |
146 |
+ # into an infinite loop, continuously re-executing ourselves. |
147 |
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
148 |
+ _as_can_reexec=no; export _as_can_reexec; |
149 |
+ # We cannot yet assume a decent shell, so we have to provide a |
150 |
+# neutralization value for shells without unset; and this also |
151 |
+# works around shells that cannot unset nonexistent variables. |
152 |
+# Preserve -v and -x to the replacement shell. |
153 |
+BASH_ENV=/dev/null |
154 |
+ENV=/dev/null |
155 |
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
156 |
+case $- in # (((( |
157 |
+ *v*x* | *x*v* ) as_opts=-vx ;; |
158 |
+ *v* ) as_opts=-v ;; |
159 |
+ *x* ) as_opts=-x ;; |
160 |
+ * ) as_opts= ;; |
161 |
+esac |
162 |
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
163 |
+# Admittedly, this is quite paranoid, since all the known shells bail |
164 |
+# out after a failed `exec'. |
165 |
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
166 |
+as_fn_exit 255 |
167 |
+ fi |
168 |
+ # We don't want this to propagate to other subprocesses. |
169 |
+ { _as_can_reexec=; unset _as_can_reexec;} |
170 |
+if test "x$CONFIG_SHELL" = x; then |
171 |
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
172 |
+ emulate sh |
173 |
+ NULLCMD=: |
174 |
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
175 |
+ # is contrary to our usage. Disable this feature. |
176 |
+ alias -g '\${1+\"\$@\"}'='\"\$@\"' |
177 |
+ setopt NO_GLOB_SUBST |
178 |
+else |
179 |
+ case \`(set -o) 2>/dev/null\` in #( |
180 |
+ *posix*) : |
181 |
+ set -o posix ;; #( |
182 |
+ *) : |
183 |
+ ;; |
184 |
+esac |
185 |
+fi |
186 |
+" |
187 |
+ as_required="as_fn_return () { (exit \$1); } |
188 |
+as_fn_success () { as_fn_return 0; } |
189 |
+as_fn_failure () { as_fn_return 1; } |
190 |
+as_fn_ret_success () { return 0; } |
191 |
+as_fn_ret_failure () { return 1; } |
192 |
+ |
193 |
+exitcode=0 |
194 |
+as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
195 |
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
196 |
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
197 |
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
198 |
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
199 |
+ |
200 |
+else |
201 |
+ exitcode=1; echo positional parameters were not saved. |
202 |
+fi |
203 |
+test x\$exitcode = x0 || exit 1 |
204 |
+test -x / || exit 1" |
205 |
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
206 |
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
207 |
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
208 |
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
209 |
+test \$(( 1 + 1 )) = 2 || exit 1" |
210 |
+ if (eval "$as_required") 2>/dev/null; then : |
211 |
+ as_have_required=yes |
212 |
+else |
213 |
+ as_have_required=no |
214 |
+fi |
215 |
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
216 |
+ |
217 |
+else |
218 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 |
+as_found=false |
220 |
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 |
+do |
222 |
+ IFS=$as_save_IFS |
223 |
+ test -z "$as_dir" && as_dir=. |
224 |
+ as_found=: |
225 |
+ case $as_dir in #( |
226 |
+ /*) |
227 |
+ for as_base in sh bash ksh sh5; do |
228 |
+ # Try only shells that exist, to save several forks. |
229 |
+ as_shell=$as_dir/$as_base |
230 |
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
231 |
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
232 |
+ CONFIG_SHELL=$as_shell as_have_required=yes |
233 |
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
234 |
+ break 2 |
235 |
+fi |
236 |
+fi |
237 |
+ done;; |
238 |
+ esac |
239 |
+ as_found=false |
240 |
+done |
241 |
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
242 |
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
243 |
+ CONFIG_SHELL=$SHELL as_have_required=yes |
244 |
+fi; } |
245 |
+IFS=$as_save_IFS |
246 |
+ |
247 |
+ |
248 |
+ if test "x$CONFIG_SHELL" != x; then : |
249 |
+ export CONFIG_SHELL |
250 |
+ # We cannot yet assume a decent shell, so we have to provide a |
251 |
+# neutralization value for shells without unset; and this also |
252 |
+# works around shells that cannot unset nonexistent variables. |
253 |
+# Preserve -v and -x to the replacement shell. |
254 |
+BASH_ENV=/dev/null |
255 |
+ENV=/dev/null |
256 |
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
257 |
+case $- in # (((( |
258 |
+ *v*x* | *x*v* ) as_opts=-vx ;; |
259 |
+ *v* ) as_opts=-v ;; |
260 |
+ *x* ) as_opts=-x ;; |
261 |
+ * ) as_opts= ;; |
262 |
+esac |
263 |
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
264 |
+# Admittedly, this is quite paranoid, since all the known shells bail |
265 |
+# out after a failed `exec'. |
266 |
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
267 |
+exit 255 |
268 |
+fi |
269 |
+ |
270 |
+ if test x$as_have_required = xno; then : |
271 |
+ $as_echo "$0: This script requires a shell more modern than all" |
272 |
+ $as_echo "$0: the shells that I found on your system." |
273 |
+ if test x${ZSH_VERSION+set} = xset ; then |
274 |
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
275 |
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
276 |
+ else |
277 |
+ $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
278 |
+$0: including any error possibly output before this |
279 |
+$0: message. Then install a modern shell, or manually run |
280 |
+$0: the script under such a shell if you do have one." |
281 |
+ fi |
282 |
+ exit 1 |
283 |
+fi |
284 |
+fi |
285 |
+fi |
286 |
+SHELL=${CONFIG_SHELL-/bin/sh} |
287 |
+export SHELL |
288 |
+# Unset more variables known to interfere with behavior of common tools. |
289 |
+CLICOLOR_FORCE= GREP_OPTIONS= |
290 |
+unset CLICOLOR_FORCE GREP_OPTIONS |
291 |
+ |
292 |
+## --------------------- ## |
293 |
+## M4sh Shell Functions. ## |
294 |
+## --------------------- ## |
295 |
+# as_fn_unset VAR |
296 |
+# --------------- |
297 |
+# Portably unset VAR. |
298 |
+as_fn_unset () |
299 |
+{ |
300 |
+ { eval $1=; unset $1;} |
301 |
+} |
302 |
+as_unset=as_fn_unset |
303 |
+ |
304 |
+# as_fn_set_status STATUS |
305 |
+# ----------------------- |
306 |
+# Set $? to STATUS, without forking. |
307 |
+as_fn_set_status () |
308 |
+{ |
309 |
+ return $1 |
310 |
+} # as_fn_set_status |
311 |
+ |
312 |
+# as_fn_exit STATUS |
313 |
+# ----------------- |
314 |
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
315 |
+as_fn_exit () |
316 |
+{ |
317 |
+ set +e |
318 |
+ as_fn_set_status $1 |
319 |
+ exit $1 |
320 |
+} # as_fn_exit |
321 |
+ |
322 |
+# as_fn_mkdir_p |
323 |
+# ------------- |
324 |
+# Create "$as_dir" as a directory, including parents if necessary. |
325 |
+as_fn_mkdir_p () |
326 |
+{ |
327 |
+ |
328 |
+ case $as_dir in #( |
329 |
+ -*) as_dir=./$as_dir;; |
330 |
+ esac |
331 |
+ test -d "$as_dir" || eval $as_mkdir_p || { |
332 |
+ as_dirs= |
333 |
+ while :; do |
334 |
+ case $as_dir in #( |
335 |
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
336 |
+ *) as_qdir=$as_dir;; |
337 |
+ esac |
338 |
+ as_dirs="'$as_qdir' $as_dirs" |
339 |
+ as_dir=`$as_dirname -- "$as_dir" || |
340 |
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
341 |
+ X"$as_dir" : 'X\(//\)[^/]' \| \ |
342 |
+ X"$as_dir" : 'X\(//\)$' \| \ |
343 |
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
344 |
+$as_echo X"$as_dir" | |
345 |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 |
+ s//\1/ |
347 |
+ q |
348 |
+ } |
349 |
+ /^X\(\/\/\)[^/].*/{ |
350 |
+ s//\1/ |
351 |
+ q |
352 |
+ } |
353 |
+ /^X\(\/\/\)$/{ |
354 |
+ s//\1/ |
355 |
+ q |
356 |
+ } |
357 |
+ /^X\(\/\).*/{ |
358 |
+ s//\1/ |
359 |
+ q |
360 |
+ } |
361 |
+ s/.*/./; q'` |
362 |
+ test -d "$as_dir" && break |
363 |
+ done |
364 |
+ test -z "$as_dirs" || eval "mkdir $as_dirs" |
365 |
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
366 |
+ |
367 |
+ |
368 |
+} # as_fn_mkdir_p |
369 |
+ |
370 |
+# as_fn_executable_p FILE |
371 |
+# ----------------------- |
372 |
+# Test if FILE is an executable regular file. |
373 |
+as_fn_executable_p () |
374 |
+{ |
375 |
+ test -f "$1" && test -x "$1" |
376 |
+} # as_fn_executable_p |
377 |
+# as_fn_append VAR VALUE |
378 |
+# ---------------------- |
379 |
+# Append the text in VALUE to the end of the definition contained in VAR. Take |
380 |
+# advantage of any shell optimizations that allow amortized linear growth over |
381 |
+# repeated appends, instead of the typical quadratic growth present in naive |
382 |
+# implementations. |
383 |
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
384 |
+ eval 'as_fn_append () |
385 |
+ { |
386 |
+ eval $1+=\$2 |
387 |
+ }' |
388 |
+else |
389 |
+ as_fn_append () |
390 |
+ { |
391 |
+ eval $1=\$$1\$2 |
392 |
+ } |
393 |
+fi # as_fn_append |
394 |
+ |
395 |
+# as_fn_arith ARG... |
396 |
+# ------------------ |
397 |
+# Perform arithmetic evaluation on the ARGs, and store the result in the |
398 |
+# global $as_val. Take advantage of shells that can avoid forks. The arguments |
399 |
+# must be portable across $(()) and expr. |
400 |
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
401 |
+ eval 'as_fn_arith () |
402 |
+ { |
403 |
+ as_val=$(( $* )) |
404 |
+ }' |
405 |
+else |
406 |
+ as_fn_arith () |
407 |
+ { |
408 |
+ as_val=`expr "$@" || test $? -eq 1` |
409 |
+ } |
410 |
+fi # as_fn_arith |
411 |
+ |
412 |
+ |
413 |
+# as_fn_error STATUS ERROR [LINENO LOG_FD] |
414 |
+# ---------------------------------------- |
415 |
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
416 |
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
417 |
+# script with STATUS, using 1 if that was 0. |
418 |
+as_fn_error () |
419 |
+{ |
420 |
+ as_status=$1; test $as_status -eq 0 && as_status=1 |
421 |
+ if test "$4"; then |
422 |
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
423 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
424 |
+ fi |
425 |
+ $as_echo "$as_me: error: $2" >&2 |
426 |
+ as_fn_exit $as_status |
427 |
+} # as_fn_error |
428 |
+ |
429 |
+if expr a : '\(a\)' >/dev/null 2>&1 && |
430 |
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then |
431 |
+ as_expr=expr |
432 |
+else |
433 |
+ as_expr=false |
434 |
+fi |
435 |
+ |
436 |
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
437 |
+ as_basename=basename |
438 |
+else |
439 |
+ as_basename=false |
440 |
+fi |
441 |
+ |
442 |
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
443 |
+ as_dirname=dirname |
444 |
+else |
445 |
+ as_dirname=false |
446 |
+fi |
447 |
+ |
448 |
+as_me=`$as_basename -- "$0" || |
449 |
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
450 |
+ X"$0" : 'X\(//\)$' \| \ |
451 |
+ X"$0" : 'X\(/\)' \| . 2>/dev/null || |
452 |
+$as_echo X/"$0" | |
453 |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ |
454 |
+ s//\1/ |
455 |
+ q |
456 |
+ } |
457 |
+ /^X\/\(\/\/\)$/{ |
458 |
+ s//\1/ |
459 |
+ q |
460 |
+ } |
461 |
+ /^X\/\(\/\).*/{ |
462 |
+ s//\1/ |
463 |
+ q |
464 |
+ } |
465 |
+ s/.*/./; q'` |
466 |
+ |
467 |
+# Avoid depending upon Character Ranges. |
468 |
+as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
469 |
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
470 |
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
471 |
+as_cr_digits='0123456789' |
472 |
+as_cr_alnum=$as_cr_Letters$as_cr_digits |
473 |
+ |
474 |
+ |
475 |
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO |
476 |
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO |
477 |
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
478 |
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
479 |
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
480 |
+ sed -n ' |
481 |
+ p |
482 |
+ /[$]LINENO/= |
483 |
+ ' <$as_myself | |
484 |
+ sed ' |
485 |
+ s/[$]LINENO.*/&-/ |
486 |
+ t lineno |
487 |
+ b |
488 |
+ :lineno |
489 |
+ N |
490 |
+ :loop |
491 |
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
492 |
+ t loop |
493 |
+ s/-\n.*// |
494 |
+ ' >$as_me.lineno && |
495 |
+ chmod +x "$as_me.lineno" || |
496 |
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
497 |
+ |
498 |
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
499 |
+ # already done that, so ensure we don't try to do so again and fall |
500 |
+ # in an infinite loop. This has already happened in practice. |
501 |
+ _as_can_reexec=no; export _as_can_reexec |
502 |
+ # Don't try to exec as it changes $[0], causing all sort of problems |
503 |
+ # (the dirname of $[0] is not the place where we might find the |
504 |
+ # original and so on. Autoconf is especially sensitive to this). |
505 |
+ . "./$as_me.lineno" |
506 |
+ # Exit status is that of the last command. |
507 |
+ exit |
508 |
+} |
509 |
+ |
510 |
+ECHO_C= ECHO_N= ECHO_T= |
511 |
+case `echo -n x` in #((((( |
512 |
+-n*) |
513 |
+ case `echo 'xy\c'` in |
514 |
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
515 |
+ xy) ECHO_C='\c';; |
516 |
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
517 |
+ ECHO_T=' ';; |
518 |
+ esac;; |
519 |
+*) |
520 |
+ ECHO_N='-n';; |
521 |
+esac |
522 |
+ |
523 |
+rm -f conf$$ conf$$.exe conf$$.file |
524 |
+if test -d conf$$.dir; then |
525 |
+ rm -f conf$$.dir/conf$$.file |
526 |
+else |
527 |
+ rm -f conf$$.dir |
528 |
+ mkdir conf$$.dir 2>/dev/null |
529 |
+fi |
530 |
+if (echo >conf$$.file) 2>/dev/null; then |
531 |
+ if ln -s conf$$.file conf$$ 2>/dev/null; then |
532 |
+ as_ln_s='ln -s' |
533 |
+ # ... but there are two gotchas: |
534 |
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
535 |
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
536 |
+ # In both cases, we have to default to `cp -pR'. |
537 |
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
538 |
+ as_ln_s='cp -pR' |
539 |
+ elif ln conf$$.file conf$$ 2>/dev/null; then |
540 |
+ as_ln_s=ln |
541 |
+ else |
542 |
+ as_ln_s='cp -pR' |
543 |
+ fi |
544 |
+else |
545 |
+ as_ln_s='cp -pR' |
546 |
+fi |
547 |
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
548 |
+rmdir conf$$.dir 2>/dev/null |
549 |
+ |
550 |
+if mkdir -p . 2>/dev/null; then |
551 |
+ as_mkdir_p='mkdir -p "$as_dir"' |
552 |
+else |
553 |
+ test -d ./-p && rmdir ./-p |
554 |
+ as_mkdir_p=false |
555 |
+fi |
556 |
+ |
557 |
+as_test_x='test -x' |
558 |
+as_executable_p=as_fn_executable_p |
559 |
+ |
560 |
+# Sed expression to map a string onto a valid CPP name. |
561 |
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
562 |
+ |
563 |
+# Sed expression to map a string onto a valid variable name. |
564 |
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
565 |
+ |
566 |
+ |
567 |
+test -n "$DJDIR" || exec 7<&0 </dev/null |
568 |
+exec 6>&1 |
569 |
+ |
570 |
+# Name of the host. |
571 |
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
572 |
+# so uname gets run too. |
573 |
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
574 |
+ |
575 |
+# |
576 |
+# Initializations. |
577 |
+# |
578 |
ac_default_prefix=/usr/local |
579 |
-# Any additions from configure.in: |
580 |
-ac_help="$ac_help |
581 |
- --enable-debuglevel set internal checking level |
582 |
- -1 - recover from segmentation faults |
583 |
- 0 - no checks (fastest) |
584 |
- 1 - check memory leaks |
585 |
- 2 - check memory leaks, red zone |
586 |
- 3 - check memory leaks, red zone, pattern filling" |
587 |
-ac_help="$ac_help |
588 |
- --enable-graphics use graphics" |
589 |
-ac_help="$ac_help |
590 |
- --disable-utf8 disable UTF-8 terminal (saves memory)" |
591 |
-ac_help="$ac_help |
592 |
- --without-getaddrinfo compile without getaddrinfo function" |
593 |
-ac_help="$ac_help |
594 |
- --without-ipv6 compile without ipv6" |
595 |
-ac_help="$ac_help |
596 |
- --without-gpm compile without gpm mouse" |
597 |
-ac_help="$ac_help |
598 |
- --with-ssl(=directory) enable SSL support |
599 |
- --with-ssl=nss enable SSL support through NSS OpenSSL emulation" |
600 |
-ac_help="$ac_help |
601 |
- --disable-ssl-pkgconfig don't use pkgconfig when searching for openssl" |
602 |
-ac_help="$ac_help |
603 |
- --without-zlib compile without zlib compression" |
604 |
-ac_help="$ac_help |
605 |
- --without-bzip2 compile without bzip2 compression" |
606 |
-ac_help="$ac_help |
607 |
- --without-lzma compile without lzma compression" |
608 |
-ac_help="$ac_help |
609 |
- --without-svgalib compile without svgalib graphics driver" |
610 |
-ac_help="$ac_help |
611 |
- --without-x compile without X Window System graphics driver" |
612 |
-ac_help="$ac_help |
613 |
- --without-fb compile without Linux Framebuffer graphics driver" |
614 |
-ac_help="$ac_help |
615 |
- --without-directfb compile without DirectFB graphics driver" |
616 |
-ac_help="$ac_help |
617 |
- --without-pmshell compile without PMShell graphics driver" |
618 |
-ac_help="$ac_help |
619 |
- --without-windows compile without Windows graphics driver" |
620 |
-ac_help="$ac_help |
621 |
- --without-atheos compile without Atheos graphics driver" |
622 |
-ac_help="$ac_help |
623 |
- --without-grx compile without DOS GRX graphics driver" |
624 |
-ac_help="$ac_help |
625 |
- --with-x use the X Window System" |
626 |
-ac_help="$ac_help |
627 |
- --disable-png-pkgconfig don't use pkgconfig when searching for libpng" |
628 |
-ac_help="$ac_help |
629 |
- --without-libjpeg compile without JPEG support" |
630 |
-ac_help="$ac_help |
631 |
- --without-libtiff compile without TIFF support" |
632 |
+ac_clean_files= |
633 |
+ac_config_libobj_dir=. |
634 |
+LIBOBJS= |
635 |
+cross_compiling=no |
636 |
+subdirs= |
637 |
+MFLAGS= |
638 |
+MAKEFLAGS= |
639 |
+ |
640 |
+# Identity of this package. |
641 |
+PACKAGE_NAME= |
642 |
+PACKAGE_TARNAME= |
643 |
+PACKAGE_VERSION= |
644 |
+PACKAGE_STRING= |
645 |
+PACKAGE_BUGREPORT= |
646 |
+PACKAGE_URL= |
647 |
+ |
648 |
+ac_unique_file="main.c" |
649 |
+# Factoring default headers for most tests. |
650 |
+ac_includes_default="\ |
651 |
+#include <stdio.h> |
652 |
+#ifdef HAVE_SYS_TYPES_H |
653 |
+# include <sys/types.h> |
654 |
+#endif |
655 |
+#ifdef HAVE_SYS_STAT_H |
656 |
+# include <sys/stat.h> |
657 |
+#endif |
658 |
+#ifdef STDC_HEADERS |
659 |
+# include <stdlib.h> |
660 |
+# include <stddef.h> |
661 |
+#else |
662 |
+# ifdef HAVE_STDLIB_H |
663 |
+# include <stdlib.h> |
664 |
+# endif |
665 |
+#endif |
666 |
+#ifdef HAVE_STRING_H |
667 |
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
668 |
+# include <memory.h> |
669 |
+# endif |
670 |
+# include <string.h> |
671 |
+#endif |
672 |
+#ifdef HAVE_STRINGS_H |
673 |
+# include <strings.h> |
674 |
+#endif |
675 |
+#ifdef HAVE_INTTYPES_H |
676 |
+# include <inttypes.h> |
677 |
+#endif |
678 |
+#ifdef HAVE_STDINT_H |
679 |
+# include <stdint.h> |
680 |
+#endif |
681 |
+#ifdef HAVE_UNISTD_H |
682 |
+# include <unistd.h> |
683 |
+#endif" |
684 |
+ |
685 |
+ac_subst_vars='LTLIBOBJS |
686 |
+LIBOBJS |
687 |
+ATHEOS_GR_FALSE |
688 |
+ATHEOS_GR_TRUE |
689 |
+LIBPNG12_LIBS |
690 |
+LIBPNG12_CFLAGS |
691 |
+LIBPNG_LIBS |
692 |
+LIBPNG_CFLAGS |
693 |
+ac_ct_CXX |
694 |
+CXXFLAGS |
695 |
+CXX |
696 |
+XMKMF |
697 |
+DIRECTFB_LIBS |
698 |
+DIRECTFB_CFLAGS |
699 |
+DIRECTFB_CONFIG |
700 |
+NSS_LIBS |
701 |
+NSS_CFLAGS |
702 |
+OPENSSL_LIBS |
703 |
+OPENSSL_CFLAGS |
704 |
+PKG_CONFIG |
705 |
+EGREP |
706 |
+GREP |
707 |
+CPP |
708 |
+OBJEXT |
709 |
+EXEEXT |
710 |
+ac_ct_CC |
711 |
+CPPFLAGS |
712 |
+LDFLAGS |
713 |
+CFLAGS |
714 |
+CC |
715 |
+SET_MAKE |
716 |
+MAKEINFO |
717 |
+AUTOHEADER |
718 |
+AUTOMAKE |
719 |
+AUTOCONF |
720 |
+ACLOCAL |
721 |
+VERSION |
722 |
+PACKAGE |
723 |
+INSTALL_DATA |
724 |
+INSTALL_SCRIPT |
725 |
+INSTALL_PROGRAM |
726 |
+target_alias |
727 |
+host_alias |
728 |
+build_alias |
729 |
+LIBS |
730 |
+ECHO_T |
731 |
+ECHO_N |
732 |
+ECHO_C |
733 |
+DEFS |
734 |
+mandir |
735 |
+localedir |
736 |
+libdir |
737 |
+psdir |
738 |
+pdfdir |
739 |
+dvidir |
740 |
+htmldir |
741 |
+infodir |
742 |
+docdir |
743 |
+oldincludedir |
744 |
+includedir |
745 |
+localstatedir |
746 |
+sharedstatedir |
747 |
+sysconfdir |
748 |
+datadir |
749 |
+datarootdir |
750 |
+libexecdir |
751 |
+sbindir |
752 |
+bindir |
753 |
+program_transform_name |
754 |
+prefix |
755 |
+exec_prefix |
756 |
+PACKAGE_URL |
757 |
+PACKAGE_BUGREPORT |
758 |
+PACKAGE_STRING |
759 |
+PACKAGE_VERSION |
760 |
+PACKAGE_TARNAME |
761 |
+PACKAGE_NAME |
762 |
+PATH_SEPARATOR |
763 |
+SHELL' |
764 |
+ac_subst_files='' |
765 |
+ac_user_opts=' |
766 |
+enable_option_checking |
767 |
+enable_debuglevel |
768 |
+enable_graphics |
769 |
+enable_utf8 |
770 |
+with_getaddrinfo |
771 |
+with_ipv6 |
772 |
+with_gpm |
773 |
+with_ssl |
774 |
+enable_ssl_pkgconfig |
775 |
+with_zlib |
776 |
+with_bzip2 |
777 |
+with_lzma |
778 |
+with_svgalib |
779 |
+with_x |
780 |
+with_fb |
781 |
+with_directfb |
782 |
+with_pmshell |
783 |
+with_windows |
784 |
+with_atheos |
785 |
+with_grx |
786 |
+enable_png_pkgconfig |
787 |
+with_libjpeg |
788 |
+with_libtiff |
789 |
+' |
790 |
+ ac_precious_vars='build_alias |
791 |
+host_alias |
792 |
+target_alias |
793 |
+CC |
794 |
+CFLAGS |
795 |
+LDFLAGS |
796 |
+LIBS |
797 |
+CPPFLAGS |
798 |
+CPP |
799 |
+XMKMF |
800 |
+CXX |
801 |
+CXXFLAGS |
802 |
+CCC' |
803 |
+ |
804 |
|
805 |
# Initialize some variables set by options. |
806 |
+ac_init_help= |
807 |
+ac_init_version=false |
808 |
+ac_unrecognized_opts= |
809 |
+ac_unrecognized_sep= |
810 |
# The variables have the same names as the options, with |
811 |
# dashes changed to underlines. |
812 |
-build=NONE |
813 |
-cache_file=./config.cache |
814 |
+cache_file=/dev/null |
815 |
exec_prefix=NONE |
816 |
-host=NONE |
817 |
no_create= |
818 |
-nonopt=NONE |
819 |
no_recursion= |
820 |
prefix=NONE |
821 |
program_prefix=NONE |
822 |
@@ -83,94 +757,132 @@ program_transform_name=s,x,x, |
823 |
silent= |
824 |
site= |
825 |
srcdir= |
826 |
-target=NONE |
827 |
verbose= |
828 |
x_includes=NONE |
829 |
x_libraries=NONE |
830 |
+ |
831 |
+# Installation directory options. |
832 |
+# These are left unexpanded so users can "make install exec_prefix=/foo" |
833 |
+# and all the variables that are supposed to be based on exec_prefix |
834 |
+# by default will actually change. |
835 |
+# Use braces instead of parens because sh, perl, etc. also accept them. |
836 |
+# (The list follows the same order as the GNU Coding Standards.) |
837 |
bindir='${exec_prefix}/bin' |
838 |
sbindir='${exec_prefix}/sbin' |
839 |
libexecdir='${exec_prefix}/libexec' |
840 |
-datadir='${prefix}/share' |
841 |
+datarootdir='${prefix}/share' |
842 |
+datadir='${datarootdir}' |
843 |
sysconfdir='${prefix}/etc' |
844 |
sharedstatedir='${prefix}/com' |
845 |
localstatedir='${prefix}/var' |
846 |
-libdir='${exec_prefix}/lib' |
847 |
includedir='${prefix}/include' |
848 |
oldincludedir='/usr/include' |
849 |
-infodir='${prefix}/info' |
850 |
-mandir='${prefix}/man' |
851 |
- |
852 |
-# Initialize some other variables. |
853 |
-subdirs= |
854 |
-MFLAGS= MAKEFLAGS= |
855 |
-SHELL=${CONFIG_SHELL-/bin/sh} |
856 |
-# Maximum number of lines to put in a shell here document. |
857 |
-ac_max_here_lines=12 |
858 |
+docdir='${datarootdir}/doc/${PACKAGE}' |
859 |
+infodir='${datarootdir}/info' |
860 |
+htmldir='${docdir}' |
861 |
+dvidir='${docdir}' |
862 |
+pdfdir='${docdir}' |
863 |
+psdir='${docdir}' |
864 |
+libdir='${exec_prefix}/lib' |
865 |
+localedir='${datarootdir}/locale' |
866 |
+mandir='${datarootdir}/man' |
867 |
|
868 |
ac_prev= |
869 |
+ac_dashdash= |
870 |
for ac_option |
871 |
do |
872 |
- |
873 |
# If the previous option needs an argument, assign it. |
874 |
if test -n "$ac_prev"; then |
875 |
- eval "$ac_prev=\$ac_option" |
876 |
+ eval $ac_prev=\$ac_option |
877 |
ac_prev= |
878 |
continue |
879 |
fi |
880 |
|
881 |
- case "$ac_option" in |
882 |
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
883 |
- *) ac_optarg= ;; |
884 |
+ case $ac_option in |
885 |
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
886 |
+ *=) ac_optarg= ;; |
887 |
+ *) ac_optarg=yes ;; |
888 |
esac |
889 |
|
890 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
891 |
|
892 |
- case "$ac_option" in |
893 |
+ case $ac_dashdash$ac_option in |
894 |
+ --) |
895 |
+ ac_dashdash=yes ;; |
896 |
|
897 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
898 |
ac_prev=bindir ;; |
899 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
900 |
- bindir="$ac_optarg" ;; |
901 |
+ bindir=$ac_optarg ;; |
902 |
|
903 |
-build | --build | --buil | --bui | --bu) |
904 |
- ac_prev=build ;; |
905 |
+ ac_prev=build_alias ;; |
906 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
907 |
- build="$ac_optarg" ;; |
908 |
+ build_alias=$ac_optarg ;; |
909 |
|
910 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
911 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
912 |
ac_prev=cache_file ;; |
913 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
914 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
915 |
- cache_file="$ac_optarg" ;; |
916 |
+ cache_file=$ac_optarg ;; |
917 |
|
918 |
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
919 |
+ --config-cache | -C) |
920 |
+ cache_file=config.cache ;; |
921 |
+ |
922 |
+ -datadir | --datadir | --datadi | --datad) |
923 |
ac_prev=datadir ;; |
924 |
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
925 |
- | --da=*) |
926 |
- datadir="$ac_optarg" ;; |
927 |
+ -datadir=* | --datadir=* | --datadi=* | --datad=*) |
928 |
+ datadir=$ac_optarg ;; |
929 |
+ |
930 |
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
931 |
+ | --dataroo | --dataro | --datar) |
932 |
+ ac_prev=datarootdir ;; |
933 |
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
934 |
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
935 |
+ datarootdir=$ac_optarg ;; |
936 |
|
937 |
-disable-* | --disable-*) |
938 |
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
939 |
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
940 |
# Reject names that are not valid shell variable names. |
941 |
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
942 |
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
943 |
- fi |
944 |
- ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
945 |
- eval "enable_${ac_feature}=no" ;; |
946 |
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
947 |
+ as_fn_error $? "invalid feature name: $ac_useropt" |
948 |
+ ac_useropt_orig=$ac_useropt |
949 |
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
950 |
+ case $ac_user_opts in |
951 |
+ *" |
952 |
+"enable_$ac_useropt" |
953 |
+"*) ;; |
954 |
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
955 |
+ ac_unrecognized_sep=', ';; |
956 |
+ esac |
957 |
+ eval enable_$ac_useropt=no ;; |
958 |
+ |
959 |
+ -docdir | --docdir | --docdi | --doc | --do) |
960 |
+ ac_prev=docdir ;; |
961 |
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
962 |
+ docdir=$ac_optarg ;; |
963 |
+ |
964 |
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
965 |
+ ac_prev=dvidir ;; |
966 |
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
967 |
+ dvidir=$ac_optarg ;; |
968 |
|
969 |
-enable-* | --enable-*) |
970 |
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
971 |
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
972 |
# Reject names that are not valid shell variable names. |
973 |
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
974 |
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
975 |
- fi |
976 |
- ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
977 |
- case "$ac_option" in |
978 |
- *=*) ;; |
979 |
- *) ac_optarg=yes ;; |
980 |
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 |
+ as_fn_error $? "invalid feature name: $ac_useropt" |
982 |
+ ac_useropt_orig=$ac_useropt |
983 |
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
984 |
+ case $ac_user_opts in |
985 |
+ *" |
986 |
+"enable_$ac_useropt" |
987 |
+"*) ;; |
988 |
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
989 |
+ ac_unrecognized_sep=', ';; |
990 |
esac |
991 |
- eval "enable_${ac_feature}='$ac_optarg'" ;; |
992 |
+ eval enable_$ac_useropt=\$ac_optarg ;; |
993 |
|
994 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
995 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
996 |
@@ -179,116 +891,77 @@ do |
997 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
998 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
999 |
| --exec=* | --exe=* | --ex=*) |
1000 |
- exec_prefix="$ac_optarg" ;; |
1001 |
+ exec_prefix=$ac_optarg ;; |
1002 |
|
1003 |
-gas | --gas | --ga | --g) |
1004 |
# Obsolete; use --with-gas. |
1005 |
with_gas=yes ;; |
1006 |
|
1007 |
- -help | --help | --hel | --he) |
1008 |
- # Omit some internal or obsolete options to make the list less imposing. |
1009 |
- # This message is too long to be a string in the A/UX 3.1 sh. |
1010 |
- cat << EOF |
1011 |
-Usage: configure [options] [host] |
1012 |
-Options: [defaults in brackets after descriptions] |
1013 |
-Configuration: |
1014 |
- --cache-file=FILE cache test results in FILE |
1015 |
- --help print this message |
1016 |
- --no-create do not create output files |
1017 |
- --quiet, --silent do not print \`checking...' messages |
1018 |
- --version print the version of autoconf that created configure |
1019 |
-Directory and file names: |
1020 |
- --prefix=PREFIX install architecture-independent files in PREFIX |
1021 |
- [$ac_default_prefix] |
1022 |
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1023 |
- [same as prefix] |
1024 |
- --bindir=DIR user executables in DIR [EPREFIX/bin] |
1025 |
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
1026 |
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
1027 |
- --datadir=DIR read-only architecture-independent data in DIR |
1028 |
- [PREFIX/share] |
1029 |
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
1030 |
- --sharedstatedir=DIR modifiable architecture-independent data in DIR |
1031 |
- [PREFIX/com] |
1032 |
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
1033 |
- --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
1034 |
- --includedir=DIR C header files in DIR [PREFIX/include] |
1035 |
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
1036 |
- --infodir=DIR info documentation in DIR [PREFIX/info] |
1037 |
- --mandir=DIR man documentation in DIR [PREFIX/man] |
1038 |
- --srcdir=DIR find the sources in DIR [configure dir or ..] |
1039 |
- --program-prefix=PREFIX prepend PREFIX to installed program names |
1040 |
- --program-suffix=SUFFIX append SUFFIX to installed program names |
1041 |
- --program-transform-name=PROGRAM |
1042 |
- run sed PROGRAM on installed program names |
1043 |
-EOF |
1044 |
- cat << EOF |
1045 |
-Host type: |
1046 |
- --build=BUILD configure for building on BUILD [BUILD=HOST] |
1047 |
- --host=HOST configure for HOST [guessed] |
1048 |
- --target=TARGET configure for TARGET [TARGET=HOST] |
1049 |
-Features and packages: |
1050 |
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1051 |
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1052 |
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1053 |
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1054 |
- --x-includes=DIR X include files are in DIR |
1055 |
- --x-libraries=DIR X library files are in DIR |
1056 |
-EOF |
1057 |
- if test -n "$ac_help"; then |
1058 |
- echo "--enable and --with options recognized:$ac_help" |
1059 |
- fi |
1060 |
- exit 0 ;; |
1061 |
+ -help | --help | --hel | --he | -h) |
1062 |
+ ac_init_help=long ;; |
1063 |
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1064 |
+ ac_init_help=recursive ;; |
1065 |
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1066 |
+ ac_init_help=short ;; |
1067 |
|
1068 |
-host | --host | --hos | --ho) |
1069 |
- ac_prev=host ;; |
1070 |
+ ac_prev=host_alias ;; |
1071 |
-host=* | --host=* | --hos=* | --ho=*) |
1072 |
- host="$ac_optarg" ;; |
1073 |
+ host_alias=$ac_optarg ;; |
1074 |
+ |
1075 |
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1076 |
+ ac_prev=htmldir ;; |
1077 |
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1078 |
+ | --ht=*) |
1079 |
+ htmldir=$ac_optarg ;; |
1080 |
|
1081 |
-includedir | --includedir | --includedi | --included | --include \ |
1082 |
| --includ | --inclu | --incl | --inc) |
1083 |
ac_prev=includedir ;; |
1084 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1085 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
1086 |
- includedir="$ac_optarg" ;; |
1087 |
+ includedir=$ac_optarg ;; |
1088 |
|
1089 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
1090 |
ac_prev=infodir ;; |
1091 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1092 |
- infodir="$ac_optarg" ;; |
1093 |
+ infodir=$ac_optarg ;; |
1094 |
|
1095 |
-libdir | --libdir | --libdi | --libd) |
1096 |
ac_prev=libdir ;; |
1097 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
1098 |
- libdir="$ac_optarg" ;; |
1099 |
+ libdir=$ac_optarg ;; |
1100 |
|
1101 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1102 |
| --libexe | --libex | --libe) |
1103 |
ac_prev=libexecdir ;; |
1104 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1105 |
| --libexe=* | --libex=* | --libe=*) |
1106 |
- libexecdir="$ac_optarg" ;; |
1107 |
+ libexecdir=$ac_optarg ;; |
1108 |
+ |
1109 |
+ -localedir | --localedir | --localedi | --localed | --locale) |
1110 |
+ ac_prev=localedir ;; |
1111 |
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1112 |
+ localedir=$ac_optarg ;; |
1113 |
|
1114 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1115 |
- | --localstate | --localstat | --localsta | --localst \ |
1116 |
- | --locals | --local | --loca | --loc | --lo) |
1117 |
+ | --localstate | --localstat | --localsta | --localst | --locals) |
1118 |
ac_prev=localstatedir ;; |
1119 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1120 |
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
1121 |
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
1122 |
- localstatedir="$ac_optarg" ;; |
1123 |
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1124 |
+ localstatedir=$ac_optarg ;; |
1125 |
|
1126 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1127 |
ac_prev=mandir ;; |
1128 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1129 |
- mandir="$ac_optarg" ;; |
1130 |
+ mandir=$ac_optarg ;; |
1131 |
|
1132 |
-nfp | --nfp | --nf) |
1133 |
# Obsolete; use --without-fp. |
1134 |
with_fp=no ;; |
1135 |
|
1136 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1137 |
- | --no-cr | --no-c) |
1138 |
+ | --no-cr | --no-c | -n) |
1139 |
no_create=yes ;; |
1140 |
|
1141 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1142 |
@@ -302,26 +975,26 @@ EOF |
1143 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1144 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1145 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1146 |
- oldincludedir="$ac_optarg" ;; |
1147 |
+ oldincludedir=$ac_optarg ;; |
1148 |
|
1149 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1150 |
ac_prev=prefix ;; |
1151 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1152 |
- prefix="$ac_optarg" ;; |
1153 |
+ prefix=$ac_optarg ;; |
1154 |
|
1155 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1156 |
| --program-pre | --program-pr | --program-p) |
1157 |
ac_prev=program_prefix ;; |
1158 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1159 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1160 |
- program_prefix="$ac_optarg" ;; |
1161 |
+ program_prefix=$ac_optarg ;; |
1162 |
|
1163 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1164 |
| --program-suf | --program-su | --program-s) |
1165 |
ac_prev=program_suffix ;; |
1166 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1167 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1168 |
- program_suffix="$ac_optarg" ;; |
1169 |
+ program_suffix=$ac_optarg ;; |
1170 |
|
1171 |
-program-transform-name | --program-transform-name \ |
1172 |
| --program-transform-nam | --program-transform-na \ |
1173 |
@@ -338,7 +1011,17 @@ EOF |
1174 |
| --program-transfo=* | --program-transf=* \ |
1175 |
| --program-trans=* | --program-tran=* \ |
1176 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1177 |
- program_transform_name="$ac_optarg" ;; |
1178 |
+ program_transform_name=$ac_optarg ;; |
1179 |
+ |
1180 |
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1181 |
+ ac_prev=pdfdir ;; |
1182 |
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1183 |
+ pdfdir=$ac_optarg ;; |
1184 |
+ |
1185 |
+ -psdir | --psdir | --psdi | --psd | --ps) |
1186 |
+ ac_prev=psdir ;; |
1187 |
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1188 |
+ psdir=$ac_optarg ;; |
1189 |
|
1190 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1191 |
| -silent | --silent | --silen | --sile | --sil) |
1192 |
@@ -348,7 +1031,7 @@ EOF |
1193 |
ac_prev=sbindir ;; |
1194 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1195 |
| --sbi=* | --sb=*) |
1196 |
- sbindir="$ac_optarg" ;; |
1197 |
+ sbindir=$ac_optarg ;; |
1198 |
|
1199 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1200 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1201 |
@@ -359,58 +1042,67 @@ EOF |
1202 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1203 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1204 |
| --sha=* | --sh=*) |
1205 |
- sharedstatedir="$ac_optarg" ;; |
1206 |
+ sharedstatedir=$ac_optarg ;; |
1207 |
|
1208 |
-site | --site | --sit) |
1209 |
ac_prev=site ;; |
1210 |
-site=* | --site=* | --sit=*) |
1211 |
- site="$ac_optarg" ;; |
1212 |
+ site=$ac_optarg ;; |
1213 |
|
1214 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1215 |
ac_prev=srcdir ;; |
1216 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1217 |
- srcdir="$ac_optarg" ;; |
1218 |
+ srcdir=$ac_optarg ;; |
1219 |
|
1220 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1221 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1222 |
ac_prev=sysconfdir ;; |
1223 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1224 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1225 |
- sysconfdir="$ac_optarg" ;; |
1226 |
+ sysconfdir=$ac_optarg ;; |
1227 |
|
1228 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1229 |
- ac_prev=target ;; |
1230 |
+ ac_prev=target_alias ;; |
1231 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1232 |
- target="$ac_optarg" ;; |
1233 |
+ target_alias=$ac_optarg ;; |
1234 |
|
1235 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1236 |
verbose=yes ;; |
1237 |
|
1238 |
- -version | --version | --versio | --versi | --vers) |
1239 |
- echo "configure generated by autoconf version 2.13" |
1240 |
- exit 0 ;; |
1241 |
+ -version | --version | --versio | --versi | --vers | -V) |
1242 |
+ ac_init_version=: ;; |
1243 |
|
1244 |
-with-* | --with-*) |
1245 |
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
1246 |
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1247 |
# Reject names that are not valid shell variable names. |
1248 |
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
1249 |
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
1250 |
- fi |
1251 |
- ac_package=`echo $ac_package| sed 's/-/_/g'` |
1252 |
- case "$ac_option" in |
1253 |
- *=*) ;; |
1254 |
- *) ac_optarg=yes ;; |
1255 |
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1256 |
+ as_fn_error $? "invalid package name: $ac_useropt" |
1257 |
+ ac_useropt_orig=$ac_useropt |
1258 |
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1259 |
+ case $ac_user_opts in |
1260 |
+ *" |
1261 |
+"with_$ac_useropt" |
1262 |
+"*) ;; |
1263 |
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1264 |
+ ac_unrecognized_sep=', ';; |
1265 |
esac |
1266 |
- eval "with_${ac_package}='$ac_optarg'" ;; |
1267 |
+ eval with_$ac_useropt=\$ac_optarg ;; |
1268 |
|
1269 |
-without-* | --without-*) |
1270 |
- ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
1271 |
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1272 |
# Reject names that are not valid shell variable names. |
1273 |
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
1274 |
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
1275 |
- fi |
1276 |
- ac_package=`echo $ac_package| sed 's/-/_/g'` |
1277 |
- eval "with_${ac_package}=no" ;; |
1278 |
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1279 |
+ as_fn_error $? "invalid package name: $ac_useropt" |
1280 |
+ ac_useropt_orig=$ac_useropt |
1281 |
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1282 |
+ case $ac_user_opts in |
1283 |
+ *" |
1284 |
+"with_$ac_useropt" |
1285 |
+"*) ;; |
1286 |
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1287 |
+ ac_unrecognized_sep=', ';; |
1288 |
+ esac |
1289 |
+ eval with_$ac_useropt=no ;; |
1290 |
|
1291 |
--x) |
1292 |
# Obsolete; use --with-x. |
1293 |
@@ -421,181 +1113,1378 @@ EOF |
1294 |
ac_prev=x_includes ;; |
1295 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1296 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1297 |
- x_includes="$ac_optarg" ;; |
1298 |
+ x_includes=$ac_optarg ;; |
1299 |
|
1300 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1301 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1302 |
ac_prev=x_libraries ;; |
1303 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1304 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1305 |
- x_libraries="$ac_optarg" ;; |
1306 |
+ x_libraries=$ac_optarg ;; |
1307 |
|
1308 |
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
1309 |
+ -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1310 |
+Try \`$0 --help' for more information" |
1311 |
;; |
1312 |
|
1313 |
+ *=*) |
1314 |
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1315 |
+ # Reject names that are not valid shell variable names. |
1316 |
+ case $ac_envvar in #( |
1317 |
+ '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1318 |
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1319 |
+ esac |
1320 |
+ eval $ac_envvar=\$ac_optarg |
1321 |
+ export $ac_envvar ;; |
1322 |
+ |
1323 |
*) |
1324 |
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
1325 |
- echo "configure: warning: $ac_option: invalid host type" 1>&2 |
1326 |
- fi |
1327 |
- if test "x$nonopt" != xNONE; then |
1328 |
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
1329 |
- fi |
1330 |
- nonopt="$ac_option" |
1331 |
+ # FIXME: should be removed in autoconf 3.0. |
1332 |
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1333 |
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1334 |
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1335 |
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1336 |
;; |
1337 |
|
1338 |
esac |
1339 |
done |
1340 |
|
1341 |
if test -n "$ac_prev"; then |
1342 |
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
1343 |
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1344 |
+ as_fn_error $? "missing argument to $ac_option" |
1345 |
fi |
1346 |
|
1347 |
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
1348 |
- |
1349 |
-# File descriptor usage: |
1350 |
-# 0 standard input |
1351 |
-# 1 file creation |
1352 |
-# 2 errors and warnings |
1353 |
-# 3 some systems may open it to /dev/tty |
1354 |
-# 4 used on the Kubota Titan |
1355 |
-# 6 checking for... messages and results |
1356 |
-# 5 compiler messages saved in config.log |
1357 |
-if test "$silent" = yes; then |
1358 |
- exec 6>/dev/null |
1359 |
-else |
1360 |
- exec 6>&1 |
1361 |
+if test -n "$ac_unrecognized_opts"; then |
1362 |
+ case $enable_option_checking in |
1363 |
+ no) ;; |
1364 |
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1365 |
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1366 |
+ esac |
1367 |
fi |
1368 |
-exec 5>./config.log |
1369 |
- |
1370 |
-echo "\ |
1371 |
-This file contains any messages produced by compilers while |
1372 |
-running configure, to aid debugging if configure makes a mistake. |
1373 |
-" 1>&5 |
1374 |
|
1375 |
-# Strip out --no-create and --no-recursion so they do not pile up. |
1376 |
-# Also quote any args containing shell metacharacters. |
1377 |
-ac_configure_args= |
1378 |
-for ac_arg |
1379 |
+# Check all directory arguments for consistency. |
1380 |
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1381 |
+ datadir sysconfdir sharedstatedir localstatedir includedir \ |
1382 |
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1383 |
+ libdir localedir mandir |
1384 |
do |
1385 |
- case "$ac_arg" in |
1386 |
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1387 |
- | --no-cr | --no-c) ;; |
1388 |
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1389 |
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
1390 |
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
1391 |
- ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1392 |
- *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
1393 |
+ eval ac_val=\$$ac_var |
1394 |
+ # Remove trailing slashes. |
1395 |
+ case $ac_val in |
1396 |
+ */ ) |
1397 |
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1398 |
+ eval $ac_var=\$ac_val;; |
1399 |
+ esac |
1400 |
+ # Be sure to have absolute directory names. |
1401 |
+ case $ac_val in |
1402 |
+ [\\/$]* | ?:[\\/]* ) continue;; |
1403 |
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1404 |
esac |
1405 |
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1406 |
done |
1407 |
|
1408 |
-# NLS nuisances. |
1409 |
-# Only set these to C if already set. These must not be set unconditionally |
1410 |
-# because not all systems understand e.g. LANG=C (notably SCO). |
1411 |
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
1412 |
-# Non-C LC_CTYPE values break the ctype check. |
1413 |
-if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
1414 |
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
1415 |
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
1416 |
-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
1417 |
+# There might be people who depend on the old broken behavior: `$host' |
1418 |
+# used to hold the argument of --host etc. |
1419 |
+# FIXME: To remove some day. |
1420 |
+build=$build_alias |
1421 |
+host=$host_alias |
1422 |
+target=$target_alias |
1423 |
|
1424 |
-# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1425 |
-rm -rf conftest* confdefs.h |
1426 |
-# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1427 |
-echo > confdefs.h |
1428 |
+# FIXME: To remove some day. |
1429 |
+if test "x$host_alias" != x; then |
1430 |
+ if test "x$build_alias" = x; then |
1431 |
+ cross_compiling=maybe |
1432 |
+ elif test "x$build_alias" != "x$host_alias"; then |
1433 |
+ cross_compiling=yes |
1434 |
+ fi |
1435 |
+fi |
1436 |
+ |
1437 |
+ac_tool_prefix= |
1438 |
+test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1439 |
+ |
1440 |
+test "$silent" = yes && exec 6>/dev/null |
1441 |
+ |
1442 |
+ |
1443 |
+ac_pwd=`pwd` && test -n "$ac_pwd" && |
1444 |
+ac_ls_di=`ls -di .` && |
1445 |
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1446 |
+ as_fn_error $? "working directory cannot be determined" |
1447 |
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1448 |
+ as_fn_error $? "pwd does not report name of working directory" |
1449 |
|
1450 |
-# A filename unique to this package, relative to the directory that |
1451 |
-# configure is in, which we can look for to find out if srcdir is correct. |
1452 |
-ac_unique_file=main.c |
1453 |
|
1454 |
# Find the source files, if location was not specified. |
1455 |
if test -z "$srcdir"; then |
1456 |
ac_srcdir_defaulted=yes |
1457 |
- # Try the directory containing this script, then its parent. |
1458 |
- ac_prog=$0 |
1459 |
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
1460 |
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
1461 |
+ # Try the directory containing this script, then the parent directory. |
1462 |
+ ac_confdir=`$as_dirname -- "$as_myself" || |
1463 |
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1464 |
+ X"$as_myself" : 'X\(//\)[^/]' \| \ |
1465 |
+ X"$as_myself" : 'X\(//\)$' \| \ |
1466 |
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1467 |
+$as_echo X"$as_myself" | |
1468 |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1469 |
+ s//\1/ |
1470 |
+ q |
1471 |
+ } |
1472 |
+ /^X\(\/\/\)[^/].*/{ |
1473 |
+ s//\1/ |
1474 |
+ q |
1475 |
+ } |
1476 |
+ /^X\(\/\/\)$/{ |
1477 |
+ s//\1/ |
1478 |
+ q |
1479 |
+ } |
1480 |
+ /^X\(\/\).*/{ |
1481 |
+ s//\1/ |
1482 |
+ q |
1483 |
+ } |
1484 |
+ s/.*/./; q'` |
1485 |
srcdir=$ac_confdir |
1486 |
- if test ! -r $srcdir/$ac_unique_file; then |
1487 |
+ if test ! -r "$srcdir/$ac_unique_file"; then |
1488 |
srcdir=.. |
1489 |
fi |
1490 |
else |
1491 |
ac_srcdir_defaulted=no |
1492 |
fi |
1493 |
-if test ! -r $srcdir/$ac_unique_file; then |
1494 |
- if test "$ac_srcdir_defaulted" = yes; then |
1495 |
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
1496 |
- else |
1497 |
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
1498 |
+if test ! -r "$srcdir/$ac_unique_file"; then |
1499 |
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1500 |
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1501 |
+fi |
1502 |
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1503 |
+ac_abs_confdir=`( |
1504 |
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1505 |
+ pwd)` |
1506 |
+# When building in place, set srcdir=. |
1507 |
+if test "$ac_abs_confdir" = "$ac_pwd"; then |
1508 |
+ srcdir=. |
1509 |
+fi |
1510 |
+# Remove unnecessary trailing slashes from srcdir. |
1511 |
+# Double slashes in file names in object file debugging info |
1512 |
+# mess up M-x gdb in Emacs. |
1513 |
+case $srcdir in |
1514 |
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1515 |
+esac |
1516 |
+for ac_var in $ac_precious_vars; do |
1517 |
+ eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1518 |
+ eval ac_env_${ac_var}_value=\$${ac_var} |
1519 |
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1520 |
+ eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1521 |
+done |
1522 |
+ |
1523 |
+# |
1524 |
+# Report the --help message. |
1525 |
+# |
1526 |
+if test "$ac_init_help" = "long"; then |
1527 |
+ # Omit some internal or obsolete options to make the list less imposing. |
1528 |
+ # This message is too long to be a string in the A/UX 3.1 sh. |
1529 |
+ cat <<_ACEOF |
1530 |
+\`configure' configures this package to adapt to many kinds of systems. |
1531 |
+ |
1532 |
+Usage: $0 [OPTION]... [VAR=VALUE]... |
1533 |
+ |
1534 |
+To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1535 |
+VAR=VALUE. See below for descriptions of some of the useful variables. |
1536 |
+ |
1537 |
+Defaults for the options are specified in brackets. |
1538 |
+ |
1539 |
+Configuration: |
1540 |
+ -h, --help display this help and exit |
1541 |
+ --help=short display options specific to this package |
1542 |
+ --help=recursive display the short help of all the included packages |
1543 |
+ -V, --version display version information and exit |
1544 |
+ -q, --quiet, --silent do not print \`checking ...' messages |
1545 |
+ --cache-file=FILE cache test results in FILE [disabled] |
1546 |
+ -C, --config-cache alias for \`--cache-file=config.cache' |
1547 |
+ -n, --no-create do not create output files |
1548 |
+ --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1549 |
+ |
1550 |
+Installation directories: |
1551 |
+ --prefix=PREFIX install architecture-independent files in PREFIX |
1552 |
+ [$ac_default_prefix] |
1553 |
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1554 |
+ [PREFIX] |
1555 |
+ |
1556 |
+By default, \`make install' will install all the files in |
1557 |
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1558 |
+an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1559 |
+for instance \`--prefix=\$HOME'. |
1560 |
+ |
1561 |
+For better control, use the options below. |
1562 |
+ |
1563 |
+Fine tuning of the installation directories: |
1564 |
+ --bindir=DIR user executables [EPREFIX/bin] |
1565 |
+ --sbindir=DIR system admin executables [EPREFIX/sbin] |
1566 |
+ --libexecdir=DIR program executables [EPREFIX/libexec] |
1567 |
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1568 |
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1569 |
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1570 |
+ --libdir=DIR object code libraries [EPREFIX/lib] |
1571 |
+ --includedir=DIR C header files [PREFIX/include] |
1572 |
+ --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1573 |
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1574 |
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1575 |
+ --infodir=DIR info documentation [DATAROOTDIR/info] |
1576 |
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1577 |
+ --mandir=DIR man documentation [DATAROOTDIR/man] |
1578 |
+ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1579 |
+ --htmldir=DIR html documentation [DOCDIR] |
1580 |
+ --dvidir=DIR dvi documentation [DOCDIR] |
1581 |
+ --pdfdir=DIR pdf documentation [DOCDIR] |
1582 |
+ --psdir=DIR ps documentation [DOCDIR] |
1583 |
+_ACEOF |
1584 |
+ |
1585 |
+ cat <<\_ACEOF |
1586 |
+ |
1587 |
+Program names: |
1588 |
+ --program-prefix=PREFIX prepend PREFIX to installed program names |
1589 |
+ --program-suffix=SUFFIX append SUFFIX to installed program names |
1590 |
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1591 |
+ |
1592 |
+X features: |
1593 |
+ --x-includes=DIR X include files are in DIR |
1594 |
+ --x-libraries=DIR X library files are in DIR |
1595 |
+_ACEOF |
1596 |
+fi |
1597 |
+ |
1598 |
+if test -n "$ac_init_help"; then |
1599 |
+ |
1600 |
+ cat <<\_ACEOF |
1601 |
+ |
1602 |
+Optional Features: |
1603 |
+ --disable-option-checking ignore unrecognized --enable/--with options |
1604 |
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1605 |
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1606 |
+ --enable-debuglevel set internal checking level |
1607 |
+ -1 - recover from segmentation faults |
1608 |
+ 0 - no checks (fastest) |
1609 |
+ 1 - check memory leaks |
1610 |
+ 2 - check memory leaks, red zone |
1611 |
+ 3 - check memory leaks, red zone, pattern filling |
1612 |
+ --enable-graphics use graphics |
1613 |
+ --disable-utf8 disable UTF-8 terminal (saves memory) |
1614 |
+ --disable-ssl-pkgconfig don't use pkgconfig when searching for openssl |
1615 |
+ --disable-png-pkgconfig don't use pkgconfig when searching for libpng |
1616 |
+ |
1617 |
+Optional Packages: |
1618 |
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1619 |
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1620 |
+ --without-getaddrinfo compile without getaddrinfo function |
1621 |
+ --without-ipv6 compile without ipv6 |
1622 |
+ --without-gpm compile without gpm mouse |
1623 |
+ --with-ssl(=directory) enable SSL support |
1624 |
+ --with-ssl=nss enable SSL support through NSS OpenSSL emulation |
1625 |
+ --without-zlib compile without zlib compression |
1626 |
+ --without-bzip2 compile without bzip2 compression |
1627 |
+ --without-lzma compile without lzma compression |
1628 |
+ --without-svgalib compile without svgalib graphics driver |
1629 |
+ --without-x compile without X Window System graphics driver |
1630 |
+ --without-fb compile without Linux Framebuffer graphics driver |
1631 |
+ --without-directfb compile without DirectFB graphics driver |
1632 |
+ --without-pmshell compile without PMShell graphics driver |
1633 |
+ --without-windows compile without Windows graphics driver |
1634 |
+ --without-atheos compile without Atheos graphics driver |
1635 |
+ --without-grx compile without DOS GRX graphics driver |
1636 |
+ --with-x use the X Window System |
1637 |
+ --without-libjpeg compile without JPEG support |
1638 |
+ --without-libtiff compile without TIFF support |
1639 |
+ |
1640 |
+Some influential environment variables: |
1641 |
+ CC C compiler command |
1642 |
+ CFLAGS C compiler flags |
1643 |
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1644 |
+ nonstandard directory <lib dir> |
1645 |
+ LIBS libraries to pass to the linker, e.g. -l<library> |
1646 |
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1647 |
+ you have headers in a nonstandard directory <include dir> |
1648 |
+ CPP C preprocessor |
1649 |
+ XMKMF Path to xmkmf, Makefile generator for X Window System |
1650 |
+ CXX C++ compiler command |
1651 |
+ CXXFLAGS C++ compiler flags |
1652 |
+ |
1653 |
+Use these variables to override the choices made by `configure' or to help |
1654 |
+it to find libraries and programs with nonstandard names/locations. |
1655 |
+ |
1656 |
+Report bugs to the package provider. |
1657 |
+_ACEOF |
1658 |
+ac_status=$? |
1659 |
+fi |
1660 |
+ |
1661 |
+if test "$ac_init_help" = "recursive"; then |
1662 |
+ # If there are subdirs, report their specific --help. |
1663 |
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1664 |
+ test -d "$ac_dir" || |
1665 |
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1666 |
+ continue |
1667 |
+ ac_builddir=. |
1668 |
+ |
1669 |
+case "$ac_dir" in |
1670 |
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1671 |
+*) |
1672 |
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1673 |
+ # A ".." for each directory in $ac_dir_suffix. |
1674 |
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1675 |
+ case $ac_top_builddir_sub in |
1676 |
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1677 |
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1678 |
+ esac ;; |
1679 |
+esac |
1680 |
+ac_abs_top_builddir=$ac_pwd |
1681 |
+ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1682 |
+# for backward compatibility: |
1683 |
+ac_top_builddir=$ac_top_build_prefix |
1684 |
+ |
1685 |
+case $srcdir in |
1686 |
+ .) # We are building in place. |
1687 |
+ ac_srcdir=. |
1688 |
+ ac_top_srcdir=$ac_top_builddir_sub |
1689 |
+ ac_abs_top_srcdir=$ac_pwd ;; |
1690 |
+ [\\/]* | ?:[\\/]* ) # Absolute name. |
1691 |
+ ac_srcdir=$srcdir$ac_dir_suffix; |
1692 |
+ ac_top_srcdir=$srcdir |
1693 |
+ ac_abs_top_srcdir=$srcdir ;; |
1694 |
+ *) # Relative name. |
1695 |
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1696 |
+ ac_top_srcdir=$ac_top_build_prefix$srcdir |
1697 |
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1698 |
+esac |
1699 |
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1700 |
+ |
1701 |
+ cd "$ac_dir" || { ac_status=$?; continue; } |
1702 |
+ # Check for guested configure. |
1703 |
+ if test -f "$ac_srcdir/configure.gnu"; then |
1704 |
+ echo && |
1705 |
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1706 |
+ elif test -f "$ac_srcdir/configure"; then |
1707 |
+ echo && |
1708 |
+ $SHELL "$ac_srcdir/configure" --help=recursive |
1709 |
+ else |
1710 |
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1711 |
+ fi || ac_status=$? |
1712 |
+ cd "$ac_pwd" || { ac_status=$?; break; } |
1713 |
+ done |
1714 |
+fi |
1715 |
+ |
1716 |
+test -n "$ac_init_help" && exit $ac_status |
1717 |
+if $ac_init_version; then |
1718 |
+ cat <<\_ACEOF |
1719 |
+configure |
1720 |
+generated by GNU Autoconf 2.69 |
1721 |
+ |
1722 |
+Copyright (C) 2012 Free Software Foundation, Inc. |
1723 |
+This configure script is free software; the Free Software Foundation |
1724 |
+gives unlimited permission to copy, distribute and modify it. |
1725 |
+_ACEOF |
1726 |
+ exit |
1727 |
+fi |
1728 |
+ |
1729 |
+## ------------------------ ## |
1730 |
+## Autoconf initialization. ## |
1731 |
+## ------------------------ ## |
1732 |
+ |
1733 |
+# ac_fn_c_try_compile LINENO |
1734 |
+# -------------------------- |
1735 |
+# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1736 |
+ac_fn_c_try_compile () |
1737 |
+{ |
1738 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1739 |
+ rm -f conftest.$ac_objext |
1740 |
+ if { { ac_try="$ac_compile" |
1741 |
+case "(($ac_try" in |
1742 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1743 |
+ *) ac_try_echo=$ac_try;; |
1744 |
+esac |
1745 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1746 |
+$as_echo "$ac_try_echo"; } >&5 |
1747 |
+ (eval "$ac_compile") 2>conftest.err |
1748 |
+ ac_status=$? |
1749 |
+ if test -s conftest.err; then |
1750 |
+ grep -v '^ *+' conftest.err >conftest.er1 |
1751 |
+ cat conftest.er1 >&5 |
1752 |
+ mv -f conftest.er1 conftest.err |
1753 |
fi |
1754 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1755 |
+ test $ac_status = 0; } && { |
1756 |
+ test -z "$ac_c_werror_flag" || |
1757 |
+ test ! -s conftest.err |
1758 |
+ } && test -s conftest.$ac_objext; 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 |
-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
1767 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1768 |
+ as_fn_set_status $ac_retval |
1769 |
|
1770 |
-# Prefer explicitly selected file to automatically selected ones. |
1771 |
-if test -z "$CONFIG_SITE"; then |
1772 |
- if test "x$prefix" != xNONE; then |
1773 |
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1774 |
- else |
1775 |
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1776 |
+} # ac_fn_c_try_compile |
1777 |
+ |
1778 |
+# ac_fn_c_try_cpp LINENO |
1779 |
+# ---------------------- |
1780 |
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1781 |
+ac_fn_c_try_cpp () |
1782 |
+{ |
1783 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1784 |
+ if { { ac_try="$ac_cpp conftest.$ac_ext" |
1785 |
+case "(($ac_try" in |
1786 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1787 |
+ *) ac_try_echo=$ac_try;; |
1788 |
+esac |
1789 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1790 |
+$as_echo "$ac_try_echo"; } >&5 |
1791 |
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1792 |
+ ac_status=$? |
1793 |
+ if test -s conftest.err; then |
1794 |
+ grep -v '^ *+' conftest.err >conftest.er1 |
1795 |
+ cat conftest.er1 >&5 |
1796 |
+ mv -f conftest.er1 conftest.err |
1797 |
fi |
1798 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1799 |
+ test $ac_status = 0; } > conftest.i && { |
1800 |
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1801 |
+ test ! -s conftest.err |
1802 |
+ }; then : |
1803 |
+ ac_retval=0 |
1804 |
+else |
1805 |
+ $as_echo "$as_me: failed program was:" >&5 |
1806 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
1807 |
+ |
1808 |
+ ac_retval=1 |
1809 |
fi |
1810 |
-for ac_site_file in $CONFIG_SITE; do |
1811 |
- if test -r "$ac_site_file"; then |
1812 |
- echo "loading site script $ac_site_file" |
1813 |
- . "$ac_site_file" |
1814 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1815 |
+ as_fn_set_status $ac_retval |
1816 |
+ |
1817 |
+} # ac_fn_c_try_cpp |
1818 |
+ |
1819 |
+# ac_fn_c_try_run LINENO |
1820 |
+# ---------------------- |
1821 |
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1822 |
+# that executables *can* be run. |
1823 |
+ac_fn_c_try_run () |
1824 |
+{ |
1825 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1826 |
+ if { { ac_try="$ac_link" |
1827 |
+case "(($ac_try" in |
1828 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1829 |
+ *) ac_try_echo=$ac_try;; |
1830 |
+esac |
1831 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1832 |
+$as_echo "$ac_try_echo"; } >&5 |
1833 |
+ (eval "$ac_link") 2>&5 |
1834 |
+ ac_status=$? |
1835 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1836 |
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1837 |
+ { { case "(($ac_try" in |
1838 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1839 |
+ *) ac_try_echo=$ac_try;; |
1840 |
+esac |
1841 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1842 |
+$as_echo "$ac_try_echo"; } >&5 |
1843 |
+ (eval "$ac_try") 2>&5 |
1844 |
+ ac_status=$? |
1845 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1846 |
+ test $ac_status = 0; }; }; then : |
1847 |
+ ac_retval=0 |
1848 |
+else |
1849 |
+ $as_echo "$as_me: program exited with status $ac_status" >&5 |
1850 |
+ $as_echo "$as_me: failed program was:" >&5 |
1851 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
1852 |
+ |
1853 |
+ ac_retval=$ac_status |
1854 |
+fi |
1855 |
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1856 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1857 |
+ as_fn_set_status $ac_retval |
1858 |
+ |
1859 |
+} # ac_fn_c_try_run |
1860 |
+ |
1861 |
+# ac_fn_c_try_link LINENO |
1862 |
+# ----------------------- |
1863 |
+# Try to link conftest.$ac_ext, and return whether this succeeded. |
1864 |
+ac_fn_c_try_link () |
1865 |
+{ |
1866 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1867 |
+ rm -f conftest.$ac_objext conftest$ac_exeext |
1868 |
+ if { { ac_try="$ac_link" |
1869 |
+case "(($ac_try" in |
1870 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1871 |
+ *) ac_try_echo=$ac_try;; |
1872 |
+esac |
1873 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1874 |
+$as_echo "$ac_try_echo"; } >&5 |
1875 |
+ (eval "$ac_link") 2>conftest.err |
1876 |
+ ac_status=$? |
1877 |
+ if test -s conftest.err; then |
1878 |
+ grep -v '^ *+' conftest.err >conftest.er1 |
1879 |
+ cat conftest.er1 >&5 |
1880 |
+ mv -f conftest.er1 conftest.err |
1881 |
fi |
1882 |
-done |
1883 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1884 |
+ test $ac_status = 0; } && { |
1885 |
+ test -z "$ac_c_werror_flag" || |
1886 |
+ test ! -s conftest.err |
1887 |
+ } && test -s conftest$ac_exeext && { |
1888 |
+ test "$cross_compiling" = yes || |
1889 |
+ test -x conftest$ac_exeext |
1890 |
+ }; then : |
1891 |
+ ac_retval=0 |
1892 |
+else |
1893 |
+ $as_echo "$as_me: failed program was:" >&5 |
1894 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
1895 |
|
1896 |
-if test -r "$cache_file"; then |
1897 |
- echo "loading cache $cache_file" |
1898 |
- . $cache_file |
1899 |
+ ac_retval=1 |
1900 |
+fi |
1901 |
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1902 |
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1903 |
+ # interfere with the next link command; also delete a directory that is |
1904 |
+ # left behind by Apple's compiler. We do this before executing the actions. |
1905 |
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1906 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1907 |
+ as_fn_set_status $ac_retval |
1908 |
+ |
1909 |
+} # ac_fn_c_try_link |
1910 |
+ |
1911 |
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1912 |
+# ------------------------------------------------------- |
1913 |
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1914 |
+# the include files in INCLUDES and setting the cache variable VAR |
1915 |
+# accordingly. |
1916 |
+ac_fn_c_check_header_mongrel () |
1917 |
+{ |
1918 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1919 |
+ if eval \${$3+:} false; then : |
1920 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1921 |
+$as_echo_n "checking for $2... " >&6; } |
1922 |
+if eval \${$3+:} false; then : |
1923 |
+ $as_echo_n "(cached) " >&6 |
1924 |
+fi |
1925 |
+eval ac_res=\$$3 |
1926 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1927 |
+$as_echo "$ac_res" >&6; } |
1928 |
else |
1929 |
- echo "creating cache $cache_file" |
1930 |
- > $cache_file |
1931 |
+ # Is the header compilable? |
1932 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1933 |
+$as_echo_n "checking $2 usability... " >&6; } |
1934 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1935 |
+/* end confdefs.h. */ |
1936 |
+$4 |
1937 |
+#include <$2> |
1938 |
+_ACEOF |
1939 |
+if ac_fn_c_try_compile "$LINENO"; then : |
1940 |
+ ac_header_compiler=yes |
1941 |
+else |
1942 |
+ ac_header_compiler=no |
1943 |
fi |
1944 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1945 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1946 |
+$as_echo "$ac_header_compiler" >&6; } |
1947 |
|
1948 |
-ac_ext=c |
1949 |
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1950 |
-ac_cpp='$CPP $CPPFLAGS' |
1951 |
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1952 |
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1953 |
-cross_compiling=$ac_cv_prog_cc_cross |
1954 |
+# Is the header present? |
1955 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1956 |
+$as_echo_n "checking $2 presence... " >&6; } |
1957 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1958 |
+/* end confdefs.h. */ |
1959 |
+#include <$2> |
1960 |
+_ACEOF |
1961 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
1962 |
+ ac_header_preproc=yes |
1963 |
+else |
1964 |
+ ac_header_preproc=no |
1965 |
+fi |
1966 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
1967 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1968 |
+$as_echo "$ac_header_preproc" >&6; } |
1969 |
|
1970 |
-ac_exeext= |
1971 |
-ac_objext=o |
1972 |
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
1973 |
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
1974 |
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
1975 |
- ac_n= ac_c=' |
1976 |
-' ac_t=' ' |
1977 |
+# So? What about this header? |
1978 |
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1979 |
+ yes:no: ) |
1980 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1981 |
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1982 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1983 |
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1984 |
+ ;; |
1985 |
+ no:yes:* ) |
1986 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1987 |
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1988 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1989 |
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1990 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1991 |
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1992 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1993 |
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1994 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1995 |
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1996 |
+ ;; |
1997 |
+esac |
1998 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1999 |
+$as_echo_n "checking for $2... " >&6; } |
2000 |
+if eval \${$3+:} false; then : |
2001 |
+ $as_echo_n "(cached) " >&6 |
2002 |
+else |
2003 |
+ eval "$3=\$ac_header_compiler" |
2004 |
+fi |
2005 |
+eval ac_res=\$$3 |
2006 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2007 |
+$as_echo "$ac_res" >&6; } |
2008 |
+fi |
2009 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2010 |
+ |
2011 |
+} # ac_fn_c_check_header_mongrel |
2012 |
+ |
2013 |
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2014 |
+# ------------------------------------------------------- |
2015 |
+# Tests whether HEADER exists and can be compiled using the include files in |
2016 |
+# INCLUDES, setting the cache variable VAR accordingly. |
2017 |
+ac_fn_c_check_header_compile () |
2018 |
+{ |
2019 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2020 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2021 |
+$as_echo_n "checking for $2... " >&6; } |
2022 |
+if eval \${$3+:} false; then : |
2023 |
+ $as_echo_n "(cached) " >&6 |
2024 |
+else |
2025 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2026 |
+/* end confdefs.h. */ |
2027 |
+$4 |
2028 |
+#include <$2> |
2029 |
+_ACEOF |
2030 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2031 |
+ eval "$3=yes" |
2032 |
+else |
2033 |
+ eval "$3=no" |
2034 |
+fi |
2035 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2036 |
+fi |
2037 |
+eval ac_res=\$$3 |
2038 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2039 |
+$as_echo "$ac_res" >&6; } |
2040 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2041 |
+ |
2042 |
+} # ac_fn_c_check_header_compile |
2043 |
+ |
2044 |
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2045 |
+# ------------------------------------------- |
2046 |
+# Tests whether TYPE exists after having included INCLUDES, setting cache |
2047 |
+# variable VAR accordingly. |
2048 |
+ac_fn_c_check_type () |
2049 |
+{ |
2050 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2051 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2052 |
+$as_echo_n "checking for $2... " >&6; } |
2053 |
+if eval \${$3+:} false; then : |
2054 |
+ $as_echo_n "(cached) " >&6 |
2055 |
+else |
2056 |
+ eval "$3=no" |
2057 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2058 |
+/* end confdefs.h. */ |
2059 |
+$4 |
2060 |
+int |
2061 |
+main () |
2062 |
+{ |
2063 |
+if (sizeof ($2)) |
2064 |
+ return 0; |
2065 |
+ ; |
2066 |
+ return 0; |
2067 |
+} |
2068 |
+_ACEOF |
2069 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2070 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2071 |
+/* end confdefs.h. */ |
2072 |
+$4 |
2073 |
+int |
2074 |
+main () |
2075 |
+{ |
2076 |
+if (sizeof (($2))) |
2077 |
+ return 0; |
2078 |
+ ; |
2079 |
+ return 0; |
2080 |
+} |
2081 |
+_ACEOF |
2082 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2083 |
+ |
2084 |
+else |
2085 |
+ eval "$3=yes" |
2086 |
+fi |
2087 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2088 |
+fi |
2089 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2090 |
+fi |
2091 |
+eval ac_res=\$$3 |
2092 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2093 |
+$as_echo "$ac_res" >&6; } |
2094 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2095 |
+ |
2096 |
+} # ac_fn_c_check_type |
2097 |
+ |
2098 |
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2099 |
+# -------------------------------------------- |
2100 |
+# Tries to find the compile-time value of EXPR in a program that includes |
2101 |
+# INCLUDES, setting VAR accordingly. Returns whether the value could be |
2102 |
+# computed |
2103 |
+ac_fn_c_compute_int () |
2104 |
+{ |
2105 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2106 |
+ if test "$cross_compiling" = yes; then |
2107 |
+ # Depending upon the size, compute the lo and hi bounds. |
2108 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2109 |
+/* end confdefs.h. */ |
2110 |
+$4 |
2111 |
+int |
2112 |
+main () |
2113 |
+{ |
2114 |
+static int test_array [1 - 2 * !(($2) >= 0)]; |
2115 |
+test_array [0] = 0; |
2116 |
+return test_array [0]; |
2117 |
+ |
2118 |
+ ; |
2119 |
+ return 0; |
2120 |
+} |
2121 |
+_ACEOF |
2122 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2123 |
+ ac_lo=0 ac_mid=0 |
2124 |
+ while :; do |
2125 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2126 |
+/* end confdefs.h. */ |
2127 |
+$4 |
2128 |
+int |
2129 |
+main () |
2130 |
+{ |
2131 |
+static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2132 |
+test_array [0] = 0; |
2133 |
+return test_array [0]; |
2134 |
+ |
2135 |
+ ; |
2136 |
+ return 0; |
2137 |
+} |
2138 |
+_ACEOF |
2139 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2140 |
+ ac_hi=$ac_mid; break |
2141 |
+else |
2142 |
+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2143 |
+ if test $ac_lo -le $ac_mid; then |
2144 |
+ ac_lo= ac_hi= |
2145 |
+ break |
2146 |
+ fi |
2147 |
+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
2148 |
+fi |
2149 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2150 |
+ done |
2151 |
+else |
2152 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2153 |
+/* end confdefs.h. */ |
2154 |
+$4 |
2155 |
+int |
2156 |
+main () |
2157 |
+{ |
2158 |
+static int test_array [1 - 2 * !(($2) < 0)]; |
2159 |
+test_array [0] = 0; |
2160 |
+return test_array [0]; |
2161 |
+ |
2162 |
+ ; |
2163 |
+ return 0; |
2164 |
+} |
2165 |
+_ACEOF |
2166 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2167 |
+ ac_hi=-1 ac_mid=-1 |
2168 |
+ while :; do |
2169 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2170 |
+/* end confdefs.h. */ |
2171 |
+$4 |
2172 |
+int |
2173 |
+main () |
2174 |
+{ |
2175 |
+static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
2176 |
+test_array [0] = 0; |
2177 |
+return test_array [0]; |
2178 |
+ |
2179 |
+ ; |
2180 |
+ return 0; |
2181 |
+} |
2182 |
+_ACEOF |
2183 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2184 |
+ ac_lo=$ac_mid; break |
2185 |
+else |
2186 |
+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2187 |
+ if test $ac_mid -le $ac_hi; then |
2188 |
+ ac_lo= ac_hi= |
2189 |
+ break |
2190 |
+ fi |
2191 |
+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
2192 |
+fi |
2193 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2194 |
+ done |
2195 |
+else |
2196 |
+ ac_lo= ac_hi= |
2197 |
+fi |
2198 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2199 |
+fi |
2200 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2201 |
+# Binary search between lo and hi bounds. |
2202 |
+while test "x$ac_lo" != "x$ac_hi"; do |
2203 |
+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
2204 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2205 |
+/* end confdefs.h. */ |
2206 |
+$4 |
2207 |
+int |
2208 |
+main () |
2209 |
+{ |
2210 |
+static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2211 |
+test_array [0] = 0; |
2212 |
+return test_array [0]; |
2213 |
+ |
2214 |
+ ; |
2215 |
+ return 0; |
2216 |
+} |
2217 |
+_ACEOF |
2218 |
+if ac_fn_c_try_compile "$LINENO"; then : |
2219 |
+ ac_hi=$ac_mid |
2220 |
+else |
2221 |
+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2222 |
+fi |
2223 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2224 |
+done |
2225 |
+case $ac_lo in #(( |
2226 |
+?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
2227 |
+'') ac_retval=1 ;; |
2228 |
+esac |
2229 |
else |
2230 |
- ac_n=-n ac_c= ac_t= |
2231 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2232 |
+/* end confdefs.h. */ |
2233 |
+$4 |
2234 |
+static long int longval () { return $2; } |
2235 |
+static unsigned long int ulongval () { return $2; } |
2236 |
+#include <stdio.h> |
2237 |
+#include <stdlib.h> |
2238 |
+int |
2239 |
+main () |
2240 |
+{ |
2241 |
+ |
2242 |
+ FILE *f = fopen ("conftest.val", "w"); |
2243 |
+ if (! f) |
2244 |
+ return 1; |
2245 |
+ if (($2) < 0) |
2246 |
+ { |
2247 |
+ long int i = longval (); |
2248 |
+ if (i != ($2)) |
2249 |
+ return 1; |
2250 |
+ fprintf (f, "%ld", i); |
2251 |
+ } |
2252 |
+ else |
2253 |
+ { |
2254 |
+ unsigned long int i = ulongval (); |
2255 |
+ if (i != ($2)) |
2256 |
+ return 1; |
2257 |
+ fprintf (f, "%lu", i); |
2258 |
+ } |
2259 |
+ /* Do not output a trailing newline, as this causes \r\n confusion |
2260 |
+ on some platforms. */ |
2261 |
+ return ferror (f) || fclose (f) != 0; |
2262 |
+ |
2263 |
+ ; |
2264 |
+ return 0; |
2265 |
+} |
2266 |
+_ACEOF |
2267 |
+if ac_fn_c_try_run "$LINENO"; then : |
2268 |
+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2269 |
+else |
2270 |
+ ac_retval=1 |
2271 |
+fi |
2272 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2273 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
2274 |
+rm -f conftest.val |
2275 |
+ |
2276 |
fi |
2277 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2278 |
+ as_fn_set_status $ac_retval |
2279 |
+ |
2280 |
+} # ac_fn_c_compute_int |
2281 |
+ |
2282 |
+# ac_fn_c_check_func LINENO FUNC VAR |
2283 |
+# ---------------------------------- |
2284 |
+# Tests whether FUNC exists, setting the cache variable VAR accordingly |
2285 |
+ac_fn_c_check_func () |
2286 |
+{ |
2287 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2288 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2289 |
+$as_echo_n "checking for $2... " >&6; } |
2290 |
+if eval \${$3+:} false; then : |
2291 |
+ $as_echo_n "(cached) " >&6 |
2292 |
else |
2293 |
- ac_n= ac_c='\c' ac_t= |
2294 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2295 |
+/* end confdefs.h. */ |
2296 |
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2297 |
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2298 |
+#define $2 innocuous_$2 |
2299 |
+ |
2300 |
+/* System header to define __stub macros and hopefully few prototypes, |
2301 |
+ which can conflict with char $2 (); below. |
2302 |
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2303 |
+ <limits.h> exists even on freestanding compilers. */ |
2304 |
+ |
2305 |
+#ifdef __STDC__ |
2306 |
+# include <limits.h> |
2307 |
+#else |
2308 |
+# include <assert.h> |
2309 |
+#endif |
2310 |
+ |
2311 |
+#undef $2 |
2312 |
+ |
2313 |
+/* Override any GCC internal prototype to avoid an error. |
2314 |
+ Use char because int might match the return type of a GCC |
2315 |
+ builtin and then its argument prototype would still apply. */ |
2316 |
+#ifdef __cplusplus |
2317 |
+extern "C" |
2318 |
+#endif |
2319 |
+char $2 (); |
2320 |
+/* The GNU C library defines this for functions which it implements |
2321 |
+ to always fail with ENOSYS. Some functions are actually named |
2322 |
+ something starting with __ and the normal name is an alias. */ |
2323 |
+#if defined __stub_$2 || defined __stub___$2 |
2324 |
+choke me |
2325 |
+#endif |
2326 |
+ |
2327 |
+int |
2328 |
+main () |
2329 |
+{ |
2330 |
+return $2 (); |
2331 |
+ ; |
2332 |
+ return 0; |
2333 |
+} |
2334 |
+_ACEOF |
2335 |
+if ac_fn_c_try_link "$LINENO"; then : |
2336 |
+ eval "$3=yes" |
2337 |
+else |
2338 |
+ eval "$3=no" |
2339 |
+fi |
2340 |
+rm -f core conftest.err conftest.$ac_objext \ |
2341 |
+ conftest$ac_exeext conftest.$ac_ext |
2342 |
+fi |
2343 |
+eval ac_res=\$$3 |
2344 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2345 |
+$as_echo "$ac_res" >&6; } |
2346 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2347 |
+ |
2348 |
+} # ac_fn_c_check_func |
2349 |
+ |
2350 |
+# ac_fn_cxx_try_compile LINENO |
2351 |
+# ---------------------------- |
2352 |
+# Try to compile conftest.$ac_ext, and return whether this succeeded. |
2353 |
+ac_fn_cxx_try_compile () |
2354 |
+{ |
2355 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2356 |
+ rm -f conftest.$ac_objext |
2357 |
+ if { { ac_try="$ac_compile" |
2358 |
+case "(($ac_try" in |
2359 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2360 |
+ *) ac_try_echo=$ac_try;; |
2361 |
+esac |
2362 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2363 |
+$as_echo "$ac_try_echo"; } >&5 |
2364 |
+ (eval "$ac_compile") 2>conftest.err |
2365 |
+ ac_status=$? |
2366 |
+ if test -s conftest.err; then |
2367 |
+ grep -v '^ *+' conftest.err >conftest.er1 |
2368 |
+ cat conftest.er1 >&5 |
2369 |
+ mv -f conftest.er1 conftest.err |
2370 |
+ fi |
2371 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2372 |
+ test $ac_status = 0; } && { |
2373 |
+ test -z "$ac_cxx_werror_flag" || |
2374 |
+ test ! -s conftest.err |
2375 |
+ } && test -s conftest.$ac_objext; then : |
2376 |
+ ac_retval=0 |
2377 |
+else |
2378 |
+ $as_echo "$as_me: failed program was:" >&5 |
2379 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
2380 |
+ |
2381 |
+ ac_retval=1 |
2382 |
fi |
2383 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2384 |
+ as_fn_set_status $ac_retval |
2385 |
+ |
2386 |
+} # ac_fn_cxx_try_compile |
2387 |
+cat >config.log <<_ACEOF |
2388 |
+This file contains any messages produced by compilers while |
2389 |
+running configure, to aid debugging if configure makes a mistake. |
2390 |
+ |
2391 |
+It was created by $as_me, which was |
2392 |
+generated by GNU Autoconf 2.69. Invocation command line was |
2393 |
|
2394 |
+ $ $0 $@ |
2395 |
|
2396 |
+_ACEOF |
2397 |
+exec 5>>config.log |
2398 |
+{ |
2399 |
+cat <<_ASUNAME |
2400 |
+## --------- ## |
2401 |
+## Platform. ## |
2402 |
+## --------- ## |
2403 |
|
2404 |
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2405 |
+uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2406 |
+uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2407 |
+uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2408 |
+uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2409 |
+ |
2410 |
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2411 |
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2412 |
+ |
2413 |
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2414 |
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2415 |
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2416 |
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2417 |
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2418 |
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2419 |
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2420 |
+ |
2421 |
+_ASUNAME |
2422 |
+ |
2423 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2424 |
+for as_dir in $PATH |
2425 |
+do |
2426 |
+ IFS=$as_save_IFS |
2427 |
+ test -z "$as_dir" && as_dir=. |
2428 |
+ $as_echo "PATH: $as_dir" |
2429 |
+ done |
2430 |
+IFS=$as_save_IFS |
2431 |
+ |
2432 |
+} >&5 |
2433 |
+ |
2434 |
+cat >&5 <<_ACEOF |
2435 |
+ |
2436 |
+ |
2437 |
+## ----------- ## |
2438 |
+## Core tests. ## |
2439 |
+## ----------- ## |
2440 |
+ |
2441 |
+_ACEOF |
2442 |
+ |
2443 |
+ |
2444 |
+# Keep a trace of the command line. |
2445 |
+# Strip out --no-create and --no-recursion so they do not pile up. |
2446 |
+# Strip out --silent because we don't want to record it for future runs. |
2447 |
+# Also quote any args containing shell meta-characters. |
2448 |
+# Make two passes to allow for proper duplicate-argument suppression. |
2449 |
+ac_configure_args= |
2450 |
+ac_configure_args0= |
2451 |
+ac_configure_args1= |
2452 |
+ac_must_keep_next=false |
2453 |
+for ac_pass in 1 2 |
2454 |
+do |
2455 |
+ for ac_arg |
2456 |
+ do |
2457 |
+ case $ac_arg in |
2458 |
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2459 |
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2460 |
+ | -silent | --silent | --silen | --sile | --sil) |
2461 |
+ continue ;; |
2462 |
+ *\'*) |
2463 |
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2464 |
+ esac |
2465 |
+ case $ac_pass in |
2466 |
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2467 |
+ 2) |
2468 |
+ as_fn_append ac_configure_args1 " '$ac_arg'" |
2469 |
+ if test $ac_must_keep_next = true; then |
2470 |
+ ac_must_keep_next=false # Got value, back to normal. |
2471 |
+ else |
2472 |
+ case $ac_arg in |
2473 |
+ *=* | --config-cache | -C | -disable-* | --disable-* \ |
2474 |
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2475 |
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2476 |
+ | -with-* | --with-* | -without-* | --without-* | --x) |
2477 |
+ case "$ac_configure_args0 " in |
2478 |
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2479 |
+ esac |
2480 |
+ ;; |
2481 |
+ -* ) ac_must_keep_next=true ;; |
2482 |
+ esac |
2483 |
+ fi |
2484 |
+ as_fn_append ac_configure_args " '$ac_arg'" |
2485 |
+ ;; |
2486 |
+ esac |
2487 |
+ done |
2488 |
+done |
2489 |
+{ ac_configure_args0=; unset ac_configure_args0;} |
2490 |
+{ ac_configure_args1=; unset ac_configure_args1;} |
2491 |
+ |
2492 |
+# When interrupted or exit'd, cleanup temporary files, and complete |
2493 |
+# config.log. We remove comments because anyway the quotes in there |
2494 |
+# would cause problems or look ugly. |
2495 |
+# WARNING: Use '\'' to represent an apostrophe within the trap. |
2496 |
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2497 |
+trap 'exit_status=$? |
2498 |
+ # Save into config.log some information that might help in debugging. |
2499 |
+ { |
2500 |
+ echo |
2501 |
+ |
2502 |
+ $as_echo "## ---------------- ## |
2503 |
+## Cache variables. ## |
2504 |
+## ---------------- ##" |
2505 |
+ echo |
2506 |
+ # The following way of writing the cache mishandles newlines in values, |
2507 |
+( |
2508 |
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2509 |
+ eval ac_val=\$$ac_var |
2510 |
+ case $ac_val in #( |
2511 |
+ *${as_nl}*) |
2512 |
+ case $ac_var in #( |
2513 |
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2514 |
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2515 |
+ esac |
2516 |
+ case $ac_var in #( |
2517 |
+ _ | IFS | as_nl) ;; #( |
2518 |
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2519 |
+ *) { eval $ac_var=; unset $ac_var;} ;; |
2520 |
+ esac ;; |
2521 |
+ esac |
2522 |
+ done |
2523 |
+ (set) 2>&1 | |
2524 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2525 |
+ *${as_nl}ac_space=\ *) |
2526 |
+ sed -n \ |
2527 |
+ "s/'\''/'\''\\\\'\'''\''/g; |
2528 |
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2529 |
+ ;; #( |
2530 |
+ *) |
2531 |
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2532 |
+ ;; |
2533 |
+ esac | |
2534 |
+ sort |
2535 |
+) |
2536 |
+ echo |
2537 |
+ |
2538 |
+ $as_echo "## ----------------- ## |
2539 |
+## Output variables. ## |
2540 |
+## ----------------- ##" |
2541 |
+ echo |
2542 |
+ for ac_var in $ac_subst_vars |
2543 |
+ do |
2544 |
+ eval ac_val=\$$ac_var |
2545 |
+ case $ac_val in |
2546 |
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2547 |
+ esac |
2548 |
+ $as_echo "$ac_var='\''$ac_val'\''" |
2549 |
+ done | sort |
2550 |
+ echo |
2551 |
+ |
2552 |
+ if test -n "$ac_subst_files"; then |
2553 |
+ $as_echo "## ------------------- ## |
2554 |
+## File substitutions. ## |
2555 |
+## ------------------- ##" |
2556 |
+ echo |
2557 |
+ for ac_var in $ac_subst_files |
2558 |
+ do |
2559 |
+ eval ac_val=\$$ac_var |
2560 |
+ case $ac_val in |
2561 |
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2562 |
+ esac |
2563 |
+ $as_echo "$ac_var='\''$ac_val'\''" |
2564 |
+ done | sort |
2565 |
+ echo |
2566 |
+ fi |
2567 |
+ |
2568 |
+ if test -s confdefs.h; then |
2569 |
+ $as_echo "## ----------- ## |
2570 |
+## confdefs.h. ## |
2571 |
+## ----------- ##" |
2572 |
+ echo |
2573 |
+ cat confdefs.h |
2574 |
+ echo |
2575 |
+ fi |
2576 |
+ test "$ac_signal" != 0 && |
2577 |
+ $as_echo "$as_me: caught signal $ac_signal" |
2578 |
+ $as_echo "$as_me: exit $exit_status" |
2579 |
+ } >&5 |
2580 |
+ rm -f core *.core core.conftest.* && |
2581 |
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2582 |
+ exit $exit_status |
2583 |
+' 0 |
2584 |
+for ac_signal in 1 2 13 15; do |
2585 |
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2586 |
+done |
2587 |
+ac_signal=0 |
2588 |
+ |
2589 |
+# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2590 |
+rm -f -r conftest* confdefs.h |
2591 |
+ |
2592 |
+$as_echo "/* confdefs.h */" > confdefs.h |
2593 |
+ |
2594 |
+# Predefined preprocessor variables. |
2595 |
+ |
2596 |
+cat >>confdefs.h <<_ACEOF |
2597 |
+#define PACKAGE_NAME "$PACKAGE_NAME" |
2598 |
+_ACEOF |
2599 |
+ |
2600 |
+cat >>confdefs.h <<_ACEOF |
2601 |
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2602 |
+_ACEOF |
2603 |
+ |
2604 |
+cat >>confdefs.h <<_ACEOF |
2605 |
+#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2606 |
+_ACEOF |
2607 |
+ |
2608 |
+cat >>confdefs.h <<_ACEOF |
2609 |
+#define PACKAGE_STRING "$PACKAGE_STRING" |
2610 |
+_ACEOF |
2611 |
+ |
2612 |
+cat >>confdefs.h <<_ACEOF |
2613 |
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2614 |
+_ACEOF |
2615 |
+ |
2616 |
+cat >>confdefs.h <<_ACEOF |
2617 |
+#define PACKAGE_URL "$PACKAGE_URL" |
2618 |
+_ACEOF |
2619 |
+ |
2620 |
+ |
2621 |
+# Let the site file select an alternate cache file if it wants to. |
2622 |
+# Prefer an explicitly selected file to automatically selected ones. |
2623 |
+ac_site_file1=NONE |
2624 |
+ac_site_file2=NONE |
2625 |
+if test -n "$CONFIG_SITE"; then |
2626 |
+ # We do not want a PATH search for config.site. |
2627 |
+ case $CONFIG_SITE in #(( |
2628 |
+ -*) ac_site_file1=./$CONFIG_SITE;; |
2629 |
+ */*) ac_site_file1=$CONFIG_SITE;; |
2630 |
+ *) ac_site_file1=./$CONFIG_SITE;; |
2631 |
+ esac |
2632 |
+elif test "x$prefix" != xNONE; then |
2633 |
+ ac_site_file1=$prefix/share/config.site |
2634 |
+ ac_site_file2=$prefix/etc/config.site |
2635 |
+else |
2636 |
+ ac_site_file1=$ac_default_prefix/share/config.site |
2637 |
+ ac_site_file2=$ac_default_prefix/etc/config.site |
2638 |
+fi |
2639 |
+for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2640 |
+do |
2641 |
+ test "x$ac_site_file" = xNONE && continue |
2642 |
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2643 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2644 |
+$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2645 |
+ sed 's/^/| /' "$ac_site_file" >&5 |
2646 |
+ . "$ac_site_file" \ |
2647 |
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2648 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2649 |
+as_fn_error $? "failed to load site script $ac_site_file |
2650 |
+See \`config.log' for more details" "$LINENO" 5; } |
2651 |
+ fi |
2652 |
+done |
2653 |
+ |
2654 |
+if test -r "$cache_file"; then |
2655 |
+ # Some versions of bash will fail to source /dev/null (special files |
2656 |
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2657 |
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2658 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2659 |
+$as_echo "$as_me: loading cache $cache_file" >&6;} |
2660 |
+ case $cache_file in |
2661 |
+ [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2662 |
+ *) . "./$cache_file";; |
2663 |
+ esac |
2664 |
+ fi |
2665 |
+else |
2666 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2667 |
+$as_echo "$as_me: creating cache $cache_file" >&6;} |
2668 |
+ >$cache_file |
2669 |
+fi |
2670 |
+ |
2671 |
+# Check that the precious variables saved in the cache have kept the same |
2672 |
+# value. |
2673 |
+ac_cache_corrupted=false |
2674 |
+for ac_var in $ac_precious_vars; do |
2675 |
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2676 |
+ eval ac_new_set=\$ac_env_${ac_var}_set |
2677 |
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2678 |
+ eval ac_new_val=\$ac_env_${ac_var}_value |
2679 |
+ case $ac_old_set,$ac_new_set in |
2680 |
+ set,) |
2681 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2682 |
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2683 |
+ ac_cache_corrupted=: ;; |
2684 |
+ ,set) |
2685 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2686 |
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2687 |
+ ac_cache_corrupted=: ;; |
2688 |
+ ,);; |
2689 |
+ *) |
2690 |
+ if test "x$ac_old_val" != "x$ac_new_val"; then |
2691 |
+ # differences in whitespace do not lead to failure. |
2692 |
+ ac_old_val_w=`echo x $ac_old_val` |
2693 |
+ ac_new_val_w=`echo x $ac_new_val` |
2694 |
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2695 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2696 |
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2697 |
+ ac_cache_corrupted=: |
2698 |
+ else |
2699 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2700 |
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2701 |
+ eval $ac_var=\$ac_old_val |
2702 |
+ fi |
2703 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2704 |
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2705 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2706 |
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2707 |
+ fi;; |
2708 |
+ esac |
2709 |
+ # Pass precious variables to config.status. |
2710 |
+ if test "$ac_new_set" = set; then |
2711 |
+ case $ac_new_val in |
2712 |
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2713 |
+ *) ac_arg=$ac_var=$ac_new_val ;; |
2714 |
+ esac |
2715 |
+ case " $ac_configure_args " in |
2716 |
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2717 |
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2718 |
+ esac |
2719 |
+ fi |
2720 |
+done |
2721 |
+if $ac_cache_corrupted; then |
2722 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2723 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2724 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2725 |
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2726 |
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2727 |
+fi |
2728 |
+## -------------------- ## |
2729 |
+## Main body of script. ## |
2730 |
+## -------------------- ## |
2731 |
+ |
2732 |
+ac_ext=c |
2733 |
+ac_cpp='$CPP $CPPFLAGS' |
2734 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2735 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2736 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2737 |
+ |
2738 |
+ |
2739 |
+ |
2740 |
+am__api_version="1.4" |
2741 |
ac_aux_dir= |
2742 |
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2743 |
- if test -f $ac_dir/install-sh; then |
2744 |
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2745 |
+ if test -f "$ac_dir/install-sh"; then |
2746 |
ac_aux_dir=$ac_dir |
2747 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2748 |
break |
2749 |
- elif test -f $ac_dir/install.sh; then |
2750 |
+ elif test -f "$ac_dir/install.sh"; then |
2751 |
ac_aux_dir=$ac_dir |
2752 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2753 |
break |
2754 |
+ elif test -f "$ac_dir/shtool"; then |
2755 |
+ ac_aux_dir=$ac_dir |
2756 |
+ ac_install_sh="$ac_aux_dir/shtool install -c" |
2757 |
+ break |
2758 |
fi |
2759 |
done |
2760 |
if test -z "$ac_aux_dir"; then |
2761 |
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
2762 |
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2763 |
fi |
2764 |
-ac_config_guess=$ac_aux_dir/config.guess |
2765 |
-ac_config_sub=$ac_aux_dir/config.sub |
2766 |
-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
2767 |
|
2768 |
-am__api_version="1.4" |
2769 |
+# These three variables are undocumented and unsupported, |
2770 |
+# and are intended to be withdrawn in a future Autoconf release. |
2771 |
+# They can cause serious problems if a builder's source tree is in a directory |
2772 |
+# whose full name contains unusual characters. |
2773 |
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2774 |
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2775 |
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2776 |
+ |
2777 |
+ |
2778 |
# Find a good install program. We prefer a C program (faster), |
2779 |
# so one script is as good as another. But avoid the broken or |
2780 |
# incompatible versions: |
2781 |
@@ -603,65 +2492,94 @@ am__api_version="1.4" |
2782 |
# SunOS /usr/etc/install |
2783 |
# IRIX /sbin/install |
2784 |
# AIX /bin/install |
2785 |
+# AmigaOS /C/install, which installs bootblocks on floppy discs |
2786 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2787 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2788 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2789 |
+# OS/2's system install, which has a completely different semantic |
2790 |
# ./install, which can be erroneously created by make from ./install.sh. |
2791 |
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2792 |
-echo "configure:610: checking for a BSD compatible install" >&5 |
2793 |
+# Reject install programs that cannot install multiple files. |
2794 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2795 |
+$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2796 |
if test -z "$INSTALL"; then |
2797 |
-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2798 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
2799 |
+if ${ac_cv_path_install+:} false; then : |
2800 |
+ $as_echo_n "(cached) " >&6 |
2801 |
else |
2802 |
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2803 |
- for ac_dir in $PATH; do |
2804 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2805 |
+for as_dir in $PATH |
2806 |
+do |
2807 |
+ IFS=$as_save_IFS |
2808 |
+ test -z "$as_dir" && as_dir=. |
2809 |
# Account for people who put trailing slashes in PATH elements. |
2810 |
- case "$ac_dir/" in |
2811 |
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
2812 |
- *) |
2813 |
- # OSF1 and SCO ODT 3.0 have their own names for install. |
2814 |
- # Don't use installbsd from OSF since it installs stuff as root |
2815 |
- # by default. |
2816 |
- for ac_prog in ginstall scoinst install; do |
2817 |
- if test -f $ac_dir/$ac_prog; then |
2818 |
+case $as_dir/ in #(( |
2819 |
+ ./ | .// | /[cC]/* | \ |
2820 |
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2821 |
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2822 |
+ /usr/ucb/* ) ;; |
2823 |
+ *) |
2824 |
+ # OSF1 and SCO ODT 3.0 have their own names for install. |
2825 |
+ # Don't use installbsd from OSF since it installs stuff as root |
2826 |
+ # by default. |
2827 |
+ for ac_prog in ginstall scoinst install; do |
2828 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
2829 |
+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2830 |
if test $ac_prog = install && |
2831 |
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
2832 |
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2833 |
# AIX install. It has an incompatible calling convention. |
2834 |
: |
2835 |
+ elif test $ac_prog = install && |
2836 |
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2837 |
+ # program-specific install script used by HP pwplus--don't use. |
2838 |
+ : |
2839 |
else |
2840 |
- ac_cv_path_install="$ac_dir/$ac_prog -c" |
2841 |
- break 2 |
2842 |
+ rm -rf conftest.one conftest.two conftest.dir |
2843 |
+ echo one > conftest.one |
2844 |
+ echo two > conftest.two |
2845 |
+ mkdir conftest.dir |
2846 |
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2847 |
+ test -s conftest.one && test -s conftest.two && |
2848 |
+ test -s conftest.dir/conftest.one && |
2849 |
+ test -s conftest.dir/conftest.two |
2850 |
+ then |
2851 |
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2852 |
+ break 3 |
2853 |
+ fi |
2854 |
fi |
2855 |
fi |
2856 |
done |
2857 |
- ;; |
2858 |
- esac |
2859 |
+ done |
2860 |
+ ;; |
2861 |
+esac |
2862 |
+ |
2863 |
done |
2864 |
- IFS="$ac_save_IFS" |
2865 |
+IFS=$as_save_IFS |
2866 |
+ |
2867 |
+rm -rf conftest.one conftest.two conftest.dir |
2868 |
|
2869 |
fi |
2870 |
if test "${ac_cv_path_install+set}" = set; then |
2871 |
- INSTALL="$ac_cv_path_install" |
2872 |
+ INSTALL=$ac_cv_path_install |
2873 |
else |
2874 |
- # As a last resort, use the slow shell script. We don't cache a |
2875 |
- # path for INSTALL within a source directory, because that will |
2876 |
+ # As a last resort, use the slow shell script. Don't cache a |
2877 |
+ # value for INSTALL within a source directory, because that will |
2878 |
# break other packages using the cache if that directory is |
2879 |
- # removed, or if the path is relative. |
2880 |
- INSTALL="$ac_install_sh" |
2881 |
+ # removed, or if the value is a relative name. |
2882 |
+ INSTALL=$ac_install_sh |
2883 |
fi |
2884 |
fi |
2885 |
-echo "$ac_t""$INSTALL" 1>&6 |
2886 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2887 |
+$as_echo "$INSTALL" >&6; } |
2888 |
|
2889 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2890 |
# It thinks the first close brace ends the variable substitution. |
2891 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2892 |
|
2893 |
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2894 |
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2895 |
|
2896 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2897 |
|
2898 |
-echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
2899 |
-echo "configure:663: checking whether build environment is sane" >&5 |
2900 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2901 |
+$as_echo_n "checking whether build environment is sane... " >&6; } |
2902 |
# Just in case |
2903 |
sleep 1 |
2904 |
echo timestamp > conftestfile |
2905 |
@@ -683,8 +2601,8 @@ if ( |
2906 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2907 |
# broken ls alias from the environment. This has actually |
2908 |
# happened. Such a system could not be considered "sane". |
2909 |
- { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
2910 |
-alias in your environment" 1>&2; exit 1; } |
2911 |
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2912 |
+alias in your environment" "$LINENO" 5 |
2913 |
fi |
2914 |
|
2915 |
test "$2" = conftestfile |
2916 |
@@ -693,54 +2611,50 @@ then |
2917 |
# Ok. |
2918 |
: |
2919 |
else |
2920 |
- { echo "configure: error: newly created file is older than distributed files! |
2921 |
-Check your system clock" 1>&2; exit 1; } |
2922 |
+ as_fn_error $? "newly created file is older than distributed files! |
2923 |
+Check your system clock" "$LINENO" 5 |
2924 |
fi |
2925 |
rm -f conftest* |
2926 |
-echo "$ac_t""yes" 1>&6 |
2927 |
-if test "$program_transform_name" = s,x,x,; then |
2928 |
- program_transform_name= |
2929 |
-else |
2930 |
- # Double any \ or $. echo might interpret backslashes. |
2931 |
- cat <<\EOF_SED > conftestsed |
2932 |
-s,\\,\\\\,g; s,\$,$$,g |
2933 |
-EOF_SED |
2934 |
- program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
2935 |
- rm -f conftestsed |
2936 |
-fi |
2937 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2938 |
+$as_echo "yes" >&6; } |
2939 |
test "$program_prefix" != NONE && |
2940 |
- program_transform_name="s,^,${program_prefix},; $program_transform_name" |
2941 |
+ program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2942 |
# Use a double $ so make ignores it. |
2943 |
test "$program_suffix" != NONE && |
2944 |
- program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
2945 |
- |
2946 |
-# sed with no file args requires a program. |
2947 |
-test "$program_transform_name" = "" && program_transform_name="s,x,x," |
2948 |
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2949 |
+# Double any \ or $. |
2950 |
+# By default was `s,x,x', remove it if useless. |
2951 |
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2952 |
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2953 |
|
2954 |
-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
2955 |
-echo "configure:720: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
2956 |
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2957 |
-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
2958 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
2959 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2960 |
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2961 |
+set x ${MAKE-make} |
2962 |
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2963 |
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2964 |
+ $as_echo_n "(cached) " >&6 |
2965 |
else |
2966 |
- cat > conftestmake <<\EOF |
2967 |
+ cat >conftest.make <<\_ACEOF |
2968 |
+SHELL = /bin/sh |
2969 |
all: |
2970 |
- @echo 'ac_maketemp="${MAKE}"' |
2971 |
-EOF |
2972 |
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2973 |
-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
2974 |
-if test -n "$ac_maketemp"; then |
2975 |
- eval ac_cv_prog_make_${ac_make}_set=yes |
2976 |
-else |
2977 |
- eval ac_cv_prog_make_${ac_make}_set=no |
2978 |
-fi |
2979 |
-rm -f conftestmake |
2980 |
+ @echo '@@@%%%=$(MAKE)=@@@%%%' |
2981 |
+_ACEOF |
2982 |
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2983 |
+case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2984 |
+ *@@@%%%=?*=@@@%%%*) |
2985 |
+ eval ac_cv_prog_make_${ac_make}_set=yes;; |
2986 |
+ *) |
2987 |
+ eval ac_cv_prog_make_${ac_make}_set=no;; |
2988 |
+esac |
2989 |
+rm -f conftest.make |
2990 |
fi |
2991 |
-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
2992 |
- echo "$ac_t""yes" 1>&6 |
2993 |
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2994 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2995 |
+$as_echo "yes" >&6; } |
2996 |
SET_MAKE= |
2997 |
else |
2998 |
- echo "$ac_t""no" 1>&6 |
2999 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3000 |
+$as_echo "no" >&6; } |
3001 |
SET_MAKE="MAKE=${MAKE-make}" |
3002 |
fi |
3003 |
|
3004 |
@@ -750,82 +2664,94 @@ PACKAGE=links |
3005 |
VERSION=2.8 |
3006 |
|
3007 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
3008 |
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
3009 |
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
3010 |
fi |
3011 |
-cat >> confdefs.h <<EOF |
3012 |
+ |
3013 |
+cat >>confdefs.h <<_ACEOF |
3014 |
#define PACKAGE "$PACKAGE" |
3015 |
-EOF |
3016 |
+_ACEOF |
3017 |
|
3018 |
-cat >> confdefs.h <<EOF |
3019 |
+ |
3020 |
+cat >>confdefs.h <<_ACEOF |
3021 |
#define VERSION "$VERSION" |
3022 |
-EOF |
3023 |
+_ACEOF |
3024 |
|
3025 |
|
3026 |
|
3027 |
missing_dir=`cd $ac_aux_dir && pwd` |
3028 |
-echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 |
3029 |
-echo "configure:766: checking for working aclocal-${am__api_version}" >&5 |
3030 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working aclocal-${am__api_version}" >&5 |
3031 |
+$as_echo_n "checking for working aclocal-${am__api_version}... " >&6; } |
3032 |
# Run test in a subshell; some versions of sh will print an error if |
3033 |
# an executable is not found, even if stderr is redirected. |
3034 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
3035 |
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
3036 |
ACLOCAL=aclocal-${am__api_version} |
3037 |
- echo "$ac_t""found" 1>&6 |
3038 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3039 |
+$as_echo "found" >&6; } |
3040 |
else |
3041 |
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
3042 |
- echo "$ac_t""missing" 1>&6 |
3043 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
3044 |
+$as_echo "missing" >&6; } |
3045 |
fi |
3046 |
|
3047 |
-echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
3048 |
-echo "configure:779: checking for working autoconf" >&5 |
3049 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 |
3050 |
+$as_echo_n "checking for working autoconf... " >&6; } |
3051 |
# Run test in a subshell; some versions of sh will print an error if |
3052 |
# an executable is not found, even if stderr is redirected. |
3053 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
3054 |
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
3055 |
AUTOCONF=autoconf |
3056 |
- echo "$ac_t""found" 1>&6 |
3057 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3058 |
+$as_echo "found" >&6; } |
3059 |
else |
3060 |
AUTOCONF="$missing_dir/missing autoconf" |
3061 |
- echo "$ac_t""missing" 1>&6 |
3062 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
3063 |
+$as_echo "missing" >&6; } |
3064 |
fi |
3065 |
|
3066 |
-echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 |
3067 |
-echo "configure:792: checking for working automake-${am__api_version}" >&5 |
3068 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working automake-${am__api_version}" >&5 |
3069 |
+$as_echo_n "checking for working automake-${am__api_version}... " >&6; } |
3070 |
# Run test in a subshell; some versions of sh will print an error if |
3071 |
# an executable is not found, even if stderr is redirected. |
3072 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
3073 |
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
3074 |
AUTOMAKE=automake-${am__api_version} |
3075 |
- echo "$ac_t""found" 1>&6 |
3076 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3077 |
+$as_echo "found" >&6; } |
3078 |
else |
3079 |
AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
3080 |
- echo "$ac_t""missing" 1>&6 |
3081 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
3082 |
+$as_echo "missing" >&6; } |
3083 |
fi |
3084 |
|
3085 |
-echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
3086 |
-echo "configure:805: checking for working autoheader" >&5 |
3087 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoheader" >&5 |
3088 |
+$as_echo_n "checking for working autoheader... " >&6; } |
3089 |
# Run test in a subshell; some versions of sh will print an error if |
3090 |
# an executable is not found, even if stderr is redirected. |
3091 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
3092 |
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
3093 |
AUTOHEADER=autoheader |
3094 |
- echo "$ac_t""found" 1>&6 |
3095 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3096 |
+$as_echo "found" >&6; } |
3097 |
else |
3098 |
AUTOHEADER="$missing_dir/missing autoheader" |
3099 |
- echo "$ac_t""missing" 1>&6 |
3100 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
3101 |
+$as_echo "missing" >&6; } |
3102 |
fi |
3103 |
|
3104 |
-echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
3105 |
-echo "configure:818: checking for working makeinfo" >&5 |
3106 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5 |
3107 |
+$as_echo_n "checking for working makeinfo... " >&6; } |
3108 |
# Run test in a subshell; some versions of sh will print an error if |
3109 |
# an executable is not found, even if stderr is redirected. |
3110 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
3111 |
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
3112 |
MAKEINFO=makeinfo |
3113 |
- echo "$ac_t""found" 1>&6 |
3114 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3115 |
+$as_echo "found" >&6; } |
3116 |
else |
3117 |
MAKEINFO="$missing_dir/missing makeinfo" |
3118 |
- echo "$ac_t""missing" 1>&6 |
3119 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 |
3120 |
+$as_echo "missing" >&6; } |
3121 |
fi |
3122 |
|
3123 |
|
3124 |
@@ -837,217 +2763,691 @@ AUTOHEADER="./missing autoheader" |
3125 |
image_formats="GIF PNG XBM" |
3126 |
|
3127 |
|
3128 |
+ac_config_headers="$ac_config_headers config.h" |
3129 |
|
3130 |
+ac_config_commands="$ac_config_commands default-1" |
3131 |
|
3132 |
|
3133 |
-# Extract the first word of "gcc", so it can be a program name with args. |
3134 |
+ac_ext=c |
3135 |
+ac_cpp='$CPP $CPPFLAGS' |
3136 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3137 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3138 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3139 |
+if test -n "$ac_tool_prefix"; then |
3140 |
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3141 |
+set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3142 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3143 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3144 |
+if ${ac_cv_prog_CC+:} false; then : |
3145 |
+ $as_echo_n "(cached) " >&6 |
3146 |
+else |
3147 |
+ if test -n "$CC"; then |
3148 |
+ ac_cv_prog_CC="$CC" # Let the user override the test. |
3149 |
+else |
3150 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3151 |
+for as_dir in $PATH |
3152 |
+do |
3153 |
+ IFS=$as_save_IFS |
3154 |
+ test -z "$as_dir" && as_dir=. |
3155 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3156 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3157 |
+ ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3158 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3159 |
+ break 2 |
3160 |
+ fi |
3161 |
+done |
3162 |
+ done |
3163 |
+IFS=$as_save_IFS |
3164 |
+ |
3165 |
+fi |
3166 |
+fi |
3167 |
+CC=$ac_cv_prog_CC |
3168 |
+if test -n "$CC"; then |
3169 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3170 |
+$as_echo "$CC" >&6; } |
3171 |
+else |
3172 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3173 |
+$as_echo "no" >&6; } |
3174 |
+fi |
3175 |
+ |
3176 |
+ |
3177 |
+fi |
3178 |
+if test -z "$ac_cv_prog_CC"; then |
3179 |
+ ac_ct_CC=$CC |
3180 |
+ # Extract the first word of "gcc", so it can be a program name with args. |
3181 |
set dummy gcc; ac_word=$2 |
3182 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3183 |
-echo "configure:845: checking for $ac_word" >&5 |
3184 |
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
3185 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
3186 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3187 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3188 |
+if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3189 |
+ $as_echo_n "(cached) " >&6 |
3190 |
+else |
3191 |
+ if test -n "$ac_ct_CC"; then |
3192 |
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3193 |
+else |
3194 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3195 |
+for as_dir in $PATH |
3196 |
+do |
3197 |
+ IFS=$as_save_IFS |
3198 |
+ test -z "$as_dir" && as_dir=. |
3199 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3200 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3201 |
+ ac_cv_prog_ac_ct_CC="gcc" |
3202 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3203 |
+ break 2 |
3204 |
+ fi |
3205 |
+done |
3206 |
+ done |
3207 |
+IFS=$as_save_IFS |
3208 |
+ |
3209 |
+fi |
3210 |
+fi |
3211 |
+ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3212 |
+if test -n "$ac_ct_CC"; then |
3213 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3214 |
+$as_echo "$ac_ct_CC" >&6; } |
3215 |
+else |
3216 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3217 |
+$as_echo "no" >&6; } |
3218 |
+fi |
3219 |
+ |
3220 |
+ if test "x$ac_ct_CC" = x; then |
3221 |
+ CC="" |
3222 |
+ else |
3223 |
+ case $cross_compiling:$ac_tool_warned in |
3224 |
+yes:) |
3225 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3226 |
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3227 |
+ac_tool_warned=yes ;; |
3228 |
+esac |
3229 |
+ CC=$ac_ct_CC |
3230 |
+ fi |
3231 |
+else |
3232 |
+ CC="$ac_cv_prog_CC" |
3233 |
+fi |
3234 |
+ |
3235 |
+if test -z "$CC"; then |
3236 |
+ if test -n "$ac_tool_prefix"; then |
3237 |
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3238 |
+set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3239 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3240 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3241 |
+if ${ac_cv_prog_CC+:} false; then : |
3242 |
+ $as_echo_n "(cached) " >&6 |
3243 |
else |
3244 |
if test -n "$CC"; then |
3245 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3246 |
else |
3247 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3248 |
- ac_dummy="$PATH" |
3249 |
- for ac_dir in $ac_dummy; do |
3250 |
- test -z "$ac_dir" && ac_dir=. |
3251 |
- if test -f $ac_dir/$ac_word; then |
3252 |
- ac_cv_prog_CC="gcc" |
3253 |
- break |
3254 |
- fi |
3255 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3256 |
+for as_dir in $PATH |
3257 |
+do |
3258 |
+ IFS=$as_save_IFS |
3259 |
+ test -z "$as_dir" && as_dir=. |
3260 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3261 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3262 |
+ ac_cv_prog_CC="${ac_tool_prefix}cc" |
3263 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3264 |
+ break 2 |
3265 |
+ fi |
3266 |
+done |
3267 |
done |
3268 |
- IFS="$ac_save_ifs" |
3269 |
+IFS=$as_save_IFS |
3270 |
+ |
3271 |
fi |
3272 |
fi |
3273 |
-CC="$ac_cv_prog_CC" |
3274 |
+CC=$ac_cv_prog_CC |
3275 |
if test -n "$CC"; then |
3276 |
- echo "$ac_t""$CC" 1>&6 |
3277 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3278 |
+$as_echo "$CC" >&6; } |
3279 |
else |
3280 |
- echo "$ac_t""no" 1>&6 |
3281 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3282 |
+$as_echo "no" >&6; } |
3283 |
fi |
3284 |
|
3285 |
+ |
3286 |
+ fi |
3287 |
+fi |
3288 |
if test -z "$CC"; then |
3289 |
# Extract the first word of "cc", so it can be a program name with args. |
3290 |
set dummy cc; ac_word=$2 |
3291 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3292 |
-echo "configure:875: checking for $ac_word" >&5 |
3293 |
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
3294 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
3295 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3296 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3297 |
+if ${ac_cv_prog_CC+:} false; then : |
3298 |
+ $as_echo_n "(cached) " >&6 |
3299 |
else |
3300 |
if test -n "$CC"; then |
3301 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3302 |
else |
3303 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3304 |
ac_prog_rejected=no |
3305 |
- ac_dummy="$PATH" |
3306 |
- for ac_dir in $ac_dummy; do |
3307 |
- test -z "$ac_dir" && ac_dir=. |
3308 |
- if test -f $ac_dir/$ac_word; then |
3309 |
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
3310 |
- ac_prog_rejected=yes |
3311 |
- continue |
3312 |
- fi |
3313 |
- ac_cv_prog_CC="cc" |
3314 |
- break |
3315 |
- fi |
3316 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3317 |
+for as_dir in $PATH |
3318 |
+do |
3319 |
+ IFS=$as_save_IFS |
3320 |
+ test -z "$as_dir" && as_dir=. |
3321 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3322 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3323 |
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3324 |
+ ac_prog_rejected=yes |
3325 |
+ continue |
3326 |
+ fi |
3327 |
+ ac_cv_prog_CC="cc" |
3328 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3329 |
+ break 2 |
3330 |
+ fi |
3331 |
+done |
3332 |
done |
3333 |
- IFS="$ac_save_ifs" |
3334 |
+IFS=$as_save_IFS |
3335 |
+ |
3336 |
if test $ac_prog_rejected = yes; then |
3337 |
# We found a bogon in the path, so make sure we never use it. |
3338 |
set dummy $ac_cv_prog_CC |
3339 |
shift |
3340 |
- if test $# -gt 0; then |
3341 |
+ if test $# != 0; then |
3342 |
# We chose a different compiler from the bogus one. |
3343 |
# However, it has the same basename, so the bogon will be chosen |
3344 |
# first if we set CC to just the basename; use the full file name. |
3345 |
shift |
3346 |
- set dummy "$ac_dir/$ac_word" "$@" |
3347 |
- shift |
3348 |
- ac_cv_prog_CC="$@" |
3349 |
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3350 |
fi |
3351 |
fi |
3352 |
fi |
3353 |
fi |
3354 |
-CC="$ac_cv_prog_CC" |
3355 |
+CC=$ac_cv_prog_CC |
3356 |
if test -n "$CC"; then |
3357 |
- echo "$ac_t""$CC" 1>&6 |
3358 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3359 |
+$as_echo "$CC" >&6; } |
3360 |
else |
3361 |
- echo "$ac_t""no" 1>&6 |
3362 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3363 |
+$as_echo "no" >&6; } |
3364 |
fi |
3365 |
|
3366 |
- if test -z "$CC"; then |
3367 |
- case "`uname -s`" in |
3368 |
- *win32* | *WIN32*) |
3369 |
- # Extract the first word of "cl", so it can be a program name with args. |
3370 |
-set dummy cl; ac_word=$2 |
3371 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3372 |
-echo "configure:926: checking for $ac_word" >&5 |
3373 |
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
3374 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
3375 |
+ |
3376 |
+fi |
3377 |
+if test -z "$CC"; then |
3378 |
+ if test -n "$ac_tool_prefix"; then |
3379 |
+ for ac_prog in cl.exe |
3380 |
+ do |
3381 |
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3382 |
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3383 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3384 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3385 |
+if ${ac_cv_prog_CC+:} false; then : |
3386 |
+ $as_echo_n "(cached) " >&6 |
3387 |
else |
3388 |
if test -n "$CC"; then |
3389 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3390 |
else |
3391 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3392 |
- ac_dummy="$PATH" |
3393 |
- for ac_dir in $ac_dummy; do |
3394 |
- test -z "$ac_dir" && ac_dir=. |
3395 |
- if test -f $ac_dir/$ac_word; then |
3396 |
- ac_cv_prog_CC="cl" |
3397 |
- break |
3398 |
- fi |
3399 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3400 |
+for as_dir in $PATH |
3401 |
+do |
3402 |
+ IFS=$as_save_IFS |
3403 |
+ test -z "$as_dir" && as_dir=. |
3404 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3405 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3406 |
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3407 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3408 |
+ break 2 |
3409 |
+ fi |
3410 |
+done |
3411 |
done |
3412 |
- IFS="$ac_save_ifs" |
3413 |
+IFS=$as_save_IFS |
3414 |
+ |
3415 |
fi |
3416 |
fi |
3417 |
-CC="$ac_cv_prog_CC" |
3418 |
+CC=$ac_cv_prog_CC |
3419 |
if test -n "$CC"; then |
3420 |
- echo "$ac_t""$CC" 1>&6 |
3421 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3422 |
+$as_echo "$CC" >&6; } |
3423 |
else |
3424 |
- echo "$ac_t""no" 1>&6 |
3425 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3426 |
+$as_echo "no" >&6; } |
3427 |
fi |
3428 |
- ;; |
3429 |
- esac |
3430 |
+ |
3431 |
+ |
3432 |
+ test -n "$CC" && break |
3433 |
+ done |
3434 |
+fi |
3435 |
+if test -z "$CC"; then |
3436 |
+ ac_ct_CC=$CC |
3437 |
+ for ac_prog in cl.exe |
3438 |
+do |
3439 |
+ # Extract the first word of "$ac_prog", so it can be a program name with args. |
3440 |
+set dummy $ac_prog; ac_word=$2 |
3441 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3442 |
+$as_echo_n "checking for $ac_word... " >&6; } |
3443 |
+if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3444 |
+ $as_echo_n "(cached) " >&6 |
3445 |
+else |
3446 |
+ if test -n "$ac_ct_CC"; then |
3447 |
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3448 |
+else |
3449 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3450 |
+for as_dir in $PATH |
3451 |
+do |
3452 |
+ IFS=$as_save_IFS |
3453 |
+ test -z "$as_dir" && as_dir=. |
3454 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
3455 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3456 |
+ ac_cv_prog_ac_ct_CC="$ac_prog" |
3457 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3458 |
+ break 2 |
3459 |
fi |
3460 |
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
3461 |
+done |
3462 |
+ done |
3463 |
+IFS=$as_save_IFS |
3464 |
+ |
3465 |
+fi |
3466 |
+fi |
3467 |
+ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3468 |
+if test -n "$ac_ct_CC"; then |
3469 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3470 |
+$as_echo "$ac_ct_CC" >&6; } |
3471 |
+else |
3472 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3473 |
+$as_echo "no" >&6; } |
3474 |
fi |
3475 |
|
3476 |
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3477 |
-echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
3478 |
|
3479 |
-ac_ext=c |
3480 |
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3481 |
-ac_cpp='$CPP $CPPFLAGS' |
3482 |
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
3483 |
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
3484 |
-cross_compiling=$ac_cv_prog_cc_cross |
3485 |
+ test -n "$ac_ct_CC" && break |
3486 |
+done |
3487 |
|
3488 |
-cat > conftest.$ac_ext << EOF |
3489 |
+ if test "x$ac_ct_CC" = x; then |
3490 |
+ CC="" |
3491 |
+ else |
3492 |
+ case $cross_compiling:$ac_tool_warned in |
3493 |
+yes:) |
3494 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3495 |
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3496 |
+ac_tool_warned=yes ;; |
3497 |
+esac |
3498 |
+ CC=$ac_ct_CC |
3499 |
+ fi |
3500 |
+fi |
3501 |
|
3502 |
-#line 969 "configure" |
3503 |
-#include "confdefs.h" |
3504 |
+fi |
3505 |
|
3506 |
-main(){return(0);} |
3507 |
-EOF |
3508 |
-if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3509 |
- ac_cv_prog_cc_works=yes |
3510 |
- # If we can't run a trivial program, we are probably using a cross compiler. |
3511 |
- if (./conftest; exit) 2>/dev/null; then |
3512 |
- ac_cv_prog_cc_cross=no |
3513 |
- else |
3514 |
- ac_cv_prog_cc_cross=yes |
3515 |
+ |
3516 |
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3517 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3518 |
+as_fn_error $? "no acceptable C compiler found in \$PATH |
3519 |
+See \`config.log' for more details" "$LINENO" 5; } |
3520 |
+ |
3521 |
+# Provide some information about the compiler. |
3522 |
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3523 |
+set X $ac_compile |
3524 |
+ac_compiler=$2 |
3525 |
+for ac_option in --version -v -V -qversion; do |
3526 |
+ { { ac_try="$ac_compiler $ac_option >&5" |
3527 |
+case "(($ac_try" in |
3528 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3529 |
+ *) ac_try_echo=$ac_try;; |
3530 |
+esac |
3531 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3532 |
+$as_echo "$ac_try_echo"; } >&5 |
3533 |
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3534 |
+ ac_status=$? |
3535 |
+ if test -s conftest.err; then |
3536 |
+ sed '10a\ |
3537 |
+... rest of stderr output deleted ... |
3538 |
+ 10q' conftest.err >conftest.er1 |
3539 |
+ cat conftest.er1 >&5 |
3540 |
fi |
3541 |
+ rm -f conftest.er1 conftest.err |
3542 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3543 |
+ test $ac_status = 0; } |
3544 |
+done |
3545 |
+ |
3546 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3547 |
+/* end confdefs.h. */ |
3548 |
+ |
3549 |
+int |
3550 |
+main () |
3551 |
+{ |
3552 |
+ |
3553 |
+ ; |
3554 |
+ return 0; |
3555 |
+} |
3556 |
+_ACEOF |
3557 |
+ac_clean_files_save=$ac_clean_files |
3558 |
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3559 |
+# Try to create an executable without -o first, disregard a.out. |
3560 |
+# It will help us diagnose broken compilers, and finding out an intuition |
3561 |
+# of exeext. |
3562 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3563 |
+$as_echo_n "checking whether the C compiler works... " >&6; } |
3564 |
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3565 |
+ |
3566 |
+# The possible output files: |
3567 |
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3568 |
+ |
3569 |
+ac_rmfiles= |
3570 |
+for ac_file in $ac_files |
3571 |
+do |
3572 |
+ case $ac_file in |
3573 |
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3574 |
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3575 |
+ esac |
3576 |
+done |
3577 |
+rm -f $ac_rmfiles |
3578 |
+ |
3579 |
+if { { ac_try="$ac_link_default" |
3580 |
+case "(($ac_try" in |
3581 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3582 |
+ *) ac_try_echo=$ac_try;; |
3583 |
+esac |
3584 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3585 |
+$as_echo "$ac_try_echo"; } >&5 |
3586 |
+ (eval "$ac_link_default") 2>&5 |
3587 |
+ ac_status=$? |
3588 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3589 |
+ test $ac_status = 0; }; then : |
3590 |
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3591 |
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3592 |
+# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3593 |
+# so that the user can short-circuit this test for compilers unknown to |
3594 |
+# Autoconf. |
3595 |
+for ac_file in $ac_files '' |
3596 |
+do |
3597 |
+ test -f "$ac_file" || continue |
3598 |
+ case $ac_file in |
3599 |
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3600 |
+ ;; |
3601 |
+ [ab].out ) |
3602 |
+ # We found the default executable, but exeext='' is most |
3603 |
+ # certainly right. |
3604 |
+ break;; |
3605 |
+ *.* ) |
3606 |
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3607 |
+ then :; else |
3608 |
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3609 |
+ fi |
3610 |
+ # We set ac_cv_exeext here because the later test for it is not |
3611 |
+ # safe: cross compilers may not add the suffix if given an `-o' |
3612 |
+ # argument, so we may need to know it at that point already. |
3613 |
+ # Even if this section looks crufty: it has the advantage of |
3614 |
+ # actually working. |
3615 |
+ break;; |
3616 |
+ * ) |
3617 |
+ break;; |
3618 |
+ esac |
3619 |
+done |
3620 |
+test "$ac_cv_exeext" = no && ac_cv_exeext= |
3621 |
+ |
3622 |
else |
3623 |
- echo "configure: failed program was:" >&5 |
3624 |
- cat conftest.$ac_ext >&5 |
3625 |
- ac_cv_prog_cc_works=no |
3626 |
+ ac_file='' |
3627 |
fi |
3628 |
-rm -fr conftest* |
3629 |
-ac_ext=c |
3630 |
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3631 |
-ac_cpp='$CPP $CPPFLAGS' |
3632 |
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
3633 |
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
3634 |
-cross_compiling=$ac_cv_prog_cc_cross |
3635 |
+if test -z "$ac_file"; then : |
3636 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3637 |
+$as_echo "no" >&6; } |
3638 |
+$as_echo "$as_me: failed program was:" >&5 |
3639 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
3640 |
|
3641 |
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
3642 |
-if test $ac_cv_prog_cc_works = no; then |
3643 |
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
3644 |
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3645 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3646 |
+as_fn_error 77 "C compiler cannot create executables |
3647 |
+See \`config.log' for more details" "$LINENO" 5; } |
3648 |
+else |
3649 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3650 |
+$as_echo "yes" >&6; } |
3651 |
fi |
3652 |
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
3653 |
-echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
3654 |
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
3655 |
-cross_compiling=$ac_cv_prog_cc_cross |
3656 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3657 |
+$as_echo_n "checking for C compiler default output file name... " >&6; } |
3658 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3659 |
+$as_echo "$ac_file" >&6; } |
3660 |
+ac_exeext=$ac_cv_exeext |
3661 |
|
3662 |
-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
3663 |
-echo "configure:1005: checking whether we are using GNU C" >&5 |
3664 |
-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
3665 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
3666 |
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3667 |
+ac_clean_files=$ac_clean_files_save |
3668 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3669 |
+$as_echo_n "checking for suffix of executables... " >&6; } |
3670 |
+if { { ac_try="$ac_link" |
3671 |
+case "(($ac_try" in |
3672 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3673 |
+ *) ac_try_echo=$ac_try;; |
3674 |
+esac |
3675 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3676 |
+$as_echo "$ac_try_echo"; } >&5 |
3677 |
+ (eval "$ac_link") 2>&5 |
3678 |
+ ac_status=$? |
3679 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3680 |
+ test $ac_status = 0; }; then : |
3681 |
+ # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3682 |
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3683 |
+# work properly (i.e., refer to `conftest.exe'), while it won't with |
3684 |
+# `rm'. |
3685 |
+for ac_file in conftest.exe conftest conftest.*; do |
3686 |
+ test -f "$ac_file" || continue |
3687 |
+ case $ac_file in |
3688 |
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3689 |
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3690 |
+ break;; |
3691 |
+ * ) break;; |
3692 |
+ esac |
3693 |
+done |
3694 |
else |
3695 |
- cat > conftest.c <<EOF |
3696 |
-#ifdef __GNUC__ |
3697 |
- yes; |
3698 |
-#endif |
3699 |
-EOF |
3700 |
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
3701 |
- ac_cv_prog_gcc=yes |
3702 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3703 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3704 |
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3705 |
+See \`config.log' for more details" "$LINENO" 5; } |
3706 |
+fi |
3707 |
+rm -f conftest conftest$ac_cv_exeext |
3708 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3709 |
+$as_echo "$ac_cv_exeext" >&6; } |
3710 |
+ |
3711 |
+rm -f conftest.$ac_ext |
3712 |
+EXEEXT=$ac_cv_exeext |
3713 |
+ac_exeext=$EXEEXT |
3714 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3715 |
+/* end confdefs.h. */ |
3716 |
+#include <stdio.h> |
3717 |
+int |
3718 |
+main () |
3719 |
+{ |
3720 |
+FILE *f = fopen ("conftest.out", "w"); |
3721 |
+ return ferror (f) || fclose (f) != 0; |
3722 |
+ |
3723 |
+ ; |
3724 |
+ return 0; |
3725 |
+} |
3726 |
+_ACEOF |
3727 |
+ac_clean_files="$ac_clean_files conftest.out" |
3728 |
+# Check that the compiler produces executables we can run. If not, either |
3729 |
+# the compiler is broken, or we cross compile. |
3730 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3731 |
+$as_echo_n "checking whether we are cross compiling... " >&6; } |
3732 |
+if test "$cross_compiling" != yes; then |
3733 |
+ { { ac_try="$ac_link" |
3734 |
+case "(($ac_try" in |
3735 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3736 |
+ *) ac_try_echo=$ac_try;; |
3737 |
+esac |
3738 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3739 |
+$as_echo "$ac_try_echo"; } >&5 |
3740 |
+ (eval "$ac_link") 2>&5 |
3741 |
+ ac_status=$? |
3742 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3743 |
+ test $ac_status = 0; } |
3744 |
+ if { ac_try='./conftest$ac_cv_exeext' |
3745 |
+ { { case "(($ac_try" in |
3746 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3747 |
+ *) ac_try_echo=$ac_try;; |
3748 |
+esac |
3749 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3750 |
+$as_echo "$ac_try_echo"; } >&5 |
3751 |
+ (eval "$ac_try") 2>&5 |
3752 |
+ ac_status=$? |
3753 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3754 |
+ test $ac_status = 0; }; }; then |
3755 |
+ cross_compiling=no |
3756 |
+ else |
3757 |
+ if test "$cross_compiling" = maybe; then |
3758 |
+ cross_compiling=yes |
3759 |
+ else |
3760 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3761 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3762 |
+as_fn_error $? "cannot run C compiled programs. |
3763 |
+If you meant to cross compile, use \`--host'. |
3764 |
+See \`config.log' for more details" "$LINENO" 5; } |
3765 |
+ fi |
3766 |
+ fi |
3767 |
+fi |
3768 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3769 |
+$as_echo "$cross_compiling" >&6; } |
3770 |
+ |
3771 |
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3772 |
+ac_clean_files=$ac_clean_files_save |
3773 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3774 |
+$as_echo_n "checking for suffix of object files... " >&6; } |
3775 |
+if ${ac_cv_objext+:} false; then : |
3776 |
+ $as_echo_n "(cached) " >&6 |
3777 |
else |
3778 |
- ac_cv_prog_gcc=no |
3779 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3780 |
+/* end confdefs.h. */ |
3781 |
+ |
3782 |
+int |
3783 |
+main () |
3784 |
+{ |
3785 |
+ |
3786 |
+ ; |
3787 |
+ return 0; |
3788 |
+} |
3789 |
+_ACEOF |
3790 |
+rm -f conftest.o conftest.obj |
3791 |
+if { { ac_try="$ac_compile" |
3792 |
+case "(($ac_try" in |
3793 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3794 |
+ *) ac_try_echo=$ac_try;; |
3795 |
+esac |
3796 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3797 |
+$as_echo "$ac_try_echo"; } >&5 |
3798 |
+ (eval "$ac_compile") 2>&5 |
3799 |
+ ac_status=$? |
3800 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3801 |
+ test $ac_status = 0; }; then : |
3802 |
+ for ac_file in conftest.o conftest.obj conftest.*; do |
3803 |
+ test -f "$ac_file" || continue; |
3804 |
+ case $ac_file in |
3805 |
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3806 |
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3807 |
+ break;; |
3808 |
+ esac |
3809 |
+done |
3810 |
+else |
3811 |
+ $as_echo "$as_me: failed program was:" >&5 |
3812 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
3813 |
+ |
3814 |
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3815 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3816 |
+as_fn_error $? "cannot compute suffix of object files: cannot compile |
3817 |
+See \`config.log' for more details" "$LINENO" 5; } |
3818 |
fi |
3819 |
+rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3820 |
fi |
3821 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3822 |
+$as_echo "$ac_cv_objext" >&6; } |
3823 |
+OBJEXT=$ac_cv_objext |
3824 |
+ac_objext=$OBJEXT |
3825 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3826 |
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3827 |
+if ${ac_cv_c_compiler_gnu+:} false; then : |
3828 |
+ $as_echo_n "(cached) " >&6 |
3829 |
+else |
3830 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3831 |
+/* end confdefs.h. */ |
3832 |
|
3833 |
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
3834 |
+int |
3835 |
+main () |
3836 |
+{ |
3837 |
+#ifndef __GNUC__ |
3838 |
+ choke me |
3839 |
+#endif |
3840 |
|
3841 |
-if test $ac_cv_prog_gcc = yes; then |
3842 |
+ ; |
3843 |
+ return 0; |
3844 |
+} |
3845 |
+_ACEOF |
3846 |
+if ac_fn_c_try_compile "$LINENO"; then : |
3847 |
+ ac_compiler_gnu=yes |
3848 |
+else |
3849 |
+ ac_compiler_gnu=no |
3850 |
+fi |
3851 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3852 |
+ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3853 |
+ |
3854 |
+fi |
3855 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3856 |
+$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3857 |
+if test $ac_compiler_gnu = yes; then |
3858 |
GCC=yes |
3859 |
else |
3860 |
GCC= |
3861 |
fi |
3862 |
- |
3863 |
-ac_test_CFLAGS="${CFLAGS+set}" |
3864 |
-ac_save_CFLAGS="$CFLAGS" |
3865 |
-CFLAGS= |
3866 |
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
3867 |
-echo "configure:1033: checking whether ${CC-cc} accepts -g" >&5 |
3868 |
-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
3869 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
3870 |
+ac_test_CFLAGS=${CFLAGS+set} |
3871 |
+ac_save_CFLAGS=$CFLAGS |
3872 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3873 |
+$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3874 |
+if ${ac_cv_prog_cc_g+:} false; then : |
3875 |
+ $as_echo_n "(cached) " >&6 |
3876 |
else |
3877 |
- echo 'void f(){}' > conftest.c |
3878 |
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
3879 |
+ ac_save_c_werror_flag=$ac_c_werror_flag |
3880 |
+ ac_c_werror_flag=yes |
3881 |
+ ac_cv_prog_cc_g=no |
3882 |
+ CFLAGS="-g" |
3883 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3884 |
+/* end confdefs.h. */ |
3885 |
+ |
3886 |
+int |
3887 |
+main () |
3888 |
+{ |
3889 |
+ |
3890 |
+ ; |
3891 |
+ return 0; |
3892 |
+} |
3893 |
+_ACEOF |
3894 |
+if ac_fn_c_try_compile "$LINENO"; then : |
3895 |
ac_cv_prog_cc_g=yes |
3896 |
else |
3897 |
- ac_cv_prog_cc_g=no |
3898 |
-fi |
3899 |
-rm -f conftest* |
3900 |
+ CFLAGS="" |
3901 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3902 |
+/* end confdefs.h. */ |
3903 |
|
3904 |
-fi |
3905 |
+int |
3906 |
+main () |
3907 |
+{ |
3908 |
|
3909 |
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
3910 |
+ ; |
3911 |
+ return 0; |
3912 |
+} |
3913 |
+_ACEOF |
3914 |
+if ac_fn_c_try_compile "$LINENO"; then : |
3915 |
+ |
3916 |
+else |
3917 |
+ ac_c_werror_flag=$ac_save_c_werror_flag |
3918 |
+ CFLAGS="-g" |
3919 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3920 |
+/* end confdefs.h. */ |
3921 |
+ |
3922 |
+int |
3923 |
+main () |
3924 |
+{ |
3925 |
+ |
3926 |
+ ; |
3927 |
+ return 0; |
3928 |
+} |
3929 |
+_ACEOF |
3930 |
+if ac_fn_c_try_compile "$LINENO"; then : |
3931 |
+ ac_cv_prog_cc_g=yes |
3932 |
+fi |
3933 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3934 |
+fi |
3935 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3936 |
+fi |
3937 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3938 |
+ ac_c_werror_flag=$ac_save_c_werror_flag |
3939 |
+fi |
3940 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3941 |
+$as_echo "$ac_cv_prog_cc_g" >&6; } |
3942 |
if test "$ac_test_CFLAGS" = set; then |
3943 |
- CFLAGS="$ac_save_CFLAGS" |
3944 |
+ CFLAGS=$ac_save_CFLAGS |
3945 |
elif test $ac_cv_prog_cc_g = yes; then |
3946 |
if test "$GCC" = yes; then |
3947 |
CFLAGS="-g -O2" |
3948 |
@@ -1061,6 +3461,101 @@ else |
3949 |
CFLAGS= |
3950 |
fi |
3951 |
fi |
3952 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3953 |
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3954 |
+if ${ac_cv_prog_cc_c89+:} false; then : |
3955 |
+ $as_echo_n "(cached) " >&6 |
3956 |
+else |
3957 |
+ ac_cv_prog_cc_c89=no |
3958 |
+ac_save_CC=$CC |
3959 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3960 |
+/* end confdefs.h. */ |
3961 |
+#include <stdarg.h> |
3962 |
+#include <stdio.h> |
3963 |
+struct stat; |
3964 |
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3965 |
+struct buf { int x; }; |
3966 |
+FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3967 |
+static char *e (p, i) |
3968 |
+ char **p; |
3969 |
+ int i; |
3970 |
+{ |
3971 |
+ return p[i]; |
3972 |
+} |
3973 |
+static char *f (char * (*g) (char **, int), char **p, ...) |
3974 |
+{ |
3975 |
+ char *s; |
3976 |
+ va_list v; |
3977 |
+ va_start (v,p); |
3978 |
+ s = g (p, va_arg (v,int)); |
3979 |
+ va_end (v); |
3980 |
+ return s; |
3981 |
+} |
3982 |
+ |
3983 |
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3984 |
+ function prototypes and stuff, but not '\xHH' hex character constants. |
3985 |
+ These don't provoke an error unfortunately, instead are silently treated |
3986 |
+ as 'x'. The following induces an error, until -std is added to get |
3987 |
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3988 |
+ array size at least. It's necessary to write '\x00'==0 to get something |
3989 |
+ that's true only with -std. */ |
3990 |
+int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3991 |
+ |
3992 |
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3993 |
+ inside strings and character constants. */ |
3994 |
+#define FOO(x) 'x' |
3995 |
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3996 |
+ |
3997 |
+int test (int i, double x); |
3998 |
+struct s1 {int (*f) (int a);}; |
3999 |
+struct s2 {int (*f) (double a);}; |
4000 |
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4001 |
+int argc; |
4002 |
+char **argv; |
4003 |
+int |
4004 |
+main () |
4005 |
+{ |
4006 |
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4007 |
+ ; |
4008 |
+ return 0; |
4009 |
+} |
4010 |
+_ACEOF |
4011 |
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4012 |
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4013 |
+do |
4014 |
+ CC="$ac_save_CC $ac_arg" |
4015 |
+ if ac_fn_c_try_compile "$LINENO"; then : |
4016 |
+ ac_cv_prog_cc_c89=$ac_arg |
4017 |
+fi |
4018 |
+rm -f core conftest.err conftest.$ac_objext |
4019 |
+ test "x$ac_cv_prog_cc_c89" != "xno" && break |
4020 |
+done |
4021 |
+rm -f conftest.$ac_ext |
4022 |
+CC=$ac_save_CC |
4023 |
+ |
4024 |
+fi |
4025 |
+# AC_CACHE_VAL |
4026 |
+case "x$ac_cv_prog_cc_c89" in |
4027 |
+ x) |
4028 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4029 |
+$as_echo "none needed" >&6; } ;; |
4030 |
+ xno) |
4031 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4032 |
+$as_echo "unsupported" >&6; } ;; |
4033 |
+ *) |
4034 |
+ CC="$CC $ac_cv_prog_cc_c89" |
4035 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4036 |
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4037 |
+esac |
4038 |
+if test "x$ac_cv_prog_cc_c89" != xno; then : |
4039 |
+ |
4040 |
+fi |
4041 |
+ |
4042 |
+ac_ext=c |
4043 |
+ac_cpp='$CPP $CPPFLAGS' |
4044 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4045 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4046 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4047 |
|
4048 |
|
4049 |
|
4050 |
@@ -1074,126 +3569,313 @@ if test -n "`uname|grep -i bsd`"; then |
4051 |
LDFLAGS="$LDFLAGS -L/usr/local/lib" |
4052 |
fi |
4053 |
|
4054 |
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
4055 |
-echo "configure:1077: checking how to run the C preprocessor" >&5 |
4056 |
+ |
4057 |
+ac_ext=c |
4058 |
+ac_cpp='$CPP $CPPFLAGS' |
4059 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4060 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4061 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4062 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4063 |
+$as_echo_n "checking how to run the C preprocessor... " >&6; } |
4064 |
# On Suns, sometimes $CPP names a directory. |
4065 |
if test -n "$CPP" && test -d "$CPP"; then |
4066 |
CPP= |
4067 |
fi |
4068 |
if test -z "$CPP"; then |
4069 |
-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
4070 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4071 |
+ if ${ac_cv_prog_CPP+:} false; then : |
4072 |
+ $as_echo_n "(cached) " >&6 |
4073 |
else |
4074 |
- # This must be in double quotes, not single quotes, because CPP may get |
4075 |
- # substituted into the Makefile and "${CC-cc}" will confuse make. |
4076 |
- CPP="${CC-cc} -E" |
4077 |
+ # Double quotes because CPP needs to be expanded |
4078 |
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4079 |
+ do |
4080 |
+ ac_preproc_ok=false |
4081 |
+for ac_c_preproc_warn_flag in '' yes |
4082 |
+do |
4083 |
+ # Use a header file that comes with gcc, so configuring glibc |
4084 |
+ # with a fresh cross-compiler works. |
4085 |
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4086 |
+ # <limits.h> exists even on freestanding compilers. |
4087 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4088 |
- # not just through cpp. |
4089 |
- cat > conftest.$ac_ext <<EOF |
4090 |
-#line 1092 "configure" |
4091 |
-#include "confdefs.h" |
4092 |
-#include <assert.h> |
4093 |
-Syntax Error |
4094 |
-EOF |
4095 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4096 |
-{ (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4097 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4098 |
-if test -z "$ac_err"; then |
4099 |
- : |
4100 |
+ # not just through cpp. "Syntax error" is here to catch this case. |
4101 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4102 |
+/* end confdefs.h. */ |
4103 |
+#ifdef __STDC__ |
4104 |
+# include <limits.h> |
4105 |
+#else |
4106 |
+# include <assert.h> |
4107 |
+#endif |
4108 |
+ Syntax error |
4109 |
+_ACEOF |
4110 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
4111 |
+ |
4112 |
else |
4113 |
- echo "$ac_err" >&5 |
4114 |
- echo "configure: failed program was:" >&5 |
4115 |
- cat conftest.$ac_ext >&5 |
4116 |
- rm -rf conftest* |
4117 |
- CPP="${CC-cc} -E -traditional-cpp" |
4118 |
- cat > conftest.$ac_ext <<EOF |
4119 |
-#line 1109 "configure" |
4120 |
-#include "confdefs.h" |
4121 |
-#include <assert.h> |
4122 |
-Syntax Error |
4123 |
-EOF |
4124 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4125 |
-{ (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4126 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4127 |
-if test -z "$ac_err"; then |
4128 |
- : |
4129 |
+ # Broken: fails on valid input. |
4130 |
+continue |
4131 |
+fi |
4132 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
4133 |
+ |
4134 |
+ # OK, works on sane cases. Now check whether nonexistent headers |
4135 |
+ # can be detected and how. |
4136 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4137 |
+/* end confdefs.h. */ |
4138 |
+#include <ac_nonexistent.h> |
4139 |
+_ACEOF |
4140 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
4141 |
+ # Broken: success on invalid input. |
4142 |
+continue |
4143 |
else |
4144 |
- echo "$ac_err" >&5 |
4145 |
- echo "configure: failed program was:" >&5 |
4146 |
- cat conftest.$ac_ext >&5 |
4147 |
- rm -rf conftest* |
4148 |
- CPP="${CC-cc} -nologo -E" |
4149 |
- cat > conftest.$ac_ext <<EOF |
4150 |
-#line 1126 "configure" |
4151 |
-#include "confdefs.h" |
4152 |
-#include <assert.h> |
4153 |
-Syntax Error |
4154 |
-EOF |
4155 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4156 |
-{ (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4157 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4158 |
-if test -z "$ac_err"; then |
4159 |
- : |
4160 |
+ # Passes both tests. |
4161 |
+ac_preproc_ok=: |
4162 |
+break |
4163 |
+fi |
4164 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
4165 |
+ |
4166 |
+done |
4167 |
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4168 |
+rm -f conftest.i conftest.err conftest.$ac_ext |
4169 |
+if $ac_preproc_ok; then : |
4170 |
+ break |
4171 |
+fi |
4172 |
+ |
4173 |
+ done |
4174 |
+ ac_cv_prog_CPP=$CPP |
4175 |
+ |
4176 |
+fi |
4177 |
+ CPP=$ac_cv_prog_CPP |
4178 |
else |
4179 |
- echo "$ac_err" >&5 |
4180 |
- echo "configure: failed program was:" >&5 |
4181 |
- cat conftest.$ac_ext >&5 |
4182 |
- rm -rf conftest* |
4183 |
- CPP=/lib/cpp |
4184 |
+ ac_cv_prog_CPP=$CPP |
4185 |
fi |
4186 |
-rm -f conftest* |
4187 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4188 |
+$as_echo "$CPP" >&6; } |
4189 |
+ac_preproc_ok=false |
4190 |
+for ac_c_preproc_warn_flag in '' yes |
4191 |
+do |
4192 |
+ # Use a header file that comes with gcc, so configuring glibc |
4193 |
+ # with a fresh cross-compiler works. |
4194 |
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4195 |
+ # <limits.h> exists even on freestanding compilers. |
4196 |
+ # On the NeXT, cc -E runs the code through the compiler's parser, |
4197 |
+ # not just through cpp. "Syntax error" is here to catch this case. |
4198 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4199 |
+/* end confdefs.h. */ |
4200 |
+#ifdef __STDC__ |
4201 |
+# include <limits.h> |
4202 |
+#else |
4203 |
+# include <assert.h> |
4204 |
+#endif |
4205 |
+ Syntax error |
4206 |
+_ACEOF |
4207 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
4208 |
+ |
4209 |
+else |
4210 |
+ # Broken: fails on valid input. |
4211 |
+continue |
4212 |
fi |
4213 |
-rm -f conftest* |
4214 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
4215 |
+ |
4216 |
+ # OK, works on sane cases. Now check whether nonexistent headers |
4217 |
+ # can be detected and how. |
4218 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4219 |
+/* end confdefs.h. */ |
4220 |
+#include <ac_nonexistent.h> |
4221 |
+_ACEOF |
4222 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
4223 |
+ # Broken: success on invalid input. |
4224 |
+continue |
4225 |
+else |
4226 |
+ # Passes both tests. |
4227 |
+ac_preproc_ok=: |
4228 |
+break |
4229 |
fi |
4230 |
-rm -f conftest* |
4231 |
- ac_cv_prog_CPP="$CPP" |
4232 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
4233 |
+ |
4234 |
+done |
4235 |
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4236 |
+rm -f conftest.i conftest.err conftest.$ac_ext |
4237 |
+if $ac_preproc_ok; then : |
4238 |
+ |
4239 |
+else |
4240 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4241 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4242 |
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4243 |
+See \`config.log' for more details" "$LINENO" 5; } |
4244 |
fi |
4245 |
- CPP="$ac_cv_prog_CPP" |
4246 |
+ |
4247 |
+ac_ext=c |
4248 |
+ac_cpp='$CPP $CPPFLAGS' |
4249 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4250 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4251 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4252 |
+ |
4253 |
+ |
4254 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4255 |
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4256 |
+if ${ac_cv_path_GREP+:} false; then : |
4257 |
+ $as_echo_n "(cached) " >&6 |
4258 |
else |
4259 |
- ac_cv_prog_CPP="$CPP" |
4260 |
+ if test -z "$GREP"; then |
4261 |
+ ac_path_GREP_found=false |
4262 |
+ # Loop through the user's path and test for each of PROGNAME-LIST |
4263 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4264 |
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4265 |
+do |
4266 |
+ IFS=$as_save_IFS |
4267 |
+ test -z "$as_dir" && as_dir=. |
4268 |
+ for ac_prog in grep ggrep; do |
4269 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
4270 |
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4271 |
+ as_fn_executable_p "$ac_path_GREP" || continue |
4272 |
+# Check for GNU ac_path_GREP and select it if it is found. |
4273 |
+ # Check for GNU $ac_path_GREP |
4274 |
+case `"$ac_path_GREP" --version 2>&1` in |
4275 |
+*GNU*) |
4276 |
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4277 |
+*) |
4278 |
+ ac_count=0 |
4279 |
+ $as_echo_n 0123456789 >"conftest.in" |
4280 |
+ while : |
4281 |
+ do |
4282 |
+ cat "conftest.in" "conftest.in" >"conftest.tmp" |
4283 |
+ mv "conftest.tmp" "conftest.in" |
4284 |
+ cp "conftest.in" "conftest.nl" |
4285 |
+ $as_echo 'GREP' >> "conftest.nl" |
4286 |
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4287 |
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4288 |
+ as_fn_arith $ac_count + 1 && ac_count=$as_val |
4289 |
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4290 |
+ # Best one so far, save it but keep looking for a better one |
4291 |
+ ac_cv_path_GREP="$ac_path_GREP" |
4292 |
+ ac_path_GREP_max=$ac_count |
4293 |
+ fi |
4294 |
+ # 10*(2^10) chars as input seems more than enough |
4295 |
+ test $ac_count -gt 10 && break |
4296 |
+ done |
4297 |
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4298 |
+esac |
4299 |
+ |
4300 |
+ $ac_path_GREP_found && break 3 |
4301 |
+ done |
4302 |
+ done |
4303 |
+ done |
4304 |
+IFS=$as_save_IFS |
4305 |
+ if test -z "$ac_cv_path_GREP"; then |
4306 |
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4307 |
+ fi |
4308 |
+else |
4309 |
+ ac_cv_path_GREP=$GREP |
4310 |
fi |
4311 |
-echo "$ac_t""$CPP" 1>&6 |
4312 |
|
4313 |
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
4314 |
-echo "configure:1157: checking for ANSI C header files" >&5 |
4315 |
-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
4316 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4317 |
+fi |
4318 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4319 |
+$as_echo "$ac_cv_path_GREP" >&6; } |
4320 |
+ GREP="$ac_cv_path_GREP" |
4321 |
+ |
4322 |
+ |
4323 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4324 |
+$as_echo_n "checking for egrep... " >&6; } |
4325 |
+if ${ac_cv_path_EGREP+:} false; then : |
4326 |
+ $as_echo_n "(cached) " >&6 |
4327 |
else |
4328 |
- cat > conftest.$ac_ext <<EOF |
4329 |
-#line 1162 "configure" |
4330 |
-#include "confdefs.h" |
4331 |
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4332 |
+ then ac_cv_path_EGREP="$GREP -E" |
4333 |
+ else |
4334 |
+ if test -z "$EGREP"; then |
4335 |
+ ac_path_EGREP_found=false |
4336 |
+ # Loop through the user's path and test for each of PROGNAME-LIST |
4337 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4338 |
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4339 |
+do |
4340 |
+ IFS=$as_save_IFS |
4341 |
+ test -z "$as_dir" && as_dir=. |
4342 |
+ for ac_prog in egrep; do |
4343 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
4344 |
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4345 |
+ as_fn_executable_p "$ac_path_EGREP" || continue |
4346 |
+# Check for GNU ac_path_EGREP and select it if it is found. |
4347 |
+ # Check for GNU $ac_path_EGREP |
4348 |
+case `"$ac_path_EGREP" --version 2>&1` in |
4349 |
+*GNU*) |
4350 |
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4351 |
+*) |
4352 |
+ ac_count=0 |
4353 |
+ $as_echo_n 0123456789 >"conftest.in" |
4354 |
+ while : |
4355 |
+ do |
4356 |
+ cat "conftest.in" "conftest.in" >"conftest.tmp" |
4357 |
+ mv "conftest.tmp" "conftest.in" |
4358 |
+ cp "conftest.in" "conftest.nl" |
4359 |
+ $as_echo 'EGREP' >> "conftest.nl" |
4360 |
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4361 |
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4362 |
+ as_fn_arith $ac_count + 1 && ac_count=$as_val |
4363 |
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4364 |
+ # Best one so far, save it but keep looking for a better one |
4365 |
+ ac_cv_path_EGREP="$ac_path_EGREP" |
4366 |
+ ac_path_EGREP_max=$ac_count |
4367 |
+ fi |
4368 |
+ # 10*(2^10) chars as input seems more than enough |
4369 |
+ test $ac_count -gt 10 && break |
4370 |
+ done |
4371 |
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4372 |
+esac |
4373 |
+ |
4374 |
+ $ac_path_EGREP_found && break 3 |
4375 |
+ done |
4376 |
+ done |
4377 |
+ done |
4378 |
+IFS=$as_save_IFS |
4379 |
+ if test -z "$ac_cv_path_EGREP"; then |
4380 |
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4381 |
+ fi |
4382 |
+else |
4383 |
+ ac_cv_path_EGREP=$EGREP |
4384 |
+fi |
4385 |
+ |
4386 |
+ fi |
4387 |
+fi |
4388 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4389 |
+$as_echo "$ac_cv_path_EGREP" >&6; } |
4390 |
+ EGREP="$ac_cv_path_EGREP" |
4391 |
+ |
4392 |
+ |
4393 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4394 |
+$as_echo_n "checking for ANSI C header files... " >&6; } |
4395 |
+if ${ac_cv_header_stdc+:} false; then : |
4396 |
+ $as_echo_n "(cached) " >&6 |
4397 |
+else |
4398 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4399 |
+/* end confdefs.h. */ |
4400 |
#include <stdlib.h> |
4401 |
#include <stdarg.h> |
4402 |
#include <string.h> |
4403 |
#include <float.h> |
4404 |
-EOF |
4405 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4406 |
-{ (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4407 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4408 |
-if test -z "$ac_err"; then |
4409 |
- rm -rf conftest* |
4410 |
+ |
4411 |
+int |
4412 |
+main () |
4413 |
+{ |
4414 |
+ |
4415 |
+ ; |
4416 |
+ return 0; |
4417 |
+} |
4418 |
+_ACEOF |
4419 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4420 |
ac_cv_header_stdc=yes |
4421 |
else |
4422 |
- echo "$ac_err" >&5 |
4423 |
- echo "configure: failed program was:" >&5 |
4424 |
- cat conftest.$ac_ext >&5 |
4425 |
- rm -rf conftest* |
4426 |
ac_cv_header_stdc=no |
4427 |
fi |
4428 |
-rm -f conftest* |
4429 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4430 |
|
4431 |
if test $ac_cv_header_stdc = yes; then |
4432 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4433 |
-cat > conftest.$ac_ext <<EOF |
4434 |
-#line 1187 "configure" |
4435 |
-#include "confdefs.h" |
4436 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4437 |
+/* end confdefs.h. */ |
4438 |
#include <string.h> |
4439 |
-EOF |
4440 |
+ |
4441 |
+_ACEOF |
4442 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4443 |
- egrep "memchr" >/dev/null 2>&1; then |
4444 |
- : |
4445 |
+ $EGREP "memchr" >/dev/null 2>&1; then : |
4446 |
+ |
4447 |
else |
4448 |
- rm -rf conftest* |
4449 |
ac_cv_header_stdc=no |
4450 |
fi |
4451 |
rm -f conftest* |
4452 |
@@ -1202,16 +3884,15 @@ fi |
4453 |
|
4454 |
if test $ac_cv_header_stdc = yes; then |
4455 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4456 |
-cat > conftest.$ac_ext <<EOF |
4457 |
-#line 1205 "configure" |
4458 |
-#include "confdefs.h" |
4459 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4460 |
+/* end confdefs.h. */ |
4461 |
#include <stdlib.h> |
4462 |
-EOF |
4463 |
+ |
4464 |
+_ACEOF |
4465 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4466 |
- egrep "free" >/dev/null 2>&1; then |
4467 |
- : |
4468 |
+ $EGREP "free" >/dev/null 2>&1; then : |
4469 |
+ |
4470 |
else |
4471 |
- rm -rf conftest* |
4472 |
ac_cv_header_stdc=no |
4473 |
fi |
4474 |
rm -f conftest* |
4475 |
@@ -1220,86 +3901,92 @@ fi |
4476 |
|
4477 |
if test $ac_cv_header_stdc = yes; then |
4478 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4479 |
-if test "$cross_compiling" = yes; then |
4480 |
+ if test "$cross_compiling" = yes; then : |
4481 |
: |
4482 |
else |
4483 |
- cat > conftest.$ac_ext <<EOF |
4484 |
-#line 1226 "configure" |
4485 |
-#include "confdefs.h" |
4486 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4487 |
+/* end confdefs.h. */ |
4488 |
#include <ctype.h> |
4489 |
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4490 |
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4491 |
+#include <stdlib.h> |
4492 |
+#if ((' ' & 0x0FF) == 0x020) |
4493 |
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4494 |
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4495 |
+#else |
4496 |
+# define ISLOWER(c) \ |
4497 |
+ (('a' <= (c) && (c) <= 'i') \ |
4498 |
+ || ('j' <= (c) && (c) <= 'r') \ |
4499 |
+ || ('s' <= (c) && (c) <= 'z')) |
4500 |
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4501 |
+#endif |
4502 |
+ |
4503 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4504 |
-int main () { int i; for (i = 0; i < 256; i++) |
4505 |
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
4506 |
-exit (0); } |
4507 |
+int |
4508 |
+main () |
4509 |
+{ |
4510 |
+ int i; |
4511 |
+ for (i = 0; i < 256; i++) |
4512 |
+ if (XOR (islower (i), ISLOWER (i)) |
4513 |
+ || toupper (i) != TOUPPER (i)) |
4514 |
+ return 2; |
4515 |
+ return 0; |
4516 |
+} |
4517 |
+_ACEOF |
4518 |
+if ac_fn_c_try_run "$LINENO"; then : |
4519 |
|
4520 |
-EOF |
4521 |
-if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4522 |
-then |
4523 |
- : |
4524 |
else |
4525 |
- echo "configure: failed program was:" >&5 |
4526 |
- cat conftest.$ac_ext >&5 |
4527 |
- rm -fr conftest* |
4528 |
ac_cv_header_stdc=no |
4529 |
fi |
4530 |
-rm -fr conftest* |
4531 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4532 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
4533 |
fi |
4534 |
|
4535 |
fi |
4536 |
fi |
4537 |
- |
4538 |
-echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
4539 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4540 |
+$as_echo "$ac_cv_header_stdc" >&6; } |
4541 |
if test $ac_cv_header_stdc = yes; then |
4542 |
- cat >> confdefs.h <<\EOF |
4543 |
-#define STDC_HEADERS 1 |
4544 |
-EOF |
4545 |
+ |
4546 |
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4547 |
|
4548 |
fi |
4549 |
|
4550 |
-if test $ac_cv_prog_gcc = yes; then |
4551 |
- echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
4552 |
-echo "configure:1262: checking whether ${CC-cc} needs -traditional" >&5 |
4553 |
-if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
4554 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4555 |
+if test $ac_cv_c_compiler_gnu = yes; then |
4556 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
4557 |
+$as_echo_n "checking whether $CC needs -traditional... " >&6; } |
4558 |
+if ${ac_cv_prog_gcc_traditional+:} false; then : |
4559 |
+ $as_echo_n "(cached) " >&6 |
4560 |
else |
4561 |
ac_pattern="Autoconf.*'x'" |
4562 |
- cat > conftest.$ac_ext <<EOF |
4563 |
-#line 1268 "configure" |
4564 |
-#include "confdefs.h" |
4565 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4566 |
+/* end confdefs.h. */ |
4567 |
#include <sgtty.h> |
4568 |
Autoconf TIOCGETP |
4569 |
-EOF |
4570 |
+_ACEOF |
4571 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4572 |
- egrep "$ac_pattern" >/dev/null 2>&1; then |
4573 |
- rm -rf conftest* |
4574 |
+ $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
4575 |
ac_cv_prog_gcc_traditional=yes |
4576 |
else |
4577 |
- rm -rf conftest* |
4578 |
ac_cv_prog_gcc_traditional=no |
4579 |
fi |
4580 |
rm -f conftest* |
4581 |
|
4582 |
|
4583 |
if test $ac_cv_prog_gcc_traditional = no; then |
4584 |
- cat > conftest.$ac_ext <<EOF |
4585 |
-#line 1286 "configure" |
4586 |
-#include "confdefs.h" |
4587 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4588 |
+/* end confdefs.h. */ |
4589 |
#include <termio.h> |
4590 |
Autoconf TCGETA |
4591 |
-EOF |
4592 |
+_ACEOF |
4593 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4594 |
- egrep "$ac_pattern" >/dev/null 2>&1; then |
4595 |
- rm -rf conftest* |
4596 |
+ $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
4597 |
ac_cv_prog_gcc_traditional=yes |
4598 |
fi |
4599 |
rm -f conftest* |
4600 |
|
4601 |
fi |
4602 |
fi |
4603 |
- |
4604 |
-echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
4605 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4606 |
+$as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
4607 |
if test $ac_cv_prog_gcc_traditional = yes; then |
4608 |
CC="$CC -traditional" |
4609 |
fi |
4610 |
@@ -1307,98 +3994,95 @@ fi |
4611 |
|
4612 |
|
4613 |
|
4614 |
-echo $ac_n "checking for EMX""... $ac_c" 1>&6 |
4615 |
-echo "configure:1310: checking for EMX" >&5 |
4616 |
-if eval "test \"`echo '$''{'ac_cv_have_emx'+set}'`\" = set"; then |
4617 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4618 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMX" >&5 |
4619 |
+$as_echo_n "checking for EMX... " >&6; } |
4620 |
+if ${ac_cv_have_emx+:} false; then : |
4621 |
+ $as_echo_n "(cached) " >&6 |
4622 |
else |
4623 |
- cat > conftest.$ac_ext <<EOF |
4624 |
-#line 1315 "configure" |
4625 |
-#include "confdefs.h" |
4626 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4627 |
+/* end confdefs.h. */ |
4628 |
|
4629 |
-int main() { |
4630 |
+int |
4631 |
+main () |
4632 |
+{ |
4633 |
#ifndef __EMX__ |
4634 |
kill me! |
4635 |
- #endif |
4636 |
-; return 0; } |
4637 |
-EOF |
4638 |
-if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4639 |
- rm -rf conftest* |
4640 |
+ #endif |
4641 |
+ ; |
4642 |
+ return 0; |
4643 |
+} |
4644 |
+_ACEOF |
4645 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4646 |
ac_cv_have_emx=yes |
4647 |
else |
4648 |
- echo "configure: failed program was:" >&5 |
4649 |
- cat conftest.$ac_ext >&5 |
4650 |
- rm -rf conftest* |
4651 |
ac_cv_have_emx=no |
4652 |
fi |
4653 |
-rm -f conftest* |
4654 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4655 |
|
4656 |
fi |
4657 |
- |
4658 |
-echo "$ac_t""$ac_cv_have_emx" 1>&6 |
4659 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_emx" >&5 |
4660 |
+$as_echo "$ac_cv_have_emx" >&6; } |
4661 |
test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`" |
4662 |
test "$ac_cv_have_emx" = yes && test "$static_link" = 0 && LDFLAGS="$LDFLAGS -Zcrtdll" |
4663 |
|
4664 |
-echo $ac_n "checking for OpenWatcom""... $ac_c" 1>&6 |
4665 |
-echo "configure:1342: checking for OpenWatcom" >&5 |
4666 |
-if eval "test \"`echo '$''{'ac_cv_have_watcom'+set}'`\" = set"; then |
4667 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4668 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenWatcom" >&5 |
4669 |
+$as_echo_n "checking for OpenWatcom... " >&6; } |
4670 |
+if ${ac_cv_have_watcom+:} false; then : |
4671 |
+ $as_echo_n "(cached) " >&6 |
4672 |
else |
4673 |
- cat > conftest.$ac_ext <<EOF |
4674 |
-#line 1347 "configure" |
4675 |
-#include "confdefs.h" |
4676 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4677 |
+/* end confdefs.h. */ |
4678 |
|
4679 |
-int main() { |
4680 |
+int |
4681 |
+main () |
4682 |
+{ |
4683 |
#ifndef __WATCOMC__ |
4684 |
kill me! |
4685 |
- #endif |
4686 |
-; return 0; } |
4687 |
-EOF |
4688 |
-if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4689 |
- rm -rf conftest* |
4690 |
+ #endif |
4691 |
+ ; |
4692 |
+ return 0; |
4693 |
+} |
4694 |
+_ACEOF |
4695 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4696 |
ac_cv_have_watcom=yes |
4697 |
else |
4698 |
- echo "configure: failed program was:" >&5 |
4699 |
- cat conftest.$ac_ext >&5 |
4700 |
- rm -rf conftest* |
4701 |
ac_cv_have_watcom=no |
4702 |
fi |
4703 |
-rm -f conftest* |
4704 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4705 |
|
4706 |
fi |
4707 |
- |
4708 |
-echo "$ac_t""$ac_cv_have_watcom" 1>&6 |
4709 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_watcom" >&5 |
4710 |
+$as_echo "$ac_cv_have_watcom" >&6; } |
4711 |
test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no |
4712 |
|
4713 |
-echo $ac_n "checking for DJGPP""... $ac_c" 1>&6 |
4714 |
-echo "configure:1373: checking for DJGPP" >&5 |
4715 |
-if eval "test \"`echo '$''{'ac_cv_have_djgpp'+set}'`\" = set"; then |
4716 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4717 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJGPP" >&5 |
4718 |
+$as_echo_n "checking for DJGPP... " >&6; } |
4719 |
+if ${ac_cv_have_djgpp+:} false; then : |
4720 |
+ $as_echo_n "(cached) " >&6 |
4721 |
else |
4722 |
- cat > conftest.$ac_ext <<EOF |
4723 |
-#line 1378 "configure" |
4724 |
-#include "confdefs.h" |
4725 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4726 |
+/* end confdefs.h. */ |
4727 |
|
4728 |
-int main() { |
4729 |
+int |
4730 |
+main () |
4731 |
+{ |
4732 |
#ifndef __DJGPP |
4733 |
kill me! |
4734 |
- #endif |
4735 |
-; return 0; } |
4736 |
-EOF |
4737 |
-if { (eval echo configure:1387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4738 |
- rm -rf conftest* |
4739 |
+ #endif |
4740 |
+ ; |
4741 |
+ return 0; |
4742 |
+} |
4743 |
+_ACEOF |
4744 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4745 |
ac_cv_have_djgpp=yes |
4746 |
else |
4747 |
- echo "configure: failed program was:" >&5 |
4748 |
- cat conftest.$ac_ext >&5 |
4749 |
- rm -rf conftest* |
4750 |
ac_cv_have_djgpp=no |
4751 |
fi |
4752 |
-rm -f conftest* |
4753 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4754 |
|
4755 |
fi |
4756 |
- |
4757 |
-echo "$ac_t""$ac_cv_have_djgpp" 1>&6 |
4758 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_djgpp" >&5 |
4759 |
+$as_echo "$ac_cv_have_djgpp" >&6; } |
4760 |
|
4761 |
if test "$ac_cv_have_djgpp" = yes; then |
4762 |
static_link=1 |
4763 |
@@ -1406,2493 +4090,1245 @@ if test "$ac_cv_have_djgpp" = yes; then |
4764 |
test -n "$DJDIR" && test -d "$DJDIR/net/watt/lib" && LDFLAGS="-L$DJDIR/net/watt/lib $LDFLAGS" |
4765 |
fi |
4766 |
|
4767 |
-echo $ac_n "checking for typeof""... $ac_c" 1>&6 |
4768 |
-echo "configure:1409: checking for typeof" >&5 |
4769 |
-if eval "test \"`echo '$''{'ac_cv_have_typeof'+set}'`\" = set"; then |
4770 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4771 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5 |
4772 |
+$as_echo_n "checking for typeof... " >&6; } |
4773 |
+if ${ac_cv_have_typeof+:} false; then : |
4774 |
+ $as_echo_n "(cached) " >&6 |
4775 |
else |
4776 |
- cat > conftest.$ac_ext <<EOF |
4777 |
-#line 1414 "configure" |
4778 |
-#include "confdefs.h" |
4779 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4780 |
+/* end confdefs.h. */ |
4781 |
|
4782 |
-int main() { |
4783 |
+int |
4784 |
+main () |
4785 |
+{ |
4786 |
int a; |
4787 |
typeof(a) b; |
4788 |
-; return 0; } |
4789 |
-EOF |
4790 |
-if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4791 |
- rm -rf conftest* |
4792 |
+ ; |
4793 |
+ return 0; |
4794 |
+} |
4795 |
+_ACEOF |
4796 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4797 |
ac_cv_have_typeof=yes |
4798 |
else |
4799 |
- echo "configure: failed program was:" >&5 |
4800 |
- cat conftest.$ac_ext >&5 |
4801 |
- rm -rf conftest* |
4802 |
ac_cv_have_typeof=no |
4803 |
fi |
4804 |
-rm -f conftest* |
4805 |
- |
4806 |
-fi |
4807 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4808 |
|
4809 |
-echo "$ac_t""$ac_cv_have_typeof" 1>&6 |
4810 |
-test "$ac_cv_have_typeof" = yes && cat >> confdefs.h <<\EOF |
4811 |
-#define HAVE_TYPEOF 1 |
4812 |
-EOF |
4813 |
+fi |
4814 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_typeof" >&5 |
4815 |
+$as_echo "$ac_cv_have_typeof" >&6; } |
4816 |
+test "$ac_cv_have_typeof" = yes && $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h |
4817 |
|
4818 |
|
4819 |
-echo $ac_n "checking for volatile""... $ac_c" 1>&6 |
4820 |
-echo "configure:1442: checking for volatile" >&5 |
4821 |
-if eval "test \"`echo '$''{'ac_cv_have_volatile'+set}'`\" = set"; then |
4822 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4823 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for volatile" >&5 |
4824 |
+$as_echo_n "checking for volatile... " >&6; } |
4825 |
+if ${ac_cv_have_volatile+:} false; then : |
4826 |
+ $as_echo_n "(cached) " >&6 |
4827 |
else |
4828 |
- cat > conftest.$ac_ext <<EOF |
4829 |
-#line 1447 "configure" |
4830 |
-#include "confdefs.h" |
4831 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4832 |
+/* end confdefs.h. */ |
4833 |
|
4834 |
-int main() { |
4835 |
+int |
4836 |
+main () |
4837 |
+{ |
4838 |
|
4839 |
volatile int a = 0; |
4840 |
return a; |
4841 |
- |
4842 |
-; return 0; } |
4843 |
-EOF |
4844 |
-if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4845 |
- rm -rf conftest* |
4846 |
+ |
4847 |
+ ; |
4848 |
+ return 0; |
4849 |
+} |
4850 |
+_ACEOF |
4851 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4852 |
ac_cv_have_volatile=yes |
4853 |
else |
4854 |
- echo "configure: failed program was:" >&5 |
4855 |
- cat conftest.$ac_ext >&5 |
4856 |
- rm -rf conftest* |
4857 |
ac_cv_have_volatile=no |
4858 |
fi |
4859 |
-rm -f conftest* |
4860 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4861 |
|
4862 |
fi |
4863 |
- |
4864 |
-echo "$ac_t""$ac_cv_have_volatile" 1>&6 |
4865 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_volatile" >&5 |
4866 |
+$as_echo "$ac_cv_have_volatile" >&6; } |
4867 |
if test "$ac_cv_have_volatile" = yes; then |
4868 |
- cat >> confdefs.h <<\EOF |
4869 |
-#define HAVE_VOLATILE 1 |
4870 |
-EOF |
4871 |
+ $as_echo "#define HAVE_VOLATILE 1" >>confdefs.h |
4872 |
|
4873 |
fi |
4874 |
|
4875 |
-echo $ac_n "checking for long long""... $ac_c" 1>&6 |
4876 |
-echo "configure:1479: checking for long long" >&5 |
4877 |
-if eval "test \"`echo '$''{'ac_cv_have_long_long'+set}'`\" = set"; then |
4878 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4879 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
4880 |
+$as_echo_n "checking for long long... " >&6; } |
4881 |
+if ${ac_cv_have_long_long+:} false; then : |
4882 |
+ $as_echo_n "(cached) " >&6 |
4883 |
else |
4884 |
- cat > conftest.$ac_ext <<EOF |
4885 |
-#line 1484 "configure" |
4886 |
-#include "confdefs.h" |
4887 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4888 |
+/* end confdefs.h. */ |
4889 |
|
4890 |
-int main() { |
4891 |
-unsigned long long a; |
4892 |
-; return 0; } |
4893 |
-EOF |
4894 |
-if { (eval echo configure:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4895 |
- rm -rf conftest* |
4896 |
+int |
4897 |
+main () |
4898 |
+{ |
4899 |
+unsigned long long a; |
4900 |
+ ; |
4901 |
+ return 0; |
4902 |
+} |
4903 |
+_ACEOF |
4904 |
+if ac_fn_c_try_compile "$LINENO"; then : |
4905 |
ac_cv_have_long_long=yes |
4906 |
else |
4907 |
- echo "configure: failed program was:" >&5 |
4908 |
- cat conftest.$ac_ext >&5 |
4909 |
- rm -rf conftest* |
4910 |
ac_cv_have_long_long=no |
4911 |
fi |
4912 |
-rm -f conftest* |
4913 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4914 |
|
4915 |
fi |
4916 |
- |
4917 |
-echo "$ac_t""$ac_cv_have_long_long" 1>&6 |
4918 |
-test "$ac_cv_have_long_long" = yes && cat >> confdefs.h <<\EOF |
4919 |
-#define HAVE_LONG_LONG 1 |
4920 |
-EOF |
4921 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long" >&5 |
4922 |
+$as_echo "$ac_cv_have_long_long" >&6; } |
4923 |
+test "$ac_cv_have_long_long" = yes && $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
4924 |
|
4925 |
|
4926 |
-echo $ac_n "checking for pointer comparison bug""... $ac_c" 1>&6 |
4927 |
-echo "configure:1511: checking for pointer comparison bug" >&5 |
4928 |
-if eval "test \"`echo '$''{'ac_cv_pointer_comparison_bug'+set}'`\" = set"; then |
4929 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4930 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer comparison bug" >&5 |
4931 |
+$as_echo_n "checking for pointer comparison bug... " >&6; } |
4932 |
+if ${ac_cv_pointer_comparison_bug+:} false; then : |
4933 |
+ $as_echo_n "(cached) " >&6 |
4934 |
else |
4935 |
- if test "$cross_compiling" = yes; then |
4936 |
+ if test "$cross_compiling" = yes; then : |
4937 |
if test -n "`echo "$CC"|grep ^tcc`"; then |
4938 |
ac_cv_pointer_comparison_bug=yes |
4939 |
else |
4940 |
ac_cv_pointer_comparison_bug=no |
4941 |
fi |
4942 |
- |
4943 |
+ |
4944 |
else |
4945 |
- cat > conftest.$ac_ext <<EOF |
4946 |
-#line 1524 "configure" |
4947 |
-#include "confdefs.h" |
4948 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4949 |
+/* end confdefs.h. */ |
4950 |
|
4951 |
int main() |
4952 |
{ |
4953 |
void *p = (void *)-1L; |
4954 |
return p != (void *)-1L; |
4955 |
} |
4956 |
- |
4957 |
-EOF |
4958 |
-if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4959 |
-then |
4960 |
+ |
4961 |
+_ACEOF |
4962 |
+if ac_fn_c_try_run "$LINENO"; then : |
4963 |
ac_cv_pointer_comparison_bug=no |
4964 |
else |
4965 |
- echo "configure: failed program was:" >&5 |
4966 |
- cat conftest.$ac_ext >&5 |
4967 |
- rm -fr conftest* |
4968 |
ac_cv_pointer_comparison_bug=yes |
4969 |
fi |
4970 |
-rm -fr conftest* |
4971 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4972 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
4973 |
fi |
4974 |
|
4975 |
|
4976 |
fi |
4977 |
- |
4978 |
-echo "$ac_t""$ac_cv_pointer_comparison_bug" 1>&6 |
4979 |
-test "$ac_cv_pointer_comparison_bug" = yes && cat >> confdefs.h <<\EOF |
4980 |
-#define HAVE_POINTER_COMPARISON_BUG 1 |
4981 |
-EOF |
4982 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pointer_comparison_bug" >&5 |
4983 |
+$as_echo "$ac_cv_pointer_comparison_bug" >&6; } |
4984 |
+test "$ac_cv_pointer_comparison_bug" = yes && $as_echo "#define HAVE_POINTER_COMPARISON_BUG 1" >>confdefs.h |
4985 |
|
4986 |
|
4987 |
if test "$ac_cv_have_long_long" = yes -a "$ac_cv_have_volatile" = yes; then |
4988 |
- echo $ac_n "checking for maxint conversion bug""... $ac_c" 1>&6 |
4989 |
-echo "configure:1557: checking for maxint conversion bug" >&5 |
4990 |
-if eval "test \"`echo '$''{'ac_cv_maxint_conversion_bug'+set}'`\" = set"; then |
4991 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
4992 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maxint conversion bug" >&5 |
4993 |
+$as_echo_n "checking for maxint conversion bug... " >&6; } |
4994 |
+if ${ac_cv_maxint_conversion_bug+:} false; then : |
4995 |
+ $as_echo_n "(cached) " >&6 |
4996 |
else |
4997 |
- if test "$cross_compiling" = yes; then |
4998 |
+ if test "$cross_compiling" = yes; then : |
4999 |
if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP-UX; then |
5000 |
ac_cv_maxint_conversion_bug=yes |
5001 |
else |
5002 |
ac_cv_maxint_conversion_bug=no |
5003 |
fi |
5004 |
- |
5005 |
+ |
5006 |
else |
5007 |
- cat > conftest.$ac_ext <<EOF |
5008 |
-#line 1570 "configure" |
5009 |
-#include "confdefs.h" |
5010 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5011 |
+/* end confdefs.h. */ |
5012 |
|
5013 |
int main() |
5014 |
{ |
5015 |
volatile long long q = 0x7FFFFFEF; |
5016 |
return q < 0; |
5017 |
} |
5018 |
- |
5019 |
-EOF |
5020 |
-if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5021 |
-then |
5022 |
+ |
5023 |
+_ACEOF |
5024 |
+if ac_fn_c_try_run "$LINENO"; then : |
5025 |
ac_cv_maxint_conversion_bug=no |
5026 |
else |
5027 |
- echo "configure: failed program was:" >&5 |
5028 |
- cat conftest.$ac_ext >&5 |
5029 |
- rm -fr conftest* |
5030 |
ac_cv_maxint_conversion_bug=yes |
5031 |
fi |
5032 |
-rm -fr conftest* |
5033 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5034 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
5035 |
fi |
5036 |
|
5037 |
- |
5038 |
-fi |
5039 |
|
5040 |
-echo "$ac_t""$ac_cv_maxint_conversion_bug" 1>&6 |
5041 |
- test "$ac_cv_maxint_conversion_bug" = yes && cat >> confdefs.h <<\EOF |
5042 |
-#define HAVE_MAXINT_CONVERSION_BUG 1 |
5043 |
-EOF |
5044 |
+fi |
5045 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_maxint_conversion_bug" >&5 |
5046 |
+$as_echo "$ac_cv_maxint_conversion_bug" >&6; } |
5047 |
+ test "$ac_cv_maxint_conversion_bug" = yes && $as_echo "#define HAVE_MAXINT_CONVERSION_BUG 1" >>confdefs.h |
5048 |
|
5049 |
fi |
5050 |
|
5051 |
|
5052 |
-echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6 |
5053 |
-echo "configure:1604: checking for stdlib.h" >&5 |
5054 |
-if eval "test \"`echo '$''{'ac_cv_have_stdlib_h'+set}'`\" = set"; then |
5055 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5056 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdlib.h" >&5 |
5057 |
+$as_echo_n "checking for stdlib.h... " >&6; } |
5058 |
+if ${ac_cv_have_stdlib_h+:} false; then : |
5059 |
+ $as_echo_n "(cached) " >&6 |
5060 |
else |
5061 |
- cat > conftest.$ac_ext <<EOF |
5062 |
-#line 1609 "configure" |
5063 |
-#include "confdefs.h" |
5064 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5065 |
+/* end confdefs.h. */ |
5066 |
#include <stdlib.h> |
5067 |
-int main() { |
5068 |
+int |
5069 |
+main () |
5070 |
+{ |
5071 |
|
5072 |
-; return 0; } |
5073 |
-EOF |
5074 |
-if { (eval echo configure:1616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5075 |
- rm -rf conftest* |
5076 |
+ ; |
5077 |
+ return 0; |
5078 |
+} |
5079 |
+_ACEOF |
5080 |
+if ac_fn_c_try_compile "$LINENO"; then : |
5081 |
ac_cv_have_stdlib_h=yes |
5082 |
else |
5083 |
- echo "configure: failed program was:" >&5 |
5084 |
- cat conftest.$ac_ext >&5 |
5085 |
- rm -rf conftest* |
5086 |
ac_cv_have_stdlib_h=no |
5087 |
fi |
5088 |
-rm -f conftest* |
5089 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5090 |
|
5091 |
fi |
5092 |
- |
5093 |
-echo "$ac_t""$ac_cv_have_stdlib_h" 1>&6 |
5094 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_stdlib_h" >&5 |
5095 |
+$as_echo "$ac_cv_have_stdlib_h" >&6; } |
5096 |
if test "$ac_cv_have_stdlib_h" = yes; then |
5097 |
- cat >> confdefs.h <<\EOF |
5098 |
-#define HAVE_STDLIB_H_X 1 |
5099 |
-EOF |
5100 |
+ $as_echo "#define HAVE_STDLIB_H_X 1" >>confdefs.h |
5101 |
|
5102 |
fi |
5103 |
|
5104 |
|
5105 |
ac_header_dirent=no |
5106 |
-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
5107 |
-do |
5108 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5109 |
-echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
5110 |
-echo "configure:1643: checking for $ac_hdr that defines DIR" >&5 |
5111 |
-if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
5112 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5113 |
+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
5114 |
+ as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
5115 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
5116 |
+$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
5117 |
+if eval \${$as_ac_Header+:} false; then : |
5118 |
+ $as_echo_n "(cached) " >&6 |
5119 |
else |
5120 |
- cat > conftest.$ac_ext <<EOF |
5121 |
-#line 1648 "configure" |
5122 |
-#include "confdefs.h" |
5123 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5124 |
+/* end confdefs.h. */ |
5125 |
#include <sys/types.h> |
9 |
#include <$ac_hdr> |
5126 |
#include <$ac_hdr> |
10 |
EOF |
5127 |
-int main() { |
11 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5128 |
-DIR *dirp = 0; |
|
|
5129 |
-; return 0; } |
5130 |
-EOF |
5131 |
-if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5132 |
- rm -rf conftest* |
5133 |
- eval "ac_cv_header_dirent_$ac_safe=yes" |
5134 |
+ |
5135 |
+int |
5136 |
+main () |
5137 |
+{ |
5138 |
+if ((DIR *) 0) |
5139 |
+return 0; |
5140 |
+ ; |
5141 |
+ return 0; |
5142 |
+} |
5143 |
+_ACEOF |
5144 |
+if ac_fn_c_try_compile "$LINENO"; then : |
5145 |
+ eval "$as_ac_Header=yes" |
5146 |
else |
5147 |
- echo "configure: failed program was:" >&5 |
5148 |
- cat conftest.$ac_ext >&5 |
5149 |
- rm -rf conftest* |
5150 |
- eval "ac_cv_header_dirent_$ac_safe=no" |
5151 |
+ eval "$as_ac_Header=no" |
5152 |
fi |
5153 |
-rm -f conftest* |
5154 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5155 |
fi |
5156 |
-if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
5157 |
- echo "$ac_t""yes" 1>&6 |
5158 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5159 |
- cat >> confdefs.h <<EOF |
5160 |
-#define $ac_tr_hdr 1 |
5161 |
-EOF |
5162 |
- ac_header_dirent=$ac_hdr; break |
5163 |
-else |
5164 |
- echo "$ac_t""no" 1>&6 |
5165 |
+eval ac_res=\$$as_ac_Header |
5166 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
5167 |
+$as_echo "$ac_res" >&6; } |
5168 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5169 |
+ cat >>confdefs.h <<_ACEOF |
5170 |
+#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
5171 |
+_ACEOF |
5172 |
+ |
5173 |
+ac_header_dirent=$ac_hdr; break |
5174 |
fi |
5175 |
+ |
5176 |
done |
5177 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
5178 |
if test $ac_header_dirent = dirent.h; then |
5179 |
-echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
5180 |
-echo "configure:1681: checking for opendir in -ldir" >&5 |
5181 |
-ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
5182 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5183 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5184 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
5185 |
+$as_echo_n "checking for library containing opendir... " >&6; } |
5186 |
+if ${ac_cv_search_opendir+:} false; then : |
5187 |
+ $as_echo_n "(cached) " >&6 |
5188 |
else |
5189 |
- ac_save_LIBS="$LIBS" |
5190 |
-LIBS="-ldir $LIBS" |
5191 |
-cat > conftest.$ac_ext <<EOF |
5192 |
-#line 1689 "configure" |
5193 |
-#include "confdefs.h" |
5194 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
5195 |
-/* We use char because int might match the return type of a gcc2 |
5196 |
- builtin and then its argument prototype would still apply. */ |
5197 |
-char opendir(); |
5198 |
+ ac_func_search_save_LIBS=$LIBS |
5199 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5200 |
+/* end confdefs.h. */ |
5201 |
|
5202 |
-int main() { |
5203 |
-opendir() |
5204 |
-; return 0; } |
5205 |
-EOF |
5206 |
-if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5207 |
- rm -rf conftest* |
5208 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
5209 |
-else |
5210 |
- echo "configure: failed program was:" >&5 |
5211 |
- cat conftest.$ac_ext >&5 |
5212 |
- rm -rf conftest* |
5213 |
- eval "ac_cv_lib_$ac_lib_var=no" |
5214 |
+/* Override any GCC internal prototype to avoid an error. |
5215 |
+ Use char because int might match the return type of a GCC |
5216 |
+ builtin and then its argument prototype would still apply. */ |
5217 |
+#ifdef __cplusplus |
5218 |
+extern "C" |
5219 |
+#endif |
5220 |
+char opendir (); |
5221 |
+int |
5222 |
+main () |
5223 |
+{ |
5224 |
+return opendir (); |
5225 |
+ ; |
5226 |
+ return 0; |
5227 |
+} |
5228 |
+_ACEOF |
5229 |
+for ac_lib in '' dir; do |
5230 |
+ if test -z "$ac_lib"; then |
5231 |
+ ac_res="none required" |
5232 |
+ else |
5233 |
+ ac_res=-l$ac_lib |
5234 |
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5235 |
+ fi |
5236 |
+ if ac_fn_c_try_link "$LINENO"; then : |
5237 |
+ ac_cv_search_opendir=$ac_res |
5238 |
fi |
5239 |
-rm -f conftest* |
5240 |
-LIBS="$ac_save_LIBS" |
5241 |
- |
5242 |
+rm -f core conftest.err conftest.$ac_objext \ |
5243 |
+ conftest$ac_exeext |
5244 |
+ if ${ac_cv_search_opendir+:} false; then : |
5245 |
+ break |
5246 |
fi |
5247 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5248 |
- echo "$ac_t""yes" 1>&6 |
5249 |
- LIBS="$LIBS -ldir" |
5250 |
+done |
5251 |
+if ${ac_cv_search_opendir+:} false; then : |
5252 |
+ |
5253 |
else |
5254 |
- echo "$ac_t""no" 1>&6 |
5255 |
+ ac_cv_search_opendir=no |
5256 |
+fi |
5257 |
+rm conftest.$ac_ext |
5258 |
+LIBS=$ac_func_search_save_LIBS |
5259 |
+fi |
5260 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
5261 |
+$as_echo "$ac_cv_search_opendir" >&6; } |
5262 |
+ac_res=$ac_cv_search_opendir |
5263 |
+if test "$ac_res" != no; then : |
5264 |
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5265 |
+ |
5266 |
fi |
5267 |
|
5268 |
else |
5269 |
-echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
5270 |
-echo "configure:1722: checking for opendir in -lx" >&5 |
5271 |
-ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
5272 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5273 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5274 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
5275 |
+$as_echo_n "checking for library containing opendir... " >&6; } |
5276 |
+if ${ac_cv_search_opendir+:} false; then : |
5277 |
+ $as_echo_n "(cached) " >&6 |
5278 |
else |
5279 |
- ac_save_LIBS="$LIBS" |
5280 |
-LIBS="-lx $LIBS" |
5281 |
-cat > conftest.$ac_ext <<EOF |
5282 |
-#line 1730 "configure" |
5283 |
-#include "confdefs.h" |
5284 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
5285 |
-/* We use char because int might match the return type of a gcc2 |
5286 |
- builtin and then its argument prototype would still apply. */ |
5287 |
-char opendir(); |
5288 |
+ ac_func_search_save_LIBS=$LIBS |
5289 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5290 |
+/* end confdefs.h. */ |
5291 |
|
5292 |
-int main() { |
5293 |
-opendir() |
5294 |
-; return 0; } |
5295 |
-EOF |
5296 |
-if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5297 |
- rm -rf conftest* |
5298 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
5299 |
-else |
5300 |
- echo "configure: failed program was:" >&5 |
5301 |
- cat conftest.$ac_ext >&5 |
5302 |
- rm -rf conftest* |
5303 |
- eval "ac_cv_lib_$ac_lib_var=no" |
5304 |
+/* Override any GCC internal prototype to avoid an error. |
5305 |
+ Use char because int might match the return type of a GCC |
5306 |
+ builtin and then its argument prototype would still apply. */ |
5307 |
+#ifdef __cplusplus |
5308 |
+extern "C" |
5309 |
+#endif |
5310 |
+char opendir (); |
5311 |
+int |
5312 |
+main () |
5313 |
+{ |
5314 |
+return opendir (); |
5315 |
+ ; |
5316 |
+ return 0; |
5317 |
+} |
5318 |
+_ACEOF |
5319 |
+for ac_lib in '' x; do |
5320 |
+ if test -z "$ac_lib"; then |
5321 |
+ ac_res="none required" |
5322 |
+ else |
5323 |
+ ac_res=-l$ac_lib |
5324 |
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5325 |
+ fi |
5326 |
+ if ac_fn_c_try_link "$LINENO"; then : |
5327 |
+ ac_cv_search_opendir=$ac_res |
5328 |
fi |
5329 |
-rm -f conftest* |
5330 |
-LIBS="$ac_save_LIBS" |
5331 |
- |
5332 |
+rm -f core conftest.err conftest.$ac_objext \ |
5333 |
+ conftest$ac_exeext |
5334 |
+ if ${ac_cv_search_opendir+:} false; then : |
5335 |
+ break |
5336 |
fi |
5337 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5338 |
- echo "$ac_t""yes" 1>&6 |
5339 |
- LIBS="$LIBS -lx" |
5340 |
+done |
5341 |
+if ${ac_cv_search_opendir+:} false; then : |
5342 |
+ |
5343 |
else |
5344 |
- echo "$ac_t""no" 1>&6 |
5345 |
+ ac_cv_search_opendir=no |
5346 |
+fi |
5347 |
+rm conftest.$ac_ext |
5348 |
+LIBS=$ac_func_search_save_LIBS |
5349 |
fi |
5350 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
5351 |
+$as_echo "$ac_cv_search_opendir" >&6; } |
5352 |
+ac_res=$ac_cv_search_opendir |
5353 |
+if test "$ac_res" != no; then : |
5354 |
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5355 |
|
5356 |
fi |
5357 |
|
5358 |
-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
5359 |
-echo "configure:1764: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
5360 |
-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
5361 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5362 |
+fi |
5363 |
+ |
5364 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
5365 |
+$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
5366 |
+if ${ac_cv_header_sys_wait_h+:} false; then : |
5367 |
+ $as_echo_n "(cached) " >&6 |
5368 |
else |
5369 |
- cat > conftest.$ac_ext <<EOF |
5370 |
-#line 1769 "configure" |
5371 |
-#include "confdefs.h" |
5372 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5373 |
+/* end confdefs.h. */ |
5374 |
#include <sys/types.h> |
5375 |
#include <sys/wait.h> |
5376 |
#ifndef WEXITSTATUS |
5377 |
-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
5378 |
+# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
5379 |
#endif |
5380 |
#ifndef WIFEXITED |
5381 |
-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
5382 |
+# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
5383 |
#endif |
5384 |
-int main() { |
5385 |
-int s; |
5386 |
-wait (&s); |
5387 |
-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
5388 |
-; return 0; } |
5389 |
-EOF |
5390 |
-if { (eval echo configure:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5391 |
- rm -rf conftest* |
5392 |
+ |
5393 |
+int |
5394 |
+main () |
5395 |
+{ |
5396 |
+ int s; |
5397 |
+ wait (&s); |
5398 |
+ s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
5399 |
+ ; |
5400 |
+ return 0; |
5401 |
+} |
5402 |
+_ACEOF |
5403 |
+if ac_fn_c_try_compile "$LINENO"; then : |
5404 |
ac_cv_header_sys_wait_h=yes |
5405 |
else |
5406 |
- echo "configure: failed program was:" >&5 |
5407 |
- cat conftest.$ac_ext >&5 |
5408 |
- rm -rf conftest* |
5409 |
ac_cv_header_sys_wait_h=no |
5410 |
fi |
5411 |
-rm -f conftest* |
5412 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5413 |
fi |
5414 |
- |
5415 |
-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
5416 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
5417 |
+$as_echo "$ac_cv_header_sys_wait_h" >&6; } |
5418 |
if test $ac_cv_header_sys_wait_h = yes; then |
5419 |
- cat >> confdefs.h <<\EOF |
5420 |
-#define HAVE_SYS_WAIT_H 1 |
5421 |
-EOF |
5422 |
|
5423 |
-fi |
5424 |
+$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
5425 |
|
5426 |
-for ac_hdr in alloca.h |
5427 |
-do |
5428 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5429 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5430 |
-echo "configure:1809: checking for $ac_hdr" >&5 |
5431 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5432 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5433 |
-else |
5434 |
- cat > conftest.$ac_ext <<EOF |
5435 |
-#line 1814 "configure" |
5436 |
-#include "confdefs.h" |
5437 |
-#include <$ac_hdr> |
5438 |
-EOF |
5439 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5440 |
-{ (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5441 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5442 |
-if test -z "$ac_err"; then |
5443 |
- rm -rf conftest* |
5444 |
- eval "ac_cv_header_$ac_safe=yes" |
5445 |
-else |
5446 |
- echo "$ac_err" >&5 |
5447 |
- echo "configure: failed program was:" >&5 |
5448 |
- cat conftest.$ac_ext >&5 |
5449 |
- rm -rf conftest* |
5450 |
- eval "ac_cv_header_$ac_safe=no" |
5451 |
-fi |
5452 |
-rm -f conftest* |
5453 |
fi |
5454 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5455 |
- echo "$ac_t""yes" 1>&6 |
5456 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5457 |
- cat >> confdefs.h <<EOF |
5458 |
-#define $ac_tr_hdr 1 |
5459 |
-EOF |
5460 |
- |
5461 |
-else |
5462 |
- echo "$ac_t""no" 1>&6 |
5463 |
+ |
5464 |
+# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5465 |
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5466 |
+ inttypes.h stdint.h unistd.h |
5467 |
+do : |
5468 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5469 |
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5470 |
+" |
5471 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5472 |
+ cat >>confdefs.h <<_ACEOF |
5473 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5474 |
+_ACEOF |
5475 |
+ |
5476 |
fi |
5477 |
+ |
5478 |
done |
5479 |
|
5480 |
-for ac_hdr in arpa/inet.h |
5481 |
-do |
5482 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5483 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5484 |
-echo "configure:1849: checking for $ac_hdr" >&5 |
5485 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5486 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5487 |
-else |
5488 |
- cat > conftest.$ac_ext <<EOF |
5489 |
-#line 1854 "configure" |
5490 |
-#include "confdefs.h" |
5491 |
-#include <$ac_hdr> |
5492 |
-EOF |
5493 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5494 |
-{ (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5495 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5496 |
-if test -z "$ac_err"; then |
5497 |
- rm -rf conftest* |
5498 |
- eval "ac_cv_header_$ac_safe=yes" |
5499 |
-else |
5500 |
- echo "$ac_err" >&5 |
5501 |
- echo "configure: failed program was:" >&5 |
5502 |
- cat conftest.$ac_ext >&5 |
5503 |
- rm -rf conftest* |
5504 |
- eval "ac_cv_header_$ac_safe=no" |
5505 |
-fi |
5506 |
-rm -f conftest* |
5507 |
-fi |
5508 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5509 |
- echo "$ac_t""yes" 1>&6 |
5510 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5511 |
- cat >> confdefs.h <<EOF |
5512 |
-#define $ac_tr_hdr 1 |
5513 |
-EOF |
5514 |
- |
5515 |
-else |
5516 |
- echo "$ac_t""no" 1>&6 |
5517 |
+ |
5518 |
+for ac_header in alloca.h |
5519 |
+do : |
5520 |
+ ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" |
5521 |
+if test "x$ac_cv_header_alloca_h" = xyes; then : |
5522 |
+ cat >>confdefs.h <<_ACEOF |
5523 |
+#define HAVE_ALLOCA_H 1 |
5524 |
+_ACEOF |
5525 |
+ |
5526 |
fi |
5527 |
+ |
5528 |
done |
5529 |
|
5530 |
-for ac_hdr in cygwin/process.h |
5531 |
-do |
5532 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5533 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5534 |
-echo "configure:1889: checking for $ac_hdr" >&5 |
5535 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5536 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5537 |
-else |
5538 |
- cat > conftest.$ac_ext <<EOF |
5539 |
-#line 1894 "configure" |
5540 |
-#include "confdefs.h" |
5541 |
-#include <$ac_hdr> |
5542 |
-EOF |
5543 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5544 |
-{ (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5545 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5546 |
-if test -z "$ac_err"; then |
5547 |
- rm -rf conftest* |
5548 |
- eval "ac_cv_header_$ac_safe=yes" |
5549 |
-else |
5550 |
- echo "$ac_err" >&5 |
5551 |
- echo "configure: failed program was:" >&5 |
5552 |
- cat conftest.$ac_ext >&5 |
5553 |
- rm -rf conftest* |
5554 |
- eval "ac_cv_header_$ac_safe=no" |
5555 |
-fi |
5556 |
-rm -f conftest* |
5557 |
-fi |
5558 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5559 |
- echo "$ac_t""yes" 1>&6 |
5560 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5561 |
- cat >> confdefs.h <<EOF |
5562 |
-#define $ac_tr_hdr 1 |
5563 |
-EOF |
5564 |
- |
5565 |
-else |
5566 |
- echo "$ac_t""no" 1>&6 |
5567 |
+for ac_header in arpa/inet.h |
5568 |
+do : |
5569 |
+ ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
5570 |
+if test "x$ac_cv_header_arpa_inet_h" = xyes; then : |
5571 |
+ cat >>confdefs.h <<_ACEOF |
5572 |
+#define HAVE_ARPA_INET_H 1 |
5573 |
+_ACEOF |
5574 |
+ |
5575 |
fi |
5576 |
+ |
5577 |
done |
5578 |
|
5579 |
-for ac_hdr in cygwin/version.h |
5580 |
-do |
5581 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5582 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5583 |
-echo "configure:1929: checking for $ac_hdr" >&5 |
5584 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5585 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5586 |
-else |
5587 |
- cat > conftest.$ac_ext <<EOF |
5588 |
-#line 1934 "configure" |
5589 |
-#include "confdefs.h" |
5590 |
-#include <$ac_hdr> |
5591 |
-EOF |
5592 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5593 |
-{ (eval echo configure:1939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5594 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5595 |
-if test -z "$ac_err"; then |
5596 |
- rm -rf conftest* |
5597 |
- eval "ac_cv_header_$ac_safe=yes" |
5598 |
-else |
5599 |
- echo "$ac_err" >&5 |
5600 |
- echo "configure: failed program was:" >&5 |
5601 |
- cat conftest.$ac_ext >&5 |
5602 |
- rm -rf conftest* |
5603 |
- eval "ac_cv_header_$ac_safe=no" |
5604 |
-fi |
5605 |
-rm -f conftest* |
5606 |
-fi |
5607 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5608 |
- echo "$ac_t""yes" 1>&6 |
5609 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5610 |
- cat >> confdefs.h <<EOF |
5611 |
-#define $ac_tr_hdr 1 |
5612 |
-EOF |
5613 |
- |
5614 |
-else |
5615 |
- echo "$ac_t""no" 1>&6 |
5616 |
+for ac_header in cygwin/process.h |
5617 |
+do : |
5618 |
+ ac_fn_c_check_header_mongrel "$LINENO" "cygwin/process.h" "ac_cv_header_cygwin_process_h" "$ac_includes_default" |
5619 |
+if test "x$ac_cv_header_cygwin_process_h" = xyes; then : |
5620 |
+ cat >>confdefs.h <<_ACEOF |
5621 |
+#define HAVE_CYGWIN_PROCESS_H 1 |
5622 |
+_ACEOF |
5623 |
+ |
5624 |
fi |
5625 |
+ |
5626 |
done |
5627 |
|
5628 |
-for ac_hdr in endian.h |
5629 |
-do |
5630 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5631 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5632 |
-echo "configure:1969: checking for $ac_hdr" >&5 |
5633 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5634 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5635 |
-else |
5636 |
- cat > conftest.$ac_ext <<EOF |
5637 |
-#line 1974 "configure" |
5638 |
-#include "confdefs.h" |
5639 |
-#include <$ac_hdr> |
5640 |
-EOF |
5641 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5642 |
-{ (eval echo configure:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5643 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5644 |
-if test -z "$ac_err"; then |
5645 |
- rm -rf conftest* |
5646 |
- eval "ac_cv_header_$ac_safe=yes" |
5647 |
-else |
5648 |
- echo "$ac_err" >&5 |
5649 |
- echo "configure: failed program was:" >&5 |
5650 |
- cat conftest.$ac_ext >&5 |
5651 |
- rm -rf conftest* |
5652 |
- eval "ac_cv_header_$ac_safe=no" |
5653 |
-fi |
5654 |
-rm -f conftest* |
5655 |
-fi |
5656 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5657 |
- echo "$ac_t""yes" 1>&6 |
5658 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5659 |
- cat >> confdefs.h <<EOF |
5660 |
-#define $ac_tr_hdr 1 |
5661 |
-EOF |
5662 |
- |
5663 |
-else |
5664 |
- echo "$ac_t""no" 1>&6 |
5665 |
+for ac_header in cygwin/version.h |
5666 |
+do : |
5667 |
+ ac_fn_c_check_header_mongrel "$LINENO" "cygwin/version.h" "ac_cv_header_cygwin_version_h" "$ac_includes_default" |
5668 |
+if test "x$ac_cv_header_cygwin_version_h" = xyes; then : |
5669 |
+ cat >>confdefs.h <<_ACEOF |
5670 |
+#define HAVE_CYGWIN_VERSION_H 1 |
5671 |
+_ACEOF |
5672 |
+ |
5673 |
fi |
5674 |
+ |
5675 |
done |
5676 |
|
5677 |
-for ac_hdr in fcntl.h |
5678 |
-do |
5679 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5680 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5681 |
-echo "configure:2009: checking for $ac_hdr" >&5 |
5682 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5683 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5684 |
-else |
5685 |
- cat > conftest.$ac_ext <<EOF |
5686 |
-#line 2014 "configure" |
5687 |
-#include "confdefs.h" |
5688 |
-#include <$ac_hdr> |
5689 |
-EOF |
5690 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5691 |
-{ (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5692 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5693 |
-if test -z "$ac_err"; then |
5694 |
- rm -rf conftest* |
5695 |
- eval "ac_cv_header_$ac_safe=yes" |
5696 |
-else |
5697 |
- echo "$ac_err" >&5 |
5698 |
- echo "configure: failed program was:" >&5 |
5699 |
- cat conftest.$ac_ext >&5 |
5700 |
- rm -rf conftest* |
5701 |
- eval "ac_cv_header_$ac_safe=no" |
5702 |
-fi |
5703 |
-rm -f conftest* |
5704 |
-fi |
5705 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5706 |
- echo "$ac_t""yes" 1>&6 |
5707 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5708 |
- cat >> confdefs.h <<EOF |
5709 |
-#define $ac_tr_hdr 1 |
5710 |
-EOF |
5711 |
- |
5712 |
-else |
5713 |
- echo "$ac_t""no" 1>&6 |
5714 |
+for ac_header in endian.h |
5715 |
+do : |
5716 |
+ ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
5717 |
+if test "x$ac_cv_header_endian_h" = xyes; then : |
5718 |
+ cat >>confdefs.h <<_ACEOF |
5719 |
+#define HAVE_ENDIAN_H 1 |
5720 |
+_ACEOF |
5721 |
+ |
5722 |
fi |
5723 |
+ |
5724 |
done |
5725 |
|
5726 |
-for ac_hdr in grp.h |
5727 |
-do |
5728 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5729 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5730 |
-echo "configure:2049: checking for $ac_hdr" >&5 |
5731 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5732 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5733 |
-else |
5734 |
- cat > conftest.$ac_ext <<EOF |
5735 |
-#line 2054 "configure" |
5736 |
-#include "confdefs.h" |
5737 |
-#include <$ac_hdr> |
5738 |
-EOF |
5739 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5740 |
-{ (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5741 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5742 |
-if test -z "$ac_err"; then |
5743 |
- rm -rf conftest* |
5744 |
- eval "ac_cv_header_$ac_safe=yes" |
5745 |
-else |
5746 |
- echo "$ac_err" >&5 |
5747 |
- echo "configure: failed program was:" >&5 |
5748 |
- cat conftest.$ac_ext >&5 |
5749 |
- rm -rf conftest* |
5750 |
- eval "ac_cv_header_$ac_safe=no" |
5751 |
-fi |
5752 |
-rm -f conftest* |
5753 |
-fi |
5754 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5755 |
- echo "$ac_t""yes" 1>&6 |
5756 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5757 |
- cat >> confdefs.h <<EOF |
5758 |
-#define $ac_tr_hdr 1 |
5759 |
-EOF |
5760 |
- |
5761 |
-else |
5762 |
- echo "$ac_t""no" 1>&6 |
5763 |
+for ac_header in fcntl.h |
5764 |
+do : |
5765 |
+ ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
5766 |
+if test "x$ac_cv_header_fcntl_h" = xyes; then : |
5767 |
+ cat >>confdefs.h <<_ACEOF |
5768 |
+#define HAVE_FCNTL_H 1 |
5769 |
+_ACEOF |
5770 |
+ |
5771 |
fi |
5772 |
+ |
5773 |
done |
5774 |
|
5775 |
-for ac_hdr in ieee.h |
5776 |
-do |
5777 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5778 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5779 |
-echo "configure:2089: checking for $ac_hdr" >&5 |
5780 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5781 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5782 |
-else |
5783 |
- cat > conftest.$ac_ext <<EOF |
5784 |
-#line 2094 "configure" |
5785 |
-#include "confdefs.h" |
5786 |
-#include <$ac_hdr> |
5787 |
-EOF |
5788 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5789 |
-{ (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5790 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5791 |
-if test -z "$ac_err"; then |
5792 |
- rm -rf conftest* |
5793 |
- eval "ac_cv_header_$ac_safe=yes" |
5794 |
-else |
5795 |
- echo "$ac_err" >&5 |
5796 |
- echo "configure: failed program was:" >&5 |
5797 |
- cat conftest.$ac_ext >&5 |
5798 |
- rm -rf conftest* |
5799 |
- eval "ac_cv_header_$ac_safe=no" |
5800 |
-fi |
5801 |
-rm -f conftest* |
5802 |
-fi |
5803 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5804 |
- echo "$ac_t""yes" 1>&6 |
5805 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5806 |
- cat >> confdefs.h <<EOF |
5807 |
-#define $ac_tr_hdr 1 |
5808 |
-EOF |
5809 |
- |
5810 |
-else |
5811 |
- echo "$ac_t""no" 1>&6 |
5812 |
+for ac_header in grp.h |
5813 |
+do : |
5814 |
+ ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
5815 |
+if test "x$ac_cv_header_grp_h" = xyes; then : |
5816 |
+ cat >>confdefs.h <<_ACEOF |
5817 |
+#define HAVE_GRP_H 1 |
5818 |
+_ACEOF |
5819 |
+ |
5820 |
fi |
5821 |
+ |
5822 |
done |
5823 |
|
5824 |
-for ac_hdr in interix/interix.h |
5825 |
-do |
5826 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5827 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5828 |
-echo "configure:2129: checking for $ac_hdr" >&5 |
5829 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5830 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5831 |
-else |
5832 |
- cat > conftest.$ac_ext <<EOF |
5833 |
-#line 2134 "configure" |
5834 |
-#include "confdefs.h" |
5835 |
-#include <$ac_hdr> |
5836 |
-EOF |
5837 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5838 |
-{ (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5839 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5840 |
-if test -z "$ac_err"; then |
5841 |
- rm -rf conftest* |
5842 |
- eval "ac_cv_header_$ac_safe=yes" |
5843 |
-else |
5844 |
- echo "$ac_err" >&5 |
5845 |
- echo "configure: failed program was:" >&5 |
5846 |
- cat conftest.$ac_ext >&5 |
5847 |
- rm -rf conftest* |
5848 |
- eval "ac_cv_header_$ac_safe=no" |
5849 |
-fi |
5850 |
-rm -f conftest* |
5851 |
-fi |
5852 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5853 |
- echo "$ac_t""yes" 1>&6 |
5854 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5855 |
- cat >> confdefs.h <<EOF |
5856 |
-#define $ac_tr_hdr 1 |
5857 |
-EOF |
5858 |
- |
5859 |
-else |
5860 |
- echo "$ac_t""no" 1>&6 |
5861 |
+for ac_header in ieee.h |
5862 |
+do : |
5863 |
+ ac_fn_c_check_header_mongrel "$LINENO" "ieee.h" "ac_cv_header_ieee_h" "$ac_includes_default" |
5864 |
+if test "x$ac_cv_header_ieee_h" = xyes; then : |
5865 |
+ cat >>confdefs.h <<_ACEOF |
5866 |
+#define HAVE_IEEE_H 1 |
5867 |
+_ACEOF |
5868 |
+ |
5869 |
fi |
5870 |
+ |
5871 |
done |
5872 |
|
5873 |
-for ac_hdr in inttypes.h |
5874 |
-do |
5875 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5876 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5877 |
-echo "configure:2169: checking for $ac_hdr" >&5 |
5878 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5879 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5880 |
-else |
5881 |
- cat > conftest.$ac_ext <<EOF |
5882 |
-#line 2174 "configure" |
5883 |
-#include "confdefs.h" |
5884 |
-#include <$ac_hdr> |
5885 |
-EOF |
5886 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5887 |
-{ (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5888 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5889 |
-if test -z "$ac_err"; then |
5890 |
- rm -rf conftest* |
5891 |
- eval "ac_cv_header_$ac_safe=yes" |
5892 |
-else |
5893 |
- echo "$ac_err" >&5 |
5894 |
- echo "configure: failed program was:" >&5 |
5895 |
- cat conftest.$ac_ext >&5 |
5896 |
- rm -rf conftest* |
5897 |
- eval "ac_cv_header_$ac_safe=no" |
5898 |
-fi |
5899 |
-rm -f conftest* |
5900 |
-fi |
5901 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5902 |
- echo "$ac_t""yes" 1>&6 |
5903 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5904 |
- cat >> confdefs.h <<EOF |
5905 |
-#define $ac_tr_hdr 1 |
5906 |
-EOF |
5907 |
- |
5908 |
-else |
5909 |
- echo "$ac_t""no" 1>&6 |
5910 |
+for ac_header in interix/interix.h |
5911 |
+do : |
5912 |
+ ac_fn_c_check_header_mongrel "$LINENO" "interix/interix.h" "ac_cv_header_interix_interix_h" "$ac_includes_default" |
5913 |
+if test "x$ac_cv_header_interix_interix_h" = xyes; then : |
5914 |
+ cat >>confdefs.h <<_ACEOF |
5915 |
+#define HAVE_INTERIX_INTERIX_H 1 |
5916 |
+_ACEOF |
5917 |
+ |
5918 |
fi |
5919 |
+ |
5920 |
done |
5921 |
|
5922 |
-for ac_hdr in io.h |
5923 |
-do |
5924 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5925 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5926 |
-echo "configure:2209: checking for $ac_hdr" >&5 |
5927 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5928 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5929 |
-else |
5930 |
- cat > conftest.$ac_ext <<EOF |
5931 |
-#line 2214 "configure" |
5932 |
-#include "confdefs.h" |
5933 |
-#include <$ac_hdr> |
5934 |
-EOF |
5935 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5936 |
-{ (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5937 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5938 |
-if test -z "$ac_err"; then |
5939 |
- rm -rf conftest* |
5940 |
- eval "ac_cv_header_$ac_safe=yes" |
5941 |
-else |
5942 |
- echo "$ac_err" >&5 |
5943 |
- echo "configure: failed program was:" >&5 |
5944 |
- cat conftest.$ac_ext >&5 |
5945 |
- rm -rf conftest* |
5946 |
- eval "ac_cv_header_$ac_safe=no" |
5947 |
-fi |
5948 |
-rm -f conftest* |
5949 |
-fi |
5950 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5951 |
- echo "$ac_t""yes" 1>&6 |
5952 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
5953 |
- cat >> confdefs.h <<EOF |
5954 |
-#define $ac_tr_hdr 1 |
5955 |
-EOF |
5956 |
- |
5957 |
-else |
5958 |
- echo "$ac_t""no" 1>&6 |
5959 |
+for ac_header in inttypes.h |
5960 |
+do : |
5961 |
+ ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
5962 |
+if test "x$ac_cv_header_inttypes_h" = xyes; then : |
5963 |
+ cat >>confdefs.h <<_ACEOF |
5964 |
+#define HAVE_INTTYPES_H 1 |
5965 |
+_ACEOF |
5966 |
+ |
5967 |
fi |
5968 |
+ |
5969 |
done |
5970 |
|
5971 |
-for ac_hdr in langinfo.h |
5972 |
-do |
5973 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5974 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5975 |
-echo "configure:2249: checking for $ac_hdr" >&5 |
5976 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5977 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
5978 |
-else |
5979 |
- cat > conftest.$ac_ext <<EOF |
5980 |
-#line 2254 "configure" |
5981 |
-#include "confdefs.h" |
5982 |
-#include <$ac_hdr> |
5983 |
-EOF |
5984 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5985 |
-{ (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5986 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5987 |
-if test -z "$ac_err"; then |
5988 |
- rm -rf conftest* |
5989 |
- eval "ac_cv_header_$ac_safe=yes" |
5990 |
-else |
5991 |
- echo "$ac_err" >&5 |
5992 |
- echo "configure: failed program was:" >&5 |
5993 |
- cat conftest.$ac_ext >&5 |
5994 |
- rm -rf conftest* |
5995 |
- eval "ac_cv_header_$ac_safe=no" |
5996 |
-fi |
5997 |
-rm -f conftest* |
5998 |
-fi |
5999 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6000 |
- echo "$ac_t""yes" 1>&6 |
6001 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6002 |
- cat >> confdefs.h <<EOF |
6003 |
-#define $ac_tr_hdr 1 |
6004 |
-EOF |
6005 |
- |
6006 |
-else |
6007 |
- echo "$ac_t""no" 1>&6 |
6008 |
+for ac_header in io.h |
6009 |
+do : |
6010 |
+ ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" |
6011 |
+if test "x$ac_cv_header_io_h" = xyes; then : |
6012 |
+ cat >>confdefs.h <<_ACEOF |
6013 |
+#define HAVE_IO_H 1 |
6014 |
+_ACEOF |
6015 |
+ |
6016 |
fi |
6017 |
+ |
6018 |
done |
6019 |
|
6020 |
-for ac_hdr in limits.h |
6021 |
-do |
6022 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6023 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6024 |
-echo "configure:2289: checking for $ac_hdr" >&5 |
6025 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6026 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6027 |
-else |
6028 |
- cat > conftest.$ac_ext <<EOF |
6029 |
-#line 2294 "configure" |
6030 |
-#include "confdefs.h" |
6031 |
-#include <$ac_hdr> |
6032 |
-EOF |
6033 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6034 |
-{ (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6035 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6036 |
-if test -z "$ac_err"; then |
6037 |
- rm -rf conftest* |
6038 |
- eval "ac_cv_header_$ac_safe=yes" |
6039 |
-else |
6040 |
- echo "$ac_err" >&5 |
6041 |
- echo "configure: failed program was:" >&5 |
6042 |
- cat conftest.$ac_ext >&5 |
6043 |
- rm -rf conftest* |
6044 |
- eval "ac_cv_header_$ac_safe=no" |
6045 |
-fi |
6046 |
-rm -f conftest* |
6047 |
-fi |
6048 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6049 |
- echo "$ac_t""yes" 1>&6 |
6050 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6051 |
- cat >> confdefs.h <<EOF |
6052 |
-#define $ac_tr_hdr 1 |
6053 |
-EOF |
6054 |
- |
6055 |
-else |
6056 |
- echo "$ac_t""no" 1>&6 |
6057 |
+for ac_header in langinfo.h |
6058 |
+do : |
6059 |
+ ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
6060 |
+if test "x$ac_cv_header_langinfo_h" = xyes; then : |
6061 |
+ cat >>confdefs.h <<_ACEOF |
6062 |
+#define HAVE_LANGINFO_H 1 |
6063 |
+_ACEOF |
6064 |
+ |
6065 |
fi |
6066 |
+ |
6067 |
done |
6068 |
|
6069 |
-for ac_hdr in malloc.h |
6070 |
-do |
6071 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6072 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6073 |
-echo "configure:2329: checking for $ac_hdr" >&5 |
6074 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6075 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6076 |
-else |
6077 |
- cat > conftest.$ac_ext <<EOF |
6078 |
-#line 2334 "configure" |
6079 |
-#include "confdefs.h" |
6080 |
-#include <$ac_hdr> |
6081 |
-EOF |
6082 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6083 |
-{ (eval echo configure:2339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6084 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6085 |
-if test -z "$ac_err"; then |
6086 |
- rm -rf conftest* |
6087 |
- eval "ac_cv_header_$ac_safe=yes" |
6088 |
-else |
6089 |
- echo "$ac_err" >&5 |
6090 |
- echo "configure: failed program was:" >&5 |
6091 |
- cat conftest.$ac_ext >&5 |
6092 |
- rm -rf conftest* |
6093 |
- eval "ac_cv_header_$ac_safe=no" |
6094 |
-fi |
6095 |
-rm -f conftest* |
6096 |
-fi |
6097 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6098 |
- echo "$ac_t""yes" 1>&6 |
6099 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6100 |
- cat >> confdefs.h <<EOF |
6101 |
-#define $ac_tr_hdr 1 |
6102 |
-EOF |
6103 |
- |
6104 |
-else |
6105 |
- echo "$ac_t""no" 1>&6 |
6106 |
+for ac_header in limits.h |
6107 |
+do : |
6108 |
+ ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
6109 |
+if test "x$ac_cv_header_limits_h" = xyes; then : |
6110 |
+ cat >>confdefs.h <<_ACEOF |
6111 |
+#define HAVE_LIMITS_H 1 |
6112 |
+_ACEOF |
6113 |
+ |
6114 |
fi |
6115 |
+ |
6116 |
done |
6117 |
|
6118 |
-for ac_hdr in math.h |
6119 |
-do |
6120 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6121 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6122 |
-echo "configure:2369: checking for $ac_hdr" >&5 |
6123 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6124 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6125 |
-else |
6126 |
- cat > conftest.$ac_ext <<EOF |
6127 |
-#line 2374 "configure" |
6128 |
-#include "confdefs.h" |
6129 |
-#include <$ac_hdr> |
6130 |
-EOF |
6131 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6132 |
-{ (eval echo configure:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6133 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6134 |
-if test -z "$ac_err"; then |
6135 |
- rm -rf conftest* |
6136 |
- eval "ac_cv_header_$ac_safe=yes" |
6137 |
-else |
6138 |
- echo "$ac_err" >&5 |
6139 |
- echo "configure: failed program was:" >&5 |
6140 |
- cat conftest.$ac_ext >&5 |
6141 |
- rm -rf conftest* |
6142 |
- eval "ac_cv_header_$ac_safe=no" |
6143 |
-fi |
6144 |
-rm -f conftest* |
6145 |
-fi |
6146 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6147 |
- echo "$ac_t""yes" 1>&6 |
6148 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6149 |
- cat >> confdefs.h <<EOF |
6150 |
-#define $ac_tr_hdr 1 |
6151 |
-EOF |
6152 |
- |
6153 |
-else |
6154 |
- echo "$ac_t""no" 1>&6 |
6155 |
+for ac_header in malloc.h |
6156 |
+do : |
6157 |
+ ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
6158 |
+if test "x$ac_cv_header_malloc_h" = xyes; then : |
6159 |
+ cat >>confdefs.h <<_ACEOF |
6160 |
+#define HAVE_MALLOC_H 1 |
6161 |
+_ACEOF |
6162 |
+ |
6163 |
fi |
6164 |
+ |
6165 |
done |
6166 |
|
6167 |
-for ac_hdr in net/socket.h |
6168 |
-do |
6169 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6170 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6171 |
-echo "configure:2409: checking for $ac_hdr" >&5 |
6172 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6173 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6174 |
-else |
6175 |
- cat > conftest.$ac_ext <<EOF |
6176 |
-#line 2414 "configure" |
6177 |
-#include "confdefs.h" |
6178 |
-#include <$ac_hdr> |
6179 |
-EOF |
6180 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6181 |
-{ (eval echo configure:2419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6182 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6183 |
-if test -z "$ac_err"; then |
6184 |
- rm -rf conftest* |
6185 |
- eval "ac_cv_header_$ac_safe=yes" |
6186 |
-else |
6187 |
- echo "$ac_err" >&5 |
6188 |
- echo "configure: failed program was:" >&5 |
6189 |
- cat conftest.$ac_ext >&5 |
6190 |
- rm -rf conftest* |
6191 |
- eval "ac_cv_header_$ac_safe=no" |
6192 |
-fi |
6193 |
-rm -f conftest* |
6194 |
-fi |
6195 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6196 |
- echo "$ac_t""yes" 1>&6 |
6197 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6198 |
- cat >> confdefs.h <<EOF |
6199 |
-#define $ac_tr_hdr 1 |
6200 |
-EOF |
6201 |
- |
6202 |
-else |
6203 |
- echo "$ac_t""no" 1>&6 |
6204 |
+for ac_header in math.h |
6205 |
+do : |
6206 |
+ ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
6207 |
+if test "x$ac_cv_header_math_h" = xyes; then : |
6208 |
+ cat >>confdefs.h <<_ACEOF |
6209 |
+#define HAVE_MATH_H 1 |
6210 |
+_ACEOF |
6211 |
+ |
6212 |
fi |
6213 |
+ |
6214 |
done |
6215 |
|
6216 |
-for ac_hdr in netinet/dhcp.h |
6217 |
-do |
6218 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6219 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6220 |
-echo "configure:2449: checking for $ac_hdr" >&5 |
6221 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6222 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6223 |
-else |
6224 |
- cat > conftest.$ac_ext <<EOF |
6225 |
-#line 2454 "configure" |
6226 |
-#include "confdefs.h" |
6227 |
-#include <$ac_hdr> |
6228 |
-EOF |
6229 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6230 |
-{ (eval echo configure:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6231 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6232 |
-if test -z "$ac_err"; then |
6233 |
- rm -rf conftest* |
6234 |
- eval "ac_cv_header_$ac_safe=yes" |
6235 |
-else |
6236 |
- echo "$ac_err" >&5 |
6237 |
- echo "configure: failed program was:" >&5 |
6238 |
- cat conftest.$ac_ext >&5 |
6239 |
- rm -rf conftest* |
6240 |
- eval "ac_cv_header_$ac_safe=no" |
6241 |
-fi |
6242 |
-rm -f conftest* |
6243 |
-fi |
6244 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6245 |
- echo "$ac_t""yes" 1>&6 |
6246 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6247 |
- cat >> confdefs.h <<EOF |
6248 |
-#define $ac_tr_hdr 1 |
6249 |
-EOF |
6250 |
- |
6251 |
-else |
6252 |
- echo "$ac_t""no" 1>&6 |
6253 |
+for ac_header in net/socket.h |
6254 |
+do : |
6255 |
+ ac_fn_c_check_header_mongrel "$LINENO" "net/socket.h" "ac_cv_header_net_socket_h" "$ac_includes_default" |
6256 |
+if test "x$ac_cv_header_net_socket_h" = xyes; then : |
6257 |
+ cat >>confdefs.h <<_ACEOF |
6258 |
+#define HAVE_NET_SOCKET_H 1 |
6259 |
+_ACEOF |
6260 |
+ |
6261 |
fi |
6262 |
+ |
6263 |
done |
6264 |
|
6265 |
-for ac_hdr in netinet/in_system.h |
6266 |
-do |
6267 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6268 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6269 |
-echo "configure:2489: checking for $ac_hdr" >&5 |
6270 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6271 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6272 |
-else |
6273 |
- cat > conftest.$ac_ext <<EOF |
6274 |
-#line 2494 "configure" |
6275 |
-#include "confdefs.h" |
6276 |
-#include <$ac_hdr> |
6277 |
-EOF |
6278 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6279 |
-{ (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6280 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6281 |
-if test -z "$ac_err"; then |
6282 |
- rm -rf conftest* |
6283 |
- eval "ac_cv_header_$ac_safe=yes" |
6284 |
-else |
6285 |
- echo "$ac_err" >&5 |
6286 |
- echo "configure: failed program was:" >&5 |
6287 |
- cat conftest.$ac_ext >&5 |
6288 |
- rm -rf conftest* |
6289 |
- eval "ac_cv_header_$ac_safe=no" |
6290 |
-fi |
6291 |
-rm -f conftest* |
6292 |
-fi |
6293 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6294 |
- echo "$ac_t""yes" 1>&6 |
6295 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6296 |
- cat >> confdefs.h <<EOF |
6297 |
-#define $ac_tr_hdr 1 |
6298 |
-EOF |
6299 |
- |
6300 |
-else |
6301 |
- echo "$ac_t""no" 1>&6 |
6302 |
+for ac_header in netinet/dhcp.h |
6303 |
+do : |
6304 |
+ ac_fn_c_check_header_mongrel "$LINENO" "netinet/dhcp.h" "ac_cv_header_netinet_dhcp_h" "$ac_includes_default" |
6305 |
+if test "x$ac_cv_header_netinet_dhcp_h" = xyes; then : |
6306 |
+ cat >>confdefs.h <<_ACEOF |
6307 |
+#define HAVE_NETINET_DHCP_H 1 |
6308 |
+_ACEOF |
6309 |
+ |
6310 |
fi |
6311 |
+ |
6312 |
done |
6313 |
|
6314 |
-for ac_hdr in netinet/in_systm.h |
6315 |
-do |
6316 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6317 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6318 |
-echo "configure:2529: checking for $ac_hdr" >&5 |
6319 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6320 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6321 |
-else |
6322 |
- cat > conftest.$ac_ext <<EOF |
6323 |
-#line 2534 "configure" |
6324 |
-#include "confdefs.h" |
6325 |
-#include <$ac_hdr> |
6326 |
-EOF |
6327 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6328 |
-{ (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6329 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6330 |
-if test -z "$ac_err"; then |
6331 |
- rm -rf conftest* |
6332 |
- eval "ac_cv_header_$ac_safe=yes" |
6333 |
-else |
6334 |
- echo "$ac_err" >&5 |
6335 |
- echo "configure: failed program was:" >&5 |
6336 |
- cat conftest.$ac_ext >&5 |
6337 |
- rm -rf conftest* |
6338 |
- eval "ac_cv_header_$ac_safe=no" |
6339 |
-fi |
6340 |
-rm -f conftest* |
6341 |
-fi |
6342 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6343 |
- echo "$ac_t""yes" 1>&6 |
6344 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6345 |
- cat >> confdefs.h <<EOF |
6346 |
-#define $ac_tr_hdr 1 |
6347 |
-EOF |
6348 |
- |
6349 |
-else |
6350 |
- echo "$ac_t""no" 1>&6 |
6351 |
+for ac_header in netinet/in_system.h |
6352 |
+do : |
6353 |
+ ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_system.h" "ac_cv_header_netinet_in_system_h" "$ac_includes_default" |
6354 |
+if test "x$ac_cv_header_netinet_in_system_h" = xyes; then : |
6355 |
+ cat >>confdefs.h <<_ACEOF |
6356 |
+#define HAVE_NETINET_IN_SYSTEM_H 1 |
6357 |
+_ACEOF |
6358 |
+ |
6359 |
fi |
6360 |
+ |
6361 |
done |
6362 |
|
6363 |
-for ac_hdr in netinet/ip.h |
6364 |
-do |
6365 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6366 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6367 |
-echo "configure:2569: checking for $ac_hdr" >&5 |
6368 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6369 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6370 |
-else |
6371 |
- cat > conftest.$ac_ext <<EOF |
6372 |
-#line 2574 "configure" |
6373 |
-#include "confdefs.h" |
6374 |
-#include <$ac_hdr> |
6375 |
-EOF |
6376 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6377 |
-{ (eval echo configure:2579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6378 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6379 |
-if test -z "$ac_err"; then |
6380 |
- rm -rf conftest* |
6381 |
- eval "ac_cv_header_$ac_safe=yes" |
6382 |
-else |
6383 |
- echo "$ac_err" >&5 |
6384 |
- echo "configure: failed program was:" >&5 |
6385 |
- cat conftest.$ac_ext >&5 |
6386 |
- rm -rf conftest* |
6387 |
- eval "ac_cv_header_$ac_safe=no" |
6388 |
-fi |
6389 |
-rm -f conftest* |
6390 |
-fi |
6391 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6392 |
- echo "$ac_t""yes" 1>&6 |
6393 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6394 |
- cat >> confdefs.h <<EOF |
6395 |
-#define $ac_tr_hdr 1 |
6396 |
-EOF |
6397 |
- |
6398 |
-else |
6399 |
- echo "$ac_t""no" 1>&6 |
6400 |
+for ac_header in netinet/in_systm.h |
6401 |
+do : |
6402 |
+ ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
6403 |
+if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then : |
6404 |
+ cat >>confdefs.h <<_ACEOF |
6405 |
+#define HAVE_NETINET_IN_SYSTM_H 1 |
6406 |
+_ACEOF |
6407 |
+ |
6408 |
fi |
6409 |
+ |
6410 |
done |
6411 |
|
6412 |
-for ac_hdr in process.h |
6413 |
-do |
6414 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6415 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6416 |
-echo "configure:2609: checking for $ac_hdr" >&5 |
6417 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6418 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6419 |
-else |
6420 |
- cat > conftest.$ac_ext <<EOF |
6421 |
-#line 2614 "configure" |
6422 |
-#include "confdefs.h" |
6423 |
-#include <$ac_hdr> |
6424 |
-EOF |
6425 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6426 |
-{ (eval echo configure:2619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6427 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6428 |
-if test -z "$ac_err"; then |
6429 |
- rm -rf conftest* |
6430 |
- eval "ac_cv_header_$ac_safe=yes" |
6431 |
-else |
6432 |
- echo "$ac_err" >&5 |
6433 |
- echo "configure: failed program was:" >&5 |
6434 |
- cat conftest.$ac_ext >&5 |
6435 |
- rm -rf conftest* |
6436 |
- eval "ac_cv_header_$ac_safe=no" |
6437 |
-fi |
6438 |
-rm -f conftest* |
6439 |
-fi |
6440 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6441 |
- echo "$ac_t""yes" 1>&6 |
6442 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6443 |
- cat >> confdefs.h <<EOF |
6444 |
-#define $ac_tr_hdr 1 |
6445 |
-EOF |
6446 |
- |
6447 |
-else |
6448 |
- echo "$ac_t""no" 1>&6 |
6449 |
+for ac_header in netinet/ip.h |
6450 |
+do : |
6451 |
+ ac_fn_c_check_header_mongrel "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default" |
6452 |
+if test "x$ac_cv_header_netinet_ip_h" = xyes; then : |
6453 |
+ cat >>confdefs.h <<_ACEOF |
6454 |
+#define HAVE_NETINET_IP_H 1 |
6455 |
+_ACEOF |
6456 |
+ |
6457 |
fi |
6458 |
+ |
6459 |
done |
6460 |
|
6461 |
-for ac_hdr in pwd.h |
6462 |
-do |
6463 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6464 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6465 |
-echo "configure:2649: checking for $ac_hdr" >&5 |
6466 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6467 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6468 |
-else |
6469 |
- cat > conftest.$ac_ext <<EOF |
6470 |
-#line 2654 "configure" |
6471 |
-#include "confdefs.h" |
6472 |
-#include <$ac_hdr> |
6473 |
-EOF |
6474 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6475 |
-{ (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6476 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6477 |
-if test -z "$ac_err"; then |
6478 |
- rm -rf conftest* |
6479 |
- eval "ac_cv_header_$ac_safe=yes" |
6480 |
-else |
6481 |
- echo "$ac_err" >&5 |
6482 |
- echo "configure: failed program was:" >&5 |
6483 |
- cat conftest.$ac_ext >&5 |
6484 |
- rm -rf conftest* |
6485 |
- eval "ac_cv_header_$ac_safe=no" |
6486 |
-fi |
6487 |
-rm -f conftest* |
6488 |
-fi |
6489 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6490 |
- echo "$ac_t""yes" 1>&6 |
6491 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6492 |
- cat >> confdefs.h <<EOF |
6493 |
-#define $ac_tr_hdr 1 |
6494 |
-EOF |
6495 |
- |
6496 |
-else |
6497 |
- echo "$ac_t""no" 1>&6 |
6498 |
+for ac_header in process.h |
6499 |
+do : |
6500 |
+ ac_fn_c_check_header_mongrel "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" |
6501 |
+if test "x$ac_cv_header_process_h" = xyes; then : |
6502 |
+ cat >>confdefs.h <<_ACEOF |
6503 |
+#define HAVE_PROCESS_H 1 |
6504 |
+_ACEOF |
6505 |
+ |
6506 |
fi |
6507 |
+ |
6508 |
done |
6509 |
|
6510 |
-for ac_hdr in setjmp.h |
6511 |
-do |
6512 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6513 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6514 |
-echo "configure:2689: checking for $ac_hdr" >&5 |
6515 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6516 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6517 |
-else |
6518 |
- cat > conftest.$ac_ext <<EOF |
6519 |
-#line 2694 "configure" |
6520 |
-#include "confdefs.h" |
6521 |
-#include <$ac_hdr> |
6522 |
-EOF |
6523 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6524 |
-{ (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6525 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6526 |
-if test -z "$ac_err"; then |
6527 |
- rm -rf conftest* |
6528 |
- eval "ac_cv_header_$ac_safe=yes" |
6529 |
-else |
6530 |
- echo "$ac_err" >&5 |
6531 |
- echo "configure: failed program was:" >&5 |
6532 |
- cat conftest.$ac_ext >&5 |
6533 |
- rm -rf conftest* |
6534 |
- eval "ac_cv_header_$ac_safe=no" |
6535 |
-fi |
6536 |
-rm -f conftest* |
6537 |
-fi |
6538 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6539 |
- echo "$ac_t""yes" 1>&6 |
6540 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6541 |
- cat >> confdefs.h <<EOF |
6542 |
-#define $ac_tr_hdr 1 |
6543 |
-EOF |
6544 |
- |
6545 |
-else |
6546 |
- echo "$ac_t""no" 1>&6 |
6547 |
+for ac_header in pwd.h |
6548 |
+do : |
6549 |
+ ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
6550 |
+if test "x$ac_cv_header_pwd_h" = xyes; then : |
6551 |
+ cat >>confdefs.h <<_ACEOF |
6552 |
+#define HAVE_PWD_H 1 |
6553 |
+_ACEOF |
6554 |
+ |
6555 |
fi |
6556 |
+ |
6557 |
done |
6558 |
|
6559 |
-for ac_hdr in sgtty.h |
6560 |
-do |
6561 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6562 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6563 |
-echo "configure:2729: checking for $ac_hdr" >&5 |
6564 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6565 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6566 |
-else |
6567 |
- cat > conftest.$ac_ext <<EOF |
6568 |
-#line 2734 "configure" |
6569 |
-#include "confdefs.h" |
6570 |
-#include <$ac_hdr> |
6571 |
-EOF |
6572 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6573 |
-{ (eval echo configure:2739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6574 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6575 |
-if test -z "$ac_err"; then |
6576 |
- rm -rf conftest* |
6577 |
- eval "ac_cv_header_$ac_safe=yes" |
6578 |
-else |
6579 |
- echo "$ac_err" >&5 |
6580 |
- echo "configure: failed program was:" >&5 |
6581 |
- cat conftest.$ac_ext >&5 |
6582 |
- rm -rf conftest* |
6583 |
- eval "ac_cv_header_$ac_safe=no" |
6584 |
-fi |
6585 |
-rm -f conftest* |
6586 |
-fi |
6587 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6588 |
- echo "$ac_t""yes" 1>&6 |
6589 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6590 |
- cat >> confdefs.h <<EOF |
6591 |
-#define $ac_tr_hdr 1 |
6592 |
-EOF |
6593 |
- |
6594 |
-else |
6595 |
- echo "$ac_t""no" 1>&6 |
6596 |
+for ac_header in setjmp.h |
6597 |
+do : |
6598 |
+ ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
6599 |
+if test "x$ac_cv_header_setjmp_h" = xyes; then : |
6600 |
+ cat >>confdefs.h <<_ACEOF |
6601 |
+#define HAVE_SETJMP_H 1 |
6602 |
+_ACEOF |
6603 |
+ |
6604 |
fi |
6605 |
+ |
6606 |
done |
6607 |
|
6608 |
-for ac_hdr in stdarg.h |
6609 |
-do |
6610 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6611 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6612 |
-echo "configure:2769: checking for $ac_hdr" >&5 |
6613 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6614 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6615 |
-else |
6616 |
- cat > conftest.$ac_ext <<EOF |
6617 |
-#line 2774 "configure" |
6618 |
-#include "confdefs.h" |
6619 |
-#include <$ac_hdr> |
6620 |
-EOF |
6621 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6622 |
-{ (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6623 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6624 |
-if test -z "$ac_err"; then |
6625 |
- rm -rf conftest* |
6626 |
- eval "ac_cv_header_$ac_safe=yes" |
6627 |
-else |
6628 |
- echo "$ac_err" >&5 |
6629 |
- echo "configure: failed program was:" >&5 |
6630 |
- cat conftest.$ac_ext >&5 |
6631 |
- rm -rf conftest* |
6632 |
- eval "ac_cv_header_$ac_safe=no" |
6633 |
-fi |
6634 |
-rm -f conftest* |
6635 |
-fi |
6636 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6637 |
- echo "$ac_t""yes" 1>&6 |
6638 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6639 |
- cat >> confdefs.h <<EOF |
6640 |
-#define $ac_tr_hdr 1 |
6641 |
-EOF |
6642 |
- |
6643 |
-else |
6644 |
- echo "$ac_t""no" 1>&6 |
6645 |
+for ac_header in sgtty.h |
6646 |
+do : |
6647 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" |
6648 |
+if test "x$ac_cv_header_sgtty_h" = xyes; then : |
6649 |
+ cat >>confdefs.h <<_ACEOF |
6650 |
+#define HAVE_SGTTY_H 1 |
6651 |
+_ACEOF |
6652 |
+ |
6653 |
fi |
6654 |
+ |
6655 |
done |
6656 |
|
6657 |
-for ac_hdr in string.h |
6658 |
-do |
6659 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6660 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6661 |
-echo "configure:2809: checking for $ac_hdr" >&5 |
6662 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6663 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6664 |
-else |
6665 |
- cat > conftest.$ac_ext <<EOF |
6666 |
-#line 2814 "configure" |
6667 |
-#include "confdefs.h" |
6668 |
-#include <$ac_hdr> |
6669 |
-EOF |
6670 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6671 |
-{ (eval echo configure:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6672 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6673 |
-if test -z "$ac_err"; then |
6674 |
- rm -rf conftest* |
6675 |
- eval "ac_cv_header_$ac_safe=yes" |
6676 |
-else |
6677 |
- echo "$ac_err" >&5 |
6678 |
- echo "configure: failed program was:" >&5 |
6679 |
- cat conftest.$ac_ext >&5 |
6680 |
- rm -rf conftest* |
6681 |
- eval "ac_cv_header_$ac_safe=no" |
6682 |
-fi |
6683 |
-rm -f conftest* |
6684 |
-fi |
6685 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6686 |
- echo "$ac_t""yes" 1>&6 |
6687 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6688 |
- cat >> confdefs.h <<EOF |
6689 |
-#define $ac_tr_hdr 1 |
6690 |
-EOF |
6691 |
- |
6692 |
-else |
6693 |
- echo "$ac_t""no" 1>&6 |
6694 |
+for ac_header in stdarg.h |
6695 |
+do : |
6696 |
+ ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
6697 |
+if test "x$ac_cv_header_stdarg_h" = xyes; then : |
6698 |
+ cat >>confdefs.h <<_ACEOF |
6699 |
+#define HAVE_STDARG_H 1 |
6700 |
+_ACEOF |
6701 |
+ |
6702 |
fi |
6703 |
+ |
6704 |
done |
6705 |
|
6706 |
-for ac_hdr in strings.h |
6707 |
-do |
6708 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6709 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6710 |
-echo "configure:2849: checking for $ac_hdr" >&5 |
6711 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6712 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6713 |
-else |
6714 |
- cat > conftest.$ac_ext <<EOF |
6715 |
-#line 2854 "configure" |
6716 |
-#include "confdefs.h" |
6717 |
-#include <$ac_hdr> |
6718 |
-EOF |
6719 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6720 |
-{ (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6721 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6722 |
-if test -z "$ac_err"; then |
6723 |
- rm -rf conftest* |
6724 |
- eval "ac_cv_header_$ac_safe=yes" |
6725 |
-else |
6726 |
- echo "$ac_err" >&5 |
6727 |
- echo "configure: failed program was:" >&5 |
6728 |
- cat conftest.$ac_ext >&5 |
6729 |
- rm -rf conftest* |
6730 |
- eval "ac_cv_header_$ac_safe=no" |
6731 |
-fi |
6732 |
-rm -f conftest* |
6733 |
-fi |
6734 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6735 |
- echo "$ac_t""yes" 1>&6 |
6736 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6737 |
- cat >> confdefs.h <<EOF |
6738 |
-#define $ac_tr_hdr 1 |
6739 |
-EOF |
6740 |
- |
6741 |
-else |
6742 |
- echo "$ac_t""no" 1>&6 |
6743 |
+for ac_header in string.h |
6744 |
+do : |
6745 |
+ ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
6746 |
+if test "x$ac_cv_header_string_h" = xyes; then : |
6747 |
+ cat >>confdefs.h <<_ACEOF |
6748 |
+#define HAVE_STRING_H 1 |
6749 |
+_ACEOF |
6750 |
+ |
6751 |
fi |
6752 |
+ |
6753 |
done |
6754 |
|
6755 |
-for ac_hdr in sys/cygwin.h |
6756 |
-do |
6757 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6758 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6759 |
-echo "configure:2889: checking for $ac_hdr" >&5 |
6760 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6761 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6762 |
-else |
6763 |
- cat > conftest.$ac_ext <<EOF |
6764 |
-#line 2894 "configure" |
6765 |
-#include "confdefs.h" |
6766 |
-#include <$ac_hdr> |
6767 |
-EOF |
6768 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6769 |
-{ (eval echo configure:2899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6770 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6771 |
-if test -z "$ac_err"; then |
6772 |
- rm -rf conftest* |
6773 |
- eval "ac_cv_header_$ac_safe=yes" |
6774 |
-else |
6775 |
- echo "$ac_err" >&5 |
6776 |
- echo "configure: failed program was:" >&5 |
6777 |
- cat conftest.$ac_ext >&5 |
6778 |
- rm -rf conftest* |
6779 |
- eval "ac_cv_header_$ac_safe=no" |
6780 |
-fi |
6781 |
-rm -f conftest* |
6782 |
-fi |
6783 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6784 |
- echo "$ac_t""yes" 1>&6 |
6785 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6786 |
- cat >> confdefs.h <<EOF |
6787 |
-#define $ac_tr_hdr 1 |
6788 |
-EOF |
6789 |
- |
6790 |
-else |
6791 |
- echo "$ac_t""no" 1>&6 |
6792 |
+for ac_header in strings.h |
6793 |
+do : |
6794 |
+ ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
6795 |
+if test "x$ac_cv_header_strings_h" = xyes; then : |
6796 |
+ cat >>confdefs.h <<_ACEOF |
6797 |
+#define HAVE_STRINGS_H 1 |
6798 |
+_ACEOF |
6799 |
+ |
6800 |
fi |
6801 |
+ |
6802 |
done |
6803 |
|
6804 |
-for ac_hdr in sys/file.h |
6805 |
-do |
6806 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6807 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6808 |
-echo "configure:2929: checking for $ac_hdr" >&5 |
6809 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6810 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6811 |
-else |
6812 |
- cat > conftest.$ac_ext <<EOF |
6813 |
-#line 2934 "configure" |
6814 |
-#include "confdefs.h" |
6815 |
-#include <$ac_hdr> |
6816 |
-EOF |
6817 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6818 |
-{ (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6819 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6820 |
-if test -z "$ac_err"; then |
6821 |
- rm -rf conftest* |
6822 |
- eval "ac_cv_header_$ac_safe=yes" |
6823 |
-else |
6824 |
- echo "$ac_err" >&5 |
6825 |
- echo "configure: failed program was:" >&5 |
6826 |
- cat conftest.$ac_ext >&5 |
6827 |
- rm -rf conftest* |
6828 |
- eval "ac_cv_header_$ac_safe=no" |
6829 |
-fi |
6830 |
-rm -f conftest* |
6831 |
-fi |
6832 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6833 |
- echo "$ac_t""yes" 1>&6 |
6834 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6835 |
- cat >> confdefs.h <<EOF |
6836 |
-#define $ac_tr_hdr 1 |
6837 |
-EOF |
6838 |
- |
6839 |
-else |
6840 |
- echo "$ac_t""no" 1>&6 |
6841 |
+for ac_header in sys/cygwin.h |
6842 |
+do : |
6843 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/cygwin.h" "ac_cv_header_sys_cygwin_h" "$ac_includes_default" |
6844 |
+if test "x$ac_cv_header_sys_cygwin_h" = xyes; then : |
6845 |
+ cat >>confdefs.h <<_ACEOF |
6846 |
+#define HAVE_SYS_CYGWIN_H 1 |
6847 |
+_ACEOF |
6848 |
+ |
6849 |
fi |
6850 |
+ |
6851 |
done |
6852 |
|
6853 |
-for ac_hdr in sys/fmutex.h |
6854 |
-do |
6855 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6856 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6857 |
-echo "configure:2969: checking for $ac_hdr" >&5 |
6858 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6859 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6860 |
-else |
6861 |
- cat > conftest.$ac_ext <<EOF |
6862 |
-#line 2974 "configure" |
6863 |
-#include "confdefs.h" |
6864 |
-#include <$ac_hdr> |
6865 |
-EOF |
6866 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6867 |
-{ (eval echo configure:2979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6868 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6869 |
-if test -z "$ac_err"; then |
6870 |
- rm -rf conftest* |
6871 |
- eval "ac_cv_header_$ac_safe=yes" |
6872 |
-else |
6873 |
- echo "$ac_err" >&5 |
6874 |
- echo "configure: failed program was:" >&5 |
6875 |
- cat conftest.$ac_ext >&5 |
6876 |
- rm -rf conftest* |
6877 |
- eval "ac_cv_header_$ac_safe=no" |
6878 |
-fi |
6879 |
-rm -f conftest* |
6880 |
-fi |
6881 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6882 |
- echo "$ac_t""yes" 1>&6 |
6883 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6884 |
- cat >> confdefs.h <<EOF |
6885 |
-#define $ac_tr_hdr 1 |
6886 |
-EOF |
6887 |
- |
6888 |
-else |
6889 |
- echo "$ac_t""no" 1>&6 |
6890 |
+for ac_header in sys/file.h |
6891 |
+do : |
6892 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
6893 |
+if test "x$ac_cv_header_sys_file_h" = xyes; then : |
6894 |
+ cat >>confdefs.h <<_ACEOF |
6895 |
+#define HAVE_SYS_FILE_H 1 |
6896 |
+_ACEOF |
6897 |
+ |
6898 |
fi |
6899 |
+ |
6900 |
done |
6901 |
|
6902 |
-for ac_hdr in sys/ioctl.h |
6903 |
-do |
6904 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6905 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6906 |
-echo "configure:3009: checking for $ac_hdr" >&5 |
6907 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6908 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6909 |
-else |
6910 |
- cat > conftest.$ac_ext <<EOF |
6911 |
-#line 3014 "configure" |
6912 |
-#include "confdefs.h" |
6913 |
-#include <$ac_hdr> |
6914 |
-EOF |
6915 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6916 |
-{ (eval echo configure:3019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6917 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6918 |
-if test -z "$ac_err"; then |
6919 |
- rm -rf conftest* |
6920 |
- eval "ac_cv_header_$ac_safe=yes" |
6921 |
-else |
6922 |
- echo "$ac_err" >&5 |
6923 |
- echo "configure: failed program was:" >&5 |
6924 |
- cat conftest.$ac_ext >&5 |
6925 |
- rm -rf conftest* |
6926 |
- eval "ac_cv_header_$ac_safe=no" |
6927 |
-fi |
6928 |
-rm -f conftest* |
6929 |
-fi |
6930 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6931 |
- echo "$ac_t""yes" 1>&6 |
6932 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6933 |
- cat >> confdefs.h <<EOF |
6934 |
-#define $ac_tr_hdr 1 |
6935 |
-EOF |
6936 |
- |
6937 |
-else |
6938 |
- echo "$ac_t""no" 1>&6 |
6939 |
+for ac_header in sys/fmutex.h |
6940 |
+do : |
6941 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/fmutex.h" "ac_cv_header_sys_fmutex_h" "$ac_includes_default" |
6942 |
+if test "x$ac_cv_header_sys_fmutex_h" = xyes; then : |
6943 |
+ cat >>confdefs.h <<_ACEOF |
6944 |
+#define HAVE_SYS_FMUTEX_H 1 |
6945 |
+_ACEOF |
6946 |
+ |
6947 |
fi |
6948 |
+ |
6949 |
done |
6950 |
|
6951 |
-for ac_hdr in sys/resource.h |
6952 |
-do |
6953 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6954 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6955 |
-echo "configure:3049: checking for $ac_hdr" >&5 |
6956 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6957 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
6958 |
-else |
6959 |
- cat > conftest.$ac_ext <<EOF |
6960 |
-#line 3054 "configure" |
6961 |
-#include "confdefs.h" |
6962 |
-#include <$ac_hdr> |
6963 |
-EOF |
6964 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6965 |
-{ (eval echo configure:3059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6966 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6967 |
-if test -z "$ac_err"; then |
6968 |
- rm -rf conftest* |
6969 |
- eval "ac_cv_header_$ac_safe=yes" |
6970 |
-else |
6971 |
- echo "$ac_err" >&5 |
6972 |
- echo "configure: failed program was:" >&5 |
6973 |
- cat conftest.$ac_ext >&5 |
6974 |
- rm -rf conftest* |
6975 |
- eval "ac_cv_header_$ac_safe=no" |
6976 |
-fi |
6977 |
-rm -f conftest* |
6978 |
-fi |
6979 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
6980 |
- echo "$ac_t""yes" 1>&6 |
6981 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
6982 |
- cat >> confdefs.h <<EOF |
6983 |
-#define $ac_tr_hdr 1 |
6984 |
-EOF |
6985 |
- |
6986 |
-else |
6987 |
- echo "$ac_t""no" 1>&6 |
6988 |
+for ac_header in sys/ioctl.h |
6989 |
+do : |
6990 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
6991 |
+if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : |
6992 |
+ cat >>confdefs.h <<_ACEOF |
6993 |
+#define HAVE_SYS_IOCTL_H 1 |
6994 |
+_ACEOF |
6995 |
+ |
6996 |
fi |
6997 |
+ |
6998 |
done |
6999 |
|
7000 |
-for ac_hdr in sys/select.h |
7001 |
-do |
7002 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7003 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7004 |
-echo "configure:3089: checking for $ac_hdr" >&5 |
7005 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7006 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7007 |
-else |
7008 |
- cat > conftest.$ac_ext <<EOF |
7009 |
-#line 3094 "configure" |
7010 |
-#include "confdefs.h" |
7011 |
-#include <$ac_hdr> |
7012 |
-EOF |
7013 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7014 |
-{ (eval echo configure:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7015 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7016 |
-if test -z "$ac_err"; then |
7017 |
- rm -rf conftest* |
7018 |
- eval "ac_cv_header_$ac_safe=yes" |
7019 |
-else |
7020 |
- echo "$ac_err" >&5 |
7021 |
- echo "configure: failed program was:" >&5 |
7022 |
- cat conftest.$ac_ext >&5 |
7023 |
- rm -rf conftest* |
7024 |
- eval "ac_cv_header_$ac_safe=no" |
7025 |
-fi |
7026 |
-rm -f conftest* |
7027 |
-fi |
7028 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7029 |
- echo "$ac_t""yes" 1>&6 |
7030 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7031 |
- cat >> confdefs.h <<EOF |
7032 |
-#define $ac_tr_hdr 1 |
7033 |
-EOF |
7034 |
- |
7035 |
-else |
7036 |
- echo "$ac_t""no" 1>&6 |
7037 |
+for ac_header in sys/resource.h |
7038 |
+do : |
7039 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
7040 |
+if test "x$ac_cv_header_sys_resource_h" = xyes; then : |
7041 |
+ cat >>confdefs.h <<_ACEOF |
7042 |
+#define HAVE_SYS_RESOURCE_H 1 |
7043 |
+_ACEOF |
7044 |
+ |
7045 |
fi |
7046 |
+ |
7047 |
done |
7048 |
|
7049 |
-for ac_hdr in sys/time.h |
7050 |
-do |
7051 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7052 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7053 |
-echo "configure:3129: checking for $ac_hdr" >&5 |
7054 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7055 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7056 |
-else |
7057 |
- cat > conftest.$ac_ext <<EOF |
7058 |
-#line 3134 "configure" |
7059 |
-#include "confdefs.h" |
7060 |
-#include <$ac_hdr> |
7061 |
-EOF |
7062 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7063 |
-{ (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7064 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7065 |
-if test -z "$ac_err"; then |
7066 |
- rm -rf conftest* |
7067 |
- eval "ac_cv_header_$ac_safe=yes" |
7068 |
-else |
7069 |
- echo "$ac_err" >&5 |
7070 |
- echo "configure: failed program was:" >&5 |
7071 |
- cat conftest.$ac_ext >&5 |
7072 |
- rm -rf conftest* |
7073 |
- eval "ac_cv_header_$ac_safe=no" |
7074 |
-fi |
7075 |
-rm -f conftest* |
7076 |
-fi |
7077 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7078 |
- echo "$ac_t""yes" 1>&6 |
7079 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7080 |
- cat >> confdefs.h <<EOF |
7081 |
-#define $ac_tr_hdr 1 |
7082 |
-EOF |
7083 |
- |
7084 |
-else |
7085 |
- echo "$ac_t""no" 1>&6 |
7086 |
+for ac_header in sys/select.h |
7087 |
+do : |
7088 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
7089 |
+if test "x$ac_cv_header_sys_select_h" = xyes; then : |
7090 |
+ cat >>confdefs.h <<_ACEOF |
7091 |
+#define HAVE_SYS_SELECT_H 1 |
7092 |
+_ACEOF |
7093 |
+ |
7094 |
fi |
7095 |
+ |
7096 |
done |
7097 |
|
7098 |
-for ac_hdr in sys/un.h |
7099 |
-do |
7100 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7101 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7102 |
-echo "configure:3169: checking for $ac_hdr" >&5 |
7103 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7104 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7105 |
-else |
7106 |
- cat > conftest.$ac_ext <<EOF |
7107 |
-#line 3174 "configure" |
7108 |
-#include "confdefs.h" |
7109 |
-#include <$ac_hdr> |
7110 |
-EOF |
7111 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7112 |
-{ (eval echo configure:3179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7113 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7114 |
-if test -z "$ac_err"; then |
7115 |
- rm -rf conftest* |
7116 |
- eval "ac_cv_header_$ac_safe=yes" |
7117 |
-else |
7118 |
- echo "$ac_err" >&5 |
7119 |
- echo "configure: failed program was:" >&5 |
7120 |
- cat conftest.$ac_ext >&5 |
7121 |
- rm -rf conftest* |
7122 |
- eval "ac_cv_header_$ac_safe=no" |
7123 |
-fi |
7124 |
-rm -f conftest* |
7125 |
-fi |
7126 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7127 |
- echo "$ac_t""yes" 1>&6 |
7128 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7129 |
- cat >> confdefs.h <<EOF |
7130 |
-#define $ac_tr_hdr 1 |
7131 |
-EOF |
7132 |
- |
7133 |
-else |
7134 |
- echo "$ac_t""no" 1>&6 |
7135 |
+for ac_header in sys/time.h |
7136 |
+do : |
7137 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
7138 |
+if test "x$ac_cv_header_sys_time_h" = xyes; then : |
7139 |
+ cat >>confdefs.h <<_ACEOF |
7140 |
+#define HAVE_SYS_TIME_H 1 |
7141 |
+_ACEOF |
7142 |
+ |
7143 |
fi |
7144 |
+ |
7145 |
done |
7146 |
|
7147 |
-for ac_hdr in sys/utsname.h |
7148 |
-do |
7149 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7150 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7151 |
-echo "configure:3209: checking for $ac_hdr" >&5 |
7152 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7153 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7154 |
-else |
7155 |
- cat > conftest.$ac_ext <<EOF |
7156 |
-#line 3214 "configure" |
7157 |
-#include "confdefs.h" |
7158 |
-#include <$ac_hdr> |
7159 |
-EOF |
7160 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7161 |
-{ (eval echo configure:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7162 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7163 |
-if test -z "$ac_err"; then |
7164 |
- rm -rf conftest* |
7165 |
- eval "ac_cv_header_$ac_safe=yes" |
7166 |
-else |
7167 |
- echo "$ac_err" >&5 |
7168 |
- echo "configure: failed program was:" >&5 |
7169 |
- cat conftest.$ac_ext >&5 |
7170 |
- rm -rf conftest* |
7171 |
- eval "ac_cv_header_$ac_safe=no" |
7172 |
-fi |
7173 |
-rm -f conftest* |
7174 |
-fi |
7175 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7176 |
- echo "$ac_t""yes" 1>&6 |
7177 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7178 |
- cat >> confdefs.h <<EOF |
7179 |
-#define $ac_tr_hdr 1 |
7180 |
-EOF |
7181 |
- |
7182 |
-else |
7183 |
- echo "$ac_t""no" 1>&6 |
7184 |
+for ac_header in sys/un.h |
7185 |
+do : |
7186 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
7187 |
+if test "x$ac_cv_header_sys_un_h" = xyes; then : |
7188 |
+ cat >>confdefs.h <<_ACEOF |
7189 |
+#define HAVE_SYS_UN_H 1 |
7190 |
+_ACEOF |
7191 |
+ |
7192 |
fi |
7193 |
+ |
7194 |
done |
7195 |
|
7196 |
-for ac_hdr in termios.h |
7197 |
-do |
7198 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7199 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7200 |
-echo "configure:3249: checking for $ac_hdr" >&5 |
7201 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7202 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7203 |
-else |
7204 |
- cat > conftest.$ac_ext <<EOF |
7205 |
-#line 3254 "configure" |
7206 |
-#include "confdefs.h" |
7207 |
-#include <$ac_hdr> |
7208 |
-EOF |
7209 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7210 |
-{ (eval echo configure:3259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7211 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7212 |
-if test -z "$ac_err"; then |
7213 |
- rm -rf conftest* |
7214 |
- eval "ac_cv_header_$ac_safe=yes" |
7215 |
-else |
7216 |
- echo "$ac_err" >&5 |
7217 |
- echo "configure: failed program was:" >&5 |
7218 |
- cat conftest.$ac_ext >&5 |
7219 |
- rm -rf conftest* |
7220 |
- eval "ac_cv_header_$ac_safe=no" |
7221 |
-fi |
7222 |
-rm -f conftest* |
7223 |
-fi |
7224 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7225 |
- echo "$ac_t""yes" 1>&6 |
7226 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7227 |
- cat >> confdefs.h <<EOF |
7228 |
-#define $ac_tr_hdr 1 |
7229 |
-EOF |
7230 |
- |
7231 |
-else |
7232 |
- echo "$ac_t""no" 1>&6 |
7233 |
+for ac_header in sys/utsname.h |
7234 |
+do : |
7235 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
7236 |
+if test "x$ac_cv_header_sys_utsname_h" = xyes; then : |
7237 |
+ cat >>confdefs.h <<_ACEOF |
7238 |
+#define HAVE_SYS_UTSNAME_H 1 |
7239 |
+_ACEOF |
7240 |
+ |
7241 |
fi |
7242 |
+ |
7243 |
done |
7244 |
|
7245 |
-for ac_hdr in time.h |
7246 |
-do |
7247 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7248 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7249 |
-echo "configure:3289: checking for $ac_hdr" >&5 |
7250 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7251 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7252 |
-else |
7253 |
- cat > conftest.$ac_ext <<EOF |
7254 |
-#line 3294 "configure" |
7255 |
-#include "confdefs.h" |
7256 |
-#include <$ac_hdr> |
7257 |
-EOF |
7258 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7259 |
-{ (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7260 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7261 |
-if test -z "$ac_err"; then |
7262 |
- rm -rf conftest* |
7263 |
- eval "ac_cv_header_$ac_safe=yes" |
7264 |
-else |
7265 |
- echo "$ac_err" >&5 |
7266 |
- echo "configure: failed program was:" >&5 |
7267 |
- cat conftest.$ac_ext >&5 |
7268 |
- rm -rf conftest* |
7269 |
- eval "ac_cv_header_$ac_safe=no" |
7270 |
-fi |
7271 |
-rm -f conftest* |
7272 |
-fi |
7273 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7274 |
- echo "$ac_t""yes" 1>&6 |
7275 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7276 |
- cat >> confdefs.h <<EOF |
7277 |
-#define $ac_tr_hdr 1 |
7278 |
-EOF |
7279 |
- |
7280 |
-else |
7281 |
- echo "$ac_t""no" 1>&6 |
7282 |
+for ac_header in termios.h |
7283 |
+do : |
7284 |
+ ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
7285 |
+if test "x$ac_cv_header_termios_h" = xyes; then : |
7286 |
+ cat >>confdefs.h <<_ACEOF |
7287 |
+#define HAVE_TERMIOS_H 1 |
7288 |
+_ACEOF |
7289 |
+ |
7290 |
fi |
7291 |
+ |
7292 |
done |
7293 |
|
7294 |
-for ac_hdr in umalloc.h |
7295 |
-do |
7296 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7297 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7298 |
-echo "configure:3329: checking for $ac_hdr" >&5 |
7299 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7300 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7301 |
-else |
7302 |
- cat > conftest.$ac_ext <<EOF |
7303 |
-#line 3334 "configure" |
7304 |
-#include "confdefs.h" |
7305 |
-#include <$ac_hdr> |
7306 |
-EOF |
7307 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7308 |
-{ (eval echo configure:3339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7309 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7310 |
-if test -z "$ac_err"; then |
7311 |
- rm -rf conftest* |
7312 |
- eval "ac_cv_header_$ac_safe=yes" |
7313 |
-else |
7314 |
- echo "$ac_err" >&5 |
7315 |
- echo "configure: failed program was:" >&5 |
7316 |
- cat conftest.$ac_ext >&5 |
7317 |
- rm -rf conftest* |
7318 |
- eval "ac_cv_header_$ac_safe=no" |
7319 |
-fi |
7320 |
-rm -f conftest* |
7321 |
-fi |
7322 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7323 |
- echo "$ac_t""yes" 1>&6 |
7324 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7325 |
- cat >> confdefs.h <<EOF |
7326 |
-#define $ac_tr_hdr 1 |
7327 |
-EOF |
7328 |
- |
7329 |
-else |
7330 |
- echo "$ac_t""no" 1>&6 |
7331 |
+for ac_header in time.h |
7332 |
+do : |
7333 |
+ ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
7334 |
+if test "x$ac_cv_header_time_h" = xyes; then : |
7335 |
+ cat >>confdefs.h <<_ACEOF |
7336 |
+#define HAVE_TIME_H 1 |
7337 |
+_ACEOF |
7338 |
+ |
7339 |
fi |
7340 |
+ |
7341 |
done |
7342 |
|
7343 |
-for ac_hdr in unistd.h |
7344 |
-do |
7345 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7346 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7347 |
-echo "configure:3369: checking for $ac_hdr" >&5 |
7348 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7349 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7350 |
-else |
7351 |
- cat > conftest.$ac_ext <<EOF |
7352 |
-#line 3374 "configure" |
7353 |
-#include "confdefs.h" |
7354 |
-#include <$ac_hdr> |
7355 |
-EOF |
7356 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7357 |
-{ (eval echo configure:3379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7358 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7359 |
-if test -z "$ac_err"; then |
7360 |
- rm -rf conftest* |
7361 |
- eval "ac_cv_header_$ac_safe=yes" |
7362 |
-else |
7363 |
- echo "$ac_err" >&5 |
7364 |
- echo "configure: failed program was:" >&5 |
7365 |
- cat conftest.$ac_ext >&5 |
7366 |
- rm -rf conftest* |
7367 |
- eval "ac_cv_header_$ac_safe=no" |
7368 |
-fi |
7369 |
-rm -f conftest* |
7370 |
-fi |
7371 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7372 |
- echo "$ac_t""yes" 1>&6 |
7373 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7374 |
- cat >> confdefs.h <<EOF |
7375 |
-#define $ac_tr_hdr 1 |
7376 |
-EOF |
7377 |
- |
7378 |
-else |
7379 |
- echo "$ac_t""no" 1>&6 |
7380 |
+for ac_header in umalloc.h |
7381 |
+do : |
7382 |
+ ac_fn_c_check_header_mongrel "$LINENO" "umalloc.h" "ac_cv_header_umalloc_h" "$ac_includes_default" |
7383 |
+if test "x$ac_cv_header_umalloc_h" = xyes; then : |
7384 |
+ cat >>confdefs.h <<_ACEOF |
7385 |
+#define HAVE_UMALLOC_H 1 |
7386 |
+_ACEOF |
7387 |
+ |
7388 |
fi |
7389 |
+ |
7390 |
done |
7391 |
|
7392 |
-for ac_hdr in unixlib.h |
7393 |
-do |
7394 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7395 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7396 |
-echo "configure:3409: checking for $ac_hdr" >&5 |
7397 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7398 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7399 |
-else |
7400 |
- cat > conftest.$ac_ext <<EOF |
7401 |
-#line 3414 "configure" |
7402 |
-#include "confdefs.h" |
7403 |
-#include <$ac_hdr> |
7404 |
-EOF |
7405 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7406 |
-{ (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7407 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7408 |
-if test -z "$ac_err"; then |
7409 |
- rm -rf conftest* |
7410 |
- eval "ac_cv_header_$ac_safe=yes" |
7411 |
-else |
7412 |
- echo "$ac_err" >&5 |
7413 |
- echo "configure: failed program was:" >&5 |
7414 |
- cat conftest.$ac_ext >&5 |
7415 |
- rm -rf conftest* |
7416 |
- eval "ac_cv_header_$ac_safe=no" |
7417 |
-fi |
7418 |
-rm -f conftest* |
7419 |
-fi |
7420 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7421 |
- echo "$ac_t""yes" 1>&6 |
7422 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7423 |
- cat >> confdefs.h <<EOF |
7424 |
-#define $ac_tr_hdr 1 |
7425 |
-EOF |
7426 |
- |
7427 |
-else |
7428 |
- echo "$ac_t""no" 1>&6 |
7429 |
+for ac_header in unistd.h |
7430 |
+do : |
7431 |
+ ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
7432 |
+if test "x$ac_cv_header_unistd_h" = xyes; then : |
7433 |
+ cat >>confdefs.h <<_ACEOF |
7434 |
+#define HAVE_UNISTD_H 1 |
7435 |
+_ACEOF |
7436 |
+ |
7437 |
fi |
7438 |
+ |
7439 |
done |
7440 |
|
7441 |
-for ac_hdr in utime.h |
7442 |
-do |
7443 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7444 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7445 |
-echo "configure:3449: checking for $ac_hdr" >&5 |
7446 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7447 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7448 |
-else |
7449 |
- cat > conftest.$ac_ext <<EOF |
7450 |
-#line 3454 "configure" |
7451 |
-#include "confdefs.h" |
7452 |
-#include <$ac_hdr> |
7453 |
-EOF |
7454 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7455 |
-{ (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7456 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7457 |
-if test -z "$ac_err"; then |
7458 |
- rm -rf conftest* |
7459 |
- eval "ac_cv_header_$ac_safe=yes" |
7460 |
-else |
7461 |
- echo "$ac_err" >&5 |
7462 |
- echo "configure: failed program was:" >&5 |
7463 |
- cat conftest.$ac_ext >&5 |
7464 |
- rm -rf conftest* |
7465 |
- eval "ac_cv_header_$ac_safe=no" |
7466 |
-fi |
7467 |
-rm -f conftest* |
7468 |
-fi |
7469 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7470 |
- echo "$ac_t""yes" 1>&6 |
7471 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7472 |
- cat >> confdefs.h <<EOF |
7473 |
-#define $ac_tr_hdr 1 |
7474 |
-EOF |
7475 |
- |
7476 |
-else |
7477 |
- echo "$ac_t""no" 1>&6 |
7478 |
+for ac_header in unixlib.h |
7479 |
+do : |
7480 |
+ ac_fn_c_check_header_mongrel "$LINENO" "unixlib.h" "ac_cv_header_unixlib_h" "$ac_includes_default" |
7481 |
+if test "x$ac_cv_header_unixlib_h" = xyes; then : |
7482 |
+ cat >>confdefs.h <<_ACEOF |
7483 |
+#define HAVE_UNIXLIB_H 1 |
7484 |
+_ACEOF |
7485 |
+ |
7486 |
fi |
7487 |
+ |
7488 |
done |
7489 |
|
7490 |
-for ac_hdr in uwin.h |
7491 |
-do |
7492 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7493 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7494 |
-echo "configure:3489: checking for $ac_hdr" >&5 |
7495 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7496 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7497 |
-else |
7498 |
- cat > conftest.$ac_ext <<EOF |
7499 |
-#line 3494 "configure" |
7500 |
-#include "confdefs.h" |
7501 |
-#include <$ac_hdr> |
7502 |
-EOF |
7503 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7504 |
-{ (eval echo configure:3499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7505 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7506 |
-if test -z "$ac_err"; then |
7507 |
- rm -rf conftest* |
7508 |
- eval "ac_cv_header_$ac_safe=yes" |
7509 |
-else |
7510 |
- echo "$ac_err" >&5 |
7511 |
- echo "configure: failed program was:" >&5 |
7512 |
- cat conftest.$ac_ext >&5 |
7513 |
- rm -rf conftest* |
7514 |
- eval "ac_cv_header_$ac_safe=no" |
7515 |
-fi |
7516 |
-rm -f conftest* |
7517 |
-fi |
7518 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7519 |
- echo "$ac_t""yes" 1>&6 |
7520 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7521 |
- cat >> confdefs.h <<EOF |
7522 |
-#define $ac_tr_hdr 1 |
7523 |
-EOF |
7524 |
- |
7525 |
-else |
7526 |
- echo "$ac_t""no" 1>&6 |
7527 |
+for ac_header in utime.h |
7528 |
+do : |
7529 |
+ ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
7530 |
+if test "x$ac_cv_header_utime_h" = xyes; then : |
7531 |
+ cat >>confdefs.h <<_ACEOF |
7532 |
+#define HAVE_UTIME_H 1 |
7533 |
+_ACEOF |
7534 |
+ |
7535 |
fi |
7536 |
+ |
7537 |
done |
7538 |
|
7539 |
-for ac_hdr in values.h |
7540 |
-do |
7541 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7542 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7543 |
-echo "configure:3529: checking for $ac_hdr" >&5 |
7544 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7545 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7546 |
-else |
7547 |
- cat > conftest.$ac_ext <<EOF |
7548 |
-#line 3534 "configure" |
7549 |
-#include "confdefs.h" |
7550 |
-#include <$ac_hdr> |
7551 |
-EOF |
7552 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7553 |
-{ (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7554 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7555 |
-if test -z "$ac_err"; then |
7556 |
- rm -rf conftest* |
7557 |
- eval "ac_cv_header_$ac_safe=yes" |
7558 |
-else |
7559 |
- echo "$ac_err" >&5 |
7560 |
- echo "configure: failed program was:" >&5 |
7561 |
- cat conftest.$ac_ext >&5 |
7562 |
- rm -rf conftest* |
7563 |
- eval "ac_cv_header_$ac_safe=no" |
7564 |
-fi |
7565 |
-rm -f conftest* |
7566 |
+for ac_header in uwin.h |
7567 |
+do : |
7568 |
+ ac_fn_c_check_header_mongrel "$LINENO" "uwin.h" "ac_cv_header_uwin_h" "$ac_includes_default" |
7569 |
+if test "x$ac_cv_header_uwin_h" = xyes; then : |
7570 |
+ cat >>confdefs.h <<_ACEOF |
7571 |
+#define HAVE_UWIN_H 1 |
7572 |
+_ACEOF |
7573 |
+ |
7574 |
fi |
7575 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7576 |
- echo "$ac_t""yes" 1>&6 |
7577 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7578 |
- cat >> confdefs.h <<EOF |
7579 |
-#define $ac_tr_hdr 1 |
7580 |
-EOF |
7581 |
- |
7582 |
-else |
7583 |
- echo "$ac_t""no" 1>&6 |
7584 |
+ |
7585 |
+done |
7586 |
+ |
7587 |
+for ac_header in values.h |
7588 |
+do : |
7589 |
+ ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" |
7590 |
+if test "x$ac_cv_header_values_h" = xyes; then : |
7591 |
+ cat >>confdefs.h <<_ACEOF |
7592 |
+#define HAVE_VALUES_H 1 |
7593 |
+_ACEOF |
7594 |
+ |
7595 |
fi |
7596 |
+ |
7597 |
done |
7598 |
|
7599 |
|
7600 |
if test "$ac_cv_header_stdarg_h" != yes; then |
7601 |
- { echo "configure: error: stdarg.h not present" 1>&2; exit 1; } |
7602 |
+ as_fn_error $? "stdarg.h not present" "$LINENO" 5 |
7603 |
fi |
7604 |
|
7605 |
-echo $ac_n "checking for working const""... $ac_c" 1>&6 |
7606 |
-echo "configure:3571: checking for working const" >&5 |
7607 |
-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
7608 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7609 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
7610 |
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
7611 |
+if ${ac_cv_c_const+:} false; then : |
7612 |
+ $as_echo_n "(cached) " >&6 |
7613 |
else |
7614 |
- cat > conftest.$ac_ext <<EOF |
7615 |
-#line 3576 "configure" |
7616 |
-#include "confdefs.h" |
7617 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7618 |
+/* end confdefs.h. */ |
7619 |
|
7620 |
-int main() { |
7621 |
+int |
7622 |
+main () |
7623 |
+{ |
7624 |
|
7625 |
-/* Ultrix mips cc rejects this. */ |
7626 |
-typedef int charset[2]; const charset x; |
7627 |
-/* SunOS 4.1.1 cc rejects this. */ |
7628 |
-char const *const *ccp; |
7629 |
-char **p; |
7630 |
-/* NEC SVR4.0.2 mips cc rejects this. */ |
7631 |
-struct point {int x, y;}; |
7632 |
-static struct point const zero = {0,0}; |
7633 |
-/* AIX XL C 1.02.0.0 rejects this. |
7634 |
- It does not let you subtract one const X* pointer from another in an arm |
7635 |
- of an if-expression whose if-part is not a constant expression */ |
7636 |
-const char *g = "string"; |
7637 |
-ccp = &g + (g ? g-g : 0); |
7638 |
-/* HPUX 7.0 cc rejects these. */ |
7639 |
-++ccp; |
7640 |
-p = (char**) ccp; |
7641 |
-ccp = (char const *const *) p; |
7642 |
-{ /* SCO 3.2v4 cc rejects this. */ |
7643 |
- char *t; |
7644 |
- char const *s = 0 ? (char *) 0 : (char const *) 0; |
7645 |
+#ifndef __cplusplus |
7646 |
+ /* Ultrix mips cc rejects this sort of thing. */ |
7647 |
+ typedef int charset[2]; |
7648 |
+ const charset cs = { 0, 0 }; |
7649 |
+ /* SunOS 4.1.1 cc rejects this. */ |
7650 |
+ char const *const *pcpcc; |
7651 |
+ char **ppc; |
7652 |
+ /* NEC SVR4.0.2 mips cc rejects this. */ |
7653 |
+ struct point {int x, y;}; |
7654 |
+ static struct point const zero = {0,0}; |
7655 |
+ /* AIX XL C 1.02.0.0 rejects this. |
7656 |
+ It does not let you subtract one const X* pointer from another in |
7657 |
+ an arm of an if-expression whose if-part is not a constant |
7658 |
+ expression */ |
7659 |
+ const char *g = "string"; |
7660 |
+ pcpcc = &g + (g ? g-g : 0); |
7661 |
+ /* HPUX 7.0 cc rejects these. */ |
7662 |
+ ++pcpcc; |
7663 |
+ ppc = (char**) pcpcc; |
7664 |
+ pcpcc = (char const *const *) ppc; |
7665 |
+ { /* SCO 3.2v4 cc rejects this sort of thing. */ |
7666 |
+ char tx; |
7667 |
+ char *t = &tx; |
7668 |
+ char const *s = 0 ? (char *) 0 : (char const *) 0; |
7669 |
|
7670 |
- *t++ = 0; |
7671 |
-} |
7672 |
-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
7673 |
- int x[] = {25, 17}; |
7674 |
- const int *foo = &x[0]; |
7675 |
- ++foo; |
7676 |
-} |
7677 |
-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
7678 |
- typedef const int *iptr; |
7679 |
- iptr p = 0; |
7680 |
- ++p; |
7681 |
-} |
7682 |
-{ /* AIX XL C 1.02.0.0 rejects this saying |
7683 |
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
7684 |
- struct s { int j; const int *ap[3]; }; |
7685 |
- struct s *b; b->j = 5; |
7686 |
-} |
7687 |
-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
7688 |
- const int foo = 10; |
7689 |
-} |
7690 |
+ *t++ = 0; |
7691 |
+ if (s) return 0; |
7692 |
+ } |
7693 |
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
7694 |
+ int x[] = {25, 17}; |
7695 |
+ const int *foo = &x[0]; |
7696 |
+ ++foo; |
7697 |
+ } |
7698 |
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
7699 |
+ typedef const int *iptr; |
7700 |
+ iptr p = 0; |
7701 |
+ ++p; |
7702 |
+ } |
7703 |
+ { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7704 |
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
7705 |
+ struct s { int j; const int *ap[3]; } bx; |
7706 |
+ struct s *b = &bx; b->j = 5; |
7707 |
+ } |
7708 |
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
7709 |
+ const int foo = 10; |
7710 |
+ if (!foo) return 0; |
7711 |
+ } |
7712 |
+ return !cs[0] && !zero.x; |
7713 |
+#endif |
7714 |
|
7715 |
-; return 0; } |
7716 |
-EOF |
7717 |
-if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7718 |
- rm -rf conftest* |
7719 |
+ ; |
7720 |
+ return 0; |
7721 |
+} |
7722 |
+_ACEOF |
7723 |
+if ac_fn_c_try_compile "$LINENO"; then : |
7724 |
ac_cv_c_const=yes |
7725 |
else |
7726 |
- echo "configure: failed program was:" >&5 |
7727 |
- cat conftest.$ac_ext >&5 |
7728 |
- rm -rf conftest* |
7729 |
ac_cv_c_const=no |
7730 |
fi |
7731 |
-rm -f conftest* |
7732 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7733 |
fi |
7734 |
- |
7735 |
-echo "$ac_t""$ac_cv_c_const" 1>&6 |
7736 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
7737 |
+$as_echo "$ac_cv_c_const" >&6; } |
7738 |
if test $ac_cv_c_const = no; then |
7739 |
- cat >> confdefs.h <<\EOF |
7740 |
-#define const |
7741 |
-EOF |
7742 |
+ |
7743 |
+$as_echo "#define const /**/" >>confdefs.h |
7744 |
|
7745 |
fi |
7746 |
|
7747 |
-echo $ac_n "checking for inline""... $ac_c" 1>&6 |
7748 |
-echo "configure:3646: checking for inline" >&5 |
7749 |
-if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
7750 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7751 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
7752 |
+$as_echo_n "checking for inline... " >&6; } |
7753 |
+if ${ac_cv_c_inline+:} false; then : |
7754 |
+ $as_echo_n "(cached) " >&6 |
7755 |
else |
7756 |
ac_cv_c_inline=no |
7757 |
for ac_kw in inline __inline__ __inline; do |
7758 |
- cat > conftest.$ac_ext <<EOF |
7759 |
-#line 3653 "configure" |
7760 |
-#include "confdefs.h" |
7761 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7762 |
+/* end confdefs.h. */ |
7763 |
+#ifndef __cplusplus |
7764 |
+typedef int foo_t; |
7765 |
+static $ac_kw foo_t static_foo () {return 0; } |
7766 |
+$ac_kw foo_t foo () {return 0; } |
7767 |
+#endif |
7768 |
|
7769 |
-int main() { |
7770 |
-} $ac_kw foo() { |
7771 |
-; return 0; } |
7772 |
-EOF |
7773 |
-if { (eval echo configure:3660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7774 |
- rm -rf conftest* |
7775 |
- ac_cv_c_inline=$ac_kw; break |
7776 |
-else |
7777 |
- echo "configure: failed program was:" >&5 |
7778 |
- cat conftest.$ac_ext >&5 |
7779 |
+_ACEOF |
7780 |
+if ac_fn_c_try_compile "$LINENO"; then : |
7781 |
+ ac_cv_c_inline=$ac_kw |
7782 |
fi |
7783 |
-rm -f conftest* |
7784 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7785 |
+ test "$ac_cv_c_inline" != no && break |
7786 |
done |
7787 |
|
7788 |
fi |
7789 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
7790 |
+$as_echo "$ac_cv_c_inline" >&6; } |
7791 |
|
7792 |
-echo "$ac_t""$ac_cv_c_inline" 1>&6 |
7793 |
-case "$ac_cv_c_inline" in |
7794 |
+case $ac_cv_c_inline in |
7795 |
inline | yes) ;; |
7796 |
- no) cat >> confdefs.h <<\EOF |
7797 |
-#define inline |
7798 |
-EOF |
7799 |
- ;; |
7800 |
- *) cat >> confdefs.h <<EOF |
7801 |
-#define inline $ac_cv_c_inline |
7802 |
-EOF |
7803 |
- ;; |
7804 |
+ *) |
7805 |
+ case $ac_cv_c_inline in |
7806 |
+ no) ac_val=;; |
7807 |
+ *) ac_val=$ac_cv_c_inline;; |
7808 |
+ esac |
7809 |
+ cat >>confdefs.h <<_ACEOF |
7810 |
+#ifndef __cplusplus |
7811 |
+#define inline $ac_val |
7812 |
+#endif |
7813 |
+_ACEOF |
7814 |
+ ;; |
7815 |
esac |
7816 |
|
7817 |
-echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
7818 |
-echo "configure:3686: checking for size_t" >&5 |
7819 |
-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
7820 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7821 |
-else |
7822 |
- cat > conftest.$ac_ext <<EOF |
7823 |
-#line 3691 "configure" |
7824 |
-#include "confdefs.h" |
7825 |
-#include <sys/types.h> |
7826 |
-#if STDC_HEADERS |
7827 |
-#include <stdlib.h> |
7828 |
-#include <stddef.h> |
7829 |
-#endif |
7830 |
-EOF |
7831 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7832 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7833 |
- rm -rf conftest* |
7834 |
- ac_cv_type_size_t=yes |
7835 |
+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
7836 |
+if test "x$ac_cv_type_size_t" = xyes; then : |
7837 |
+ |
7838 |
else |
7839 |
- rm -rf conftest* |
7840 |
- ac_cv_type_size_t=no |
7841 |
-fi |
7842 |
-rm -f conftest* |
7843 |
|
7844 |
-fi |
7845 |
-echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
7846 |
-if test $ac_cv_type_size_t = no; then |
7847 |
- cat >> confdefs.h <<\EOF |
7848 |
-#define size_t unsigned |
7849 |
-EOF |
7850 |
+cat >>confdefs.h <<_ACEOF |
7851 |
+#define size_t unsigned int |
7852 |
+_ACEOF |
7853 |
|
7854 |
fi |
7855 |
|
7856 |
-echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
7857 |
-echo "configure:3719: checking for pid_t" >&5 |
7858 |
-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7859 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7860 |
-else |
7861 |
- cat > conftest.$ac_ext <<EOF |
7862 |
-#line 3724 "configure" |
7863 |
-#include "confdefs.h" |
7864 |
-#include <sys/types.h> |
7865 |
-#if STDC_HEADERS |
7866 |
-#include <stdlib.h> |
7867 |
-#include <stddef.h> |
7868 |
-#endif |
7869 |
-EOF |
7870 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7871 |
- egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7872 |
- rm -rf conftest* |
7873 |
- ac_cv_type_pid_t=yes |
7874 |
+ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
7875 |
+if test "x$ac_cv_type_pid_t" = xyes; then : |
7876 |
+ |
7877 |
else |
7878 |
- rm -rf conftest* |
7879 |
- ac_cv_type_pid_t=no |
7880 |
-fi |
7881 |
-rm -f conftest* |
7882 |
|
7883 |
-fi |
7884 |
-echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
7885 |
-if test $ac_cv_type_pid_t = no; then |
7886 |
- cat >> confdefs.h <<\EOF |
7887 |
+cat >>confdefs.h <<_ACEOF |
7888 |
#define pid_t int |
7889 |
-EOF |
7890 |
+_ACEOF |
7891 |
|
7892 |
fi |
7893 |
|
7894 |
-echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
7895 |
-echo "configure:3752: checking for socklen_t" >&5 |
7896 |
-if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then |
7897 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7898 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
7899 |
+$as_echo_n "checking for socklen_t... " >&6; } |
7900 |
+if ${ac_cv_have_socklen_t+:} false; then : |
7901 |
+ $as_echo_n "(cached) " >&6 |
7902 |
else |
7903 |
- cat > conftest.$ac_ext <<EOF |
7904 |
-#line 3757 "configure" |
7905 |
-#include "confdefs.h" |
7906 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7907 |
+/* end confdefs.h. */ |
7908 |
|
7909 |
#include <sys/types.h> |
7910 |
#include <sys/socket.h> |
7911 |
- |
7912 |
-int main() { |
7913 |
+ |
7914 |
+int |
7915 |
+main () |
7916 |
+{ |
7917 |
|
7918 |
socklen_t a = 0; |
7919 |
return a; |
7920 |
- |
7921 |
-; return 0; } |
7922 |
-EOF |
7923 |
-if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7924 |
- rm -rf conftest* |
7925 |
+ |
7926 |
+ ; |
7927 |
+ return 0; |
7928 |
+} |
7929 |
+_ACEOF |
7930 |
+if ac_fn_c_try_compile "$LINENO"; then : |
7931 |
ac_cv_have_socklen_t=yes |
7932 |
else |
7933 |
- echo "configure: failed program was:" >&5 |
7934 |
- cat conftest.$ac_ext >&5 |
7935 |
- rm -rf conftest* |
7936 |
ac_cv_have_socklen_t=no |
7937 |
fi |
7938 |
-rm -f conftest* |
7939 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7940 |
|
7941 |
fi |
7942 |
- |
7943 |
-echo "$ac_t""$ac_cv_have_socklen_t" 1>&6 |
7944 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_socklen_t" >&5 |
7945 |
+$as_echo "$ac_cv_have_socklen_t" >&6; } |
7946 |
if test "$ac_cv_have_socklen_t" = yes; then |
7947 |
- cat >> confdefs.h <<\EOF |
7948 |
-#define HAVE_SOCKLEN_T 1 |
7949 |
-EOF |
7950 |
+ $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
7951 |
|
7952 |
fi |
7953 |
-echo $ac_n "checking for errno""... $ac_c" 1>&6 |
7954 |
-echo "configure:3791: checking for errno" >&5 |
7955 |
-if eval "test \"`echo '$''{'ac_cv_have_errno'+set}'`\" = set"; then |
7956 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
7957 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5 |
7958 |
+$as_echo_n "checking for errno... " >&6; } |
7959 |
+if ${ac_cv_have_errno+:} false; then : |
7960 |
+ $as_echo_n "(cached) " >&6 |
7961 |
else |
7962 |
- cat > conftest.$ac_ext <<EOF |
7963 |
-#line 3796 "configure" |
7964 |
-#include "confdefs.h" |
7965 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7966 |
+/* end confdefs.h. */ |
7967 |
|
7968 |
#include <errno.h> |
7969 |
- |
7970 |
-int main() { |
7971 |
+ |
7972 |
+int |
7973 |
+main () |
7974 |
+{ |
7975 |
|
7976 |
errno = 0; |
7977 |
return errno; |
7978 |
- |
7979 |
-; return 0; } |
7980 |
-EOF |
7981 |
-if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7982 |
- rm -rf conftest* |
7983 |
+ |
7984 |
+ ; |
7985 |
+ return 0; |
7986 |
+} |
7987 |
+_ACEOF |
7988 |
+if ac_fn_c_try_compile "$LINENO"; then : |
7989 |
ac_cv_have_errno=yes |
7990 |
else |
7991 |
- echo "configure: failed program was:" >&5 |
7992 |
- cat conftest.$ac_ext >&5 |
7993 |
- rm -rf conftest* |
7994 |
ac_cv_have_errno=no |
7995 |
fi |
7996 |
-rm -f conftest* |
7997 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7998 |
|
7999 |
fi |
8000 |
- |
8001 |
-echo "$ac_t""$ac_cv_have_errno" 1>&6 |
8002 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_errno" >&5 |
8003 |
+$as_echo "$ac_cv_have_errno" >&6; } |
8004 |
if test "$ac_cv_have_errno" = yes; then |
8005 |
- cat >> confdefs.h <<\EOF |
8006 |
-#define HAVE_ERRNO 1 |
8007 |
-EOF |
8008 |
+ $as_echo "#define HAVE_ERRNO 1" >>confdefs.h |
8009 |
|
8010 |
fi |
8011 |
|
8012 |
-echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
8013 |
-echo "configure:3830: checking whether time.h and sys/time.h may both be included" >&5 |
8014 |
-if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
8015 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8016 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
8017 |
+$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
8018 |
+if ${ac_cv_header_time+:} false; then : |
8019 |
+ $as_echo_n "(cached) " >&6 |
8020 |
else |
8021 |
- cat > conftest.$ac_ext <<EOF |
8022 |
-#line 3835 "configure" |
8023 |
-#include "confdefs.h" |
8024 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8025 |
+/* end confdefs.h. */ |
8026 |
#include <sys/types.h> |
8027 |
#include <sys/time.h> |
8028 |
#include <time.h> |
8029 |
-int main() { |
8030 |
-struct tm *tp; |
8031 |
-; return 0; } |
8032 |
-EOF |
8033 |
-if { (eval echo configure:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8034 |
- rm -rf conftest* |
8035 |
+ |
8036 |
+int |
8037 |
+main () |
8038 |
+{ |
8039 |
+if ((struct tm *) 0) |
8040 |
+return 0; |
8041 |
+ ; |
8042 |
+ return 0; |
8043 |
+} |
8044 |
+_ACEOF |
8045 |
+if ac_fn_c_try_compile "$LINENO"; then : |
8046 |
ac_cv_header_time=yes |
8047 |
else |
8048 |
- echo "configure: failed program was:" >&5 |
8049 |
- cat conftest.$ac_ext >&5 |
8050 |
- rm -rf conftest* |
8051 |
ac_cv_header_time=no |
8052 |
fi |
8053 |
-rm -f conftest* |
8054 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8055 |
fi |
8056 |
- |
8057 |
-echo "$ac_t""$ac_cv_header_time" 1>&6 |
8058 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
8059 |
+$as_echo "$ac_cv_header_time" >&6; } |
8060 |
if test $ac_cv_header_time = yes; then |
8061 |
- cat >> confdefs.h <<\EOF |
8062 |
-#define TIME_WITH_SYS_TIME 1 |
8063 |
-EOF |
8064 |
+ |
8065 |
+$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
8066 |
|
8067 |
fi |
8068 |
|
8069 |
-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
8070 |
-echo "configure:3865: checking whether struct tm is in sys/time.h or time.h" >&5 |
8071 |
-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
8072 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8073 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
8074 |
+$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
8075 |
+if ${ac_cv_struct_tm+:} false; then : |
8076 |
+ $as_echo_n "(cached) " >&6 |
8077 |
else |
8078 |
- cat > conftest.$ac_ext <<EOF |
8079 |
-#line 3870 "configure" |
8080 |
-#include "confdefs.h" |
8081 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8082 |
+/* end confdefs.h. */ |
8083 |
#include <sys/types.h> |
8084 |
#include <time.h> |
8085 |
-int main() { |
8086 |
-struct tm *tp; tp->tm_sec; |
8087 |
-; return 0; } |
8088 |
-EOF |
8089 |
-if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8090 |
- rm -rf conftest* |
8091 |
+ |
8092 |
+int |
8093 |
+main () |
8094 |
+{ |
8095 |
+struct tm tm; |
8096 |
+ int *p = &tm.tm_sec; |
8097 |
+ return !p; |
8098 |
+ ; |
8099 |
+ return 0; |
8100 |
+} |
8101 |
+_ACEOF |
8102 |
+if ac_fn_c_try_compile "$LINENO"; then : |
8103 |
ac_cv_struct_tm=time.h |
8104 |
else |
8105 |
- echo "configure: failed program was:" >&5 |
8106 |
- cat conftest.$ac_ext >&5 |
8107 |
- rm -rf conftest* |
8108 |
ac_cv_struct_tm=sys/time.h |
8109 |
fi |
8110 |
-rm -f conftest* |
8111 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8112 |
fi |
8113 |
- |
8114 |
-echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
8115 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
8116 |
+$as_echo "$ac_cv_struct_tm" >&6; } |
8117 |
if test $ac_cv_struct_tm = sys/time.h; then |
8118 |
- cat >> confdefs.h <<\EOF |
8119 |
-#define TM_IN_SYS_TIME 1 |
8120 |
-EOF |
8121 |
+ |
8122 |
+$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
8123 |
|
8124 |
fi |
8125 |
|
8126 |
@@ -3909,182 +5345,153 @@ else |
8127 |
default_long_long=0 |
8128 |
fi |
8129 |
|
8130 |
-echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6 |
8131 |
-echo "configure:3912: checking size of unsigned short" >&5 |
8132 |
-if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then |
8133 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8134 |
-else |
8135 |
- if test "$cross_compiling" = yes; then |
8136 |
- ac_cv_sizeof_unsigned_short="$default_short" |
8137 |
+# The cast to long int works around a bug in the HP C Compiler |
8138 |
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
8139 |
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
8140 |
+# This bug is HP SR number 8606223364. |
8141 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
8142 |
+$as_echo_n "checking size of unsigned short... " >&6; } |
8143 |
+if ${ac_cv_sizeof_unsigned_short+:} false; then : |
8144 |
+ $as_echo_n "(cached) " >&6 |
8145 |
else |
8146 |
- cat > conftest.$ac_ext <<EOF |
8147 |
-#line 3920 "configure" |
8148 |
-#include "confdefs.h" |
8149 |
-#include <stdio.h> |
8150 |
-#include <sys/types.h> |
8151 |
-main() |
8152 |
-{ |
8153 |
- FILE *f=fopen("conftestval", "w"); |
8154 |
- if (!f) exit(1); |
8155 |
- fprintf(f, "%d\n", sizeof(unsigned short)); |
8156 |
- exit(0); |
8157 |
-} |
8158 |
-EOF |
8159 |
-if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8160 |
-then |
8161 |
- ac_cv_sizeof_unsigned_short=`cat conftestval` |
8162 |
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : |
8163 |
+ |
8164 |
else |
8165 |
- echo "configure: failed program was:" >&5 |
8166 |
- cat conftest.$ac_ext >&5 |
8167 |
- rm -fr conftest* |
8168 |
- ac_cv_sizeof_unsigned_short=0 |
8169 |
-fi |
8170 |
-rm -fr conftest* |
8171 |
+ if test "$ac_cv_type_unsigned_short" = yes; then |
8172 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8173 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8174 |
+as_fn_error 77 "cannot compute sizeof (unsigned short) |
8175 |
+See \`config.log' for more details" "$LINENO" 5; } |
8176 |
+ else |
8177 |
+ ac_cv_sizeof_unsigned_short=0 |
8178 |
+ fi |
8179 |
fi |
8180 |
|
8181 |
fi |
8182 |
-echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6 |
8183 |
-cat >> confdefs.h <<EOF |
8184 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 |
8185 |
+$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
8186 |
+ |
8187 |
+ |
8188 |
+ |
8189 |
+cat >>confdefs.h <<_ACEOF |
8190 |
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
8191 |
-EOF |
8192 |
+_ACEOF |
8193 |
|
8194 |
|
8195 |
-echo $ac_n "checking size of unsigned""... $ac_c" 1>&6 |
8196 |
-echo "configure:3952: checking size of unsigned" >&5 |
8197 |
-if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned'+set}'`\" = set"; then |
8198 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8199 |
-else |
8200 |
- if test "$cross_compiling" = yes; then |
8201 |
- ac_cv_sizeof_unsigned="$default_int" |
8202 |
+# The cast to long int works around a bug in the HP C Compiler |
8203 |
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
8204 |
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
8205 |
+# This bug is HP SR number 8606223364. |
8206 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 |
8207 |
+$as_echo_n "checking size of unsigned... " >&6; } |
8208 |
+if ${ac_cv_sizeof_unsigned+:} false; then : |
8209 |
+ $as_echo_n "(cached) " >&6 |
8210 |
else |
8211 |
- cat > conftest.$ac_ext <<EOF |
8212 |
-#line 3960 "configure" |
8213 |
-#include "confdefs.h" |
8214 |
-#include <stdio.h> |
8215 |
-#include <sys/types.h> |
8216 |
-main() |
8217 |
-{ |
8218 |
- FILE *f=fopen("conftestval", "w"); |
8219 |
- if (!f) exit(1); |
8220 |
- fprintf(f, "%d\n", sizeof(unsigned)); |
8221 |
- exit(0); |
8222 |
-} |
8223 |
-EOF |
8224 |
-if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8225 |
-then |
8226 |
- ac_cv_sizeof_unsigned=`cat conftestval` |
8227 |
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : |
8228 |
+ |
8229 |
else |
8230 |
- echo "configure: failed program was:" >&5 |
8231 |
- cat conftest.$ac_ext >&5 |
8232 |
- rm -fr conftest* |
8233 |
- ac_cv_sizeof_unsigned=0 |
8234 |
-fi |
8235 |
-rm -fr conftest* |
8236 |
+ if test "$ac_cv_type_unsigned" = yes; then |
8237 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8238 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8239 |
+as_fn_error 77 "cannot compute sizeof (unsigned) |
8240 |
+See \`config.log' for more details" "$LINENO" 5; } |
8241 |
+ else |
8242 |
+ ac_cv_sizeof_unsigned=0 |
8243 |
+ fi |
8244 |
fi |
8245 |
|
8246 |
fi |
8247 |
-echo "$ac_t""$ac_cv_sizeof_unsigned" 1>&6 |
8248 |
-cat >> confdefs.h <<EOF |
8249 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 |
8250 |
+$as_echo "$ac_cv_sizeof_unsigned" >&6; } |
8251 |
+ |
8252 |
+ |
8253 |
+ |
8254 |
+cat >>confdefs.h <<_ACEOF |
8255 |
#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned |
8256 |
-EOF |
8257 |
+_ACEOF |
8258 |
|
8259 |
|
8260 |
-echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6 |
8261 |
-echo "configure:3992: checking size of unsigned long" >&5 |
8262 |
-if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then |
8263 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8264 |
-else |
8265 |
- if test "$cross_compiling" = yes; then |
8266 |
- ac_cv_sizeof_unsigned_long="$default_long" |
8267 |
+# The cast to long int works around a bug in the HP C Compiler |
8268 |
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
8269 |
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
8270 |
+# This bug is HP SR number 8606223364. |
8271 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
8272 |
+$as_echo_n "checking size of unsigned long... " >&6; } |
8273 |
+if ${ac_cv_sizeof_unsigned_long+:} false; then : |
8274 |
+ $as_echo_n "(cached) " >&6 |
8275 |
else |
8276 |
- cat > conftest.$ac_ext <<EOF |
8277 |
-#line 4000 "configure" |
8278 |
-#include "confdefs.h" |
8279 |
-#include <stdio.h> |
8280 |
-#include <sys/types.h> |
8281 |
-main() |
8282 |
-{ |
8283 |
- FILE *f=fopen("conftestval", "w"); |
8284 |
- if (!f) exit(1); |
8285 |
- fprintf(f, "%d\n", sizeof(unsigned long)); |
8286 |
- exit(0); |
8287 |
-} |
8288 |
-EOF |
8289 |
-if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8290 |
-then |
8291 |
- ac_cv_sizeof_unsigned_long=`cat conftestval` |
8292 |
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : |
8293 |
+ |
8294 |
else |
8295 |
- echo "configure: failed program was:" >&5 |
8296 |
- cat conftest.$ac_ext >&5 |
8297 |
- rm -fr conftest* |
8298 |
- ac_cv_sizeof_unsigned_long=0 |
8299 |
-fi |
8300 |
-rm -fr conftest* |
8301 |
+ if test "$ac_cv_type_unsigned_long" = yes; then |
8302 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8303 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8304 |
+as_fn_error 77 "cannot compute sizeof (unsigned long) |
8305 |
+See \`config.log' for more details" "$LINENO" 5; } |
8306 |
+ else |
8307 |
+ ac_cv_sizeof_unsigned_long=0 |
8308 |
+ fi |
8309 |
fi |
8310 |
|
8311 |
fi |
8312 |
-echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6 |
8313 |
-cat >> confdefs.h <<EOF |
8314 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
8315 |
+$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
8316 |
+ |
8317 |
+ |
8318 |
+ |
8319 |
+cat >>confdefs.h <<_ACEOF |
8320 |
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
8321 |
-EOF |
8322 |
+_ACEOF |
8323 |
|
8324 |
|
8325 |
if test "$ac_cv_have_long_long" = yes; then |
8326 |
- echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6 |
8327 |
-echo "configure:4033: checking size of unsigned long long" >&5 |
8328 |
-if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then |
8329 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8330 |
-else |
8331 |
- if test "$cross_compiling" = yes; then |
8332 |
- ac_cv_sizeof_unsigned_long_long="$default_long_long" |
8333 |
+ # The cast to long int works around a bug in the HP C Compiler |
8334 |
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
8335 |
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
8336 |
+# This bug is HP SR number 8606223364. |
8337 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
8338 |
+$as_echo_n "checking size of unsigned long long... " >&6; } |
8339 |
+if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
8340 |
+ $as_echo_n "(cached) " >&6 |
8341 |
else |
8342 |
- cat > conftest.$ac_ext <<EOF |
8343 |
-#line 4041 "configure" |
8344 |
-#include "confdefs.h" |
8345 |
-#include <stdio.h> |
8346 |
-#include <sys/types.h> |
8347 |
-main() |
8348 |
-{ |
8349 |
- FILE *f=fopen("conftestval", "w"); |
8350 |
- if (!f) exit(1); |
8351 |
- fprintf(f, "%d\n", sizeof(unsigned long long)); |
8352 |
- exit(0); |
8353 |
-} |
8354 |
-EOF |
8355 |
-if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8356 |
-then |
8357 |
- ac_cv_sizeof_unsigned_long_long=`cat conftestval` |
8358 |
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
8359 |
+ |
8360 |
else |
8361 |
- echo "configure: failed program was:" >&5 |
8362 |
- cat conftest.$ac_ext >&5 |
8363 |
- rm -fr conftest* |
8364 |
- ac_cv_sizeof_unsigned_long_long=0 |
8365 |
-fi |
8366 |
-rm -fr conftest* |
8367 |
+ if test "$ac_cv_type_unsigned_long_long" = yes; then |
8368 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8369 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8370 |
+as_fn_error 77 "cannot compute sizeof (unsigned long long) |
8371 |
+See \`config.log' for more details" "$LINENO" 5; } |
8372 |
+ else |
8373 |
+ ac_cv_sizeof_unsigned_long_long=0 |
8374 |
+ fi |
8375 |
fi |
8376 |
|
8377 |
fi |
8378 |
-echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 |
8379 |
-cat >> confdefs.h <<EOF |
8380 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
8381 |
+$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
8382 |
+ |
8383 |
+ |
8384 |
+ |
8385 |
+cat >>confdefs.h <<_ACEOF |
8386 |
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
8387 |
-EOF |
8388 |
+_ACEOF |
8389 |
|
8390 |
|
8391 |
fi |
8392 |
if test "$ac_cv_sizeof_unsigned" -ne 0 && test "$ac_cv_sizeof_unsigned" -lt 4; then |
8393 |
- { echo "configure: error: integer must have at least 32 bits" 1>&2; exit 1; } |
8394 |
+ as_fn_error $? "integer must have at least 32 bits" "$LINENO" 5 |
8395 |
fi |
8396 |
-echo $ac_n "checking for big endian""... $ac_c" 1>&6 |
8397 |
-echo "configure:4077: checking for big endian" >&5 |
8398 |
-if eval "test \"`echo '$''{'ac_cv_big_endian'+set}'`\" = set"; then |
8399 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8400 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 |
8401 |
+$as_echo_n "checking for big endian... " >&6; } |
8402 |
+if ${ac_cv_big_endian+:} false; then : |
8403 |
+ $as_echo_n "(cached) " >&6 |
8404 |
else |
8405 |
- if test "$cross_compiling" = yes; then |
8406 |
+ if test "$cross_compiling" = yes; then : |
8407 |
ac_cv_big_endian=no |
8408 |
else |
8409 |
- cat > conftest.$ac_ext <<EOF |
8410 |
-#line 4085 "configure" |
8411 |
-#include "confdefs.h" |
8412 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8413 |
+/* end confdefs.h. */ |
8414 |
|
8415 |
long l; |
8416 |
char *c = (char *)&l; |
8417 |
@@ -4093,35 +5500,31 @@ else |
8418 |
l = 0x12345678L; |
8419 |
return !(c[sizeof(long) - 1] == 0x78 && c[sizeof(long) - 2] == 0x56 && c[sizeof(long) - 3] == 0x34 && c[sizeof(long) - 4] == 0x12); |
8420 |
} |
8421 |
- |
8422 |
-EOF |
8423 |
-if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8424 |
-then |
8425 |
+ |
8426 |
+_ACEOF |
8427 |
+if ac_fn_c_try_run "$LINENO"; then : |
8428 |
ac_cv_big_endian=yes |
8429 |
else |
8430 |
- echo "configure: failed program was:" >&5 |
8431 |
- cat conftest.$ac_ext >&5 |
8432 |
- rm -fr conftest* |
8433 |
ac_cv_big_endian=no |
8434 |
fi |
8435 |
-rm -fr conftest* |
8436 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8437 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
8438 |
fi |
8439 |
|
8440 |
|
8441 |
fi |
8442 |
- |
8443 |
-echo "$ac_t""$ac_cv_big_endian" 1>&6 |
8444 |
-echo $ac_n "checking for little endian""... $ac_c" 1>&6 |
8445 |
-echo "configure:4114: checking for little endian" >&5 |
8446 |
-if eval "test \"`echo '$''{'ac_cv_little_endian'+set}'`\" = set"; then |
8447 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8448 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian" >&5 |
8449 |
+$as_echo "$ac_cv_big_endian" >&6; } |
8450 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for little endian" >&5 |
8451 |
+$as_echo_n "checking for little endian... " >&6; } |
8452 |
+if ${ac_cv_little_endian+:} false; then : |
8453 |
+ $as_echo_n "(cached) " >&6 |
8454 |
else |
8455 |
- if test "$cross_compiling" = yes; then |
8456 |
+ if test "$cross_compiling" = yes; then : |
8457 |
ac_cv_little_endian="$ac_cv_have_emx" |
8458 |
else |
8459 |
- cat > conftest.$ac_ext <<EOF |
8460 |
-#line 4122 "configure" |
8461 |
-#include "confdefs.h" |
8462 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8463 |
+/* end confdefs.h. */ |
8464 |
|
8465 |
long l; |
8466 |
char *c = (char *)&l; |
8467 |
@@ -4130,49 +5533,41 @@ else |
8468 |
l = 0x12345678L; |
8469 |
return !(c[0] == 0x78 && c[1] == 0x56 && c[2] == 0x34 && c[3] == 0x12); |
8470 |
} |
8471 |
- |
8472 |
-EOF |
8473 |
-if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8474 |
-then |
8475 |
+ |
8476 |
+_ACEOF |
8477 |
+if ac_fn_c_try_run "$LINENO"; then : |
8478 |
ac_cv_little_endian=yes |
8479 |
else |
8480 |
- echo "configure: failed program was:" >&5 |
8481 |
- cat conftest.$ac_ext >&5 |
8482 |
- rm -fr conftest* |
8483 |
ac_cv_little_endian=no |
8484 |
fi |
8485 |
-rm -fr conftest* |
8486 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8487 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
8488 |
fi |
8489 |
|
8490 |
|
8491 |
fi |
8492 |
- |
8493 |
-echo "$ac_t""$ac_cv_little_endian" 1>&6 |
8494 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian" >&5 |
8495 |
+$as_echo "$ac_cv_little_endian" >&6; } |
8496 |
|
8497 |
if test "$ac_cv_big_endian" = yes; then |
8498 |
- cat >> confdefs.h <<\EOF |
8499 |
-#define C_BIG_ENDIAN 1 |
8500 |
-EOF |
8501 |
+ $as_echo "#define C_BIG_ENDIAN 1" >>confdefs.h |
8502 |
|
8503 |
else if test "$ac_cv_little_endian" = yes; then |
8504 |
- cat >> confdefs.h <<\EOF |
8505 |
-#define C_LITTLE_ENDIAN 1 |
8506 |
-EOF |
8507 |
+ $as_echo "#define C_LITTLE_ENDIAN 1" >>confdefs.h |
8508 |
|
8509 |
fi |
8510 |
fi |
8511 |
|
8512 |
-echo $ac_n "checking if rename can replace existing files""... $ac_c" 1>&6 |
8513 |
-echo "configure:4165: checking if rename can replace existing files" >&5 |
8514 |
-if eval "test \"`echo '$''{'ac_cv_rename_over_existing_files'+set}'`\" = set"; then |
8515 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8516 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if rename can replace existing files" >&5 |
8517 |
+$as_echo_n "checking if rename can replace existing files... " >&6; } |
8518 |
+if ${ac_cv_rename_over_existing_files+:} false; then : |
8519 |
+ $as_echo_n "(cached) " >&6 |
8520 |
else |
8521 |
- if test "$cross_compiling" = yes; then |
8522 |
+ if test "$cross_compiling" = yes; then : |
8523 |
ac_cv_rename_over_existing_files=no |
8524 |
else |
8525 |
- cat > conftest.$ac_ext <<EOF |
8526 |
-#line 4173 "configure" |
8527 |
-#include "confdefs.h" |
8528 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8529 |
+/* end confdefs.h. */ |
8530 |
|
8531 |
#include <fcntl.h> |
8532 |
#include <stdio.h> |
8533 |
@@ -4188,5043 +5583,1817 @@ else |
8534 |
unlink("conftest.rename2"); |
8535 |
return !!ret; |
8536 |
} |
8537 |
- |
8538 |
-EOF |
8539 |
-if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8540 |
-then |
8541 |
+ |
8542 |
+_ACEOF |
8543 |
+if ac_fn_c_try_run "$LINENO"; then : |
8544 |
ac_cv_rename_over_existing_files=yes |
8545 |
else |
8546 |
- echo "configure: failed program was:" >&5 |
8547 |
- cat conftest.$ac_ext >&5 |
8548 |
- rm -fr conftest* |
8549 |
ac_cv_rename_over_existing_files=no |
8550 |
fi |
8551 |
-rm -fr conftest* |
8552 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8553 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
8554 |
fi |
8555 |
|
8556 |
|
8557 |
fi |
8558 |
- |
8559 |
-echo "$ac_t""$ac_cv_rename_over_existing_files" 1>&6 |
8560 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rename_over_existing_files" >&5 |
8561 |
+$as_echo "$ac_cv_rename_over_existing_files" >&6; } |
8562 |
|
8563 |
if test "$ac_cv_rename_over_existing_files" = yes; then |
8564 |
- cat >> confdefs.h <<\EOF |
8565 |
-#define RENAME_OVER_EXISTING_FILES 1 |
8566 |
-EOF |
8567 |
+ $as_echo "#define RENAME_OVER_EXISTING_FILES 1" >>confdefs.h |
8568 |
|
8569 |
fi |
8570 |
|
8571 |
-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
8572 |
-echo "configure:4217: checking return type of signal handlers" >&5 |
8573 |
-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
8574 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8575 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
8576 |
+$as_echo_n "checking return type of signal handlers... " >&6; } |
8577 |
+if ${ac_cv_type_signal+:} false; then : |
8578 |
+ $as_echo_n "(cached) " >&6 |
8579 |
else |
8580 |
- cat > conftest.$ac_ext <<EOF |
8581 |
-#line 4222 "configure" |
8582 |
-#include "confdefs.h" |
8583 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8584 |
+/* end confdefs.h. */ |
8585 |
#include <sys/types.h> |
8586 |
#include <signal.h> |
8587 |
-#ifdef signal |
8588 |
-#undef signal |
8589 |
-#endif |
8590 |
-#ifdef __cplusplus |
8591 |
-extern "C" void (*signal (int, void (*)(int)))(int); |
8592 |
-#else |
8593 |
-void (*signal ()) (); |
8594 |
-#endif |
8595 |
|
8596 |
-int main() { |
8597 |
-int i; |
8598 |
-; return 0; } |
8599 |
-EOF |
8600 |
-if { (eval echo configure:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8601 |
- rm -rf conftest* |
8602 |
- ac_cv_type_signal=void |
8603 |
-else |
8604 |
- echo "configure: failed program was:" >&5 |
8605 |
- cat conftest.$ac_ext >&5 |
8606 |
- rm -rf conftest* |
8607 |
+int |
8608 |
+main () |
8609 |
+{ |
8610 |
+return *(signal (0, 0)) (0) == 1; |
8611 |
+ ; |
8612 |
+ return 0; |
8613 |
+} |
8614 |
+_ACEOF |
8615 |
+if ac_fn_c_try_compile "$LINENO"; then : |
8616 |
ac_cv_type_signal=int |
8617 |
+else |
8618 |
+ ac_cv_type_signal=void |
8619 |
fi |
8620 |
-rm -f conftest* |
8621 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8622 |
fi |
8623 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
8624 |
+$as_echo "$ac_cv_type_signal" >&6; } |
8625 |
|
8626 |
-echo "$ac_t""$ac_cv_type_signal" 1>&6 |
8627 |
-cat >> confdefs.h <<EOF |
8628 |
+cat >>confdefs.h <<_ACEOF |
8629 |
#define RETSIGTYPE $ac_cv_type_signal |
8630 |
-EOF |
8631 |
- |
8632 |
- |
8633 |
-echo $ac_n "checking for strftime""... $ac_c" 1>&6 |
8634 |
-echo "configure:4258: checking for strftime" >&5 |
8635 |
-if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
8636 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8637 |
-else |
8638 |
- cat > conftest.$ac_ext <<EOF |
8639 |
-#line 4263 "configure" |
8640 |
-#include "confdefs.h" |
8641 |
-/* System header to define __stub macros and hopefully few prototypes, |
8642 |
- which can conflict with char strftime(); below. */ |
8643 |
-#include <assert.h> |
8644 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8645 |
-/* We use char because int might match the return type of a gcc2 |
8646 |
- builtin and then its argument prototype would still apply. */ |
8647 |
-char strftime(); |
8648 |
- |
8649 |
-int main() { |
8650 |
- |
8651 |
-/* The GNU C library defines this for functions which it implements |
8652 |
- to always fail with ENOSYS. Some functions are actually named |
8653 |
- something starting with __ and the normal name is an alias. */ |
8654 |
-#if defined (__stub_strftime) || defined (__stub___strftime) |
8655 |
-choke me |
8656 |
-#else |
8657 |
-strftime(); |
8658 |
-#endif |
8659 |
+_ACEOF |
8660 |
|
8661 |
-; return 0; } |
8662 |
-EOF |
8663 |
-if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8664 |
- rm -rf conftest* |
8665 |
- eval "ac_cv_func_strftime=yes" |
8666 |
-else |
8667 |
- echo "configure: failed program was:" >&5 |
8668 |
- cat conftest.$ac_ext >&5 |
8669 |
- rm -rf conftest* |
8670 |
- eval "ac_cv_func_strftime=no" |
8671 |
-fi |
8672 |
-rm -f conftest* |
8673 |
-fi |
8674 |
|
8675 |
-if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then |
8676 |
- echo "$ac_t""yes" 1>&6 |
8677 |
- cat >> confdefs.h <<\EOF |
8678 |
+for ac_func in strftime |
8679 |
+do : |
8680 |
+ ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
8681 |
+if test "x$ac_cv_func_strftime" = xyes; then : |
8682 |
+ cat >>confdefs.h <<_ACEOF |
8683 |
#define HAVE_STRFTIME 1 |
8684 |
-EOF |
8685 |
+_ACEOF |
8686 |
|
8687 |
else |
8688 |
- echo "$ac_t""no" 1>&6 |
8689 |
-# strftime is in -lintl on SCO UNIX. |
8690 |
-echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 |
8691 |
-echo "configure:4308: checking for strftime in -lintl" >&5 |
8692 |
-ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` |
8693 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
8694 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8695 |
+ # strftime is in -lintl on SCO UNIX. |
8696 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
8697 |
+$as_echo_n "checking for strftime in -lintl... " >&6; } |
8698 |
+if ${ac_cv_lib_intl_strftime+:} false; then : |
8699 |
+ $as_echo_n "(cached) " >&6 |
8700 |
else |
8701 |
- ac_save_LIBS="$LIBS" |
8702 |
+ ac_check_lib_save_LIBS=$LIBS |
8703 |
LIBS="-lintl $LIBS" |
8704 |
-cat > conftest.$ac_ext <<EOF |
8705 |
-#line 4316 "configure" |
8706 |
-#include "confdefs.h" |
8707 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8708 |
-/* We use char because int might match the return type of a gcc2 |
8709 |
- builtin and then its argument prototype would still apply. */ |
8710 |
-char strftime(); |
8711 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8712 |
+/* end confdefs.h. */ |
8713 |
|
8714 |
-int main() { |
8715 |
-strftime() |
8716 |
-; return 0; } |
8717 |
-EOF |
8718 |
-if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8719 |
- rm -rf conftest* |
8720 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
8721 |
+/* Override any GCC internal prototype to avoid an error. |
8722 |
+ Use char because int might match the return type of a GCC |
8723 |
+ builtin and then its argument prototype would still apply. */ |
8724 |
+#ifdef __cplusplus |
8725 |
+extern "C" |
8726 |
+#endif |
8727 |
+char strftime (); |
8728 |
+int |
8729 |
+main () |
8730 |
+{ |
8731 |
+return strftime (); |
8732 |
+ ; |
8733 |
+ return 0; |
8734 |
+} |
8735 |
+_ACEOF |
8736 |
+if ac_fn_c_try_link "$LINENO"; then : |
8737 |
+ ac_cv_lib_intl_strftime=yes |
8738 |
else |
8739 |
- echo "configure: failed program was:" >&5 |
8740 |
- cat conftest.$ac_ext >&5 |
8741 |
- rm -rf conftest* |
8742 |
- eval "ac_cv_lib_$ac_lib_var=no" |
8743 |
+ ac_cv_lib_intl_strftime=no |
8744 |
fi |
8745 |
-rm -f conftest* |
8746 |
-LIBS="$ac_save_LIBS" |
8747 |
- |
8748 |
+rm -f core conftest.err conftest.$ac_objext \ |
8749 |
+ conftest$ac_exeext conftest.$ac_ext |
8750 |
+LIBS=$ac_check_lib_save_LIBS |
8751 |
fi |
8752 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8753 |
- echo "$ac_t""yes" 1>&6 |
8754 |
- cat >> confdefs.h <<\EOF |
8755 |
-#define HAVE_STRFTIME 1 |
8756 |
-EOF |
8757 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
8758 |
+$as_echo "$ac_cv_lib_intl_strftime" >&6; } |
8759 |
+if test "x$ac_cv_lib_intl_strftime" = xyes; then : |
8760 |
+ $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
8761 |
|
8762 |
LIBS="-lintl $LIBS" |
8763 |
-else |
8764 |
- echo "$ac_t""no" 1>&6 |
8765 |
fi |
8766 |
|
8767 |
fi |
8768 |
+done |
8769 |
|
8770 |
-echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
8771 |
-echo "configure:4354: checking for vprintf" >&5 |
8772 |
-if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
8773 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8774 |
-else |
8775 |
- cat > conftest.$ac_ext <<EOF |
8776 |
-#line 4359 "configure" |
8777 |
-#include "confdefs.h" |
8778 |
-/* System header to define __stub macros and hopefully few prototypes, |
8779 |
- which can conflict with char vprintf(); below. */ |
8780 |
-#include <assert.h> |
8781 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8782 |
-/* We use char because int might match the return type of a gcc2 |
8783 |
- builtin and then its argument prototype would still apply. */ |
8784 |
-char vprintf(); |
8785 |
- |
8786 |
-int main() { |
8787 |
- |
8788 |
-/* The GNU C library defines this for functions which it implements |
8789 |
- to always fail with ENOSYS. Some functions are actually named |
8790 |
- something starting with __ and the normal name is an alias. */ |
8791 |
-#if defined (__stub_vprintf) || defined (__stub___vprintf) |
8792 |
-choke me |
8793 |
-#else |
8794 |
-vprintf(); |
8795 |
-#endif |
8796 |
- |
8797 |
-; return 0; } |
8798 |
-EOF |
8799 |
-if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8800 |
- rm -rf conftest* |
8801 |
- eval "ac_cv_func_vprintf=yes" |
8802 |
-else |
8803 |
- echo "configure: failed program was:" >&5 |
8804 |
- cat conftest.$ac_ext >&5 |
8805 |
- rm -rf conftest* |
8806 |
- eval "ac_cv_func_vprintf=no" |
8807 |
-fi |
8808 |
-rm -f conftest* |
8809 |
-fi |
8810 |
- |
8811 |
-if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
8812 |
- echo "$ac_t""yes" 1>&6 |
8813 |
- cat >> confdefs.h <<\EOF |
8814 |
+for ac_func in vprintf |
8815 |
+do : |
8816 |
+ ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
8817 |
+if test "x$ac_cv_func_vprintf" = xyes; then : |
8818 |
+ cat >>confdefs.h <<_ACEOF |
8819 |
#define HAVE_VPRINTF 1 |
8820 |
-EOF |
8821 |
- |
8822 |
-else |
8823 |
- echo "$ac_t""no" 1>&6 |
8824 |
-fi |
8825 |
- |
8826 |
-if test "$ac_cv_func_vprintf" != yes; then |
8827 |
-echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
8828 |
-echo "configure:4406: checking for _doprnt" >&5 |
8829 |
-if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
8830 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8831 |
-else |
8832 |
- cat > conftest.$ac_ext <<EOF |
8833 |
-#line 4411 "configure" |
8834 |
-#include "confdefs.h" |
8835 |
-/* System header to define __stub macros and hopefully few prototypes, |
8836 |
- which can conflict with char _doprnt(); below. */ |
8837 |
-#include <assert.h> |
8838 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8839 |
-/* We use char because int might match the return type of a gcc2 |
8840 |
- builtin and then its argument prototype would still apply. */ |
8841 |
-char _doprnt(); |
8842 |
+_ACEOF |
8843 |
|
8844 |
-int main() { |
8845 |
+ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
8846 |
+if test "x$ac_cv_func__doprnt" = xyes; then : |
8847 |
|
8848 |
-/* The GNU C library defines this for functions which it implements |
8849 |
- to always fail with ENOSYS. Some functions are actually named |
8850 |
- something starting with __ and the normal name is an alias. */ |
8851 |
-#if defined (__stub__doprnt) || defined (__stub____doprnt) |
8852 |
-choke me |
8853 |
-#else |
8854 |
-_doprnt(); |
8855 |
-#endif |
8856 |
+$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
8857 |
|
8858 |
-; return 0; } |
8859 |
-EOF |
8860 |
-if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8861 |
- rm -rf conftest* |
8862 |
- eval "ac_cv_func__doprnt=yes" |
8863 |
-else |
8864 |
- echo "configure: failed program was:" >&5 |
8865 |
- cat conftest.$ac_ext >&5 |
8866 |
- rm -rf conftest* |
8867 |
- eval "ac_cv_func__doprnt=no" |
8868 |
-fi |
8869 |
-rm -f conftest* |
8870 |
fi |
8871 |
|
8872 |
-if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
8873 |
- echo "$ac_t""yes" 1>&6 |
8874 |
- cat >> confdefs.h <<\EOF |
8875 |
-#define HAVE_DOPRNT 1 |
8876 |
-EOF |
8877 |
- |
8878 |
-else |
8879 |
- echo "$ac_t""no" 1>&6 |
8880 |
fi |
8881 |
+done |
8882 |
|
8883 |
-fi |
8884 |
|
8885 |
for ac_func in bcmp |
8886 |
-do |
8887 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8888 |
-echo "configure:4461: checking for $ac_func" >&5 |
8889 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8890 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8891 |
-else |
8892 |
- cat > conftest.$ac_ext <<EOF |
8893 |
-#line 4466 "configure" |
8894 |
-#include "confdefs.h" |
8895 |
-/* System header to define __stub macros and hopefully few prototypes, |
8896 |
- which can conflict with char $ac_func(); below. */ |
8897 |
-#include <assert.h> |
8898 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8899 |
-/* We use char because int might match the return type of a gcc2 |
8900 |
- builtin and then its argument prototype would still apply. */ |
8901 |
-char $ac_func(); |
8902 |
- |
8903 |
-int main() { |
8904 |
- |
8905 |
-/* The GNU C library defines this for functions which it implements |
8906 |
- to always fail with ENOSYS. Some functions are actually named |
8907 |
- something starting with __ and the normal name is an alias. */ |
8908 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8909 |
-choke me |
8910 |
-#else |
8911 |
-$ac_func(); |
8912 |
-#endif |
8913 |
+do : |
8914 |
+ ac_fn_c_check_func "$LINENO" "bcmp" "ac_cv_func_bcmp" |
8915 |
+if test "x$ac_cv_func_bcmp" = xyes; then : |
8916 |
+ cat >>confdefs.h <<_ACEOF |
8917 |
+#define HAVE_BCMP 1 |
8918 |
+_ACEOF |
8919 |
|
8920 |
-; return 0; } |
8921 |
-EOF |
8922 |
-if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8923 |
- rm -rf conftest* |
8924 |
- eval "ac_cv_func_$ac_func=yes" |
8925 |
-else |
8926 |
- echo "configure: failed program was:" >&5 |
8927 |
- cat conftest.$ac_ext >&5 |
8928 |
- rm -rf conftest* |
8929 |
- eval "ac_cv_func_$ac_func=no" |
8930 |
-fi |
8931 |
-rm -f conftest* |
8932 |
-fi |
8933 |
- |
8934 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
8935 |
- echo "$ac_t""yes" 1>&6 |
8936 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
8937 |
- cat >> confdefs.h <<EOF |
8938 |
-#define $ac_tr_func 1 |
8939 |
-EOF |
8940 |
- |
8941 |
-else |
8942 |
- echo "$ac_t""no" 1>&6 |
8943 |
fi |
8944 |
done |
8945 |
|
8946 |
for ac_func in bcopy |
8947 |
-do |
8948 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8949 |
-echo "configure:4516: checking for $ac_func" >&5 |
8950 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8951 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
8952 |
-else |
8953 |
- cat > conftest.$ac_ext <<EOF |
8954 |
-#line 4521 "configure" |
8955 |
-#include "confdefs.h" |
8956 |
-/* System header to define __stub macros and hopefully few prototypes, |
8957 |
- which can conflict with char $ac_func(); below. */ |
8958 |
-#include <assert.h> |
8959 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
8960 |
-/* We use char because int might match the return type of a gcc2 |
8961 |
- builtin and then its argument prototype would still apply. */ |
8962 |
-char $ac_func(); |
8963 |
- |
8964 |
-int main() { |
8965 |
- |
8966 |
-/* The GNU C library defines this for functions which it implements |
8967 |
- to always fail with ENOSYS. Some functions are actually named |
8968 |
- something starting with __ and the normal name is an alias. */ |
8969 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
8970 |
-choke me |
8971 |
-#else |
8972 |
-$ac_func(); |
8973 |
-#endif |
8974 |
- |
8975 |
-; return 0; } |
8976 |
-EOF |
8977 |
-if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8978 |
- rm -rf conftest* |
8979 |
- eval "ac_cv_func_$ac_func=yes" |
8980 |
-else |
8981 |
- echo "configure: failed program was:" >&5 |
8982 |
- cat conftest.$ac_ext >&5 |
8983 |
- rm -rf conftest* |
8984 |
- eval "ac_cv_func_$ac_func=no" |
8985 |
-fi |
8986 |
-rm -f conftest* |
8987 |
-fi |
8988 |
+do : |
8989 |
+ ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy" |
8990 |
+if test "x$ac_cv_func_bcopy" = xyes; then : |
8991 |
+ cat >>confdefs.h <<_ACEOF |
8992 |
+#define HAVE_BCOPY 1 |
8993 |
+_ACEOF |
8994 |
|
8995 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
8996 |
- echo "$ac_t""yes" 1>&6 |
8997 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
8998 |
- cat >> confdefs.h <<EOF |
8999 |
-#define $ac_tr_func 1 |
9000 |
-EOF |
9001 |
- |
9002 |
-else |
9003 |
- echo "$ac_t""no" 1>&6 |
9004 |
fi |
9005 |
done |
9006 |
|
9007 |
for ac_func in bzero |
9008 |
-do |
9009 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9010 |
-echo "configure:4571: checking for $ac_func" >&5 |
9011 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9012 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9013 |
-else |
9014 |
- cat > conftest.$ac_ext <<EOF |
9015 |
-#line 4576 "configure" |
9016 |
-#include "confdefs.h" |
9017 |
-/* System header to define __stub macros and hopefully few prototypes, |
9018 |
- which can conflict with char $ac_func(); below. */ |
9019 |
-#include <assert.h> |
9020 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9021 |
-/* We use char because int might match the return type of a gcc2 |
9022 |
- builtin and then its argument prototype would still apply. */ |
9023 |
-char $ac_func(); |
9024 |
- |
9025 |
-int main() { |
9026 |
- |
9027 |
-/* The GNU C library defines this for functions which it implements |
9028 |
- to always fail with ENOSYS. Some functions are actually named |
9029 |
- something starting with __ and the normal name is an alias. */ |
9030 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9031 |
-choke me |
9032 |
-#else |
9033 |
-$ac_func(); |
9034 |
-#endif |
9035 |
- |
9036 |
-; return 0; } |
9037 |
-EOF |
9038 |
-if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9039 |
- rm -rf conftest* |
9040 |
- eval "ac_cv_func_$ac_func=yes" |
9041 |
-else |
9042 |
- echo "configure: failed program was:" >&5 |
9043 |
- cat conftest.$ac_ext >&5 |
9044 |
- rm -rf conftest* |
9045 |
- eval "ac_cv_func_$ac_func=no" |
9046 |
-fi |
9047 |
-rm -f conftest* |
9048 |
-fi |
9049 |
+do : |
9050 |
+ ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero" |
9051 |
+if test "x$ac_cv_func_bzero" = xyes; then : |
9052 |
+ cat >>confdefs.h <<_ACEOF |
9053 |
+#define HAVE_BZERO 1 |
9054 |
+_ACEOF |
9055 |
|
9056 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9057 |
- echo "$ac_t""yes" 1>&6 |
9058 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9059 |
- cat >> confdefs.h <<EOF |
9060 |
-#define $ac_tr_func 1 |
9061 |
-EOF |
9062 |
- |
9063 |
-else |
9064 |
- echo "$ac_t""no" 1>&6 |
9065 |
fi |
9066 |
done |
9067 |
|
9068 |
for ac_func in calloc |
9069 |
-do |
9070 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9071 |
-echo "configure:4626: checking for $ac_func" >&5 |
9072 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9073 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9074 |
-else |
9075 |
- cat > conftest.$ac_ext <<EOF |
9076 |
-#line 4631 "configure" |
9077 |
-#include "confdefs.h" |
9078 |
-/* System header to define __stub macros and hopefully few prototypes, |
9079 |
- which can conflict with char $ac_func(); below. */ |
9080 |
-#include <assert.h> |
9081 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9082 |
-/* We use char because int might match the return type of a gcc2 |
9083 |
- builtin and then its argument prototype would still apply. */ |
9084 |
-char $ac_func(); |
9085 |
- |
9086 |
-int main() { |
9087 |
- |
9088 |
-/* The GNU C library defines this for functions which it implements |
9089 |
- to always fail with ENOSYS. Some functions are actually named |
9090 |
- something starting with __ and the normal name is an alias. */ |
9091 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9092 |
-choke me |
9093 |
-#else |
9094 |
-$ac_func(); |
9095 |
-#endif |
9096 |
- |
9097 |
-; return 0; } |
9098 |
-EOF |
9099 |
-if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9100 |
- rm -rf conftest* |
9101 |
- eval "ac_cv_func_$ac_func=yes" |
9102 |
-else |
9103 |
- echo "configure: failed program was:" >&5 |
9104 |
- cat conftest.$ac_ext >&5 |
9105 |
- rm -rf conftest* |
9106 |
- eval "ac_cv_func_$ac_func=no" |
9107 |
-fi |
9108 |
-rm -f conftest* |
9109 |
-fi |
9110 |
+do : |
9111 |
+ ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" |
9112 |
+if test "x$ac_cv_func_calloc" = xyes; then : |
9113 |
+ cat >>confdefs.h <<_ACEOF |
9114 |
+#define HAVE_CALLOC 1 |
9115 |
+_ACEOF |
9116 |
|
9117 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9118 |
- echo "$ac_t""yes" 1>&6 |
9119 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9120 |
- cat >> confdefs.h <<EOF |
9121 |
-#define $ac_tr_func 1 |
9122 |
-EOF |
9123 |
- |
9124 |
-else |
9125 |
- echo "$ac_t""no" 1>&6 |
9126 |
fi |
9127 |
done |
9128 |
|
9129 |
for ac_func in chmod |
9130 |
-do |
9131 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9132 |
-echo "configure:4681: checking for $ac_func" >&5 |
9133 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9134 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9135 |
-else |
9136 |
- cat > conftest.$ac_ext <<EOF |
9137 |
-#line 4686 "configure" |
9138 |
-#include "confdefs.h" |
9139 |
-/* System header to define __stub macros and hopefully few prototypes, |
9140 |
- which can conflict with char $ac_func(); below. */ |
9141 |
-#include <assert.h> |
9142 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9143 |
-/* We use char because int might match the return type of a gcc2 |
9144 |
- builtin and then its argument prototype would still apply. */ |
9145 |
-char $ac_func(); |
9146 |
- |
9147 |
-int main() { |
9148 |
- |
9149 |
-/* The GNU C library defines this for functions which it implements |
9150 |
- to always fail with ENOSYS. Some functions are actually named |
9151 |
- something starting with __ and the normal name is an alias. */ |
9152 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9153 |
-choke me |
9154 |
-#else |
9155 |
-$ac_func(); |
9156 |
-#endif |
9157 |
- |
9158 |
-; return 0; } |
9159 |
-EOF |
9160 |
-if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9161 |
- rm -rf conftest* |
9162 |
- eval "ac_cv_func_$ac_func=yes" |
9163 |
-else |
9164 |
- echo "configure: failed program was:" >&5 |
9165 |
- cat conftest.$ac_ext >&5 |
9166 |
- rm -rf conftest* |
9167 |
- eval "ac_cv_func_$ac_func=no" |
9168 |
-fi |
9169 |
-rm -f conftest* |
9170 |
-fi |
9171 |
+do : |
9172 |
+ ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" |
9173 |
+if test "x$ac_cv_func_chmod" = xyes; then : |
9174 |
+ cat >>confdefs.h <<_ACEOF |
9175 |
+#define HAVE_CHMOD 1 |
9176 |
+_ACEOF |
9177 |
|
9178 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9179 |
- echo "$ac_t""yes" 1>&6 |
9180 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9181 |
- cat >> confdefs.h <<EOF |
9182 |
-#define $ac_tr_func 1 |
9183 |
-EOF |
9184 |
- |
9185 |
-else |
9186 |
- echo "$ac_t""no" 1>&6 |
9187 |
fi |
9188 |
done |
9189 |
|
9190 |
for ac_func in getcwd |
9191 |
-do |
9192 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9193 |
-echo "configure:4736: checking for $ac_func" >&5 |
9194 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9195 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9196 |
-else |
9197 |
- cat > conftest.$ac_ext <<EOF |
9198 |
-#line 4741 "configure" |
9199 |
-#include "confdefs.h" |
9200 |
-/* System header to define __stub macros and hopefully few prototypes, |
9201 |
- which can conflict with char $ac_func(); below. */ |
9202 |
-#include <assert.h> |
9203 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9204 |
-/* We use char because int might match the return type of a gcc2 |
9205 |
- builtin and then its argument prototype would still apply. */ |
9206 |
-char $ac_func(); |
9207 |
- |
9208 |
-int main() { |
9209 |
- |
9210 |
-/* The GNU C library defines this for functions which it implements |
9211 |
- to always fail with ENOSYS. Some functions are actually named |
9212 |
- something starting with __ and the normal name is an alias. */ |
9213 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9214 |
-choke me |
9215 |
-#else |
9216 |
-$ac_func(); |
9217 |
-#endif |
9218 |
+do : |
9219 |
+ ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
9220 |
+if test "x$ac_cv_func_getcwd" = xyes; then : |
9221 |
+ cat >>confdefs.h <<_ACEOF |
9222 |
+#define HAVE_GETCWD 1 |
9223 |
+_ACEOF |
9224 |
|
9225 |
-; return 0; } |
9226 |
-EOF |
9227 |
-if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9228 |
- rm -rf conftest* |
9229 |
- eval "ac_cv_func_$ac_func=yes" |
9230 |
-else |
9231 |
- echo "configure: failed program was:" >&5 |
9232 |
- cat conftest.$ac_ext >&5 |
9233 |
- rm -rf conftest* |
9234 |
- eval "ac_cv_func_$ac_func=no" |
9235 |
-fi |
9236 |
-rm -f conftest* |
9237 |
-fi |
9238 |
- |
9239 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9240 |
- echo "$ac_t""yes" 1>&6 |
9241 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9242 |
- cat >> confdefs.h <<EOF |
9243 |
-#define $ac_tr_func 1 |
9244 |
-EOF |
9245 |
- |
9246 |
-else |
9247 |
- echo "$ac_t""no" 1>&6 |
9248 |
fi |
9249 |
done |
9250 |
|
9251 |
for ac_func in getgrgid |
9252 |
-do |
9253 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9254 |
-echo "configure:4791: checking for $ac_func" >&5 |
9255 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9256 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9257 |
-else |
9258 |
- cat > conftest.$ac_ext <<EOF |
9259 |
-#line 4796 "configure" |
9260 |
-#include "confdefs.h" |
9261 |
-/* System header to define __stub macros and hopefully few prototypes, |
9262 |
- which can conflict with char $ac_func(); below. */ |
9263 |
-#include <assert.h> |
9264 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9265 |
-/* We use char because int might match the return type of a gcc2 |
9266 |
- builtin and then its argument prototype would still apply. */ |
9267 |
-char $ac_func(); |
9268 |
- |
9269 |
-int main() { |
9270 |
- |
9271 |
-/* The GNU C library defines this for functions which it implements |
9272 |
- to always fail with ENOSYS. Some functions are actually named |
9273 |
- something starting with __ and the normal name is an alias. */ |
9274 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9275 |
-choke me |
9276 |
-#else |
9277 |
-$ac_func(); |
9278 |
-#endif |
9279 |
- |
9280 |
-; return 0; } |
9281 |
-EOF |
9282 |
-if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9283 |
- rm -rf conftest* |
9284 |
- eval "ac_cv_func_$ac_func=yes" |
9285 |
-else |
9286 |
- echo "configure: failed program was:" >&5 |
9287 |
- cat conftest.$ac_ext >&5 |
9288 |
- rm -rf conftest* |
9289 |
- eval "ac_cv_func_$ac_func=no" |
9290 |
-fi |
9291 |
-rm -f conftest* |
9292 |
-fi |
9293 |
+do : |
9294 |
+ ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid" |
9295 |
+if test "x$ac_cv_func_getgrgid" = xyes; then : |
9296 |
+ cat >>confdefs.h <<_ACEOF |
9297 |
+#define HAVE_GETGRGID 1 |
9298 |
+_ACEOF |
9299 |
|
9300 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9301 |
- echo "$ac_t""yes" 1>&6 |
9302 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9303 |
- cat >> confdefs.h <<EOF |
9304 |
-#define $ac_tr_func 1 |
9305 |
-EOF |
9306 |
- |
9307 |
-else |
9308 |
- echo "$ac_t""no" 1>&6 |
9309 |
fi |
9310 |
done |
9311 |
|
9312 |
for ac_func in getpagesize |
9313 |
-do |
9314 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9315 |
-echo "configure:4846: checking for $ac_func" >&5 |
9316 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9317 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9318 |
-else |
9319 |
- cat > conftest.$ac_ext <<EOF |
9320 |
-#line 4851 "configure" |
9321 |
-#include "confdefs.h" |
9322 |
-/* System header to define __stub macros and hopefully few prototypes, |
9323 |
- which can conflict with char $ac_func(); below. */ |
9324 |
-#include <assert.h> |
9325 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9326 |
-/* We use char because int might match the return type of a gcc2 |
9327 |
- builtin and then its argument prototype would still apply. */ |
9328 |
-char $ac_func(); |
9329 |
- |
9330 |
-int main() { |
9331 |
- |
9332 |
-/* The GNU C library defines this for functions which it implements |
9333 |
- to always fail with ENOSYS. Some functions are actually named |
9334 |
- something starting with __ and the normal name is an alias. */ |
9335 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9336 |
-choke me |
9337 |
-#else |
9338 |
-$ac_func(); |
9339 |
-#endif |
9340 |
- |
9341 |
-; return 0; } |
9342 |
-EOF |
9343 |
-if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9344 |
- rm -rf conftest* |
9345 |
- eval "ac_cv_func_$ac_func=yes" |
9346 |
-else |
9347 |
- echo "configure: failed program was:" >&5 |
9348 |
- cat conftest.$ac_ext >&5 |
9349 |
- rm -rf conftest* |
9350 |
- eval "ac_cv_func_$ac_func=no" |
9351 |
-fi |
9352 |
-rm -f conftest* |
9353 |
-fi |
9354 |
+do : |
9355 |
+ ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
9356 |
+if test "x$ac_cv_func_getpagesize" = xyes; then : |
9357 |
+ cat >>confdefs.h <<_ACEOF |
9358 |
+#define HAVE_GETPAGESIZE 1 |
9359 |
+_ACEOF |
9360 |
|
9361 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9362 |
- echo "$ac_t""yes" 1>&6 |
9363 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9364 |
- cat >> confdefs.h <<EOF |
9365 |
-#define $ac_tr_func 1 |
9366 |
-EOF |
9367 |
- |
9368 |
-else |
9369 |
- echo "$ac_t""no" 1>&6 |
9370 |
fi |
9371 |
done |
9372 |
|
9373 |
for ac_func in getpid |
9374 |
-do |
9375 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9376 |
-echo "configure:4901: checking for $ac_func" >&5 |
9377 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9378 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9379 |
-else |
9380 |
- cat > conftest.$ac_ext <<EOF |
9381 |
-#line 4906 "configure" |
9382 |
-#include "confdefs.h" |
9383 |
-/* System header to define __stub macros and hopefully few prototypes, |
9384 |
- which can conflict with char $ac_func(); below. */ |
9385 |
-#include <assert.h> |
9386 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9387 |
-/* We use char because int might match the return type of a gcc2 |
9388 |
- builtin and then its argument prototype would still apply. */ |
9389 |
-char $ac_func(); |
9390 |
- |
9391 |
-int main() { |
9392 |
- |
9393 |
-/* The GNU C library defines this for functions which it implements |
9394 |
- to always fail with ENOSYS. Some functions are actually named |
9395 |
- something starting with __ and the normal name is an alias. */ |
9396 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9397 |
-choke me |
9398 |
-#else |
9399 |
-$ac_func(); |
9400 |
-#endif |
9401 |
- |
9402 |
-; return 0; } |
9403 |
-EOF |
9404 |
-if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9405 |
- rm -rf conftest* |
9406 |
- eval "ac_cv_func_$ac_func=yes" |
9407 |
-else |
9408 |
- echo "configure: failed program was:" >&5 |
9409 |
- cat conftest.$ac_ext >&5 |
9410 |
- rm -rf conftest* |
9411 |
- eval "ac_cv_func_$ac_func=no" |
9412 |
-fi |
9413 |
-rm -f conftest* |
9414 |
-fi |
9415 |
+do : |
9416 |
+ ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" |
9417 |
+if test "x$ac_cv_func_getpid" = xyes; then : |
9418 |
+ cat >>confdefs.h <<_ACEOF |
9419 |
+#define HAVE_GETPID 1 |
9420 |
+_ACEOF |
9421 |
|
9422 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9423 |
- echo "$ac_t""yes" 1>&6 |
9424 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9425 |
- cat >> confdefs.h <<EOF |
9426 |
-#define $ac_tr_func 1 |
9427 |
-EOF |
9428 |
- |
9429 |
-else |
9430 |
- echo "$ac_t""no" 1>&6 |
9431 |
fi |
9432 |
done |
9433 |
|
9434 |
for ac_func in getpwuid |
9435 |
-do |
9436 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9437 |
-echo "configure:4956: checking for $ac_func" >&5 |
9438 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9439 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9440 |
-else |
9441 |
- cat > conftest.$ac_ext <<EOF |
9442 |
-#line 4961 "configure" |
9443 |
-#include "confdefs.h" |
9444 |
-/* System header to define __stub macros and hopefully few prototypes, |
9445 |
- which can conflict with char $ac_func(); below. */ |
9446 |
-#include <assert.h> |
9447 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9448 |
-/* We use char because int might match the return type of a gcc2 |
9449 |
- builtin and then its argument prototype would still apply. */ |
9450 |
-char $ac_func(); |
9451 |
- |
9452 |
-int main() { |
9453 |
- |
9454 |
-/* The GNU C library defines this for functions which it implements |
9455 |
- to always fail with ENOSYS. Some functions are actually named |
9456 |
- something starting with __ and the normal name is an alias. */ |
9457 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9458 |
-choke me |
9459 |
-#else |
9460 |
-$ac_func(); |
9461 |
-#endif |
9462 |
- |
9463 |
-; return 0; } |
9464 |
-EOF |
9465 |
-if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9466 |
- rm -rf conftest* |
9467 |
- eval "ac_cv_func_$ac_func=yes" |
9468 |
-else |
9469 |
- echo "configure: failed program was:" >&5 |
9470 |
- cat conftest.$ac_ext >&5 |
9471 |
- rm -rf conftest* |
9472 |
- eval "ac_cv_func_$ac_func=no" |
9473 |
-fi |
9474 |
-rm -f conftest* |
9475 |
-fi |
9476 |
+do : |
9477 |
+ ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" |
9478 |
+if test "x$ac_cv_func_getpwuid" = xyes; then : |
9479 |
+ cat >>confdefs.h <<_ACEOF |
9480 |
+#define HAVE_GETPWUID 1 |
9481 |
+_ACEOF |
9482 |
|
9483 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9484 |
- echo "$ac_t""yes" 1>&6 |
9485 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9486 |
- cat >> confdefs.h <<EOF |
9487 |
-#define $ac_tr_func 1 |
9488 |
-EOF |
9489 |
- |
9490 |
-else |
9491 |
- echo "$ac_t""no" 1>&6 |
9492 |
fi |
9493 |
done |
9494 |
|
9495 |
for ac_func in getrlimit |
9496 |
-do |
9497 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9498 |
-echo "configure:5011: checking for $ac_func" >&5 |
9499 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9500 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9501 |
-else |
9502 |
- cat > conftest.$ac_ext <<EOF |
9503 |
-#line 5016 "configure" |
9504 |
-#include "confdefs.h" |
9505 |
-/* System header to define __stub macros and hopefully few prototypes, |
9506 |
- which can conflict with char $ac_func(); below. */ |
9507 |
-#include <assert.h> |
9508 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9509 |
-/* We use char because int might match the return type of a gcc2 |
9510 |
- builtin and then its argument prototype would still apply. */ |
9511 |
-char $ac_func(); |
9512 |
- |
9513 |
-int main() { |
9514 |
- |
9515 |
-/* The GNU C library defines this for functions which it implements |
9516 |
- to always fail with ENOSYS. Some functions are actually named |
9517 |
- something starting with __ and the normal name is an alias. */ |
9518 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9519 |
-choke me |
9520 |
-#else |
9521 |
-$ac_func(); |
9522 |
-#endif |
9523 |
- |
9524 |
-; return 0; } |
9525 |
-EOF |
9526 |
-if { (eval echo configure:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9527 |
- rm -rf conftest* |
9528 |
- eval "ac_cv_func_$ac_func=yes" |
9529 |
-else |
9530 |
- echo "configure: failed program was:" >&5 |
9531 |
- cat conftest.$ac_ext >&5 |
9532 |
- rm -rf conftest* |
9533 |
- eval "ac_cv_func_$ac_func=no" |
9534 |
-fi |
9535 |
-rm -f conftest* |
9536 |
-fi |
9537 |
+do : |
9538 |
+ ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" |
9539 |
+if test "x$ac_cv_func_getrlimit" = xyes; then : |
9540 |
+ cat >>confdefs.h <<_ACEOF |
9541 |
+#define HAVE_GETRLIMIT 1 |
9542 |
+_ACEOF |
9543 |
|
9544 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9545 |
- echo "$ac_t""yes" 1>&6 |
9546 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9547 |
- cat >> confdefs.h <<EOF |
9548 |
-#define $ac_tr_func 1 |
9549 |
-EOF |
9550 |
- |
9551 |
-else |
9552 |
- echo "$ac_t""no" 1>&6 |
9553 |
fi |
9554 |
done |
9555 |
|
9556 |
for ac_func in gettimeofday |
9557 |
-do |
9558 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9559 |
-echo "configure:5066: checking for $ac_func" >&5 |
9560 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9561 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9562 |
-else |
9563 |
- cat > conftest.$ac_ext <<EOF |
9564 |
-#line 5071 "configure" |
9565 |
-#include "confdefs.h" |
9566 |
-/* System header to define __stub macros and hopefully few prototypes, |
9567 |
- which can conflict with char $ac_func(); below. */ |
9568 |
-#include <assert.h> |
9569 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9570 |
-/* We use char because int might match the return type of a gcc2 |
9571 |
- builtin and then its argument prototype would still apply. */ |
9572 |
-char $ac_func(); |
9573 |
- |
9574 |
-int main() { |
9575 |
- |
9576 |
-/* The GNU C library defines this for functions which it implements |
9577 |
- to always fail with ENOSYS. Some functions are actually named |
9578 |
- something starting with __ and the normal name is an alias. */ |
9579 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9580 |
-choke me |
9581 |
-#else |
9582 |
-$ac_func(); |
9583 |
-#endif |
9584 |
- |
9585 |
-; return 0; } |
9586 |
-EOF |
9587 |
-if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9588 |
- rm -rf conftest* |
9589 |
- eval "ac_cv_func_$ac_func=yes" |
9590 |
-else |
9591 |
- echo "configure: failed program was:" >&5 |
9592 |
- cat conftest.$ac_ext >&5 |
9593 |
- rm -rf conftest* |
9594 |
- eval "ac_cv_func_$ac_func=no" |
9595 |
-fi |
9596 |
-rm -f conftest* |
9597 |
-fi |
9598 |
+do : |
9599 |
+ ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
9600 |
+if test "x$ac_cv_func_gettimeofday" = xyes; then : |
9601 |
+ cat >>confdefs.h <<_ACEOF |
9602 |
+#define HAVE_GETTIMEOFDAY 1 |
9603 |
+_ACEOF |
9604 |
|
9605 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9606 |
- echo "$ac_t""yes" 1>&6 |
9607 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9608 |
- cat >> confdefs.h <<EOF |
9609 |
-#define $ac_tr_func 1 |
9610 |
-EOF |
9611 |
- |
9612 |
-else |
9613 |
- echo "$ac_t""no" 1>&6 |
9614 |
fi |
9615 |
done |
9616 |
|
9617 |
for ac_func in mkdir |
9618 |
-do |
9619 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9620 |
-echo "configure:5121: checking for $ac_func" >&5 |
9621 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9622 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9623 |
-else |
9624 |
- cat > conftest.$ac_ext <<EOF |
9625 |
-#line 5126 "configure" |
9626 |
-#include "confdefs.h" |
9627 |
-/* System header to define __stub macros and hopefully few prototypes, |
9628 |
- which can conflict with char $ac_func(); below. */ |
9629 |
-#include <assert.h> |
9630 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9631 |
-/* We use char because int might match the return type of a gcc2 |
9632 |
- builtin and then its argument prototype would still apply. */ |
9633 |
-char $ac_func(); |
9634 |
- |
9635 |
-int main() { |
9636 |
- |
9637 |
-/* The GNU C library defines this for functions which it implements |
9638 |
- to always fail with ENOSYS. Some functions are actually named |
9639 |
- something starting with __ and the normal name is an alias. */ |
9640 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9641 |
-choke me |
9642 |
-#else |
9643 |
-$ac_func(); |
9644 |
-#endif |
9645 |
- |
9646 |
-; return 0; } |
9647 |
-EOF |
9648 |
-if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9649 |
- rm -rf conftest* |
9650 |
- eval "ac_cv_func_$ac_func=yes" |
9651 |
-else |
9652 |
- echo "configure: failed program was:" >&5 |
9653 |
- cat conftest.$ac_ext >&5 |
9654 |
- rm -rf conftest* |
9655 |
- eval "ac_cv_func_$ac_func=no" |
9656 |
-fi |
9657 |
-rm -f conftest* |
9658 |
-fi |
9659 |
+do : |
9660 |
+ ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" |
9661 |
+if test "x$ac_cv_func_mkdir" = xyes; then : |
9662 |
+ cat >>confdefs.h <<_ACEOF |
9663 |
+#define HAVE_MKDIR 1 |
9664 |
+_ACEOF |
9665 |
|
9666 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9667 |
- echo "$ac_t""yes" 1>&6 |
9668 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9669 |
- cat >> confdefs.h <<EOF |
9670 |
-#define $ac_tr_func 1 |
9671 |
-EOF |
9672 |
- |
9673 |
-else |
9674 |
- echo "$ac_t""no" 1>&6 |
9675 |
fi |
9676 |
done |
9677 |
|
9678 |
for ac_func in mktime |
9679 |
-do |
9680 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9681 |
-echo "configure:5176: checking for $ac_func" >&5 |
9682 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9683 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9684 |
-else |
9685 |
- cat > conftest.$ac_ext <<EOF |
9686 |
-#line 5181 "configure" |
9687 |
-#include "confdefs.h" |
9688 |
-/* System header to define __stub macros and hopefully few prototypes, |
9689 |
- which can conflict with char $ac_func(); below. */ |
9690 |
-#include <assert.h> |
9691 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9692 |
-/* We use char because int might match the return type of a gcc2 |
9693 |
- builtin and then its argument prototype would still apply. */ |
9694 |
-char $ac_func(); |
9695 |
- |
9696 |
-int main() { |
9697 |
- |
9698 |
-/* The GNU C library defines this for functions which it implements |
9699 |
- to always fail with ENOSYS. Some functions are actually named |
9700 |
- something starting with __ and the normal name is an alias. */ |
9701 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9702 |
-choke me |
9703 |
-#else |
9704 |
-$ac_func(); |
9705 |
-#endif |
9706 |
- |
9707 |
-; return 0; } |
9708 |
-EOF |
9709 |
-if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9710 |
- rm -rf conftest* |
9711 |
- eval "ac_cv_func_$ac_func=yes" |
9712 |
-else |
9713 |
- echo "configure: failed program was:" >&5 |
9714 |
- cat conftest.$ac_ext >&5 |
9715 |
- rm -rf conftest* |
9716 |
- eval "ac_cv_func_$ac_func=no" |
9717 |
-fi |
9718 |
-rm -f conftest* |
9719 |
-fi |
9720 |
+do : |
9721 |
+ ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" |
9722 |
+if test "x$ac_cv_func_mktime" = xyes; then : |
9723 |
+ cat >>confdefs.h <<_ACEOF |
9724 |
+#define HAVE_MKTIME 1 |
9725 |
+_ACEOF |
9726 |
|
9727 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9728 |
- echo "$ac_t""yes" 1>&6 |
9729 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9730 |
- cat >> confdefs.h <<EOF |
9731 |
-#define $ac_tr_func 1 |
9732 |
-EOF |
9733 |
- |
9734 |
-else |
9735 |
- echo "$ac_t""no" 1>&6 |
9736 |
fi |
9737 |
done |
9738 |
|
9739 |
for ac_func in nl_langinfo |
9740 |
-do |
9741 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9742 |
-echo "configure:5231: checking for $ac_func" >&5 |
9743 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9744 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9745 |
-else |
9746 |
- cat > conftest.$ac_ext <<EOF |
9747 |
-#line 5236 "configure" |
9748 |
-#include "confdefs.h" |
9749 |
-/* System header to define __stub macros and hopefully few prototypes, |
9750 |
- which can conflict with char $ac_func(); below. */ |
9751 |
-#include <assert.h> |
9752 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9753 |
-/* We use char because int might match the return type of a gcc2 |
9754 |
- builtin and then its argument prototype would still apply. */ |
9755 |
-char $ac_func(); |
9756 |
- |
9757 |
-int main() { |
9758 |
- |
9759 |
-/* The GNU C library defines this for functions which it implements |
9760 |
- to always fail with ENOSYS. Some functions are actually named |
9761 |
- something starting with __ and the normal name is an alias. */ |
9762 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9763 |
-choke me |
9764 |
-#else |
9765 |
-$ac_func(); |
9766 |
-#endif |
9767 |
+do : |
9768 |
+ ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" |
9769 |
+if test "x$ac_cv_func_nl_langinfo" = xyes; then : |
9770 |
+ cat >>confdefs.h <<_ACEOF |
9771 |
+#define HAVE_NL_LANGINFO 1 |
9772 |
+_ACEOF |
9773 |
|
9774 |
-; return 0; } |
9775 |
-EOF |
9776 |
-if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9777 |
- rm -rf conftest* |
9778 |
- eval "ac_cv_func_$ac_func=yes" |
9779 |
-else |
9780 |
- echo "configure: failed program was:" >&5 |
9781 |
- cat conftest.$ac_ext >&5 |
9782 |
- rm -rf conftest* |
9783 |
- eval "ac_cv_func_$ac_func=no" |
9784 |
-fi |
9785 |
-rm -f conftest* |
9786 |
-fi |
9787 |
- |
9788 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9789 |
- echo "$ac_t""yes" 1>&6 |
9790 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9791 |
- cat >> confdefs.h <<EOF |
9792 |
-#define $ac_tr_func 1 |
9793 |
-EOF |
9794 |
- |
9795 |
-else |
9796 |
- echo "$ac_t""no" 1>&6 |
9797 |
fi |
9798 |
done |
9799 |
|
9800 |
for ac_func in popen |
9801 |
-do |
9802 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9803 |
-echo "configure:5286: checking for $ac_func" >&5 |
9804 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9805 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9806 |
-else |
9807 |
- cat > conftest.$ac_ext <<EOF |
9808 |
-#line 5291 "configure" |
9809 |
-#include "confdefs.h" |
9810 |
-/* System header to define __stub macros and hopefully few prototypes, |
9811 |
- which can conflict with char $ac_func(); below. */ |
9812 |
-#include <assert.h> |
9813 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9814 |
-/* We use char because int might match the return type of a gcc2 |
9815 |
- builtin and then its argument prototype would still apply. */ |
9816 |
-char $ac_func(); |
9817 |
- |
9818 |
-int main() { |
9819 |
- |
9820 |
-/* The GNU C library defines this for functions which it implements |
9821 |
- to always fail with ENOSYS. Some functions are actually named |
9822 |
- something starting with __ and the normal name is an alias. */ |
9823 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9824 |
-choke me |
9825 |
-#else |
9826 |
-$ac_func(); |
9827 |
-#endif |
9828 |
- |
9829 |
-; return 0; } |
9830 |
-EOF |
9831 |
-if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9832 |
- rm -rf conftest* |
9833 |
- eval "ac_cv_func_$ac_func=yes" |
9834 |
-else |
9835 |
- echo "configure: failed program was:" >&5 |
9836 |
- cat conftest.$ac_ext >&5 |
9837 |
- rm -rf conftest* |
9838 |
- eval "ac_cv_func_$ac_func=no" |
9839 |
-fi |
9840 |
-rm -f conftest* |
9841 |
-fi |
9842 |
+do : |
9843 |
+ ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
9844 |
+if test "x$ac_cv_func_popen" = xyes; then : |
9845 |
+ cat >>confdefs.h <<_ACEOF |
9846 |
+#define HAVE_POPEN 1 |
9847 |
+_ACEOF |
9848 |
|
9849 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9850 |
- echo "$ac_t""yes" 1>&6 |
9851 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9852 |
- cat >> confdefs.h <<EOF |
9853 |
-#define $ac_tr_func 1 |
9854 |
-EOF |
9855 |
- |
9856 |
-else |
9857 |
- echo "$ac_t""no" 1>&6 |
9858 |
fi |
9859 |
done |
9860 |
|
9861 |
for ac_func in pthread_sigmask |
9862 |
-do |
9863 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9864 |
-echo "configure:5341: checking for $ac_func" >&5 |
9865 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9866 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9867 |
-else |
9868 |
- cat > conftest.$ac_ext <<EOF |
9869 |
-#line 5346 "configure" |
9870 |
-#include "confdefs.h" |
9871 |
-/* System header to define __stub macros and hopefully few prototypes, |
9872 |
- which can conflict with char $ac_func(); below. */ |
9873 |
-#include <assert.h> |
9874 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9875 |
-/* We use char because int might match the return type of a gcc2 |
9876 |
- builtin and then its argument prototype would still apply. */ |
9877 |
-char $ac_func(); |
9878 |
- |
9879 |
-int main() { |
9880 |
- |
9881 |
-/* The GNU C library defines this for functions which it implements |
9882 |
- to always fail with ENOSYS. Some functions are actually named |
9883 |
- something starting with __ and the normal name is an alias. */ |
9884 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9885 |
-choke me |
9886 |
-#else |
9887 |
-$ac_func(); |
9888 |
-#endif |
9889 |
- |
9890 |
-; return 0; } |
9891 |
-EOF |
9892 |
-if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9893 |
- rm -rf conftest* |
9894 |
- eval "ac_cv_func_$ac_func=yes" |
9895 |
-else |
9896 |
- echo "configure: failed program was:" >&5 |
9897 |
- cat conftest.$ac_ext >&5 |
9898 |
- rm -rf conftest* |
9899 |
- eval "ac_cv_func_$ac_func=no" |
9900 |
-fi |
9901 |
-rm -f conftest* |
9902 |
-fi |
9903 |
+do : |
9904 |
+ ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
9905 |
+if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
9906 |
+ cat >>confdefs.h <<_ACEOF |
9907 |
+#define HAVE_PTHREAD_SIGMASK 1 |
9908 |
+_ACEOF |
9909 |
|
9910 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9911 |
- echo "$ac_t""yes" 1>&6 |
9912 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9913 |
- cat >> confdefs.h <<EOF |
9914 |
-#define $ac_tr_func 1 |
9915 |
-EOF |
9916 |
- |
9917 |
-else |
9918 |
- echo "$ac_t""no" 1>&6 |
9919 |
fi |
9920 |
done |
9921 |
|
9922 |
for ac_func in raise |
9923 |
-do |
9924 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9925 |
-echo "configure:5396: checking for $ac_func" >&5 |
9926 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9927 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9928 |
-else |
9929 |
- cat > conftest.$ac_ext <<EOF |
9930 |
-#line 5401 "configure" |
9931 |
-#include "confdefs.h" |
9932 |
-/* System header to define __stub macros and hopefully few prototypes, |
9933 |
- which can conflict with char $ac_func(); below. */ |
9934 |
-#include <assert.h> |
9935 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9936 |
-/* We use char because int might match the return type of a gcc2 |
9937 |
- builtin and then its argument prototype would still apply. */ |
9938 |
-char $ac_func(); |
9939 |
- |
9940 |
-int main() { |
9941 |
- |
9942 |
-/* The GNU C library defines this for functions which it implements |
9943 |
- to always fail with ENOSYS. Some functions are actually named |
9944 |
- something starting with __ and the normal name is an alias. */ |
9945 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9946 |
-choke me |
9947 |
-#else |
9948 |
-$ac_func(); |
9949 |
-#endif |
9950 |
- |
9951 |
-; return 0; } |
9952 |
-EOF |
9953 |
-if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9954 |
- rm -rf conftest* |
9955 |
- eval "ac_cv_func_$ac_func=yes" |
9956 |
-else |
9957 |
- echo "configure: failed program was:" >&5 |
9958 |
- cat conftest.$ac_ext >&5 |
9959 |
- rm -rf conftest* |
9960 |
- eval "ac_cv_func_$ac_func=no" |
9961 |
-fi |
9962 |
-rm -f conftest* |
9963 |
-fi |
9964 |
+do : |
9965 |
+ ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" |
9966 |
+if test "x$ac_cv_func_raise" = xyes; then : |
9967 |
+ cat >>confdefs.h <<_ACEOF |
9968 |
+#define HAVE_RAISE 1 |
9969 |
+_ACEOF |
9970 |
|
9971 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9972 |
- echo "$ac_t""yes" 1>&6 |
9973 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9974 |
- cat >> confdefs.h <<EOF |
9975 |
-#define $ac_tr_func 1 |
9976 |
-EOF |
9977 |
- |
9978 |
-else |
9979 |
- echo "$ac_t""no" 1>&6 |
9980 |
fi |
9981 |
done |
9982 |
|
9983 |
for ac_func in select |
9984 |
-do |
9985 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9986 |
-echo "configure:5451: checking for $ac_func" >&5 |
9987 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9988 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
9989 |
-else |
9990 |
- cat > conftest.$ac_ext <<EOF |
9991 |
-#line 5456 "configure" |
9992 |
-#include "confdefs.h" |
9993 |
-/* System header to define __stub macros and hopefully few prototypes, |
9994 |
- which can conflict with char $ac_func(); below. */ |
9995 |
-#include <assert.h> |
9996 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
9997 |
-/* We use char because int might match the return type of a gcc2 |
9998 |
- builtin and then its argument prototype would still apply. */ |
9999 |
-char $ac_func(); |
10000 |
- |
10001 |
-int main() { |
10002 |
- |
10003 |
-/* The GNU C library defines this for functions which it implements |
10004 |
- to always fail with ENOSYS. Some functions are actually named |
10005 |
- something starting with __ and the normal name is an alias. */ |
10006 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10007 |
-choke me |
10008 |
-#else |
10009 |
-$ac_func(); |
10010 |
-#endif |
10011 |
- |
10012 |
-; return 0; } |
10013 |
-EOF |
10014 |
-if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10015 |
- rm -rf conftest* |
10016 |
- eval "ac_cv_func_$ac_func=yes" |
10017 |
-else |
10018 |
- echo "configure: failed program was:" >&5 |
10019 |
- cat conftest.$ac_ext >&5 |
10020 |
- rm -rf conftest* |
10021 |
- eval "ac_cv_func_$ac_func=no" |
10022 |
-fi |
10023 |
-rm -f conftest* |
10024 |
-fi |
10025 |
+do : |
10026 |
+ ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
10027 |
+if test "x$ac_cv_func_select" = xyes; then : |
10028 |
+ cat >>confdefs.h <<_ACEOF |
10029 |
+#define HAVE_SELECT 1 |
10030 |
+_ACEOF |
10031 |
|
10032 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10033 |
- echo "$ac_t""yes" 1>&6 |
10034 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10035 |
- cat >> confdefs.h <<EOF |
10036 |
-#define $ac_tr_func 1 |
10037 |
-EOF |
10038 |
- |
10039 |
-else |
10040 |
- echo "$ac_t""no" 1>&6 |
10041 |
fi |
10042 |
done |
10043 |
|
10044 |
for ac_func in setlocale |
10045 |
-do |
10046 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10047 |
-echo "configure:5506: checking for $ac_func" >&5 |
10048 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10049 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10050 |
-else |
10051 |
- cat > conftest.$ac_ext <<EOF |
10052 |
-#line 5511 "configure" |
10053 |
-#include "confdefs.h" |
10054 |
-/* System header to define __stub macros and hopefully few prototypes, |
10055 |
- which can conflict with char $ac_func(); below. */ |
10056 |
-#include <assert.h> |
10057 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10058 |
-/* We use char because int might match the return type of a gcc2 |
10059 |
- builtin and then its argument prototype would still apply. */ |
10060 |
-char $ac_func(); |
10061 |
- |
10062 |
-int main() { |
10063 |
- |
10064 |
-/* The GNU C library defines this for functions which it implements |
10065 |
- to always fail with ENOSYS. Some functions are actually named |
10066 |
- something starting with __ and the normal name is an alias. */ |
10067 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10068 |
-choke me |
10069 |
-#else |
10070 |
-$ac_func(); |
10071 |
-#endif |
10072 |
- |
10073 |
-; return 0; } |
10074 |
-EOF |
10075 |
-if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10076 |
- rm -rf conftest* |
10077 |
- eval "ac_cv_func_$ac_func=yes" |
10078 |
-else |
10079 |
- echo "configure: failed program was:" >&5 |
10080 |
- cat conftest.$ac_ext >&5 |
10081 |
- rm -rf conftest* |
10082 |
- eval "ac_cv_func_$ac_func=no" |
10083 |
-fi |
10084 |
-rm -f conftest* |
10085 |
-fi |
10086 |
+do : |
10087 |
+ ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
10088 |
+if test "x$ac_cv_func_setlocale" = xyes; then : |
10089 |
+ cat >>confdefs.h <<_ACEOF |
10090 |
+#define HAVE_SETLOCALE 1 |
10091 |
+_ACEOF |
10092 |
|
10093 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10094 |
- echo "$ac_t""yes" 1>&6 |
10095 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10096 |
- cat >> confdefs.h <<EOF |
10097 |
-#define $ac_tr_func 1 |
10098 |
-EOF |
10099 |
- |
10100 |
-else |
10101 |
- echo "$ac_t""no" 1>&6 |
10102 |
fi |
10103 |
done |
10104 |
|
10105 |
for ac_func in setpgid |
10106 |
-do |
10107 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10108 |
-echo "configure:5561: checking for $ac_func" >&5 |
10109 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10110 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10111 |
-else |
10112 |
- cat > conftest.$ac_ext <<EOF |
10113 |
-#line 5566 "configure" |
10114 |
-#include "confdefs.h" |
10115 |
-/* System header to define __stub macros and hopefully few prototypes, |
10116 |
- which can conflict with char $ac_func(); below. */ |
10117 |
-#include <assert.h> |
10118 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10119 |
-/* We use char because int might match the return type of a gcc2 |
10120 |
- builtin and then its argument prototype would still apply. */ |
10121 |
-char $ac_func(); |
10122 |
- |
10123 |
-int main() { |
10124 |
- |
10125 |
-/* The GNU C library defines this for functions which it implements |
10126 |
- to always fail with ENOSYS. Some functions are actually named |
10127 |
- something starting with __ and the normal name is an alias. */ |
10128 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10129 |
-choke me |
10130 |
-#else |
10131 |
-$ac_func(); |
10132 |
-#endif |
10133 |
+do : |
10134 |
+ ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
10135 |
+if test "x$ac_cv_func_setpgid" = xyes; then : |
10136 |
+ cat >>confdefs.h <<_ACEOF |
10137 |
+#define HAVE_SETPGID 1 |
10138 |
+_ACEOF |
10139 |
|
10140 |
-; return 0; } |
10141 |
-EOF |
10142 |
-if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10143 |
- rm -rf conftest* |
10144 |
- eval "ac_cv_func_$ac_func=yes" |
10145 |
-else |
10146 |
- echo "configure: failed program was:" >&5 |
10147 |
- cat conftest.$ac_ext >&5 |
10148 |
- rm -rf conftest* |
10149 |
- eval "ac_cv_func_$ac_func=no" |
10150 |
-fi |
10151 |
-rm -f conftest* |
10152 |
-fi |
10153 |
- |
10154 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10155 |
- echo "$ac_t""yes" 1>&6 |
10156 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10157 |
- cat >> confdefs.h <<EOF |
10158 |
-#define $ac_tr_func 1 |
10159 |
-EOF |
10160 |
- |
10161 |
-else |
10162 |
- echo "$ac_t""no" 1>&6 |
10163 |
fi |
10164 |
done |
10165 |
|
10166 |
for ac_func in setrlimit |
10167 |
-do |
10168 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10169 |
-echo "configure:5616: checking for $ac_func" >&5 |
10170 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10171 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10172 |
-else |
10173 |
- cat > conftest.$ac_ext <<EOF |
10174 |
-#line 5621 "configure" |
10175 |
-#include "confdefs.h" |
10176 |
-/* System header to define __stub macros and hopefully few prototypes, |
10177 |
- which can conflict with char $ac_func(); below. */ |
10178 |
-#include <assert.h> |
10179 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10180 |
-/* We use char because int might match the return type of a gcc2 |
10181 |
- builtin and then its argument prototype would still apply. */ |
10182 |
-char $ac_func(); |
10183 |
- |
10184 |
-int main() { |
10185 |
- |
10186 |
-/* The GNU C library defines this for functions which it implements |
10187 |
- to always fail with ENOSYS. Some functions are actually named |
10188 |
- something starting with __ and the normal name is an alias. */ |
10189 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10190 |
-choke me |
10191 |
-#else |
10192 |
-$ac_func(); |
10193 |
-#endif |
10194 |
- |
10195 |
-; return 0; } |
10196 |
-EOF |
10197 |
-if { (eval echo configure:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10198 |
- rm -rf conftest* |
10199 |
- eval "ac_cv_func_$ac_func=yes" |
10200 |
-else |
10201 |
- echo "configure: failed program was:" >&5 |
10202 |
- cat conftest.$ac_ext >&5 |
10203 |
- rm -rf conftest* |
10204 |
- eval "ac_cv_func_$ac_func=no" |
10205 |
-fi |
10206 |
-rm -f conftest* |
10207 |
-fi |
10208 |
+do : |
10209 |
+ ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" |
10210 |
+if test "x$ac_cv_func_setrlimit" = xyes; then : |
10211 |
+ cat >>confdefs.h <<_ACEOF |
10212 |
+#define HAVE_SETRLIMIT 1 |
10213 |
+_ACEOF |
10214 |
|
10215 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10216 |
- echo "$ac_t""yes" 1>&6 |
10217 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10218 |
- cat >> confdefs.h <<EOF |
10219 |
-#define $ac_tr_func 1 |
10220 |
-EOF |
10221 |
- |
10222 |
-else |
10223 |
- echo "$ac_t""no" 1>&6 |
10224 |
fi |
10225 |
done |
10226 |
|
10227 |
for ac_func in sigaction |
10228 |
-do |
10229 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10230 |
-echo "configure:5671: checking for $ac_func" >&5 |
10231 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10232 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10233 |
-else |
10234 |
- cat > conftest.$ac_ext <<EOF |
10235 |
-#line 5676 "configure" |
10236 |
-#include "confdefs.h" |
10237 |
-/* System header to define __stub macros and hopefully few prototypes, |
10238 |
- which can conflict with char $ac_func(); below. */ |
10239 |
-#include <assert.h> |
10240 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10241 |
-/* We use char because int might match the return type of a gcc2 |
10242 |
- builtin and then its argument prototype would still apply. */ |
10243 |
-char $ac_func(); |
10244 |
- |
10245 |
-int main() { |
10246 |
- |
10247 |
-/* The GNU C library defines this for functions which it implements |
10248 |
- to always fail with ENOSYS. Some functions are actually named |
10249 |
- something starting with __ and the normal name is an alias. */ |
10250 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10251 |
-choke me |
10252 |
-#else |
10253 |
-$ac_func(); |
10254 |
-#endif |
10255 |
- |
10256 |
-; return 0; } |
10257 |
-EOF |
10258 |
-if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10259 |
- rm -rf conftest* |
10260 |
- eval "ac_cv_func_$ac_func=yes" |
10261 |
-else |
10262 |
- echo "configure: failed program was:" >&5 |
10263 |
- cat conftest.$ac_ext >&5 |
10264 |
- rm -rf conftest* |
10265 |
- eval "ac_cv_func_$ac_func=no" |
10266 |
-fi |
10267 |
-rm -f conftest* |
10268 |
-fi |
10269 |
+do : |
10270 |
+ ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
10271 |
+if test "x$ac_cv_func_sigaction" = xyes; then : |
10272 |
+ cat >>confdefs.h <<_ACEOF |
10273 |
+#define HAVE_SIGACTION 1 |
10274 |
+_ACEOF |
10275 |
|
10276 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10277 |
- echo "$ac_t""yes" 1>&6 |
10278 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10279 |
- cat >> confdefs.h <<EOF |
10280 |
-#define $ac_tr_func 1 |
10281 |
-EOF |
10282 |
- |
10283 |
-else |
10284 |
- echo "$ac_t""no" 1>&6 |
10285 |
fi |
10286 |
done |
10287 |
|
10288 |
for ac_func in sigblock |
10289 |
-do |
10290 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10291 |
-echo "configure:5726: checking for $ac_func" >&5 |
10292 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10293 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10294 |
-else |
10295 |
- cat > conftest.$ac_ext <<EOF |
10296 |
-#line 5731 "configure" |
10297 |
-#include "confdefs.h" |
10298 |
-/* System header to define __stub macros and hopefully few prototypes, |
10299 |
- which can conflict with char $ac_func(); below. */ |
10300 |
-#include <assert.h> |
10301 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10302 |
-/* We use char because int might match the return type of a gcc2 |
10303 |
- builtin and then its argument prototype would still apply. */ |
10304 |
-char $ac_func(); |
10305 |
- |
10306 |
-int main() { |
10307 |
- |
10308 |
-/* The GNU C library defines this for functions which it implements |
10309 |
- to always fail with ENOSYS. Some functions are actually named |
10310 |
- something starting with __ and the normal name is an alias. */ |
10311 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10312 |
-choke me |
10313 |
-#else |
10314 |
-$ac_func(); |
10315 |
-#endif |
10316 |
- |
10317 |
-; return 0; } |
10318 |
-EOF |
10319 |
-if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10320 |
- rm -rf conftest* |
10321 |
- eval "ac_cv_func_$ac_func=yes" |
10322 |
-else |
10323 |
- echo "configure: failed program was:" >&5 |
10324 |
- cat conftest.$ac_ext >&5 |
10325 |
- rm -rf conftest* |
10326 |
- eval "ac_cv_func_$ac_func=no" |
10327 |
-fi |
10328 |
-rm -f conftest* |
10329 |
-fi |
10330 |
+do : |
10331 |
+ ac_fn_c_check_func "$LINENO" "sigblock" "ac_cv_func_sigblock" |
10332 |
+if test "x$ac_cv_func_sigblock" = xyes; then : |
10333 |
+ cat >>confdefs.h <<_ACEOF |
10334 |
+#define HAVE_SIGBLOCK 1 |
10335 |
+_ACEOF |
10336 |
|
10337 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10338 |
- echo "$ac_t""yes" 1>&6 |
10339 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10340 |
- cat >> confdefs.h <<EOF |
10341 |
-#define $ac_tr_func 1 |
10342 |
-EOF |
10343 |
- |
10344 |
-else |
10345 |
- echo "$ac_t""no" 1>&6 |
10346 |
fi |
10347 |
done |
10348 |
|
10349 |
for ac_func in sigdelset |
10350 |
-do |
10351 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10352 |
-echo "configure:5781: checking for $ac_func" >&5 |
10353 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10354 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10355 |
-else |
10356 |
- cat > conftest.$ac_ext <<EOF |
10357 |
-#line 5786 "configure" |
10358 |
-#include "confdefs.h" |
10359 |
-/* System header to define __stub macros and hopefully few prototypes, |
10360 |
- which can conflict with char $ac_func(); below. */ |
10361 |
-#include <assert.h> |
10362 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10363 |
-/* We use char because int might match the return type of a gcc2 |
10364 |
- builtin and then its argument prototype would still apply. */ |
10365 |
-char $ac_func(); |
10366 |
- |
10367 |
-int main() { |
10368 |
- |
10369 |
-/* The GNU C library defines this for functions which it implements |
10370 |
- to always fail with ENOSYS. Some functions are actually named |
10371 |
- something starting with __ and the normal name is an alias. */ |
10372 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10373 |
-choke me |
10374 |
-#else |
10375 |
-$ac_func(); |
10376 |
-#endif |
10377 |
- |
10378 |
-; return 0; } |
10379 |
-EOF |
10380 |
-if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10381 |
- rm -rf conftest* |
10382 |
- eval "ac_cv_func_$ac_func=yes" |
10383 |
-else |
10384 |
- echo "configure: failed program was:" >&5 |
10385 |
- cat conftest.$ac_ext >&5 |
10386 |
- rm -rf conftest* |
10387 |
- eval "ac_cv_func_$ac_func=no" |
10388 |
-fi |
10389 |
-rm -f conftest* |
10390 |
-fi |
10391 |
+do : |
10392 |
+ ac_fn_c_check_func "$LINENO" "sigdelset" "ac_cv_func_sigdelset" |
10393 |
+if test "x$ac_cv_func_sigdelset" = xyes; then : |
10394 |
+ cat >>confdefs.h <<_ACEOF |
10395 |
+#define HAVE_SIGDELSET 1 |
10396 |
+_ACEOF |
10397 |
|
10398 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10399 |
- echo "$ac_t""yes" 1>&6 |
10400 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10401 |
- cat >> confdefs.h <<EOF |
10402 |
-#define $ac_tr_func 1 |
10403 |
-EOF |
10404 |
- |
10405 |
-else |
10406 |
- echo "$ac_t""no" 1>&6 |
10407 |
fi |
10408 |
done |
10409 |
|
10410 |
for ac_func in sigfillset |
10411 |
-do |
10412 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10413 |
-echo "configure:5836: checking for $ac_func" >&5 |
10414 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10415 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10416 |
-else |
10417 |
- cat > conftest.$ac_ext <<EOF |
10418 |
-#line 5841 "configure" |
10419 |
-#include "confdefs.h" |
10420 |
-/* System header to define __stub macros and hopefully few prototypes, |
10421 |
- which can conflict with char $ac_func(); below. */ |
10422 |
-#include <assert.h> |
10423 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10424 |
-/* We use char because int might match the return type of a gcc2 |
10425 |
- builtin and then its argument prototype would still apply. */ |
10426 |
-char $ac_func(); |
10427 |
- |
10428 |
-int main() { |
10429 |
- |
10430 |
-/* The GNU C library defines this for functions which it implements |
10431 |
- to always fail with ENOSYS. Some functions are actually named |
10432 |
- something starting with __ and the normal name is an alias. */ |
10433 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10434 |
-choke me |
10435 |
-#else |
10436 |
-$ac_func(); |
10437 |
-#endif |
10438 |
+do : |
10439 |
+ ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset" |
10440 |
+if test "x$ac_cv_func_sigfillset" = xyes; then : |
10441 |
+ cat >>confdefs.h <<_ACEOF |
10442 |
+#define HAVE_SIGFILLSET 1 |
10443 |
+_ACEOF |
10444 |
|
10445 |
-; return 0; } |
10446 |
-EOF |
10447 |
-if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10448 |
- rm -rf conftest* |
10449 |
- eval "ac_cv_func_$ac_func=yes" |
10450 |
-else |
10451 |
- echo "configure: failed program was:" >&5 |
10452 |
- cat conftest.$ac_ext >&5 |
10453 |
- rm -rf conftest* |
10454 |
- eval "ac_cv_func_$ac_func=no" |
10455 |
-fi |
10456 |
-rm -f conftest* |
10457 |
-fi |
10458 |
- |
10459 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10460 |
- echo "$ac_t""yes" 1>&6 |
10461 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10462 |
- cat >> confdefs.h <<EOF |
10463 |
-#define $ac_tr_func 1 |
10464 |
-EOF |
10465 |
- |
10466 |
-else |
10467 |
- echo "$ac_t""no" 1>&6 |
10468 |
fi |
10469 |
done |
10470 |
|
10471 |
for ac_func in sigprocmask |
10472 |
-do |
10473 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10474 |
-echo "configure:5891: checking for $ac_func" >&5 |
10475 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10476 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10477 |
-else |
10478 |
- cat > conftest.$ac_ext <<EOF |
10479 |
-#line 5896 "configure" |
10480 |
-#include "confdefs.h" |
10481 |
-/* System header to define __stub macros and hopefully few prototypes, |
10482 |
- which can conflict with char $ac_func(); below. */ |
10483 |
-#include <assert.h> |
10484 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10485 |
-/* We use char because int might match the return type of a gcc2 |
10486 |
- builtin and then its argument prototype would still apply. */ |
10487 |
-char $ac_func(); |
10488 |
- |
10489 |
-int main() { |
10490 |
- |
10491 |
-/* The GNU C library defines this for functions which it implements |
10492 |
- to always fail with ENOSYS. Some functions are actually named |
10493 |
- something starting with __ and the normal name is an alias. */ |
10494 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10495 |
-choke me |
10496 |
-#else |
10497 |
-$ac_func(); |
10498 |
-#endif |
10499 |
- |
10500 |
-; return 0; } |
10501 |
-EOF |
10502 |
-if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10503 |
- rm -rf conftest* |
10504 |
- eval "ac_cv_func_$ac_func=yes" |
10505 |
-else |
10506 |
- echo "configure: failed program was:" >&5 |
10507 |
- cat conftest.$ac_ext >&5 |
10508 |
- rm -rf conftest* |
10509 |
- eval "ac_cv_func_$ac_func=no" |
10510 |
-fi |
10511 |
-rm -f conftest* |
10512 |
-fi |
10513 |
+do : |
10514 |
+ ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
10515 |
+if test "x$ac_cv_func_sigprocmask" = xyes; then : |
10516 |
+ cat >>confdefs.h <<_ACEOF |
10517 |
+#define HAVE_SIGPROCMASK 1 |
10518 |
+_ACEOF |
10519 |
|
10520 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10521 |
- echo "$ac_t""yes" 1>&6 |
10522 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10523 |
- cat >> confdefs.h <<EOF |
10524 |
-#define $ac_tr_func 1 |
10525 |
-EOF |
10526 |
- |
10527 |
-else |
10528 |
- echo "$ac_t""no" 1>&6 |
10529 |
fi |
10530 |
done |
10531 |
|
10532 |
for ac_func in sigsetmask |
10533 |
-do |
10534 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10535 |
-echo "configure:5946: checking for $ac_func" >&5 |
10536 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10537 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10538 |
-else |
10539 |
- cat > conftest.$ac_ext <<EOF |
10540 |
-#line 5951 "configure" |
10541 |
-#include "confdefs.h" |
10542 |
-/* System header to define __stub macros and hopefully few prototypes, |
10543 |
- which can conflict with char $ac_func(); below. */ |
10544 |
-#include <assert.h> |
10545 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10546 |
-/* We use char because int might match the return type of a gcc2 |
10547 |
- builtin and then its argument prototype would still apply. */ |
10548 |
-char $ac_func(); |
10549 |
- |
10550 |
-int main() { |
10551 |
- |
10552 |
-/* The GNU C library defines this for functions which it implements |
10553 |
- to always fail with ENOSYS. Some functions are actually named |
10554 |
- something starting with __ and the normal name is an alias. */ |
10555 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10556 |
-choke me |
10557 |
-#else |
10558 |
-$ac_func(); |
10559 |
-#endif |
10560 |
+do : |
10561 |
+ ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask" |
10562 |
+if test "x$ac_cv_func_sigsetmask" = xyes; then : |
10563 |
+ cat >>confdefs.h <<_ACEOF |
10564 |
+#define HAVE_SIGSETMASK 1 |
10565 |
+_ACEOF |
10566 |
|
10567 |
-; return 0; } |
10568 |
-EOF |
10569 |
-if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10570 |
- rm -rf conftest* |
10571 |
- eval "ac_cv_func_$ac_func=yes" |
10572 |
-else |
10573 |
- echo "configure: failed program was:" >&5 |
10574 |
- cat conftest.$ac_ext >&5 |
10575 |
- rm -rf conftest* |
10576 |
- eval "ac_cv_func_$ac_func=no" |
10577 |
-fi |
10578 |
-rm -f conftest* |
10579 |
-fi |
10580 |
- |
10581 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10582 |
- echo "$ac_t""yes" 1>&6 |
10583 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10584 |
- cat >> confdefs.h <<EOF |
10585 |
-#define $ac_tr_func 1 |
10586 |
-EOF |
10587 |
- |
10588 |
-else |
10589 |
- echo "$ac_t""no" 1>&6 |
10590 |
fi |
10591 |
done |
10592 |
|
10593 |
for ac_func in snprintf |
10594 |
-do |
10595 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10596 |
-echo "configure:6001: checking for $ac_func" >&5 |
10597 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10598 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10599 |
-else |
10600 |
- cat > conftest.$ac_ext <<EOF |
10601 |
-#line 6006 "configure" |
10602 |
-#include "confdefs.h" |
10603 |
-/* System header to define __stub macros and hopefully few prototypes, |
10604 |
- which can conflict with char $ac_func(); below. */ |
10605 |
-#include <assert.h> |
10606 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10607 |
-/* We use char because int might match the return type of a gcc2 |
10608 |
- builtin and then its argument prototype would still apply. */ |
10609 |
-char $ac_func(); |
10610 |
- |
10611 |
-int main() { |
10612 |
- |
10613 |
-/* The GNU C library defines this for functions which it implements |
10614 |
- to always fail with ENOSYS. Some functions are actually named |
10615 |
- something starting with __ and the normal name is an alias. */ |
10616 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10617 |
-choke me |
10618 |
-#else |
10619 |
-$ac_func(); |
10620 |
-#endif |
10621 |
- |
10622 |
-; return 0; } |
10623 |
-EOF |
10624 |
-if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10625 |
- rm -rf conftest* |
10626 |
- eval "ac_cv_func_$ac_func=yes" |
10627 |
-else |
10628 |
- echo "configure: failed program was:" >&5 |
10629 |
- cat conftest.$ac_ext >&5 |
10630 |
- rm -rf conftest* |
10631 |
- eval "ac_cv_func_$ac_func=no" |
10632 |
-fi |
10633 |
-rm -f conftest* |
10634 |
-fi |
10635 |
+do : |
10636 |
+ ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
10637 |
+if test "x$ac_cv_func_snprintf" = xyes; then : |
10638 |
+ cat >>confdefs.h <<_ACEOF |
10639 |
+#define HAVE_SNPRINTF 1 |
10640 |
+_ACEOF |
10641 |
|
10642 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10643 |
- echo "$ac_t""yes" 1>&6 |
10644 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10645 |
- cat >> confdefs.h <<EOF |
10646 |
-#define $ac_tr_func 1 |
10647 |
-EOF |
10648 |
- |
10649 |
-else |
10650 |
- echo "$ac_t""no" 1>&6 |
10651 |
fi |
10652 |
done |
10653 |
|
10654 |
for ac_func in strdup |
10655 |
-do |
10656 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10657 |
-echo "configure:6056: checking for $ac_func" >&5 |
10658 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10659 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10660 |
-else |
10661 |
- cat > conftest.$ac_ext <<EOF |
10662 |
-#line 6061 "configure" |
10663 |
-#include "confdefs.h" |
10664 |
-/* System header to define __stub macros and hopefully few prototypes, |
10665 |
- which can conflict with char $ac_func(); below. */ |
10666 |
-#include <assert.h> |
10667 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10668 |
-/* We use char because int might match the return type of a gcc2 |
10669 |
- builtin and then its argument prototype would still apply. */ |
10670 |
-char $ac_func(); |
10671 |
- |
10672 |
-int main() { |
10673 |
- |
10674 |
-/* The GNU C library defines this for functions which it implements |
10675 |
- to always fail with ENOSYS. Some functions are actually named |
10676 |
- something starting with __ and the normal name is an alias. */ |
10677 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10678 |
-choke me |
10679 |
-#else |
10680 |
-$ac_func(); |
10681 |
-#endif |
10682 |
- |
10683 |
-; return 0; } |
10684 |
-EOF |
10685 |
-if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10686 |
- rm -rf conftest* |
10687 |
- eval "ac_cv_func_$ac_func=yes" |
10688 |
-else |
10689 |
- echo "configure: failed program was:" >&5 |
10690 |
- cat conftest.$ac_ext >&5 |
10691 |
- rm -rf conftest* |
10692 |
- eval "ac_cv_func_$ac_func=no" |
10693 |
-fi |
10694 |
-rm -f conftest* |
10695 |
-fi |
10696 |
+do : |
10697 |
+ ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
10698 |
+if test "x$ac_cv_func_strdup" = xyes; then : |
10699 |
+ cat >>confdefs.h <<_ACEOF |
10700 |
+#define HAVE_STRDUP 1 |
10701 |
+_ACEOF |
10702 |
|
10703 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10704 |
- echo "$ac_t""yes" 1>&6 |
10705 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10706 |
- cat >> confdefs.h <<EOF |
10707 |
-#define $ac_tr_func 1 |
10708 |
-EOF |
10709 |
- |
10710 |
-else |
10711 |
- echo "$ac_t""no" 1>&6 |
10712 |
fi |
10713 |
done |
10714 |
|
10715 |
for ac_func in strptime |
10716 |
-do |
10717 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10718 |
-echo "configure:6111: checking for $ac_func" >&5 |
10719 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10720 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10721 |
-else |
10722 |
- cat > conftest.$ac_ext <<EOF |
10723 |
-#line 6116 "configure" |
10724 |
-#include "confdefs.h" |
10725 |
-/* System header to define __stub macros and hopefully few prototypes, |
10726 |
- which can conflict with char $ac_func(); below. */ |
10727 |
-#include <assert.h> |
10728 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10729 |
-/* We use char because int might match the return type of a gcc2 |
10730 |
- builtin and then its argument prototype would still apply. */ |
10731 |
-char $ac_func(); |
10732 |
- |
10733 |
-int main() { |
10734 |
- |
10735 |
-/* The GNU C library defines this for functions which it implements |
10736 |
- to always fail with ENOSYS. Some functions are actually named |
10737 |
- something starting with __ and the normal name is an alias. */ |
10738 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10739 |
-choke me |
10740 |
-#else |
10741 |
-$ac_func(); |
10742 |
-#endif |
10743 |
- |
10744 |
-; return 0; } |
10745 |
-EOF |
10746 |
-if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10747 |
- rm -rf conftest* |
10748 |
- eval "ac_cv_func_$ac_func=yes" |
10749 |
-else |
10750 |
- echo "configure: failed program was:" >&5 |
10751 |
- cat conftest.$ac_ext >&5 |
10752 |
- rm -rf conftest* |
10753 |
- eval "ac_cv_func_$ac_func=no" |
10754 |
-fi |
10755 |
-rm -f conftest* |
10756 |
-fi |
10757 |
+do : |
10758 |
+ ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" |
10759 |
+if test "x$ac_cv_func_strptime" = xyes; then : |
10760 |
+ cat >>confdefs.h <<_ACEOF |
10761 |
+#define HAVE_STRPTIME 1 |
10762 |
+_ACEOF |
10763 |
|
10764 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10765 |
- echo "$ac_t""yes" 1>&6 |
10766 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10767 |
- cat >> confdefs.h <<EOF |
10768 |
-#define $ac_tr_func 1 |
10769 |
-EOF |
10770 |
- |
10771 |
-else |
10772 |
- echo "$ac_t""no" 1>&6 |
10773 |
fi |
10774 |
done |
10775 |
|
10776 |
for ac_func in strtod |
10777 |
-do |
10778 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10779 |
-echo "configure:6166: checking for $ac_func" >&5 |
10780 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10781 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10782 |
-else |
10783 |
- cat > conftest.$ac_ext <<EOF |
10784 |
-#line 6171 "configure" |
10785 |
-#include "confdefs.h" |
10786 |
-/* System header to define __stub macros and hopefully few prototypes, |
10787 |
- which can conflict with char $ac_func(); below. */ |
10788 |
-#include <assert.h> |
10789 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10790 |
-/* We use char because int might match the return type of a gcc2 |
10791 |
- builtin and then its argument prototype would still apply. */ |
10792 |
-char $ac_func(); |
10793 |
- |
10794 |
-int main() { |
10795 |
- |
10796 |
-/* The GNU C library defines this for functions which it implements |
10797 |
- to always fail with ENOSYS. Some functions are actually named |
10798 |
- something starting with __ and the normal name is an alias. */ |
10799 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10800 |
-choke me |
10801 |
-#else |
10802 |
-$ac_func(); |
10803 |
-#endif |
10804 |
- |
10805 |
-; return 0; } |
10806 |
-EOF |
10807 |
-if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10808 |
- rm -rf conftest* |
10809 |
- eval "ac_cv_func_$ac_func=yes" |
10810 |
-else |
10811 |
- echo "configure: failed program was:" >&5 |
10812 |
- cat conftest.$ac_ext >&5 |
10813 |
- rm -rf conftest* |
10814 |
- eval "ac_cv_func_$ac_func=no" |
10815 |
-fi |
10816 |
-rm -f conftest* |
10817 |
-fi |
10818 |
+do : |
10819 |
+ ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod" |
10820 |
+if test "x$ac_cv_func_strtod" = xyes; then : |
10821 |
+ cat >>confdefs.h <<_ACEOF |
10822 |
+#define HAVE_STRTOD 1 |
10823 |
+_ACEOF |
10824 |
|
10825 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10826 |
- echo "$ac_t""yes" 1>&6 |
10827 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10828 |
- cat >> confdefs.h <<EOF |
10829 |
-#define $ac_tr_func 1 |
10830 |
-EOF |
10831 |
- |
10832 |
-else |
10833 |
- echo "$ac_t""no" 1>&6 |
10834 |
fi |
10835 |
done |
10836 |
|
10837 |
for ac_func in strtoimax |
10838 |
-do |
10839 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10840 |
-echo "configure:6221: checking for $ac_func" >&5 |
10841 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10842 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10843 |
-else |
10844 |
- cat > conftest.$ac_ext <<EOF |
10845 |
-#line 6226 "configure" |
10846 |
-#include "confdefs.h" |
10847 |
-/* System header to define __stub macros and hopefully few prototypes, |
10848 |
- which can conflict with char $ac_func(); below. */ |
10849 |
-#include <assert.h> |
10850 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10851 |
-/* We use char because int might match the return type of a gcc2 |
10852 |
- builtin and then its argument prototype would still apply. */ |
10853 |
-char $ac_func(); |
10854 |
- |
10855 |
-int main() { |
10856 |
- |
10857 |
-/* The GNU C library defines this for functions which it implements |
10858 |
- to always fail with ENOSYS. Some functions are actually named |
10859 |
- something starting with __ and the normal name is an alias. */ |
10860 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10861 |
-choke me |
10862 |
-#else |
10863 |
-$ac_func(); |
10864 |
-#endif |
10865 |
- |
10866 |
-; return 0; } |
10867 |
-EOF |
10868 |
-if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10869 |
- rm -rf conftest* |
10870 |
- eval "ac_cv_func_$ac_func=yes" |
10871 |
-else |
10872 |
- echo "configure: failed program was:" >&5 |
10873 |
- cat conftest.$ac_ext >&5 |
10874 |
- rm -rf conftest* |
10875 |
- eval "ac_cv_func_$ac_func=no" |
10876 |
-fi |
10877 |
-rm -f conftest* |
10878 |
-fi |
10879 |
+do : |
10880 |
+ ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax" |
10881 |
+if test "x$ac_cv_func_strtoimax" = xyes; then : |
10882 |
+ cat >>confdefs.h <<_ACEOF |
10883 |
+#define HAVE_STRTOIMAX 1 |
10884 |
+_ACEOF |
10885 |
|
10886 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10887 |
- echo "$ac_t""yes" 1>&6 |
10888 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10889 |
- cat >> confdefs.h <<EOF |
10890 |
-#define $ac_tr_func 1 |
10891 |
-EOF |
10892 |
- |
10893 |
-else |
10894 |
- echo "$ac_t""no" 1>&6 |
10895 |
fi |
10896 |
done |
10897 |
|
10898 |
for ac_func in strtol |
10899 |
-do |
10900 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10901 |
-echo "configure:6276: checking for $ac_func" >&5 |
10902 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10903 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10904 |
-else |
10905 |
- cat > conftest.$ac_ext <<EOF |
10906 |
-#line 6281 "configure" |
10907 |
-#include "confdefs.h" |
10908 |
-/* System header to define __stub macros and hopefully few prototypes, |
10909 |
- which can conflict with char $ac_func(); below. */ |
10910 |
-#include <assert.h> |
10911 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10912 |
-/* We use char because int might match the return type of a gcc2 |
10913 |
- builtin and then its argument prototype would still apply. */ |
10914 |
-char $ac_func(); |
10915 |
- |
10916 |
-int main() { |
10917 |
- |
10918 |
-/* The GNU C library defines this for functions which it implements |
10919 |
- to always fail with ENOSYS. Some functions are actually named |
10920 |
- something starting with __ and the normal name is an alias. */ |
10921 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10922 |
-choke me |
10923 |
-#else |
10924 |
-$ac_func(); |
10925 |
-#endif |
10926 |
- |
10927 |
-; return 0; } |
10928 |
-EOF |
10929 |
-if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10930 |
- rm -rf conftest* |
10931 |
- eval "ac_cv_func_$ac_func=yes" |
10932 |
-else |
10933 |
- echo "configure: failed program was:" >&5 |
10934 |
- cat conftest.$ac_ext >&5 |
10935 |
- rm -rf conftest* |
10936 |
- eval "ac_cv_func_$ac_func=no" |
10937 |
-fi |
10938 |
-rm -f conftest* |
10939 |
-fi |
10940 |
+do : |
10941 |
+ ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
10942 |
+if test "x$ac_cv_func_strtol" = xyes; then : |
10943 |
+ cat >>confdefs.h <<_ACEOF |
10944 |
+#define HAVE_STRTOL 1 |
10945 |
+_ACEOF |
10946 |
|
10947 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10948 |
- echo "$ac_t""yes" 1>&6 |
10949 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
10950 |
- cat >> confdefs.h <<EOF |
10951 |
-#define $ac_tr_func 1 |
10952 |
-EOF |
10953 |
- |
10954 |
-else |
10955 |
- echo "$ac_t""no" 1>&6 |
10956 |
fi |
10957 |
done |
10958 |
|
10959 |
for ac_func in strtoll |
10960 |
-do |
10961 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
10962 |
-echo "configure:6331: checking for $ac_func" >&5 |
10963 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10964 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
10965 |
-else |
10966 |
- cat > conftest.$ac_ext <<EOF |
10967 |
-#line 6336 "configure" |
10968 |
-#include "confdefs.h" |
10969 |
-/* System header to define __stub macros and hopefully few prototypes, |
10970 |
- which can conflict with char $ac_func(); below. */ |
10971 |
-#include <assert.h> |
10972 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
10973 |
-/* We use char because int might match the return type of a gcc2 |
10974 |
- builtin and then its argument prototype would still apply. */ |
10975 |
-char $ac_func(); |
10976 |
- |
10977 |
-int main() { |
10978 |
- |
10979 |
-/* The GNU C library defines this for functions which it implements |
10980 |
- to always fail with ENOSYS. Some functions are actually named |
10981 |
- something starting with __ and the normal name is an alias. */ |
10982 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10983 |
-choke me |
10984 |
-#else |
10985 |
-$ac_func(); |
10986 |
-#endif |
10987 |
- |
10988 |
-; return 0; } |
10989 |
-EOF |
10990 |
-if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10991 |
- rm -rf conftest* |
10992 |
- eval "ac_cv_func_$ac_func=yes" |
10993 |
-else |
10994 |
- echo "configure: failed program was:" >&5 |
10995 |
- cat conftest.$ac_ext >&5 |
10996 |
- rm -rf conftest* |
10997 |
- eval "ac_cv_func_$ac_func=no" |
10998 |
-fi |
10999 |
-rm -f conftest* |
11000 |
-fi |
11001 |
+do : |
11002 |
+ ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
11003 |
+if test "x$ac_cv_func_strtoll" = xyes; then : |
11004 |
+ cat >>confdefs.h <<_ACEOF |
11005 |
+#define HAVE_STRTOLL 1 |
11006 |
+_ACEOF |
11007 |
|
11008 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11009 |
- echo "$ac_t""yes" 1>&6 |
11010 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11011 |
- cat >> confdefs.h <<EOF |
11012 |
-#define $ac_tr_func 1 |
11013 |
-EOF |
11014 |
- |
11015 |
-else |
11016 |
- echo "$ac_t""no" 1>&6 |
11017 |
fi |
11018 |
done |
11019 |
|
11020 |
for ac_func in __strtoll |
11021 |
-do |
11022 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11023 |
-echo "configure:6386: checking for $ac_func" >&5 |
11024 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11025 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11026 |
-else |
11027 |
- cat > conftest.$ac_ext <<EOF |
11028 |
-#line 6391 "configure" |
11029 |
-#include "confdefs.h" |
11030 |
-/* System header to define __stub macros and hopefully few prototypes, |
11031 |
- which can conflict with char $ac_func(); below. */ |
11032 |
-#include <assert.h> |
11033 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11034 |
-/* We use char because int might match the return type of a gcc2 |
11035 |
- builtin and then its argument prototype would still apply. */ |
11036 |
-char $ac_func(); |
11037 |
- |
11038 |
-int main() { |
11039 |
- |
11040 |
-/* The GNU C library defines this for functions which it implements |
11041 |
- to always fail with ENOSYS. Some functions are actually named |
11042 |
- something starting with __ and the normal name is an alias. */ |
11043 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11044 |
-choke me |
11045 |
-#else |
11046 |
-$ac_func(); |
11047 |
-#endif |
11048 |
- |
11049 |
-; return 0; } |
11050 |
-EOF |
11051 |
-if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11052 |
- rm -rf conftest* |
11053 |
- eval "ac_cv_func_$ac_func=yes" |
11054 |
-else |
11055 |
- echo "configure: failed program was:" >&5 |
11056 |
- cat conftest.$ac_ext >&5 |
11057 |
- rm -rf conftest* |
11058 |
- eval "ac_cv_func_$ac_func=no" |
11059 |
-fi |
11060 |
-rm -f conftest* |
11061 |
-fi |
11062 |
+do : |
11063 |
+ ac_fn_c_check_func "$LINENO" "__strtoll" "ac_cv_func___strtoll" |
11064 |
+if test "x$ac_cv_func___strtoll" = xyes; then : |
11065 |
+ cat >>confdefs.h <<_ACEOF |
11066 |
+#define HAVE___STRTOLL 1 |
11067 |
+_ACEOF |
11068 |
|
11069 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11070 |
- echo "$ac_t""yes" 1>&6 |
11071 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11072 |
- cat >> confdefs.h <<EOF |
11073 |
-#define $ac_tr_func 1 |
11074 |
-EOF |
11075 |
- |
11076 |
-else |
11077 |
- echo "$ac_t""no" 1>&6 |
11078 |
fi |
11079 |
done |
11080 |
|
11081 |
for ac_func in strtoq |
11082 |
-do |
11083 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11084 |
-echo "configure:6441: checking for $ac_func" >&5 |
11085 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11086 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11087 |
-else |
11088 |
- cat > conftest.$ac_ext <<EOF |
11089 |
-#line 6446 "configure" |
11090 |
-#include "confdefs.h" |
11091 |
-/* System header to define __stub macros and hopefully few prototypes, |
11092 |
- which can conflict with char $ac_func(); below. */ |
11093 |
-#include <assert.h> |
11094 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11095 |
-/* We use char because int might match the return type of a gcc2 |
11096 |
- builtin and then its argument prototype would still apply. */ |
11097 |
-char $ac_func(); |
11098 |
- |
11099 |
-int main() { |
11100 |
- |
11101 |
-/* The GNU C library defines this for functions which it implements |
11102 |
- to always fail with ENOSYS. Some functions are actually named |
11103 |
- something starting with __ and the normal name is an alias. */ |
11104 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11105 |
-choke me |
11106 |
-#else |
11107 |
-$ac_func(); |
11108 |
-#endif |
11109 |
- |
11110 |
-; return 0; } |
11111 |
-EOF |
11112 |
-if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11113 |
- rm -rf conftest* |
11114 |
- eval "ac_cv_func_$ac_func=yes" |
11115 |
-else |
11116 |
- echo "configure: failed program was:" >&5 |
11117 |
- cat conftest.$ac_ext >&5 |
11118 |
- rm -rf conftest* |
11119 |
- eval "ac_cv_func_$ac_func=no" |
11120 |
-fi |
11121 |
-rm -f conftest* |
11122 |
-fi |
11123 |
+do : |
11124 |
+ ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq" |
11125 |
+if test "x$ac_cv_func_strtoq" = xyes; then : |
11126 |
+ cat >>confdefs.h <<_ACEOF |
11127 |
+#define HAVE_STRTOQ 1 |
11128 |
+_ACEOF |
11129 |
|
11130 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11131 |
- echo "$ac_t""yes" 1>&6 |
11132 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11133 |
- cat >> confdefs.h <<EOF |
11134 |
-#define $ac_tr_func 1 |
11135 |
-EOF |
11136 |
- |
11137 |
-else |
11138 |
- echo "$ac_t""no" 1>&6 |
11139 |
fi |
11140 |
done |
11141 |
|
11142 |
for ac_func in strtoul |
11143 |
-do |
11144 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11145 |
-echo "configure:6496: checking for $ac_func" >&5 |
11146 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11147 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11148 |
-else |
11149 |
- cat > conftest.$ac_ext <<EOF |
11150 |
-#line 6501 "configure" |
11151 |
-#include "confdefs.h" |
11152 |
-/* System header to define __stub macros and hopefully few prototypes, |
11153 |
- which can conflict with char $ac_func(); below. */ |
11154 |
-#include <assert.h> |
11155 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11156 |
-/* We use char because int might match the return type of a gcc2 |
11157 |
- builtin and then its argument prototype would still apply. */ |
11158 |
-char $ac_func(); |
11159 |
- |
11160 |
-int main() { |
11161 |
- |
11162 |
-/* The GNU C library defines this for functions which it implements |
11163 |
- to always fail with ENOSYS. Some functions are actually named |
11164 |
- something starting with __ and the normal name is an alias. */ |
11165 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11166 |
-choke me |
11167 |
-#else |
11168 |
-$ac_func(); |
11169 |
-#endif |
11170 |
- |
11171 |
-; return 0; } |
11172 |
-EOF |
11173 |
-if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11174 |
- rm -rf conftest* |
11175 |
- eval "ac_cv_func_$ac_func=yes" |
11176 |
-else |
11177 |
- echo "configure: failed program was:" >&5 |
11178 |
- cat conftest.$ac_ext >&5 |
11179 |
- rm -rf conftest* |
11180 |
- eval "ac_cv_func_$ac_func=no" |
11181 |
-fi |
11182 |
-rm -f conftest* |
11183 |
-fi |
11184 |
+do : |
11185 |
+ ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" |
11186 |
+if test "x$ac_cv_func_strtoul" = xyes; then : |
11187 |
+ cat >>confdefs.h <<_ACEOF |
11188 |
+#define HAVE_STRTOUL 1 |
11189 |
+_ACEOF |
11190 |
|
11191 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11192 |
- echo "$ac_t""yes" 1>&6 |
11193 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11194 |
- cat >> confdefs.h <<EOF |
11195 |
-#define $ac_tr_func 1 |
11196 |
-EOF |
11197 |
- |
11198 |
-else |
11199 |
- echo "$ac_t""no" 1>&6 |
11200 |
fi |
11201 |
done |
11202 |
|
11203 |
for ac_func in tempnam |
11204 |
-do |
11205 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11206 |
-echo "configure:6551: checking for $ac_func" >&5 |
11207 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11208 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11209 |
-else |
11210 |
- cat > conftest.$ac_ext <<EOF |
11211 |
-#line 6556 "configure" |
11212 |
-#include "confdefs.h" |
11213 |
-/* System header to define __stub macros and hopefully few prototypes, |
11214 |
- which can conflict with char $ac_func(); below. */ |
11215 |
-#include <assert.h> |
11216 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11217 |
-/* We use char because int might match the return type of a gcc2 |
11218 |
- builtin and then its argument prototype would still apply. */ |
11219 |
-char $ac_func(); |
11220 |
- |
11221 |
-int main() { |
11222 |
- |
11223 |
-/* The GNU C library defines this for functions which it implements |
11224 |
- to always fail with ENOSYS. Some functions are actually named |
11225 |
- something starting with __ and the normal name is an alias. */ |
11226 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11227 |
-choke me |
11228 |
-#else |
11229 |
-$ac_func(); |
11230 |
-#endif |
11231 |
- |
11232 |
-; return 0; } |
11233 |
-EOF |
11234 |
-if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11235 |
- rm -rf conftest* |
11236 |
- eval "ac_cv_func_$ac_func=yes" |
11237 |
-else |
11238 |
- echo "configure: failed program was:" >&5 |
11239 |
- cat conftest.$ac_ext >&5 |
11240 |
- rm -rf conftest* |
11241 |
- eval "ac_cv_func_$ac_func=no" |
11242 |
-fi |
11243 |
-rm -f conftest* |
11244 |
-fi |
11245 |
+do : |
11246 |
+ ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" |
11247 |
+if test "x$ac_cv_func_tempnam" = xyes; then : |
11248 |
+ cat >>confdefs.h <<_ACEOF |
11249 |
+#define HAVE_TEMPNAM 1 |
11250 |
+_ACEOF |
11251 |
|
11252 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11253 |
- echo "$ac_t""yes" 1>&6 |
11254 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11255 |
- cat >> confdefs.h <<EOF |
11256 |
-#define $ac_tr_func 1 |
11257 |
-EOF |
11258 |
- |
11259 |
-else |
11260 |
- echo "$ac_t""no" 1>&6 |
11261 |
fi |
11262 |
done |
11263 |
|
11264 |
for ac_func in uname |
11265 |
-do |
11266 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11267 |
-echo "configure:6606: checking for $ac_func" >&5 |
11268 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11269 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11270 |
-else |
11271 |
- cat > conftest.$ac_ext <<EOF |
11272 |
-#line 6611 "configure" |
11273 |
-#include "confdefs.h" |
11274 |
-/* System header to define __stub macros and hopefully few prototypes, |
11275 |
- which can conflict with char $ac_func(); below. */ |
11276 |
-#include <assert.h> |
11277 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11278 |
-/* We use char because int might match the return type of a gcc2 |
11279 |
- builtin and then its argument prototype would still apply. */ |
11280 |
-char $ac_func(); |
11281 |
- |
11282 |
-int main() { |
11283 |
- |
11284 |
-/* The GNU C library defines this for functions which it implements |
11285 |
- to always fail with ENOSYS. Some functions are actually named |
11286 |
- something starting with __ and the normal name is an alias. */ |
11287 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11288 |
-choke me |
11289 |
-#else |
11290 |
-$ac_func(); |
11291 |
-#endif |
11292 |
- |
11293 |
-; return 0; } |
11294 |
-EOF |
11295 |
-if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11296 |
- rm -rf conftest* |
11297 |
- eval "ac_cv_func_$ac_func=yes" |
11298 |
-else |
11299 |
- echo "configure: failed program was:" >&5 |
11300 |
- cat conftest.$ac_ext >&5 |
11301 |
- rm -rf conftest* |
11302 |
- eval "ac_cv_func_$ac_func=no" |
11303 |
-fi |
11304 |
-rm -f conftest* |
11305 |
-fi |
11306 |
+do : |
11307 |
+ ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" |
11308 |
+if test "x$ac_cv_func_uname" = xyes; then : |
11309 |
+ cat >>confdefs.h <<_ACEOF |
11310 |
+#define HAVE_UNAME 1 |
11311 |
+_ACEOF |
11312 |
|
11313 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11314 |
- echo "$ac_t""yes" 1>&6 |
11315 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11316 |
- cat >> confdefs.h <<EOF |
11317 |
-#define $ac_tr_func 1 |
11318 |
-EOF |
11319 |
- |
11320 |
-else |
11321 |
- echo "$ac_t""no" 1>&6 |
11322 |
fi |
11323 |
done |
11324 |
|
11325 |
for ac_func in utime |
11326 |
-do |
11327 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11328 |
-echo "configure:6661: checking for $ac_func" >&5 |
11329 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11330 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11331 |
-else |
11332 |
- cat > conftest.$ac_ext <<EOF |
11333 |
-#line 6666 "configure" |
11334 |
-#include "confdefs.h" |
11335 |
-/* System header to define __stub macros and hopefully few prototypes, |
11336 |
- which can conflict with char $ac_func(); below. */ |
11337 |
-#include <assert.h> |
11338 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11339 |
-/* We use char because int might match the return type of a gcc2 |
11340 |
- builtin and then its argument prototype would still apply. */ |
11341 |
-char $ac_func(); |
11342 |
- |
11343 |
-int main() { |
11344 |
- |
11345 |
-/* The GNU C library defines this for functions which it implements |
11346 |
- to always fail with ENOSYS. Some functions are actually named |
11347 |
- something starting with __ and the normal name is an alias. */ |
11348 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11349 |
-choke me |
11350 |
-#else |
11351 |
-$ac_func(); |
11352 |
-#endif |
11353 |
- |
11354 |
-; return 0; } |
11355 |
-EOF |
11356 |
-if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11357 |
- rm -rf conftest* |
11358 |
- eval "ac_cv_func_$ac_func=yes" |
11359 |
-else |
11360 |
- echo "configure: failed program was:" >&5 |
11361 |
- cat conftest.$ac_ext >&5 |
11362 |
- rm -rf conftest* |
11363 |
- eval "ac_cv_func_$ac_func=no" |
11364 |
-fi |
11365 |
-rm -f conftest* |
11366 |
-fi |
11367 |
+do : |
11368 |
+ ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
11369 |
+if test "x$ac_cv_func_utime" = xyes; then : |
11370 |
+ cat >>confdefs.h <<_ACEOF |
11371 |
+#define HAVE_UTIME 1 |
11372 |
+_ACEOF |
11373 |
|
11374 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11375 |
- echo "$ac_t""yes" 1>&6 |
11376 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11377 |
- cat >> confdefs.h <<EOF |
11378 |
-#define $ac_tr_func 1 |
11379 |
-EOF |
11380 |
- |
11381 |
-else |
11382 |
- echo "$ac_t""no" 1>&6 |
11383 |
fi |
11384 |
done |
11385 |
|
11386 |
for ac_func in utimes |
11387 |
-do |
11388 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11389 |
-echo "configure:6716: checking for $ac_func" >&5 |
11390 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11391 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11392 |
-else |
11393 |
- cat > conftest.$ac_ext <<EOF |
11394 |
-#line 6721 "configure" |
11395 |
-#include "confdefs.h" |
11396 |
-/* System header to define __stub macros and hopefully few prototypes, |
11397 |
- which can conflict with char $ac_func(); below. */ |
11398 |
-#include <assert.h> |
11399 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11400 |
-/* We use char because int might match the return type of a gcc2 |
11401 |
- builtin and then its argument prototype would still apply. */ |
11402 |
-char $ac_func(); |
11403 |
- |
11404 |
-int main() { |
11405 |
- |
11406 |
-/* The GNU C library defines this for functions which it implements |
11407 |
- to always fail with ENOSYS. Some functions are actually named |
11408 |
- something starting with __ and the normal name is an alias. */ |
11409 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11410 |
-choke me |
11411 |
-#else |
11412 |
-$ac_func(); |
11413 |
-#endif |
11414 |
- |
11415 |
-; return 0; } |
11416 |
-EOF |
11417 |
-if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11418 |
- rm -rf conftest* |
11419 |
- eval "ac_cv_func_$ac_func=yes" |
11420 |
-else |
11421 |
- echo "configure: failed program was:" >&5 |
11422 |
- cat conftest.$ac_ext >&5 |
11423 |
- rm -rf conftest* |
11424 |
- eval "ac_cv_func_$ac_func=no" |
11425 |
-fi |
11426 |
-rm -f conftest* |
11427 |
-fi |
11428 |
+do : |
11429 |
+ ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
11430 |
+if test "x$ac_cv_func_utimes" = xyes; then : |
11431 |
+ cat >>confdefs.h <<_ACEOF |
11432 |
+#define HAVE_UTIMES 1 |
11433 |
+_ACEOF |
11434 |
|
11435 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11436 |
- echo "$ac_t""yes" 1>&6 |
11437 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11438 |
- cat >> confdefs.h <<EOF |
11439 |
-#define $ac_tr_func 1 |
11440 |
-EOF |
11441 |
- |
11442 |
-else |
11443 |
- echo "$ac_t""no" 1>&6 |
11444 |
fi |
11445 |
done |
11446 |
|
11447 |
for ac_func in _heapmin |
11448 |
-do |
11449 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11450 |
-echo "configure:6771: checking for $ac_func" >&5 |
11451 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11452 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11453 |
-else |
11454 |
- cat > conftest.$ac_ext <<EOF |
11455 |
-#line 6776 "configure" |
11456 |
-#include "confdefs.h" |
11457 |
-/* System header to define __stub macros and hopefully few prototypes, |
11458 |
- which can conflict with char $ac_func(); below. */ |
11459 |
-#include <assert.h> |
11460 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11461 |
-/* We use char because int might match the return type of a gcc2 |
11462 |
- builtin and then its argument prototype would still apply. */ |
11463 |
-char $ac_func(); |
11464 |
- |
11465 |
-int main() { |
11466 |
- |
11467 |
-/* The GNU C library defines this for functions which it implements |
11468 |
- to always fail with ENOSYS. Some functions are actually named |
11469 |
- something starting with __ and the normal name is an alias. */ |
11470 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11471 |
-choke me |
11472 |
-#else |
11473 |
-$ac_func(); |
11474 |
-#endif |
11475 |
+do : |
11476 |
+ ac_fn_c_check_func "$LINENO" "_heapmin" "ac_cv_func__heapmin" |
11477 |
+if test "x$ac_cv_func__heapmin" = xyes; then : |
11478 |
+ cat >>confdefs.h <<_ACEOF |
11479 |
+#define HAVE__HEAPMIN 1 |
11480 |
+_ACEOF |
11481 |
|
11482 |
-; return 0; } |
11483 |
-EOF |
11484 |
-if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11485 |
- rm -rf conftest* |
11486 |
- eval "ac_cv_func_$ac_func=yes" |
11487 |
-else |
11488 |
- echo "configure: failed program was:" >&5 |
11489 |
- cat conftest.$ac_ext >&5 |
11490 |
- rm -rf conftest* |
11491 |
- eval "ac_cv_func_$ac_func=no" |
11492 |
-fi |
11493 |
-rm -f conftest* |
11494 |
-fi |
11495 |
- |
11496 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11497 |
- echo "$ac_t""yes" 1>&6 |
11498 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11499 |
- cat >> confdefs.h <<EOF |
11500 |
-#define $ac_tr_func 1 |
11501 |
-EOF |
11502 |
- |
11503 |
-else |
11504 |
- echo "$ac_t""no" 1>&6 |
11505 |
fi |
11506 |
done |
11507 |
|
11508 |
for ac_func in _ucreate |
11509 |
-do |
11510 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11511 |
-echo "configure:6826: checking for $ac_func" >&5 |
11512 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11513 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11514 |
-else |
11515 |
- cat > conftest.$ac_ext <<EOF |
11516 |
-#line 6831 "configure" |
11517 |
-#include "confdefs.h" |
11518 |
-/* System header to define __stub macros and hopefully few prototypes, |
11519 |
- which can conflict with char $ac_func(); below. */ |
11520 |
-#include <assert.h> |
11521 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11522 |
-/* We use char because int might match the return type of a gcc2 |
11523 |
- builtin and then its argument prototype would still apply. */ |
11524 |
-char $ac_func(); |
11525 |
- |
11526 |
-int main() { |
11527 |
- |
11528 |
-/* The GNU C library defines this for functions which it implements |
11529 |
- to always fail with ENOSYS. Some functions are actually named |
11530 |
- something starting with __ and the normal name is an alias. */ |
11531 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11532 |
-choke me |
11533 |
-#else |
11534 |
-$ac_func(); |
11535 |
-#endif |
11536 |
- |
11537 |
-; return 0; } |
11538 |
-EOF |
11539 |
-if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11540 |
- rm -rf conftest* |
11541 |
- eval "ac_cv_func_$ac_func=yes" |
11542 |
-else |
11543 |
- echo "configure: failed program was:" >&5 |
11544 |
- cat conftest.$ac_ext >&5 |
11545 |
- rm -rf conftest* |
11546 |
- eval "ac_cv_func_$ac_func=no" |
11547 |
-fi |
11548 |
-rm -f conftest* |
11549 |
-fi |
11550 |
+do : |
11551 |
+ ac_fn_c_check_func "$LINENO" "_ucreate" "ac_cv_func__ucreate" |
11552 |
+if test "x$ac_cv_func__ucreate" = xyes; then : |
11553 |
+ cat >>confdefs.h <<_ACEOF |
11554 |
+#define HAVE__UCREATE 1 |
11555 |
+_ACEOF |
11556 |
|
11557 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11558 |
- echo "$ac_t""yes" 1>&6 |
11559 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11560 |
- cat >> confdefs.h <<EOF |
11561 |
-#define $ac_tr_func 1 |
11562 |
-EOF |
11563 |
- |
11564 |
-else |
11565 |
- echo "$ac_t""no" 1>&6 |
11566 |
fi |
11567 |
done |
11568 |
|
11569 |
for ac_func in _udefault |
11570 |
-do |
11571 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11572 |
-echo "configure:6881: checking for $ac_func" >&5 |
11573 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11574 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11575 |
-else |
11576 |
- cat > conftest.$ac_ext <<EOF |
11577 |
-#line 6886 "configure" |
11578 |
-#include "confdefs.h" |
11579 |
-/* System header to define __stub macros and hopefully few prototypes, |
11580 |
- which can conflict with char $ac_func(); below. */ |
11581 |
-#include <assert.h> |
11582 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11583 |
-/* We use char because int might match the return type of a gcc2 |
11584 |
- builtin and then its argument prototype would still apply. */ |
11585 |
-char $ac_func(); |
11586 |
- |
11587 |
-int main() { |
11588 |
- |
11589 |
-/* The GNU C library defines this for functions which it implements |
11590 |
- to always fail with ENOSYS. Some functions are actually named |
11591 |
- something starting with __ and the normal name is an alias. */ |
11592 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11593 |
-choke me |
11594 |
-#else |
11595 |
-$ac_func(); |
11596 |
-#endif |
11597 |
- |
11598 |
-; return 0; } |
11599 |
-EOF |
11600 |
-if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11601 |
- rm -rf conftest* |
11602 |
- eval "ac_cv_func_$ac_func=yes" |
11603 |
-else |
11604 |
- echo "configure: failed program was:" >&5 |
11605 |
- cat conftest.$ac_ext >&5 |
11606 |
- rm -rf conftest* |
11607 |
- eval "ac_cv_func_$ac_func=no" |
11608 |
-fi |
11609 |
-rm -f conftest* |
11610 |
-fi |
11611 |
+do : |
11612 |
+ ac_fn_c_check_func "$LINENO" "_udefault" "ac_cv_func__udefault" |
11613 |
+if test "x$ac_cv_func__udefault" = xyes; then : |
11614 |
+ cat >>confdefs.h <<_ACEOF |
11615 |
+#define HAVE__UDEFAULT 1 |
11616 |
+_ACEOF |
11617 |
|
11618 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11619 |
- echo "$ac_t""yes" 1>&6 |
11620 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11621 |
- cat >> confdefs.h <<EOF |
11622 |
-#define $ac_tr_func 1 |
11623 |
-EOF |
11624 |
- |
11625 |
-else |
11626 |
- echo "$ac_t""no" 1>&6 |
11627 |
fi |
11628 |
done |
11629 |
|
11630 |
for ac_func in _udestroy |
11631 |
-do |
11632 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11633 |
-echo "configure:6936: checking for $ac_func" >&5 |
11634 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11635 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11636 |
-else |
11637 |
- cat > conftest.$ac_ext <<EOF |
11638 |
-#line 6941 "configure" |
11639 |
-#include "confdefs.h" |
11640 |
-/* System header to define __stub macros and hopefully few prototypes, |
11641 |
- which can conflict with char $ac_func(); below. */ |
11642 |
-#include <assert.h> |
11643 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11644 |
-/* We use char because int might match the return type of a gcc2 |
11645 |
- builtin and then its argument prototype would still apply. */ |
11646 |
-char $ac_func(); |
11647 |
- |
11648 |
-int main() { |
11649 |
- |
11650 |
-/* The GNU C library defines this for functions which it implements |
11651 |
- to always fail with ENOSYS. Some functions are actually named |
11652 |
- something starting with __ and the normal name is an alias. */ |
11653 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11654 |
-choke me |
11655 |
-#else |
11656 |
-$ac_func(); |
11657 |
-#endif |
11658 |
- |
11659 |
-; return 0; } |
11660 |
-EOF |
11661 |
-if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11662 |
- rm -rf conftest* |
11663 |
- eval "ac_cv_func_$ac_func=yes" |
11664 |
-else |
11665 |
- echo "configure: failed program was:" >&5 |
11666 |
- cat conftest.$ac_ext >&5 |
11667 |
- rm -rf conftest* |
11668 |
- eval "ac_cv_func_$ac_func=no" |
11669 |
-fi |
11670 |
-rm -f conftest* |
11671 |
-fi |
11672 |
+do : |
11673 |
+ ac_fn_c_check_func "$LINENO" "_udestroy" "ac_cv_func__udestroy" |
11674 |
+if test "x$ac_cv_func__udestroy" = xyes; then : |
11675 |
+ cat >>confdefs.h <<_ACEOF |
11676 |
+#define HAVE__UDESTROY 1 |
11677 |
+_ACEOF |
11678 |
|
11679 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11680 |
- echo "$ac_t""yes" 1>&6 |
11681 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11682 |
- cat >> confdefs.h <<EOF |
11683 |
-#define $ac_tr_func 1 |
11684 |
-EOF |
11685 |
- |
11686 |
-else |
11687 |
- echo "$ac_t""no" 1>&6 |
11688 |
fi |
11689 |
done |
11690 |
|
11691 |
for ac_func in _uopen |
11692 |
-do |
11693 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11694 |
-echo "configure:6991: checking for $ac_func" >&5 |
11695 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11696 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11697 |
-else |
11698 |
- cat > conftest.$ac_ext <<EOF |
11699 |
-#line 6996 "configure" |
11700 |
-#include "confdefs.h" |
11701 |
-/* System header to define __stub macros and hopefully few prototypes, |
11702 |
- which can conflict with char $ac_func(); below. */ |
11703 |
-#include <assert.h> |
11704 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11705 |
-/* We use char because int might match the return type of a gcc2 |
11706 |
- builtin and then its argument prototype would still apply. */ |
11707 |
-char $ac_func(); |
11708 |
- |
11709 |
-int main() { |
11710 |
- |
11711 |
-/* The GNU C library defines this for functions which it implements |
11712 |
- to always fail with ENOSYS. Some functions are actually named |
11713 |
- something starting with __ and the normal name is an alias. */ |
11714 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11715 |
-choke me |
11716 |
-#else |
11717 |
-$ac_func(); |
11718 |
-#endif |
11719 |
- |
11720 |
-; return 0; } |
11721 |
-EOF |
11722 |
-if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11723 |
- rm -rf conftest* |
11724 |
- eval "ac_cv_func_$ac_func=yes" |
11725 |
-else |
11726 |
- echo "configure: failed program was:" >&5 |
11727 |
- cat conftest.$ac_ext >&5 |
11728 |
- rm -rf conftest* |
11729 |
- eval "ac_cv_func_$ac_func=no" |
11730 |
-fi |
11731 |
-rm -f conftest* |
11732 |
-fi |
11733 |
+do : |
11734 |
+ ac_fn_c_check_func "$LINENO" "_uopen" "ac_cv_func__uopen" |
11735 |
+if test "x$ac_cv_func__uopen" = xyes; then : |
11736 |
+ cat >>confdefs.h <<_ACEOF |
11737 |
+#define HAVE__UOPEN 1 |
11738 |
+_ACEOF |
11739 |
|
11740 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11741 |
- echo "$ac_t""yes" 1>&6 |
11742 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11743 |
- cat >> confdefs.h <<EOF |
11744 |
-#define $ac_tr_func 1 |
11745 |
-EOF |
11746 |
- |
11747 |
-else |
11748 |
- echo "$ac_t""no" 1>&6 |
11749 |
fi |
11750 |
done |
11751 |
|
11752 |
|
11753 |
for ac_func in strlen |
11754 |
-do |
11755 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11756 |
-echo "configure:7047: checking for $ac_func" >&5 |
11757 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11758 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11759 |
-else |
11760 |
- cat > conftest.$ac_ext <<EOF |
11761 |
-#line 7052 "configure" |
11762 |
-#include "confdefs.h" |
11763 |
-/* System header to define __stub macros and hopefully few prototypes, |
11764 |
- which can conflict with char $ac_func(); below. */ |
11765 |
-#include <assert.h> |
11766 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11767 |
-/* We use char because int might match the return type of a gcc2 |
11768 |
- builtin and then its argument prototype would still apply. */ |
11769 |
-char $ac_func(); |
11770 |
- |
11771 |
-int main() { |
11772 |
- |
11773 |
-/* The GNU C library defines this for functions which it implements |
11774 |
- to always fail with ENOSYS. Some functions are actually named |
11775 |
- something starting with __ and the normal name is an alias. */ |
11776 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11777 |
-choke me |
11778 |
-#else |
11779 |
-$ac_func(); |
11780 |
-#endif |
11781 |
+do : |
11782 |
+ ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen" |
11783 |
+if test "x$ac_cv_func_strlen" = xyes; then : |
11784 |
+ cat >>confdefs.h <<_ACEOF |
11785 |
+#define HAVE_STRLEN 1 |
11786 |
+_ACEOF |
11787 |
|
11788 |
-; return 0; } |
11789 |
-EOF |
11790 |
-if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11791 |
- rm -rf conftest* |
11792 |
- eval "ac_cv_func_$ac_func=yes" |
11793 |
-else |
11794 |
- echo "configure: failed program was:" >&5 |
11795 |
- cat conftest.$ac_ext >&5 |
11796 |
- rm -rf conftest* |
11797 |
- eval "ac_cv_func_$ac_func=no" |
11798 |
-fi |
11799 |
-rm -f conftest* |
11800 |
-fi |
11801 |
- |
11802 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11803 |
- echo "$ac_t""yes" 1>&6 |
11804 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11805 |
- cat >> confdefs.h <<EOF |
11806 |
-#define $ac_tr_func 1 |
11807 |
-EOF |
11808 |
- |
11809 |
-else |
11810 |
- echo "$ac_t""no" 1>&6 |
11811 |
fi |
11812 |
done |
11813 |
|
11814 |
-echo $ac_n "checking for strlen""... $ac_c" 1>&6 |
11815 |
-echo "configure:7100: checking for strlen" >&5 |
11816 |
-if eval "test \"`echo '$''{'ac_cv_have_strlen'+set}'`\" = set"; then |
11817 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11818 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlen" >&5 |
11819 |
+$as_echo_n "checking for strlen... " >&6; } |
11820 |
+if ${ac_cv_have_strlen+:} false; then : |
11821 |
+ $as_echo_n "(cached) " >&6 |
11822 |
else |
11823 |
- cat > conftest.$ac_ext <<EOF |
11824 |
-#line 7105 "configure" |
11825 |
-#include "confdefs.h" |
11826 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11827 |
+/* end confdefs.h. */ |
11828 |
#include <string.h> |
11829 |
-int main() { |
11830 |
+int |
11831 |
+main () |
11832 |
+{ |
11833 |
strlen(""); return 0; |
11834 |
-; return 0; } |
11835 |
-EOF |
11836 |
-if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11837 |
- rm -rf conftest* |
11838 |
+ ; |
11839 |
+ return 0; |
11840 |
+} |
11841 |
+_ACEOF |
11842 |
+if ac_fn_c_try_link "$LINENO"; then : |
11843 |
ac_cv_have_strlen=yes |
11844 |
else |
11845 |
- echo "configure: failed program was:" >&5 |
11846 |
- cat conftest.$ac_ext >&5 |
11847 |
- rm -rf conftest* |
11848 |
ac_cv_have_strlen=no |
11849 |
fi |
11850 |
-rm -f conftest* |
11851 |
+rm -f core conftest.err conftest.$ac_objext \ |
11852 |
+ conftest$ac_exeext conftest.$ac_ext |
11853 |
|
11854 |
fi |
11855 |
- |
11856 |
-echo "$ac_t""$ac_cv_have_strlen" 1>&6 |
11857 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strlen" >&5 |
11858 |
+$as_echo "$ac_cv_have_strlen" >&6; } |
11859 |
if test "$ac_cv_have_strlen" = yes; then |
11860 |
- cat >> confdefs.h <<\EOF |
11861 |
-#define HAVE_STRLEN 1 |
11862 |
-EOF |
11863 |
+ $as_echo "#define HAVE_STRLEN 1" >>confdefs.h |
11864 |
|
11865 |
fi |
11866 |
|
11867 |
for ac_func in strcpy |
11868 |
-do |
11869 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11870 |
-echo "configure:7136: checking for $ac_func" >&5 |
11871 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11872 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11873 |
-else |
11874 |
- cat > conftest.$ac_ext <<EOF |
11875 |
-#line 7141 "configure" |
11876 |
-#include "confdefs.h" |
11877 |
-/* System header to define __stub macros and hopefully few prototypes, |
11878 |
- which can conflict with char $ac_func(); below. */ |
11879 |
-#include <assert.h> |
11880 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11881 |
-/* We use char because int might match the return type of a gcc2 |
11882 |
- builtin and then its argument prototype would still apply. */ |
11883 |
-char $ac_func(); |
11884 |
- |
11885 |
-int main() { |
11886 |
- |
11887 |
-/* The GNU C library defines this for functions which it implements |
11888 |
- to always fail with ENOSYS. Some functions are actually named |
11889 |
- something starting with __ and the normal name is an alias. */ |
11890 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11891 |
-choke me |
11892 |
-#else |
11893 |
-$ac_func(); |
11894 |
-#endif |
11895 |
- |
11896 |
-; return 0; } |
11897 |
-EOF |
11898 |
-if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11899 |
- rm -rf conftest* |
11900 |
- eval "ac_cv_func_$ac_func=yes" |
11901 |
-else |
11902 |
- echo "configure: failed program was:" >&5 |
11903 |
- cat conftest.$ac_ext >&5 |
11904 |
- rm -rf conftest* |
11905 |
- eval "ac_cv_func_$ac_func=no" |
11906 |
-fi |
11907 |
-rm -f conftest* |
11908 |
-fi |
11909 |
+do : |
11910 |
+ ac_fn_c_check_func "$LINENO" "strcpy" "ac_cv_func_strcpy" |
11911 |
+if test "x$ac_cv_func_strcpy" = xyes; then : |
11912 |
+ cat >>confdefs.h <<_ACEOF |
11913 |
+#define HAVE_STRCPY 1 |
11914 |
+_ACEOF |
11915 |
|
11916 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11917 |
- echo "$ac_t""yes" 1>&6 |
11918 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
11919 |
- cat >> confdefs.h <<EOF |
11920 |
-#define $ac_tr_func 1 |
11921 |
-EOF |
11922 |
- |
11923 |
-else |
11924 |
- echo "$ac_t""no" 1>&6 |
11925 |
fi |
11926 |
done |
11927 |
|
11928 |
-echo $ac_n "checking for strcpy""... $ac_c" 1>&6 |
11929 |
-echo "configure:7189: checking for strcpy" >&5 |
11930 |
-if eval "test \"`echo '$''{'ac_cv_have_strcpy'+set}'`\" = set"; then |
11931 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11932 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcpy" >&5 |
11933 |
+$as_echo_n "checking for strcpy... " >&6; } |
11934 |
+if ${ac_cv_have_strcpy+:} false; then : |
11935 |
+ $as_echo_n "(cached) " >&6 |
11936 |
else |
11937 |
- cat > conftest.$ac_ext <<EOF |
11938 |
-#line 7194 "configure" |
11939 |
-#include "confdefs.h" |
11940 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11941 |
+/* end confdefs.h. */ |
11942 |
#include <string.h> |
11943 |
-int main() { |
11944 |
+int |
11945 |
+main () |
11946 |
+{ |
11947 |
char a[1]; strcpy(a, ""); return 0; |
11948 |
-; return 0; } |
11949 |
-EOF |
11950 |
-if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11951 |
- rm -rf conftest* |
11952 |
+ ; |
11953 |
+ return 0; |
11954 |
+} |
11955 |
+_ACEOF |
11956 |
+if ac_fn_c_try_link "$LINENO"; then : |
11957 |
ac_cv_have_strcpy=yes |
11958 |
else |
11959 |
- echo "configure: failed program was:" >&5 |
11960 |
- cat conftest.$ac_ext >&5 |
11961 |
- rm -rf conftest* |
11962 |
ac_cv_have_strcpy=no |
11963 |
fi |
11964 |
-rm -f conftest* |
11965 |
+rm -f core conftest.err conftest.$ac_objext \ |
11966 |
+ conftest$ac_exeext conftest.$ac_ext |
11967 |
|
11968 |
fi |
11969 |
- |
11970 |
-echo "$ac_t""$ac_cv_have_strcpy" 1>&6 |
11971 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strcpy" >&5 |
11972 |
+$as_echo "$ac_cv_have_strcpy" >&6; } |
11973 |
if test "$ac_cv_have_strcpy" = yes; then |
11974 |
- cat >> confdefs.h <<\EOF |
11975 |
-#define HAVE_STRCPY 1 |
11976 |
-EOF |
11977 |
+ $as_echo "#define HAVE_STRCPY 1" >>confdefs.h |
11978 |
|
11979 |
fi |
11980 |
|
11981 |
for ac_func in strchr |
11982 |
-do |
11983 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11984 |
-echo "configure:7225: checking for $ac_func" >&5 |
11985 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11986 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
11987 |
-else |
11988 |
- cat > conftest.$ac_ext <<EOF |
11989 |
-#line 7230 "configure" |
11990 |
-#include "confdefs.h" |
11991 |
-/* System header to define __stub macros and hopefully few prototypes, |
11992 |
- which can conflict with char $ac_func(); below. */ |
11993 |
-#include <assert.h> |
11994 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
11995 |
-/* We use char because int might match the return type of a gcc2 |
11996 |
- builtin and then its argument prototype would still apply. */ |
11997 |
-char $ac_func(); |
11998 |
- |
11999 |
-int main() { |
12000 |
- |
12001 |
-/* The GNU C library defines this for functions which it implements |
12002 |
- to always fail with ENOSYS. Some functions are actually named |
12003 |
- something starting with __ and the normal name is an alias. */ |
12004 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12005 |
-choke me |
12006 |
-#else |
12007 |
-$ac_func(); |
12008 |
-#endif |
12009 |
- |
12010 |
-; return 0; } |
12011 |
-EOF |
12012 |
-if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12013 |
- rm -rf conftest* |
12014 |
- eval "ac_cv_func_$ac_func=yes" |
12015 |
-else |
12016 |
- echo "configure: failed program was:" >&5 |
12017 |
- cat conftest.$ac_ext >&5 |
12018 |
- rm -rf conftest* |
12019 |
- eval "ac_cv_func_$ac_func=no" |
12020 |
-fi |
12021 |
-rm -f conftest* |
12022 |
-fi |
12023 |
+do : |
12024 |
+ ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
12025 |
+if test "x$ac_cv_func_strchr" = xyes; then : |
12026 |
+ cat >>confdefs.h <<_ACEOF |
12027 |
+#define HAVE_STRCHR 1 |
12028 |
+_ACEOF |
12029 |
|
12030 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12031 |
- echo "$ac_t""yes" 1>&6 |
12032 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12033 |
- cat >> confdefs.h <<EOF |
12034 |
-#define $ac_tr_func 1 |
12035 |
-EOF |
12036 |
- |
12037 |
-else |
12038 |
- echo "$ac_t""no" 1>&6 |
12039 |
fi |
12040 |
done |
12041 |
|
12042 |
-echo $ac_n "checking for strchr""... $ac_c" 1>&6 |
12043 |
-echo "configure:7278: checking for strchr" >&5 |
12044 |
-if eval "test \"`echo '$''{'ac_cv_have_strchr'+set}'`\" = set"; then |
12045 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12046 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strchr" >&5 |
12047 |
+$as_echo_n "checking for strchr... " >&6; } |
12048 |
+if ${ac_cv_have_strchr+:} false; then : |
12049 |
+ $as_echo_n "(cached) " >&6 |
12050 |
else |
12051 |
- cat > conftest.$ac_ext <<EOF |
12052 |
-#line 7283 "configure" |
12053 |
-#include "confdefs.h" |
12054 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12055 |
+/* end confdefs.h. */ |
12056 |
#include <string.h> |
12057 |
-int main() { |
12058 |
+int |
12059 |
+main () |
12060 |
+{ |
12061 |
strchr("", 0); return 0; |
12062 |
-; return 0; } |
12063 |
-EOF |
12064 |
-if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12065 |
- rm -rf conftest* |
12066 |
+ ; |
12067 |
+ return 0; |
12068 |
+} |
12069 |
+_ACEOF |
12070 |
+if ac_fn_c_try_link "$LINENO"; then : |
12071 |
ac_cv_have_strchr=yes |
12072 |
else |
12073 |
- echo "configure: failed program was:" >&5 |
12074 |
- cat conftest.$ac_ext >&5 |
12075 |
- rm -rf conftest* |
12076 |
ac_cv_have_strchr=no |
12077 |
fi |
12078 |
-rm -f conftest* |
12079 |
+rm -f core conftest.err conftest.$ac_objext \ |
12080 |
+ conftest$ac_exeext conftest.$ac_ext |
12081 |
|
12082 |
fi |
12083 |
- |
12084 |
-echo "$ac_t""$ac_cv_have_strchr" 1>&6 |
12085 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strchr" >&5 |
12086 |
+$as_echo "$ac_cv_have_strchr" >&6; } |
12087 |
if test "$ac_cv_have_strchr" = yes; then |
12088 |
- cat >> confdefs.h <<\EOF |
12089 |
-#define HAVE_STRCHR 1 |
12090 |
-EOF |
12091 |
+ $as_echo "#define HAVE_STRCHR 1" >>confdefs.h |
12092 |
|
12093 |
fi |
12094 |
|
12095 |
for ac_func in strrchr |
12096 |
-do |
12097 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12098 |
-echo "configure:7314: checking for $ac_func" >&5 |
12099 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12100 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12101 |
-else |
12102 |
- cat > conftest.$ac_ext <<EOF |
12103 |
-#line 7319 "configure" |
12104 |
-#include "confdefs.h" |
12105 |
-/* System header to define __stub macros and hopefully few prototypes, |
12106 |
- which can conflict with char $ac_func(); below. */ |
12107 |
-#include <assert.h> |
12108 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12109 |
-/* We use char because int might match the return type of a gcc2 |
12110 |
- builtin and then its argument prototype would still apply. */ |
12111 |
-char $ac_func(); |
12112 |
- |
12113 |
-int main() { |
12114 |
- |
12115 |
-/* The GNU C library defines this for functions which it implements |
12116 |
- to always fail with ENOSYS. Some functions are actually named |
12117 |
- something starting with __ and the normal name is an alias. */ |
12118 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12119 |
-choke me |
12120 |
-#else |
12121 |
-$ac_func(); |
12122 |
-#endif |
12123 |
- |
12124 |
-; return 0; } |
12125 |
-EOF |
12126 |
-if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12127 |
- rm -rf conftest* |
12128 |
- eval "ac_cv_func_$ac_func=yes" |
12129 |
-else |
12130 |
- echo "configure: failed program was:" >&5 |
12131 |
- cat conftest.$ac_ext >&5 |
12132 |
- rm -rf conftest* |
12133 |
- eval "ac_cv_func_$ac_func=no" |
12134 |
-fi |
12135 |
-rm -f conftest* |
12136 |
-fi |
12137 |
+do : |
12138 |
+ ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" |
12139 |
+if test "x$ac_cv_func_strrchr" = xyes; then : |
12140 |
+ cat >>confdefs.h <<_ACEOF |
12141 |
+#define HAVE_STRRCHR 1 |
12142 |
+_ACEOF |
12143 |
|
12144 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12145 |
- echo "$ac_t""yes" 1>&6 |
12146 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12147 |
- cat >> confdefs.h <<EOF |
12148 |
-#define $ac_tr_func 1 |
12149 |
-EOF |
12150 |
- |
12151 |
-else |
12152 |
- echo "$ac_t""no" 1>&6 |
12153 |
fi |
12154 |
done |
12155 |
|
12156 |
-echo $ac_n "checking for strrchr""... $ac_c" 1>&6 |
12157 |
-echo "configure:7367: checking for strrchr" >&5 |
12158 |
-if eval "test \"`echo '$''{'ac_cv_have_strrchr'+set}'`\" = set"; then |
12159 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12160 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strrchr" >&5 |
12161 |
+$as_echo_n "checking for strrchr... " >&6; } |
12162 |
+if ${ac_cv_have_strrchr+:} false; then : |
12163 |
+ $as_echo_n "(cached) " >&6 |
12164 |
else |
12165 |
- cat > conftest.$ac_ext <<EOF |
12166 |
-#line 7372 "configure" |
12167 |
-#include "confdefs.h" |
12168 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12169 |
+/* end confdefs.h. */ |
12170 |
#include <string.h> |
12171 |
-int main() { |
12172 |
+int |
12173 |
+main () |
12174 |
+{ |
12175 |
strrchr("", 0); return 0; |
12176 |
-; return 0; } |
12177 |
-EOF |
12178 |
-if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12179 |
- rm -rf conftest* |
12180 |
+ ; |
12181 |
+ return 0; |
12182 |
+} |
12183 |
+_ACEOF |
12184 |
+if ac_fn_c_try_link "$LINENO"; then : |
12185 |
ac_cv_have_strrchr=yes |
12186 |
else |
12187 |
- echo "configure: failed program was:" >&5 |
12188 |
- cat conftest.$ac_ext >&5 |
12189 |
- rm -rf conftest* |
12190 |
ac_cv_have_strrchr=no |
12191 |
fi |
12192 |
-rm -f conftest* |
12193 |
+rm -f core conftest.err conftest.$ac_objext \ |
12194 |
+ conftest$ac_exeext conftest.$ac_ext |
12195 |
|
12196 |
fi |
12197 |
- |
12198 |
-echo "$ac_t""$ac_cv_have_strrchr" 1>&6 |
12199 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strrchr" >&5 |
12200 |
+$as_echo "$ac_cv_have_strrchr" >&6; } |
12201 |
if test "$ac_cv_have_strrchr" = yes; then |
12202 |
- cat >> confdefs.h <<\EOF |
12203 |
-#define HAVE_STRRCHR 1 |
12204 |
-EOF |
12205 |
+ $as_echo "#define HAVE_STRRCHR 1" >>confdefs.h |
12206 |
|
12207 |
fi |
12208 |
|
12209 |
for ac_func in strcmp |
12210 |
-do |
12211 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12212 |
-echo "configure:7403: checking for $ac_func" >&5 |
12213 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12214 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12215 |
-else |
12216 |
- cat > conftest.$ac_ext <<EOF |
12217 |
-#line 7408 "configure" |
12218 |
-#include "confdefs.h" |
12219 |
-/* System header to define __stub macros and hopefully few prototypes, |
12220 |
- which can conflict with char $ac_func(); below. */ |
12221 |
-#include <assert.h> |
12222 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12223 |
-/* We use char because int might match the return type of a gcc2 |
12224 |
- builtin and then its argument prototype would still apply. */ |
12225 |
-char $ac_func(); |
12226 |
- |
12227 |
-int main() { |
12228 |
- |
12229 |
-/* The GNU C library defines this for functions which it implements |
12230 |
- to always fail with ENOSYS. Some functions are actually named |
12231 |
- something starting with __ and the normal name is an alias. */ |
12232 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12233 |
-choke me |
12234 |
-#else |
12235 |
-$ac_func(); |
12236 |
-#endif |
12237 |
- |
12238 |
-; return 0; } |
12239 |
-EOF |
12240 |
-if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12241 |
- rm -rf conftest* |
12242 |
- eval "ac_cv_func_$ac_func=yes" |
12243 |
-else |
12244 |
- echo "configure: failed program was:" >&5 |
12245 |
- cat conftest.$ac_ext >&5 |
12246 |
- rm -rf conftest* |
12247 |
- eval "ac_cv_func_$ac_func=no" |
12248 |
-fi |
12249 |
-rm -f conftest* |
12250 |
-fi |
12251 |
+do : |
12252 |
+ ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp" |
12253 |
+if test "x$ac_cv_func_strcmp" = xyes; then : |
12254 |
+ cat >>confdefs.h <<_ACEOF |
12255 |
+#define HAVE_STRCMP 1 |
12256 |
+_ACEOF |
12257 |
|
12258 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12259 |
- echo "$ac_t""yes" 1>&6 |
12260 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12261 |
- cat >> confdefs.h <<EOF |
12262 |
-#define $ac_tr_func 1 |
12263 |
-EOF |
12264 |
- |
12265 |
-else |
12266 |
- echo "$ac_t""no" 1>&6 |
12267 |
fi |
12268 |
done |
12269 |
|
12270 |
-echo $ac_n "checking for strcmp""... $ac_c" 1>&6 |
12271 |
-echo "configure:7456: checking for strcmp" >&5 |
12272 |
-if eval "test \"`echo '$''{'ac_cv_have_strcmp'+set}'`\" = set"; then |
12273 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12274 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcmp" >&5 |
12275 |
+$as_echo_n "checking for strcmp... " >&6; } |
12276 |
+if ${ac_cv_have_strcmp+:} false; then : |
12277 |
+ $as_echo_n "(cached) " >&6 |
12278 |
else |
12279 |
- cat > conftest.$ac_ext <<EOF |
12280 |
-#line 7461 "configure" |
12281 |
-#include "confdefs.h" |
12282 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12283 |
+/* end confdefs.h. */ |
12284 |
#include <string.h> |
12285 |
-int main() { |
12286 |
+int |
12287 |
+main () |
12288 |
+{ |
12289 |
strcmp("", ""); return 0; |
12290 |
-; return 0; } |
12291 |
-EOF |
12292 |
-if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12293 |
- rm -rf conftest* |
12294 |
+ ; |
12295 |
+ return 0; |
12296 |
+} |
12297 |
+_ACEOF |
12298 |
+if ac_fn_c_try_link "$LINENO"; then : |
12299 |
ac_cv_have_strcmp=yes |
12300 |
else |
12301 |
- echo "configure: failed program was:" >&5 |
12302 |
- cat conftest.$ac_ext >&5 |
12303 |
- rm -rf conftest* |
12304 |
ac_cv_have_strcmp=no |
12305 |
fi |
12306 |
-rm -f conftest* |
12307 |
+rm -f core conftest.err conftest.$ac_objext \ |
12308 |
+ conftest$ac_exeext conftest.$ac_ext |
12309 |
|
12310 |
fi |
12311 |
- |
12312 |
-echo "$ac_t""$ac_cv_have_strcmp" 1>&6 |
12313 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strcmp" >&5 |
12314 |
+$as_echo "$ac_cv_have_strcmp" >&6; } |
12315 |
if test "$ac_cv_have_strcmp" = yes; then |
12316 |
- cat >> confdefs.h <<\EOF |
12317 |
-#define HAVE_STRCMP 1 |
12318 |
-EOF |
12319 |
+ $as_echo "#define HAVE_STRCMP 1" >>confdefs.h |
12320 |
|
12321 |
fi |
12322 |
|
12323 |
for ac_func in strncmp |
12324 |
-do |
12325 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12326 |
-echo "configure:7492: checking for $ac_func" >&5 |
12327 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12328 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12329 |
-else |
12330 |
- cat > conftest.$ac_ext <<EOF |
12331 |
-#line 7497 "configure" |
12332 |
-#include "confdefs.h" |
12333 |
-/* System header to define __stub macros and hopefully few prototypes, |
12334 |
- which can conflict with char $ac_func(); below. */ |
12335 |
-#include <assert.h> |
12336 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12337 |
-/* We use char because int might match the return type of a gcc2 |
12338 |
- builtin and then its argument prototype would still apply. */ |
12339 |
-char $ac_func(); |
12340 |
- |
12341 |
-int main() { |
12342 |
- |
12343 |
-/* The GNU C library defines this for functions which it implements |
12344 |
- to always fail with ENOSYS. Some functions are actually named |
12345 |
- something starting with __ and the normal name is an alias. */ |
12346 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12347 |
-choke me |
12348 |
-#else |
12349 |
-$ac_func(); |
12350 |
-#endif |
12351 |
- |
12352 |
-; return 0; } |
12353 |
-EOF |
12354 |
-if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12355 |
- rm -rf conftest* |
12356 |
- eval "ac_cv_func_$ac_func=yes" |
12357 |
-else |
12358 |
- echo "configure: failed program was:" >&5 |
12359 |
- cat conftest.$ac_ext >&5 |
12360 |
- rm -rf conftest* |
12361 |
- eval "ac_cv_func_$ac_func=no" |
12362 |
-fi |
12363 |
-rm -f conftest* |
12364 |
-fi |
12365 |
+do : |
12366 |
+ ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp" |
12367 |
+if test "x$ac_cv_func_strncmp" = xyes; then : |
12368 |
+ cat >>confdefs.h <<_ACEOF |
12369 |
+#define HAVE_STRNCMP 1 |
12370 |
+_ACEOF |
12371 |
|
12372 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12373 |
- echo "$ac_t""yes" 1>&6 |
12374 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12375 |
- cat >> confdefs.h <<EOF |
12376 |
-#define $ac_tr_func 1 |
12377 |
-EOF |
12378 |
- |
12379 |
-else |
12380 |
- echo "$ac_t""no" 1>&6 |
12381 |
fi |
12382 |
done |
12383 |
|
12384 |
-echo $ac_n "checking for strncmp""... $ac_c" 1>&6 |
12385 |
-echo "configure:7545: checking for strncmp" >&5 |
12386 |
-if eval "test \"`echo '$''{'ac_cv_have_strncmp'+set}'`\" = set"; then |
12387 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12388 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncmp" >&5 |
12389 |
+$as_echo_n "checking for strncmp... " >&6; } |
12390 |
+if ${ac_cv_have_strncmp+:} false; then : |
12391 |
+ $as_echo_n "(cached) " >&6 |
12392 |
else |
12393 |
- cat > conftest.$ac_ext <<EOF |
12394 |
-#line 7550 "configure" |
12395 |
-#include "confdefs.h" |
12396 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12397 |
+/* end confdefs.h. */ |
12398 |
#include <string.h> |
12399 |
-int main() { |
12400 |
+int |
12401 |
+main () |
12402 |
+{ |
12403 |
strncmp("", "", 1); return 0; |
12404 |
-; return 0; } |
12405 |
-EOF |
12406 |
-if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12407 |
- rm -rf conftest* |
12408 |
+ ; |
12409 |
+ return 0; |
12410 |
+} |
12411 |
+_ACEOF |
12412 |
+if ac_fn_c_try_link "$LINENO"; then : |
12413 |
ac_cv_have_strncmp=yes |
12414 |
else |
12415 |
- echo "configure: failed program was:" >&5 |
12416 |
- cat conftest.$ac_ext >&5 |
12417 |
- rm -rf conftest* |
12418 |
ac_cv_have_strncmp=no |
12419 |
fi |
12420 |
-rm -f conftest* |
12421 |
+rm -f core conftest.err conftest.$ac_objext \ |
12422 |
+ conftest$ac_exeext conftest.$ac_ext |
12423 |
|
12424 |
fi |
12425 |
- |
12426 |
-echo "$ac_t""$ac_cv_have_strncmp" 1>&6 |
12427 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strncmp" >&5 |
12428 |
+$as_echo "$ac_cv_have_strncmp" >&6; } |
12429 |
if test "$ac_cv_have_strncmp" = yes; then |
12430 |
- cat >> confdefs.h <<\EOF |
12431 |
-#define HAVE_STRNCMP 1 |
12432 |
-EOF |
12433 |
+ $as_echo "#define HAVE_STRNCMP 1" >>confdefs.h |
12434 |
|
12435 |
fi |
12436 |
|
12437 |
for ac_func in strcasecmp |
12438 |
-do |
12439 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12440 |
-echo "configure:7581: checking for $ac_func" >&5 |
12441 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12442 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12443 |
-else |
12444 |
- cat > conftest.$ac_ext <<EOF |
12445 |
-#line 7586 "configure" |
12446 |
-#include "confdefs.h" |
12447 |
-/* System header to define __stub macros and hopefully few prototypes, |
12448 |
- which can conflict with char $ac_func(); below. */ |
12449 |
-#include <assert.h> |
12450 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12451 |
-/* We use char because int might match the return type of a gcc2 |
12452 |
- builtin and then its argument prototype would still apply. */ |
12453 |
-char $ac_func(); |
12454 |
- |
12455 |
-int main() { |
12456 |
- |
12457 |
-/* The GNU C library defines this for functions which it implements |
12458 |
- to always fail with ENOSYS. Some functions are actually named |
12459 |
- something starting with __ and the normal name is an alias. */ |
12460 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12461 |
-choke me |
12462 |
-#else |
12463 |
-$ac_func(); |
12464 |
-#endif |
12465 |
- |
12466 |
-; return 0; } |
12467 |
-EOF |
12468 |
-if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12469 |
- rm -rf conftest* |
12470 |
- eval "ac_cv_func_$ac_func=yes" |
12471 |
-else |
12472 |
- echo "configure: failed program was:" >&5 |
12473 |
- cat conftest.$ac_ext >&5 |
12474 |
- rm -rf conftest* |
12475 |
- eval "ac_cv_func_$ac_func=no" |
12476 |
-fi |
12477 |
-rm -f conftest* |
12478 |
-fi |
12479 |
+do : |
12480 |
+ ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
12481 |
+if test "x$ac_cv_func_strcasecmp" = xyes; then : |
12482 |
+ cat >>confdefs.h <<_ACEOF |
12483 |
+#define HAVE_STRCASECMP 1 |
12484 |
+_ACEOF |
12485 |
|
12486 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12487 |
- echo "$ac_t""yes" 1>&6 |
12488 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12489 |
- cat >> confdefs.h <<EOF |
12490 |
-#define $ac_tr_func 1 |
12491 |
-EOF |
12492 |
- |
12493 |
-else |
12494 |
- echo "$ac_t""no" 1>&6 |
12495 |
fi |
12496 |
done |
12497 |
|
12498 |
-echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 |
12499 |
-echo "configure:7634: checking for strcasecmp" >&5 |
12500 |
-if eval "test \"`echo '$''{'ac_cv_have_strcasecmp'+set}'`\" = set"; then |
12501 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12502 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5 |
12503 |
+$as_echo_n "checking for strcasecmp... " >&6; } |
12504 |
+if ${ac_cv_have_strcasecmp+:} false; then : |
12505 |
+ $as_echo_n "(cached) " >&6 |
12506 |
else |
12507 |
- cat > conftest.$ac_ext <<EOF |
12508 |
-#line 7639 "configure" |
12509 |
-#include "confdefs.h" |
12510 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12511 |
+/* end confdefs.h. */ |
12512 |
#include <string.h> |
12513 |
-int main() { |
12514 |
+int |
12515 |
+main () |
12516 |
+{ |
12517 |
strcasecmp("", ""); return 0; |
12518 |
-; return 0; } |
12519 |
-EOF |
12520 |
-if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12521 |
- rm -rf conftest* |
12522 |
+ ; |
12523 |
+ return 0; |
12524 |
+} |
12525 |
+_ACEOF |
12526 |
+if ac_fn_c_try_link "$LINENO"; then : |
12527 |
ac_cv_have_strcasecmp=yes |
12528 |
else |
12529 |
- echo "configure: failed program was:" >&5 |
12530 |
- cat conftest.$ac_ext >&5 |
12531 |
- rm -rf conftest* |
12532 |
ac_cv_have_strcasecmp=no |
12533 |
fi |
12534 |
-rm -f conftest* |
12535 |
+rm -f core conftest.err conftest.$ac_objext \ |
12536 |
+ conftest$ac_exeext conftest.$ac_ext |
12537 |
|
12538 |
fi |
12539 |
- |
12540 |
-echo "$ac_t""$ac_cv_have_strcasecmp" 1>&6 |
12541 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strcasecmp" >&5 |
12542 |
+$as_echo "$ac_cv_have_strcasecmp" >&6; } |
12543 |
if test "$ac_cv_have_strcasecmp" = yes; then |
12544 |
- cat >> confdefs.h <<\EOF |
12545 |
-#define HAVE_STRCASECMP 1 |
12546 |
-EOF |
12547 |
+ $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h |
12548 |
|
12549 |
fi |
12550 |
|
12551 |
for ac_func in strncasecmp |
12552 |
-do |
12553 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12554 |
-echo "configure:7670: checking for $ac_func" >&5 |
12555 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12556 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12557 |
-else |
12558 |
- cat > conftest.$ac_ext <<EOF |
12559 |
-#line 7675 "configure" |
12560 |
-#include "confdefs.h" |
12561 |
-/* System header to define __stub macros and hopefully few prototypes, |
12562 |
- which can conflict with char $ac_func(); below. */ |
12563 |
-#include <assert.h> |
12564 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12565 |
-/* We use char because int might match the return type of a gcc2 |
12566 |
- builtin and then its argument prototype would still apply. */ |
12567 |
-char $ac_func(); |
12568 |
- |
12569 |
-int main() { |
12570 |
- |
12571 |
-/* The GNU C library defines this for functions which it implements |
12572 |
- to always fail with ENOSYS. Some functions are actually named |
12573 |
- something starting with __ and the normal name is an alias. */ |
12574 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12575 |
-choke me |
12576 |
-#else |
12577 |
-$ac_func(); |
12578 |
-#endif |
12579 |
+do : |
12580 |
+ ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
12581 |
+if test "x$ac_cv_func_strncasecmp" = xyes; then : |
12582 |
+ cat >>confdefs.h <<_ACEOF |
12583 |
+#define HAVE_STRNCASECMP 1 |
12584 |
+_ACEOF |
12585 |
|
12586 |
-; return 0; } |
12587 |
-EOF |
12588 |
-if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12589 |
- rm -rf conftest* |
12590 |
- eval "ac_cv_func_$ac_func=yes" |
12591 |
-else |
12592 |
- echo "configure: failed program was:" >&5 |
12593 |
- cat conftest.$ac_ext >&5 |
12594 |
- rm -rf conftest* |
12595 |
- eval "ac_cv_func_$ac_func=no" |
12596 |
-fi |
12597 |
-rm -f conftest* |
12598 |
-fi |
12599 |
- |
12600 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12601 |
- echo "$ac_t""yes" 1>&6 |
12602 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12603 |
- cat >> confdefs.h <<EOF |
12604 |
-#define $ac_tr_func 1 |
12605 |
-EOF |
12606 |
- |
12607 |
-else |
12608 |
- echo "$ac_t""no" 1>&6 |
12609 |
fi |
12610 |
done |
12611 |
|
12612 |
-echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6 |
12613 |
-echo "configure:7723: checking for strncasecmp" >&5 |
12614 |
-if eval "test \"`echo '$''{'ac_cv_have_strncasecmp'+set}'`\" = set"; then |
12615 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12616 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp" >&5 |
12617 |
+$as_echo_n "checking for strncasecmp... " >&6; } |
12618 |
+if ${ac_cv_have_strncasecmp+:} false; then : |
12619 |
+ $as_echo_n "(cached) " >&6 |
12620 |
else |
12621 |
- cat > conftest.$ac_ext <<EOF |
12622 |
-#line 7728 "configure" |
12623 |
-#include "confdefs.h" |
12624 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12625 |
+/* end confdefs.h. */ |
12626 |
#include <string.h> |
12627 |
-int main() { |
12628 |
+int |
12629 |
+main () |
12630 |
+{ |
12631 |
strncasecmp("", "", 1); return 0; |
12632 |
-; return 0; } |
12633 |
-EOF |
12634 |
-if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12635 |
- rm -rf conftest* |
12636 |
+ ; |
12637 |
+ return 0; |
12638 |
+} |
12639 |
+_ACEOF |
12640 |
+if ac_fn_c_try_link "$LINENO"; then : |
12641 |
ac_cv_have_strncasecmp=yes |
12642 |
else |
12643 |
- echo "configure: failed program was:" >&5 |
12644 |
- cat conftest.$ac_ext >&5 |
12645 |
- rm -rf conftest* |
12646 |
ac_cv_have_strncasecmp=no |
12647 |
fi |
12648 |
-rm -f conftest* |
12649 |
+rm -f core conftest.err conftest.$ac_objext \ |
12650 |
+ conftest$ac_exeext conftest.$ac_ext |
12651 |
|
12652 |
fi |
12653 |
- |
12654 |
-echo "$ac_t""$ac_cv_have_strncasecmp" 1>&6 |
12655 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strncasecmp" >&5 |
12656 |
+$as_echo "$ac_cv_have_strncasecmp" >&6; } |
12657 |
if test "$ac_cv_have_strncasecmp" = yes; then |
12658 |
- cat >> confdefs.h <<\EOF |
12659 |
-#define HAVE_STRNCASECMP 1 |
12660 |
-EOF |
12661 |
+ $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h |
12662 |
|
12663 |
fi |
12664 |
|
12665 |
for ac_func in strcspn |
12666 |
-do |
12667 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12668 |
-echo "configure:7759: checking for $ac_func" >&5 |
12669 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12670 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12671 |
-else |
12672 |
- cat > conftest.$ac_ext <<EOF |
12673 |
-#line 7764 "configure" |
12674 |
-#include "confdefs.h" |
12675 |
-/* System header to define __stub macros and hopefully few prototypes, |
12676 |
- which can conflict with char $ac_func(); below. */ |
12677 |
-#include <assert.h> |
12678 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12679 |
-/* We use char because int might match the return type of a gcc2 |
12680 |
- builtin and then its argument prototype would still apply. */ |
12681 |
-char $ac_func(); |
12682 |
- |
12683 |
-int main() { |
12684 |
- |
12685 |
-/* The GNU C library defines this for functions which it implements |
12686 |
- to always fail with ENOSYS. Some functions are actually named |
12687 |
- something starting with __ and the normal name is an alias. */ |
12688 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12689 |
-choke me |
12690 |
-#else |
12691 |
-$ac_func(); |
12692 |
-#endif |
12693 |
- |
12694 |
-; return 0; } |
12695 |
-EOF |
12696 |
-if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12697 |
- rm -rf conftest* |
12698 |
- eval "ac_cv_func_$ac_func=yes" |
12699 |
-else |
12700 |
- echo "configure: failed program was:" >&5 |
12701 |
- cat conftest.$ac_ext >&5 |
12702 |
- rm -rf conftest* |
12703 |
- eval "ac_cv_func_$ac_func=no" |
12704 |
-fi |
12705 |
-rm -f conftest* |
12706 |
-fi |
12707 |
+do : |
12708 |
+ ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn" |
12709 |
+if test "x$ac_cv_func_strcspn" = xyes; then : |
12710 |
+ cat >>confdefs.h <<_ACEOF |
12711 |
+#define HAVE_STRCSPN 1 |
12712 |
+_ACEOF |
12713 |
|
12714 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12715 |
- echo "$ac_t""yes" 1>&6 |
12716 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12717 |
- cat >> confdefs.h <<EOF |
12718 |
-#define $ac_tr_func 1 |
12719 |
-EOF |
12720 |
- |
12721 |
-else |
12722 |
- echo "$ac_t""no" 1>&6 |
12723 |
fi |
12724 |
done |
12725 |
|
12726 |
-echo $ac_n "checking for strcspn""... $ac_c" 1>&6 |
12727 |
-echo "configure:7812: checking for strcspn" >&5 |
12728 |
-if eval "test \"`echo '$''{'ac_cv_have_strcspn'+set}'`\" = set"; then |
12729 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12730 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcspn" >&5 |
12731 |
+$as_echo_n "checking for strcspn... " >&6; } |
12732 |
+if ${ac_cv_have_strcspn+:} false; then : |
12733 |
+ $as_echo_n "(cached) " >&6 |
12734 |
else |
12735 |
- cat > conftest.$ac_ext <<EOF |
12736 |
-#line 7817 "configure" |
12737 |
-#include "confdefs.h" |
12738 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12739 |
+/* end confdefs.h. */ |
12740 |
#include <string.h> |
12741 |
-int main() { |
12742 |
+int |
12743 |
+main () |
12744 |
+{ |
12745 |
strcspn("", ""); return 0; |
12746 |
-; return 0; } |
12747 |
-EOF |
12748 |
-if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12749 |
- rm -rf conftest* |
12750 |
+ ; |
12751 |
+ return 0; |
12752 |
+} |
12753 |
+_ACEOF |
12754 |
+if ac_fn_c_try_link "$LINENO"; then : |
12755 |
ac_cv_have_strcspn=yes |
12756 |
else |
12757 |
- echo "configure: failed program was:" >&5 |
12758 |
- cat conftest.$ac_ext >&5 |
12759 |
- rm -rf conftest* |
12760 |
ac_cv_have_strcspn=no |
12761 |
fi |
12762 |
-rm -f conftest* |
12763 |
+rm -f core conftest.err conftest.$ac_objext \ |
12764 |
+ conftest$ac_exeext conftest.$ac_ext |
12765 |
|
12766 |
fi |
12767 |
- |
12768 |
-echo "$ac_t""$ac_cv_have_strcspn" 1>&6 |
12769 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strcspn" >&5 |
12770 |
+$as_echo "$ac_cv_have_strcspn" >&6; } |
12771 |
if test "$ac_cv_have_strcspn" = yes; then |
12772 |
- cat >> confdefs.h <<\EOF |
12773 |
-#define HAVE_STRCSPN 1 |
12774 |
-EOF |
12775 |
+ $as_echo "#define HAVE_STRCSPN 1" >>confdefs.h |
12776 |
|
12777 |
fi |
12778 |
|
12779 |
for ac_func in strstr |
12780 |
-do |
12781 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12782 |
-echo "configure:7848: checking for $ac_func" >&5 |
12783 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12784 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12785 |
-else |
12786 |
- cat > conftest.$ac_ext <<EOF |
12787 |
-#line 7853 "configure" |
12788 |
-#include "confdefs.h" |
12789 |
-/* System header to define __stub macros and hopefully few prototypes, |
12790 |
- which can conflict with char $ac_func(); below. */ |
12791 |
-#include <assert.h> |
12792 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12793 |
-/* We use char because int might match the return type of a gcc2 |
12794 |
- builtin and then its argument prototype would still apply. */ |
12795 |
-char $ac_func(); |
12796 |
- |
12797 |
-int main() { |
12798 |
- |
12799 |
-/* The GNU C library defines this for functions which it implements |
12800 |
- to always fail with ENOSYS. Some functions are actually named |
12801 |
- something starting with __ and the normal name is an alias. */ |
12802 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12803 |
-choke me |
12804 |
-#else |
12805 |
-$ac_func(); |
12806 |
-#endif |
12807 |
- |
12808 |
-; return 0; } |
12809 |
-EOF |
12810 |
-if { (eval echo configure:7876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12811 |
- rm -rf conftest* |
12812 |
- eval "ac_cv_func_$ac_func=yes" |
12813 |
-else |
12814 |
- echo "configure: failed program was:" >&5 |
12815 |
- cat conftest.$ac_ext >&5 |
12816 |
- rm -rf conftest* |
12817 |
- eval "ac_cv_func_$ac_func=no" |
12818 |
-fi |
12819 |
-rm -f conftest* |
12820 |
-fi |
12821 |
+do : |
12822 |
+ ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
12823 |
+if test "x$ac_cv_func_strstr" = xyes; then : |
12824 |
+ cat >>confdefs.h <<_ACEOF |
12825 |
+#define HAVE_STRSTR 1 |
12826 |
+_ACEOF |
12827 |
|
12828 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12829 |
- echo "$ac_t""yes" 1>&6 |
12830 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12831 |
- cat >> confdefs.h <<EOF |
12832 |
-#define $ac_tr_func 1 |
12833 |
-EOF |
12834 |
- |
12835 |
-else |
12836 |
- echo "$ac_t""no" 1>&6 |
12837 |
fi |
12838 |
done |
12839 |
|
12840 |
-echo $ac_n "checking for strstr""... $ac_c" 1>&6 |
12841 |
-echo "configure:7901: checking for strstr" >&5 |
12842 |
-if eval "test \"`echo '$''{'ac_cv_have_strstr'+set}'`\" = set"; then |
12843 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12844 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr" >&5 |
12845 |
+$as_echo_n "checking for strstr... " >&6; } |
12846 |
+if ${ac_cv_have_strstr+:} false; then : |
12847 |
+ $as_echo_n "(cached) " >&6 |
12848 |
else |
12849 |
- cat > conftest.$ac_ext <<EOF |
12850 |
-#line 7906 "configure" |
12851 |
-#include "confdefs.h" |
12852 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12853 |
+/* end confdefs.h. */ |
12854 |
#include <string.h> |
12855 |
-int main() { |
12856 |
+int |
12857 |
+main () |
12858 |
+{ |
12859 |
strstr("", ""); return 0; |
12860 |
-; return 0; } |
12861 |
-EOF |
12862 |
-if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12863 |
- rm -rf conftest* |
12864 |
+ ; |
12865 |
+ return 0; |
12866 |
+} |
12867 |
+_ACEOF |
12868 |
+if ac_fn_c_try_link "$LINENO"; then : |
12869 |
ac_cv_have_strstr=yes |
12870 |
else |
12871 |
- echo "configure: failed program was:" >&5 |
12872 |
- cat conftest.$ac_ext >&5 |
12873 |
- rm -rf conftest* |
12874 |
ac_cv_have_strstr=no |
12875 |
fi |
12876 |
-rm -f conftest* |
12877 |
+rm -f core conftest.err conftest.$ac_objext \ |
12878 |
+ conftest$ac_exeext conftest.$ac_ext |
12879 |
|
12880 |
fi |
12881 |
- |
12882 |
-echo "$ac_t""$ac_cv_have_strstr" 1>&6 |
12883 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strstr" >&5 |
12884 |
+$as_echo "$ac_cv_have_strstr" >&6; } |
12885 |
if test "$ac_cv_have_strstr" = yes; then |
12886 |
- cat >> confdefs.h <<\EOF |
12887 |
-#define HAVE_STRSTR 1 |
12888 |
-EOF |
12889 |
+ $as_echo "#define HAVE_STRSTR 1" >>confdefs.h |
12890 |
|
12891 |
fi |
12892 |
|
12893 |
for ac_func in memchr |
12894 |
-do |
12895 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12896 |
-echo "configure:7937: checking for $ac_func" >&5 |
12897 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12898 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12899 |
-else |
12900 |
- cat > conftest.$ac_ext <<EOF |
12901 |
-#line 7942 "configure" |
12902 |
-#include "confdefs.h" |
12903 |
-/* System header to define __stub macros and hopefully few prototypes, |
12904 |
- which can conflict with char $ac_func(); below. */ |
12905 |
-#include <assert.h> |
12906 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
12907 |
-/* We use char because int might match the return type of a gcc2 |
12908 |
- builtin and then its argument prototype would still apply. */ |
12909 |
-char $ac_func(); |
12910 |
- |
12911 |
-int main() { |
12912 |
- |
12913 |
-/* The GNU C library defines this for functions which it implements |
12914 |
- to always fail with ENOSYS. Some functions are actually named |
12915 |
- something starting with __ and the normal name is an alias. */ |
12916 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
12917 |
-choke me |
12918 |
-#else |
12919 |
-$ac_func(); |
12920 |
-#endif |
12921 |
- |
12922 |
-; return 0; } |
12923 |
-EOF |
12924 |
-if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12925 |
- rm -rf conftest* |
12926 |
- eval "ac_cv_func_$ac_func=yes" |
12927 |
-else |
12928 |
- echo "configure: failed program was:" >&5 |
12929 |
- cat conftest.$ac_ext >&5 |
12930 |
- rm -rf conftest* |
12931 |
- eval "ac_cv_func_$ac_func=no" |
12932 |
-fi |
12933 |
-rm -f conftest* |
12934 |
-fi |
12935 |
+do : |
12936 |
+ ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" |
12937 |
+if test "x$ac_cv_func_memchr" = xyes; then : |
12938 |
+ cat >>confdefs.h <<_ACEOF |
12939 |
+#define HAVE_MEMCHR 1 |
12940 |
+_ACEOF |
12941 |
|
12942 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12943 |
- echo "$ac_t""yes" 1>&6 |
12944 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
12945 |
- cat >> confdefs.h <<EOF |
12946 |
-#define $ac_tr_func 1 |
12947 |
-EOF |
12948 |
- |
12949 |
-else |
12950 |
- echo "$ac_t""no" 1>&6 |
12951 |
fi |
12952 |
done |
12953 |
|
12954 |
-echo $ac_n "checking for memchr""... $ac_c" 1>&6 |
12955 |
-echo "configure:7990: checking for memchr" >&5 |
12956 |
-if eval "test \"`echo '$''{'ac_cv_have_memchr'+set}'`\" = set"; then |
12957 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
12958 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memchr" >&5 |
12959 |
+$as_echo_n "checking for memchr... " >&6; } |
12960 |
+if ${ac_cv_have_memchr+:} false; then : |
12961 |
+ $as_echo_n "(cached) " >&6 |
12962 |
else |
12963 |
- cat > conftest.$ac_ext <<EOF |
12964 |
-#line 7995 "configure" |
12965 |
-#include "confdefs.h" |
12966 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12967 |
+/* end confdefs.h. */ |
12968 |
#include <string.h> |
12969 |
-int main() { |
12970 |
+int |
12971 |
+main () |
12972 |
+{ |
12973 |
char a[1]; memchr(a, 0, 1); return 0; |
12974 |
-; return 0; } |
12975 |
-EOF |
12976 |
-if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12977 |
- rm -rf conftest* |
12978 |
+ ; |
12979 |
+ return 0; |
12980 |
+} |
12981 |
+_ACEOF |
12982 |
+if ac_fn_c_try_link "$LINENO"; then : |
12983 |
ac_cv_have_memchr=yes |
12984 |
else |
12985 |
- echo "configure: failed program was:" >&5 |
12986 |
- cat conftest.$ac_ext >&5 |
12987 |
- rm -rf conftest* |
12988 |
ac_cv_have_memchr=no |
12989 |
fi |
12990 |
-rm -f conftest* |
12991 |
+rm -f core conftest.err conftest.$ac_objext \ |
12992 |
+ conftest$ac_exeext conftest.$ac_ext |
12993 |
|
12994 |
fi |
12995 |
- |
12996 |
-echo "$ac_t""$ac_cv_have_memchr" 1>&6 |
12997 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_memchr" >&5 |
12998 |
+$as_echo "$ac_cv_have_memchr" >&6; } |
12999 |
if test "$ac_cv_have_memchr" = yes; then |
13000 |
- cat >> confdefs.h <<\EOF |
13001 |
-#define HAVE_MEMCHR 1 |
13002 |
-EOF |
13003 |
+ $as_echo "#define HAVE_MEMCHR 1" >>confdefs.h |
13004 |
|
13005 |
fi |
13006 |
|
13007 |
for ac_func in memcmp |
13008 |
-do |
13009 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
13010 |
-echo "configure:8026: checking for $ac_func" >&5 |
13011 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13012 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13013 |
-else |
13014 |
- cat > conftest.$ac_ext <<EOF |
13015 |
-#line 8031 "configure" |
13016 |
-#include "confdefs.h" |
13017 |
-/* System header to define __stub macros and hopefully few prototypes, |
13018 |
- which can conflict with char $ac_func(); below. */ |
13019 |
-#include <assert.h> |
13020 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13021 |
-/* We use char because int might match the return type of a gcc2 |
13022 |
- builtin and then its argument prototype would still apply. */ |
13023 |
-char $ac_func(); |
13024 |
- |
13025 |
-int main() { |
13026 |
- |
13027 |
-/* The GNU C library defines this for functions which it implements |
13028 |
- to always fail with ENOSYS. Some functions are actually named |
13029 |
- something starting with __ and the normal name is an alias. */ |
13030 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
13031 |
-choke me |
13032 |
-#else |
13033 |
-$ac_func(); |
13034 |
-#endif |
13035 |
- |
13036 |
-; return 0; } |
13037 |
-EOF |
13038 |
-if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13039 |
- rm -rf conftest* |
13040 |
- eval "ac_cv_func_$ac_func=yes" |
13041 |
-else |
13042 |
- echo "configure: failed program was:" >&5 |
13043 |
- cat conftest.$ac_ext >&5 |
13044 |
- rm -rf conftest* |
13045 |
- eval "ac_cv_func_$ac_func=no" |
13046 |
-fi |
13047 |
-rm -f conftest* |
13048 |
-fi |
13049 |
+do : |
13050 |
+ ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" |
13051 |
+if test "x$ac_cv_func_memcmp" = xyes; then : |
13052 |
+ cat >>confdefs.h <<_ACEOF |
13053 |
+#define HAVE_MEMCMP 1 |
13054 |
+_ACEOF |
13055 |
|
13056 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13057 |
- echo "$ac_t""yes" 1>&6 |
13058 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
13059 |
- cat >> confdefs.h <<EOF |
13060 |
-#define $ac_tr_func 1 |
13061 |
-EOF |
13062 |
- |
13063 |
-else |
13064 |
- echo "$ac_t""no" 1>&6 |
13065 |
fi |
13066 |
done |
13067 |
|
13068 |
-echo $ac_n "checking for memcmp""... $ac_c" 1>&6 |
13069 |
-echo "configure:8079: checking for memcmp" >&5 |
13070 |
-if eval "test \"`echo '$''{'ac_cv_have_memcmp'+set}'`\" = set"; then |
13071 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13072 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5 |
13073 |
+$as_echo_n "checking for memcmp... " >&6; } |
13074 |
+if ${ac_cv_have_memcmp+:} false; then : |
13075 |
+ $as_echo_n "(cached) " >&6 |
13076 |
else |
13077 |
- cat > conftest.$ac_ext <<EOF |
13078 |
-#line 8084 "configure" |
13079 |
-#include "confdefs.h" |
13080 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13081 |
+/* end confdefs.h. */ |
13082 |
#include <string.h> |
13083 |
-int main() { |
13084 |
+int |
13085 |
+main () |
13086 |
+{ |
13087 |
char a[1]; memcmp(a, a, 1); return 0; |
13088 |
-; return 0; } |
13089 |
-EOF |
13090 |
-if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13091 |
- rm -rf conftest* |
13092 |
+ ; |
13093 |
+ return 0; |
13094 |
+} |
13095 |
+_ACEOF |
13096 |
+if ac_fn_c_try_link "$LINENO"; then : |
13097 |
ac_cv_have_memcmp=yes |
13098 |
else |
13099 |
- echo "configure: failed program was:" >&5 |
13100 |
- cat conftest.$ac_ext >&5 |
13101 |
- rm -rf conftest* |
13102 |
ac_cv_have_memcmp=no |
13103 |
fi |
13104 |
-rm -f conftest* |
13105 |
+rm -f core conftest.err conftest.$ac_objext \ |
13106 |
+ conftest$ac_exeext conftest.$ac_ext |
13107 |
|
13108 |
fi |
13109 |
- |
13110 |
-echo "$ac_t""$ac_cv_have_memcmp" 1>&6 |
13111 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_memcmp" >&5 |
13112 |
+$as_echo "$ac_cv_have_memcmp" >&6; } |
13113 |
if test "$ac_cv_have_memcmp" = yes; then |
13114 |
- cat >> confdefs.h <<\EOF |
13115 |
-#define HAVE_MEMCMP 1 |
13116 |
-EOF |
13117 |
+ $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h |
13118 |
|
13119 |
fi |
13120 |
|
13121 |
for ac_func in memcpy |
13122 |
-do |
13123 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
13124 |
-echo "configure:8115: checking for $ac_func" >&5 |
13125 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13126 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13127 |
-else |
13128 |
- cat > conftest.$ac_ext <<EOF |
13129 |
-#line 8120 "configure" |
13130 |
-#include "confdefs.h" |
13131 |
-/* System header to define __stub macros and hopefully few prototypes, |
13132 |
- which can conflict with char $ac_func(); below. */ |
13133 |
-#include <assert.h> |
13134 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13135 |
-/* We use char because int might match the return type of a gcc2 |
13136 |
- builtin and then its argument prototype would still apply. */ |
13137 |
-char $ac_func(); |
13138 |
- |
13139 |
-int main() { |
13140 |
- |
13141 |
-/* The GNU C library defines this for functions which it implements |
13142 |
- to always fail with ENOSYS. Some functions are actually named |
13143 |
- something starting with __ and the normal name is an alias. */ |
13144 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
13145 |
-choke me |
13146 |
-#else |
13147 |
-$ac_func(); |
13148 |
-#endif |
13149 |
- |
13150 |
-; return 0; } |
13151 |
-EOF |
13152 |
-if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13153 |
- rm -rf conftest* |
13154 |
- eval "ac_cv_func_$ac_func=yes" |
13155 |
-else |
13156 |
- echo "configure: failed program was:" >&5 |
13157 |
- cat conftest.$ac_ext >&5 |
13158 |
- rm -rf conftest* |
13159 |
- eval "ac_cv_func_$ac_func=no" |
13160 |
-fi |
13161 |
-rm -f conftest* |
13162 |
-fi |
13163 |
+do : |
13164 |
+ ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
13165 |
+if test "x$ac_cv_func_memcpy" = xyes; then : |
13166 |
+ cat >>confdefs.h <<_ACEOF |
13167 |
+#define HAVE_MEMCPY 1 |
13168 |
+_ACEOF |
13169 |
|
13170 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13171 |
- echo "$ac_t""yes" 1>&6 |
13172 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
13173 |
- cat >> confdefs.h <<EOF |
13174 |
-#define $ac_tr_func 1 |
13175 |
-EOF |
13176 |
- |
13177 |
-else |
13178 |
- echo "$ac_t""no" 1>&6 |
13179 |
fi |
13180 |
done |
13181 |
|
13182 |
-echo $ac_n "checking for memcpy""... $ac_c" 1>&6 |
13183 |
-echo "configure:8168: checking for memcpy" >&5 |
13184 |
-if eval "test \"`echo '$''{'ac_cv_have_memcpy'+set}'`\" = set"; then |
13185 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13186 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5 |
13187 |
+$as_echo_n "checking for memcpy... " >&6; } |
13188 |
+if ${ac_cv_have_memcpy+:} false; then : |
13189 |
+ $as_echo_n "(cached) " >&6 |
13190 |
else |
13191 |
- cat > conftest.$ac_ext <<EOF |
13192 |
-#line 8173 "configure" |
13193 |
-#include "confdefs.h" |
13194 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13195 |
+/* end confdefs.h. */ |
13196 |
#include <string.h> |
13197 |
-int main() { |
13198 |
+int |
13199 |
+main () |
13200 |
+{ |
13201 |
char a[1]; memcpy(a, a, 1); return 0; |
13202 |
-; return 0; } |
13203 |
-EOF |
13204 |
-if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13205 |
- rm -rf conftest* |
13206 |
+ ; |
13207 |
+ return 0; |
13208 |
+} |
13209 |
+_ACEOF |
13210 |
+if ac_fn_c_try_link "$LINENO"; then : |
13211 |
ac_cv_have_memcpy=yes |
13212 |
else |
13213 |
- echo "configure: failed program was:" >&5 |
13214 |
- cat conftest.$ac_ext >&5 |
13215 |
- rm -rf conftest* |
13216 |
ac_cv_have_memcpy=no |
13217 |
fi |
13218 |
-rm -f conftest* |
13219 |
+rm -f core conftest.err conftest.$ac_objext \ |
13220 |
+ conftest$ac_exeext conftest.$ac_ext |
13221 |
|
13222 |
fi |
13223 |
- |
13224 |
-echo "$ac_t""$ac_cv_have_memcpy" 1>&6 |
13225 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_memcpy" >&5 |
13226 |
+$as_echo "$ac_cv_have_memcpy" >&6; } |
13227 |
if test "$ac_cv_have_memcpy" = yes; then |
13228 |
- cat >> confdefs.h <<\EOF |
13229 |
-#define HAVE_MEMCPY 1 |
13230 |
-EOF |
13231 |
+ $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h |
13232 |
|
13233 |
fi |
13234 |
|
13235 |
for ac_func in memmove |
13236 |
-do |
13237 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
13238 |
-echo "configure:8204: checking for $ac_func" >&5 |
13239 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13240 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13241 |
-else |
13242 |
- cat > conftest.$ac_ext <<EOF |
13243 |
-#line 8209 "configure" |
13244 |
-#include "confdefs.h" |
13245 |
-/* System header to define __stub macros and hopefully few prototypes, |
13246 |
- which can conflict with char $ac_func(); below. */ |
13247 |
-#include <assert.h> |
13248 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13249 |
-/* We use char because int might match the return type of a gcc2 |
13250 |
- builtin and then its argument prototype would still apply. */ |
13251 |
-char $ac_func(); |
13252 |
- |
13253 |
-int main() { |
13254 |
- |
13255 |
-/* The GNU C library defines this for functions which it implements |
13256 |
- to always fail with ENOSYS. Some functions are actually named |
13257 |
- something starting with __ and the normal name is an alias. */ |
13258 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
13259 |
-choke me |
13260 |
-#else |
13261 |
-$ac_func(); |
13262 |
-#endif |
13263 |
- |
13264 |
-; return 0; } |
13265 |
-EOF |
13266 |
-if { (eval echo configure:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13267 |
- rm -rf conftest* |
13268 |
- eval "ac_cv_func_$ac_func=yes" |
13269 |
-else |
13270 |
- echo "configure: failed program was:" >&5 |
13271 |
- cat conftest.$ac_ext >&5 |
13272 |
- rm -rf conftest* |
13273 |
- eval "ac_cv_func_$ac_func=no" |
13274 |
-fi |
13275 |
-rm -f conftest* |
13276 |
-fi |
13277 |
+do : |
13278 |
+ ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
13279 |
+if test "x$ac_cv_func_memmove" = xyes; then : |
13280 |
+ cat >>confdefs.h <<_ACEOF |
13281 |
+#define HAVE_MEMMOVE 1 |
13282 |
+_ACEOF |
13283 |
|
13284 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13285 |
- echo "$ac_t""yes" 1>&6 |
13286 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
13287 |
- cat >> confdefs.h <<EOF |
13288 |
-#define $ac_tr_func 1 |
13289 |
-EOF |
13290 |
- |
13291 |
-else |
13292 |
- echo "$ac_t""no" 1>&6 |
13293 |
fi |
13294 |
done |
13295 |
|
13296 |
-echo $ac_n "checking for memmove""... $ac_c" 1>&6 |
13297 |
-echo "configure:8257: checking for memmove" >&5 |
13298 |
-if eval "test \"`echo '$''{'ac_cv_have_memmove'+set}'`\" = set"; then |
13299 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13300 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove" >&5 |
13301 |
+$as_echo_n "checking for memmove... " >&6; } |
13302 |
+if ${ac_cv_have_memmove+:} false; then : |
13303 |
+ $as_echo_n "(cached) " >&6 |
13304 |
else |
13305 |
- cat > conftest.$ac_ext <<EOF |
13306 |
-#line 8262 "configure" |
13307 |
-#include "confdefs.h" |
13308 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13309 |
+/* end confdefs.h. */ |
13310 |
#include <string.h> |
13311 |
-int main() { |
13312 |
+int |
13313 |
+main () |
13314 |
+{ |
13315 |
char a[1]; memmove(a, a, 1); return 0; |
13316 |
-; return 0; } |
13317 |
-EOF |
13318 |
-if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13319 |
- rm -rf conftest* |
13320 |
+ ; |
13321 |
+ return 0; |
13322 |
+} |
13323 |
+_ACEOF |
13324 |
+if ac_fn_c_try_link "$LINENO"; then : |
13325 |
ac_cv_have_memmove=yes |
13326 |
else |
13327 |
- echo "configure: failed program was:" >&5 |
13328 |
- cat conftest.$ac_ext >&5 |
13329 |
- rm -rf conftest* |
13330 |
ac_cv_have_memmove=no |
13331 |
fi |
13332 |
-rm -f conftest* |
13333 |
+rm -f core conftest.err conftest.$ac_objext \ |
13334 |
+ conftest$ac_exeext conftest.$ac_ext |
13335 |
|
13336 |
fi |
13337 |
- |
13338 |
-echo "$ac_t""$ac_cv_have_memmove" 1>&6 |
13339 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_memmove" >&5 |
13340 |
+$as_echo "$ac_cv_have_memmove" >&6; } |
13341 |
if test "$ac_cv_have_memmove" = yes; then |
13342 |
- cat >> confdefs.h <<\EOF |
13343 |
-#define HAVE_MEMMOVE 1 |
13344 |
-EOF |
13345 |
+ $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h |
13346 |
|
13347 |
fi |
13348 |
|
13349 |
for ac_func in memset |
13350 |
-do |
13351 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
13352 |
-echo "configure:8293: checking for $ac_func" >&5 |
13353 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13354 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13355 |
-else |
13356 |
- cat > conftest.$ac_ext <<EOF |
13357 |
-#line 8298 "configure" |
13358 |
-#include "confdefs.h" |
13359 |
-/* System header to define __stub macros and hopefully few prototypes, |
13360 |
- which can conflict with char $ac_func(); below. */ |
13361 |
-#include <assert.h> |
13362 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13363 |
-/* We use char because int might match the return type of a gcc2 |
13364 |
- builtin and then its argument prototype would still apply. */ |
13365 |
-char $ac_func(); |
13366 |
- |
13367 |
-int main() { |
13368 |
- |
13369 |
-/* The GNU C library defines this for functions which it implements |
13370 |
- to always fail with ENOSYS. Some functions are actually named |
13371 |
- something starting with __ and the normal name is an alias. */ |
13372 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
13373 |
-choke me |
13374 |
-#else |
13375 |
-$ac_func(); |
13376 |
-#endif |
13377 |
- |
13378 |
-; return 0; } |
13379 |
-EOF |
13380 |
-if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13381 |
- rm -rf conftest* |
13382 |
- eval "ac_cv_func_$ac_func=yes" |
13383 |
-else |
13384 |
- echo "configure: failed program was:" >&5 |
13385 |
- cat conftest.$ac_ext >&5 |
13386 |
- rm -rf conftest* |
13387 |
- eval "ac_cv_func_$ac_func=no" |
13388 |
-fi |
13389 |
-rm -f conftest* |
13390 |
-fi |
13391 |
+do : |
13392 |
+ ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
13393 |
+if test "x$ac_cv_func_memset" = xyes; then : |
13394 |
+ cat >>confdefs.h <<_ACEOF |
13395 |
+#define HAVE_MEMSET 1 |
13396 |
+_ACEOF |
13397 |
|
13398 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13399 |
- echo "$ac_t""yes" 1>&6 |
13400 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
13401 |
- cat >> confdefs.h <<EOF |
13402 |
-#define $ac_tr_func 1 |
13403 |
-EOF |
13404 |
- |
13405 |
-else |
13406 |
- echo "$ac_t""no" 1>&6 |
13407 |
fi |
13408 |
done |
13409 |
|
13410 |
-echo $ac_n "checking for memset""... $ac_c" 1>&6 |
13411 |
-echo "configure:8346: checking for memset" >&5 |
13412 |
-if eval "test \"`echo '$''{'ac_cv_have_memset'+set}'`\" = set"; then |
13413 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13414 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5 |
13415 |
+$as_echo_n "checking for memset... " >&6; } |
13416 |
+if ${ac_cv_have_memset+:} false; then : |
13417 |
+ $as_echo_n "(cached) " >&6 |
13418 |
else |
13419 |
- cat > conftest.$ac_ext <<EOF |
13420 |
-#line 8351 "configure" |
13421 |
-#include "confdefs.h" |
13422 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13423 |
+/* end confdefs.h. */ |
13424 |
#include <string.h> |
13425 |
-int main() { |
13426 |
+int |
13427 |
+main () |
13428 |
+{ |
13429 |
char a[1]; memset(a, 0, 1); return 0; |
13430 |
-; return 0; } |
13431 |
-EOF |
13432 |
-if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13433 |
- rm -rf conftest* |
13434 |
+ ; |
13435 |
+ return 0; |
13436 |
+} |
13437 |
+_ACEOF |
13438 |
+if ac_fn_c_try_link "$LINENO"; then : |
13439 |
ac_cv_have_memset=yes |
13440 |
else |
13441 |
- echo "configure: failed program was:" >&5 |
13442 |
- cat conftest.$ac_ext >&5 |
13443 |
- rm -rf conftest* |
13444 |
ac_cv_have_memset=no |
13445 |
fi |
13446 |
-rm -f conftest* |
13447 |
+rm -f core conftest.err conftest.$ac_objext \ |
13448 |
+ conftest$ac_exeext conftest.$ac_ext |
13449 |
|
13450 |
fi |
13451 |
- |
13452 |
-echo "$ac_t""$ac_cv_have_memset" 1>&6 |
13453 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_memset" >&5 |
13454 |
+$as_echo "$ac_cv_have_memset" >&6; } |
13455 |
if test "$ac_cv_have_memset" = yes; then |
13456 |
- cat >> confdefs.h <<\EOF |
13457 |
-#define HAVE_MEMSET 1 |
13458 |
-EOF |
13459 |
+ $as_echo "#define HAVE_MEMSET 1" >>confdefs.h |
13460 |
|
13461 |
fi |
13462 |
|
13463 |
for ac_func in strerror |
13464 |
-do |
13465 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
13466 |
-echo "configure:8382: checking for $ac_func" >&5 |
13467 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13468 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13469 |
-else |
13470 |
- cat > conftest.$ac_ext <<EOF |
13471 |
-#line 8387 "configure" |
13472 |
-#include "confdefs.h" |
13473 |
-/* System header to define __stub macros and hopefully few prototypes, |
13474 |
- which can conflict with char $ac_func(); below. */ |
13475 |
-#include <assert.h> |
13476 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13477 |
-/* We use char because int might match the return type of a gcc2 |
13478 |
- builtin and then its argument prototype would still apply. */ |
13479 |
-char $ac_func(); |
13480 |
- |
13481 |
-int main() { |
13482 |
- |
13483 |
-/* The GNU C library defines this for functions which it implements |
13484 |
- to always fail with ENOSYS. Some functions are actually named |
13485 |
- something starting with __ and the normal name is an alias. */ |
13486 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
13487 |
-choke me |
13488 |
-#else |
13489 |
-$ac_func(); |
13490 |
-#endif |
13491 |
- |
13492 |
-; return 0; } |
13493 |
-EOF |
13494 |
-if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13495 |
- rm -rf conftest* |
13496 |
- eval "ac_cv_func_$ac_func=yes" |
13497 |
-else |
13498 |
- echo "configure: failed program was:" >&5 |
13499 |
- cat conftest.$ac_ext >&5 |
13500 |
- rm -rf conftest* |
13501 |
- eval "ac_cv_func_$ac_func=no" |
13502 |
-fi |
13503 |
-rm -f conftest* |
13504 |
-fi |
13505 |
+do : |
13506 |
+ ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
13507 |
+if test "x$ac_cv_func_strerror" = xyes; then : |
13508 |
+ cat >>confdefs.h <<_ACEOF |
13509 |
+#define HAVE_STRERROR 1 |
13510 |
+_ACEOF |
13511 |
|
13512 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13513 |
- echo "$ac_t""yes" 1>&6 |
13514 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
13515 |
- cat >> confdefs.h <<EOF |
13516 |
-#define $ac_tr_func 1 |
13517 |
-EOF |
13518 |
- |
13519 |
-else |
13520 |
- echo "$ac_t""no" 1>&6 |
13521 |
fi |
13522 |
done |
13523 |
|
13524 |
-echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
13525 |
-echo "configure:8435: checking for strerror" >&5 |
13526 |
-if eval "test \"`echo '$''{'ac_cv_have_strerror'+set}'`\" = set"; then |
13527 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13528 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror" >&5 |
13529 |
+$as_echo_n "checking for strerror... " >&6; } |
13530 |
+if ${ac_cv_have_strerror+:} false; then : |
13531 |
+ $as_echo_n "(cached) " >&6 |
13532 |
else |
13533 |
- cat > conftest.$ac_ext <<EOF |
13534 |
-#line 8440 "configure" |
13535 |
-#include "confdefs.h" |
13536 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13537 |
+/* end confdefs.h. */ |
13538 |
#include <string.h> |
13539 |
-int main() { |
13540 |
+int |
13541 |
+main () |
13542 |
+{ |
13543 |
char *c = strerror(1); return 0; |
13544 |
-; return 0; } |
13545 |
-EOF |
13546 |
-if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13547 |
- rm -rf conftest* |
13548 |
+ ; |
13549 |
+ return 0; |
13550 |
+} |
13551 |
+_ACEOF |
13552 |
+if ac_fn_c_try_link "$LINENO"; then : |
13553 |
ac_cv_have_strerror=yes |
13554 |
else |
13555 |
- echo "configure: failed program was:" >&5 |
13556 |
- cat conftest.$ac_ext >&5 |
13557 |
- rm -rf conftest* |
13558 |
ac_cv_have_strerror=no |
13559 |
fi |
13560 |
-rm -f conftest* |
13561 |
+rm -f core conftest.err conftest.$ac_objext \ |
13562 |
+ conftest$ac_exeext conftest.$ac_ext |
13563 |
|
13564 |
fi |
13565 |
- |
13566 |
-echo "$ac_t""$ac_cv_have_strerror" 1>&6 |
13567 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strerror" >&5 |
13568 |
+$as_echo "$ac_cv_have_strerror" >&6; } |
13569 |
if test "$ac_cv_have_strerror" = yes; then |
13570 |
- cat >> confdefs.h <<\EOF |
13571 |
-#define HAVE_STRERROR 1 |
13572 |
-EOF |
13573 |
+ $as_echo "#define HAVE_STRERROR 1" >>confdefs.h |
13574 |
|
13575 |
fi |
13576 |
|
13577 |
-echo $ac_n "checking for sigsetjmp/siglongjmp""... $ac_c" 1>&6 |
13578 |
-echo "configure:8469: checking for sigsetjmp/siglongjmp" >&5 |
13579 |
-if eval "test \"`echo '$''{'ac_cv_have_sigsetjmp'+set}'`\" = set"; then |
13580 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13581 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp/siglongjmp" >&5 |
13582 |
+$as_echo_n "checking for sigsetjmp/siglongjmp... " >&6; } |
13583 |
+if ${ac_cv_have_sigsetjmp+:} false; then : |
13584 |
+ $as_echo_n "(cached) " >&6 |
13585 |
else |
13586 |
- cat > conftest.$ac_ext <<EOF |
13587 |
-#line 8474 "configure" |
13588 |
-#include "confdefs.h" |
13589 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13590 |
+/* end confdefs.h. */ |
13591 |
#include <setjmp.h> |
13592 |
-int main() { |
13593 |
+int |
13594 |
+main () |
13595 |
+{ |
13596 |
sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2); |
13597 |
-; return 0; } |
13598 |
-EOF |
13599 |
-if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13600 |
- rm -rf conftest* |
13601 |
+ ; |
13602 |
+ return 0; |
13603 |
+} |
13604 |
+_ACEOF |
13605 |
+if ac_fn_c_try_link "$LINENO"; then : |
13606 |
ac_cv_have_sigsetjmp=yes |
13607 |
else |
13608 |
- echo "configure: failed program was:" >&5 |
13609 |
- cat conftest.$ac_ext >&5 |
13610 |
- rm -rf conftest* |
13611 |
ac_cv_have_sigsetjmp=no |
13612 |
fi |
13613 |
-rm -f conftest* |
13614 |
+rm -f core conftest.err conftest.$ac_objext \ |
13615 |
+ conftest$ac_exeext conftest.$ac_ext |
13616 |
|
13617 |
fi |
13618 |
- |
13619 |
-echo "$ac_t""$ac_cv_have_sigsetjmp" 1>&6 |
13620 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sigsetjmp" >&5 |
13621 |
+$as_echo "$ac_cv_have_sigsetjmp" >&6; } |
13622 |
if test "$ac_cv_have_sigsetjmp" = yes; then |
13623 |
- cat >> confdefs.h <<\EOF |
13624 |
-#define HAVE_SIGSETJMP 1 |
13625 |
-EOF |
13626 |
+ $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h |
13627 |
|
13628 |
fi |
13629 |
|
13630 |
if test "$ac_cv_func_select" != yes; then |
13631 |
- { echo "configure: error: select function not present" 1>&2; exit 1; } |
13632 |
+ as_fn_error $? "select function not present" "$LINENO" 5 |
13633 |
fi |
13634 |
|
13635 |
|
13636 |
-echo $ac_n "checking for requested debug level""... $ac_c" 1>&6 |
13637 |
-echo "configure:8508: checking for requested debug level" >&5 |
13638 |
-# Check whether --enable-debuglevel or --disable-debuglevel was given. |
13639 |
-if test "${enable_debuglevel+set}" = set; then |
13640 |
- enableval="$enable_debuglevel" |
13641 |
- cf_debuglevel="$enableval" |
13642 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested debug level" >&5 |
13643 |
+$as_echo_n "checking for requested debug level... " >&6; } |
13644 |
+# Check whether --enable-debuglevel was given. |
13645 |
+if test "${enable_debuglevel+set}" = set; then : |
13646 |
+ enableval=$enable_debuglevel; cf_debuglevel="$enableval" |
13647 |
else |
13648 |
cf_debuglevel=0 |
13649 |
fi |
13650 |
|
13651 |
if test "$cf_debuglevel" = no; then cf_debuglevel=0; fi |
13652 |
if test "$cf_debuglevel" = yes; then cf_debuglevel=2; fi |
13653 |
-echo "$ac_t""$cf_debuglevel" 1>&6 |
13654 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_debuglevel" >&5 |
13655 |
+$as_echo "$cf_debuglevel" >&6; } |
13656 |
if test "$cf_debuglevel" != -1 && test "$cf_debuglevel" != 0 && test "$cf_debuglevel" != 1 && test "$cf_debuglevel" != 2 && test "$cf_debuglevel" != 3; then |
13657 |
- { echo "configure: error: Invalid debuglevel specified" 1>&2; exit 1; } |
13658 |
+ as_fn_error $? "Invalid debuglevel specified" "$LINENO" 5 |
13659 |
fi |
13660 |
-cat >> confdefs.h <<EOF |
13661 |
+cat >>confdefs.h <<_ACEOF |
13662 |
#define DEBUGLEVEL $cf_debuglevel |
13663 |
-EOF |
13664 |
+_ACEOF |
13665 |
|
13666 |
|
13667 |
|
13668 |
cf_use_graphics=no |
13669 |
-echo $ac_n "checking if you want to use graphics""... $ac_c" 1>&6 |
13670 |
-echo "configure:8531: checking if you want to use graphics" >&5 |
13671 |
-# Check whether --enable-graphics or --disable-graphics was given. |
13672 |
-if test "${enable_graphics+set}" = set; then |
13673 |
- enableval="$enable_graphics" |
13674 |
- cf_use_graphics="$enableval" |
13675 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to use graphics" >&5 |
13676 |
+$as_echo_n "checking if you want to use graphics... " >&6; } |
13677 |
+# Check whether --enable-graphics was given. |
13678 |
+if test "${enable_graphics+set}" = set; then : |
13679 |
+ enableval=$enable_graphics; cf_use_graphics="$enableval" |
13680 |
fi |
13681 |
|
13682 |
-echo "$ac_t""$cf_use_graphics" 1>&6 |
13683 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_use_graphics" >&5 |
13684 |
+$as_echo "$cf_use_graphics" >&6; } |
13685 |
|
13686 |
-echo $ac_n "checking if you want to enable UTF-8 terminal""... $ac_c" 1>&6 |
13687 |
-echo "configure:8541: checking if you want to enable UTF-8 terminal" >&5 |
13688 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to enable UTF-8 terminal" >&5 |
13689 |
+$as_echo_n "checking if you want to enable UTF-8 terminal... " >&6; } |
13690 |
cf_enable_utf8=yes |
13691 |
-# Check whether --enable-utf8 or --disable-utf8 was given. |
13692 |
-if test "${enable_utf8+set}" = set; then |
13693 |
- enableval="$enable_utf8" |
13694 |
- cf_enable_utf8="$enableval" |
13695 |
+# Check whether --enable-utf8 was given. |
13696 |
+if test "${enable_utf8+set}" = set; then : |
13697 |
+ enableval=$enable_utf8; cf_enable_utf8="$enableval" |
13698 |
fi |
13699 |
|
13700 |
test "$ac_cv_have_emx" = yes && cf_enable_utf8=no |
13701 |
test "$ac_cv_have_djgpp" = yes && cf_enable_utf8=no |
13702 |
-echo "$ac_t""$cf_enable_utf8" 1>&6 |
13703 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_enable_utf8" >&5 |
13704 |
+$as_echo "$cf_enable_utf8" >&6; } |
13705 |
|
13706 |
if test "$cf_enable_utf8" != no; then |
13707 |
- cat >> confdefs.h <<\EOF |
13708 |
-#define ENABLE_UTF8 1 |
13709 |
-EOF |
13710 |
+ $as_echo "#define ENABLE_UTF8 1" >>confdefs.h |
13711 |
|
13712 |
fi |
13713 |
|
13714 |
|
13715 |
|
13716 |
|
13717 |
-echo $ac_n "checking for socket""... $ac_c" 1>&6 |
13718 |
-echo "configure:8564: checking for socket" >&5 |
13719 |
-if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
13720 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13721 |
-else |
13722 |
- cat > conftest.$ac_ext <<EOF |
13723 |
-#line 8569 "configure" |
13724 |
-#include "confdefs.h" |
13725 |
-/* System header to define __stub macros and hopefully few prototypes, |
13726 |
- which can conflict with char socket(); below. */ |
13727 |
-#include <assert.h> |
13728 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13729 |
-/* We use char because int might match the return type of a gcc2 |
13730 |
- builtin and then its argument prototype would still apply. */ |
13731 |
-char socket(); |
13732 |
- |
13733 |
-int main() { |
13734 |
- |
13735 |
-/* The GNU C library defines this for functions which it implements |
13736 |
- to always fail with ENOSYS. Some functions are actually named |
13737 |
- something starting with __ and the normal name is an alias. */ |
13738 |
-#if defined (__stub_socket) || defined (__stub___socket) |
13739 |
-choke me |
13740 |
-#else |
13741 |
-socket(); |
13742 |
-#endif |
13743 |
- |
13744 |
-; return 0; } |
13745 |
-EOF |
13746 |
-if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13747 |
- rm -rf conftest* |
13748 |
- eval "ac_cv_func_socket=yes" |
13749 |
-else |
13750 |
- echo "configure: failed program was:" >&5 |
13751 |
- cat conftest.$ac_ext >&5 |
13752 |
- rm -rf conftest* |
13753 |
- eval "ac_cv_func_socket=no" |
13754 |
-fi |
13755 |
-rm -f conftest* |
13756 |
-fi |
13757 |
- |
13758 |
-if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
13759 |
- echo "$ac_t""yes" 1>&6 |
13760 |
+ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
13761 |
+if test "x$ac_cv_func_socket" = xyes; then : |
13762 |
cf_result=yes |
13763 |
else |
13764 |
- echo "$ac_t""no" 1>&6 |
13765 |
-cf_result=no |
13766 |
+ cf_result=no |
13767 |
fi |
13768 |
|
13769 |
if test "$cf_result" = no; then |
13770 |
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
13771 |
-echo "configure:8614: checking for socket in -lsocket" >&5 |
13772 |
-ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
13773 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13774 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13775 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
13776 |
+$as_echo_n "checking for socket in -lsocket... " >&6; } |
13777 |
+if ${ac_cv_lib_socket_socket+:} false; then : |
13778 |
+ $as_echo_n "(cached) " >&6 |
13779 |
else |
13780 |
- ac_save_LIBS="$LIBS" |
13781 |
+ ac_check_lib_save_LIBS=$LIBS |
13782 |
LIBS="-lsocket $LIBS" |
13783 |
-cat > conftest.$ac_ext <<EOF |
13784 |
-#line 8622 "configure" |
13785 |
-#include "confdefs.h" |
13786 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13787 |
-/* We use char because int might match the return type of a gcc2 |
13788 |
- builtin and then its argument prototype would still apply. */ |
13789 |
-char socket(); |
13790 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13791 |
+/* end confdefs.h. */ |
13792 |
|
13793 |
-int main() { |
13794 |
-socket() |
13795 |
-; return 0; } |
13796 |
-EOF |
13797 |
-if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13798 |
- rm -rf conftest* |
13799 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
13800 |
+/* Override any GCC internal prototype to avoid an error. |
13801 |
+ Use char because int might match the return type of a GCC |
13802 |
+ builtin and then its argument prototype would still apply. */ |
13803 |
+#ifdef __cplusplus |
13804 |
+extern "C" |
13805 |
+#endif |
13806 |
+char socket (); |
13807 |
+int |
13808 |
+main () |
13809 |
+{ |
13810 |
+return socket (); |
13811 |
+ ; |
13812 |
+ return 0; |
13813 |
+} |
13814 |
+_ACEOF |
13815 |
+if ac_fn_c_try_link "$LINENO"; then : |
13816 |
+ ac_cv_lib_socket_socket=yes |
13817 |
else |
13818 |
- echo "configure: failed program was:" >&5 |
13819 |
- cat conftest.$ac_ext >&5 |
13820 |
- rm -rf conftest* |
13821 |
- eval "ac_cv_lib_$ac_lib_var=no" |
13822 |
+ ac_cv_lib_socket_socket=no |
13823 |
fi |
13824 |
-rm -f conftest* |
13825 |
-LIBS="$ac_save_LIBS" |
13826 |
- |
13827 |
+rm -f core conftest.err conftest.$ac_objext \ |
13828 |
+ conftest$ac_exeext conftest.$ac_ext |
13829 |
+LIBS=$ac_check_lib_save_LIBS |
13830 |
fi |
13831 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13832 |
- echo "$ac_t""yes" 1>&6 |
13833 |
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
13834 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
13835 |
- cat >> confdefs.h <<EOF |
13836 |
-#define $ac_tr_lib 1 |
13837 |
-EOF |
13838 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
13839 |
+$as_echo "$ac_cv_lib_socket_socket" >&6; } |
13840 |
+if test "x$ac_cv_lib_socket_socket" = xyes; then : |
13841 |
+ cat >>confdefs.h <<_ACEOF |
13842 |
+#define HAVE_LIBSOCKET 1 |
13843 |
+_ACEOF |
13844 |
|
13845 |
LIBS="-lsocket $LIBS" |
13846 |
|
13847 |
-else |
13848 |
- echo "$ac_t""no" 1>&6 |
13849 |
fi |
13850 |
|
13851 |
if test "$ac_cv_lib_socket_socket" = no; then |
13852 |
- echo $ac_n "checking for socket in -lnetwork""... $ac_c" 1>&6 |
13853 |
-echo "configure:8662: checking for socket in -lnetwork" >&5 |
13854 |
-ac_lib_var=`echo network'_'socket | sed 'y%./+-%__p_%'` |
13855 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13856 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13857 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
13858 |
+$as_echo_n "checking for socket in -lnetwork... " >&6; } |
13859 |
+if ${ac_cv_lib_network_socket+:} false; then : |
13860 |
+ $as_echo_n "(cached) " >&6 |
13861 |
else |
13862 |
- ac_save_LIBS="$LIBS" |
13863 |
+ ac_check_lib_save_LIBS=$LIBS |
13864 |
LIBS="-lnetwork $LIBS" |
13865 |
-cat > conftest.$ac_ext <<EOF |
13866 |
-#line 8670 "configure" |
13867 |
-#include "confdefs.h" |
13868 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13869 |
-/* We use char because int might match the return type of a gcc2 |
13870 |
- builtin and then its argument prototype would still apply. */ |
13871 |
-char socket(); |
13872 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13873 |
+/* end confdefs.h. */ |
13874 |
|
13875 |
-int main() { |
13876 |
-socket() |
13877 |
-; return 0; } |
13878 |
-EOF |
13879 |
-if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13880 |
- rm -rf conftest* |
13881 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
13882 |
+/* Override any GCC internal prototype to avoid an error. |
13883 |
+ Use char because int might match the return type of a GCC |
13884 |
+ builtin and then its argument prototype would still apply. */ |
13885 |
+#ifdef __cplusplus |
13886 |
+extern "C" |
13887 |
+#endif |
13888 |
+char socket (); |
13889 |
+int |
13890 |
+main () |
13891 |
+{ |
13892 |
+return socket (); |
13893 |
+ ; |
13894 |
+ return 0; |
13895 |
+} |
13896 |
+_ACEOF |
13897 |
+if ac_fn_c_try_link "$LINENO"; then : |
13898 |
+ ac_cv_lib_network_socket=yes |
13899 |
else |
13900 |
- echo "configure: failed program was:" >&5 |
13901 |
- cat conftest.$ac_ext >&5 |
13902 |
- rm -rf conftest* |
13903 |
- eval "ac_cv_lib_$ac_lib_var=no" |
13904 |
+ ac_cv_lib_network_socket=no |
13905 |
fi |
13906 |
-rm -f conftest* |
13907 |
-LIBS="$ac_save_LIBS" |
13908 |
- |
13909 |
+rm -f core conftest.err conftest.$ac_objext \ |
13910 |
+ conftest$ac_exeext conftest.$ac_ext |
13911 |
+LIBS=$ac_check_lib_save_LIBS |
13912 |
fi |
13913 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13914 |
- echo "$ac_t""yes" 1>&6 |
13915 |
- ac_tr_lib=HAVE_LIB`echo network | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
13916 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
13917 |
- cat >> confdefs.h <<EOF |
13918 |
-#define $ac_tr_lib 1 |
13919 |
-EOF |
13920 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
13921 |
+$as_echo "$ac_cv_lib_network_socket" >&6; } |
13922 |
+if test "x$ac_cv_lib_network_socket" = xyes; then : |
13923 |
+ cat >>confdefs.h <<_ACEOF |
13924 |
+#define HAVE_LIBNETWORK 1 |
13925 |
+_ACEOF |
13926 |
|
13927 |
LIBS="-lnetwork $LIBS" |
13928 |
|
13929 |
-else |
13930 |
- echo "$ac_t""no" 1>&6 |
13931 |
fi |
13932 |
|
13933 |
if test "$ac_cv_lib_network_socket" = no; then |
13934 |
- echo $ac_n "checking for socket in -lwatt""... $ac_c" 1>&6 |
13935 |
-echo "configure:8710: checking for socket in -lwatt" >&5 |
13936 |
-ac_lib_var=`echo watt'_'socket | sed 'y%./+-%__p_%'` |
13937 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13938 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
13939 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwatt" >&5 |
13940 |
+$as_echo_n "checking for socket in -lwatt... " >&6; } |
13941 |
+if ${ac_cv_lib_watt_socket+:} false; then : |
13942 |
+ $as_echo_n "(cached) " >&6 |
13943 |
else |
13944 |
- ac_save_LIBS="$LIBS" |
13945 |
+ ac_check_lib_save_LIBS=$LIBS |
13946 |
LIBS="-lwatt $LIBS" |
13947 |
-cat > conftest.$ac_ext <<EOF |
13948 |
-#line 8718 "configure" |
13949 |
-#include "confdefs.h" |
13950 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
13951 |
-/* We use char because int might match the return type of a gcc2 |
13952 |
- builtin and then its argument prototype would still apply. */ |
13953 |
-char socket(); |
13954 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13955 |
+/* end confdefs.h. */ |
13956 |
|
13957 |
-int main() { |
13958 |
-socket() |
13959 |
-; return 0; } |
13960 |
-EOF |
13961 |
-if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13962 |
- rm -rf conftest* |
13963 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
13964 |
+/* Override any GCC internal prototype to avoid an error. |
13965 |
+ Use char because int might match the return type of a GCC |
13966 |
+ builtin and then its argument prototype would still apply. */ |
13967 |
+#ifdef __cplusplus |
13968 |
+extern "C" |
13969 |
+#endif |
13970 |
+char socket (); |
13971 |
+int |
13972 |
+main () |
13973 |
+{ |
13974 |
+return socket (); |
13975 |
+ ; |
13976 |
+ return 0; |
13977 |
+} |
13978 |
+_ACEOF |
13979 |
+if ac_fn_c_try_link "$LINENO"; then : |
13980 |
+ ac_cv_lib_watt_socket=yes |
13981 |
else |
13982 |
- echo "configure: failed program was:" >&5 |
13983 |
- cat conftest.$ac_ext >&5 |
13984 |
- rm -rf conftest* |
13985 |
- eval "ac_cv_lib_$ac_lib_var=no" |
13986 |
+ ac_cv_lib_watt_socket=no |
13987 |
fi |
13988 |
-rm -f conftest* |
13989 |
-LIBS="$ac_save_LIBS" |
13990 |
- |
13991 |
+rm -f core conftest.err conftest.$ac_objext \ |
13992 |
+ conftest$ac_exeext conftest.$ac_ext |
13993 |
+LIBS=$ac_check_lib_save_LIBS |
13994 |
fi |
13995 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13996 |
- echo "$ac_t""yes" 1>&6 |
13997 |
- ac_tr_lib=HAVE_LIB`echo watt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
13998 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
13999 |
- cat >> confdefs.h <<EOF |
14000 |
-#define $ac_tr_lib 1 |
14001 |
-EOF |
14002 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_socket" >&5 |
14003 |
+$as_echo "$ac_cv_lib_watt_socket" >&6; } |
14004 |
+if test "x$ac_cv_lib_watt_socket" = xyes; then : |
14005 |
+ cat >>confdefs.h <<_ACEOF |
14006 |
+#define HAVE_LIBWATT 1 |
14007 |
+_ACEOF |
14008 |
|
14009 |
LIBS="-lwatt $LIBS" |
14010 |
|
14011 |
-else |
14012 |
- echo "$ac_t""no" 1>&6 |
14013 |
fi |
14014 |
|
14015 |
if test "$ac_cv_lib_watt_socket" = no; then |
14016 |
- { echo "configure: error: socket function not present" 1>&2; exit 1; } |
14017 |
+ as_fn_error $? "socket function not present" "$LINENO" 5 |
14018 |
fi |
14019 |
fi |
14020 |
fi |
14021 |
fi |
14022 |
-echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 |
14023 |
-echo "configure:8763: checking for setsockopt" >&5 |
14024 |
-if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then |
14025 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14026 |
-else |
14027 |
- cat > conftest.$ac_ext <<EOF |
14028 |
-#line 8768 "configure" |
14029 |
-#include "confdefs.h" |
14030 |
-/* System header to define __stub macros and hopefully few prototypes, |
14031 |
- which can conflict with char setsockopt(); below. */ |
14032 |
-#include <assert.h> |
14033 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14034 |
-/* We use char because int might match the return type of a gcc2 |
14035 |
- builtin and then its argument prototype would still apply. */ |
14036 |
-char setsockopt(); |
14037 |
- |
14038 |
-int main() { |
14039 |
- |
14040 |
-/* The GNU C library defines this for functions which it implements |
14041 |
- to always fail with ENOSYS. Some functions are actually named |
14042 |
- something starting with __ and the normal name is an alias. */ |
14043 |
-#if defined (__stub_setsockopt) || defined (__stub___setsockopt) |
14044 |
-choke me |
14045 |
-#else |
14046 |
-setsockopt(); |
14047 |
-#endif |
14048 |
- |
14049 |
-; return 0; } |
14050 |
-EOF |
14051 |
-if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14052 |
- rm -rf conftest* |
14053 |
- eval "ac_cv_func_setsockopt=yes" |
14054 |
-else |
14055 |
- echo "configure: failed program was:" >&5 |
14056 |
- cat conftest.$ac_ext >&5 |
14057 |
- rm -rf conftest* |
14058 |
- eval "ac_cv_func_setsockopt=no" |
14059 |
-fi |
14060 |
-rm -f conftest* |
14061 |
-fi |
14062 |
- |
14063 |
-if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then |
14064 |
- echo "$ac_t""yes" 1>&6 |
14065 |
+ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" |
14066 |
+if test "x$ac_cv_func_setsockopt" = xyes; then : |
14067 |
cf_result=yes |
14068 |
else |
14069 |
- echo "$ac_t""no" 1>&6 |
14070 |
-cf_result=no |
14071 |
+ cf_result=no |
14072 |
fi |
14073 |
|
14074 |
if test "$cf_result" = no; then |
14075 |
- echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 |
14076 |
-echo "configure:8813: checking for setsockopt in -lsocket" >&5 |
14077 |
-ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` |
14078 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14079 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14080 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 |
14081 |
+$as_echo_n "checking for setsockopt in -lsocket... " >&6; } |
14082 |
+if ${ac_cv_lib_socket_setsockopt+:} false; then : |
14083 |
+ $as_echo_n "(cached) " >&6 |
14084 |
else |
14085 |
- ac_save_LIBS="$LIBS" |
14086 |
+ ac_check_lib_save_LIBS=$LIBS |
14087 |
LIBS="-lsocket $LIBS" |
14088 |
-cat > conftest.$ac_ext <<EOF |
14089 |
-#line 8821 "configure" |
14090 |
-#include "confdefs.h" |
14091 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14092 |
-/* We use char because int might match the return type of a gcc2 |
14093 |
- builtin and then its argument prototype would still apply. */ |
14094 |
-char setsockopt(); |
14095 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14096 |
+/* end confdefs.h. */ |
14097 |
|
14098 |
-int main() { |
14099 |
-setsockopt() |
14100 |
-; return 0; } |
14101 |
-EOF |
14102 |
-if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14103 |
- rm -rf conftest* |
14104 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
14105 |
+/* Override any GCC internal prototype to avoid an error. |
14106 |
+ Use char because int might match the return type of a GCC |
14107 |
+ builtin and then its argument prototype would still apply. */ |
14108 |
+#ifdef __cplusplus |
14109 |
+extern "C" |
14110 |
+#endif |
14111 |
+char setsockopt (); |
14112 |
+int |
14113 |
+main () |
14114 |
+{ |
14115 |
+return setsockopt (); |
14116 |
+ ; |
14117 |
+ return 0; |
14118 |
+} |
14119 |
+_ACEOF |
14120 |
+if ac_fn_c_try_link "$LINENO"; then : |
14121 |
+ ac_cv_lib_socket_setsockopt=yes |
14122 |
else |
14123 |
- echo "configure: failed program was:" >&5 |
14124 |
- cat conftest.$ac_ext >&5 |
14125 |
- rm -rf conftest* |
14126 |
- eval "ac_cv_lib_$ac_lib_var=no" |
14127 |
+ ac_cv_lib_socket_setsockopt=no |
14128 |
fi |
14129 |
-rm -f conftest* |
14130 |
-LIBS="$ac_save_LIBS" |
14131 |
- |
14132 |
+rm -f core conftest.err conftest.$ac_objext \ |
14133 |
+ conftest$ac_exeext conftest.$ac_ext |
14134 |
+LIBS=$ac_check_lib_save_LIBS |
14135 |
fi |
14136 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14137 |
- echo "$ac_t""yes" 1>&6 |
14138 |
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
14139 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
14140 |
- cat >> confdefs.h <<EOF |
14141 |
-#define $ac_tr_lib 1 |
14142 |
-EOF |
14143 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 |
14144 |
+$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } |
14145 |
+if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : |
14146 |
+ cat >>confdefs.h <<_ACEOF |
14147 |
+#define HAVE_LIBSOCKET 1 |
14148 |
+_ACEOF |
14149 |
|
14150 |
LIBS="-lsocket $LIBS" |
14151 |
|
14152 |
-else |
14153 |
- echo "$ac_t""no" 1>&6 |
14154 |
fi |
14155 |
|
14156 |
fi |
14157 |
|
14158 |
-echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
14159 |
-echo "configure:8862: checking for gethostbyname" >&5 |
14160 |
-if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14161 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14162 |
-else |
14163 |
- cat > conftest.$ac_ext <<EOF |
14164 |
-#line 8867 "configure" |
14165 |
-#include "confdefs.h" |
14166 |
-/* System header to define __stub macros and hopefully few prototypes, |
14167 |
- which can conflict with char gethostbyname(); below. */ |
14168 |
-#include <assert.h> |
14169 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14170 |
-/* We use char because int might match the return type of a gcc2 |
14171 |
- builtin and then its argument prototype would still apply. */ |
14172 |
-char gethostbyname(); |
14173 |
- |
14174 |
-int main() { |
14175 |
- |
14176 |
-/* The GNU C library defines this for functions which it implements |
14177 |
- to always fail with ENOSYS. Some functions are actually named |
14178 |
- something starting with __ and the normal name is an alias. */ |
14179 |
-#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
14180 |
-choke me |
14181 |
-#else |
14182 |
-gethostbyname(); |
14183 |
-#endif |
14184 |
- |
14185 |
-; return 0; } |
14186 |
-EOF |
14187 |
-if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14188 |
- rm -rf conftest* |
14189 |
- eval "ac_cv_func_gethostbyname=yes" |
14190 |
-else |
14191 |
- echo "configure: failed program was:" >&5 |
14192 |
- cat conftest.$ac_ext >&5 |
14193 |
- rm -rf conftest* |
14194 |
- eval "ac_cv_func_gethostbyname=no" |
14195 |
-fi |
14196 |
-rm -f conftest* |
14197 |
-fi |
14198 |
- |
14199 |
-if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
14200 |
- echo "$ac_t""yes" 1>&6 |
14201 |
+ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
14202 |
+if test "x$ac_cv_func_gethostbyname" = xyes; then : |
14203 |
cf_result=yes |
14204 |
else |
14205 |
- echo "$ac_t""no" 1>&6 |
14206 |
-cf_result=no |
14207 |
+ cf_result=no |
14208 |
fi |
14209 |
|
14210 |
if test "$cf_result" = no; then |
14211 |
- echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 |
14212 |
-echo "configure:8912: checking for gethostbyname in -lsocket" >&5 |
14213 |
-ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` |
14214 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14215 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14216 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 |
14217 |
+$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } |
14218 |
+if ${ac_cv_lib_socket_gethostbyname+:} false; then : |
14219 |
+ $as_echo_n "(cached) " >&6 |
14220 |
else |
14221 |
- ac_save_LIBS="$LIBS" |
14222 |
+ ac_check_lib_save_LIBS=$LIBS |
14223 |
LIBS="-lsocket $LIBS" |
14224 |
-cat > conftest.$ac_ext <<EOF |
14225 |
-#line 8920 "configure" |
14226 |
-#include "confdefs.h" |
14227 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14228 |
-/* We use char because int might match the return type of a gcc2 |
14229 |
- builtin and then its argument prototype would still apply. */ |
14230 |
-char gethostbyname(); |
14231 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14232 |
+/* end confdefs.h. */ |
14233 |
|
14234 |
-int main() { |
14235 |
-gethostbyname() |
14236 |
-; return 0; } |
14237 |
-EOF |
14238 |
-if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14239 |
- rm -rf conftest* |
14240 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
14241 |
+/* Override any GCC internal prototype to avoid an error. |
14242 |
+ Use char because int might match the return type of a GCC |
14243 |
+ builtin and then its argument prototype would still apply. */ |
14244 |
+#ifdef __cplusplus |
14245 |
+extern "C" |
14246 |
+#endif |
14247 |
+char gethostbyname (); |
14248 |
+int |
14249 |
+main () |
14250 |
+{ |
14251 |
+return gethostbyname (); |
14252 |
+ ; |
14253 |
+ return 0; |
14254 |
+} |
14255 |
+_ACEOF |
14256 |
+if ac_fn_c_try_link "$LINENO"; then : |
14257 |
+ ac_cv_lib_socket_gethostbyname=yes |
14258 |
else |
14259 |
- echo "configure: failed program was:" >&5 |
14260 |
- cat conftest.$ac_ext >&5 |
14261 |
- rm -rf conftest* |
14262 |
- eval "ac_cv_lib_$ac_lib_var=no" |
14263 |
+ ac_cv_lib_socket_gethostbyname=no |
14264 |
fi |
14265 |
-rm -f conftest* |
14266 |
-LIBS="$ac_save_LIBS" |
14267 |
- |
14268 |
+rm -f core conftest.err conftest.$ac_objext \ |
14269 |
+ conftest$ac_exeext conftest.$ac_ext |
14270 |
+LIBS=$ac_check_lib_save_LIBS |
14271 |
fi |
14272 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14273 |
- echo "$ac_t""yes" 1>&6 |
14274 |
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
14275 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
14276 |
- cat >> confdefs.h <<EOF |
14277 |
-#define $ac_tr_lib 1 |
14278 |
-EOF |
14279 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 |
14280 |
+$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } |
14281 |
+if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : |
14282 |
+ cat >>confdefs.h <<_ACEOF |
14283 |
+#define HAVE_LIBSOCKET 1 |
14284 |
+_ACEOF |
14285 |
|
14286 |
LIBS="-lsocket $LIBS" |
14287 |
|
14288 |
-else |
14289 |
- echo "$ac_t""no" 1>&6 |
14290 |
fi |
14291 |
|
14292 |
cf_result="$ac_cv_lib_socket_gethostbyname" |
14293 |
if test "$ac_cv_lib_socket_gethostbyname" = no; then |
14294 |
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
14295 |
-echo "configure:8961: checking for gethostbyname in -lnsl" >&5 |
14296 |
-ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14297 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14298 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14299 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
14300 |
+$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
14301 |
+if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
14302 |
+ $as_echo_n "(cached) " >&6 |
14303 |
else |
14304 |
- ac_save_LIBS="$LIBS" |
14305 |
+ ac_check_lib_save_LIBS=$LIBS |
14306 |
LIBS="-lnsl $LIBS" |
14307 |
-cat > conftest.$ac_ext <<EOF |
14308 |
-#line 8969 "configure" |
14309 |
-#include "confdefs.h" |
14310 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14311 |
-/* We use char because int might match the return type of a gcc2 |
14312 |
- builtin and then its argument prototype would still apply. */ |
14313 |
-char gethostbyname(); |
14314 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14315 |
+/* end confdefs.h. */ |
14316 |
|
14317 |
-int main() { |
14318 |
-gethostbyname() |
14319 |
-; return 0; } |
14320 |
-EOF |
14321 |
-if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14322 |
- rm -rf conftest* |
14323 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
14324 |
+/* Override any GCC internal prototype to avoid an error. |
14325 |
+ Use char because int might match the return type of a GCC |
14326 |
+ builtin and then its argument prototype would still apply. */ |
14327 |
+#ifdef __cplusplus |
14328 |
+extern "C" |
14329 |
+#endif |
14330 |
+char gethostbyname (); |
14331 |
+int |
14332 |
+main () |
14333 |
+{ |
14334 |
+return gethostbyname (); |
14335 |
+ ; |
14336 |
+ return 0; |
14337 |
+} |
14338 |
+_ACEOF |
14339 |
+if ac_fn_c_try_link "$LINENO"; then : |
14340 |
+ ac_cv_lib_nsl_gethostbyname=yes |
14341 |
else |
14342 |
- echo "configure: failed program was:" >&5 |
14343 |
- cat conftest.$ac_ext >&5 |
14344 |
- rm -rf conftest* |
14345 |
- eval "ac_cv_lib_$ac_lib_var=no" |
14346 |
+ ac_cv_lib_nsl_gethostbyname=no |
14347 |
fi |
14348 |
-rm -f conftest* |
14349 |
-LIBS="$ac_save_LIBS" |
14350 |
- |
14351 |
+rm -f core conftest.err conftest.$ac_objext \ |
14352 |
+ conftest$ac_exeext conftest.$ac_ext |
14353 |
+LIBS=$ac_check_lib_save_LIBS |
14354 |
fi |
14355 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14356 |
- echo "$ac_t""yes" 1>&6 |
14357 |
- ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
14358 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
14359 |
- cat >> confdefs.h <<EOF |
14360 |
-#define $ac_tr_lib 1 |
14361 |
-EOF |
14362 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
14363 |
+$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
14364 |
+if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
14365 |
+ cat >>confdefs.h <<_ACEOF |
14366 |
+#define HAVE_LIBNSL 1 |
14367 |
+_ACEOF |
14368 |
|
14369 |
LIBS="-lnsl $LIBS" |
14370 |
|
14371 |
-else |
14372 |
- echo "$ac_t""no" 1>&6 |
14373 |
fi |
14374 |
|
14375 |
cf_result="$ac_cv_lib_nsl_gethostbyname" |
14376 |
fi |
14377 |
fi |
14378 |
-test "$cf_result" = yes && cat >> confdefs.h <<\EOF |
14379 |
-#define HAVE_GETHOSTBYNAME 1 |
14380 |
-EOF |
14381 |
+test "$cf_result" = yes && $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h |
14382 |
|
14383 |
|
14384 |
if test "$cf_result" = yes && test "$ac_cv_have_watcom" = yes -o "`uname -s`" = SunOS; then |
14385 |
- echo $ac_n "checking for flawed gethostbyname""... $ac_c" 1>&6 |
14386 |
-echo "configure:9017: checking for flawed gethostbyname" >&5 |
14387 |
-if eval "test \"`echo '$''{'ac_cv_gethostbyname_bug'+set}'`\" = set"; then |
14388 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14389 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flawed gethostbyname" >&5 |
14390 |
+$as_echo_n "checking for flawed gethostbyname... " >&6; } |
14391 |
+if ${ac_cv_gethostbyname_bug+:} false; then : |
14392 |
+ $as_echo_n "(cached) " >&6 |
14393 |
else |
14394 |
- if test "$cross_compiling" = yes; then |
14395 |
+ if test "$cross_compiling" = yes; then : |
14396 |
ac_cv_gethostbyname_bug="$ac_cv_have_watcom" |
14397 |
else |
14398 |
- cat > conftest.$ac_ext <<EOF |
14399 |
-#line 9025 "configure" |
14400 |
-#include "confdefs.h" |
14401 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14402 |
+/* end confdefs.h. */ |
14403 |
|
14404 |
#include <netdb.h> |
14405 |
int main() |
14406 |
{ |
14407 |
return !gethostbyname("www.gnu.org"); |
14408 |
} |
14409 |
- |
14410 |
-EOF |
14411 |
-if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
14412 |
-then |
14413 |
+ |
14414 |
+_ACEOF |
14415 |
+if ac_fn_c_try_run "$LINENO"; then : |
14416 |
ac_cv_gethostbyname_bug=no |
14417 |
else |
14418 |
- echo "configure: failed program was:" >&5 |
14419 |
- cat conftest.$ac_ext >&5 |
14420 |
- rm -fr conftest* |
14421 |
ac_cv_gethostbyname_bug=yes |
14422 |
fi |
14423 |
-rm -fr conftest* |
14424 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14425 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
14426 |
fi |
14427 |
|
14428 |
- |
14429 |
-fi |
14430 |
|
14431 |
-echo "$ac_t""$ac_cv_gethostbyname_bug" 1>&6 |
14432 |
- test "$ac_cv_gethostbyname_bug" = yes && cat >> confdefs.h <<\EOF |
14433 |
-#define HAVE_GETHOSTBYNAME_BUG 1 |
14434 |
-EOF |
14435 |
+fi |
14436 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_bug" >&5 |
14437 |
+$as_echo "$ac_cv_gethostbyname_bug" >&6; } |
14438 |
+ test "$ac_cv_gethostbyname_bug" = yes && $as_echo "#define HAVE_GETHOSTBYNAME_BUG 1" >>confdefs.h |
14439 |
|
14440 |
fi |
14441 |
|
14442 |
-# Check whether --with-getaddrinfo or --without-getaddrinfo was given. |
14443 |
-if test "${with_getaddrinfo+set}" = set; then |
14444 |
- withval="$with_getaddrinfo" |
14445 |
- if test "$withval" = no; then disable_getaddrinfo=yes; else disable_getaddrinfo=no; fi |
14446 |
+ |
14447 |
+# Check whether --with-getaddrinfo was given. |
14448 |
+if test "${with_getaddrinfo+set}" = set; then : |
14449 |
+ withval=$with_getaddrinfo; if test "$withval" = no; then disable_getaddrinfo=yes; else disable_getaddrinfo=no; fi |
14450 |
fi |
14451 |
|
14452 |
|
14453 |
if test "$disable_getaddrinfo" != yes; then |
14454 |
for ac_func in getaddrinfo |
14455 |
-do |
14456 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14457 |
-echo "configure:9068: checking for $ac_func" >&5 |
14458 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14459 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14460 |
-else |
14461 |
- cat > conftest.$ac_ext <<EOF |
14462 |
-#line 9073 "configure" |
14463 |
-#include "confdefs.h" |
14464 |
-/* System header to define __stub macros and hopefully few prototypes, |
14465 |
- which can conflict with char $ac_func(); below. */ |
14466 |
-#include <assert.h> |
14467 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14468 |
-/* We use char because int might match the return type of a gcc2 |
14469 |
- builtin and then its argument prototype would still apply. */ |
14470 |
-char $ac_func(); |
14471 |
- |
14472 |
-int main() { |
14473 |
- |
14474 |
-/* The GNU C library defines this for functions which it implements |
14475 |
- to always fail with ENOSYS. Some functions are actually named |
14476 |
- something starting with __ and the normal name is an alias. */ |
14477 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14478 |
-choke me |
14479 |
-#else |
14480 |
-$ac_func(); |
14481 |
-#endif |
14482 |
- |
14483 |
-; return 0; } |
14484 |
-EOF |
14485 |
-if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14486 |
- rm -rf conftest* |
14487 |
- eval "ac_cv_func_$ac_func=yes" |
14488 |
-else |
14489 |
- echo "configure: failed program was:" >&5 |
14490 |
- cat conftest.$ac_ext >&5 |
14491 |
- rm -rf conftest* |
14492 |
- eval "ac_cv_func_$ac_func=no" |
14493 |
-fi |
14494 |
-rm -f conftest* |
14495 |
-fi |
14496 |
+do : |
14497 |
+ ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
14498 |
+if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
14499 |
+ cat >>confdefs.h <<_ACEOF |
14500 |
+#define HAVE_GETADDRINFO 1 |
14501 |
+_ACEOF |
14502 |
|
14503 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14504 |
- echo "$ac_t""yes" 1>&6 |
14505 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14506 |
- cat >> confdefs.h <<EOF |
14507 |
-#define $ac_tr_func 1 |
14508 |
-EOF |
14509 |
- |
14510 |
-else |
14511 |
- echo "$ac_t""no" 1>&6 |
14512 |
fi |
14513 |
done |
14514 |
|
14515 |
for ac_func in freeaddrinfo |
14516 |
-do |
14517 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14518 |
-echo "configure:9123: checking for $ac_func" >&5 |
14519 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14520 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14521 |
-else |
14522 |
- cat > conftest.$ac_ext <<EOF |
14523 |
-#line 9128 "configure" |
14524 |
-#include "confdefs.h" |
14525 |
-/* System header to define __stub macros and hopefully few prototypes, |
14526 |
- which can conflict with char $ac_func(); below. */ |
14527 |
-#include <assert.h> |
14528 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14529 |
-/* We use char because int might match the return type of a gcc2 |
14530 |
- builtin and then its argument prototype would still apply. */ |
14531 |
-char $ac_func(); |
14532 |
- |
14533 |
-int main() { |
14534 |
- |
14535 |
-/* The GNU C library defines this for functions which it implements |
14536 |
- to always fail with ENOSYS. Some functions are actually named |
14537 |
- something starting with __ and the normal name is an alias. */ |
14538 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14539 |
-choke me |
14540 |
-#else |
14541 |
-$ac_func(); |
14542 |
-#endif |
14543 |
+do : |
14544 |
+ ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" |
14545 |
+if test "x$ac_cv_func_freeaddrinfo" = xyes; then : |
14546 |
+ cat >>confdefs.h <<_ACEOF |
14547 |
+#define HAVE_FREEADDRINFO 1 |
14548 |
+_ACEOF |
14549 |
|
14550 |
-; return 0; } |
14551 |
-EOF |
14552 |
-if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14553 |
- rm -rf conftest* |
14554 |
- eval "ac_cv_func_$ac_func=yes" |
14555 |
-else |
14556 |
- echo "configure: failed program was:" >&5 |
14557 |
- cat conftest.$ac_ext >&5 |
14558 |
- rm -rf conftest* |
14559 |
- eval "ac_cv_func_$ac_func=no" |
14560 |
-fi |
14561 |
-rm -f conftest* |
14562 |
-fi |
14563 |
- |
14564 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14565 |
- echo "$ac_t""yes" 1>&6 |
14566 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14567 |
- cat >> confdefs.h <<EOF |
14568 |
-#define $ac_tr_func 1 |
14569 |
-EOF |
14570 |
- |
14571 |
-else |
14572 |
- echo "$ac_t""no" 1>&6 |
14573 |
fi |
14574 |
done |
14575 |
|
14576 |
for ac_func in gai_strerror |
14577 |
-do |
14578 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14579 |
-echo "configure:9178: checking for $ac_func" >&5 |
14580 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14581 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14582 |
-else |
14583 |
- cat > conftest.$ac_ext <<EOF |
14584 |
-#line 9183 "configure" |
14585 |
-#include "confdefs.h" |
14586 |
-/* System header to define __stub macros and hopefully few prototypes, |
14587 |
- which can conflict with char $ac_func(); below. */ |
14588 |
-#include <assert.h> |
14589 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14590 |
-/* We use char because int might match the return type of a gcc2 |
14591 |
- builtin and then its argument prototype would still apply. */ |
14592 |
-char $ac_func(); |
14593 |
- |
14594 |
-int main() { |
14595 |
- |
14596 |
-/* The GNU C library defines this for functions which it implements |
14597 |
- to always fail with ENOSYS. Some functions are actually named |
14598 |
- something starting with __ and the normal name is an alias. */ |
14599 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14600 |
-choke me |
14601 |
-#else |
14602 |
-$ac_func(); |
14603 |
-#endif |
14604 |
- |
14605 |
-; return 0; } |
14606 |
-EOF |
14607 |
-if { (eval echo configure:9206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14608 |
- rm -rf conftest* |
14609 |
- eval "ac_cv_func_$ac_func=yes" |
14610 |
-else |
14611 |
- echo "configure: failed program was:" >&5 |
14612 |
- cat conftest.$ac_ext >&5 |
14613 |
- rm -rf conftest* |
14614 |
- eval "ac_cv_func_$ac_func=no" |
14615 |
-fi |
14616 |
-rm -f conftest* |
14617 |
-fi |
14618 |
+do : |
14619 |
+ ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
14620 |
+if test "x$ac_cv_func_gai_strerror" = xyes; then : |
14621 |
+ cat >>confdefs.h <<_ACEOF |
14622 |
+#define HAVE_GAI_STRERROR 1 |
14623 |
+_ACEOF |
14624 |
|
14625 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14626 |
- echo "$ac_t""yes" 1>&6 |
14627 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14628 |
- cat >> confdefs.h <<EOF |
14629 |
-#define $ac_tr_func 1 |
14630 |
-EOF |
14631 |
- |
14632 |
-else |
14633 |
- echo "$ac_t""no" 1>&6 |
14634 |
fi |
14635 |
done |
14636 |
|
14637 |
@@ -9238,961 +7407,431 @@ else |
14638 |
fi |
14639 |
|
14640 |
for ac_func in inet_ntop |
14641 |
-do |
14642 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14643 |
-echo "configure:9242: checking for $ac_func" >&5 |
14644 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14645 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14646 |
-else |
14647 |
- cat > conftest.$ac_ext <<EOF |
14648 |
-#line 9247 "configure" |
14649 |
-#include "confdefs.h" |
14650 |
-/* System header to define __stub macros and hopefully few prototypes, |
14651 |
- which can conflict with char $ac_func(); below. */ |
14652 |
-#include <assert.h> |
14653 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14654 |
-/* We use char because int might match the return type of a gcc2 |
14655 |
- builtin and then its argument prototype would still apply. */ |
14656 |
-char $ac_func(); |
14657 |
- |
14658 |
-int main() { |
14659 |
- |
14660 |
-/* The GNU C library defines this for functions which it implements |
14661 |
- to always fail with ENOSYS. Some functions are actually named |
14662 |
- something starting with __ and the normal name is an alias. */ |
14663 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14664 |
-choke me |
14665 |
-#else |
14666 |
-$ac_func(); |
14667 |
-#endif |
14668 |
- |
14669 |
-; return 0; } |
14670 |
-EOF |
14671 |
-if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14672 |
- rm -rf conftest* |
14673 |
- eval "ac_cv_func_$ac_func=yes" |
14674 |
-else |
14675 |
- echo "configure: failed program was:" >&5 |
14676 |
- cat conftest.$ac_ext >&5 |
14677 |
- rm -rf conftest* |
14678 |
- eval "ac_cv_func_$ac_func=no" |
14679 |
-fi |
14680 |
-rm -f conftest* |
14681 |
-fi |
14682 |
+do : |
14683 |
+ ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" |
14684 |
+if test "x$ac_cv_func_inet_ntop" = xyes; then : |
14685 |
+ cat >>confdefs.h <<_ACEOF |
14686 |
+#define HAVE_INET_NTOP 1 |
14687 |
+_ACEOF |
14688 |
|
14689 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14690 |
- echo "$ac_t""yes" 1>&6 |
14691 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14692 |
- cat >> confdefs.h <<EOF |
14693 |
-#define $ac_tr_func 1 |
14694 |
-EOF |
14695 |
- |
14696 |
-else |
14697 |
- echo "$ac_t""no" 1>&6 |
14698 |
fi |
14699 |
done |
14700 |
|
14701 |
for ac_func in inet_pton |
14702 |
-do |
14703 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14704 |
-echo "configure:9297: checking for $ac_func" >&5 |
14705 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14706 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14707 |
-else |
14708 |
- cat > conftest.$ac_ext <<EOF |
14709 |
-#line 9302 "configure" |
14710 |
-#include "confdefs.h" |
14711 |
-/* System header to define __stub macros and hopefully few prototypes, |
14712 |
- which can conflict with char $ac_func(); below. */ |
14713 |
-#include <assert.h> |
14714 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14715 |
-/* We use char because int might match the return type of a gcc2 |
14716 |
- builtin and then its argument prototype would still apply. */ |
14717 |
-char $ac_func(); |
14718 |
- |
14719 |
-int main() { |
14720 |
- |
14721 |
-/* The GNU C library defines this for functions which it implements |
14722 |
- to always fail with ENOSYS. Some functions are actually named |
14723 |
- something starting with __ and the normal name is an alias. */ |
14724 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14725 |
-choke me |
14726 |
-#else |
14727 |
-$ac_func(); |
14728 |
-#endif |
14729 |
+do : |
14730 |
+ ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" |
14731 |
+if test "x$ac_cv_func_inet_pton" = xyes; then : |
14732 |
+ cat >>confdefs.h <<_ACEOF |
14733 |
+#define HAVE_INET_PTON 1 |
14734 |
+_ACEOF |
14735 |
|
14736 |
-; return 0; } |
14737 |
-EOF |
14738 |
-if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14739 |
- rm -rf conftest* |
14740 |
- eval "ac_cv_func_$ac_func=yes" |
14741 |
-else |
14742 |
- echo "configure: failed program was:" >&5 |
14743 |
- cat conftest.$ac_ext >&5 |
14744 |
- rm -rf conftest* |
14745 |
- eval "ac_cv_func_$ac_func=no" |
14746 |
-fi |
14747 |
-rm -f conftest* |
14748 |
-fi |
14749 |
- |
14750 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14751 |
- echo "$ac_t""yes" 1>&6 |
14752 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14753 |
- cat >> confdefs.h <<EOF |
14754 |
-#define $ac_tr_func 1 |
14755 |
-EOF |
14756 |
- |
14757 |
-else |
14758 |
- echo "$ac_t""no" 1>&6 |
14759 |
fi |
14760 |
done |
14761 |
|
14762 |
|
14763 |
-# Check whether --with-ipv6 or --without-ipv6 was given. |
14764 |
-if test "${with_ipv6+set}" = set; then |
14765 |
- withval="$with_ipv6" |
14766 |
- if test "$withval" = no; then disable_ipv6=yes; else disable_ipv6=no; fi |
14767 |
+ |
14768 |
+# Check whether --with-ipv6 was given. |
14769 |
+if test "${with_ipv6+set}" = set; then : |
14770 |
+ withval=$with_ipv6; if test "$withval" = no; then disable_ipv6=yes; else disable_ipv6=no; fi |
14771 |
fi |
14772 |
|
14773 |
|
14774 |
-echo $ac_n "checking for ipv6""... $ac_c" 1>&6 |
14775 |
-echo "configure:9358: checking for ipv6" >&5 |
14776 |
-if eval "test \"`echo '$''{'ac_cv_have_ipv6'+set}'`\" = set"; then |
14777 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14778 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipv6" >&5 |
14779 |
+$as_echo_n "checking for ipv6... " >&6; } |
14780 |
+if ${ac_cv_have_ipv6+:} false; then : |
14781 |
+ $as_echo_n "(cached) " >&6 |
14782 |
else |
14783 |
- cat > conftest.$ac_ext <<EOF |
14784 |
-#line 9363 "configure" |
14785 |
-#include "confdefs.h" |
14786 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14787 |
+/* end confdefs.h. */ |
14788 |
|
14789 |
#include <sys/types.h> |
14790 |
#include <sys/socket.h> |
14791 |
#include <netinet/in.h> |
14792 |
- |
14793 |
-int main() { |
14794 |
+ |
14795 |
+int |
14796 |
+main () |
14797 |
+{ |
14798 |
|
14799 |
struct sockaddr_in6 sin6; |
14800 |
sin6.sin6_family = AF_INET6; |
14801 |
- |
14802 |
-; return 0; } |
14803 |
-EOF |
14804 |
-if { (eval echo configure:9377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
14805 |
- rm -rf conftest* |
14806 |
+ |
14807 |
+ ; |
14808 |
+ return 0; |
14809 |
+} |
14810 |
+_ACEOF |
14811 |
+if ac_fn_c_try_compile "$LINENO"; then : |
14812 |
ac_cv_have_ipv6=yes |
14813 |
else |
14814 |
- echo "configure: failed program was:" >&5 |
14815 |
- cat conftest.$ac_ext >&5 |
14816 |
- rm -rf conftest* |
14817 |
ac_cv_have_ipv6=no |
14818 |
fi |
14819 |
-rm -f conftest* |
14820 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14821 |
|
14822 |
fi |
14823 |
- |
14824 |
-echo "$ac_t""$ac_cv_have_ipv6" 1>&6 |
14825 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ipv6" >&5 |
14826 |
+$as_echo "$ac_cv_have_ipv6" >&6; } |
14827 |
if test "$disable_ipv6" != yes -a "$ac_cv_have_ipv6" = yes -a "$cf_have_getaddrinfo" = yes; then |
14828 |
cf_have_ipv6=yes |
14829 |
- cat >> confdefs.h <<\EOF |
14830 |
-#define SUPPORT_IPV6 1 |
14831 |
-EOF |
14832 |
+ $as_echo "#define SUPPORT_IPV6 1" >>confdefs.h |
14833 |
|
14834 |
else |
14835 |
cf_have_ipv6=no |
14836 |
fi |
14837 |
-echo $ac_n "checking for sockaddr_in6.sin6_scope_id""... $ac_c" 1>&6 |
14838 |
-echo "configure:9401: checking for sockaddr_in6.sin6_scope_id" >&5 |
14839 |
-if eval "test \"`echo '$''{'ac_cv_have_sin6_scope_id'+set}'`\" = set"; then |
14840 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14841 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 |
14842 |
+$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } |
14843 |
+if ${ac_cv_have_sin6_scope_id+:} false; then : |
14844 |
+ $as_echo_n "(cached) " >&6 |
14845 |
else |
14846 |
- cat > conftest.$ac_ext <<EOF |
14847 |
-#line 9406 "configure" |
14848 |
-#include "confdefs.h" |
14849 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14850 |
+/* end confdefs.h. */ |
14851 |
|
14852 |
#include <sys/types.h> |
14853 |
#include <sys/socket.h> |
14854 |
#include <netinet/in.h> |
14855 |
- |
14856 |
-int main() { |
14857 |
+ |
14858 |
+int |
14859 |
+main () |
14860 |
+{ |
14861 |
|
14862 |
struct sockaddr_in6 sin6; |
14863 |
sin6.sin6_scope_id = 0; |
14864 |
- |
14865 |
-; return 0; } |
14866 |
-EOF |
14867 |
-if { (eval echo configure:9420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
14868 |
- rm -rf conftest* |
14869 |
+ |
14870 |
+ ; |
14871 |
+ return 0; |
14872 |
+} |
14873 |
+_ACEOF |
14874 |
+if ac_fn_c_try_compile "$LINENO"; then : |
14875 |
ac_cv_have_sin6_scope_id=yes |
14876 |
else |
14877 |
- echo "configure: failed program was:" >&5 |
14878 |
- cat conftest.$ac_ext >&5 |
14879 |
- rm -rf conftest* |
14880 |
ac_cv_have_sin6_scope_id=no |
14881 |
fi |
14882 |
-rm -f conftest* |
14883 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14884 |
|
14885 |
fi |
14886 |
- |
14887 |
-echo "$ac_t""$ac_cv_have_sin6_scope_id" 1>&6 |
14888 |
-test "$ac_cv_have_sin6_scope_id" = yes && cat >> confdefs.h <<\EOF |
14889 |
-#define SUPPORT_IPV6_SCOPE 1 |
14890 |
-EOF |
14891 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5 |
14892 |
+$as_echo "$ac_cv_have_sin6_scope_id" >&6; } |
14893 |
+test "$ac_cv_have_sin6_scope_id" = yes && $as_echo "#define SUPPORT_IPV6_SCOPE 1" >>confdefs.h |
14894 |
|
14895 |
|
14896 |
for ac_func in dhcp_option |
14897 |
-do |
14898 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14899 |
-echo "configure:9442: checking for $ac_func" >&5 |
14900 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14901 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14902 |
-else |
14903 |
- cat > conftest.$ac_ext <<EOF |
14904 |
-#line 9447 "configure" |
14905 |
-#include "confdefs.h" |
14906 |
-/* System header to define __stub macros and hopefully few prototypes, |
14907 |
- which can conflict with char $ac_func(); below. */ |
14908 |
-#include <assert.h> |
14909 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14910 |
-/* We use char because int might match the return type of a gcc2 |
14911 |
- builtin and then its argument prototype would still apply. */ |
14912 |
-char $ac_func(); |
14913 |
- |
14914 |
-int main() { |
14915 |
- |
14916 |
-/* The GNU C library defines this for functions which it implements |
14917 |
- to always fail with ENOSYS. Some functions are actually named |
14918 |
- something starting with __ and the normal name is an alias. */ |
14919 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14920 |
-choke me |
14921 |
-#else |
14922 |
-$ac_func(); |
14923 |
-#endif |
14924 |
- |
14925 |
-; return 0; } |
14926 |
-EOF |
14927 |
-if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14928 |
- rm -rf conftest* |
14929 |
- eval "ac_cv_func_$ac_func=yes" |
14930 |
-else |
14931 |
- echo "configure: failed program was:" >&5 |
14932 |
- cat conftest.$ac_ext >&5 |
14933 |
- rm -rf conftest* |
14934 |
- eval "ac_cv_func_$ac_func=no" |
14935 |
-fi |
14936 |
-rm -f conftest* |
14937 |
-fi |
14938 |
+do : |
14939 |
+ ac_fn_c_check_func "$LINENO" "dhcp_option" "ac_cv_func_dhcp_option" |
14940 |
+if test "x$ac_cv_func_dhcp_option" = xyes; then : |
14941 |
+ cat >>confdefs.h <<_ACEOF |
14942 |
+#define HAVE_DHCP_OPTION 1 |
14943 |
+_ACEOF |
14944 |
|
14945 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14946 |
- echo "$ac_t""yes" 1>&6 |
14947 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14948 |
- cat >> confdefs.h <<EOF |
14949 |
-#define $ac_tr_func 1 |
14950 |
-EOF |
14951 |
- |
14952 |
-else |
14953 |
- echo "$ac_t""no" 1>&6 |
14954 |
fi |
14955 |
done |
14956 |
|
14957 |
|
14958 |
for ac_func in herror |
14959 |
-do |
14960 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14961 |
-echo "configure:9498: checking for $ac_func" >&5 |
14962 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14963 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
14964 |
-else |
14965 |
- cat > conftest.$ac_ext <<EOF |
14966 |
-#line 9503 "configure" |
14967 |
-#include "confdefs.h" |
14968 |
-/* System header to define __stub macros and hopefully few prototypes, |
14969 |
- which can conflict with char $ac_func(); below. */ |
14970 |
-#include <assert.h> |
14971 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
14972 |
-/* We use char because int might match the return type of a gcc2 |
14973 |
- builtin and then its argument prototype would still apply. */ |
14974 |
-char $ac_func(); |
14975 |
- |
14976 |
-int main() { |
14977 |
- |
14978 |
-/* The GNU C library defines this for functions which it implements |
14979 |
- to always fail with ENOSYS. Some functions are actually named |
14980 |
- something starting with __ and the normal name is an alias. */ |
14981 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14982 |
-choke me |
14983 |
-#else |
14984 |
-$ac_func(); |
14985 |
-#endif |
14986 |
- |
14987 |
-; return 0; } |
14988 |
-EOF |
14989 |
-if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14990 |
- rm -rf conftest* |
14991 |
- eval "ac_cv_func_$ac_func=yes" |
14992 |
-else |
14993 |
- echo "configure: failed program was:" >&5 |
14994 |
- cat conftest.$ac_ext >&5 |
14995 |
- rm -rf conftest* |
14996 |
- eval "ac_cv_func_$ac_func=no" |
14997 |
-fi |
14998 |
-rm -f conftest* |
14999 |
-fi |
15000 |
+do : |
15001 |
+ ac_fn_c_check_func "$LINENO" "herror" "ac_cv_func_herror" |
15002 |
+if test "x$ac_cv_func_herror" = xyes; then : |
15003 |
+ cat >>confdefs.h <<_ACEOF |
15004 |
+#define HAVE_HERROR 1 |
15005 |
+_ACEOF |
15006 |
|
15007 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15008 |
- echo "$ac_t""yes" 1>&6 |
15009 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15010 |
- cat >> confdefs.h <<EOF |
15011 |
-#define $ac_tr_func 1 |
15012 |
-EOF |
15013 |
- |
15014 |
-else |
15015 |
- echo "$ac_t""no" 1>&6 |
15016 |
fi |
15017 |
done |
15018 |
|
15019 |
for ac_func in cfmakeraw |
15020 |
-do |
15021 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15022 |
-echo "configure:9553: checking for $ac_func" >&5 |
15023 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15024 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15025 |
-else |
15026 |
- cat > conftest.$ac_ext <<EOF |
15027 |
-#line 9558 "configure" |
15028 |
-#include "confdefs.h" |
15029 |
-/* System header to define __stub macros and hopefully few prototypes, |
15030 |
- which can conflict with char $ac_func(); below. */ |
15031 |
-#include <assert.h> |
15032 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15033 |
-/* We use char because int might match the return type of a gcc2 |
15034 |
- builtin and then its argument prototype would still apply. */ |
15035 |
-char $ac_func(); |
15036 |
- |
15037 |
-int main() { |
15038 |
- |
15039 |
-/* The GNU C library defines this for functions which it implements |
15040 |
- to always fail with ENOSYS. Some functions are actually named |
15041 |
- something starting with __ and the normal name is an alias. */ |
15042 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15043 |
-choke me |
15044 |
-#else |
15045 |
-$ac_func(); |
15046 |
-#endif |
15047 |
- |
15048 |
-; return 0; } |
15049 |
-EOF |
15050 |
-if { (eval echo configure:9581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15051 |
- rm -rf conftest* |
15052 |
- eval "ac_cv_func_$ac_func=yes" |
15053 |
-else |
15054 |
- echo "configure: failed program was:" >&5 |
15055 |
- cat conftest.$ac_ext >&5 |
15056 |
- rm -rf conftest* |
15057 |
- eval "ac_cv_func_$ac_func=no" |
15058 |
-fi |
15059 |
-rm -f conftest* |
15060 |
-fi |
15061 |
+do : |
15062 |
+ ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw" |
15063 |
+if test "x$ac_cv_func_cfmakeraw" = xyes; then : |
15064 |
+ cat >>confdefs.h <<_ACEOF |
15065 |
+#define HAVE_CFMAKERAW 1 |
15066 |
+_ACEOF |
15067 |
|
15068 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15069 |
- echo "$ac_t""yes" 1>&6 |
15070 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15071 |
- cat >> confdefs.h <<EOF |
15072 |
-#define $ac_tr_func 1 |
15073 |
-EOF |
15074 |
- |
15075 |
-else |
15076 |
- echo "$ac_t""no" 1>&6 |
15077 |
fi |
15078 |
done |
15079 |
|
15080 |
|
15081 |
for ac_func in cygwin_conv_to_full_win32_path |
15082 |
-do |
15083 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15084 |
-echo "configure:9609: checking for $ac_func" >&5 |
15085 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15086 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15087 |
-else |
15088 |
- cat > conftest.$ac_ext <<EOF |
15089 |
-#line 9614 "configure" |
15090 |
-#include "confdefs.h" |
15091 |
-/* System header to define __stub macros and hopefully few prototypes, |
15092 |
- which can conflict with char $ac_func(); below. */ |
15093 |
-#include <assert.h> |
15094 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15095 |
-/* We use char because int might match the return type of a gcc2 |
15096 |
- builtin and then its argument prototype would still apply. */ |
15097 |
-char $ac_func(); |
15098 |
- |
15099 |
-int main() { |
15100 |
- |
15101 |
-/* The GNU C library defines this for functions which it implements |
15102 |
- to always fail with ENOSYS. Some functions are actually named |
15103 |
- something starting with __ and the normal name is an alias. */ |
15104 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15105 |
-choke me |
15106 |
-#else |
15107 |
-$ac_func(); |
15108 |
-#endif |
15109 |
- |
15110 |
-; return 0; } |
15111 |
-EOF |
15112 |
-if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15113 |
- rm -rf conftest* |
15114 |
- eval "ac_cv_func_$ac_func=yes" |
15115 |
-else |
15116 |
- echo "configure: failed program was:" >&5 |
15117 |
- cat conftest.$ac_ext >&5 |
15118 |
- rm -rf conftest* |
15119 |
- eval "ac_cv_func_$ac_func=no" |
15120 |
-fi |
15121 |
-rm -f conftest* |
15122 |
-fi |
15123 |
+do : |
15124 |
+ ac_fn_c_check_func "$LINENO" "cygwin_conv_to_full_win32_path" "ac_cv_func_cygwin_conv_to_full_win32_path" |
15125 |
+if test "x$ac_cv_func_cygwin_conv_to_full_win32_path" = xyes; then : |
15126 |
+ cat >>confdefs.h <<_ACEOF |
15127 |
+#define HAVE_CYGWIN_CONV_TO_FULL_WIN32_PATH 1 |
15128 |
+_ACEOF |
15129 |
|
15130 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15131 |
- echo "$ac_t""yes" 1>&6 |
15132 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15133 |
- cat >> confdefs.h <<EOF |
15134 |
-#define $ac_tr_func 1 |
15135 |
-EOF |
15136 |
- |
15137 |
-else |
15138 |
- echo "$ac_t""no" 1>&6 |
15139 |
fi |
15140 |
done |
15141 |
|
15142 |
for ac_func in cygwin_conv_path |
15143 |
-do |
15144 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15145 |
-echo "configure:9664: checking for $ac_func" >&5 |
15146 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15147 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15148 |
-else |
15149 |
- cat > conftest.$ac_ext <<EOF |
15150 |
-#line 9669 "configure" |
15151 |
-#include "confdefs.h" |
15152 |
-/* System header to define __stub macros and hopefully few prototypes, |
15153 |
- which can conflict with char $ac_func(); below. */ |
15154 |
-#include <assert.h> |
15155 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15156 |
-/* We use char because int might match the return type of a gcc2 |
15157 |
- builtin and then its argument prototype would still apply. */ |
15158 |
-char $ac_func(); |
15159 |
- |
15160 |
-int main() { |
15161 |
- |
15162 |
-/* The GNU C library defines this for functions which it implements |
15163 |
- to always fail with ENOSYS. Some functions are actually named |
15164 |
- something starting with __ and the normal name is an alias. */ |
15165 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15166 |
-choke me |
15167 |
-#else |
15168 |
-$ac_func(); |
15169 |
-#endif |
15170 |
- |
15171 |
-; return 0; } |
15172 |
-EOF |
15173 |
-if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15174 |
- rm -rf conftest* |
15175 |
- eval "ac_cv_func_$ac_func=yes" |
15176 |
-else |
15177 |
- echo "configure: failed program was:" >&5 |
15178 |
- cat conftest.$ac_ext >&5 |
15179 |
- rm -rf conftest* |
15180 |
- eval "ac_cv_func_$ac_func=no" |
15181 |
-fi |
15182 |
-rm -f conftest* |
15183 |
-fi |
15184 |
+do : |
15185 |
+ ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path" |
15186 |
+if test "x$ac_cv_func_cygwin_conv_path" = xyes; then : |
15187 |
+ cat >>confdefs.h <<_ACEOF |
15188 |
+#define HAVE_CYGWIN_CONV_PATH 1 |
15189 |
+_ACEOF |
15190 |
|
15191 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15192 |
- echo "$ac_t""yes" 1>&6 |
15193 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15194 |
- cat >> confdefs.h <<EOF |
15195 |
-#define $ac_tr_func 1 |
15196 |
-EOF |
15197 |
- |
15198 |
-else |
15199 |
- echo "$ac_t""no" 1>&6 |
15200 |
fi |
15201 |
done |
15202 |
|
15203 |
|
15204 |
for ac_func in uwin_path |
15205 |
-do |
15206 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15207 |
-echo "configure:9720: checking for $ac_func" >&5 |
15208 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15209 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15210 |
-else |
15211 |
- cat > conftest.$ac_ext <<EOF |
15212 |
-#line 9725 "configure" |
15213 |
-#include "confdefs.h" |
15214 |
-/* System header to define __stub macros and hopefully few prototypes, |
15215 |
- which can conflict with char $ac_func(); below. */ |
15216 |
-#include <assert.h> |
15217 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15218 |
-/* We use char because int might match the return type of a gcc2 |
15219 |
- builtin and then its argument prototype would still apply. */ |
15220 |
-char $ac_func(); |
15221 |
- |
15222 |
-int main() { |
15223 |
- |
15224 |
-/* The GNU C library defines this for functions which it implements |
15225 |
- to always fail with ENOSYS. Some functions are actually named |
15226 |
- something starting with __ and the normal name is an alias. */ |
15227 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15228 |
-choke me |
15229 |
-#else |
15230 |
-$ac_func(); |
15231 |
-#endif |
15232 |
+do : |
15233 |
+ ac_fn_c_check_func "$LINENO" "uwin_path" "ac_cv_func_uwin_path" |
15234 |
+if test "x$ac_cv_func_uwin_path" = xyes; then : |
15235 |
+ cat >>confdefs.h <<_ACEOF |
15236 |
+#define HAVE_UWIN_PATH 1 |
15237 |
+_ACEOF |
15238 |
|
15239 |
-; return 0; } |
15240 |
-EOF |
15241 |
-if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15242 |
- rm -rf conftest* |
15243 |
- eval "ac_cv_func_$ac_func=yes" |
15244 |
-else |
15245 |
- echo "configure: failed program was:" >&5 |
15246 |
- cat conftest.$ac_ext >&5 |
15247 |
- rm -rf conftest* |
15248 |
- eval "ac_cv_func_$ac_func=no" |
15249 |
-fi |
15250 |
-rm -f conftest* |
15251 |
-fi |
15252 |
- |
15253 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15254 |
- echo "$ac_t""yes" 1>&6 |
15255 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15256 |
- cat >> confdefs.h <<EOF |
15257 |
-#define $ac_tr_func 1 |
15258 |
-EOF |
15259 |
- |
15260 |
-else |
15261 |
- echo "$ac_t""no" 1>&6 |
15262 |
fi |
15263 |
done |
15264 |
|
15265 |
|
15266 |
for ac_func in unixpath2win |
15267 |
-do |
15268 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15269 |
-echo "configure:9776: checking for $ac_func" >&5 |
15270 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15271 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15272 |
-else |
15273 |
- cat > conftest.$ac_ext <<EOF |
15274 |
-#line 9781 "configure" |
15275 |
-#include "confdefs.h" |
15276 |
-/* System header to define __stub macros and hopefully few prototypes, |
15277 |
- which can conflict with char $ac_func(); below. */ |
15278 |
-#include <assert.h> |
15279 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15280 |
-/* We use char because int might match the return type of a gcc2 |
15281 |
- builtin and then its argument prototype would still apply. */ |
15282 |
-char $ac_func(); |
15283 |
- |
15284 |
-int main() { |
15285 |
- |
15286 |
-/* The GNU C library defines this for functions which it implements |
15287 |
- to always fail with ENOSYS. Some functions are actually named |
15288 |
- something starting with __ and the normal name is an alias. */ |
15289 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15290 |
-choke me |
15291 |
-#else |
15292 |
-$ac_func(); |
15293 |
-#endif |
15294 |
- |
15295 |
-; return 0; } |
15296 |
-EOF |
15297 |
-if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15298 |
- rm -rf conftest* |
15299 |
- eval "ac_cv_func_$ac_func=yes" |
15300 |
-else |
15301 |
- echo "configure: failed program was:" >&5 |
15302 |
- cat conftest.$ac_ext >&5 |
15303 |
- rm -rf conftest* |
15304 |
- eval "ac_cv_func_$ac_func=no" |
15305 |
-fi |
15306 |
-rm -f conftest* |
15307 |
-fi |
15308 |
+do : |
15309 |
+ ac_fn_c_check_func "$LINENO" "unixpath2win" "ac_cv_func_unixpath2win" |
15310 |
+if test "x$ac_cv_func_unixpath2win" = xyes; then : |
15311 |
+ cat >>confdefs.h <<_ACEOF |
15312 |
+#define HAVE_UNIXPATH2WIN 1 |
15313 |
+_ACEOF |
15314 |
|
15315 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15316 |
- echo "$ac_t""yes" 1>&6 |
15317 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15318 |
- cat >> confdefs.h <<EOF |
15319 |
-#define $ac_tr_func 1 |
15320 |
-EOF |
15321 |
- |
15322 |
-else |
15323 |
- echo "$ac_t""no" 1>&6 |
15324 |
fi |
15325 |
done |
15326 |
|
15327 |
for ac_func in winpath2unix |
15328 |
-do |
15329 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15330 |
-echo "configure:9831: checking for $ac_func" >&5 |
15331 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15332 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15333 |
-else |
15334 |
- cat > conftest.$ac_ext <<EOF |
15335 |
-#line 9836 "configure" |
15336 |
-#include "confdefs.h" |
15337 |
-/* System header to define __stub macros and hopefully few prototypes, |
15338 |
- which can conflict with char $ac_func(); below. */ |
15339 |
-#include <assert.h> |
15340 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15341 |
-/* We use char because int might match the return type of a gcc2 |
15342 |
- builtin and then its argument prototype would still apply. */ |
15343 |
-char $ac_func(); |
15344 |
- |
15345 |
-int main() { |
15346 |
- |
15347 |
-/* The GNU C library defines this for functions which it implements |
15348 |
- to always fail with ENOSYS. Some functions are actually named |
15349 |
- something starting with __ and the normal name is an alias. */ |
15350 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15351 |
-choke me |
15352 |
-#else |
15353 |
-$ac_func(); |
15354 |
-#endif |
15355 |
- |
15356 |
-; return 0; } |
15357 |
-EOF |
15358 |
-if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15359 |
- rm -rf conftest* |
15360 |
- eval "ac_cv_func_$ac_func=yes" |
15361 |
-else |
15362 |
- echo "configure: failed program was:" >&5 |
15363 |
- cat conftest.$ac_ext >&5 |
15364 |
- rm -rf conftest* |
15365 |
- eval "ac_cv_func_$ac_func=no" |
15366 |
-fi |
15367 |
-rm -f conftest* |
15368 |
-fi |
15369 |
+do : |
15370 |
+ ac_fn_c_check_func "$LINENO" "winpath2unix" "ac_cv_func_winpath2unix" |
15371 |
+if test "x$ac_cv_func_winpath2unix" = xyes; then : |
15372 |
+ cat >>confdefs.h <<_ACEOF |
15373 |
+#define HAVE_WINPATH2UNIX 1 |
15374 |
+_ACEOF |
15375 |
|
15376 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15377 |
- echo "$ac_t""yes" 1>&6 |
15378 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15379 |
- cat >> confdefs.h <<EOF |
15380 |
-#define $ac_tr_func 1 |
15381 |
-EOF |
15382 |
- |
15383 |
-else |
15384 |
- echo "$ac_t""no" 1>&6 |
15385 |
fi |
15386 |
done |
15387 |
|
15388 |
|
15389 |
if test "$cf_use_graphics" != no; then |
15390 |
- echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 |
15391 |
-echo "configure:9886: checking for pow in -lm" >&5 |
15392 |
-ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` |
15393 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15394 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15395 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
15396 |
+$as_echo_n "checking for pow in -lm... " >&6; } |
15397 |
+if ${ac_cv_lib_m_pow+:} false; then : |
15398 |
+ $as_echo_n "(cached) " >&6 |
15399 |
else |
15400 |
- ac_save_LIBS="$LIBS" |
15401 |
+ ac_check_lib_save_LIBS=$LIBS |
15402 |
LIBS="-lm $LIBS" |
15403 |
-cat > conftest.$ac_ext <<EOF |
15404 |
-#line 9894 "configure" |
15405 |
-#include "confdefs.h" |
15406 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15407 |
-/* We use char because int might match the return type of a gcc2 |
15408 |
- builtin and then its argument prototype would still apply. */ |
15409 |
-char pow(); |
15410 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15411 |
+/* end confdefs.h. */ |
15412 |
|
15413 |
-int main() { |
15414 |
-pow() |
15415 |
-; return 0; } |
15416 |
-EOF |
15417 |
-if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15418 |
- rm -rf conftest* |
15419 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
15420 |
+/* Override any GCC internal prototype to avoid an error. |
15421 |
+ Use char because int might match the return type of a GCC |
15422 |
+ builtin and then its argument prototype would still apply. */ |
15423 |
+#ifdef __cplusplus |
15424 |
+extern "C" |
15425 |
+#endif |
15426 |
+char pow (); |
15427 |
+int |
15428 |
+main () |
15429 |
+{ |
15430 |
+return pow (); |
15431 |
+ ; |
15432 |
+ return 0; |
15433 |
+} |
15434 |
+_ACEOF |
15435 |
+if ac_fn_c_try_link "$LINENO"; then : |
15436 |
+ ac_cv_lib_m_pow=yes |
15437 |
else |
15438 |
- echo "configure: failed program was:" >&5 |
15439 |
- cat conftest.$ac_ext >&5 |
15440 |
- rm -rf conftest* |
15441 |
- eval "ac_cv_lib_$ac_lib_var=no" |
15442 |
+ ac_cv_lib_m_pow=no |
15443 |
fi |
15444 |
-rm -f conftest* |
15445 |
-LIBS="$ac_save_LIBS" |
15446 |
- |
15447 |
+rm -f core conftest.err conftest.$ac_objext \ |
15448 |
+ conftest$ac_exeext conftest.$ac_ext |
15449 |
+LIBS=$ac_check_lib_save_LIBS |
15450 |
fi |
15451 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15452 |
- echo "$ac_t""yes" 1>&6 |
15453 |
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
15454 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
15455 |
- cat >> confdefs.h <<EOF |
15456 |
-#define $ac_tr_lib 1 |
15457 |
-EOF |
15458 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
15459 |
+$as_echo "$ac_cv_lib_m_pow" >&6; } |
15460 |
+if test "x$ac_cv_lib_m_pow" = xyes; then : |
15461 |
+ cat >>confdefs.h <<_ACEOF |
15462 |
+#define HAVE_LIBM 1 |
15463 |
+_ACEOF |
15464 |
|
15465 |
LIBS="-lm $LIBS" |
15466 |
|
15467 |
-else |
15468 |
- echo "$ac_t""no" 1>&6 |
15469 |
fi |
15470 |
|
15471 |
if test "$ac_cv_lib_m_pow" = no; then |
15472 |
- echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
15473 |
-echo "configure:9934: checking for main in -lm" >&5 |
15474 |
-ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
15475 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15476 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15477 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 |
15478 |
+$as_echo_n "checking for main in -lm... " >&6; } |
15479 |
+if ${ac_cv_lib_m_main+:} false; then : |
15480 |
+ $as_echo_n "(cached) " >&6 |
15481 |
else |
15482 |
- ac_save_LIBS="$LIBS" |
15483 |
+ ac_check_lib_save_LIBS=$LIBS |
15484 |
LIBS="-lm $LIBS" |
15485 |
-cat > conftest.$ac_ext <<EOF |
15486 |
-#line 9942 "configure" |
15487 |
-#include "confdefs.h" |
15488 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15489 |
+/* end confdefs.h. */ |
15490 |
|
15491 |
-int main() { |
15492 |
-main() |
15493 |
-; return 0; } |
15494 |
-EOF |
15495 |
-if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15496 |
- rm -rf conftest* |
15497 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
15498 |
+ |
15499 |
+int |
15500 |
+main () |
15501 |
+{ |
15502 |
+return main (); |
15503 |
+ ; |
15504 |
+ return 0; |
15505 |
+} |
15506 |
+_ACEOF |
15507 |
+if ac_fn_c_try_link "$LINENO"; then : |
15508 |
+ ac_cv_lib_m_main=yes |
15509 |
else |
15510 |
- echo "configure: failed program was:" >&5 |
15511 |
- cat conftest.$ac_ext >&5 |
15512 |
- rm -rf conftest* |
15513 |
- eval "ac_cv_lib_$ac_lib_var=no" |
15514 |
+ ac_cv_lib_m_main=no |
15515 |
fi |
15516 |
-rm -f conftest* |
15517 |
-LIBS="$ac_save_LIBS" |
15518 |
- |
15519 |
+rm -f core conftest.err conftest.$ac_objext \ |
15520 |
+ conftest$ac_exeext conftest.$ac_ext |
15521 |
+LIBS=$ac_check_lib_save_LIBS |
15522 |
fi |
15523 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15524 |
- echo "$ac_t""yes" 1>&6 |
15525 |
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
15526 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
15527 |
- cat >> confdefs.h <<EOF |
15528 |
-#define $ac_tr_lib 1 |
15529 |
-EOF |
15530 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 |
15531 |
+$as_echo "$ac_cv_lib_m_main" >&6; } |
15532 |
+if test "x$ac_cv_lib_m_main" = xyes; then : |
15533 |
+ cat >>confdefs.h <<_ACEOF |
15534 |
+#define HAVE_LIBM 1 |
15535 |
+_ACEOF |
15536 |
|
15537 |
LIBS="-lm $LIBS" |
15538 |
|
15539 |
-else |
15540 |
- echo "$ac_t""no" 1>&6 |
15541 |
fi |
15542 |
|
15543 |
fi |
15544 |
- echo $ac_n "checking for pow""... $ac_c" 1>&6 |
15545 |
-echo "configure:9978: checking for pow" >&5 |
15546 |
-if eval "test \"`echo '$''{'ac_cv_have_pow'+set}'`\" = set"; then |
15547 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15548 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 |
15549 |
+$as_echo_n "checking for pow... " >&6; } |
15550 |
+if ${ac_cv_have_pow+:} false; then : |
15551 |
+ $as_echo_n "(cached) " >&6 |
15552 |
else |
15553 |
- cat > conftest.$ac_ext <<EOF |
15554 |
-#line 9983 "configure" |
15555 |
-#include "confdefs.h" |
15556 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15557 |
+/* end confdefs.h. */ |
15558 |
#include <math.h> |
15559 |
-int main() { |
15560 |
+int |
15561 |
+main () |
15562 |
+{ |
15563 |
pow(1.1, 2.2); return 0; |
15564 |
-; return 0; } |
15565 |
-EOF |
15566 |
-if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15567 |
- rm -rf conftest* |
15568 |
+ ; |
15569 |
+ return 0; |
15570 |
+} |
15571 |
+_ACEOF |
15572 |
+if ac_fn_c_try_link "$LINENO"; then : |
15573 |
ac_cv_have_pow=yes |
15574 |
else |
15575 |
- echo "configure: failed program was:" >&5 |
15576 |
- cat conftest.$ac_ext >&5 |
15577 |
- rm -rf conftest* |
15578 |
ac_cv_have_pow=no |
15579 |
fi |
15580 |
-rm -f conftest* |
15581 |
- |
15582 |
-fi |
15583 |
+rm -f core conftest.err conftest.$ac_objext \ |
15584 |
+ conftest$ac_exeext conftest.$ac_ext |
15585 |
|
15586 |
-echo "$ac_t""$ac_cv_have_pow" 1>&6 |
15587 |
+fi |
15588 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pow" >&5 |
15589 |
+$as_echo "$ac_cv_have_pow" >&6; } |
15590 |
if test "$ac_cv_have_pow" = yes; then |
15591 |
- cat >> confdefs.h <<\EOF |
15592 |
-#define HAVE_POW 1 |
15593 |
-EOF |
15594 |
+ $as_echo "#define HAVE_POW 1" >>confdefs.h |
15595 |
|
15596 |
fi |
15597 |
- echo $ac_n "checking for powf""... $ac_c" 1>&6 |
15598 |
-echo "configure:10011: checking for powf" >&5 |
15599 |
-if eval "test \"`echo '$''{'ac_cv_have_powf'+set}'`\" = set"; then |
15600 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15601 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
15602 |
+$as_echo_n "checking for powf... " >&6; } |
15603 |
+if ${ac_cv_have_powf+:} false; then : |
15604 |
+ $as_echo_n "(cached) " >&6 |
15605 |
else |
15606 |
- cat > conftest.$ac_ext <<EOF |
15607 |
-#line 10016 "configure" |
15608 |
-#include "confdefs.h" |
15609 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15610 |
+/* end confdefs.h. */ |
15611 |
#include <math.h> |
15612 |
-int main() { |
15613 |
+int |
15614 |
+main () |
15615 |
+{ |
15616 |
powf(1.1, 2.2); return 0; |
15617 |
-; return 0; } |
15618 |
-EOF |
15619 |
-if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15620 |
- rm -rf conftest* |
15621 |
+ ; |
15622 |
+ return 0; |
15623 |
+} |
15624 |
+_ACEOF |
15625 |
+if ac_fn_c_try_link "$LINENO"; then : |
15626 |
ac_cv_have_powf=yes |
15627 |
else |
15628 |
- echo "configure: failed program was:" >&5 |
15629 |
- cat conftest.$ac_ext >&5 |
15630 |
- rm -rf conftest* |
15631 |
ac_cv_have_powf=no |
15632 |
fi |
15633 |
-rm -f conftest* |
15634 |
- |
15635 |
-fi |
15636 |
+rm -f core conftest.err conftest.$ac_objext \ |
15637 |
+ conftest$ac_exeext conftest.$ac_ext |
15638 |
|
15639 |
-echo "$ac_t""$ac_cv_have_powf" 1>&6 |
15640 |
+fi |
15641 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_powf" >&5 |
15642 |
+$as_echo "$ac_cv_have_powf" >&6; } |
15643 |
if test "$ac_cv_have_powf" = yes; then |
15644 |
- cat >> confdefs.h <<\EOF |
15645 |
-#define HAVE_POWF 1 |
15646 |
-EOF |
15647 |
+ $as_echo "#define HAVE_POWF 1" >>confdefs.h |
15648 |
|
15649 |
fi |
15650 |
if test "$ac_cv_have_pow" != yes -a "$ac_cv_have_powf" != yes; then |
15651 |
- { echo "configure: error: pow and powf functions not present" 1>&2; exit 1; } |
15652 |
+ as_fn_error $? "pow and powf functions not present" "$LINENO" 5 |
15653 |
fi |
15654 |
fi |
15655 |
|
15656 |
-# Check whether --with-gpm or --without-gpm was given. |
15657 |
-if test "${with_gpm+set}" = set; then |
15658 |
- withval="$with_gpm" |
15659 |
- if test "$withval" = no; then disable_gpm=yes; else disable_gpm=no; fi |
15660 |
+ |
15661 |
+# Check whether --with-gpm was given. |
15662 |
+if test "${with_gpm+set}" = set; then : |
15663 |
+ withval=$with_gpm; if test "$withval" = no; then disable_gpm=yes; else disable_gpm=no; fi |
15664 |
fi |
15665 |
|
15666 |
|
15667 |
if test "$disable_gpm" != yes; then |
15668 |
- for ac_hdr in gpm.h |
15669 |
-do |
15670 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15671 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
15672 |
-echo "configure:10060: checking for $ac_hdr" >&5 |
15673 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15674 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15675 |
-else |
15676 |
- cat > conftest.$ac_ext <<EOF |
15677 |
-#line 10065 "configure" |
15678 |
-#include "confdefs.h" |
15679 |
-#include <$ac_hdr> |
15680 |
-EOF |
15681 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15682 |
-{ (eval echo configure:10070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
15683 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15684 |
-if test -z "$ac_err"; then |
15685 |
- rm -rf conftest* |
15686 |
- eval "ac_cv_header_$ac_safe=yes" |
15687 |
-else |
15688 |
- echo "$ac_err" >&5 |
15689 |
- echo "configure: failed program was:" >&5 |
15690 |
- cat conftest.$ac_ext >&5 |
15691 |
- rm -rf conftest* |
15692 |
- eval "ac_cv_header_$ac_safe=no" |
15693 |
-fi |
15694 |
-rm -f conftest* |
15695 |
-fi |
15696 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15697 |
- echo "$ac_t""yes" 1>&6 |
15698 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15699 |
- cat >> confdefs.h <<EOF |
15700 |
-#define $ac_tr_hdr 1 |
15701 |
-EOF |
15702 |
- |
15703 |
-else |
15704 |
- echo "$ac_t""no" 1>&6 |
15705 |
+ for ac_header in gpm.h |
15706 |
+do : |
15707 |
+ ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" |
15708 |
+if test "x$ac_cv_header_gpm_h" = xyes; then : |
15709 |
+ cat >>confdefs.h <<_ACEOF |
15710 |
+#define HAVE_GPM_H 1 |
15711 |
+_ACEOF |
15712 |
+ |
15713 |
fi |
15714 |
+ |
15715 |
done |
15716 |
|
15717 |
- echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 |
15718 |
-echo "configure:10097: checking for Gpm_Open in -lgpm" >&5 |
15719 |
-ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` |
15720 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15721 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15722 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
15723 |
+$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } |
15724 |
+if ${ac_cv_lib_gpm_Gpm_Open+:} false; then : |
15725 |
+ $as_echo_n "(cached) " >&6 |
15726 |
else |
15727 |
- ac_save_LIBS="$LIBS" |
15728 |
+ ac_check_lib_save_LIBS=$LIBS |
15729 |
LIBS="-lgpm $LIBS" |
15730 |
-cat > conftest.$ac_ext <<EOF |
15731 |
-#line 10105 "configure" |
15732 |
-#include "confdefs.h" |
15733 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15734 |
-/* We use char because int might match the return type of a gcc2 |
15735 |
- builtin and then its argument prototype would still apply. */ |
15736 |
-char Gpm_Open(); |
15737 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15738 |
+/* end confdefs.h. */ |
15739 |
|
15740 |
-int main() { |
15741 |
-Gpm_Open() |
15742 |
-; return 0; } |
15743 |
-EOF |
15744 |
-if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15745 |
- rm -rf conftest* |
15746 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
15747 |
+/* Override any GCC internal prototype to avoid an error. |
15748 |
+ Use char because int might match the return type of a GCC |
15749 |
+ builtin and then its argument prototype would still apply. */ |
15750 |
+#ifdef __cplusplus |
15751 |
+extern "C" |
15752 |
+#endif |
15753 |
+char Gpm_Open (); |
15754 |
+int |
15755 |
+main () |
15756 |
+{ |
15757 |
+return Gpm_Open (); |
15758 |
+ ; |
15759 |
+ return 0; |
15760 |
+} |
15761 |
+_ACEOF |
15762 |
+if ac_fn_c_try_link "$LINENO"; then : |
15763 |
+ ac_cv_lib_gpm_Gpm_Open=yes |
15764 |
else |
15765 |
- echo "configure: failed program was:" >&5 |
15766 |
- cat conftest.$ac_ext >&5 |
15767 |
- rm -rf conftest* |
15768 |
- eval "ac_cv_lib_$ac_lib_var=no" |
15769 |
+ ac_cv_lib_gpm_Gpm_Open=no |
15770 |
fi |
15771 |
-rm -f conftest* |
15772 |
-LIBS="$ac_save_LIBS" |
15773 |
- |
15774 |
+rm -f core conftest.err conftest.$ac_objext \ |
15775 |
+ conftest$ac_exeext conftest.$ac_ext |
15776 |
+LIBS=$ac_check_lib_save_LIBS |
15777 |
fi |
15778 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15779 |
- echo "$ac_t""yes" 1>&6 |
15780 |
- ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
15781 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
15782 |
- cat >> confdefs.h <<EOF |
15783 |
-#define $ac_tr_lib 1 |
15784 |
-EOF |
15785 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 |
15786 |
+$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } |
15787 |
+if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then : |
15788 |
+ cat >>confdefs.h <<_ACEOF |
15789 |
+#define HAVE_LIBGPM 1 |
15790 |
+_ACEOF |
15791 |
|
15792 |
LIBS="-lgpm $LIBS" |
15793 |
|
15794 |
-else |
15795 |
- echo "$ac_t""no" 1>&6 |
15796 |
fi |
15797 |
|
15798 |
for ac_func in Gpm_GetLibVersion |
15799 |
-do |
15800 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15801 |
-echo "configure:10146: checking for $ac_func" >&5 |
15802 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15803 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15804 |
-else |
15805 |
- cat > conftest.$ac_ext <<EOF |
15806 |
-#line 10151 "configure" |
15807 |
-#include "confdefs.h" |
15808 |
-/* System header to define __stub macros and hopefully few prototypes, |
15809 |
- which can conflict with char $ac_func(); below. */ |
15810 |
-#include <assert.h> |
15811 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15812 |
-/* We use char because int might match the return type of a gcc2 |
15813 |
- builtin and then its argument prototype would still apply. */ |
15814 |
-char $ac_func(); |
15815 |
- |
15816 |
-int main() { |
15817 |
- |
15818 |
-/* The GNU C library defines this for functions which it implements |
15819 |
- to always fail with ENOSYS. Some functions are actually named |
15820 |
- something starting with __ and the normal name is an alias. */ |
15821 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15822 |
-choke me |
15823 |
-#else |
15824 |
-$ac_func(); |
15825 |
-#endif |
15826 |
- |
15827 |
-; return 0; } |
15828 |
-EOF |
15829 |
-if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15830 |
- rm -rf conftest* |
15831 |
- eval "ac_cv_func_$ac_func=yes" |
15832 |
-else |
15833 |
- echo "configure: failed program was:" >&5 |
15834 |
- cat conftest.$ac_ext >&5 |
15835 |
- rm -rf conftest* |
15836 |
- eval "ac_cv_func_$ac_func=no" |
15837 |
-fi |
15838 |
-rm -f conftest* |
15839 |
-fi |
15840 |
+do : |
15841 |
+ ac_fn_c_check_func "$LINENO" "Gpm_GetLibVersion" "ac_cv_func_Gpm_GetLibVersion" |
15842 |
+if test "x$ac_cv_func_Gpm_GetLibVersion" = xyes; then : |
15843 |
+ cat >>confdefs.h <<_ACEOF |
15844 |
+#define HAVE_GPM_GETLIBVERSION 1 |
15845 |
+_ACEOF |
15846 |
|
15847 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15848 |
- echo "$ac_t""yes" 1>&6 |
15849 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15850 |
- cat >> confdefs.h <<EOF |
15851 |
-#define $ac_tr_func 1 |
15852 |
-EOF |
15853 |
- |
15854 |
-else |
15855 |
- echo "$ac_t""no" 1>&6 |
15856 |
fi |
15857 |
done |
15858 |
|
15859 |
@@ -10201,309 +7840,103 @@ else |
15860 |
cf_have_gpm=no |
15861 |
fi |
15862 |
|
15863 |
-echo $ac_n "checking for OS/2 threads""... $ac_c" 1>&6 |
15864 |
-echo "configure:10204: checking for OS/2 threads" >&5 |
15865 |
-if eval "test \"`echo '$''{'ac_cv_have_beginthread'+set}'`\" = set"; then |
15866 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15867 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/2 threads" >&5 |
15868 |
+$as_echo_n "checking for OS/2 threads... " >&6; } |
15869 |
+if ${ac_cv_have_beginthread+:} false; then : |
15870 |
+ $as_echo_n "(cached) " >&6 |
15871 |
else |
15872 |
CFLAGS_X="$CFLAGS" |
15873 |
CFLAGS="$CFLAGS -Zmt" |
15874 |
- cat > conftest.$ac_ext <<EOF |
15875 |
-#line 10211 "configure" |
15876 |
-#include "confdefs.h" |
15877 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15878 |
+/* end confdefs.h. */ |
15879 |
#include <stdlib.h> |
15880 |
-int main() { |
15881 |
+int |
15882 |
+main () |
15883 |
+{ |
15884 |
_beginthread(NULL, NULL, 0, NULL) |
15885 |
-; return 0; } |
15886 |
-EOF |
15887 |
-if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15888 |
- rm -rf conftest* |
15889 |
+ ; |
15890 |
+ return 0; |
15891 |
+} |
15892 |
+_ACEOF |
15893 |
+if ac_fn_c_try_link "$LINENO"; then : |
15894 |
ac_cv_have_beginthread=yes |
15895 |
else |
15896 |
- echo "configure: failed program was:" >&5 |
15897 |
- cat conftest.$ac_ext >&5 |
15898 |
- rm -rf conftest* |
15899 |
ac_cv_have_beginthread=no |
15900 |
fi |
15901 |
-rm -f conftest* |
15902 |
+rm -f core conftest.err conftest.$ac_objext \ |
15903 |
+ conftest$ac_exeext conftest.$ac_ext |
15904 |
CFLAGS="$CFLAGS_X" |
15905 |
|
15906 |
fi |
15907 |
- |
15908 |
-echo "$ac_t""$ac_cv_have_beginthread" 1>&6 |
15909 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_beginthread" >&5 |
15910 |
+$as_echo "$ac_cv_have_beginthread" >&6; } |
15911 |
if test "$ac_cv_have_beginthread" = yes; then |
15912 |
CFLAGS="$CFLAGS -Zmt" |
15913 |
- cat >> confdefs.h <<\EOF |
15914 |
-#define HAVE_BEGINTHREAD 1 |
15915 |
-EOF |
15916 |
+ $as_echo "#define HAVE_BEGINTHREAD 1" >>confdefs.h |
15917 |
|
15918 |
fi |
15919 |
-for ac_hdr in atheos/threads.h |
15920 |
-do |
15921 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15922 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
15923 |
-echo "configure:10244: checking for $ac_hdr" >&5 |
15924 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15925 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15926 |
-else |
15927 |
- cat > conftest.$ac_ext <<EOF |
15928 |
-#line 10249 "configure" |
15929 |
-#include "confdefs.h" |
15930 |
-#include <$ac_hdr> |
15931 |
-EOF |
15932 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15933 |
-{ (eval echo configure:10254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
15934 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15935 |
-if test -z "$ac_err"; then |
15936 |
- rm -rf conftest* |
15937 |
- eval "ac_cv_header_$ac_safe=yes" |
15938 |
-else |
15939 |
- echo "$ac_err" >&5 |
15940 |
- echo "configure: failed program was:" >&5 |
15941 |
- cat conftest.$ac_ext >&5 |
15942 |
- rm -rf conftest* |
15943 |
- eval "ac_cv_header_$ac_safe=no" |
15944 |
-fi |
15945 |
-rm -f conftest* |
15946 |
-fi |
15947 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15948 |
- echo "$ac_t""yes" 1>&6 |
15949 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15950 |
- cat >> confdefs.h <<EOF |
15951 |
-#define $ac_tr_hdr 1 |
15952 |
-EOF |
15953 |
- |
15954 |
-else |
15955 |
- echo "$ac_t""no" 1>&6 |
15956 |
+for ac_header in atheos/threads.h |
15957 |
+do : |
15958 |
+ ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" |
15959 |
+if test "x$ac_cv_header_atheos_threads_h" = xyes; then : |
15960 |
+ cat >>confdefs.h <<_ACEOF |
15961 |
+#define HAVE_ATHEOS_THREADS_H 1 |
15962 |
+_ACEOF |
15963 |
+ |
15964 |
fi |
15965 |
+ |
15966 |
done |
15967 |
|
15968 |
for ac_func in spawn_thread |
15969 |
-do |
15970 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15971 |
-echo "configure:10283: checking for $ac_func" >&5 |
15972 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15973 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
15974 |
-else |
15975 |
- cat > conftest.$ac_ext <<EOF |
15976 |
-#line 10288 "configure" |
15977 |
-#include "confdefs.h" |
15978 |
-/* System header to define __stub macros and hopefully few prototypes, |
15979 |
- which can conflict with char $ac_func(); below. */ |
15980 |
-#include <assert.h> |
15981 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
15982 |
-/* We use char because int might match the return type of a gcc2 |
15983 |
- builtin and then its argument prototype would still apply. */ |
15984 |
-char $ac_func(); |
15985 |
- |
15986 |
-int main() { |
15987 |
- |
15988 |
-/* The GNU C library defines this for functions which it implements |
15989 |
- to always fail with ENOSYS. Some functions are actually named |
15990 |
- something starting with __ and the normal name is an alias. */ |
15991 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
15992 |
-choke me |
15993 |
-#else |
15994 |
-$ac_func(); |
15995 |
-#endif |
15996 |
- |
15997 |
-; return 0; } |
15998 |
-EOF |
15999 |
-if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16000 |
- rm -rf conftest* |
16001 |
- eval "ac_cv_func_$ac_func=yes" |
16002 |
-else |
16003 |
- echo "configure: failed program was:" >&5 |
16004 |
- cat conftest.$ac_ext >&5 |
16005 |
- rm -rf conftest* |
16006 |
- eval "ac_cv_func_$ac_func=no" |
16007 |
-fi |
16008 |
-rm -f conftest* |
16009 |
-fi |
16010 |
+do : |
16011 |
+ ac_fn_c_check_func "$LINENO" "spawn_thread" "ac_cv_func_spawn_thread" |
16012 |
+if test "x$ac_cv_func_spawn_thread" = xyes; then : |
16013 |
+ cat >>confdefs.h <<_ACEOF |
16014 |
+#define HAVE_SPAWN_THREAD 1 |
16015 |
+_ACEOF |
16016 |
|
16017 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16018 |
- echo "$ac_t""yes" 1>&6 |
16019 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16020 |
- cat >> confdefs.h <<EOF |
16021 |
-#define $ac_tr_func 1 |
16022 |
-EOF |
16023 |
- |
16024 |
-else |
16025 |
- echo "$ac_t""no" 1>&6 |
16026 |
fi |
16027 |
done |
16028 |
|
16029 |
for ac_func in resume_thread |
16030 |
-do |
16031 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16032 |
-echo "configure:10338: checking for $ac_func" >&5 |
16033 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16034 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16035 |
-else |
16036 |
- cat > conftest.$ac_ext <<EOF |
16037 |
-#line 10343 "configure" |
16038 |
-#include "confdefs.h" |
16039 |
-/* System header to define __stub macros and hopefully few prototypes, |
16040 |
- which can conflict with char $ac_func(); below. */ |
16041 |
-#include <assert.h> |
16042 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
16043 |
-/* We use char because int might match the return type of a gcc2 |
16044 |
- builtin and then its argument prototype would still apply. */ |
16045 |
-char $ac_func(); |
16046 |
- |
16047 |
-int main() { |
16048 |
- |
16049 |
-/* The GNU C library defines this for functions which it implements |
16050 |
- to always fail with ENOSYS. Some functions are actually named |
16051 |
- something starting with __ and the normal name is an alias. */ |
16052 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
16053 |
-choke me |
16054 |
-#else |
16055 |
-$ac_func(); |
16056 |
-#endif |
16057 |
- |
16058 |
-; return 0; } |
16059 |
-EOF |
16060 |
-if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16061 |
- rm -rf conftest* |
16062 |
- eval "ac_cv_func_$ac_func=yes" |
16063 |
-else |
16064 |
- echo "configure: failed program was:" >&5 |
16065 |
- cat conftest.$ac_ext >&5 |
16066 |
- rm -rf conftest* |
16067 |
- eval "ac_cv_func_$ac_func=no" |
16068 |
-fi |
16069 |
-rm -f conftest* |
16070 |
-fi |
16071 |
+do : |
16072 |
+ ac_fn_c_check_func "$LINENO" "resume_thread" "ac_cv_func_resume_thread" |
16073 |
+if test "x$ac_cv_func_resume_thread" = xyes; then : |
16074 |
+ cat >>confdefs.h <<_ACEOF |
16075 |
+#define HAVE_RESUME_THREAD 1 |
16076 |
+_ACEOF |
16077 |
|
16078 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16079 |
- echo "$ac_t""yes" 1>&6 |
16080 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16081 |
- cat >> confdefs.h <<EOF |
16082 |
-#define $ac_tr_func 1 |
16083 |
-EOF |
16084 |
- |
16085 |
-else |
16086 |
- echo "$ac_t""no" 1>&6 |
16087 |
fi |
16088 |
done |
16089 |
|
16090 |
|
16091 |
for ac_func in MouOpen |
16092 |
-do |
16093 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16094 |
-echo "configure:10394: checking for $ac_func" >&5 |
16095 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16096 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16097 |
-else |
16098 |
- cat > conftest.$ac_ext <<EOF |
16099 |
-#line 10399 "configure" |
16100 |
-#include "confdefs.h" |
16101 |
-/* System header to define __stub macros and hopefully few prototypes, |
16102 |
- which can conflict with char $ac_func(); below. */ |
16103 |
-#include <assert.h> |
16104 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
16105 |
-/* We use char because int might match the return type of a gcc2 |
16106 |
- builtin and then its argument prototype would still apply. */ |
16107 |
-char $ac_func(); |
16108 |
- |
16109 |
-int main() { |
16110 |
- |
16111 |
-/* The GNU C library defines this for functions which it implements |
16112 |
- to always fail with ENOSYS. Some functions are actually named |
16113 |
- something starting with __ and the normal name is an alias. */ |
16114 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
16115 |
-choke me |
16116 |
-#else |
16117 |
-$ac_func(); |
16118 |
-#endif |
16119 |
- |
16120 |
-; return 0; } |
16121 |
-EOF |
16122 |
-if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16123 |
- rm -rf conftest* |
16124 |
- eval "ac_cv_func_$ac_func=yes" |
16125 |
-else |
16126 |
- echo "configure: failed program was:" >&5 |
16127 |
- cat conftest.$ac_ext >&5 |
16128 |
- rm -rf conftest* |
16129 |
- eval "ac_cv_func_$ac_func=no" |
16130 |
-fi |
16131 |
-rm -f conftest* |
16132 |
-fi |
16133 |
+do : |
16134 |
+ ac_fn_c_check_func "$LINENO" "MouOpen" "ac_cv_func_MouOpen" |
16135 |
+if test "x$ac_cv_func_MouOpen" = xyes; then : |
16136 |
+ cat >>confdefs.h <<_ACEOF |
16137 |
+#define HAVE_MOUOPEN 1 |
16138 |
+_ACEOF |
16139 |
|
16140 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16141 |
- echo "$ac_t""yes" 1>&6 |
16142 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16143 |
- cat >> confdefs.h <<EOF |
16144 |
-#define $ac_tr_func 1 |
16145 |
-EOF |
16146 |
- |
16147 |
-else |
16148 |
- echo "$ac_t""no" 1>&6 |
16149 |
fi |
16150 |
done |
16151 |
|
16152 |
for ac_func in _read_kbd |
16153 |
-do |
16154 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16155 |
-echo "configure:10449: checking for $ac_func" >&5 |
16156 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16157 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16158 |
-else |
16159 |
- cat > conftest.$ac_ext <<EOF |
16160 |
-#line 10454 "configure" |
16161 |
-#include "confdefs.h" |
16162 |
-/* System header to define __stub macros and hopefully few prototypes, |
16163 |
- which can conflict with char $ac_func(); below. */ |
16164 |
-#include <assert.h> |
16165 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
16166 |
-/* We use char because int might match the return type of a gcc2 |
16167 |
- builtin and then its argument prototype would still apply. */ |
16168 |
-char $ac_func(); |
16169 |
- |
16170 |
-int main() { |
16171 |
- |
16172 |
-/* The GNU C library defines this for functions which it implements |
16173 |
- to always fail with ENOSYS. Some functions are actually named |
16174 |
- something starting with __ and the normal name is an alias. */ |
16175 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
16176 |
-choke me |
16177 |
-#else |
16178 |
-$ac_func(); |
16179 |
-#endif |
16180 |
- |
16181 |
-; return 0; } |
16182 |
-EOF |
16183 |
-if { (eval echo configure:10477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16184 |
- rm -rf conftest* |
16185 |
- eval "ac_cv_func_$ac_func=yes" |
16186 |
-else |
16187 |
- echo "configure: failed program was:" >&5 |
16188 |
- cat conftest.$ac_ext >&5 |
16189 |
- rm -rf conftest* |
16190 |
- eval "ac_cv_func_$ac_func=no" |
16191 |
-fi |
16192 |
-rm -f conftest* |
16193 |
-fi |
16194 |
+do : |
16195 |
+ ac_fn_c_check_func "$LINENO" "_read_kbd" "ac_cv_func__read_kbd" |
16196 |
+if test "x$ac_cv_func__read_kbd" = xyes; then : |
16197 |
+ cat >>confdefs.h <<_ACEOF |
16198 |
+#define HAVE__READ_KBD 1 |
16199 |
+_ACEOF |
16200 |
|
16201 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16202 |
- echo "$ac_t""yes" 1>&6 |
16203 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16204 |
- cat >> confdefs.h <<EOF |
16205 |
-#define $ac_tr_func 1 |
16206 |
-EOF |
16207 |
- |
16208 |
-else |
16209 |
- echo "$ac_t""no" 1>&6 |
16210 |
fi |
16211 |
done |
16212 |
|
16213 |
|
16214 |
-echo $ac_n "checking for XFree for OS/2""... $ac_c" 1>&6 |
16215 |
-echo "configure:10503: checking for XFree for OS/2" >&5 |
16216 |
-if eval "test \"`echo '$''{'ac_cv_have_x2'+set}'`\" = set"; then |
16217 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16218 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFree for OS/2" >&5 |
16219 |
+$as_echo_n "checking for XFree for OS/2... " >&6; } |
16220 |
+if ${ac_cv_have_x2+:} false; then : |
16221 |
+ $as_echo_n "(cached) " >&6 |
16222 |
else |
16223 |
CPPFLAGS_X="$CPPFLAGS" |
16224 |
LIBS_X="$LIBS" |
16225 |
@@ -10511,58 +7944,56 @@ else |
16226 |
if test -n "$X11ROOT"; then |
16227 |
CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include" |
16228 |
LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc" |
16229 |
- cat > conftest.$ac_ext <<EOF |
16230 |
-#line 10514 "configure" |
16231 |
-#include "confdefs.h" |
16232 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16233 |
+/* end confdefs.h. */ |
16234 |
#include <pty.h> |
16235 |
-int main() { |
16236 |
+int |
16237 |
+main () |
16238 |
+{ |
16239 |
struct winsize win;ptioctl(1, TIOCGWINSZ, &win) |
16240 |
-; return 0; } |
16241 |
-EOF |
16242 |
-if { (eval echo configure:10521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16243 |
- rm -rf conftest* |
16244 |
+ ; |
16245 |
+ return 0; |
16246 |
+} |
16247 |
+_ACEOF |
16248 |
+if ac_fn_c_try_link "$LINENO"; then : |
16249 |
ac_cv_have_x2=xf86_gcc |
16250 |
else |
16251 |
- echo "configure: failed program was:" >&5 |
16252 |
- cat conftest.$ac_ext >&5 |
16253 |
- rm -rf conftest* |
16254 |
ac_cv_have_x2=no |
16255 |
fi |
16256 |
-rm -f conftest* |
16257 |
+rm -f core conftest.err conftest.$ac_objext \ |
16258 |
+ conftest$ac_exeext conftest.$ac_ext |
16259 |
if test "$ac_cv_have_x2" = no; then |
16260 |
LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86" |
16261 |
- cat > conftest.$ac_ext <<EOF |
16262 |
-#line 10534 "configure" |
16263 |
-#include "confdefs.h" |
16264 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16265 |
+/* end confdefs.h. */ |
16266 |
#include <pty.h> |
16267 |
-int main() { |
16268 |
+int |
16269 |
+main () |
16270 |
+{ |
16271 |
struct winsize win;ptioctl(1, TIOCGWINSZ, &win) |
16272 |
-; return 0; } |
16273 |
-EOF |
16274 |
-if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16275 |
- rm -rf conftest* |
16276 |
+ ; |
16277 |
+ return 0; |
16278 |
+} |
16279 |
+_ACEOF |
16280 |
+if ac_fn_c_try_link "$LINENO"; then : |
16281 |
ac_cv_have_x2=xf86 |
16282 |
else |
16283 |
- echo "configure: failed program was:" >&5 |
16284 |
- cat conftest.$ac_ext >&5 |
16285 |
- rm -rf conftest* |
16286 |
ac_cv_have_x2=no |
16287 |
fi |
16288 |
-rm -f conftest* |
16289 |
+rm -f core conftest.err conftest.$ac_objext \ |
16290 |
+ conftest$ac_exeext conftest.$ac_ext |
16291 |
fi |
16292 |
fi |
16293 |
CPPFLAGS="$CPPFLAGS_X" |
16294 |
LIBS="$LIBS_X" |
16295 |
|
16296 |
fi |
16297 |
- |
16298 |
-echo "$ac_t""$ac_cv_have_x2" 1>&6 |
16299 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_x2" >&5 |
16300 |
+$as_echo "$ac_cv_have_x2" >&6; } |
16301 |
if test "$ac_cv_have_x2" != no; then |
16302 |
CPPFLAGS="$CPPFLAGS -I$X11ROOT/XFree86/include" |
16303 |
LIBS="$LIBS -L$X11ROOT/XFree86/lib -l$ac_cv_have_x2" |
16304 |
- cat >> confdefs.h <<\EOF |
16305 |
-#define X2 1 |
16306 |
-EOF |
16307 |
+ $as_echo "#define X2 1" >>confdefs.h |
16308 |
|
16309 |
fi |
16310 |
|
16311 |
@@ -10570,16 +8001,15 @@ cf_result=no |
16312 |
#ifdef HAVE_SSL |
16313 |
ssld=yes |
16314 |
withval= |
16315 |
-# Check whether --with-ssl or --without-ssl was given. |
16316 |
-if test "${with_ssl+set}" = set; then |
16317 |
- withval="$with_ssl" |
16318 |
- if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi |
16319 |
+ |
16320 |
+# Check whether --with-ssl was given. |
16321 |
+if test "${with_ssl+set}" = set; then : |
16322 |
+ withval=$with_ssl; if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi |
16323 |
fi |
16324 |
|
16325 |
-# Check whether --enable-ssl-pkgconfig or --disable-ssl-pkgconfig was given. |
16326 |
-if test "${enable_ssl_pkgconfig+set}" = set; then |
16327 |
- enableval="$enable_ssl_pkgconfig" |
16328 |
- cf_openssl_pkgconfig="$enableval" |
16329 |
+# Check whether --enable-ssl-pkgconfig was given. |
16330 |
+if test "${enable_ssl_pkgconfig+set}" = set; then : |
16331 |
+ enableval=$enable_ssl_pkgconfig; cf_openssl_pkgconfig="$enableval" |
16332 |
else |
16333 |
cf_openssl_pkgconfig=yes |
16334 |
fi |
16335 |
@@ -10588,98 +8018,94 @@ if test -z "$disable_ssl"; then |
16336 |
CPPFLAGS_X="$CPPFLAGS" |
16337 |
LIBS_X="$LIBS" |
16338 |
if test "$static_link" != 0; then |
16339 |
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
16340 |
-echo "configure:10591: checking for dlopen in -ldl" >&5 |
16341 |
-ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16342 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16343 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16344 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
16345 |
+$as_echo_n "checking for dlopen in -ldl... " >&6; } |
16346 |
+if ${ac_cv_lib_dl_dlopen+:} false; then : |
16347 |
+ $as_echo_n "(cached) " >&6 |
16348 |
else |
16349 |
- ac_save_LIBS="$LIBS" |
16350 |
-LIBS="-ldl $LIBS" |
16351 |
-cat > conftest.$ac_ext <<EOF |
16352 |
-#line 10599 "configure" |
16353 |
-#include "confdefs.h" |
16354 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
16355 |
-/* We use char because int might match the return type of a gcc2 |
16356 |
- builtin and then its argument prototype would still apply. */ |
16357 |
-char dlopen(); |
16358 |
+ ac_check_lib_save_LIBS=$LIBS |
16359 |
+LIBS=" $LIBS" |
16360 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16361 |
+/* end confdefs.h. */ |
16362 |
|
16363 |
-int main() { |
16364 |
-dlopen() |
16365 |
-; return 0; } |
16366 |
-EOF |
16367 |
-if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16368 |
- rm -rf conftest* |
16369 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
16370 |
+/* Override any GCC internal prototype to avoid an error. |
16371 |
+ Use char because int might match the return type of a GCC |
16372 |
+ builtin and then its argument prototype would still apply. */ |
16373 |
+#ifdef __cplusplus |
16374 |
+extern "C" |
16375 |
+#endif |
16376 |
+char dlopen (); |
16377 |
+int |
16378 |
+main () |
16379 |
+{ |
16380 |
+return dlopen (); |
16381 |
+ ; |
16382 |
+ return 0; |
16383 |
+} |
16384 |
+_ACEOF |
16385 |
+if ac_fn_c_try_link "$LINENO"; then : |
16386 |
+ ac_cv_lib_dl_dlopen=yes |
16387 |
else |
16388 |
- echo "configure: failed program was:" >&5 |
16389 |
- cat conftest.$ac_ext >&5 |
16390 |
- rm -rf conftest* |
16391 |
- eval "ac_cv_lib_$ac_lib_var=no" |
16392 |
+ ac_cv_lib_dl_dlopen=no |
16393 |
fi |
16394 |
-rm -f conftest* |
16395 |
-LIBS="$ac_save_LIBS" |
16396 |
- |
16397 |
+rm -f core conftest.err conftest.$ac_objext \ |
16398 |
+ conftest$ac_exeext conftest.$ac_ext |
16399 |
+LIBS=$ac_check_lib_save_LIBS |
16400 |
fi |
16401 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16402 |
- echo "$ac_t""yes" 1>&6 |
16403 |
- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
16404 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
16405 |
- cat >> confdefs.h <<EOF |
16406 |
-#define $ac_tr_lib 1 |
16407 |
-EOF |
16408 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
16409 |
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
16410 |
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
16411 |
+ cat >>confdefs.h <<_ACEOF |
16412 |
+#define HAVE_LIBDL 1 |
16413 |
+_ACEOF |
16414 |
|
16415 |
- LIBS="-ldl $LIBS" |
16416 |
+ LIBS=" $LIBS" |
16417 |
|
16418 |
-else |
16419 |
- echo "$ac_t""no" 1>&6 |
16420 |
fi |
16421 |
|
16422 |
- echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 |
16423 |
-echo "configure:10638: checking for inflate in -lz" >&5 |
16424 |
-ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` |
16425 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16426 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16427 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
16428 |
+$as_echo_n "checking for inflate in -lz... " >&6; } |
16429 |
+if ${ac_cv_lib_z_inflate+:} false; then : |
16430 |
+ $as_echo_n "(cached) " >&6 |
16431 |
else |
16432 |
- ac_save_LIBS="$LIBS" |
16433 |
+ ac_check_lib_save_LIBS=$LIBS |
16434 |
LIBS="-lz $LIBS" |
16435 |
-cat > conftest.$ac_ext <<EOF |
16436 |
-#line 10646 "configure" |
16437 |
-#include "confdefs.h" |
16438 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
16439 |
-/* We use char because int might match the return type of a gcc2 |
16440 |
- builtin and then its argument prototype would still apply. */ |
16441 |
-char inflate(); |
16442 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16443 |
+/* end confdefs.h. */ |
16444 |
|
16445 |
-int main() { |
16446 |
-inflate() |
16447 |
-; return 0; } |
16448 |
-EOF |
16449 |
-if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16450 |
- rm -rf conftest* |
16451 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
16452 |
+/* Override any GCC internal prototype to avoid an error. |
16453 |
+ Use char because int might match the return type of a GCC |
16454 |
+ builtin and then its argument prototype would still apply. */ |
16455 |
+#ifdef __cplusplus |
16456 |
+extern "C" |
16457 |
+#endif |
16458 |
+char inflate (); |
16459 |
+int |
16460 |
+main () |
16461 |
+{ |
16462 |
+return inflate (); |
16463 |
+ ; |
16464 |
+ return 0; |
16465 |
+} |
16466 |
+_ACEOF |
16467 |
+if ac_fn_c_try_link "$LINENO"; then : |
16468 |
+ ac_cv_lib_z_inflate=yes |
16469 |
else |
16470 |
- echo "configure: failed program was:" >&5 |
16471 |
- cat conftest.$ac_ext >&5 |
16472 |
- rm -rf conftest* |
16473 |
- eval "ac_cv_lib_$ac_lib_var=no" |
16474 |
+ ac_cv_lib_z_inflate=no |
16475 |
fi |
16476 |
-rm -f conftest* |
16477 |
-LIBS="$ac_save_LIBS" |
16478 |
- |
16479 |
+rm -f core conftest.err conftest.$ac_objext \ |
16480 |
+ conftest$ac_exeext conftest.$ac_ext |
16481 |
+LIBS=$ac_check_lib_save_LIBS |
16482 |
fi |
16483 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16484 |
- echo "$ac_t""yes" 1>&6 |
16485 |
- ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
16486 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
16487 |
- cat >> confdefs.h <<EOF |
16488 |
-#define $ac_tr_lib 1 |
16489 |
-EOF |
16490 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
16491 |
+$as_echo "$ac_cv_lib_z_inflate" >&6; } |
16492 |
+if test "x$ac_cv_lib_z_inflate" = xyes; then : |
16493 |
+ cat >>confdefs.h <<_ACEOF |
16494 |
+#define HAVE_LIBZ 1 |
16495 |
+_ACEOF |
16496 |
|
16497 |
LIBS="-lz $LIBS" |
16498 |
|
16499 |
-else |
16500 |
- echo "$ac_t""no" 1>&6 |
16501 |
fi |
16502 |
|
16503 |
fi |
16504 |
@@ -10689,46 +8115,51 @@ fi |
16505 |
if test "$cf_openssl_pkgconfig" = no; then |
16506 |
pkgconfig_openssl=no |
16507 |
else |
16508 |
- |
16509 |
+ |
16510 |
succeeded=no |
16511 |
|
16512 |
if test -z "$PKG_CONFIG"; then |
16513 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
16514 |
set dummy pkg-config; ac_word=$2 |
16515 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
16516 |
-echo "configure:10698: checking for $ac_word" >&5 |
16517 |
-if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
16518 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16519 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16520 |
+$as_echo_n "checking for $ac_word... " >&6; } |
16521 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
16522 |
+ $as_echo_n "(cached) " >&6 |
16523 |
else |
16524 |
- case "$PKG_CONFIG" in |
16525 |
- /*) |
16526 |
+ case $PKG_CONFIG in |
16527 |
+ [\\/]* | ?:[\\/]*) |
16528 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
16529 |
;; |
16530 |
- ?:/*) |
16531 |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
16532 |
- ;; |
16533 |
*) |
16534 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16535 |
- ac_dummy="$PATH" |
16536 |
- for ac_dir in $ac_dummy; do |
16537 |
- test -z "$ac_dir" && ac_dir=. |
16538 |
- if test -f $ac_dir/$ac_word; then |
16539 |
- ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
16540 |
- break |
16541 |
- fi |
16542 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16543 |
+for as_dir in $PATH |
16544 |
+do |
16545 |
+ IFS=$as_save_IFS |
16546 |
+ test -z "$as_dir" && as_dir=. |
16547 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
16548 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
16549 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
16550 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16551 |
+ break 2 |
16552 |
+ fi |
16553 |
+done |
16554 |
done |
16555 |
- IFS="$ac_save_ifs" |
16556 |
+IFS=$as_save_IFS |
16557 |
+ |
16558 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
16559 |
;; |
16560 |
esac |
16561 |
fi |
16562 |
-PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
16563 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
16564 |
if test -n "$PKG_CONFIG"; then |
16565 |
- echo "$ac_t""$PKG_CONFIG" 1>&6 |
16566 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
16567 |
+$as_echo "$PKG_CONFIG" >&6; } |
16568 |
else |
16569 |
- echo "$ac_t""no" 1>&6 |
16570 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16571 |
+$as_echo "no" >&6; } |
16572 |
fi |
16573 |
|
16574 |
+ |
16575 |
fi |
16576 |
|
16577 |
if test "$PKG_CONFIG" = "no" ; then |
16578 |
@@ -10739,33 +8170,36 @@ fi |
16579 |
else |
16580 |
PKG_CONFIG_MIN_VERSION=0.9.0 |
16581 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
16582 |
- echo $ac_n "checking for openssl""... $ac_c" 1>&6 |
16583 |
-echo "configure:10742: checking for openssl" >&5 |
16584 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 |
16585 |
+$as_echo_n "checking for openssl... " >&6; } |
16586 |
|
16587 |
if $PKG_CONFIG --exists "openssl" ; then |
16588 |
- echo "$ac_t""yes" 1>&6 |
16589 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16590 |
+$as_echo "yes" >&6; } |
16591 |
succeeded=yes |
16592 |
|
16593 |
- echo $ac_n "checking OPENSSL_CFLAGS""... $ac_c" 1>&6 |
16594 |
-echo "configure:10749: checking OPENSSL_CFLAGS" >&5 |
16595 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking OPENSSL_CFLAGS" >&5 |
16596 |
+$as_echo_n "checking OPENSSL_CFLAGS... " >&6; } |
16597 |
OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"` |
16598 |
- echo "$ac_t""$OPENSSL_CFLAGS" 1>&6 |
16599 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_CFLAGS" >&5 |
16600 |
+$as_echo "$OPENSSL_CFLAGS" >&6; } |
16601 |
|
16602 |
- echo $ac_n "checking OPENSSL_LIBS""... $ac_c" 1>&6 |
16603 |
-echo "configure:10754: checking OPENSSL_LIBS" >&5 |
16604 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking OPENSSL_LIBS" >&5 |
16605 |
+$as_echo_n "checking OPENSSL_LIBS... " >&6; } |
16606 |
OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl"` |
16607 |
- echo "$ac_t""$OPENSSL_LIBS" 1>&6 |
16608 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5 |
16609 |
+$as_echo "$OPENSSL_LIBS" >&6; } |
16610 |
else |
16611 |
OPENSSL_CFLAGS="" |
16612 |
OPENSSL_LIBS="" |
16613 |
- ## If we have a custom action on failure, don't print errors, but |
16614 |
+ ## If we have a custom action on failure, don't print errors, but |
16615 |
## do set a variable so people can do so. |
16616 |
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"` |
16617 |
- |
16618 |
+ |
16619 |
fi |
16620 |
|
16621 |
- |
16622 |
- |
16623 |
+ |
16624 |
+ |
16625 |
else |
16626 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
16627 |
echo "*** See http://www.freedesktop.org/software/pkgconfig" |
16628 |
@@ -10779,39 +8213,41 @@ echo "configure:10754: checking OPENSSL_ |
16629 |
fi |
16630 |
|
16631 |
if test "$PKG_CONFIG" != no -a "$pkgconfig_openssl" = no; then |
16632 |
- echo "$ac_t""no" 1>&6 |
16633 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16634 |
+$as_echo "no" >&6; } |
16635 |
fi |
16636 |
fi |
16637 |
if test "$pkgconfig_openssl" = yes; then |
16638 |
- echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 |
16639 |
-echo "configure:10786: checking for OpenSSL" >&5 |
16640 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
16641 |
+$as_echo_n "checking for OpenSSL... " >&6; } |
16642 |
CPPFLAGS="$CPPFLAGS_XX $OPENSSL_CFLAGS" |
16643 |
LIBS="$OPENSSL_LIBS $LIBS_XX" |
16644 |
- cat > conftest.$ac_ext <<EOF |
16645 |
-#line 10790 "configure" |
16646 |
-#include "confdefs.h" |
16647 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16648 |
+/* end confdefs.h. */ |
16649 |
#include <openssl/ssl.h> |
16650 |
-int main() { |
16651 |
+int |
16652 |
+main () |
16653 |
+{ |
16654 |
SSLeay_add_ssl_algorithms() |
16655 |
-; return 0; } |
16656 |
-EOF |
16657 |
-if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16658 |
- rm -rf conftest* |
16659 |
+ ; |
16660 |
+ return 0; |
16661 |
+} |
16662 |
+_ACEOF |
16663 |
+if ac_fn_c_try_link "$LINENO"; then : |
16664 |
cf_result=openssl |
16665 |
else |
16666 |
- echo "configure: failed program was:" >&5 |
16667 |
- cat conftest.$ac_ext >&5 |
16668 |
- rm -rf conftest* |
16669 |
cf_result=no |
16670 |
fi |
16671 |
-rm -f conftest* |
16672 |
- echo "$ac_t""$cf_result" 1>&6 |
16673 |
+rm -f core conftest.err conftest.$ac_objext \ |
16674 |
+ conftest$ac_exeext conftest.$ac_ext |
16675 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 |
16676 |
+$as_echo "$cf_result" >&6; } |
16677 |
fi |
16678 |
fi |
16679 |
|
16680 |
if test "$cf_result" = no && test "$ssld" != nss; then |
16681 |
- echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 |
16682 |
-echo "configure:10813: checking for OpenSSL" >&5 |
16683 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
16684 |
+$as_echo_n "checking for OpenSSL... " >&6; } |
16685 |
if test "$ssld" = yes -o "$ssld" = openssl; then |
16686 |
ssld=". /usr /usr/local /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl" |
16687 |
fi |
16688 |
@@ -10824,73 +8260,79 @@ echo "configure:10813: checking for Open |
16689 |
LIBS="-lssl -lcrypto $LIBS_XX" |
16690 |
CPPFLAGS="$CPPFLAGS_XX" |
16691 |
fi |
16692 |
- cat > conftest.$ac_ext <<EOF |
16693 |
-#line 10827 "configure" |
16694 |
-#include "confdefs.h" |
16695 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16696 |
+/* end confdefs.h. */ |
16697 |
#include <openssl/ssl.h> |
16698 |
-int main() { |
16699 |
+int |
16700 |
+main () |
16701 |
+{ |
16702 |
SSLeay_add_ssl_algorithms() |
16703 |
-; return 0; } |
16704 |
-EOF |
16705 |
-if { (eval echo configure:10834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16706 |
- rm -rf conftest* |
16707 |
+ ; |
16708 |
+ return 0; |
16709 |
+} |
16710 |
+_ACEOF |
16711 |
+if ac_fn_c_try_link "$LINENO"; then : |
16712 |
cf_result=openssl |
16713 |
else |
16714 |
- echo "configure: failed program was:" >&5 |
16715 |
- cat conftest.$ac_ext >&5 |
16716 |
- rm -rf conftest* |
16717 |
cf_result=no |
16718 |
fi |
16719 |
-rm -f conftest* |
16720 |
+rm -f core conftest.err conftest.$ac_objext \ |
16721 |
+ conftest$ac_exeext conftest.$ac_ext |
16722 |
fi |
16723 |
done |
16724 |
- echo "$ac_t""$cf_result" 1>&6 |
16725 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 |
16726 |
+$as_echo "$cf_result" >&6; } |
16727 |
fi |
16728 |
|
16729 |
if test "$cf_result" = no && test "$ssld" = yes -o "$ssld" = nss; then |
16730 |
if test "$cf_openssl_pkgconfig" = no; then |
16731 |
pkgconfig_nss=no |
16732 |
else |
16733 |
- |
16734 |
+ |
16735 |
succeeded=no |
16736 |
|
16737 |
if test -z "$PKG_CONFIG"; then |
16738 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
16739 |
set dummy pkg-config; ac_word=$2 |
16740 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
16741 |
-echo "configure:10860: checking for $ac_word" >&5 |
16742 |
-if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
16743 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
16744 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16745 |
+$as_echo_n "checking for $ac_word... " >&6; } |
16746 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
16747 |
+ $as_echo_n "(cached) " >&6 |
16748 |
else |
16749 |
- case "$PKG_CONFIG" in |
16750 |
- /*) |
16751 |
+ case $PKG_CONFIG in |
16752 |
+ [\\/]* | ?:[\\/]*) |
16753 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
16754 |
;; |
16755 |
- ?:/*) |
16756 |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
16757 |
- ;; |
16758 |
*) |
16759 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16760 |
- ac_dummy="$PATH" |
16761 |
- for ac_dir in $ac_dummy; do |
16762 |
- test -z "$ac_dir" && ac_dir=. |
16763 |
- if test -f $ac_dir/$ac_word; then |
16764 |
- ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
16765 |
- break |
16766 |
- fi |
16767 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16768 |
+for as_dir in $PATH |
16769 |
+do |
16770 |
+ IFS=$as_save_IFS |
16771 |
+ test -z "$as_dir" && as_dir=. |
16772 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
16773 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
16774 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
16775 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16776 |
+ break 2 |
16777 |
+ fi |
16778 |
+done |
16779 |
done |
16780 |
- IFS="$ac_save_ifs" |
16781 |
+IFS=$as_save_IFS |
16782 |
+ |
16783 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
16784 |
;; |
16785 |
esac |
16786 |
fi |
16787 |
-PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
16788 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
16789 |
if test -n "$PKG_CONFIG"; then |
16790 |
- echo "$ac_t""$PKG_CONFIG" 1>&6 |
16791 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
16792 |
+$as_echo "$PKG_CONFIG" >&6; } |
16793 |
else |
16794 |
- echo "$ac_t""no" 1>&6 |
16795 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16796 |
+$as_echo "no" >&6; } |
16797 |
fi |
16798 |
|
16799 |
+ |
16800 |
fi |
16801 |
|
16802 |
if test "$PKG_CONFIG" = "no" ; then |
16803 |
@@ -10901,33 +8343,36 @@ fi |
16804 |
else |
16805 |
PKG_CONFIG_MIN_VERSION=0.9.0 |
16806 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
16807 |
- echo $ac_n "checking for nss""... $ac_c" 1>&6 |
16808 |
-echo "configure:10904: checking for nss" >&5 |
16809 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 |
16810 |
+$as_echo_n "checking for nss... " >&6; } |
16811 |
|
16812 |
if $PKG_CONFIG --exists "nss" ; then |
16813 |
- echo "$ac_t""yes" 1>&6 |
16814 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16815 |
+$as_echo "yes" >&6; } |
16816 |
succeeded=yes |
16817 |
|
16818 |
- echo $ac_n "checking NSS_CFLAGS""... $ac_c" 1>&6 |
16819 |
-echo "configure:10911: checking NSS_CFLAGS" >&5 |
16820 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking NSS_CFLAGS" >&5 |
16821 |
+$as_echo_n "checking NSS_CFLAGS... " >&6; } |
16822 |
NSS_CFLAGS=`$PKG_CONFIG --cflags "nss"` |
16823 |
- echo "$ac_t""$NSS_CFLAGS" 1>&6 |
16824 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSS_CFLAGS" >&5 |
16825 |
+$as_echo "$NSS_CFLAGS" >&6; } |
16826 |
|
16827 |
- echo $ac_n "checking NSS_LIBS""... $ac_c" 1>&6 |
16828 |
-echo "configure:10916: checking NSS_LIBS" >&5 |
16829 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking NSS_LIBS" >&5 |
16830 |
+$as_echo_n "checking NSS_LIBS... " >&6; } |
16831 |
NSS_LIBS=`$PKG_CONFIG --libs "nss"` |
16832 |
- echo "$ac_t""$NSS_LIBS" 1>&6 |
16833 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSS_LIBS" >&5 |
16834 |
+$as_echo "$NSS_LIBS" >&6; } |
16835 |
else |
16836 |
NSS_CFLAGS="" |
16837 |
NSS_LIBS="" |
16838 |
- ## If we have a custom action on failure, don't print errors, but |
16839 |
+ ## If we have a custom action on failure, don't print errors, but |
16840 |
## do set a variable so people can do so. |
16841 |
NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"` |
16842 |
- |
16843 |
+ |
16844 |
fi |
16845 |
|
16846 |
- |
16847 |
- |
16848 |
+ |
16849 |
+ |
16850 |
else |
16851 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
16852 |
echo "*** See http://www.freedesktop.org/software/pkgconfig" |
16853 |
@@ -10941,7 +8386,8 @@ echo "configure:10916: checking NSS_LIBS |
16854 |
fi |
16855 |
|
16856 |
if test "$PKG_CONFIG" != no -a "$pkgconfig_nss" = no; then |
16857 |
- echo "$ac_t""no" 1>&6 |
16858 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16859 |
+$as_echo "no" >&6; } |
16860 |
fi |
16861 |
fi |
16862 |
if test "$pkgconfig_nss" = no; then |
16863 |
@@ -10950,50 +8396,45 @@ echo "configure:10916: checking NSS_LIBS |
16864 |
fi |
16865 |
CPPFLAGS="$CPPFLAGS_X $NSS_CFLAGS" |
16866 |
LIBS="-lnss_compat_ossl $NSS_LIBS $LIBS_X" |
16867 |
- echo $ac_n "checking for NSS-compat-ossl""... $ac_c" 1>&6 |
16868 |
-echo "configure:10953: checking for NSS-compat-ossl" >&5 |
16869 |
- cat > conftest.$ac_ext <<EOF |
16870 |
-#line 10955 "configure" |
16871 |
-#include "confdefs.h" |
16872 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS-compat-ossl" >&5 |
16873 |
+$as_echo_n "checking for NSS-compat-ossl... " >&6; } |
16874 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16875 |
+/* end confdefs.h. */ |
16876 |
#include <nss_compat_ossl/nss_compat_ossl.h> |
16877 |
-int main() { |
16878 |
+int |
16879 |
+main () |
16880 |
+{ |
16881 |
SSLeay_add_ssl_algorithms() |
16882 |
-; return 0; } |
16883 |
-EOF |
16884 |
-if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16885 |
- rm -rf conftest* |
16886 |
+ ; |
16887 |
+ return 0; |
16888 |
+} |
16889 |
+_ACEOF |
16890 |
+if ac_fn_c_try_link "$LINENO"; then : |
16891 |
cf_result=nss |
16892 |
else |
16893 |
- echo "configure: failed program was:" >&5 |
16894 |
- cat conftest.$ac_ext >&5 |
16895 |
- rm -rf conftest* |
16896 |
cf_result=no |
16897 |
fi |
16898 |
-rm -f conftest* |
16899 |
- echo "$ac_t""$cf_result" 1>&6 |
16900 |
+rm -f core conftest.err conftest.$ac_objext \ |
16901 |
+ conftest$ac_exeext conftest.$ac_ext |
16902 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 |
16903 |
+$as_echo "$cf_result" >&6; } |
16904 |
fi |
16905 |
|
16906 |
if test "$cf_result" = no; then |
16907 |
if test -n "$withval" -a "$withval" != no; then |
16908 |
- { echo "configure: error: "OpenSSL not found"" 1>&2; exit 1; } |
16909 |
+ as_fn_error $? "\"OpenSSL not found\"" "$LINENO" 5 |
16910 |
fi |
16911 |
CPPFLAGS="$CPPFLAGS_X" |
16912 |
LIBS="$LIBS_X" |
16913 |
else |
16914 |
- cat >> confdefs.h <<\EOF |
16915 |
-#define HAVE_SSL 1 |
16916 |
-EOF |
16917 |
+ $as_echo "#define HAVE_SSL 1" >>confdefs.h |
16918 |
|
16919 |
if test "$cf_result" = openssl; then |
16920 |
- cat >> confdefs.h <<\EOF |
16921 |
-#define HAVE_OPENSSL 1 |
16922 |
-EOF |
16923 |
+ $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
16924 |
|
16925 |
fi |
16926 |
if test "$cf_result" = nss; then |
16927 |
- cat >> confdefs.h <<\EOF |
16928 |
-#define HAVE_NSS 1 |
16929 |
-EOF |
16930 |
+ $as_echo "#define HAVE_NSS 1" >>confdefs.h |
16931 |
|
16932 |
fi |
16933 |
fi |
16934 |
@@ -11001,311 +8442,258 @@ fi |
16935 |
#endif |
16936 |
cf_have_ssl=$cf_result |
16937 |
|
16938 |
-# Check whether --with-zlib or --without-zlib was given. |
16939 |
-if test "${with_zlib+set}" = set; then |
16940 |
- withval="$with_zlib" |
16941 |
- if test "$withval" = no; then disable_zlib=yes; else disable_zlib=no; fi |
16942 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 |
16943 |
+$as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } |
16944 |
+if ${ac_cv_lib_crypto_RAND_egd+:} false; then : |
16945 |
+ $as_echo_n "(cached) " >&6 |
16946 |
+else |
16947 |
+ ac_check_lib_save_LIBS=$LIBS |
16948 |
+LIBS="-lcrypto $LIBS" |
16949 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16950 |
+/* end confdefs.h. */ |
16951 |
+ |
16952 |
+/* Override any GCC internal prototype to avoid an error. |
16953 |
+ Use char because int might match the return type of a GCC |
16954 |
+ builtin and then its argument prototype would still apply. */ |
16955 |
+#ifdef __cplusplus |
16956 |
+extern "C" |
16957 |
+#endif |
16958 |
+char RAND_egd (); |
16959 |
+int |
16960 |
+main () |
16961 |
+{ |
16962 |
+return RAND_egd (); |
16963 |
+ ; |
16964 |
+ return 0; |
16965 |
+} |
16966 |
+_ACEOF |
16967 |
+if ac_fn_c_try_link "$LINENO"; then : |
16968 |
+ ac_cv_lib_crypto_RAND_egd=yes |
16969 |
+else |
16970 |
+ ac_cv_lib_crypto_RAND_egd=no |
16971 |
+fi |
16972 |
+rm -f core conftest.err conftest.$ac_objext \ |
16973 |
+ conftest$ac_exeext conftest.$ac_ext |
16974 |
+LIBS=$ac_check_lib_save_LIBS |
16975 |
fi |
16976 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 |
16977 |
+$as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } |
16978 |
+if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : |
16979 |
+ |
16980 |
+$as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h |
16981 |
|
16982 |
-# Check whether --with-bzip2 or --without-bzip2 was given. |
16983 |
-if test "${with_bzip2+set}" = set; then |
16984 |
- withval="$with_bzip2" |
16985 |
- if test "$withval" = no; then disable_bzip2=yes; else disable_bzip2=no; fi |
16986 |
fi |
16987 |
|
16988 |
-# Check whether --with-lzma or --without-lzma was given. |
16989 |
-if test "${with_lzma+set}" = set; then |
16990 |
- withval="$with_lzma" |
16991 |
- if test "$withval" = no; then disable_lzma=yes; else disable_lzma=no; fi |
16992 |
+ |
16993 |
+ |
16994 |
+# Check whether --with-zlib was given. |
16995 |
+if test "${with_zlib+set}" = set; then : |
16996 |
+ withval=$with_zlib; if test "$withval" = no; then disable_zlib=yes; else disable_zlib=no; fi |
16997 |
fi |
16998 |
|
16999 |
-compression="" |
17000 |
|
17001 |
-if test "$disable_zlib" != yes; then |
17002 |
- for ac_hdr in zlib.h |
17003 |
-do |
17004 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17005 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17006 |
-echo "configure:11028: checking for $ac_hdr" >&5 |
17007 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17008 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17009 |
-else |
17010 |
- cat > conftest.$ac_ext <<EOF |
17011 |
-#line 11033 "configure" |
17012 |
-#include "confdefs.h" |
17013 |
-#include <$ac_hdr> |
17014 |
-EOF |
17015 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17016 |
-{ (eval echo configure:11038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17017 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17018 |
-if test -z "$ac_err"; then |
17019 |
- rm -rf conftest* |
17020 |
- eval "ac_cv_header_$ac_safe=yes" |
17021 |
-else |
17022 |
- echo "$ac_err" >&5 |
17023 |
- echo "configure: failed program was:" >&5 |
17024 |
- cat conftest.$ac_ext >&5 |
17025 |
- rm -rf conftest* |
17026 |
- eval "ac_cv_header_$ac_safe=no" |
17027 |
+# Check whether --with-bzip2 was given. |
17028 |
+if test "${with_bzip2+set}" = set; then : |
17029 |
+ withval=$with_bzip2; if test "$withval" = no; then disable_bzip2=yes; else disable_bzip2=no; fi |
17030 |
fi |
17031 |
-rm -f conftest* |
17032 |
+ |
17033 |
+ |
17034 |
+# Check whether --with-lzma was given. |
17035 |
+if test "${with_lzma+set}" = set; then : |
17036 |
+ withval=$with_lzma; if test "$withval" = no; then disable_lzma=yes; else disable_lzma=no; fi |
17037 |
fi |
17038 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17039 |
- echo "$ac_t""yes" 1>&6 |
17040 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17041 |
- cat >> confdefs.h <<EOF |
17042 |
-#define $ac_tr_hdr 1 |
17043 |
-EOF |
17044 |
- |
17045 |
-else |
17046 |
- echo "$ac_t""no" 1>&6 |
17047 |
+ |
17048 |
+compression="" |
17049 |
+ |
17050 |
+if test "$disable_zlib" != yes; then |
17051 |
+ for ac_header in zlib.h |
17052 |
+do : |
17053 |
+ ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
17054 |
+if test "x$ac_cv_header_zlib_h" = xyes; then : |
17055 |
+ cat >>confdefs.h <<_ACEOF |
17056 |
+#define HAVE_ZLIB_H 1 |
17057 |
+_ACEOF |
17058 |
+ |
17059 |
fi |
17060 |
+ |
17061 |
done |
17062 |
|
17063 |
- echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 |
17064 |
-echo "configure:11065: checking for inflate in -lz" >&5 |
17065 |
-ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` |
17066 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17067 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17068 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
17069 |
+$as_echo_n "checking for inflate in -lz... " >&6; } |
17070 |
+if ${ac_cv_lib_z_inflate+:} false; then : |
17071 |
+ $as_echo_n "(cached) " >&6 |
17072 |
else |
17073 |
- ac_save_LIBS="$LIBS" |
17074 |
+ ac_check_lib_save_LIBS=$LIBS |
17075 |
LIBS="-lz $LIBS" |
17076 |
-cat > conftest.$ac_ext <<EOF |
17077 |
-#line 11073 "configure" |
17078 |
-#include "confdefs.h" |
17079 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
17080 |
-/* We use char because int might match the return type of a gcc2 |
17081 |
- builtin and then its argument prototype would still apply. */ |
17082 |
-char inflate(); |
17083 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17084 |
+/* end confdefs.h. */ |
17085 |
|
17086 |
-int main() { |
17087 |
-inflate() |
17088 |
-; return 0; } |
17089 |
-EOF |
17090 |
-if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17091 |
- rm -rf conftest* |
17092 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
17093 |
+/* Override any GCC internal prototype to avoid an error. |
17094 |
+ Use char because int might match the return type of a GCC |
17095 |
+ builtin and then its argument prototype would still apply. */ |
17096 |
+#ifdef __cplusplus |
17097 |
+extern "C" |
17098 |
+#endif |
17099 |
+char inflate (); |
17100 |
+int |
17101 |
+main () |
17102 |
+{ |
17103 |
+return inflate (); |
17104 |
+ ; |
17105 |
+ return 0; |
17106 |
+} |
17107 |
+_ACEOF |
17108 |
+if ac_fn_c_try_link "$LINENO"; then : |
17109 |
+ ac_cv_lib_z_inflate=yes |
17110 |
else |
17111 |
- echo "configure: failed program was:" >&5 |
17112 |
- cat conftest.$ac_ext >&5 |
17113 |
- rm -rf conftest* |
17114 |
- eval "ac_cv_lib_$ac_lib_var=no" |
17115 |
+ ac_cv_lib_z_inflate=no |
17116 |
fi |
17117 |
-rm -f conftest* |
17118 |
-LIBS="$ac_save_LIBS" |
17119 |
- |
17120 |
+rm -f core conftest.err conftest.$ac_objext \ |
17121 |
+ conftest$ac_exeext conftest.$ac_ext |
17122 |
+LIBS=$ac_check_lib_save_LIBS |
17123 |
fi |
17124 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17125 |
- echo "$ac_t""yes" 1>&6 |
17126 |
- ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
17127 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
17128 |
- cat >> confdefs.h <<EOF |
17129 |
-#define $ac_tr_lib 1 |
17130 |
-EOF |
17131 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
17132 |
+$as_echo "$ac_cv_lib_z_inflate" >&6; } |
17133 |
+if test "x$ac_cv_lib_z_inflate" = xyes; then : |
17134 |
+ cat >>confdefs.h <<_ACEOF |
17135 |
+#define HAVE_LIBZ 1 |
17136 |
+_ACEOF |
17137 |
|
17138 |
LIBS="-lz $LIBS" |
17139 |
|
17140 |
-else |
17141 |
- echo "$ac_t""no" 1>&6 |
17142 |
fi |
17143 |
|
17144 |
if test "$ac_cv_header_zlib_h" = yes && test "$ac_cv_lib_z_inflate" = yes; then |
17145 |
- cat >> confdefs.h <<\EOF |
17146 |
-#define HAVE_ZLIB 1 |
17147 |
-EOF |
17148 |
+ $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
17149 |
|
17150 |
compression="$compression ZLIB" |
17151 |
fi |
17152 |
fi |
17153 |
if test "$disable_bzip2" != yes; then |
17154 |
- for ac_hdr in bzlib.h |
17155 |
-do |
17156 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17157 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17158 |
-echo "configure:11124: checking for $ac_hdr" >&5 |
17159 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17160 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17161 |
-else |
17162 |
- cat > conftest.$ac_ext <<EOF |
17163 |
-#line 11129 "configure" |
17164 |
-#include "confdefs.h" |
17165 |
-#include <$ac_hdr> |
17166 |
-EOF |
17167 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17168 |
-{ (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17169 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17170 |
-if test -z "$ac_err"; then |
17171 |
- rm -rf conftest* |
17172 |
- eval "ac_cv_header_$ac_safe=yes" |
17173 |
-else |
17174 |
- echo "$ac_err" >&5 |
17175 |
- echo "configure: failed program was:" >&5 |
17176 |
- cat conftest.$ac_ext >&5 |
17177 |
- rm -rf conftest* |
17178 |
- eval "ac_cv_header_$ac_safe=no" |
17179 |
-fi |
17180 |
-rm -f conftest* |
17181 |
-fi |
17182 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17183 |
- echo "$ac_t""yes" 1>&6 |
17184 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17185 |
- cat >> confdefs.h <<EOF |
17186 |
-#define $ac_tr_hdr 1 |
17187 |
-EOF |
17188 |
- |
17189 |
-else |
17190 |
- echo "$ac_t""no" 1>&6 |
17191 |
+ for ac_header in bzlib.h |
17192 |
+do : |
17193 |
+ ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
17194 |
+if test "x$ac_cv_header_bzlib_h" = xyes; then : |
17195 |
+ cat >>confdefs.h <<_ACEOF |
17196 |
+#define HAVE_BZLIB_H 1 |
17197 |
+_ACEOF |
17198 |
+ |
17199 |
fi |
17200 |
+ |
17201 |
done |
17202 |
|
17203 |
- echo $ac_n "checking for BZ2_bzDecompress in -lbz2""... $ac_c" 1>&6 |
17204 |
-echo "configure:11161: checking for BZ2_bzDecompress in -lbz2" >&5 |
17205 |
-ac_lib_var=`echo bz2'_'BZ2_bzDecompress | sed 'y%./+-%__p_%'` |
17206 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17207 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17208 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 |
17209 |
+$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
17210 |
+if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : |
17211 |
+ $as_echo_n "(cached) " >&6 |
17212 |
else |
17213 |
- ac_save_LIBS="$LIBS" |
17214 |
+ ac_check_lib_save_LIBS=$LIBS |
17215 |
LIBS="-lbz2 $LIBS" |
17216 |
-cat > conftest.$ac_ext <<EOF |
17217 |
-#line 11169 "configure" |
17218 |
-#include "confdefs.h" |
17219 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
17220 |
-/* We use char because int might match the return type of a gcc2 |
17221 |
- builtin and then its argument prototype would still apply. */ |
17222 |
-char BZ2_bzDecompress(); |
17223 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17224 |
+/* end confdefs.h. */ |
17225 |
|
17226 |
-int main() { |
17227 |
-BZ2_bzDecompress() |
17228 |
-; return 0; } |
17229 |
-EOF |
17230 |
-if { (eval echo configure:11180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17231 |
- rm -rf conftest* |
17232 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
17233 |
+/* Override any GCC internal prototype to avoid an error. |
17234 |
+ Use char because int might match the return type of a GCC |
17235 |
+ builtin and then its argument prototype would still apply. */ |
17236 |
+#ifdef __cplusplus |
17237 |
+extern "C" |
17238 |
+#endif |
17239 |
+char BZ2_bzDecompress (); |
17240 |
+int |
17241 |
+main () |
17242 |
+{ |
17243 |
+return BZ2_bzDecompress (); |
17244 |
+ ; |
17245 |
+ return 0; |
17246 |
+} |
17247 |
+_ACEOF |
17248 |
+if ac_fn_c_try_link "$LINENO"; then : |
17249 |
+ ac_cv_lib_bz2_BZ2_bzDecompress=yes |
17250 |
else |
17251 |
- echo "configure: failed program was:" >&5 |
17252 |
- cat conftest.$ac_ext >&5 |
17253 |
- rm -rf conftest* |
17254 |
- eval "ac_cv_lib_$ac_lib_var=no" |
17255 |
+ ac_cv_lib_bz2_BZ2_bzDecompress=no |
17256 |
fi |
17257 |
-rm -f conftest* |
17258 |
-LIBS="$ac_save_LIBS" |
17259 |
- |
17260 |
+rm -f core conftest.err conftest.$ac_objext \ |
17261 |
+ conftest$ac_exeext conftest.$ac_ext |
17262 |
+LIBS=$ac_check_lib_save_LIBS |
17263 |
fi |
17264 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17265 |
- echo "$ac_t""yes" 1>&6 |
17266 |
- ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
17267 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
17268 |
- cat >> confdefs.h <<EOF |
17269 |
-#define $ac_tr_lib 1 |
17270 |
-EOF |
17271 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 |
17272 |
+$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
17273 |
+if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : |
17274 |
+ cat >>confdefs.h <<_ACEOF |
17275 |
+#define HAVE_LIBBZ2 1 |
17276 |
+_ACEOF |
17277 |
|
17278 |
LIBS="-lbz2 $LIBS" |
17279 |
|
17280 |
-else |
17281 |
- echo "$ac_t""no" 1>&6 |
17282 |
fi |
17283 |
|
17284 |
if test "$ac_cv_header_bzlib_h" = yes && test "$ac_cv_lib_bz2_BZ2_bzDecompress" = yes; then |
17285 |
- cat >> confdefs.h <<\EOF |
17286 |
-#define HAVE_BZIP2 1 |
17287 |
-EOF |
17288 |
+ $as_echo "#define HAVE_BZIP2 1" >>confdefs.h |
17289 |
|
17290 |
compression="$compression BZIP2" |
17291 |
fi |
17292 |
fi |
17293 |
|
17294 |
if test "$disable_lzma" != yes; then |
17295 |
- for ac_hdr in lzma.h |
17296 |
-do |
17297 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17298 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17299 |
-echo "configure:11221: checking for $ac_hdr" >&5 |
17300 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17301 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17302 |
-else |
17303 |
- cat > conftest.$ac_ext <<EOF |
17304 |
-#line 11226 "configure" |
17305 |
-#include "confdefs.h" |
17306 |
-#include <$ac_hdr> |
17307 |
-EOF |
17308 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17309 |
-{ (eval echo configure:11231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17310 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17311 |
-if test -z "$ac_err"; then |
17312 |
- rm -rf conftest* |
17313 |
- eval "ac_cv_header_$ac_safe=yes" |
17314 |
-else |
17315 |
- echo "$ac_err" >&5 |
17316 |
- echo "configure: failed program was:" >&5 |
17317 |
- cat conftest.$ac_ext >&5 |
17318 |
- rm -rf conftest* |
17319 |
- eval "ac_cv_header_$ac_safe=no" |
17320 |
-fi |
17321 |
-rm -f conftest* |
17322 |
-fi |
17323 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17324 |
- echo "$ac_t""yes" 1>&6 |
17325 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17326 |
- cat >> confdefs.h <<EOF |
17327 |
-#define $ac_tr_hdr 1 |
17328 |
-EOF |
17329 |
- |
17330 |
-else |
17331 |
- echo "$ac_t""no" 1>&6 |
17332 |
+ for ac_header in lzma.h |
17333 |
+do : |
17334 |
+ ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" |
17335 |
+if test "x$ac_cv_header_lzma_h" = xyes; then : |
17336 |
+ cat >>confdefs.h <<_ACEOF |
17337 |
+#define HAVE_LZMA_H 1 |
17338 |
+_ACEOF |
17339 |
+ |
17340 |
fi |
17341 |
+ |
17342 |
done |
17343 |
|
17344 |
- echo $ac_n "checking for lzma_auto_decoder in -llzma""... $ac_c" 1>&6 |
17345 |
-echo "configure:11258: checking for lzma_auto_decoder in -llzma" >&5 |
17346 |
-ac_lib_var=`echo lzma'_'lzma_auto_decoder | sed 'y%./+-%__p_%'` |
17347 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17348 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17349 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5 |
17350 |
+$as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; } |
17351 |
+if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then : |
17352 |
+ $as_echo_n "(cached) " >&6 |
17353 |
else |
17354 |
- ac_save_LIBS="$LIBS" |
17355 |
+ ac_check_lib_save_LIBS=$LIBS |
17356 |
LIBS="-llzma $LIBS" |
17357 |
-cat > conftest.$ac_ext <<EOF |
17358 |
-#line 11266 "configure" |
17359 |
-#include "confdefs.h" |
17360 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
17361 |
-/* We use char because int might match the return type of a gcc2 |
17362 |
- builtin and then its argument prototype would still apply. */ |
17363 |
-char lzma_auto_decoder(); |
17364 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17365 |
+/* end confdefs.h. */ |
17366 |
|
17367 |
-int main() { |
17368 |
-lzma_auto_decoder() |
17369 |
-; return 0; } |
17370 |
-EOF |
17371 |
-if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17372 |
- rm -rf conftest* |
17373 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
17374 |
+/* Override any GCC internal prototype to avoid an error. |
17375 |
+ Use char because int might match the return type of a GCC |
17376 |
+ builtin and then its argument prototype would still apply. */ |
17377 |
+#ifdef __cplusplus |
17378 |
+extern "C" |
17379 |
+#endif |
17380 |
+char lzma_auto_decoder (); |
17381 |
+int |
17382 |
+main () |
17383 |
+{ |
17384 |
+return lzma_auto_decoder (); |
17385 |
+ ; |
17386 |
+ return 0; |
17387 |
+} |
17388 |
+_ACEOF |
17389 |
+if ac_fn_c_try_link "$LINENO"; then : |
17390 |
+ ac_cv_lib_lzma_lzma_auto_decoder=yes |
17391 |
else |
17392 |
- echo "configure: failed program was:" >&5 |
17393 |
- cat conftest.$ac_ext >&5 |
17394 |
- rm -rf conftest* |
17395 |
- eval "ac_cv_lib_$ac_lib_var=no" |
17396 |
+ ac_cv_lib_lzma_lzma_auto_decoder=no |
17397 |
fi |
17398 |
-rm -f conftest* |
17399 |
-LIBS="$ac_save_LIBS" |
17400 |
- |
17401 |
+rm -f core conftest.err conftest.$ac_objext \ |
17402 |
+ conftest$ac_exeext conftest.$ac_ext |
17403 |
+LIBS=$ac_check_lib_save_LIBS |
17404 |
fi |
17405 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17406 |
- echo "$ac_t""yes" 1>&6 |
17407 |
- ac_tr_lib=HAVE_LIB`echo lzma | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
17408 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
17409 |
- cat >> confdefs.h <<EOF |
17410 |
-#define $ac_tr_lib 1 |
17411 |
-EOF |
17412 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5 |
17413 |
+$as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; } |
17414 |
+if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then : |
17415 |
+ cat >>confdefs.h <<_ACEOF |
17416 |
+#define HAVE_LIBLZMA 1 |
17417 |
+_ACEOF |
17418 |
|
17419 |
LIBS="-llzma $LIBS" |
17420 |
|
17421 |
-else |
17422 |
- echo "$ac_t""no" 1>&6 |
17423 |
fi |
17424 |
|
17425 |
if test "$ac_cv_header_lzma_h" = yes && test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then |
17426 |
- cat >> confdefs.h <<\EOF |
17427 |
-#define HAVE_LZMA 1 |
17428 |
-EOF |
17429 |
+ $as_echo "#define HAVE_LZMA 1" >>confdefs.h |
17430 |
|
17431 |
compression="$compression LZMA" |
17432 |
fi |
17433 |
@@ -11315,57 +8703,55 @@ fi |
17434 |
cf_have_atheos=no |
17435 |
|
17436 |
if test "$cf_use_graphics" != no; then |
17437 |
- cat >> confdefs.h <<\EOF |
17438 |
-#define G 1 |
17439 |
-EOF |
17440 |
+ $as_echo "#define G 1" >>confdefs.h |
17441 |
|
17442 |
|
17443 |
-# Check whether --with-svgalib or --without-svgalib was given. |
17444 |
-if test "${with_svgalib+set}" = set; then |
17445 |
- withval="$with_svgalib" |
17446 |
- if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi |
17447 |
+ |
17448 |
+# Check whether --with-svgalib was given. |
17449 |
+if test "${with_svgalib+set}" = set; then : |
17450 |
+ withval=$with_svgalib; if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi |
17451 |
fi |
17452 |
|
17453 |
-# Check whether --with-x or --without-x was given. |
17454 |
-if test "${with_x+set}" = set; then |
17455 |
- withval="$with_x" |
17456 |
- if test "$withval" = no; then disable_x=yes; else disable_x=no; fi |
17457 |
+ |
17458 |
+# Check whether --with-x was given. |
17459 |
+if test "${with_x+set}" = set; then : |
17460 |
+ withval=$with_x; if test "$withval" = no; then disable_x=yes; else disable_x=no; fi |
17461 |
fi |
17462 |
|
17463 |
-# Check whether --with-fb or --without-fb was given. |
17464 |
-if test "${with_fb+set}" = set; then |
17465 |
- withval="$with_fb" |
17466 |
- if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi |
17467 |
+ |
17468 |
+# Check whether --with-fb was given. |
17469 |
+if test "${with_fb+set}" = set; then : |
17470 |
+ withval=$with_fb; if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi |
17471 |
fi |
17472 |
|
17473 |
-# Check whether --with-directfb or --without-directfb was given. |
17474 |
-if test "${with_directfb+set}" = set; then |
17475 |
- withval="$with_directfb" |
17476 |
- if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi |
17477 |
+ |
17478 |
+# Check whether --with-directfb was given. |
17479 |
+if test "${with_directfb+set}" = set; then : |
17480 |
+ withval=$with_directfb; if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi |
17481 |
fi |
17482 |
|
17483 |
-# Check whether --with-pmshell or --without-pmshell was given. |
17484 |
-if test "${with_pmshell+set}" = set; then |
17485 |
- withval="$with_pmshell" |
17486 |
- if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi |
17487 |
+ |
17488 |
+# Check whether --with-pmshell was given. |
17489 |
+if test "${with_pmshell+set}" = set; then : |
17490 |
+ withval=$with_pmshell; if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi |
17491 |
fi |
17492 |
|
17493 |
-# Check whether --with-windows or --without-windows was given. |
17494 |
-if test "${with_windows+set}" = set; then |
17495 |
- withval="$with_windows" |
17496 |
- if test "$withval" = no; then disable_windows=yes; else disable_windows=no; fi |
17497 |
+ |
17498 |
+# Check whether --with-windows was given. |
17499 |
+if test "${with_windows+set}" = set; then : |
17500 |
+ withval=$with_windows; if test "$withval" = no; then disable_windows=yes; else disable_windows=no; fi |
17501 |
fi |
17502 |
|
17503 |
-# Check whether --with-atheos or --without-atheos was given. |
17504 |
-if test "${with_atheos+set}" = set; then |
17505 |
- withval="$with_atheos" |
17506 |
- if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi |
17507 |
+ |
17508 |
+# Check whether --with-atheos was given. |
17509 |
+if test "${with_atheos+set}" = set; then : |
17510 |
+ withval=$with_atheos; if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi |
17511 |
fi |
17512 |
|
17513 |
-# Check whether --with-grx or --without-grx was given. |
17514 |
-if test "${with_grx+set}" = set; then |
17515 |
- withval="$with_grx" |
17516 |
- if test "$withval" = no; then disable_grx=yes; else disable_grx; fi |
17517 |
+ |
17518 |
+# Check whether --with-grx was given. |
17519 |
+if test "${with_grx+set}" = set; then : |
17520 |
+ withval=$with_grx; if test "$withval" = no; then disable_grx=yes; else disable_grx; fi |
17521 |
fi |
17522 |
|
17523 |
|
17524 |
@@ -11374,87 +8760,83 @@ fi |
17525 |
if test "$disable_svgalib" != yes; then |
17526 |
LIBS_X="$LIBS" |
17527 |
if test "$static_link" != 0; then |
17528 |
- echo $ac_n "checking for LRMI_init in -lx86""... $ac_c" 1>&6 |
17529 |
-echo "configure:11377: checking for LRMI_init in -lx86" >&5 |
17530 |
-ac_lib_var=`echo x86'_'LRMI_init | sed 'y%./+-%__p_%'` |
17531 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17532 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17533 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LRMI_init in -lx86" >&5 |
17534 |
+$as_echo_n "checking for LRMI_init in -lx86... " >&6; } |
17535 |
+if ${ac_cv_lib_x86_LRMI_init+:} false; then : |
17536 |
+ $as_echo_n "(cached) " >&6 |
17537 |
else |
17538 |
- ac_save_LIBS="$LIBS" |
17539 |
+ ac_check_lib_save_LIBS=$LIBS |
17540 |
LIBS="-lx86 $LIBS" |
17541 |
-cat > conftest.$ac_ext <<EOF |
17542 |
-#line 11385 "configure" |
17543 |
-#include "confdefs.h" |
17544 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
17545 |
-/* We use char because int might match the return type of a gcc2 |
17546 |
- builtin and then its argument prototype would still apply. */ |
17547 |
-char LRMI_init(); |
17548 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17549 |
+/* end confdefs.h. */ |
17550 |
|
17551 |
-int main() { |
17552 |
-LRMI_init() |
17553 |
-; return 0; } |
17554 |
-EOF |
17555 |
-if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17556 |
- rm -rf conftest* |
17557 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
17558 |
+/* Override any GCC internal prototype to avoid an error. |
17559 |
+ Use char because int might match the return type of a GCC |
17560 |
+ builtin and then its argument prototype would still apply. */ |
17561 |
+#ifdef __cplusplus |
17562 |
+extern "C" |
17563 |
+#endif |
17564 |
+char LRMI_init (); |
17565 |
+int |
17566 |
+main () |
17567 |
+{ |
17568 |
+return LRMI_init (); |
17569 |
+ ; |
17570 |
+ return 0; |
17571 |
+} |
17572 |
+_ACEOF |
17573 |
+if ac_fn_c_try_link "$LINENO"; then : |
17574 |
+ ac_cv_lib_x86_LRMI_init=yes |
17575 |
else |
17576 |
- echo "configure: failed program was:" >&5 |
17577 |
- cat conftest.$ac_ext >&5 |
17578 |
- rm -rf conftest* |
17579 |
- eval "ac_cv_lib_$ac_lib_var=no" |
17580 |
+ ac_cv_lib_x86_LRMI_init=no |
17581 |
fi |
17582 |
-rm -f conftest* |
17583 |
-LIBS="$ac_save_LIBS" |
17584 |
- |
17585 |
+rm -f core conftest.err conftest.$ac_objext \ |
17586 |
+ conftest$ac_exeext conftest.$ac_ext |
17587 |
+LIBS=$ac_check_lib_save_LIBS |
17588 |
fi |
17589 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17590 |
- echo "$ac_t""yes" 1>&6 |
17591 |
- ac_tr_lib=HAVE_LIB`echo x86 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
17592 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
17593 |
- cat >> confdefs.h <<EOF |
17594 |
-#define $ac_tr_lib 1 |
17595 |
-EOF |
17596 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x86_LRMI_init" >&5 |
17597 |
+$as_echo "$ac_cv_lib_x86_LRMI_init" >&6; } |
17598 |
+if test "x$ac_cv_lib_x86_LRMI_init" = xyes; then : |
17599 |
+ cat >>confdefs.h <<_ACEOF |
17600 |
+#define HAVE_LIBX86 1 |
17601 |
+_ACEOF |
17602 |
|
17603 |
LIBS="-lx86 $LIBS" |
17604 |
|
17605 |
-else |
17606 |
- echo "$ac_t""no" 1>&6 |
17607 |
fi |
17608 |
|
17609 |
fi |
17610 |
LIBS="-lvga $LIBS" |
17611 |
- echo $ac_n "checking for svgalib""... $ac_c" 1>&6 |
17612 |
-echo "configure:11426: checking for svgalib" >&5 |
17613 |
-if eval "test \"`echo '$''{'ac_cv_have_svgalib'+set}'`\" = set"; then |
17614 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17615 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for svgalib" >&5 |
17616 |
+$as_echo_n "checking for svgalib... " >&6; } |
17617 |
+if ${ac_cv_have_svgalib+:} false; then : |
17618 |
+ $as_echo_n "(cached) " >&6 |
17619 |
else |
17620 |
- cat > conftest.$ac_ext <<EOF |
17621 |
-#line 11431 "configure" |
17622 |
-#include "confdefs.h" |
17623 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17624 |
+/* end confdefs.h. */ |
17625 |
#include <vga.h> |
17626 |
-int main() { |
17627 |
+int |
17628 |
+main () |
17629 |
+{ |
17630 |
vga_setmode(0) |
17631 |
-; return 0; } |
17632 |
-EOF |
17633 |
-if { (eval echo configure:11438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17634 |
- rm -rf conftest* |
17635 |
+ ; |
17636 |
+ return 0; |
17637 |
+} |
17638 |
+_ACEOF |
17639 |
+if ac_fn_c_try_link "$LINENO"; then : |
17640 |
ac_cv_have_svgalib=yes |
17641 |
else |
17642 |
- echo "configure: failed program was:" >&5 |
17643 |
- cat conftest.$ac_ext >&5 |
17644 |
- rm -rf conftest* |
17645 |
ac_cv_have_svgalib=no |
17646 |
fi |
17647 |
-rm -f conftest* |
17648 |
- |
17649 |
-fi |
17650 |
+rm -f core conftest.err conftest.$ac_objext \ |
17651 |
+ conftest$ac_exeext conftest.$ac_ext |
17652 |
|
17653 |
-echo "$ac_t""$ac_cv_have_svgalib" 1>&6 |
17654 |
+fi |
17655 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_svgalib" >&5 |
17656 |
+$as_echo "$ac_cv_have_svgalib" >&6; } |
17657 |
|
17658 |
if test "$ac_cv_have_svgalib" = yes; then |
17659 |
- cat >> confdefs.h <<\EOF |
17660 |
-#define GRDRV_SVGALIB 1 |
17661 |
-EOF |
17662 |
+ $as_echo "#define GRDRV_SVGALIB 1" >>confdefs.h |
17663 |
|
17664 |
drivers="$drivers SVGALIB" |
17665 |
else |
17666 |
@@ -11463,170 +8845,56 @@ EOF |
17667 |
fi |
17668 |
|
17669 |
if test "$disable_fb" != yes; then |
17670 |
- for ac_hdr in linux/fb.h |
17671 |
-do |
17672 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17673 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17674 |
-echo "configure:11469: checking for $ac_hdr" >&5 |
17675 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17676 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17677 |
-else |
17678 |
- cat > conftest.$ac_ext <<EOF |
17679 |
-#line 11474 "configure" |
17680 |
-#include "confdefs.h" |
17681 |
-#include <$ac_hdr> |
17682 |
-EOF |
17683 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17684 |
-{ (eval echo configure:11479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17685 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17686 |
-if test -z "$ac_err"; then |
17687 |
- rm -rf conftest* |
17688 |
- eval "ac_cv_header_$ac_safe=yes" |
17689 |
-else |
17690 |
- echo "$ac_err" >&5 |
17691 |
- echo "configure: failed program was:" >&5 |
17692 |
- cat conftest.$ac_ext >&5 |
17693 |
- rm -rf conftest* |
17694 |
- eval "ac_cv_header_$ac_safe=no" |
17695 |
-fi |
17696 |
-rm -f conftest* |
17697 |
-fi |
17698 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17699 |
- echo "$ac_t""yes" 1>&6 |
17700 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17701 |
- cat >> confdefs.h <<EOF |
17702 |
-#define $ac_tr_hdr 1 |
17703 |
-EOF |
17704 |
- |
17705 |
-else |
17706 |
- echo "$ac_t""no" 1>&6 |
17707 |
+ for ac_header in linux/fb.h |
17708 |
+do : |
17709 |
+ ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" |
17710 |
+if test "x$ac_cv_header_linux_fb_h" = xyes; then : |
17711 |
+ cat >>confdefs.h <<_ACEOF |
17712 |
+#define HAVE_LINUX_FB_H 1 |
17713 |
+_ACEOF |
17714 |
+ |
17715 |
fi |
17716 |
+ |
17717 |
done |
17718 |
|
17719 |
- for ac_hdr in linux/kd.h |
17720 |
-do |
17721 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17722 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17723 |
-echo "configure:11509: checking for $ac_hdr" >&5 |
17724 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17725 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17726 |
-else |
17727 |
- cat > conftest.$ac_ext <<EOF |
17728 |
-#line 11514 "configure" |
17729 |
-#include "confdefs.h" |
17730 |
-#include <$ac_hdr> |
17731 |
-EOF |
17732 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17733 |
-{ (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17734 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17735 |
-if test -z "$ac_err"; then |
17736 |
- rm -rf conftest* |
17737 |
- eval "ac_cv_header_$ac_safe=yes" |
17738 |
-else |
17739 |
- echo "$ac_err" >&5 |
17740 |
- echo "configure: failed program was:" >&5 |
17741 |
- cat conftest.$ac_ext >&5 |
17742 |
- rm -rf conftest* |
17743 |
- eval "ac_cv_header_$ac_safe=no" |
17744 |
-fi |
17745 |
-rm -f conftest* |
17746 |
-fi |
17747 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17748 |
- echo "$ac_t""yes" 1>&6 |
17749 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17750 |
- cat >> confdefs.h <<EOF |
17751 |
-#define $ac_tr_hdr 1 |
17752 |
-EOF |
17753 |
- |
17754 |
-else |
17755 |
- echo "$ac_t""no" 1>&6 |
17756 |
+ for ac_header in linux/kd.h |
17757 |
+do : |
17758 |
+ ac_fn_c_check_header_mongrel "$LINENO" "linux/kd.h" "ac_cv_header_linux_kd_h" "$ac_includes_default" |
17759 |
+if test "x$ac_cv_header_linux_kd_h" = xyes; then : |
17760 |
+ cat >>confdefs.h <<_ACEOF |
17761 |
+#define HAVE_LINUX_KD_H 1 |
17762 |
+_ACEOF |
17763 |
+ |
17764 |
fi |
17765 |
+ |
17766 |
done |
17767 |
|
17768 |
- for ac_hdr in linux/vt.h |
17769 |
-do |
17770 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17771 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17772 |
-echo "configure:11549: checking for $ac_hdr" >&5 |
17773 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17774 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17775 |
-else |
17776 |
- cat > conftest.$ac_ext <<EOF |
17777 |
-#line 11554 "configure" |
17778 |
-#include "confdefs.h" |
17779 |
-#include <$ac_hdr> |
17780 |
-EOF |
17781 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17782 |
-{ (eval echo configure:11559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17783 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17784 |
-if test -z "$ac_err"; then |
17785 |
- rm -rf conftest* |
17786 |
- eval "ac_cv_header_$ac_safe=yes" |
17787 |
-else |
17788 |
- echo "$ac_err" >&5 |
17789 |
- echo "configure: failed program was:" >&5 |
17790 |
- cat conftest.$ac_ext >&5 |
17791 |
- rm -rf conftest* |
17792 |
- eval "ac_cv_header_$ac_safe=no" |
17793 |
-fi |
17794 |
-rm -f conftest* |
17795 |
-fi |
17796 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17797 |
- echo "$ac_t""yes" 1>&6 |
17798 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17799 |
- cat >> confdefs.h <<EOF |
17800 |
-#define $ac_tr_hdr 1 |
17801 |
-EOF |
17802 |
- |
17803 |
-else |
17804 |
- echo "$ac_t""no" 1>&6 |
17805 |
+ for ac_header in linux/vt.h |
17806 |
+do : |
17807 |
+ ac_fn_c_check_header_mongrel "$LINENO" "linux/vt.h" "ac_cv_header_linux_vt_h" "$ac_includes_default" |
17808 |
+if test "x$ac_cv_header_linux_vt_h" = xyes; then : |
17809 |
+ cat >>confdefs.h <<_ACEOF |
17810 |
+#define HAVE_LINUX_VT_H 1 |
17811 |
+_ACEOF |
17812 |
+ |
17813 |
fi |
17814 |
+ |
17815 |
done |
17816 |
|
17817 |
- for ac_hdr in sys/mman.h |
17818 |
-do |
17819 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17820 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
17821 |
-echo "configure:11589: checking for $ac_hdr" >&5 |
17822 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17823 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17824 |
-else |
17825 |
- cat > conftest.$ac_ext <<EOF |
17826 |
-#line 11594 "configure" |
17827 |
-#include "confdefs.h" |
17828 |
-#include <$ac_hdr> |
17829 |
-EOF |
17830 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17831 |
-{ (eval echo configure:11599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17832 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17833 |
-if test -z "$ac_err"; then |
17834 |
- rm -rf conftest* |
17835 |
- eval "ac_cv_header_$ac_safe=yes" |
17836 |
-else |
17837 |
- echo "$ac_err" >&5 |
17838 |
- echo "configure: failed program was:" >&5 |
17839 |
- cat conftest.$ac_ext >&5 |
17840 |
- rm -rf conftest* |
17841 |
- eval "ac_cv_header_$ac_safe=no" |
17842 |
-fi |
17843 |
-rm -f conftest* |
17844 |
-fi |
17845 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17846 |
- echo "$ac_t""yes" 1>&6 |
17847 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
17848 |
- cat >> confdefs.h <<EOF |
17849 |
-#define $ac_tr_hdr 1 |
17850 |
-EOF |
17851 |
- |
17852 |
-else |
17853 |
- echo "$ac_t""no" 1>&6 |
17854 |
+ for ac_header in sys/mman.h |
17855 |
+do : |
17856 |
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
17857 |
+if test "x$ac_cv_header_sys_mman_h" = xyes; then : |
17858 |
+ cat >>confdefs.h <<_ACEOF |
17859 |
+#define HAVE_SYS_MMAN_H 1 |
17860 |
+_ACEOF |
17861 |
+ |
17862 |
fi |
17863 |
+ |
17864 |
done |
17865 |
|
17866 |
if test "$ac_cv_header_linux_fb_h" = yes && test "$ac_cv_header_linux_kd_h" = yes && test "$ac_cv_header_linux_vt_h" = yes && test "$ac_cv_header_sys_mman_h" = yes && test "$ac_cv_header_sys_ioctl_h" = yes && test "$cf_have_gpm" = yes; then |
17867 |
- cat >> confdefs.h <<\EOF |
17868 |
-#define GRDRV_FB 1 |
17869 |
-EOF |
17870 |
+ $as_echo "#define GRDRV_FB 1" >>confdefs.h |
17871 |
|
17872 |
drivers="$drivers FB" |
17873 |
fi |
17874 |
@@ -11635,95 +8903,107 @@ fi |
17875 |
if test "$disable_directfb" != yes; then |
17876 |
# Extract the first word of "directfb-config", so it can be a program name with args. |
17877 |
set dummy directfb-config; ac_word=$2 |
17878 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17879 |
-echo "configure:11638: checking for $ac_word" >&5 |
17880 |
-if eval "test \"`echo '$''{'ac_cv_path_DIRECTFB_CONFIG'+set}'`\" = set"; then |
17881 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17882 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17883 |
+$as_echo_n "checking for $ac_word... " >&6; } |
17884 |
+if ${ac_cv_path_DIRECTFB_CONFIG+:} false; then : |
17885 |
+ $as_echo_n "(cached) " >&6 |
17886 |
else |
17887 |
- case "$DIRECTFB_CONFIG" in |
17888 |
- /*) |
17889 |
+ case $DIRECTFB_CONFIG in |
17890 |
+ [\\/]* | ?:[\\/]*) |
17891 |
ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a path. |
17892 |
;; |
17893 |
- ?:/*) |
17894 |
- ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a dos path. |
17895 |
- ;; |
17896 |
*) |
17897 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
17898 |
- ac_dummy="$PATH" |
17899 |
- for ac_dir in $ac_dummy; do |
17900 |
- test -z "$ac_dir" && ac_dir=. |
17901 |
- if test -f $ac_dir/$ac_word; then |
17902 |
- ac_cv_path_DIRECTFB_CONFIG="$ac_dir/$ac_word" |
17903 |
- break |
17904 |
- fi |
17905 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17906 |
+for as_dir in $PATH |
17907 |
+do |
17908 |
+ IFS=$as_save_IFS |
17909 |
+ test -z "$as_dir" && as_dir=. |
17910 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
17911 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
17912 |
+ ac_cv_path_DIRECTFB_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
17913 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
17914 |
+ break 2 |
17915 |
+ fi |
17916 |
+done |
17917 |
done |
17918 |
- IFS="$ac_save_ifs" |
17919 |
+IFS=$as_save_IFS |
17920 |
+ |
17921 |
test -z "$ac_cv_path_DIRECTFB_CONFIG" && ac_cv_path_DIRECTFB_CONFIG="no" |
17922 |
;; |
17923 |
esac |
17924 |
fi |
17925 |
-DIRECTFB_CONFIG="$ac_cv_path_DIRECTFB_CONFIG" |
17926 |
+DIRECTFB_CONFIG=$ac_cv_path_DIRECTFB_CONFIG |
17927 |
if test -n "$DIRECTFB_CONFIG"; then |
17928 |
- echo "$ac_t""$DIRECTFB_CONFIG" 1>&6 |
17929 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFB_CONFIG" >&5 |
17930 |
+$as_echo "$DIRECTFB_CONFIG" >&6; } |
17931 |
else |
17932 |
- echo "$ac_t""no" 1>&6 |
17933 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17934 |
+$as_echo "no" >&6; } |
17935 |
fi |
17936 |
|
17937 |
+ |
17938 |
if test "$DIRECTFB_CONFIG" != "no"; then |
17939 |
- echo $ac_n "checking for DirectFB >= 0.9.17""... $ac_c" 1>&6 |
17940 |
-echo "configure:11673: checking for DirectFB >= 0.9.17" >&5 |
17941 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB >= 0.9.17" >&5 |
17942 |
+$as_echo_n "checking for DirectFB >= 0.9.17... " >&6; } |
17943 |
directfb_version=`$DIRECTFB_CONFIG --version` |
17944 |
if expr $directfb_version \>= 0.9.17 >/dev/null; then |
17945 |
- echo "$ac_t""yes" 1>&6 |
17946 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17947 |
+$as_echo "yes" >&6; } |
17948 |
|
17949 |
DIRECTFB_CFLAGS="`$DIRECTFB_CONFIG --cflags`" |
17950 |
DIRECTFB_LIBS="`$DIRECTFB_CONFIG --libs`" |
17951 |
pkgconfig_directfb=yes |
17952 |
else |
17953 |
- echo "$ac_t""no" 1>&6 |
17954 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17955 |
+$as_echo "no" >&6; } |
17956 |
pkgconfig_directfb=no |
17957 |
fi |
17958 |
else |
17959 |
- |
17960 |
+ |
17961 |
succeeded=no |
17962 |
|
17963 |
if test -z "$PKG_CONFIG"; then |
17964 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
17965 |
set dummy pkg-config; ac_word=$2 |
17966 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17967 |
-echo "configure:11693: checking for $ac_word" >&5 |
17968 |
-if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
17969 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
17970 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17971 |
+$as_echo_n "checking for $ac_word... " >&6; } |
17972 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
17973 |
+ $as_echo_n "(cached) " >&6 |
17974 |
else |
17975 |
- case "$PKG_CONFIG" in |
17976 |
- /*) |
17977 |
+ case $PKG_CONFIG in |
17978 |
+ [\\/]* | ?:[\\/]*) |
17979 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
17980 |
;; |
17981 |
- ?:/*) |
17982 |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
17983 |
- ;; |
17984 |
*) |
17985 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
17986 |
- ac_dummy="$PATH" |
17987 |
- for ac_dir in $ac_dummy; do |
17988 |
- test -z "$ac_dir" && ac_dir=. |
17989 |
- if test -f $ac_dir/$ac_word; then |
17990 |
- ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
17991 |
- break |
17992 |
- fi |
17993 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17994 |
+for as_dir in $PATH |
17995 |
+do |
17996 |
+ IFS=$as_save_IFS |
17997 |
+ test -z "$as_dir" && as_dir=. |
17998 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
17999 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18000 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
18001 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18002 |
+ break 2 |
18003 |
+ fi |
18004 |
+done |
18005 |
done |
18006 |
- IFS="$ac_save_ifs" |
18007 |
+IFS=$as_save_IFS |
18008 |
+ |
18009 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
18010 |
;; |
18011 |
esac |
18012 |
fi |
18013 |
-PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
18014 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
18015 |
if test -n "$PKG_CONFIG"; then |
18016 |
- echo "$ac_t""$PKG_CONFIG" 1>&6 |
18017 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
18018 |
+$as_echo "$PKG_CONFIG" >&6; } |
18019 |
else |
18020 |
- echo "$ac_t""no" 1>&6 |
18021 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18022 |
+$as_echo "no" >&6; } |
18023 |
fi |
18024 |
|
18025 |
+ |
18026 |
fi |
18027 |
|
18028 |
if test "$PKG_CONFIG" = "no" ; then |
18029 |
@@ -11734,33 +9014,36 @@ fi |
18030 |
else |
18031 |
PKG_CONFIG_MIN_VERSION=0.9.0 |
18032 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
18033 |
- echo $ac_n "checking for directfb""... $ac_c" 1>&6 |
18034 |
-echo "configure:11737: checking for directfb" >&5 |
18035 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb" >&5 |
18036 |
+$as_echo_n "checking for directfb... " >&6; } |
18037 |
|
18038 |
if $PKG_CONFIG --exists "directfb" ; then |
18039 |
- echo "$ac_t""yes" 1>&6 |
18040 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
18041 |
+$as_echo "yes" >&6; } |
18042 |
succeeded=yes |
18043 |
|
18044 |
- echo $ac_n "checking DIRECTFB_CFLAGS""... $ac_c" 1>&6 |
18045 |
-echo "configure:11744: checking DIRECTFB_CFLAGS" >&5 |
18046 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIRECTFB_CFLAGS" >&5 |
18047 |
+$as_echo_n "checking DIRECTFB_CFLAGS... " >&6; } |
18048 |
DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb"` |
18049 |
- echo "$ac_t""$DIRECTFB_CFLAGS" 1>&6 |
18050 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFB_CFLAGS" >&5 |
18051 |
+$as_echo "$DIRECTFB_CFLAGS" >&6; } |
18052 |
|
18053 |
- echo $ac_n "checking DIRECTFB_LIBS""... $ac_c" 1>&6 |
18054 |
-echo "configure:11749: checking DIRECTFB_LIBS" >&5 |
18055 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIRECTFB_LIBS" >&5 |
18056 |
+$as_echo_n "checking DIRECTFB_LIBS... " >&6; } |
18057 |
DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb"` |
18058 |
- echo "$ac_t""$DIRECTFB_LIBS" 1>&6 |
18059 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFB_LIBS" >&5 |
18060 |
+$as_echo "$DIRECTFB_LIBS" >&6; } |
18061 |
else |
18062 |
DIRECTFB_CFLAGS="" |
18063 |
DIRECTFB_LIBS="" |
18064 |
- ## If we have a custom action on failure, don't print errors, but |
18065 |
+ ## If we have a custom action on failure, don't print errors, but |
18066 |
## do set a variable so people can do so. |
18067 |
DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb"` |
18068 |
- |
18069 |
+ |
18070 |
fi |
18071 |
|
18072 |
- |
18073 |
- |
18074 |
+ |
18075 |
+ |
18076 |
else |
18077 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
18078 |
echo "*** See http://www.freedesktop.org/software/pkgconfig" |
18079 |
@@ -11774,7 +9057,8 @@ echo "configure:11749: checking DIRECTFB |
18080 |
fi |
18081 |
|
18082 |
if test "$PKG_CONFIG" != no -a "$pkgconfig_directfb" = no; then |
18083 |
- echo "$ac_t""no" 1>&6 |
18084 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18085 |
+$as_echo "no" >&6; } |
18086 |
fi |
18087 |
fi |
18088 |
|
18089 |
@@ -11785,106 +9069,32 @@ echo "configure:11749: checking DIRECTFB |
18090 |
CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" |
18091 |
LIBS="$DIRECTFB_LIBS $LIBS" |
18092 |
|
18093 |
- for ac_hdr in directfb.h |
18094 |
-do |
18095 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18096 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
18097 |
-echo "configure:11791: checking for $ac_hdr" >&5 |
18098 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18099 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18100 |
-else |
18101 |
- cat > conftest.$ac_ext <<EOF |
18102 |
-#line 11796 "configure" |
18103 |
-#include "confdefs.h" |
18104 |
-#include <$ac_hdr> |
18105 |
-EOF |
18106 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
18107 |
-{ (eval echo configure:11801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18108 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18109 |
-if test -z "$ac_err"; then |
18110 |
- rm -rf conftest* |
18111 |
- eval "ac_cv_header_$ac_safe=yes" |
18112 |
-else |
18113 |
- echo "$ac_err" >&5 |
18114 |
- echo "configure: failed program was:" >&5 |
18115 |
- cat conftest.$ac_ext >&5 |
18116 |
- rm -rf conftest* |
18117 |
- eval "ac_cv_header_$ac_safe=no" |
18118 |
-fi |
18119 |
-rm -f conftest* |
18120 |
-fi |
18121 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18122 |
- echo "$ac_t""yes" 1>&6 |
18123 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
18124 |
- cat >> confdefs.h <<EOF |
18125 |
-#define $ac_tr_hdr 1 |
18126 |
-EOF |
18127 |
- |
18128 |
-else |
18129 |
- echo "$ac_t""no" 1>&6 |
18130 |
+ for ac_header in directfb.h |
18131 |
+do : |
18132 |
+ ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default" |
18133 |
+if test "x$ac_cv_header_directfb_h" = xyes; then : |
18134 |
+ cat >>confdefs.h <<_ACEOF |
18135 |
+#define HAVE_DIRECTFB_H 1 |
18136 |
+_ACEOF |
18137 |
+ |
18138 |
fi |
18139 |
+ |
18140 |
done |
18141 |
|
18142 |
for ac_func in DirectFBInit |
18143 |
-do |
18144 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18145 |
-echo "configure:11830: checking for $ac_func" >&5 |
18146 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18147 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18148 |
-else |
18149 |
- cat > conftest.$ac_ext <<EOF |
18150 |
-#line 11835 "configure" |
18151 |
-#include "confdefs.h" |
18152 |
-/* System header to define __stub macros and hopefully few prototypes, |
18153 |
- which can conflict with char $ac_func(); below. */ |
18154 |
-#include <assert.h> |
18155 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18156 |
-/* We use char because int might match the return type of a gcc2 |
18157 |
- builtin and then its argument prototype would still apply. */ |
18158 |
-char $ac_func(); |
18159 |
- |
18160 |
-int main() { |
18161 |
- |
18162 |
-/* The GNU C library defines this for functions which it implements |
18163 |
- to always fail with ENOSYS. Some functions are actually named |
18164 |
- something starting with __ and the normal name is an alias. */ |
18165 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
18166 |
-choke me |
18167 |
-#else |
18168 |
-$ac_func(); |
18169 |
-#endif |
18170 |
- |
18171 |
-; return 0; } |
18172 |
-EOF |
18173 |
-if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18174 |
- rm -rf conftest* |
18175 |
- eval "ac_cv_func_$ac_func=yes" |
18176 |
-else |
18177 |
- echo "configure: failed program was:" >&5 |
18178 |
- cat conftest.$ac_ext >&5 |
18179 |
- rm -rf conftest* |
18180 |
- eval "ac_cv_func_$ac_func=no" |
18181 |
-fi |
18182 |
-rm -f conftest* |
18183 |
-fi |
18184 |
+do : |
18185 |
+ ac_fn_c_check_func "$LINENO" "DirectFBInit" "ac_cv_func_DirectFBInit" |
18186 |
+if test "x$ac_cv_func_DirectFBInit" = xyes; then : |
18187 |
+ cat >>confdefs.h <<_ACEOF |
18188 |
+#define HAVE_DIRECTFBINIT 1 |
18189 |
+_ACEOF |
18190 |
|
18191 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18192 |
- echo "$ac_t""yes" 1>&6 |
18193 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
18194 |
- cat >> confdefs.h <<EOF |
18195 |
-#define $ac_tr_func 1 |
18196 |
-EOF |
18197 |
- |
18198 |
-else |
18199 |
- echo "$ac_t""no" 1>&6 |
18200 |
fi |
18201 |
done |
18202 |
|
18203 |
|
18204 |
if test "$ac_cv_header_directfb_h" = yes && test "$ac_cv_func_DirectFBInit" = yes; then |
18205 |
- cat >> confdefs.h <<\EOF |
18206 |
-#define GRDRV_DIRECTFB 1 |
18207 |
-EOF |
18208 |
+ $as_echo "#define GRDRV_DIRECTFB 1" >>confdefs.h |
18209 |
|
18210 |
drivers="$drivers DIRECTFB" |
18211 |
else |
18212 |
@@ -11898,17 +9108,13 @@ if test "$disable_x" != yes; then |
18213 |
CPPFLAGS_X="$CPPFLAGS" |
18214 |
LIBS_X="$LIBS" |
18215 |
|
18216 |
- # If we find X, set shell vars x_includes and x_libraries to the |
18217 |
-# paths, otherwise set no_x=yes. |
18218 |
-# Uses ac_ vars as temps to allow command line to override cache and checks. |
18219 |
-# --without-x overrides everything else, but does not touch the cache. |
18220 |
-echo $ac_n "checking for X""... $ac_c" 1>&6 |
18221 |
-echo "configure:11905: checking for X" >&5 |
18222 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
18223 |
+$as_echo_n "checking for X... " >&6; } |
18224 |
|
18225 |
-# Check whether --with-x or --without-x was given. |
18226 |
-if test "${with_x+set}" = set; then |
18227 |
- withval="$with_x" |
18228 |
- : |
18229 |
+ |
18230 |
+# Check whether --with-x was given. |
18231 |
+if test "${with_x+set}" = set; then : |
18232 |
+ withval=$with_x; |
18233 |
fi |
18234 |
|
18235 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
18236 |
@@ -11916,512 +9122,455 @@ if test "x$with_x" = xno; then |
18237 |
# The user explicitly disabled X. |
18238 |
have_x=disabled |
18239 |
else |
18240 |
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
18241 |
- # Both variables are already set. |
18242 |
- have_x=yes |
18243 |
- else |
18244 |
-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
18245 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18246 |
+ case $x_includes,$x_libraries in #( |
18247 |
+ *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
18248 |
+ *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
18249 |
+ $as_echo_n "(cached) " >&6 |
18250 |
else |
18251 |
# One or both of the vars are not set, and there is no cached value. |
18252 |
-ac_x_includes=NO ac_x_libraries=NO |
18253 |
-rm -fr conftestdir |
18254 |
-if mkdir conftestdir; then |
18255 |
- cd conftestdir |
18256 |
- # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
18257 |
- cat > Imakefile <<'EOF' |
18258 |
-acfindx: |
18259 |
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
18260 |
-EOF |
18261 |
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
18262 |
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
18263 |
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
18264 |
+ac_x_includes=no ac_x_libraries=no |
18265 |
+rm -f -r conftest.dir |
18266 |
+if mkdir conftest.dir; then |
18267 |
+ cd conftest.dir |
18268 |
+ cat >Imakefile <<'_ACEOF' |
18269 |
+incroot: |
18270 |
+ @echo incroot='${INCROOT}' |
18271 |
+usrlibdir: |
18272 |
+ @echo usrlibdir='${USRLIBDIR}' |
18273 |
+libdir: |
18274 |
+ @echo libdir='${LIBDIR}' |
18275 |
+_ACEOF |
18276 |
+ if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
18277 |
+ # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
18278 |
+ for ac_var in incroot usrlibdir libdir; do |
18279 |
+ eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
18280 |
+ done |
18281 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
18282 |
- for ac_extension in a so sl; do |
18283 |
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
18284 |
- test -f $ac_im_libdir/libX11.$ac_extension; then |
18285 |
- ac_im_usrlibdir=$ac_im_libdir; break |
18286 |
+ for ac_extension in a so sl dylib la dll; do |
18287 |
+ if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
18288 |
+ test -f "$ac_im_libdir/libX11.$ac_extension"; then |
18289 |
+ ac_im_usrlibdir=$ac_im_libdir; break |
18290 |
fi |
18291 |
done |
18292 |
# Screen out bogus values from the imake configuration. They are |
18293 |
# bogus both because they are the default anyway, and because |
18294 |
# using them would break gcc on systems where it needs fixed includes. |
18295 |
- case "$ac_im_incroot" in |
18296 |
- /usr/include) ;; |
18297 |
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
18298 |
+ case $ac_im_incroot in |
18299 |
+ /usr/include) ac_x_includes= ;; |
18300 |
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
18301 |
esac |
18302 |
- case "$ac_im_usrlibdir" in |
18303 |
- /usr/lib | /lib) ;; |
18304 |
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
18305 |
+ case $ac_im_usrlibdir in |
18306 |
+ /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
18307 |
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
18308 |
esac |
18309 |
fi |
18310 |
cd .. |
18311 |
- rm -fr conftestdir |
18312 |
+ rm -f -r conftest.dir |
18313 |
fi |
18314 |
|
18315 |
-if test "$ac_x_includes" = NO; then |
18316 |
- # Guess where to find include files, by looking for this one X11 .h file. |
18317 |
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
18318 |
+# Standard set of common directories for X headers. |
18319 |
+# Check X11 before X11Rn because it is often a symlink to the current release. |
18320 |
+ac_x_header_dirs=' |
18321 |
+/usr/X11/include |
18322 |
+/usr/X11R7/include |
18323 |
+/usr/X11R6/include |
18324 |
+/usr/X11R5/include |
18325 |
+/usr/X11R4/include |
18326 |
+ |
18327 |
+/usr/include/X11 |
18328 |
+/usr/include/X11R7 |
18329 |
+/usr/include/X11R6 |
18330 |
+/usr/include/X11R5 |
18331 |
+/usr/include/X11R4 |
18332 |
+ |
18333 |
+/usr/local/X11/include |
18334 |
+/usr/local/X11R7/include |
18335 |
+/usr/local/X11R6/include |
18336 |
+/usr/local/X11R5/include |
18337 |
+/usr/local/X11R4/include |
18338 |
+ |
18339 |
+/usr/local/include/X11 |
18340 |
+/usr/local/include/X11R7 |
18341 |
+/usr/local/include/X11R6 |
18342 |
+/usr/local/include/X11R5 |
18343 |
+/usr/local/include/X11R4 |
18344 |
+ |
18345 |
+/usr/X386/include |
18346 |
+/usr/x386/include |
18347 |
+/usr/XFree86/include/X11 |
18348 |
+ |
18349 |
+/usr/include |
18350 |
+/usr/local/include |
18351 |
+/usr/unsupported/include |
18352 |
+/usr/athena/include |
18353 |
+/usr/local/x11r5/include |
18354 |
+/usr/lpp/Xamples/include |
18355 |
|
18356 |
+/usr/openwin/include |
18357 |
+/usr/openwin/share/include' |
18358 |
+ |
18359 |
+if test "$ac_x_includes" = no; then |
18360 |
+ # Guess where to find include files, by looking for Xlib.h. |
18361 |
# First, try using that file with no special directory specified. |
18362 |
-cat > conftest.$ac_ext <<EOF |
18363 |
-#line 11967 "configure" |
18364 |
-#include "confdefs.h" |
18365 |
-#include <$x_direct_test_include> |
18366 |
-EOF |
18367 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
18368 |
-{ (eval echo configure:11972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18369 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18370 |
-if test -z "$ac_err"; then |
18371 |
- rm -rf conftest* |
18372 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18373 |
+/* end confdefs.h. */ |
18374 |
+#include <X11/Xlib.h> |
18375 |
+_ACEOF |
18376 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
18377 |
# We can compile using X headers with no special include directory. |
18378 |
ac_x_includes= |
18379 |
else |
18380 |
- echo "$ac_err" >&5 |
18381 |
- echo "configure: failed program was:" >&5 |
18382 |
- cat conftest.$ac_ext >&5 |
18383 |
- rm -rf conftest* |
18384 |
- # Look for the header file in a standard set of common directories. |
18385 |
-# Check X11 before X11Rn because it is often a symlink to the current release. |
18386 |
- for ac_dir in \ |
18387 |
- /usr/X11/include \ |
18388 |
- /usr/X11R7/include \ |
18389 |
- /usr/X11R6/include \ |
18390 |
- /usr/X11R5/include \ |
18391 |
- /usr/X11R4/include \ |
18392 |
- \ |
18393 |
- /usr/include/X11 \ |
18394 |
- /usr/include/X11R7 \ |
18395 |
- /usr/include/X11R6 \ |
18396 |
- /usr/include/X11R5 \ |
18397 |
- /usr/include/X11R4 \ |
18398 |
- \ |
18399 |
- /usr/local/X11/include \ |
18400 |
- /usr/local/X11R7/include \ |
18401 |
- /usr/local/X11R6/include \ |
18402 |
- /usr/local/X11R5/include \ |
18403 |
- /usr/local/X11R4/include \ |
18404 |
- \ |
18405 |
- /usr/local/include/X11 \ |
18406 |
- /usr/local/include/X11R7 \ |
18407 |
- /usr/local/include/X11R6 \ |
18408 |
- /usr/local/include/X11R5 \ |
18409 |
- /usr/local/include/X11R4 \ |
18410 |
- \ |
18411 |
- /usr/X386/include \ |
18412 |
- /usr/x386/include \ |
18413 |
- /usr/XFree86/include/X11 \ |
18414 |
- \ |
18415 |
- /usr/include \ |
18416 |
- /usr/local/include \ |
18417 |
- /usr/unsupported/include \ |
18418 |
- /usr/athena/include \ |
18419 |
- /usr/local/x11r5/include \ |
18420 |
- /usr/lpp/Xamples/include \ |
18421 |
- \ |
18422 |
- /usr/openwin/include \ |
18423 |
- /usr/openwin/share/include \ |
18424 |
- ; \ |
18425 |
- do |
18426 |
- if test -r "$ac_dir/$x_direct_test_include"; then |
18427 |
- ac_x_includes=$ac_dir |
18428 |
- break |
18429 |
- fi |
18430 |
- done |
18431 |
+ for ac_dir in $ac_x_header_dirs; do |
18432 |
+ if test -r "$ac_dir/X11/Xlib.h"; then |
18433 |
+ ac_x_includes=$ac_dir |
18434 |
+ break |
18435 |
+ fi |
18436 |
+done |
18437 |
fi |
18438 |
-rm -f conftest* |
18439 |
-fi # $ac_x_includes = NO |
18440 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
18441 |
+fi # $ac_x_includes = no |
18442 |
|
18443 |
-if test "$ac_x_libraries" = NO; then |
18444 |
+if test "$ac_x_libraries" = no; then |
18445 |
# Check for the libraries. |
18446 |
- |
18447 |
- test -z "$x_direct_test_library" && x_direct_test_library=Xt |
18448 |
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
18449 |
- |
18450 |
# See if we find them without any special options. |
18451 |
# Don't add to $LIBS permanently. |
18452 |
- ac_save_LIBS="$LIBS" |
18453 |
- LIBS="-l$x_direct_test_library $LIBS" |
18454 |
-cat > conftest.$ac_ext <<EOF |
18455 |
-#line 12041 "configure" |
18456 |
-#include "confdefs.h" |
18457 |
- |
18458 |
-int main() { |
18459 |
-${x_direct_test_function}() |
18460 |
-; return 0; } |
18461 |
-EOF |
18462 |
-if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18463 |
- rm -rf conftest* |
18464 |
- LIBS="$ac_save_LIBS" |
18465 |
+ ac_save_LIBS=$LIBS |
18466 |
+ LIBS="-lX11 $LIBS" |
18467 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18468 |
+/* end confdefs.h. */ |
18469 |
+#include <X11/Xlib.h> |
18470 |
+int |
18471 |
+main () |
18472 |
+{ |
18473 |
+XrmInitialize () |
18474 |
+ ; |
18475 |
+ return 0; |
18476 |
+} |
18477 |
+_ACEOF |
18478 |
+if ac_fn_c_try_link "$LINENO"; then : |
18479 |
+ LIBS=$ac_save_LIBS |
18480 |
# We can link X programs with no special library path. |
18481 |
ac_x_libraries= |
18482 |
else |
18483 |
- echo "configure: failed program was:" >&5 |
18484 |
- cat conftest.$ac_ext >&5 |
18485 |
- rm -rf conftest* |
18486 |
- LIBS="$ac_save_LIBS" |
18487 |
-# First see if replacing the include by lib works. |
18488 |
-# Check X11 before X11Rn because it is often a symlink to the current release. |
18489 |
-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
18490 |
- /usr/X11/lib \ |
18491 |
- /usr/X11R7/lib \ |
18492 |
- /usr/X11R6/lib \ |
18493 |
- /usr/X11R5/lib \ |
18494 |
- /usr/X11R4/lib \ |
18495 |
- \ |
18496 |
- /usr/lib/X11 \ |
18497 |
- /usr/lib/X11R7 \ |
18498 |
- /usr/lib/X11R6 \ |
18499 |
- /usr/lib/X11R5 \ |
18500 |
- /usr/lib/X11R4 \ |
18501 |
- \ |
18502 |
- /usr/local/X11/lib \ |
18503 |
- /usr/local/X11R7/lib \ |
18504 |
- /usr/local/X11R6/lib \ |
18505 |
- /usr/local/X11R5/lib \ |
18506 |
- /usr/local/X11R4/lib \ |
18507 |
- \ |
18508 |
- /usr/local/lib/X11 \ |
18509 |
- /usr/local/lib/X11R7 \ |
18510 |
- /usr/local/lib/X11R6 \ |
18511 |
- /usr/local/lib/X11R5 \ |
18512 |
- /usr/local/lib/X11R4 \ |
18513 |
- \ |
18514 |
- /usr/X386/lib \ |
18515 |
- /usr/x386/lib \ |
18516 |
- /usr/XFree86/lib/X11 \ |
18517 |
- \ |
18518 |
- /usr/lib \ |
18519 |
- /usr/local/lib \ |
18520 |
- /usr/unsupported/lib \ |
18521 |
- /usr/athena/lib \ |
18522 |
- /usr/local/x11r5/lib \ |
18523 |
- /usr/lpp/Xamples/lib \ |
18524 |
- /lib/usr/lib/X11 \ |
18525 |
- \ |
18526 |
- /usr/openwin/lib \ |
18527 |
- /usr/openwin/share/lib \ |
18528 |
- ; \ |
18529 |
+ LIBS=$ac_save_LIBS |
18530 |
+for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
18531 |
do |
18532 |
- for ac_extension in a so sl; do |
18533 |
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
18534 |
+ # Don't even attempt the hair of trying to link an X program! |
18535 |
+ for ac_extension in a so sl dylib la dll; do |
18536 |
+ if test -r "$ac_dir/libX11.$ac_extension"; then |
18537 |
ac_x_libraries=$ac_dir |
18538 |
break 2 |
18539 |
fi |
18540 |
done |
18541 |
done |
18542 |
fi |
18543 |
-rm -f conftest* |
18544 |
-fi # $ac_x_libraries = NO |
18545 |
+rm -f core conftest.err conftest.$ac_objext \ |
18546 |
+ conftest$ac_exeext conftest.$ac_ext |
18547 |
+fi # $ac_x_libraries = no |
18548 |
|
18549 |
-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
18550 |
- # Didn't find X anywhere. Cache the known absence of X. |
18551 |
- ac_cv_have_x="have_x=no" |
18552 |
-else |
18553 |
- # Record where we found X for the cache. |
18554 |
- ac_cv_have_x="have_x=yes \ |
18555 |
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
18556 |
-fi |
18557 |
+case $ac_x_includes,$ac_x_libraries in #( |
18558 |
+ no,* | *,no | *\'*) |
18559 |
+ # Didn't find X, or a directory has "'" in its name. |
18560 |
+ ac_cv_have_x="have_x=no";; #( |
18561 |
+ *) |
18562 |
+ # Record where we found X for the cache. |
18563 |
+ ac_cv_have_x="have_x=yes\ |
18564 |
+ ac_x_includes='$ac_x_includes'\ |
18565 |
+ ac_x_libraries='$ac_x_libraries'" |
18566 |
+esac |
18567 |
fi |
18568 |
- fi |
18569 |
+;; #( |
18570 |
+ *) have_x=yes;; |
18571 |
+ esac |
18572 |
eval "$ac_cv_have_x" |
18573 |
fi # $with_x != no |
18574 |
|
18575 |
if test "$have_x" != yes; then |
18576 |
- echo "$ac_t""$have_x" 1>&6 |
18577 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
18578 |
+$as_echo "$have_x" >&6; } |
18579 |
no_x=yes |
18580 |
else |
18581 |
# If each of the values was on the command line, it overrides each guess. |
18582 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
18583 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
18584 |
# Update the cache value to reflect the command line values. |
18585 |
- ac_cv_have_x="have_x=yes \ |
18586 |
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
18587 |
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
18588 |
+ ac_cv_have_x="have_x=yes\ |
18589 |
+ ac_x_includes='$x_includes'\ |
18590 |
+ ac_x_libraries='$x_libraries'" |
18591 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
18592 |
+$as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
18593 |
fi |
18594 |
|
18595 |
|
18596 |
if test "$static_link" != 0; then |
18597 |
- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
18598 |
-echo "configure:12137: checking for pthread_create in -lpthread" >&5 |
18599 |
-ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
18600 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
18601 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18602 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
18603 |
+$as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
18604 |
+if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
18605 |
+ $as_echo_n "(cached) " >&6 |
18606 |
else |
18607 |
- ac_save_LIBS="$LIBS" |
18608 |
-LIBS="-lpthread $LIBS" |
18609 |
-cat > conftest.$ac_ext <<EOF |
18610 |
-#line 12145 "configure" |
18611 |
-#include "confdefs.h" |
18612 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18613 |
-/* We use char because int might match the return type of a gcc2 |
18614 |
- builtin and then its argument prototype would still apply. */ |
18615 |
-char pthread_create(); |
18616 |
+ ac_check_lib_save_LIBS=$LIBS |
18617 |
+LIBS="-pthread $LIBS" |
18618 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18619 |
+/* end confdefs.h. */ |
18620 |
|
18621 |
-int main() { |
18622 |
-pthread_create() |
18623 |
-; return 0; } |
18624 |
-EOF |
18625 |
-if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18626 |
- rm -rf conftest* |
18627 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
18628 |
+/* Override any GCC internal prototype to avoid an error. |
18629 |
+ Use char because int might match the return type of a GCC |
18630 |
+ builtin and then its argument prototype would still apply. */ |
18631 |
+#ifdef __cplusplus |
18632 |
+extern "C" |
18633 |
+#endif |
18634 |
+char pthread_create (); |
18635 |
+int |
18636 |
+main () |
18637 |
+{ |
18638 |
+return pthread_create (); |
18639 |
+ ; |
18640 |
+ return 0; |
18641 |
+} |
18642 |
+_ACEOF |
18643 |
+if ac_fn_c_try_link "$LINENO"; then : |
18644 |
+ ac_cv_lib_pthread_pthread_create=yes |
18645 |
else |
18646 |
- echo "configure: failed program was:" >&5 |
18647 |
- cat conftest.$ac_ext >&5 |
18648 |
- rm -rf conftest* |
18649 |
- eval "ac_cv_lib_$ac_lib_var=no" |
18650 |
+ ac_cv_lib_pthread_pthread_create=no |
18651 |
fi |
18652 |
-rm -f conftest* |
18653 |
-LIBS="$ac_save_LIBS" |
18654 |
- |
18655 |
+rm -f core conftest.err conftest.$ac_objext \ |
18656 |
+ conftest$ac_exeext conftest.$ac_ext |
18657 |
+LIBS=$ac_check_lib_save_LIBS |
18658 |
fi |
18659 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18660 |
- echo "$ac_t""yes" 1>&6 |
18661 |
- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
18662 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
18663 |
- cat >> confdefs.h <<EOF |
18664 |
-#define $ac_tr_lib 1 |
18665 |
-EOF |
18666 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
18667 |
+$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
18668 |
+if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
18669 |
+ cat >>confdefs.h <<_ACEOF |
18670 |
+#define HAVE_LIBPTHREAD 1 |
18671 |
+_ACEOF |
18672 |
|
18673 |
- LIBS="-lpthread $LIBS" |
18674 |
+ LIBS="-pthread $LIBS" |
18675 |
|
18676 |
-else |
18677 |
- echo "$ac_t""no" 1>&6 |
18678 |
fi |
18679 |
|
18680 |
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
18681 |
-echo "configure:12184: checking for dlopen in -ldl" >&5 |
18682 |
-ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18683 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
18684 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18685 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
18686 |
+$as_echo_n "checking for dlopen in -ldl... " >&6; } |
18687 |
+if ${ac_cv_lib_dl_dlopen+:} false; then : |
18688 |
+ $as_echo_n "(cached) " >&6 |
18689 |
else |
18690 |
- ac_save_LIBS="$LIBS" |
18691 |
-LIBS="-ldl $LIBS" |
18692 |
-cat > conftest.$ac_ext <<EOF |
18693 |
-#line 12192 "configure" |
18694 |
-#include "confdefs.h" |
18695 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18696 |
-/* We use char because int might match the return type of a gcc2 |
18697 |
- builtin and then its argument prototype would still apply. */ |
18698 |
-char dlopen(); |
18699 |
+ ac_check_lib_save_LIBS=$LIBS |
18700 |
+LIBS=" $LIBS" |
18701 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18702 |
+/* end confdefs.h. */ |
18703 |
|
18704 |
-int main() { |
18705 |
-dlopen() |
18706 |
-; return 0; } |
18707 |
-EOF |
18708 |
-if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18709 |
- rm -rf conftest* |
18710 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
18711 |
+/* Override any GCC internal prototype to avoid an error. |
18712 |
+ Use char because int might match the return type of a GCC |
18713 |
+ builtin and then its argument prototype would still apply. */ |
18714 |
+#ifdef __cplusplus |
18715 |
+extern "C" |
18716 |
+#endif |
18717 |
+char dlopen (); |
18718 |
+int |
18719 |
+main () |
18720 |
+{ |
18721 |
+return dlopen (); |
18722 |
+ ; |
18723 |
+ return 0; |
18724 |
+} |
18725 |
+_ACEOF |
18726 |
+if ac_fn_c_try_link "$LINENO"; then : |
18727 |
+ ac_cv_lib_dl_dlopen=yes |
18728 |
else |
18729 |
- echo "configure: failed program was:" >&5 |
18730 |
- cat conftest.$ac_ext >&5 |
18731 |
- rm -rf conftest* |
18732 |
- eval "ac_cv_lib_$ac_lib_var=no" |
18733 |
+ ac_cv_lib_dl_dlopen=no |
18734 |
fi |
18735 |
-rm -f conftest* |
18736 |
-LIBS="$ac_save_LIBS" |
18737 |
- |
18738 |
+rm -f core conftest.err conftest.$ac_objext \ |
18739 |
+ conftest$ac_exeext conftest.$ac_ext |
18740 |
+LIBS=$ac_check_lib_save_LIBS |
18741 |
fi |
18742 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18743 |
- echo "$ac_t""yes" 1>&6 |
18744 |
- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
18745 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
18746 |
- cat >> confdefs.h <<EOF |
18747 |
-#define $ac_tr_lib 1 |
18748 |
-EOF |
18749 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
18750 |
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
18751 |
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
18752 |
+ cat >>confdefs.h <<_ACEOF |
18753 |
+#define HAVE_LIBDL 1 |
18754 |
+_ACEOF |
18755 |
|
18756 |
- LIBS="-ldl $LIBS" |
18757 |
+ LIBS=" $LIBS" |
18758 |
|
18759 |
-else |
18760 |
- echo "$ac_t""no" 1>&6 |
18761 |
fi |
18762 |
|
18763 |
- echo $ac_n "checking for XdmcpWrap in -lXdmcp""... $ac_c" 1>&6 |
18764 |
-echo "configure:12231: checking for XdmcpWrap in -lXdmcp" >&5 |
18765 |
-ac_lib_var=`echo Xdmcp'_'XdmcpWrap | sed 'y%./+-%__p_%'` |
18766 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
18767 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18768 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 |
18769 |
+$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } |
18770 |
+if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : |
18771 |
+ $as_echo_n "(cached) " >&6 |
18772 |
else |
18773 |
- ac_save_LIBS="$LIBS" |
18774 |
+ ac_check_lib_save_LIBS=$LIBS |
18775 |
LIBS="-lXdmcp $LIBS" |
18776 |
-cat > conftest.$ac_ext <<EOF |
18777 |
-#line 12239 "configure" |
18778 |
-#include "confdefs.h" |
18779 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18780 |
-/* We use char because int might match the return type of a gcc2 |
18781 |
- builtin and then its argument prototype would still apply. */ |
18782 |
-char XdmcpWrap(); |
18783 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18784 |
+/* end confdefs.h. */ |
18785 |
|
18786 |
-int main() { |
18787 |
-XdmcpWrap() |
18788 |
-; return 0; } |
18789 |
-EOF |
18790 |
-if { (eval echo configure:12250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18791 |
- rm -rf conftest* |
18792 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
18793 |
+/* Override any GCC internal prototype to avoid an error. |
18794 |
+ Use char because int might match the return type of a GCC |
18795 |
+ builtin and then its argument prototype would still apply. */ |
18796 |
+#ifdef __cplusplus |
18797 |
+extern "C" |
18798 |
+#endif |
18799 |
+char XdmcpWrap (); |
18800 |
+int |
18801 |
+main () |
18802 |
+{ |
18803 |
+return XdmcpWrap (); |
18804 |
+ ; |
18805 |
+ return 0; |
18806 |
+} |
18807 |
+_ACEOF |
18808 |
+if ac_fn_c_try_link "$LINENO"; then : |
18809 |
+ ac_cv_lib_Xdmcp_XdmcpWrap=yes |
18810 |
else |
18811 |
- echo "configure: failed program was:" >&5 |
18812 |
- cat conftest.$ac_ext >&5 |
18813 |
- rm -rf conftest* |
18814 |
- eval "ac_cv_lib_$ac_lib_var=no" |
18815 |
+ ac_cv_lib_Xdmcp_XdmcpWrap=no |
18816 |
fi |
18817 |
-rm -f conftest* |
18818 |
-LIBS="$ac_save_LIBS" |
18819 |
- |
18820 |
+rm -f core conftest.err conftest.$ac_objext \ |
18821 |
+ conftest$ac_exeext conftest.$ac_ext |
18822 |
+LIBS=$ac_check_lib_save_LIBS |
18823 |
fi |
18824 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18825 |
- echo "$ac_t""yes" 1>&6 |
18826 |
- ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
18827 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
18828 |
- cat >> confdefs.h <<EOF |
18829 |
-#define $ac_tr_lib 1 |
18830 |
-EOF |
18831 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 |
18832 |
+$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } |
18833 |
+if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : |
18834 |
+ cat >>confdefs.h <<_ACEOF |
18835 |
+#define HAVE_LIBXDMCP 1 |
18836 |
+_ACEOF |
18837 |
|
18838 |
LIBS="-lXdmcp $LIBS" |
18839 |
|
18840 |
-else |
18841 |
- echo "$ac_t""no" 1>&6 |
18842 |
fi |
18843 |
|
18844 |
- echo $ac_n "checking for XauGetBestAuthByAddr in -lXau""... $ac_c" 1>&6 |
18845 |
-echo "configure:12278: checking for XauGetBestAuthByAddr in -lXau" >&5 |
18846 |
-ac_lib_var=`echo Xau'_'XauGetBestAuthByAddr | sed 'y%./+-%__p_%'` |
18847 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
18848 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18849 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5 |
18850 |
+$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; } |
18851 |
+if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then : |
18852 |
+ $as_echo_n "(cached) " >&6 |
18853 |
else |
18854 |
- ac_save_LIBS="$LIBS" |
18855 |
+ ac_check_lib_save_LIBS=$LIBS |
18856 |
LIBS="-lXau $LIBS" |
18857 |
-cat > conftest.$ac_ext <<EOF |
18858 |
-#line 12286 "configure" |
18859 |
-#include "confdefs.h" |
18860 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18861 |
-/* We use char because int might match the return type of a gcc2 |
18862 |
- builtin and then its argument prototype would still apply. */ |
18863 |
-char XauGetBestAuthByAddr(); |
18864 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18865 |
+/* end confdefs.h. */ |
18866 |
|
18867 |
-int main() { |
18868 |
-XauGetBestAuthByAddr() |
18869 |
-; return 0; } |
18870 |
-EOF |
18871 |
-if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18872 |
- rm -rf conftest* |
18873 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
18874 |
+/* Override any GCC internal prototype to avoid an error. |
18875 |
+ Use char because int might match the return type of a GCC |
18876 |
+ builtin and then its argument prototype would still apply. */ |
18877 |
+#ifdef __cplusplus |
18878 |
+extern "C" |
18879 |
+#endif |
18880 |
+char XauGetBestAuthByAddr (); |
18881 |
+int |
18882 |
+main () |
18883 |
+{ |
18884 |
+return XauGetBestAuthByAddr (); |
18885 |
+ ; |
18886 |
+ return 0; |
18887 |
+} |
18888 |
+_ACEOF |
18889 |
+if ac_fn_c_try_link "$LINENO"; then : |
18890 |
+ ac_cv_lib_Xau_XauGetBestAuthByAddr=yes |
18891 |
else |
18892 |
- echo "configure: failed program was:" >&5 |
18893 |
- cat conftest.$ac_ext >&5 |
18894 |
- rm -rf conftest* |
18895 |
- eval "ac_cv_lib_$ac_lib_var=no" |
18896 |
+ ac_cv_lib_Xau_XauGetBestAuthByAddr=no |
18897 |
fi |
18898 |
-rm -f conftest* |
18899 |
-LIBS="$ac_save_LIBS" |
18900 |
- |
18901 |
+rm -f core conftest.err conftest.$ac_objext \ |
18902 |
+ conftest$ac_exeext conftest.$ac_ext |
18903 |
+LIBS=$ac_check_lib_save_LIBS |
18904 |
fi |
18905 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18906 |
- echo "$ac_t""yes" 1>&6 |
18907 |
- ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
18908 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
18909 |
- cat >> confdefs.h <<EOF |
18910 |
-#define $ac_tr_lib 1 |
18911 |
-EOF |
18912 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5 |
18913 |
+$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; } |
18914 |
+if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then : |
18915 |
+ cat >>confdefs.h <<_ACEOF |
18916 |
+#define HAVE_LIBXAU 1 |
18917 |
+_ACEOF |
18918 |
|
18919 |
LIBS="-lXau $LIBS" |
18920 |
|
18921 |
-else |
18922 |
- echo "$ac_t""no" 1>&6 |
18923 |
fi |
18924 |
|
18925 |
- echo $ac_n "checking for xcb_connect in -lxcb""... $ac_c" 1>&6 |
18926 |
-echo "configure:12325: checking for xcb_connect in -lxcb" >&5 |
18927 |
-ac_lib_var=`echo xcb'_'xcb_connect | sed 'y%./+-%__p_%'` |
18928 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
18929 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
18930 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_connect in -lxcb" >&5 |
18931 |
+$as_echo_n "checking for xcb_connect in -lxcb... " >&6; } |
18932 |
+if ${ac_cv_lib_xcb_xcb_connect+:} false; then : |
18933 |
+ $as_echo_n "(cached) " >&6 |
18934 |
else |
18935 |
- ac_save_LIBS="$LIBS" |
18936 |
+ ac_check_lib_save_LIBS=$LIBS |
18937 |
LIBS="-lxcb $LIBS" |
18938 |
-cat > conftest.$ac_ext <<EOF |
18939 |
-#line 12333 "configure" |
18940 |
-#include "confdefs.h" |
18941 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
18942 |
-/* We use char because int might match the return type of a gcc2 |
18943 |
- builtin and then its argument prototype would still apply. */ |
18944 |
-char xcb_connect(); |
18945 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18946 |
+/* end confdefs.h. */ |
18947 |
|
18948 |
-int main() { |
18949 |
-xcb_connect() |
18950 |
-; return 0; } |
18951 |
-EOF |
18952 |
-if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18953 |
- rm -rf conftest* |
18954 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
18955 |
+/* Override any GCC internal prototype to avoid an error. |
18956 |
+ Use char because int might match the return type of a GCC |
18957 |
+ builtin and then its argument prototype would still apply. */ |
18958 |
+#ifdef __cplusplus |
18959 |
+extern "C" |
18960 |
+#endif |
18961 |
+char xcb_connect (); |
18962 |
+int |
18963 |
+main () |
18964 |
+{ |
18965 |
+return xcb_connect (); |
18966 |
+ ; |
18967 |
+ return 0; |
18968 |
+} |
18969 |
+_ACEOF |
18970 |
+if ac_fn_c_try_link "$LINENO"; then : |
18971 |
+ ac_cv_lib_xcb_xcb_connect=yes |
18972 |
else |
18973 |
- echo "configure: failed program was:" >&5 |
18974 |
- cat conftest.$ac_ext >&5 |
18975 |
- rm -rf conftest* |
18976 |
- eval "ac_cv_lib_$ac_lib_var=no" |
18977 |
+ ac_cv_lib_xcb_xcb_connect=no |
18978 |
fi |
18979 |
-rm -f conftest* |
18980 |
-LIBS="$ac_save_LIBS" |
18981 |
- |
18982 |
+rm -f core conftest.err conftest.$ac_objext \ |
18983 |
+ conftest$ac_exeext conftest.$ac_ext |
18984 |
+LIBS=$ac_check_lib_save_LIBS |
18985 |
fi |
18986 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18987 |
- echo "$ac_t""yes" 1>&6 |
18988 |
- ac_tr_lib=HAVE_LIB`echo xcb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
18989 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
18990 |
- cat >> confdefs.h <<EOF |
18991 |
-#define $ac_tr_lib 1 |
18992 |
-EOF |
18993 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_xcb_connect" >&5 |
18994 |
+$as_echo "$ac_cv_lib_xcb_xcb_connect" >&6; } |
18995 |
+if test "x$ac_cv_lib_xcb_xcb_connect" = xyes; then : |
18996 |
+ cat >>confdefs.h <<_ACEOF |
18997 |
+#define HAVE_LIBXCB 1 |
18998 |
+_ACEOF |
18999 |
|
19000 |
LIBS="-lxcb $LIBS" |
19001 |
|
19002 |
-else |
19003 |
- echo "$ac_t""no" 1>&6 |
19004 |
fi |
19005 |
|
19006 |
- echo $ac_n "checking for xcb_get_request_sent in -lxcb-xlib""... $ac_c" 1>&6 |
19007 |
-echo "configure:12372: checking for xcb_get_request_sent in -lxcb-xlib" >&5 |
19008 |
-ac_lib_var=`echo xcb-xlib'_'xcb_get_request_sent | sed 'y%./+-%__p_%'` |
19009 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
19010 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19011 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_get_request_sent in -lxcb-xlib" >&5 |
19012 |
+$as_echo_n "checking for xcb_get_request_sent in -lxcb-xlib... " >&6; } |
19013 |
+if ${ac_cv_lib_xcb_xlib_xcb_get_request_sent+:} false; then : |
19014 |
+ $as_echo_n "(cached) " >&6 |
19015 |
else |
19016 |
- ac_save_LIBS="$LIBS" |
19017 |
+ ac_check_lib_save_LIBS=$LIBS |
19018 |
LIBS="-lxcb-xlib $LIBS" |
19019 |
-cat > conftest.$ac_ext <<EOF |
19020 |
-#line 12380 "configure" |
19021 |
-#include "confdefs.h" |
19022 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
19023 |
-/* We use char because int might match the return type of a gcc2 |
19024 |
- builtin and then its argument prototype would still apply. */ |
19025 |
-char xcb_get_request_sent(); |
19026 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19027 |
+/* end confdefs.h. */ |
19028 |
|
19029 |
-int main() { |
19030 |
-xcb_get_request_sent() |
19031 |
-; return 0; } |
19032 |
-EOF |
19033 |
-if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19034 |
- rm -rf conftest* |
19035 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
19036 |
+/* Override any GCC internal prototype to avoid an error. |
19037 |
+ Use char because int might match the return type of a GCC |
19038 |
+ builtin and then its argument prototype would still apply. */ |
19039 |
+#ifdef __cplusplus |
19040 |
+extern "C" |
19041 |
+#endif |
19042 |
+char xcb_get_request_sent (); |
19043 |
+int |
19044 |
+main () |
19045 |
+{ |
19046 |
+return xcb_get_request_sent (); |
19047 |
+ ; |
19048 |
+ return 0; |
19049 |
+} |
19050 |
+_ACEOF |
19051 |
+if ac_fn_c_try_link "$LINENO"; then : |
19052 |
+ ac_cv_lib_xcb_xlib_xcb_get_request_sent=yes |
19053 |
else |
19054 |
- echo "configure: failed program was:" >&5 |
19055 |
- cat conftest.$ac_ext >&5 |
19056 |
- rm -rf conftest* |
19057 |
- eval "ac_cv_lib_$ac_lib_var=no" |
19058 |
+ ac_cv_lib_xcb_xlib_xcb_get_request_sent=no |
19059 |
fi |
19060 |
-rm -f conftest* |
19061 |
-LIBS="$ac_save_LIBS" |
19062 |
- |
19063 |
+rm -f core conftest.err conftest.$ac_objext \ |
19064 |
+ conftest$ac_exeext conftest.$ac_ext |
19065 |
+LIBS=$ac_check_lib_save_LIBS |
19066 |
fi |
19067 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
19068 |
- echo "$ac_t""yes" 1>&6 |
19069 |
- ac_tr_lib=HAVE_LIB`echo xcb-xlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
19070 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
19071 |
- cat >> confdefs.h <<EOF |
19072 |
-#define $ac_tr_lib 1 |
19073 |
-EOF |
19074 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_xlib_xcb_get_request_sent" >&5 |
19075 |
+$as_echo "$ac_cv_lib_xcb_xlib_xcb_get_request_sent" >&6; } |
19076 |
+if test "x$ac_cv_lib_xcb_xlib_xcb_get_request_sent" = xyes; then : |
19077 |
+ cat >>confdefs.h <<_ACEOF |
19078 |
+#define HAVE_LIBXCB_XLIB 1 |
19079 |
+_ACEOF |
19080 |
|
19081 |
LIBS="-lxcb-xlib $LIBS" |
19082 |
|
19083 |
-else |
19084 |
- echo "$ac_t""no" 1>&6 |
19085 |
fi |
19086 |
|
19087 |
fi |
19088 |
@@ -12432,307 +9581,102 @@ fi |
19089 |
test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes" |
19090 |
fi |
19091 |
|
19092 |
- for ac_hdr in X11/Xlib.h X11/X.h X11/Xutil.h X11/Xatom.h X11/Xlocale.h X11/keysymdef.h |
19093 |
-do |
19094 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19095 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19096 |
-echo "configure:12430: checking for $ac_hdr" >&5 |
19097 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19098 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19099 |
-else |
19100 |
- cat > conftest.$ac_ext <<EOF |
19101 |
-#line 12435 "configure" |
19102 |
-#include "confdefs.h" |
19103 |
-#include <$ac_hdr> |
19104 |
-EOF |
19105 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19106 |
-{ (eval echo configure:12440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19107 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19108 |
-if test -z "$ac_err"; then |
19109 |
- rm -rf conftest* |
19110 |
- eval "ac_cv_header_$ac_safe=yes" |
19111 |
-else |
19112 |
- echo "$ac_err" >&5 |
19113 |
- echo "configure: failed program was:" >&5 |
19114 |
- cat conftest.$ac_ext >&5 |
19115 |
- rm -rf conftest* |
19116 |
- eval "ac_cv_header_$ac_safe=no" |
19117 |
-fi |
19118 |
-rm -f conftest* |
19119 |
-fi |
19120 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19121 |
- echo "$ac_t""yes" 1>&6 |
19122 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19123 |
- cat >> confdefs.h <<EOF |
19124 |
-#define $ac_tr_hdr 1 |
19125 |
-EOF |
19126 |
- |
19127 |
-else |
19128 |
- echo "$ac_t""no" 1>&6 |
19129 |
+ for ac_header in X11/Xlib.h X11/X.h X11/Xutil.h X11/Xatom.h X11/Xlocale.h X11/keysymdef.h |
19130 |
+do : |
19131 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19132 |
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
19133 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
19134 |
+ cat >>confdefs.h <<_ACEOF |
19135 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19136 |
+_ACEOF |
19137 |
+ |
19138 |
fi |
19139 |
+ |
19140 |
done |
19141 |
|
19142 |
|
19143 |
for ac_func in XOpenDisplay |
19144 |
-do |
19145 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19146 |
-echo "configure:12470: checking for $ac_func" >&5 |
19147 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19148 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19149 |
-else |
19150 |
- cat > conftest.$ac_ext <<EOF |
19151 |
-#line 12475 "configure" |
19152 |
-#include "confdefs.h" |
19153 |
-/* System header to define __stub macros and hopefully few prototypes, |
19154 |
- which can conflict with char $ac_func(); below. */ |
19155 |
-#include <assert.h> |
19156 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
19157 |
-/* We use char because int might match the return type of a gcc2 |
19158 |
- builtin and then its argument prototype would still apply. */ |
19159 |
-char $ac_func(); |
19160 |
- |
19161 |
-int main() { |
19162 |
- |
19163 |
-/* The GNU C library defines this for functions which it implements |
19164 |
- to always fail with ENOSYS. Some functions are actually named |
19165 |
- something starting with __ and the normal name is an alias. */ |
19166 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19167 |
-choke me |
19168 |
-#else |
19169 |
-$ac_func(); |
19170 |
-#endif |
19171 |
- |
19172 |
-; return 0; } |
19173 |
-EOF |
19174 |
-if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19175 |
- rm -rf conftest* |
19176 |
- eval "ac_cv_func_$ac_func=yes" |
19177 |
-else |
19178 |
- echo "configure: failed program was:" >&5 |
19179 |
- cat conftest.$ac_ext >&5 |
19180 |
- rm -rf conftest* |
19181 |
- eval "ac_cv_func_$ac_func=no" |
19182 |
-fi |
19183 |
-rm -f conftest* |
19184 |
-fi |
19185 |
+do : |
19186 |
+ ac_fn_c_check_func "$LINENO" "XOpenDisplay" "ac_cv_func_XOpenDisplay" |
19187 |
+if test "x$ac_cv_func_XOpenDisplay" = xyes; then : |
19188 |
+ cat >>confdefs.h <<_ACEOF |
19189 |
+#define HAVE_XOPENDISPLAY 1 |
19190 |
+_ACEOF |
19191 |
|
19192 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19193 |
- echo "$ac_t""yes" 1>&6 |
19194 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
19195 |
- cat >> confdefs.h <<EOF |
19196 |
-#define $ac_tr_func 1 |
19197 |
-EOF |
19198 |
- |
19199 |
-else |
19200 |
- echo "$ac_t""no" 1>&6 |
19201 |
fi |
19202 |
done |
19203 |
|
19204 |
for ac_func in XOpenIM XCloseIM XCreateIC XDestroyIC XwcLookupString |
19205 |
-do |
19206 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19207 |
-echo "configure:12525: checking for $ac_func" >&5 |
19208 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19209 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19210 |
-else |
19211 |
- cat > conftest.$ac_ext <<EOF |
19212 |
-#line 12530 "configure" |
19213 |
-#include "confdefs.h" |
19214 |
-/* System header to define __stub macros and hopefully few prototypes, |
19215 |
- which can conflict with char $ac_func(); below. */ |
19216 |
-#include <assert.h> |
19217 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
19218 |
-/* We use char because int might match the return type of a gcc2 |
19219 |
- builtin and then its argument prototype would still apply. */ |
19220 |
-char $ac_func(); |
19221 |
- |
19222 |
-int main() { |
19223 |
- |
19224 |
-/* The GNU C library defines this for functions which it implements |
19225 |
- to always fail with ENOSYS. Some functions are actually named |
19226 |
- something starting with __ and the normal name is an alias. */ |
19227 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19228 |
-choke me |
19229 |
-#else |
19230 |
-$ac_func(); |
19231 |
-#endif |
19232 |
- |
19233 |
-; return 0; } |
19234 |
-EOF |
19235 |
-if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19236 |
- rm -rf conftest* |
19237 |
- eval "ac_cv_func_$ac_func=yes" |
19238 |
-else |
19239 |
- echo "configure: failed program was:" >&5 |
19240 |
- cat conftest.$ac_ext >&5 |
19241 |
- rm -rf conftest* |
19242 |
- eval "ac_cv_func_$ac_func=no" |
19243 |
-fi |
19244 |
-rm -f conftest* |
19245 |
-fi |
19246 |
+do : |
19247 |
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19248 |
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
19249 |
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
19250 |
+ cat >>confdefs.h <<_ACEOF |
19251 |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19252 |
+_ACEOF |
19253 |
|
19254 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19255 |
- echo "$ac_t""yes" 1>&6 |
19256 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
19257 |
- cat >> confdefs.h <<EOF |
19258 |
-#define $ac_tr_func 1 |
19259 |
-EOF |
19260 |
- |
19261 |
-else |
19262 |
- echo "$ac_t""no" 1>&6 |
19263 |
fi |
19264 |
done |
19265 |
|
19266 |
for ac_func in Xutf8LookupString |
19267 |
-do |
19268 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19269 |
-echo "configure:12580: checking for $ac_func" >&5 |
19270 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19271 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19272 |
-else |
19273 |
- cat > conftest.$ac_ext <<EOF |
19274 |
-#line 12585 "configure" |
19275 |
-#include "confdefs.h" |
19276 |
-/* System header to define __stub macros and hopefully few prototypes, |
19277 |
- which can conflict with char $ac_func(); below. */ |
19278 |
-#include <assert.h> |
19279 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
19280 |
-/* We use char because int might match the return type of a gcc2 |
19281 |
- builtin and then its argument prototype would still apply. */ |
19282 |
-char $ac_func(); |
19283 |
- |
19284 |
-int main() { |
19285 |
- |
19286 |
-/* The GNU C library defines this for functions which it implements |
19287 |
- to always fail with ENOSYS. Some functions are actually named |
19288 |
- something starting with __ and the normal name is an alias. */ |
19289 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19290 |
-choke me |
19291 |
-#else |
19292 |
-$ac_func(); |
19293 |
-#endif |
19294 |
- |
19295 |
-; return 0; } |
19296 |
-EOF |
19297 |
-if { (eval echo configure:12608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19298 |
- rm -rf conftest* |
19299 |
- eval "ac_cv_func_$ac_func=yes" |
19300 |
-else |
19301 |
- echo "configure: failed program was:" >&5 |
19302 |
- cat conftest.$ac_ext >&5 |
19303 |
- rm -rf conftest* |
19304 |
- eval "ac_cv_func_$ac_func=no" |
19305 |
-fi |
19306 |
-rm -f conftest* |
19307 |
-fi |
19308 |
+do : |
19309 |
+ ac_fn_c_check_func "$LINENO" "Xutf8LookupString" "ac_cv_func_Xutf8LookupString" |
19310 |
+if test "x$ac_cv_func_Xutf8LookupString" = xyes; then : |
19311 |
+ cat >>confdefs.h <<_ACEOF |
19312 |
+#define HAVE_XUTF8LOOKUPSTRING 1 |
19313 |
+_ACEOF |
19314 |
|
19315 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19316 |
- echo "$ac_t""yes" 1>&6 |
19317 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
19318 |
- cat >> confdefs.h <<EOF |
19319 |
-#define $ac_tr_func 1 |
19320 |
-EOF |
19321 |
- |
19322 |
-else |
19323 |
- echo "$ac_t""no" 1>&6 |
19324 |
fi |
19325 |
done |
19326 |
|
19327 |
for ac_func in XSupportsLocale XmbTextListToTextProperty |
19328 |
-do |
19329 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19330 |
-echo "configure:12635: checking for $ac_func" >&5 |
19331 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19332 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19333 |
-else |
19334 |
- cat > conftest.$ac_ext <<EOF |
19335 |
-#line 12640 "configure" |
19336 |
-#include "confdefs.h" |
19337 |
-/* System header to define __stub macros and hopefully few prototypes, |
19338 |
- which can conflict with char $ac_func(); below. */ |
19339 |
-#include <assert.h> |
19340 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
19341 |
-/* We use char because int might match the return type of a gcc2 |
19342 |
- builtin and then its argument prototype would still apply. */ |
19343 |
-char $ac_func(); |
19344 |
- |
19345 |
-int main() { |
19346 |
- |
19347 |
-/* The GNU C library defines this for functions which it implements |
19348 |
- to always fail with ENOSYS. Some functions are actually named |
19349 |
- something starting with __ and the normal name is an alias. */ |
19350 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
19351 |
-choke me |
19352 |
-#else |
19353 |
-$ac_func(); |
19354 |
-#endif |
19355 |
- |
19356 |
-; return 0; } |
19357 |
-EOF |
19358 |
-if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19359 |
- rm -rf conftest* |
19360 |
- eval "ac_cv_func_$ac_func=yes" |
19361 |
-else |
19362 |
- echo "configure: failed program was:" >&5 |
19363 |
- cat conftest.$ac_ext >&5 |
19364 |
- rm -rf conftest* |
19365 |
- eval "ac_cv_func_$ac_func=no" |
19366 |
-fi |
19367 |
-rm -f conftest* |
19368 |
-fi |
19369 |
+do : |
19370 |
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19371 |
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
19372 |
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
19373 |
+ cat >>confdefs.h <<_ACEOF |
19374 |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19375 |
+_ACEOF |
19376 |
|
19377 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19378 |
- echo "$ac_t""yes" 1>&6 |
19379 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
19380 |
- cat >> confdefs.h <<EOF |
19381 |
-#define $ac_tr_func 1 |
19382 |
-EOF |
19383 |
- |
19384 |
-else |
19385 |
- echo "$ac_t""no" 1>&6 |
19386 |
fi |
19387 |
done |
19388 |
|
19389 |
|
19390 |
- echo $ac_n "checking for Xsetlocale""... $ac_c" 1>&6 |
19391 |
-echo "configure:12689: checking for Xsetlocale" >&5 |
19392 |
-if eval "test \"`echo '$''{'ac_cv_have_Xsetlocale'+set}'`\" = set"; then |
19393 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19394 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xsetlocale" >&5 |
19395 |
+$as_echo_n "checking for Xsetlocale... " >&6; } |
19396 |
+if ${ac_cv_have_Xsetlocale+:} false; then : |
19397 |
+ $as_echo_n "(cached) " >&6 |
19398 |
else |
19399 |
- cat > conftest.$ac_ext <<EOF |
19400 |
-#line 12694 "configure" |
19401 |
-#include "confdefs.h" |
19402 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19403 |
+/* end confdefs.h. */ |
19404 |
#include <X11/Xlocale.h> |
19405 |
-int main() { |
19406 |
+int |
19407 |
+main () |
19408 |
+{ |
19409 |
setlocale(0, NULL); return 0; |
19410 |
-; return 0; } |
19411 |
-EOF |
19412 |
-if { (eval echo configure:12701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19413 |
- rm -rf conftest* |
19414 |
+ ; |
19415 |
+ return 0; |
19416 |
+} |
19417 |
+_ACEOF |
19418 |
+if ac_fn_c_try_link "$LINENO"; then : |
19419 |
ac_cv_have_Xsetlocale=yes |
19420 |
else |
19421 |
- echo "configure: failed program was:" >&5 |
19422 |
- cat conftest.$ac_ext >&5 |
19423 |
- rm -rf conftest* |
19424 |
ac_cv_have_Xsetlocale=no |
19425 |
fi |
19426 |
-rm -f conftest* |
19427 |
- |
19428 |
-fi |
19429 |
+rm -f core conftest.err conftest.$ac_objext \ |
19430 |
+ conftest$ac_exeext conftest.$ac_ext |
19431 |
|
19432 |
-echo "$ac_t""$ac_cv_have_Xsetlocale" 1>&6 |
19433 |
+fi |
19434 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_Xsetlocale" >&5 |
19435 |
+$as_echo "$ac_cv_have_Xsetlocale" >&6; } |
19436 |
if test "$ac_cv_have_Xsetlocale" = yes; then |
19437 |
- cat >> confdefs.h <<\EOF |
19438 |
-#define HAVE_XSETLOCALE 1 |
19439 |
-EOF |
19440 |
+ $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
19441 |
|
19442 |
fi |
19443 |
|
19444 |
|
19445 |
if test "$have_x" = yes -o "$ac_cv_have_x2" != no && test "$ac_cv_func_XOpenDisplay" = yes && test "$ac_cv_header_X11_Xlib_h" = yes && test "$ac_cv_header_X11_X_h" = yes && test "$ac_cv_header_X11_Xutil_h" = yes && test "$ac_cv_header_X11_Xatom_h" = yes && test "$ac_cv_header_X11_keysymdef_h" = yes; then |
19446 |
- cat >> confdefs.h <<\EOF |
19447 |
-#define GRDRV_X 1 |
19448 |
-EOF |
19449 |
+ $as_echo "#define GRDRV_X 1" >>confdefs.h |
19450 |
|
19451 |
drivers="$drivers X" |
19452 |
else |
19453 |
@@ -12743,43 +9687,41 @@ fi |
19454 |
|
19455 |
|
19456 |
if test "$disable_pmshell" != yes; then |
19457 |
- echo $ac_n "checking for pmshell""... $ac_c" 1>&6 |
19458 |
-echo "configure:12738: checking for pmshell" >&5 |
19459 |
-if eval "test \"`echo '$''{'ac_cv_have_pmshell'+set}'`\" = set"; then |
19460 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19461 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmshell" >&5 |
19462 |
+$as_echo_n "checking for pmshell... " >&6; } |
19463 |
+if ${ac_cv_have_pmshell+:} false; then : |
19464 |
+ $as_echo_n "(cached) " >&6 |
19465 |
else |
19466 |
- cat > conftest.$ac_ext <<EOF |
19467 |
-#line 12743 "configure" |
19468 |
-#include "confdefs.h" |
19469 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19470 |
+/* end confdefs.h. */ |
19471 |
#define INCL_WIN |
19472 |
#define INCL_GPI |
19473 |
#include <os2.h> |
19474 |
#include <sys/fmutex.h> |
19475 |
-int main() { |
19476 |
+int |
19477 |
+main () |
19478 |
+{ |
19479 |
_fmutex mutex; |
19480 |
WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0), |
19481 |
GpiSetPel(NULLHANDLE, NULL) |
19482 |
-; return 0; } |
19483 |
-EOF |
19484 |
-if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19485 |
- rm -rf conftest* |
19486 |
+ ; |
19487 |
+ return 0; |
19488 |
+} |
19489 |
+_ACEOF |
19490 |
+if ac_fn_c_try_link "$LINENO"; then : |
19491 |
ac_cv_have_pmshell=yes |
19492 |
else |
19493 |
- echo "configure: failed program was:" >&5 |
19494 |
- cat conftest.$ac_ext >&5 |
19495 |
- rm -rf conftest* |
19496 |
ac_cv_have_pmshell=no |
19497 |
fi |
19498 |
-rm -f conftest* |
19499 |
- |
19500 |
-fi |
19501 |
+rm -f core conftest.err conftest.$ac_objext \ |
19502 |
+ conftest$ac_exeext conftest.$ac_ext |
19503 |
|
19504 |
-echo "$ac_t""$ac_cv_have_pmshell" 1>&6 |
19505 |
+fi |
19506 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pmshell" >&5 |
19507 |
+$as_echo "$ac_cv_have_pmshell" >&6; } |
19508 |
|
19509 |
if test "$ac_cv_have_pmshell" = yes; then |
19510 |
- cat >> confdefs.h <<\EOF |
19511 |
-#define GRDRV_PMSHELL 1 |
19512 |
-EOF |
19513 |
+ $as_echo "#define GRDRV_PMSHELL 1" >>confdefs.h |
19514 |
|
19515 |
drivers="$drivers PMSHELL" |
19516 |
fi |
19517 |
@@ -12787,173 +9729,143 @@ fi |
19518 |
|
19519 |
if test "$disable_windows" != yes; then |
19520 |
LIBS_X="$LIBS" |
19521 |
- for ac_hdr in windowsx.h |
19522 |
-do |
19523 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19524 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19525 |
-echo "configure:12785: checking for $ac_hdr" >&5 |
19526 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19527 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19528 |
-else |
19529 |
- cat > conftest.$ac_ext <<EOF |
19530 |
-#line 12790 "configure" |
19531 |
-#include "confdefs.h" |
19532 |
-#include <$ac_hdr> |
19533 |
-EOF |
19534 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19535 |
-{ (eval echo configure:12795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19536 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19537 |
-if test -z "$ac_err"; then |
19538 |
- rm -rf conftest* |
19539 |
- eval "ac_cv_header_$ac_safe=yes" |
19540 |
-else |
19541 |
- echo "$ac_err" >&5 |
19542 |
- echo "configure: failed program was:" >&5 |
19543 |
- cat conftest.$ac_ext >&5 |
19544 |
- rm -rf conftest* |
19545 |
- eval "ac_cv_header_$ac_safe=no" |
19546 |
-fi |
19547 |
-rm -f conftest* |
19548 |
-fi |
19549 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19550 |
- echo "$ac_t""yes" 1>&6 |
19551 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19552 |
- cat >> confdefs.h <<EOF |
19553 |
-#define $ac_tr_hdr 1 |
19554 |
-EOF |
19555 |
- |
19556 |
-else |
19557 |
- echo "$ac_t""no" 1>&6 |
19558 |
+ for ac_header in windowsx.h |
19559 |
+do : |
19560 |
+ ac_fn_c_check_header_mongrel "$LINENO" "windowsx.h" "ac_cv_header_windowsx_h" "$ac_includes_default" |
19561 |
+if test "x$ac_cv_header_windowsx_h" = xyes; then : |
19562 |
+ cat >>confdefs.h <<_ACEOF |
19563 |
+#define HAVE_WINDOWSX_H 1 |
19564 |
+_ACEOF |
19565 |
+ |
19566 |
fi |
19567 |
+ |
19568 |
done |
19569 |
|
19570 |
- echo $ac_n "checking for ReleaseDC""... $ac_c" 1>&6 |
19571 |
-echo "configure:12822: checking for ReleaseDC" >&5 |
19572 |
-if eval "test \"`echo '$''{'ac_cv_have_windows11'+set}'`\" = set"; then |
19573 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19574 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ReleaseDC" >&5 |
19575 |
+$as_echo_n "checking for ReleaseDC... " >&6; } |
19576 |
+if ${ac_cv_have_windows11+:} false; then : |
19577 |
+ $as_echo_n "(cached) " >&6 |
19578 |
else |
19579 |
- cat > conftest.$ac_ext <<EOF |
19580 |
-#line 12827 "configure" |
19581 |
-#include "confdefs.h" |
19582 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19583 |
+/* end confdefs.h. */ |
19584 |
|
19585 |
#include <windows.h> |
19586 |
#include <pthread.h> |
19587 |
-int main() { |
19588 |
+int |
19589 |
+main () |
19590 |
+{ |
19591 |
ReleaseDC(NULL, NULL) |
19592 |
-; return 0; } |
19593 |
-EOF |
19594 |
-if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19595 |
- rm -rf conftest* |
19596 |
+ ; |
19597 |
+ return 0; |
19598 |
+} |
19599 |
+_ACEOF |
19600 |
+if ac_fn_c_try_link "$LINENO"; then : |
19601 |
ac_cv_have_windows11=yes |
19602 |
else |
19603 |
- echo "configure: failed program was:" >&5 |
19604 |
- cat conftest.$ac_ext >&5 |
19605 |
- rm -rf conftest* |
19606 |
ac_cv_have_windows11=no |
19607 |
fi |
19608 |
-rm -f conftest* |
19609 |
- |
19610 |
-fi |
19611 |
+rm -f core conftest.err conftest.$ac_objext \ |
19612 |
+ conftest$ac_exeext conftest.$ac_ext |
19613 |
|
19614 |
-echo "$ac_t""$ac_cv_have_windows11" 1>&6 |
19615 |
+fi |
19616 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_windows11" >&5 |
19617 |
+$as_echo "$ac_cv_have_windows11" >&6; } |
19618 |
if test "$ac_cv_have_windows11" = no; then |
19619 |
LIBS="-luser32 $LIBS" |
19620 |
- echo $ac_n "checking for ReleaseDC in -luser32""... $ac_c" 1>&6 |
19621 |
-echo "configure:12853: checking for ReleaseDC in -luser32" >&5 |
19622 |
-if eval "test \"`echo '$''{'ac_cv_have_windows12'+set}'`\" = set"; then |
19623 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19624 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ReleaseDC in -luser32" >&5 |
19625 |
+$as_echo_n "checking for ReleaseDC in -luser32... " >&6; } |
19626 |
+if ${ac_cv_have_windows12+:} false; then : |
19627 |
+ $as_echo_n "(cached) " >&6 |
19628 |
else |
19629 |
- cat > conftest.$ac_ext <<EOF |
19630 |
-#line 12858 "configure" |
19631 |
-#include "confdefs.h" |
19632 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19633 |
+/* end confdefs.h. */ |
19634 |
|
19635 |
#include <windows.h> |
19636 |
#include <pthread.h> |
19637 |
-int main() { |
19638 |
+int |
19639 |
+main () |
19640 |
+{ |
19641 |
ReleaseDC(NULL, NULL) |
19642 |
-; return 0; } |
19643 |
-EOF |
19644 |
-if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19645 |
- rm -rf conftest* |
19646 |
+ ; |
19647 |
+ return 0; |
19648 |
+} |
19649 |
+_ACEOF |
19650 |
+if ac_fn_c_try_link "$LINENO"; then : |
19651 |
ac_cv_have_windows12=yes |
19652 |
else |
19653 |
- echo "configure: failed program was:" >&5 |
19654 |
- cat conftest.$ac_ext >&5 |
19655 |
- rm -rf conftest* |
19656 |
ac_cv_have_windows12=no |
19657 |
fi |
19658 |
-rm -f conftest* |
19659 |
- |
19660 |
-fi |
19661 |
+rm -f core conftest.err conftest.$ac_objext \ |
19662 |
+ conftest$ac_exeext conftest.$ac_ext |
19663 |
|
19664 |
-echo "$ac_t""$ac_cv_have_windows12" 1>&6 |
19665 |
+fi |
19666 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_windows12" >&5 |
19667 |
+$as_echo "$ac_cv_have_windows12" >&6; } |
19668 |
fi |
19669 |
- echo $ac_n "checking for GdiFlush""... $ac_c" 1>&6 |
19670 |
-echo "configure:12883: checking for GdiFlush" >&5 |
19671 |
-if eval "test \"`echo '$''{'ac_cv_have_windows21'+set}'`\" = set"; then |
19672 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19673 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GdiFlush" >&5 |
19674 |
+$as_echo_n "checking for GdiFlush... " >&6; } |
19675 |
+if ${ac_cv_have_windows21+:} false; then : |
19676 |
+ $as_echo_n "(cached) " >&6 |
19677 |
else |
19678 |
- cat > conftest.$ac_ext <<EOF |
19679 |
-#line 12888 "configure" |
19680 |
-#include "confdefs.h" |
19681 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19682 |
+/* end confdefs.h. */ |
19683 |
|
19684 |
#include <windows.h> |
19685 |
#include <pthread.h> |
19686 |
-int main() { |
19687 |
+int |
19688 |
+main () |
19689 |
+{ |
19690 |
GdiFlush() |
19691 |
-; return 0; } |
19692 |
-EOF |
19693 |
-if { (eval echo configure:12897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19694 |
- rm -rf conftest* |
19695 |
+ ; |
19696 |
+ return 0; |
19697 |
+} |
19698 |
+_ACEOF |
19699 |
+if ac_fn_c_try_link "$LINENO"; then : |
19700 |
ac_cv_have_windows21=yes |
19701 |
else |
19702 |
- echo "configure: failed program was:" >&5 |
19703 |
- cat conftest.$ac_ext >&5 |
19704 |
- rm -rf conftest* |
19705 |
ac_cv_have_windows21=no |
19706 |
fi |
19707 |
-rm -f conftest* |
19708 |
- |
19709 |
-fi |
19710 |
+rm -f core conftest.err conftest.$ac_objext \ |
19711 |
+ conftest$ac_exeext conftest.$ac_ext |
19712 |
|
19713 |
-echo "$ac_t""$ac_cv_have_windows21" 1>&6 |
19714 |
+fi |
19715 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_windows21" >&5 |
19716 |
+$as_echo "$ac_cv_have_windows21" >&6; } |
19717 |
if test "$ac_cv_have_windows21" = no; then |
19718 |
LIBS="-lgdi32 $LIBS" |
19719 |
- echo $ac_n "checking for GdiFlush in -lgdi32""... $ac_c" 1>&6 |
19720 |
-echo "configure:12914: checking for GdiFlush in -lgdi32" >&5 |
19721 |
-if eval "test \"`echo '$''{'ac_cv_have_windows22'+set}'`\" = set"; then |
19722 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19723 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GdiFlush in -lgdi32" >&5 |
19724 |
+$as_echo_n "checking for GdiFlush in -lgdi32... " >&6; } |
19725 |
+if ${ac_cv_have_windows22+:} false; then : |
19726 |
+ $as_echo_n "(cached) " >&6 |
19727 |
else |
19728 |
- cat > conftest.$ac_ext <<EOF |
19729 |
-#line 12919 "configure" |
19730 |
-#include "confdefs.h" |
19731 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19732 |
+/* end confdefs.h. */ |
19733 |
|
19734 |
#include <windows.h> |
19735 |
#include <pthread.h> |
19736 |
-int main() { |
19737 |
+int |
19738 |
+main () |
19739 |
+{ |
19740 |
GdiFlush() |
19741 |
-; return 0; } |
19742 |
-EOF |
19743 |
-if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
19744 |
- rm -rf conftest* |
19745 |
+ ; |
19746 |
+ return 0; |
19747 |
+} |
19748 |
+_ACEOF |
19749 |
+if ac_fn_c_try_link "$LINENO"; then : |
19750 |
ac_cv_have_windows22=yes |
19751 |
else |
19752 |
- echo "configure: failed program was:" >&5 |
19753 |
- cat conftest.$ac_ext >&5 |
19754 |
- rm -rf conftest* |
19755 |
ac_cv_have_windows22=no |
19756 |
fi |
19757 |
-rm -f conftest* |
19758 |
- |
19759 |
-fi |
19760 |
+rm -f core conftest.err conftest.$ac_objext \ |
19761 |
+ conftest$ac_exeext conftest.$ac_ext |
19762 |
|
19763 |
-echo "$ac_t""$ac_cv_have_windows22" 1>&6 |
19764 |
+fi |
19765 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_windows22" >&5 |
19766 |
+$as_echo "$ac_cv_have_windows22" >&6; } |
19767 |
fi |
19768 |
if test "$ac_cv_have_windows11" = yes -o "$ac_cv_have_windows12" = yes && |
19769 |
test "$ac_cv_have_windows21" = yes -o "$ac_cv_have_windows22" = yes; then |
19770 |
- cat >> confdefs.h <<\EOF |
19771 |
-#define GRDRV_PMSHELL 1 |
19772 |
-EOF |
19773 |
+ $as_echo "#define GRDRV_PMSHELL 1" >>confdefs.h |
19774 |
|
19775 |
drivers="$drivers WINDOWS" |
19776 |
else |
19777 |
@@ -12964,244 +9876,76 @@ fi |
19778 |
if test "$disable_atheos" != yes; then |
19779 |
old_ext="$ac_ext" |
19780 |
ac_ext=cpp |
19781 |
- for ac_hdr in gui/view.h |
19782 |
-do |
19783 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19784 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19785 |
-echo "configure:12962: checking for $ac_hdr" >&5 |
19786 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19787 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19788 |
-else |
19789 |
- cat > conftest.$ac_ext <<EOF |
19790 |
-#line 12967 "configure" |
19791 |
-#include "confdefs.h" |
19792 |
-#include <$ac_hdr> |
19793 |
-EOF |
19794 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19795 |
-{ (eval echo configure:12972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19796 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19797 |
-if test -z "$ac_err"; then |
19798 |
- rm -rf conftest* |
19799 |
- eval "ac_cv_header_$ac_safe=yes" |
19800 |
-else |
19801 |
- echo "$ac_err" >&5 |
19802 |
- echo "configure: failed program was:" >&5 |
19803 |
- cat conftest.$ac_ext >&5 |
19804 |
- rm -rf conftest* |
19805 |
- eval "ac_cv_header_$ac_safe=no" |
19806 |
-fi |
19807 |
-rm -f conftest* |
19808 |
-fi |
19809 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19810 |
- echo "$ac_t""yes" 1>&6 |
19811 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19812 |
- cat >> confdefs.h <<EOF |
19813 |
-#define $ac_tr_hdr 1 |
19814 |
-EOF |
19815 |
- |
19816 |
-else |
19817 |
- echo "$ac_t""no" 1>&6 |
19818 |
+ for ac_header in gui/view.h |
19819 |
+do : |
19820 |
+ ac_fn_c_check_header_mongrel "$LINENO" "gui/view.h" "ac_cv_header_gui_view_h" "$ac_includes_default" |
19821 |
+if test "x$ac_cv_header_gui_view_h" = xyes; then : |
19822 |
+ cat >>confdefs.h <<_ACEOF |
19823 |
+#define HAVE_GUI_VIEW_H 1 |
19824 |
+_ACEOF |
19825 |
+ |
19826 |
fi |
19827 |
+ |
19828 |
done |
19829 |
|
19830 |
- for ac_hdr in gui/window.h |
19831 |
-do |
19832 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19833 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19834 |
-echo "configure:13002: checking for $ac_hdr" >&5 |
19835 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19836 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19837 |
-else |
19838 |
- cat > conftest.$ac_ext <<EOF |
19839 |
-#line 13007 "configure" |
19840 |
-#include "confdefs.h" |
19841 |
-#include <$ac_hdr> |
19842 |
-EOF |
19843 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19844 |
-{ (eval echo configure:13012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19845 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19846 |
-if test -z "$ac_err"; then |
19847 |
- rm -rf conftest* |
19848 |
- eval "ac_cv_header_$ac_safe=yes" |
19849 |
-else |
19850 |
- echo "$ac_err" >&5 |
19851 |
- echo "configure: failed program was:" >&5 |
19852 |
- cat conftest.$ac_ext >&5 |
19853 |
- rm -rf conftest* |
19854 |
- eval "ac_cv_header_$ac_safe=no" |
19855 |
-fi |
19856 |
-rm -f conftest* |
19857 |
-fi |
19858 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19859 |
- echo "$ac_t""yes" 1>&6 |
19860 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19861 |
- cat >> confdefs.h <<EOF |
19862 |
-#define $ac_tr_hdr 1 |
19863 |
-EOF |
19864 |
- |
19865 |
-else |
19866 |
- echo "$ac_t""no" 1>&6 |
19867 |
+ for ac_header in gui/window.h |
19868 |
+do : |
19869 |
+ ac_fn_c_check_header_mongrel "$LINENO" "gui/window.h" "ac_cv_header_gui_window_h" "$ac_includes_default" |
19870 |
+if test "x$ac_cv_header_gui_window_h" = xyes; then : |
19871 |
+ cat >>confdefs.h <<_ACEOF |
19872 |
+#define HAVE_GUI_WINDOW_H 1 |
19873 |
+_ACEOF |
19874 |
+ |
19875 |
fi |
19876 |
+ |
19877 |
done |
19878 |
|
19879 |
- for ac_hdr in gui/desktop.h |
19880 |
-do |
19881 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19882 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19883 |
-echo "configure:13042: checking for $ac_hdr" >&5 |
19884 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19885 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19886 |
-else |
19887 |
- cat > conftest.$ac_ext <<EOF |
19888 |
-#line 13047 "configure" |
19889 |
-#include "confdefs.h" |
19890 |
-#include <$ac_hdr> |
19891 |
-EOF |
19892 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19893 |
-{ (eval echo configure:13052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19894 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19895 |
-if test -z "$ac_err"; then |
19896 |
- rm -rf conftest* |
19897 |
- eval "ac_cv_header_$ac_safe=yes" |
19898 |
-else |
19899 |
- echo "$ac_err" >&5 |
19900 |
- echo "configure: failed program was:" >&5 |
19901 |
- cat conftest.$ac_ext >&5 |
19902 |
- rm -rf conftest* |
19903 |
- eval "ac_cv_header_$ac_safe=no" |
19904 |
-fi |
19905 |
-rm -f conftest* |
19906 |
-fi |
19907 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19908 |
- echo "$ac_t""yes" 1>&6 |
19909 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19910 |
- cat >> confdefs.h <<EOF |
19911 |
-#define $ac_tr_hdr 1 |
19912 |
-EOF |
19913 |
- |
19914 |
-else |
19915 |
- echo "$ac_t""no" 1>&6 |
19916 |
+ for ac_header in gui/desktop.h |
19917 |
+do : |
19918 |
+ ac_fn_c_check_header_mongrel "$LINENO" "gui/desktop.h" "ac_cv_header_gui_desktop_h" "$ac_includes_default" |
19919 |
+if test "x$ac_cv_header_gui_desktop_h" = xyes; then : |
19920 |
+ cat >>confdefs.h <<_ACEOF |
19921 |
+#define HAVE_GUI_DESKTOP_H 1 |
19922 |
+_ACEOF |
19923 |
+ |
19924 |
fi |
19925 |
+ |
19926 |
done |
19927 |
|
19928 |
- for ac_hdr in gui/bitmap.h |
19929 |
-do |
19930 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19931 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19932 |
-echo "configure:13082: checking for $ac_hdr" >&5 |
19933 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19934 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19935 |
-else |
19936 |
- cat > conftest.$ac_ext <<EOF |
19937 |
-#line 13087 "configure" |
19938 |
-#include "confdefs.h" |
19939 |
-#include <$ac_hdr> |
19940 |
-EOF |
19941 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19942 |
-{ (eval echo configure:13092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19943 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19944 |
-if test -z "$ac_err"; then |
19945 |
- rm -rf conftest* |
19946 |
- eval "ac_cv_header_$ac_safe=yes" |
19947 |
-else |
19948 |
- echo "$ac_err" >&5 |
19949 |
- echo "configure: failed program was:" >&5 |
19950 |
- cat conftest.$ac_ext >&5 |
19951 |
- rm -rf conftest* |
19952 |
- eval "ac_cv_header_$ac_safe=no" |
19953 |
-fi |
19954 |
-rm -f conftest* |
19955 |
-fi |
19956 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19957 |
- echo "$ac_t""yes" 1>&6 |
19958 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
19959 |
- cat >> confdefs.h <<EOF |
19960 |
-#define $ac_tr_hdr 1 |
19961 |
-EOF |
19962 |
- |
19963 |
-else |
19964 |
- echo "$ac_t""no" 1>&6 |
19965 |
+ for ac_header in gui/bitmap.h |
19966 |
+do : |
19967 |
+ ac_fn_c_check_header_mongrel "$LINENO" "gui/bitmap.h" "ac_cv_header_gui_bitmap_h" "$ac_includes_default" |
19968 |
+if test "x$ac_cv_header_gui_bitmap_h" = xyes; then : |
19969 |
+ cat >>confdefs.h <<_ACEOF |
19970 |
+#define HAVE_GUI_BITMAP_H 1 |
19971 |
+_ACEOF |
19972 |
+ |
19973 |
fi |
19974 |
+ |
19975 |
done |
19976 |
|
19977 |
- for ac_hdr in util/locker.h |
19978 |
-do |
19979 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19980 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
19981 |
-echo "configure:13122: checking for $ac_hdr" >&5 |
19982 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19983 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
19984 |
-else |
19985 |
- cat > conftest.$ac_ext <<EOF |
19986 |
-#line 13127 "configure" |
19987 |
-#include "confdefs.h" |
19988 |
-#include <$ac_hdr> |
19989 |
-EOF |
19990 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
19991 |
-{ (eval echo configure:13132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19992 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19993 |
-if test -z "$ac_err"; then |
19994 |
- rm -rf conftest* |
19995 |
- eval "ac_cv_header_$ac_safe=yes" |
19996 |
-else |
19997 |
- echo "$ac_err" >&5 |
19998 |
- echo "configure: failed program was:" >&5 |
19999 |
- cat conftest.$ac_ext >&5 |
20000 |
- rm -rf conftest* |
20001 |
- eval "ac_cv_header_$ac_safe=no" |
20002 |
-fi |
20003 |
-rm -f conftest* |
20004 |
-fi |
20005 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20006 |
- echo "$ac_t""yes" 1>&6 |
20007 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
20008 |
- cat >> confdefs.h <<EOF |
20009 |
-#define $ac_tr_hdr 1 |
20010 |
-EOF |
20011 |
- |
20012 |
-else |
20013 |
- echo "$ac_t""no" 1>&6 |
20014 |
+ for ac_header in util/locker.h |
20015 |
+do : |
20016 |
+ ac_fn_c_check_header_mongrel "$LINENO" "util/locker.h" "ac_cv_header_util_locker_h" "$ac_includes_default" |
20017 |
+if test "x$ac_cv_header_util_locker_h" = xyes; then : |
20018 |
+ cat >>confdefs.h <<_ACEOF |
20019 |
+#define HAVE_UTIL_LOCKER_H 1 |
20020 |
+_ACEOF |
20021 |
+ |
20022 |
fi |
20023 |
+ |
20024 |
done |
20025 |
|
20026 |
- for ac_hdr in util/application.h |
20027 |
-do |
20028 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20029 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
20030 |
-echo "configure:13162: checking for $ac_hdr" >&5 |
20031 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20032 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20033 |
-else |
20034 |
- cat > conftest.$ac_ext <<EOF |
20035 |
-#line 13167 "configure" |
20036 |
-#include "confdefs.h" |
20037 |
-#include <$ac_hdr> |
20038 |
-EOF |
20039 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
20040 |
-{ (eval echo configure:13172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
20041 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20042 |
-if test -z "$ac_err"; then |
20043 |
- rm -rf conftest* |
20044 |
- eval "ac_cv_header_$ac_safe=yes" |
20045 |
-else |
20046 |
- echo "$ac_err" >&5 |
20047 |
- echo "configure: failed program was:" >&5 |
20048 |
- cat conftest.$ac_ext >&5 |
20049 |
- rm -rf conftest* |
20050 |
- eval "ac_cv_header_$ac_safe=no" |
20051 |
-fi |
20052 |
-rm -f conftest* |
20053 |
-fi |
20054 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20055 |
- echo "$ac_t""yes" 1>&6 |
20056 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
20057 |
- cat >> confdefs.h <<EOF |
20058 |
-#define $ac_tr_hdr 1 |
20059 |
-EOF |
20060 |
- |
20061 |
-else |
20062 |
- echo "$ac_t""no" 1>&6 |
20063 |
+ for ac_header in util/application.h |
20064 |
+do : |
20065 |
+ ac_fn_c_check_header_mongrel "$LINENO" "util/application.h" "ac_cv_header_util_application_h" "$ac_includes_default" |
20066 |
+if test "x$ac_cv_header_util_application_h" = xyes; then : |
20067 |
+ cat >>confdefs.h <<_ACEOF |
20068 |
+#define HAVE_UTIL_APPLICATION_H 1 |
20069 |
+_ACEOF |
20070 |
+ |
20071 |
fi |
20072 |
+ |
20073 |
done |
20074 |
|
20075 |
ac_ext="$old_ext" |
20076 |
@@ -13213,267 +9957,364 @@ done |
20077 |
test "$ac_cv_header_gui_bitmap_h" = yes && |
20078 |
test "$ac_cv_header_util_locker_h" = yes && |
20079 |
test "$ac_cv_header_util_application_h" = yes; then |
20080 |
- echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 |
20081 |
-echo "configure:13208: checking for main in -lstdc++" >&5 |
20082 |
-ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` |
20083 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
20084 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20085 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 |
20086 |
+$as_echo_n "checking for main in -lstdc++... " >&6; } |
20087 |
+if ${ac_cv_lib_stdcpp_main+:} false; then : |
20088 |
+ $as_echo_n "(cached) " >&6 |
20089 |
else |
20090 |
- ac_save_LIBS="$LIBS" |
20091 |
+ ac_check_lib_save_LIBS=$LIBS |
20092 |
LIBS="-lstdc++ $LIBS" |
20093 |
-cat > conftest.$ac_ext <<EOF |
20094 |
-#line 13216 "configure" |
20095 |
-#include "confdefs.h" |
20096 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20097 |
+/* end confdefs.h. */ |
20098 |
|
20099 |
-int main() { |
20100 |
-main() |
20101 |
-; return 0; } |
20102 |
-EOF |
20103 |
-if { (eval echo configure:13223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20104 |
- rm -rf conftest* |
20105 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
20106 |
+ |
20107 |
+int |
20108 |
+main () |
20109 |
+{ |
20110 |
+return main (); |
20111 |
+ ; |
20112 |
+ return 0; |
20113 |
+} |
20114 |
+_ACEOF |
20115 |
+if ac_fn_c_try_link "$LINENO"; then : |
20116 |
+ ac_cv_lib_stdcpp_main=yes |
20117 |
else |
20118 |
- echo "configure: failed program was:" >&5 |
20119 |
- cat conftest.$ac_ext >&5 |
20120 |
- rm -rf conftest* |
20121 |
- eval "ac_cv_lib_$ac_lib_var=no" |
20122 |
+ ac_cv_lib_stdcpp_main=no |
20123 |
fi |
20124 |
-rm -f conftest* |
20125 |
-LIBS="$ac_save_LIBS" |
20126 |
- |
20127 |
+rm -f core conftest.err conftest.$ac_objext \ |
20128 |
+ conftest$ac_exeext conftest.$ac_ext |
20129 |
+LIBS=$ac_check_lib_save_LIBS |
20130 |
fi |
20131 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
20132 |
- echo "$ac_t""yes" 1>&6 |
20133 |
- ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
20134 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
20135 |
- cat >> confdefs.h <<EOF |
20136 |
-#define $ac_tr_lib 1 |
20137 |
-EOF |
20138 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 |
20139 |
+$as_echo "$ac_cv_lib_stdcpp_main" >&6; } |
20140 |
+if test "x$ac_cv_lib_stdcpp_main" = xyes; then : |
20141 |
+ cat >>confdefs.h <<_ACEOF |
20142 |
+#define HAVE_LIBSTDC__ 1 |
20143 |
+_ACEOF |
20144 |
|
20145 |
LIBS="-lstdc++ $LIBS" |
20146 |
|
20147 |
-else |
20148 |
- echo "$ac_t""no" 1>&6 |
20149 |
fi |
20150 |
|
20151 |
- echo $ac_n "checking for main in -latheos""... $ac_c" 1>&6 |
20152 |
-echo "configure:13251: checking for main in -latheos" >&5 |
20153 |
-ac_lib_var=`echo atheos'_'main | sed 'y%./+-%__p_%'` |
20154 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
20155 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20156 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -latheos" >&5 |
20157 |
+$as_echo_n "checking for main in -latheos... " >&6; } |
20158 |
+if ${ac_cv_lib_atheos_main+:} false; then : |
20159 |
+ $as_echo_n "(cached) " >&6 |
20160 |
else |
20161 |
- ac_save_LIBS="$LIBS" |
20162 |
+ ac_check_lib_save_LIBS=$LIBS |
20163 |
LIBS="-latheos $LIBS" |
20164 |
-cat > conftest.$ac_ext <<EOF |
20165 |
-#line 13259 "configure" |
20166 |
-#include "confdefs.h" |
20167 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20168 |
+/* end confdefs.h. */ |
20169 |
|
20170 |
-int main() { |
20171 |
-main() |
20172 |
-; return 0; } |
20173 |
-EOF |
20174 |
-if { (eval echo configure:13266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20175 |
- rm -rf conftest* |
20176 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
20177 |
+ |
20178 |
+int |
20179 |
+main () |
20180 |
+{ |
20181 |
+return main (); |
20182 |
+ ; |
20183 |
+ return 0; |
20184 |
+} |
20185 |
+_ACEOF |
20186 |
+if ac_fn_c_try_link "$LINENO"; then : |
20187 |
+ ac_cv_lib_atheos_main=yes |
20188 |
else |
20189 |
- echo "configure: failed program was:" >&5 |
20190 |
- cat conftest.$ac_ext >&5 |
20191 |
- rm -rf conftest* |
20192 |
- eval "ac_cv_lib_$ac_lib_var=no" |
20193 |
+ ac_cv_lib_atheos_main=no |
20194 |
fi |
20195 |
-rm -f conftest* |
20196 |
-LIBS="$ac_save_LIBS" |
20197 |
- |
20198 |
+rm -f core conftest.err conftest.$ac_objext \ |
20199 |
+ conftest$ac_exeext conftest.$ac_ext |
20200 |
+LIBS=$ac_check_lib_save_LIBS |
20201 |
fi |
20202 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
20203 |
- echo "$ac_t""yes" 1>&6 |
20204 |
- ac_tr_lib=HAVE_LIB`echo atheos | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
20205 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
20206 |
- cat >> confdefs.h <<EOF |
20207 |
-#define $ac_tr_lib 1 |
20208 |
-EOF |
20209 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atheos_main" >&5 |
20210 |
+$as_echo "$ac_cv_lib_atheos_main" >&6; } |
20211 |
+if test "x$ac_cv_lib_atheos_main" = xyes; then : |
20212 |
+ cat >>confdefs.h <<_ACEOF |
20213 |
+#define HAVE_LIBATHEOS 1 |
20214 |
+_ACEOF |
20215 |
|
20216 |
LIBS="-latheos $LIBS" |
20217 |
|
20218 |
-else |
20219 |
- echo "$ac_t""no" 1>&6 |
20220 |
fi |
20221 |
|
20222 |
if test "$ac_cv_lib_atheos_main" = no; then |
20223 |
- echo $ac_n "checking for main in -lsyllable""... $ac_c" 1>&6 |
20224 |
-echo "configure:13295: checking for main in -lsyllable" >&5 |
20225 |
-ac_lib_var=`echo syllable'_'main | sed 'y%./+-%__p_%'` |
20226 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
20227 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20228 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsyllable" >&5 |
20229 |
+$as_echo_n "checking for main in -lsyllable... " >&6; } |
20230 |
+if ${ac_cv_lib_syllable_main+:} false; then : |
20231 |
+ $as_echo_n "(cached) " >&6 |
20232 |
else |
20233 |
- ac_save_LIBS="$LIBS" |
20234 |
+ ac_check_lib_save_LIBS=$LIBS |
20235 |
LIBS="-lsyllable $LIBS" |
20236 |
-cat > conftest.$ac_ext <<EOF |
20237 |
-#line 13303 "configure" |
20238 |
-#include "confdefs.h" |
20239 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20240 |
+/* end confdefs.h. */ |
20241 |
|
20242 |
-int main() { |
20243 |
-main() |
20244 |
-; return 0; } |
20245 |
-EOF |
20246 |
-if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20247 |
- rm -rf conftest* |
20248 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
20249 |
+ |
20250 |
+int |
20251 |
+main () |
20252 |
+{ |
20253 |
+return main (); |
20254 |
+ ; |
20255 |
+ return 0; |
20256 |
+} |
20257 |
+_ACEOF |
20258 |
+if ac_fn_c_try_link "$LINENO"; then : |
20259 |
+ ac_cv_lib_syllable_main=yes |
20260 |
else |
20261 |
- echo "configure: failed program was:" >&5 |
20262 |
- cat conftest.$ac_ext >&5 |
20263 |
- rm -rf conftest* |
20264 |
- eval "ac_cv_lib_$ac_lib_var=no" |
20265 |
+ ac_cv_lib_syllable_main=no |
20266 |
fi |
20267 |
-rm -f conftest* |
20268 |
-LIBS="$ac_save_LIBS" |
20269 |
- |
20270 |
+rm -f core conftest.err conftest.$ac_objext \ |
20271 |
+ conftest$ac_exeext conftest.$ac_ext |
20272 |
+LIBS=$ac_check_lib_save_LIBS |
20273 |
fi |
20274 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
20275 |
- echo "$ac_t""yes" 1>&6 |
20276 |
- ac_tr_lib=HAVE_LIB`echo syllable | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
20277 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
20278 |
- cat >> confdefs.h <<EOF |
20279 |
-#define $ac_tr_lib 1 |
20280 |
-EOF |
20281 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_syllable_main" >&5 |
20282 |
+$as_echo "$ac_cv_lib_syllable_main" >&6; } |
20283 |
+if test "x$ac_cv_lib_syllable_main" = xyes; then : |
20284 |
+ cat >>confdefs.h <<_ACEOF |
20285 |
+#define HAVE_LIBSYLLABLE 1 |
20286 |
+_ACEOF |
20287 |
|
20288 |
LIBS="-lsyllable $LIBS" |
20289 |
|
20290 |
-else |
20291 |
- echo "$ac_t""no" 1>&6 |
20292 |
fi |
20293 |
|
20294 |
fi |
20295 |
if test "$ac_cv_lib_atheos_main" = yes -o "$ac_cv_lib_syllable_main" = yes; then |
20296 |
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
20297 |
-do |
20298 |
-# Extract the first word of "$ac_prog", so it can be a program name with args. |
20299 |
-set dummy $ac_prog; ac_word=$2 |
20300 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
20301 |
-echo "configure:13344: checking for $ac_word" >&5 |
20302 |
-if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
20303 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20304 |
+ ac_ext=cpp |
20305 |
+ac_cpp='$CXXCPP $CPPFLAGS' |
20306 |
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20307 |
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20308 |
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
20309 |
+if test -z "$CXX"; then |
20310 |
+ if test -n "$CCC"; then |
20311 |
+ CXX=$CCC |
20312 |
+ else |
20313 |
+ if test -n "$ac_tool_prefix"; then |
20314 |
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
20315 |
+ do |
20316 |
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
20317 |
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
20318 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
20319 |
+$as_echo_n "checking for $ac_word... " >&6; } |
20320 |
+if ${ac_cv_prog_CXX+:} false; then : |
20321 |
+ $as_echo_n "(cached) " >&6 |
20322 |
else |
20323 |
if test -n "$CXX"; then |
20324 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
20325 |
else |
20326 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
20327 |
- ac_dummy="$PATH" |
20328 |
- for ac_dir in $ac_dummy; do |
20329 |
- test -z "$ac_dir" && ac_dir=. |
20330 |
- if test -f $ac_dir/$ac_word; then |
20331 |
- ac_cv_prog_CXX="$ac_prog" |
20332 |
- break |
20333 |
- fi |
20334 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20335 |
+for as_dir in $PATH |
20336 |
+do |
20337 |
+ IFS=$as_save_IFS |
20338 |
+ test -z "$as_dir" && as_dir=. |
20339 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
20340 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
20341 |
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
20342 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20343 |
+ break 2 |
20344 |
+ fi |
20345 |
+done |
20346 |
done |
20347 |
- IFS="$ac_save_ifs" |
20348 |
+IFS=$as_save_IFS |
20349 |
+ |
20350 |
fi |
20351 |
fi |
20352 |
-CXX="$ac_cv_prog_CXX" |
20353 |
+CXX=$ac_cv_prog_CXX |
20354 |
if test -n "$CXX"; then |
20355 |
- echo "$ac_t""$CXX" 1>&6 |
20356 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
20357 |
+$as_echo "$CXX" >&6; } |
20358 |
else |
20359 |
- echo "$ac_t""no" 1>&6 |
20360 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20361 |
+$as_echo "no" >&6; } |
20362 |
fi |
20363 |
|
20364 |
-test -n "$CXX" && break |
20365 |
-done |
20366 |
-test -n "$CXX" || CXX="gcc" |
20367 |
- |
20368 |
|
20369 |
-echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
20370 |
-echo "configure:13376: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
20371 |
+ test -n "$CXX" && break |
20372 |
+ done |
20373 |
+fi |
20374 |
+if test -z "$CXX"; then |
20375 |
+ ac_ct_CXX=$CXX |
20376 |
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
20377 |
+do |
20378 |
+ # Extract the first word of "$ac_prog", so it can be a program name with args. |
20379 |
+set dummy $ac_prog; ac_word=$2 |
20380 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
20381 |
+$as_echo_n "checking for $ac_word... " >&6; } |
20382 |
+if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
20383 |
+ $as_echo_n "(cached) " >&6 |
20384 |
+else |
20385 |
+ if test -n "$ac_ct_CXX"; then |
20386 |
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
20387 |
+else |
20388 |
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20389 |
+for as_dir in $PATH |
20390 |
+do |
20391 |
+ IFS=$as_save_IFS |
20392 |
+ test -z "$as_dir" && as_dir=. |
20393 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
20394 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
20395 |
+ ac_cv_prog_ac_ct_CXX="$ac_prog" |
20396 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20397 |
+ break 2 |
20398 |
+ fi |
20399 |
+done |
20400 |
+ done |
20401 |
+IFS=$as_save_IFS |
20402 |
|
20403 |
-ac_ext=C |
20404 |
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
20405 |
-ac_cpp='$CXXCPP $CPPFLAGS' |
20406 |
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20407 |
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
20408 |
-cross_compiling=$ac_cv_prog_cxx_cross |
20409 |
+fi |
20410 |
+fi |
20411 |
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
20412 |
+if test -n "$ac_ct_CXX"; then |
20413 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
20414 |
+$as_echo "$ac_ct_CXX" >&6; } |
20415 |
+else |
20416 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20417 |
+$as_echo "no" >&6; } |
20418 |
+fi |
20419 |
|
20420 |
-cat > conftest.$ac_ext << EOF |
20421 |
|
20422 |
-#line 13387 "configure" |
20423 |
-#include "confdefs.h" |
20424 |
+ test -n "$ac_ct_CXX" && break |
20425 |
+done |
20426 |
|
20427 |
-int main(){return(0);} |
20428 |
-EOF |
20429 |
-if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20430 |
- ac_cv_prog_cxx_works=yes |
20431 |
- # If we can't run a trivial program, we are probably using a cross compiler. |
20432 |
- if (./conftest; exit) 2>/dev/null; then |
20433 |
- ac_cv_prog_cxx_cross=no |
20434 |
+ if test "x$ac_ct_CXX" = x; then |
20435 |
+ CXX="g++" |
20436 |
else |
20437 |
- ac_cv_prog_cxx_cross=yes |
20438 |
+ case $cross_compiling:$ac_tool_warned in |
20439 |
+yes:) |
20440 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
20441 |
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
20442 |
+ac_tool_warned=yes ;; |
20443 |
+esac |
20444 |
+ CXX=$ac_ct_CXX |
20445 |
fi |
20446 |
-else |
20447 |
- echo "configure: failed program was:" >&5 |
20448 |
- cat conftest.$ac_ext >&5 |
20449 |
- ac_cv_prog_cxx_works=no |
20450 |
fi |
20451 |
-rm -fr conftest* |
20452 |
-ac_ext=c |
20453 |
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
20454 |
-ac_cpp='$CPP $CPPFLAGS' |
20455 |
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20456 |
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
20457 |
-cross_compiling=$ac_cv_prog_cc_cross |
20458 |
|
20459 |
-echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
20460 |
-if test $ac_cv_prog_cxx_works = no; then |
20461 |
- { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
20462 |
+ fi |
20463 |
fi |
20464 |
-echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
20465 |
-echo "configure:13418: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
20466 |
-echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
20467 |
-cross_compiling=$ac_cv_prog_cxx_cross |
20468 |
+# Provide some information about the compiler. |
20469 |
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
20470 |
+set X $ac_compile |
20471 |
+ac_compiler=$2 |
20472 |
+for ac_option in --version -v -V -qversion; do |
20473 |
+ { { ac_try="$ac_compiler $ac_option >&5" |
20474 |
+case "(($ac_try" in |
20475 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20476 |
+ *) ac_try_echo=$ac_try;; |
20477 |
+esac |
20478 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
20479 |
+$as_echo "$ac_try_echo"; } >&5 |
20480 |
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
20481 |
+ ac_status=$? |
20482 |
+ if test -s conftest.err; then |
20483 |
+ sed '10a\ |
20484 |
+... rest of stderr output deleted ... |
20485 |
+ 10q' conftest.err >conftest.er1 |
20486 |
+ cat conftest.er1 >&5 |
20487 |
+ fi |
20488 |
+ rm -f conftest.er1 conftest.err |
20489 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
20490 |
+ test $ac_status = 0; } |
20491 |
+done |
20492 |
|
20493 |
-echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
20494 |
-echo "configure:13423: checking whether we are using GNU C++" >&5 |
20495 |
-if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
20496 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20497 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
20498 |
+$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
20499 |
+if ${ac_cv_cxx_compiler_gnu+:} false; then : |
20500 |
+ $as_echo_n "(cached) " >&6 |
20501 |
else |
20502 |
- cat > conftest.C <<EOF |
20503 |
-#ifdef __GNUC__ |
20504 |
- yes; |
20505 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20506 |
+/* end confdefs.h. */ |
20507 |
+ |
20508 |
+int |
20509 |
+main () |
20510 |
+{ |
20511 |
+#ifndef __GNUC__ |
20512 |
+ choke me |
20513 |
#endif |
20514 |
-EOF |
20515 |
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:13432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
20516 |
- ac_cv_prog_gxx=yes |
20517 |
+ |
20518 |
+ ; |
20519 |
+ return 0; |
20520 |
+} |
20521 |
+_ACEOF |
20522 |
+if ac_fn_cxx_try_compile "$LINENO"; then : |
20523 |
+ ac_compiler_gnu=yes |
20524 |
else |
20525 |
- ac_cv_prog_gxx=no |
20526 |
-fi |
20527 |
+ ac_compiler_gnu=no |
20528 |
fi |
20529 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20530 |
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
20531 |
|
20532 |
-echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
20533 |
- |
20534 |
-if test $ac_cv_prog_gxx = yes; then |
20535 |
+fi |
20536 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
20537 |
+$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
20538 |
+if test $ac_compiler_gnu = yes; then |
20539 |
GXX=yes |
20540 |
else |
20541 |
GXX= |
20542 |
fi |
20543 |
- |
20544 |
-ac_test_CXXFLAGS="${CXXFLAGS+set}" |
20545 |
-ac_save_CXXFLAGS="$CXXFLAGS" |
20546 |
-CXXFLAGS= |
20547 |
-echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
20548 |
-echo "configure:13451: checking whether ${CXX-g++} accepts -g" >&5 |
20549 |
-if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
20550 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20551 |
+ac_test_CXXFLAGS=${CXXFLAGS+set} |
20552 |
+ac_save_CXXFLAGS=$CXXFLAGS |
20553 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
20554 |
+$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
20555 |
+if ${ac_cv_prog_cxx_g+:} false; then : |
20556 |
+ $as_echo_n "(cached) " >&6 |
20557 |
else |
20558 |
- echo 'void f(){}' > conftest.cc |
20559 |
-if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
20560 |
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
20561 |
+ ac_cxx_werror_flag=yes |
20562 |
+ ac_cv_prog_cxx_g=no |
20563 |
+ CXXFLAGS="-g" |
20564 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20565 |
+/* end confdefs.h. */ |
20566 |
+ |
20567 |
+int |
20568 |
+main () |
20569 |
+{ |
20570 |
+ |
20571 |
+ ; |
20572 |
+ return 0; |
20573 |
+} |
20574 |
+_ACEOF |
20575 |
+if ac_fn_cxx_try_compile "$LINENO"; then : |
20576 |
ac_cv_prog_cxx_g=yes |
20577 |
else |
20578 |
- ac_cv_prog_cxx_g=no |
20579 |
-fi |
20580 |
-rm -f conftest* |
20581 |
+ CXXFLAGS="" |
20582 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20583 |
+/* end confdefs.h. */ |
20584 |
|
20585 |
-fi |
20586 |
+int |
20587 |
+main () |
20588 |
+{ |
20589 |
|
20590 |
-echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
20591 |
+ ; |
20592 |
+ return 0; |
20593 |
+} |
20594 |
+_ACEOF |
20595 |
+if ac_fn_cxx_try_compile "$LINENO"; then : |
20596 |
+ |
20597 |
+else |
20598 |
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
20599 |
+ CXXFLAGS="-g" |
20600 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20601 |
+/* end confdefs.h. */ |
20602 |
+ |
20603 |
+int |
20604 |
+main () |
20605 |
+{ |
20606 |
+ |
20607 |
+ ; |
20608 |
+ return 0; |
20609 |
+} |
20610 |
+_ACEOF |
20611 |
+if ac_fn_cxx_try_compile "$LINENO"; then : |
20612 |
+ ac_cv_prog_cxx_g=yes |
20613 |
+fi |
20614 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20615 |
+fi |
20616 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20617 |
+fi |
20618 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20619 |
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
20620 |
+fi |
20621 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
20622 |
+$as_echo "$ac_cv_prog_cxx_g" >&6; } |
20623 |
if test "$ac_test_CXXFLAGS" = set; then |
20624 |
- CXXFLAGS="$ac_save_CXXFLAGS" |
20625 |
+ CXXFLAGS=$ac_save_CXXFLAGS |
20626 |
elif test $ac_cv_prog_cxx_g = yes; then |
20627 |
if test "$GXX" = yes; then |
20628 |
CXXFLAGS="-g -O2" |
20629 |
@@ -13487,10 +10328,13 @@ else |
20630 |
CXXFLAGS= |
20631 |
fi |
20632 |
fi |
20633 |
+ac_ext=c |
20634 |
+ac_cpp='$CPP $CPPFLAGS' |
20635 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20636 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20637 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20638 |
|
20639 |
- cat >> confdefs.h <<\EOF |
20640 |
-#define GRDRV_ATHEOS 1 |
20641 |
-EOF |
20642 |
+ $as_echo "#define GRDRV_ATHEOS 1" >>confdefs.h |
20643 |
|
20644 |
drivers="$drivers ATHEOS" |
20645 |
cf_have_atheos=yes |
20646 |
@@ -13500,98 +10344,66 @@ fi |
20647 |
|
20648 |
if test "$disable_grx" != yes -a "$ac_cv_have_djgpp" = yes; then |
20649 |
LIBS_X="$LIBS" |
20650 |
- for ac_hdr in grx20.h |
20651 |
-do |
20652 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20653 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
20654 |
-echo "configure:13498: checking for $ac_hdr" >&5 |
20655 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20656 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20657 |
-else |
20658 |
- cat > conftest.$ac_ext <<EOF |
20659 |
-#line 13503 "configure" |
20660 |
-#include "confdefs.h" |
20661 |
-#include <$ac_hdr> |
20662 |
-EOF |
20663 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
20664 |
-{ (eval echo configure:13508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
20665 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20666 |
-if test -z "$ac_err"; then |
20667 |
- rm -rf conftest* |
20668 |
- eval "ac_cv_header_$ac_safe=yes" |
20669 |
-else |
20670 |
- echo "$ac_err" >&5 |
20671 |
- echo "configure: failed program was:" >&5 |
20672 |
- cat conftest.$ac_ext >&5 |
20673 |
- rm -rf conftest* |
20674 |
- eval "ac_cv_header_$ac_safe=no" |
20675 |
-fi |
20676 |
-rm -f conftest* |
20677 |
-fi |
20678 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20679 |
- echo "$ac_t""yes" 1>&6 |
20680 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
20681 |
- cat >> confdefs.h <<EOF |
20682 |
-#define $ac_tr_hdr 1 |
20683 |
-EOF |
20684 |
- |
20685 |
-else |
20686 |
- echo "$ac_t""no" 1>&6 |
20687 |
+ for ac_header in grx20.h |
20688 |
+do : |
20689 |
+ ac_fn_c_check_header_mongrel "$LINENO" "grx20.h" "ac_cv_header_grx20_h" "$ac_includes_default" |
20690 |
+if test "x$ac_cv_header_grx20_h" = xyes; then : |
20691 |
+ cat >>confdefs.h <<_ACEOF |
20692 |
+#define HAVE_GRX20_H 1 |
20693 |
+_ACEOF |
20694 |
+ |
20695 |
fi |
20696 |
+ |
20697 |
done |
20698 |
|
20699 |
- echo $ac_n "checking for GrSetMode in -lgrx20""... $ac_c" 1>&6 |
20700 |
-echo "configure:13535: checking for GrSetMode in -lgrx20" >&5 |
20701 |
-ac_lib_var=`echo grx20'_'GrSetMode | sed 'y%./+-%__p_%'` |
20702 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
20703 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20704 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GrSetMode in -lgrx20" >&5 |
20705 |
+$as_echo_n "checking for GrSetMode in -lgrx20... " >&6; } |
20706 |
+if ${ac_cv_lib_grx20_GrSetMode+:} false; then : |
20707 |
+ $as_echo_n "(cached) " >&6 |
20708 |
else |
20709 |
- ac_save_LIBS="$LIBS" |
20710 |
+ ac_check_lib_save_LIBS=$LIBS |
20711 |
LIBS="-lgrx20 $LIBS" |
20712 |
-cat > conftest.$ac_ext <<EOF |
20713 |
-#line 13543 "configure" |
20714 |
-#include "confdefs.h" |
20715 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
20716 |
-/* We use char because int might match the return type of a gcc2 |
20717 |
- builtin and then its argument prototype would still apply. */ |
20718 |
-char GrSetMode(); |
20719 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20720 |
+/* end confdefs.h. */ |
20721 |
|
20722 |
-int main() { |
20723 |
-GrSetMode() |
20724 |
-; return 0; } |
20725 |
-EOF |
20726 |
-if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20727 |
- rm -rf conftest* |
20728 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
20729 |
+/* Override any GCC internal prototype to avoid an error. |
20730 |
+ Use char because int might match the return type of a GCC |
20731 |
+ builtin and then its argument prototype would still apply. */ |
20732 |
+#ifdef __cplusplus |
20733 |
+extern "C" |
20734 |
+#endif |
20735 |
+char GrSetMode (); |
20736 |
+int |
20737 |
+main () |
20738 |
+{ |
20739 |
+return GrSetMode (); |
20740 |
+ ; |
20741 |
+ return 0; |
20742 |
+} |
20743 |
+_ACEOF |
20744 |
+if ac_fn_c_try_link "$LINENO"; then : |
20745 |
+ ac_cv_lib_grx20_GrSetMode=yes |
20746 |
else |
20747 |
- echo "configure: failed program was:" >&5 |
20748 |
- cat conftest.$ac_ext >&5 |
20749 |
- rm -rf conftest* |
20750 |
- eval "ac_cv_lib_$ac_lib_var=no" |
20751 |
+ ac_cv_lib_grx20_GrSetMode=no |
20752 |
fi |
20753 |
-rm -f conftest* |
20754 |
-LIBS="$ac_save_LIBS" |
20755 |
- |
20756 |
+rm -f core conftest.err conftest.$ac_objext \ |
20757 |
+ conftest$ac_exeext conftest.$ac_ext |
20758 |
+LIBS=$ac_check_lib_save_LIBS |
20759 |
fi |
20760 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
20761 |
- echo "$ac_t""yes" 1>&6 |
20762 |
- ac_tr_lib=HAVE_LIB`echo grx20 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
20763 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
20764 |
- cat >> confdefs.h <<EOF |
20765 |
-#define $ac_tr_lib 1 |
20766 |
-EOF |
20767 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grx20_GrSetMode" >&5 |
20768 |
+$as_echo "$ac_cv_lib_grx20_GrSetMode" >&6; } |
20769 |
+if test "x$ac_cv_lib_grx20_GrSetMode" = xyes; then : |
20770 |
+ cat >>confdefs.h <<_ACEOF |
20771 |
+#define HAVE_LIBGRX20 1 |
20772 |
+_ACEOF |
20773 |
|
20774 |
LIBS="-lgrx20 $LIBS" |
20775 |
|
20776 |
-else |
20777 |
- echo "$ac_t""no" 1>&6 |
20778 |
fi |
20779 |
|
20780 |
if test "$ac_cv_header_grx20_h" = yes && |
20781 |
test "$ac_cv_lib_grx20_GrSetMode" = yes; then |
20782 |
- cat >> confdefs.h <<\EOF |
20783 |
-#define GRDRV_GRX 1 |
20784 |
-EOF |
20785 |
+ $as_echo "#define GRDRV_GRX 1" >>confdefs.h |
20786 |
|
20787 |
drivers="$drivers GRX" |
20788 |
else |
20789 |
@@ -13599,105 +10411,107 @@ EOF |
20790 |
fi |
20791 |
fi |
20792 |
|
20793 |
- # Check whether --enable-png-pkgconfig or --disable-png-pkgconfig was given. |
20794 |
-if test "${enable_png_pkgconfig+set}" = set; then |
20795 |
- enableval="$enable_png_pkgconfig" |
20796 |
- cf_libpng_pkgconfig="$enableval" |
20797 |
+ # Check whether --enable-png-pkgconfig was given. |
20798 |
+if test "${enable_png_pkgconfig+set}" = set; then : |
20799 |
+ enableval=$enable_png_pkgconfig; cf_libpng_pkgconfig="$enableval" |
20800 |
else |
20801 |
cf_libpng_pkgconfig=yes |
20802 |
fi |
20803 |
|
20804 |
|
20805 |
if test "$static_link" != 0; then |
20806 |
- echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 |
20807 |
-echo "configure:13604: checking for inflate in -lz" >&5 |
20808 |
-ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` |
20809 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
20810 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20811 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
20812 |
+$as_echo_n "checking for inflate in -lz... " >&6; } |
20813 |
+if ${ac_cv_lib_z_inflate+:} false; then : |
20814 |
+ $as_echo_n "(cached) " >&6 |
20815 |
else |
20816 |
- ac_save_LIBS="$LIBS" |
20817 |
+ ac_check_lib_save_LIBS=$LIBS |
20818 |
LIBS="-lz $LIBS" |
20819 |
-cat > conftest.$ac_ext <<EOF |
20820 |
-#line 13612 "configure" |
20821 |
-#include "confdefs.h" |
20822 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
20823 |
-/* We use char because int might match the return type of a gcc2 |
20824 |
- builtin and then its argument prototype would still apply. */ |
20825 |
-char inflate(); |
20826 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20827 |
+/* end confdefs.h. */ |
20828 |
|
20829 |
-int main() { |
20830 |
-inflate() |
20831 |
-; return 0; } |
20832 |
-EOF |
20833 |
-if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
20834 |
- rm -rf conftest* |
20835 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
20836 |
+/* Override any GCC internal prototype to avoid an error. |
20837 |
+ Use char because int might match the return type of a GCC |
20838 |
+ builtin and then its argument prototype would still apply. */ |
20839 |
+#ifdef __cplusplus |
20840 |
+extern "C" |
20841 |
+#endif |
20842 |
+char inflate (); |
20843 |
+int |
20844 |
+main () |
20845 |
+{ |
20846 |
+return inflate (); |
20847 |
+ ; |
20848 |
+ return 0; |
20849 |
+} |
20850 |
+_ACEOF |
20851 |
+if ac_fn_c_try_link "$LINENO"; then : |
20852 |
+ ac_cv_lib_z_inflate=yes |
20853 |
else |
20854 |
- echo "configure: failed program was:" >&5 |
20855 |
- cat conftest.$ac_ext >&5 |
20856 |
- rm -rf conftest* |
20857 |
- eval "ac_cv_lib_$ac_lib_var=no" |
20858 |
+ ac_cv_lib_z_inflate=no |
20859 |
fi |
20860 |
-rm -f conftest* |
20861 |
-LIBS="$ac_save_LIBS" |
20862 |
- |
20863 |
+rm -f core conftest.err conftest.$ac_objext \ |
20864 |
+ conftest$ac_exeext conftest.$ac_ext |
20865 |
+LIBS=$ac_check_lib_save_LIBS |
20866 |
fi |
20867 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
20868 |
- echo "$ac_t""yes" 1>&6 |
20869 |
- ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
20870 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
20871 |
- cat >> confdefs.h <<EOF |
20872 |
-#define $ac_tr_lib 1 |
20873 |
-EOF |
20874 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
20875 |
+$as_echo "$ac_cv_lib_z_inflate" >&6; } |
20876 |
+if test "x$ac_cv_lib_z_inflate" = xyes; then : |
20877 |
+ cat >>confdefs.h <<_ACEOF |
20878 |
+#define HAVE_LIBZ 1 |
20879 |
+_ACEOF |
20880 |
|
20881 |
LIBS="-lz $LIBS" |
20882 |
|
20883 |
-else |
20884 |
- echo "$ac_t""no" 1>&6 |
20885 |
fi |
20886 |
|
20887 |
fi |
20888 |
if test "$cf_libpng_pkgconfig" != no; then |
20889 |
- |
20890 |
+ |
20891 |
succeeded=no |
20892 |
|
20893 |
if test -z "$PKG_CONFIG"; then |
20894 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
20895 |
set dummy pkg-config; ac_word=$2 |
20896 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
20897 |
-echo "configure:13659: checking for $ac_word" >&5 |
20898 |
-if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
20899 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
20900 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
20901 |
+$as_echo_n "checking for $ac_word... " >&6; } |
20902 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
20903 |
+ $as_echo_n "(cached) " >&6 |
20904 |
else |
20905 |
- case "$PKG_CONFIG" in |
20906 |
- /*) |
20907 |
+ case $PKG_CONFIG in |
20908 |
+ [\\/]* | ?:[\\/]*) |
20909 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20910 |
;; |
20911 |
- ?:/*) |
20912 |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
20913 |
- ;; |
20914 |
*) |
20915 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
20916 |
- ac_dummy="$PATH" |
20917 |
- for ac_dir in $ac_dummy; do |
20918 |
- test -z "$ac_dir" && ac_dir=. |
20919 |
- if test -f $ac_dir/$ac_word; then |
20920 |
- ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
20921 |
- break |
20922 |
- fi |
20923 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20924 |
+for as_dir in $PATH |
20925 |
+do |
20926 |
+ IFS=$as_save_IFS |
20927 |
+ test -z "$as_dir" && as_dir=. |
20928 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
20929 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
20930 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
20931 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20932 |
+ break 2 |
20933 |
+ fi |
20934 |
+done |
20935 |
done |
20936 |
- IFS="$ac_save_ifs" |
20937 |
+IFS=$as_save_IFS |
20938 |
+ |
20939 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20940 |
;; |
20941 |
esac |
20942 |
fi |
20943 |
-PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
20944 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20945 |
if test -n "$PKG_CONFIG"; then |
20946 |
- echo "$ac_t""$PKG_CONFIG" 1>&6 |
20947 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
20948 |
+$as_echo "$PKG_CONFIG" >&6; } |
20949 |
else |
20950 |
- echo "$ac_t""no" 1>&6 |
20951 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20952 |
+$as_echo "no" >&6; } |
20953 |
fi |
20954 |
|
20955 |
+ |
20956 |
fi |
20957 |
|
20958 |
if test "$PKG_CONFIG" = "no" ; then |
20959 |
@@ -13708,33 +10522,36 @@ fi |
20960 |
else |
20961 |
PKG_CONFIG_MIN_VERSION=0.9.0 |
20962 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
20963 |
- echo $ac_n "checking for libpng >= 1.0.0""... $ac_c" 1>&6 |
20964 |
-echo "configure:13703: checking for libpng >= 1.0.0" >&5 |
20965 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5 |
20966 |
+$as_echo_n "checking for libpng >= 1.0.0... " >&6; } |
20967 |
|
20968 |
if $PKG_CONFIG --exists "libpng >= 1.0.0" ; then |
20969 |
- echo "$ac_t""yes" 1>&6 |
20970 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
20971 |
+$as_echo "yes" >&6; } |
20972 |
succeeded=yes |
20973 |
|
20974 |
- echo $ac_n "checking LIBPNG_CFLAGS""... $ac_c" 1>&6 |
20975 |
-echo "configure:13710: checking LIBPNG_CFLAGS" >&5 |
20976 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBPNG_CFLAGS" >&5 |
20977 |
+$as_echo_n "checking LIBPNG_CFLAGS... " >&6; } |
20978 |
LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0"` |
20979 |
- echo "$ac_t""$LIBPNG_CFLAGS" 1>&6 |
20980 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CFLAGS" >&5 |
20981 |
+$as_echo "$LIBPNG_CFLAGS" >&6; } |
20982 |
|
20983 |
- echo $ac_n "checking LIBPNG_LIBS""... $ac_c" 1>&6 |
20984 |
-echo "configure:13715: checking LIBPNG_LIBS" >&5 |
20985 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBPNG_LIBS" >&5 |
20986 |
+$as_echo_n "checking LIBPNG_LIBS... " >&6; } |
20987 |
LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0"` |
20988 |
- echo "$ac_t""$LIBPNG_LIBS" 1>&6 |
20989 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_LIBS" >&5 |
20990 |
+$as_echo "$LIBPNG_LIBS" >&6; } |
20991 |
else |
20992 |
LIBPNG_CFLAGS="" |
20993 |
LIBPNG_LIBS="" |
20994 |
- ## If we have a custom action on failure, don't print errors, but |
20995 |
+ ## If we have a custom action on failure, don't print errors, but |
20996 |
## do set a variable so people can do so. |
20997 |
LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.0.0"` |
20998 |
- |
20999 |
+ |
21000 |
fi |
21001 |
|
21002 |
- |
21003 |
- |
21004 |
+ |
21005 |
+ |
21006 |
else |
21007 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
21008 |
echo "*** See http://www.freedesktop.org/software/pkgconfig" |
21009 |
@@ -13748,52 +10565,58 @@ echo "configure:13715: checking LIBPNG_L |
21010 |
fi |
21011 |
|
21012 |
if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng" = no; then |
21013 |
- echo "$ac_t""no" 1>&6 |
21014 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21015 |
+$as_echo "no" >&6; } |
21016 |
fi |
21017 |
if test "$pkgconfig_libpng" = "yes"; then |
21018 |
CPPFLAGS="$CPPFLAGS $LIBPNG_CFLAGS" |
21019 |
LIBS="$LIBPNG_LIBS $LIBS" |
21020 |
else |
21021 |
- |
21022 |
+ |
21023 |
succeeded=no |
21024 |
|
21025 |
if test -z "$PKG_CONFIG"; then |
21026 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
21027 |
set dummy pkg-config; ac_word=$2 |
21028 |
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
21029 |
-echo "configure:13755: checking for $ac_word" >&5 |
21030 |
-if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
21031 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21032 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
21033 |
+$as_echo_n "checking for $ac_word... " >&6; } |
21034 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
21035 |
+ $as_echo_n "(cached) " >&6 |
21036 |
else |
21037 |
- case "$PKG_CONFIG" in |
21038 |
- /*) |
21039 |
+ case $PKG_CONFIG in |
21040 |
+ [\\/]* | ?:[\\/]*) |
21041 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21042 |
;; |
21043 |
- ?:/*) |
21044 |
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
21045 |
- ;; |
21046 |
*) |
21047 |
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
21048 |
- ac_dummy="$PATH" |
21049 |
- for ac_dir in $ac_dummy; do |
21050 |
- test -z "$ac_dir" && ac_dir=. |
21051 |
- if test -f $ac_dir/$ac_word; then |
21052 |
- ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
21053 |
- break |
21054 |
- fi |
21055 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21056 |
+for as_dir in $PATH |
21057 |
+do |
21058 |
+ IFS=$as_save_IFS |
21059 |
+ test -z "$as_dir" && as_dir=. |
21060 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
21061 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21062 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
21063 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21064 |
+ break 2 |
21065 |
+ fi |
21066 |
+done |
21067 |
done |
21068 |
- IFS="$ac_save_ifs" |
21069 |
+IFS=$as_save_IFS |
21070 |
+ |
21071 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21072 |
;; |
21073 |
esac |
21074 |
fi |
21075 |
-PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21076 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21077 |
if test -n "$PKG_CONFIG"; then |
21078 |
- echo "$ac_t""$PKG_CONFIG" 1>&6 |
21079 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
21080 |
+$as_echo "$PKG_CONFIG" >&6; } |
21081 |
else |
21082 |
- echo "$ac_t""no" 1>&6 |
21083 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21084 |
+$as_echo "no" >&6; } |
21085 |
fi |
21086 |
|
21087 |
+ |
21088 |
fi |
21089 |
|
21090 |
if test "$PKG_CONFIG" = "no" ; then |
21091 |
@@ -13804,33 +10627,36 @@ fi |
21092 |
else |
21093 |
PKG_CONFIG_MIN_VERSION=0.9.0 |
21094 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
21095 |
- echo $ac_n "checking for libpng12""... $ac_c" 1>&6 |
21096 |
-echo "configure:13799: checking for libpng12" >&5 |
21097 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng12" >&5 |
21098 |
+$as_echo_n "checking for libpng12... " >&6; } |
21099 |
|
21100 |
if $PKG_CONFIG --exists "libpng12" ; then |
21101 |
- echo "$ac_t""yes" 1>&6 |
21102 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
21103 |
+$as_echo "yes" >&6; } |
21104 |
succeeded=yes |
21105 |
|
21106 |
- echo $ac_n "checking LIBPNG12_CFLAGS""... $ac_c" 1>&6 |
21107 |
-echo "configure:13806: checking LIBPNG12_CFLAGS" >&5 |
21108 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBPNG12_CFLAGS" >&5 |
21109 |
+$as_echo_n "checking LIBPNG12_CFLAGS... " >&6; } |
21110 |
LIBPNG12_CFLAGS=`$PKG_CONFIG --cflags "libpng12"` |
21111 |
- echo "$ac_t""$LIBPNG12_CFLAGS" 1>&6 |
21112 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG12_CFLAGS" >&5 |
21113 |
+$as_echo "$LIBPNG12_CFLAGS" >&6; } |
21114 |
|
21115 |
- echo $ac_n "checking LIBPNG12_LIBS""... $ac_c" 1>&6 |
21116 |
-echo "configure:13811: checking LIBPNG12_LIBS" >&5 |
21117 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBPNG12_LIBS" >&5 |
21118 |
+$as_echo_n "checking LIBPNG12_LIBS... " >&6; } |
21119 |
LIBPNG12_LIBS=`$PKG_CONFIG --libs "libpng12"` |
21120 |
- echo "$ac_t""$LIBPNG12_LIBS" 1>&6 |
21121 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG12_LIBS" >&5 |
21122 |
+$as_echo "$LIBPNG12_LIBS" >&6; } |
21123 |
else |
21124 |
LIBPNG12_CFLAGS="" |
21125 |
LIBPNG12_LIBS="" |
21126 |
- ## If we have a custom action on failure, don't print errors, but |
21127 |
+ ## If we have a custom action on failure, don't print errors, but |
21128 |
## do set a variable so people can do so. |
21129 |
LIBPNG12_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng12"` |
21130 |
- |
21131 |
+ |
21132 |
fi |
21133 |
|
21134 |
- |
21135 |
- |
21136 |
+ |
21137 |
+ |
21138 |
else |
21139 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
21140 |
echo "*** See http://www.freedesktop.org/software/pkgconfig" |
21141 |
@@ -13844,7 +10670,8 @@ echo "configure:13811: checking LIBPNG12 |
21142 |
fi |
21143 |
|
21144 |
if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng12" = no; then |
21145 |
- echo "$ac_t""no" 1>&6 |
21146 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21147 |
+$as_echo "no" >&6; } |
21148 |
fi |
21149 |
if test "$pkgconfig_libpng12" = "yes"; then |
21150 |
CPPFLAGS="$CPPFLAGS $LIBPNG12_CFLAGS" |
21151 |
@@ -13852,316 +10679,112 @@ echo "configure:13811: checking LIBPNG12 |
21152 |
fi |
21153 |
fi |
21154 |
fi |
21155 |
- for ac_hdr in png.h libpng/png.h |
21156 |
-do |
21157 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21158 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
21159 |
-echo "configure:13850: checking for $ac_hdr" >&5 |
21160 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21161 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21162 |
-else |
21163 |
- cat > conftest.$ac_ext <<EOF |
21164 |
-#line 13855 "configure" |
21165 |
-#include "confdefs.h" |
21166 |
-#include <$ac_hdr> |
21167 |
-EOF |
21168 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
21169 |
-{ (eval echo configure:13860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21170 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21171 |
-if test -z "$ac_err"; then |
21172 |
- rm -rf conftest* |
21173 |
- eval "ac_cv_header_$ac_safe=yes" |
21174 |
-else |
21175 |
- echo "$ac_err" >&5 |
21176 |
- echo "configure: failed program was:" >&5 |
21177 |
- cat conftest.$ac_ext >&5 |
21178 |
- rm -rf conftest* |
21179 |
- eval "ac_cv_header_$ac_safe=no" |
21180 |
-fi |
21181 |
-rm -f conftest* |
21182 |
-fi |
21183 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21184 |
- echo "$ac_t""yes" 1>&6 |
21185 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
21186 |
- cat >> confdefs.h <<EOF |
21187 |
-#define $ac_tr_hdr 1 |
21188 |
-EOF |
21189 |
- |
21190 |
-else |
21191 |
- echo "$ac_t""no" 1>&6 |
21192 |
+ for ac_header in png.h libpng/png.h |
21193 |
+do : |
21194 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21195 |
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
21196 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21197 |
+ cat >>confdefs.h <<_ACEOF |
21198 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21199 |
+_ACEOF |
21200 |
+ |
21201 |
fi |
21202 |
+ |
21203 |
done |
21204 |
|
21205 |
for ac_func in png_create_info_struct |
21206 |
-do |
21207 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
21208 |
-echo "configure:13889: checking for $ac_func" >&5 |
21209 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21210 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21211 |
-else |
21212 |
- cat > conftest.$ac_ext <<EOF |
21213 |
-#line 13894 "configure" |
21214 |
-#include "confdefs.h" |
21215 |
-/* System header to define __stub macros and hopefully few prototypes, |
21216 |
- which can conflict with char $ac_func(); below. */ |
21217 |
-#include <assert.h> |
21218 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21219 |
-/* We use char because int might match the return type of a gcc2 |
21220 |
- builtin and then its argument prototype would still apply. */ |
21221 |
-char $ac_func(); |
21222 |
- |
21223 |
-int main() { |
21224 |
- |
21225 |
-/* The GNU C library defines this for functions which it implements |
21226 |
- to always fail with ENOSYS. Some functions are actually named |
21227 |
- something starting with __ and the normal name is an alias. */ |
21228 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
21229 |
-choke me |
21230 |
-#else |
21231 |
-$ac_func(); |
21232 |
-#endif |
21233 |
- |
21234 |
-; return 0; } |
21235 |
-EOF |
21236 |
-if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21237 |
- rm -rf conftest* |
21238 |
- eval "ac_cv_func_$ac_func=yes" |
21239 |
-else |
21240 |
- echo "configure: failed program was:" >&5 |
21241 |
- cat conftest.$ac_ext >&5 |
21242 |
- rm -rf conftest* |
21243 |
- eval "ac_cv_func_$ac_func=no" |
21244 |
-fi |
21245 |
-rm -f conftest* |
21246 |
-fi |
21247 |
+do : |
21248 |
+ ac_fn_c_check_func "$LINENO" "png_create_info_struct" "ac_cv_func_png_create_info_struct" |
21249 |
+if test "x$ac_cv_func_png_create_info_struct" = xyes; then : |
21250 |
+ cat >>confdefs.h <<_ACEOF |
21251 |
+#define HAVE_PNG_CREATE_INFO_STRUCT 1 |
21252 |
+_ACEOF |
21253 |
|
21254 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
21255 |
- echo "$ac_t""yes" 1>&6 |
21256 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
21257 |
- cat >> confdefs.h <<EOF |
21258 |
-#define $ac_tr_func 1 |
21259 |
-EOF |
21260 |
- |
21261 |
-else |
21262 |
- echo "$ac_t""no" 1>&6 |
21263 |
fi |
21264 |
done |
21265 |
|
21266 |
if test "$ac_cv_func_png_create_info_struct" != yes; then |
21267 |
- echo $ac_n "checking for png_create_info_struct in -lpng""... $ac_c" 1>&6 |
21268 |
-echo "configure:13943: checking for png_create_info_struct in -lpng" >&5 |
21269 |
-ac_lib_var=`echo png'_'png_create_info_struct | sed 'y%./+-%__p_%'` |
21270 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
21271 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21272 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_info_struct in -lpng" >&5 |
21273 |
+$as_echo_n "checking for png_create_info_struct in -lpng... " >&6; } |
21274 |
+if ${ac_cv_lib_png_png_create_info_struct+:} false; then : |
21275 |
+ $as_echo_n "(cached) " >&6 |
21276 |
else |
21277 |
- ac_save_LIBS="$LIBS" |
21278 |
+ ac_check_lib_save_LIBS=$LIBS |
21279 |
LIBS="-lpng $LIBS" |
21280 |
-cat > conftest.$ac_ext <<EOF |
21281 |
-#line 13951 "configure" |
21282 |
-#include "confdefs.h" |
21283 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21284 |
-/* We use char because int might match the return type of a gcc2 |
21285 |
- builtin and then its argument prototype would still apply. */ |
21286 |
-char png_create_info_struct(); |
21287 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21288 |
+/* end confdefs.h. */ |
21289 |
|
21290 |
-int main() { |
21291 |
-png_create_info_struct() |
21292 |
-; return 0; } |
21293 |
-EOF |
21294 |
-if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21295 |
- rm -rf conftest* |
21296 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
21297 |
+/* Override any GCC internal prototype to avoid an error. |
21298 |
+ Use char because int might match the return type of a GCC |
21299 |
+ builtin and then its argument prototype would still apply. */ |
21300 |
+#ifdef __cplusplus |
21301 |
+extern "C" |
21302 |
+#endif |
21303 |
+char png_create_info_struct (); |
21304 |
+int |
21305 |
+main () |
21306 |
+{ |
21307 |
+return png_create_info_struct (); |
21308 |
+ ; |
21309 |
+ return 0; |
21310 |
+} |
21311 |
+_ACEOF |
21312 |
+if ac_fn_c_try_link "$LINENO"; then : |
21313 |
+ ac_cv_lib_png_png_create_info_struct=yes |
21314 |
else |
21315 |
- echo "configure: failed program was:" >&5 |
21316 |
- cat conftest.$ac_ext >&5 |
21317 |
- rm -rf conftest* |
21318 |
- eval "ac_cv_lib_$ac_lib_var=no" |
21319 |
+ ac_cv_lib_png_png_create_info_struct=no |
21320 |
fi |
21321 |
-rm -f conftest* |
21322 |
-LIBS="$ac_save_LIBS" |
21323 |
- |
21324 |
+rm -f core conftest.err conftest.$ac_objext \ |
21325 |
+ conftest$ac_exeext conftest.$ac_ext |
21326 |
+LIBS=$ac_check_lib_save_LIBS |
21327 |
fi |
21328 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
21329 |
- echo "$ac_t""yes" 1>&6 |
21330 |
- ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
21331 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
21332 |
- cat >> confdefs.h <<EOF |
21333 |
-#define $ac_tr_lib 1 |
21334 |
-EOF |
21335 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_info_struct" >&5 |
21336 |
+$as_echo "$ac_cv_lib_png_png_create_info_struct" >&6; } |
21337 |
+if test "x$ac_cv_lib_png_png_create_info_struct" = xyes; then : |
21338 |
+ cat >>confdefs.h <<_ACEOF |
21339 |
+#define HAVE_LIBPNG 1 |
21340 |
+_ACEOF |
21341 |
|
21342 |
LIBS="-lpng $LIBS" |
21343 |
|
21344 |
-else |
21345 |
- echo "$ac_t""no" 1>&6 |
21346 |
fi |
21347 |
|
21348 |
fi |
21349 |
if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then |
21350 |
- { echo "configure: error: You need libpng to compile Links in graphics mode" 1>&2; exit 1; } |
21351 |
+ as_fn_error $? "You need libpng to compile Links in graphics mode" "$LINENO" 5 |
21352 |
fi |
21353 |
|
21354 |
for ac_func in png_set_rgb_to_gray |
21355 |
-do |
21356 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
21357 |
-echo "configure:13997: checking for $ac_func" >&5 |
21358 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21359 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21360 |
-else |
21361 |
- cat > conftest.$ac_ext <<EOF |
21362 |
-#line 14002 "configure" |
21363 |
-#include "confdefs.h" |
21364 |
-/* System header to define __stub macros and hopefully few prototypes, |
21365 |
- which can conflict with char $ac_func(); below. */ |
21366 |
-#include <assert.h> |
21367 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21368 |
-/* We use char because int might match the return type of a gcc2 |
21369 |
- builtin and then its argument prototype would still apply. */ |
21370 |
-char $ac_func(); |
21371 |
- |
21372 |
-int main() { |
21373 |
- |
21374 |
-/* The GNU C library defines this for functions which it implements |
21375 |
- to always fail with ENOSYS. Some functions are actually named |
21376 |
- something starting with __ and the normal name is an alias. */ |
21377 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
21378 |
-choke me |
21379 |
-#else |
21380 |
-$ac_func(); |
21381 |
-#endif |
21382 |
- |
21383 |
-; return 0; } |
21384 |
-EOF |
21385 |
-if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21386 |
- rm -rf conftest* |
21387 |
- eval "ac_cv_func_$ac_func=yes" |
21388 |
-else |
21389 |
- echo "configure: failed program was:" >&5 |
21390 |
- cat conftest.$ac_ext >&5 |
21391 |
- rm -rf conftest* |
21392 |
- eval "ac_cv_func_$ac_func=no" |
21393 |
-fi |
21394 |
-rm -f conftest* |
21395 |
-fi |
21396 |
+do : |
21397 |
+ ac_fn_c_check_func "$LINENO" "png_set_rgb_to_gray" "ac_cv_func_png_set_rgb_to_gray" |
21398 |
+if test "x$ac_cv_func_png_set_rgb_to_gray" = xyes; then : |
21399 |
+ cat >>confdefs.h <<_ACEOF |
21400 |
+#define HAVE_PNG_SET_RGB_TO_GRAY 1 |
21401 |
+_ACEOF |
21402 |
|
21403 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
21404 |
- echo "$ac_t""yes" 1>&6 |
21405 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
21406 |
- cat >> confdefs.h <<EOF |
21407 |
-#define $ac_tr_func 1 |
21408 |
-EOF |
21409 |
- |
21410 |
-else |
21411 |
- echo "$ac_t""no" 1>&6 |
21412 |
fi |
21413 |
done |
21414 |
|
21415 |
for ac_func in png_get_libpng_ver |
21416 |
-do |
21417 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
21418 |
-echo "configure:14052: checking for $ac_func" >&5 |
21419 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21420 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21421 |
-else |
21422 |
- cat > conftest.$ac_ext <<EOF |
21423 |
-#line 14057 "configure" |
21424 |
-#include "confdefs.h" |
21425 |
-/* System header to define __stub macros and hopefully few prototypes, |
21426 |
- which can conflict with char $ac_func(); below. */ |
21427 |
-#include <assert.h> |
21428 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21429 |
-/* We use char because int might match the return type of a gcc2 |
21430 |
- builtin and then its argument prototype would still apply. */ |
21431 |
-char $ac_func(); |
21432 |
- |
21433 |
-int main() { |
21434 |
- |
21435 |
-/* The GNU C library defines this for functions which it implements |
21436 |
- to always fail with ENOSYS. Some functions are actually named |
21437 |
- something starting with __ and the normal name is an alias. */ |
21438 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
21439 |
-choke me |
21440 |
-#else |
21441 |
-$ac_func(); |
21442 |
-#endif |
21443 |
- |
21444 |
-; return 0; } |
21445 |
-EOF |
21446 |
-if { (eval echo configure:14080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21447 |
- rm -rf conftest* |
21448 |
- eval "ac_cv_func_$ac_func=yes" |
21449 |
-else |
21450 |
- echo "configure: failed program was:" >&5 |
21451 |
- cat conftest.$ac_ext >&5 |
21452 |
- rm -rf conftest* |
21453 |
- eval "ac_cv_func_$ac_func=no" |
21454 |
-fi |
21455 |
-rm -f conftest* |
21456 |
-fi |
21457 |
+do : |
21458 |
+ ac_fn_c_check_func "$LINENO" "png_get_libpng_ver" "ac_cv_func_png_get_libpng_ver" |
21459 |
+if test "x$ac_cv_func_png_get_libpng_ver" = xyes; then : |
21460 |
+ cat >>confdefs.h <<_ACEOF |
21461 |
+#define HAVE_PNG_GET_LIBPNG_VER 1 |
21462 |
+_ACEOF |
21463 |
|
21464 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
21465 |
- echo "$ac_t""yes" 1>&6 |
21466 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
21467 |
- cat >> confdefs.h <<EOF |
21468 |
-#define $ac_tr_func 1 |
21469 |
-EOF |
21470 |
- |
21471 |
-else |
21472 |
- echo "$ac_t""no" 1>&6 |
21473 |
fi |
21474 |
done |
21475 |
|
21476 |
for ac_func in png_get_image_width png_get_image_height png_get_gAMA png_get_color_type png_get_bit_depth png_set_strip_alpha png_get_valid png_get_sRGB |
21477 |
-do |
21478 |
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
21479 |
-echo "configure:14107: checking for $ac_func" >&5 |
21480 |
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21481 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21482 |
-else |
21483 |
- cat > conftest.$ac_ext <<EOF |
21484 |
-#line 14112 "configure" |
21485 |
-#include "confdefs.h" |
21486 |
-/* System header to define __stub macros and hopefully few prototypes, |
21487 |
- which can conflict with char $ac_func(); below. */ |
21488 |
-#include <assert.h> |
21489 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21490 |
-/* We use char because int might match the return type of a gcc2 |
21491 |
- builtin and then its argument prototype would still apply. */ |
21492 |
-char $ac_func(); |
21493 |
- |
21494 |
-int main() { |
21495 |
- |
21496 |
-/* The GNU C library defines this for functions which it implements |
21497 |
- to always fail with ENOSYS. Some functions are actually named |
21498 |
- something starting with __ and the normal name is an alias. */ |
21499 |
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
21500 |
-choke me |
21501 |
-#else |
21502 |
-$ac_func(); |
21503 |
-#endif |
21504 |
- |
21505 |
-; return 0; } |
21506 |
-EOF |
21507 |
-if { (eval echo configure:14135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21508 |
- rm -rf conftest* |
21509 |
- eval "ac_cv_func_$ac_func=yes" |
21510 |
-else |
21511 |
- echo "configure: failed program was:" >&5 |
21512 |
- cat conftest.$ac_ext >&5 |
21513 |
- rm -rf conftest* |
21514 |
- eval "ac_cv_func_$ac_func=no" |
21515 |
-fi |
21516 |
-rm -f conftest* |
21517 |
-fi |
21518 |
+do : |
21519 |
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21520 |
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
21521 |
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
21522 |
+ cat >>confdefs.h <<_ACEOF |
21523 |
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
21524 |
+_ACEOF |
21525 |
|
21526 |
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
21527 |
- echo "$ac_t""yes" 1>&6 |
21528 |
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
21529 |
- cat >> confdefs.h <<EOF |
21530 |
-#define $ac_tr_func 1 |
21531 |
-EOF |
21532 |
- |
21533 |
-else |
21534 |
- echo "$ac_t""no" 1>&6 |
21535 |
fi |
21536 |
done |
21537 |
|
21538 |
@@ -14173,298 +10796,229 @@ done |
21539 |
test "$ac_cv_func_png_set_strip_alpha" != yes || |
21540 |
test "$ac_cv_func_png_get_valid" != yes || |
21541 |
test "$ac_cv_func_png_get_sRGB" != yes; then |
21542 |
- { echo "configure: error: Your libpng is too old" 1>&2; exit 1; } |
21543 |
+ as_fn_error $? "Your libpng is too old" "$LINENO" 5 |
21544 |
fi |
21545 |
|
21546 |
- echo $ac_n "checking if you can include both setjmp.h and png.h""... $ac_c" 1>&6 |
21547 |
-echo "configure:14171: checking if you can include both setjmp.h and png.h" >&5 |
21548 |
-if eval "test \"`echo '$''{'ac_cv_include_setjmp_png'+set}'`\" = set"; then |
21549 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21550 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you can include both setjmp.h and png.h" >&5 |
21551 |
+$as_echo_n "checking if you can include both setjmp.h and png.h... " >&6; } |
21552 |
+if ${ac_cv_include_setjmp_png+:} false; then : |
21553 |
+ $as_echo_n "(cached) " >&6 |
21554 |
else |
21555 |
- cat > conftest.$ac_ext <<EOF |
21556 |
-#line 14176 "configure" |
21557 |
-#include "confdefs.h" |
21558 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21559 |
+/* end confdefs.h. */ |
21560 |
#include <setjmp.h> |
21561 |
#include <png.h> |
21562 |
-int main() { |
21563 |
+int |
21564 |
+main () |
21565 |
+{ |
21566 |
jmp_buf bla; |
21567 |
-; return 0; } |
21568 |
-EOF |
21569 |
-if { (eval echo configure:14184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21570 |
- rm -rf conftest* |
21571 |
+ ; |
21572 |
+ return 0; |
21573 |
+} |
21574 |
+_ACEOF |
21575 |
+if ac_fn_c_try_compile "$LINENO"; then : |
21576 |
ac_cv_include_setjmp_png=yes |
21577 |
else |
21578 |
- echo "configure: failed program was:" >&5 |
21579 |
- cat conftest.$ac_ext >&5 |
21580 |
- rm -rf conftest* |
21581 |
ac_cv_include_setjmp_png=no |
21582 |
fi |
21583 |
-rm -f conftest* |
21584 |
- |
21585 |
-fi |
21586 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21587 |
|
21588 |
-echo "$ac_t""$ac_cv_include_setjmp_png" 1>&6 |
21589 |
+fi |
21590 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_include_setjmp_png" >&5 |
21591 |
+$as_echo "$ac_cv_include_setjmp_png" >&6; } |
21592 |
|
21593 |
if test "$ac_cv_include_setjmp_png" != yes; then |
21594 |
- cat >> confdefs.h <<\EOF |
21595 |
-#define DONT_INCLUDE_SETJMP 1 |
21596 |
-EOF |
21597 |
+ $as_echo "#define DONT_INCLUDE_SETJMP 1" >>confdefs.h |
21598 |
|
21599 |
fi |
21600 |
|
21601 |
- # Check whether --with-libjpeg or --without-libjpeg was given. |
21602 |
-if test "${with_libjpeg+set}" = set; then |
21603 |
- withval="$with_libjpeg" |
21604 |
- if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi |
21605 |
+ |
21606 |
+# Check whether --with-libjpeg was given. |
21607 |
+if test "${with_libjpeg+set}" = set; then : |
21608 |
+ withval=$with_libjpeg; if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi |
21609 |
fi |
21610 |
|
21611 |
cf_have_jpeg=no |
21612 |
if test "$disable_jpeg" != yes; then |
21613 |
- for ac_hdr in jpeglib.h |
21614 |
-do |
21615 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21616 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
21617 |
-echo "configure:14218: checking for $ac_hdr" >&5 |
21618 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21619 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21620 |
-else |
21621 |
- cat > conftest.$ac_ext <<EOF |
21622 |
-#line 14223 "configure" |
21623 |
-#include "confdefs.h" |
21624 |
-#include <$ac_hdr> |
21625 |
-EOF |
21626 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
21627 |
-{ (eval echo configure:14228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21628 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21629 |
-if test -z "$ac_err"; then |
21630 |
- rm -rf conftest* |
21631 |
- eval "ac_cv_header_$ac_safe=yes" |
21632 |
-else |
21633 |
- echo "$ac_err" >&5 |
21634 |
- echo "configure: failed program was:" >&5 |
21635 |
- cat conftest.$ac_ext >&5 |
21636 |
- rm -rf conftest* |
21637 |
- eval "ac_cv_header_$ac_safe=no" |
21638 |
-fi |
21639 |
-rm -f conftest* |
21640 |
-fi |
21641 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21642 |
- echo "$ac_t""yes" 1>&6 |
21643 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
21644 |
- cat >> confdefs.h <<EOF |
21645 |
-#define $ac_tr_hdr 1 |
21646 |
-EOF |
21647 |
- |
21648 |
-else |
21649 |
- echo "$ac_t""no" 1>&6 |
21650 |
+ for ac_header in jpeglib.h |
21651 |
+do : |
21652 |
+ ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
21653 |
+if test "x$ac_cv_header_jpeglib_h" = xyes; then : |
21654 |
+ cat >>confdefs.h <<_ACEOF |
21655 |
+#define HAVE_JPEGLIB_H 1 |
21656 |
+_ACEOF |
21657 |
+ |
21658 |
fi |
21659 |
+ |
21660 |
done |
21661 |
|
21662 |
- echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 |
21663 |
-echo "configure:14255: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
21664 |
-ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` |
21665 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
21666 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21667 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
21668 |
+$as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; } |
21669 |
+if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then : |
21670 |
+ $as_echo_n "(cached) " >&6 |
21671 |
else |
21672 |
- ac_save_LIBS="$LIBS" |
21673 |
+ ac_check_lib_save_LIBS=$LIBS |
21674 |
LIBS="-ljpeg $LIBS" |
21675 |
-cat > conftest.$ac_ext <<EOF |
21676 |
-#line 14263 "configure" |
21677 |
-#include "confdefs.h" |
21678 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21679 |
-/* We use char because int might match the return type of a gcc2 |
21680 |
- builtin and then its argument prototype would still apply. */ |
21681 |
-char jpeg_destroy_decompress(); |
21682 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21683 |
+/* end confdefs.h. */ |
21684 |
|
21685 |
-int main() { |
21686 |
-jpeg_destroy_decompress() |
21687 |
-; return 0; } |
21688 |
-EOF |
21689 |
-if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21690 |
- rm -rf conftest* |
21691 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
21692 |
+/* Override any GCC internal prototype to avoid an error. |
21693 |
+ Use char because int might match the return type of a GCC |
21694 |
+ builtin and then its argument prototype would still apply. */ |
21695 |
+#ifdef __cplusplus |
21696 |
+extern "C" |
21697 |
+#endif |
21698 |
+char jpeg_destroy_decompress (); |
21699 |
+int |
21700 |
+main () |
21701 |
+{ |
21702 |
+return jpeg_destroy_decompress (); |
21703 |
+ ; |
21704 |
+ return 0; |
21705 |
+} |
21706 |
+_ACEOF |
21707 |
+if ac_fn_c_try_link "$LINENO"; then : |
21708 |
+ ac_cv_lib_jpeg_jpeg_destroy_decompress=yes |
21709 |
else |
21710 |
- echo "configure: failed program was:" >&5 |
21711 |
- cat conftest.$ac_ext >&5 |
21712 |
- rm -rf conftest* |
21713 |
- eval "ac_cv_lib_$ac_lib_var=no" |
21714 |
+ ac_cv_lib_jpeg_jpeg_destroy_decompress=no |
21715 |
fi |
21716 |
-rm -f conftest* |
21717 |
-LIBS="$ac_save_LIBS" |
21718 |
- |
21719 |
+rm -f core conftest.err conftest.$ac_objext \ |
21720 |
+ conftest$ac_exeext conftest.$ac_ext |
21721 |
+LIBS=$ac_check_lib_save_LIBS |
21722 |
fi |
21723 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
21724 |
- echo "$ac_t""yes" 1>&6 |
21725 |
- ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
21726 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
21727 |
- cat >> confdefs.h <<EOF |
21728 |
-#define $ac_tr_lib 1 |
21729 |
-EOF |
21730 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 |
21731 |
+$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; } |
21732 |
+if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then : |
21733 |
+ cat >>confdefs.h <<_ACEOF |
21734 |
+#define HAVE_LIBJPEG 1 |
21735 |
+_ACEOF |
21736 |
|
21737 |
LIBS="-ljpeg $LIBS" |
21738 |
|
21739 |
-else |
21740 |
- echo "$ac_t""no" 1>&6 |
21741 |
fi |
21742 |
|
21743 |
if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then |
21744 |
- cat >> confdefs.h <<\EOF |
21745 |
-#define HAVE_JPEG 1 |
21746 |
-EOF |
21747 |
+ $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
21748 |
|
21749 |
cf_have_jpeg=yes |
21750 |
image_formats="$image_formats JPEG" |
21751 |
fi |
21752 |
fi |
21753 |
|
21754 |
- # Check whether --with-libtiff or --without-libtiff was given. |
21755 |
-if test "${with_libtiff+set}" = set; then |
21756 |
- withval="$with_libtiff" |
21757 |
- if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi |
21758 |
+ |
21759 |
+# Check whether --with-libtiff was given. |
21760 |
+if test "${with_libtiff+set}" = set; then : |
21761 |
+ withval=$with_libtiff; if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi |
21762 |
fi |
21763 |
|
21764 |
cf_have_tiff=no |
21765 |
if test "$disable_tiff" != yes; then |
21766 |
if test "$static_link" != 0; then |
21767 |
- echo $ac_n "checking for jbg_enc_init in -ljbig""... $ac_c" 1>&6 |
21768 |
-echo "configure:14321: checking for jbg_enc_init in -ljbig" >&5 |
21769 |
-ac_lib_var=`echo jbig'_'jbg_enc_init | sed 'y%./+-%__p_%'` |
21770 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
21771 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21772 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_enc_init in -ljbig" >&5 |
21773 |
+$as_echo_n "checking for jbg_enc_init in -ljbig... " >&6; } |
21774 |
+if ${ac_cv_lib_jbig_jbg_enc_init+:} false; then : |
21775 |
+ $as_echo_n "(cached) " >&6 |
21776 |
else |
21777 |
- ac_save_LIBS="$LIBS" |
21778 |
+ ac_check_lib_save_LIBS=$LIBS |
21779 |
LIBS="-ljbig $LIBS" |
21780 |
-cat > conftest.$ac_ext <<EOF |
21781 |
-#line 14329 "configure" |
21782 |
-#include "confdefs.h" |
21783 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21784 |
-/* We use char because int might match the return type of a gcc2 |
21785 |
- builtin and then its argument prototype would still apply. */ |
21786 |
-char jbg_enc_init(); |
21787 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21788 |
+/* end confdefs.h. */ |
21789 |
|
21790 |
-int main() { |
21791 |
-jbg_enc_init() |
21792 |
-; return 0; } |
21793 |
-EOF |
21794 |
-if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21795 |
- rm -rf conftest* |
21796 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
21797 |
+/* Override any GCC internal prototype to avoid an error. |
21798 |
+ Use char because int might match the return type of a GCC |
21799 |
+ builtin and then its argument prototype would still apply. */ |
21800 |
+#ifdef __cplusplus |
21801 |
+extern "C" |
21802 |
+#endif |
21803 |
+char jbg_enc_init (); |
21804 |
+int |
21805 |
+main () |
21806 |
+{ |
21807 |
+return jbg_enc_init (); |
21808 |
+ ; |
21809 |
+ return 0; |
21810 |
+} |
21811 |
+_ACEOF |
21812 |
+if ac_fn_c_try_link "$LINENO"; then : |
21813 |
+ ac_cv_lib_jbig_jbg_enc_init=yes |
21814 |
else |
21815 |
- echo "configure: failed program was:" >&5 |
21816 |
- cat conftest.$ac_ext >&5 |
21817 |
- rm -rf conftest* |
21818 |
- eval "ac_cv_lib_$ac_lib_var=no" |
21819 |
+ ac_cv_lib_jbig_jbg_enc_init=no |
21820 |
fi |
21821 |
-rm -f conftest* |
21822 |
-LIBS="$ac_save_LIBS" |
21823 |
- |
21824 |
+rm -f core conftest.err conftest.$ac_objext \ |
21825 |
+ conftest$ac_exeext conftest.$ac_ext |
21826 |
+LIBS=$ac_check_lib_save_LIBS |
21827 |
fi |
21828 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
21829 |
- echo "$ac_t""yes" 1>&6 |
21830 |
- ac_tr_lib=HAVE_LIB`echo jbig | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
21831 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
21832 |
- cat >> confdefs.h <<EOF |
21833 |
-#define $ac_tr_lib 1 |
21834 |
-EOF |
21835 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_enc_init" >&5 |
21836 |
+$as_echo "$ac_cv_lib_jbig_jbg_enc_init" >&6; } |
21837 |
+if test "x$ac_cv_lib_jbig_jbg_enc_init" = xyes; then : |
21838 |
+ cat >>confdefs.h <<_ACEOF |
21839 |
+#define HAVE_LIBJBIG 1 |
21840 |
+_ACEOF |
21841 |
|
21842 |
LIBS="-ljbig $LIBS" |
21843 |
|
21844 |
-else |
21845 |
- echo "$ac_t""no" 1>&6 |
21846 |
fi |
21847 |
|
21848 |
fi |
21849 |
- for ac_hdr in tiffio.h |
21850 |
-do |
21851 |
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21852 |
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
21853 |
-echo "configure:14372: checking for $ac_hdr" >&5 |
21854 |
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21855 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21856 |
-else |
21857 |
- cat > conftest.$ac_ext <<EOF |
21858 |
-#line 14377 "configure" |
21859 |
-#include "confdefs.h" |
21860 |
-#include <$ac_hdr> |
21861 |
-EOF |
21862 |
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
21863 |
-{ (eval echo configure:14382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21864 |
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21865 |
-if test -z "$ac_err"; then |
21866 |
- rm -rf conftest* |
21867 |
- eval "ac_cv_header_$ac_safe=yes" |
21868 |
-else |
21869 |
- echo "$ac_err" >&5 |
21870 |
- echo "configure: failed program was:" >&5 |
21871 |
- cat conftest.$ac_ext >&5 |
21872 |
- rm -rf conftest* |
21873 |
- eval "ac_cv_header_$ac_safe=no" |
21874 |
-fi |
21875 |
-rm -f conftest* |
21876 |
-fi |
21877 |
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21878 |
- echo "$ac_t""yes" 1>&6 |
21879 |
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
21880 |
- cat >> confdefs.h <<EOF |
21881 |
-#define $ac_tr_hdr 1 |
21882 |
-EOF |
21883 |
- |
21884 |
-else |
21885 |
- echo "$ac_t""no" 1>&6 |
21886 |
+ for ac_header in tiffio.h |
21887 |
+do : |
21888 |
+ ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
21889 |
+if test "x$ac_cv_header_tiffio_h" = xyes; then : |
21890 |
+ cat >>confdefs.h <<_ACEOF |
21891 |
+#define HAVE_TIFFIO_H 1 |
21892 |
+_ACEOF |
21893 |
+ |
21894 |
fi |
21895 |
+ |
21896 |
done |
21897 |
|
21898 |
- echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 |
21899 |
-echo "configure:14409: checking for TIFFClientOpen in -ltiff" >&5 |
21900 |
-ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` |
21901 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
21902 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
21903 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
21904 |
+$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
21905 |
+if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : |
21906 |
+ $as_echo_n "(cached) " >&6 |
21907 |
else |
21908 |
- ac_save_LIBS="$LIBS" |
21909 |
+ ac_check_lib_save_LIBS=$LIBS |
21910 |
LIBS="-ltiff $LIBS" |
21911 |
-cat > conftest.$ac_ext <<EOF |
21912 |
-#line 14417 "configure" |
21913 |
-#include "confdefs.h" |
21914 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
21915 |
-/* We use char because int might match the return type of a gcc2 |
21916 |
- builtin and then its argument prototype would still apply. */ |
21917 |
-char TIFFClientOpen(); |
21918 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21919 |
+/* end confdefs.h. */ |
21920 |
|
21921 |
-int main() { |
21922 |
-TIFFClientOpen() |
21923 |
-; return 0; } |
21924 |
-EOF |
21925 |
-if { (eval echo configure:14428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21926 |
- rm -rf conftest* |
21927 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
21928 |
+/* Override any GCC internal prototype to avoid an error. |
21929 |
+ Use char because int might match the return type of a GCC |
21930 |
+ builtin and then its argument prototype would still apply. */ |
21931 |
+#ifdef __cplusplus |
21932 |
+extern "C" |
21933 |
+#endif |
21934 |
+char TIFFClientOpen (); |
21935 |
+int |
21936 |
+main () |
21937 |
+{ |
21938 |
+return TIFFClientOpen (); |
21939 |
+ ; |
21940 |
+ return 0; |
21941 |
+} |
21942 |
+_ACEOF |
21943 |
+if ac_fn_c_try_link "$LINENO"; then : |
21944 |
+ ac_cv_lib_tiff_TIFFClientOpen=yes |
21945 |
else |
21946 |
- echo "configure: failed program was:" >&5 |
21947 |
- cat conftest.$ac_ext >&5 |
21948 |
- rm -rf conftest* |
21949 |
- eval "ac_cv_lib_$ac_lib_var=no" |
21950 |
+ ac_cv_lib_tiff_TIFFClientOpen=no |
21951 |
fi |
21952 |
-rm -f conftest* |
21953 |
-LIBS="$ac_save_LIBS" |
21954 |
- |
21955 |
+rm -f core conftest.err conftest.$ac_objext \ |
21956 |
+ conftest$ac_exeext conftest.$ac_ext |
21957 |
+LIBS=$ac_check_lib_save_LIBS |
21958 |
fi |
21959 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
21960 |
- echo "$ac_t""yes" 1>&6 |
21961 |
- ac_tr_lib=HAVE_LIB`echo tiff | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
21962 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
21963 |
- cat >> confdefs.h <<EOF |
21964 |
-#define $ac_tr_lib 1 |
21965 |
-EOF |
21966 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 |
21967 |
+$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
21968 |
+if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : |
21969 |
+ cat >>confdefs.h <<_ACEOF |
21970 |
+#define HAVE_LIBTIFF 1 |
21971 |
+_ACEOF |
21972 |
|
21973 |
LIBS="-ltiff $LIBS" |
21974 |
|
21975 |
-else |
21976 |
- echo "$ac_t""no" 1>&6 |
21977 |
fi |
21978 |
|
21979 |
if test "$ac_cv_header_tiffio_h" = yes && test "$ac_cv_lib_tiff_TIFFClientOpen" = yes; then |
21980 |
- cat >> confdefs.h <<\EOF |
21981 |
-#define HAVE_TIFF 1 |
21982 |
-EOF |
21983 |
+ $as_echo "#define HAVE_TIFF 1" >>confdefs.h |
21984 |
|
21985 |
cf_have_tiff=yes |
21986 |
image_formats="$image_formats TIFF" |
21987 |
@@ -14473,7 +11027,7 @@ EOF |
21988 |
|
21989 |
|
21990 |
if test -z "$drivers" && test "$cf_use_graphics" != no; then |
21991 |
- { echo "configure: error: No graphics drivers found." 1>&2; exit 1; } |
21992 |
+ as_fn_error $? "No graphics drivers found." "$LINENO" 5 |
21993 |
fi |
21994 |
fi |
21995 |
|
21996 |
@@ -14490,387 +11044,1303 @@ fi |
21997 |
|
21998 |
test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe" |
21999 |
|
22000 |
-trap '' 1 2 15 |
22001 |
-cat > confcache <<\EOF |
22002 |
+ac_config_files="$ac_config_files Makefile" |
22003 |
+ |
22004 |
+cat >confcache <<\_ACEOF |
22005 |
# This file is a shell script that caches the results of configure |
22006 |
# tests run on this system so they can be shared between configure |
22007 |
-# scripts and configure runs. It is not useful on other systems. |
22008 |
-# If it contains results you don't want to keep, you may remove or edit it. |
22009 |
+# scripts and configure runs, see configure's option --config-cache. |
22010 |
+# It is not useful on other systems. If it contains results you don't |
22011 |
+# want to keep, you may remove or edit it. |
22012 |
# |
22013 |
-# By default, configure uses ./config.cache as the cache file, |
22014 |
-# creating it if it does not exist already. You can give configure |
22015 |
-# the --cache-file=FILE option to use a different cache file; that is |
22016 |
-# what configure does when it calls configure scripts in |
22017 |
-# subdirectories, so they share the cache. |
22018 |
-# Giving --cache-file=/dev/null disables caching, for debugging configure. |
22019 |
-# config.status only pays attention to the cache file if you give it the |
22020 |
-# --recheck option to rerun configure. |
22021 |
+# config.status only pays attention to the cache file if you give it |
22022 |
+# the --recheck option to rerun configure. |
22023 |
# |
22024 |
-EOF |
22025 |
+# `ac_cv_env_foo' variables (set or unset) will be overridden when |
22026 |
+# loading this file, other *unset* `ac_cv_foo' will be assigned the |
22027 |
+# following values. |
22028 |
+ |
22029 |
+_ACEOF |
22030 |
+ |
22031 |
# The following way of writing the cache mishandles newlines in values, |
22032 |
# but we know of no workaround that is simple, portable, and efficient. |
22033 |
-# So, don't put newlines in cache variables' values. |
22034 |
+# So, we kill variables containing newlines. |
22035 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
22036 |
# and sets the high bit in the cache file unless we assign to the vars. |
22037 |
-(set) 2>&1 | |
22038 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in |
22039 |
- *ac_space=\ *) |
22040 |
- # `set' does not quote correctly, so add quotes (double-quote substitution |
22041 |
- # turns \\\\ into \\, and sed turns \\ into \). |
22042 |
- sed -n \ |
22043 |
- -e "s/'/'\\\\''/g" \ |
22044 |
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
22045 |
- ;; |
22046 |
- *) |
22047 |
- # `set' quotes correctly as required by POSIX, so do not add quotes. |
22048 |
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
22049 |
- ;; |
22050 |
- esac >> confcache |
22051 |
-if cmp -s $cache_file confcache; then |
22052 |
- : |
22053 |
-else |
22054 |
- if test -w $cache_file; then |
22055 |
- echo "updating cache $cache_file" |
22056 |
- cat confcache > $cache_file |
22057 |
+( |
22058 |
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
22059 |
+ eval ac_val=\$$ac_var |
22060 |
+ case $ac_val in #( |
22061 |
+ *${as_nl}*) |
22062 |
+ case $ac_var in #( |
22063 |
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
22064 |
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
22065 |
+ esac |
22066 |
+ case $ac_var in #( |
22067 |
+ _ | IFS | as_nl) ;; #( |
22068 |
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
22069 |
+ *) { eval $ac_var=; unset $ac_var;} ;; |
22070 |
+ esac ;; |
22071 |
+ esac |
22072 |
+ done |
22073 |
+ |
22074 |
+ (set) 2>&1 | |
22075 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #( |
22076 |
+ *${as_nl}ac_space=\ *) |
22077 |
+ # `set' does not quote correctly, so add quotes: double-quote |
22078 |
+ # substitution turns \\\\ into \\, and sed turns \\ into \. |
22079 |
+ sed -n \ |
22080 |
+ "s/'/'\\\\''/g; |
22081 |
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
22082 |
+ ;; #( |
22083 |
+ *) |
22084 |
+ # `set' quotes correctly as required by POSIX, so do not add quotes. |
22085 |
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
22086 |
+ ;; |
22087 |
+ esac | |
22088 |
+ sort |
22089 |
+) | |
22090 |
+ sed ' |
22091 |
+ /^ac_cv_env_/b end |
22092 |
+ t clear |
22093 |
+ :clear |
22094 |
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
22095 |
+ t end |
22096 |
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
22097 |
+ :end' >>confcache |
22098 |
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
22099 |
+ if test -w "$cache_file"; then |
22100 |
+ if test "x$cache_file" != "x/dev/null"; then |
22101 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
22102 |
+$as_echo "$as_me: updating cache $cache_file" >&6;} |
22103 |
+ if test ! -f "$cache_file" || test -h "$cache_file"; then |
22104 |
+ cat confcache >"$cache_file" |
22105 |
+ else |
22106 |
+ case $cache_file in #( |
22107 |
+ */* | ?:*) |
22108 |
+ mv -f confcache "$cache_file"$$ && |
22109 |
+ mv -f "$cache_file"$$ "$cache_file" ;; #( |
22110 |
+ *) |
22111 |
+ mv -f confcache "$cache_file" ;; |
22112 |
+ esac |
22113 |
+ fi |
22114 |
+ fi |
22115 |
else |
22116 |
- echo "not updating unwritable cache $cache_file" |
22117 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
22118 |
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
22119 |
fi |
22120 |
fi |
22121 |
rm -f confcache |
22122 |
|
22123 |
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22124 |
- |
22125 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22126 |
# Let make expand exec_prefix. |
22127 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
22128 |
|
22129 |
-# Any assignment to VPATH causes Sun make to only execute |
22130 |
-# the first set of double-colon rules, so remove it if not needed. |
22131 |
-# If there is a colon in the path, we need to keep it. |
22132 |
-if test "x$srcdir" = x.; then |
22133 |
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
22134 |
-fi |
22135 |
+DEFS=-DHAVE_CONFIG_H |
22136 |
|
22137 |
-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
22138 |
+ac_libobjs= |
22139 |
+ac_ltlibobjs= |
22140 |
+U= |
22141 |
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
22142 |
+ # 1. Remove the extension, and $U if already installed. |
22143 |
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
22144 |
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
22145 |
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
22146 |
+ # will be set to the directory where LIBOBJS objects are built. |
22147 |
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
22148 |
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
22149 |
+done |
22150 |
+LIBOBJS=$ac_libobjs |
22151 |
|
22152 |
-DEFS=-DHAVE_CONFIG_H |
22153 |
+LTLIBOBJS=$ac_ltlibobjs |
22154 |
|
22155 |
-# Without the "./", some shells look in PATH for config.status. |
22156 |
-: ${CONFIG_STATUS=./config.status} |
22157 |
|
22158 |
-echo creating $CONFIG_STATUS |
22159 |
-rm -f $CONFIG_STATUS |
22160 |
-cat > $CONFIG_STATUS <<EOF |
22161 |
-#! /bin/sh |
22162 |
-# Generated automatically by configure. |
22163 |
+ |
22164 |
+: "${CONFIG_STATUS=./config.status}" |
22165 |
+ac_write_fail=0 |
22166 |
+ac_clean_files_save=$ac_clean_files |
22167 |
+ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
22168 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
22169 |
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
22170 |
+as_write_fail=0 |
22171 |
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
22172 |
+#! $SHELL |
22173 |
+# Generated by $as_me. |
22174 |
# Run this file to recreate the current configuration. |
22175 |
-# This directory was configured as follows, |
22176 |
-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
22177 |
-# |
22178 |
-# $0 $ac_configure_args |
22179 |
-# |
22180 |
# Compiler output produced by configure, useful for debugging |
22181 |
-# configure, is in ./config.log if it exists. |
22182 |
+# configure, is in config.log if it exists. |
22183 |
|
22184 |
-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22185 |
-for ac_option |
22186 |
+debug=false |
22187 |
+ac_cs_recheck=false |
22188 |
+ac_cs_silent=false |
22189 |
+ |
22190 |
+SHELL=\${CONFIG_SHELL-$SHELL} |
22191 |
+export SHELL |
22192 |
+_ASEOF |
22193 |
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
22194 |
+## -------------------- ## |
22195 |
+## M4sh Initialization. ## |
22196 |
+## -------------------- ## |
22197 |
+ |
22198 |
+# Be more Bourne compatible |
22199 |
+DUALCASE=1; export DUALCASE # for MKS sh |
22200 |
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
22201 |
+ emulate sh |
22202 |
+ NULLCMD=: |
22203 |
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
22204 |
+ # is contrary to our usage. Disable this feature. |
22205 |
+ alias -g '${1+"$@"}'='"$@"' |
22206 |
+ setopt NO_GLOB_SUBST |
22207 |
+else |
22208 |
+ case `(set -o) 2>/dev/null` in #( |
22209 |
+ *posix*) : |
22210 |
+ set -o posix ;; #( |
22211 |
+ *) : |
22212 |
+ ;; |
22213 |
+esac |
22214 |
+fi |
22215 |
+ |
22216 |
+ |
22217 |
+as_nl=' |
22218 |
+' |
22219 |
+export as_nl |
22220 |
+# Printing a long string crashes Solaris 7 /usr/bin/printf. |
22221 |
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
22222 |
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
22223 |
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
22224 |
+# Prefer a ksh shell builtin over an external printf program on Solaris, |
22225 |
+# but without wasting forks for bash or zsh. |
22226 |
+if test -z "$BASH_VERSION$ZSH_VERSION" \ |
22227 |
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
22228 |
+ as_echo='print -r --' |
22229 |
+ as_echo_n='print -rn --' |
22230 |
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
22231 |
+ as_echo='printf %s\n' |
22232 |
+ as_echo_n='printf %s' |
22233 |
+else |
22234 |
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
22235 |
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
22236 |
+ as_echo_n='/usr/ucb/echo -n' |
22237 |
+ else |
22238 |
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
22239 |
+ as_echo_n_body='eval |
22240 |
+ arg=$1; |
22241 |
+ case $arg in #( |
22242 |
+ *"$as_nl"*) |
22243 |
+ expr "X$arg" : "X\\(.*\\)$as_nl"; |
22244 |
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
22245 |
+ esac; |
22246 |
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
22247 |
+ ' |
22248 |
+ export as_echo_n_body |
22249 |
+ as_echo_n='sh -c $as_echo_n_body as_echo' |
22250 |
+ fi |
22251 |
+ export as_echo_body |
22252 |
+ as_echo='sh -c $as_echo_body as_echo' |
22253 |
+fi |
22254 |
+ |
22255 |
+# The user is always right. |
22256 |
+if test "${PATH_SEPARATOR+set}" != set; then |
22257 |
+ PATH_SEPARATOR=: |
22258 |
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
22259 |
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
22260 |
+ PATH_SEPARATOR=';' |
22261 |
+ } |
22262 |
+fi |
22263 |
+ |
22264 |
+ |
22265 |
+# IFS |
22266 |
+# We need space, tab and new line, in precisely that order. Quoting is |
22267 |
+# there to prevent editors from complaining about space-tab. |
22268 |
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
22269 |
+# splitting by setting IFS to empty value.) |
22270 |
+IFS=" "" $as_nl" |
22271 |
+ |
22272 |
+# Find who we are. Look in the path if we contain no directory separator. |
22273 |
+as_myself= |
22274 |
+case $0 in #(( |
22275 |
+ *[\\/]* ) as_myself=$0 ;; |
22276 |
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22277 |
+for as_dir in $PATH |
22278 |
do |
22279 |
- case "\$ac_option" in |
22280 |
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
22281 |
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
22282 |
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
22283 |
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
22284 |
- echo "$CONFIG_STATUS generated by autoconf version 2.13" |
22285 |
- exit 0 ;; |
22286 |
- -help | --help | --hel | --he | --h) |
22287 |
- echo "\$ac_cs_usage"; exit 0 ;; |
22288 |
- *) echo "\$ac_cs_usage"; exit 1 ;; |
22289 |
- esac |
22290 |
-done |
22291 |
+ IFS=$as_save_IFS |
22292 |
+ test -z "$as_dir" && as_dir=. |
22293 |
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
22294 |
+ done |
22295 |
+IFS=$as_save_IFS |
22296 |
|
22297 |
-ac_given_srcdir=$srcdir |
22298 |
-ac_given_INSTALL="$INSTALL" |
22299 |
+ ;; |
22300 |
+esac |
22301 |
+# We did not find ourselves, most probably we were run as `sh COMMAND' |
22302 |
+# in which case we are not to be found in the path. |
22303 |
+if test "x$as_myself" = x; then |
22304 |
+ as_myself=$0 |
22305 |
+fi |
22306 |
+if test ! -f "$as_myself"; then |
22307 |
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
22308 |
+ exit 1 |
22309 |
+fi |
22310 |
|
22311 |
-trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
22312 |
-EOF |
22313 |
-cat >> $CONFIG_STATUS <<EOF |
22314 |
+# Unset variables that we do not need and which cause bugs (e.g. in |
22315 |
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
22316 |
+# suppresses any "Segmentation fault" message there. '((' could |
22317 |
+# trigger a bug in pdksh 5.2.14. |
22318 |
+for as_var in BASH_ENV ENV MAIL MAILPATH |
22319 |
+do eval test x\${$as_var+set} = xset \ |
22320 |
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
22321 |
+done |
22322 |
+PS1='$ ' |
22323 |
+PS2='> ' |
22324 |
+PS4='+ ' |
22325 |
|
22326 |
-# Protect against being on the right side of a sed subst in config.status. |
22327 |
-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
22328 |
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
22329 |
-$ac_vpsub |
22330 |
-$extrasub |
22331 |
-s%@SHELL@%$SHELL%g |
22332 |
-s%@CFLAGS@%$CFLAGS%g |
22333 |
-s%@CPPFLAGS@%$CPPFLAGS%g |
22334 |
-s%@CXXFLAGS@%$CXXFLAGS%g |
22335 |
-s%@FFLAGS@%$FFLAGS%g |
22336 |
-s%@DEFS@%$DEFS%g |
22337 |
-s%@LDFLAGS@%$LDFLAGS%g |
22338 |
-s%@LIBS@%$LIBS%g |
22339 |
-s%@exec_prefix@%$exec_prefix%g |
22340 |
-s%@prefix@%$prefix%g |
22341 |
-s%@program_transform_name@%$program_transform_name%g |
22342 |
-s%@bindir@%$bindir%g |
22343 |
-s%@sbindir@%$sbindir%g |
22344 |
-s%@libexecdir@%$libexecdir%g |
22345 |
-s%@datadir@%$datadir%g |
22346 |
-s%@sysconfdir@%$sysconfdir%g |
22347 |
-s%@sharedstatedir@%$sharedstatedir%g |
22348 |
-s%@localstatedir@%$localstatedir%g |
22349 |
-s%@libdir@%$libdir%g |
22350 |
-s%@includedir@%$includedir%g |
22351 |
-s%@oldincludedir@%$oldincludedir%g |
22352 |
-s%@infodir@%$infodir%g |
22353 |
-s%@mandir@%$mandir%g |
22354 |
-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
22355 |
-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
22356 |
-s%@INSTALL_DATA@%$INSTALL_DATA%g |
22357 |
-s%@PACKAGE@%$PACKAGE%g |
22358 |
-s%@VERSION@%$VERSION%g |
22359 |
-s%@ACLOCAL@%$ACLOCAL%g |
22360 |
-s%@AUTOCONF@%$AUTOCONF%g |
22361 |
-s%@AUTOMAKE@%$AUTOMAKE%g |
22362 |
-s%@AUTOHEADER@%$AUTOHEADER%g |
22363 |
-s%@MAKEINFO@%$MAKEINFO%g |
22364 |
-s%@SET_MAKE@%$SET_MAKE%g |
22365 |
-s%@CC@%$CC%g |
22366 |
-s%@CPP@%$CPP%g |
22367 |
-s%@PKG_CONFIG@%$PKG_CONFIG%g |
22368 |
-s%@OPENSSL_CFLAGS@%$OPENSSL_CFLAGS%g |
22369 |
-s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g |
22370 |
-s%@NSS_CFLAGS@%$NSS_CFLAGS%g |
22371 |
-s%@NSS_LIBS@%$NSS_LIBS%g |
22372 |
-s%@DIRECTFB_CONFIG@%$DIRECTFB_CONFIG%g |
22373 |
-s%@DIRECTFB_CFLAGS@%$DIRECTFB_CFLAGS%g |
22374 |
-s%@DIRECTFB_LIBS@%$DIRECTFB_LIBS%g |
22375 |
-s%@CXX@%$CXX%g |
22376 |
-s%@LIBPNG_CFLAGS@%$LIBPNG_CFLAGS%g |
22377 |
-s%@LIBPNG_LIBS@%$LIBPNG_LIBS%g |
22378 |
-s%@LIBPNG12_CFLAGS@%$LIBPNG12_CFLAGS%g |
22379 |
-s%@LIBPNG12_LIBS@%$LIBPNG12_LIBS%g |
22380 |
-s%@ATHEOS_GR_TRUE@%$ATHEOS_GR_TRUE%g |
22381 |
-s%@ATHEOS_GR_FALSE@%$ATHEOS_GR_FALSE%g |
22382 |
+# NLS nuisances. |
22383 |
+LC_ALL=C |
22384 |
+export LC_ALL |
22385 |
+LANGUAGE=C |
22386 |
+export LANGUAGE |
22387 |
|
22388 |
-CEOF |
22389 |
-EOF |
22390 |
+# CDPATH. |
22391 |
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
22392 |
|
22393 |
-cat >> $CONFIG_STATUS <<\EOF |
22394 |
|
22395 |
-# Split the substitutions into bite-sized pieces for seds with |
22396 |
-# small command number limits, like on Digital OSF/1 and HP-UX. |
22397 |
-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
22398 |
-ac_file=1 # Number of current file. |
22399 |
-ac_beg=1 # First line for current file. |
22400 |
-ac_end=$ac_max_sed_cmds # Line after last line for current file. |
22401 |
-ac_more_lines=: |
22402 |
-ac_sed_cmds="" |
22403 |
-while $ac_more_lines; do |
22404 |
- if test $ac_beg -gt 1; then |
22405 |
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
22406 |
- else |
22407 |
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
22408 |
- fi |
22409 |
- if test ! -s conftest.s$ac_file; then |
22410 |
- ac_more_lines=false |
22411 |
- rm -f conftest.s$ac_file |
22412 |
- else |
22413 |
- if test -z "$ac_sed_cmds"; then |
22414 |
- ac_sed_cmds="sed -f conftest.s$ac_file" |
22415 |
- else |
22416 |
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
22417 |
- fi |
22418 |
- ac_file=`expr $ac_file + 1` |
22419 |
- ac_beg=$ac_end |
22420 |
- ac_end=`expr $ac_end + $ac_max_sed_cmds` |
22421 |
+# as_fn_error STATUS ERROR [LINENO LOG_FD] |
22422 |
+# ---------------------------------------- |
22423 |
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
22424 |
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
22425 |
+# script with STATUS, using 1 if that was 0. |
22426 |
+as_fn_error () |
22427 |
+{ |
22428 |
+ as_status=$1; test $as_status -eq 0 && as_status=1 |
22429 |
+ if test "$4"; then |
22430 |
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
22431 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
22432 |
fi |
22433 |
-done |
22434 |
-if test -z "$ac_sed_cmds"; then |
22435 |
- ac_sed_cmds=cat |
22436 |
+ $as_echo "$as_me: error: $2" >&2 |
22437 |
+ as_fn_exit $as_status |
22438 |
+} # as_fn_error |
22439 |
+ |
22440 |
+ |
22441 |
+# as_fn_set_status STATUS |
22442 |
+# ----------------------- |
22443 |
+# Set $? to STATUS, without forking. |
22444 |
+as_fn_set_status () |
22445 |
+{ |
22446 |
+ return $1 |
22447 |
+} # as_fn_set_status |
22448 |
+ |
22449 |
+# as_fn_exit STATUS |
22450 |
+# ----------------- |
22451 |
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
22452 |
+as_fn_exit () |
22453 |
+{ |
22454 |
+ set +e |
22455 |
+ as_fn_set_status $1 |
22456 |
+ exit $1 |
22457 |
+} # as_fn_exit |
22458 |
+ |
22459 |
+# as_fn_unset VAR |
22460 |
+# --------------- |
22461 |
+# Portably unset VAR. |
22462 |
+as_fn_unset () |
22463 |
+{ |
22464 |
+ { eval $1=; unset $1;} |
22465 |
+} |
22466 |
+as_unset=as_fn_unset |
22467 |
+# as_fn_append VAR VALUE |
22468 |
+# ---------------------- |
22469 |
+# Append the text in VALUE to the end of the definition contained in VAR. Take |
22470 |
+# advantage of any shell optimizations that allow amortized linear growth over |
22471 |
+# repeated appends, instead of the typical quadratic growth present in naive |
22472 |
+# implementations. |
22473 |
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
22474 |
+ eval 'as_fn_append () |
22475 |
+ { |
22476 |
+ eval $1+=\$2 |
22477 |
+ }' |
22478 |
+else |
22479 |
+ as_fn_append () |
22480 |
+ { |
22481 |
+ eval $1=\$$1\$2 |
22482 |
+ } |
22483 |
+fi # as_fn_append |
22484 |
+ |
22485 |
+# as_fn_arith ARG... |
22486 |
+# ------------------ |
22487 |
+# Perform arithmetic evaluation on the ARGs, and store the result in the |
22488 |
+# global $as_val. Take advantage of shells that can avoid forks. The arguments |
22489 |
+# must be portable across $(()) and expr. |
22490 |
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
22491 |
+ eval 'as_fn_arith () |
22492 |
+ { |
22493 |
+ as_val=$(( $* )) |
22494 |
+ }' |
22495 |
+else |
22496 |
+ as_fn_arith () |
22497 |
+ { |
22498 |
+ as_val=`expr "$@" || test $? -eq 1` |
22499 |
+ } |
22500 |
+fi # as_fn_arith |
22501 |
+ |
22502 |
+ |
22503 |
+if expr a : '\(a\)' >/dev/null 2>&1 && |
22504 |
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then |
22505 |
+ as_expr=expr |
22506 |
+else |
22507 |
+ as_expr=false |
22508 |
fi |
22509 |
-EOF |
22510 |
|
22511 |
-cat >> $CONFIG_STATUS <<EOF |
22512 |
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
22513 |
+ as_basename=basename |
22514 |
+else |
22515 |
+ as_basename=false |
22516 |
+fi |
22517 |
|
22518 |
-CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
22519 |
-EOF |
22520 |
-cat >> $CONFIG_STATUS <<\EOF |
22521 |
-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
22522 |
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
22523 |
- case "$ac_file" in |
22524 |
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
22525 |
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
22526 |
- *) ac_file_in="${ac_file}.in" ;; |
22527 |
- esac |
22528 |
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
22529 |
+ as_dirname=dirname |
22530 |
+else |
22531 |
+ as_dirname=false |
22532 |
+fi |
22533 |
|
22534 |
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
22535 |
+as_me=`$as_basename -- "$0" || |
22536 |
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
22537 |
+ X"$0" : 'X\(//\)$' \| \ |
22538 |
+ X"$0" : 'X\(/\)' \| . 2>/dev/null || |
22539 |
+$as_echo X/"$0" | |
22540 |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{ |
22541 |
+ s//\1/ |
22542 |
+ q |
22543 |
+ } |
22544 |
+ /^X\/\(\/\/\)$/{ |
22545 |
+ s//\1/ |
22546 |
+ q |
22547 |
+ } |
22548 |
+ /^X\/\(\/\).*/{ |
22549 |
+ s//\1/ |
22550 |
+ q |
22551 |
+ } |
22552 |
+ s/.*/./; q'` |
22553 |
|
22554 |
- # Remove last slash and all that follows it. Not all systems have dirname. |
22555 |
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
22556 |
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
22557 |
- # The file is in a subdirectory. |
22558 |
- test ! -d "$ac_dir" && mkdir "$ac_dir" |
22559 |
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
22560 |
- # A "../" for each directory in $ac_dir_suffix. |
22561 |
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
22562 |
+# Avoid depending upon Character Ranges. |
22563 |
+as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
22564 |
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
22565 |
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
22566 |
+as_cr_digits='0123456789' |
22567 |
+as_cr_alnum=$as_cr_Letters$as_cr_digits |
22568 |
+ |
22569 |
+ECHO_C= ECHO_N= ECHO_T= |
22570 |
+case `echo -n x` in #((((( |
22571 |
+-n*) |
22572 |
+ case `echo 'xy\c'` in |
22573 |
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
22574 |
+ xy) ECHO_C='\c';; |
22575 |
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
22576 |
+ ECHO_T=' ';; |
22577 |
+ esac;; |
22578 |
+*) |
22579 |
+ ECHO_N='-n';; |
22580 |
+esac |
22581 |
+ |
22582 |
+rm -f conf$$ conf$$.exe conf$$.file |
22583 |
+if test -d conf$$.dir; then |
22584 |
+ rm -f conf$$.dir/conf$$.file |
22585 |
+else |
22586 |
+ rm -f conf$$.dir |
22587 |
+ mkdir conf$$.dir 2>/dev/null |
22588 |
+fi |
22589 |
+if (echo >conf$$.file) 2>/dev/null; then |
22590 |
+ if ln -s conf$$.file conf$$ 2>/dev/null; then |
22591 |
+ as_ln_s='ln -s' |
22592 |
+ # ... but there are two gotchas: |
22593 |
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
22594 |
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
22595 |
+ # In both cases, we have to default to `cp -pR'. |
22596 |
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22597 |
+ as_ln_s='cp -pR' |
22598 |
+ elif ln conf$$.file conf$$ 2>/dev/null; then |
22599 |
+ as_ln_s=ln |
22600 |
else |
22601 |
- ac_dir_suffix= ac_dots= |
22602 |
+ as_ln_s='cp -pR' |
22603 |
fi |
22604 |
+else |
22605 |
+ as_ln_s='cp -pR' |
22606 |
+fi |
22607 |
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
22608 |
+rmdir conf$$.dir 2>/dev/null |
22609 |
|
22610 |
- case "$ac_given_srcdir" in |
22611 |
- .) srcdir=. |
22612 |
- if test -z "$ac_dots"; then top_srcdir=. |
22613 |
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
22614 |
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
22615 |
- *) # Relative path. |
22616 |
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22617 |
- top_srcdir="$ac_dots$ac_given_srcdir" ;; |
22618 |
+ |
22619 |
+# as_fn_mkdir_p |
22620 |
+# ------------- |
22621 |
+# Create "$as_dir" as a directory, including parents if necessary. |
22622 |
+as_fn_mkdir_p () |
22623 |
+{ |
22624 |
+ |
22625 |
+ case $as_dir in #( |
22626 |
+ -*) as_dir=./$as_dir;; |
22627 |
esac |
22628 |
+ test -d "$as_dir" || eval $as_mkdir_p || { |
22629 |
+ as_dirs= |
22630 |
+ while :; do |
22631 |
+ case $as_dir in #( |
22632 |
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
22633 |
+ *) as_qdir=$as_dir;; |
22634 |
+ esac |
22635 |
+ as_dirs="'$as_qdir' $as_dirs" |
22636 |
+ as_dir=`$as_dirname -- "$as_dir" || |
22637 |
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22638 |
+ X"$as_dir" : 'X\(//\)[^/]' \| \ |
22639 |
+ X"$as_dir" : 'X\(//\)$' \| \ |
22640 |
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
22641 |
+$as_echo X"$as_dir" | |
22642 |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22643 |
+ s//\1/ |
22644 |
+ q |
22645 |
+ } |
22646 |
+ /^X\(\/\/\)[^/].*/{ |
22647 |
+ s//\1/ |
22648 |
+ q |
22649 |
+ } |
22650 |
+ /^X\(\/\/\)$/{ |
22651 |
+ s//\1/ |
22652 |
+ q |
22653 |
+ } |
22654 |
+ /^X\(\/\).*/{ |
22655 |
+ s//\1/ |
22656 |
+ q |
22657 |
+ } |
22658 |
+ s/.*/./; q'` |
22659 |
+ test -d "$as_dir" && break |
22660 |
+ done |
22661 |
+ test -z "$as_dirs" || eval "mkdir $as_dirs" |
22662 |
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
22663 |
|
22664 |
- case "$ac_given_INSTALL" in |
22665 |
- [/$]*) INSTALL="$ac_given_INSTALL" ;; |
22666 |
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
22667 |
+ |
22668 |
+} # as_fn_mkdir_p |
22669 |
+if mkdir -p . 2>/dev/null; then |
22670 |
+ as_mkdir_p='mkdir -p "$as_dir"' |
22671 |
+else |
22672 |
+ test -d ./-p && rmdir ./-p |
22673 |
+ as_mkdir_p=false |
22674 |
+fi |
22675 |
+ |
22676 |
+ |
22677 |
+# as_fn_executable_p FILE |
22678 |
+# ----------------------- |
22679 |
+# Test if FILE is an executable regular file. |
22680 |
+as_fn_executable_p () |
22681 |
+{ |
22682 |
+ test -f "$1" && test -x "$1" |
22683 |
+} # as_fn_executable_p |
22684 |
+as_test_x='test -x' |
22685 |
+as_executable_p=as_fn_executable_p |
22686 |
+ |
22687 |
+# Sed expression to map a string onto a valid CPP name. |
22688 |
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
22689 |
+ |
22690 |
+# Sed expression to map a string onto a valid variable name. |
22691 |
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
22692 |
+ |
22693 |
+ |
22694 |
+exec 6>&1 |
22695 |
+## ----------------------------------- ## |
22696 |
+## Main body of $CONFIG_STATUS script. ## |
22697 |
+## ----------------------------------- ## |
22698 |
+_ASEOF |
22699 |
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
22700 |
+ |
22701 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22702 |
+# Save the log message, to keep $0 and so on meaningful, and to |
22703 |
+# report actual input values of CONFIG_FILES etc. instead of their |
22704 |
+# values after options handling. |
22705 |
+ac_log=" |
22706 |
+This file was extended by $as_me, which was |
22707 |
+generated by GNU Autoconf 2.69. Invocation command line was |
22708 |
+ |
22709 |
+ CONFIG_FILES = $CONFIG_FILES |
22710 |
+ CONFIG_HEADERS = $CONFIG_HEADERS |
22711 |
+ CONFIG_LINKS = $CONFIG_LINKS |
22712 |
+ CONFIG_COMMANDS = $CONFIG_COMMANDS |
22713 |
+ $ $0 $@ |
22714 |
+ |
22715 |
+on `(hostname || uname -n) 2>/dev/null | sed 1q` |
22716 |
+" |
22717 |
+ |
22718 |
+_ACEOF |
22719 |
+ |
22720 |
+case $ac_config_files in *" |
22721 |
+"*) set x $ac_config_files; shift; ac_config_files=$*;; |
22722 |
+esac |
22723 |
+ |
22724 |
+case $ac_config_headers in *" |
22725 |
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
22726 |
+esac |
22727 |
+ |
22728 |
+ |
22729 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
22730 |
+# Files that config.status was made for. |
22731 |
+config_files="$ac_config_files" |
22732 |
+config_headers="$ac_config_headers" |
22733 |
+config_commands="$ac_config_commands" |
22734 |
+ |
22735 |
+_ACEOF |
22736 |
+ |
22737 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22738 |
+ac_cs_usage="\ |
22739 |
+\`$as_me' instantiates files and other configuration actions |
22740 |
+from templates according to the current configuration. Unless the files |
22741 |
+and actions are specified as TAGs, all are instantiated by default. |
22742 |
+ |
22743 |
+Usage: $0 [OPTION]... [TAG]... |
22744 |
+ |
22745 |
+ -h, --help print this help, then exit |
22746 |
+ -V, --version print version number and configuration settings, then exit |
22747 |
+ --config print configuration, then exit |
22748 |
+ -q, --quiet, --silent |
22749 |
+ do not print progress messages |
22750 |
+ -d, --debug don't remove temporary files |
22751 |
+ --recheck update $as_me by reconfiguring in the same conditions |
22752 |
+ --file=FILE[:TEMPLATE] |
22753 |
+ instantiate the configuration file FILE |
22754 |
+ --header=FILE[:TEMPLATE] |
22755 |
+ instantiate the configuration header FILE |
22756 |
+ |
22757 |
+Configuration files: |
22758 |
+$config_files |
22759 |
+ |
22760 |
+Configuration headers: |
22761 |
+$config_headers |
22762 |
+ |
22763 |
+Configuration commands: |
22764 |
+$config_commands |
22765 |
+ |
22766 |
+Report bugs to the package provider." |
22767 |
+ |
22768 |
+_ACEOF |
22769 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
22770 |
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
22771 |
+ac_cs_version="\\ |
22772 |
+config.status |
22773 |
+configured by $0, generated by GNU Autoconf 2.69, |
22774 |
+ with options \\"\$ac_cs_config\\" |
22775 |
+ |
22776 |
+Copyright (C) 2012 Free Software Foundation, Inc. |
22777 |
+This config.status script is free software; the Free Software Foundation |
22778 |
+gives unlimited permission to copy, distribute and modify it." |
22779 |
+ |
22780 |
+ac_pwd='$ac_pwd' |
22781 |
+srcdir='$srcdir' |
22782 |
+INSTALL='$INSTALL' |
22783 |
+test -n "\$AWK" || AWK=awk |
22784 |
+_ACEOF |
22785 |
+ |
22786 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22787 |
+# The default lists apply if the user does not specify any file. |
22788 |
+ac_need_defaults=: |
22789 |
+while test $# != 0 |
22790 |
+do |
22791 |
+ case $1 in |
22792 |
+ --*=?*) |
22793 |
+ ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22794 |
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
22795 |
+ ac_shift=: |
22796 |
+ ;; |
22797 |
+ --*=) |
22798 |
+ ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22799 |
+ ac_optarg= |
22800 |
+ ac_shift=: |
22801 |
+ ;; |
22802 |
+ *) |
22803 |
+ ac_option=$1 |
22804 |
+ ac_optarg=$2 |
22805 |
+ ac_shift=shift |
22806 |
+ ;; |
22807 |
esac |
22808 |
|
22809 |
- echo creating "$ac_file" |
22810 |
- rm -f "$ac_file" |
22811 |
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
22812 |
- case "$ac_file" in |
22813 |
- *Makefile*) ac_comsub="1i\\ |
22814 |
-# $configure_input" ;; |
22815 |
- *) ac_comsub= ;; |
22816 |
+ case $ac_option in |
22817 |
+ # Handling of the options. |
22818 |
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
22819 |
+ ac_cs_recheck=: ;; |
22820 |
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
22821 |
+ $as_echo "$ac_cs_version"; exit ;; |
22822 |
+ --config | --confi | --conf | --con | --co | --c ) |
22823 |
+ $as_echo "$ac_cs_config"; exit ;; |
22824 |
+ --debug | --debu | --deb | --de | --d | -d ) |
22825 |
+ debug=: ;; |
22826 |
+ --file | --fil | --fi | --f ) |
22827 |
+ $ac_shift |
22828 |
+ case $ac_optarg in |
22829 |
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
22830 |
+ '') as_fn_error $? "missing file argument" ;; |
22831 |
+ esac |
22832 |
+ as_fn_append CONFIG_FILES " '$ac_optarg'" |
22833 |
+ ac_need_defaults=false;; |
22834 |
+ --header | --heade | --head | --hea ) |
22835 |
+ $ac_shift |
22836 |
+ case $ac_optarg in |
22837 |
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
22838 |
+ esac |
22839 |
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
22840 |
+ ac_need_defaults=false;; |
22841 |
+ --he | --h) |
22842 |
+ # Conflict between --help and --header |
22843 |
+ as_fn_error $? "ambiguous option: \`$1' |
22844 |
+Try \`$0 --help' for more information.";; |
22845 |
+ --help | --hel | -h ) |
22846 |
+ $as_echo "$ac_cs_usage"; exit ;; |
22847 |
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
22848 |
+ | -silent | --silent | --silen | --sile | --sil | --si | --s) |
22849 |
+ ac_cs_silent=: ;; |
22850 |
+ |
22851 |
+ # This is an error. |
22852 |
+ -*) as_fn_error $? "unrecognized option: \`$1' |
22853 |
+Try \`$0 --help' for more information." ;; |
22854 |
+ |
22855 |
+ *) as_fn_append ac_config_targets " $1" |
22856 |
+ ac_need_defaults=false ;; |
22857 |
+ |
22858 |
esac |
22859 |
+ shift |
22860 |
+done |
22861 |
|
22862 |
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22863 |
- sed -e "$ac_comsub |
22864 |
-s%@configure_input@%$configure_input%g |
22865 |
-s%@srcdir@%$srcdir%g |
22866 |
-s%@top_srcdir@%$top_srcdir%g |
22867 |
-s%@INSTALL@%$INSTALL%g |
22868 |
-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
22869 |
-fi; done |
22870 |
-rm -f conftest.s* |
22871 |
+ac_configure_extra_args= |
22872 |
|
22873 |
-# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
22874 |
-# NAME is the cpp macro being defined and VALUE is the value it is being given. |
22875 |
-# |
22876 |
-# ac_d sets the value in "#define NAME VALUE" lines. |
22877 |
-ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22878 |
-ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
22879 |
-ac_dC='\3' |
22880 |
-ac_dD='%g' |
22881 |
-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
22882 |
-ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
22883 |
-ac_uB='\([ ]\)%\1#\2define\3' |
22884 |
-ac_uC=' ' |
22885 |
-ac_uD='\4%g' |
22886 |
-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
22887 |
-ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
22888 |
-ac_eB='$%\1#\2define\3' |
22889 |
-ac_eC=' ' |
22890 |
-ac_eD='%g' |
22891 |
+if $ac_cs_silent; then |
22892 |
+ exec 6>/dev/null |
22893 |
+ ac_configure_extra_args="$ac_configure_extra_args --silent" |
22894 |
+fi |
22895 |
|
22896 |
-if test "${CONFIG_HEADERS+set}" != set; then |
22897 |
-EOF |
22898 |
-cat >> $CONFIG_STATUS <<EOF |
22899 |
- CONFIG_HEADERS="config.h" |
22900 |
-EOF |
22901 |
-cat >> $CONFIG_STATUS <<\EOF |
22902 |
+_ACEOF |
22903 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
22904 |
+if \$ac_cs_recheck; then |
22905 |
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
22906 |
+ shift |
22907 |
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
22908 |
+ CONFIG_SHELL='$SHELL' |
22909 |
+ export CONFIG_SHELL |
22910 |
+ exec "\$@" |
22911 |
fi |
22912 |
-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
22913 |
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
22914 |
- case "$ac_file" in |
22915 |
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
22916 |
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
22917 |
- *) ac_file_in="${ac_file}.in" ;; |
22918 |
+ |
22919 |
+_ACEOF |
22920 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22921 |
+exec 5>>config.log |
22922 |
+{ |
22923 |
+ echo |
22924 |
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
22925 |
+## Running $as_me. ## |
22926 |
+_ASBOX |
22927 |
+ $as_echo "$ac_log" |
22928 |
+} >&5 |
22929 |
+ |
22930 |
+_ACEOF |
22931 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
22932 |
+# |
22933 |
+# INIT-COMMANDS |
22934 |
+# |
22935 |
+ |
22936 |
+ |
22937 |
+_ACEOF |
22938 |
+ |
22939 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22940 |
+ |
22941 |
+# Handling of arguments. |
22942 |
+for ac_config_target in $ac_config_targets |
22943 |
+do |
22944 |
+ case $ac_config_target in |
22945 |
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
22946 |
+ "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
22947 |
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
22948 |
+ |
22949 |
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
22950 |
esac |
22951 |
+done |
22952 |
|
22953 |
- echo creating $ac_file |
22954 |
|
22955 |
- rm -f conftest.frag conftest.in conftest.out |
22956 |
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22957 |
- cat $ac_file_inputs > conftest.in |
22958 |
+# If the user did not use the arguments to specify the items to instantiate, |
22959 |
+# then the envvar interface is used. Set only those that are not. |
22960 |
+# We use the long form for the default assignment because of an extremely |
22961 |
+# bizarre bug on SunOS 4.1.3. |
22962 |
+if $ac_need_defaults; then |
22963 |
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
22964 |
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
22965 |
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
22966 |
+fi |
22967 |
|
22968 |
-EOF |
22969 |
+# Have a temporary directory for convenience. Make it in the build tree |
22970 |
+# simply because there is no reason against having it here, and in addition, |
22971 |
+# creating and moving files from /tmp can sometimes cause problems. |
22972 |
+# Hook for its removal unless debugging. |
22973 |
+# Note that there is a small window in which the directory will not be cleaned: |
22974 |
+# after its creation but before its name has been assigned to `$tmp'. |
22975 |
+$debug || |
22976 |
+{ |
22977 |
+ tmp= ac_tmp= |
22978 |
+ trap 'exit_status=$? |
22979 |
+ : "${ac_tmp:=$tmp}" |
22980 |
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
22981 |
+' 0 |
22982 |
+ trap 'as_fn_exit 1' 1 2 13 15 |
22983 |
+} |
22984 |
+# Create a (secure) tmp directory for tmp files. |
22985 |
|
22986 |
-# Transform confdefs.h into a sed script conftest.vals that substitutes |
22987 |
-# the proper values into config.h.in to produce config.h. And first: |
22988 |
-# Protect against being on the right side of a sed subst in config.status. |
22989 |
-# Protect against being in an unquoted here document in config.status. |
22990 |
-rm -f conftest.vals |
22991 |
-cat > conftest.hdr <<\EOF |
22992 |
-s/[\\&%]/\\&/g |
22993 |
-s%[\\$`]%\\&%g |
22994 |
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
22995 |
-s%ac_d%ac_u%gp |
22996 |
-s%ac_u%ac_e%gp |
22997 |
-EOF |
22998 |
-sed -n -f conftest.hdr confdefs.h > conftest.vals |
22999 |
-rm -f conftest.hdr |
23000 |
+{ |
23001 |
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
23002 |
+ test -d "$tmp" |
23003 |
+} || |
23004 |
+{ |
23005 |
+ tmp=./conf$$-$RANDOM |
23006 |
+ (umask 077 && mkdir "$tmp") |
23007 |
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
23008 |
+ac_tmp=$tmp |
23009 |
|
23010 |
-# This sed command replaces #undef with comments. This is necessary, for |
23011 |
-# example, in the case of _POSIX_SOURCE, which is predefined and required |
23012 |
-# on some systems where configure will not decide to define it. |
23013 |
-cat >> conftest.vals <<\EOF |
23014 |
-s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
23015 |
-EOF |
23016 |
+# Set up the scripts for CONFIG_FILES section. |
23017 |
+# No need to generate them if there are no CONFIG_FILES. |
23018 |
+# This happens for instance with `./config.status config.h'. |
23019 |
+if test -n "$CONFIG_FILES"; then |
23020 |
|
23021 |
-# Break up conftest.vals because some shells have a limit on |
23022 |
-# the size of here documents, and old seds have small limits too. |
23023 |
|
23024 |
-rm -f conftest.tail |
23025 |
-while : |
23026 |
-do |
23027 |
- ac_lines=`grep -c . conftest.vals` |
23028 |
- # grep -c gives empty output for an empty file on some AIX systems. |
23029 |
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
23030 |
- # Write a limited-size here document to conftest.frag. |
23031 |
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
23032 |
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
23033 |
- echo 'CEOF |
23034 |
- sed -f conftest.frag conftest.in > conftest.out |
23035 |
- rm -f conftest.in |
23036 |
- mv conftest.out conftest.in |
23037 |
-' >> $CONFIG_STATUS |
23038 |
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
23039 |
- rm -f conftest.vals |
23040 |
- mv conftest.tail conftest.vals |
23041 |
+ac_cr=`echo X | tr X '\015'` |
23042 |
+# On cygwin, bash can eat \r inside `` if the user requested igncr. |
23043 |
+# But we know of no other shell where ac_cr would be empty at this |
23044 |
+# point, so we can use a bashism as a fallback. |
23045 |
+if test "x$ac_cr" = x; then |
23046 |
+ eval ac_cr=\$\'\\r\' |
23047 |
+fi |
23048 |
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
23049 |
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
23050 |
+ ac_cs_awk_cr='\\r' |
23051 |
+else |
23052 |
+ ac_cs_awk_cr=$ac_cr |
23053 |
+fi |
23054 |
+ |
23055 |
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
23056 |
+_ACEOF |
23057 |
+ |
23058 |
+ |
23059 |
+{ |
23060 |
+ echo "cat >conf$$subs.awk <<_ACEOF" && |
23061 |
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
23062 |
+ echo "_ACEOF" |
23063 |
+} >conf$$subs.sh || |
23064 |
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23065 |
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
23066 |
+ac_delim='%!_!# ' |
23067 |
+for ac_last_try in false false false false false :; do |
23068 |
+ . ./conf$$subs.sh || |
23069 |
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23070 |
+ |
23071 |
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
23072 |
+ if test $ac_delim_n = $ac_delim_num; then |
23073 |
+ break |
23074 |
+ elif $ac_last_try; then |
23075 |
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23076 |
+ else |
23077 |
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
23078 |
+ fi |
23079 |
done |
23080 |
-rm -f conftest.vals |
23081 |
+rm -f conf$$subs.sh |
23082 |
|
23083 |
-cat >> $CONFIG_STATUS <<\EOF |
23084 |
- rm -f conftest.frag conftest.h |
23085 |
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
23086 |
- cat conftest.in >> conftest.h |
23087 |
- rm -f conftest.in |
23088 |
- if cmp -s $ac_file conftest.h 2>/dev/null; then |
23089 |
- echo "$ac_file is unchanged" |
23090 |
- rm -f conftest.h |
23091 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
23092 |
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
23093 |
+_ACEOF |
23094 |
+sed -n ' |
23095 |
+h |
23096 |
+s/^/S["/; s/!.*/"]=/ |
23097 |
+p |
23098 |
+g |
23099 |
+s/^[^!]*!// |
23100 |
+:repl |
23101 |
+t repl |
23102 |
+s/'"$ac_delim"'$// |
23103 |
+t delim |
23104 |
+:nl |
23105 |
+h |
23106 |
+s/\(.\{148\}\)..*/\1/ |
23107 |
+t more1 |
23108 |
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
23109 |
+p |
23110 |
+n |
23111 |
+b repl |
23112 |
+:more1 |
23113 |
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
23114 |
+p |
23115 |
+g |
23116 |
+s/.\{148\}// |
23117 |
+t nl |
23118 |
+:delim |
23119 |
+h |
23120 |
+s/\(.\{148\}\)..*/\1/ |
23121 |
+t more2 |
23122 |
+s/["\\]/\\&/g; s/^/"/; s/$/"/ |
23123 |
+p |
23124 |
+b |
23125 |
+:more2 |
23126 |
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
23127 |
+p |
23128 |
+g |
23129 |
+s/.\{148\}// |
23130 |
+t delim |
23131 |
+' <conf$$subs.awk | sed ' |
23132 |
+/^[^""]/{ |
23133 |
+ N |
23134 |
+ s/\n// |
23135 |
+} |
23136 |
+' >>$CONFIG_STATUS || ac_write_fail=1 |
23137 |
+rm -f conf$$subs.awk |
23138 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
23139 |
+_ACAWK |
23140 |
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
23141 |
+ for (key in S) S_is_set[key] = 1 |
23142 |
+ FS = "" |
23143 |
+ |
23144 |
+} |
23145 |
+{ |
23146 |
+ line = $ 0 |
23147 |
+ nfields = split(line, field, "@") |
23148 |
+ substed = 0 |
23149 |
+ len = length(field[1]) |
23150 |
+ for (i = 2; i < nfields; i++) { |
23151 |
+ key = field[i] |
23152 |
+ keylen = length(key) |
23153 |
+ if (S_is_set[key]) { |
23154 |
+ value = S[key] |
23155 |
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
23156 |
+ len += length(value) + length(field[++i]) |
23157 |
+ substed = 1 |
23158 |
+ } else |
23159 |
+ len += 1 + keylen |
23160 |
+ } |
23161 |
+ |
23162 |
+ print line |
23163 |
+} |
23164 |
+ |
23165 |
+_ACAWK |
23166 |
+_ACEOF |
23167 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23168 |
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
23169 |
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
23170 |
+else |
23171 |
+ cat |
23172 |
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
23173 |
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
23174 |
+_ACEOF |
23175 |
+ |
23176 |
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
23177 |
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
23178 |
+# trailing colons and then remove the whole line if VPATH becomes empty |
23179 |
+# (actually we leave an empty line to preserve line numbers). |
23180 |
+if test "x$srcdir" = x.; then |
23181 |
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
23182 |
+h |
23183 |
+s/// |
23184 |
+s/^/:/ |
23185 |
+s/[ ]*$/:/ |
23186 |
+s/:\$(srcdir):/:/g |
23187 |
+s/:\${srcdir}:/:/g |
23188 |
+s/:@srcdir@:/:/g |
23189 |
+s/^:*// |
23190 |
+s/:*$// |
23191 |
+x |
23192 |
+s/\(=[ ]*\).*/\1/ |
23193 |
+G |
23194 |
+s/\n// |
23195 |
+s/^[^=]*=[ ]*$// |
23196 |
+}' |
23197 |
+fi |
23198 |
+ |
23199 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23200 |
+fi # test -n "$CONFIG_FILES" |
23201 |
+ |
23202 |
+# Set up the scripts for CONFIG_HEADERS section. |
23203 |
+# No need to generate them if there are no CONFIG_HEADERS. |
23204 |
+# This happens for instance with `./config.status Makefile'. |
23205 |
+if test -n "$CONFIG_HEADERS"; then |
23206 |
+cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
23207 |
+BEGIN { |
23208 |
+_ACEOF |
23209 |
+ |
23210 |
+# Transform confdefs.h into an awk script `defines.awk', embedded as |
23211 |
+# here-document in config.status, that substitutes the proper values into |
23212 |
+# config.h.in to produce config.h. |
23213 |
+ |
23214 |
+# Create a delimiter string that does not exist in confdefs.h, to ease |
23215 |
+# handling of long lines. |
23216 |
+ac_delim='%!_!# ' |
23217 |
+for ac_last_try in false false :; do |
23218 |
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
23219 |
+ if test -z "$ac_tt"; then |
23220 |
+ break |
23221 |
+ elif $ac_last_try; then |
23222 |
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
23223 |
else |
23224 |
- # Remove last slash and all that follows it. Not all systems have dirname. |
23225 |
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
23226 |
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
23227 |
- # The file is in a subdirectory. |
23228 |
- test ! -d "$ac_dir" && mkdir "$ac_dir" |
23229 |
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
23230 |
+ fi |
23231 |
+done |
23232 |
+ |
23233 |
+# For the awk script, D is an array of macro values keyed by name, |
23234 |
+# likewise P contains macro parameters if any. Preserve backslash |
23235 |
+# newline sequences. |
23236 |
+ |
23237 |
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
23238 |
+sed -n ' |
23239 |
+s/.\{148\}/&'"$ac_delim"'/g |
23240 |
+t rset |
23241 |
+:rset |
23242 |
+s/^[ ]*#[ ]*define[ ][ ]*/ / |
23243 |
+t def |
23244 |
+d |
23245 |
+:def |
23246 |
+s/\\$// |
23247 |
+t bsnl |
23248 |
+s/["\\]/\\&/g |
23249 |
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
23250 |
+D["\1"]=" \3"/p |
23251 |
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
23252 |
+d |
23253 |
+:bsnl |
23254 |
+s/["\\]/\\&/g |
23255 |
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
23256 |
+D["\1"]=" \3\\\\\\n"\\/p |
23257 |
+t cont |
23258 |
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
23259 |
+t cont |
23260 |
+d |
23261 |
+:cont |
23262 |
+n |
23263 |
+s/.\{148\}/&'"$ac_delim"'/g |
23264 |
+t clear |
23265 |
+:clear |
23266 |
+s/\\$// |
23267 |
+t bsnlc |
23268 |
+s/["\\]/\\&/g; s/^/"/; s/$/"/p |
23269 |
+d |
23270 |
+:bsnlc |
23271 |
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
23272 |
+b cont |
23273 |
+' <confdefs.h | sed ' |
23274 |
+s/'"$ac_delim"'/"\\\ |
23275 |
+"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
23276 |
+ |
23277 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
23278 |
+ for (key in D) D_is_set[key] = 1 |
23279 |
+ FS = "" |
23280 |
+} |
23281 |
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
23282 |
+ line = \$ 0 |
23283 |
+ split(line, arg, " ") |
23284 |
+ if (arg[1] == "#") { |
23285 |
+ defundef = arg[2] |
23286 |
+ mac1 = arg[3] |
23287 |
+ } else { |
23288 |
+ defundef = substr(arg[1], 2) |
23289 |
+ mac1 = arg[2] |
23290 |
+ } |
23291 |
+ split(mac1, mac2, "(") #) |
23292 |
+ macro = mac2[1] |
23293 |
+ prefix = substr(line, 1, index(line, defundef) - 1) |
23294 |
+ if (D_is_set[macro]) { |
23295 |
+ # Preserve the white space surrounding the "#". |
23296 |
+ print prefix "define", macro P[macro] D[macro] |
23297 |
+ next |
23298 |
+ } else { |
23299 |
+ # Replace #undef with comments. This is necessary, for example, |
23300 |
+ # in the case of _POSIX_SOURCE, which is predefined and required |
23301 |
+ # on some systems where configure will not decide to define it. |
23302 |
+ if (defundef == "undef") { |
23303 |
+ print "/*", prefix defundef, macro, "*/" |
23304 |
+ next |
23305 |
+ } |
23306 |
+ } |
23307 |
+} |
23308 |
+{ print } |
23309 |
+_ACAWK |
23310 |
+_ACEOF |
23311 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23312 |
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
23313 |
+fi # test -n "$CONFIG_HEADERS" |
23314 |
+ |
23315 |
+ |
23316 |
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
23317 |
+shift |
23318 |
+for ac_tag |
23319 |
+do |
23320 |
+ case $ac_tag in |
23321 |
+ :[FHLC]) ac_mode=$ac_tag; continue;; |
23322 |
+ esac |
23323 |
+ case $ac_mode$ac_tag in |
23324 |
+ :[FHL]*:*);; |
23325 |
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
23326 |
+ :[FH]-) ac_tag=-:-;; |
23327 |
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
23328 |
+ esac |
23329 |
+ ac_save_IFS=$IFS |
23330 |
+ IFS=: |
23331 |
+ set x $ac_tag |
23332 |
+ IFS=$ac_save_IFS |
23333 |
+ shift |
23334 |
+ ac_file=$1 |
23335 |
+ shift |
23336 |
+ |
23337 |
+ case $ac_mode in |
23338 |
+ :L) ac_source=$1;; |
23339 |
+ :[FH]) |
23340 |
+ ac_file_inputs= |
23341 |
+ for ac_f |
23342 |
+ do |
23343 |
+ case $ac_f in |
23344 |
+ -) ac_f="$ac_tmp/stdin";; |
23345 |
+ *) # Look for the file first in the build tree, then in the source tree |
23346 |
+ # (if the path is not absolute). The absolute path cannot be DOS-style, |
23347 |
+ # because $ac_f cannot contain `:'. |
23348 |
+ test -f "$ac_f" || |
23349 |
+ case $ac_f in |
23350 |
+ [\\/$]*) false;; |
23351 |
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
23352 |
+ esac || |
23353 |
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
23354 |
+ esac |
23355 |
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
23356 |
+ as_fn_append ac_file_inputs " '$ac_f'" |
23357 |
+ done |
23358 |
+ |
23359 |
+ # Let's still pretend it is `configure' which instantiates (i.e., don't |
23360 |
+ # use $as_me), people would be surprised to read: |
23361 |
+ # /* config.h. Generated by config.status. */ |
23362 |
+ configure_input='Generated from '` |
23363 |
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
23364 |
+ `' by configure.' |
23365 |
+ if test x"$ac_file" != x-; then |
23366 |
+ configure_input="$ac_file. $configure_input" |
23367 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
23368 |
+$as_echo "$as_me: creating $ac_file" >&6;} |
23369 |
fi |
23370 |
- rm -f $ac_file |
23371 |
- mv conftest.h $ac_file |
23372 |
+ # Neutralize special characters interpreted by sed in replacement strings. |
23373 |
+ case $configure_input in #( |
23374 |
+ *\&* | *\|* | *\\* ) |
23375 |
+ ac_sed_conf_input=`$as_echo "$configure_input" | |
23376 |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #( |
23377 |
+ *) ac_sed_conf_input=$configure_input;; |
23378 |
+ esac |
23379 |
+ |
23380 |
+ case $ac_tag in |
23381 |
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
23382 |
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
23383 |
+ esac |
23384 |
+ ;; |
23385 |
+ esac |
23386 |
+ |
23387 |
+ ac_dir=`$as_dirname -- "$ac_file" || |
23388 |
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23389 |
+ X"$ac_file" : 'X\(//\)[^/]' \| \ |
23390 |
+ X"$ac_file" : 'X\(//\)$' \| \ |
23391 |
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
23392 |
+$as_echo X"$ac_file" | |
23393 |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23394 |
+ s//\1/ |
23395 |
+ q |
23396 |
+ } |
23397 |
+ /^X\(\/\/\)[^/].*/{ |
23398 |
+ s//\1/ |
23399 |
+ q |
23400 |
+ } |
23401 |
+ /^X\(\/\/\)$/{ |
23402 |
+ s//\1/ |
23403 |
+ q |
23404 |
+ } |
23405 |
+ /^X\(\/\).*/{ |
23406 |
+ s//\1/ |
23407 |
+ q |
23408 |
+ } |
23409 |
+ s/.*/./; q'` |
23410 |
+ as_dir="$ac_dir"; as_fn_mkdir_p |
23411 |
+ ac_builddir=. |
23412 |
+ |
23413 |
+case "$ac_dir" in |
23414 |
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
23415 |
+*) |
23416 |
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
23417 |
+ # A ".." for each directory in $ac_dir_suffix. |
23418 |
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
23419 |
+ case $ac_top_builddir_sub in |
23420 |
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
23421 |
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
23422 |
+ esac ;; |
23423 |
+esac |
23424 |
+ac_abs_top_builddir=$ac_pwd |
23425 |
+ac_abs_builddir=$ac_pwd$ac_dir_suffix |
23426 |
+# for backward compatibility: |
23427 |
+ac_top_builddir=$ac_top_build_prefix |
23428 |
+ |
23429 |
+case $srcdir in |
23430 |
+ .) # We are building in place. |
23431 |
+ ac_srcdir=. |
23432 |
+ ac_top_srcdir=$ac_top_builddir_sub |
23433 |
+ ac_abs_top_srcdir=$ac_pwd ;; |
23434 |
+ [\\/]* | ?:[\\/]* ) # Absolute name. |
23435 |
+ ac_srcdir=$srcdir$ac_dir_suffix; |
23436 |
+ ac_top_srcdir=$srcdir |
23437 |
+ ac_abs_top_srcdir=$srcdir ;; |
23438 |
+ *) # Relative name. |
23439 |
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
23440 |
+ ac_top_srcdir=$ac_top_build_prefix$srcdir |
23441 |
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
23442 |
+esac |
23443 |
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
23444 |
+ |
23445 |
+ |
23446 |
+ case $ac_mode in |
23447 |
+ :F) |
23448 |
+ # |
23449 |
+ # CONFIG_FILE |
23450 |
+ # |
23451 |
+ |
23452 |
+ case $INSTALL in |
23453 |
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
23454 |
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
23455 |
+ esac |
23456 |
+_ACEOF |
23457 |
+ |
23458 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23459 |
+# If the template does not know about datarootdir, expand it. |
23460 |
+# FIXME: This hack should be removed a few years after 2.60. |
23461 |
+ac_datarootdir_hack=; ac_datarootdir_seen= |
23462 |
+ac_sed_dataroot=' |
23463 |
+/datarootdir/ { |
23464 |
+ p |
23465 |
+ q |
23466 |
+} |
23467 |
+/@datadir@/p |
23468 |
+/@docdir@/p |
23469 |
+/@infodir@/p |
23470 |
+/@localedir@/p |
23471 |
+/@mandir@/p' |
23472 |
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
23473 |
+*datarootdir*) ac_datarootdir_seen=yes;; |
23474 |
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
23475 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
23476 |
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
23477 |
+_ACEOF |
23478 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
23479 |
+ ac_datarootdir_hack=' |
23480 |
+ s&@datadir@&$datadir&g |
23481 |
+ s&@docdir@&$docdir&g |
23482 |
+ s&@infodir@&$infodir&g |
23483 |
+ s&@localedir@&$localedir&g |
23484 |
+ s&@mandir@&$mandir&g |
23485 |
+ s&\\\${datarootdir}&$datarootdir&g' ;; |
23486 |
+esac |
23487 |
+_ACEOF |
23488 |
+ |
23489 |
+# Neutralize VPATH when `$srcdir' = `.'. |
23490 |
+# Shell code in configure.ac might set extrasub. |
23491 |
+# FIXME: do we really want to maintain this feature? |
23492 |
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
23493 |
+ac_sed_extra="$ac_vpsub |
23494 |
+$extrasub |
23495 |
+_ACEOF |
23496 |
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23497 |
+:t |
23498 |
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
23499 |
+s|@configure_input@|$ac_sed_conf_input|;t t |
23500 |
+s&@top_builddir@&$ac_top_builddir_sub&;t t |
23501 |
+s&@top_build_prefix@&$ac_top_build_prefix&;t t |
23502 |
+s&@srcdir@&$ac_srcdir&;t t |
23503 |
+s&@abs_srcdir@&$ac_abs_srcdir&;t t |
23504 |
+s&@top_srcdir@&$ac_top_srcdir&;t t |
23505 |
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
23506 |
+s&@builddir@&$ac_builddir&;t t |
23507 |
+s&@abs_builddir@&$ac_abs_builddir&;t t |
23508 |
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
23509 |
+s&@INSTALL@&$ac_INSTALL&;t t |
23510 |
+$ac_datarootdir_hack |
23511 |
+" |
23512 |
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
23513 |
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
23514 |
+ |
23515 |
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
23516 |
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
23517 |
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
23518 |
+ "$ac_tmp/out"`; test -z "$ac_out"; } && |
23519 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
23520 |
+which seems to be undefined. Please make sure it is defined" >&5 |
23521 |
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
23522 |
+which seems to be undefined. Please make sure it is defined" >&2;} |
23523 |
+ |
23524 |
+ rm -f "$ac_tmp/stdin" |
23525 |
+ case $ac_file in |
23526 |
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
23527 |
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
23528 |
+ esac \ |
23529 |
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
23530 |
+ ;; |
23531 |
+ :H) |
23532 |
+ # |
23533 |
+ # CONFIG_HEADER |
23534 |
+ # |
23535 |
+ if test x"$ac_file" != x-; then |
23536 |
+ { |
23537 |
+ $as_echo "/* $configure_input */" \ |
23538 |
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
23539 |
+ } >"$ac_tmp/config.h" \ |
23540 |
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
23541 |
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
23542 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
23543 |
+$as_echo "$as_me: $ac_file is unchanged" >&6;} |
23544 |
+ else |
23545 |
+ rm -f "$ac_file" |
23546 |
+ mv "$ac_tmp/config.h" "$ac_file" \ |
23547 |
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
23548 |
+ fi |
23549 |
+ else |
23550 |
+ $as_echo "/* $configure_input */" \ |
23551 |
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
23552 |
+ || as_fn_error $? "could not create -" "$LINENO" 5 |
23553 |
fi |
23554 |
-fi; done |
23555 |
+ ;; |
23556 |
|
23557 |
-EOF |
23558 |
-cat >> $CONFIG_STATUS <<EOF |
23559 |
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
23560 |
+$as_echo "$as_me: executing $ac_file commands" >&6;} |
23561 |
+ ;; |
23562 |
+ esac |
23563 |
|
23564 |
|
23565 |
-EOF |
23566 |
-cat >> $CONFIG_STATUS <<\EOF |
23567 |
-test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
23568 |
+ case $ac_file$ac_mode in |
23569 |
+ "default-1":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
23570 |
|
23571 |
-exit 0 |
23572 |
-EOF |
23573 |
-chmod +x $CONFIG_STATUS |
23574 |
-rm -fr confdefs* $ac_clean_files |
23575 |
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
23576 |
+ esac |
23577 |
+done # for ac_tag |
23578 |
+ |
23579 |
+ |
23580 |
+as_fn_exit 0 |
23581 |
+_ACEOF |
23582 |
+ac_clean_files=$ac_clean_files_save |
23583 |
+ |
23584 |
+test $ac_write_fail = 0 || |
23585 |
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
23586 |
+ |
23587 |
+ |
23588 |
+# configure is writing to config.log, and then calls config.status. |
23589 |
+# config.status does its own redirection, appending to config.log. |
23590 |
+# Unfortunately, on DOS this fails, as config.log is still kept open |
23591 |
+# by configure, so config.status won't be able to write to it; its |
23592 |
+# output is simply discarded. So we exec the FD to /dev/null, |
23593 |
+# effectively closing config.log, so it can be properly (re)opened and |
23594 |
+# appended to by config.status. When coming back to configure, we |
23595 |
+# need to make the FD available again. |
23596 |
+if test "$no_create" != yes; then |
23597 |
+ ac_cs_success=: |
23598 |
+ ac_config_status_args= |
23599 |
+ test "$silent" = yes && |
23600 |
+ ac_config_status_args="$ac_config_status_args --quiet" |
23601 |
+ exec 5>/dev/null |
23602 |
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
23603 |
+ exec 5>>config.log |
23604 |
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
23605 |
+ # would make configure fail if this is the last instruction. |
23606 |
+ $ac_cs_success || as_fn_exit 1 |
23607 |
+fi |
23608 |
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
23609 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
23610 |
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
23611 |
+fi |
23612 |
|
23613 |
|
23614 |
echo "---------------------------------------------------------" |
23615 |
@@ -14902,7 +12372,7 @@ if test "$ac_cv_have_emx" = yes; then |
23616 |
echo "xterm for OS/2 support: NO" |
23617 |
fi |
23618 |
fi |
23619 |
-if test "$cf_use_graphics" != no; then |
23620 |
+if test "$cf_use_graphics" != no; then |
23621 |
echo "Graphics enabled: YES" |
23622 |
echo "Graphics drivers: `echo "$drivers"|sed 's/^ //'`" |
23623 |
echo "Image formats: $image_formats" |