Commit | Line | Data |
---|---|---|
94759fd3 IJ |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
6b668323 | 4 | # Generated by GNU Autoconf 2.69 for secnet 0.1.18+. |
94759fd3 IJ |
5 | # |
6 | # Report bugs to <secnet@chiark.greenend.org.uk>. | |
7 | # | |
8 | # | |
6b668323 | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
94759fd3 IJ |
10 | # |
11 | # | |
12 | # This configure script is free software; the Free Software Foundation | |
13 | # gives unlimited permission to copy, distribute and modify it. | |
14 | ## -------------------- ## | |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
17 | ||
18 | # Be more Bourne compatible | |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
21 | emulate sh | |
22 | NULLCMD=: | |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
24 | # is contrary to our usage. Disable this feature. | |
25 | alias -g '${1+"$@"}'='"$@"' | |
26 | setopt NO_GLOB_SUBST | |
27 | else | |
28 | case `(set -o) 2>/dev/null` in #( | |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
33 | esac | |
34 | fi | |
35 | ||
36 | ||
37 | as_nl=' | |
38 | ' | |
39 | export as_nl | |
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
45 | # but without wasting forks for bash or zsh. | |
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='print -r --' | |
49 | as_echo_n='print -rn --' | |
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
57 | else | |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in #( | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
70 | fi | |
71 | export as_echo_body | |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
82 | fi | |
83 | ||
84 | ||
85 | # IFS | |
86 | # We need space, tab and new line, in precisely that order. Quoting is | |
87 | # there to prevent editors from complaining about space-tab. | |
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
89 | # splitting by setting IFS to empty value.) | |
90 | IFS=" "" $as_nl" | |
91 | ||
92 | # Find who we are. Look in the path if we contain no directory separator. | |
6b668323 | 93 | as_myself= |
94759fd3 IJ |
94 | case $0 in #(( |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
125 | PS1='$ ' | |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
130 | LC_ALL=C | |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
6b668323 IJ |
138 | # Use a proper internal environment variable to ensure we don't fall |
139 | # into an infinite loop, continuously re-executing ourselves. | |
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
141 | _as_can_reexec=no; export _as_can_reexec; | |
142 | # We cannot yet assume a decent shell, so we have to provide a | |
143 | # neutralization value for shells without unset; and this also | |
144 | # works around shells that cannot unset nonexistent variables. | |
145 | # Preserve -v and -x to the replacement shell. | |
146 | BASH_ENV=/dev/null | |
147 | ENV=/dev/null | |
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
149 | case $- in # (((( | |
150 | *v*x* | *x*v* ) as_opts=-vx ;; | |
151 | *v* ) as_opts=-v ;; | |
152 | *x* ) as_opts=-x ;; | |
153 | * ) as_opts= ;; | |
154 | esac | |
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
156 | # Admittedly, this is quite paranoid, since all the known shells bail | |
157 | # out after a failed `exec'. | |
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
159 | as_fn_exit 255 | |
160 | fi | |
161 | # We don't want this to propagate to other subprocesses. | |
162 | { _as_can_reexec=; unset _as_can_reexec;} | |
94759fd3 IJ |
163 | if test "x$CONFIG_SHELL" = x; then |
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
165 | emulate sh | |
166 | NULLCMD=: | |
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
168 | # is contrary to our usage. Disable this feature. | |
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
170 | setopt NO_GLOB_SUBST | |
171 | else | |
172 | case \`(set -o) 2>/dev/null\` in #( | |
173 | *posix*) : | |
174 | set -o posix ;; #( | |
175 | *) : | |
176 | ;; | |
177 | esac | |
178 | fi | |
179 | " | |
180 | as_required="as_fn_return () { (exit \$1); } | |
181 | as_fn_success () { as_fn_return 0; } | |
182 | as_fn_failure () { as_fn_return 1; } | |
183 | as_fn_ret_success () { return 0; } | |
184 | as_fn_ret_failure () { return 1; } | |
185 | ||
186 | exitcode=0 | |
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
192 | ||
193 | else | |
194 | exitcode=1; echo positional parameters were not saved. | |
195 | fi | |
6b668323 IJ |
196 | test x\$exitcode = x0 || exit 1 |
197 | test -x / || exit 1" | |
94759fd3 IJ |
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
202 | test \$(( 1 + 1 )) = 2 || exit 1" | |
203 | if (eval "$as_required") 2>/dev/null; then : | |
204 | as_have_required=yes | |
205 | else | |
206 | as_have_required=no | |
207 | fi | |
208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
209 | ||
210 | else | |
211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212 | as_found=false | |
213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
214 | do | |
215 | IFS=$as_save_IFS | |
216 | test -z "$as_dir" && as_dir=. | |
217 | as_found=: | |
218 | case $as_dir in #( | |
219 | /*) | |
220 | for as_base in sh bash ksh sh5; do | |
221 | # Try only shells that exist, to save several forks. | |
222 | as_shell=$as_dir/$as_base | |
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | CONFIG_SHELL=$as_shell as_have_required=yes | |
226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
227 | break 2 | |
228 | fi | |
229 | fi | |
230 | done;; | |
231 | esac | |
232 | as_found=false | |
233 | done | |
234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
236 | CONFIG_SHELL=$SHELL as_have_required=yes | |
237 | fi; } | |
238 | IFS=$as_save_IFS | |
239 | ||
240 | ||
241 | if test "x$CONFIG_SHELL" != x; then : | |
6b668323 IJ |
242 | export CONFIG_SHELL |
243 | # We cannot yet assume a decent shell, so we have to provide a | |
244 | # neutralization value for shells without unset; and this also | |
245 | # works around shells that cannot unset nonexistent variables. | |
246 | # Preserve -v and -x to the replacement shell. | |
247 | BASH_ENV=/dev/null | |
248 | ENV=/dev/null | |
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
250 | case $- in # (((( | |
251 | *v*x* | *x*v* ) as_opts=-vx ;; | |
252 | *v* ) as_opts=-v ;; | |
253 | *x* ) as_opts=-x ;; | |
254 | * ) as_opts= ;; | |
255 | esac | |
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
257 | # Admittedly, this is quite paranoid, since all the known shells bail | |
258 | # out after a failed `exec'. | |
259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
260 | exit 255 | |
94759fd3 IJ |
261 | fi |
262 | ||
263 | if test x$as_have_required = xno; then : | |
264 | $as_echo "$0: This script requires a shell more modern than all" | |
265 | $as_echo "$0: the shells that I found on your system." | |
266 | if test x${ZSH_VERSION+set} = xset ; then | |
267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
269 | else | |
270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
271 | $0: secnet@chiark.greenend.org.uk about your system, | |
272 | $0: including any error possibly output before this | |
273 | $0: message. Then install a modern shell, or manually run | |
274 | $0: the script under such a shell if you do have one." | |
275 | fi | |
276 | exit 1 | |
277 | fi | |
278 | fi | |
279 | fi | |
280 | SHELL=${CONFIG_SHELL-/bin/sh} | |
281 | export SHELL | |
282 | # Unset more variables known to interfere with behavior of common tools. | |
283 | CLICOLOR_FORCE= GREP_OPTIONS= | |
284 | unset CLICOLOR_FORCE GREP_OPTIONS | |
285 | ||
286 | ## --------------------- ## | |
287 | ## M4sh Shell Functions. ## | |
288 | ## --------------------- ## | |
289 | # as_fn_unset VAR | |
290 | # --------------- | |
291 | # Portably unset VAR. | |
292 | as_fn_unset () | |
293 | { | |
294 | { eval $1=; unset $1;} | |
295 | } | |
296 | as_unset=as_fn_unset | |
297 | ||
298 | # as_fn_set_status STATUS | |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
305 | ||
306 | # as_fn_exit STATUS | |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
315 | ||
316 | # as_fn_mkdir_p | |
317 | # ------------- | |
318 | # Create "$as_dir" as a directory, including parents if necessary. | |
319 | as_fn_mkdir_p () | |
320 | { | |
321 | ||
322 | case $as_dir in #( | |
323 | -*) as_dir=./$as_dir;; | |
324 | esac | |
325 | test -d "$as_dir" || eval $as_mkdir_p || { | |
326 | as_dirs= | |
327 | while :; do | |
328 | case $as_dir in #( | |
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
330 | *) as_qdir=$as_dir;; | |
331 | esac | |
332 | as_dirs="'$as_qdir' $as_dirs" | |
333 | as_dir=`$as_dirname -- "$as_dir" || | |
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
336 | X"$as_dir" : 'X\(//\)$' \| \ | |
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
338 | $as_echo X"$as_dir" | | |
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)[^/].*/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\).*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | s/.*/./; q'` | |
356 | test -d "$as_dir" && break | |
357 | done | |
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
360 | ||
361 | ||
362 | } # as_fn_mkdir_p | |
6b668323 IJ |
363 | |
364 | # as_fn_executable_p FILE | |
365 | # ----------------------- | |
366 | # Test if FILE is an executable regular file. | |
367 | as_fn_executable_p () | |
368 | { | |
369 | test -f "$1" && test -x "$1" | |
370 | } # as_fn_executable_p | |
94759fd3 IJ |
371 | # as_fn_append VAR VALUE |
372 | # ---------------------- | |
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
374 | # advantage of any shell optimizations that allow amortized linear growth over | |
375 | # repeated appends, instead of the typical quadratic growth present in naive | |
376 | # implementations. | |
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
378 | eval 'as_fn_append () | |
379 | { | |
380 | eval $1+=\$2 | |
381 | }' | |
382 | else | |
383 | as_fn_append () | |
384 | { | |
385 | eval $1=\$$1\$2 | |
386 | } | |
387 | fi # as_fn_append | |
388 | ||
389 | # as_fn_arith ARG... | |
390 | # ------------------ | |
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
393 | # must be portable across $(()) and expr. | |
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
395 | eval 'as_fn_arith () | |
396 | { | |
397 | as_val=$(( $* )) | |
398 | }' | |
399 | else | |
400 | as_fn_arith () | |
401 | { | |
402 | as_val=`expr "$@" || test $? -eq 1` | |
403 | } | |
404 | fi # as_fn_arith | |
405 | ||
406 | ||
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
408 | # ---------------------------------------- | |
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
411 | # script with STATUS, using 1 if that was 0. | |
412 | as_fn_error () | |
413 | { | |
414 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
415 | if test "$4"; then | |
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
418 | fi | |
419 | $as_echo "$as_me: error: $2" >&2 | |
420 | as_fn_exit $as_status | |
421 | } # as_fn_error | |
422 | ||
423 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
425 | as_expr=expr | |
426 | else | |
427 | as_expr=false | |
428 | fi | |
429 | ||
430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
431 | as_basename=basename | |
432 | else | |
433 | as_basename=false | |
434 | fi | |
435 | ||
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
437 | as_dirname=dirname | |
438 | else | |
439 | as_dirname=false | |
440 | fi | |
441 | ||
442 | as_me=`$as_basename -- "$0" || | |
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
444 | X"$0" : 'X\(//\)$' \| \ | |
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
446 | $as_echo X/"$0" | | |
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\/\)$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\).*/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | s/.*/./; q'` | |
460 | ||
461 | # Avoid depending upon Character Ranges. | |
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
465 | as_cr_digits='0123456789' | |
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
467 | ||
468 | ||
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
474 | sed -n ' | |
475 | p | |
476 | /[$]LINENO/= | |
477 | ' <$as_myself | | |
478 | sed ' | |
479 | s/[$]LINENO.*/&-/ | |
480 | t lineno | |
481 | b | |
482 | :lineno | |
483 | N | |
484 | :loop | |
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
486 | t loop | |
487 | s/-\n.*// | |
488 | ' >$as_me.lineno && | |
489 | chmod +x "$as_me.lineno" || | |
490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
491 | ||
6b668323 IJ |
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
493 | # already done that, so ensure we don't try to do so again and fall | |
494 | # in an infinite loop. This has already happened in practice. | |
495 | _as_can_reexec=no; export _as_can_reexec | |
94759fd3 IJ |
496 | # Don't try to exec as it changes $[0], causing all sort of problems |
497 | # (the dirname of $[0] is not the place where we might find the | |
498 | # original and so on. Autoconf is especially sensitive to this). | |
499 | . "./$as_me.lineno" | |
500 | # Exit status is that of the last command. | |
501 | exit | |
502 | } | |
503 | ||
504 | ECHO_C= ECHO_N= ECHO_T= | |
505 | case `echo -n x` in #((((( | |
506 | -n*) | |
507 | case `echo 'xy\c'` in | |
508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
509 | xy) ECHO_C='\c';; | |
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
511 | ECHO_T=' ';; | |
512 | esac;; | |
513 | *) | |
514 | ECHO_N='-n';; | |
515 | esac | |
516 | ||
517 | rm -f conf$$ conf$$.exe conf$$.file | |
518 | if test -d conf$$.dir; then | |
519 | rm -f conf$$.dir/conf$$.file | |
520 | else | |
521 | rm -f conf$$.dir | |
522 | mkdir conf$$.dir 2>/dev/null | |
523 | fi | |
524 | if (echo >conf$$.file) 2>/dev/null; then | |
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s='ln -s' | |
527 | # ... but there are two gotchas: | |
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6b668323 | 530 | # In both cases, we have to default to `cp -pR'. |
94759fd3 | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6b668323 | 532 | as_ln_s='cp -pR' |
94759fd3 IJ |
533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
534 | as_ln_s=ln | |
535 | else | |
6b668323 | 536 | as_ln_s='cp -pR' |
94759fd3 IJ |
537 | fi |
538 | else | |
6b668323 | 539 | as_ln_s='cp -pR' |
94759fd3 IJ |
540 | fi |
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
542 | rmdir conf$$.dir 2>/dev/null | |
543 | ||
544 | if mkdir -p . 2>/dev/null; then | |
545 | as_mkdir_p='mkdir -p "$as_dir"' | |
546 | else | |
547 | test -d ./-p && rmdir ./-p | |
548 | as_mkdir_p=false | |
549 | fi | |
550 | ||
6b668323 IJ |
551 | as_test_x='test -x' |
552 | as_executable_p=as_fn_executable_p | |
94759fd3 IJ |
553 | |
554 | # Sed expression to map a string onto a valid CPP name. | |
555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
556 | ||
557 | # Sed expression to map a string onto a valid variable name. | |
558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
559 | ||
560 | ||
561 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
562 | exec 6>&1 | |
563 | ||
564 | # Name of the host. | |
565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
566 | # so uname gets run too. | |
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
568 | ||
569 | # | |
570 | # Initializations. | |
571 | # | |
572 | ac_default_prefix=/usr/local | |
573 | ac_clean_files= | |
574 | ac_config_libobj_dir=. | |
575 | LIBOBJS= | |
576 | cross_compiling=no | |
577 | subdirs= | |
578 | MFLAGS= | |
579 | MAKEFLAGS= | |
580 | ||
581 | # Identity of this package. | |
582 | PACKAGE_NAME='secnet' | |
583 | PACKAGE_TARNAME='secnet' | |
00152558 RK |
584 | PACKAGE_VERSION='0.1.18+' |
585 | PACKAGE_STRING='secnet 0.1.18+' | |
94759fd3 IJ |
586 | PACKAGE_BUGREPORT='secnet@chiark.greenend.org.uk' |
587 | PACKAGE_URL='' | |
588 | ||
589 | ac_unique_file="secnet.c" | |
590 | # Factoring default headers for most tests. | |
591 | ac_includes_default="\ | |
592 | #include <stdio.h> | |
593 | #ifdef HAVE_SYS_TYPES_H | |
594 | # include <sys/types.h> | |
595 | #endif | |
596 | #ifdef HAVE_SYS_STAT_H | |
597 | # include <sys/stat.h> | |
598 | #endif | |
599 | #ifdef STDC_HEADERS | |
600 | # include <stdlib.h> | |
601 | # include <stddef.h> | |
602 | #else | |
603 | # ifdef HAVE_STDLIB_H | |
604 | # include <stdlib.h> | |
605 | # endif | |
606 | #endif | |
607 | #ifdef HAVE_STRING_H | |
608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
609 | # include <memory.h> | |
610 | # endif | |
611 | # include <string.h> | |
612 | #endif | |
613 | #ifdef HAVE_STRINGS_H | |
614 | # include <strings.h> | |
615 | #endif | |
616 | #ifdef HAVE_INTTYPES_H | |
617 | # include <inttypes.h> | |
618 | #endif | |
619 | #ifdef HAVE_STDINT_H | |
620 | # include <stdint.h> | |
621 | #endif | |
622 | #ifdef HAVE_UNISTD_H | |
623 | # include <unistd.h> | |
624 | #endif" | |
625 | ||
626 | ac_subst_vars='LTLIBOBJS | |
627 | LIBOBJS | |
628 | WRITESTRINGS | |
629 | EGREP | |
630 | GREP | |
631 | CPP | |
632 | RM | |
633 | INSTALL_DATA | |
634 | INSTALL_SCRIPT | |
635 | INSTALL_PROGRAM | |
636 | OBJEXT | |
637 | EXEEXT | |
638 | ac_ct_CC | |
639 | CPPFLAGS | |
640 | LDFLAGS | |
641 | CFLAGS | |
642 | CC | |
643 | SET_MAKE | |
44bdf5ac | 644 | FINK |
94759fd3 IJ |
645 | target_alias |
646 | host_alias | |
647 | build_alias | |
648 | LIBS | |
649 | ECHO_T | |
650 | ECHO_N | |
651 | ECHO_C | |
652 | DEFS | |
653 | mandir | |
654 | localedir | |
655 | libdir | |
656 | psdir | |
657 | pdfdir | |
658 | dvidir | |
659 | htmldir | |
660 | infodir | |
661 | docdir | |
662 | oldincludedir | |
663 | includedir | |
664 | localstatedir | |
665 | sharedstatedir | |
666 | sysconfdir | |
667 | datadir | |
668 | datarootdir | |
669 | libexecdir | |
670 | sbindir | |
671 | bindir | |
672 | program_transform_name | |
673 | prefix | |
674 | exec_prefix | |
675 | PACKAGE_URL | |
676 | PACKAGE_BUGREPORT | |
677 | PACKAGE_STRING | |
678 | PACKAGE_VERSION | |
679 | PACKAGE_TARNAME | |
680 | PACKAGE_NAME | |
681 | PATH_SEPARATOR | |
682 | SHELL' | |
683 | ac_subst_files='' | |
684 | ac_user_opts=' | |
685 | enable_option_checking | |
e1b81bd6 | 686 | enable_hacky_parallel |
94759fd3 IJ |
687 | ' |
688 | ac_precious_vars='build_alias | |
689 | host_alias | |
690 | target_alias | |
691 | CC | |
692 | CFLAGS | |
693 | LDFLAGS | |
694 | LIBS | |
695 | CPPFLAGS | |
696 | CPP' | |
697 | ||
698 | ||
699 | # Initialize some variables set by options. | |
700 | ac_init_help= | |
701 | ac_init_version=false | |
702 | ac_unrecognized_opts= | |
703 | ac_unrecognized_sep= | |
704 | # The variables have the same names as the options, with | |
705 | # dashes changed to underlines. | |
706 | cache_file=/dev/null | |
707 | exec_prefix=NONE | |
708 | no_create= | |
709 | no_recursion= | |
710 | prefix=NONE | |
711 | program_prefix=NONE | |
712 | program_suffix=NONE | |
713 | program_transform_name=s,x,x, | |
714 | silent= | |
715 | site= | |
716 | srcdir= | |
717 | verbose= | |
718 | x_includes=NONE | |
719 | x_libraries=NONE | |
720 | ||
721 | # Installation directory options. | |
722 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
723 | # and all the variables that are supposed to be based on exec_prefix | |
724 | # by default will actually change. | |
725 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
726 | # (The list follows the same order as the GNU Coding Standards.) | |
727 | bindir='${exec_prefix}/bin' | |
728 | sbindir='${exec_prefix}/sbin' | |
729 | libexecdir='${exec_prefix}/libexec' | |
730 | datarootdir='${prefix}/share' | |
731 | datadir='${datarootdir}' | |
732 | sysconfdir='${prefix}/etc' | |
733 | sharedstatedir='${prefix}/com' | |
734 | localstatedir='${prefix}/var' | |
735 | includedir='${prefix}/include' | |
736 | oldincludedir='/usr/include' | |
737 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
738 | infodir='${datarootdir}/info' | |
739 | htmldir='${docdir}' | |
740 | dvidir='${docdir}' | |
741 | pdfdir='${docdir}' | |
742 | psdir='${docdir}' | |
743 | libdir='${exec_prefix}/lib' | |
744 | localedir='${datarootdir}/locale' | |
745 | mandir='${datarootdir}/man' | |
746 | ||
747 | ac_prev= | |
748 | ac_dashdash= | |
749 | for ac_option | |
750 | do | |
751 | # If the previous option needs an argument, assign it. | |
752 | if test -n "$ac_prev"; then | |
753 | eval $ac_prev=\$ac_option | |
754 | ac_prev= | |
755 | continue | |
756 | fi | |
757 | ||
758 | case $ac_option in | |
759 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
760 | *=) ac_optarg= ;; | |
761 | *) ac_optarg=yes ;; | |
762 | esac | |
763 | ||
764 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
765 | ||
766 | case $ac_dashdash$ac_option in | |
767 | --) | |
768 | ac_dashdash=yes ;; | |
769 | ||
770 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
771 | ac_prev=bindir ;; | |
772 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
773 | bindir=$ac_optarg ;; | |
774 | ||
775 | -build | --build | --buil | --bui | --bu) | |
776 | ac_prev=build_alias ;; | |
777 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
778 | build_alias=$ac_optarg ;; | |
779 | ||
780 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
781 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
782 | ac_prev=cache_file ;; | |
783 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
784 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
785 | cache_file=$ac_optarg ;; | |
786 | ||
787 | --config-cache | -C) | |
788 | cache_file=config.cache ;; | |
789 | ||
790 | -datadir | --datadir | --datadi | --datad) | |
791 | ac_prev=datadir ;; | |
792 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
793 | datadir=$ac_optarg ;; | |
794 | ||
795 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
796 | | --dataroo | --dataro | --datar) | |
797 | ac_prev=datarootdir ;; | |
798 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
799 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
800 | datarootdir=$ac_optarg ;; | |
801 | ||
802 | -disable-* | --disable-*) | |
803 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
804 | # Reject names that are not valid shell variable names. | |
805 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
806 | as_fn_error $? "invalid feature name: $ac_useropt" | |
807 | ac_useropt_orig=$ac_useropt | |
808 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
809 | case $ac_user_opts in | |
810 | *" | |
811 | "enable_$ac_useropt" | |
812 | "*) ;; | |
813 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
814 | ac_unrecognized_sep=', ';; | |
815 | esac | |
816 | eval enable_$ac_useropt=no ;; | |
817 | ||
818 | -docdir | --docdir | --docdi | --doc | --do) | |
819 | ac_prev=docdir ;; | |
820 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
821 | docdir=$ac_optarg ;; | |
822 | ||
823 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
824 | ac_prev=dvidir ;; | |
825 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
826 | dvidir=$ac_optarg ;; | |
827 | ||
828 | -enable-* | --enable-*) | |
829 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
830 | # Reject names that are not valid shell variable names. | |
831 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
832 | as_fn_error $? "invalid feature name: $ac_useropt" | |
833 | ac_useropt_orig=$ac_useropt | |
834 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
835 | case $ac_user_opts in | |
836 | *" | |
837 | "enable_$ac_useropt" | |
838 | "*) ;; | |
839 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
840 | ac_unrecognized_sep=', ';; | |
841 | esac | |
842 | eval enable_$ac_useropt=\$ac_optarg ;; | |
843 | ||
844 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
845 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
846 | | --exec | --exe | --ex) | |
847 | ac_prev=exec_prefix ;; | |
848 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
849 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
850 | | --exec=* | --exe=* | --ex=*) | |
851 | exec_prefix=$ac_optarg ;; | |
852 | ||
853 | -gas | --gas | --ga | --g) | |
854 | # Obsolete; use --with-gas. | |
855 | with_gas=yes ;; | |
856 | ||
857 | -help | --help | --hel | --he | -h) | |
858 | ac_init_help=long ;; | |
859 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
860 | ac_init_help=recursive ;; | |
861 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
862 | ac_init_help=short ;; | |
863 | ||
864 | -host | --host | --hos | --ho) | |
865 | ac_prev=host_alias ;; | |
866 | -host=* | --host=* | --hos=* | --ho=*) | |
867 | host_alias=$ac_optarg ;; | |
868 | ||
869 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
870 | ac_prev=htmldir ;; | |
871 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
872 | | --ht=*) | |
873 | htmldir=$ac_optarg ;; | |
874 | ||
875 | -includedir | --includedir | --includedi | --included | --include \ | |
876 | | --includ | --inclu | --incl | --inc) | |
877 | ac_prev=includedir ;; | |
878 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
879 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
880 | includedir=$ac_optarg ;; | |
881 | ||
882 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
883 | ac_prev=infodir ;; | |
884 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
885 | infodir=$ac_optarg ;; | |
886 | ||
887 | -libdir | --libdir | --libdi | --libd) | |
888 | ac_prev=libdir ;; | |
889 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
890 | libdir=$ac_optarg ;; | |
891 | ||
892 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
893 | | --libexe | --libex | --libe) | |
894 | ac_prev=libexecdir ;; | |
895 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
896 | | --libexe=* | --libex=* | --libe=*) | |
897 | libexecdir=$ac_optarg ;; | |
898 | ||
899 | -localedir | --localedir | --localedi | --localed | --locale) | |
900 | ac_prev=localedir ;; | |
901 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
902 | localedir=$ac_optarg ;; | |
903 | ||
904 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
905 | | --localstate | --localstat | --localsta | --localst | --locals) | |
906 | ac_prev=localstatedir ;; | |
907 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
908 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
909 | localstatedir=$ac_optarg ;; | |
910 | ||
911 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
912 | ac_prev=mandir ;; | |
913 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
914 | mandir=$ac_optarg ;; | |
915 | ||
916 | -nfp | --nfp | --nf) | |
917 | # Obsolete; use --without-fp. | |
918 | with_fp=no ;; | |
919 | ||
920 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
921 | | --no-cr | --no-c | -n) | |
922 | no_create=yes ;; | |
923 | ||
924 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
925 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
926 | no_recursion=yes ;; | |
927 | ||
928 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
929 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
930 | | --oldin | --oldi | --old | --ol | --o) | |
931 | ac_prev=oldincludedir ;; | |
932 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
933 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
934 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
935 | oldincludedir=$ac_optarg ;; | |
936 | ||
937 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
938 | ac_prev=prefix ;; | |
939 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
940 | prefix=$ac_optarg ;; | |
941 | ||
942 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
943 | | --program-pre | --program-pr | --program-p) | |
944 | ac_prev=program_prefix ;; | |
945 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
946 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
947 | program_prefix=$ac_optarg ;; | |
948 | ||
949 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
950 | | --program-suf | --program-su | --program-s) | |
951 | ac_prev=program_suffix ;; | |
952 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
953 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
954 | program_suffix=$ac_optarg ;; | |
955 | ||
956 | -program-transform-name | --program-transform-name \ | |
957 | | --program-transform-nam | --program-transform-na \ | |
958 | | --program-transform-n | --program-transform- \ | |
959 | | --program-transform | --program-transfor \ | |
960 | | --program-transfo | --program-transf \ | |
961 | | --program-trans | --program-tran \ | |
962 | | --progr-tra | --program-tr | --program-t) | |
963 | ac_prev=program_transform_name ;; | |
964 | -program-transform-name=* | --program-transform-name=* \ | |
965 | | --program-transform-nam=* | --program-transform-na=* \ | |
966 | | --program-transform-n=* | --program-transform-=* \ | |
967 | | --program-transform=* | --program-transfor=* \ | |
968 | | --program-transfo=* | --program-transf=* \ | |
969 | | --program-trans=* | --program-tran=* \ | |
970 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
971 | program_transform_name=$ac_optarg ;; | |
972 | ||
973 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
974 | ac_prev=pdfdir ;; | |
975 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
976 | pdfdir=$ac_optarg ;; | |
977 | ||
978 | -psdir | --psdir | --psdi | --psd | --ps) | |
979 | ac_prev=psdir ;; | |
980 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
981 | psdir=$ac_optarg ;; | |
982 | ||
983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
984 | | -silent | --silent | --silen | --sile | --sil) | |
985 | silent=yes ;; | |
986 | ||
987 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
988 | ac_prev=sbindir ;; | |
989 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
990 | | --sbi=* | --sb=*) | |
991 | sbindir=$ac_optarg ;; | |
992 | ||
993 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
994 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
995 | | --sharedst | --shareds | --shared | --share | --shar \ | |
996 | | --sha | --sh) | |
997 | ac_prev=sharedstatedir ;; | |
998 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
999 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1000 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1001 | | --sha=* | --sh=*) | |
1002 | sharedstatedir=$ac_optarg ;; | |
1003 | ||
1004 | -site | --site | --sit) | |
1005 | ac_prev=site ;; | |
1006 | -site=* | --site=* | --sit=*) | |
1007 | site=$ac_optarg ;; | |
1008 | ||
1009 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1010 | ac_prev=srcdir ;; | |
1011 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1012 | srcdir=$ac_optarg ;; | |
1013 | ||
1014 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1015 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1016 | ac_prev=sysconfdir ;; | |
1017 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1018 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1019 | sysconfdir=$ac_optarg ;; | |
1020 | ||
1021 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1022 | ac_prev=target_alias ;; | |
1023 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1024 | target_alias=$ac_optarg ;; | |
1025 | ||
1026 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1027 | verbose=yes ;; | |
1028 | ||
1029 | -version | --version | --versio | --versi | --vers | -V) | |
1030 | ac_init_version=: ;; | |
1031 | ||
1032 | -with-* | --with-*) | |
1033 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1034 | # Reject names that are not valid shell variable names. | |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1036 | as_fn_error $? "invalid package name: $ac_useropt" | |
1037 | ac_useropt_orig=$ac_useropt | |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "with_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval with_$ac_useropt=\$ac_optarg ;; | |
1047 | ||
1048 | -without-* | --without-*) | |
1049 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1050 | # Reject names that are not valid shell variable names. | |
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1052 | as_fn_error $? "invalid package name: $ac_useropt" | |
1053 | ac_useropt_orig=$ac_useropt | |
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1055 | case $ac_user_opts in | |
1056 | *" | |
1057 | "with_$ac_useropt" | |
1058 | "*) ;; | |
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1060 | ac_unrecognized_sep=', ';; | |
1061 | esac | |
1062 | eval with_$ac_useropt=no ;; | |
1063 | ||
1064 | --x) | |
1065 | # Obsolete; use --with-x. | |
1066 | with_x=yes ;; | |
1067 | ||
1068 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1069 | | --x-incl | --x-inc | --x-in | --x-i) | |
1070 | ac_prev=x_includes ;; | |
1071 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1072 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1073 | x_includes=$ac_optarg ;; | |
1074 | ||
1075 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1076 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1077 | ac_prev=x_libraries ;; | |
1078 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1079 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1080 | x_libraries=$ac_optarg ;; | |
1081 | ||
1082 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1083 | Try \`$0 --help' for more information" | |
1084 | ;; | |
1085 | ||
1086 | *=*) | |
1087 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1088 | # Reject names that are not valid shell variable names. | |
1089 | case $ac_envvar in #( | |
1090 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1091 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1092 | esac | |
1093 | eval $ac_envvar=\$ac_optarg | |
1094 | export $ac_envvar ;; | |
1095 | ||
1096 | *) | |
1097 | # FIXME: should be removed in autoconf 3.0. | |
1098 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1099 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1100 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
6b668323 | 1101 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
94759fd3 IJ |
1102 | ;; |
1103 | ||
1104 | esac | |
1105 | done | |
1106 | ||
1107 | if test -n "$ac_prev"; then | |
1108 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1109 | as_fn_error $? "missing argument to $ac_option" | |
1110 | fi | |
1111 | ||
1112 | if test -n "$ac_unrecognized_opts"; then | |
1113 | case $enable_option_checking in | |
1114 | no) ;; | |
1115 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1116 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1117 | esac | |
1118 | fi | |
1119 | ||
1120 | # Check all directory arguments for consistency. | |
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1124 | libdir localedir mandir | |
1125 | do | |
1126 | eval ac_val=\$$ac_var | |
1127 | # Remove trailing slashes. | |
1128 | case $ac_val in | |
1129 | */ ) | |
1130 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1131 | eval $ac_var=\$ac_val;; | |
1132 | esac | |
1133 | # Be sure to have absolute directory names. | |
1134 | case $ac_val in | |
1135 | [\\/$]* | ?:[\\/]* ) continue;; | |
1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1137 | esac | |
1138 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1139 | done | |
1140 | ||
1141 | # There might be people who depend on the old broken behavior: `$host' | |
1142 | # used to hold the argument of --host etc. | |
1143 | # FIXME: To remove some day. | |
1144 | build=$build_alias | |
1145 | host=$host_alias | |
1146 | target=$target_alias | |
1147 | ||
1148 | # FIXME: To remove some day. | |
1149 | if test "x$host_alias" != x; then | |
1150 | if test "x$build_alias" = x; then | |
1151 | cross_compiling=maybe | |
94759fd3 IJ |
1152 | elif test "x$build_alias" != "x$host_alias"; then |
1153 | cross_compiling=yes | |
1154 | fi | |
1155 | fi | |
1156 | ||
1157 | ac_tool_prefix= | |
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1159 | ||
1160 | test "$silent" = yes && exec 6>/dev/null | |
1161 | ||
1162 | ||
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1164 | ac_ls_di=`ls -di .` && | |
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1166 | as_fn_error $? "working directory cannot be determined" | |
1167 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1168 | as_fn_error $? "pwd does not report name of working directory" | |
1169 | ||
1170 | ||
1171 | # Find the source files, if location was not specified. | |
1172 | if test -z "$srcdir"; then | |
1173 | ac_srcdir_defaulted=yes | |
1174 | # Try the directory containing this script, then the parent directory. | |
1175 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1176 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1177 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1178 | X"$as_myself" : 'X\(//\)$' \| \ | |
1179 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1180 | $as_echo X"$as_myself" | | |
1181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1182 | s//\1/ | |
1183 | q | |
1184 | } | |
1185 | /^X\(\/\/\)[^/].*/{ | |
1186 | s//\1/ | |
1187 | q | |
1188 | } | |
1189 | /^X\(\/\/\)$/{ | |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | /^X\(\/\).*/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | s/.*/./; q'` | |
1198 | srcdir=$ac_confdir | |
1199 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1200 | srcdir=.. | |
1201 | fi | |
1202 | else | |
1203 | ac_srcdir_defaulted=no | |
1204 | fi | |
1205 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1206 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1207 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1208 | fi | |
1209 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1210 | ac_abs_confdir=`( | |
1211 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1212 | pwd)` | |
1213 | # When building in place, set srcdir=. | |
1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1215 | srcdir=. | |
1216 | fi | |
1217 | # Remove unnecessary trailing slashes from srcdir. | |
1218 | # Double slashes in file names in object file debugging info | |
1219 | # mess up M-x gdb in Emacs. | |
1220 | case $srcdir in | |
1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1222 | esac | |
1223 | for ac_var in $ac_precious_vars; do | |
1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1225 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1228 | done | |
1229 | ||
1230 | # | |
1231 | # Report the --help message. | |
1232 | # | |
1233 | if test "$ac_init_help" = "long"; then | |
1234 | # Omit some internal or obsolete options to make the list less imposing. | |
1235 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1236 | cat <<_ACEOF | |
00152558 | 1237 | \`configure' configures secnet 0.1.18+ to adapt to many kinds of systems. |
94759fd3 IJ |
1238 | |
1239 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1240 | ||
1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1242 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1243 | ||
1244 | Defaults for the options are specified in brackets. | |
1245 | ||
1246 | Configuration: | |
1247 | -h, --help display this help and exit | |
1248 | --help=short display options specific to this package | |
1249 | --help=recursive display the short help of all the included packages | |
1250 | -V, --version display version information and exit | |
1251 | -q, --quiet, --silent do not print \`checking ...' messages | |
1252 | --cache-file=FILE cache test results in FILE [disabled] | |
1253 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1254 | -n, --no-create do not create output files | |
1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1256 | ||
1257 | Installation directories: | |
1258 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1259 | [$ac_default_prefix] | |
1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1261 | [PREFIX] | |
1262 | ||
1263 | By default, \`make install' will install all the files in | |
1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1266 | for instance \`--prefix=\$HOME'. | |
1267 | ||
1268 | For better control, use the options below. | |
1269 | ||
1270 | Fine tuning of the installation directories: | |
1271 | --bindir=DIR user executables [EPREFIX/bin] | |
1272 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1273 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1277 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1278 | --includedir=DIR C header files [PREFIX/include] | |
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1282 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1284 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/secnet] | |
1286 | --htmldir=DIR html documentation [DOCDIR] | |
1287 | --dvidir=DIR dvi documentation [DOCDIR] | |
1288 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1289 | --psdir=DIR ps documentation [DOCDIR] | |
1290 | _ACEOF | |
1291 | ||
1292 | cat <<\_ACEOF | |
1293 | _ACEOF | |
1294 | fi | |
1295 | ||
1296 | if test -n "$ac_init_help"; then | |
1297 | case $ac_init_help in | |
00152558 | 1298 | short | recursive ) echo "Configuration of secnet 0.1.18+:";; |
94759fd3 IJ |
1299 | esac |
1300 | cat <<\_ACEOF | |
1301 | ||
e1b81bd6 IJ |
1302 | Optional Features: |
1303 | --disable-option-checking ignore unrecognized --enable/--with options | |
1304 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1305 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1306 | --enable-hacky-parallel parallelise slow cryptography (default is no) | |
1307 | ||
94759fd3 IJ |
1308 | Some influential environment variables: |
1309 | CC C compiler command | |
1310 | CFLAGS C compiler flags | |
1311 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1312 | nonstandard directory <lib dir> | |
1313 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1314 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1315 | you have headers in a nonstandard directory <include dir> | |
1316 | CPP C preprocessor | |
1317 | ||
1318 | Use these variables to override the choices made by `configure' or to help | |
1319 | it to find libraries and programs with nonstandard names/locations. | |
1320 | ||
1321 | Report bugs to <secnet@chiark.greenend.org.uk>. | |
1322 | _ACEOF | |
1323 | ac_status=$? | |
1324 | fi | |
1325 | ||
1326 | if test "$ac_init_help" = "recursive"; then | |
1327 | # If there are subdirs, report their specific --help. | |
1328 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1329 | test -d "$ac_dir" || | |
1330 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1331 | continue | |
1332 | ac_builddir=. | |
1333 | ||
1334 | case "$ac_dir" in | |
1335 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1336 | *) | |
1337 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1338 | # A ".." for each directory in $ac_dir_suffix. | |
1339 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1340 | case $ac_top_builddir_sub in | |
1341 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1342 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1343 | esac ;; | |
1344 | esac | |
1345 | ac_abs_top_builddir=$ac_pwd | |
1346 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1347 | # for backward compatibility: | |
1348 | ac_top_builddir=$ac_top_build_prefix | |
1349 | ||
1350 | case $srcdir in | |
1351 | .) # We are building in place. | |
1352 | ac_srcdir=. | |
1353 | ac_top_srcdir=$ac_top_builddir_sub | |
1354 | ac_abs_top_srcdir=$ac_pwd ;; | |
1355 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1356 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1357 | ac_top_srcdir=$srcdir | |
1358 | ac_abs_top_srcdir=$srcdir ;; | |
1359 | *) # Relative name. | |
1360 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1361 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1362 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1363 | esac | |
1364 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1365 | ||
1366 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1367 | # Check for guested configure. | |
1368 | if test -f "$ac_srcdir/configure.gnu"; then | |
1369 | echo && | |
1370 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1371 | elif test -f "$ac_srcdir/configure"; then | |
1372 | echo && | |
1373 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1374 | else | |
1375 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1376 | fi || ac_status=$? | |
1377 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1378 | done | |
1379 | fi | |
1380 | ||
1381 | test -n "$ac_init_help" && exit $ac_status | |
1382 | if $ac_init_version; then | |
1383 | cat <<\_ACEOF | |
00152558 | 1384 | secnet configure 0.1.18+ |
6b668323 | 1385 | generated by GNU Autoconf 2.69 |
94759fd3 | 1386 | |
6b668323 | 1387 | Copyright (C) 2012 Free Software Foundation, Inc. |
94759fd3 IJ |
1388 | This configure script is free software; the Free Software Foundation |
1389 | gives unlimited permission to copy, distribute and modify it. | |
1390 | _ACEOF | |
1391 | exit | |
1392 | fi | |
1393 | ||
1394 | ## ------------------------ ## | |
1395 | ## Autoconf initialization. ## | |
1396 | ## ------------------------ ## | |
1397 | ||
1398 | # ac_fn_c_try_compile LINENO | |
1399 | # -------------------------- | |
1400 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1401 | ac_fn_c_try_compile () | |
1402 | { | |
1403 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1404 | rm -f conftest.$ac_objext | |
1405 | if { { ac_try="$ac_compile" | |
1406 | case "(($ac_try" in | |
1407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1408 | *) ac_try_echo=$ac_try;; | |
1409 | esac | |
1410 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1411 | $as_echo "$ac_try_echo"; } >&5 | |
1412 | (eval "$ac_compile") 2>conftest.err | |
1413 | ac_status=$? | |
1414 | if test -s conftest.err; then | |
1415 | grep -v '^ *+' conftest.err >conftest.er1 | |
1416 | cat conftest.er1 >&5 | |
1417 | mv -f conftest.er1 conftest.err | |
1418 | fi | |
1419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1420 | test $ac_status = 0; } && { | |
1421 | test -z "$ac_c_werror_flag" || | |
1422 | test ! -s conftest.err | |
1423 | } && test -s conftest.$ac_objext; then : | |
1424 | ac_retval=0 | |
1425 | else | |
1426 | $as_echo "$as_me: failed program was:" >&5 | |
1427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1428 | ||
1429 | ac_retval=1 | |
1430 | fi | |
6b668323 | 1431 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1432 | as_fn_set_status $ac_retval |
1433 | ||
1434 | } # ac_fn_c_try_compile | |
1435 | ||
1436 | # ac_fn_c_try_cpp LINENO | |
1437 | # ---------------------- | |
1438 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1439 | ac_fn_c_try_cpp () | |
1440 | { | |
1441 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1442 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1443 | case "(($ac_try" in | |
1444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1445 | *) ac_try_echo=$ac_try;; | |
1446 | esac | |
1447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1448 | $as_echo "$ac_try_echo"; } >&5 | |
1449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1450 | ac_status=$? | |
1451 | if test -s conftest.err; then | |
1452 | grep -v '^ *+' conftest.err >conftest.er1 | |
1453 | cat conftest.er1 >&5 | |
1454 | mv -f conftest.er1 conftest.err | |
1455 | fi | |
1456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1457 | test $ac_status = 0; } > conftest.i && { | |
1458 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1459 | test ! -s conftest.err | |
1460 | }; then : | |
1461 | ac_retval=0 | |
1462 | else | |
1463 | $as_echo "$as_me: failed program was:" >&5 | |
1464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1465 | ||
1466 | ac_retval=1 | |
1467 | fi | |
6b668323 | 1468 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1469 | as_fn_set_status $ac_retval |
1470 | ||
1471 | } # ac_fn_c_try_cpp | |
1472 | ||
1473 | # ac_fn_c_try_run LINENO | |
1474 | # ---------------------- | |
1475 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1476 | # that executables *can* be run. | |
1477 | ac_fn_c_try_run () | |
1478 | { | |
1479 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1480 | if { { ac_try="$ac_link" | |
1481 | case "(($ac_try" in | |
1482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1483 | *) ac_try_echo=$ac_try;; | |
1484 | esac | |
1485 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1486 | $as_echo "$ac_try_echo"; } >&5 | |
1487 | (eval "$ac_link") 2>&5 | |
1488 | ac_status=$? | |
1489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1490 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1491 | { { case "(($ac_try" in | |
1492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1493 | *) ac_try_echo=$ac_try;; | |
1494 | esac | |
1495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1496 | $as_echo "$ac_try_echo"; } >&5 | |
1497 | (eval "$ac_try") 2>&5 | |
1498 | ac_status=$? | |
1499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1500 | test $ac_status = 0; }; }; then : | |
1501 | ac_retval=0 | |
1502 | else | |
1503 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1504 | $as_echo "$as_me: failed program was:" >&5 | |
1505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1506 | ||
1507 | ac_retval=$ac_status | |
1508 | fi | |
1509 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
6b668323 | 1510 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1511 | as_fn_set_status $ac_retval |
1512 | ||
1513 | } # ac_fn_c_try_run | |
1514 | ||
1515 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1516 | # ------------------------------------------------------- | |
1517 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1518 | # the include files in INCLUDES and setting the cache variable VAR | |
1519 | # accordingly. | |
1520 | ac_fn_c_check_header_mongrel () | |
1521 | { | |
1522 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b668323 | 1523 | if eval \${$3+:} false; then : |
94759fd3 IJ |
1524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1525 | $as_echo_n "checking for $2... " >&6; } | |
6b668323 | 1526 | if eval \${$3+:} false; then : |
94759fd3 IJ |
1527 | $as_echo_n "(cached) " >&6 |
1528 | fi | |
1529 | eval ac_res=\$$3 | |
1530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1531 | $as_echo "$ac_res" >&6; } | |
1532 | else | |
1533 | # Is the header compilable? | |
1534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1535 | $as_echo_n "checking $2 usability... " >&6; } | |
1536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1537 | /* end confdefs.h. */ | |
1538 | $4 | |
1539 | #include <$2> | |
1540 | _ACEOF | |
1541 | if ac_fn_c_try_compile "$LINENO"; then : | |
1542 | ac_header_compiler=yes | |
1543 | else | |
1544 | ac_header_compiler=no | |
1545 | fi | |
1546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1548 | $as_echo "$ac_header_compiler" >&6; } | |
1549 | ||
1550 | # Is the header present? | |
1551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1552 | $as_echo_n "checking $2 presence... " >&6; } | |
1553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1554 | /* end confdefs.h. */ | |
1555 | #include <$2> | |
1556 | _ACEOF | |
1557 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1558 | ac_header_preproc=yes | |
1559 | else | |
1560 | ac_header_preproc=no | |
1561 | fi | |
1562 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1564 | $as_echo "$ac_header_preproc" >&6; } | |
1565 | ||
1566 | # So? What about this header? | |
1567 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1568 | yes:no: ) | |
1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1570 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1572 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1573 | ;; | |
1574 | no:yes:* ) | |
1575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1576 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1578 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1580 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1582 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1584 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1585 | ( $as_echo "## -------------------------------------------- ## | |
1586 | ## Report this to secnet@chiark.greenend.org.uk ## | |
1587 | ## -------------------------------------------- ##" | |
1588 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1589 | ;; | |
1590 | esac | |
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1592 | $as_echo_n "checking for $2... " >&6; } | |
6b668323 | 1593 | if eval \${$3+:} false; then : |
94759fd3 IJ |
1594 | $as_echo_n "(cached) " >&6 |
1595 | else | |
1596 | eval "$3=\$ac_header_compiler" | |
1597 | fi | |
1598 | eval ac_res=\$$3 | |
1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1600 | $as_echo "$ac_res" >&6; } | |
1601 | fi | |
6b668323 | 1602 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1603 | |
1604 | } # ac_fn_c_check_header_mongrel | |
1605 | ||
1606 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1607 | # ------------------------------------------------------- | |
1608 | # Tests whether HEADER exists and can be compiled using the include files in | |
1609 | # INCLUDES, setting the cache variable VAR accordingly. | |
1610 | ac_fn_c_check_header_compile () | |
1611 | { | |
1612 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1614 | $as_echo_n "checking for $2... " >&6; } | |
6b668323 | 1615 | if eval \${$3+:} false; then : |
94759fd3 IJ |
1616 | $as_echo_n "(cached) " >&6 |
1617 | else | |
1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1619 | /* end confdefs.h. */ | |
1620 | $4 | |
1621 | #include <$2> | |
1622 | _ACEOF | |
1623 | if ac_fn_c_try_compile "$LINENO"; then : | |
1624 | eval "$3=yes" | |
1625 | else | |
1626 | eval "$3=no" | |
1627 | fi | |
1628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1629 | fi | |
1630 | eval ac_res=\$$3 | |
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1632 | $as_echo "$ac_res" >&6; } | |
6b668323 | 1633 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1634 | |
1635 | } # ac_fn_c_check_header_compile | |
1636 | ||
1637 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1638 | # -------------------------------------------- | |
1639 | # Tries to find the compile-time value of EXPR in a program that includes | |
1640 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1641 | # computed | |
1642 | ac_fn_c_compute_int () | |
1643 | { | |
1644 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1645 | if test "$cross_compiling" = yes; then | |
1646 | # Depending upon the size, compute the lo and hi bounds. | |
1647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1648 | /* end confdefs.h. */ | |
1649 | $4 | |
1650 | int | |
1651 | main () | |
1652 | { | |
1653 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
6b668323 IJ |
1654 | test_array [0] = 0; |
1655 | return test_array [0]; | |
94759fd3 IJ |
1656 | |
1657 | ; | |
1658 | return 0; | |
1659 | } | |
1660 | _ACEOF | |
1661 | if ac_fn_c_try_compile "$LINENO"; then : | |
1662 | ac_lo=0 ac_mid=0 | |
1663 | while :; do | |
1664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1665 | /* end confdefs.h. */ | |
1666 | $4 | |
1667 | int | |
1668 | main () | |
1669 | { | |
1670 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
6b668323 IJ |
1671 | test_array [0] = 0; |
1672 | return test_array [0]; | |
94759fd3 IJ |
1673 | |
1674 | ; | |
1675 | return 0; | |
1676 | } | |
1677 | _ACEOF | |
1678 | if ac_fn_c_try_compile "$LINENO"; then : | |
1679 | ac_hi=$ac_mid; break | |
1680 | else | |
1681 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1682 | if test $ac_lo -le $ac_mid; then | |
1683 | ac_lo= ac_hi= | |
1684 | break | |
1685 | fi | |
1686 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1687 | fi | |
1688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1689 | done | |
1690 | else | |
1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1692 | /* end confdefs.h. */ | |
1693 | $4 | |
1694 | int | |
1695 | main () | |
1696 | { | |
1697 | static int test_array [1 - 2 * !(($2) < 0)]; | |
6b668323 IJ |
1698 | test_array [0] = 0; |
1699 | return test_array [0]; | |
94759fd3 IJ |
1700 | |
1701 | ; | |
1702 | return 0; | |
1703 | } | |
1704 | _ACEOF | |
1705 | if ac_fn_c_try_compile "$LINENO"; then : | |
1706 | ac_hi=-1 ac_mid=-1 | |
1707 | while :; do | |
1708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1709 | /* end confdefs.h. */ | |
1710 | $4 | |
1711 | int | |
1712 | main () | |
1713 | { | |
1714 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
6b668323 IJ |
1715 | test_array [0] = 0; |
1716 | return test_array [0]; | |
94759fd3 IJ |
1717 | |
1718 | ; | |
1719 | return 0; | |
1720 | } | |
1721 | _ACEOF | |
1722 | if ac_fn_c_try_compile "$LINENO"; then : | |
1723 | ac_lo=$ac_mid; break | |
1724 | else | |
1725 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1726 | if test $ac_mid -le $ac_hi; then | |
1727 | ac_lo= ac_hi= | |
1728 | break | |
1729 | fi | |
1730 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1731 | fi | |
1732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1733 | done | |
1734 | else | |
1735 | ac_lo= ac_hi= | |
1736 | fi | |
1737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1738 | fi | |
1739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1740 | # Binary search between lo and hi bounds. | |
1741 | while test "x$ac_lo" != "x$ac_hi"; do | |
1742 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1744 | /* end confdefs.h. */ | |
1745 | $4 | |
1746 | int | |
1747 | main () | |
1748 | { | |
1749 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
6b668323 IJ |
1750 | test_array [0] = 0; |
1751 | return test_array [0]; | |
94759fd3 IJ |
1752 | |
1753 | ; | |
1754 | return 0; | |
1755 | } | |
1756 | _ACEOF | |
1757 | if ac_fn_c_try_compile "$LINENO"; then : | |
1758 | ac_hi=$ac_mid | |
1759 | else | |
1760 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1761 | fi | |
1762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1763 | done | |
1764 | case $ac_lo in #(( | |
1765 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1766 | '') ac_retval=1 ;; | |
1767 | esac | |
1768 | else | |
1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1770 | /* end confdefs.h. */ | |
1771 | $4 | |
1772 | static long int longval () { return $2; } | |
1773 | static unsigned long int ulongval () { return $2; } | |
1774 | #include <stdio.h> | |
1775 | #include <stdlib.h> | |
1776 | int | |
1777 | main () | |
1778 | { | |
1779 | ||
1780 | FILE *f = fopen ("conftest.val", "w"); | |
1781 | if (! f) | |
1782 | return 1; | |
1783 | if (($2) < 0) | |
1784 | { | |
1785 | long int i = longval (); | |
1786 | if (i != ($2)) | |
1787 | return 1; | |
1788 | fprintf (f, "%ld", i); | |
1789 | } | |
1790 | else | |
1791 | { | |
1792 | unsigned long int i = ulongval (); | |
1793 | if (i != ($2)) | |
1794 | return 1; | |
1795 | fprintf (f, "%lu", i); | |
1796 | } | |
1797 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1798 | on some platforms. */ | |
1799 | return ferror (f) || fclose (f) != 0; | |
1800 | ||
1801 | ; | |
1802 | return 0; | |
1803 | } | |
1804 | _ACEOF | |
1805 | if ac_fn_c_try_run "$LINENO"; then : | |
1806 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
1807 | else | |
1808 | ac_retval=1 | |
1809 | fi | |
1810 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1811 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1812 | rm -f conftest.val | |
1813 | ||
1814 | fi | |
6b668323 | 1815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1816 | as_fn_set_status $ac_retval |
1817 | ||
1818 | } # ac_fn_c_compute_int | |
1819 | ||
1820 | # ac_fn_c_try_link LINENO | |
1821 | # ----------------------- | |
1822 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1823 | ac_fn_c_try_link () | |
1824 | { | |
1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1827 | if { { ac_try="$ac_link" | |
1828 | case "(($ac_try" in | |
1829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1830 | *) ac_try_echo=$ac_try;; | |
1831 | esac | |
1832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1833 | $as_echo "$ac_try_echo"; } >&5 | |
1834 | (eval "$ac_link") 2>conftest.err | |
1835 | ac_status=$? | |
1836 | if test -s conftest.err; then | |
1837 | grep -v '^ *+' conftest.err >conftest.er1 | |
1838 | cat conftest.er1 >&5 | |
1839 | mv -f conftest.er1 conftest.err | |
1840 | fi | |
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1842 | test $ac_status = 0; } && { | |
1843 | test -z "$ac_c_werror_flag" || | |
1844 | test ! -s conftest.err | |
1845 | } && test -s conftest$ac_exeext && { | |
1846 | test "$cross_compiling" = yes || | |
6b668323 | 1847 | test -x conftest$ac_exeext |
94759fd3 IJ |
1848 | }; then : |
1849 | ac_retval=0 | |
1850 | else | |
1851 | $as_echo "$as_me: failed program was:" >&5 | |
1852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1853 | ||
1854 | ac_retval=1 | |
1855 | fi | |
1856 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1857 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1858 | # interfere with the next link command; also delete a directory that is | |
1859 | # left behind by Apple's compiler. We do this before executing the actions. | |
1860 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
6b668323 | 1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
94759fd3 IJ |
1862 | as_fn_set_status $ac_retval |
1863 | ||
1864 | } # ac_fn_c_try_link | |
2b8aa340 | 1865 | |
2b8aa340 IJ |
1866 | # ac_fn_c_check_func LINENO FUNC VAR |
1867 | # ---------------------------------- | |
1868 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1869 | ac_fn_c_check_func () | |
1870 | { | |
1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1873 | $as_echo_n "checking for $2... " >&6; } | |
1874 | if eval \${$3+:} false; then : | |
1875 | $as_echo_n "(cached) " >&6 | |
1876 | else | |
1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1878 | /* end confdefs.h. */ | |
1879 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1881 | #define $2 innocuous_$2 | |
1882 | ||
1883 | /* System header to define __stub macros and hopefully few prototypes, | |
1884 | which can conflict with char $2 (); below. | |
1885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1886 | <limits.h> exists even on freestanding compilers. */ | |
1887 | ||
1888 | #ifdef __STDC__ | |
1889 | # include <limits.h> | |
1890 | #else | |
1891 | # include <assert.h> | |
1892 | #endif | |
1893 | ||
1894 | #undef $2 | |
1895 | ||
1896 | /* Override any GCC internal prototype to avoid an error. | |
1897 | Use char because int might match the return type of a GCC | |
1898 | builtin and then its argument prototype would still apply. */ | |
1899 | #ifdef __cplusplus | |
1900 | extern "C" | |
1901 | #endif | |
1902 | char $2 (); | |
1903 | /* The GNU C library defines this for functions which it implements | |
1904 | to always fail with ENOSYS. Some functions are actually named | |
1905 | something starting with __ and the normal name is an alias. */ | |
1906 | #if defined __stub_$2 || defined __stub___$2 | |
1907 | choke me | |
1908 | #endif | |
1909 | ||
1910 | int | |
1911 | main () | |
1912 | { | |
1913 | return $2 (); | |
1914 | ; | |
1915 | return 0; | |
1916 | } | |
1917 | _ACEOF | |
1918 | if ac_fn_c_try_link "$LINENO"; then : | |
1919 | eval "$3=yes" | |
1920 | else | |
1921 | eval "$3=no" | |
1922 | fi | |
1923 | rm -f core conftest.err conftest.$ac_objext \ | |
1924 | conftest$ac_exeext conftest.$ac_ext | |
1925 | fi | |
1926 | eval ac_res=\$$3 | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1928 | $as_echo "$ac_res" >&6; } | |
1929 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1930 | ||
1931 | } # ac_fn_c_check_func | |
695904f2 IJ |
1932 | |
1933 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1934 | # --------------------------------------------- | |
1935 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1936 | # accordingly. | |
1937 | ac_fn_c_check_decl () | |
1938 | { | |
1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1940 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1941 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1943 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1944 | if eval \${$3+:} false; then : | |
1945 | $as_echo_n "(cached) " >&6 | |
1946 | else | |
1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1948 | /* end confdefs.h. */ | |
1949 | $4 | |
1950 | int | |
1951 | main () | |
1952 | { | |
1953 | #ifndef $as_decl_name | |
1954 | #ifdef __cplusplus | |
1955 | (void) $as_decl_use; | |
1956 | #else | |
1957 | (void) $as_decl_name; | |
1958 | #endif | |
1959 | #endif | |
1960 | ||
1961 | ; | |
1962 | return 0; | |
1963 | } | |
1964 | _ACEOF | |
1965 | if ac_fn_c_try_compile "$LINENO"; then : | |
1966 | eval "$3=yes" | |
1967 | else | |
1968 | eval "$3=no" | |
1969 | fi | |
1970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1971 | fi | |
1972 | eval ac_res=\$$3 | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1974 | $as_echo "$ac_res" >&6; } | |
1975 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1976 | ||
1977 | } # ac_fn_c_check_decl | |
94759fd3 IJ |
1978 | cat >config.log <<_ACEOF |
1979 | This file contains any messages produced by compilers while | |
1980 | running configure, to aid debugging if configure makes a mistake. | |
1981 | ||
00152558 | 1982 | It was created by secnet $as_me 0.1.18+, which was |
6b668323 | 1983 | generated by GNU Autoconf 2.69. Invocation command line was |
94759fd3 IJ |
1984 | |
1985 | $ $0 $@ | |
1986 | ||
1987 | _ACEOF | |
1988 | exec 5>>config.log | |
1989 | { | |
1990 | cat <<_ASUNAME | |
1991 | ## --------- ## | |
1992 | ## Platform. ## | |
1993 | ## --------- ## | |
1994 | ||
1995 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1996 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1997 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1998 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1999 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2000 | ||
2001 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2002 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2003 | ||
2004 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2005 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2006 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2007 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2008 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2009 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2010 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2011 | ||
2012 | _ASUNAME | |
2013 | ||
2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2015 | for as_dir in $PATH | |
2016 | do | |
2017 | IFS=$as_save_IFS | |
2018 | test -z "$as_dir" && as_dir=. | |
2019 | $as_echo "PATH: $as_dir" | |
2020 | done | |
2021 | IFS=$as_save_IFS | |
2022 | ||
2023 | } >&5 | |
2024 | ||
2025 | cat >&5 <<_ACEOF | |
2026 | ||
2027 | ||
2028 | ## ----------- ## | |
2029 | ## Core tests. ## | |
2030 | ## ----------- ## | |
2031 | ||
2032 | _ACEOF | |
2033 | ||
2034 | ||
2035 | # Keep a trace of the command line. | |
2036 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2037 | # Strip out --silent because we don't want to record it for future runs. | |
2038 | # Also quote any args containing shell meta-characters. | |
2039 | # Make two passes to allow for proper duplicate-argument suppression. | |
2040 | ac_configure_args= | |
2041 | ac_configure_args0= | |
2042 | ac_configure_args1= | |
2043 | ac_must_keep_next=false | |
2044 | for ac_pass in 1 2 | |
2045 | do | |
2046 | for ac_arg | |
2047 | do | |
2048 | case $ac_arg in | |
2049 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2050 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2051 | | -silent | --silent | --silen | --sile | --sil) | |
2052 | continue ;; | |
2053 | *\'*) | |
2054 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2055 | esac | |
2056 | case $ac_pass in | |
2057 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2058 | 2) | |
2059 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2060 | if test $ac_must_keep_next = true; then | |
2061 | ac_must_keep_next=false # Got value, back to normal. | |
2062 | else | |
2063 | case $ac_arg in | |
2064 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2065 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2066 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2067 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2068 | case "$ac_configure_args0 " in | |
2069 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2070 | esac | |
2071 | ;; | |
2072 | -* ) ac_must_keep_next=true ;; | |
2073 | esac | |
2074 | fi | |
2075 | as_fn_append ac_configure_args " '$ac_arg'" | |
2076 | ;; | |
2077 | esac | |
2078 | done | |
2079 | done | |
2080 | { ac_configure_args0=; unset ac_configure_args0;} | |
2081 | { ac_configure_args1=; unset ac_configure_args1;} | |
2082 | ||
2083 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2084 | # config.log. We remove comments because anyway the quotes in there | |
2085 | # would cause problems or look ugly. | |
2086 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2087 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2088 | trap 'exit_status=$? | |
2089 | # Save into config.log some information that might help in debugging. | |
2090 | { | |
2091 | echo | |
2092 | ||
2093 | $as_echo "## ---------------- ## | |
2094 | ## Cache variables. ## | |
2095 | ## ---------------- ##" | |
2096 | echo | |
2097 | # The following way of writing the cache mishandles newlines in values, | |
2098 | ( | |
2099 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2100 | eval ac_val=\$$ac_var | |
2101 | case $ac_val in #( | |
2102 | *${as_nl}*) | |
2103 | case $ac_var in #( | |
2104 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2105 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2106 | esac | |
2107 | case $ac_var in #( | |
2108 | _ | IFS | as_nl) ;; #( | |
2109 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2110 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2111 | esac ;; | |
2112 | esac | |
2113 | done | |
2114 | (set) 2>&1 | | |
2115 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2116 | *${as_nl}ac_space=\ *) | |
2117 | sed -n \ | |
2118 | "s/'\''/'\''\\\\'\'''\''/g; | |
2119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2120 | ;; #( | |
2121 | *) | |
2122 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2123 | ;; | |
2124 | esac | | |
2125 | sort | |
2126 | ) | |
2127 | echo | |
2128 | ||
2129 | $as_echo "## ----------------- ## | |
2130 | ## Output variables. ## | |
2131 | ## ----------------- ##" | |
2132 | echo | |
2133 | for ac_var in $ac_subst_vars | |
2134 | do | |
2135 | eval ac_val=\$$ac_var | |
2136 | case $ac_val in | |
2137 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2138 | esac | |
2139 | $as_echo "$ac_var='\''$ac_val'\''" | |
2140 | done | sort | |
2141 | echo | |
2142 | ||
2143 | if test -n "$ac_subst_files"; then | |
2144 | $as_echo "## ------------------- ## | |
2145 | ## File substitutions. ## | |
2146 | ## ------------------- ##" | |
2147 | echo | |
2148 | for ac_var in $ac_subst_files | |
2149 | do | |
2150 | eval ac_val=\$$ac_var | |
2151 | case $ac_val in | |
2152 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2153 | esac | |
2154 | $as_echo "$ac_var='\''$ac_val'\''" | |
2155 | done | sort | |
2156 | echo | |
2157 | fi | |
2158 | ||
2159 | if test -s confdefs.h; then | |
2160 | $as_echo "## ----------- ## | |
2161 | ## confdefs.h. ## | |
2162 | ## ----------- ##" | |
2163 | echo | |
2164 | cat confdefs.h | |
2165 | echo | |
2166 | fi | |
2167 | test "$ac_signal" != 0 && | |
2168 | $as_echo "$as_me: caught signal $ac_signal" | |
2169 | $as_echo "$as_me: exit $exit_status" | |
2170 | } >&5 | |
2171 | rm -f core *.core core.conftest.* && | |
2172 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2173 | exit $exit_status | |
2174 | ' 0 | |
2175 | for ac_signal in 1 2 13 15; do | |
2176 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2177 | done | |
2178 | ac_signal=0 | |
2179 | ||
2180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2181 | rm -f -r conftest* confdefs.h | |
2182 | ||
2183 | $as_echo "/* confdefs.h */" > confdefs.h | |
2184 | ||
2185 | # Predefined preprocessor variables. | |
2186 | ||
2187 | cat >>confdefs.h <<_ACEOF | |
2188 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2189 | _ACEOF | |
2190 | ||
2191 | cat >>confdefs.h <<_ACEOF | |
2192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2193 | _ACEOF | |
2194 | ||
2195 | cat >>confdefs.h <<_ACEOF | |
2196 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2197 | _ACEOF | |
2198 | ||
2199 | cat >>confdefs.h <<_ACEOF | |
2200 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2201 | _ACEOF | |
2202 | ||
2203 | cat >>confdefs.h <<_ACEOF | |
2204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2205 | _ACEOF | |
2206 | ||
2207 | cat >>confdefs.h <<_ACEOF | |
2208 | #define PACKAGE_URL "$PACKAGE_URL" | |
2209 | _ACEOF | |
2210 | ||
2211 | ||
2212 | # Let the site file select an alternate cache file if it wants to. | |
2213 | # Prefer an explicitly selected file to automatically selected ones. | |
2214 | ac_site_file1=NONE | |
2215 | ac_site_file2=NONE | |
2216 | if test -n "$CONFIG_SITE"; then | |
2217 | # We do not want a PATH search for config.site. | |
2218 | case $CONFIG_SITE in #(( | |
2219 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2220 | */*) ac_site_file1=$CONFIG_SITE;; | |
2221 | *) ac_site_file1=./$CONFIG_SITE;; | |
2222 | esac | |
2223 | elif test "x$prefix" != xNONE; then | |
2224 | ac_site_file1=$prefix/share/config.site | |
2225 | ac_site_file2=$prefix/etc/config.site | |
2226 | else | |
2227 | ac_site_file1=$ac_default_prefix/share/config.site | |
2228 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2229 | fi | |
2230 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2231 | do | |
2232 | test "x$ac_site_file" = xNONE && continue | |
2233 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2235 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2236 | sed 's/^/| /' "$ac_site_file" >&5 | |
2237 | . "$ac_site_file" \ | |
2238 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2240 | as_fn_error $? "failed to load site script $ac_site_file | |
6b668323 | 2241 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2242 | fi |
2243 | done | |
2244 | ||
2245 | if test -r "$cache_file"; then | |
2246 | # Some versions of bash will fail to source /dev/null (special files | |
2247 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2248 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2250 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2251 | case $cache_file in | |
2252 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2253 | *) . "./$cache_file";; | |
2254 | esac | |
2255 | fi | |
2256 | else | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2258 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2259 | >$cache_file | |
2260 | fi | |
2261 | ||
2262 | # Check that the precious variables saved in the cache have kept the same | |
2263 | # value. | |
2264 | ac_cache_corrupted=false | |
2265 | for ac_var in $ac_precious_vars; do | |
2266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2267 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2268 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2269 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2270 | case $ac_old_set,$ac_new_set in | |
2271 | set,) | |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2273 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2274 | ac_cache_corrupted=: ;; | |
2275 | ,set) | |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2277 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2278 | ac_cache_corrupted=: ;; | |
2279 | ,);; | |
2280 | *) | |
2281 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2282 | # differences in whitespace do not lead to failure. | |
2283 | ac_old_val_w=`echo x $ac_old_val` | |
2284 | ac_new_val_w=`echo x $ac_new_val` | |
2285 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2287 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2288 | ac_cache_corrupted=: | |
2289 | else | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2291 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2292 | eval $ac_var=\$ac_old_val | |
2293 | fi | |
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2295 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2297 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2298 | fi;; | |
2299 | esac | |
2300 | # Pass precious variables to config.status. | |
2301 | if test "$ac_new_set" = set; then | |
2302 | case $ac_new_val in | |
2303 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2304 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2305 | esac | |
2306 | case " $ac_configure_args " in | |
2307 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2308 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2309 | esac | |
2310 | fi | |
2311 | done | |
2312 | if $ac_cache_corrupted; then | |
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2316 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2317 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2318 | fi | |
2319 | ## -------------------- ## | |
2320 | ## Main body of script. ## | |
2321 | ## -------------------- ## | |
2322 | ||
2323 | ac_ext=c | |
2324 | ac_cpp='$CPP $CPPFLAGS' | |
2325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2328 | ||
2329 | ||
2330 | ||
2331 | ac_config_headers="$ac_config_headers config.h" | |
2332 | ||
2333 | ||
2334 | ||
2335 | ||
2336 | ||
2337 | ac_ext=c | |
2338 | ac_cpp='$CPP $CPPFLAGS' | |
2339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2342 | ||
2343 | ||
44bdf5ac RK |
2344 | # If fink is on the path then it is assumed we should use it. |
2345 | # Extract the first word of "fink", so it can be a program name with args. | |
2346 | set dummy fink; ac_word=$2 | |
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2348 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2349 | if ${ac_cv_path_FINK+:} false; then : |
44bdf5ac RK |
2350 | $as_echo_n "(cached) " >&6 |
2351 | else | |
2352 | case $FINK in | |
2353 | [\\/]* | ?:[\\/]*) | |
2354 | ac_cv_path_FINK="$FINK" # Let the user override the test with a path. | |
2355 | ;; | |
2356 | *) | |
2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2358 | for as_dir in $PATH | |
2359 | do | |
2360 | IFS=$as_save_IFS | |
2361 | test -z "$as_dir" && as_dir=. | |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
44bdf5ac RK |
2364 | ac_cv_path_FINK="$as_dir/$ac_word$ac_exec_ext" |
2365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2366 | break 2 | |
2367 | fi | |
2368 | done | |
2369 | done | |
2370 | IFS=$as_save_IFS | |
2371 | ||
2372 | ;; | |
2373 | esac | |
2374 | fi | |
2375 | FINK=$ac_cv_path_FINK | |
2376 | if test -n "$FINK"; then | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FINK" >&5 | |
2378 | $as_echo "$FINK" >&6; } | |
2379 | else | |
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2381 | $as_echo "no" >&6; } | |
2382 | fi | |
2383 | ||
2384 | ||
2385 | if test "x$FINK" != x; then | |
2386 | finkdir=`echo $FINK|sed 's,/[^/]*/[^/]*$,,'` | |
2387 | CPPFLAGS="-I$finkdir/include ${CPPFLAGS}" | |
2388 | LDFLAGS="-L$finkdir/lib ${LDFLAGS}" | |
2389 | fi | |
2390 | ||
94759fd3 IJ |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2392 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2393 | set x ${MAKE-make} | |
2394 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
6b668323 | 2395 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
94759fd3 IJ |
2396 | $as_echo_n "(cached) " >&6 |
2397 | else | |
2398 | cat >conftest.make <<\_ACEOF | |
2399 | SHELL = /bin/sh | |
2400 | all: | |
2401 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2402 | _ACEOF | |
2403 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2404 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2405 | *@@@%%%=?*=@@@%%%*) | |
2406 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2407 | *) | |
2408 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2409 | esac | |
2410 | rm -f conftest.make | |
2411 | fi | |
2412 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2414 | $as_echo "yes" >&6; } | |
2415 | SET_MAKE= | |
2416 | else | |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2418 | $as_echo "no" >&6; } | |
2419 | SET_MAKE="MAKE=${MAKE-make}" | |
2420 | fi | |
2421 | ||
2422 | ac_ext=c | |
2423 | ac_cpp='$CPP $CPPFLAGS' | |
2424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2427 | if test -n "$ac_tool_prefix"; then | |
2428 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2429 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2431 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2432 | if ${ac_cv_prog_CC+:} false; then : |
94759fd3 IJ |
2433 | $as_echo_n "(cached) " >&6 |
2434 | else | |
2435 | if test -n "$CC"; then | |
2436 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2437 | else | |
2438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2439 | for as_dir in $PATH | |
2440 | do | |
2441 | IFS=$as_save_IFS | |
2442 | test -z "$as_dir" && as_dir=. | |
2443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2445 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2447 | break 2 | |
2448 | fi | |
2449 | done | |
2450 | done | |
2451 | IFS=$as_save_IFS | |
2452 | ||
2453 | fi | |
2454 | fi | |
2455 | CC=$ac_cv_prog_CC | |
2456 | if test -n "$CC"; then | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2458 | $as_echo "$CC" >&6; } | |
2459 | else | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2461 | $as_echo "no" >&6; } | |
2462 | fi | |
2463 | ||
2464 | ||
2465 | fi | |
2466 | if test -z "$ac_cv_prog_CC"; then | |
2467 | ac_ct_CC=$CC | |
2468 | # Extract the first word of "gcc", so it can be a program name with args. | |
2469 | set dummy gcc; ac_word=$2 | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2471 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2472 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
94759fd3 IJ |
2473 | $as_echo_n "(cached) " >&6 |
2474 | else | |
2475 | if test -n "$ac_ct_CC"; then | |
2476 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2477 | else | |
2478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2479 | for as_dir in $PATH | |
2480 | do | |
2481 | IFS=$as_save_IFS | |
2482 | test -z "$as_dir" && as_dir=. | |
2483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2485 | ac_cv_prog_ac_ct_CC="gcc" |
2486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2487 | break 2 | |
2488 | fi | |
2489 | done | |
2490 | done | |
2491 | IFS=$as_save_IFS | |
2492 | ||
2493 | fi | |
2494 | fi | |
2495 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2496 | if test -n "$ac_ct_CC"; then | |
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2498 | $as_echo "$ac_ct_CC" >&6; } | |
2499 | else | |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2501 | $as_echo "no" >&6; } | |
2502 | fi | |
2503 | ||
2504 | if test "x$ac_ct_CC" = x; then | |
2505 | CC="" | |
2506 | else | |
2507 | case $cross_compiling:$ac_tool_warned in | |
2508 | yes:) | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2510 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2511 | ac_tool_warned=yes ;; | |
2512 | esac | |
2513 | CC=$ac_ct_CC | |
2514 | fi | |
2515 | else | |
2516 | CC="$ac_cv_prog_CC" | |
2517 | fi | |
2518 | ||
2519 | if test -z "$CC"; then | |
2520 | if test -n "$ac_tool_prefix"; then | |
2521 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2522 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2524 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2525 | if ${ac_cv_prog_CC+:} false; then : |
94759fd3 IJ |
2526 | $as_echo_n "(cached) " >&6 |
2527 | else | |
2528 | if test -n "$CC"; then | |
2529 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2530 | else | |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
2536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2538 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2540 | break 2 | |
2541 | fi | |
2542 | done | |
2543 | done | |
2544 | IFS=$as_save_IFS | |
2545 | ||
2546 | fi | |
2547 | fi | |
2548 | CC=$ac_cv_prog_CC | |
2549 | if test -n "$CC"; then | |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2551 | $as_echo "$CC" >&6; } | |
2552 | else | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2554 | $as_echo "no" >&6; } | |
2555 | fi | |
2556 | ||
2557 | ||
2558 | fi | |
2559 | fi | |
2560 | if test -z "$CC"; then | |
2561 | # Extract the first word of "cc", so it can be a program name with args. | |
2562 | set dummy cc; ac_word=$2 | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2564 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2565 | if ${ac_cv_prog_CC+:} false; then : |
94759fd3 IJ |
2566 | $as_echo_n "(cached) " >&6 |
2567 | else | |
2568 | if test -n "$CC"; then | |
2569 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2570 | else | |
2571 | ac_prog_rejected=no | |
2572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2573 | for as_dir in $PATH | |
2574 | do | |
2575 | IFS=$as_save_IFS | |
2576 | test -z "$as_dir" && as_dir=. | |
2577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2579 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2580 | ac_prog_rejected=yes | |
2581 | continue | |
2582 | fi | |
2583 | ac_cv_prog_CC="cc" | |
2584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2585 | break 2 | |
2586 | fi | |
2587 | done | |
2588 | done | |
2589 | IFS=$as_save_IFS | |
2590 | ||
2591 | if test $ac_prog_rejected = yes; then | |
2592 | # We found a bogon in the path, so make sure we never use it. | |
2593 | set dummy $ac_cv_prog_CC | |
2594 | shift | |
2595 | if test $# != 0; then | |
2596 | # We chose a different compiler from the bogus one. | |
2597 | # However, it has the same basename, so the bogon will be chosen | |
2598 | # first if we set CC to just the basename; use the full file name. | |
2599 | shift | |
2600 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2601 | fi | |
2602 | fi | |
2603 | fi | |
2604 | fi | |
2605 | CC=$ac_cv_prog_CC | |
2606 | if test -n "$CC"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2608 | $as_echo "$CC" >&6; } | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2611 | $as_echo "no" >&6; } | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | fi | |
2616 | if test -z "$CC"; then | |
2617 | if test -n "$ac_tool_prefix"; then | |
2618 | for ac_prog in cl.exe | |
2619 | do | |
2620 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2621 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2623 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2624 | if ${ac_cv_prog_CC+:} false; then : |
94759fd3 IJ |
2625 | $as_echo_n "(cached) " >&6 |
2626 | else | |
2627 | if test -n "$CC"; then | |
2628 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2629 | else | |
2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2631 | for as_dir in $PATH | |
2632 | do | |
2633 | IFS=$as_save_IFS | |
2634 | test -z "$as_dir" && as_dir=. | |
2635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2637 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2639 | break 2 | |
2640 | fi | |
2641 | done | |
2642 | done | |
2643 | IFS=$as_save_IFS | |
2644 | ||
2645 | fi | |
2646 | fi | |
2647 | CC=$ac_cv_prog_CC | |
2648 | if test -n "$CC"; then | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2650 | $as_echo "$CC" >&6; } | |
2651 | else | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2653 | $as_echo "no" >&6; } | |
2654 | fi | |
2655 | ||
2656 | ||
2657 | test -n "$CC" && break | |
2658 | done | |
2659 | fi | |
2660 | if test -z "$CC"; then | |
2661 | ac_ct_CC=$CC | |
2662 | for ac_prog in cl.exe | |
2663 | do | |
2664 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2665 | set dummy $ac_prog; ac_word=$2 | |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2667 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 2668 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
94759fd3 IJ |
2669 | $as_echo_n "(cached) " >&6 |
2670 | else | |
2671 | if test -n "$ac_ct_CC"; then | |
2672 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2673 | else | |
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2675 | for as_dir in $PATH | |
2676 | do | |
2677 | IFS=$as_save_IFS | |
2678 | test -z "$as_dir" && as_dir=. | |
2679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 2680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
2681 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2683 | break 2 | |
2684 | fi | |
2685 | done | |
2686 | done | |
2687 | IFS=$as_save_IFS | |
2688 | ||
2689 | fi | |
2690 | fi | |
2691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2692 | if test -n "$ac_ct_CC"; then | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2694 | $as_echo "$ac_ct_CC" >&6; } | |
2695 | else | |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2697 | $as_echo "no" >&6; } | |
2698 | fi | |
2699 | ||
2700 | ||
2701 | test -n "$ac_ct_CC" && break | |
2702 | done | |
2703 | ||
2704 | if test "x$ac_ct_CC" = x; then | |
2705 | CC="" | |
2706 | else | |
2707 | case $cross_compiling:$ac_tool_warned in | |
2708 | yes:) | |
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2711 | ac_tool_warned=yes ;; | |
2712 | esac | |
2713 | CC=$ac_ct_CC | |
2714 | fi | |
2715 | fi | |
2716 | ||
2717 | fi | |
2718 | ||
2719 | ||
2720 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2721 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2722 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
6b668323 | 2723 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2724 | |
2725 | # Provide some information about the compiler. | |
2726 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2727 | set X $ac_compile | |
2728 | ac_compiler=$2 | |
2729 | for ac_option in --version -v -V -qversion; do | |
2730 | { { ac_try="$ac_compiler $ac_option >&5" | |
2731 | case "(($ac_try" in | |
2732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2733 | *) ac_try_echo=$ac_try;; | |
2734 | esac | |
2735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2736 | $as_echo "$ac_try_echo"; } >&5 | |
2737 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2738 | ac_status=$? | |
2739 | if test -s conftest.err; then | |
2740 | sed '10a\ | |
2741 | ... rest of stderr output deleted ... | |
2742 | 10q' conftest.err >conftest.er1 | |
2743 | cat conftest.er1 >&5 | |
2744 | fi | |
2745 | rm -f conftest.er1 conftest.err | |
2746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2747 | test $ac_status = 0; } | |
2748 | done | |
2749 | ||
2750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2751 | /* end confdefs.h. */ | |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | ||
2757 | ; | |
2758 | return 0; | |
2759 | } | |
2760 | _ACEOF | |
2761 | ac_clean_files_save=$ac_clean_files | |
2762 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2763 | # Try to create an executable without -o first, disregard a.out. | |
2764 | # It will help us diagnose broken compilers, and finding out an intuition | |
2765 | # of exeext. | |
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2767 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2768 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2769 | ||
2770 | # The possible output files: | |
2771 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2772 | ||
2773 | ac_rmfiles= | |
2774 | for ac_file in $ac_files | |
2775 | do | |
2776 | case $ac_file in | |
2777 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2778 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2779 | esac | |
2780 | done | |
2781 | rm -f $ac_rmfiles | |
2782 | ||
2783 | if { { ac_try="$ac_link_default" | |
2784 | case "(($ac_try" in | |
2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2786 | *) ac_try_echo=$ac_try;; | |
2787 | esac | |
2788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2789 | $as_echo "$ac_try_echo"; } >&5 | |
2790 | (eval "$ac_link_default") 2>&5 | |
2791 | ac_status=$? | |
2792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2793 | test $ac_status = 0; }; then : | |
2794 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2795 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2796 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2797 | # so that the user can short-circuit this test for compilers unknown to | |
2798 | # Autoconf. | |
2799 | for ac_file in $ac_files '' | |
2800 | do | |
2801 | test -f "$ac_file" || continue | |
2802 | case $ac_file in | |
2803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2804 | ;; | |
2805 | [ab].out ) | |
2806 | # We found the default executable, but exeext='' is most | |
2807 | # certainly right. | |
2808 | break;; | |
2809 | *.* ) | |
2810 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2811 | then :; else | |
2812 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2813 | fi | |
2814 | # We set ac_cv_exeext here because the later test for it is not | |
2815 | # safe: cross compilers may not add the suffix if given an `-o' | |
2816 | # argument, so we may need to know it at that point already. | |
2817 | # Even if this section looks crufty: it has the advantage of | |
2818 | # actually working. | |
2819 | break;; | |
2820 | * ) | |
2821 | break;; | |
2822 | esac | |
2823 | done | |
2824 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2825 | ||
2826 | else | |
2827 | ac_file='' | |
2828 | fi | |
2829 | if test -z "$ac_file"; then : | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2831 | $as_echo "no" >&6; } | |
2832 | $as_echo "$as_me: failed program was:" >&5 | |
2833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2834 | ||
2835 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2837 | as_fn_error 77 "C compiler cannot create executables | |
6b668323 | 2838 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2839 | else |
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2841 | $as_echo "yes" >&6; } | |
2842 | fi | |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2844 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2846 | $as_echo "$ac_file" >&6; } | |
2847 | ac_exeext=$ac_cv_exeext | |
2848 | ||
2849 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2850 | ac_clean_files=$ac_clean_files_save | |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2852 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2853 | if { { ac_try="$ac_link" | |
2854 | case "(($ac_try" in | |
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2856 | *) ac_try_echo=$ac_try;; | |
2857 | esac | |
2858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2859 | $as_echo "$ac_try_echo"; } >&5 | |
2860 | (eval "$ac_link") 2>&5 | |
2861 | ac_status=$? | |
2862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2863 | test $ac_status = 0; }; then : | |
2864 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2865 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2866 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2867 | # `rm'. | |
2868 | for ac_file in conftest.exe conftest conftest.*; do | |
2869 | test -f "$ac_file" || continue | |
2870 | case $ac_file in | |
2871 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2872 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2873 | break;; | |
2874 | * ) break;; | |
2875 | esac | |
2876 | done | |
2877 | else | |
2878 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2879 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2880 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
6b668323 | 2881 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2882 | fi |
2883 | rm -f conftest conftest$ac_cv_exeext | |
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2885 | $as_echo "$ac_cv_exeext" >&6; } | |
2886 | ||
2887 | rm -f conftest.$ac_ext | |
2888 | EXEEXT=$ac_cv_exeext | |
2889 | ac_exeext=$EXEEXT | |
2890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2891 | /* end confdefs.h. */ | |
2892 | #include <stdio.h> | |
2893 | int | |
2894 | main () | |
2895 | { | |
2896 | FILE *f = fopen ("conftest.out", "w"); | |
2897 | return ferror (f) || fclose (f) != 0; | |
2898 | ||
2899 | ; | |
2900 | return 0; | |
2901 | } | |
2902 | _ACEOF | |
2903 | ac_clean_files="$ac_clean_files conftest.out" | |
2904 | # Check that the compiler produces executables we can run. If not, either | |
2905 | # the compiler is broken, or we cross compile. | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2907 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2908 | if test "$cross_compiling" != yes; then | |
2909 | { { ac_try="$ac_link" | |
2910 | case "(($ac_try" in | |
2911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2912 | *) ac_try_echo=$ac_try;; | |
2913 | esac | |
2914 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2915 | $as_echo "$ac_try_echo"; } >&5 | |
2916 | (eval "$ac_link") 2>&5 | |
2917 | ac_status=$? | |
2918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2919 | test $ac_status = 0; } | |
2920 | if { ac_try='./conftest$ac_cv_exeext' | |
2921 | { { case "(($ac_try" in | |
2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2923 | *) ac_try_echo=$ac_try;; | |
2924 | esac | |
2925 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2926 | $as_echo "$ac_try_echo"; } >&5 | |
2927 | (eval "$ac_try") 2>&5 | |
2928 | ac_status=$? | |
2929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2930 | test $ac_status = 0; }; }; then | |
2931 | cross_compiling=no | |
2932 | else | |
2933 | if test "$cross_compiling" = maybe; then | |
2934 | cross_compiling=yes | |
2935 | else | |
2936 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2938 | as_fn_error $? "cannot run C compiled programs. | |
2939 | If you meant to cross compile, use \`--host'. | |
6b668323 | 2940 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2941 | fi |
2942 | fi | |
2943 | fi | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2945 | $as_echo "$cross_compiling" >&6; } | |
2946 | ||
2947 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2948 | ac_clean_files=$ac_clean_files_save | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2950 | $as_echo_n "checking for suffix of object files... " >&6; } | |
6b668323 | 2951 | if ${ac_cv_objext+:} false; then : |
94759fd3 IJ |
2952 | $as_echo_n "(cached) " >&6 |
2953 | else | |
2954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2955 | /* end confdefs.h. */ | |
2956 | ||
2957 | int | |
2958 | main () | |
2959 | { | |
2960 | ||
2961 | ; | |
2962 | return 0; | |
2963 | } | |
2964 | _ACEOF | |
2965 | rm -f conftest.o conftest.obj | |
2966 | if { { ac_try="$ac_compile" | |
2967 | case "(($ac_try" in | |
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2969 | *) ac_try_echo=$ac_try;; | |
2970 | esac | |
2971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2972 | $as_echo "$ac_try_echo"; } >&5 | |
2973 | (eval "$ac_compile") 2>&5 | |
2974 | ac_status=$? | |
2975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2976 | test $ac_status = 0; }; then : | |
2977 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2978 | test -f "$ac_file" || continue; | |
2979 | case $ac_file in | |
2980 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2981 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2982 | break;; | |
2983 | esac | |
2984 | done | |
2985 | else | |
2986 | $as_echo "$as_me: failed program was:" >&5 | |
2987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2988 | ||
2989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2991 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
6b668323 | 2992 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
2993 | fi |
2994 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2995 | fi | |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2997 | $as_echo "$ac_cv_objext" >&6; } | |
2998 | OBJEXT=$ac_cv_objext | |
2999 | ac_objext=$OBJEXT | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3001 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
6b668323 | 3002 | if ${ac_cv_c_compiler_gnu+:} false; then : |
94759fd3 IJ |
3003 | $as_echo_n "(cached) " >&6 |
3004 | else | |
3005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3006 | /* end confdefs.h. */ | |
3007 | ||
3008 | int | |
3009 | main () | |
3010 | { | |
3011 | #ifndef __GNUC__ | |
3012 | choke me | |
3013 | #endif | |
3014 | ||
3015 | ; | |
3016 | return 0; | |
3017 | } | |
3018 | _ACEOF | |
3019 | if ac_fn_c_try_compile "$LINENO"; then : | |
3020 | ac_compiler_gnu=yes | |
3021 | else | |
3022 | ac_compiler_gnu=no | |
3023 | fi | |
3024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3025 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3026 | ||
3027 | fi | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3029 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3030 | if test $ac_compiler_gnu = yes; then | |
3031 | GCC=yes | |
3032 | else | |
3033 | GCC= | |
3034 | fi | |
3035 | ac_test_CFLAGS=${CFLAGS+set} | |
3036 | ac_save_CFLAGS=$CFLAGS | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3038 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
6b668323 | 3039 | if ${ac_cv_prog_cc_g+:} false; then : |
94759fd3 IJ |
3040 | $as_echo_n "(cached) " >&6 |
3041 | else | |
3042 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3043 | ac_c_werror_flag=yes | |
3044 | ac_cv_prog_cc_g=no | |
3045 | CFLAGS="-g" | |
3046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3047 | /* end confdefs.h. */ | |
3048 | ||
3049 | int | |
3050 | main () | |
3051 | { | |
3052 | ||
3053 | ; | |
3054 | return 0; | |
3055 | } | |
3056 | _ACEOF | |
3057 | if ac_fn_c_try_compile "$LINENO"; then : | |
3058 | ac_cv_prog_cc_g=yes | |
3059 | else | |
3060 | CFLAGS="" | |
3061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3062 | /* end confdefs.h. */ | |
3063 | ||
3064 | int | |
3065 | main () | |
3066 | { | |
3067 | ||
3068 | ; | |
3069 | return 0; | |
3070 | } | |
3071 | _ACEOF | |
3072 | if ac_fn_c_try_compile "$LINENO"; then : | |
3073 | ||
3074 | else | |
3075 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3076 | CFLAGS="-g" | |
3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3078 | /* end confdefs.h. */ | |
3079 | ||
3080 | int | |
3081 | main () | |
3082 | { | |
3083 | ||
3084 | ; | |
3085 | return 0; | |
3086 | } | |
3087 | _ACEOF | |
3088 | if ac_fn_c_try_compile "$LINENO"; then : | |
3089 | ac_cv_prog_cc_g=yes | |
3090 | fi | |
3091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3092 | fi | |
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3094 | fi | |
3095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3096 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3097 | fi | |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3099 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3100 | if test "$ac_test_CFLAGS" = set; then | |
3101 | CFLAGS=$ac_save_CFLAGS | |
3102 | elif test $ac_cv_prog_cc_g = yes; then | |
3103 | if test "$GCC" = yes; then | |
3104 | CFLAGS="-g -O2" | |
3105 | else | |
3106 | CFLAGS="-g" | |
3107 | fi | |
3108 | else | |
3109 | if test "$GCC" = yes; then | |
3110 | CFLAGS="-O2" | |
3111 | else | |
3112 | CFLAGS= | |
3113 | fi | |
3114 | fi | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3116 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
6b668323 | 3117 | if ${ac_cv_prog_cc_c89+:} false; then : |
94759fd3 IJ |
3118 | $as_echo_n "(cached) " >&6 |
3119 | else | |
3120 | ac_cv_prog_cc_c89=no | |
3121 | ac_save_CC=$CC | |
3122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3123 | /* end confdefs.h. */ | |
3124 | #include <stdarg.h> | |
3125 | #include <stdio.h> | |
6b668323 | 3126 | struct stat; |
94759fd3 IJ |
3127 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3128 | struct buf { int x; }; | |
3129 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3130 | static char *e (p, i) | |
3131 | char **p; | |
3132 | int i; | |
3133 | { | |
3134 | return p[i]; | |
3135 | } | |
3136 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3137 | { | |
3138 | char *s; | |
3139 | va_list v; | |
3140 | va_start (v,p); | |
3141 | s = g (p, va_arg (v,int)); | |
3142 | va_end (v); | |
3143 | return s; | |
3144 | } | |
3145 | ||
3146 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3147 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3148 | These don't provoke an error unfortunately, instead are silently treated | |
3149 | as 'x'. The following induces an error, until -std is added to get | |
3150 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3151 | array size at least. It's necessary to write '\x00'==0 to get something | |
3152 | that's true only with -std. */ | |
3153 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3154 | ||
3155 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3156 | inside strings and character constants. */ | |
3157 | #define FOO(x) 'x' | |
3158 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3159 | ||
3160 | int test (int i, double x); | |
3161 | struct s1 {int (*f) (int a);}; | |
3162 | struct s2 {int (*f) (double a);}; | |
3163 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3164 | int argc; | |
3165 | char **argv; | |
3166 | int | |
3167 | main () | |
3168 | { | |
3169 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3170 | ; | |
3171 | return 0; | |
3172 | } | |
3173 | _ACEOF | |
3174 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3175 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3176 | do | |
3177 | CC="$ac_save_CC $ac_arg" | |
3178 | if ac_fn_c_try_compile "$LINENO"; then : | |
3179 | ac_cv_prog_cc_c89=$ac_arg | |
3180 | fi | |
3181 | rm -f core conftest.err conftest.$ac_objext | |
3182 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3183 | done | |
3184 | rm -f conftest.$ac_ext | |
3185 | CC=$ac_save_CC | |
3186 | ||
3187 | fi | |
3188 | # AC_CACHE_VAL | |
3189 | case "x$ac_cv_prog_cc_c89" in | |
3190 | x) | |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3192 | $as_echo "none needed" >&6; } ;; | |
3193 | xno) | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3195 | $as_echo "unsupported" >&6; } ;; | |
3196 | *) | |
3197 | CC="$CC $ac_cv_prog_cc_c89" | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3199 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3200 | esac | |
3201 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3202 | ||
3203 | fi | |
3204 | ||
3205 | ac_ext=c | |
3206 | ac_cpp='$CPP $CPPFLAGS' | |
3207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3210 | ||
3211 | ac_aux_dir= | |
3212 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3213 | if test -f "$ac_dir/install-sh"; then | |
3214 | ac_aux_dir=$ac_dir | |
3215 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3216 | break | |
3217 | elif test -f "$ac_dir/install.sh"; then | |
3218 | ac_aux_dir=$ac_dir | |
3219 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3220 | break | |
3221 | elif test -f "$ac_dir/shtool"; then | |
3222 | ac_aux_dir=$ac_dir | |
3223 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3224 | break | |
3225 | fi | |
3226 | done | |
3227 | if test -z "$ac_aux_dir"; then | |
3228 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3229 | fi | |
3230 | ||
3231 | # These three variables are undocumented and unsupported, | |
3232 | # and are intended to be withdrawn in a future Autoconf release. | |
3233 | # They can cause serious problems if a builder's source tree is in a directory | |
3234 | # whose full name contains unusual characters. | |
3235 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3236 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3237 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3238 | ||
3239 | ||
3240 | # Find a good install program. We prefer a C program (faster), | |
3241 | # so one script is as good as another. But avoid the broken or | |
3242 | # incompatible versions: | |
3243 | # SysV /etc/install, /usr/sbin/install | |
3244 | # SunOS /usr/etc/install | |
3245 | # IRIX /sbin/install | |
3246 | # AIX /bin/install | |
3247 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3248 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3249 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3250 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3251 | # OS/2's system install, which has a completely different semantic | |
3252 | # ./install, which can be erroneously created by make from ./install.sh. | |
3253 | # Reject install programs that cannot install multiple files. | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3255 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3256 | if test -z "$INSTALL"; then | |
6b668323 | 3257 | if ${ac_cv_path_install+:} false; then : |
94759fd3 IJ |
3258 | $as_echo_n "(cached) " >&6 |
3259 | else | |
3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3261 | for as_dir in $PATH | |
3262 | do | |
3263 | IFS=$as_save_IFS | |
3264 | test -z "$as_dir" && as_dir=. | |
3265 | # Account for people who put trailing slashes in PATH elements. | |
3266 | case $as_dir/ in #(( | |
3267 | ./ | .// | /[cC]/* | \ | |
3268 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3269 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3270 | /usr/ucb/* ) ;; | |
3271 | *) | |
3272 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3273 | # Don't use installbsd from OSF since it installs stuff as root | |
3274 | # by default. | |
3275 | for ac_prog in ginstall scoinst install; do | |
3276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 3277 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
94759fd3 IJ |
3278 | if test $ac_prog = install && |
3279 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3280 | # AIX install. It has an incompatible calling convention. | |
3281 | : | |
3282 | elif test $ac_prog = install && | |
3283 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3284 | # program-specific install script used by HP pwplus--don't use. | |
3285 | : | |
3286 | else | |
3287 | rm -rf conftest.one conftest.two conftest.dir | |
3288 | echo one > conftest.one | |
3289 | echo two > conftest.two | |
3290 | mkdir conftest.dir | |
3291 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3292 | test -s conftest.one && test -s conftest.two && | |
3293 | test -s conftest.dir/conftest.one && | |
3294 | test -s conftest.dir/conftest.two | |
3295 | then | |
3296 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3297 | break 3 | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | done | |
3302 | done | |
3303 | ;; | |
3304 | esac | |
3305 | ||
3306 | done | |
3307 | IFS=$as_save_IFS | |
3308 | ||
3309 | rm -rf conftest.one conftest.two conftest.dir | |
3310 | ||
3311 | fi | |
3312 | if test "${ac_cv_path_install+set}" = set; then | |
3313 | INSTALL=$ac_cv_path_install | |
3314 | else | |
3315 | # As a last resort, use the slow shell script. Don't cache a | |
3316 | # value for INSTALL within a source directory, because that will | |
3317 | # break other packages using the cache if that directory is | |
3318 | # removed, or if the value is a relative name. | |
3319 | INSTALL=$ac_install_sh | |
3320 | fi | |
3321 | fi | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3323 | $as_echo "$INSTALL" >&6; } | |
3324 | ||
3325 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3326 | # It thinks the first close brace ends the variable substitution. | |
3327 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3328 | ||
3329 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3330 | ||
3331 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3332 | ||
3333 | # Extract the first word of "rm", so it can be a program name with args. | |
3334 | set dummy rm; ac_word=$2 | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3336 | $as_echo_n "checking for $ac_word... " >&6; } | |
6b668323 | 3337 | if ${ac_cv_path_RM+:} false; then : |
94759fd3 IJ |
3338 | $as_echo_n "(cached) " >&6 |
3339 | else | |
3340 | case $RM in | |
3341 | [\\/]* | ?:[\\/]*) | |
3342 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3343 | ;; | |
3344 | *) | |
3345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3346 | for as_dir in $PATH | |
3347 | do | |
3348 | IFS=$as_save_IFS | |
3349 | test -z "$as_dir" && as_dir=. | |
3350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b668323 | 3351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
94759fd3 IJ |
3352 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3354 | break 2 | |
3355 | fi | |
3356 | done | |
3357 | done | |
3358 | IFS=$as_save_IFS | |
3359 | ||
3360 | ;; | |
3361 | esac | |
3362 | fi | |
3363 | RM=$ac_cv_path_RM | |
3364 | if test -n "$RM"; then | |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
3366 | $as_echo "$RM" >&6; } | |
3367 | else | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3369 | $as_echo "no" >&6; } | |
3370 | fi | |
3371 | ||
3372 | ||
3373 | ||
3374 | ac_ext=c | |
3375 | ac_cpp='$CPP $CPPFLAGS' | |
3376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3380 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3381 | # On Suns, sometimes $CPP names a directory. | |
3382 | if test -n "$CPP" && test -d "$CPP"; then | |
3383 | CPP= | |
3384 | fi | |
3385 | if test -z "$CPP"; then | |
6b668323 | 3386 | if ${ac_cv_prog_CPP+:} false; then : |
94759fd3 IJ |
3387 | $as_echo_n "(cached) " >&6 |
3388 | else | |
3389 | # Double quotes because CPP needs to be expanded | |
3390 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3391 | do | |
3392 | ac_preproc_ok=false | |
3393 | for ac_c_preproc_warn_flag in '' yes | |
3394 | do | |
3395 | # Use a header file that comes with gcc, so configuring glibc | |
3396 | # with a fresh cross-compiler works. | |
3397 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3398 | # <limits.h> exists even on freestanding compilers. | |
3399 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3400 | # not just through cpp. "Syntax error" is here to catch this case. | |
3401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3402 | /* end confdefs.h. */ | |
3403 | #ifdef __STDC__ | |
3404 | # include <limits.h> | |
3405 | #else | |
3406 | # include <assert.h> | |
3407 | #endif | |
3408 | Syntax error | |
3409 | _ACEOF | |
3410 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3411 | ||
3412 | else | |
3413 | # Broken: fails on valid input. | |
3414 | continue | |
3415 | fi | |
3416 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3417 | ||
3418 | # OK, works on sane cases. Now check whether nonexistent headers | |
3419 | # can be detected and how. | |
3420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3421 | /* end confdefs.h. */ | |
3422 | #include <ac_nonexistent.h> | |
3423 | _ACEOF | |
3424 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3425 | # Broken: success on invalid input. | |
3426 | continue | |
3427 | else | |
3428 | # Passes both tests. | |
3429 | ac_preproc_ok=: | |
3430 | break | |
3431 | fi | |
3432 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3433 | ||
3434 | done | |
3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3436 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3437 | if $ac_preproc_ok; then : | |
3438 | break | |
3439 | fi | |
3440 | ||
3441 | done | |
3442 | ac_cv_prog_CPP=$CPP | |
3443 | ||
3444 | fi | |
3445 | CPP=$ac_cv_prog_CPP | |
3446 | else | |
3447 | ac_cv_prog_CPP=$CPP | |
3448 | fi | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3450 | $as_echo "$CPP" >&6; } | |
3451 | ac_preproc_ok=false | |
3452 | for ac_c_preproc_warn_flag in '' yes | |
3453 | do | |
3454 | # Use a header file that comes with gcc, so configuring glibc | |
3455 | # with a fresh cross-compiler works. | |
3456 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3457 | # <limits.h> exists even on freestanding compilers. | |
3458 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3459 | # not just through cpp. "Syntax error" is here to catch this case. | |
3460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3461 | /* end confdefs.h. */ | |
3462 | #ifdef __STDC__ | |
3463 | # include <limits.h> | |
3464 | #else | |
3465 | # include <assert.h> | |
3466 | #endif | |
3467 | Syntax error | |
3468 | _ACEOF | |
3469 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3470 | ||
3471 | else | |
3472 | # Broken: fails on valid input. | |
3473 | continue | |
3474 | fi | |
3475 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3476 | ||
3477 | # OK, works on sane cases. Now check whether nonexistent headers | |
3478 | # can be detected and how. | |
3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3480 | /* end confdefs.h. */ | |
3481 | #include <ac_nonexistent.h> | |
3482 | _ACEOF | |
3483 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3484 | # Broken: success on invalid input. | |
3485 | continue | |
3486 | else | |
3487 | # Passes both tests. | |
3488 | ac_preproc_ok=: | |
3489 | break | |
3490 | fi | |
3491 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3492 | ||
3493 | done | |
3494 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3495 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3496 | if $ac_preproc_ok; then : | |
3497 | ||
3498 | else | |
3499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3500 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3501 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
6b668323 | 3502 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
3503 | fi |
3504 | ||
3505 | ac_ext=c | |
3506 | ac_cpp='$CPP $CPPFLAGS' | |
3507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3510 | ||
3511 | ||
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3513 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
6b668323 | 3514 | if ${ac_cv_path_GREP+:} false; then : |
94759fd3 IJ |
3515 | $as_echo_n "(cached) " >&6 |
3516 | else | |
3517 | if test -z "$GREP"; then | |
3518 | ac_path_GREP_found=false | |
3519 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3521 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3522 | do | |
3523 | IFS=$as_save_IFS | |
3524 | test -z "$as_dir" && as_dir=. | |
3525 | for ac_prog in grep ggrep; do | |
3526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3527 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
6b668323 | 3528 | as_fn_executable_p "$ac_path_GREP" || continue |
94759fd3 IJ |
3529 | # Check for GNU ac_path_GREP and select it if it is found. |
3530 | # Check for GNU $ac_path_GREP | |
3531 | case `"$ac_path_GREP" --version 2>&1` in | |
3532 | *GNU*) | |
3533 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3534 | *) | |
3535 | ac_count=0 | |
3536 | $as_echo_n 0123456789 >"conftest.in" | |
3537 | while : | |
3538 | do | |
3539 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3540 | mv "conftest.tmp" "conftest.in" | |
3541 | cp "conftest.in" "conftest.nl" | |
3542 | $as_echo 'GREP' >> "conftest.nl" | |
3543 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3544 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3545 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3546 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3547 | # Best one so far, save it but keep looking for a better one | |
3548 | ac_cv_path_GREP="$ac_path_GREP" | |
3549 | ac_path_GREP_max=$ac_count | |
3550 | fi | |
3551 | # 10*(2^10) chars as input seems more than enough | |
3552 | test $ac_count -gt 10 && break | |
3553 | done | |
3554 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3555 | esac | |
3556 | ||
3557 | $ac_path_GREP_found && break 3 | |
3558 | done | |
3559 | done | |
3560 | done | |
3561 | IFS=$as_save_IFS | |
3562 | if test -z "$ac_cv_path_GREP"; then | |
3563 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3564 | fi | |
3565 | else | |
3566 | ac_cv_path_GREP=$GREP | |
3567 | fi | |
3568 | ||
3569 | fi | |
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3571 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3572 | GREP="$ac_cv_path_GREP" | |
3573 | ||
3574 | ||
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3576 | $as_echo_n "checking for egrep... " >&6; } | |
6b668323 | 3577 | if ${ac_cv_path_EGREP+:} false; then : |
94759fd3 IJ |
3578 | $as_echo_n "(cached) " >&6 |
3579 | else | |
3580 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3581 | then ac_cv_path_EGREP="$GREP -E" | |
3582 | else | |
3583 | if test -z "$EGREP"; then | |
3584 | ac_path_EGREP_found=false | |
3585 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3587 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3588 | do | |
3589 | IFS=$as_save_IFS | |
3590 | test -z "$as_dir" && as_dir=. | |
3591 | for ac_prog in egrep; do | |
3592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3593 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6b668323 | 3594 | as_fn_executable_p "$ac_path_EGREP" || continue |
94759fd3 IJ |
3595 | # Check for GNU ac_path_EGREP and select it if it is found. |
3596 | # Check for GNU $ac_path_EGREP | |
3597 | case `"$ac_path_EGREP" --version 2>&1` in | |
3598 | *GNU*) | |
3599 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3600 | *) | |
3601 | ac_count=0 | |
3602 | $as_echo_n 0123456789 >"conftest.in" | |
3603 | while : | |
3604 | do | |
3605 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3606 | mv "conftest.tmp" "conftest.in" | |
3607 | cp "conftest.in" "conftest.nl" | |
3608 | $as_echo 'EGREP' >> "conftest.nl" | |
3609 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3610 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3611 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3612 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3613 | # Best one so far, save it but keep looking for a better one | |
3614 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3615 | ac_path_EGREP_max=$ac_count | |
3616 | fi | |
3617 | # 10*(2^10) chars as input seems more than enough | |
3618 | test $ac_count -gt 10 && break | |
3619 | done | |
3620 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3621 | esac | |
3622 | ||
3623 | $ac_path_EGREP_found && break 3 | |
3624 | done | |
3625 | done | |
3626 | done | |
3627 | IFS=$as_save_IFS | |
3628 | if test -z "$ac_cv_path_EGREP"; then | |
3629 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3630 | fi | |
3631 | else | |
3632 | ac_cv_path_EGREP=$EGREP | |
3633 | fi | |
3634 | ||
3635 | fi | |
3636 | fi | |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3638 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3639 | EGREP="$ac_cv_path_EGREP" | |
3640 | ||
3641 | ||
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3643 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6b668323 | 3644 | if ${ac_cv_header_stdc+:} false; then : |
94759fd3 IJ |
3645 | $as_echo_n "(cached) " >&6 |
3646 | else | |
3647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3648 | /* end confdefs.h. */ | |
3649 | #include <stdlib.h> | |
3650 | #include <stdarg.h> | |
3651 | #include <string.h> | |
3652 | #include <float.h> | |
3653 | ||
3654 | int | |
3655 | main () | |
3656 | { | |
3657 | ||
3658 | ; | |
3659 | return 0; | |
3660 | } | |
3661 | _ACEOF | |
3662 | if ac_fn_c_try_compile "$LINENO"; then : | |
3663 | ac_cv_header_stdc=yes | |
3664 | else | |
3665 | ac_cv_header_stdc=no | |
3666 | fi | |
3667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3668 | ||
3669 | if test $ac_cv_header_stdc = yes; then | |
3670 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3672 | /* end confdefs.h. */ | |
3673 | #include <string.h> | |
3674 | ||
3675 | _ACEOF | |
3676 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3677 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3678 | ||
3679 | else | |
3680 | ac_cv_header_stdc=no | |
3681 | fi | |
3682 | rm -f conftest* | |
3683 | ||
3684 | fi | |
3685 | ||
3686 | if test $ac_cv_header_stdc = yes; then | |
3687 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3689 | /* end confdefs.h. */ | |
3690 | #include <stdlib.h> | |
3691 | ||
3692 | _ACEOF | |
3693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3694 | $EGREP "free" >/dev/null 2>&1; then : | |
3695 | ||
3696 | else | |
3697 | ac_cv_header_stdc=no | |
3698 | fi | |
3699 | rm -f conftest* | |
3700 | ||
3701 | fi | |
3702 | ||
3703 | if test $ac_cv_header_stdc = yes; then | |
3704 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3705 | if test "$cross_compiling" = yes; then : | |
3706 | : | |
3707 | else | |
3708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3709 | /* end confdefs.h. */ | |
3710 | #include <ctype.h> | |
3711 | #include <stdlib.h> | |
3712 | #if ((' ' & 0x0FF) == 0x020) | |
3713 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3714 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3715 | #else | |
3716 | # define ISLOWER(c) \ | |
3717 | (('a' <= (c) && (c) <= 'i') \ | |
3718 | || ('j' <= (c) && (c) <= 'r') \ | |
3719 | || ('s' <= (c) && (c) <= 'z')) | |
3720 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3721 | #endif | |
3722 | ||
3723 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3724 | int | |
3725 | main () | |
3726 | { | |
3727 | int i; | |
3728 | for (i = 0; i < 256; i++) | |
3729 | if (XOR (islower (i), ISLOWER (i)) | |
3730 | || toupper (i) != TOUPPER (i)) | |
3731 | return 2; | |
3732 | return 0; | |
3733 | } | |
3734 | _ACEOF | |
3735 | if ac_fn_c_try_run "$LINENO"; then : | |
3736 | ||
3737 | else | |
3738 | ac_cv_header_stdc=no | |
3739 | fi | |
3740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3741 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3742 | fi | |
3743 | ||
3744 | fi | |
3745 | fi | |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3747 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3748 | if test $ac_cv_header_stdc = yes; then | |
3749 | ||
3750 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3751 | ||
3752 | fi | |
3753 | ||
3754 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3755 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3756 | inttypes.h stdint.h unistd.h | |
3757 | do : | |
3758 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3759 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3760 | " | |
3761 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3762 | cat >>confdefs.h <<_ACEOF | |
3763 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3764 | _ACEOF | |
3765 | ||
3766 | fi | |
3767 | ||
3768 | done | |
3769 | ||
3770 | ||
3771 | for ac_header in stdint.h inttypes.h | |
3772 | do : | |
3773 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3774 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
3775 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3776 | cat >>confdefs.h <<_ACEOF | |
3777 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3778 | _ACEOF | |
3779 | ||
3780 | fi | |
3781 | ||
3782 | done | |
3783 | ||
3784 | for ac_header in net/if.h net/route.h | |
3785 | do : | |
3786 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3787 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
3788 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3789 | cat >>confdefs.h <<_ACEOF | |
3790 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3791 | _ACEOF | |
3792 | ||
3793 | fi | |
3794 | ||
3795 | done | |
3796 | ||
3797 | for ac_header in sys/socket.h | |
3798 | do : | |
3799 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | |
6b668323 | 3800 | if test "x$ac_cv_header_sys_socket_h" = xyes; then : |
94759fd3 IJ |
3801 | cat >>confdefs.h <<_ACEOF |
3802 | #define HAVE_SYS_SOCKET_H 1 | |
3803 | _ACEOF | |
3804 | ||
3805 | fi | |
3806 | ||
3807 | done | |
3808 | ||
94ca562b | 3809 | for ac_header in linux/if_tun.h |
94759fd3 | 3810 | do : |
94ca562b | 3811 | ac_fn_c_check_header_compile "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "#if HAVE_SYS_SOCKET_H |
94759fd3 IJ |
3812 | # include <sys/socket.h> |
3813 | #endif | |
3814 | ||
3815 | " | |
94ca562b | 3816 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : |
94759fd3 | 3817 | cat >>confdefs.h <<_ACEOF |
94ca562b | 3818 | #define HAVE_LINUX_IF_TUN_H 1 |
94759fd3 IJ |
3819 | _ACEOF |
3820 | ||
3821 | fi | |
3822 | ||
3823 | done | |
3824 | ||
3825 | for ac_header in stropts.h sys/sockio.h net/if_tun.h | |
3826 | do : | |
3827 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3828 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
3829 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3830 | cat >>confdefs.h <<_ACEOF | |
3831 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3832 | _ACEOF | |
3833 | ||
3834 | fi | |
3835 | ||
3836 | done | |
3837 | ||
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
3839 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
6b668323 | 3840 | if ${ac_cv_c_bigendian+:} false; then : |
94759fd3 IJ |
3841 | $as_echo_n "(cached) " >&6 |
3842 | else | |
3843 | ac_cv_c_bigendian=unknown | |
3844 | # See if we're dealing with a universal compiler. | |
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3846 | /* end confdefs.h. */ | |
3847 | #ifndef __APPLE_CC__ | |
3848 | not a universal capable compiler | |
3849 | #endif | |
3850 | typedef int dummy; | |
3851 | ||
3852 | _ACEOF | |
3853 | if ac_fn_c_try_compile "$LINENO"; then : | |
3854 | ||
3855 | # Check for potential -arch flags. It is not universal unless | |
3856 | # there are at least two -arch flags with different values. | |
3857 | ac_arch= | |
3858 | ac_prev= | |
3859 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
3860 | if test -n "$ac_prev"; then | |
3861 | case $ac_word in | |
3862 | i?86 | x86_64 | ppc | ppc64) | |
3863 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
3864 | ac_arch=$ac_word | |
3865 | else | |
3866 | ac_cv_c_bigendian=universal | |
3867 | break | |
3868 | fi | |
3869 | ;; | |
3870 | esac | |
3871 | ac_prev= | |
3872 | elif test "x$ac_word" = "x-arch"; then | |
3873 | ac_prev=arch | |
3874 | fi | |
3875 | done | |
3876 | fi | |
3877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3878 | if test $ac_cv_c_bigendian = unknown; then | |
3879 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3881 | /* end confdefs.h. */ | |
3882 | #include <sys/types.h> | |
3883 | #include <sys/param.h> | |
3884 | ||
3885 | int | |
3886 | main () | |
3887 | { | |
3888 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
3889 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
3890 | && LITTLE_ENDIAN) | |
3891 | bogus endian macros | |
3892 | #endif | |
3893 | ||
3894 | ; | |
3895 | return 0; | |
3896 | } | |
3897 | _ACEOF | |
3898 | if ac_fn_c_try_compile "$LINENO"; then : | |
3899 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3901 | /* end confdefs.h. */ | |
3902 | #include <sys/types.h> | |
3903 | #include <sys/param.h> | |
3904 | ||
3905 | int | |
3906 | main () | |
3907 | { | |
3908 | #if BYTE_ORDER != BIG_ENDIAN | |
3909 | not big endian | |
3910 | #endif | |
3911 | ||
3912 | ; | |
3913 | return 0; | |
3914 | } | |
3915 | _ACEOF | |
3916 | if ac_fn_c_try_compile "$LINENO"; then : | |
3917 | ac_cv_c_bigendian=yes | |
3918 | else | |
3919 | ac_cv_c_bigendian=no | |
3920 | fi | |
3921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3922 | fi | |
3923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3924 | fi | |
3925 | if test $ac_cv_c_bigendian = unknown; then | |
3926 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
3927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3928 | /* end confdefs.h. */ | |
3929 | #include <limits.h> | |
3930 | ||
3931 | int | |
3932 | main () | |
3933 | { | |
3934 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
3935 | bogus endian macros | |
3936 | #endif | |
3937 | ||
3938 | ; | |
3939 | return 0; | |
3940 | } | |
3941 | _ACEOF | |
3942 | if ac_fn_c_try_compile "$LINENO"; then : | |
3943 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
3944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3945 | /* end confdefs.h. */ | |
3946 | #include <limits.h> | |
3947 | ||
3948 | int | |
3949 | main () | |
3950 | { | |
3951 | #ifndef _BIG_ENDIAN | |
3952 | not big endian | |
3953 | #endif | |
3954 | ||
3955 | ; | |
3956 | return 0; | |
3957 | } | |
3958 | _ACEOF | |
3959 | if ac_fn_c_try_compile "$LINENO"; then : | |
3960 | ac_cv_c_bigendian=yes | |
3961 | else | |
3962 | ac_cv_c_bigendian=no | |
3963 | fi | |
3964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3965 | fi | |
3966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3967 | fi | |
3968 | if test $ac_cv_c_bigendian = unknown; then | |
3969 | # Compile a test program. | |
3970 | if test "$cross_compiling" = yes; then : | |
3971 | # Try to guess by grepping values from an object file. | |
3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3973 | /* end confdefs.h. */ | |
3974 | short int ascii_mm[] = | |
3975 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
3976 | short int ascii_ii[] = | |
3977 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
3978 | int use_ascii (int i) { | |
3979 | return ascii_mm[i] + ascii_ii[i]; | |
3980 | } | |
3981 | short int ebcdic_ii[] = | |
3982 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
3983 | short int ebcdic_mm[] = | |
3984 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
3985 | int use_ebcdic (int i) { | |
3986 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
3987 | } | |
3988 | extern int foo; | |
3989 | ||
3990 | int | |
3991 | main () | |
3992 | { | |
3993 | return use_ascii (foo) == use_ebcdic (foo); | |
3994 | ; | |
3995 | return 0; | |
3996 | } | |
3997 | _ACEOF | |
3998 | if ac_fn_c_try_compile "$LINENO"; then : | |
3999 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4000 | ac_cv_c_bigendian=yes | |
4001 | fi | |
4002 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4003 | if test "$ac_cv_c_bigendian" = unknown; then | |
4004 | ac_cv_c_bigendian=no | |
4005 | else | |
4006 | # finding both strings is unlikely to happen, but who knows? | |
4007 | ac_cv_c_bigendian=unknown | |
4008 | fi | |
4009 | fi | |
4010 | fi | |
4011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4012 | else | |
4013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4014 | /* end confdefs.h. */ | |
4015 | $ac_includes_default | |
4016 | int | |
4017 | main () | |
4018 | { | |
4019 | ||
4020 | /* Are we little or big endian? From Harbison&Steele. */ | |
4021 | union | |
4022 | { | |
4023 | long int l; | |
4024 | char c[sizeof (long int)]; | |
4025 | } u; | |
4026 | u.l = 1; | |
4027 | return u.c[sizeof (long int) - 1] == 1; | |
4028 | ||
4029 | ; | |
4030 | return 0; | |
4031 | } | |
4032 | _ACEOF | |
4033 | if ac_fn_c_try_run "$LINENO"; then : | |
4034 | ac_cv_c_bigendian=no | |
4035 | else | |
4036 | ac_cv_c_bigendian=yes | |
4037 | fi | |
4038 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4039 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4040 | fi | |
4041 | ||
4042 | fi | |
4043 | fi | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
4045 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4046 | case $ac_cv_c_bigendian in #( | |
4047 | yes) | |
4048 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4049 | ;; #( | |
4050 | no) | |
4051 | ;; #( | |
4052 | universal) | |
4053 | ||
4054 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
4055 | ||
4056 | ;; #( | |
4057 | *) | |
4058 | as_fn_error $? "unknown endianness | |
6b668323 | 4059 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
94759fd3 IJ |
4060 | esac |
4061 | ||
4062 | # The cast to long int works around a bug in the HP C Compiler | |
4063 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4064 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4065 | # This bug is HP SR number 8606223364. | |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 | |
4067 | $as_echo_n "checking size of unsigned long long... " >&6; } | |
6b668323 | 4068 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
94759fd3 IJ |
4069 | $as_echo_n "(cached) " >&6 |
4070 | else | |
4071 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : | |
4072 | ||
4073 | else | |
4074 | if test "$ac_cv_type_unsigned_long_long" = yes; then | |
4075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4077 | as_fn_error 77 "cannot compute sizeof (unsigned long long) | |
6b668323 | 4078 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
4079 | else |
4080 | ac_cv_sizeof_unsigned_long_long=0 | |
4081 | fi | |
4082 | fi | |
4083 | ||
4084 | fi | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 | |
4086 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | |
4087 | ||
4088 | ||
4089 | ||
4090 | cat >>confdefs.h <<_ACEOF | |
4091 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | |
4092 | _ACEOF | |
4093 | ||
4094 | ||
4095 | # The cast to long int works around a bug in the HP C Compiler | |
4096 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4097 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4098 | # This bug is HP SR number 8606223364. | |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
4100 | $as_echo_n "checking size of unsigned long... " >&6; } | |
6b668323 | 4101 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
94759fd3 IJ |
4102 | $as_echo_n "(cached) " >&6 |
4103 | else | |
4104 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
4105 | ||
4106 | else | |
4107 | if test "$ac_cv_type_unsigned_long" = yes; then | |
4108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4109 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4110 | as_fn_error 77 "cannot compute sizeof (unsigned long) | |
6b668323 | 4111 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
4112 | else |
4113 | ac_cv_sizeof_unsigned_long=0 | |
4114 | fi | |
4115 | fi | |
4116 | ||
4117 | fi | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
4119 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
4120 | ||
4121 | ||
4122 | ||
4123 | cat >>confdefs.h <<_ACEOF | |
4124 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
4125 | _ACEOF | |
4126 | ||
4127 | ||
4128 | # The cast to long int works around a bug in the HP C Compiler | |
4129 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4130 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4131 | # This bug is HP SR number 8606223364. | |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | |
4133 | $as_echo_n "checking size of unsigned int... " >&6; } | |
6b668323 | 4134 | if ${ac_cv_sizeof_unsigned_int+:} false; then : |
94759fd3 IJ |
4135 | $as_echo_n "(cached) " >&6 |
4136 | else | |
4137 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : | |
4138 | ||
4139 | else | |
4140 | if test "$ac_cv_type_unsigned_int" = yes; then | |
4141 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4143 | as_fn_error 77 "cannot compute sizeof (unsigned int) | |
6b668323 | 4144 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
4145 | else |
4146 | ac_cv_sizeof_unsigned_int=0 | |
4147 | fi | |
4148 | fi | |
4149 | ||
4150 | fi | |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 | |
4152 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | |
4153 | ||
4154 | ||
4155 | ||
4156 | cat >>confdefs.h <<_ACEOF | |
4157 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | |
4158 | _ACEOF | |
4159 | ||
4160 | ||
4161 | # The cast to long int works around a bug in the HP C Compiler | |
4162 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4163 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4164 | # This bug is HP SR number 8606223364. | |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | |
4166 | $as_echo_n "checking size of unsigned short... " >&6; } | |
6b668323 | 4167 | if ${ac_cv_sizeof_unsigned_short+:} false; then : |
94759fd3 IJ |
4168 | $as_echo_n "(cached) " >&6 |
4169 | else | |
4170 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : | |
4171 | ||
4172 | else | |
4173 | if test "$ac_cv_type_unsigned_short" = yes; then | |
4174 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4175 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4176 | as_fn_error 77 "cannot compute sizeof (unsigned short) | |
6b668323 | 4177 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
4178 | else |
4179 | ac_cv_sizeof_unsigned_short=0 | |
4180 | fi | |
4181 | fi | |
4182 | ||
4183 | fi | |
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 | |
4185 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | |
4186 | ||
4187 | ||
4188 | ||
4189 | cat >>confdefs.h <<_ACEOF | |
4190 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | |
4191 | _ACEOF | |
4192 | ||
4193 | ||
4194 | # The cast to long int works around a bug in the HP C Compiler | |
4195 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4196 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4197 | # This bug is HP SR number 8606223364. | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5 | |
4199 | $as_echo_n "checking size of unsigned char... " >&6; } | |
6b668323 | 4200 | if ${ac_cv_sizeof_unsigned_char+:} false; then : |
94759fd3 IJ |
4201 | $as_echo_n "(cached) " >&6 |
4202 | else | |
4203 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then : | |
4204 | ||
4205 | else | |
4206 | if test "$ac_cv_type_unsigned_char" = yes; then | |
4207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4209 | as_fn_error 77 "cannot compute sizeof (unsigned char) | |
6b668323 | 4210 | See \`config.log' for more details" "$LINENO" 5; } |
94759fd3 IJ |
4211 | else |
4212 | ac_cv_sizeof_unsigned_char=0 | |
4213 | fi | |
4214 | fi | |
4215 | ||
4216 | fi | |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5 | |
4218 | $as_echo "$ac_cv_sizeof_unsigned_char" >&6; } | |
4219 | ||
4220 | ||
4221 | ||
4222 | cat >>confdefs.h <<_ACEOF | |
4223 | #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char | |
4224 | _ACEOF | |
4225 | ||
4226 | ||
4227 | ||
4228 | hard= | |
4229 | if test -z "$hard"; then | |
4230 | msg="C to warn about writing to stringliterals" | |
4231 | else | |
4232 | msg="C to prohibit any write to stringliterals" | |
4233 | fi | |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 | |
4235 | $as_echo_n "checking $msg... " >&6; } | |
6b668323 | 4236 | if ${ac_cv_prog_cc_no_writeable_strings+:} false; then : |
94759fd3 IJ |
4237 | $as_echo_n "(cached) " >&6 |
4238 | else | |
4239 | ||
4240 | cat > conftest.c <<EOF | |
4241 | #include <string.h> | |
4242 | int main (void) | |
4243 | { | |
4244 | char test[16]; | |
4245 | if (strcpy (test, "test")) return 0; | |
4246 | return 1; | |
4247 | } | |
4248 | EOF | |
4249 | if test "$GCC" = "yes"; | |
4250 | then | |
4251 | if test -z "$hard"; then | |
4252 | ac_cv_prog_cc_no_writeable_strings="-Wwrite-strings" | |
4253 | else | |
4254 | ac_cv_prog_cc_no_writeable_strings="-fno-writable-strings -Wwrite-strings" | |
4255 | fi | |
4256 | ||
4257 | if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then | |
4258 | ac_cv_prog_cc_no_writeable_strings="suppressed: string.h" | |
4259 | fi | |
4260 | ||
4261 | elif $CC -flags 2>&1 | grep "Xc.*strict ANSI C" > /dev/null 2>&1 && | |
4262 | $CC -c -xstrconst conftest.c > /dev/null 2>&1 && | |
4263 | test -f conftest.o | |
4264 | then | |
4265 | # strings go into readonly segment | |
4266 | ac_cv_prog_cc_no_writeable_strings="-xstrconst" | |
4267 | ||
4268 | rm conftest.o | |
4269 | if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then | |
4270 | ac_cv_prog_cc_no_writeable_strings="suppressed: string.h" | |
4271 | fi | |
4272 | ||
4273 | elif $CC > /dev/null 2>&1 && | |
4274 | $CC -c +ESlit conftest.c > /dev/null 2>&1 && | |
4275 | test -f conftest.o | |
4276 | then | |
4277 | # strings go into readonly segment | |
4278 | ac_cv_prog_cc_no_writeable_strings="+ESlit" | |
4279 | ||
4280 | rm conftest.o | |
4281 | if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then | |
4282 | ac_cv_prog_cc_no_writeable_strings="suppressed: string.h" | |
4283 | fi | |
4284 | ||
4285 | elif ! $CC > /dev/null 2>&1 && | |
4286 | $CC -c -readonly_strings conftest.c > /dev/null 2>&1 && | |
4287 | test -f conftest.o | |
4288 | then | |
4289 | # strings go into readonly segment | |
4290 | ac_cv_prog_cc_no_writeable_strings="-readonly_strings" | |
4291 | ||
4292 | rm conftest.o | |
4293 | if test -n "`${CC-cc} -c $ac_cv_prog_cc_no_writeable_strings conftest.c 2>&1`" ; then | |
4294 | ac_cv_prog_cc_no_writeable_strings="suppressed: string.h" | |
4295 | fi | |
4296 | ||
4297 | ||
4298 | # -use_readonly_const is the default for IRIX C, | |
4299 | # puts them into .rodata, but they are copied later. | |
4300 | # need to be "-G0 -rdatashared" for strictmode but | |
4301 | # I am not sure what effect that has really. | |
4302 | ||
4303 | fi | |
4304 | rm -f conftest.* | |
4305 | ||
4306 | fi | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_no_writeable_strings" >&5 | |
4308 | $as_echo "$ac_cv_prog_cc_no_writeable_strings" >&6; } | |
4309 | if test -z "$WRITESTRINGS" ; then | |
4310 | if test -n "$ac_cv_prog_cc_no_writeable_strings" ; then | |
4311 | case "$ac_cv_prog_cc_no_writeable_strings" in | |
4312 | suppressed*) WRITESTRINGS="" ;; # known but suppressed | |
4313 | *) WRITESTRINGS="$ac_cv_prog_cc_no_writeable_strings" ;; | |
4314 | esac | |
4315 | fi | |
4316 | fi | |
4317 | ||
4318 | ||
4319 | ||
e1b81bd6 IJ |
4320 | # Check whether --enable-hacky-parallel was given. |
4321 | if test "${enable_hacky_parallel+set}" = set; then : | |
4322 | enableval=$enable_hacky_parallel; | |
4323 | case "$enableval" in | |
4324 | n|0|no) ;; | |
4325 | y|1|yes) CFLAGS="$CFLAGS -DHACKY_PARALLEL" ;; | |
4326 | *) ;; | |
4327 | esac | |
4328 | ||
4329 | fi | |
4330 | ||
4331 | ||
94759fd3 IJ |
4332 | |
4333 | ||
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init_set_str in -lgmp" >&5 | |
4335 | $as_echo_n "checking for mpz_init_set_str in -lgmp... " >&6; } | |
6b668323 | 4336 | if ${ac_cv_lib_gmp_mpz_init_set_str+:} false; then : |
94759fd3 IJ |
4337 | $as_echo_n "(cached) " >&6 |
4338 | else | |
4339 | ac_check_lib_save_LIBS=$LIBS | |
4340 | LIBS="-lgmp $LIBS" | |
4341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4342 | /* end confdefs.h. */ | |
4343 | ||
4344 | /* Override any GCC internal prototype to avoid an error. | |
4345 | Use char because int might match the return type of a GCC | |
4346 | builtin and then its argument prototype would still apply. */ | |
4347 | #ifdef __cplusplus | |
4348 | extern "C" | |
4349 | #endif | |
4350 | char mpz_init_set_str (); | |
4351 | int | |
4352 | main () | |
4353 | { | |
4354 | return mpz_init_set_str (); | |
4355 | ; | |
4356 | return 0; | |
4357 | } | |
4358 | _ACEOF | |
4359 | if ac_fn_c_try_link "$LINENO"; then : | |
4360 | ac_cv_lib_gmp_mpz_init_set_str=yes | |
4361 | else | |
4362 | ac_cv_lib_gmp_mpz_init_set_str=no | |
4363 | fi | |
4364 | rm -f core conftest.err conftest.$ac_objext \ | |
4365 | conftest$ac_exeext conftest.$ac_ext | |
4366 | LIBS=$ac_check_lib_save_LIBS | |
4367 | fi | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpz_init_set_str" >&5 | |
4369 | $as_echo "$ac_cv_lib_gmp_mpz_init_set_str" >&6; } | |
6b668323 | 4370 | if test "x$ac_cv_lib_gmp_mpz_init_set_str" = xyes; then : |
94759fd3 IJ |
4371 | cat >>confdefs.h <<_ACEOF |
4372 | #define HAVE_LIBGMP 1 | |
4373 | _ACEOF | |
4374 | ||
4375 | LIBS="-lgmp $LIBS" | |
4376 | ||
4377 | fi | |
4378 | ||
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init_set_str in -lgmp2" >&5 | |
4380 | $as_echo_n "checking for mpz_init_set_str in -lgmp2... " >&6; } | |
6b668323 | 4381 | if ${ac_cv_lib_gmp2_mpz_init_set_str+:} false; then : |
94759fd3 IJ |
4382 | $as_echo_n "(cached) " >&6 |
4383 | else | |
4384 | ac_check_lib_save_LIBS=$LIBS | |
4385 | LIBS="-lgmp2 $LIBS" | |
4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4387 | /* end confdefs.h. */ | |
4388 | ||
4389 | /* Override any GCC internal prototype to avoid an error. | |
4390 | Use char because int might match the return type of a GCC | |
4391 | builtin and then its argument prototype would still apply. */ | |
4392 | #ifdef __cplusplus | |
4393 | extern "C" | |
4394 | #endif | |
4395 | char mpz_init_set_str (); | |
4396 | int | |
4397 | main () | |
4398 | { | |
4399 | return mpz_init_set_str (); | |
4400 | ; | |
4401 | return 0; | |
4402 | } | |
4403 | _ACEOF | |
4404 | if ac_fn_c_try_link "$LINENO"; then : | |
4405 | ac_cv_lib_gmp2_mpz_init_set_str=yes | |
4406 | else | |
4407 | ac_cv_lib_gmp2_mpz_init_set_str=no | |
4408 | fi | |
4409 | rm -f core conftest.err conftest.$ac_objext \ | |
4410 | conftest$ac_exeext conftest.$ac_ext | |
4411 | LIBS=$ac_check_lib_save_LIBS | |
4412 | fi | |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp2_mpz_init_set_str" >&5 | |
4414 | $as_echo "$ac_cv_lib_gmp2_mpz_init_set_str" >&6; } | |
6b668323 | 4415 | if test "x$ac_cv_lib_gmp2_mpz_init_set_str" = xyes; then : |
94759fd3 IJ |
4416 | cat >>confdefs.h <<_ACEOF |
4417 | #define HAVE_LIBGMP2 1 | |
4418 | _ACEOF | |
4419 | ||
4420 | LIBS="-lgmp2 $LIBS" | |
4421 | ||
4422 | fi | |
4423 | ||
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init_set_str in -lgmp" >&5 | |
4425 | $as_echo_n "checking for __gmpz_init_set_str in -lgmp... " >&6; } | |
6b668323 | 4426 | if ${ac_cv_lib_gmp___gmpz_init_set_str+:} false; then : |
94759fd3 IJ |
4427 | $as_echo_n "(cached) " >&6 |
4428 | else | |
4429 | ac_check_lib_save_LIBS=$LIBS | |
4430 | LIBS="-lgmp $LIBS" | |
4431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4432 | /* end confdefs.h. */ | |
4433 | ||
4434 | /* Override any GCC internal prototype to avoid an error. | |
4435 | Use char because int might match the return type of a GCC | |
4436 | builtin and then its argument prototype would still apply. */ | |
4437 | #ifdef __cplusplus | |
4438 | extern "C" | |
4439 | #endif | |
4440 | char __gmpz_init_set_str (); | |
4441 | int | |
4442 | main () | |
4443 | { | |
4444 | return __gmpz_init_set_str (); | |
4445 | ; | |
4446 | return 0; | |
4447 | } | |
4448 | _ACEOF | |
4449 | if ac_fn_c_try_link "$LINENO"; then : | |
4450 | ac_cv_lib_gmp___gmpz_init_set_str=yes | |
4451 | else | |
4452 | ac_cv_lib_gmp___gmpz_init_set_str=no | |
4453 | fi | |
4454 | rm -f core conftest.err conftest.$ac_objext \ | |
4455 | conftest$ac_exeext conftest.$ac_ext | |
4456 | LIBS=$ac_check_lib_save_LIBS | |
4457 | fi | |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init_set_str" >&5 | |
4459 | $as_echo "$ac_cv_lib_gmp___gmpz_init_set_str" >&6; } | |
6b668323 | 4460 | if test "x$ac_cv_lib_gmp___gmpz_init_set_str" = xyes; then : |
94759fd3 IJ |
4461 | cat >>confdefs.h <<_ACEOF |
4462 | #define HAVE_LIBGMP 1 | |
4463 | _ACEOF | |
4464 | ||
4465 | LIBS="-lgmp $LIBS" | |
4466 | ||
4467 | fi | |
4468 | ||
4469 | ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" | |
6b668323 | 4470 | if test "x$ac_cv_header_gmp_h" = xyes; then : |
94759fd3 IJ |
4471 | |
4472 | else | |
4473 | as_fn_error $? "gmp.h not found" "$LINENO" 5 | |
4474 | fi | |
4475 | ||
4476 | ||
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -lfl" >&5 | |
4478 | $as_echo_n "checking for yywrap in -lfl... " >&6; } | |
6b668323 | 4479 | if ${ac_cv_lib_fl_yywrap+:} false; then : |
94759fd3 IJ |
4480 | $as_echo_n "(cached) " >&6 |
4481 | else | |
4482 | ac_check_lib_save_LIBS=$LIBS | |
4483 | LIBS="-lfl $LIBS" | |
4484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4485 | /* end confdefs.h. */ | |
4486 | ||
4487 | /* Override any GCC internal prototype to avoid an error. | |
4488 | Use char because int might match the return type of a GCC | |
4489 | builtin and then its argument prototype would still apply. */ | |
4490 | #ifdef __cplusplus | |
4491 | extern "C" | |
4492 | #endif | |
4493 | char yywrap (); | |
4494 | int | |
4495 | main () | |
4496 | { | |
4497 | return yywrap (); | |
4498 | ; | |
4499 | return 0; | |
4500 | } | |
4501 | _ACEOF | |
4502 | if ac_fn_c_try_link "$LINENO"; then : | |
4503 | ac_cv_lib_fl_yywrap=yes | |
4504 | else | |
4505 | ac_cv_lib_fl_yywrap=no | |
4506 | fi | |
4507 | rm -f core conftest.err conftest.$ac_objext \ | |
4508 | conftest$ac_exeext conftest.$ac_ext | |
4509 | LIBS=$ac_check_lib_save_LIBS | |
4510 | fi | |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yywrap" >&5 | |
4512 | $as_echo "$ac_cv_lib_fl_yywrap" >&6; } | |
6b668323 | 4513 | if test "x$ac_cv_lib_fl_yywrap" = xyes; then : |
94759fd3 IJ |
4514 | cat >>confdefs.h <<_ACEOF |
4515 | #define HAVE_LIBFL 1 | |
4516 | _ACEOF | |
4517 | ||
4518 | LIBS="-lfl $LIBS" | |
4519 | ||
4520 | fi | |
4521 | ||
4522 | if test "$ac_cv_lib_fl_yywrap" != yes; then | |
4523 | as_fn_error $? "A compatible libfl is required" "$LINENO" 5 | |
4524 | fi | |
ee2536e4 IJ |
4525 | |
4526 | ||
4527 | ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa" | |
4528 | if test "x$ac_cv_func_inet_ntoa" = xyes; then : | |
4529 | ||
4530 | else | |
4531 | ||
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 | |
94759fd3 | 4533 | $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } |
6b668323 | 4534 | if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : |
94759fd3 IJ |
4535 | $as_echo_n "(cached) " >&6 |
4536 | else | |
4537 | ac_check_lib_save_LIBS=$LIBS | |
4538 | LIBS="-lnsl $LIBS" | |
4539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4540 | /* end confdefs.h. */ | |
4541 | ||
4542 | /* Override any GCC internal prototype to avoid an error. | |
4543 | Use char because int might match the return type of a GCC | |
4544 | builtin and then its argument prototype would still apply. */ | |
4545 | #ifdef __cplusplus | |
4546 | extern "C" | |
4547 | #endif | |
4548 | char inet_ntoa (); | |
4549 | int | |
4550 | main () | |
4551 | { | |
4552 | return inet_ntoa (); | |
4553 | ; | |
4554 | return 0; | |
4555 | } | |
4556 | _ACEOF | |
4557 | if ac_fn_c_try_link "$LINENO"; then : | |
4558 | ac_cv_lib_nsl_inet_ntoa=yes | |
4559 | else | |
4560 | ac_cv_lib_nsl_inet_ntoa=no | |
4561 | fi | |
4562 | rm -f core conftest.err conftest.$ac_objext \ | |
4563 | conftest$ac_exeext conftest.$ac_ext | |
4564 | LIBS=$ac_check_lib_save_LIBS | |
4565 | fi | |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5 | |
4567 | $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } | |
6b668323 | 4568 | if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : |
94759fd3 | 4569 | |
ee2536e4 IJ |
4570 | LIBS="-lnsl $LIBS"; |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_ntoa is in libnsl, urgh. Must use -lnsl." >&5 | |
4572 | $as_echo "$as_me: WARNING: inet_ntoa is in libnsl, urgh. Must use -lnsl." >&2;} | |
4573 | ||
4574 | else | |
4575 | ||
4576 | as_fn_error $? "cannot find library function inet_ntoa" "$LINENO" 5 | |
94759fd3 IJ |
4577 | |
4578 | fi | |
4579 | ||
ee2536e4 IJ |
4580 | |
4581 | fi | |
4582 | ||
4583 | ||
4584 | ||
94759fd3 IJ |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
4586 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
6b668323 | 4587 | if ${ac_cv_lib_socket_socket+:} false; then : |
94759fd3 IJ |
4588 | $as_echo_n "(cached) " >&6 |
4589 | else | |
4590 | ac_check_lib_save_LIBS=$LIBS | |
4591 | LIBS="-lsocket $LIBS" | |
4592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4593 | /* end confdefs.h. */ | |
4594 | ||
4595 | /* Override any GCC internal prototype to avoid an error. | |
4596 | Use char because int might match the return type of a GCC | |
4597 | builtin and then its argument prototype would still apply. */ | |
4598 | #ifdef __cplusplus | |
4599 | extern "C" | |
4600 | #endif | |
4601 | char socket (); | |
4602 | int | |
4603 | main () | |
4604 | { | |
4605 | return socket (); | |
4606 | ; | |
4607 | return 0; | |
4608 | } | |
4609 | _ACEOF | |
4610 | if ac_fn_c_try_link "$LINENO"; then : | |
4611 | ac_cv_lib_socket_socket=yes | |
4612 | else | |
4613 | ac_cv_lib_socket_socket=no | |
4614 | fi | |
4615 | rm -f core conftest.err conftest.$ac_objext \ | |
4616 | conftest$ac_exeext conftest.$ac_ext | |
4617 | LIBS=$ac_check_lib_save_LIBS | |
4618 | fi | |
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | |
4620 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
6b668323 | 4621 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
94759fd3 IJ |
4622 | cat >>confdefs.h <<_ACEOF |
4623 | #define HAVE_LIBSOCKET 1 | |
4624 | _ACEOF | |
4625 | ||
4626 | LIBS="-lsocket $LIBS" | |
4627 | ||
4628 | fi | |
4629 | ||
695904f2 | 4630 | |
c143276b | 4631 | |
695904f2 IJ |
4632 | ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" |
4633 | if test "x$ac_cv_func_inet_aton" = xyes; then : | |
4634 | ||
4635 | else | |
4636 | ||
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | |
94759fd3 | 4638 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
6b668323 | 4639 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
94759fd3 IJ |
4640 | $as_echo_n "(cached) " >&6 |
4641 | else | |
4642 | ac_check_lib_save_LIBS=$LIBS | |
4643 | LIBS="-lresolv $LIBS" | |
4644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4645 | /* end confdefs.h. */ | |
4646 | ||
4647 | /* Override any GCC internal prototype to avoid an error. | |
4648 | Use char because int might match the return type of a GCC | |
4649 | builtin and then its argument prototype would still apply. */ | |
4650 | #ifdef __cplusplus | |
4651 | extern "C" | |
4652 | #endif | |
4653 | char inet_aton (); | |
4654 | int | |
4655 | main () | |
4656 | { | |
4657 | return inet_aton (); | |
4658 | ; | |
4659 | return 0; | |
4660 | } | |
4661 | _ACEOF | |
4662 | if ac_fn_c_try_link "$LINENO"; then : | |
4663 | ac_cv_lib_resolv_inet_aton=yes | |
4664 | else | |
4665 | ac_cv_lib_resolv_inet_aton=no | |
4666 | fi | |
4667 | rm -f core conftest.err conftest.$ac_objext \ | |
4668 | conftest$ac_exeext conftest.$ac_ext | |
4669 | LIBS=$ac_check_lib_save_LIBS | |
4670 | fi | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | |
4672 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | |
6b668323 | 4673 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
94759fd3 | 4674 | |
c143276b IJ |
4675 | LIBS="-lresolv $LIBS"; |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&5 | |
695904f2 IJ |
4677 | $as_echo "$as_me: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&2;} |
4678 | ||
4679 | else | |
4680 | ||
4681 | as_fn_error $? "cannot find library function inet_aton" "$LINENO" 5 | |
4682 | ||
4683 | fi | |
4684 | ||
94759fd3 IJ |
4685 | |
4686 | fi | |
4687 | ||
695904f2 | 4688 | |
c143276b | 4689 | |
94759fd3 IJ |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for adns_init in -ladns" >&5 |
4691 | $as_echo_n "checking for adns_init in -ladns... " >&6; } | |
6b668323 | 4692 | if ${ac_cv_lib_adns_adns_init+:} false; then : |
94759fd3 IJ |
4693 | $as_echo_n "(cached) " >&6 |
4694 | else | |
4695 | ac_check_lib_save_LIBS=$LIBS | |
4696 | LIBS="-ladns $LIBS" | |
4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4698 | /* end confdefs.h. */ | |
4699 | ||
4700 | /* Override any GCC internal prototype to avoid an error. | |
4701 | Use char because int might match the return type of a GCC | |
4702 | builtin and then its argument prototype would still apply. */ | |
4703 | #ifdef __cplusplus | |
4704 | extern "C" | |
4705 | #endif | |
4706 | char adns_init (); | |
4707 | int | |
4708 | main () | |
4709 | { | |
4710 | return adns_init (); | |
4711 | ; | |
4712 | return 0; | |
4713 | } | |
4714 | _ACEOF | |
4715 | if ac_fn_c_try_link "$LINENO"; then : | |
4716 | ac_cv_lib_adns_adns_init=yes | |
4717 | else | |
4718 | ac_cv_lib_adns_adns_init=no | |
4719 | fi | |
4720 | rm -f core conftest.err conftest.$ac_objext \ | |
4721 | conftest$ac_exeext conftest.$ac_ext | |
4722 | LIBS=$ac_check_lib_save_LIBS | |
4723 | fi | |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_adns_adns_init" >&5 | |
4725 | $as_echo "$ac_cv_lib_adns_adns_init" >&6; } | |
6b668323 | 4726 | if test "x$ac_cv_lib_adns_adns_init" = xyes; then : |
94759fd3 IJ |
4727 | cat >>confdefs.h <<_ACEOF |
4728 | #define HAVE_LIBADNS 1 | |
4729 | _ACEOF | |
4730 | ||
4731 | LIBS="-ladns $LIBS" | |
4732 | ||
4733 | fi | |
4734 | ||
4735 | ac_fn_c_check_header_mongrel "$LINENO" "adns.h" "ac_cv_header_adns_h" "$ac_includes_default" | |
6b668323 | 4736 | if test "x$ac_cv_header_adns_h" = xyes; then : |
94759fd3 IJ |
4737 | |
4738 | else | |
4739 | as_fn_error $? "adns.h not found" "$LINENO" 5 | |
4740 | fi | |
4741 | ||
4742 | ||
4743 | ||
2b8aa340 IJ |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking requirements for IPv6 support..." >&5 |
4745 | $as_echo "$as_me: Checking requirements for IPv6 support..." >&6;} | |
4746 | enable_ipv6=true | |
4747 | ||
4748 | ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "#include <netinet/in.h> | |
4749 | " | |
4750 | if test "x$ac_cv_have_decl_AF_INET6" = xyes; then : | |
4751 | ||
4752 | else | |
4753 | enable_ipv6=false | |
4754 | fi | |
4755 | ||
4756 | ac_fn_c_check_func "$LINENO" "adns_addr2text" "ac_cv_func_adns_addr2text" | |
4757 | if test "x$ac_cv_func_adns_addr2text" = xyes; then : | |
4758 | ||
4759 | else | |
4760 | enable_ipv6=false | |
4761 | fi | |
4762 | ||
4763 | if $enable_ipv6; then | |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling IPv6 support" >&5 | |
4765 | $as_echo "$as_me: Enabling IPv6 support" >&6;} | |
4766 | ||
4767 | $as_echo "#define CONFIG_IPV6 1" >>confdefs.h | |
4768 | ||
4769 | else | |
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling IPv6 support" >&5 | |
4771 | $as_echo "$as_me: WARNING: Disabling IPv6 support" >&2;} | |
4772 | fi | |
4773 | ||
94759fd3 IJ |
4774 | ac_config_files="$ac_config_files Makefile" |
4775 | ||
4776 | ac_config_commands="$ac_config_commands default" | |
4777 | ||
4778 | cat >confcache <<\_ACEOF | |
4779 | # This file is a shell script that caches the results of configure | |
4780 | # tests run on this system so they can be shared between configure | |
4781 | # scripts and configure runs, see configure's option --config-cache. | |
4782 | # It is not useful on other systems. If it contains results you don't | |
4783 | # want to keep, you may remove or edit it. | |
4784 | # | |
4785 | # config.status only pays attention to the cache file if you give it | |
4786 | # the --recheck option to rerun configure. | |
4787 | # | |
4788 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4789 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4790 | # following values. | |
4791 | ||
4792 | _ACEOF | |
4793 | ||
4794 | # The following way of writing the cache mishandles newlines in values, | |
4795 | # but we know of no workaround that is simple, portable, and efficient. | |
4796 | # So, we kill variables containing newlines. | |
4797 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4798 | # and sets the high bit in the cache file unless we assign to the vars. | |
4799 | ( | |
4800 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4801 | eval ac_val=\$$ac_var | |
4802 | case $ac_val in #( | |
4803 | *${as_nl}*) | |
4804 | case $ac_var in #( | |
4805 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4806 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4807 | esac | |
4808 | case $ac_var in #( | |
4809 | _ | IFS | as_nl) ;; #( | |
4810 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4811 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4812 | esac ;; | |
4813 | esac | |
4814 | done | |
4815 | ||
4816 | (set) 2>&1 | | |
4817 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
4818 | *${as_nl}ac_space=\ *) | |
4819 | # `set' does not quote correctly, so add quotes: double-quote | |
4820 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4821 | sed -n \ | |
4822 | "s/'/'\\\\''/g; | |
4823 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4824 | ;; #( | |
4825 | *) | |
4826 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4827 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
4828 | ;; | |
4829 | esac | | |
4830 | sort | |
4831 | ) | | |
4832 | sed ' | |
4833 | /^ac_cv_env_/b end | |
4834 | t clear | |
4835 | :clear | |
4836 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4837 | t end | |
4838 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4839 | :end' >>confcache | |
4840 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4841 | if test -w "$cache_file"; then | |
6b668323 | 4842 | if test "x$cache_file" != "x/dev/null"; then |
94759fd3 IJ |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4844 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
6b668323 IJ |
4845 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
4846 | cat confcache >"$cache_file" | |
4847 | else | |
4848 | case $cache_file in #( | |
4849 | */* | ?:*) | |
4850 | mv -f confcache "$cache_file"$$ && | |
4851 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
4852 | *) | |
4853 | mv -f confcache "$cache_file" ;; | |
4854 | esac | |
4855 | fi | |
4856 | fi | |
94759fd3 IJ |
4857 | else |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
4859 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4860 | fi | |
4861 | fi | |
4862 | rm -f confcache | |
4863 | ||
4864 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4865 | # Let make expand exec_prefix. | |
4866 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4867 | ||
4868 | DEFS=-DHAVE_CONFIG_H | |
4869 | ||
4870 | ac_libobjs= | |
4871 | ac_ltlibobjs= | |
4872 | U= | |
4873 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4874 | # 1. Remove the extension, and $U if already installed. | |
4875 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
4876 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4877 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4878 | # will be set to the directory where LIBOBJS objects are built. | |
4879 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4880 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4881 | done | |
4882 | LIBOBJS=$ac_libobjs | |
4883 | ||
4884 | LTLIBOBJS=$ac_ltlibobjs | |
4885 | ||
4886 | ||
4887 | ||
4888 | ||
6b668323 | 4889 | : "${CONFIG_STATUS=./config.status}" |
94759fd3 IJ |
4890 | ac_write_fail=0 |
4891 | ac_clean_files_save=$ac_clean_files | |
4892 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4894 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4895 | as_write_fail=0 | |
4896 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4897 | #! $SHELL | |
4898 | # Generated by $as_me. | |
4899 | # Run this file to recreate the current configuration. | |
4900 | # Compiler output produced by configure, useful for debugging | |
4901 | # configure, is in config.log if it exists. | |
4902 | ||
4903 | debug=false | |
4904 | ac_cs_recheck=false | |
4905 | ac_cs_silent=false | |
4906 | ||
4907 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4908 | export SHELL | |
4909 | _ASEOF | |
4910 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4911 | ## -------------------- ## | |
4912 | ## M4sh Initialization. ## | |
4913 | ## -------------------- ## | |
4914 | ||
4915 | # Be more Bourne compatible | |
4916 | DUALCASE=1; export DUALCASE # for MKS sh | |
4917 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4918 | emulate sh | |
4919 | NULLCMD=: | |
4920 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
4921 | # is contrary to our usage. Disable this feature. | |
4922 | alias -g '${1+"$@"}'='"$@"' | |
4923 | setopt NO_GLOB_SUBST | |
4924 | else | |
4925 | case `(set -o) 2>/dev/null` in #( | |
4926 | *posix*) : | |
4927 | set -o posix ;; #( | |
4928 | *) : | |
4929 | ;; | |
4930 | esac | |
4931 | fi | |
4932 | ||
4933 | ||
4934 | as_nl=' | |
4935 | ' | |
4936 | export as_nl | |
4937 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4938 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4939 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4940 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4941 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4942 | # but without wasting forks for bash or zsh. | |
4943 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4944 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4945 | as_echo='print -r --' | |
4946 | as_echo_n='print -rn --' | |
4947 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4948 | as_echo='printf %s\n' | |
4949 | as_echo_n='printf %s' | |
4950 | else | |
4951 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4952 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4953 | as_echo_n='/usr/ucb/echo -n' | |
4954 | else | |
4955 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4956 | as_echo_n_body='eval | |
4957 | arg=$1; | |
4958 | case $arg in #( | |
4959 | *"$as_nl"*) | |
4960 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4961 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4962 | esac; | |
4963 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4964 | ' | |
4965 | export as_echo_n_body | |
4966 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4967 | fi | |
4968 | export as_echo_body | |
4969 | as_echo='sh -c $as_echo_body as_echo' | |
4970 | fi | |
4971 | ||
4972 | # The user is always right. | |
4973 | if test "${PATH_SEPARATOR+set}" != set; then | |
4974 | PATH_SEPARATOR=: | |
4975 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4976 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4977 | PATH_SEPARATOR=';' | |
4978 | } | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | # IFS | |
4983 | # We need space, tab and new line, in precisely that order. Quoting is | |
4984 | # there to prevent editors from complaining about space-tab. | |
4985 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4986 | # splitting by setting IFS to empty value.) | |
4987 | IFS=" "" $as_nl" | |
4988 | ||
4989 | # Find who we are. Look in the path if we contain no directory separator. | |
6b668323 | 4990 | as_myself= |
94759fd3 IJ |
4991 | case $0 in #(( |
4992 | *[\\/]* ) as_myself=$0 ;; | |
4993 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4994 | for as_dir in $PATH | |
4995 | do | |
4996 | IFS=$as_save_IFS | |
4997 | test -z "$as_dir" && as_dir=. | |
4998 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4999 | done | |
5000 | IFS=$as_save_IFS | |
5001 | ||
5002 | ;; | |
5003 | esac | |
5004 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5005 | # in which case we are not to be found in the path. | |
5006 | if test "x$as_myself" = x; then | |
5007 | as_myself=$0 | |
5008 | fi | |
5009 | if test ! -f "$as_myself"; then | |
5010 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5011 | exit 1 | |
5012 | fi | |
5013 | ||
5014 | # Unset variables that we do not need and which cause bugs (e.g. in | |
5015 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
5016 | # suppresses any "Segmentation fault" message there. '((' could | |
5017 | # trigger a bug in pdksh 5.2.14. | |
5018 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
5019 | do eval test x\${$as_var+set} = xset \ | |
5020 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5021 | done | |
5022 | PS1='$ ' | |
5023 | PS2='> ' | |
5024 | PS4='+ ' | |
5025 | ||
5026 | # NLS nuisances. | |
5027 | LC_ALL=C | |
5028 | export LC_ALL | |
5029 | LANGUAGE=C | |
5030 | export LANGUAGE | |
5031 | ||
5032 | # CDPATH. | |
5033 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5034 | ||
5035 | ||
5036 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
5037 | # ---------------------------------------- | |
5038 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
5039 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5040 | # script with STATUS, using 1 if that was 0. | |
5041 | as_fn_error () | |
5042 | { | |
5043 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
5044 | if test "$4"; then | |
5045 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
5046 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5047 | fi | |
5048 | $as_echo "$as_me: error: $2" >&2 | |
5049 | as_fn_exit $as_status | |
5050 | } # as_fn_error | |
5051 | ||
5052 | ||
5053 | # as_fn_set_status STATUS | |
5054 | # ----------------------- | |
5055 | # Set $? to STATUS, without forking. | |
5056 | as_fn_set_status () | |
5057 | { | |
5058 | return $1 | |
5059 | } # as_fn_set_status | |
5060 | ||
5061 | # as_fn_exit STATUS | |
5062 | # ----------------- | |
5063 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
5064 | as_fn_exit () | |
5065 | { | |
5066 | set +e | |
5067 | as_fn_set_status $1 | |
5068 | exit $1 | |
5069 | } # as_fn_exit | |
5070 | ||
5071 | # as_fn_unset VAR | |
5072 | # --------------- | |
5073 | # Portably unset VAR. | |
5074 | as_fn_unset () | |
5075 | { | |
5076 | { eval $1=; unset $1;} | |
5077 | } | |
5078 | as_unset=as_fn_unset | |
5079 | # as_fn_append VAR VALUE | |
5080 | # ---------------------- | |
5081 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
5082 | # advantage of any shell optimizations that allow amortized linear growth over | |
5083 | # repeated appends, instead of the typical quadratic growth present in naive | |
5084 | # implementations. | |
5085 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
5086 | eval 'as_fn_append () | |
5087 | { | |
5088 | eval $1+=\$2 | |
5089 | }' | |
5090 | else | |
5091 | as_fn_append () | |
5092 | { | |
5093 | eval $1=\$$1\$2 | |
5094 | } | |
5095 | fi # as_fn_append | |
5096 | ||
5097 | # as_fn_arith ARG... | |
5098 | # ------------------ | |
5099 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
5100 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
5101 | # must be portable across $(()) and expr. | |
5102 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
5103 | eval 'as_fn_arith () | |
5104 | { | |
5105 | as_val=$(( $* )) | |
5106 | }' | |
5107 | else | |
5108 | as_fn_arith () | |
5109 | { | |
5110 | as_val=`expr "$@" || test $? -eq 1` | |
5111 | } | |
5112 | fi # as_fn_arith | |
5113 | ||
5114 | ||
5115 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
5116 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5117 | as_expr=expr | |
5118 | else | |
5119 | as_expr=false | |
5120 | fi | |
5121 | ||
5122 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
5123 | as_basename=basename | |
5124 | else | |
5125 | as_basename=false | |
5126 | fi | |
5127 | ||
5128 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
5129 | as_dirname=dirname | |
5130 | else | |
5131 | as_dirname=false | |
5132 | fi | |
5133 | ||
5134 | as_me=`$as_basename -- "$0" || | |
5135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5136 | X"$0" : 'X\(//\)$' \| \ | |
5137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
5138 | $as_echo X/"$0" | | |
5139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
5140 | s//\1/ | |
5141 | q | |
5142 | } | |
5143 | /^X\/\(\/\/\)$/{ | |
5144 | s//\1/ | |
5145 | q | |
5146 | } | |
5147 | /^X\/\(\/\).*/{ | |
5148 | s//\1/ | |
5149 | q | |
5150 | } | |
5151 | s/.*/./; q'` | |
5152 | ||
5153 | # Avoid depending upon Character Ranges. | |
5154 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5155 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5156 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5157 | as_cr_digits='0123456789' | |
5158 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5159 | ||
5160 | ECHO_C= ECHO_N= ECHO_T= | |
5161 | case `echo -n x` in #((((( | |
5162 | -n*) | |
5163 | case `echo 'xy\c'` in | |
5164 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
5165 | xy) ECHO_C='\c';; | |
5166 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
5167 | ECHO_T=' ';; | |
5168 | esac;; | |
5169 | *) | |
5170 | ECHO_N='-n';; | |
5171 | esac | |
5172 | ||
5173 | rm -f conf$$ conf$$.exe conf$$.file | |
5174 | if test -d conf$$.dir; then | |
5175 | rm -f conf$$.dir/conf$$.file | |
5176 | else | |
5177 | rm -f conf$$.dir | |
5178 | mkdir conf$$.dir 2>/dev/null | |
5179 | fi | |
5180 | if (echo >conf$$.file) 2>/dev/null; then | |
5181 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5182 | as_ln_s='ln -s' | |
5183 | # ... but there are two gotchas: | |
5184 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
5185 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6b668323 | 5186 | # In both cases, we have to default to `cp -pR'. |
94759fd3 | 5187 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6b668323 | 5188 | as_ln_s='cp -pR' |
94759fd3 IJ |
5189 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5190 | as_ln_s=ln | |
5191 | else | |
6b668323 | 5192 | as_ln_s='cp -pR' |
94759fd3 IJ |
5193 | fi |
5194 | else | |
6b668323 | 5195 | as_ln_s='cp -pR' |
94759fd3 IJ |
5196 | fi |
5197 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
5198 | rmdir conf$$.dir 2>/dev/null | |
5199 | ||
5200 | ||
5201 | # as_fn_mkdir_p | |
5202 | # ------------- | |
5203 | # Create "$as_dir" as a directory, including parents if necessary. | |
5204 | as_fn_mkdir_p () | |
5205 | { | |
5206 | ||
5207 | case $as_dir in #( | |
5208 | -*) as_dir=./$as_dir;; | |
5209 | esac | |
5210 | test -d "$as_dir" || eval $as_mkdir_p || { | |
5211 | as_dirs= | |
5212 | while :; do | |
5213 | case $as_dir in #( | |
5214 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
5215 | *) as_qdir=$as_dir;; | |
5216 | esac | |
5217 | as_dirs="'$as_qdir' $as_dirs" | |
5218 | as_dir=`$as_dirname -- "$as_dir" || | |
5219 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5220 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5221 | X"$as_dir" : 'X\(//\)$' \| \ | |
5222 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
5223 | $as_echo X"$as_dir" | | |
5224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5225 | s//\1/ | |
5226 | q | |
5227 | } | |
5228 | /^X\(\/\/\)[^/].*/{ | |
5229 | s//\1/ | |
5230 | q | |
5231 | } | |
5232 | /^X\(\/\/\)$/{ | |
5233 | s//\1/ | |
5234 | q | |
5235 | } | |
5236 | /^X\(\/\).*/{ | |
5237 | s//\1/ | |
5238 | q | |
5239 | } | |
5240 | s/.*/./; q'` | |
5241 | test -d "$as_dir" && break | |
5242 | done | |
5243 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5244 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
5245 | ||
5246 | ||
5247 | } # as_fn_mkdir_p | |
5248 | if mkdir -p . 2>/dev/null; then | |
5249 | as_mkdir_p='mkdir -p "$as_dir"' | |
5250 | else | |
5251 | test -d ./-p && rmdir ./-p | |
5252 | as_mkdir_p=false | |
5253 | fi | |
5254 | ||
6b668323 IJ |
5255 | |
5256 | # as_fn_executable_p FILE | |
5257 | # ----------------------- | |
5258 | # Test if FILE is an executable regular file. | |
5259 | as_fn_executable_p () | |
5260 | { | |
5261 | test -f "$1" && test -x "$1" | |
5262 | } # as_fn_executable_p | |
5263 | as_test_x='test -x' | |
5264 | as_executable_p=as_fn_executable_p | |
94759fd3 IJ |
5265 | |
5266 | # Sed expression to map a string onto a valid CPP name. | |
5267 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5268 | ||
5269 | # Sed expression to map a string onto a valid variable name. | |
5270 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5271 | ||
5272 | ||
5273 | exec 6>&1 | |
5274 | ## ----------------------------------- ## | |
5275 | ## Main body of $CONFIG_STATUS script. ## | |
5276 | ## ----------------------------------- ## | |
5277 | _ASEOF | |
5278 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
5279 | ||
5280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5281 | # Save the log message, to keep $0 and so on meaningful, and to | |
5282 | # report actual input values of CONFIG_FILES etc. instead of their | |
5283 | # values after options handling. | |
5284 | ac_log=" | |
00152558 | 5285 | This file was extended by secnet $as_me 0.1.18+, which was |
6b668323 | 5286 | generated by GNU Autoconf 2.69. Invocation command line was |
94759fd3 IJ |
5287 | |
5288 | CONFIG_FILES = $CONFIG_FILES | |
5289 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5290 | CONFIG_LINKS = $CONFIG_LINKS | |
5291 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5292 | $ $0 $@ | |
5293 | ||
5294 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
5295 | " | |
5296 | ||
5297 | _ACEOF | |
5298 | ||
5299 | case $ac_config_files in *" | |
5300 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
5301 | esac | |
5302 | ||
5303 | case $ac_config_headers in *" | |
5304 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
5305 | esac | |
5306 | ||
5307 | ||
5308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5309 | # Files that config.status was made for. | |
5310 | config_files="$ac_config_files" | |
5311 | config_headers="$ac_config_headers" | |
5312 | config_commands="$ac_config_commands" | |
5313 | ||
5314 | _ACEOF | |
5315 | ||
5316 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5317 | ac_cs_usage="\ | |
5318 | \`$as_me' instantiates files and other configuration actions | |
5319 | from templates according to the current configuration. Unless the files | |
5320 | and actions are specified as TAGs, all are instantiated by default. | |
5321 | ||
5322 | Usage: $0 [OPTION]... [TAG]... | |
5323 | ||
5324 | -h, --help print this help, then exit | |
5325 | -V, --version print version number and configuration settings, then exit | |
5326 | --config print configuration, then exit | |
5327 | -q, --quiet, --silent | |
5328 | do not print progress messages | |
5329 | -d, --debug don't remove temporary files | |
5330 | --recheck update $as_me by reconfiguring in the same conditions | |
5331 | --file=FILE[:TEMPLATE] | |
5332 | instantiate the configuration file FILE | |
5333 | --header=FILE[:TEMPLATE] | |
5334 | instantiate the configuration header FILE | |
5335 | ||
5336 | Configuration files: | |
5337 | $config_files | |
5338 | ||
5339 | Configuration headers: | |
5340 | $config_headers | |
5341 | ||
5342 | Configuration commands: | |
5343 | $config_commands | |
5344 | ||
5345 | Report bugs to <secnet@chiark.greenend.org.uk>." | |
5346 | ||
5347 | _ACEOF | |
5348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5349 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
5350 | ac_cs_version="\\ | |
00152558 | 5351 | secnet config.status 0.1.18+ |
6b668323 | 5352 | configured by $0, generated by GNU Autoconf 2.69, |
94759fd3 IJ |
5353 | with options \\"\$ac_cs_config\\" |
5354 | ||
6b668323 | 5355 | Copyright (C) 2012 Free Software Foundation, Inc. |
94759fd3 IJ |
5356 | This config.status script is free software; the Free Software Foundation |
5357 | gives unlimited permission to copy, distribute and modify it." | |
5358 | ||
5359 | ac_pwd='$ac_pwd' | |
5360 | srcdir='$srcdir' | |
5361 | INSTALL='$INSTALL' | |
5362 | test -n "\$AWK" || AWK=awk | |
5363 | _ACEOF | |
5364 | ||
5365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5366 | # The default lists apply if the user does not specify any file. | |
5367 | ac_need_defaults=: | |
5368 | while test $# != 0 | |
5369 | do | |
5370 | case $1 in | |
5371 | --*=?*) | |
5372 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
5373 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
5374 | ac_shift=: | |
5375 | ;; | |
5376 | --*=) | |
5377 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
5378 | ac_optarg= | |
5379 | ac_shift=: | |
5380 | ;; | |
5381 | *) | |
5382 | ac_option=$1 | |
5383 | ac_optarg=$2 | |
5384 | ac_shift=shift | |
5385 | ;; | |
5386 | esac | |
5387 | ||
5388 | case $ac_option in | |
5389 | # Handling of the options. | |
5390 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5391 | ac_cs_recheck=: ;; | |
5392 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
5393 | $as_echo "$ac_cs_version"; exit ;; | |
5394 | --config | --confi | --conf | --con | --co | --c ) | |
5395 | $as_echo "$ac_cs_config"; exit ;; | |
5396 | --debug | --debu | --deb | --de | --d | -d ) | |
5397 | debug=: ;; | |
5398 | --file | --fil | --fi | --f ) | |
5399 | $ac_shift | |
5400 | case $ac_optarg in | |
5401 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5402 | '') as_fn_error $? "missing file argument" ;; | |
5403 | esac | |
5404 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5405 | ac_need_defaults=false;; | |
5406 | --header | --heade | --head | --hea ) | |
5407 | $ac_shift | |
5408 | case $ac_optarg in | |
5409 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5410 | esac | |
5411 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
5412 | ac_need_defaults=false;; | |
5413 | --he | --h) | |
5414 | # Conflict between --help and --header | |
5415 | as_fn_error $? "ambiguous option: \`$1' | |
5416 | Try \`$0 --help' for more information.";; | |
5417 | --help | --hel | -h ) | |
5418 | $as_echo "$ac_cs_usage"; exit ;; | |
5419 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5420 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5421 | ac_cs_silent=: ;; | |
5422 | ||
5423 | # This is an error. | |
5424 | -*) as_fn_error $? "unrecognized option: \`$1' | |
5425 | Try \`$0 --help' for more information." ;; | |
5426 | ||
5427 | *) as_fn_append ac_config_targets " $1" | |
5428 | ac_need_defaults=false ;; | |
5429 | ||
5430 | esac | |
5431 | shift | |
5432 | done | |
5433 | ||
5434 | ac_configure_extra_args= | |
5435 | ||
5436 | if $ac_cs_silent; then | |
5437 | exec 6>/dev/null | |
5438 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5439 | fi | |
5440 | ||
5441 | _ACEOF | |
5442 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5443 | if \$ac_cs_recheck; then | |
6b668323 | 5444 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
94759fd3 IJ |
5445 | shift |
5446 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5447 | CONFIG_SHELL='$SHELL' | |
5448 | export CONFIG_SHELL | |
5449 | exec "\$@" | |
5450 | fi | |
5451 | ||
5452 | _ACEOF | |
5453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5454 | exec 5>>config.log | |
5455 | { | |
5456 | echo | |
5457 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5458 | ## Running $as_me. ## | |
5459 | _ASBOX | |
5460 | $as_echo "$ac_log" | |
5461 | } >&5 | |
5462 | ||
5463 | _ACEOF | |
5464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5465 | _ACEOF | |
5466 | ||
5467 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5468 | ||
5469 | # Handling of arguments. | |
5470 | for ac_config_target in $ac_config_targets | |
5471 | do | |
5472 | case $ac_config_target in | |
5473 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
5474 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5475 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
5476 | ||
6b668323 | 5477 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
94759fd3 IJ |
5478 | esac |
5479 | done | |
5480 | ||
5481 | ||
5482 | # If the user did not use the arguments to specify the items to instantiate, | |
5483 | # then the envvar interface is used. Set only those that are not. | |
5484 | # We use the long form for the default assignment because of an extremely | |
5485 | # bizarre bug on SunOS 4.1.3. | |
5486 | if $ac_need_defaults; then | |
5487 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5488 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
5489 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
5490 | fi | |
5491 | ||
5492 | # Have a temporary directory for convenience. Make it in the build tree | |
5493 | # simply because there is no reason against having it here, and in addition, | |
5494 | # creating and moving files from /tmp can sometimes cause problems. | |
5495 | # Hook for its removal unless debugging. | |
5496 | # Note that there is a small window in which the directory will not be cleaned: | |
5497 | # after its creation but before its name has been assigned to `$tmp'. | |
5498 | $debug || | |
5499 | { | |
6b668323 | 5500 | tmp= ac_tmp= |
94759fd3 | 5501 | trap 'exit_status=$? |
6b668323 IJ |
5502 | : "${ac_tmp:=$tmp}" |
5503 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
94759fd3 IJ |
5504 | ' 0 |
5505 | trap 'as_fn_exit 1' 1 2 13 15 | |
5506 | } | |
5507 | # Create a (secure) tmp directory for tmp files. | |
5508 | ||
5509 | { | |
5510 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
6b668323 | 5511 | test -d "$tmp" |
94759fd3 IJ |
5512 | } || |
5513 | { | |
5514 | tmp=./conf$$-$RANDOM | |
5515 | (umask 077 && mkdir "$tmp") | |
5516 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
6b668323 | 5517 | ac_tmp=$tmp |
94759fd3 IJ |
5518 | |
5519 | # Set up the scripts for CONFIG_FILES section. | |
5520 | # No need to generate them if there are no CONFIG_FILES. | |
5521 | # This happens for instance with `./config.status config.h'. | |
5522 | if test -n "$CONFIG_FILES"; then | |
5523 | ||
5524 | ||
5525 | ac_cr=`echo X | tr X '\015'` | |
5526 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
5527 | # But we know of no other shell where ac_cr would be empty at this | |
5528 | # point, so we can use a bashism as a fallback. | |
5529 | if test "x$ac_cr" = x; then | |
5530 | eval ac_cr=\$\'\\r\' | |
5531 | fi | |
5532 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
5533 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5534 | ac_cs_awk_cr='\\r' | |
5535 | else | |
5536 | ac_cs_awk_cr=$ac_cr | |
5537 | fi | |
5538 | ||
6b668323 | 5539 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
94759fd3 IJ |
5540 | _ACEOF |
5541 | ||
5542 | ||
5543 | { | |
5544 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
5545 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
5546 | echo "_ACEOF" | |
5547 | } >conf$$subs.sh || | |
5548 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5549 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5550 | ac_delim='%!_!# ' | |
5551 | for ac_last_try in false false false false false :; do | |
5552 | . ./conf$$subs.sh || | |
5553 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5554 | ||
5555 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
5556 | if test $ac_delim_n = $ac_delim_num; then | |
5557 | break | |
5558 | elif $ac_last_try; then | |
5559 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5560 | else | |
5561 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5562 | fi | |
5563 | done | |
5564 | rm -f conf$$subs.sh | |
5565 | ||
5566 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6b668323 | 5567 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
94759fd3 IJ |
5568 | _ACEOF |
5569 | sed -n ' | |
5570 | h | |
5571 | s/^/S["/; s/!.*/"]=/ | |
5572 | p | |
5573 | g | |
5574 | s/^[^!]*!// | |
5575 | :repl | |
5576 | t repl | |
5577 | s/'"$ac_delim"'$// | |
5578 | t delim | |
5579 | :nl | |
5580 | h | |
5581 | s/\(.\{148\}\)..*/\1/ | |
5582 | t more1 | |
5583 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
5584 | p | |
5585 | n | |
5586 | b repl | |
5587 | :more1 | |
5588 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5589 | p | |
5590 | g | |
5591 | s/.\{148\}// | |
5592 | t nl | |
5593 | :delim | |
5594 | h | |
5595 | s/\(.\{148\}\)..*/\1/ | |
5596 | t more2 | |
5597 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
5598 | p | |
5599 | b | |
5600 | :more2 | |
5601 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5602 | p | |
5603 | g | |
5604 | s/.\{148\}// | |
5605 | t delim | |
5606 | ' <conf$$subs.awk | sed ' | |
5607 | /^[^""]/{ | |
5608 | N | |
5609 | s/\n// | |
5610 | } | |
5611 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
5612 | rm -f conf$$subs.awk | |
5613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5614 | _ACAWK | |
6b668323 | 5615 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
94759fd3 IJ |
5616 | for (key in S) S_is_set[key] = 1 |
5617 | FS = "\a" | |
5618 | ||
5619 | } | |
5620 | { | |
5621 | line = $ 0 | |
5622 | nfields = split(line, field, "@") | |
5623 | substed = 0 | |
5624 | len = length(field[1]) | |
5625 | for (i = 2; i < nfields; i++) { | |
5626 | key = field[i] | |
5627 | keylen = length(key) | |
5628 | if (S_is_set[key]) { | |
5629 | value = S[key] | |
5630 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
5631 | len += length(value) + length(field[++i]) | |
5632 | substed = 1 | |
5633 | } else | |
5634 | len += 1 + keylen | |
5635 | } | |
5636 | ||
5637 | print line | |
5638 | } | |
5639 | ||
5640 | _ACAWK | |
5641 | _ACEOF | |
5642 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5643 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
5644 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
5645 | else | |
5646 | cat | |
6b668323 | 5647 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
94759fd3 IJ |
5648 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
5649 | _ACEOF | |
5650 | ||
5651 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
5652 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5653 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5654 | # (actually we leave an empty line to preserve line numbers). | |
5655 | if test "x$srcdir" = x.; then | |
5656 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
5657 | h | |
5658 | s/// | |
5659 | s/^/:/ | |
5660 | s/[ ]*$/:/ | |
5661 | s/:\$(srcdir):/:/g | |
5662 | s/:\${srcdir}:/:/g | |
5663 | s/:@srcdir@:/:/g | |
5664 | s/^:*// | |
5665 | s/:*$// | |
5666 | x | |
5667 | s/\(=[ ]*\).*/\1/ | |
5668 | G | |
5669 | s/\n// | |
5670 | s/^[^=]*=[ ]*$// | |
5671 | }' | |
5672 | fi | |
5673 | ||
5674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5675 | fi # test -n "$CONFIG_FILES" | |
5676 | ||
5677 | # Set up the scripts for CONFIG_HEADERS section. | |
5678 | # No need to generate them if there are no CONFIG_HEADERS. | |
5679 | # This happens for instance with `./config.status Makefile'. | |
5680 | if test -n "$CONFIG_HEADERS"; then | |
6b668323 | 5681 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
94759fd3 IJ |
5682 | BEGIN { |
5683 | _ACEOF | |
5684 | ||
5685 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
5686 | # here-document in config.status, that substitutes the proper values into | |
5687 | # config.h.in to produce config.h. | |
5688 | ||
5689 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
5690 | # handling of long lines. | |
5691 | ac_delim='%!_!# ' | |
5692 | for ac_last_try in false false :; do | |
6b668323 IJ |
5693 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
5694 | if test -z "$ac_tt"; then | |
94759fd3 IJ |
5695 | break |
5696 | elif $ac_last_try; then | |
5697 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
5698 | else | |
5699 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5700 | fi | |
5701 | done | |
5702 | ||
5703 | # For the awk script, D is an array of macro values keyed by name, | |
5704 | # likewise P contains macro parameters if any. Preserve backslash | |
5705 | # newline sequences. | |
5706 | ||
5707 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
5708 | sed -n ' | |
5709 | s/.\{148\}/&'"$ac_delim"'/g | |
5710 | t rset | |
5711 | :rset | |
5712 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
5713 | t def | |
5714 | d | |
5715 | :def | |
5716 | s/\\$// | |
5717 | t bsnl | |
5718 | s/["\\]/\\&/g | |
5719 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5720 | D["\1"]=" \3"/p | |
5721 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
5722 | d | |
5723 | :bsnl | |
5724 | s/["\\]/\\&/g | |
5725 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5726 | D["\1"]=" \3\\\\\\n"\\/p | |
5727 | t cont | |
5728 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
5729 | t cont | |
5730 | d | |
5731 | :cont | |
5732 | n | |
5733 | s/.\{148\}/&'"$ac_delim"'/g | |
5734 | t clear | |
5735 | :clear | |
5736 | s/\\$// | |
5737 | t bsnlc | |
5738 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
5739 | d | |
5740 | :bsnlc | |
5741 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
5742 | b cont | |
5743 | ' <confdefs.h | sed ' | |
5744 | s/'"$ac_delim"'/"\\\ | |
5745 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
5746 | ||
5747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5748 | for (key in D) D_is_set[key] = 1 | |
5749 | FS = "\a" | |
5750 | } | |
5751 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
5752 | line = \$ 0 | |
5753 | split(line, arg, " ") | |
5754 | if (arg[1] == "#") { | |
5755 | defundef = arg[2] | |
5756 | mac1 = arg[3] | |
5757 | } else { | |
5758 | defundef = substr(arg[1], 2) | |
5759 | mac1 = arg[2] | |
5760 | } | |
5761 | split(mac1, mac2, "(") #) | |
5762 | macro = mac2[1] | |
5763 | prefix = substr(line, 1, index(line, defundef) - 1) | |
5764 | if (D_is_set[macro]) { | |
5765 | # Preserve the white space surrounding the "#". | |
5766 | print prefix "define", macro P[macro] D[macro] | |
5767 | next | |
5768 | } else { | |
5769 | # Replace #undef with comments. This is necessary, for example, | |
5770 | # in the case of _POSIX_SOURCE, which is predefined and required | |
5771 | # on some systems where configure will not decide to define it. | |
5772 | if (defundef == "undef") { | |
5773 | print "/*", prefix defundef, macro, "*/" | |
5774 | next | |
5775 | } | |
5776 | } | |
5777 | } | |
5778 | { print } | |
5779 | _ACAWK | |
5780 | _ACEOF | |
5781 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5782 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
5783 | fi # test -n "$CONFIG_HEADERS" | |
5784 | ||
5785 | ||
5786 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
5787 | shift | |
5788 | for ac_tag | |
5789 | do | |
5790 | case $ac_tag in | |
5791 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5792 | esac | |
5793 | case $ac_mode$ac_tag in | |
5794 | :[FHL]*:*);; | |
6b668323 | 5795 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
94759fd3 IJ |
5796 | :[FH]-) ac_tag=-:-;; |
5797 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5798 | esac | |
5799 | ac_save_IFS=$IFS | |
5800 | IFS=: | |
5801 | set x $ac_tag | |
5802 | IFS=$ac_save_IFS | |
5803 | shift | |
5804 | ac_file=$1 | |
5805 | shift | |
5806 | ||
5807 | case $ac_mode in | |
5808 | :L) ac_source=$1;; | |
5809 | :[FH]) | |
5810 | ac_file_inputs= | |
5811 | for ac_f | |
5812 | do | |
5813 | case $ac_f in | |
6b668323 | 5814 | -) ac_f="$ac_tmp/stdin";; |
94759fd3 IJ |
5815 | *) # Look for the file first in the build tree, then in the source tree |
5816 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5817 | # because $ac_f cannot contain `:'. | |
5818 | test -f "$ac_f" || | |
5819 | case $ac_f in | |
5820 | [\\/$]*) false;; | |
5821 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5822 | esac || | |
6b668323 | 5823 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
94759fd3 IJ |
5824 | esac |
5825 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5826 | as_fn_append ac_file_inputs " '$ac_f'" | |
5827 | done | |
5828 | ||
5829 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5830 | # use $as_me), people would be surprised to read: | |
5831 | # /* config.h. Generated by config.status. */ | |
5832 | configure_input='Generated from '` | |
5833 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5834 | `' by configure.' | |
5835 | if test x"$ac_file" != x-; then | |
5836 | configure_input="$ac_file. $configure_input" | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5838 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5839 | fi | |
5840 | # Neutralize special characters interpreted by sed in replacement strings. | |
5841 | case $configure_input in #( | |
5842 | *\&* | *\|* | *\\* ) | |
5843 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5844 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5845 | *) ac_sed_conf_input=$configure_input;; | |
5846 | esac | |
5847 | ||
5848 | case $ac_tag in | |
6b668323 IJ |
5849 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5850 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
94759fd3 IJ |
5851 | esac |
5852 | ;; | |
5853 | esac | |
5854 | ||
5855 | ac_dir=`$as_dirname -- "$ac_file" || | |
5856 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5857 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5858 | X"$ac_file" : 'X\(//\)$' \| \ | |
5859 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
5860 | $as_echo X"$ac_file" | | |
5861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5862 | s//\1/ | |
5863 | q | |
5864 | } | |
5865 | /^X\(\/\/\)[^/].*/{ | |
5866 | s//\1/ | |
5867 | q | |
5868 | } | |
5869 | /^X\(\/\/\)$/{ | |
5870 | s//\1/ | |
5871 | q | |
5872 | } | |
5873 | /^X\(\/\).*/{ | |
5874 | s//\1/ | |
5875 | q | |
5876 | } | |
5877 | s/.*/./; q'` | |
5878 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5879 | ac_builddir=. | |
5880 | ||
5881 | case "$ac_dir" in | |
5882 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5883 | *) | |
5884 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5885 | # A ".." for each directory in $ac_dir_suffix. | |
5886 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5887 | case $ac_top_builddir_sub in | |
5888 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5889 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5890 | esac ;; | |
5891 | esac | |
5892 | ac_abs_top_builddir=$ac_pwd | |
5893 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5894 | # for backward compatibility: | |
5895 | ac_top_builddir=$ac_top_build_prefix | |
5896 | ||
5897 | case $srcdir in | |
5898 | .) # We are building in place. | |
5899 | ac_srcdir=. | |
5900 | ac_top_srcdir=$ac_top_builddir_sub | |
5901 | ac_abs_top_srcdir=$ac_pwd ;; | |
5902 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5903 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5904 | ac_top_srcdir=$srcdir | |
5905 | ac_abs_top_srcdir=$srcdir ;; | |
5906 | *) # Relative name. | |
5907 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5908 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5909 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5910 | esac | |
5911 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
5912 | ||
5913 | ||
5914 | case $ac_mode in | |
5915 | :F) | |
5916 | # | |
5917 | # CONFIG_FILE | |
5918 | # | |
5919 | ||
5920 | case $INSTALL in | |
5921 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5922 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
5923 | esac | |
5924 | _ACEOF | |
5925 | ||
5926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5927 | # If the template does not know about datarootdir, expand it. | |
5928 | # FIXME: This hack should be removed a few years after 2.60. | |
5929 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5930 | ac_sed_dataroot=' | |
5931 | /datarootdir/ { | |
5932 | p | |
5933 | q | |
5934 | } | |
5935 | /@datadir@/p | |
5936 | /@docdir@/p | |
5937 | /@infodir@/p | |
5938 | /@localedir@/p | |
5939 | /@mandir@/p' | |
5940 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5941 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5942 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5944 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5945 | _ACEOF | |
5946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5947 | ac_datarootdir_hack=' | |
5948 | s&@datadir@&$datadir&g | |
5949 | s&@docdir@&$docdir&g | |
5950 | s&@infodir@&$infodir&g | |
5951 | s&@localedir@&$localedir&g | |
5952 | s&@mandir@&$mandir&g | |
5953 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5954 | esac | |
5955 | _ACEOF | |
5956 | ||
5957 | # Neutralize VPATH when `$srcdir' = `.'. | |
5958 | # Shell code in configure.ac might set extrasub. | |
5959 | # FIXME: do we really want to maintain this feature? | |
5960 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5961 | ac_sed_extra="$ac_vpsub | |
5962 | $extrasub | |
5963 | _ACEOF | |
5964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5965 | :t | |
5966 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5967 | s|@configure_input@|$ac_sed_conf_input|;t t | |
5968 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5969 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5970 | s&@srcdir@&$ac_srcdir&;t t | |
5971 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5972 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5973 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5974 | s&@builddir@&$ac_builddir&;t t | |
5975 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5976 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5977 | s&@INSTALL@&$ac_INSTALL&;t t | |
5978 | $ac_datarootdir_hack | |
5979 | " | |
6b668323 IJ |
5980 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
5981 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
94759fd3 IJ |
5982 | |
5983 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
6b668323 IJ |
5984 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
5985 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
5986 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
94759fd3 IJ |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5988 | which seems to be undefined. Please make sure it is defined" >&5 | |
5989 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5990 | which seems to be undefined. Please make sure it is defined" >&2;} | |
5991 | ||
6b668323 | 5992 | rm -f "$ac_tmp/stdin" |
94759fd3 | 5993 | case $ac_file in |
6b668323 IJ |
5994 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
5995 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
94759fd3 IJ |
5996 | esac \ |
5997 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5998 | ;; | |
5999 | :H) | |
6000 | # | |
6001 | # CONFIG_HEADER | |
6002 | # | |
6003 | if test x"$ac_file" != x-; then | |
6004 | { | |
6005 | $as_echo "/* $configure_input */" \ | |
6b668323 IJ |
6006 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
6007 | } >"$ac_tmp/config.h" \ | |
94759fd3 | 6008 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6b668323 | 6009 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
94759fd3 IJ |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6011 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6012 | else | |
6013 | rm -f "$ac_file" | |
6b668323 | 6014 | mv "$ac_tmp/config.h" "$ac_file" \ |
94759fd3 IJ |
6015 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6016 | fi | |
6017 | else | |
6018 | $as_echo "/* $configure_input */" \ | |
6b668323 | 6019 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
94759fd3 IJ |
6020 | || as_fn_error $? "could not create -" "$LINENO" 5 |
6021 | fi | |
6022 | ;; | |
6023 | ||
6024 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
6025 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
6026 | ;; | |
6027 | esac | |
6028 | ||
6029 | ||
6030 | case $ac_file$ac_mode in | |
6031 | "default":C) echo timestamp >stamp-h ;; | |
6032 | ||
6033 | esac | |
6034 | done # for ac_tag | |
6035 | ||
6036 | ||
6037 | as_fn_exit 0 | |
6038 | _ACEOF | |
6039 | ac_clean_files=$ac_clean_files_save | |
6040 | ||
6041 | test $ac_write_fail = 0 || | |
6042 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
6043 | ||
6044 | ||
6045 | # configure is writing to config.log, and then calls config.status. | |
6046 | # config.status does its own redirection, appending to config.log. | |
6047 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
6048 | # by configure, so config.status won't be able to write to it; its | |
6049 | # output is simply discarded. So we exec the FD to /dev/null, | |
6050 | # effectively closing config.log, so it can be properly (re)opened and | |
6051 | # appended to by config.status. When coming back to configure, we | |
6052 | # need to make the FD available again. | |
6053 | if test "$no_create" != yes; then | |
6054 | ac_cs_success=: | |
6055 | ac_config_status_args= | |
6056 | test "$silent" = yes && | |
6057 | ac_config_status_args="$ac_config_status_args --quiet" | |
6058 | exec 5>/dev/null | |
6059 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6060 | exec 5>>config.log | |
6061 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6062 | # would make configure fail if this is the last instruction. | |
6063 | $ac_cs_success || as_fn_exit 1 | |
6064 | fi | |
6065 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
6067 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6068 | fi | |
6069 | ||
6070 | ||
6071 | ||
6072 | ||
6073 |