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