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