1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ipv6calc 3.2.0.
4#
5# Report bugs to <ipv6calc@deepspace6.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: ipv6calc@deepspace6.net about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='ipv6calc'
582PACKAGE_TARNAME='ipv6calc'
583PACKAGE_VERSION='3.2.0'
584PACKAGE_STRING='ipv6calc 3.2.0'
585PACKAGE_BUGREPORT='ipv6calc@deepspace6.net'
586PACKAGE_URL='http://www.deepspace6.net/projects/ipv6calc.html'
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LD_LIBRARY_PATH_BASIC
626LD_LIBRARY_PATH
627LDFLAGS_EXTRA_STATIC
628LDFLAGS_EXTRA_MOD_IPV6CALC
629LDFLAGS_EXTRA
630CFLAGS_EXTRA
631HTTPD_VERSION_MAJOR_MINOR
632HTTPD_SYSCONFDIR
633HTTPD_LIBEXECDIR
634APXS
635ENABLE_MOD_IPV6CALC
636DYNLOAD_LIB
637IP2LOCATION_DYN_LIB
638IP2LOCATION_DB
639IP2LOCATION_LIB_L2
640IP2LOCATION_LIB_L1
641IP2LOCATION_LIB
642IP2LOCATION_INCLUDE_L2
643IP2LOCATION_INCLUDE_L1
644IP2LOCATION_INCLUDE
645DBIP2_DB
646MMDB_DYN_LIB
647MMDB_LIB_L2
648MMDB_LIB_L1
649MMDB_LIB
650MMDB_INCLUDE_L1
651MMDB_INCLUDE_L2
652MMDB_INCLUDE_VERSION
653MMDB_INCLUDE
654EXTERNAL_DB
655IPV6CALC_LIB
656SHARED_LIBRARY
657ENABLE_BUNDLED_MD5
658MD5_INCLUDE
659ENABLE_BUNDLED_GETOPT
660GETOPT_INCLUDE
661LIBOBJS
662EGREP
663GREP
664CPP
665SET_MAKE
666RANLIB
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
674AWK
675COPYRIGHT_YEAR
676target_alias
677host_alias
678build_alias
679LIBS
680ECHO_T
681ECHO_N
682ECHO_C
683DEFS
684mandir
685localedir
686libdir
687psdir
688pdfdir
689dvidir
690htmldir
691infodir
692docdir
693oldincludedir
694includedir
695runstatedir
696localstatedir
697sharedstatedir
698sysconfdir
699datadir
700datarootdir
701libexecdir
702sbindir
703bindir
704program_transform_name
705prefix
706exec_prefix
707PACKAGE_URL
708PACKAGE_BUGREPORT
709PACKAGE_STRING
710PACKAGE_VERSION
711PACKAGE_TARNAME
712PACKAGE_NAME
713PATH_SEPARATOR
714SHELL'
715ac_subst_files=''
716ac_user_opts='
717enable_option_checking
718enable_m32
719enable_compiler_warning_to_error
720enable_bundled_getopt
721enable_bundled_md5
722enable_shared
723enable_dynamic_load
724enable_db_ieee
725enable_db_ipv4
726enable_db_ipv6
727enable_db_as_registry
728enable_db_cc_registry
729enable_builtin
730enable_external
731with_external_db
732enable_mmdb
733with_mmdb_dynamic
734with_mmdb_headers
735with_mmdb_lib
736with_mmdb_dyn_lib
737enable_geoip2
738enable_dbip2
739enable_dbip
740with_dbip_db
741enable_ip2location
742with_ip2location_dynamic
743with_ip2location_headers
744with_ip2location_headers_fallback
745with_ip2location_lib
746with_ip2location_static
747with_ip2location_db
748with_ip2location_dyn_lib
749enable_geoip
750with_geoip_dynamic
751with_geoip_headers
752with_geoip_headers_fallback
753with_geoip_lib
754with_geoip_static
755with_geoip_dyn_lib
756with_geoip_ipv6_compat
757with_geoip_db
758enable_mod_ipv6calc
759with_apxs
760'
761      ac_precious_vars='build_alias
762host_alias
763target_alias
764CC
765CFLAGS
766LDFLAGS
767LIBS
768CPPFLAGS
769CPP'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808runstatedir='${localstatedir}/run'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825  # If the previous option needs an argument, assign it.
826  if test -n "$ac_prev"; then
827    eval $ac_prev=\$ac_option
828    ac_prev=
829    continue
830  fi
831
832  case $ac_option in
833  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834  *=)   ac_optarg= ;;
835  *)    ac_optarg=yes ;;
836  esac
837
838  # Accept the important Cygnus configure options, so we can diagnose typos.
839
840  case $ac_dashdash$ac_option in
841  --)
842    ac_dashdash=yes ;;
843
844  -bindir | --bindir | --bindi | --bind | --bin | --bi)
845    ac_prev=bindir ;;
846  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847    bindir=$ac_optarg ;;
848
849  -build | --build | --buil | --bui | --bu)
850    ac_prev=build_alias ;;
851  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852    build_alias=$ac_optarg ;;
853
854  -cache-file | --cache-file | --cache-fil | --cache-fi \
855  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856    ac_prev=cache_file ;;
857  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859    cache_file=$ac_optarg ;;
860
861  --config-cache | -C)
862    cache_file=config.cache ;;
863
864  -datadir | --datadir | --datadi | --datad)
865    ac_prev=datadir ;;
866  -datadir=* | --datadir=* | --datadi=* | --datad=*)
867    datadir=$ac_optarg ;;
868
869  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870  | --dataroo | --dataro | --datar)
871    ac_prev=datarootdir ;;
872  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874    datarootdir=$ac_optarg ;;
875
876  -disable-* | --disable-*)
877    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878    # Reject names that are not valid shell variable names.
879    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880      as_fn_error $? "invalid feature name: $ac_useropt"
881    ac_useropt_orig=$ac_useropt
882    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883    case $ac_user_opts in
884      *"
885"enable_$ac_useropt"
886"*) ;;
887      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888	 ac_unrecognized_sep=', ';;
889    esac
890    eval enable_$ac_useropt=no ;;
891
892  -docdir | --docdir | --docdi | --doc | --do)
893    ac_prev=docdir ;;
894  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895    docdir=$ac_optarg ;;
896
897  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898    ac_prev=dvidir ;;
899  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900    dvidir=$ac_optarg ;;
901
902  -enable-* | --enable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=\$ac_optarg ;;
917
918  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920  | --exec | --exe | --ex)
921    ac_prev=exec_prefix ;;
922  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924  | --exec=* | --exe=* | --ex=*)
925    exec_prefix=$ac_optarg ;;
926
927  -gas | --gas | --ga | --g)
928    # Obsolete; use --with-gas.
929    with_gas=yes ;;
930
931  -help | --help | --hel | --he | -h)
932    ac_init_help=long ;;
933  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934    ac_init_help=recursive ;;
935  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936    ac_init_help=short ;;
937
938  -host | --host | --hos | --ho)
939    ac_prev=host_alias ;;
940  -host=* | --host=* | --hos=* | --ho=*)
941    host_alias=$ac_optarg ;;
942
943  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944    ac_prev=htmldir ;;
945  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946  | --ht=*)
947    htmldir=$ac_optarg ;;
948
949  -includedir | --includedir | --includedi | --included | --include \
950  | --includ | --inclu | --incl | --inc)
951    ac_prev=includedir ;;
952  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953  | --includ=* | --inclu=* | --incl=* | --inc=*)
954    includedir=$ac_optarg ;;
955
956  -infodir | --infodir | --infodi | --infod | --info | --inf)
957    ac_prev=infodir ;;
958  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959    infodir=$ac_optarg ;;
960
961  -libdir | --libdir | --libdi | --libd)
962    ac_prev=libdir ;;
963  -libdir=* | --libdir=* | --libdi=* | --libd=*)
964    libdir=$ac_optarg ;;
965
966  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967  | --libexe | --libex | --libe)
968    ac_prev=libexecdir ;;
969  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970  | --libexe=* | --libex=* | --libe=*)
971    libexecdir=$ac_optarg ;;
972
973  -localedir | --localedir | --localedi | --localed | --locale)
974    ac_prev=localedir ;;
975  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976    localedir=$ac_optarg ;;
977
978  -localstatedir | --localstatedir | --localstatedi | --localstated \
979  | --localstate | --localstat | --localsta | --localst | --locals)
980    ac_prev=localstatedir ;;
981  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983    localstatedir=$ac_optarg ;;
984
985  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986    ac_prev=mandir ;;
987  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988    mandir=$ac_optarg ;;
989
990  -nfp | --nfp | --nf)
991    # Obsolete; use --without-fp.
992    with_fp=no ;;
993
994  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995  | --no-cr | --no-c | -n)
996    no_create=yes ;;
997
998  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000    no_recursion=yes ;;
1001
1002  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004  | --oldin | --oldi | --old | --ol | --o)
1005    ac_prev=oldincludedir ;;
1006  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009    oldincludedir=$ac_optarg ;;
1010
1011  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012    ac_prev=prefix ;;
1013  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014    prefix=$ac_optarg ;;
1015
1016  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017  | --program-pre | --program-pr | --program-p)
1018    ac_prev=program_prefix ;;
1019  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021    program_prefix=$ac_optarg ;;
1022
1023  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024  | --program-suf | --program-su | --program-s)
1025    ac_prev=program_suffix ;;
1026  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028    program_suffix=$ac_optarg ;;
1029
1030  -program-transform-name | --program-transform-name \
1031  | --program-transform-nam | --program-transform-na \
1032  | --program-transform-n | --program-transform- \
1033  | --program-transform | --program-transfor \
1034  | --program-transfo | --program-transf \
1035  | --program-trans | --program-tran \
1036  | --progr-tra | --program-tr | --program-t)
1037    ac_prev=program_transform_name ;;
1038  -program-transform-name=* | --program-transform-name=* \
1039  | --program-transform-nam=* | --program-transform-na=* \
1040  | --program-transform-n=* | --program-transform-=* \
1041  | --program-transform=* | --program-transfor=* \
1042  | --program-transfo=* | --program-transf=* \
1043  | --program-trans=* | --program-tran=* \
1044  | --progr-tra=* | --program-tr=* | --program-t=*)
1045    program_transform_name=$ac_optarg ;;
1046
1047  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048    ac_prev=pdfdir ;;
1049  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050    pdfdir=$ac_optarg ;;
1051
1052  -psdir | --psdir | --psdi | --psd | --ps)
1053    ac_prev=psdir ;;
1054  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055    psdir=$ac_optarg ;;
1056
1057  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058  | -silent | --silent | --silen | --sile | --sil)
1059    silent=yes ;;
1060
1061  -runstatedir | --runstatedir | --runstatedi | --runstated \
1062  | --runstate | --runstat | --runsta | --runst | --runs \
1063  | --run | --ru | --r)
1064    ac_prev=runstatedir ;;
1065  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1066  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1067  | --run=* | --ru=* | --r=*)
1068    runstatedir=$ac_optarg ;;
1069
1070  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071    ac_prev=sbindir ;;
1072  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073  | --sbi=* | --sb=*)
1074    sbindir=$ac_optarg ;;
1075
1076  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078  | --sharedst | --shareds | --shared | --share | --shar \
1079  | --sha | --sh)
1080    ac_prev=sharedstatedir ;;
1081  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084  | --sha=* | --sh=*)
1085    sharedstatedir=$ac_optarg ;;
1086
1087  -site | --site | --sit)
1088    ac_prev=site ;;
1089  -site=* | --site=* | --sit=*)
1090    site=$ac_optarg ;;
1091
1092  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093    ac_prev=srcdir ;;
1094  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095    srcdir=$ac_optarg ;;
1096
1097  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098  | --syscon | --sysco | --sysc | --sys | --sy)
1099    ac_prev=sysconfdir ;;
1100  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102    sysconfdir=$ac_optarg ;;
1103
1104  -target | --target | --targe | --targ | --tar | --ta | --t)
1105    ac_prev=target_alias ;;
1106  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107    target_alias=$ac_optarg ;;
1108
1109  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110    verbose=yes ;;
1111
1112  -version | --version | --versio | --versi | --vers | -V)
1113    ac_init_version=: ;;
1114
1115  -with-* | --with-*)
1116    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117    # Reject names that are not valid shell variable names.
1118    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119      as_fn_error $? "invalid package name: $ac_useropt"
1120    ac_useropt_orig=$ac_useropt
1121    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122    case $ac_user_opts in
1123      *"
1124"with_$ac_useropt"
1125"*) ;;
1126      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127	 ac_unrecognized_sep=', ';;
1128    esac
1129    eval with_$ac_useropt=\$ac_optarg ;;
1130
1131  -without-* | --without-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=no ;;
1146
1147  --x)
1148    # Obsolete; use --with-x.
1149    with_x=yes ;;
1150
1151  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152  | --x-incl | --x-inc | --x-in | --x-i)
1153    ac_prev=x_includes ;;
1154  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156    x_includes=$ac_optarg ;;
1157
1158  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160    ac_prev=x_libraries ;;
1161  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163    x_libraries=$ac_optarg ;;
1164
1165  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167    ;;
1168
1169  *=*)
1170    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171    # Reject names that are not valid shell variable names.
1172    case $ac_envvar in #(
1173      '' | [0-9]* | *[!_$as_cr_alnum]* )
1174      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175    esac
1176    eval $ac_envvar=\$ac_optarg
1177    export $ac_envvar ;;
1178
1179  *)
1180    # FIXME: should be removed in autoconf 3.0.
1181    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185    ;;
1186
1187  esac
1188done
1189
1190if test -n "$ac_prev"; then
1191  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192  as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196  case $enable_option_checking in
1197    no) ;;
1198    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200  esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205		datadir sysconfdir sharedstatedir localstatedir includedir \
1206		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207		libdir localedir mandir runstatedir
1208do
1209  eval ac_val=\$$ac_var
1210  # Remove trailing slashes.
1211  case $ac_val in
1212    */ )
1213      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214      eval $ac_var=\$ac_val;;
1215  esac
1216  # Be sure to have absolute directory names.
1217  case $ac_val in
1218    [\\/$]* | ?:[\\/]* )  continue;;
1219    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220  esac
1221  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233  if test "x$build_alias" = x; then
1234    cross_compiling=maybe
1235  elif test "x$build_alias" != "x$host_alias"; then
1236    cross_compiling=yes
1237  fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249  as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251  as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256  ac_srcdir_defaulted=yes
1257  # Try the directory containing this script, then the parent directory.
1258  ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260	 X"$as_myself" : 'X\(//\)[^/]' \| \
1261	 X"$as_myself" : 'X\(//\)$' \| \
1262	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)[^/].*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)$/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\).*/{
1277	    s//\1/
1278	    q
1279	  }
1280	  s/.*/./; q'`
1281  srcdir=$ac_confdir
1282  if test ! -r "$srcdir/$ac_unique_file"; then
1283    srcdir=..
1284  fi
1285else
1286  ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295	pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298  srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_env_${ac_var}_value=\$${ac_var}
1309  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317  # Omit some internal or obsolete options to make the list less imposing.
1318  # This message is too long to be a string in the A/UX 3.1 sh.
1319  cat <<_ACEOF
1320\`configure' configures ipv6calc 3.2.0 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330  -h, --help              display this help and exit
1331      --help=short        display options specific to this package
1332      --help=recursive    display the short help of all the included packages
1333  -V, --version           display version information and exit
1334  -q, --quiet, --silent   do not print \`checking ...' messages
1335      --cache-file=FILE   cache test results in FILE [disabled]
1336  -C, --config-cache      alias for \`--cache-file=config.cache'
1337  -n, --no-create         do not create output files
1338      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341  --prefix=PREFIX         install architecture-independent files in PREFIX
1342                          [$ac_default_prefix]
1343  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                          [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354  --bindir=DIR            user executables [EPREFIX/bin]
1355  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356  --libexecdir=DIR        program executables [EPREFIX/libexec]
1357  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1361  --libdir=DIR            object code libraries [EPREFIX/lib]
1362  --includedir=DIR        C header files [PREFIX/include]
1363  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366  --infodir=DIR           info documentation [DATAROOTDIR/info]
1367  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368  --mandir=DIR            man documentation [DATAROOTDIR/man]
1369  --docdir=DIR            documentation root [DATAROOTDIR/doc/ipv6calc]
1370  --htmldir=DIR           html documentation [DOCDIR]
1371  --dvidir=DIR            dvi documentation [DOCDIR]
1372  --pdfdir=DIR            pdf documentation [DOCDIR]
1373  --psdir=DIR             ps documentation [DOCDIR]
1374_ACEOF
1375
1376  cat <<\_ACEOF
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381  case $ac_init_help in
1382     short | recursive ) echo "Configuration of ipv6calc 3.2.0:";;
1383   esac
1384  cat <<\_ACEOF
1385
1386Optional Features:
1387  --disable-option-checking  ignore unrecognized --enable/--with options
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-m32            Enable 32-bit compilation
1391  --disable-compiler-warning-to-error
1392                          Disable extra CFLAGS for mapping warnings to errors
1393                          during compilation
1394  --enable-bundled-getopt Enable bundled getopt library (default:
1395                          autoselected)
1396  --enable-bundled-md5    Enable bundled MD5 library (default: autoselected)
1397  --enable-shared         Enable shared library build (default: disabled)
1398
1399  --disable-dynamic-load  Disable dynamic load of libraries (default: enabled)
1400
1401  --disable-db-ieee       Disable built-in IEEE database (default: enabled)
1402  --disable-db-ipv4       Disable built-in IPv4-to-Registry database (default:
1403                          enabled)
1404  --disable-db-ipv6       Disable built-in IPv6-to-Registry database (default:
1405                          enabled)
1406  --disable-db-as-registry
1407                          Disable built-in AS-to-Registry database (default:
1408                          enabled)
1409  --disable-db-cc-registry
1410                          Disable built-in CountryCode-to-Registry database
1411                          (default: enabled)
1412  --disable-builtin       Disable all built-in databases (default: enabled)
1413  --enable-external       Enable external db support (default: disabled)
1414  --enable-mmdb           Enable MaxMindDB support (GeoIP/db-ip.com) (default:
1415                          disabled)
1416  --disable-geoip2        Disable MaxMindDB support for GeoIP (default:
1417                          enabled)
1418  --disable-dbip2         Disable MaxMindDB support for db-ip.com (default:
1419                          enabled)
1420  --enable-dbip           Compatibility Dummy (no longer supported)
1421  --enable-ip2location    Enable IP2Location support (default: disabled)
1422  --enable-geoip          Compatibility Dummy (no longer supported)
1423  --enable-mod_ipv6calc   Enable build of mod_ipv6calc for Apache (default:
1424                          disabled)
1425
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-external-db=DIR  Use specified external database directory, default:
1431                          /usr/share/ipv6calc/db
1432  --with-mmdb-dynamic     Enable use of dynamic loading of MaxMindDB library
1433                          (default=no)
1434  --with-mmdb-headers=DIR MaxMindDB include files location
1435  --with-mmdb-lib=DIR     MaxMindDB library location
1436  --with-mmdb-dyn-lib=NAME
1437                          Use specified MaxMindDB dynamic library, default:
1438                          libmaxminddb.so.0
1439  --with-dbip-db=DIR      Use specified db-ip.com database directory, default:
1440                          /usr/share/DBIP
1441  --with-ip2location-dynamic
1442                          Enable use of dynamic loading of IP2Location library
1443                          (default=no)
1444  --with-ip2location-headers=DIR
1445                          IP2Location include files location
1446  --with-ip2location-headers-fallback
1447                          Compatibility Dummy (no longer supported)
1448  --with-ip2location-lib=FILE
1449                          IP2Location library location
1450  --with-ip2location-static
1451                          Explicitly link IP2Location statically (default=no)
1452  --with-ip2location-db=DIR
1453                          Use specified IP2Location database directory,
1454                          default: /usr/share/IP2Location
1455  --with-ip2location-dyn-lib=NAME
1456                          Use specified IP2Location dynamic library, default:
1457                          libIP2Location.so
1458  --with-geoip-dynamic    Compatibility Dummy (no longer supported)
1459  --with-geoip-headers=DIR
1460                          Compatibility Dummy (no longer supported)
1461  --with-geoip-headers-fallback
1462                          Compatibility Dummy (no longer supported)
1463  --with-geoip-lib=DIR    Compatibility Dummy (no longer supported)
1464  --with-geoip-static     Compatibility Dummy (no longer supported)
1465  --with-geoip-dyn-lib=NAME
1466                          Compatibility Dummy (no longer supported)
1467  --with-geoip-ipv6-compat
1468                          Compatibility Dummy (no longer supported)
1469  --with-geoip-db=DIR     Use specified GeoIP database directory, default:
1470                          /usr/share/GeoIP
1471  --with-apxs=NAME        name of the apxs executable (apxs)
1472
1473Some influential environment variables:
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477              nonstandard directory <lib dir>
1478  LIBS        libraries to pass to the linker, e.g. -l<library>
1479  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480              you have headers in a nonstandard directory <include dir>
1481  CPP         C preprocessor
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <ipv6calc@deepspace6.net>.
1487ipv6calc home page: <http://www.deepspace6.net/projects/ipv6calc.html>.
1488_ACEOF
1489ac_status=$?
1490fi
1491
1492if test "$ac_init_help" = "recursive"; then
1493  # If there are subdirs, report their specific --help.
1494  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495    test -d "$ac_dir" ||
1496      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497      continue
1498    ac_builddir=.
1499
1500case "$ac_dir" in
1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502*)
1503  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504  # A ".." for each directory in $ac_dir_suffix.
1505  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506  case $ac_top_builddir_sub in
1507  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509  esac ;;
1510esac
1511ac_abs_top_builddir=$ac_pwd
1512ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513# for backward compatibility:
1514ac_top_builddir=$ac_top_build_prefix
1515
1516case $srcdir in
1517  .)  # We are building in place.
1518    ac_srcdir=.
1519    ac_top_srcdir=$ac_top_builddir_sub
1520    ac_abs_top_srcdir=$ac_pwd ;;
1521  [\\/]* | ?:[\\/]* )  # Absolute name.
1522    ac_srcdir=$srcdir$ac_dir_suffix;
1523    ac_top_srcdir=$srcdir
1524    ac_abs_top_srcdir=$srcdir ;;
1525  *) # Relative name.
1526    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527    ac_top_srcdir=$ac_top_build_prefix$srcdir
1528    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529esac
1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532    cd "$ac_dir" || { ac_status=$?; continue; }
1533    # Check for guested configure.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550ipv6calc configure 3.2.0
1551generated by GNU Autoconf 2.69
1552
1553Copyright (C) 2012 Free Software Foundation, Inc.
1554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_c_try_compile LINENO
1565# --------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_compile
1601
1602# ac_fn_c_try_cpp LINENO
1603# ----------------------
1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_cpp ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  if { { ac_try="$ac_cpp conftest.$ac_ext"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } > conftest.i && {
1624	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       }; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632    ac_retval=1
1633fi
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635  as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_cpp
1638
1639# ac_fn_c_try_run LINENO
1640# ----------------------
1641# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1642# that executables *can* be run.
1643ac_fn_c_try_run ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  if { { ac_try="$ac_link"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_link") 2>&5
1654  ac_status=$?
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1657  { { case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_try") 2>&5
1664  ac_status=$?
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; }; }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: program exited with status $ac_status" >&5
1670       $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673       ac_retval=$ac_status
1674fi
1675  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_run
1680
1681# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1682# -------------------------------------------
1683# Tests whether TYPE exists after having included INCLUDES, setting cache
1684# variable VAR accordingly.
1685ac_fn_c_check_type ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if eval \${$3+:} false; then :
1691  $as_echo_n "(cached) " >&6
1692else
1693  eval "$3=no"
1694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h.  */
1696$4
1697int
1698main ()
1699{
1700if (sizeof ($2))
1701	 return 0;
1702  ;
1703  return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710int
1711main ()
1712{
1713if (sizeof (($2)))
1714	    return 0;
1715  ;
1716  return 0;
1717}
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720
1721else
1722  eval "$3=yes"
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_type
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753  eval "$3=yes"
1754else
1755  eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_try_link LINENO
1767# -----------------------
1768# Try to link conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_link ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  rm -f conftest.$ac_objext conftest$ac_exeext
1773  if { { ac_try="$ac_link"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_link") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && {
1789	 test -z "$ac_c_werror_flag" ||
1790	 test ! -s conftest.err
1791       } && test -s conftest$ac_exeext && {
1792	 test "$cross_compiling" = yes ||
1793	 test -x conftest$ac_exeext
1794       }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800	ac_retval=1
1801fi
1802  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804  # interfere with the next link command; also delete a directory that is
1805  # left behind by Apple's compiler.  We do this before executing the actions.
1806  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_link
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if eval \${$3+:} false; then :
1821  $as_echo_n "(cached) " >&6
1822else
1823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h.  */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830    which can conflict with char $2 (); below.
1831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832    <limits.h> exists even on freestanding compilers.  */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843   Use char because int might match the return type of a GCC
1844   builtin and then its argument prototype would still apply.  */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850    to always fail with ENOSYS.  Some functions are actually named
1851    something starting with __ and the normal name is an alias.  */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865  eval "$3=yes"
1866else
1867  eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870    conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_func
1878
1879# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880# -------------------------------------------------------
1881# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882# the include files in INCLUDES and setting the cache variable VAR
1883# accordingly.
1884ac_fn_c_check_header_mongrel ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  if eval \${$3+:} false; then :
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896else
1897  # Is the header compilable?
1898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899$as_echo_n "checking $2 usability... " >&6; }
1900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902$4
1903#include <$2>
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  ac_header_compiler=yes
1907else
1908  ac_header_compiler=no
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912$as_echo "$ac_header_compiler" >&6; }
1913
1914# Is the header present?
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916$as_echo_n "checking $2 presence... " >&6; }
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919#include <$2>
1920_ACEOF
1921if ac_fn_c_try_cpp "$LINENO"; then :
1922  ac_header_preproc=yes
1923else
1924  ac_header_preproc=no
1925fi
1926rm -f conftest.err conftest.i conftest.$ac_ext
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928$as_echo "$ac_header_preproc" >&6; }
1929
1930# So?  What about this header?
1931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932  yes:no: )
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937    ;;
1938  no:yes:* )
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949( $as_echo "## -------------------------------------- ##
1950## Report this to ipv6calc@deepspace6.net ##
1951## -------------------------------------- ##"
1952     ) | sed "s/^/$as_me: WARNING:     /" >&2
1953    ;;
1954esac
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  eval "$3=\$ac_header_compiler"
1961fi
1962eval ac_res=\$$3
1963	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964$as_echo "$ac_res" >&6; }
1965fi
1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968} # ac_fn_c_check_header_mongrel
1969
1970# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1971# ---------------------------------------------
1972# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1973# accordingly.
1974ac_fn_c_check_decl ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  as_decl_name=`echo $2|sed 's/ *(.*//'`
1978  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1980$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1981if eval \${$3+:} false; then :
1982  $as_echo_n "(cached) " >&6
1983else
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990#ifndef $as_decl_name
1991#ifdef __cplusplus
1992  (void) $as_decl_use;
1993#else
1994  (void) $as_decl_name;
1995#endif
1996#endif
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  eval "$3=yes"
2004else
2005  eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_decl
2015cat >config.log <<_ACEOF
2016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
2019It was created by ipv6calc $as_me 3.2.0, which was
2020generated by GNU Autoconf 2.69.  Invocation command line was
2021
2022  $ $0 $@
2023
2024_ACEOF
2025exec 5>>config.log
2026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2040
2041/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2042/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2045/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2046/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2047/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056    $as_echo "PATH: $as_dir"
2057  done
2058IFS=$as_save_IFS
2059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
2080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083  for ac_arg
2084  do
2085    case $ac_arg in
2086    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088    | -silent | --silent | --silen | --sile | --sil)
2089      continue ;;
2090    *\'*)
2091      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092    esac
2093    case $ac_pass in
2094    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095    2)
2096      as_fn_append ac_configure_args1 " '$ac_arg'"
2097      if test $ac_must_keep_next = true; then
2098	ac_must_keep_next=false # Got value, back to normal.
2099      else
2100	case $ac_arg in
2101	  *=* | --config-cache | -C | -disable-* | --disable-* \
2102	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104	  | -with-* | --with-* | -without-* | --without-* | --x)
2105	    case "$ac_configure_args0 " in
2106	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107	    esac
2108	    ;;
2109	  -* ) ac_must_keep_next=true ;;
2110	esac
2111      fi
2112      as_fn_append ac_configure_args " '$ac_arg'"
2113      ;;
2114    esac
2115  done
2116done
2117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
2119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log.  We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
2123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125trap 'exit_status=$?
2126  # Save into config.log some information that might help in debugging.
2127  {
2128    echo
2129
2130    $as_echo "## ---------------- ##
2131## Cache variables. ##
2132## ---------------- ##"
2133    echo
2134    # The following way of writing the cache mishandles newlines in values,
2135(
2136  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137    eval ac_val=\$$ac_var
2138    case $ac_val in #(
2139    *${as_nl}*)
2140      case $ac_var in #(
2141      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143      esac
2144      case $ac_var in #(
2145      _ | IFS | as_nl) ;; #(
2146      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147      *) { eval $ac_var=; unset $ac_var;} ;;
2148      esac ;;
2149    esac
2150  done
2151  (set) 2>&1 |
2152    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153    *${as_nl}ac_space=\ *)
2154      sed -n \
2155	"s/'\''/'\''\\\\'\'''\''/g;
2156	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157      ;; #(
2158    *)
2159      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160      ;;
2161    esac |
2162    sort
2163)
2164    echo
2165
2166    $as_echo "## ----------------- ##
2167## Output variables. ##
2168## ----------------- ##"
2169    echo
2170    for ac_var in $ac_subst_vars
2171    do
2172      eval ac_val=\$$ac_var
2173      case $ac_val in
2174      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175      esac
2176      $as_echo "$ac_var='\''$ac_val'\''"
2177    done | sort
2178    echo
2179
2180    if test -n "$ac_subst_files"; then
2181      $as_echo "## ------------------- ##
2182## File substitutions. ##
2183## ------------------- ##"
2184      echo
2185      for ac_var in $ac_subst_files
2186      do
2187	eval ac_val=\$$ac_var
2188	case $ac_val in
2189	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190	esac
2191	$as_echo "$ac_var='\''$ac_val'\''"
2192      done | sort
2193      echo
2194    fi
2195
2196    if test -s confdefs.h; then
2197      $as_echo "## ----------- ##
2198## confdefs.h. ##
2199## ----------- ##"
2200      echo
2201      cat confdefs.h
2202      echo
2203    fi
2204    test "$ac_signal" != 0 &&
2205      $as_echo "$as_me: caught signal $ac_signal"
2206    $as_echo "$as_me: exit $exit_status"
2207  } >&5
2208  rm -f core *.core core.conftest.* &&
2209    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210    exit $exit_status
2211' 0
2212for ac_signal in 1 2 13 15; do
2213  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214done
2215ac_signal=0
2216
2217# confdefs.h avoids OS command line length limits that DEFS can exceed.
2218rm -f -r conftest* confdefs.h
2219
2220$as_echo "/* confdefs.h */" > confdefs.h
2221
2222# Predefined preprocessor variables.
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_NAME "$PACKAGE_NAME"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_VERSION "$PACKAGE_VERSION"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_STRING "$PACKAGE_STRING"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_URL "$PACKAGE_URL"
2246_ACEOF
2247
2248
2249# Let the site file select an alternate cache file if it wants to.
2250# Prefer an explicitly selected file to automatically selected ones.
2251ac_site_file1=NONE
2252ac_site_file2=NONE
2253if test -n "$CONFIG_SITE"; then
2254  # We do not want a PATH search for config.site.
2255  case $CONFIG_SITE in #((
2256    -*)  ac_site_file1=./$CONFIG_SITE;;
2257    */*) ac_site_file1=$CONFIG_SITE;;
2258    *)   ac_site_file1=./$CONFIG_SITE;;
2259  esac
2260elif test "x$prefix" != xNONE; then
2261  ac_site_file1=$prefix/share/config.site
2262  ac_site_file2=$prefix/etc/config.site
2263else
2264  ac_site_file1=$ac_default_prefix/share/config.site
2265  ac_site_file2=$ac_default_prefix/etc/config.site
2266fi
2267for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268do
2269  test "x$ac_site_file" = xNONE && continue
2270  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273    sed 's/^/| /' "$ac_site_file" >&5
2274    . "$ac_site_file" \
2275      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277as_fn_error $? "failed to load site script $ac_site_file
2278See \`config.log' for more details" "$LINENO" 5; }
2279  fi
2280done
2281
2282if test -r "$cache_file"; then
2283  # Some versions of bash will fail to source /dev/null (special files
2284  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2285  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287$as_echo "$as_me: loading cache $cache_file" >&6;}
2288    case $cache_file in
2289      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290      *)                      . "./$cache_file";;
2291    esac
2292  fi
2293else
2294  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295$as_echo "$as_me: creating cache $cache_file" >&6;}
2296  >$cache_file
2297fi
2298
2299# Check that the precious variables saved in the cache have kept the same
2300# value.
2301ac_cache_corrupted=false
2302for ac_var in $ac_precious_vars; do
2303  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2304  eval ac_new_set=\$ac_env_${ac_var}_set
2305  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2306  eval ac_new_val=\$ac_env_${ac_var}_value
2307  case $ac_old_set,$ac_new_set in
2308    set,)
2309      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2310$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2311      ac_cache_corrupted=: ;;
2312    ,set)
2313      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2314$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2315      ac_cache_corrupted=: ;;
2316    ,);;
2317    *)
2318      if test "x$ac_old_val" != "x$ac_new_val"; then
2319	# differences in whitespace do not lead to failure.
2320	ac_old_val_w=`echo x $ac_old_val`
2321	ac_new_val_w=`echo x $ac_new_val`
2322	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2323	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2324$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2325	  ac_cache_corrupted=:
2326	else
2327	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2328$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2329	  eval $ac_var=\$ac_old_val
2330	fi
2331	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2332$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2333	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2334$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2335      fi;;
2336  esac
2337  # Pass precious variables to config.status.
2338  if test "$ac_new_set" = set; then
2339    case $ac_new_val in
2340    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2341    *) ac_arg=$ac_var=$ac_new_val ;;
2342    esac
2343    case " $ac_configure_args " in
2344      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2345      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2346    esac
2347  fi
2348done
2349if $ac_cache_corrupted; then
2350  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2353$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2354  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2355fi
2356## -------------------- ##
2357## Main body of script. ##
2358## -------------------- ##
2359
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367
2368COPYRIGHT_YEAR=2021
2369
2370PACKAGE_VERSION_MAJOR=3
2371PACKAGE_VERSION_MINOR=2
2372PACKAGE_VERSION_BUGFIX=0
2373
2374API_VERSION_MAJOR=3
2375API_VERSION_MINOR=2
2376API_VERSION_BUGFIX=0
2377
2378
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define COPYRIGHT_YEAR "$COPYRIGHT_YEAR"
2383_ACEOF
2384
2385
2386PACKAGE_VERSION_NUMERIC=$(echo "$PACKAGE_VERSION_MAJOR $PACKAGE_VERSION_MINOR $PACKAGE_VERSION_BUGFIX" | awk '{ print ( $1 * 1000 + $2 ) * 1000 + $3 }')
2387PACKAGE_VERSION_STRING=$(echo "$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_BUGFIX")
2388
2389
2390cat >>confdefs.h <<_ACEOF
2391#define IPV6CALC_PACKAGE_VERSION_MAJOR $PACKAGE_VERSION_MAJOR
2392_ACEOF
2393
2394
2395cat >>confdefs.h <<_ACEOF
2396#define IPV6CALC_PACKAGE_VERSION_MINOR $PACKAGE_VERSION_MINOR
2397_ACEOF
2398
2399
2400cat >>confdefs.h <<_ACEOF
2401#define IPV6CALC_PACKAGE_VERSION_BUGFIX $PACKAGE_VERSION_BUGFIX
2402_ACEOF
2403
2404
2405cat >>confdefs.h <<_ACEOF
2406#define IPV6CALC_PACKAGE_VERSION_STRING "$PACKAGE_VERSION_STRING"
2407_ACEOF
2408
2409
2410cat >>confdefs.h <<_ACEOF
2411#define IPV6CALC_PACKAGE_VERSION_NUMERIC $PACKAGE_VERSION_NUMERIC
2412_ACEOF
2413
2414
2415API_VERSION_NUMERIC=$(echo "$API_VERSION_MAJOR $API_VERSION_MINOR $API_VERSION_BUGFIX" | awk '{ print ( $1 * 1000 + $2 ) * 1000 + $3 }')
2416API_VERSION_STRING=$(echo "$API_VERSION_MAJOR.$API_VERSION_MINOR.$API_VERSION_BUGFIX")
2417
2418
2419cat >>confdefs.h <<_ACEOF
2420#define IPV6CALC_API_VERSION_MAJOR $API_VERSION_MAJOR
2421_ACEOF
2422
2423
2424cat >>confdefs.h <<_ACEOF
2425#define IPV6CALC_API_VERSION_MINOR $API_VERSION_MINOR
2426_ACEOF
2427
2428
2429cat >>confdefs.h <<_ACEOF
2430#define IPV6CALC_API_VERSION_BUGFIX $API_VERSION_BUGFIX
2431_ACEOF
2432
2433
2434cat >>confdefs.h <<_ACEOF
2435#define IPV6CALC_API_VERSION_STRING "$API_VERSION_STRING"
2436_ACEOF
2437
2438
2439cat >>confdefs.h <<_ACEOF
2440#define IPV6CALC_API_VERSION_NUMERIC $API_VERSION_NUMERIC
2441_ACEOF
2442
2443
2444ac_config_headers="$ac_config_headers config.h"
2445
2446
2447for ac_prog in gawk mawk nawk awk
2448do
2449  # Extract the first word of "$ac_prog", so it can be a program name with args.
2450set dummy $ac_prog; ac_word=$2
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if ${ac_cv_prog_AWK+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  if test -n "$AWK"; then
2457  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    for ac_exec_ext in '' $ac_executable_extensions; do
2465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466    ac_cv_prog_AWK="$ac_prog"
2467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471  done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476AWK=$ac_cv_prog_AWK
2477if test -n "$AWK"; then
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2479$as_echo "$AWK" >&6; }
2480else
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482$as_echo "no" >&6; }
2483fi
2484
2485
2486  test -n "$AWK" && break
2487done
2488
2489ac_ext=c
2490ac_cpp='$CPP $CPPFLAGS'
2491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494if test -n "$ac_tool_prefix"; then
2495  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2496set dummy ${ac_tool_prefix}gcc; ac_word=$2
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498$as_echo_n "checking for $ac_word... " >&6; }
2499if ${ac_cv_prog_CC+:} false; then :
2500  $as_echo_n "(cached) " >&6
2501else
2502  if test -n "$CC"; then
2503  ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508  IFS=$as_save_IFS
2509  test -z "$as_dir" && as_dir=.
2510    for ac_exec_ext in '' $ac_executable_extensions; do
2511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514    break 2
2515  fi
2516done
2517  done
2518IFS=$as_save_IFS
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525$as_echo "$CC" >&6; }
2526else
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528$as_echo "no" >&6; }
2529fi
2530
2531
2532fi
2533if test -z "$ac_cv_prog_CC"; then
2534  ac_ct_CC=$CC
2535  # Extract the first word of "gcc", so it can be a program name with args.
2536set dummy gcc; ac_word=$2
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if ${ac_cv_prog_ac_ct_CC+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  if test -n "$ac_ct_CC"; then
2543  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548  IFS=$as_save_IFS
2549  test -z "$as_dir" && as_dir=.
2550    for ac_exec_ext in '' $ac_executable_extensions; do
2551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552    ac_cv_prog_ac_ct_CC="gcc"
2553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554    break 2
2555  fi
2556done
2557  done
2558IFS=$as_save_IFS
2559
2560fi
2561fi
2562ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563if test -n "$ac_ct_CC"; then
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2565$as_echo "$ac_ct_CC" >&6; }
2566else
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
2569fi
2570
2571  if test "x$ac_ct_CC" = x; then
2572    CC=""
2573  else
2574    case $cross_compiling:$ac_tool_warned in
2575yes:)
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2578ac_tool_warned=yes ;;
2579esac
2580    CC=$ac_ct_CC
2581  fi
2582else
2583  CC="$ac_cv_prog_CC"
2584fi
2585
2586if test -z "$CC"; then
2587          if test -n "$ac_tool_prefix"; then
2588    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}cc; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_CC+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$CC"; then
2596  ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605    ac_cv_prog_CC="${ac_tool_prefix}cc"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618$as_echo "$CC" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624
2625  fi
2626fi
2627if test -z "$CC"; then
2628  # Extract the first word of "cc", so it can be a program name with args.
2629set dummy cc; ac_word=$2
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if ${ac_cv_prog_CC+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  if test -n "$CC"; then
2636  ac_cv_prog_CC="$CC" # Let the user override the test.
2637else
2638  ac_prog_rejected=no
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644    for ac_exec_ext in '' $ac_executable_extensions; do
2645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2647       ac_prog_rejected=yes
2648       continue
2649     fi
2650    ac_cv_prog_CC="cc"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658if test $ac_prog_rejected = yes; then
2659  # We found a bogon in the path, so make sure we never use it.
2660  set dummy $ac_cv_prog_CC
2661  shift
2662  if test $# != 0; then
2663    # We chose a different compiler from the bogus one.
2664    # However, it has the same basename, so the bogon will be chosen
2665    # first if we set CC to just the basename; use the full file name.
2666    shift
2667    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2668  fi
2669fi
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675$as_echo "$CC" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682fi
2683if test -z "$CC"; then
2684  if test -n "$ac_tool_prefix"; then
2685  for ac_prog in cl.exe
2686  do
2687    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if ${ac_cv_prog_CC+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717$as_echo "$CC" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724    test -n "$CC" && break
2725  done
2726fi
2727if test -z "$CC"; then
2728  ac_ct_CC=$CC
2729  for ac_prog in cl.exe
2730do
2731  # Extract the first word of "$ac_prog", so it can be a program name with args.
2732set dummy $ac_prog; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if ${ac_cv_prog_ac_ct_CC+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  if test -n "$ac_ct_CC"; then
2739  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746    for ac_exec_ext in '' $ac_executable_extensions; do
2747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_ac_ct_CC="$ac_prog"
2749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753  done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759if test -n "$ac_ct_CC"; then
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2761$as_echo "$ac_ct_CC" >&6; }
2762else
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767
2768  test -n "$ac_ct_CC" && break
2769done
2770
2771  if test "x$ac_ct_CC" = x; then
2772    CC=""
2773  else
2774    case $cross_compiling:$ac_tool_warned in
2775yes:)
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778ac_tool_warned=yes ;;
2779esac
2780    CC=$ac_ct_CC
2781  fi
2782fi
2783
2784fi
2785
2786
2787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789as_fn_error $? "no acceptable C compiler found in \$PATH
2790See \`config.log' for more details" "$LINENO" 5; }
2791
2792# Provide some information about the compiler.
2793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2794set X $ac_compile
2795ac_compiler=$2
2796for ac_option in --version -v -V -qversion; do
2797  { { ac_try="$ac_compiler $ac_option >&5"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803$as_echo "$ac_try_echo"; } >&5
2804  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2805  ac_status=$?
2806  if test -s conftest.err; then
2807    sed '10a\
2808... rest of stderr output deleted ...
2809         10q' conftest.err >conftest.er1
2810    cat conftest.er1 >&5
2811  fi
2812  rm -f conftest.er1 conftest.err
2813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814  test $ac_status = 0; }
2815done
2816
2817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h.  */
2819
2820int
2821main ()
2822{
2823
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828ac_clean_files_save=$ac_clean_files
2829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2830# Try to create an executable without -o first, disregard a.out.
2831# It will help us diagnose broken compilers, and finding out an intuition
2832# of exeext.
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2834$as_echo_n "checking whether the C compiler works... " >&6; }
2835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2836
2837# The possible output files:
2838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2839
2840ac_rmfiles=
2841for ac_file in $ac_files
2842do
2843  case $ac_file in
2844    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2845    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846  esac
2847done
2848rm -f $ac_rmfiles
2849
2850if { { ac_try="$ac_link_default"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857  (eval "$ac_link_default") 2>&5
2858  ac_status=$?
2859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860  test $ac_status = 0; }; then :
2861  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2863# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2864# so that the user can short-circuit this test for compilers unknown to
2865# Autoconf.
2866for ac_file in $ac_files ''
2867do
2868  test -f "$ac_file" || continue
2869  case $ac_file in
2870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2871	;;
2872    [ab].out )
2873	# We found the default executable, but exeext='' is most
2874	# certainly right.
2875	break;;
2876    *.* )
2877	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2878	then :; else
2879	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880	fi
2881	# We set ac_cv_exeext here because the later test for it is not
2882	# safe: cross compilers may not add the suffix if given an `-o'
2883	# argument, so we may need to know it at that point already.
2884	# Even if this section looks crufty: it has the advantage of
2885	# actually working.
2886	break;;
2887    * )
2888	break;;
2889  esac
2890done
2891test "$ac_cv_exeext" = no && ac_cv_exeext=
2892
2893else
2894  ac_file=''
2895fi
2896if test -z "$ac_file"; then :
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899$as_echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2904as_fn_error 77 "C compiler cannot create executables
2905See \`config.log' for more details" "$LINENO" 5; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908$as_echo "yes" >&6; }
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2911$as_echo_n "checking for C compiler default output file name... " >&6; }
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2913$as_echo "$ac_file" >&6; }
2914ac_exeext=$ac_cv_exeext
2915
2916rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2917ac_clean_files=$ac_clean_files_save
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2919$as_echo_n "checking for suffix of executables... " >&6; }
2920if { { ac_try="$ac_link"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926$as_echo "$ac_try_echo"; } >&5
2927  (eval "$ac_link") 2>&5
2928  ac_status=$?
2929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930  test $ac_status = 0; }; then :
2931  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2933# work properly (i.e., refer to `conftest.exe'), while it won't with
2934# `rm'.
2935for ac_file in conftest.exe conftest conftest.*; do
2936  test -f "$ac_file" || continue
2937  case $ac_file in
2938    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2939    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940	  break;;
2941    * ) break;;
2942  esac
2943done
2944else
2945  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details" "$LINENO" 5; }
2949fi
2950rm -f conftest conftest$ac_cv_exeext
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2952$as_echo "$ac_cv_exeext" >&6; }
2953
2954rm -f conftest.$ac_ext
2955EXEEXT=$ac_cv_exeext
2956ac_exeext=$EXEEXT
2957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h.  */
2959#include <stdio.h>
2960int
2961main ()
2962{
2963FILE *f = fopen ("conftest.out", "w");
2964 return ferror (f) || fclose (f) != 0;
2965
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970ac_clean_files="$ac_clean_files conftest.out"
2971# Check that the compiler produces executables we can run.  If not, either
2972# the compiler is broken, or we cross compile.
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2974$as_echo_n "checking whether we are cross compiling... " >&6; }
2975if test "$cross_compiling" != yes; then
2976  { { ac_try="$ac_link"
2977case "(($ac_try" in
2978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979  *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983  (eval "$ac_link") 2>&5
2984  ac_status=$?
2985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986  test $ac_status = 0; }
2987  if { ac_try='./conftest$ac_cv_exeext'
2988  { { case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993$as_echo "$ac_try_echo"; } >&5
2994  (eval "$ac_try") 2>&5
2995  ac_status=$?
2996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997  test $ac_status = 0; }; }; then
2998    cross_compiling=no
2999  else
3000    if test "$cross_compiling" = maybe; then
3001	cross_compiling=yes
3002    else
3003	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005as_fn_error $? "cannot run C compiled programs.
3006If you meant to cross compile, use \`--host'.
3007See \`config.log' for more details" "$LINENO" 5; }
3008    fi
3009  fi
3010fi
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3012$as_echo "$cross_compiling" >&6; }
3013
3014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3015ac_clean_files=$ac_clean_files_save
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3017$as_echo_n "checking for suffix of object files... " >&6; }
3018if ${ac_cv_objext+:} false; then :
3019  $as_echo_n "(cached) " >&6
3020else
3021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h.  */
3023
3024int
3025main ()
3026{
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032rm -f conftest.o conftest.obj
3033if { { ac_try="$ac_compile"
3034case "(($ac_try" in
3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036  *) ac_try_echo=$ac_try;;
3037esac
3038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039$as_echo "$ac_try_echo"; } >&5
3040  (eval "$ac_compile") 2>&5
3041  ac_status=$?
3042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043  test $ac_status = 0; }; then :
3044  for ac_file in conftest.o conftest.obj conftest.*; do
3045  test -f "$ac_file" || continue;
3046  case $ac_file in
3047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3048    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049       break;;
3050  esac
3051done
3052else
3053  $as_echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058as_fn_error $? "cannot compute suffix of object files: cannot compile
3059See \`config.log' for more details" "$LINENO" 5; }
3060fi
3061rm -f conftest.$ac_cv_objext conftest.$ac_ext
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3064$as_echo "$ac_cv_objext" >&6; }
3065OBJEXT=$ac_cv_objext
3066ac_objext=$OBJEXT
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3068$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3069if ${ac_cv_c_compiler_gnu+:} false; then :
3070  $as_echo_n "(cached) " >&6
3071else
3072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078#ifndef __GNUC__
3079       choke me
3080#endif
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086if ac_fn_c_try_compile "$LINENO"; then :
3087  ac_compiler_gnu=yes
3088else
3089  ac_compiler_gnu=no
3090fi
3091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093
3094fi
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3096$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3097if test $ac_compiler_gnu = yes; then
3098  GCC=yes
3099else
3100  GCC=
3101fi
3102ac_test_CFLAGS=${CFLAGS+set}
3103ac_save_CFLAGS=$CFLAGS
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3105$as_echo_n "checking whether $CC accepts -g... " >&6; }
3106if ${ac_cv_prog_cc_g+:} false; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  ac_save_c_werror_flag=$ac_c_werror_flag
3110   ac_c_werror_flag=yes
3111   ac_cv_prog_cc_g=no
3112   CFLAGS="-g"
3113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124if ac_fn_c_try_compile "$LINENO"; then :
3125  ac_cv_prog_cc_g=yes
3126else
3127  CFLAGS=""
3128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129/* end confdefs.h.  */
3130
3131int
3132main ()
3133{
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139if ac_fn_c_try_compile "$LINENO"; then :
3140
3141else
3142  ac_c_werror_flag=$ac_save_c_werror_flag
3143	 CFLAGS="-g"
3144	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145/* end confdefs.h.  */
3146
3147int
3148main ()
3149{
3150
3151  ;
3152  return 0;
3153}
3154_ACEOF
3155if ac_fn_c_try_compile "$LINENO"; then :
3156  ac_cv_prog_cc_g=yes
3157fi
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161fi
3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163   ac_c_werror_flag=$ac_save_c_werror_flag
3164fi
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3166$as_echo "$ac_cv_prog_cc_g" >&6; }
3167if test "$ac_test_CFLAGS" = set; then
3168  CFLAGS=$ac_save_CFLAGS
3169elif test $ac_cv_prog_cc_g = yes; then
3170  if test "$GCC" = yes; then
3171    CFLAGS="-g -O2"
3172  else
3173    CFLAGS="-g"
3174  fi
3175else
3176  if test "$GCC" = yes; then
3177    CFLAGS="-O2"
3178  else
3179    CFLAGS=
3180  fi
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3183$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3184if ${ac_cv_prog_cc_c89+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  ac_cv_prog_cc_c89=no
3188ac_save_CC=$CC
3189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h.  */
3191#include <stdarg.h>
3192#include <stdio.h>
3193struct stat;
3194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3195struct buf { int x; };
3196FILE * (*rcsopen) (struct buf *, struct stat *, int);
3197static char *e (p, i)
3198     char **p;
3199     int i;
3200{
3201  return p[i];
3202}
3203static char *f (char * (*g) (char **, int), char **p, ...)
3204{
3205  char *s;
3206  va_list v;
3207  va_start (v,p);
3208  s = g (p, va_arg (v,int));
3209  va_end (v);
3210  return s;
3211}
3212
3213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3214   function prototypes and stuff, but not '\xHH' hex character constants.
3215   These don't provoke an error unfortunately, instead are silently treated
3216   as 'x'.  The following induces an error, until -std is added to get
3217   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3218   array size at least.  It's necessary to write '\x00'==0 to get something
3219   that's true only with -std.  */
3220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3221
3222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3223   inside strings and character constants.  */
3224#define FOO(x) 'x'
3225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3226
3227int test (int i, double x);
3228struct s1 {int (*f) (int a);};
3229struct s2 {int (*f) (double a);};
3230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231int argc;
3232char **argv;
3233int
3234main ()
3235{
3236return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3237  ;
3238  return 0;
3239}
3240_ACEOF
3241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3242	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243do
3244  CC="$ac_save_CC $ac_arg"
3245  if ac_fn_c_try_compile "$LINENO"; then :
3246  ac_cv_prog_cc_c89=$ac_arg
3247fi
3248rm -f core conftest.err conftest.$ac_objext
3249  test "x$ac_cv_prog_cc_c89" != "xno" && break
3250done
3251rm -f conftest.$ac_ext
3252CC=$ac_save_CC
3253
3254fi
3255# AC_CACHE_VAL
3256case "x$ac_cv_prog_cc_c89" in
3257  x)
3258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3259$as_echo "none needed" >&6; } ;;
3260  xno)
3261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3262$as_echo "unsupported" >&6; } ;;
3263  *)
3264    CC="$CC $ac_cv_prog_cc_c89"
3265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3267esac
3268if test "x$ac_cv_prog_cc_c89" != xno; then :
3269
3270fi
3271
3272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277
3278if test -n "$ac_tool_prefix"; then
3279  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3280set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if ${ac_cv_prog_RANLIB+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  if test -n "$RANLIB"; then
3287  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    for ac_exec_ext in '' $ac_executable_extensions; do
3295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306RANLIB=$ac_cv_prog_RANLIB
3307if test -n "$RANLIB"; then
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3309$as_echo "$RANLIB" >&6; }
3310else
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315
3316fi
3317if test -z "$ac_cv_prog_RANLIB"; then
3318  ac_ct_RANLIB=$RANLIB
3319  # Extract the first word of "ranlib", so it can be a program name with args.
3320set dummy ranlib; ac_word=$2
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  if test -n "$ac_ct_RANLIB"; then
3327  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_exec_ext in '' $ac_executable_extensions; do
3335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336    ac_cv_prog_ac_ct_RANLIB="ranlib"
3337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341  done
3342IFS=$as_save_IFS
3343
3344fi
3345fi
3346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3347if test -n "$ac_ct_RANLIB"; then
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3349$as_echo "$ac_ct_RANLIB" >&6; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355  if test "x$ac_ct_RANLIB" = x; then
3356    RANLIB=":"
3357  else
3358    case $cross_compiling:$ac_tool_warned in
3359yes:)
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362ac_tool_warned=yes ;;
3363esac
3364    RANLIB=$ac_ct_RANLIB
3365  fi
3366else
3367  RANLIB="$ac_cv_prog_RANLIB"
3368fi
3369
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3372set x ${MAKE-make}
3373ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3374if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  cat >conftest.make <<\_ACEOF
3378SHELL = /bin/sh
3379all:
3380	@echo '@@@%%%=$(MAKE)=@@@%%%'
3381_ACEOF
3382# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3383case `${MAKE-make} -f conftest.make 2>/dev/null` in
3384  *@@@%%%=?*=@@@%%%*)
3385    eval ac_cv_prog_make_${ac_make}_set=yes;;
3386  *)
3387    eval ac_cv_prog_make_${ac_make}_set=no;;
3388esac
3389rm -f conftest.make
3390fi
3391if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393$as_echo "yes" >&6; }
3394  SET_MAKE=
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398  SET_MAKE="MAKE=${MAKE-make}"
3399fi
3400
3401
3402
3403ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3409$as_echo_n "checking how to run the C preprocessor... " >&6; }
3410# On Suns, sometimes $CPP names a directory.
3411if test -n "$CPP" && test -d "$CPP"; then
3412  CPP=
3413fi
3414if test -z "$CPP"; then
3415  if ${ac_cv_prog_CPP+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418      # Double quotes because CPP needs to be expanded
3419    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3420    do
3421      ac_preproc_ok=false
3422for ac_c_preproc_warn_flag in '' yes
3423do
3424  # Use a header file that comes with gcc, so configuring glibc
3425  # with a fresh cross-compiler works.
3426  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427  # <limits.h> exists even on freestanding compilers.
3428  # On the NeXT, cc -E runs the code through the compiler's parser,
3429  # not just through cpp. "Syntax error" is here to catch this case.
3430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437		     Syntax error
3438_ACEOF
3439if ac_fn_c_try_cpp "$LINENO"; then :
3440
3441else
3442  # Broken: fails on valid input.
3443continue
3444fi
3445rm -f conftest.err conftest.i conftest.$ac_ext
3446
3447  # OK, works on sane cases.  Now check whether nonexistent headers
3448  # can be detected and how.
3449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451#include <ac_nonexistent.h>
3452_ACEOF
3453if ac_fn_c_try_cpp "$LINENO"; then :
3454  # Broken: success on invalid input.
3455continue
3456else
3457  # Passes both tests.
3458ac_preproc_ok=:
3459break
3460fi
3461rm -f conftest.err conftest.i conftest.$ac_ext
3462
3463done
3464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465rm -f conftest.i conftest.err conftest.$ac_ext
3466if $ac_preproc_ok; then :
3467  break
3468fi
3469
3470    done
3471    ac_cv_prog_CPP=$CPP
3472
3473fi
3474  CPP=$ac_cv_prog_CPP
3475else
3476  ac_cv_prog_CPP=$CPP
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3479$as_echo "$CPP" >&6; }
3480ac_preproc_ok=false
3481for ac_c_preproc_warn_flag in '' yes
3482do
3483  # Use a header file that comes with gcc, so configuring glibc
3484  # with a fresh cross-compiler works.
3485  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486  # <limits.h> exists even on freestanding compilers.
3487  # On the NeXT, cc -E runs the code through the compiler's parser,
3488  # not just through cpp. "Syntax error" is here to catch this case.
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491#ifdef __STDC__
3492# include <limits.h>
3493#else
3494# include <assert.h>
3495#endif
3496		     Syntax error
3497_ACEOF
3498if ac_fn_c_try_cpp "$LINENO"; then :
3499
3500else
3501  # Broken: fails on valid input.
3502continue
3503fi
3504rm -f conftest.err conftest.i conftest.$ac_ext
3505
3506  # OK, works on sane cases.  Now check whether nonexistent headers
3507  # can be detected and how.
3508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h.  */
3510#include <ac_nonexistent.h>
3511_ACEOF
3512if ac_fn_c_try_cpp "$LINENO"; then :
3513  # Broken: success on invalid input.
3514continue
3515else
3516  # Passes both tests.
3517ac_preproc_ok=:
3518break
3519fi
3520rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524rm -f conftest.i conftest.err conftest.$ac_ext
3525if $ac_preproc_ok; then :
3526
3527else
3528  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3531See \`config.log' for more details" "$LINENO" 5; }
3532fi
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3542$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3543if ${ac_cv_path_GREP+:} false; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  if test -z "$GREP"; then
3547  ac_path_GREP_found=false
3548  # Loop through the user's path and test for each of PROGNAME-LIST
3549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554    for ac_prog in grep ggrep; do
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3557      as_fn_executable_p "$ac_path_GREP" || continue
3558# Check for GNU ac_path_GREP and select it if it is found.
3559  # Check for GNU $ac_path_GREP
3560case `"$ac_path_GREP" --version 2>&1` in
3561*GNU*)
3562  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3563*)
3564  ac_count=0
3565  $as_echo_n 0123456789 >"conftest.in"
3566  while :
3567  do
3568    cat "conftest.in" "conftest.in" >"conftest.tmp"
3569    mv "conftest.tmp" "conftest.in"
3570    cp "conftest.in" "conftest.nl"
3571    $as_echo 'GREP' >> "conftest.nl"
3572    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3573    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3574    as_fn_arith $ac_count + 1 && ac_count=$as_val
3575    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3576      # Best one so far, save it but keep looking for a better one
3577      ac_cv_path_GREP="$ac_path_GREP"
3578      ac_path_GREP_max=$ac_count
3579    fi
3580    # 10*(2^10) chars as input seems more than enough
3581    test $ac_count -gt 10 && break
3582  done
3583  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3584esac
3585
3586      $ac_path_GREP_found && break 3
3587    done
3588  done
3589  done
3590IFS=$as_save_IFS
3591  if test -z "$ac_cv_path_GREP"; then
3592    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3593  fi
3594else
3595  ac_cv_path_GREP=$GREP
3596fi
3597
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3600$as_echo "$ac_cv_path_GREP" >&6; }
3601 GREP="$ac_cv_path_GREP"
3602
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3605$as_echo_n "checking for egrep... " >&6; }
3606if ${ac_cv_path_EGREP+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3610   then ac_cv_path_EGREP="$GREP -E"
3611   else
3612     if test -z "$EGREP"; then
3613  ac_path_EGREP_found=false
3614  # Loop through the user's path and test for each of PROGNAME-LIST
3615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    for ac_prog in egrep; do
3621    for ac_exec_ext in '' $ac_executable_extensions; do
3622      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3623      as_fn_executable_p "$ac_path_EGREP" || continue
3624# Check for GNU ac_path_EGREP and select it if it is found.
3625  # Check for GNU $ac_path_EGREP
3626case `"$ac_path_EGREP" --version 2>&1` in
3627*GNU*)
3628  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3629*)
3630  ac_count=0
3631  $as_echo_n 0123456789 >"conftest.in"
3632  while :
3633  do
3634    cat "conftest.in" "conftest.in" >"conftest.tmp"
3635    mv "conftest.tmp" "conftest.in"
3636    cp "conftest.in" "conftest.nl"
3637    $as_echo 'EGREP' >> "conftest.nl"
3638    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640    as_fn_arith $ac_count + 1 && ac_count=$as_val
3641    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3642      # Best one so far, save it but keep looking for a better one
3643      ac_cv_path_EGREP="$ac_path_EGREP"
3644      ac_path_EGREP_max=$ac_count
3645    fi
3646    # 10*(2^10) chars as input seems more than enough
3647    test $ac_count -gt 10 && break
3648  done
3649  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650esac
3651
3652      $ac_path_EGREP_found && break 3
3653    done
3654  done
3655  done
3656IFS=$as_save_IFS
3657  if test -z "$ac_cv_path_EGREP"; then
3658    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659  fi
3660else
3661  ac_cv_path_EGREP=$EGREP
3662fi
3663
3664   fi
3665fi
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3667$as_echo "$ac_cv_path_EGREP" >&6; }
3668 EGREP="$ac_cv_path_EGREP"
3669
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3672$as_echo_n "checking for ANSI C header files... " >&6; }
3673if ${ac_cv_header_stdc+:} false; then :
3674  $as_echo_n "(cached) " >&6
3675else
3676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678#include <stdlib.h>
3679#include <stdarg.h>
3680#include <string.h>
3681#include <float.h>
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_header_stdc=yes
3693else
3694  ac_cv_header_stdc=no
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697
3698if test $ac_cv_header_stdc = yes; then
3699  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702#include <string.h>
3703
3704_ACEOF
3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706  $EGREP "memchr" >/dev/null 2>&1; then :
3707
3708else
3709  ac_cv_header_stdc=no
3710fi
3711rm -f conftest*
3712
3713fi
3714
3715if test $ac_cv_header_stdc = yes; then
3716  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h.  */
3719#include <stdlib.h>
3720
3721_ACEOF
3722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3723  $EGREP "free" >/dev/null 2>&1; then :
3724
3725else
3726  ac_cv_header_stdc=no
3727fi
3728rm -f conftest*
3729
3730fi
3731
3732if test $ac_cv_header_stdc = yes; then
3733  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3734  if test "$cross_compiling" = yes; then :
3735  :
3736else
3737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739#include <ctype.h>
3740#include <stdlib.h>
3741#if ((' ' & 0x0FF) == 0x020)
3742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3744#else
3745# define ISLOWER(c) \
3746		   (('a' <= (c) && (c) <= 'i') \
3747		     || ('j' <= (c) && (c) <= 'r') \
3748		     || ('s' <= (c) && (c) <= 'z'))
3749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3750#endif
3751
3752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3753int
3754main ()
3755{
3756  int i;
3757  for (i = 0; i < 256; i++)
3758    if (XOR (islower (i), ISLOWER (i))
3759	|| toupper (i) != TOUPPER (i))
3760      return 2;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_run "$LINENO"; then :
3765
3766else
3767  ac_cv_header_stdc=no
3768fi
3769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3770  conftest.$ac_objext conftest.beam conftest.$ac_ext
3771fi
3772
3773fi
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3776$as_echo "$ac_cv_header_stdc" >&6; }
3777if test $ac_cv_header_stdc = yes; then
3778
3779$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3780
3781fi
3782
3783
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3785$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3786if ${ac_cv_c_const+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795
3796#ifndef __cplusplus
3797  /* Ultrix mips cc rejects this sort of thing.  */
3798  typedef int charset[2];
3799  const charset cs = { 0, 0 };
3800  /* SunOS 4.1.1 cc rejects this.  */
3801  char const *const *pcpcc;
3802  char **ppc;
3803  /* NEC SVR4.0.2 mips cc rejects this.  */
3804  struct point {int x, y;};
3805  static struct point const zero = {0,0};
3806  /* AIX XL C 1.02.0.0 rejects this.
3807     It does not let you subtract one const X* pointer from another in
3808     an arm of an if-expression whose if-part is not a constant
3809     expression */
3810  const char *g = "string";
3811  pcpcc = &g + (g ? g-g : 0);
3812  /* HPUX 7.0 cc rejects these. */
3813  ++pcpcc;
3814  ppc = (char**) pcpcc;
3815  pcpcc = (char const *const *) ppc;
3816  { /* SCO 3.2v4 cc rejects this sort of thing.  */
3817    char tx;
3818    char *t = &tx;
3819    char const *s = 0 ? (char *) 0 : (char const *) 0;
3820
3821    *t++ = 0;
3822    if (s) return 0;
3823  }
3824  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3825    int x[] = {25, 17};
3826    const int *foo = &x[0];
3827    ++foo;
3828  }
3829  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3830    typedef const int *iptr;
3831    iptr p = 0;
3832    ++p;
3833  }
3834  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
3835       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3836    struct s { int j; const int *ap[3]; } bx;
3837    struct s *b = &bx; b->j = 5;
3838  }
3839  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3840    const int foo = 10;
3841    if (!foo) return 0;
3842  }
3843  return !cs[0] && !zero.x;
3844#endif
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_compile "$LINENO"; then :
3851  ac_cv_c_const=yes
3852else
3853  ac_cv_c_const=no
3854fi
3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3858$as_echo "$ac_cv_c_const" >&6; }
3859if test $ac_cv_c_const = no; then
3860
3861$as_echo "#define const /**/" >>confdefs.h
3862
3863fi
3864
3865# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867		  inttypes.h stdint.h unistd.h
3868do :
3869  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3871"
3872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3873  cat >>confdefs.h <<_ACEOF
3874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3875_ACEOF
3876
3877fi
3878
3879done
3880
3881
3882ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
3883if test "x$ac_cv_type_off_t" = xyes; then :
3884
3885else
3886
3887cat >>confdefs.h <<_ACEOF
3888#define off_t long int
3889_ACEOF
3890
3891fi
3892
3893ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3894if test "x$ac_cv_type_size_t" = xyes; then :
3895
3896else
3897
3898cat >>confdefs.h <<_ACEOF
3899#define size_t unsigned int
3900_ACEOF
3901
3902fi
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3905$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3906if ${ac_cv_c_bigendian+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  ac_cv_c_bigendian=unknown
3910    # See if we're dealing with a universal compiler.
3911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913#ifndef __APPLE_CC__
3914	       not a universal capable compiler
3915	     #endif
3916	     typedef int dummy;
3917
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920
3921	# Check for potential -arch flags.  It is not universal unless
3922	# there are at least two -arch flags with different values.
3923	ac_arch=
3924	ac_prev=
3925	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3926	 if test -n "$ac_prev"; then
3927	   case $ac_word in
3928	     i?86 | x86_64 | ppc | ppc64)
3929	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3930		 ac_arch=$ac_word
3931	       else
3932		 ac_cv_c_bigendian=universal
3933		 break
3934	       fi
3935	       ;;
3936	   esac
3937	   ac_prev=
3938	 elif test "x$ac_word" = "x-arch"; then
3939	   ac_prev=arch
3940	 fi
3941       done
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944    if test $ac_cv_c_bigendian = unknown; then
3945      # See if sys/param.h defines the BYTE_ORDER macro.
3946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948#include <sys/types.h>
3949	     #include <sys/param.h>
3950
3951int
3952main ()
3953{
3954#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3955		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3956		     && LITTLE_ENDIAN)
3957	      bogus endian macros
3958	     #endif
3959
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964if ac_fn_c_try_compile "$LINENO"; then :
3965  # It does; now see whether it defined to BIG_ENDIAN or not.
3966	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968#include <sys/types.h>
3969		#include <sys/param.h>
3970
3971int
3972main ()
3973{
3974#if BYTE_ORDER != BIG_ENDIAN
3975		 not big endian
3976		#endif
3977
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_compile "$LINENO"; then :
3983  ac_cv_c_bigendian=yes
3984else
3985  ac_cv_c_bigendian=no
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990    fi
3991    if test $ac_cv_c_bigendian = unknown; then
3992      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995#include <limits.h>
3996
3997int
3998main ()
3999{
4000#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4001	      bogus endian macros
4002	     #endif
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"; then :
4009  # It does; now see whether it defined to _BIG_ENDIAN or not.
4010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h.  */
4012#include <limits.h>
4013
4014int
4015main ()
4016{
4017#ifndef _BIG_ENDIAN
4018		 not big endian
4019		#endif
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026  ac_cv_c_bigendian=yes
4027else
4028  ac_cv_c_bigendian=no
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033    fi
4034    if test $ac_cv_c_bigendian = unknown; then
4035      # Compile a test program.
4036      if test "$cross_compiling" = yes; then :
4037  # Try to guess by grepping values from an object file.
4038	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h.  */
4040short int ascii_mm[] =
4041		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4042		short int ascii_ii[] =
4043		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4044		int use_ascii (int i) {
4045		  return ascii_mm[i] + ascii_ii[i];
4046		}
4047		short int ebcdic_ii[] =
4048		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4049		short int ebcdic_mm[] =
4050		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4051		int use_ebcdic (int i) {
4052		  return ebcdic_mm[i] + ebcdic_ii[i];
4053		}
4054		extern int foo;
4055
4056int
4057main ()
4058{
4059return use_ascii (foo) == use_ebcdic (foo);
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_compile "$LINENO"; then :
4065  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4066	      ac_cv_c_bigendian=yes
4067	    fi
4068	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4069	      if test "$ac_cv_c_bigendian" = unknown; then
4070		ac_cv_c_bigendian=no
4071	      else
4072		# finding both strings is unlikely to happen, but who knows?
4073		ac_cv_c_bigendian=unknown
4074	      fi
4075	    fi
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078else
4079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081$ac_includes_default
4082int
4083main ()
4084{
4085
4086	     /* Are we little or big endian?  From Harbison&Steele.  */
4087	     union
4088	     {
4089	       long int l;
4090	       char c[sizeof (long int)];
4091	     } u;
4092	     u.l = 1;
4093	     return u.c[sizeof (long int) - 1] == 1;
4094
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099if ac_fn_c_try_run "$LINENO"; then :
4100  ac_cv_c_bigendian=no
4101else
4102  ac_cv_c_bigendian=yes
4103fi
4104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4105  conftest.$ac_objext conftest.beam conftest.$ac_ext
4106fi
4107
4108    fi
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4111$as_echo "$ac_cv_c_bigendian" >&6; }
4112 case $ac_cv_c_bigendian in #(
4113   yes)
4114     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4115;; #(
4116   no)
4117      ;; #(
4118   universal)
4119
4120$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4121
4122     ;; #(
4123   *)
4124     as_fn_error $? "unknown endianness
4125 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4126 esac
4127
4128
4129CFLAGS_EXTRA=$CFLAGS
4130
4131LDFLAGS_EXTRA=$LDFLAGS
4132
4133
4134# Check whether --enable-m32 was given.
4135if test "${enable_m32+set}" = set; then :
4136  enableval=$enable_m32;
4137		if test "$enable_m32" = "yes"; then
4138			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** switch to 32-bit compilation" >&5
4139$as_echo "*** switch to 32-bit compilation" >&6; }
4140			CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-m32 -DMMDB_UINT128_IS_BYTE_ARRAY=1"
4141			LDFLAGS="${LDFLAGS:+$LDFLAGS }-m32"
4142		fi
4143
4144fi
4145
4146
4147
4148# Check whether --enable-compiler-warning-to-error was given.
4149if test "${enable_compiler_warning_to_error+set}" = set; then :
4150  enableval=$enable_compiler_warning_to_error;
4151
4152else
4153
4154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: **** analyze compiler options: CC=$CC" >&5
4155$as_echo "**** analyze compiler options: CC=$CC" >&6; }
4156
4157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Werror=format-security" >&5
4158$as_echo "*** check for CFLAGS: -Werror=format-security" >&6; }
4159		CFLAGS_SAVE="$CFLAGS"
4160		CFLAGS="$CFLAGS -Wformat -Werror -Werror=format-security"
4161		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163int a=1;
4164int
4165main ()
4166{
4167
4168  ;
4169  return 0;
4170}
4171
4172_ACEOF
4173if ac_fn_c_try_compile "$LINENO"; then :
4174
4175				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Werror=format-security" >&5
4176$as_echo "*** CFLAGS supported: -Werror=format-security" >&6; }
4177				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Wformat -Werror=format-security"
4178
4179else
4180
4181				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Werror=format-security" >&5
4182$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Werror=format-security" >&2;}
4183				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Wformat"
4184
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187		CFLAGS="$CFLAGS_SAVE"
4188
4189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Wsizeof-array-argument" >&5
4190$as_echo "*** check for CFLAGS: -Wsizeof-array-argument" >&6; }
4191		CFLAGS_SAVE="$CFLAGS"
4192		CFLAGS="$CFLAGS -Wsizeof-array-argument"
4193		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195int a=1;
4196int
4197main ()
4198{
4199
4200  ;
4201  return 0;
4202}
4203
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206
4207				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Wsizeof-array-argument" >&5
4208$as_echo "*** CFLAGS supported: -Wsizeof-array-argument" >&6; }
4209				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Wsizeof-array-argument"
4210
4211else
4212
4213				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Wsizeof-array-argument" >&5
4214$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Wsizeof-array-argument" >&2;}
4215
4216fi
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218		CFLAGS="$CFLAGS_SAVE"
4219
4220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Wparentheses-equality" >&5
4221$as_echo "*** check for CFLAGS: -Wparentheses-equality" >&6; }
4222		CFLAGS_SAVE="$CFLAGS"
4223		CFLAGS="$CFLAGS -Wparentheses-equality"
4224		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226int a=1;
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234
4235_ACEOF
4236if ac_fn_c_try_compile "$LINENO"; then :
4237
4238				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Wparentheses-equality" >&5
4239$as_echo "*** CFLAGS supported: -Wparentheses-equality" >&6; }
4240				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Wparentheses-equality"
4241
4242else
4243
4244				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Wparentheses-equality" >&5
4245$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Wparentheses-equality" >&2;}
4246
4247fi
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249		CFLAGS="$CFLAGS_SAVE"
4250
4251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Wextra" >&5
4252$as_echo "*** check for CFLAGS: -Wextra" >&6; }
4253		CFLAGS_SAVE="$CFLAGS"
4254		CFLAGS="$CFLAGS -Wextra"
4255		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257int a=1;
4258int
4259main ()
4260{
4261
4262  ;
4263  return 0;
4264}
4265
4266_ACEOF
4267if ac_fn_c_try_compile "$LINENO"; then :
4268
4269				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Wextra" >&5
4270$as_echo "*** CFLAGS supported: -Wextra" >&6; }
4271				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Wextra"
4272
4273else
4274
4275				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Wextra" >&5
4276$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Wextra" >&2;}
4277
4278fi
4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280		CFLAGS="$CFLAGS_SAVE"
4281
4282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Werror=format-truncation=0" >&5
4283$as_echo "*** check for CFLAGS: -Werror=format-truncation=0" >&6; }
4284		CFLAGS_SAVE="$CFLAGS"
4285		CFLAGS="$CFLAGS -Werror -Werror=format-truncation=0"
4286		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h.  */
4288int a=1;
4289int
4290main ()
4291{
4292
4293  ;
4294  return 0;
4295}
4296
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299
4300				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Werror=format-truncation=0" >&5
4301$as_echo "*** CFLAGS supported: -Werror=format-truncation=0" >&6; }
4302				# disable errors related to format-truncation
4303				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Werror=format-truncation=0"
4304
4305else
4306
4307				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Werror=format-truncation=0" >&5
4308$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Werror=format-truncation=0" >&2;}
4309
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312		CFLAGS="$CFLAGS_SAVE"
4313
4314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** check for CFLAGS: -Werror=char-subscripts" >&5
4315$as_echo "*** check for CFLAGS: -Werror=char-subscripts" >&6; }
4316		CFLAGS_SAVE="$CFLAGS"
4317		CFLAGS="$CFLAGS -Werror -Werror=char-subscripts"
4318		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320int a=1;
4321int
4322main ()
4323{
4324
4325  ;
4326  return 0;
4327}
4328
4329_ACEOF
4330if ac_fn_c_try_compile "$LINENO"; then :
4331
4332				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS supported: -Werror=char-subscripts" >&5
4333$as_echo "*** CFLAGS supported: -Werror=char-subscripts" >&6; }
4334				# disable errors related to format-truncation
4335				CFLAGS_EXTRA="${CFLAGS_EXTRA:+$CFLAGS_EXTRA }-Werror=char-subscripts"
4336
4337else
4338
4339				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** missing CFLAGS support: -Werror=char-subscripts" >&5
4340$as_echo "$as_me: WARNING: *** missing CFLAGS support: -Werror=char-subscripts" >&2;}
4341
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344		CFLAGS="$CFLAGS_SAVE"
4345
4346fi
4347
4348
4349
4350
4351ENABLE_BUNDLED_GETOPT=0
4352# Check whether --enable-bundled-getopt was given.
4353if test "${enable_bundled_getopt+set}" = set; then :
4354  enableval=$enable_bundled_getopt;
4355		if test "$enable_bundled_getopt" = "yes"; then
4356			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of bundled getopt library forced" >&5
4357$as_echo "*** use of bundled getopt library forced" >&6; }
4358			ENABLE_BUNDLED_GETOPT=1
4359		else
4360			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of system getopt library forced" >&5
4361$as_echo "*** use of system getopt library forced" >&6; }
4362		fi
4363
4364else
4365
4366		ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
4367if test "x$ac_cv_func_getopt_long" = xyes; then :
4368
4369				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of system getopt library autoselected" >&5
4370$as_echo "*** use of system getopt library autoselected" >&6; }
4371
4372else
4373
4374				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of bundled getopt library autoselected" >&5
4375$as_echo "*** use of bundled getopt library autoselected" >&6; }
4376				ENABLE_BUNDLED_GETOPT=1
4377
4378fi
4379
4380
4381fi
4382
4383
4384if test "$ENABLE_BUNDLED_GETOPT" = "1"; then
4385	case " $LIBOBJS " in
4386  *" ../getopt/getopt.$ac_objext "* ) ;;
4387  *) LIBOBJS="$LIBOBJS ../getopt/getopt.$ac_objext"
4388 ;;
4389esac
4390
4391	case " $LIBOBJS " in
4392  *" ../getopt/getopt1.$ac_objext "* ) ;;
4393  *) LIBOBJS="$LIBOBJS ../getopt/getopt1.$ac_objext"
4394 ;;
4395esac
4396
4397	GETOPT_INCLUDE=-I../getopt
4398
4399$as_echo "#define ENABLE_BUNDLED_GETOPT 1" >>confdefs.h
4400
4401fi
4402
4403
4404
4405
4406
4407ENABLE_BUNDLED_MD5=0
4408# Check whether --enable-bundled-md5 was given.
4409if test "${enable_bundled_md5+set}" = set; then :
4410  enableval=$enable_bundled_md5;
4411		if test "$enable_bundled_md5" = "yes"; then
4412			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of bundled MD5 library forced" >&5
4413$as_echo "*** use of bundled MD5 library forced" >&6; }
4414			ENABLE_BUNDLED_MD5=1
4415		else
4416			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of system MD5 library forced" >&5
4417$as_echo "*** use of system MD5 library forced" >&6; }
4418		fi
4419
4420else
4421
4422		ac_fn_c_check_header_mongrel "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default"
4423if test "x$ac_cv_header_openssl_md5_h" = xyes; then :
4424
4425			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** openssl/md5.h header file found" >&5
4426$as_echo "*** openssl/md5.h header file found" >&6; }
4427			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Init in -lcrypto" >&5
4428$as_echo_n "checking for MD5_Init in -lcrypto... " >&6; }
4429if ${ac_cv_lib_crypto_MD5_Init+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  ac_check_lib_save_LIBS=$LIBS
4433LIBS="-lcrypto  $LIBS"
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436
4437/* Override any GCC internal prototype to avoid an error.
4438   Use char because int might match the return type of a GCC
4439   builtin and then its argument prototype would still apply.  */
4440#ifdef __cplusplus
4441extern "C"
4442#endif
4443char MD5_Init ();
4444int
4445main ()
4446{
4447return MD5_Init ();
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452if ac_fn_c_try_link "$LINENO"; then :
4453  ac_cv_lib_crypto_MD5_Init=yes
4454else
4455  ac_cv_lib_crypto_MD5_Init=no
4456fi
4457rm -f core conftest.err conftest.$ac_objext \
4458    conftest$ac_exeext conftest.$ac_ext
4459LIBS=$ac_check_lib_save_LIBS
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Init" >&5
4462$as_echo "$ac_cv_lib_crypto_MD5_Init" >&6; }
4463if test "x$ac_cv_lib_crypto_MD5_Init" = xyes; then :
4464
4465				LDFLAGS="-lcrypto $LDFLAGS"
4466				for ac_func in MD5_Init MD5_Update MD5_Final
4467do :
4468  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4471  cat >>confdefs.h <<_ACEOF
4472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4473_ACEOF
4474
4475						md5_found="yes"
4476
4477else
4478
4479						ENABLE_BUNDLED_MD5=1
4480
4481fi
4482done
4483
4484				if test "$md5_found" = "yes"; then
4485					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of system MD5 library autoselected" >&5
4486$as_echo "*** use of system MD5 library autoselected" >&6; }
4487				else
4488					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** use of bundled MD5 library autoselected" >&5
4489$as_echo "*** use of bundled MD5 library autoselected" >&6; }
4490				fi
4491
4492else
4493
4494				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: crypto library header files were found but not supporting required MD5 functions (will use bundled MD5 function)." >&5
4495$as_echo "$as_me: WARNING: crypto library header files were found but not supporting required MD5 functions (will use bundled MD5 function)." >&2;}
4496				ENABLE_BUNDLED_MD5=1
4497
4498fi
4499
4500
4501else
4502
4503			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl/md5.h header file not found (will use bundled MD5 function)." >&5
4504$as_echo "$as_me: WARNING: openssl/md5.h header file not found (will use bundled MD5 function)." >&2;}
4505			ENABLE_BUNDLED_MD5=1
4506
4507fi
4508
4509
4510
4511fi
4512
4513
4514if test "$ENABLE_BUNDLED_MD5" = "1"; then
4515	case " $LIBOBJS " in
4516  *" ../md5/md5.$ac_objext "* ) ;;
4517  *) LIBOBJS="$LIBOBJS ../md5/md5.$ac_objext"
4518 ;;
4519esac
4520
4521	GETOPT_INCLUDE=-I../md5
4522
4523$as_echo "#define ENABLE_BUNDLED_MD5 1" >>confdefs.h
4524
4525else
4526	LDFLAGS_EXTRA="-lcrypto $LDFLAGS_EXTRA"
4527	LDFLAGS_EXTRA_MOD_IPV6CALC="-lcrypto $LDFLAGS_EXTRA_MOD_IPV6CALC"
4528	LDFLAGS_EXTRA_STATIC="-lcrypto -lz -ldl $LDFLAGS_EXTRA_STATIC"
4529fi
4530
4531
4532
4533
4534
4535geoip_db_default="/usr/share/GeoIP"
4536ip2location_db_default="/usr/share/IP2Location"
4537dbip_db_default="/usr/share/DBIP"
4538external_db_default="/usr/share/ipv6calc/db"
4539
4540mmdb_dyn_lib_default="libmaxminddb.so.0"
4541ip2location_dyn_lib_default="libIP2Location.so.3"
4542
4543
4544# Check whether --enable-shared was given.
4545if test "${enable_shared+set}" = set; then :
4546  enableval=$enable_shared;
4547fi
4548
4549
4550if test "$enable_shared" = "yes"; then
4551	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Shared library build enabled" >&5
4552$as_echo "*** Shared library build enabled" >&6; }
4553	SHARED_LIBRARY="yes"
4554
4555$as_echo "#define SHARED_LIBRARY 1" >>confdefs.h
4556
4557	LDFLAGS_EXTRA_MOD_IPV6CALC="-Wl,../lib/libipv6calc.so.$PACKAGE_VERSION -Wl,../databases/lib/libipv6calc_db_wrapper.so.$PACKAGE_VERSION $LDFLAGS_EXTRA"
4558	LDFLAGS_EXTRA="../lib/libipv6calc.so.$PACKAGE_VERSION ../databases/lib/libipv6calc_db_wrapper.so.$PACKAGE_VERSION $LDFLAGS_EXTRA"
4559	LD_LIBRARY_PATH=../lib:../databases/lib:$LD_LIBRARY_PATH
4560	LD_LIBRARY_PATH_BASIC=../lib:../databases/lib:$LD_LIBRARY_PATH_BASIC
4561else
4562	SHARED_LIBRARY="no"
4563	IPV6CALC_LIB="-L../lib/ -L../databases/lib/ -lipv6calc_db_wrapper -lipv6calc"
4564fi
4565
4566
4567
4568
4569
4570ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4571if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4572
4573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Dynamic loading of libraries is SUPPORTED" >&5
4574$as_echo "*** Dynamic loading of libraries is SUPPORTED" >&6; }
4575		DYNAMIC_LOAD_SUPPORT="yes"
4576
4577else
4578
4579		DYNAMIC_LOAD_SUPPORT="no"
4580		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Dynamic loading of libraries is not supported, no header file found\"" >&5
4581$as_echo "$as_me: WARNING: \"Dynamic loading of libraries is not supported, no header file found\"" >&2;}
4582
4583fi
4584
4585
4586
4587# Check whether --enable-dynamic-load was given.
4588if test "${enable_dynamic_load+set}" = set; then :
4589  enableval=$enable_dynamic_load;
4590fi
4591
4592
4593if test "$enable_dynamic_load" = "yes"; then
4594	DYNAMIC_LOAD="no"
4595else
4596	DYNAMIC_LOAD="yes"
4597fi
4598
4599if test "$DYNAMIC_LOAD_SUPPORT" = "yes"; then
4600	if test "$DYNAMIC_LOAD" = "no"; then
4601		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Dynamic loading of libraries forced to be disabled\"" >&5
4602$as_echo "$as_me: WARNING: \"Dynamic loading of libraries forced to be disabled\"" >&2;}
4603	fi
4604fi
4605
4606BUILTIN="no"
4607
4608# Check whether --enable-db-ieee was given.
4609if test "${enable_db_ieee+set}" = set; then :
4610  enableval=$enable_db_ieee;
4611		DB_IEEE="$enable_db_ieee"
4612
4613else
4614
4615		DB_IEEE="yes"
4616		BUILTIN="yes"
4617
4618fi
4619
4620
4621if test "$DB_IEEE" = "yes"; then
4622
4623$as_echo "#define SUPPORT_DB_IEEE 1" >>confdefs.h
4624
4625fi
4626
4627
4628# Check whether --enable-db-ipv4 was given.
4629if test "${enable_db_ipv4+set}" = set; then :
4630  enableval=$enable_db_ipv4;
4631		DB_IPV4="$enable_db_ipv4"
4632
4633else
4634
4635		DB_IPV4="yes"
4636		BUILTIN="yes"
4637
4638fi
4639
4640
4641if test "$DB_IPV4" = "yes"; then
4642
4643$as_echo "#define SUPPORT_DB_IPV4_REG 1" >>confdefs.h
4644
4645fi
4646
4647
4648# Check whether --enable-db-ipv6 was given.
4649if test "${enable_db_ipv6+set}" = set; then :
4650  enableval=$enable_db_ipv6;
4651		DB_IPV6="$enable_db_ipv6"
4652
4653else
4654
4655		DB_IPV6="yes"
4656		BUILTIN="yes"
4657
4658fi
4659
4660
4661if test "$DB_IPV6" = "yes"; then
4662
4663$as_echo "#define SUPPORT_DB_IPV6_REG 1" >>confdefs.h
4664
4665fi
4666
4667
4668# Check whether --enable-db-as-registry was given.
4669if test "${enable_db_as_registry+set}" = set; then :
4670  enableval=$enable_db_as_registry;
4671		DB_AS_REG="$enable_db_as_registry"
4672
4673else
4674
4675		DB_AS_REG="yes"
4676		BUILTIN="yes"
4677
4678fi
4679
4680
4681if test "$DB_AS_REG" = "yes"; then
4682
4683$as_echo "#define SUPPORT_DB_AS_REG 1" >>confdefs.h
4684
4685fi
4686
4687
4688# Check whether --enable-db-cc-registry was given.
4689if test "${enable_db_cc_registry+set}" = set; then :
4690  enableval=$enable_db_cc_registry;
4691		DB_CC_REG="$enable_db_cc_registry"
4692
4693else
4694
4695		DB_CC_REG="yes"
4696		BUILTIN="yes"
4697
4698fi
4699
4700
4701if test "$DB_CC_REG" = "yes"; then
4702
4703$as_echo "#define SUPPORT_DB_CC_REG 1" >>confdefs.h
4704
4705fi
4706
4707
4708# Check whether --enable-builtin was given.
4709if test "${enable_builtin+set}" = set; then :
4710  enableval=$enable_builtin;
4711		DB_CC_REG="$enable_builtin"
4712		DB_AS_REG="$enable_builtin"
4713		DB_IEEE="$enable_builtin"
4714		DB_IPV4="$enable_builtin"
4715		DB_IPV6="$enable_builtin"
4716
4717fi
4718
4719
4720
4721
4722if test "$BUILTIN" = "yes"; then
4723
4724$as_echo "#define SUPPORT_BUILTIN 1" >>confdefs.h
4725
4726fi
4727
4728
4729# Check whether --enable-external was given.
4730if test "${enable_external+set}" = set; then :
4731  enableval=$enable_external;
4732		EXTERNAL="$enable_external"
4733
4734else
4735
4736		EXTERNAL="no"
4737
4738fi
4739
4740
4741
4742# Check whether --with-external-db was given.
4743if test "${with_external_db+set}" = set; then :
4744  withval=$with_external_db;
4745		external_db="$with_external_db"
4746
4747else
4748
4749		external_db=$external_db_default
4750
4751fi
4752
4753
4754if test "$EXTERNAL" = "yes"; then
4755	require_libdb="yes"
4756
4757
4758$as_echo "#define SUPPORT_EXTERNAL 1" >>confdefs.h
4759
4760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** external db dir: $external_db" >&5
4761$as_echo "*** external db dir: $external_db" >&6; }
4762
4763cat >>confdefs.h <<_ACEOF
4764#define EXTERNAL_DB "$external_db"
4765_ACEOF
4766
4767fi
4768
4769EXTERNAL_DB=$external_db
4770
4771
4772
4773if test "$require_libdb" = "yes"; then
4774	ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
4775if test "x$ac_cv_header_db_h" = xyes; then :
4776
4777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb" >&5
4778$as_echo_n "checking for db_create in -ldb... " >&6; }
4779if ${ac_cv_lib_db_db_create+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  ac_check_lib_save_LIBS=$LIBS
4783LIBS="-ldb  $LIBS"
4784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786
4787/* Override any GCC internal prototype to avoid an error.
4788   Use char because int might match the return type of a GCC
4789   builtin and then its argument prototype would still apply.  */
4790#ifdef __cplusplus
4791extern "C"
4792#endif
4793char db_create ();
4794int
4795main ()
4796{
4797return db_create ();
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_link "$LINENO"; then :
4803  ac_cv_lib_db_db_create=yes
4804else
4805  ac_cv_lib_db_db_create=no
4806fi
4807rm -f core conftest.err conftest.$ac_objext \
4808    conftest$ac_exeext conftest.$ac_ext
4809LIBS=$ac_check_lib_save_LIBS
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_create" >&5
4812$as_echo "$ac_cv_lib_db_db_create" >&6; }
4813if test "x$ac_cv_lib_db_db_create" = xyes; then :
4814
4815			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Berkeley DB library found and usable" >&5
4816$as_echo "*** Berkeley DB library found and usable" >&6; }
4817
4818else
4819
4820			as_fn_error $? "Berkeley DB library file misses db_create" "$LINENO" 5
4821
4822fi
4823
4824
4825else
4826
4827		as_fn_error $? "Berkeley DB library header files not found (perhaps missing one of the following packages: db4-devel libdb-devel)" "$LINENO" 5
4828
4829fi
4830
4831
4832
4833	LDFLAGS_EXTRA="${LDFLAGS_EXTRA:+$LDFLAGS_EXTRA }-ldb"
4834	LDFLAGS="${LDFLAGS:+$LDFLAGS }-ldb"
4835	LDFLAGS_EXTRA_MOD_IPV6CALC="-ldb $LDFLAGS_EXTRA_MOD_IPV6CALC"
4836
4837$as_echo "#define HAVE_BERKELEY_DB_SUPPORT 1" >>confdefs.h
4838
4839fi
4840
4841
4842MMDB_LIB_NAME="maxminddb"
4843MMDB_INCLUDE_VERSION=""
4844
4845# Check whether --enable-mmdb was given.
4846if test "${enable_mmdb+set}" = set; then :
4847  enableval=$enable_mmdb;
4848		if test "$enable_mmdb" != "no"; then
4849			MMDB="$enable_mmdb"
4850		fi
4851
4852else
4853
4854		MMDB="no"
4855
4856fi
4857
4858
4859
4860# Check whether --with-mmdb-dynamic was given.
4861if test "${with_mmdb_dynamic+set}" = set; then :
4862  withval=$with_mmdb_dynamic;
4863		if test "$with_mmdb_dynamic" != "no"; then
4864			MMDB_DYN="yes"
4865		fi
4866
4867else
4868
4869		true
4870
4871fi
4872
4873
4874
4875# Check whether --with-mmdb-headers was given.
4876if test "${with_mmdb_headers+set}" = set; then :
4877  withval=$with_mmdb_headers;
4878		MMDB_INCLUDE_DIR="$with_mmdb_headers"
4879
4880fi
4881
4882
4883if test -n "$MMDB_INCLUDE_DIR"; then
4884	MMDB_INCLUDE="-I$MMDB_INCLUDE_DIR"
4885	if echo "$MMDB_INCLUDE_DIR" | grep -q "^/"; then
4886		# absolute path
4887		MMDB_INCLUDE_L1="-I$MMDB_INCLUDE_DIR"
4888		MMDB_INCLUDE_L2="-I$MMDB_INCLUDE_DIR"
4889	else
4890		MMDB_INCLUDE_L1="-I../$MMDB_INCLUDE_DIR"
4891		MMDB_INCLUDE_L2="-I../../$MMDB_INCLUDE_DIR"
4892	fi
4893fi
4894
4895
4896# Check whether --with-mmdb-lib was given.
4897if test "${with_mmdb_lib+set}" = set; then :
4898  withval=$with_mmdb_lib;
4899		if test -d "$with_mmdb_lib"; then
4900			MMDB_LIB_DIR="$with_mmdb_lib"
4901			MMDB_LIB="-L$MMDB_LIB_DIR $MMDB_LIB"
4902			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MaxMindDB library directory given: $MMDB_LIB_DIR" >&5
4903$as_echo "MaxMindDB library directory given: $MMDB_LIB_DIR" >&6; }
4904		else
4905			as_fn_error $? "MaxMindDB library directory not found: $with_mmdb_lib" "$LINENO" 5
4906		fi
4907
4908		if echo "$MMDB_LIB_DIR" | grep -q "^/"; then
4909			# absolute path
4910			MMDB_LIB_L1="-L$MMDB_LIB_DIR"
4911			MMDB_LIB_L2="-L$MMDB_LIB_DIR"
4912			LD_LIBRARY_PATH=$MMDB_LIB_DIR:$LD_LIBRARY_PATH
4913		else
4914			MMDB_LIB_L1="-L../$MMDB_LIB_DIR"
4915			MMDB_LIB_L2="-L../../$MMDB_LIB_DIR"
4916			LD_LIBRARY_PATH=../$MMDB_LIB_DIR:$LD_LIBRARY_PATH
4917		fi
4918
4919fi
4920
4921
4922
4923# Check whether --with-mmdb-dyn-lib was given.
4924if test "${with_mmdb_dyn_lib+set}" = set; then :
4925  withval=$with_mmdb_dyn_lib;
4926		mmdb_dyn_lib="$with_mmdb_dyn_lib"
4927
4928else
4929
4930		mmdb_dyn_lib=$mmdb_dyn_lib_default
4931
4932fi
4933
4934
4935if test "$MMDB" = "yes"; then
4936	if test "$MMDB_DYN" != "yes"; then
4937		MMDB_LIB="-l$MMDB_LIB_NAME $MMDB_LIB"
4938		MMDB_LIB_L1="-l$MMDB_LIB_NAME $MMDB_LIB_L1"
4939		MMDB_LIB_L2="-l$MMDB_LIB_NAME $MMDB_LIB_L2"
4940	else
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MaxMindDB dynamic load support enabled, disable MaxMindDB linker options" >&5
4942$as_echo "*** MaxMindDB dynamic load support enabled, disable MaxMindDB linker options" >&6; }
4943	fi
4944
4945	CPPFLAGS="$CPPLAGS $MMDB_INCLUDE"
4946
4947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MaxMindDB support requested" >&5
4948$as_echo "*** MaxMindDB support requested" >&6; }
4949
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CPPFLAGS=$CPPFLAGS" >&5
4951$as_echo "***** CPPFLAGS=$CPPFLAGS" >&6; }
4952	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CFLAGS  =$CFLAGS" >&5
4953$as_echo "***** CFLAGS  =$CFLAGS" >&6; }
4954	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** LDFLAGS =$LDFLAGS" >&5
4955$as_echo "***** LDFLAGS =$LDFLAGS" >&6; }
4956
4957	ac_fn_c_check_header_mongrel "$LINENO" "maxminddb.h" "ac_cv_header_maxminddb_h" "$ac_includes_default"
4958if test "x$ac_cv_header_maxminddb_h" = xyes; then :
4959
4960		if test -n "$MMDB_INCLUDE_DIR"; then
4961			if test -e "$MMDB_INCLUDE_DIR/maxminddb.h"; then
4962				CPPFLAGS="$CPPFLAGS -include $MMDB_INCLUDE_DIR/maxminddb.h"
4963			else
4964				as_fn_error $? "MaxMindDB library header file not found: $MMDB_INCLUDE_DIR/maxminddb.h" "$LINENO" 5
4965			fi
4966		else
4967			CPPFLAGS="$CPPFLAGS -include maxminddb.h"
4968		fi
4969
4970		ac_fn_c_check_decl "$LINENO" "MMDB_open" "ac_cv_have_decl_MMDB_open" "$ac_includes_default"
4971if test "x$ac_cv_have_decl_MMDB_open" = xyes; then :
4972
4973else
4974  as_fn_error $? "MaxMindDB library header file misses MMDB_open" "$LINENO" 5
4975fi
4976
4977
4978		ac_fn_c_check_decl "$LINENO" "MMDB_lib_version" "ac_cv_have_decl_MMDB_lib_version" "$ac_includes_default"
4979if test "x$ac_cv_have_decl_MMDB_lib_version" = xyes; then :
4980  ac_have_decl=1
4981else
4982  ac_have_decl=0
4983fi
4984
4985cat >>confdefs.h <<_ACEOF
4986#define HAVE_DECL_MMDB_LIB_VERSION $ac_have_decl
4987_ACEOF
4988
4989
4990
4991else
4992
4993		as_fn_error $? "MaxMindDB library header files not found" "$LINENO" 5
4994
4995fi
4996
4997
4998
4999	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MaxMindDB database directory: $mmdb_db" >&5
5000$as_echo "*** MaxMindDB database directory: $mmdb_db" >&6; }
5001
5002cat >>confdefs.h <<_ACEOF
5003#define MMDB_DB "$mmdb_db"
5004_ACEOF
5005
5006
5007	if test "$MMDB_DYN" != "yes"; then
5008		CPPFLAGS="$CFLAGS"
5009
5010		if test -n "$MMDB_LIB_DIR"; then
5011			if test -e "$MMDB_LIB_DIR/lib$MMDB_LIB_NAME.so"; then
5012				LDFLAGS="$LDFLAGS -L$MMDB_LIB_DIR"
5013				CFLAGS="$CFLAGS -L$MMDB_LIB_DIR"
5014				LIBS="-L$MMDB_LIB_DIR"
5015			else
5016				as_fn_error $? "MaxMindDB library file not found: $MMDB_INCLUDE_DIR/lib$MMDB_LIB_NAME.so" "$LINENO" 5
5017			fi
5018		fi
5019
5020		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CPPFLAGS=$CPPFLAGS" >&5
5021$as_echo "***** CPPFLAGS=$CPPFLAGS" >&6; }
5022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CFLAGS  =$CFLAGS" >&5
5023$as_echo "***** CFLAGS  =$CFLAGS" >&6; }
5024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** LDFLAGS =$LDFLAGS" >&5
5025$as_echo "***** LDFLAGS =$LDFLAGS" >&6; }
5026
5027		as_ac_Lib=`$as_echo "ac_cv_lib_$MMDB_LIB_NAME''_MMDB_open" | $as_tr_sh`
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_open in -l$MMDB_LIB_NAME" >&5
5029$as_echo_n "checking for MMDB_open in -l$MMDB_LIB_NAME... " >&6; }
5030if eval \${$as_ac_Lib+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  ac_check_lib_save_LIBS=$LIBS
5034LIBS="-l$MMDB_LIB_NAME  $LIBS"
5035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037
5038/* Override any GCC internal prototype to avoid an error.
5039   Use char because int might match the return type of a GCC
5040   builtin and then its argument prototype would still apply.  */
5041#ifdef __cplusplus
5042extern "C"
5043#endif
5044char MMDB_open ();
5045int
5046main ()
5047{
5048return MMDB_open ();
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_link "$LINENO"; then :
5054  eval "$as_ac_Lib=yes"
5055else
5056  eval "$as_ac_Lib=no"
5057fi
5058rm -f core conftest.err conftest.$ac_objext \
5059    conftest$ac_exeext conftest.$ac_ext
5060LIBS=$ac_check_lib_save_LIBS
5061fi
5062eval ac_res=\$$as_ac_Lib
5063	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5064$as_echo "$ac_res" >&6; }
5065if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5066
5067
5068$as_echo "#define SUPPORT_MMDB 1" >>confdefs.h
5069
5070			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MaxMindDB support enabled" >&5
5071$as_echo "*** MaxMindDB support enabled" >&6; }
5072
5073else
5074
5075			as_fn_error $? "MaxMindDB library header files given but the library was not found, LDFLAGS=$LDFLAGS" "$LINENO" 5
5076
5077fi
5078
5079	else
5080		# wrapper detects by itself the real support
5081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GeoIP dyn lib: $mmdb_dyn_lib" >&5
5082$as_echo "*** GeoIP dyn lib: $mmdb_dyn_lib" >&6; }
5083
5084cat >>confdefs.h <<_ACEOF
5085#define MMDB_DYN_LIB "$mmdb_dyn_lib"
5086_ACEOF
5087
5088
5089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MaxMindDB support will be implemented by using dynamic load of library" >&5
5090$as_echo "*** MaxMindDB support will be implemented by using dynamic load of library" >&6; }
5091
5092$as_echo "#define SUPPORT_MMDB 1" >>confdefs.h
5093
5094
5095$as_echo "#define SUPPORT_MMDB_DYN 1" >>confdefs.h
5096
5097	fi
5098
5099	# GeoIPv2 and DBIPv2 support
5100	# Check whether --enable-geoip2 was given.
5101if test "${enable_geoip2+set}" = set; then :
5102  enableval=$enable_geoip2;
5103			GEOIP2="no"
5104
5105else
5106
5107			GEOIP2="yes"
5108
5109fi
5110
5111
5112	# Check whether --enable-dbip2 was given.
5113if test "${enable_dbip2+set}" = set; then :
5114  enableval=$enable_dbip2;
5115			DBIP2="no"
5116
5117else
5118
5119			DBIP2="yes"
5120
5121fi
5122
5123else
5124	GEOIP2=no
5125	DBIP2=no
5126fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137if test -n "$MMDB_INCLUDE_VERSION"; then
5138
5139cat >>confdefs.h <<_ACEOF
5140#define MMDB_INCLUDE_VERSION "$MMDB_INCLUDE_VERSION"
5141_ACEOF
5142
5143fi
5144
5145
5146# Check whether --enable-dbip was given.
5147if test "${enable_dbip+set}" = set; then :
5148  enableval=$enable_dbip;
5149
5150fi
5151
5152
5153
5154# Check whether --with-dbip-db was given.
5155if test "${with_dbip_db+set}" = set; then :
5156  withval=$with_dbip_db;
5157		dbip_db="$with_dbip_db"
5158
5159else
5160
5161		dbip_db=$dbip_db_default
5162
5163fi
5164
5165
5166if test "$DBIP2" = "yes"; then
5167	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** db-ip.com (MaxMindDB) support auotenabled\"" >&5
5168$as_echo "*** db-ip.com (MaxMindDB) support auotenabled\"" >&6; }
5169
5170$as_echo "#define SUPPORT_DBIP2 1" >>confdefs.h
5171
5172	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** db-ip.com (MaxMindDB) database directory: $dbip_db" >&5
5173$as_echo "*** db-ip.com (MaxMindDB) database directory: $dbip_db" >&6; }
5174
5175cat >>confdefs.h <<_ACEOF
5176#define DBIP2_DB "$dbip_db"
5177_ACEOF
5178
5179fi
5180
5181DBIP2_DB=$dbip_db
5182
5183
5184
5185IP2LOCATION_LIB_NAME="IP2Location"
5186IP2LOCATION_INCLUDE_VERSION=""
5187
5188# Check whether --enable-ip2location was given.
5189if test "${enable_ip2location+set}" = set; then :
5190  enableval=$enable_ip2location;
5191		IP2LOCATION="$enable_ip2location"
5192
5193else
5194
5195		IP2LOCATION="no"
5196
5197fi
5198
5199
5200
5201# Check whether --with-ip2location-dynamic was given.
5202if test "${with_ip2location_dynamic+set}" = set; then :
5203  withval=$with_ip2location_dynamic;
5204		if test "$enable_ip2location_dynamic" != "no"; then
5205			IP2LOCATION_DYN="yes"
5206		fi
5207
5208else
5209
5210		true
5211
5212fi
5213
5214
5215
5216# Check whether --with-ip2location-headers was given.
5217if test "${with_ip2location_headers+set}" = set; then :
5218  withval=$with_ip2location_headers;
5219		IP2LOCATION_INCLUDE_DIR="$with_ip2location_headers"
5220
5221fi
5222
5223
5224
5225# Check whether --with-ip2location-headers-fallback was given.
5226if test "${with_ip2location_headers_fallback+set}" = set; then :
5227  withval=$with_ip2location_headers_fallback;
5228
5229fi
5230
5231
5232if test -n "$IP2LOCATION_INCLUDE_DIR"; then
5233	IP2LOCATION_INCLUDE="-I$IP2LOCATION_INCLUDE_DIR"
5234	if test -d "$IP2LOCATION_INCLUDE_DIR/iMath"; then
5235		# include iMath where existing (API < 7.0.0)
5236		IP2LOCATION_INCLUDE="$IP2LOCATION_INCLUDE -I$IP2LOCATION_INCLUDE_DIR/iMath"
5237	fi
5238	if echo "$IP2LOCATION_INCLUDE_DIR" | grep -q "^/"; then
5239		# absolute path
5240		IP2LOCATION_INCLUDE_L1="-I$IP2LOCATION_INCLUDE_DIR"
5241		IP2LOCATION_INCLUDE_L2="-I$IP2LOCATION_INCLUDE_DIR"
5242		if test -d "$IP2LOCATION_INCLUDE_DIR/iMath"; then
5243			# include iMath where existing (API < 7.0.0)
5244			IP2LOCATION_INCLUDE_L1="$IP2LOCATION_INCLUDE_L1 -I$IP2LOCATION_INCLUDE_DIR/iMath"
5245			IP2LOCATION_INCLUDE_L2="$IP2LOCATION_INCLUDE_L2 -I$IP2LOCATION_INCLUDE_DIR/iMath"
5246		fi
5247	else
5248		IP2LOCATION_INCLUDE_L1="-I../$IP2LOCATION_INCLUDE_DIR"
5249		IP2LOCATION_INCLUDE_L2="-I../../$IP2LOCATION_INCLUDE_DIR"
5250		if test -d "$IP2LOCATION_INCLUDE_DIR/iMath"; then
5251			# include iMath where existing (API < 7.0.0)
5252			IP2LOCATION_INCLUDE_L1="$IP2LOCATION_INCLUDE_L1 -I../$IP2LOCATION_INCLUDE_DIR/iMath"
5253			IP2LOCATION_INCLUDE_L2="$IP2LOCATION_INCLUDE_L2 -I../../$IP2LOCATION_INCLUDE_DIR/iMath"
5254		fi
5255	fi
5256fi
5257
5258
5259# Check whether --with-ip2location-lib was given.
5260if test "${with_ip2location_lib+set}" = set; then :
5261  withval=$with_ip2location_lib;
5262		if test -d "$with_ip2location_lib"; then
5263			IP2LOCATION_LIB_DIR="$with_ip2location_lib"
5264			IP2LOCATION_LIB="-L$IP2LOCATION_LIB_DIR $IP2LOCATION_LIB"
5265			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: IP2Location library directory given: $IP2LOCATION_LIB_DIR" >&5
5266$as_echo "IP2Location library directory given: $IP2LOCATION_LIB_DIR" >&6; }
5267		else
5268			as_fn_error $? "IP2Location library directory not found: $with_ip2location_lib" "$LINENO" 5
5269		fi
5270
5271		if echo "$IP2LOCATION_LIB_DIR" | grep -q "^/"; then
5272			# absolute path
5273			IP2LOCATION_LIB_L1="-L$IP2LOCATION_LIB_DIR"
5274			IP2LOCATION_LIB_L2="-L$IP2LOCATION_LIB_DIR"
5275			if test -n "$LD_LIBRARY_PATH"; then
5276				LD_LIBRARY_PATH=$IP2LOCATION_LIB_DIR:$LD_LIBRARY_PATH
5277			else
5278				LD_LIBRARY_PATH=$IP2LOCATION_LIB_DIR
5279			fi
5280		else
5281			IP2LOCATION_LIB_L1="-L../$IP2LOCATION_LIB_DIR"
5282			IP2LOCATION_LIB_L2="-L../../$IP2LOCATION_LIB_DIR"
5283			if test -n "$LD_LIBRARY_PATH"; then
5284				LD_LIBRARY_PATH=../$IP2LOCATION_LIB_DIR:$LD_LIBRARY_PATH
5285			else
5286				LD_LIBRARY_PATH=$IP2LOCATION_LIB_DIR
5287			fi
5288		fi
5289
5290fi
5291
5292
5293# must be tested
5294#AC_ARG_WITH([ip2location-lib-name],
5295#	AS_HELP_STRING([--with-ip2location-lib-name=NAME],
5296#		[IP2Location library name]),
5297#	[
5298#		IP2LOCATION_LIB_NAME="$with_ip2location_lib_name"
5299#		IP2LOCATION_LIB="-l$IP2LOCATION_LIB_NAME $IP2LOCATION_LIB"
5300#		AC_MSG_RESULT([IP2Location library name given: $IP2LOCATION_LIB_NAME])
5301#        ],[
5302#	])
5303
5304
5305# Check whether --with-ip2location-static was given.
5306if test "${with_ip2location_static+set}" = set; then :
5307  withval=$with_ip2location_static;
5308		if test "$with_ip2location_static" != "no"; then
5309			IP2LOCATION_LIB="-Wl,-Bstatic $IP2LOCATION_LIB -Wl,-Bdynamic"
5310		fi
5311
5312fi
5313
5314
5315
5316# Check whether --with-ip2location-db was given.
5317if test "${with_ip2location_db+set}" = set; then :
5318  withval=$with_ip2location_db;
5319		ip2location_db="$with_ip2location_db"
5320
5321else
5322
5323		ip2location_db=$ip2location_db_default
5324
5325fi
5326
5327
5328
5329# Check whether --with-ip2location-dyn-lib was given.
5330if test "${with_ip2location_dyn_lib+set}" = set; then :
5331  withval=$with_ip2location_dyn_lib;
5332		ip2location_dyn_lib="$with_ip2location_dyn_lib"
5333
5334else
5335
5336		ip2location_dyn_lib=$ip2location_dyn_lib_default
5337
5338fi
5339
5340
5341if test "$IP2LOCATION" = "yes"; then
5342	if test "$IP2LOCATION_DYN" != "yes"; then
5343		IP2LOCATION_LIB="-l$IP2LOCATION_LIB_NAME $IP2LOCATION_LIB"
5344		IP2LOCATION_LIB_L1="-l$IP2LOCATION_LIB_NAME $IP2LOCATION_LIB_L1"
5345		IP2LOCATION_LIB_L2="-l$IP2LOCATION_LIB_NAME $IP2LOCATION_LIB_L2"
5346	else
5347		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: **** IP2Location dynamic load support enabled, disable IP2Location linker options" >&5
5348$as_echo "**** IP2Location dynamic load support enabled, disable IP2Location linker options" >&6; }
5349	fi
5350
5351	CPPFLAGS="$CPPFLAGS $IP2LOCATION_INCLUDE"
5352
5353	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location support requested" >&5
5354$as_echo "*** IP2Location support requested" >&6; }
5355
5356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CPPFLAGS=$CPPFLAGS" >&5
5357$as_echo "***** CPPFLAGS=$CPPFLAGS" >&6; }
5358	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CFLAGS  =$CFLAGS" >&5
5359$as_echo "***** CFLAGS  =$CFLAGS" >&6; }
5360	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** LDFLAGS =$LDFLAGS" >&5
5361$as_echo "***** LDFLAGS =$LDFLAGS" >&6; }
5362
5363	ac_fn_c_check_header_mongrel "$LINENO" "IP2Location.h" "ac_cv_header_IP2Location_h" "$ac_includes_default"
5364if test "x$ac_cv_header_IP2Location_h" = xyes; then :
5365
5366		if test -n "$IP2LOCATION_INCLUDE_DIR"; then
5367			if test -e "$IP2LOCATION_INCLUDE_DIR/IP2Location.h"; then
5368				CPPFLAGS="$CPPFLAGS -include $IP2LOCATION_INCLUDE_DIR/IP2Location.h"
5369			else
5370				as_fn_error $? "IP2Location library header file not found: $IP2LOCATION_INCLUDE_DIR/IP2Location.h" "$LINENO" 5
5371			fi
5372		else
5373			CPPFLAGS="$CPPFLAGS -include IP2Location.h"
5374		fi
5375
5376		ac_fn_c_check_decl "$LINENO" "IP2Location_open" "ac_cv_have_decl_IP2Location_open" "$ac_includes_default"
5377if test "x$ac_cv_have_decl_IP2Location_open" = xyes; then :
5378
5379else
5380  as_fn_error $? "IP2Location library header file misses IP2Location_open" "$LINENO" 5
5381fi
5382
5383
5384		ac_fn_c_check_decl "$LINENO" "IP2Location_close" "ac_cv_have_decl_IP2Location_close" "$ac_includes_default"
5385if test "x$ac_cv_have_decl_IP2Location_close" = xyes; then :
5386  ac_have_decl=1
5387else
5388  ac_have_decl=0
5389fi
5390
5391cat >>confdefs.h <<_ACEOF
5392#define HAVE_DECL_IP2LOCATION_CLOSE $ac_have_decl
5393_ACEOF
5394ac_fn_c_check_decl "$LINENO" "IP2Location_get_country_short" "ac_cv_have_decl_IP2Location_get_country_short" "$ac_includes_default"
5395if test "x$ac_cv_have_decl_IP2Location_get_country_short" = xyes; then :
5396  ac_have_decl=1
5397else
5398  ac_have_decl=0
5399fi
5400
5401cat >>confdefs.h <<_ACEOF
5402#define HAVE_DECL_IP2LOCATION_GET_COUNTRY_SHORT $ac_have_decl
5403_ACEOF
5404ac_fn_c_check_decl "$LINENO" "IP2Location_get_country_long" "ac_cv_have_decl_IP2Location_get_country_long" "$ac_includes_default"
5405if test "x$ac_cv_have_decl_IP2Location_get_country_long" = xyes; then :
5406  ac_have_decl=1
5407else
5408  ac_have_decl=0
5409fi
5410
5411cat >>confdefs.h <<_ACEOF
5412#define HAVE_DECL_IP2LOCATION_GET_COUNTRY_LONG $ac_have_decl
5413_ACEOF
5414
5415
5416		ac_fn_c_check_decl "$LINENO" "API_VERSION" "ac_cv_have_decl_API_VERSION" "$ac_includes_default"
5417if test "x$ac_cv_have_decl_API_VERSION" = xyes; then :
5418  ac_have_decl=1
5419else
5420  ac_have_decl=0
5421fi
5422
5423cat >>confdefs.h <<_ACEOF
5424#define HAVE_DECL_API_VERSION $ac_have_decl
5425_ACEOF
5426
5427
5428		ac_fn_c_check_decl "$LINENO" "IP2Location_api_version_string" "ac_cv_have_decl_IP2Location_api_version_string" "$ac_includes_default"
5429if test "x$ac_cv_have_decl_IP2Location_api_version_string" = xyes; then :
5430  ac_have_decl=1
5431else
5432  ac_have_decl=0
5433fi
5434
5435cat >>confdefs.h <<_ACEOF
5436#define HAVE_DECL_IP2LOCATION_API_VERSION_STRING $ac_have_decl
5437_ACEOF
5438if test $ac_have_decl = 1; then :
5439  IP2LOCATION_HAS_API_STRING="yes"
5440fi
5441
5442		ac_fn_c_check_decl "$LINENO" "IP2Location_lib_version_string" "ac_cv_have_decl_IP2Location_lib_version_string" "$ac_includes_default"
5443if test "x$ac_cv_have_decl_IP2Location_lib_version_string" = xyes; then :
5444  IP2LOCATION_HAS_LIB_STRING="yes"
5445fi
5446
5447
5448		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450
5451				#include <IP2Location.h>
5452				IP2Location loc;
5453				void test() {
5454					loc.ipv6_database_address = 1;
5455				};
5456
5457int
5458main ()
5459{
5460
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"; then :
5466
5467				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: IP2Location has full (and updated) IPv6 support (API >= 8.2.0)" >&5
5468$as_echo "IP2Location has full (and updated) IPv6 support (API >= 8.2.0)" >&6; }
5469
5470else
5471
5472				as_fn_error $? "IP2Location has only compat IPv6 support (API < 7.0.0) or old (API < 8.2.0) which is no longer supported" "$LINENO" 5
5473
5474
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477
5478		ac_fn_c_check_decl "$LINENO" "USAGETYPE" "ac_cv_have_decl_USAGETYPE" "$ac_includes_default"
5479if test "x$ac_cv_have_decl_USAGETYPE" = xyes; then :
5480  ac_have_decl=1
5481else
5482  ac_have_decl=0
5483fi
5484
5485cat >>confdefs.h <<_ACEOF
5486#define HAVE_DECL_USAGETYPE $ac_have_decl
5487_ACEOF
5488if test $ac_have_decl = 1; then :
5489
5490				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: IP2Location has full support (library >= 6.0.0)" >&5
5491$as_echo "IP2Location has full support (library >= 6.0.0)" >&6; }
5492
5493else
5494
5495				as_fn_error $? "IP2Location library header file misses USAGETYPE (library < 6.0.0) which is no longer supported" "$LINENO" 5
5496
5497
5498fi
5499
5500
5501
5502else
5503
5504		as_fn_error $? "IP2Location library header files not found" "$LINENO" 5
5505
5506fi
5507
5508
5509
5510	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2location db dir: $ip2location_db" >&5
5511$as_echo "*** IP2location db dir: $ip2location_db" >&6; }
5512
5513cat >>confdefs.h <<_ACEOF
5514#define IP2LOCATION_DB "$ip2location_db"
5515_ACEOF
5516
5517
5518	if test "$IP2LOCATION_DYN" != "yes"; then
5519		if test "$IP2LOCATION_STATIC" = "yes"; then
5520
5521$as_echo "#define SUPPORT_IP2LOCATION_STATIC 1" >>confdefs.h
5522
5523		fi
5524
5525		CPPFLAGS="$CFLAGS"
5526
5527		if test -n "$IP2LOCATION_LIB_DIR"; then
5528			if test -e "$IP2LOCATION_LIB_DIR/lib$IP2LOCATION_LIB_NAME.so"; then
5529				LDFLAGS="$LDFLAGS -L$IP2LOCATION_LIB_DIR"
5530				CFLAGS="$CFLAGS -L$IP2LOCATION_LIB_DIR"
5531				LIBS="-L$IP2LOCATION_LIB_DIR"
5532			else
5533				as_fn_error $? "IP2Location library file not found: $IP2LOCATION_INCLUDE_DIR/lib$IP2LOCATION_LIB_NAME.so" "$LINENO" 5
5534			fi
5535		fi
5536
5537		as_ac_Lib=`$as_echo "ac_cv_lib_$IP2LOCATION_LIB_NAME''_IP2Location_api_version_string" | $as_tr_sh`
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP2Location_api_version_string in -l$IP2LOCATION_LIB_NAME" >&5
5539$as_echo_n "checking for IP2Location_api_version_string in -l$IP2LOCATION_LIB_NAME... " >&6; }
5540if eval \${$as_ac_Lib+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  ac_check_lib_save_LIBS=$LIBS
5544LIBS="-l$IP2LOCATION_LIB_NAME  $LIBS"
5545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547
5548/* Override any GCC internal prototype to avoid an error.
5549   Use char because int might match the return type of a GCC
5550   builtin and then its argument prototype would still apply.  */
5551#ifdef __cplusplus
5552extern "C"
5553#endif
5554char IP2Location_api_version_string ();
5555int
5556main ()
5557{
5558return IP2Location_api_version_string ();
5559  ;
5560  return 0;
5561}
5562_ACEOF
5563if ac_fn_c_try_link "$LINENO"; then :
5564  eval "$as_ac_Lib=yes"
5565else
5566  eval "$as_ac_Lib=no"
5567fi
5568rm -f core conftest.err conftest.$ac_objext \
5569    conftest$ac_exeext conftest.$ac_ext
5570LIBS=$ac_check_lib_save_LIBS
5571fi
5572eval ac_res=\$$as_ac_Lib
5573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5574$as_echo "$ac_res" >&6; }
5575if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5576
5577			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location library supports API version string" >&5
5578$as_echo "*** IP2Location library supports API version string" >&6; }
5579
5580else
5581
5582			as_fn_error $? "IP2Location library file misses IP2Location_api_version_string - no longer supported" "$LINENO" 5
5583
5584fi
5585
5586
5587		as_ac_Lib=`$as_echo "ac_cv_lib_$IP2LOCATION_LIB_NAME''_IP2Location_lib_version_string" | $as_tr_sh`
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP2Location_lib_version_string in -l$IP2LOCATION_LIB_NAME" >&5
5589$as_echo_n "checking for IP2Location_lib_version_string in -l$IP2LOCATION_LIB_NAME... " >&6; }
5590if eval \${$as_ac_Lib+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  ac_check_lib_save_LIBS=$LIBS
5594LIBS="-l$IP2LOCATION_LIB_NAME  $LIBS"
5595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h.  */
5597
5598/* Override any GCC internal prototype to avoid an error.
5599   Use char because int might match the return type of a GCC
5600   builtin and then its argument prototype would still apply.  */
5601#ifdef __cplusplus
5602extern "C"
5603#endif
5604char IP2Location_lib_version_string ();
5605int
5606main ()
5607{
5608return IP2Location_lib_version_string ();
5609  ;
5610  return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_link "$LINENO"; then :
5614  eval "$as_ac_Lib=yes"
5615else
5616  eval "$as_ac_Lib=no"
5617fi
5618rm -f core conftest.err conftest.$ac_objext \
5619    conftest$ac_exeext conftest.$ac_ext
5620LIBS=$ac_check_lib_save_LIBS
5621fi
5622eval ac_res=\$$as_ac_Lib
5623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5624$as_echo "$ac_res" >&6; }
5625if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5626
5627			if test "$IP2LOCATION_HAS_LIB_STRING" != "yes"; then
5628				as_fn_error $? "IP2Location library header file misses IP2Location_lib_version_string while library contains" "$LINENO" 5
5629			else
5630				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location library supports LIB version string" >&5
5631$as_echo "*** IP2Location library supports LIB version string" >&6; }
5632			fi
5633
5634fi
5635
5636
5637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CPPFLAGS=$CPPFLAGS" >&5
5638$as_echo "***** CPPFLAGS=$CPPFLAGS" >&6; }
5639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** CFLAGS  =$CFLAGS" >&5
5640$as_echo "***** CFLAGS  =$CFLAGS" >&6; }
5641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** LDFLAGS =$LDFLAGS" >&5
5642$as_echo "***** LDFLAGS =$LDFLAGS" >&6; }
5643
5644		as_ac_Lib=`$as_echo "ac_cv_lib_$IP2LOCATION_LIB_NAME''_IP2Location_open" | $as_tr_sh`
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP2Location_open in -l$IP2LOCATION_LIB_NAME" >&5
5646$as_echo_n "checking for IP2Location_open in -l$IP2LOCATION_LIB_NAME... " >&6; }
5647if eval \${$as_ac_Lib+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  ac_check_lib_save_LIBS=$LIBS
5651LIBS="-l$IP2LOCATION_LIB_NAME  $LIBS"
5652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654
5655/* Override any GCC internal prototype to avoid an error.
5656   Use char because int might match the return type of a GCC
5657   builtin and then its argument prototype would still apply.  */
5658#ifdef __cplusplus
5659extern "C"
5660#endif
5661char IP2Location_open ();
5662int
5663main ()
5664{
5665return IP2Location_open ();
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_link "$LINENO"; then :
5671  eval "$as_ac_Lib=yes"
5672else
5673  eval "$as_ac_Lib=no"
5674fi
5675rm -f core conftest.err conftest.$ac_objext \
5676    conftest$ac_exeext conftest.$ac_ext
5677LIBS=$ac_check_lib_save_LIBS
5678fi
5679eval ac_res=\$$as_ac_Lib
5680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5681$as_echo "$ac_res" >&6; }
5682if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5683
5684
5685$as_echo "#define SUPPORT_IP2LOCATION 1" >>confdefs.h
5686
5687			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location support enabled" >&5
5688$as_echo "*** IP2Location support enabled" >&6; }
5689
5690else
5691
5692			as_fn_error $? "IP2Location library header files were found but the library was not found, LDFLAGS=$LDFLAGS, CFLAGS=$CFLAGS" "$LINENO" 5
5693
5694fi
5695
5696	else
5697		ac_fn_c_check_decl "$LINENO" "IP2Location_api_version_string" "ac_cv_have_decl_IP2Location_api_version_string" "$ac_includes_default"
5698if test "x$ac_cv_have_decl_IP2Location_api_version_string" = xyes; then :
5699  ac_have_decl=1
5700else
5701  ac_have_decl=0
5702fi
5703
5704cat >>confdefs.h <<_ACEOF
5705#define HAVE_DECL_IP2LOCATION_API_VERSION_STRING $ac_have_decl
5706_ACEOF
5707if test $ac_have_decl = 1; then :
5708
5709			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location header supports API version string" >&5
5710$as_echo "*** IP2Location header supports API version string" >&6; }
5711
5712else
5713
5714			as_fn_error $? "IP2Location library header file misses IP2Location_api_version_string - no longer supported" "$LINENO" 5
5715
5716fi
5717
5718
5719		# wrapper detects by itself the real support
5720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location dyn lib: $ip2location_dyn_lib" >&5
5721$as_echo "*** IP2Location dyn lib: $ip2location_dyn_lib" >&6; }
5722
5723cat >>confdefs.h <<_ACEOF
5724#define IP2LOCATION_DYN_LIB "$ip2location_dyn_lib"
5725_ACEOF
5726
5727
5728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2Location support will be implemented by using dynamic load of library" >&5
5729$as_echo "*** IP2Location support will be implemented by using dynamic load of library" >&6; }
5730
5731$as_echo "#define SUPPORT_IP2LOCATION 1" >>confdefs.h
5732
5733
5734$as_echo "#define SUPPORT_IP2LOCATION_DYN 1" >>confdefs.h
5735
5736	fi
5737fi
5738
5739IP2LOCATION_DB=$ip2location_db
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749if test -n "$IP2LOCATION_INCLUDE_VERSION"; then
5750
5751cat >>confdefs.h <<_ACEOF
5752#define IP2LOCATION_INCLUDE_VERSION "$IP2LOCATION_INCLUDE_VERSION"
5753_ACEOF
5754
5755fi
5756
5757
5758GEOIP_LIB_NAME="GeoIP"
5759GEOIP_INCLUDE_VERSION=""
5760
5761# Check whether --enable-geoip was given.
5762if test "${enable_geoip+set}" = set; then :
5763  enableval=$enable_geoip;
5764
5765fi
5766
5767
5768
5769# Check whether --with-geoip-dynamic was given.
5770if test "${with_geoip_dynamic+set}" = set; then :
5771  withval=$with_geoip_dynamic;
5772
5773fi
5774
5775
5776
5777# Check whether --with-geoip-headers was given.
5778if test "${with_geoip_headers+set}" = set; then :
5779  withval=$with_geoip_headers;
5780
5781fi
5782
5783
5784
5785# Check whether --with-geoip-headers-fallback was given.
5786if test "${with_geoip_headers_fallback+set}" = set; then :
5787  withval=$with_geoip_headers_fallback;
5788
5789fi
5790
5791
5792
5793# Check whether --with-geoip-lib was given.
5794if test "${with_geoip_lib+set}" = set; then :
5795  withval=$with_geoip_lib;
5796
5797fi
5798
5799
5800
5801# Check whether --with-geoip-static was given.
5802if test "${with_geoip_static+set}" = set; then :
5803  withval=$with_geoip_static;
5804
5805fi
5806
5807
5808
5809# Check whether --with-geoip-dyn-lib was given.
5810if test "${with_geoip_dyn_lib+set}" = set; then :
5811  withval=$with_geoip_dyn_lib;
5812
5813fi
5814
5815
5816
5817# Check whether --with-geoip-ipv6-compat was given.
5818if test "${with_geoip_ipv6_compat+set}" = set; then :
5819  withval=$with_geoip_ipv6_compat;
5820
5821fi
5822
5823
5824
5825if test "$GEOIP2" = "yes"; then
5826	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GeoIP (MaxMindDB) auotenabled\"" >&5
5827$as_echo "*** GeoIP (MaxMindDB) auotenabled\"" >&6; }
5828fi
5829
5830
5831
5832# Check whether --with-geoip-db was given.
5833if test "${with_geoip_db+set}" = set; then :
5834  withval=$with_geoip_db;
5835		geoip_db="$with_geoip_db"
5836
5837else
5838
5839		geoip_db=$geoip_db_default
5840
5841fi
5842
5843
5844
5845if test "$GEOIP2" = "yes"; then
5846
5847$as_echo "#define SUPPORT_GEOIP2 1" >>confdefs.h
5848
5849	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GeoIP (MaxMindDB) support enabled" >&5
5850$as_echo "*** GeoIP (MaxMindDB) support enabled" >&6; }
5851
5852	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GeoIP (MaxMindDB) database directory: $geoip_db" >&5
5853$as_echo "*** GeoIP (MaxMindDB) database directory: $geoip_db" >&6; }
5854
5855cat >>confdefs.h <<_ACEOF
5856#define GEOIP2_DB "$geoip_db"
5857_ACEOF
5858
5859fi
5860
5861GEOIP2_DB=$geoip_db
5862
5863
5864if test "$DYNAMIC_LOAD" = "yes"; then
5865	if test "$GEOIP_DYN" = "yes" -o "$IP2LOCATION_DYN" = "yes" -o "$MMDB_DYN" = "yes"; then
5866		DYNAMIC_LOAD="yes"
5867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Dynamic loading of libraries is ENABLED" >&5
5868$as_echo "*** Dynamic loading of libraries is ENABLED" >&6; }
5869		DYNLOAD_LIB="-rdynamic -ldl"
5870	fi
5871fi
5872
5873
5874
5875
5876# Check whether --enable-mod_ipv6calc was given.
5877if test "${enable_mod_ipv6calc+set}" = set; then :
5878  enableval=$enable_mod_ipv6calc;
5879fi
5880
5881
5882if test "$enable_mod_ipv6calc" = "yes"; then
5883    ENABLE_MOD_IPV6CALC="1"
5884else
5885    ENABLE_MOD_IPV6CALC="0"
5886fi
5887
5888
5889
5890
5891# Check whether --with-apxs was given.
5892if test "${with_apxs+set}" = set; then :
5893  withval=$with_apxs; APXS="$with_apxs"
5894fi
5895
5896
5897if test "$ENABLE_MOD_IPV6CALC" = "1"; then
5898	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build of mod_ipv6calc enabled" >&5
5899$as_echo "Build of mod_ipv6calc enabled" >&6; }
5900
5901	if test -z "$APXS"; then
5902		for ac_prog in apxs2 apxs
5903do
5904  # Extract the first word of "$ac_prog", so it can be a program name with args.
5905set dummy $ac_prog; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if ${ac_cv_path_APXS+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  case $APXS in
5912  [\\/]* | ?:[\\/]*)
5913  ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
5914  ;;
5915  *)
5916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917as_dummy="$PATH:/usr/local/apache/bin:/usr/sbin"
5918for as_dir in $as_dummy
5919do
5920  IFS=$as_save_IFS
5921  test -z "$as_dir" && as_dir=.
5922    for ac_exec_ext in '' $ac_executable_extensions; do
5923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924    ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
5925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926    break 2
5927  fi
5928done
5929  done
5930IFS=$as_save_IFS
5931
5932  ;;
5933esac
5934fi
5935APXS=$ac_cv_path_APXS
5936if test -n "$APXS"; then
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
5938$as_echo "$APXS" >&6; }
5939else
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945  test -n "$APXS" && break
5946done
5947
5948	fi
5949
5950	if test -z "$APXS"; then
5951		as_fn_error $? "No APXS binary found: cannot create Apache module - missing httpd-devel?" "$LINENO" 5
5952	else
5953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: APXS binary found: $APXS" >&5
5954$as_echo "APXS binary found: $APXS" >&6; }
5955
5956		# partially taken from configure.ac from mod_wsgi
5957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache version" >&5
5958$as_echo_n "checking Apache version... " >&6; }
5959		HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
5960		HTTPD_INCLUDEDIR="`${APXS} -q INCLUDEDIR`"
5961		if test -x ${HTTPD}; then
5962		    HTTPD_VERSION=`${HTTPD} -v | awk '/version/ {print $3}' \
5963		     | awk -F/ '{print $2}'`
5964		else
5965		    if test -f ${HTTPD_INCLUDEDIR}/ap_release.h; then
5966			HTTPD_VERSION=`grep '^#define AP_SERVER_MAJORVERSION_NUMBER ' \
5967			 ${HTTPD_INCLUDEDIR}/ap_release.h | sed -e \
5968			 's/^#define AP_SERVER_MAJORVERSION_NUMBER \([0-9]\).*/\1.X/'`
5969		    else
5970			if test -f ${HTTPD_INCLUDEDIR}/httpd.h; then
5971			    HTTPD_VERSION=`grep '^#define APACHE_RELEASE ' \
5972			     ${HTTPD_INCLUDEDIR}/httpd.h | sed -e \
5973			     's/^#define APACHE_RELEASE \([0-9]\).*/\1.X/'`
5974			else
5975			    HTTPD_VERSION="2.?"
5976			fi
5977		    fi
5978		fi
5979
5980		HTTPD_LIBEXECDIR="`${APXS} -q libexecdir`"
5981		if test -z "$HTTPD_LIBEXECDIR"; then
5982			as_fn_error $? "${APXS} cannot retrieve libexecdir" "$LINENO" 5
5983		fi
5984
5985		HTTPD_SYSCONFDIR="`${APXS} -q sysconfdir`"
5986		if test -z "$HTTPD_SYSCONFDIR"; then
5987			as_fn_error $? "${APXS} cannot retrieve sysconfdir" "$LINENO" 5
5988		fi
5989
5990		if test -n "$HTTPD_SYSCONFDIR"; then
5991			HTTPD_SYSCONFDIR="$HTTPD_SYSCONFDIR.d"
5992		fi
5993		if test -n "$HTTPD_VERSION"; then
5994			HTTPD_VERSION_MAJOR_MINOR=`echo "$HTTPD_VERSION" | awk -F. '{ print $1 "." $2 }'`
5995		fi
5996	fi
5997
5998
5999
6000
6001
6002else
6003	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build of mod_ipv6calc NOT enabled" >&5
6004$as_echo "$as_me: WARNING: Build of mod_ipv6calc NOT enabled" >&2;}
6005fi
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015ac_config_files="$ac_config_files Makefile md5/Makefile tools/Makefile getopt/Makefile ipv6calc/Makefile lib/Makefile man/Makefile databases/lib/Makefile ipv6logconv/Makefile ipv6loganon/Makefile ipv6logstats/Makefile ipv6calcweb/Makefile contrib/ipv6calc.spec tools/ipv6calc-db-update.sh tools/DBIP-update.sh tools/IP2Location-update.sh tools/GeoIP-update.sh mod_ipv6calc/Makefile VERSION"
6016
6017cat >confcache <<\_ACEOF
6018# This file is a shell script that caches the results of configure
6019# tests run on this system so they can be shared between configure
6020# scripts and configure runs, see configure's option --config-cache.
6021# It is not useful on other systems.  If it contains results you don't
6022# want to keep, you may remove or edit it.
6023#
6024# config.status only pays attention to the cache file if you give it
6025# the --recheck option to rerun configure.
6026#
6027# `ac_cv_env_foo' variables (set or unset) will be overridden when
6028# loading this file, other *unset* `ac_cv_foo' will be assigned the
6029# following values.
6030
6031_ACEOF
6032
6033# The following way of writing the cache mishandles newlines in values,
6034# but we know of no workaround that is simple, portable, and efficient.
6035# So, we kill variables containing newlines.
6036# Ultrix sh set writes to stderr and can't be redirected directly,
6037# and sets the high bit in the cache file unless we assign to the vars.
6038(
6039  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6040    eval ac_val=\$$ac_var
6041    case $ac_val in #(
6042    *${as_nl}*)
6043      case $ac_var in #(
6044      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6046      esac
6047      case $ac_var in #(
6048      _ | IFS | as_nl) ;; #(
6049      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6050      *) { eval $ac_var=; unset $ac_var;} ;;
6051      esac ;;
6052    esac
6053  done
6054
6055  (set) 2>&1 |
6056    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6057    *${as_nl}ac_space=\ *)
6058      # `set' does not quote correctly, so add quotes: double-quote
6059      # substitution turns \\\\ into \\, and sed turns \\ into \.
6060      sed -n \
6061	"s/'/'\\\\''/g;
6062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6063      ;; #(
6064    *)
6065      # `set' quotes correctly as required by POSIX, so do not add quotes.
6066      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6067      ;;
6068    esac |
6069    sort
6070) |
6071  sed '
6072     /^ac_cv_env_/b end
6073     t clear
6074     :clear
6075     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6076     t end
6077     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6078     :end' >>confcache
6079if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6080  if test -w "$cache_file"; then
6081    if test "x$cache_file" != "x/dev/null"; then
6082      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6083$as_echo "$as_me: updating cache $cache_file" >&6;}
6084      if test ! -f "$cache_file" || test -h "$cache_file"; then
6085	cat confcache >"$cache_file"
6086      else
6087        case $cache_file in #(
6088        */* | ?:*)
6089	  mv -f confcache "$cache_file"$$ &&
6090	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6091        *)
6092	  mv -f confcache "$cache_file" ;;
6093	esac
6094      fi
6095    fi
6096  else
6097    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6098$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6099  fi
6100fi
6101rm -f confcache
6102
6103test "x$prefix" = xNONE && prefix=$ac_default_prefix
6104# Let make expand exec_prefix.
6105test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6106
6107DEFS=-DHAVE_CONFIG_H
6108
6109ac_libobjs=
6110ac_ltlibobjs=
6111U=
6112for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6113  # 1. Remove the extension, and $U if already installed.
6114  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6115  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6116  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6117  #    will be set to the directory where LIBOBJS objects are built.
6118  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6119  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6120done
6121LIBOBJS=$ac_libobjs
6122
6123LTLIBOBJS=$ac_ltlibobjs
6124
6125
6126
6127
6128: "${CONFIG_STATUS=./config.status}"
6129ac_write_fail=0
6130ac_clean_files_save=$ac_clean_files
6131ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6133$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6134as_write_fail=0
6135cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6136#! $SHELL
6137# Generated by $as_me.
6138# Run this file to recreate the current configuration.
6139# Compiler output produced by configure, useful for debugging
6140# configure, is in config.log if it exists.
6141
6142debug=false
6143ac_cs_recheck=false
6144ac_cs_silent=false
6145
6146SHELL=\${CONFIG_SHELL-$SHELL}
6147export SHELL
6148_ASEOF
6149cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6150## -------------------- ##
6151## M4sh Initialization. ##
6152## -------------------- ##
6153
6154# Be more Bourne compatible
6155DUALCASE=1; export DUALCASE # for MKS sh
6156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6157  emulate sh
6158  NULLCMD=:
6159  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6160  # is contrary to our usage.  Disable this feature.
6161  alias -g '${1+"$@"}'='"$@"'
6162  setopt NO_GLOB_SUBST
6163else
6164  case `(set -o) 2>/dev/null` in #(
6165  *posix*) :
6166    set -o posix ;; #(
6167  *) :
6168     ;;
6169esac
6170fi
6171
6172
6173as_nl='
6174'
6175export as_nl
6176# Printing a long string crashes Solaris 7 /usr/bin/printf.
6177as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6180# Prefer a ksh shell builtin over an external printf program on Solaris,
6181# but without wasting forks for bash or zsh.
6182if test -z "$BASH_VERSION$ZSH_VERSION" \
6183    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6184  as_echo='print -r --'
6185  as_echo_n='print -rn --'
6186elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6187  as_echo='printf %s\n'
6188  as_echo_n='printf %s'
6189else
6190  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6191    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6192    as_echo_n='/usr/ucb/echo -n'
6193  else
6194    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6195    as_echo_n_body='eval
6196      arg=$1;
6197      case $arg in #(
6198      *"$as_nl"*)
6199	expr "X$arg" : "X\\(.*\\)$as_nl";
6200	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6201      esac;
6202      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6203    '
6204    export as_echo_n_body
6205    as_echo_n='sh -c $as_echo_n_body as_echo'
6206  fi
6207  export as_echo_body
6208  as_echo='sh -c $as_echo_body as_echo'
6209fi
6210
6211# The user is always right.
6212if test "${PATH_SEPARATOR+set}" != set; then
6213  PATH_SEPARATOR=:
6214  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6215    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6216      PATH_SEPARATOR=';'
6217  }
6218fi
6219
6220
6221# IFS
6222# We need space, tab and new line, in precisely that order.  Quoting is
6223# there to prevent editors from complaining about space-tab.
6224# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6225# splitting by setting IFS to empty value.)
6226IFS=" ""	$as_nl"
6227
6228# Find who we are.  Look in the path if we contain no directory separator.
6229as_myself=
6230case $0 in #((
6231  *[\\/]* ) as_myself=$0 ;;
6232  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6238  done
6239IFS=$as_save_IFS
6240
6241     ;;
6242esac
6243# We did not find ourselves, most probably we were run as `sh COMMAND'
6244# in which case we are not to be found in the path.
6245if test "x$as_myself" = x; then
6246  as_myself=$0
6247fi
6248if test ! -f "$as_myself"; then
6249  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6250  exit 1
6251fi
6252
6253# Unset variables that we do not need and which cause bugs (e.g. in
6254# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6255# suppresses any "Segmentation fault" message there.  '((' could
6256# trigger a bug in pdksh 5.2.14.
6257for as_var in BASH_ENV ENV MAIL MAILPATH
6258do eval test x\${$as_var+set} = xset \
6259  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6260done
6261PS1='$ '
6262PS2='> '
6263PS4='+ '
6264
6265# NLS nuisances.
6266LC_ALL=C
6267export LC_ALL
6268LANGUAGE=C
6269export LANGUAGE
6270
6271# CDPATH.
6272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6273
6274
6275# as_fn_error STATUS ERROR [LINENO LOG_FD]
6276# ----------------------------------------
6277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6279# script with STATUS, using 1 if that was 0.
6280as_fn_error ()
6281{
6282  as_status=$1; test $as_status -eq 0 && as_status=1
6283  if test "$4"; then
6284    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6285    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6286  fi
6287  $as_echo "$as_me: error: $2" >&2
6288  as_fn_exit $as_status
6289} # as_fn_error
6290
6291
6292# as_fn_set_status STATUS
6293# -----------------------
6294# Set $? to STATUS, without forking.
6295as_fn_set_status ()
6296{
6297  return $1
6298} # as_fn_set_status
6299
6300# as_fn_exit STATUS
6301# -----------------
6302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6303as_fn_exit ()
6304{
6305  set +e
6306  as_fn_set_status $1
6307  exit $1
6308} # as_fn_exit
6309
6310# as_fn_unset VAR
6311# ---------------
6312# Portably unset VAR.
6313as_fn_unset ()
6314{
6315  { eval $1=; unset $1;}
6316}
6317as_unset=as_fn_unset
6318# as_fn_append VAR VALUE
6319# ----------------------
6320# Append the text in VALUE to the end of the definition contained in VAR. Take
6321# advantage of any shell optimizations that allow amortized linear growth over
6322# repeated appends, instead of the typical quadratic growth present in naive
6323# implementations.
6324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6325  eval 'as_fn_append ()
6326  {
6327    eval $1+=\$2
6328  }'
6329else
6330  as_fn_append ()
6331  {
6332    eval $1=\$$1\$2
6333  }
6334fi # as_fn_append
6335
6336# as_fn_arith ARG...
6337# ------------------
6338# Perform arithmetic evaluation on the ARGs, and store the result in the
6339# global $as_val. Take advantage of shells that can avoid forks. The arguments
6340# must be portable across $(()) and expr.
6341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6342  eval 'as_fn_arith ()
6343  {
6344    as_val=$(( $* ))
6345  }'
6346else
6347  as_fn_arith ()
6348  {
6349    as_val=`expr "$@" || test $? -eq 1`
6350  }
6351fi # as_fn_arith
6352
6353
6354if expr a : '\(a\)' >/dev/null 2>&1 &&
6355   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6356  as_expr=expr
6357else
6358  as_expr=false
6359fi
6360
6361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6362  as_basename=basename
6363else
6364  as_basename=false
6365fi
6366
6367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6368  as_dirname=dirname
6369else
6370  as_dirname=false
6371fi
6372
6373as_me=`$as_basename -- "$0" ||
6374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6375	 X"$0" : 'X\(//\)$' \| \
6376	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6377$as_echo X/"$0" |
6378    sed '/^.*\/\([^/][^/]*\)\/*$/{
6379	    s//\1/
6380	    q
6381	  }
6382	  /^X\/\(\/\/\)$/{
6383	    s//\1/
6384	    q
6385	  }
6386	  /^X\/\(\/\).*/{
6387	    s//\1/
6388	    q
6389	  }
6390	  s/.*/./; q'`
6391
6392# Avoid depending upon Character Ranges.
6393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6396as_cr_digits='0123456789'
6397as_cr_alnum=$as_cr_Letters$as_cr_digits
6398
6399ECHO_C= ECHO_N= ECHO_T=
6400case `echo -n x` in #(((((
6401-n*)
6402  case `echo 'xy\c'` in
6403  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6404  xy)  ECHO_C='\c';;
6405  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6406       ECHO_T='	';;
6407  esac;;
6408*)
6409  ECHO_N='-n';;
6410esac
6411
6412rm -f conf$$ conf$$.exe conf$$.file
6413if test -d conf$$.dir; then
6414  rm -f conf$$.dir/conf$$.file
6415else
6416  rm -f conf$$.dir
6417  mkdir conf$$.dir 2>/dev/null
6418fi
6419if (echo >conf$$.file) 2>/dev/null; then
6420  if ln -s conf$$.file conf$$ 2>/dev/null; then
6421    as_ln_s='ln -s'
6422    # ... but there are two gotchas:
6423    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6424    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6425    # In both cases, we have to default to `cp -pR'.
6426    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6427      as_ln_s='cp -pR'
6428  elif ln conf$$.file conf$$ 2>/dev/null; then
6429    as_ln_s=ln
6430  else
6431    as_ln_s='cp -pR'
6432  fi
6433else
6434  as_ln_s='cp -pR'
6435fi
6436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6437rmdir conf$$.dir 2>/dev/null
6438
6439
6440# as_fn_mkdir_p
6441# -------------
6442# Create "$as_dir" as a directory, including parents if necessary.
6443as_fn_mkdir_p ()
6444{
6445
6446  case $as_dir in #(
6447  -*) as_dir=./$as_dir;;
6448  esac
6449  test -d "$as_dir" || eval $as_mkdir_p || {
6450    as_dirs=
6451    while :; do
6452      case $as_dir in #(
6453      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6454      *) as_qdir=$as_dir;;
6455      esac
6456      as_dirs="'$as_qdir' $as_dirs"
6457      as_dir=`$as_dirname -- "$as_dir" ||
6458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6459	 X"$as_dir" : 'X\(//\)[^/]' \| \
6460	 X"$as_dir" : 'X\(//\)$' \| \
6461	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6462$as_echo X"$as_dir" |
6463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6464	    s//\1/
6465	    q
6466	  }
6467	  /^X\(\/\/\)[^/].*/{
6468	    s//\1/
6469	    q
6470	  }
6471	  /^X\(\/\/\)$/{
6472	    s//\1/
6473	    q
6474	  }
6475	  /^X\(\/\).*/{
6476	    s//\1/
6477	    q
6478	  }
6479	  s/.*/./; q'`
6480      test -d "$as_dir" && break
6481    done
6482    test -z "$as_dirs" || eval "mkdir $as_dirs"
6483  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6484
6485
6486} # as_fn_mkdir_p
6487if mkdir -p . 2>/dev/null; then
6488  as_mkdir_p='mkdir -p "$as_dir"'
6489else
6490  test -d ./-p && rmdir ./-p
6491  as_mkdir_p=false
6492fi
6493
6494
6495# as_fn_executable_p FILE
6496# -----------------------
6497# Test if FILE is an executable regular file.
6498as_fn_executable_p ()
6499{
6500  test -f "$1" && test -x "$1"
6501} # as_fn_executable_p
6502as_test_x='test -x'
6503as_executable_p=as_fn_executable_p
6504
6505# Sed expression to map a string onto a valid CPP name.
6506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6507
6508# Sed expression to map a string onto a valid variable name.
6509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6510
6511
6512exec 6>&1
6513## ----------------------------------- ##
6514## Main body of $CONFIG_STATUS script. ##
6515## ----------------------------------- ##
6516_ASEOF
6517test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6518
6519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6520# Save the log message, to keep $0 and so on meaningful, and to
6521# report actual input values of CONFIG_FILES etc. instead of their
6522# values after options handling.
6523ac_log="
6524This file was extended by ipv6calc $as_me 3.2.0, which was
6525generated by GNU Autoconf 2.69.  Invocation command line was
6526
6527  CONFIG_FILES    = $CONFIG_FILES
6528  CONFIG_HEADERS  = $CONFIG_HEADERS
6529  CONFIG_LINKS    = $CONFIG_LINKS
6530  CONFIG_COMMANDS = $CONFIG_COMMANDS
6531  $ $0 $@
6532
6533on `(hostname || uname -n) 2>/dev/null | sed 1q`
6534"
6535
6536_ACEOF
6537
6538case $ac_config_files in *"
6539"*) set x $ac_config_files; shift; ac_config_files=$*;;
6540esac
6541
6542case $ac_config_headers in *"
6543"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6544esac
6545
6546
6547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6548# Files that config.status was made for.
6549config_files="$ac_config_files"
6550config_headers="$ac_config_headers"
6551
6552_ACEOF
6553
6554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6555ac_cs_usage="\
6556\`$as_me' instantiates files and other configuration actions
6557from templates according to the current configuration.  Unless the files
6558and actions are specified as TAGs, all are instantiated by default.
6559
6560Usage: $0 [OPTION]... [TAG]...
6561
6562  -h, --help       print this help, then exit
6563  -V, --version    print version number and configuration settings, then exit
6564      --config     print configuration, then exit
6565  -q, --quiet, --silent
6566                   do not print progress messages
6567  -d, --debug      don't remove temporary files
6568      --recheck    update $as_me by reconfiguring in the same conditions
6569      --file=FILE[:TEMPLATE]
6570                   instantiate the configuration file FILE
6571      --header=FILE[:TEMPLATE]
6572                   instantiate the configuration header FILE
6573
6574Configuration files:
6575$config_files
6576
6577Configuration headers:
6578$config_headers
6579
6580Report bugs to <ipv6calc@deepspace6.net>.
6581ipv6calc home page: <http://www.deepspace6.net/projects/ipv6calc.html>."
6582
6583_ACEOF
6584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6585ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6586ac_cs_version="\\
6587ipv6calc config.status 3.2.0
6588configured by $0, generated by GNU Autoconf 2.69,
6589  with options \\"\$ac_cs_config\\"
6590
6591Copyright (C) 2012 Free Software Foundation, Inc.
6592This config.status script is free software; the Free Software Foundation
6593gives unlimited permission to copy, distribute and modify it."
6594
6595ac_pwd='$ac_pwd'
6596srcdir='$srcdir'
6597AWK='$AWK'
6598test -n "\$AWK" || AWK=awk
6599_ACEOF
6600
6601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6602# The default lists apply if the user does not specify any file.
6603ac_need_defaults=:
6604while test $# != 0
6605do
6606  case $1 in
6607  --*=?*)
6608    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6609    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6610    ac_shift=:
6611    ;;
6612  --*=)
6613    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6614    ac_optarg=
6615    ac_shift=:
6616    ;;
6617  *)
6618    ac_option=$1
6619    ac_optarg=$2
6620    ac_shift=shift
6621    ;;
6622  esac
6623
6624  case $ac_option in
6625  # Handling of the options.
6626  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6627    ac_cs_recheck=: ;;
6628  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6629    $as_echo "$ac_cs_version"; exit ;;
6630  --config | --confi | --conf | --con | --co | --c )
6631    $as_echo "$ac_cs_config"; exit ;;
6632  --debug | --debu | --deb | --de | --d | -d )
6633    debug=: ;;
6634  --file | --fil | --fi | --f )
6635    $ac_shift
6636    case $ac_optarg in
6637    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6638    '') as_fn_error $? "missing file argument" ;;
6639    esac
6640    as_fn_append CONFIG_FILES " '$ac_optarg'"
6641    ac_need_defaults=false;;
6642  --header | --heade | --head | --hea )
6643    $ac_shift
6644    case $ac_optarg in
6645    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6646    esac
6647    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6648    ac_need_defaults=false;;
6649  --he | --h)
6650    # Conflict between --help and --header
6651    as_fn_error $? "ambiguous option: \`$1'
6652Try \`$0 --help' for more information.";;
6653  --help | --hel | -h )
6654    $as_echo "$ac_cs_usage"; exit ;;
6655  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6656  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6657    ac_cs_silent=: ;;
6658
6659  # This is an error.
6660  -*) as_fn_error $? "unrecognized option: \`$1'
6661Try \`$0 --help' for more information." ;;
6662
6663  *) as_fn_append ac_config_targets " $1"
6664     ac_need_defaults=false ;;
6665
6666  esac
6667  shift
6668done
6669
6670ac_configure_extra_args=
6671
6672if $ac_cs_silent; then
6673  exec 6>/dev/null
6674  ac_configure_extra_args="$ac_configure_extra_args --silent"
6675fi
6676
6677_ACEOF
6678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6679if \$ac_cs_recheck; then
6680  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6681  shift
6682  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6683  CONFIG_SHELL='$SHELL'
6684  export CONFIG_SHELL
6685  exec "\$@"
6686fi
6687
6688_ACEOF
6689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6690exec 5>>config.log
6691{
6692  echo
6693  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6694## Running $as_me. ##
6695_ASBOX
6696  $as_echo "$ac_log"
6697} >&5
6698
6699_ACEOF
6700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6701_ACEOF
6702
6703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6704
6705# Handling of arguments.
6706for ac_config_target in $ac_config_targets
6707do
6708  case $ac_config_target in
6709    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6710    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6711    "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
6712    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
6713    "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
6714    "ipv6calc/Makefile") CONFIG_FILES="$CONFIG_FILES ipv6calc/Makefile" ;;
6715    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6716    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6717    "databases/lib/Makefile") CONFIG_FILES="$CONFIG_FILES databases/lib/Makefile" ;;
6718    "ipv6logconv/Makefile") CONFIG_FILES="$CONFIG_FILES ipv6logconv/Makefile" ;;
6719    "ipv6loganon/Makefile") CONFIG_FILES="$CONFIG_FILES ipv6loganon/Makefile" ;;
6720    "ipv6logstats/Makefile") CONFIG_FILES="$CONFIG_FILES ipv6logstats/Makefile" ;;
6721    "ipv6calcweb/Makefile") CONFIG_FILES="$CONFIG_FILES ipv6calcweb/Makefile" ;;
6722    "contrib/ipv6calc.spec") CONFIG_FILES="$CONFIG_FILES contrib/ipv6calc.spec" ;;
6723    "tools/ipv6calc-db-update.sh") CONFIG_FILES="$CONFIG_FILES tools/ipv6calc-db-update.sh" ;;
6724    "tools/DBIP-update.sh") CONFIG_FILES="$CONFIG_FILES tools/DBIP-update.sh" ;;
6725    "tools/IP2Location-update.sh") CONFIG_FILES="$CONFIG_FILES tools/IP2Location-update.sh" ;;
6726    "tools/GeoIP-update.sh") CONFIG_FILES="$CONFIG_FILES tools/GeoIP-update.sh" ;;
6727    "mod_ipv6calc/Makefile") CONFIG_FILES="$CONFIG_FILES mod_ipv6calc/Makefile" ;;
6728    "VERSION") CONFIG_FILES="$CONFIG_FILES VERSION" ;;
6729
6730  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6731  esac
6732done
6733
6734
6735# If the user did not use the arguments to specify the items to instantiate,
6736# then the envvar interface is used.  Set only those that are not.
6737# We use the long form for the default assignment because of an extremely
6738# bizarre bug on SunOS 4.1.3.
6739if $ac_need_defaults; then
6740  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6741  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6742fi
6743
6744# Have a temporary directory for convenience.  Make it in the build tree
6745# simply because there is no reason against having it here, and in addition,
6746# creating and moving files from /tmp can sometimes cause problems.
6747# Hook for its removal unless debugging.
6748# Note that there is a small window in which the directory will not be cleaned:
6749# after its creation but before its name has been assigned to `$tmp'.
6750$debug ||
6751{
6752  tmp= ac_tmp=
6753  trap 'exit_status=$?
6754  : "${ac_tmp:=$tmp}"
6755  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6756' 0
6757  trap 'as_fn_exit 1' 1 2 13 15
6758}
6759# Create a (secure) tmp directory for tmp files.
6760
6761{
6762  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6763  test -d "$tmp"
6764}  ||
6765{
6766  tmp=./conf$$-$RANDOM
6767  (umask 077 && mkdir "$tmp")
6768} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6769ac_tmp=$tmp
6770
6771# Set up the scripts for CONFIG_FILES section.
6772# No need to generate them if there are no CONFIG_FILES.
6773# This happens for instance with `./config.status config.h'.
6774if test -n "$CONFIG_FILES"; then
6775
6776
6777ac_cr=`echo X | tr X '\015'`
6778# On cygwin, bash can eat \r inside `` if the user requested igncr.
6779# But we know of no other shell where ac_cr would be empty at this
6780# point, so we can use a bashism as a fallback.
6781if test "x$ac_cr" = x; then
6782  eval ac_cr=\$\'\\r\'
6783fi
6784ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6785if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6786  ac_cs_awk_cr='\\r'
6787else
6788  ac_cs_awk_cr=$ac_cr
6789fi
6790
6791echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6792_ACEOF
6793
6794
6795{
6796  echo "cat >conf$$subs.awk <<_ACEOF" &&
6797  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6798  echo "_ACEOF"
6799} >conf$$subs.sh ||
6800  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6801ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6802ac_delim='%!_!# '
6803for ac_last_try in false false false false false :; do
6804  . ./conf$$subs.sh ||
6805    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6806
6807  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6808  if test $ac_delim_n = $ac_delim_num; then
6809    break
6810  elif $ac_last_try; then
6811    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6812  else
6813    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6814  fi
6815done
6816rm -f conf$$subs.sh
6817
6818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6819cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6820_ACEOF
6821sed -n '
6822h
6823s/^/S["/; s/!.*/"]=/
6824p
6825g
6826s/^[^!]*!//
6827:repl
6828t repl
6829s/'"$ac_delim"'$//
6830t delim
6831:nl
6832h
6833s/\(.\{148\}\)..*/\1/
6834t more1
6835s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6836p
6837n
6838b repl
6839:more1
6840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6841p
6842g
6843s/.\{148\}//
6844t nl
6845:delim
6846h
6847s/\(.\{148\}\)..*/\1/
6848t more2
6849s/["\\]/\\&/g; s/^/"/; s/$/"/
6850p
6851b
6852:more2
6853s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6854p
6855g
6856s/.\{148\}//
6857t delim
6858' <conf$$subs.awk | sed '
6859/^[^""]/{
6860  N
6861  s/\n//
6862}
6863' >>$CONFIG_STATUS || ac_write_fail=1
6864rm -f conf$$subs.awk
6865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6866_ACAWK
6867cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6868  for (key in S) S_is_set[key] = 1
6869  FS = ""
6870
6871}
6872{
6873  line = $ 0
6874  nfields = split(line, field, "@")
6875  substed = 0
6876  len = length(field[1])
6877  for (i = 2; i < nfields; i++) {
6878    key = field[i]
6879    keylen = length(key)
6880    if (S_is_set[key]) {
6881      value = S[key]
6882      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6883      len += length(value) + length(field[++i])
6884      substed = 1
6885    } else
6886      len += 1 + keylen
6887  }
6888
6889  print line
6890}
6891
6892_ACAWK
6893_ACEOF
6894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6895if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6896  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6897else
6898  cat
6899fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6900  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6901_ACEOF
6902
6903# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6904# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6905# trailing colons and then remove the whole line if VPATH becomes empty
6906# (actually we leave an empty line to preserve line numbers).
6907if test "x$srcdir" = x.; then
6908  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6909h
6910s///
6911s/^/:/
6912s/[	 ]*$/:/
6913s/:\$(srcdir):/:/g
6914s/:\${srcdir}:/:/g
6915s/:@srcdir@:/:/g
6916s/^:*//
6917s/:*$//
6918x
6919s/\(=[	 ]*\).*/\1/
6920G
6921s/\n//
6922s/^[^=]*=[	 ]*$//
6923}'
6924fi
6925
6926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6927fi # test -n "$CONFIG_FILES"
6928
6929# Set up the scripts for CONFIG_HEADERS section.
6930# No need to generate them if there are no CONFIG_HEADERS.
6931# This happens for instance with `./config.status Makefile'.
6932if test -n "$CONFIG_HEADERS"; then
6933cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6934BEGIN {
6935_ACEOF
6936
6937# Transform confdefs.h into an awk script `defines.awk', embedded as
6938# here-document in config.status, that substitutes the proper values into
6939# config.h.in to produce config.h.
6940
6941# Create a delimiter string that does not exist in confdefs.h, to ease
6942# handling of long lines.
6943ac_delim='%!_!# '
6944for ac_last_try in false false :; do
6945  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6946  if test -z "$ac_tt"; then
6947    break
6948  elif $ac_last_try; then
6949    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6950  else
6951    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6952  fi
6953done
6954
6955# For the awk script, D is an array of macro values keyed by name,
6956# likewise P contains macro parameters if any.  Preserve backslash
6957# newline sequences.
6958
6959ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6960sed -n '
6961s/.\{148\}/&'"$ac_delim"'/g
6962t rset
6963:rset
6964s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6965t def
6966d
6967:def
6968s/\\$//
6969t bsnl
6970s/["\\]/\\&/g
6971s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6972D["\1"]=" \3"/p
6973s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6974d
6975:bsnl
6976s/["\\]/\\&/g
6977s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6978D["\1"]=" \3\\\\\\n"\\/p
6979t cont
6980s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6981t cont
6982d
6983:cont
6984n
6985s/.\{148\}/&'"$ac_delim"'/g
6986t clear
6987:clear
6988s/\\$//
6989t bsnlc
6990s/["\\]/\\&/g; s/^/"/; s/$/"/p
6991d
6992:bsnlc
6993s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6994b cont
6995' <confdefs.h | sed '
6996s/'"$ac_delim"'/"\\\
6997"/g' >>$CONFIG_STATUS || ac_write_fail=1
6998
6999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7000  for (key in D) D_is_set[key] = 1
7001  FS = ""
7002}
7003/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7004  line = \$ 0
7005  split(line, arg, " ")
7006  if (arg[1] == "#") {
7007    defundef = arg[2]
7008    mac1 = arg[3]
7009  } else {
7010    defundef = substr(arg[1], 2)
7011    mac1 = arg[2]
7012  }
7013  split(mac1, mac2, "(") #)
7014  macro = mac2[1]
7015  prefix = substr(line, 1, index(line, defundef) - 1)
7016  if (D_is_set[macro]) {
7017    # Preserve the white space surrounding the "#".
7018    print prefix "define", macro P[macro] D[macro]
7019    next
7020  } else {
7021    # Replace #undef with comments.  This is necessary, for example,
7022    # in the case of _POSIX_SOURCE, which is predefined and required
7023    # on some systems where configure will not decide to define it.
7024    if (defundef == "undef") {
7025      print "/*", prefix defundef, macro, "*/"
7026      next
7027    }
7028  }
7029}
7030{ print }
7031_ACAWK
7032_ACEOF
7033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7034  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7035fi # test -n "$CONFIG_HEADERS"
7036
7037
7038eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7039shift
7040for ac_tag
7041do
7042  case $ac_tag in
7043  :[FHLC]) ac_mode=$ac_tag; continue;;
7044  esac
7045  case $ac_mode$ac_tag in
7046  :[FHL]*:*);;
7047  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7048  :[FH]-) ac_tag=-:-;;
7049  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7050  esac
7051  ac_save_IFS=$IFS
7052  IFS=:
7053  set x $ac_tag
7054  IFS=$ac_save_IFS
7055  shift
7056  ac_file=$1
7057  shift
7058
7059  case $ac_mode in
7060  :L) ac_source=$1;;
7061  :[FH])
7062    ac_file_inputs=
7063    for ac_f
7064    do
7065      case $ac_f in
7066      -) ac_f="$ac_tmp/stdin";;
7067      *) # Look for the file first in the build tree, then in the source tree
7068	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7069	 # because $ac_f cannot contain `:'.
7070	 test -f "$ac_f" ||
7071	   case $ac_f in
7072	   [\\/$]*) false;;
7073	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7074	   esac ||
7075	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7076      esac
7077      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7078      as_fn_append ac_file_inputs " '$ac_f'"
7079    done
7080
7081    # Let's still pretend it is `configure' which instantiates (i.e., don't
7082    # use $as_me), people would be surprised to read:
7083    #    /* config.h.  Generated by config.status.  */
7084    configure_input='Generated from '`
7085	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7086	`' by configure.'
7087    if test x"$ac_file" != x-; then
7088      configure_input="$ac_file.  $configure_input"
7089      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7090$as_echo "$as_me: creating $ac_file" >&6;}
7091    fi
7092    # Neutralize special characters interpreted by sed in replacement strings.
7093    case $configure_input in #(
7094    *\&* | *\|* | *\\* )
7095       ac_sed_conf_input=`$as_echo "$configure_input" |
7096       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7097    *) ac_sed_conf_input=$configure_input;;
7098    esac
7099
7100    case $ac_tag in
7101    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7102      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7103    esac
7104    ;;
7105  esac
7106
7107  ac_dir=`$as_dirname -- "$ac_file" ||
7108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7109	 X"$ac_file" : 'X\(//\)[^/]' \| \
7110	 X"$ac_file" : 'X\(//\)$' \| \
7111	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7112$as_echo X"$ac_file" |
7113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7114	    s//\1/
7115	    q
7116	  }
7117	  /^X\(\/\/\)[^/].*/{
7118	    s//\1/
7119	    q
7120	  }
7121	  /^X\(\/\/\)$/{
7122	    s//\1/
7123	    q
7124	  }
7125	  /^X\(\/\).*/{
7126	    s//\1/
7127	    q
7128	  }
7129	  s/.*/./; q'`
7130  as_dir="$ac_dir"; as_fn_mkdir_p
7131  ac_builddir=.
7132
7133case "$ac_dir" in
7134.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7135*)
7136  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7137  # A ".." for each directory in $ac_dir_suffix.
7138  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7139  case $ac_top_builddir_sub in
7140  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7141  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7142  esac ;;
7143esac
7144ac_abs_top_builddir=$ac_pwd
7145ac_abs_builddir=$ac_pwd$ac_dir_suffix
7146# for backward compatibility:
7147ac_top_builddir=$ac_top_build_prefix
7148
7149case $srcdir in
7150  .)  # We are building in place.
7151    ac_srcdir=.
7152    ac_top_srcdir=$ac_top_builddir_sub
7153    ac_abs_top_srcdir=$ac_pwd ;;
7154  [\\/]* | ?:[\\/]* )  # Absolute name.
7155    ac_srcdir=$srcdir$ac_dir_suffix;
7156    ac_top_srcdir=$srcdir
7157    ac_abs_top_srcdir=$srcdir ;;
7158  *) # Relative name.
7159    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7160    ac_top_srcdir=$ac_top_build_prefix$srcdir
7161    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7162esac
7163ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7164
7165
7166  case $ac_mode in
7167  :F)
7168  #
7169  # CONFIG_FILE
7170  #
7171
7172_ACEOF
7173
7174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7175# If the template does not know about datarootdir, expand it.
7176# FIXME: This hack should be removed a few years after 2.60.
7177ac_datarootdir_hack=; ac_datarootdir_seen=
7178ac_sed_dataroot='
7179/datarootdir/ {
7180  p
7181  q
7182}
7183/@datadir@/p
7184/@docdir@/p
7185/@infodir@/p
7186/@localedir@/p
7187/@mandir@/p'
7188case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7189*datarootdir*) ac_datarootdir_seen=yes;;
7190*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7192$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7193_ACEOF
7194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7195  ac_datarootdir_hack='
7196  s&@datadir@&$datadir&g
7197  s&@docdir@&$docdir&g
7198  s&@infodir@&$infodir&g
7199  s&@localedir@&$localedir&g
7200  s&@mandir@&$mandir&g
7201  s&\\\${datarootdir}&$datarootdir&g' ;;
7202esac
7203_ACEOF
7204
7205# Neutralize VPATH when `$srcdir' = `.'.
7206# Shell code in configure.ac might set extrasub.
7207# FIXME: do we really want to maintain this feature?
7208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7209ac_sed_extra="$ac_vpsub
7210$extrasub
7211_ACEOF
7212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7213:t
7214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7215s|@configure_input@|$ac_sed_conf_input|;t t
7216s&@top_builddir@&$ac_top_builddir_sub&;t t
7217s&@top_build_prefix@&$ac_top_build_prefix&;t t
7218s&@srcdir@&$ac_srcdir&;t t
7219s&@abs_srcdir@&$ac_abs_srcdir&;t t
7220s&@top_srcdir@&$ac_top_srcdir&;t t
7221s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7222s&@builddir@&$ac_builddir&;t t
7223s&@abs_builddir@&$ac_abs_builddir&;t t
7224s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7225$ac_datarootdir_hack
7226"
7227eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7228  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7229
7230test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7231  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7232  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7233      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7235which seems to be undefined.  Please make sure it is defined" >&5
7236$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7237which seems to be undefined.  Please make sure it is defined" >&2;}
7238
7239  rm -f "$ac_tmp/stdin"
7240  case $ac_file in
7241  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7242  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7243  esac \
7244  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7245 ;;
7246  :H)
7247  #
7248  # CONFIG_HEADER
7249  #
7250  if test x"$ac_file" != x-; then
7251    {
7252      $as_echo "/* $configure_input  */" \
7253      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7254    } >"$ac_tmp/config.h" \
7255      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7256    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7257      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7258$as_echo "$as_me: $ac_file is unchanged" >&6;}
7259    else
7260      rm -f "$ac_file"
7261      mv "$ac_tmp/config.h" "$ac_file" \
7262	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7263    fi
7264  else
7265    $as_echo "/* $configure_input  */" \
7266      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7267      || as_fn_error $? "could not create -" "$LINENO" 5
7268  fi
7269 ;;
7270
7271
7272  esac
7273
7274done # for ac_tag
7275
7276
7277as_fn_exit 0
7278_ACEOF
7279ac_clean_files=$ac_clean_files_save
7280
7281test $ac_write_fail = 0 ||
7282  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7283
7284
7285# configure is writing to config.log, and then calls config.status.
7286# config.status does its own redirection, appending to config.log.
7287# Unfortunately, on DOS this fails, as config.log is still kept open
7288# by configure, so config.status won't be able to write to it; its
7289# output is simply discarded.  So we exec the FD to /dev/null,
7290# effectively closing config.log, so it can be properly (re)opened and
7291# appended to by config.status.  When coming back to configure, we
7292# need to make the FD available again.
7293if test "$no_create" != yes; then
7294  ac_cs_success=:
7295  ac_config_status_args=
7296  test "$silent" = yes &&
7297    ac_config_status_args="$ac_config_status_args --quiet"
7298  exec 5>/dev/null
7299  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7300  exec 5>>config.log
7301  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7302  # would make configure fail if this is the last instruction.
7303  $ac_cs_success || as_fn_exit 1
7304fi
7305if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7307$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7308fi
7309
7310
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***** Summary" >&5
7312$as_echo "***** Summary" >&6; }
7313
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB                       =$MMDB" >&5
7315$as_echo "*** MMDB                       =$MMDB" >&6; }
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_DYN                   =$MMDB_DYN" >&5
7317$as_echo "*** MMDB_DYN                   =$MMDB_DYN" >&6; }
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_DYN_LIB               =$mmdb_dyn_lib" >&5
7319$as_echo "*** MMDB_DYN_LIB               =$mmdb_dyn_lib" >&6; }
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_INCLUDE               =$MMDB_INCLUDE" >&5
7321$as_echo "*** MMDB_INCLUDE               =$MMDB_INCLUDE" >&6; }
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_INCLUDE_VERSION       =$MMDB_INCLUDE_VERSION" >&5
7323$as_echo "*** MMDB_INCLUDE_VERSION       =$MMDB_INCLUDE_VERSION" >&6; }
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_LIB                   =$MMDB_LIB" >&5
7325$as_echo "*** MMDB_LIB                   =$MMDB_LIB" >&6; }
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_LIB_NAME              =$MMDB_LIB_NAME" >&5
7327$as_echo "*** MMDB_LIB_NAME              =$MMDB_LIB_NAME" >&6; }
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** MMDB_LIB_DIR               =$MMDB_LIB_DIR" >&5
7329$as_echo "*** MMDB_LIB_DIR               =$MMDB_LIB_DIR" >&6; }
7330
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7332$as_echo "" >&6; }
7333
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION                =$IP2LOCATION" >&5
7335$as_echo "*** IP2LOCATION                =$IP2LOCATION" >&6; }
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_DB             =$IP2LOCATION_DB" >&5
7337$as_echo "*** IP2LOCATION_DB             =$IP2LOCATION_DB" >&6; }
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_DYN            =$IP2LOCATION_DYN" >&5
7339$as_echo "*** IP2LOCATION_DYN            =$IP2LOCATION_DYN" >&6; }
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_DYN_LIB        =$ip2location_dyn_lib" >&5
7341$as_echo "*** IP2LOCATION_DYN_LIB        =$ip2location_dyn_lib" >&6; }
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_INCLUDE        =$IP2LOCATION_INCLUDE" >&5
7343$as_echo "*** IP2LOCATION_INCLUDE        =$IP2LOCATION_INCLUDE" >&6; }
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_INCLUDE_VERSION=$IP2LOCATION_INCLUDE_VERSION" >&5
7345$as_echo "*** IP2LOCATION_INCLUDE_VERSION=$IP2LOCATION_INCLUDE_VERSION" >&6; }
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_LIB            =$IP2LOCATION_LIB" >&5
7347$as_echo "*** IP2LOCATION_LIB            =$IP2LOCATION_LIB" >&6; }
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_LIB_NAME       =$IP2LOCATION_LIB_NAME" >&5
7349$as_echo "*** IP2LOCATION_LIB_NAME       =$IP2LOCATION_LIB_NAME" >&6; }
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** IP2LOCATION_LIB_DIR        =$IP2LOCATION_LIB_DIR" >&5
7351$as_echo "*** IP2LOCATION_LIB_DIR        =$IP2LOCATION_LIB_DIR" >&6; }
7352
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7354$as_echo "" >&6; }
7355
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GEOIP2                     =$GEOIP2" >&5
7357$as_echo "*** GEOIP2                     =$GEOIP2" >&6; }
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** GEOIP2_DB                  =$GEOIP2_DB" >&5
7359$as_echo "*** GEOIP2_DB                  =$GEOIP2_DB" >&6; }
7360
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7362$as_echo "" >&6; }
7363
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DBIP2                      =$DBIP2" >&5
7365$as_echo "*** DBIP2                      =$DBIP2" >&6; }
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DBIP2_DB                   =$DBIP2_DB" >&5
7367$as_echo "*** DBIP2_DB                   =$DBIP2_DB" >&6; }
7368
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7370$as_echo "" >&6; }
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** EXTERNAL                   =$EXTERNAL" >&5
7373$as_echo "*** EXTERNAL                   =$EXTERNAL" >&6; }
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** EXTERNAL_DB                =$EXTERNAL_DB" >&5
7375$as_echo "*** EXTERNAL_DB                =$EXTERNAL_DB" >&6; }
7376
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7378$as_echo "" >&6; }
7379
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** BUILTIN                    =$BUILTIN" >&5
7381$as_echo "*** BUILTIN                    =$BUILTIN" >&6; }
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DB_IPV4                    =$DB_IPV4" >&5
7383$as_echo "*** DB_IPV4                    =$DB_IPV4" >&6; }
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DB_IPV6                    =$DB_IPV6" >&5
7385$as_echo "*** DB_IPV6                    =$DB_IPV6" >&6; }
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DB_IEEE                    =$DB_IEEE" >&5
7387$as_echo "*** DB_IEEE                    =$DB_IEEE" >&6; }
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DB_AS_REG                  =$DB_AS_REG" >&5
7389$as_echo "*** DB_AS_REG                  =$DB_AS_REG" >&6; }
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** DB_CC_REG                  =$DB_CC_REG" >&5
7391$as_echo "*** DB_CC_REG                  =$DB_CC_REG" >&6; }
7392
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7394$as_echo "" >&6; }
7395
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CC                         =$CC" >&5
7397$as_echo "*** CC                         =$CC" >&6; }
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS_EXTRA               =$CFLAGS_EXTRA" >&5
7399$as_echo "*** CFLAGS_EXTRA               =$CFLAGS_EXTRA" >&6; }
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LDFLAGS_EXTRA              =$LDFLAGS_EXTRA" >&5
7401$as_echo "*** LDFLAGS_EXTRA              =$LDFLAGS_EXTRA" >&6; }
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LD_LIBRARY_PATH            =$LD_LIBRARY_PATH" >&5
7403$as_echo "*** LD_LIBRARY_PATH            =$LD_LIBRARY_PATH" >&6; }
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LD_LIBRARY_PATH_BASIC      =$LD_LIBRARY_PATH_BASIC" >&5
7405$as_echo "*** LD_LIBRARY_PATH_BASIC      =$LD_LIBRARY_PATH_BASIC" >&6; }
7406
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7408$as_echo "" >&6; }
7409
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CPPLAGS                    =$CPPLAGS" >&5
7411$as_echo "*** CPPLAGS                    =$CPPLAGS" >&6; }
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** CFLAGS                     =$CFLAGS" >&5
7413$as_echo "*** CFLAGS                     =$CFLAGS" >&6; }
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LDFLAGS                    =$LDFLAGS" >&5
7415$as_echo "*** LDFLAGS                    =$LDFLAGS" >&6; }
7416
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7418$as_echo "" >&6; }
7419
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** PACKAGE_VERSION_NUMERIC    =$PACKAGE_VERSION_NUMERIC" >&5
7421$as_echo "*** PACKAGE_VERSION_NUMERIC    =$PACKAGE_VERSION_NUMERIC" >&6; }
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** PACKAGE_VERSION_STRING     =$PACKAGE_VERSION_STRING" >&5
7423$as_echo "*** PACKAGE_VERSION_STRING     =$PACKAGE_VERSION_STRING" >&6; }
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** API_VERSION_NUMERIC        =$API_VERSION_NUMERIC" >&5
7425$as_echo "*** API_VERSION_NUMERIC        =$API_VERSION_NUMERIC" >&6; }
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** API_VERSION_STRING         =$API_VERSION_STRING" >&5
7427$as_echo "*** API_VERSION_STRING         =$API_VERSION_STRING" >&6; }
7428
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7430$as_echo "" >&6; }
7431
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** ENABLE_MOD_IPV6CALC        =$ENABLE_MOD_IPV6CALC" >&5
7433$as_echo "*** ENABLE_MOD_IPV6CALC        =$ENABLE_MOD_IPV6CALC" >&6; }
7434if test "$ENABLE_MOD_IPV6CALC" = "1"; then
7435	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** APXS                       =$APXS" >&5
7436$as_echo "*** APXS                       =$APXS" >&6; }
7437	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** HTTPD_SYSCONFDIR           =$HTTPD_SYSCONFDIR" >&5
7438$as_echo "*** HTTPD_SYSCONFDIR           =$HTTPD_SYSCONFDIR" >&6; }
7439	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** HTTPD_LIBEXECDIR           =$HTTPD_LIBEXECDIR" >&5
7440$as_echo "*** HTTPD_LIBEXECDIR           =$HTTPD_LIBEXECDIR" >&6; }
7441	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** HTTPD_VERSION              =$HTTPD_VERSION" >&5
7442$as_echo "*** HTTPD_VERSION              =$HTTPD_VERSION" >&6; }
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** HTTPD_VERSION_MAJOR_MINOR  =$HTTPD_VERSION_MAJOR_MINOR" >&5
7444$as_echo "*** HTTPD_VERSION_MAJOR_MINOR  =$HTTPD_VERSION_MAJOR_MINOR" >&6; }
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** LDFLAGS_EXTRA_MOD_IPV6CALC =$LDFLAGS_EXTRA_MOD_IPV6CALC" >&5
7446$as_echo "*** LDFLAGS_EXTRA_MOD_IPV6CALC =$LDFLAGS_EXTRA_MOD_IPV6CALC" >&6; }
7447fi
7448