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