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