unrealircd

- supernets unrealircd source & configuration
git clone git://git.acid.vegas/unrealircd.git
Log | Files | Refs | Archive | README | LICENSE

configure (309398B)

      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.71 for unrealircd 6.1.0.
      4 #
      5 # Report bugs to <https://bugs.unrealircd.org/>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
      9 # Inc.
     10 #
     11 #
     12 # This configure script is free software; the Free Software Foundation
     13 # gives unlimited permission to copy, distribute and modify it.
     14 ## -------------------- ##
     15 ## M4sh Initialization. ##
     16 ## -------------------- ##
     17 
     18 # Be more Bourne compatible
     19 DUALCASE=1; export DUALCASE # for MKS sh
     20 as_nop=:
     21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     22 then :
     23   emulate sh
     24   NULLCMD=:
     25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     26   # is contrary to our usage.  Disable this feature.
     27   alias -g '${1+"$@"}'='"$@"'
     28   setopt NO_GLOB_SUBST
     29 else $as_nop
     30   case `(set -o) 2>/dev/null` in #(
     31   *posix*) :
     32     set -o posix ;; #(
     33   *) :
     34      ;;
     35 esac
     36 fi
     37 
     38 
     39 
     40 # Reset variables that may have inherited troublesome values from
     41 # the environment.
     42 
     43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     45 # side effect of setting IFS to empty, thus disabling word splitting.)
     46 # Quoting is to prevent editors from complaining about space-tab.
     47 as_nl='
     48 '
     49 export as_nl
     50 IFS=" ""	$as_nl"
     51 
     52 PS1='$ '
     53 PS2='> '
     54 PS4='+ '
     55 
     56 # Ensure predictable behavior from utilities with locale-dependent output.
     57 LC_ALL=C
     58 export LC_ALL
     59 LANGUAGE=C
     60 export LANGUAGE
     61 
     62 # We cannot yet rely on "unset" to work, but we need these variables
     63 # to be unset--not just set to an empty or harmless value--now, to
     64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65 # also avoids known problems related to "unset" and subshell syntax
     66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68 do eval test \${$as_var+y} \
     69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70 done
     71 
     72 # Ensure that fds 0, 1, and 2 are open.
     73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76 
     77 # The user is always right.
     78 if ${PATH_SEPARATOR+false} :; then
     79   PATH_SEPARATOR=:
     80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82       PATH_SEPARATOR=';'
     83   }
     84 fi
     85 
     86 
     87 # Find who we are.  Look in the path if we contain no directory separator.
     88 as_myself=
     89 case $0 in #((
     90   *[\\/]* ) as_myself=$0 ;;
     91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92 for as_dir in $PATH
     93 do
     94   IFS=$as_save_IFS
     95   case $as_dir in #(((
     96     '') as_dir=./ ;;
     97     */) ;;
     98     *) as_dir=$as_dir/ ;;
     99   esac
    100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    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.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 
    117 # Use a proper internal environment variable to ensure we don't fall
    118   # into an infinite loop, continuously re-executing ourselves.
    119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    120     _as_can_reexec=no; export _as_can_reexec;
    121     # We cannot yet assume a decent shell, so we have to provide a
    122 # neutralization value for shells without unset; and this also
    123 # works around shells that cannot unset nonexistent variables.
    124 # Preserve -v and -x to the replacement shell.
    125 BASH_ENV=/dev/null
    126 ENV=/dev/null
    127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    128 case $- in # ((((
    129   *v*x* | *x*v* ) as_opts=-vx ;;
    130   *v* ) as_opts=-v ;;
    131   *x* ) as_opts=-x ;;
    132   * ) as_opts= ;;
    133 esac
    134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    135 # Admittedly, this is quite paranoid, since all the known shells bail
    136 # out after a failed `exec'.
    137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    138 exit 255
    139   fi
    140   # We don't want this to propagate to other subprocesses.
    141           { _as_can_reexec=; unset _as_can_reexec;}
    142 if test "x$CONFIG_SHELL" = x; then
    143   as_bourne_compatible="as_nop=:
    144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    145 then :
    146   emulate sh
    147   NULLCMD=:
    148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    149   # is contrary to our usage.  Disable this feature.
    150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    151   setopt NO_GLOB_SUBST
    152 else \$as_nop
    153   case \`(set -o) 2>/dev/null\` in #(
    154   *posix*) :
    155     set -o posix ;; #(
    156   *) :
    157      ;;
    158 esac
    159 fi
    160 "
    161   as_required="as_fn_return () { (exit \$1); }
    162 as_fn_success () { as_fn_return 0; }
    163 as_fn_failure () { as_fn_return 1; }
    164 as_fn_ret_success () { return 0; }
    165 as_fn_ret_failure () { return 1; }
    166 
    167 exitcode=0
    168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    173 then :
    174 
    175 else \$as_nop
    176   exitcode=1; echo positional parameters were not saved.
    177 fi
    178 test x\$exitcode = x0 || exit 1
    179 blah=\$(echo \$(echo blah))
    180 test x\"\$blah\" = xblah || exit 1
    181 test -x / || exit 1"
    182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    186 test \$(( 1 + 1 )) = 2 || exit 1"
    187   if (eval "$as_required") 2>/dev/null
    188 then :
    189   as_have_required=yes
    190 else $as_nop
    191   as_have_required=no
    192 fi
    193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    194 then :
    195 
    196 else $as_nop
    197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    198 as_found=false
    199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    200 do
    201   IFS=$as_save_IFS
    202   case $as_dir in #(((
    203     '') as_dir=./ ;;
    204     */) ;;
    205     *) as_dir=$as_dir/ ;;
    206   esac
    207   as_found=:
    208   case $as_dir in #(
    209 	 /*)
    210 	   for as_base in sh bash ksh sh5; do
    211 	     # Try only shells that exist, to save several forks.
    212 	     as_shell=$as_dir$as_base
    213 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    214 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    215 then :
    216   CONFIG_SHELL=$as_shell as_have_required=yes
    217 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    218 then :
    219   break 2
    220 fi
    221 fi
    222 	   done;;
    223        esac
    224   as_found=false
    225 done
    226 IFS=$as_save_IFS
    227 if $as_found
    228 then :
    229 
    230 else $as_nop
    231   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    233 then :
    234   CONFIG_SHELL=$SHELL as_have_required=yes
    235 fi
    236 fi
    237 
    238 
    239       if test "x$CONFIG_SHELL" != x
    240 then :
    241   export CONFIG_SHELL
    242              # We cannot yet assume a decent shell, so we have to provide a
    243 # neutralization value for shells without unset; and this also
    244 # works around shells that cannot unset nonexistent variables.
    245 # Preserve -v and -x to the replacement shell.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno
    263 then :
    264   printf "%s\n" "$0: This script requires a shell more modern than all"
    265   printf "%s\n" "$0: the shells that I found on your system."
    266   if test ${ZSH_VERSION+y} ; then
    267     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    268     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    269   else
    270     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
    271 $0: https://bugs.unrealircd.org/ about your system,
    272 $0: including any error possibly output before this
    273 $0: message. Then install a modern shell, or manually run
    274 $0: the script under such a shell if you do have one."
    275   fi
    276   exit 1
    277 fi
    278 fi
    279 fi
    280 SHELL=${CONFIG_SHELL-/bin/sh}
    281 export SHELL
    282 # Unset more variables known to interfere with behavior of common tools.
    283 CLICOLOR_FORCE= GREP_OPTIONS=
    284 unset CLICOLOR_FORCE GREP_OPTIONS
    285 
    286 ## --------------------- ##
    287 ## M4sh Shell Functions. ##
    288 ## --------------------- ##
    289 # as_fn_unset VAR
    290 # ---------------
    291 # Portably unset VAR.
    292 as_fn_unset ()
    293 {
    294   { eval $1=; unset $1;}
    295 }
    296 as_unset=as_fn_unset
    297 
    298 
    299 # as_fn_set_status STATUS
    300 # -----------------------
    301 # Set $? to STATUS, without forking.
    302 as_fn_set_status ()
    303 {
    304   return $1
    305 } # as_fn_set_status
    306 
    307 # as_fn_exit STATUS
    308 # -----------------
    309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    310 as_fn_exit ()
    311 {
    312   set +e
    313   as_fn_set_status $1
    314   exit $1
    315 } # as_fn_exit
    316 # as_fn_nop
    317 # ---------
    318 # Do nothing but, unlike ":", preserve the value of $?.
    319 as_fn_nop ()
    320 {
    321   return $?
    322 }
    323 as_nop=as_fn_nop
    324 
    325 # as_fn_mkdir_p
    326 # -------------
    327 # Create "$as_dir" as a directory, including parents if necessary.
    328 as_fn_mkdir_p ()
    329 {
    330 
    331   case $as_dir in #(
    332   -*) as_dir=./$as_dir;;
    333   esac
    334   test -d "$as_dir" || eval $as_mkdir_p || {
    335     as_dirs=
    336     while :; do
    337       case $as_dir in #(
    338       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    339       *) as_qdir=$as_dir;;
    340       esac
    341       as_dirs="'$as_qdir' $as_dirs"
    342       as_dir=`$as_dirname -- "$as_dir" ||
    343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    344 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    345 	 X"$as_dir" : 'X\(//\)$' \| \
    346 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    347 printf "%s\n" X"$as_dir" |
    348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    349 	    s//\1/
    350 	    q
    351 	  }
    352 	  /^X\(\/\/\)[^/].*/{
    353 	    s//\1/
    354 	    q
    355 	  }
    356 	  /^X\(\/\/\)$/{
    357 	    s//\1/
    358 	    q
    359 	  }
    360 	  /^X\(\/\).*/{
    361 	    s//\1/
    362 	    q
    363 	  }
    364 	  s/.*/./; q'`
    365       test -d "$as_dir" && break
    366     done
    367     test -z "$as_dirs" || eval "mkdir $as_dirs"
    368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    369 
    370 
    371 } # as_fn_mkdir_p
    372 
    373 # as_fn_executable_p FILE
    374 # -----------------------
    375 # Test if FILE is an executable regular file.
    376 as_fn_executable_p ()
    377 {
    378   test -f "$1" && test -x "$1"
    379 } # as_fn_executable_p
    380 # as_fn_append VAR VALUE
    381 # ----------------------
    382 # Append the text in VALUE to the end of the definition contained in VAR. Take
    383 # advantage of any shell optimizations that allow amortized linear growth over
    384 # repeated appends, instead of the typical quadratic growth present in naive
    385 # implementations.
    386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    387 then :
    388   eval 'as_fn_append ()
    389   {
    390     eval $1+=\$2
    391   }'
    392 else $as_nop
    393   as_fn_append ()
    394   {
    395     eval $1=\$$1\$2
    396   }
    397 fi # as_fn_append
    398 
    399 # as_fn_arith ARG...
    400 # ------------------
    401 # Perform arithmetic evaluation on the ARGs, and store the result in the
    402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    403 # must be portable across $(()) and expr.
    404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    405 then :
    406   eval 'as_fn_arith ()
    407   {
    408     as_val=$(( $* ))
    409   }'
    410 else $as_nop
    411   as_fn_arith ()
    412   {
    413     as_val=`expr "$@" || test $? -eq 1`
    414   }
    415 fi # as_fn_arith
    416 
    417 # as_fn_nop
    418 # ---------
    419 # Do nothing but, unlike ":", preserve the value of $?.
    420 as_fn_nop ()
    421 {
    422   return $?
    423 }
    424 as_nop=as_fn_nop
    425 
    426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    427 # ----------------------------------------
    428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    430 # script with STATUS, using 1 if that was 0.
    431 as_fn_error ()
    432 {
    433   as_status=$1; test $as_status -eq 0 && as_status=1
    434   if test "$4"; then
    435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    437   fi
    438   printf "%s\n" "$as_me: error: $2" >&2
    439   as_fn_exit $as_status
    440 } # as_fn_error
    441 
    442 if expr a : '\(a\)' >/dev/null 2>&1 &&
    443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    444   as_expr=expr
    445 else
    446   as_expr=false
    447 fi
    448 
    449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    450   as_basename=basename
    451 else
    452   as_basename=false
    453 fi
    454 
    455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    456   as_dirname=dirname
    457 else
    458   as_dirname=false
    459 fi
    460 
    461 as_me=`$as_basename -- "$0" ||
    462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    463 	 X"$0" : 'X\(//\)$' \| \
    464 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    465 printf "%s\n" X/"$0" |
    466     sed '/^.*\/\([^/][^/]*\)\/*$/{
    467 	    s//\1/
    468 	    q
    469 	  }
    470 	  /^X\/\(\/\/\)$/{
    471 	    s//\1/
    472 	    q
    473 	  }
    474 	  /^X\/\(\/\).*/{
    475 	    s//\1/
    476 	    q
    477 	  }
    478 	  s/.*/./; q'`
    479 
    480 # Avoid depending upon Character Ranges.
    481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    484 as_cr_digits='0123456789'
    485 as_cr_alnum=$as_cr_Letters$as_cr_digits
    486 
    487 
    488   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    489   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    490   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    491   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    492   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    493   sed -n '
    494     p
    495     /[$]LINENO/=
    496   ' <$as_myself |
    497     sed '
    498       s/[$]LINENO.*/&-/
    499       t lineno
    500       b
    501       :lineno
    502       N
    503       :loop
    504       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    505       t loop
    506       s/-\n.*//
    507     ' >$as_me.lineno &&
    508   chmod +x "$as_me.lineno" ||
    509     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    510 
    511   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    512   # already done that, so ensure we don't try to do so again and fall
    513   # in an infinite loop.  This has already happened in practice.
    514   _as_can_reexec=no; export _as_can_reexec
    515   # Don't try to exec as it changes $[0], causing all sort of problems
    516   # (the dirname of $[0] is not the place where we might find the
    517   # original and so on.  Autoconf is especially sensitive to this).
    518   . "./$as_me.lineno"
    519   # Exit status is that of the last command.
    520   exit
    521 }
    522 
    523 
    524 # Determine whether it's possible to make 'echo' print without a newline.
    525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    526 # for compatibility with existing Makefiles.
    527 ECHO_C= ECHO_N= ECHO_T=
    528 case `echo -n x` in #(((((
    529 -n*)
    530   case `echo 'xy\c'` in
    531   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    532   xy)  ECHO_C='\c';;
    533   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    534        ECHO_T='	';;
    535   esac;;
    536 *)
    537   ECHO_N='-n';;
    538 esac
    539 
    540 # For backward compatibility with old third-party macros, we provide
    541 # the shell variables $as_echo and $as_echo_n.  New code should use
    542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    543 as_echo='printf %s\n'
    544 as_echo_n='printf %s'
    545 
    546 
    547 rm -f conf$$ conf$$.exe conf$$.file
    548 if test -d conf$$.dir; then
    549   rm -f conf$$.dir/conf$$.file
    550 else
    551   rm -f conf$$.dir
    552   mkdir conf$$.dir 2>/dev/null
    553 fi
    554 if (echo >conf$$.file) 2>/dev/null; then
    555   if ln -s conf$$.file conf$$ 2>/dev/null; then
    556     as_ln_s='ln -s'
    557     # ... but there are two gotchas:
    558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    560     # In both cases, we have to default to `cp -pR'.
    561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    562       as_ln_s='cp -pR'
    563   elif ln conf$$.file conf$$ 2>/dev/null; then
    564     as_ln_s=ln
    565   else
    566     as_ln_s='cp -pR'
    567   fi
    568 else
    569   as_ln_s='cp -pR'
    570 fi
    571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    572 rmdir conf$$.dir 2>/dev/null
    573 
    574 if mkdir -p . 2>/dev/null; then
    575   as_mkdir_p='mkdir -p "$as_dir"'
    576 else
    577   test -d ./-p && rmdir ./-p
    578   as_mkdir_p=false
    579 fi
    580 
    581 as_test_x='test -x'
    582 as_executable_p=as_fn_executable_p
    583 
    584 # Sed expression to map a string onto a valid CPP name.
    585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    586 
    587 # Sed expression to map a string onto a valid variable name.
    588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    589 
    590 
    591 test -n "$DJDIR" || exec 7<&0 </dev/null
    592 exec 6>&1
    593 
    594 # Name of the host.
    595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    596 # so uname gets run too.
    597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    598 
    599 #
    600 # Initializations.
    601 #
    602 ac_default_prefix=/usr/local
    603 ac_clean_files=
    604 ac_config_libobj_dir=.
    605 LIBOBJS=
    606 cross_compiling=no
    607 subdirs=
    608 MFLAGS=
    609 MAKEFLAGS=
    610 
    611 # Identity of this package.
    612 PACKAGE_NAME='unrealircd'
    613 PACKAGE_TARNAME='unrealircd'
    614 PACKAGE_VERSION='6.1.0'
    615 PACKAGE_STRING='unrealircd 6.1.0'
    616 PACKAGE_BUGREPORT='https://bugs.unrealircd.org/'
    617 PACKAGE_URL='https://unrealircd.org/'
    618 
    619 ac_unique_file="src/ircd.c"
    620 # Factoring default headers for most tests.
    621 ac_includes_default="\
    622 #include <stddef.h>
    623 #ifdef HAVE_STDIO_H
    624 # include <stdio.h>
    625 #endif
    626 #ifdef HAVE_STDLIB_H
    627 # include <stdlib.h>
    628 #endif
    629 #ifdef HAVE_STRING_H
    630 # include <string.h>
    631 #endif
    632 #ifdef HAVE_INTTYPES_H
    633 # include <inttypes.h>
    634 #endif
    635 #ifdef HAVE_STDINT_H
    636 # include <stdint.h>
    637 #endif
    638 #ifdef HAVE_STRINGS_H
    639 # include <strings.h>
    640 #endif
    641 #ifdef HAVE_SYS_TYPES_H
    642 # include <sys/types.h>
    643 #endif
    644 #ifdef HAVE_SYS_STAT_H
    645 # include <sys/stat.h>
    646 #endif
    647 #ifdef HAVE_UNISTD_H
    648 # include <unistd.h>
    649 #endif"
    650 
    651 ac_header_c_list=
    652 ac_subst_vars='LTLIBOBJS
    653 LIBOBJS
    654 UNRLINCDIR
    655 IRCDLIBS
    656 GEOIP_MAXMIND_OBJECTS
    657 LIBMAXMINDDB_LIBS
    658 LIBMAXMINDDB_CFLAGS
    659 GEOIP_CLASSIC_OBJECTS
    660 GEOIP_CLASSIC_LIBS
    661 GEOIP_CLASSIC_CFLAGS
    662 URL
    663 PTHREAD_CFLAGS
    664 PTHREAD_LIBS
    665 PTHREAD_CC
    666 ax_pthread_config
    667 host_os
    668 host_vendor
    669 host_cpu
    670 host
    671 build_os
    672 build_vendor
    673 build_cpu
    674 build
    675 JANSSON_LIBS
    676 JANSSON_CFLAGS
    677 CARES_LIBS
    678 CARES_CFLAGS
    679 SODIUM_LIBS
    680 SODIUM_CFLAGS
    681 ARGON2_LIBS
    682 ARGON2_CFLAGS
    683 PCRE2_LIBS
    684 PCRE2_CFLAGS
    685 PKG_CONFIG_LIBDIR
    686 PKG_CONFIG_PATH
    687 PKG_CONFIG
    688 LDFLAGS_PRIVATELIBS
    689 CONTROLFILE
    690 PIDFILE
    691 DOCDIR
    692 PERMDATADIR
    693 TMPDIR
    694 CACHEDIR
    695 LOGDIR
    696 MODULESDIR
    697 CONFDIR
    698 SCRIPTDIR
    699 BINDIR
    700 BUILDDIR
    701 DYNAMIC_LDFLAGS
    702 MODULEFLAGS
    703 CRYPTOLIB
    704 EGREP
    705 GREP
    706 CPP
    707 HARDEN_BINLDFLAGS
    708 HARDEN_BINCFLAGS
    709 HARDEN_LDFLAGS
    710 HARDEN_CFLAGS
    711 GMAKE
    712 MAKER
    713 OBJEXT
    714 EXEEXT
    715 ac_ct_CC
    716 CPPFLAGS
    717 LDFLAGS
    718 CFLAGS
    719 CC
    720 PKGCONFIG
    721 GUNZIP
    722 INSTALL
    723 OPENSSLPATH
    724 TOUCH
    725 CP
    726 RM
    727 target_alias
    728 host_alias
    729 build_alias
    730 LIBS
    731 ECHO_T
    732 ECHO_N
    733 ECHO_C
    734 DEFS
    735 mandir
    736 localedir
    737 libdir
    738 psdir
    739 pdfdir
    740 dvidir
    741 htmldir
    742 infodir
    743 docdir
    744 oldincludedir
    745 includedir
    746 runstatedir
    747 localstatedir
    748 sharedstatedir
    749 sysconfdir
    750 datadir
    751 datarootdir
    752 libexecdir
    753 sbindir
    754 bindir
    755 program_transform_name
    756 prefix
    757 exec_prefix
    758 PACKAGE_URL
    759 PACKAGE_BUGREPORT
    760 PACKAGE_STRING
    761 PACKAGE_VERSION
    762 PACKAGE_TARNAME
    763 PACKAGE_NAME
    764 PATH_SEPARATOR
    765 SHELL'
    766 ac_subst_files=''
    767 ac_user_opts='
    768 enable_option_checking
    769 enable_hardening
    770 with_nick_history
    771 with_permissions
    772 with_bindir
    773 with_scriptdir
    774 with_confdir
    775 with_builddir
    776 with_modulesdir
    777 with_logdir
    778 with_cachedir
    779 with_tmpdir
    780 with_datadir
    781 with_docdir
    782 with_pidfile
    783 with_controlfile
    784 with_privatelibdir
    785 with_maxconnections
    786 with_no_operoverride
    787 with_operoverride_verify
    788 with_system_pcre2
    789 with_system_argon2
    790 with_system_sodium
    791 with_system_cares
    792 with_system_jansson
    793 enable_ssl
    794 enable_dynamic_linking
    795 enable_werror
    796 enable_asan
    797 enable_libcurl
    798 enable_geoip_classic
    799 enable_libmaxminddb
    800 '
    801       ac_precious_vars='build_alias
    802 host_alias
    803 target_alias
    804 CC
    805 CFLAGS
    806 LDFLAGS
    807 LIBS
    808 CPPFLAGS
    809 CPP
    810 PKG_CONFIG
    811 PKG_CONFIG_PATH
    812 PKG_CONFIG_LIBDIR
    813 PCRE2_CFLAGS
    814 PCRE2_LIBS
    815 ARGON2_CFLAGS
    816 ARGON2_LIBS
    817 SODIUM_CFLAGS
    818 SODIUM_LIBS
    819 CARES_CFLAGS
    820 CARES_LIBS
    821 JANSSON_CFLAGS
    822 JANSSON_LIBS
    823 GEOIP_CLASSIC_CFLAGS
    824 GEOIP_CLASSIC_LIBS
    825 LIBMAXMINDDB_CFLAGS
    826 LIBMAXMINDDB_LIBS'
    827 
    828 
    829 # Initialize some variables set by options.
    830 ac_init_help=
    831 ac_init_version=false
    832 ac_unrecognized_opts=
    833 ac_unrecognized_sep=
    834 # The variables have the same names as the options, with
    835 # dashes changed to underlines.
    836 cache_file=/dev/null
    837 exec_prefix=NONE
    838 no_create=
    839 no_recursion=
    840 prefix=NONE
    841 program_prefix=NONE
    842 program_suffix=NONE
    843 program_transform_name=s,x,x,
    844 silent=
    845 site=
    846 srcdir=
    847 verbose=
    848 x_includes=NONE
    849 x_libraries=NONE
    850 
    851 # Installation directory options.
    852 # These are left unexpanded so users can "make install exec_prefix=/foo"
    853 # and all the variables that are supposed to be based on exec_prefix
    854 # by default will actually change.
    855 # Use braces instead of parens because sh, perl, etc. also accept them.
    856 # (The list follows the same order as the GNU Coding Standards.)
    857 bindir='${exec_prefix}/bin'
    858 sbindir='${exec_prefix}/sbin'
    859 libexecdir='${exec_prefix}/libexec'
    860 datarootdir='${prefix}/share'
    861 datadir='${datarootdir}'
    862 sysconfdir='${prefix}/etc'
    863 sharedstatedir='${prefix}/com'
    864 localstatedir='${prefix}/var'
    865 runstatedir='${localstatedir}/run'
    866 includedir='${prefix}/include'
    867 oldincludedir='/usr/include'
    868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    869 infodir='${datarootdir}/info'
    870 htmldir='${docdir}'
    871 dvidir='${docdir}'
    872 pdfdir='${docdir}'
    873 psdir='${docdir}'
    874 libdir='${exec_prefix}/lib'
    875 localedir='${datarootdir}/locale'
    876 mandir='${datarootdir}/man'
    877 
    878 ac_prev=
    879 ac_dashdash=
    880 for ac_option
    881 do
    882   # If the previous option needs an argument, assign it.
    883   if test -n "$ac_prev"; then
    884     eval $ac_prev=\$ac_option
    885     ac_prev=
    886     continue
    887   fi
    888 
    889   case $ac_option in
    890   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    891   *=)   ac_optarg= ;;
    892   *)    ac_optarg=yes ;;
    893   esac
    894 
    895   case $ac_dashdash$ac_option in
    896   --)
    897     ac_dashdash=yes ;;
    898 
    899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    900     ac_prev=bindir ;;
    901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    902     bindir=$ac_optarg ;;
    903 
    904   -build | --build | --buil | --bui | --bu)
    905     ac_prev=build_alias ;;
    906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    907     build_alias=$ac_optarg ;;
    908 
    909   -cache-file | --cache-file | --cache-fil | --cache-fi \
    910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    911     ac_prev=cache_file ;;
    912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    914     cache_file=$ac_optarg ;;
    915 
    916   --config-cache | -C)
    917     cache_file=config.cache ;;
    918 
    919   -datadir | --datadir | --datadi | --datad)
    920     ac_prev=datadir ;;
    921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    922     datadir=$ac_optarg ;;
    923 
    924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    925   | --dataroo | --dataro | --datar)
    926     ac_prev=datarootdir ;;
    927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    929     datarootdir=$ac_optarg ;;
    930 
    931   -disable-* | --disable-*)
    932     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    933     # Reject names that are not valid shell variable names.
    934     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    935       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    936     ac_useropt_orig=$ac_useropt
    937     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    938     case $ac_user_opts in
    939       *"
    940 "enable_$ac_useropt"
    941 "*) ;;
    942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    943 	 ac_unrecognized_sep=', ';;
    944     esac
    945     eval enable_$ac_useropt=no ;;
    946 
    947   -docdir | --docdir | --docdi | --doc | --do)
    948     ac_prev=docdir ;;
    949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    950     docdir=$ac_optarg ;;
    951 
    952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    953     ac_prev=dvidir ;;
    954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    955     dvidir=$ac_optarg ;;
    956 
    957   -enable-* | --enable-*)
    958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    959     # Reject names that are not valid shell variable names.
    960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    961       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    962     ac_useropt_orig=$ac_useropt
    963     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    964     case $ac_user_opts in
    965       *"
    966 "enable_$ac_useropt"
    967 "*) ;;
    968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    969 	 ac_unrecognized_sep=', ';;
    970     esac
    971     eval enable_$ac_useropt=\$ac_optarg ;;
    972 
    973   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    974   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    975   | --exec | --exe | --ex)
    976     ac_prev=exec_prefix ;;
    977   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    978   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    979   | --exec=* | --exe=* | --ex=*)
    980     exec_prefix=$ac_optarg ;;
    981 
    982   -gas | --gas | --ga | --g)
    983     # Obsolete; use --with-gas.
    984     with_gas=yes ;;
    985 
    986   -help | --help | --hel | --he | -h)
    987     ac_init_help=long ;;
    988   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    989     ac_init_help=recursive ;;
    990   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    991     ac_init_help=short ;;
    992 
    993   -host | --host | --hos | --ho)
    994     ac_prev=host_alias ;;
    995   -host=* | --host=* | --hos=* | --ho=*)
    996     host_alias=$ac_optarg ;;
    997 
    998   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    999     ac_prev=htmldir ;;
   1000   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1001   | --ht=*)
   1002     htmldir=$ac_optarg ;;
   1003 
   1004   -includedir | --includedir | --includedi | --included | --include \
   1005   | --includ | --inclu | --incl | --inc)
   1006     ac_prev=includedir ;;
   1007   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1008   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1009     includedir=$ac_optarg ;;
   1010 
   1011   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1012     ac_prev=infodir ;;
   1013   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1014     infodir=$ac_optarg ;;
   1015 
   1016   -libdir | --libdir | --libdi | --libd)
   1017     ac_prev=libdir ;;
   1018   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1019     libdir=$ac_optarg ;;
   1020 
   1021   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1022   | --libexe | --libex | --libe)
   1023     ac_prev=libexecdir ;;
   1024   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1025   | --libexe=* | --libex=* | --libe=*)
   1026     libexecdir=$ac_optarg ;;
   1027 
   1028   -localedir | --localedir | --localedi | --localed | --locale)
   1029     ac_prev=localedir ;;
   1030   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1031     localedir=$ac_optarg ;;
   1032 
   1033   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1034   | --localstate | --localstat | --localsta | --localst | --locals)
   1035     ac_prev=localstatedir ;;
   1036   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1037   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1038     localstatedir=$ac_optarg ;;
   1039 
   1040   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1041     ac_prev=mandir ;;
   1042   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1043     mandir=$ac_optarg ;;
   1044 
   1045   -nfp | --nfp | --nf)
   1046     # Obsolete; use --without-fp.
   1047     with_fp=no ;;
   1048 
   1049   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1050   | --no-cr | --no-c | -n)
   1051     no_create=yes ;;
   1052 
   1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1055     no_recursion=yes ;;
   1056 
   1057   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1058   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1059   | --oldin | --oldi | --old | --ol | --o)
   1060     ac_prev=oldincludedir ;;
   1061   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1062   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1063   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1064     oldincludedir=$ac_optarg ;;
   1065 
   1066   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1067     ac_prev=prefix ;;
   1068   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1069     prefix=$ac_optarg ;;
   1070 
   1071   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1072   | --program-pre | --program-pr | --program-p)
   1073     ac_prev=program_prefix ;;
   1074   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1075   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1076     program_prefix=$ac_optarg ;;
   1077 
   1078   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1079   | --program-suf | --program-su | --program-s)
   1080     ac_prev=program_suffix ;;
   1081   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1082   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1083     program_suffix=$ac_optarg ;;
   1084 
   1085   -program-transform-name | --program-transform-name \
   1086   | --program-transform-nam | --program-transform-na \
   1087   | --program-transform-n | --program-transform- \
   1088   | --program-transform | --program-transfor \
   1089   | --program-transfo | --program-transf \
   1090   | --program-trans | --program-tran \
   1091   | --progr-tra | --program-tr | --program-t)
   1092     ac_prev=program_transform_name ;;
   1093   -program-transform-name=* | --program-transform-name=* \
   1094   | --program-transform-nam=* | --program-transform-na=* \
   1095   | --program-transform-n=* | --program-transform-=* \
   1096   | --program-transform=* | --program-transfor=* \
   1097   | --program-transfo=* | --program-transf=* \
   1098   | --program-trans=* | --program-tran=* \
   1099   | --progr-tra=* | --program-tr=* | --program-t=*)
   1100     program_transform_name=$ac_optarg ;;
   1101 
   1102   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1103     ac_prev=pdfdir ;;
   1104   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1105     pdfdir=$ac_optarg ;;
   1106 
   1107   -psdir | --psdir | --psdi | --psd | --ps)
   1108     ac_prev=psdir ;;
   1109   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1110     psdir=$ac_optarg ;;
   1111 
   1112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1113   | -silent | --silent | --silen | --sile | --sil)
   1114     silent=yes ;;
   1115 
   1116   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1117   | --runstate | --runstat | --runsta | --runst | --runs \
   1118   | --run | --ru | --r)
   1119     ac_prev=runstatedir ;;
   1120   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1121   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1122   | --run=* | --ru=* | --r=*)
   1123     runstatedir=$ac_optarg ;;
   1124 
   1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1126     ac_prev=sbindir ;;
   1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1128   | --sbi=* | --sb=*)
   1129     sbindir=$ac_optarg ;;
   1130 
   1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1133   | --sharedst | --shareds | --shared | --share | --shar \
   1134   | --sha | --sh)
   1135     ac_prev=sharedstatedir ;;
   1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1139   | --sha=* | --sh=*)
   1140     sharedstatedir=$ac_optarg ;;
   1141 
   1142   -site | --site | --sit)
   1143     ac_prev=site ;;
   1144   -site=* | --site=* | --sit=*)
   1145     site=$ac_optarg ;;
   1146 
   1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1148     ac_prev=srcdir ;;
   1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1150     srcdir=$ac_optarg ;;
   1151 
   1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1153   | --syscon | --sysco | --sysc | --sys | --sy)
   1154     ac_prev=sysconfdir ;;
   1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1157     sysconfdir=$ac_optarg ;;
   1158 
   1159   -target | --target | --targe | --targ | --tar | --ta | --t)
   1160     ac_prev=target_alias ;;
   1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1162     target_alias=$ac_optarg ;;
   1163 
   1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1165     verbose=yes ;;
   1166 
   1167   -version | --version | --versio | --versi | --vers | -V)
   1168     ac_init_version=: ;;
   1169 
   1170   -with-* | --with-*)
   1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1172     # Reject names that are not valid shell variable names.
   1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1174       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1175     ac_useropt_orig=$ac_useropt
   1176     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1177     case $ac_user_opts in
   1178       *"
   1179 "with_$ac_useropt"
   1180 "*) ;;
   1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1182 	 ac_unrecognized_sep=', ';;
   1183     esac
   1184     eval with_$ac_useropt=\$ac_optarg ;;
   1185 
   1186   -without-* | --without-*)
   1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1188     # Reject names that are not valid shell variable names.
   1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1190       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1191     ac_useropt_orig=$ac_useropt
   1192     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1193     case $ac_user_opts in
   1194       *"
   1195 "with_$ac_useropt"
   1196 "*) ;;
   1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1198 	 ac_unrecognized_sep=', ';;
   1199     esac
   1200     eval with_$ac_useropt=no ;;
   1201 
   1202   --x)
   1203     # Obsolete; use --with-x.
   1204     with_x=yes ;;
   1205 
   1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1207   | --x-incl | --x-inc | --x-in | --x-i)
   1208     ac_prev=x_includes ;;
   1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1211     x_includes=$ac_optarg ;;
   1212 
   1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1215     ac_prev=x_libraries ;;
   1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1218     x_libraries=$ac_optarg ;;
   1219 
   1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1221 Try \`$0 --help' for more information"
   1222     ;;
   1223 
   1224   *=*)
   1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1226     # Reject names that are not valid shell variable names.
   1227     case $ac_envvar in #(
   1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1230     esac
   1231     eval $ac_envvar=\$ac_optarg
   1232     export $ac_envvar ;;
   1233 
   1234   *)
   1235     # FIXME: should be removed in autoconf 3.0.
   1236     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1238       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1240     ;;
   1241 
   1242   esac
   1243 done
   1244 
   1245 if test -n "$ac_prev"; then
   1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1247   as_fn_error $? "missing argument to $ac_option"
   1248 fi
   1249 
   1250 if test -n "$ac_unrecognized_opts"; then
   1251   case $enable_option_checking in
   1252     no) ;;
   1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1254     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1255   esac
   1256 fi
   1257 
   1258 # Check all directory arguments for consistency.
   1259 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1260 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1261 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1262 		libdir localedir mandir runstatedir
   1263 do
   1264   eval ac_val=\$$ac_var
   1265   # Remove trailing slashes.
   1266   case $ac_val in
   1267     */ )
   1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1269       eval $ac_var=\$ac_val;;
   1270   esac
   1271   # Be sure to have absolute directory names.
   1272   case $ac_val in
   1273     [\\/$]* | ?:[\\/]* )  continue;;
   1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1275   esac
   1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1277 done
   1278 
   1279 # There might be people who depend on the old broken behavior: `$host'
   1280 # used to hold the argument of --host etc.
   1281 # FIXME: To remove some day.
   1282 build=$build_alias
   1283 host=$host_alias
   1284 target=$target_alias
   1285 
   1286 # FIXME: To remove some day.
   1287 if test "x$host_alias" != x; then
   1288   if test "x$build_alias" = x; then
   1289     cross_compiling=maybe
   1290   elif test "x$build_alias" != "x$host_alias"; then
   1291     cross_compiling=yes
   1292   fi
   1293 fi
   1294 
   1295 ac_tool_prefix=
   1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1297 
   1298 test "$silent" = yes && exec 6>/dev/null
   1299 
   1300 
   1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1302 ac_ls_di=`ls -di .` &&
   1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1304   as_fn_error $? "working directory cannot be determined"
   1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1306   as_fn_error $? "pwd does not report name of working directory"
   1307 
   1308 
   1309 # Find the source files, if location was not specified.
   1310 if test -z "$srcdir"; then
   1311   ac_srcdir_defaulted=yes
   1312   # Try the directory containing this script, then the parent directory.
   1313   ac_confdir=`$as_dirname -- "$as_myself" ||
   1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1315 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1316 	 X"$as_myself" : 'X\(//\)$' \| \
   1317 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1318 printf "%s\n" X"$as_myself" |
   1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1320 	    s//\1/
   1321 	    q
   1322 	  }
   1323 	  /^X\(\/\/\)[^/].*/{
   1324 	    s//\1/
   1325 	    q
   1326 	  }
   1327 	  /^X\(\/\/\)$/{
   1328 	    s//\1/
   1329 	    q
   1330 	  }
   1331 	  /^X\(\/\).*/{
   1332 	    s//\1/
   1333 	    q
   1334 	  }
   1335 	  s/.*/./; q'`
   1336   srcdir=$ac_confdir
   1337   if test ! -r "$srcdir/$ac_unique_file"; then
   1338     srcdir=..
   1339   fi
   1340 else
   1341   ac_srcdir_defaulted=no
   1342 fi
   1343 if test ! -r "$srcdir/$ac_unique_file"; then
   1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1346 fi
   1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1348 ac_abs_confdir=`(
   1349 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1350 	pwd)`
   1351 # When building in place, set srcdir=.
   1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1353   srcdir=.
   1354 fi
   1355 # Remove unnecessary trailing slashes from srcdir.
   1356 # Double slashes in file names in object file debugging info
   1357 # mess up M-x gdb in Emacs.
   1358 case $srcdir in
   1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1360 esac
   1361 for ac_var in $ac_precious_vars; do
   1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1363   eval ac_env_${ac_var}_value=\$${ac_var}
   1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1366 done
   1367 
   1368 #
   1369 # Report the --help message.
   1370 #
   1371 if test "$ac_init_help" = "long"; then
   1372   # Omit some internal or obsolete options to make the list less imposing.
   1373   # This message is too long to be a string in the A/UX 3.1 sh.
   1374   cat <<_ACEOF
   1375 \`configure' configures unrealircd 6.1.0 to adapt to many kinds of systems.
   1376 
   1377 Usage: $0 [OPTION]... [VAR=VALUE]...
   1378 
   1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1381 
   1382 Defaults for the options are specified in brackets.
   1383 
   1384 Configuration:
   1385   -h, --help              display this help and exit
   1386       --help=short        display options specific to this package
   1387       --help=recursive    display the short help of all the included packages
   1388   -V, --version           display version information and exit
   1389   -q, --quiet, --silent   do not print \`checking ...' messages
   1390       --cache-file=FILE   cache test results in FILE [disabled]
   1391   -C, --config-cache      alias for \`--cache-file=config.cache'
   1392   -n, --no-create         do not create output files
   1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1394 
   1395 Installation directories:
   1396   --prefix=PREFIX         install architecture-independent files in PREFIX
   1397                           [$ac_default_prefix]
   1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1399                           [PREFIX]
   1400 
   1401 By default, \`make install' will install all the files in
   1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1404 for instance \`--prefix=\$HOME'.
   1405 
   1406 For better control, use the options below.
   1407 
   1408 Fine tuning of the installation directories:
   1409   --bindir=DIR            user executables [EPREFIX/bin]
   1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1415   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1416   --libdir=DIR            object code libraries [EPREFIX/lib]
   1417   --includedir=DIR        C header files [PREFIX/include]
   1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/unrealircd]
   1425   --htmldir=DIR           html documentation [DOCDIR]
   1426   --dvidir=DIR            dvi documentation [DOCDIR]
   1427   --pdfdir=DIR            pdf documentation [DOCDIR]
   1428   --psdir=DIR             ps documentation [DOCDIR]
   1429 _ACEOF
   1430 
   1431   cat <<\_ACEOF
   1432 
   1433 System types:
   1434   --build=BUILD     configure for building on BUILD [guessed]
   1435   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1436 _ACEOF
   1437 fi
   1438 
   1439 if test -n "$ac_init_help"; then
   1440   case $ac_init_help in
   1441      short | recursive ) echo "Configuration of unrealircd 6.1.0:";;
   1442    esac
   1443   cat <<\_ACEOF
   1444 
   1445 Optional Features:
   1446   --disable-option-checking  ignore unrecognized --enable/--with options
   1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1449   --enable-hardening      Enable compiler and linker options to frustrate
   1450                           memory corruption exploits [yes]
   1451   --enable-ssl=           enable ssl will check /usr/local/opt/openssl
   1452                           /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg
   1453                           /usr/sfw /usr/local /usr
   1454   --disable-dynamic-linking
   1455                           Make the IRCd statically link with shared objects
   1456                           rather than dynamically (noone knows if disabling
   1457                           dynamic linking actually does anything or not)
   1458   --enable-werror         Turn compilation warnings into errors (-Werror)
   1459   --enable-asan           Enable address sanitizer and other debugging
   1460                           options, not recommended for production servers!
   1461   --enable-libcurl=DIR    enable libcurl (remote include) support
   1462   --enable-geoip-classic=no/yes
   1463                           enable GeoIP Classic support
   1464   --enable-libmaxminddb=no/yes
   1465                           enable GeoIP libmaxminddb support
   1466 
   1467 Optional Packages:
   1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1470   --with-nick-history=length
   1471                           Specify the length of the nickname history
   1472   --with-permissions=permissions
   1473                           Specify the default permissions for configuration
   1474                           files
   1475   --with-bindir=path      Specify the directory for the unrealircd binary
   1476   --with-scriptdir=path   Specify the directory for the unrealircd start-stop
   1477                           script
   1478   --with-confdir=path     Specify the directory where configuration files are
   1479                           stored
   1480   --with-builddir=path    Specify the build directory
   1481   --with-modulesdir=path  Specify the directory for loadable modules
   1482   --with-logdir=path      Specify the directory where log files are stored
   1483   --with-cachedir=path    Specify the directory where cached files are stored
   1484   --with-tmpdir=path      Specify the directory where private temporary files
   1485                           are stored. Should not be readable or writable by
   1486                           others, so not /tmp!!
   1487   --with-datadir=path     Specify the directory where permanent data is stored
   1488   --with-docdir=path      Specify the directory where documentation is stored
   1489   --with-pidfile=path     Specify the path of the pid file
   1490   --with-controlfile=path Specify the path of the control socket
   1491   --with-privatelibdir=path
   1492                           Specify the directory where private libraries are
   1493                           stored. Disable when building a package for a distro
   1494   --with-maxconnections=size
   1495                           Specify the max file descriptors to use
   1496   --with-no-operoverride  Disable OperOverride
   1497   --with-operoverride-verify
   1498                           Require opers to invite themselves to +s/+p channels
   1499   --without-system-pcre2  Use the system pcre2 package instead of bundled,
   1500                           discovered using pkg-config
   1501   --without-system-argon2 Use bundled version instead of system argon2
   1502                           library. Normally autodetected via pkg-config
   1503   --without-system-sodium Use bundled version instead of system sodium
   1504                           library. Normally autodetected via pkg-config
   1505   --without-system-cares  Use bundled version instead of system c-ares.
   1506                           Normally autodetected via pkg-config.
   1507   --without-system-jansson
   1508                           Use bundled version instead of system jansson.
   1509                           Normally autodetected via pkg-config.
   1510 
   1511 Some influential environment variables:
   1512   CC          C compiler command
   1513   CFLAGS      C compiler flags
   1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1515               nonstandard directory <lib dir>
   1516   LIBS        libraries to pass to the linker, e.g. -l<library>
   1517   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1518               you have headers in a nonstandard directory <include dir>
   1519   CPP         C preprocessor
   1520   PKG_CONFIG  path to pkg-config utility
   1521   PKG_CONFIG_PATH
   1522               directories to add to pkg-config's search path
   1523   PKG_CONFIG_LIBDIR
   1524               path overriding pkg-config's built-in search path
   1525   PCRE2_CFLAGS
   1526               C compiler flags for PCRE2, overriding pkg-config
   1527   PCRE2_LIBS  linker flags for PCRE2, overriding pkg-config
   1528   ARGON2_CFLAGS
   1529               C compiler flags for ARGON2, overriding pkg-config
   1530   ARGON2_LIBS linker flags for ARGON2, overriding pkg-config
   1531   SODIUM_CFLAGS
   1532               C compiler flags for SODIUM, overriding pkg-config
   1533   SODIUM_LIBS linker flags for SODIUM, overriding pkg-config
   1534   CARES_CFLAGS
   1535               C compiler flags for CARES, overriding pkg-config
   1536   CARES_LIBS  linker flags for CARES, overriding pkg-config
   1537   JANSSON_CFLAGS
   1538               C compiler flags for JANSSON, overriding pkg-config
   1539   JANSSON_LIBS
   1540               linker flags for JANSSON, overriding pkg-config
   1541   GEOIP_CLASSIC_CFLAGS
   1542               C compiler flags for GEOIP_CLASSIC, overriding pkg-config
   1543   GEOIP_CLASSIC_LIBS
   1544               linker flags for GEOIP_CLASSIC, overriding pkg-config
   1545   LIBMAXMINDDB_CFLAGS
   1546               C compiler flags for LIBMAXMINDDB, overriding pkg-config
   1547   LIBMAXMINDDB_LIBS
   1548               linker flags for LIBMAXMINDDB, overriding pkg-config
   1549 
   1550 Use these variables to override the choices made by `configure' or to help
   1551 it to find libraries and programs with nonstandard names/locations.
   1552 
   1553 Report bugs to <https://bugs.unrealircd.org/>.
   1554 unrealircd home page: <https://unrealircd.org/>.
   1555 _ACEOF
   1556 ac_status=$?
   1557 fi
   1558 
   1559 if test "$ac_init_help" = "recursive"; then
   1560   # If there are subdirs, report their specific --help.
   1561   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1562     test -d "$ac_dir" ||
   1563       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1564       continue
   1565     ac_builddir=.
   1566 
   1567 case "$ac_dir" in
   1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1569 *)
   1570   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1571   # A ".." for each directory in $ac_dir_suffix.
   1572   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1573   case $ac_top_builddir_sub in
   1574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1576   esac ;;
   1577 esac
   1578 ac_abs_top_builddir=$ac_pwd
   1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1580 # for backward compatibility:
   1581 ac_top_builddir=$ac_top_build_prefix
   1582 
   1583 case $srcdir in
   1584   .)  # We are building in place.
   1585     ac_srcdir=.
   1586     ac_top_srcdir=$ac_top_builddir_sub
   1587     ac_abs_top_srcdir=$ac_pwd ;;
   1588   [\\/]* | ?:[\\/]* )  # Absolute name.
   1589     ac_srcdir=$srcdir$ac_dir_suffix;
   1590     ac_top_srcdir=$srcdir
   1591     ac_abs_top_srcdir=$srcdir ;;
   1592   *) # Relative name.
   1593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1594     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1596 esac
   1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1598 
   1599     cd "$ac_dir" || { ac_status=$?; continue; }
   1600     # Check for configure.gnu first; this name is used for a wrapper for
   1601     # Metaconfig's "Configure" on case-insensitive file systems.
   1602     if test -f "$ac_srcdir/configure.gnu"; then
   1603       echo &&
   1604       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1605     elif test -f "$ac_srcdir/configure"; then
   1606       echo &&
   1607       $SHELL "$ac_srcdir/configure" --help=recursive
   1608     else
   1609       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1610     fi || ac_status=$?
   1611     cd "$ac_pwd" || { ac_status=$?; break; }
   1612   done
   1613 fi
   1614 
   1615 test -n "$ac_init_help" && exit $ac_status
   1616 if $ac_init_version; then
   1617   cat <<\_ACEOF
   1618 unrealircd configure 6.1.0
   1619 generated by GNU Autoconf 2.71
   1620 
   1621 Copyright (C) 2021 Free Software Foundation, Inc.
   1622 This configure script is free software; the Free Software Foundation
   1623 gives unlimited permission to copy, distribute and modify it.
   1624 _ACEOF
   1625   exit
   1626 fi
   1627 
   1628 ## ------------------------ ##
   1629 ## Autoconf initialization. ##
   1630 ## ------------------------ ##
   1631 
   1632 # ac_fn_c_try_compile LINENO
   1633 # --------------------------
   1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1635 ac_fn_c_try_compile ()
   1636 {
   1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1638   rm -f conftest.$ac_objext conftest.beam
   1639   if { { ac_try="$ac_compile"
   1640 case "(($ac_try" in
   1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1642   *) ac_try_echo=$ac_try;;
   1643 esac
   1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1645 printf "%s\n" "$ac_try_echo"; } >&5
   1646   (eval "$ac_compile") 2>conftest.err
   1647   ac_status=$?
   1648   if test -s conftest.err; then
   1649     grep -v '^ *+' conftest.err >conftest.er1
   1650     cat conftest.er1 >&5
   1651     mv -f conftest.er1 conftest.err
   1652   fi
   1653   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1654   test $ac_status = 0; } && {
   1655 	 test -z "$ac_c_werror_flag" ||
   1656 	 test ! -s conftest.err
   1657        } && test -s conftest.$ac_objext
   1658 then :
   1659   ac_retval=0
   1660 else $as_nop
   1661   printf "%s\n" "$as_me: failed program was:" >&5
   1662 sed 's/^/| /' conftest.$ac_ext >&5
   1663 
   1664 	ac_retval=1
   1665 fi
   1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1667   as_fn_set_status $ac_retval
   1668 
   1669 } # ac_fn_c_try_compile
   1670 
   1671 # ac_fn_c_try_link LINENO
   1672 # -----------------------
   1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1674 ac_fn_c_try_link ()
   1675 {
   1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1677   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1678   if { { ac_try="$ac_link"
   1679 case "(($ac_try" in
   1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1681   *) ac_try_echo=$ac_try;;
   1682 esac
   1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1684 printf "%s\n" "$ac_try_echo"; } >&5
   1685   (eval "$ac_link") 2>conftest.err
   1686   ac_status=$?
   1687   if test -s conftest.err; then
   1688     grep -v '^ *+' conftest.err >conftest.er1
   1689     cat conftest.er1 >&5
   1690     mv -f conftest.er1 conftest.err
   1691   fi
   1692   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1693   test $ac_status = 0; } && {
   1694 	 test -z "$ac_c_werror_flag" ||
   1695 	 test ! -s conftest.err
   1696        } && test -s conftest$ac_exeext && {
   1697 	 test "$cross_compiling" = yes ||
   1698 	 test -x conftest$ac_exeext
   1699        }
   1700 then :
   1701   ac_retval=0
   1702 else $as_nop
   1703   printf "%s\n" "$as_me: failed program was:" >&5
   1704 sed 's/^/| /' conftest.$ac_ext >&5
   1705 
   1706 	ac_retval=1
   1707 fi
   1708   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1709   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1710   # interfere with the next link command; also delete a directory that is
   1711   # left behind by Apple's compiler.  We do this before executing the actions.
   1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1714   as_fn_set_status $ac_retval
   1715 
   1716 } # ac_fn_c_try_link
   1717 
   1718 # ac_fn_c_try_run LINENO
   1719 # ----------------------
   1720 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
   1721 # executables *can* be run.
   1722 ac_fn_c_try_run ()
   1723 {
   1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1725   if { { ac_try="$ac_link"
   1726 case "(($ac_try" in
   1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1728   *) ac_try_echo=$ac_try;;
   1729 esac
   1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1731 printf "%s\n" "$ac_try_echo"; } >&5
   1732   (eval "$ac_link") 2>&5
   1733   ac_status=$?
   1734   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1735   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1736   { { case "(($ac_try" in
   1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1738   *) ac_try_echo=$ac_try;;
   1739 esac
   1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1741 printf "%s\n" "$ac_try_echo"; } >&5
   1742   (eval "$ac_try") 2>&5
   1743   ac_status=$?
   1744   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1745   test $ac_status = 0; }; }
   1746 then :
   1747   ac_retval=0
   1748 else $as_nop
   1749   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
   1750        printf "%s\n" "$as_me: failed program was:" >&5
   1751 sed 's/^/| /' conftest.$ac_ext >&5
   1752 
   1753        ac_retval=$ac_status
   1754 fi
   1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1757   as_fn_set_status $ac_retval
   1758 
   1759 } # ac_fn_c_try_run
   1760 
   1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1762 # -------------------------------------------------------
   1763 # Tests whether HEADER exists and can be compiled using the include files in
   1764 # INCLUDES, setting the cache variable VAR accordingly.
   1765 ac_fn_c_check_header_compile ()
   1766 {
   1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1769 printf %s "checking for $2... " >&6; }
   1770 if eval test \${$3+y}
   1771 then :
   1772   printf %s "(cached) " >&6
   1773 else $as_nop
   1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1775 /* end confdefs.h.  */
   1776 $4
   1777 #include <$2>
   1778 _ACEOF
   1779 if ac_fn_c_try_compile "$LINENO"
   1780 then :
   1781   eval "$3=yes"
   1782 else $as_nop
   1783   eval "$3=no"
   1784 fi
   1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1786 fi
   1787 eval ac_res=\$$3
   1788 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1789 printf "%s\n" "$ac_res" >&6; }
   1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1791 
   1792 } # ac_fn_c_check_header_compile
   1793 
   1794 # ac_fn_c_check_func LINENO FUNC VAR
   1795 # ----------------------------------
   1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1797 ac_fn_c_check_func ()
   1798 {
   1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1801 printf %s "checking for $2... " >&6; }
   1802 if eval test \${$3+y}
   1803 then :
   1804   printf %s "(cached) " >&6
   1805 else $as_nop
   1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1807 /* end confdefs.h.  */
   1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1810 #define $2 innocuous_$2
   1811 
   1812 /* System header to define __stub macros and hopefully few prototypes,
   1813    which can conflict with char $2 (); below.  */
   1814 
   1815 #include <limits.h>
   1816 #undef $2
   1817 
   1818 /* Override any GCC internal prototype to avoid an error.
   1819    Use char because int might match the return type of a GCC
   1820    builtin and then its argument prototype would still apply.  */
   1821 #ifdef __cplusplus
   1822 extern "C"
   1823 #endif
   1824 char $2 ();
   1825 /* The GNU C library defines this for functions which it implements
   1826     to always fail with ENOSYS.  Some functions are actually named
   1827     something starting with __ and the normal name is an alias.  */
   1828 #if defined __stub_$2 || defined __stub___$2
   1829 choke me
   1830 #endif
   1831 
   1832 int
   1833 main (void)
   1834 {
   1835 return $2 ();
   1836   ;
   1837   return 0;
   1838 }
   1839 _ACEOF
   1840 if ac_fn_c_try_link "$LINENO"
   1841 then :
   1842   eval "$3=yes"
   1843 else $as_nop
   1844   eval "$3=no"
   1845 fi
   1846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1847     conftest$ac_exeext conftest.$ac_ext
   1848 fi
   1849 eval ac_res=\$$3
   1850 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1851 printf "%s\n" "$ac_res" >&6; }
   1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1853 
   1854 } # ac_fn_c_check_func
   1855 
   1856 # ac_fn_c_try_cpp LINENO
   1857 # ----------------------
   1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1859 ac_fn_c_try_cpp ()
   1860 {
   1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1862   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1863 case "(($ac_try" in
   1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1865   *) ac_try_echo=$ac_try;;
   1866 esac
   1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1868 printf "%s\n" "$ac_try_echo"; } >&5
   1869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1870   ac_status=$?
   1871   if test -s conftest.err; then
   1872     grep -v '^ *+' conftest.err >conftest.er1
   1873     cat conftest.er1 >&5
   1874     mv -f conftest.er1 conftest.err
   1875   fi
   1876   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1877   test $ac_status = 0; } > conftest.i && {
   1878 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1879 	 test ! -s conftest.err
   1880        }
   1881 then :
   1882   ac_retval=0
   1883 else $as_nop
   1884   printf "%s\n" "$as_me: failed program was:" >&5
   1885 sed 's/^/| /' conftest.$ac_ext >&5
   1886 
   1887     ac_retval=1
   1888 fi
   1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1890   as_fn_set_status $ac_retval
   1891 
   1892 } # ac_fn_c_try_cpp
   1893 ac_configure_args_raw=
   1894 for ac_arg
   1895 do
   1896   case $ac_arg in
   1897   *\'*)
   1898     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1899   esac
   1900   as_fn_append ac_configure_args_raw " '$ac_arg'"
   1901 done
   1902 
   1903 case $ac_configure_args_raw in
   1904   *$as_nl*)
   1905     ac_safe_unquote= ;;
   1906   *)
   1907     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   1908     ac_unsafe_a="$ac_unsafe_z#~"
   1909     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   1910     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   1911 esac
   1912 
   1913 cat >config.log <<_ACEOF
   1914 This file contains any messages produced by compilers while
   1915 running configure, to aid debugging if configure makes a mistake.
   1916 
   1917 It was created by unrealircd $as_me 6.1.0, which was
   1918 generated by GNU Autoconf 2.71.  Invocation command line was
   1919 
   1920   $ $0$ac_configure_args_raw
   1921 
   1922 _ACEOF
   1923 exec 5>>config.log
   1924 {
   1925 cat <<_ASUNAME
   1926 ## --------- ##
   1927 ## Platform. ##
   1928 ## --------- ##
   1929 
   1930 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1931 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1932 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1933 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1934 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1935 
   1936 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1937 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1938 
   1939 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1940 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1941 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1942 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1943 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1944 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1945 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1946 
   1947 _ASUNAME
   1948 
   1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1950 for as_dir in $PATH
   1951 do
   1952   IFS=$as_save_IFS
   1953   case $as_dir in #(((
   1954     '') as_dir=./ ;;
   1955     */) ;;
   1956     *) as_dir=$as_dir/ ;;
   1957   esac
   1958     printf "%s\n" "PATH: $as_dir"
   1959   done
   1960 IFS=$as_save_IFS
   1961 
   1962 } >&5
   1963 
   1964 cat >&5 <<_ACEOF
   1965 
   1966 
   1967 ## ----------- ##
   1968 ## Core tests. ##
   1969 ## ----------- ##
   1970 
   1971 _ACEOF
   1972 
   1973 
   1974 # Keep a trace of the command line.
   1975 # Strip out --no-create and --no-recursion so they do not pile up.
   1976 # Strip out --silent because we don't want to record it for future runs.
   1977 # Also quote any args containing shell meta-characters.
   1978 # Make two passes to allow for proper duplicate-argument suppression.
   1979 ac_configure_args=
   1980 ac_configure_args0=
   1981 ac_configure_args1=
   1982 ac_must_keep_next=false
   1983 for ac_pass in 1 2
   1984 do
   1985   for ac_arg
   1986   do
   1987     case $ac_arg in
   1988     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1989     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1990     | -silent | --silent | --silen | --sile | --sil)
   1991       continue ;;
   1992     *\'*)
   1993       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1994     esac
   1995     case $ac_pass in
   1996     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1997     2)
   1998       as_fn_append ac_configure_args1 " '$ac_arg'"
   1999       if test $ac_must_keep_next = true; then
   2000 	ac_must_keep_next=false # Got value, back to normal.
   2001       else
   2002 	case $ac_arg in
   2003 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2004 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2005 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2006 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2007 	    case "$ac_configure_args0 " in
   2008 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2009 	    esac
   2010 	    ;;
   2011 	  -* ) ac_must_keep_next=true ;;
   2012 	esac
   2013       fi
   2014       as_fn_append ac_configure_args " '$ac_arg'"
   2015       ;;
   2016     esac
   2017   done
   2018 done
   2019 { ac_configure_args0=; unset ac_configure_args0;}
   2020 { ac_configure_args1=; unset ac_configure_args1;}
   2021 
   2022 # When interrupted or exit'd, cleanup temporary files, and complete
   2023 # config.log.  We remove comments because anyway the quotes in there
   2024 # would cause problems or look ugly.
   2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2027 trap 'exit_status=$?
   2028   # Sanitize IFS.
   2029   IFS=" ""	$as_nl"
   2030   # Save into config.log some information that might help in debugging.
   2031   {
   2032     echo
   2033 
   2034     printf "%s\n" "## ---------------- ##
   2035 ## Cache variables. ##
   2036 ## ---------------- ##"
   2037     echo
   2038     # The following way of writing the cache mishandles newlines in values,
   2039 (
   2040   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2041     eval ac_val=\$$ac_var
   2042     case $ac_val in #(
   2043     *${as_nl}*)
   2044       case $ac_var in #(
   2045       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2046 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2047       esac
   2048       case $ac_var in #(
   2049       _ | IFS | as_nl) ;; #(
   2050       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2051       *) { eval $ac_var=; unset $ac_var;} ;;
   2052       esac ;;
   2053     esac
   2054   done
   2055   (set) 2>&1 |
   2056     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2057     *${as_nl}ac_space=\ *)
   2058       sed -n \
   2059 	"s/'\''/'\''\\\\'\'''\''/g;
   2060 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2061       ;; #(
   2062     *)
   2063       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2064       ;;
   2065     esac |
   2066     sort
   2067 )
   2068     echo
   2069 
   2070     printf "%s\n" "## ----------------- ##
   2071 ## Output variables. ##
   2072 ## ----------------- ##"
   2073     echo
   2074     for ac_var in $ac_subst_vars
   2075     do
   2076       eval ac_val=\$$ac_var
   2077       case $ac_val in
   2078       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2079       esac
   2080       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2081     done | sort
   2082     echo
   2083 
   2084     if test -n "$ac_subst_files"; then
   2085       printf "%s\n" "## ------------------- ##
   2086 ## File substitutions. ##
   2087 ## ------------------- ##"
   2088       echo
   2089       for ac_var in $ac_subst_files
   2090       do
   2091 	eval ac_val=\$$ac_var
   2092 	case $ac_val in
   2093 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2094 	esac
   2095 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2096       done | sort
   2097       echo
   2098     fi
   2099 
   2100     if test -s confdefs.h; then
   2101       printf "%s\n" "## ----------- ##
   2102 ## confdefs.h. ##
   2103 ## ----------- ##"
   2104       echo
   2105       cat confdefs.h
   2106       echo
   2107     fi
   2108     test "$ac_signal" != 0 &&
   2109       printf "%s\n" "$as_me: caught signal $ac_signal"
   2110     printf "%s\n" "$as_me: exit $exit_status"
   2111   } >&5
   2112   rm -f core *.core core.conftest.* &&
   2113     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2114     exit $exit_status
   2115 ' 0
   2116 for ac_signal in 1 2 13 15; do
   2117   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2118 done
   2119 ac_signal=0
   2120 
   2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2122 rm -f -r conftest* confdefs.h
   2123 
   2124 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2125 
   2126 # Predefined preprocessor variables.
   2127 
   2128 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2129 
   2130 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2131 
   2132 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2133 
   2134 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2135 
   2136 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2137 
   2138 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2139 
   2140 
   2141 # Let the site file select an alternate cache file if it wants to.
   2142 # Prefer an explicitly selected file to automatically selected ones.
   2143 if test -n "$CONFIG_SITE"; then
   2144   ac_site_files="$CONFIG_SITE"
   2145 elif test "x$prefix" != xNONE; then
   2146   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2147 else
   2148   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2149 fi
   2150 
   2151 for ac_site_file in $ac_site_files
   2152 do
   2153   case $ac_site_file in #(
   2154   */*) :
   2155      ;; #(
   2156   *) :
   2157     ac_site_file=./$ac_site_file ;;
   2158 esac
   2159   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2161 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2162     sed 's/^/| /' "$ac_site_file" >&5
   2163     . "$ac_site_file" \
   2164       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2166 as_fn_error $? "failed to load site script $ac_site_file
   2167 See \`config.log' for more details" "$LINENO" 5; }
   2168   fi
   2169 done
   2170 
   2171 if test -r "$cache_file"; then
   2172   # Some versions of bash will fail to source /dev/null (special files
   2173   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2174   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2176 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2177     case $cache_file in
   2178       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2179       *)                      . "./$cache_file";;
   2180     esac
   2181   fi
   2182 else
   2183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2184 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2185   >$cache_file
   2186 fi
   2187 
   2188 # Test code for whether the C compiler supports C89 (global declarations)
   2189 ac_c_conftest_c89_globals='
   2190 /* Does the compiler advertise C89 conformance?
   2191    Do not test the value of __STDC__, because some compilers set it to 0
   2192    while being otherwise adequately conformant. */
   2193 #if !defined __STDC__
   2194 # error "Compiler does not advertise C89 conformance"
   2195 #endif
   2196 
   2197 #include <stddef.h>
   2198 #include <stdarg.h>
   2199 struct stat;
   2200 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2201 struct buf { int x; };
   2202 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2203 static char *e (p, i)
   2204      char **p;
   2205      int i;
   2206 {
   2207   return p[i];
   2208 }
   2209 static char *f (char * (*g) (char **, int), char **p, ...)
   2210 {
   2211   char *s;
   2212   va_list v;
   2213   va_start (v,p);
   2214   s = g (p, va_arg (v,int));
   2215   va_end (v);
   2216   return s;
   2217 }
   2218 
   2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2220    function prototypes and stuff, but not \xHH hex character constants.
   2221    These do not provoke an error unfortunately, instead are silently treated
   2222    as an "x".  The following induces an error, until -std is added to get
   2223    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2224    array size at least.  It is necessary to write \x00 == 0 to get something
   2225    that is true only with -std.  */
   2226 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2227 
   2228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2229    inside strings and character constants.  */
   2230 #define FOO(x) '\''x'\''
   2231 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2232 
   2233 int test (int i, double x);
   2234 struct s1 {int (*f) (int a);};
   2235 struct s2 {int (*f) (double a);};
   2236 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2237                int, int);'
   2238 
   2239 # Test code for whether the C compiler supports C89 (body of main).
   2240 ac_c_conftest_c89_main='
   2241 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2242 '
   2243 
   2244 # Test code for whether the C compiler supports C99 (global declarations)
   2245 ac_c_conftest_c99_globals='
   2246 // Does the compiler advertise C99 conformance?
   2247 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2248 # error "Compiler does not advertise C99 conformance"
   2249 #endif
   2250 
   2251 #include <stdbool.h>
   2252 extern int puts (const char *);
   2253 extern int printf (const char *, ...);
   2254 extern int dprintf (int, const char *, ...);
   2255 extern void *malloc (size_t);
   2256 
   2257 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2258 // dprintf is used instead of fprintf to avoid needing to declare
   2259 // FILE and stderr.
   2260 #define debug(...) dprintf (2, __VA_ARGS__)
   2261 #define showlist(...) puts (#__VA_ARGS__)
   2262 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2263 static void
   2264 test_varargs_macros (void)
   2265 {
   2266   int x = 1234;
   2267   int y = 5678;
   2268   debug ("Flag");
   2269   debug ("X = %d\n", x);
   2270   showlist (The first, second, and third items.);
   2271   report (x>y, "x is %d but y is %d", x, y);
   2272 }
   2273 
   2274 // Check long long types.
   2275 #define BIG64 18446744073709551615ull
   2276 #define BIG32 4294967295ul
   2277 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2278 #if !BIG_OK
   2279   #error "your preprocessor is broken"
   2280 #endif
   2281 #if BIG_OK
   2282 #else
   2283   #error "your preprocessor is broken"
   2284 #endif
   2285 static long long int bignum = -9223372036854775807LL;
   2286 static unsigned long long int ubignum = BIG64;
   2287 
   2288 struct incomplete_array
   2289 {
   2290   int datasize;
   2291   double data[];
   2292 };
   2293 
   2294 struct named_init {
   2295   int number;
   2296   const wchar_t *name;
   2297   double average;
   2298 };
   2299 
   2300 typedef const char *ccp;
   2301 
   2302 static inline int
   2303 test_restrict (ccp restrict text)
   2304 {
   2305   // See if C++-style comments work.
   2306   // Iterate through items via the restricted pointer.
   2307   // Also check for declarations in for loops.
   2308   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2309     continue;
   2310   return 0;
   2311 }
   2312 
   2313 // Check varargs and va_copy.
   2314 static bool
   2315 test_varargs (const char *format, ...)
   2316 {
   2317   va_list args;
   2318   va_start (args, format);
   2319   va_list args_copy;
   2320   va_copy (args_copy, args);
   2321 
   2322   const char *str = "";
   2323   int number = 0;
   2324   float fnumber = 0;
   2325 
   2326   while (*format)
   2327     {
   2328       switch (*format++)
   2329 	{
   2330 	case '\''s'\'': // string
   2331 	  str = va_arg (args_copy, const char *);
   2332 	  break;
   2333 	case '\''d'\'': // int
   2334 	  number = va_arg (args_copy, int);
   2335 	  break;
   2336 	case '\''f'\'': // float
   2337 	  fnumber = va_arg (args_copy, double);
   2338 	  break;
   2339 	default:
   2340 	  break;
   2341 	}
   2342     }
   2343   va_end (args_copy);
   2344   va_end (args);
   2345 
   2346   return *str && number && fnumber;
   2347 }
   2348 '
   2349 
   2350 # Test code for whether the C compiler supports C99 (body of main).
   2351 ac_c_conftest_c99_main='
   2352   // Check bool.
   2353   _Bool success = false;
   2354   success |= (argc != 0);
   2355 
   2356   // Check restrict.
   2357   if (test_restrict ("String literal") == 0)
   2358     success = true;
   2359   char *restrict newvar = "Another string";
   2360 
   2361   // Check varargs.
   2362   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2363   test_varargs_macros ();
   2364 
   2365   // Check flexible array members.
   2366   struct incomplete_array *ia =
   2367     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2368   ia->datasize = 10;
   2369   for (int i = 0; i < ia->datasize; ++i)
   2370     ia->data[i] = i * 1.234;
   2371 
   2372   // Check named initializers.
   2373   struct named_init ni = {
   2374     .number = 34,
   2375     .name = L"Test wide string",
   2376     .average = 543.34343,
   2377   };
   2378 
   2379   ni.number = 58;
   2380 
   2381   int dynamic_array[ni.number];
   2382   dynamic_array[0] = argv[0][0];
   2383   dynamic_array[ni.number - 1] = 543;
   2384 
   2385   // work around unused variable warnings
   2386   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2387 	 || dynamic_array[ni.number - 1] != 543);
   2388 '
   2389 
   2390 # Test code for whether the C compiler supports C11 (global declarations)
   2391 ac_c_conftest_c11_globals='
   2392 // Does the compiler advertise C11 conformance?
   2393 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2394 # error "Compiler does not advertise C11 conformance"
   2395 #endif
   2396 
   2397 // Check _Alignas.
   2398 char _Alignas (double) aligned_as_double;
   2399 char _Alignas (0) no_special_alignment;
   2400 extern char aligned_as_int;
   2401 char _Alignas (0) _Alignas (int) aligned_as_int;
   2402 
   2403 // Check _Alignof.
   2404 enum
   2405 {
   2406   int_alignment = _Alignof (int),
   2407   int_array_alignment = _Alignof (int[100]),
   2408   char_alignment = _Alignof (char)
   2409 };
   2410 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2411 
   2412 // Check _Noreturn.
   2413 int _Noreturn does_not_return (void) { for (;;) continue; }
   2414 
   2415 // Check _Static_assert.
   2416 struct test_static_assert
   2417 {
   2418   int x;
   2419   _Static_assert (sizeof (int) <= sizeof (long int),
   2420                   "_Static_assert does not work in struct");
   2421   long int y;
   2422 };
   2423 
   2424 // Check UTF-8 literals.
   2425 #define u8 syntax error!
   2426 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2427 
   2428 // Check duplicate typedefs.
   2429 typedef long *long_ptr;
   2430 typedef long int *long_ptr;
   2431 typedef long_ptr long_ptr;
   2432 
   2433 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2434 struct anonymous
   2435 {
   2436   union {
   2437     struct { int i; int j; };
   2438     struct { int k; long int l; } w;
   2439   };
   2440   int m;
   2441 } v1;
   2442 '
   2443 
   2444 # Test code for whether the C compiler supports C11 (body of main).
   2445 ac_c_conftest_c11_main='
   2446   _Static_assert ((offsetof (struct anonymous, i)
   2447 		   == offsetof (struct anonymous, w.k)),
   2448 		  "Anonymous union alignment botch");
   2449   v1.i = 2;
   2450   v1.w.k = 5;
   2451   ok |= v1.i != 5;
   2452 '
   2453 
   2454 # Test code for whether the C compiler supports C11 (complete).
   2455 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2456 ${ac_c_conftest_c99_globals}
   2457 ${ac_c_conftest_c11_globals}
   2458 
   2459 int
   2460 main (int argc, char **argv)
   2461 {
   2462   int ok = 0;
   2463   ${ac_c_conftest_c89_main}
   2464   ${ac_c_conftest_c99_main}
   2465   ${ac_c_conftest_c11_main}
   2466   return ok;
   2467 }
   2468 "
   2469 
   2470 # Test code for whether the C compiler supports C99 (complete).
   2471 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2472 ${ac_c_conftest_c99_globals}
   2473 
   2474 int
   2475 main (int argc, char **argv)
   2476 {
   2477   int ok = 0;
   2478   ${ac_c_conftest_c89_main}
   2479   ${ac_c_conftest_c99_main}
   2480   return ok;
   2481 }
   2482 "
   2483 
   2484 # Test code for whether the C compiler supports C89 (complete).
   2485 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2486 
   2487 int
   2488 main (int argc, char **argv)
   2489 {
   2490   int ok = 0;
   2491   ${ac_c_conftest_c89_main}
   2492   return ok;
   2493 }
   2494 "
   2495 
   2496 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2497 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2498 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2499 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2500 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2501 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2502 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2503 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2504 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2505 
   2506 # Auxiliary files required by this configure script.
   2507 ac_aux_files="config.guess config.sub"
   2508 
   2509 # Locations in which to look for auxiliary files.
   2510 ac_aux_dir_candidates="${srcdir}/autoconf"
   2511 
   2512 # Search for a directory containing all of the required auxiliary files,
   2513 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2514 # If we don't find one directory that contains all the files we need,
   2515 # we report the set of missing files from the *first* directory in
   2516 # $ac_aux_dir_candidates and give up.
   2517 ac_missing_aux_files=""
   2518 ac_first_candidate=:
   2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2521 as_found=false
   2522 for as_dir in $ac_aux_dir_candidates
   2523 do
   2524   IFS=$as_save_IFS
   2525   case $as_dir in #(((
   2526     '') as_dir=./ ;;
   2527     */) ;;
   2528     *) as_dir=$as_dir/ ;;
   2529   esac
   2530   as_found=:
   2531 
   2532   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2533   ac_aux_dir_found=yes
   2534   ac_install_sh=
   2535   for ac_aux in $ac_aux_files
   2536   do
   2537     # As a special case, if "install-sh" is required, that requirement
   2538     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2539     # and $ac_install_sh is set appropriately for whichever one is found.
   2540     if test x"$ac_aux" = x"install-sh"
   2541     then
   2542       if test -f "${as_dir}install-sh"; then
   2543         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2544         ac_install_sh="${as_dir}install-sh -c"
   2545       elif test -f "${as_dir}install.sh"; then
   2546         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2547         ac_install_sh="${as_dir}install.sh -c"
   2548       elif test -f "${as_dir}shtool"; then
   2549         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2550         ac_install_sh="${as_dir}shtool install -c"
   2551       else
   2552         ac_aux_dir_found=no
   2553         if $ac_first_candidate; then
   2554           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2555         else
   2556           break
   2557         fi
   2558       fi
   2559     else
   2560       if test -f "${as_dir}${ac_aux}"; then
   2561         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2562       else
   2563         ac_aux_dir_found=no
   2564         if $ac_first_candidate; then
   2565           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2566         else
   2567           break
   2568         fi
   2569       fi
   2570     fi
   2571   done
   2572   if test "$ac_aux_dir_found" = yes; then
   2573     ac_aux_dir="$as_dir"
   2574     break
   2575   fi
   2576   ac_first_candidate=false
   2577 
   2578   as_found=false
   2579 done
   2580 IFS=$as_save_IFS
   2581 if $as_found
   2582 then :
   2583 
   2584 else $as_nop
   2585   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   2586 fi
   2587 
   2588 
   2589 # These three variables are undocumented and unsupported,
   2590 # and are intended to be withdrawn in a future Autoconf release.
   2591 # They can cause serious problems if a builder's source tree is in a directory
   2592 # whose full name contains unusual characters.
   2593 if test -f "${ac_aux_dir}config.guess"; then
   2594   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2595 fi
   2596 if test -f "${ac_aux_dir}config.sub"; then
   2597   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2598 fi
   2599 if test -f "$ac_aux_dir/configure"; then
   2600   ac_configure="$SHELL ${ac_aux_dir}configure"
   2601 fi
   2602 
   2603 # Check that the precious variables saved in the cache have kept the same
   2604 # value.
   2605 ac_cache_corrupted=false
   2606 for ac_var in $ac_precious_vars; do
   2607   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2608   eval ac_new_set=\$ac_env_${ac_var}_set
   2609   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2610   eval ac_new_val=\$ac_env_${ac_var}_value
   2611   case $ac_old_set,$ac_new_set in
   2612     set,)
   2613       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2614 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2615       ac_cache_corrupted=: ;;
   2616     ,set)
   2617       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2618 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2619       ac_cache_corrupted=: ;;
   2620     ,);;
   2621     *)
   2622       if test "x$ac_old_val" != "x$ac_new_val"; then
   2623 	# differences in whitespace do not lead to failure.
   2624 	ac_old_val_w=`echo x $ac_old_val`
   2625 	ac_new_val_w=`echo x $ac_new_val`
   2626 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2627 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2628 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2629 	  ac_cache_corrupted=:
   2630 	else
   2631 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2632 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2633 	  eval $ac_var=\$ac_old_val
   2634 	fi
   2635 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2636 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2637 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2638 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   2639       fi;;
   2640   esac
   2641   # Pass precious variables to config.status.
   2642   if test "$ac_new_set" = set; then
   2643     case $ac_new_val in
   2644     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2645     *) ac_arg=$ac_var=$ac_new_val ;;
   2646     esac
   2647     case " $ac_configure_args " in
   2648       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2649       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2650     esac
   2651   fi
   2652 done
   2653 if $ac_cache_corrupted; then
   2654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2657 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2658   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   2659 	    and start over" "$LINENO" 5
   2660 fi
   2661 ## -------------------- ##
   2662 ## Main body of script. ##
   2663 ## -------------------- ##
   2664 
   2665 ac_ext=c
   2666 ac_cpp='$CPP $CPPFLAGS'
   2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2670 
   2671 
   2672 
   2673 ac_config_headers="$ac_config_headers include/setup.h"
   2674 
   2675 
   2676 
   2677 
   2678 if test "x$enable_dynamic_linking" = "x"; then
   2679 	echo "Please use ./Config instead of ./configure"
   2680 	exit 1
   2681 fi
   2682 
   2683 orig_cflags="$CFLAGS"
   2684 
   2685 BUILDDIR_NOW="`pwd`"
   2686 
   2687 # Generation version number (e.g.: X in X.Y.Z)
   2688 UNREAL_VERSION_GENERATION="6"
   2689 
   2690 printf "%s\n" "#define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION" >>confdefs.h
   2691 
   2692 
   2693 # Major version number (e.g.: Y in X.Y.Z)
   2694 UNREAL_VERSION_MAJOR="1"
   2695 
   2696 printf "%s\n" "#define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR" >>confdefs.h
   2697 
   2698 
   2699 # Minor version number (e.g.: Z in X.Y.Z)
   2700 UNREAL_VERSION_MINOR="0"
   2701 
   2702 printf "%s\n" "#define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR" >>confdefs.h
   2703 
   2704 
   2705 # The version suffix such as a beta marker or release candidate
   2706 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
   2707 # string instead of an integer because it contains arbitrary data.
   2708 UNREAL_VERSION_SUFFIX=""
   2709 
   2710 printf "%s\n" "#define UNREAL_VERSION_SUFFIX \"$UNREAL_VERSION_SUFFIX\"" >>confdefs.h
   2711 
   2712 
   2713 # Extract the first word of "rm", so it can be a program name with args.
   2714 set dummy rm; ac_word=$2
   2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2716 printf %s "checking for $ac_word... " >&6; }
   2717 if test ${ac_cv_path_RM+y}
   2718 then :
   2719   printf %s "(cached) " >&6
   2720 else $as_nop
   2721   case $RM in
   2722   [\\/]* | ?:[\\/]*)
   2723   ac_cv_path_RM="$RM" # Let the user override the test with a path.
   2724   ;;
   2725   *)
   2726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2727 for as_dir in $PATH
   2728 do
   2729   IFS=$as_save_IFS
   2730   case $as_dir in #(((
   2731     '') as_dir=./ ;;
   2732     */) ;;
   2733     *) as_dir=$as_dir/ ;;
   2734   esac
   2735     for ac_exec_ext in '' $ac_executable_extensions; do
   2736   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2737     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
   2738     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2739     break 2
   2740   fi
   2741 done
   2742   done
   2743 IFS=$as_save_IFS
   2744 
   2745   ;;
   2746 esac
   2747 fi
   2748 RM=$ac_cv_path_RM
   2749 if test -n "$RM"; then
   2750   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
   2751 printf "%s\n" "$RM" >&6; }
   2752 else
   2753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2754 printf "%s\n" "no" >&6; }
   2755 fi
   2756 
   2757 
   2758 # Extract the first word of "cp", so it can be a program name with args.
   2759 set dummy cp; ac_word=$2
   2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2761 printf %s "checking for $ac_word... " >&6; }
   2762 if test ${ac_cv_path_CP+y}
   2763 then :
   2764   printf %s "(cached) " >&6
   2765 else $as_nop
   2766   case $CP in
   2767   [\\/]* | ?:[\\/]*)
   2768   ac_cv_path_CP="$CP" # Let the user override the test with a path.
   2769   ;;
   2770   *)
   2771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2772 for as_dir in $PATH
   2773 do
   2774   IFS=$as_save_IFS
   2775   case $as_dir in #(((
   2776     '') as_dir=./ ;;
   2777     */) ;;
   2778     *) as_dir=$as_dir/ ;;
   2779   esac
   2780     for ac_exec_ext in '' $ac_executable_extensions; do
   2781   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2782     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
   2783     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2784     break 2
   2785   fi
   2786 done
   2787   done
   2788 IFS=$as_save_IFS
   2789 
   2790   ;;
   2791 esac
   2792 fi
   2793 CP=$ac_cv_path_CP
   2794 if test -n "$CP"; then
   2795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
   2796 printf "%s\n" "$CP" >&6; }
   2797 else
   2798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2799 printf "%s\n" "no" >&6; }
   2800 fi
   2801 
   2802 
   2803 # Extract the first word of "touch", so it can be a program name with args.
   2804 set dummy touch; ac_word=$2
   2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2806 printf %s "checking for $ac_word... " >&6; }
   2807 if test ${ac_cv_path_TOUCH+y}
   2808 then :
   2809   printf %s "(cached) " >&6
   2810 else $as_nop
   2811   case $TOUCH in
   2812   [\\/]* | ?:[\\/]*)
   2813   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
   2814   ;;
   2815   *)
   2816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2817 for as_dir in $PATH
   2818 do
   2819   IFS=$as_save_IFS
   2820   case $as_dir in #(((
   2821     '') as_dir=./ ;;
   2822     */) ;;
   2823     *) as_dir=$as_dir/ ;;
   2824   esac
   2825     for ac_exec_ext in '' $ac_executable_extensions; do
   2826   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2827     ac_cv_path_TOUCH="$as_dir$ac_word$ac_exec_ext"
   2828     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2829     break 2
   2830   fi
   2831 done
   2832   done
   2833 IFS=$as_save_IFS
   2834 
   2835   ;;
   2836 esac
   2837 fi
   2838 TOUCH=$ac_cv_path_TOUCH
   2839 if test -n "$TOUCH"; then
   2840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
   2841 printf "%s\n" "$TOUCH" >&6; }
   2842 else
   2843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2844 printf "%s\n" "no" >&6; }
   2845 fi
   2846 
   2847 
   2848 # Extract the first word of "openssl", so it can be a program name with args.
   2849 set dummy openssl; ac_word=$2
   2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2851 printf %s "checking for $ac_word... " >&6; }
   2852 if test ${ac_cv_path_OPENSSLPATH+y}
   2853 then :
   2854   printf %s "(cached) " >&6
   2855 else $as_nop
   2856   case $OPENSSLPATH in
   2857   [\\/]* | ?:[\\/]*)
   2858   ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
   2859   ;;
   2860   *)
   2861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2862 for as_dir in $PATH
   2863 do
   2864   IFS=$as_save_IFS
   2865   case $as_dir in #(((
   2866     '') as_dir=./ ;;
   2867     */) ;;
   2868     *) as_dir=$as_dir/ ;;
   2869   esac
   2870     for ac_exec_ext in '' $ac_executable_extensions; do
   2871   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2872     ac_cv_path_OPENSSLPATH="$as_dir$ac_word$ac_exec_ext"
   2873     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2874     break 2
   2875   fi
   2876 done
   2877   done
   2878 IFS=$as_save_IFS
   2879 
   2880   ;;
   2881 esac
   2882 fi
   2883 OPENSSLPATH=$ac_cv_path_OPENSSLPATH
   2884 if test -n "$OPENSSLPATH"; then
   2885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
   2886 printf "%s\n" "$OPENSSLPATH" >&6; }
   2887 else
   2888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2889 printf "%s\n" "no" >&6; }
   2890 fi
   2891 
   2892 
   2893 if test x"$OPENSSLPATH" = "x"
   2894 then :
   2895 
   2896 echo ""
   2897 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
   2898 echo "The following packages are required:"
   2899 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
   2900 echo "2) The binary package is usually called 'openssl'."
   2901 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
   2902 echo "After doing so, simply re-run ./Config"
   2903 exit 1
   2904 
   2905 fi
   2906 
   2907 # Extract the first word of "install", so it can be a program name with args.
   2908 set dummy install; ac_word=$2
   2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2910 printf %s "checking for $ac_word... " >&6; }
   2911 if test ${ac_cv_path_INSTALL+y}
   2912 then :
   2913   printf %s "(cached) " >&6
   2914 else $as_nop
   2915   case $INSTALL in
   2916   [\\/]* | ?:[\\/]*)
   2917   ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
   2918   ;;
   2919   *)
   2920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2921 for as_dir in $PATH
   2922 do
   2923   IFS=$as_save_IFS
   2924   case $as_dir in #(((
   2925     '') as_dir=./ ;;
   2926     */) ;;
   2927     *) as_dir=$as_dir/ ;;
   2928   esac
   2929     for ac_exec_ext in '' $ac_executable_extensions; do
   2930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2931     ac_cv_path_INSTALL="$as_dir$ac_word$ac_exec_ext"
   2932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2933     break 2
   2934   fi
   2935 done
   2936   done
   2937 IFS=$as_save_IFS
   2938 
   2939   ;;
   2940 esac
   2941 fi
   2942 INSTALL=$ac_cv_path_INSTALL
   2943 if test -n "$INSTALL"; then
   2944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2945 printf "%s\n" "$INSTALL" >&6; }
   2946 else
   2947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2948 printf "%s\n" "no" >&6; }
   2949 fi
   2950 
   2951 
   2952 # Extract the first word of "gunzip", so it can be a program name with args.
   2953 set dummy gunzip; ac_word=$2
   2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2955 printf %s "checking for $ac_word... " >&6; }
   2956 if test ${ac_cv_path_GUNZIP+y}
   2957 then :
   2958   printf %s "(cached) " >&6
   2959 else $as_nop
   2960   case $GUNZIP in
   2961   [\\/]* | ?:[\\/]*)
   2962   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
   2963   ;;
   2964   *)
   2965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2966 for as_dir in $PATH
   2967 do
   2968   IFS=$as_save_IFS
   2969   case $as_dir in #(((
   2970     '') as_dir=./ ;;
   2971     */) ;;
   2972     *) as_dir=$as_dir/ ;;
   2973   esac
   2974     for ac_exec_ext in '' $ac_executable_extensions; do
   2975   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2976     ac_cv_path_GUNZIP="$as_dir$ac_word$ac_exec_ext"
   2977     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2978     break 2
   2979   fi
   2980 done
   2981   done
   2982 IFS=$as_save_IFS
   2983 
   2984   ;;
   2985 esac
   2986 fi
   2987 GUNZIP=$ac_cv_path_GUNZIP
   2988 if test -n "$GUNZIP"; then
   2989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
   2990 printf "%s\n" "$GUNZIP" >&6; }
   2991 else
   2992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2993 printf "%s\n" "no" >&6; }
   2994 fi
   2995 
   2996 
   2997 # Extract the first word of "pkg-config", so it can be a program name with args.
   2998 set dummy pkg-config; ac_word=$2
   2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3000 printf %s "checking for $ac_word... " >&6; }
   3001 if test ${ac_cv_path_PKGCONFIG+y}
   3002 then :
   3003   printf %s "(cached) " >&6
   3004 else $as_nop
   3005   case $PKGCONFIG in
   3006   [\\/]* | ?:[\\/]*)
   3007   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
   3008   ;;
   3009   *)
   3010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3011 for as_dir in $PATH
   3012 do
   3013   IFS=$as_save_IFS
   3014   case $as_dir in #(((
   3015     '') as_dir=./ ;;
   3016     */) ;;
   3017     *) as_dir=$as_dir/ ;;
   3018   esac
   3019     for ac_exec_ext in '' $ac_executable_extensions; do
   3020   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3021     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
   3022     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3023     break 2
   3024   fi
   3025 done
   3026   done
   3027 IFS=$as_save_IFS
   3028 
   3029   ;;
   3030 esac
   3031 fi
   3032 PKGCONFIG=$ac_cv_path_PKGCONFIG
   3033 if test -n "$PKGCONFIG"; then
   3034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
   3035 printf "%s\n" "$PKGCONFIG" >&6; }
   3036 else
   3037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3038 printf "%s\n" "no" >&6; }
   3039 fi
   3040 
   3041 
   3042 
   3043 
   3044 
   3045 
   3046 
   3047 
   3048 
   3049 
   3050 
   3051 
   3052 ac_ext=c
   3053 ac_cpp='$CPP $CPPFLAGS'
   3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3057 if test -n "$ac_tool_prefix"; then
   3058   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3061 printf %s "checking for $ac_word... " >&6; }
   3062 if test ${ac_cv_prog_CC+y}
   3063 then :
   3064   printf %s "(cached) " >&6
   3065 else $as_nop
   3066   if test -n "$CC"; then
   3067   ac_cv_prog_CC="$CC" # Let the user override the test.
   3068 else
   3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3070 for as_dir in $PATH
   3071 do
   3072   IFS=$as_save_IFS
   3073   case $as_dir in #(((
   3074     '') as_dir=./ ;;
   3075     */) ;;
   3076     *) as_dir=$as_dir/ ;;
   3077   esac
   3078     for ac_exec_ext in '' $ac_executable_extensions; do
   3079   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3080     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3081     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3082     break 2
   3083   fi
   3084 done
   3085   done
   3086 IFS=$as_save_IFS
   3087 
   3088 fi
   3089 fi
   3090 CC=$ac_cv_prog_CC
   3091 if test -n "$CC"; then
   3092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3093 printf "%s\n" "$CC" >&6; }
   3094 else
   3095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3096 printf "%s\n" "no" >&6; }
   3097 fi
   3098 
   3099 
   3100 fi
   3101 if test -z "$ac_cv_prog_CC"; then
   3102   ac_ct_CC=$CC
   3103   # Extract the first word of "gcc", so it can be a program name with args.
   3104 set dummy gcc; ac_word=$2
   3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3106 printf %s "checking for $ac_word... " >&6; }
   3107 if test ${ac_cv_prog_ac_ct_CC+y}
   3108 then :
   3109   printf %s "(cached) " >&6
   3110 else $as_nop
   3111   if test -n "$ac_ct_CC"; then
   3112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3113 else
   3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3115 for as_dir in $PATH
   3116 do
   3117   IFS=$as_save_IFS
   3118   case $as_dir in #(((
   3119     '') as_dir=./ ;;
   3120     */) ;;
   3121     *) as_dir=$as_dir/ ;;
   3122   esac
   3123     for ac_exec_ext in '' $ac_executable_extensions; do
   3124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3125     ac_cv_prog_ac_ct_CC="gcc"
   3126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3127     break 2
   3128   fi
   3129 done
   3130   done
   3131 IFS=$as_save_IFS
   3132 
   3133 fi
   3134 fi
   3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3136 if test -n "$ac_ct_CC"; then
   3137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3138 printf "%s\n" "$ac_ct_CC" >&6; }
   3139 else
   3140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3141 printf "%s\n" "no" >&6; }
   3142 fi
   3143 
   3144   if test "x$ac_ct_CC" = x; then
   3145     CC=""
   3146   else
   3147     case $cross_compiling:$ac_tool_warned in
   3148 yes:)
   3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3151 ac_tool_warned=yes ;;
   3152 esac
   3153     CC=$ac_ct_CC
   3154   fi
   3155 else
   3156   CC="$ac_cv_prog_CC"
   3157 fi
   3158 
   3159 if test -z "$CC"; then
   3160           if test -n "$ac_tool_prefix"; then
   3161     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3162 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3164 printf %s "checking for $ac_word... " >&6; }
   3165 if test ${ac_cv_prog_CC+y}
   3166 then :
   3167   printf %s "(cached) " >&6
   3168 else $as_nop
   3169   if test -n "$CC"; then
   3170   ac_cv_prog_CC="$CC" # Let the user override the test.
   3171 else
   3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3173 for as_dir in $PATH
   3174 do
   3175   IFS=$as_save_IFS
   3176   case $as_dir in #(((
   3177     '') as_dir=./ ;;
   3178     */) ;;
   3179     *) as_dir=$as_dir/ ;;
   3180   esac
   3181     for ac_exec_ext in '' $ac_executable_extensions; do
   3182   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3183     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3184     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3185     break 2
   3186   fi
   3187 done
   3188   done
   3189 IFS=$as_save_IFS
   3190 
   3191 fi
   3192 fi
   3193 CC=$ac_cv_prog_CC
   3194 if test -n "$CC"; then
   3195   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3196 printf "%s\n" "$CC" >&6; }
   3197 else
   3198   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3199 printf "%s\n" "no" >&6; }
   3200 fi
   3201 
   3202 
   3203   fi
   3204 fi
   3205 if test -z "$CC"; then
   3206   # Extract the first word of "cc", so it can be a program name with args.
   3207 set dummy cc; ac_word=$2
   3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3209 printf %s "checking for $ac_word... " >&6; }
   3210 if test ${ac_cv_prog_CC+y}
   3211 then :
   3212   printf %s "(cached) " >&6
   3213 else $as_nop
   3214   if test -n "$CC"; then
   3215   ac_cv_prog_CC="$CC" # Let the user override the test.
   3216 else
   3217   ac_prog_rejected=no
   3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3219 for as_dir in $PATH
   3220 do
   3221   IFS=$as_save_IFS
   3222   case $as_dir in #(((
   3223     '') as_dir=./ ;;
   3224     */) ;;
   3225     *) as_dir=$as_dir/ ;;
   3226   esac
   3227     for ac_exec_ext in '' $ac_executable_extensions; do
   3228   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3229     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3230        ac_prog_rejected=yes
   3231        continue
   3232      fi
   3233     ac_cv_prog_CC="cc"
   3234     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3235     break 2
   3236   fi
   3237 done
   3238   done
   3239 IFS=$as_save_IFS
   3240 
   3241 if test $ac_prog_rejected = yes; then
   3242   # We found a bogon in the path, so make sure we never use it.
   3243   set dummy $ac_cv_prog_CC
   3244   shift
   3245   if test $# != 0; then
   3246     # We chose a different compiler from the bogus one.
   3247     # However, it has the same basename, so the bogon will be chosen
   3248     # first if we set CC to just the basename; use the full file name.
   3249     shift
   3250     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   3251   fi
   3252 fi
   3253 fi
   3254 fi
   3255 CC=$ac_cv_prog_CC
   3256 if test -n "$CC"; then
   3257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3258 printf "%s\n" "$CC" >&6; }
   3259 else
   3260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3261 printf "%s\n" "no" >&6; }
   3262 fi
   3263 
   3264 
   3265 fi
   3266 if test -z "$CC"; then
   3267   if test -n "$ac_tool_prefix"; then
   3268   for ac_prog in cl.exe
   3269   do
   3270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3273 printf %s "checking for $ac_word... " >&6; }
   3274 if test ${ac_cv_prog_CC+y}
   3275 then :
   3276   printf %s "(cached) " >&6
   3277 else $as_nop
   3278   if test -n "$CC"; then
   3279   ac_cv_prog_CC="$CC" # Let the user override the test.
   3280 else
   3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3282 for as_dir in $PATH
   3283 do
   3284   IFS=$as_save_IFS
   3285   case $as_dir in #(((
   3286     '') as_dir=./ ;;
   3287     */) ;;
   3288     *) as_dir=$as_dir/ ;;
   3289   esac
   3290     for ac_exec_ext in '' $ac_executable_extensions; do
   3291   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3293     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3294     break 2
   3295   fi
   3296 done
   3297   done
   3298 IFS=$as_save_IFS
   3299 
   3300 fi
   3301 fi
   3302 CC=$ac_cv_prog_CC
   3303 if test -n "$CC"; then
   3304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3305 printf "%s\n" "$CC" >&6; }
   3306 else
   3307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3308 printf "%s\n" "no" >&6; }
   3309 fi
   3310 
   3311 
   3312     test -n "$CC" && break
   3313   done
   3314 fi
   3315 if test -z "$CC"; then
   3316   ac_ct_CC=$CC
   3317   for ac_prog in cl.exe
   3318 do
   3319   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3320 set dummy $ac_prog; ac_word=$2
   3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3322 printf %s "checking for $ac_word... " >&6; }
   3323 if test ${ac_cv_prog_ac_ct_CC+y}
   3324 then :
   3325   printf %s "(cached) " >&6
   3326 else $as_nop
   3327   if test -n "$ac_ct_CC"; then
   3328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3329 else
   3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3331 for as_dir in $PATH
   3332 do
   3333   IFS=$as_save_IFS
   3334   case $as_dir in #(((
   3335     '') as_dir=./ ;;
   3336     */) ;;
   3337     *) as_dir=$as_dir/ ;;
   3338   esac
   3339     for ac_exec_ext in '' $ac_executable_extensions; do
   3340   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3341     ac_cv_prog_ac_ct_CC="$ac_prog"
   3342     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3343     break 2
   3344   fi
   3345 done
   3346   done
   3347 IFS=$as_save_IFS
   3348 
   3349 fi
   3350 fi
   3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3352 if test -n "$ac_ct_CC"; then
   3353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3354 printf "%s\n" "$ac_ct_CC" >&6; }
   3355 else
   3356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3357 printf "%s\n" "no" >&6; }
   3358 fi
   3359 
   3360 
   3361   test -n "$ac_ct_CC" && break
   3362 done
   3363 
   3364   if test "x$ac_ct_CC" = x; then
   3365     CC=""
   3366   else
   3367     case $cross_compiling:$ac_tool_warned in
   3368 yes:)
   3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3371 ac_tool_warned=yes ;;
   3372 esac
   3373     CC=$ac_ct_CC
   3374   fi
   3375 fi
   3376 
   3377 fi
   3378 if test -z "$CC"; then
   3379   if test -n "$ac_tool_prefix"; then
   3380   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   3381 set dummy ${ac_tool_prefix}clang; ac_word=$2
   3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3383 printf %s "checking for $ac_word... " >&6; }
   3384 if test ${ac_cv_prog_CC+y}
   3385 then :
   3386   printf %s "(cached) " >&6
   3387 else $as_nop
   3388   if test -n "$CC"; then
   3389   ac_cv_prog_CC="$CC" # Let the user override the test.
   3390 else
   3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3392 for as_dir in $PATH
   3393 do
   3394   IFS=$as_save_IFS
   3395   case $as_dir in #(((
   3396     '') as_dir=./ ;;
   3397     */) ;;
   3398     *) as_dir=$as_dir/ ;;
   3399   esac
   3400     for ac_exec_ext in '' $ac_executable_extensions; do
   3401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3402     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3404     break 2
   3405   fi
   3406 done
   3407   done
   3408 IFS=$as_save_IFS
   3409 
   3410 fi
   3411 fi
   3412 CC=$ac_cv_prog_CC
   3413 if test -n "$CC"; then
   3414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3415 printf "%s\n" "$CC" >&6; }
   3416 else
   3417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3418 printf "%s\n" "no" >&6; }
   3419 fi
   3420 
   3421 
   3422 fi
   3423 if test -z "$ac_cv_prog_CC"; then
   3424   ac_ct_CC=$CC
   3425   # Extract the first word of "clang", so it can be a program name with args.
   3426 set dummy clang; ac_word=$2
   3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3428 printf %s "checking for $ac_word... " >&6; }
   3429 if test ${ac_cv_prog_ac_ct_CC+y}
   3430 then :
   3431   printf %s "(cached) " >&6
   3432 else $as_nop
   3433   if test -n "$ac_ct_CC"; then
   3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3435 else
   3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3437 for as_dir in $PATH
   3438 do
   3439   IFS=$as_save_IFS
   3440   case $as_dir in #(((
   3441     '') as_dir=./ ;;
   3442     */) ;;
   3443     *) as_dir=$as_dir/ ;;
   3444   esac
   3445     for ac_exec_ext in '' $ac_executable_extensions; do
   3446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3447     ac_cv_prog_ac_ct_CC="clang"
   3448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3449     break 2
   3450   fi
   3451 done
   3452   done
   3453 IFS=$as_save_IFS
   3454 
   3455 fi
   3456 fi
   3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3458 if test -n "$ac_ct_CC"; then
   3459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3460 printf "%s\n" "$ac_ct_CC" >&6; }
   3461 else
   3462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3463 printf "%s\n" "no" >&6; }
   3464 fi
   3465 
   3466   if test "x$ac_ct_CC" = x; then
   3467     CC=""
   3468   else
   3469     case $cross_compiling:$ac_tool_warned in
   3470 yes:)
   3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3473 ac_tool_warned=yes ;;
   3474 esac
   3475     CC=$ac_ct_CC
   3476   fi
   3477 else
   3478   CC="$ac_cv_prog_CC"
   3479 fi
   3480 
   3481 fi
   3482 
   3483 
   3484 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3485 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3486 as_fn_error $? "no acceptable C compiler found in \$PATH
   3487 See \`config.log' for more details" "$LINENO" 5; }
   3488 
   3489 # Provide some information about the compiler.
   3490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3491 set X $ac_compile
   3492 ac_compiler=$2
   3493 for ac_option in --version -v -V -qversion -version; do
   3494   { { ac_try="$ac_compiler $ac_option >&5"
   3495 case "(($ac_try" in
   3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3497   *) ac_try_echo=$ac_try;;
   3498 esac
   3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3500 printf "%s\n" "$ac_try_echo"; } >&5
   3501   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3502   ac_status=$?
   3503   if test -s conftest.err; then
   3504     sed '10a\
   3505 ... rest of stderr output deleted ...
   3506          10q' conftest.err >conftest.er1
   3507     cat conftest.er1 >&5
   3508   fi
   3509   rm -f conftest.er1 conftest.err
   3510   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3511   test $ac_status = 0; }
   3512 done
   3513 
   3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3515 /* end confdefs.h.  */
   3516 
   3517 int
   3518 main (void)
   3519 {
   3520 
   3521   ;
   3522   return 0;
   3523 }
   3524 _ACEOF
   3525 ac_clean_files_save=$ac_clean_files
   3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3527 # Try to create an executable without -o first, disregard a.out.
   3528 # It will help us diagnose broken compilers, and finding out an intuition
   3529 # of exeext.
   3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3531 printf %s "checking whether the C compiler works... " >&6; }
   3532 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3533 
   3534 # The possible output files:
   3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3536 
   3537 ac_rmfiles=
   3538 for ac_file in $ac_files
   3539 do
   3540   case $ac_file in
   3541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3542     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3543   esac
   3544 done
   3545 rm -f $ac_rmfiles
   3546 
   3547 if { { ac_try="$ac_link_default"
   3548 case "(($ac_try" in
   3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3550   *) ac_try_echo=$ac_try;;
   3551 esac
   3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3553 printf "%s\n" "$ac_try_echo"; } >&5
   3554   (eval "$ac_link_default") 2>&5
   3555   ac_status=$?
   3556   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3557   test $ac_status = 0; }
   3558 then :
   3559   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3561 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3562 # so that the user can short-circuit this test for compilers unknown to
   3563 # Autoconf.
   3564 for ac_file in $ac_files ''
   3565 do
   3566   test -f "$ac_file" || continue
   3567   case $ac_file in
   3568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3569 	;;
   3570     [ab].out )
   3571 	# We found the default executable, but exeext='' is most
   3572 	# certainly right.
   3573 	break;;
   3574     *.* )
   3575 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3576 	then :; else
   3577 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3578 	fi
   3579 	# We set ac_cv_exeext here because the later test for it is not
   3580 	# safe: cross compilers may not add the suffix if given an `-o'
   3581 	# argument, so we may need to know it at that point already.
   3582 	# Even if this section looks crufty: it has the advantage of
   3583 	# actually working.
   3584 	break;;
   3585     * )
   3586 	break;;
   3587   esac
   3588 done
   3589 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3590 
   3591 else $as_nop
   3592   ac_file=''
   3593 fi
   3594 if test -z "$ac_file"
   3595 then :
   3596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3597 printf "%s\n" "no" >&6; }
   3598 printf "%s\n" "$as_me: failed program was:" >&5
   3599 sed 's/^/| /' conftest.$ac_ext >&5
   3600 
   3601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3603 as_fn_error 77 "C compiler cannot create executables
   3604 See \`config.log' for more details" "$LINENO" 5; }
   3605 else $as_nop
   3606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3607 printf "%s\n" "yes" >&6; }
   3608 fi
   3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3610 printf %s "checking for C compiler default output file name... " >&6; }
   3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3612 printf "%s\n" "$ac_file" >&6; }
   3613 ac_exeext=$ac_cv_exeext
   3614 
   3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3616 ac_clean_files=$ac_clean_files_save
   3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3618 printf %s "checking for suffix of executables... " >&6; }
   3619 if { { ac_try="$ac_link"
   3620 case "(($ac_try" in
   3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3622   *) ac_try_echo=$ac_try;;
   3623 esac
   3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3625 printf "%s\n" "$ac_try_echo"; } >&5
   3626   (eval "$ac_link") 2>&5
   3627   ac_status=$?
   3628   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3629   test $ac_status = 0; }
   3630 then :
   3631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3634 # `rm'.
   3635 for ac_file in conftest.exe conftest conftest.*; do
   3636   test -f "$ac_file" || continue
   3637   case $ac_file in
   3638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3640 	  break;;
   3641     * ) break;;
   3642   esac
   3643 done
   3644 else $as_nop
   3645   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3648 See \`config.log' for more details" "$LINENO" 5; }
   3649 fi
   3650 rm -f conftest conftest$ac_cv_exeext
   3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3652 printf "%s\n" "$ac_cv_exeext" >&6; }
   3653 
   3654 rm -f conftest.$ac_ext
   3655 EXEEXT=$ac_cv_exeext
   3656 ac_exeext=$EXEEXT
   3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3658 /* end confdefs.h.  */
   3659 #include <stdio.h>
   3660 int
   3661 main (void)
   3662 {
   3663 FILE *f = fopen ("conftest.out", "w");
   3664  return ferror (f) || fclose (f) != 0;
   3665 
   3666   ;
   3667   return 0;
   3668 }
   3669 _ACEOF
   3670 ac_clean_files="$ac_clean_files conftest.out"
   3671 # Check that the compiler produces executables we can run.  If not, either
   3672 # the compiler is broken, or we cross compile.
   3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3674 printf %s "checking whether we are cross compiling... " >&6; }
   3675 if test "$cross_compiling" != yes; then
   3676   { { ac_try="$ac_link"
   3677 case "(($ac_try" in
   3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3679   *) ac_try_echo=$ac_try;;
   3680 esac
   3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3682 printf "%s\n" "$ac_try_echo"; } >&5
   3683   (eval "$ac_link") 2>&5
   3684   ac_status=$?
   3685   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3686   test $ac_status = 0; }
   3687   if { ac_try='./conftest$ac_cv_exeext'
   3688   { { case "(($ac_try" in
   3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3690   *) ac_try_echo=$ac_try;;
   3691 esac
   3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3693 printf "%s\n" "$ac_try_echo"; } >&5
   3694   (eval "$ac_try") 2>&5
   3695   ac_status=$?
   3696   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3697   test $ac_status = 0; }; }; then
   3698     cross_compiling=no
   3699   else
   3700     if test "$cross_compiling" = maybe; then
   3701 	cross_compiling=yes
   3702     else
   3703 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3705 as_fn_error 77 "cannot run C compiled programs.
   3706 If you meant to cross compile, use \`--host'.
   3707 See \`config.log' for more details" "$LINENO" 5; }
   3708     fi
   3709   fi
   3710 fi
   3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3712 printf "%s\n" "$cross_compiling" >&6; }
   3713 
   3714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3715 ac_clean_files=$ac_clean_files_save
   3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3717 printf %s "checking for suffix of object files... " >&6; }
   3718 if test ${ac_cv_objext+y}
   3719 then :
   3720   printf %s "(cached) " >&6
   3721 else $as_nop
   3722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3723 /* end confdefs.h.  */
   3724 
   3725 int
   3726 main (void)
   3727 {
   3728 
   3729   ;
   3730   return 0;
   3731 }
   3732 _ACEOF
   3733 rm -f conftest.o conftest.obj
   3734 if { { ac_try="$ac_compile"
   3735 case "(($ac_try" in
   3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3737   *) ac_try_echo=$ac_try;;
   3738 esac
   3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3740 printf "%s\n" "$ac_try_echo"; } >&5
   3741   (eval "$ac_compile") 2>&5
   3742   ac_status=$?
   3743   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3744   test $ac_status = 0; }
   3745 then :
   3746   for ac_file in conftest.o conftest.obj conftest.*; do
   3747   test -f "$ac_file" || continue;
   3748   case $ac_file in
   3749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3750     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3751        break;;
   3752   esac
   3753 done
   3754 else $as_nop
   3755   printf "%s\n" "$as_me: failed program was:" >&5
   3756 sed 's/^/| /' conftest.$ac_ext >&5
   3757 
   3758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3759 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3760 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3761 See \`config.log' for more details" "$LINENO" 5; }
   3762 fi
   3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3764 fi
   3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3766 printf "%s\n" "$ac_cv_objext" >&6; }
   3767 OBJEXT=$ac_cv_objext
   3768 ac_objext=$OBJEXT
   3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3770 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3771 if test ${ac_cv_c_compiler_gnu+y}
   3772 then :
   3773   printf %s "(cached) " >&6
   3774 else $as_nop
   3775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3776 /* end confdefs.h.  */
   3777 
   3778 int
   3779 main (void)
   3780 {
   3781 #ifndef __GNUC__
   3782        choke me
   3783 #endif
   3784 
   3785   ;
   3786   return 0;
   3787 }
   3788 _ACEOF
   3789 if ac_fn_c_try_compile "$LINENO"
   3790 then :
   3791   ac_compiler_gnu=yes
   3792 else $as_nop
   3793   ac_compiler_gnu=no
   3794 fi
   3795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3797 
   3798 fi
   3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3800 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3802 
   3803 if test $ac_compiler_gnu = yes; then
   3804   GCC=yes
   3805 else
   3806   GCC=
   3807 fi
   3808 ac_test_CFLAGS=${CFLAGS+y}
   3809 ac_save_CFLAGS=$CFLAGS
   3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3811 printf %s "checking whether $CC accepts -g... " >&6; }
   3812 if test ${ac_cv_prog_cc_g+y}
   3813 then :
   3814   printf %s "(cached) " >&6
   3815 else $as_nop
   3816   ac_save_c_werror_flag=$ac_c_werror_flag
   3817    ac_c_werror_flag=yes
   3818    ac_cv_prog_cc_g=no
   3819    CFLAGS="-g"
   3820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3821 /* end confdefs.h.  */
   3822 
   3823 int
   3824 main (void)
   3825 {
   3826 
   3827   ;
   3828   return 0;
   3829 }
   3830 _ACEOF
   3831 if ac_fn_c_try_compile "$LINENO"
   3832 then :
   3833   ac_cv_prog_cc_g=yes
   3834 else $as_nop
   3835   CFLAGS=""
   3836       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3837 /* end confdefs.h.  */
   3838 
   3839 int
   3840 main (void)
   3841 {
   3842 
   3843   ;
   3844   return 0;
   3845 }
   3846 _ACEOF
   3847 if ac_fn_c_try_compile "$LINENO"
   3848 then :
   3849 
   3850 else $as_nop
   3851   ac_c_werror_flag=$ac_save_c_werror_flag
   3852 	 CFLAGS="-g"
   3853 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3854 /* end confdefs.h.  */
   3855 
   3856 int
   3857 main (void)
   3858 {
   3859 
   3860   ;
   3861   return 0;
   3862 }
   3863 _ACEOF
   3864 if ac_fn_c_try_compile "$LINENO"
   3865 then :
   3866   ac_cv_prog_cc_g=yes
   3867 fi
   3868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3869 fi
   3870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3871 fi
   3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3873    ac_c_werror_flag=$ac_save_c_werror_flag
   3874 fi
   3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3876 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3877 if test $ac_test_CFLAGS; then
   3878   CFLAGS=$ac_save_CFLAGS
   3879 elif test $ac_cv_prog_cc_g = yes; then
   3880   if test "$GCC" = yes; then
   3881     CFLAGS="-g -O2"
   3882   else
   3883     CFLAGS="-g"
   3884   fi
   3885 else
   3886   if test "$GCC" = yes; then
   3887     CFLAGS="-O2"
   3888   else
   3889     CFLAGS=
   3890   fi
   3891 fi
   3892 ac_prog_cc_stdc=no
   3893 if test x$ac_prog_cc_stdc = xno
   3894 then :
   3895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3896 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3897 if test ${ac_cv_prog_cc_c11+y}
   3898 then :
   3899   printf %s "(cached) " >&6
   3900 else $as_nop
   3901   ac_cv_prog_cc_c11=no
   3902 ac_save_CC=$CC
   3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3904 /* end confdefs.h.  */
   3905 $ac_c_conftest_c11_program
   3906 _ACEOF
   3907 for ac_arg in '' -std=gnu11
   3908 do
   3909   CC="$ac_save_CC $ac_arg"
   3910   if ac_fn_c_try_compile "$LINENO"
   3911 then :
   3912   ac_cv_prog_cc_c11=$ac_arg
   3913 fi
   3914 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3915   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3916 done
   3917 rm -f conftest.$ac_ext
   3918 CC=$ac_save_CC
   3919 fi
   3920 
   3921 if test "x$ac_cv_prog_cc_c11" = xno
   3922 then :
   3923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3924 printf "%s\n" "unsupported" >&6; }
   3925 else $as_nop
   3926   if test "x$ac_cv_prog_cc_c11" = x
   3927 then :
   3928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3929 printf "%s\n" "none needed" >&6; }
   3930 else $as_nop
   3931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3932 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3933      CC="$CC $ac_cv_prog_cc_c11"
   3934 fi
   3935   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3936   ac_prog_cc_stdc=c11
   3937 fi
   3938 fi
   3939 if test x$ac_prog_cc_stdc = xno
   3940 then :
   3941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3942 printf %s "checking for $CC option to enable C99 features... " >&6; }
   3943 if test ${ac_cv_prog_cc_c99+y}
   3944 then :
   3945   printf %s "(cached) " >&6
   3946 else $as_nop
   3947   ac_cv_prog_cc_c99=no
   3948 ac_save_CC=$CC
   3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3950 /* end confdefs.h.  */
   3951 $ac_c_conftest_c99_program
   3952 _ACEOF
   3953 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3954 do
   3955   CC="$ac_save_CC $ac_arg"
   3956   if ac_fn_c_try_compile "$LINENO"
   3957 then :
   3958   ac_cv_prog_cc_c99=$ac_arg
   3959 fi
   3960 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3961   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3962 done
   3963 rm -f conftest.$ac_ext
   3964 CC=$ac_save_CC
   3965 fi
   3966 
   3967 if test "x$ac_cv_prog_cc_c99" = xno
   3968 then :
   3969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3970 printf "%s\n" "unsupported" >&6; }
   3971 else $as_nop
   3972   if test "x$ac_cv_prog_cc_c99" = x
   3973 then :
   3974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3975 printf "%s\n" "none needed" >&6; }
   3976 else $as_nop
   3977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3978 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3979      CC="$CC $ac_cv_prog_cc_c99"
   3980 fi
   3981   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3982   ac_prog_cc_stdc=c99
   3983 fi
   3984 fi
   3985 if test x$ac_prog_cc_stdc = xno
   3986 then :
   3987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3988 printf %s "checking for $CC option to enable C89 features... " >&6; }
   3989 if test ${ac_cv_prog_cc_c89+y}
   3990 then :
   3991   printf %s "(cached) " >&6
   3992 else $as_nop
   3993   ac_cv_prog_cc_c89=no
   3994 ac_save_CC=$CC
   3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3996 /* end confdefs.h.  */
   3997 $ac_c_conftest_c89_program
   3998 _ACEOF
   3999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4000 do
   4001   CC="$ac_save_CC $ac_arg"
   4002   if ac_fn_c_try_compile "$LINENO"
   4003 then :
   4004   ac_cv_prog_cc_c89=$ac_arg
   4005 fi
   4006 rm -f core conftest.err conftest.$ac_objext conftest.beam
   4007   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4008 done
   4009 rm -f conftest.$ac_ext
   4010 CC=$ac_save_CC
   4011 fi
   4012 
   4013 if test "x$ac_cv_prog_cc_c89" = xno
   4014 then :
   4015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4016 printf "%s\n" "unsupported" >&6; }
   4017 else $as_nop
   4018   if test "x$ac_cv_prog_cc_c89" = x
   4019 then :
   4020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4021 printf "%s\n" "none needed" >&6; }
   4022 else $as_nop
   4023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4024 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   4025      CC="$CC $ac_cv_prog_cc_c89"
   4026 fi
   4027   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   4028   ac_prog_cc_stdc=c89
   4029 fi
   4030 fi
   4031 
   4032 ac_ext=c
   4033 ac_cpp='$CPP $CPPFLAGS'
   4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4037 
   4038 
   4039 if test "$ac_cv_prog_cc_c99" = "no"
   4040 then :
   4041   as_fn_error $? "No C99 compiler was found. Please install gcc or clang and other build tools. Eg, on Debian/Ubuntu you probably want to run the following as root: apt-get install build-essential " "$LINENO" 5
   4042 fi
   4043 
   4044 # Extract the first word of "gmake", so it can be a program name with args.
   4045 set dummy gmake; ac_word=$2
   4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4047 printf %s "checking for $ac_word... " >&6; }
   4048 if test ${ac_cv_prog_MAKER+y}
   4049 then :
   4050   printf %s "(cached) " >&6
   4051 else $as_nop
   4052   if test -n "$MAKER"; then
   4053   ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
   4054 else
   4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4056 for as_dir in $PATH
   4057 do
   4058   IFS=$as_save_IFS
   4059   case $as_dir in #(((
   4060     '') as_dir=./ ;;
   4061     */) ;;
   4062     *) as_dir=$as_dir/ ;;
   4063   esac
   4064     for ac_exec_ext in '' $ac_executable_extensions; do
   4065   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4066     ac_cv_prog_MAKER="gmake"
   4067     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4068     break 2
   4069   fi
   4070 done
   4071   done
   4072 IFS=$as_save_IFS
   4073 
   4074   test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
   4075 fi
   4076 fi
   4077 MAKER=$ac_cv_prog_MAKER
   4078 if test -n "$MAKER"; then
   4079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
   4080 printf "%s\n" "$MAKER" >&6; }
   4081 else
   4082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4083 printf "%s\n" "no" >&6; }
   4084 fi
   4085 
   4086 
   4087 # Extract the first word of "gmake", so it can be a program name with args.
   4088 set dummy gmake; ac_word=$2
   4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4090 printf %s "checking for $ac_word... " >&6; }
   4091 if test ${ac_cv_path_GMAKE+y}
   4092 then :
   4093   printf %s "(cached) " >&6
   4094 else $as_nop
   4095   case $GMAKE in
   4096   [\\/]* | ?:[\\/]*)
   4097   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
   4098   ;;
   4099   *)
   4100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4101 for as_dir in $PATH
   4102 do
   4103   IFS=$as_save_IFS
   4104   case $as_dir in #(((
   4105     '') as_dir=./ ;;
   4106     */) ;;
   4107     *) as_dir=$as_dir/ ;;
   4108   esac
   4109     for ac_exec_ext in '' $ac_executable_extensions; do
   4110   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4111     ac_cv_path_GMAKE="$as_dir$ac_word$ac_exec_ext"
   4112     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4113     break 2
   4114   fi
   4115 done
   4116   done
   4117 IFS=$as_save_IFS
   4118 
   4119   ;;
   4120 esac
   4121 fi
   4122 GMAKE=$ac_cv_path_GMAKE
   4123 if test -n "$GMAKE"; then
   4124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
   4125 printf "%s\n" "$GMAKE" >&6; }
   4126 else
   4127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4128 printf "%s\n" "no" >&6; }
   4129 fi
   4130 
   4131 
   4132 if $MAKER --version | grep -q "GNU Make"
   4133 then :
   4134   GNUMAKE="0"
   4135 else $as_nop
   4136   as_fn_error $? "It seems your system does not have make/gmake installed. If you are on Linux then install make, otherwise install gmake." "$LINENO" 5
   4137 fi
   4138 
   4139 
   4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
   4141 printf %s "checking for crypt in -ldescrypt... " >&6; }
   4142 if test ${ac_cv_lib_descrypt_crypt+y}
   4143 then :
   4144   printf %s "(cached) " >&6
   4145 else $as_nop
   4146   ac_check_lib_save_LIBS=$LIBS
   4147 LIBS="-ldescrypt  $LIBS"
   4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4149 /* end confdefs.h.  */
   4150 
   4151 /* Override any GCC internal prototype to avoid an error.
   4152    Use char because int might match the return type of a GCC
   4153    builtin and then its argument prototype would still apply.  */
   4154 char crypt ();
   4155 int
   4156 main (void)
   4157 {
   4158 return crypt ();
   4159   ;
   4160   return 0;
   4161 }
   4162 _ACEOF
   4163 if ac_fn_c_try_link "$LINENO"
   4164 then :
   4165   ac_cv_lib_descrypt_crypt=yes
   4166 else $as_nop
   4167   ac_cv_lib_descrypt_crypt=no
   4168 fi
   4169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4170     conftest$ac_exeext conftest.$ac_ext
   4171 LIBS=$ac_check_lib_save_LIBS
   4172 fi
   4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
   4174 printf "%s\n" "$ac_cv_lib_descrypt_crypt" >&6; }
   4175 if test "x$ac_cv_lib_descrypt_crypt" = xyes
   4176 then :
   4177 
   4178 printf "%s\n" "#define HAVE_CRYPT /**/" >>confdefs.h
   4179 
   4180 		IRCDLIBS="$IRCDLIBS-ldescrypt "
   4181 else $as_nop
   4182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
   4183 printf %s "checking for crypt in -lcrypt... " >&6; }
   4184 if test ${ac_cv_lib_crypt_crypt+y}
   4185 then :
   4186   printf %s "(cached) " >&6
   4187 else $as_nop
   4188   ac_check_lib_save_LIBS=$LIBS
   4189 LIBS="-lcrypt  $LIBS"
   4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4191 /* end confdefs.h.  */
   4192 
   4193 /* Override any GCC internal prototype to avoid an error.
   4194    Use char because int might match the return type of a GCC
   4195    builtin and then its argument prototype would still apply.  */
   4196 char crypt ();
   4197 int
   4198 main (void)
   4199 {
   4200 return crypt ();
   4201   ;
   4202   return 0;
   4203 }
   4204 _ACEOF
   4205 if ac_fn_c_try_link "$LINENO"
   4206 then :
   4207   ac_cv_lib_crypt_crypt=yes
   4208 else $as_nop
   4209   ac_cv_lib_crypt_crypt=no
   4210 fi
   4211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4212     conftest$ac_exeext conftest.$ac_ext
   4213 LIBS=$ac_check_lib_save_LIBS
   4214 fi
   4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
   4216 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
   4217 if test "x$ac_cv_lib_crypt_crypt" = xyes
   4218 then :
   4219 
   4220 printf "%s\n" "#define HAVE_CRYPT /**/" >>confdefs.h
   4221 
   4222 			IRCDLIBS="$IRCDLIBS-lcrypt "
   4223 fi
   4224 
   4225 fi
   4226 
   4227 
   4228 case $host_cpu in #(
   4229   i?86|amd64|x86_64) :
   4230     ac_cv_c_bigendian=no
   4231  ;; #(
   4232   *) :
   4233      ;;
   4234 esac
   4235 ac_header= ac_cache=
   4236 for ac_item in $ac_header_c_list
   4237 do
   4238   if test $ac_cache; then
   4239     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   4240     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   4241       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   4242     fi
   4243     ac_header= ac_cache=
   4244   elif test $ac_header; then
   4245     ac_cache=$ac_item
   4246   else
   4247     ac_header=$ac_item
   4248   fi
   4249 done
   4250 
   4251 
   4252 
   4253 
   4254 
   4255 
   4256 
   4257 
   4258 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   4259 then :
   4260 
   4261 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   4262 
   4263 fi
   4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   4265 printf %s "checking whether byte ordering is bigendian... " >&6; }
   4266 if test ${ac_cv_c_bigendian+y}
   4267 then :
   4268   printf %s "(cached) " >&6
   4269 else $as_nop
   4270   ac_cv_c_bigendian=unknown
   4271     # See if we're dealing with a universal compiler.
   4272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4273 /* end confdefs.h.  */
   4274 #ifndef __APPLE_CC__
   4275 	       not a universal capable compiler
   4276 	     #endif
   4277 	     typedef int dummy;
   4278 
   4279 _ACEOF
   4280 if ac_fn_c_try_compile "$LINENO"
   4281 then :
   4282 
   4283 	# Check for potential -arch flags.  It is not universal unless
   4284 	# there are at least two -arch flags with different values.
   4285 	ac_arch=
   4286 	ac_prev=
   4287 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   4288 	 if test -n "$ac_prev"; then
   4289 	   case $ac_word in
   4290 	     i?86 | x86_64 | ppc | ppc64)
   4291 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   4292 		 ac_arch=$ac_word
   4293 	       else
   4294 		 ac_cv_c_bigendian=universal
   4295 		 break
   4296 	       fi
   4297 	       ;;
   4298 	   esac
   4299 	   ac_prev=
   4300 	 elif test "x$ac_word" = "x-arch"; then
   4301 	   ac_prev=arch
   4302 	 fi
   4303        done
   4304 fi
   4305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4306     if test $ac_cv_c_bigendian = unknown; then
   4307       # See if sys/param.h defines the BYTE_ORDER macro.
   4308       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4309 /* end confdefs.h.  */
   4310 #include <sys/types.h>
   4311 	     #include <sys/param.h>
   4312 
   4313 int
   4314 main (void)
   4315 {
   4316 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   4317 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   4318 		     && LITTLE_ENDIAN)
   4319 	      bogus endian macros
   4320 	     #endif
   4321 
   4322   ;
   4323   return 0;
   4324 }
   4325 _ACEOF
   4326 if ac_fn_c_try_compile "$LINENO"
   4327 then :
   4328   # It does; now see whether it defined to BIG_ENDIAN or not.
   4329 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4330 /* end confdefs.h.  */
   4331 #include <sys/types.h>
   4332 		#include <sys/param.h>
   4333 
   4334 int
   4335 main (void)
   4336 {
   4337 #if BYTE_ORDER != BIG_ENDIAN
   4338 		 not big endian
   4339 		#endif
   4340 
   4341   ;
   4342   return 0;
   4343 }
   4344 _ACEOF
   4345 if ac_fn_c_try_compile "$LINENO"
   4346 then :
   4347   ac_cv_c_bigendian=yes
   4348 else $as_nop
   4349   ac_cv_c_bigendian=no
   4350 fi
   4351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4352 fi
   4353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4354     fi
   4355     if test $ac_cv_c_bigendian = unknown; then
   4356       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   4357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4358 /* end confdefs.h.  */
   4359 #include <limits.h>
   4360 
   4361 int
   4362 main (void)
   4363 {
   4364 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   4365 	      bogus endian macros
   4366 	     #endif
   4367 
   4368   ;
   4369   return 0;
   4370 }
   4371 _ACEOF
   4372 if ac_fn_c_try_compile "$LINENO"
   4373 then :
   4374   # It does; now see whether it defined to _BIG_ENDIAN or not.
   4375 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4376 /* end confdefs.h.  */
   4377 #include <limits.h>
   4378 
   4379 int
   4380 main (void)
   4381 {
   4382 #ifndef _BIG_ENDIAN
   4383 		 not big endian
   4384 		#endif
   4385 
   4386   ;
   4387   return 0;
   4388 }
   4389 _ACEOF
   4390 if ac_fn_c_try_compile "$LINENO"
   4391 then :
   4392   ac_cv_c_bigendian=yes
   4393 else $as_nop
   4394   ac_cv_c_bigendian=no
   4395 fi
   4396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4397 fi
   4398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4399     fi
   4400     if test $ac_cv_c_bigendian = unknown; then
   4401       # Compile a test program.
   4402       if test "$cross_compiling" = yes
   4403 then :
   4404   # Try to guess by grepping values from an object file.
   4405 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4406 /* end confdefs.h.  */
   4407 unsigned short int ascii_mm[] =
   4408 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   4409 		unsigned short int ascii_ii[] =
   4410 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   4411 		int use_ascii (int i) {
   4412 		  return ascii_mm[i] + ascii_ii[i];
   4413 		}
   4414 		unsigned short int ebcdic_ii[] =
   4415 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   4416 		unsigned short int ebcdic_mm[] =
   4417 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   4418 		int use_ebcdic (int i) {
   4419 		  return ebcdic_mm[i] + ebcdic_ii[i];
   4420 		}
   4421 		extern int foo;
   4422 
   4423 int
   4424 main (void)
   4425 {
   4426 return use_ascii (foo) == use_ebcdic (foo);
   4427   ;
   4428   return 0;
   4429 }
   4430 _ACEOF
   4431 if ac_fn_c_try_compile "$LINENO"
   4432 then :
   4433   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   4434 	      ac_cv_c_bigendian=yes
   4435 	    fi
   4436 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   4437 	      if test "$ac_cv_c_bigendian" = unknown; then
   4438 		ac_cv_c_bigendian=no
   4439 	      else
   4440 		# finding both strings is unlikely to happen, but who knows?
   4441 		ac_cv_c_bigendian=unknown
   4442 	      fi
   4443 	    fi
   4444 fi
   4445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4446 else $as_nop
   4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4448 /* end confdefs.h.  */
   4449 $ac_includes_default
   4450 int
   4451 main (void)
   4452 {
   4453 
   4454 	     /* Are we little or big endian?  From Harbison&Steele.  */
   4455 	     union
   4456 	     {
   4457 	       long int l;
   4458 	       char c[sizeof (long int)];
   4459 	     } u;
   4460 	     u.l = 1;
   4461 	     return u.c[sizeof (long int) - 1] == 1;
   4462 
   4463   ;
   4464   return 0;
   4465 }
   4466 _ACEOF
   4467 if ac_fn_c_try_run "$LINENO"
   4468 then :
   4469   ac_cv_c_bigendian=no
   4470 else $as_nop
   4471   ac_cv_c_bigendian=yes
   4472 fi
   4473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4474   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4475 fi
   4476 
   4477     fi
   4478 fi
   4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   4480 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
   4481  case $ac_cv_c_bigendian in #(
   4482    yes)
   4483 
   4484 printf "%s\n" "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
   4485 ;; #(
   4486    no)
   4487 
   4488 printf "%s\n" "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
   4489  ;; #(
   4490    universal)
   4491      as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
   4492 
   4493      ;; #(
   4494    *)
   4495      as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
   4496  esac
   4497 
   4498 
   4499 # We want to check for compiler flag support, but there is no way to make
   4500 # clang's "argument unused" warning fatal.  So we invoke the compiler through a
   4501 # wrapper script that greps for this message.
   4502 saved_CC="$CC"
   4503 saved_CXX="$CXX"
   4504 saved_LD="$LD"
   4505 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
   4506 CC="$flag_wrap $CC"
   4507 CXX="$flag_wrap $CXX"
   4508 LD="$flag_wrap $LD"
   4509 
   4510 # We use the same hardening flags for C and C++.  We must check that each flag
   4511 # is supported by both compilers.
   4512 
   4513 
   4514 
   4515 
   4516 # Check whether --enable-hardening was given.
   4517 if test ${enable_hardening+y}
   4518 then :
   4519   enableval=$enable_hardening; hardening="$enableval"
   4520 else $as_nop
   4521   hardening="yes"
   4522 fi
   4523 
   4524 
   4525 HARDEN_CFLAGS=""
   4526 HARDEN_LDFLAGS=""
   4527 if test x"$hardening" != x"no"
   4528 then :
   4529 
   4530   ac_ext=c
   4531 ac_cpp='$CPP $CPPFLAGS'
   4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4535 
   4536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
   4537 printf %s "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
   4538 if test ${ax_cv_check_cflags__Werror___fno_strict_overflow+y}
   4539 then :
   4540   printf %s "(cached) " >&6
   4541 else $as_nop
   4542 
   4543   ax_check_save_flags=$CFLAGS
   4544   CFLAGS="$CFLAGS -Werror  -fno-strict-overflow"
   4545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4546 /* end confdefs.h.  */
   4547 
   4548 int
   4549 main (void)
   4550 {
   4551 
   4552   ;
   4553   return 0;
   4554 }
   4555 _ACEOF
   4556 if ac_fn_c_try_compile "$LINENO"
   4557 then :
   4558   ax_cv_check_cflags__Werror___fno_strict_overflow=yes
   4559 else $as_nop
   4560   ax_cv_check_cflags__Werror___fno_strict_overflow=no
   4561 fi
   4562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4563   CFLAGS=$ax_check_save_flags
   4564 fi
   4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
   4566 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
   4567 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes
   4568 then :
   4569   HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
   4570 else $as_nop
   4571   :
   4572 fi
   4573 
   4574   ac_ext=c
   4575 ac_cpp='$CPP $CPPFLAGS'
   4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4579 
   4580 
   4581   # This one will likely succeed, even on platforms where it does nothing.
   4582   ac_ext=c
   4583 ac_cpp='$CPP $CPPFLAGS'
   4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4587 
   4588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
   4589 printf %s "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
   4590 if test ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+y}
   4591 then :
   4592   printf %s "(cached) " >&6
   4593 else $as_nop
   4594 
   4595   ax_check_save_flags=$CFLAGS
   4596   CFLAGS="$CFLAGS -Werror  -D_FORTIFY_SOURCE=2"
   4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4598 /* end confdefs.h.  */
   4599 
   4600 int
   4601 main (void)
   4602 {
   4603 
   4604   ;
   4605   return 0;
   4606 }
   4607 _ACEOF
   4608 if ac_fn_c_try_compile "$LINENO"
   4609 then :
   4610   ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
   4611 else $as_nop
   4612   ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
   4613 fi
   4614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4615   CFLAGS=$ax_check_save_flags
   4616 fi
   4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
   4618 printf "%s\n" "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
   4619 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes
   4620 then :
   4621   HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
   4622 else $as_nop
   4623   :
   4624 fi
   4625 
   4626   ac_ext=c
   4627 ac_cpp='$CPP $CPPFLAGS'
   4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4631 
   4632 
   4633   ac_ext=c
   4634 ac_cpp='$CPP $CPPFLAGS'
   4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4638 
   4639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
   4640 printf %s "checking whether C compiler accepts -fstack-protector-all... " >&6; }
   4641 if test ${ax_cv_check_cflags__Werror___fstack_protector_all+y}
   4642 then :
   4643   printf %s "(cached) " >&6
   4644 else $as_nop
   4645 
   4646   ax_check_save_flags=$CFLAGS
   4647   CFLAGS="$CFLAGS -Werror  -fstack-protector-all"
   4648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4649 /* end confdefs.h.  */
   4650 
   4651 int
   4652 main (void)
   4653 {
   4654 
   4655   ;
   4656   return 0;
   4657 }
   4658 _ACEOF
   4659 if ac_fn_c_try_compile "$LINENO"
   4660 then :
   4661   ax_cv_check_cflags__Werror___fstack_protector_all=yes
   4662 else $as_nop
   4663   ax_cv_check_cflags__Werror___fstack_protector_all=no
   4664 fi
   4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4666   CFLAGS=$ax_check_save_flags
   4667 fi
   4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
   4669 printf "%s\n" "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
   4670 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes
   4671 then :
   4672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
   4673 printf %s "checking whether the linker accepts -fstack-protector-all... " >&6; }
   4674 if test ${ax_cv_check_ldflags__Werror___fstack_protector_all+y}
   4675 then :
   4676   printf %s "(cached) " >&6
   4677 else $as_nop
   4678 
   4679   ax_check_save_flags=$LDFLAGS
   4680   LDFLAGS="$LDFLAGS -Werror  -fstack-protector-all"
   4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4682 /* end confdefs.h.  */
   4683 
   4684 int
   4685 main (void)
   4686 {
   4687 
   4688   ;
   4689   return 0;
   4690 }
   4691 _ACEOF
   4692 if ac_fn_c_try_link "$LINENO"
   4693 then :
   4694   ax_cv_check_ldflags__Werror___fstack_protector_all=yes
   4695 else $as_nop
   4696   ax_cv_check_ldflags__Werror___fstack_protector_all=no
   4697 fi
   4698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4699     conftest$ac_exeext conftest.$ac_ext
   4700   LDFLAGS=$ax_check_save_flags
   4701 fi
   4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
   4703 printf "%s\n" "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
   4704 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes
   4705 then :
   4706   HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
   4707       ac_ext=c
   4708 ac_cpp='$CPP $CPPFLAGS'
   4709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4712 
   4713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
   4714 printf %s "checking whether C compiler accepts -Wstack-protector... " >&6; }
   4715 if test ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+y}
   4716 then :
   4717   printf %s "(cached) " >&6
   4718 else $as_nop
   4719 
   4720   ax_check_save_flags=$CFLAGS
   4721   CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
   4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4723 /* end confdefs.h.  */
   4724 
   4725 int
   4726 main (void)
   4727 {
   4728 
   4729   ;
   4730   return 0;
   4731 }
   4732 _ACEOF
   4733 if ac_fn_c_try_compile "$LINENO"
   4734 then :
   4735   ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
   4736 else $as_nop
   4737   ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
   4738 fi
   4739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4740   CFLAGS=$ax_check_save_flags
   4741 fi
   4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
   4743 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
   4744 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes
   4745 then :
   4746   HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
   4747 else $as_nop
   4748   :
   4749 fi
   4750 
   4751   ac_ext=c
   4752 ac_cpp='$CPP $CPPFLAGS'
   4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4756 
   4757       ac_ext=c
   4758 ac_cpp='$CPP $CPPFLAGS'
   4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4762 
   4763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
   4764 printf %s "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
   4765 if test ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+y}
   4766 then :
   4767   printf %s "(cached) " >&6
   4768 else $as_nop
   4769 
   4770   ax_check_save_flags=$CFLAGS
   4771   CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
   4772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4773 /* end confdefs.h.  */
   4774 
   4775 int
   4776 main (void)
   4777 {
   4778 
   4779   ;
   4780   return 0;
   4781 }
   4782 _ACEOF
   4783 if ac_fn_c_try_compile "$LINENO"
   4784 then :
   4785   ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
   4786 else $as_nop
   4787   ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
   4788 fi
   4789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4790   CFLAGS=$ax_check_save_flags
   4791 fi
   4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
   4793 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
   4794 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes
   4795 then :
   4796   HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
   4797 else $as_nop
   4798   :
   4799 fi
   4800 
   4801   ac_ext=c
   4802 ac_cpp='$CPP $CPPFLAGS'
   4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4806 
   4807 else $as_nop
   4808   :
   4809 fi
   4810 
   4811 else $as_nop
   4812   :
   4813 fi
   4814 
   4815   ac_ext=c
   4816 ac_cpp='$CPP $CPPFLAGS'
   4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4820 
   4821 
   4822   # Added in UnrealIRCd 5.0.5 (default on Ubuntu 19.10)
   4823   ac_ext=c
   4824 ac_cpp='$CPP $CPPFLAGS'
   4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4828 
   4829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-clash-protection" >&5
   4830 printf %s "checking whether C compiler accepts -fstack-clash-protection... " >&6; }
   4831 if test ${ax_cv_check_cflags__Werror___fstack_clash_protection+y}
   4832 then :
   4833   printf %s "(cached) " >&6
   4834 else $as_nop
   4835 
   4836   ax_check_save_flags=$CFLAGS
   4837   CFLAGS="$CFLAGS -Werror  -fstack-clash-protection"
   4838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4839 /* end confdefs.h.  */
   4840 
   4841 int
   4842 main (void)
   4843 {
   4844 
   4845   ;
   4846   return 0;
   4847 }
   4848 _ACEOF
   4849 if ac_fn_c_try_compile "$LINENO"
   4850 then :
   4851   ax_cv_check_cflags__Werror___fstack_clash_protection=yes
   4852 else $as_nop
   4853   ax_cv_check_cflags__Werror___fstack_clash_protection=no
   4854 fi
   4855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4856   CFLAGS=$ax_check_save_flags
   4857 fi
   4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_clash_protection" >&5
   4859 printf "%s\n" "$ax_cv_check_cflags__Werror___fstack_clash_protection" >&6; }
   4860 if test x"$ax_cv_check_cflags__Werror___fstack_clash_protection" = xyes
   4861 then :
   4862   HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-clash-protection"
   4863 else $as_nop
   4864   :
   4865 fi
   4866 
   4867   ac_ext=c
   4868 ac_cpp='$CPP $CPPFLAGS'
   4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4872 
   4873 
   4874   # Control Flow Enforcement (ROP hardening) - requires CPU hardware support
   4875   ac_ext=c
   4876 ac_cpp='$CPP $CPPFLAGS'
   4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4880 
   4881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcf-protection" >&5
   4882 printf %s "checking whether C compiler accepts -fcf-protection... " >&6; }
   4883 if test ${ax_cv_check_cflags__Werror___fcf_protection+y}
   4884 then :
   4885   printf %s "(cached) " >&6
   4886 else $as_nop
   4887 
   4888   ax_check_save_flags=$CFLAGS
   4889   CFLAGS="$CFLAGS -Werror  -fcf-protection"
   4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4891 /* end confdefs.h.  */
   4892 
   4893 int
   4894 main (void)
   4895 {
   4896 
   4897   ;
   4898   return 0;
   4899 }
   4900 _ACEOF
   4901 if ac_fn_c_try_compile "$LINENO"
   4902 then :
   4903   ax_cv_check_cflags__Werror___fcf_protection=yes
   4904 else $as_nop
   4905   ax_cv_check_cflags__Werror___fcf_protection=no
   4906 fi
   4907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4908   CFLAGS=$ax_check_save_flags
   4909 fi
   4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fcf_protection" >&5
   4911 printf "%s\n" "$ax_cv_check_cflags__Werror___fcf_protection" >&6; }
   4912 if test x"$ax_cv_check_cflags__Werror___fcf_protection" = xyes
   4913 then :
   4914   HARDEN_CFLAGS="$HARDEN_CFLAGS -fcf-protection"
   4915 else $as_nop
   4916   :
   4917 fi
   4918 
   4919   ac_ext=c
   4920 ac_cpp='$CPP $CPPFLAGS'
   4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4924 
   4925 
   4926   # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
   4927   #
   4928   # The linker checks also compile code, so we need to include -fPIE as well.
   4929   ac_ext=c
   4930 ac_cpp='$CPP $CPPFLAGS'
   4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4934 
   4935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
   4936 printf %s "checking whether C compiler accepts -fPIE... " >&6; }
   4937 if test ${ax_cv_check_cflags__Werror___fPIE+y}
   4938 then :
   4939   printf %s "(cached) " >&6
   4940 else $as_nop
   4941 
   4942   ax_check_save_flags=$CFLAGS
   4943   CFLAGS="$CFLAGS -Werror  -fPIE"
   4944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4945 /* end confdefs.h.  */
   4946 
   4947 int
   4948 main (void)
   4949 {
   4950 
   4951   ;
   4952   return 0;
   4953 }
   4954 _ACEOF
   4955 if ac_fn_c_try_compile "$LINENO"
   4956 then :
   4957   ax_cv_check_cflags__Werror___fPIE=yes
   4958 else $as_nop
   4959   ax_cv_check_cflags__Werror___fPIE=no
   4960 fi
   4961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4962   CFLAGS=$ax_check_save_flags
   4963 fi
   4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
   4965 printf "%s\n" "$ax_cv_check_cflags__Werror___fPIE" >&6; }
   4966 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes
   4967 then :
   4968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
   4969 printf %s "checking whether the linker accepts -fPIE -pie... " >&6; }
   4970 if test ${ax_cv_check_ldflags__Werror___fPIE__pie+y}
   4971 then :
   4972   printf %s "(cached) " >&6
   4973 else $as_nop
   4974 
   4975   ax_check_save_flags=$LDFLAGS
   4976   LDFLAGS="$LDFLAGS -Werror  -fPIE -pie"
   4977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4978 /* end confdefs.h.  */
   4979 
   4980 int
   4981 main (void)
   4982 {
   4983 
   4984   ;
   4985   return 0;
   4986 }
   4987 _ACEOF
   4988 if ac_fn_c_try_link "$LINENO"
   4989 then :
   4990   ax_cv_check_ldflags__Werror___fPIE__pie=yes
   4991 else $as_nop
   4992   ax_cv_check_ldflags__Werror___fPIE__pie=no
   4993 fi
   4994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   4995     conftest$ac_exeext conftest.$ac_ext
   4996   LDFLAGS=$ax_check_save_flags
   4997 fi
   4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
   4999 printf "%s\n" "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
   5000 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes
   5001 then :
   5002   HARDEN_BINCFLAGS="-fPIE"
   5003       HARDEN_BINLDFLAGS="-pie"
   5004 else $as_nop
   5005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
   5006 printf %s "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
   5007 if test ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+y}
   5008 then :
   5009   printf %s "(cached) " >&6
   5010 else $as_nop
   5011 
   5012   ax_check_save_flags=$LDFLAGS
   5013   LDFLAGS="$LDFLAGS -Werror  -fPIE -Wl,-pie"
   5014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5015 /* end confdefs.h.  */
   5016 
   5017 int
   5018 main (void)
   5019 {
   5020 
   5021   ;
   5022   return 0;
   5023 }
   5024 _ACEOF
   5025 if ac_fn_c_try_link "$LINENO"
   5026 then :
   5027   ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
   5028 else $as_nop
   5029   ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
   5030 fi
   5031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5032     conftest$ac_exeext conftest.$ac_ext
   5033   LDFLAGS=$ax_check_save_flags
   5034 fi
   5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
   5036 printf "%s\n" "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
   5037 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes
   5038 then :
   5039   HARDEN_BINCFLAGS="-fPIE"
   5040         HARDEN_BINLDFLAGS="-Wl,-pie"
   5041 else $as_nop
   5042   :
   5043 fi
   5044 
   5045 fi
   5046 
   5047 else $as_nop
   5048   :
   5049 fi
   5050 
   5051   ac_ext=c
   5052 ac_cpp='$CPP $CPPFLAGS'
   5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5056 
   5057 
   5058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
   5059 printf %s "checking whether the linker accepts -Wl,-z,relro... " >&6; }
   5060 if test ${ax_cv_check_ldflags__Werror___Wl__z_relro+y}
   5061 then :
   5062   printf %s "(cached) " >&6
   5063 else $as_nop
   5064 
   5065   ax_check_save_flags=$LDFLAGS
   5066   LDFLAGS="$LDFLAGS -Werror  -Wl,-z,relro"
   5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5068 /* end confdefs.h.  */
   5069 
   5070 int
   5071 main (void)
   5072 {
   5073 
   5074   ;
   5075   return 0;
   5076 }
   5077 _ACEOF
   5078 if ac_fn_c_try_link "$LINENO"
   5079 then :
   5080   ax_cv_check_ldflags__Werror___Wl__z_relro=yes
   5081 else $as_nop
   5082   ax_cv_check_ldflags__Werror___Wl__z_relro=no
   5083 fi
   5084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5085     conftest$ac_exeext conftest.$ac_ext
   5086   LDFLAGS=$ax_check_save_flags
   5087 fi
   5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
   5089 printf "%s\n" "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
   5090 if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes
   5091 then :
   5092   HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
   5093     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
   5094 printf %s "checking whether the linker accepts -Wl,-z,now... " >&6; }
   5095 if test ${ax_cv_check_ldflags__Werror___Wl__z_now+y}
   5096 then :
   5097   printf %s "(cached) " >&6
   5098 else $as_nop
   5099 
   5100   ax_check_save_flags=$LDFLAGS
   5101   LDFLAGS="$LDFLAGS -Werror  -Wl,-z,now"
   5102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5103 /* end confdefs.h.  */
   5104 
   5105 int
   5106 main (void)
   5107 {
   5108 
   5109   ;
   5110   return 0;
   5111 }
   5112 _ACEOF
   5113 if ac_fn_c_try_link "$LINENO"
   5114 then :
   5115   ax_cv_check_ldflags__Werror___Wl__z_now=yes
   5116 else $as_nop
   5117   ax_cv_check_ldflags__Werror___Wl__z_now=no
   5118 fi
   5119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5120     conftest$ac_exeext conftest.$ac_ext
   5121   LDFLAGS=$ax_check_save_flags
   5122 fi
   5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
   5124 printf "%s\n" "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
   5125 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes
   5126 then :
   5127   HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
   5128 else $as_nop
   5129   :
   5130 fi
   5131 
   5132 else $as_nop
   5133   :
   5134 fi
   5135 
   5136 fi
   5137 
   5138 
   5139 
   5140 
   5141 
   5142 # End of flag tests.
   5143 CC="$saved_CC"
   5144 CXX="$saved_CXX"
   5145 LD="$saved_LD"
   5146 
   5147 ac_ext=c
   5148 ac_cpp='$CPP $CPPFLAGS'
   5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5152 
   5153   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
   5154 printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
   5155 if test ${ax_cv_check_cflags__Werror___fno_strict_aliasing+y}
   5156 then :
   5157   printf %s "(cached) " >&6
   5158 else $as_nop
   5159 
   5160   ax_check_save_flags=$CFLAGS
   5161   CFLAGS="$CFLAGS -Werror  -fno-strict-aliasing"
   5162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5163 /* end confdefs.h.  */
   5164 
   5165 int
   5166 main (void)
   5167 {
   5168 
   5169   ;
   5170   return 0;
   5171 }
   5172 _ACEOF
   5173 if ac_fn_c_try_compile "$LINENO"
   5174 then :
   5175   ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
   5176 else $as_nop
   5177   ax_cv_check_cflags__Werror___fno_strict_aliasing=no
   5178 fi
   5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5180   CFLAGS=$ax_check_save_flags
   5181 fi
   5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
   5183 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
   5184 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes
   5185 then :
   5186   CFLAGS="$CFLAGS -fno-strict-aliasing"
   5187 else $as_nop
   5188   :
   5189 fi
   5190 
   5191   ac_ext=c
   5192 ac_cpp='$CPP $CPPFLAGS'
   5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5196 
   5197 
   5198 ac_ext=c
   5199 ac_cpp='$CPP $CPPFLAGS'
   5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5203 
   5204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-common" >&5
   5205 printf %s "checking whether C compiler accepts -fno-common... " >&6; }
   5206 if test ${ax_cv_check_cflags__Werror___fno_common+y}
   5207 then :
   5208   printf %s "(cached) " >&6
   5209 else $as_nop
   5210 
   5211   ax_check_save_flags=$CFLAGS
   5212   CFLAGS="$CFLAGS -Werror  -fno-common"
   5213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5214 /* end confdefs.h.  */
   5215 
   5216 int
   5217 main (void)
   5218 {
   5219 
   5220   ;
   5221   return 0;
   5222 }
   5223 _ACEOF
   5224 if ac_fn_c_try_compile "$LINENO"
   5225 then :
   5226   ax_cv_check_cflags__Werror___fno_common=yes
   5227 else $as_nop
   5228   ax_cv_check_cflags__Werror___fno_common=no
   5229 fi
   5230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5231   CFLAGS=$ax_check_save_flags
   5232 fi
   5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_common" >&5
   5234 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_common" >&6; }
   5235 if test x"$ax_cv_check_cflags__Werror___fno_common" = xyes
   5236 then :
   5237   CFLAGS="$CFLAGS -fno-common"
   5238 else $as_nop
   5239   :
   5240 fi
   5241 
   5242   ac_ext=c
   5243 ac_cpp='$CPP $CPPFLAGS'
   5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5247 
   5248 
   5249 CFLAGS="$CFLAGS -funsigned-char"
   5250 
   5251 
   5252 
   5253 CFLAGS="$CFLAGS -Wall"
   5254 
   5255 ac_ext=c
   5256 ac_cpp='$CPP $CPPFLAGS'
   5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5260 
   5261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
   5262 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
   5263 if test ${ax_cv_check_cflags__Werror___Wextra+y}
   5264 then :
   5265   printf %s "(cached) " >&6
   5266 else $as_nop
   5267 
   5268   ax_check_save_flags=$CFLAGS
   5269   CFLAGS="$CFLAGS -Werror  -Wextra"
   5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5271 /* end confdefs.h.  */
   5272 
   5273 int
   5274 main (void)
   5275 {
   5276 
   5277   ;
   5278   return 0;
   5279 }
   5280 _ACEOF
   5281 if ac_fn_c_try_compile "$LINENO"
   5282 then :
   5283   ax_cv_check_cflags__Werror___Wextra=yes
   5284 else $as_nop
   5285   ax_cv_check_cflags__Werror___Wextra=no
   5286 fi
   5287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5288   CFLAGS=$ax_check_save_flags
   5289 fi
   5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
   5291 printf "%s\n" "$ax_cv_check_cflags__Werror___Wextra" >&6; }
   5292 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes
   5293 then :
   5294   CFLAGS="$CFLAGS -Wextra"
   5295 else $as_nop
   5296   :
   5297 fi
   5298 
   5299   ac_ext=c
   5300 ac_cpp='$CPP $CPPFLAGS'
   5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5304 
   5305 ac_ext=c
   5306 ac_cpp='$CPP $CPPFLAGS'
   5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5310 
   5311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
   5312 printf %s "checking whether C compiler accepts -Waggregate-return... " >&6; }
   5313 if test ${ax_cv_check_cflags__Werror___Waggregate_return+y}
   5314 then :
   5315   printf %s "(cached) " >&6
   5316 else $as_nop
   5317 
   5318   ax_check_save_flags=$CFLAGS
   5319   CFLAGS="$CFLAGS -Werror  -Waggregate-return"
   5320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5321 /* end confdefs.h.  */
   5322 
   5323 int
   5324 main (void)
   5325 {
   5326 
   5327   ;
   5328   return 0;
   5329 }
   5330 _ACEOF
   5331 if ac_fn_c_try_compile "$LINENO"
   5332 then :
   5333   ax_cv_check_cflags__Werror___Waggregate_return=yes
   5334 else $as_nop
   5335   ax_cv_check_cflags__Werror___Waggregate_return=no
   5336 fi
   5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5338   CFLAGS=$ax_check_save_flags
   5339 fi
   5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
   5341 printf "%s\n" "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
   5342 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes
   5343 then :
   5344   CFLAGS="$CFLAGS -Waggregate-return"
   5345 else $as_nop
   5346   :
   5347 fi
   5348 
   5349   ac_ext=c
   5350 ac_cpp='$CPP $CPPFLAGS'
   5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5354 
   5355 ac_ext=c
   5356 ac_cpp='$CPP $CPPFLAGS'
   5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5360 
   5361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
   5362 printf %s "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
   5363 if test ${ax_cv_check_cflags__Werror___Wformat_nonliteral+y}
   5364 then :
   5365   printf %s "(cached) " >&6
   5366 else $as_nop
   5367 
   5368   ax_check_save_flags=$CFLAGS
   5369   CFLAGS="$CFLAGS -Werror  -Wformat-nonliteral"
   5370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5371 /* end confdefs.h.  */
   5372 
   5373 int
   5374 main (void)
   5375 {
   5376 
   5377   ;
   5378   return 0;
   5379 }
   5380 _ACEOF
   5381 if ac_fn_c_try_compile "$LINENO"
   5382 then :
   5383   ax_cv_check_cflags__Werror___Wformat_nonliteral=yes
   5384 else $as_nop
   5385   ax_cv_check_cflags__Werror___Wformat_nonliteral=no
   5386 fi
   5387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5388   CFLAGS=$ax_check_save_flags
   5389 fi
   5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_nonliteral" >&5
   5391 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_nonliteral" >&6; }
   5392 if test x"$ax_cv_check_cflags__Werror___Wformat_nonliteral" = xyes
   5393 then :
   5394   CFLAGS="$CFLAGS -Wformat-nonliteral"
   5395 else $as_nop
   5396   :
   5397 fi
   5398 
   5399   ac_ext=c
   5400 ac_cpp='$CPP $CPPFLAGS'
   5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5404 
   5405 
   5406 ac_ext=c
   5407 ac_cpp='$CPP $CPPFLAGS'
   5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5411 
   5412   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
   5413 printf %s "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
   5414 if test ${ax_cv_check_cflags__Werror___Wduplicated_cond+y}
   5415 then :
   5416   printf %s "(cached) " >&6
   5417 else $as_nop
   5418 
   5419   ax_check_save_flags=$CFLAGS
   5420   CFLAGS="$CFLAGS -Werror  -Wduplicated-cond"
   5421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5422 /* end confdefs.h.  */
   5423 
   5424 int
   5425 main (void)
   5426 {
   5427 
   5428   ;
   5429   return 0;
   5430 }
   5431 _ACEOF
   5432 if ac_fn_c_try_compile "$LINENO"
   5433 then :
   5434   ax_cv_check_cflags__Werror___Wduplicated_cond=yes
   5435 else $as_nop
   5436   ax_cv_check_cflags__Werror___Wduplicated_cond=no
   5437 fi
   5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5439   CFLAGS=$ax_check_save_flags
   5440 fi
   5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
   5442 printf "%s\n" "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
   5443 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes
   5444 then :
   5445   CFLAGS="$CFLAGS -Wduplicated-cond"
   5446 else $as_nop
   5447   :
   5448 fi
   5449 
   5450   ac_ext=c
   5451 ac_cpp='$CPP $CPPFLAGS'
   5452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5455 
   5456 ac_ext=c
   5457 ac_cpp='$CPP $CPPFLAGS'
   5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5461 
   5462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
   5463 printf %s "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
   5464 if test ${ax_cv_check_cflags__Werror___Wduplicated_branches+y}
   5465 then :
   5466   printf %s "(cached) " >&6
   5467 else $as_nop
   5468 
   5469   ax_check_save_flags=$CFLAGS
   5470   CFLAGS="$CFLAGS -Werror  -Wduplicated-branches"
   5471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5472 /* end confdefs.h.  */
   5473 
   5474 int
   5475 main (void)
   5476 {
   5477 
   5478   ;
   5479   return 0;
   5480 }
   5481 _ACEOF
   5482 if ac_fn_c_try_compile "$LINENO"
   5483 then :
   5484   ax_cv_check_cflags__Werror___Wduplicated_branches=yes
   5485 else $as_nop
   5486   ax_cv_check_cflags__Werror___Wduplicated_branches=no
   5487 fi
   5488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5489   CFLAGS=$ax_check_save_flags
   5490 fi
   5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
   5492 printf "%s\n" "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
   5493 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes
   5494 then :
   5495   CFLAGS="$CFLAGS -Wduplicated-branches"
   5496 else $as_nop
   5497   :
   5498 fi
   5499 
   5500   ac_ext=c
   5501 ac_cpp='$CPP $CPPFLAGS'
   5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5505 
   5506 
   5507 ac_ext=c
   5508 ac_cpp='$CPP $CPPFLAGS'
   5509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5512 
   5513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wparentheses" >&5
   5514 printf %s "checking whether C compiler accepts -Wparentheses... " >&6; }
   5515 if test ${ax_cv_check_cflags__Werror___Wparentheses+y}
   5516 then :
   5517   printf %s "(cached) " >&6
   5518 else $as_nop
   5519 
   5520   ax_check_save_flags=$CFLAGS
   5521   CFLAGS="$CFLAGS -Werror  -Wparentheses"
   5522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5523 /* end confdefs.h.  */
   5524 
   5525 int
   5526 main (void)
   5527 {
   5528 
   5529   ;
   5530   return 0;
   5531 }
   5532 _ACEOF
   5533 if ac_fn_c_try_compile "$LINENO"
   5534 then :
   5535   ax_cv_check_cflags__Werror___Wparentheses=yes
   5536 else $as_nop
   5537   ax_cv_check_cflags__Werror___Wparentheses=no
   5538 fi
   5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5540   CFLAGS=$ax_check_save_flags
   5541 fi
   5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wparentheses" >&5
   5543 printf "%s\n" "$ax_cv_check_cflags__Werror___Wparentheses" >&6; }
   5544 if test x"$ax_cv_check_cflags__Werror___Wparentheses" = xyes
   5545 then :
   5546   CFLAGS="$CFLAGS -Wparentheses"
   5547 else $as_nop
   5548   :
   5549 fi
   5550 
   5551   ac_ext=c
   5552 ac_cpp='$CPP $CPPFLAGS'
   5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5556 
   5557 
   5558 
   5559 
   5560 ac_ext=c
   5561 ac_cpp='$CPP $CPPFLAGS'
   5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5565 
   5566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
   5567 printf %s "checking whether C compiler accepts -Wpointer-sign... " >&6; }
   5568 if test ${ax_cv_check_cflags__Werror___Wpointer_sign+y}
   5569 then :
   5570   printf %s "(cached) " >&6
   5571 else $as_nop
   5572 
   5573   ax_check_save_flags=$CFLAGS
   5574   CFLAGS="$CFLAGS -Werror  -Wpointer-sign"
   5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5576 /* end confdefs.h.  */
   5577 
   5578 int
   5579 main (void)
   5580 {
   5581 
   5582   ;
   5583   return 0;
   5584 }
   5585 _ACEOF
   5586 if ac_fn_c_try_compile "$LINENO"
   5587 then :
   5588   ax_cv_check_cflags__Werror___Wpointer_sign=yes
   5589 else $as_nop
   5590   ax_cv_check_cflags__Werror___Wpointer_sign=no
   5591 fi
   5592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5593   CFLAGS=$ax_check_save_flags
   5594 fi
   5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
   5596 printf "%s\n" "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
   5597 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes
   5598 then :
   5599   CFLAGS="$CFLAGS -Wno-pointer-sign"
   5600 else $as_nop
   5601   :
   5602 fi
   5603 
   5604   ac_ext=c
   5605 ac_cpp='$CPP $CPPFLAGS'
   5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5609 
   5610 
   5611 ac_ext=c
   5612 ac_cpp='$CPP $CPPFLAGS'
   5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5616 
   5617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
   5618 printf %s "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
   5619 if test ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+y}
   5620 then :
   5621   printf %s "(cached) " >&6
   5622 else $as_nop
   5623 
   5624   ax_check_save_flags=$CFLAGS
   5625   CFLAGS="$CFLAGS -Werror  -Winvalid-source-encoding"
   5626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5627 /* end confdefs.h.  */
   5628 
   5629 int
   5630 main (void)
   5631 {
   5632 
   5633   ;
   5634   return 0;
   5635 }
   5636 _ACEOF
   5637 if ac_fn_c_try_compile "$LINENO"
   5638 then :
   5639   ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
   5640 else $as_nop
   5641   ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
   5642 fi
   5643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5644   CFLAGS=$ax_check_save_flags
   5645 fi
   5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
   5647 printf "%s\n" "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
   5648 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes
   5649 then :
   5650   CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
   5651 else $as_nop
   5652   :
   5653 fi
   5654 
   5655   ac_ext=c
   5656 ac_cpp='$CPP $CPPFLAGS'
   5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5660 
   5661 
   5662 ac_ext=c
   5663 ac_cpp='$CPP $CPPFLAGS'
   5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5667 
   5668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
   5669 printf %s "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
   5670 if test ${ax_cv_check_cflags__Werror___Wformat_zero_length+y}
   5671 then :
   5672   printf %s "(cached) " >&6
   5673 else $as_nop
   5674 
   5675   ax_check_save_flags=$CFLAGS
   5676   CFLAGS="$CFLAGS -Werror  -Wformat-zero-length"
   5677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5678 /* end confdefs.h.  */
   5679 
   5680 int
   5681 main (void)
   5682 {
   5683 
   5684   ;
   5685   return 0;
   5686 }
   5687 _ACEOF
   5688 if ac_fn_c_try_compile "$LINENO"
   5689 then :
   5690   ax_cv_check_cflags__Werror___Wformat_zero_length=yes
   5691 else $as_nop
   5692   ax_cv_check_cflags__Werror___Wformat_zero_length=no
   5693 fi
   5694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5695   CFLAGS=$ax_check_save_flags
   5696 fi
   5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
   5698 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
   5699 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes
   5700 then :
   5701   CFLAGS="$CFLAGS -Wno-format-zero-length"
   5702 else $as_nop
   5703   :
   5704 fi
   5705 
   5706   ac_ext=c
   5707 ac_cpp='$CPP $CPPFLAGS'
   5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5711 
   5712 
   5713 ac_ext=c
   5714 ac_cpp='$CPP $CPPFLAGS'
   5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5718 
   5719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
   5720 printf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; }
   5721 if test ${ax_cv_check_cflags__Werror___Wformat_truncation+y}
   5722 then :
   5723   printf %s "(cached) " >&6
   5724 else $as_nop
   5725 
   5726   ax_check_save_flags=$CFLAGS
   5727   CFLAGS="$CFLAGS -Werror  -Wformat-truncation"
   5728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5729 /* end confdefs.h.  */
   5730 
   5731 int
   5732 main (void)
   5733 {
   5734 
   5735   ;
   5736   return 0;
   5737 }
   5738 _ACEOF
   5739 if ac_fn_c_try_compile "$LINENO"
   5740 then :
   5741   ax_cv_check_cflags__Werror___Wformat_truncation=yes
   5742 else $as_nop
   5743   ax_cv_check_cflags__Werror___Wformat_truncation=no
   5744 fi
   5745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5746   CFLAGS=$ax_check_save_flags
   5747 fi
   5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
   5749 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
   5750 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes
   5751 then :
   5752   CFLAGS="$CFLAGS -Wno-format-truncation"
   5753 else $as_nop
   5754   :
   5755 fi
   5756 
   5757   ac_ext=c
   5758 ac_cpp='$CPP $CPPFLAGS'
   5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5762 
   5763 
   5764 ac_ext=c
   5765 ac_cpp='$CPP $CPPFLAGS'
   5766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5769 
   5770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
   5771 printf %s "checking whether C compiler accepts -Wformat-overflow... " >&6; }
   5772 if test ${ax_cv_check_cflags__Werror___Wformat_overflow+y}
   5773 then :
   5774   printf %s "(cached) " >&6
   5775 else $as_nop
   5776 
   5777   ax_check_save_flags=$CFLAGS
   5778   CFLAGS="$CFLAGS -Werror  -Wformat-overflow"
   5779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5780 /* end confdefs.h.  */
   5781 
   5782 int
   5783 main (void)
   5784 {
   5785 
   5786   ;
   5787   return 0;
   5788 }
   5789 _ACEOF
   5790 if ac_fn_c_try_compile "$LINENO"
   5791 then :
   5792   ax_cv_check_cflags__Werror___Wformat_overflow=yes
   5793 else $as_nop
   5794   ax_cv_check_cflags__Werror___Wformat_overflow=no
   5795 fi
   5796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5797   CFLAGS=$ax_check_save_flags
   5798 fi
   5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_overflow" >&5
   5800 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_overflow" >&6; }
   5801 if test x"$ax_cv_check_cflags__Werror___Wformat_overflow" = xyes
   5802 then :
   5803   CFLAGS="$CFLAGS -Wno-format-overflow"
   5804 else $as_nop
   5805   :
   5806 fi
   5807 
   5808   ac_ext=c
   5809 ac_cpp='$CPP $CPPFLAGS'
   5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5813 
   5814 
   5815 ac_ext=c
   5816 ac_cpp='$CPP $CPPFLAGS'
   5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5820 
   5821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
   5822 printf %s "checking whether C compiler accepts -Wunused... " >&6; }
   5823 if test ${ax_cv_check_cflags__Werror___Wunused+y}
   5824 then :
   5825   printf %s "(cached) " >&6
   5826 else $as_nop
   5827 
   5828   ax_check_save_flags=$CFLAGS
   5829   CFLAGS="$CFLAGS -Werror  -Wunused"
   5830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5831 /* end confdefs.h.  */
   5832 
   5833 int
   5834 main (void)
   5835 {
   5836 
   5837   ;
   5838   return 0;
   5839 }
   5840 _ACEOF
   5841 if ac_fn_c_try_compile "$LINENO"
   5842 then :
   5843   ax_cv_check_cflags__Werror___Wunused=yes
   5844 else $as_nop
   5845   ax_cv_check_cflags__Werror___Wunused=no
   5846 fi
   5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5848   CFLAGS=$ax_check_save_flags
   5849 fi
   5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
   5851 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused" >&6; }
   5852 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes
   5853 then :
   5854   CFLAGS="$CFLAGS -Wno-unused"
   5855 else $as_nop
   5856   :
   5857 fi
   5858 
   5859   ac_ext=c
   5860 ac_cpp='$CPP $CPPFLAGS'
   5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5864 
   5865 ac_ext=c
   5866 ac_cpp='$CPP $CPPFLAGS'
   5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5870 
   5871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
   5872 printf %s "checking whether C compiler accepts -Wunused-parameter... " >&6; }
   5873 if test ${ax_cv_check_cflags__Werror___Wunused_parameter+y}
   5874 then :
   5875   printf %s "(cached) " >&6
   5876 else $as_nop
   5877 
   5878   ax_check_save_flags=$CFLAGS
   5879   CFLAGS="$CFLAGS -Werror  -Wunused-parameter"
   5880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5881 /* end confdefs.h.  */
   5882 
   5883 int
   5884 main (void)
   5885 {
   5886 
   5887   ;
   5888   return 0;
   5889 }
   5890 _ACEOF
   5891 if ac_fn_c_try_compile "$LINENO"
   5892 then :
   5893   ax_cv_check_cflags__Werror___Wunused_parameter=yes
   5894 else $as_nop
   5895   ax_cv_check_cflags__Werror___Wunused_parameter=no
   5896 fi
   5897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5898   CFLAGS=$ax_check_save_flags
   5899 fi
   5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
   5901 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
   5902 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes
   5903 then :
   5904   CFLAGS="$CFLAGS -Wno-unused-parameter"
   5905 else $as_nop
   5906   :
   5907 fi
   5908 
   5909   ac_ext=c
   5910 ac_cpp='$CPP $CPPFLAGS'
   5911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5914 
   5915 ac_ext=c
   5916 ac_cpp='$CPP $CPPFLAGS'
   5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5920 
   5921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-but-set-parameter" >&5
   5922 printf %s "checking whether C compiler accepts -Wunused-but-set-parameter... " >&6; }
   5923 if test ${ax_cv_check_cflags__Werror___Wunused_but_set_parameter+y}
   5924 then :
   5925   printf %s "(cached) " >&6
   5926 else $as_nop
   5927 
   5928   ax_check_save_flags=$CFLAGS
   5929   CFLAGS="$CFLAGS -Werror  -Wunused-but-set-parameter"
   5930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5931 /* end confdefs.h.  */
   5932 
   5933 int
   5934 main (void)
   5935 {
   5936 
   5937   ;
   5938   return 0;
   5939 }
   5940 _ACEOF
   5941 if ac_fn_c_try_compile "$LINENO"
   5942 then :
   5943   ax_cv_check_cflags__Werror___Wunused_but_set_parameter=yes
   5944 else $as_nop
   5945   ax_cv_check_cflags__Werror___Wunused_but_set_parameter=no
   5946 fi
   5947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5948   CFLAGS=$ax_check_save_flags
   5949 fi
   5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_but_set_parameter" >&5
   5951 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused_but_set_parameter" >&6; }
   5952 if test x"$ax_cv_check_cflags__Werror___Wunused_but_set_parameter" = xyes
   5953 then :
   5954   CFLAGS="$CFLAGS -Wno-unused-but-set-parameter"
   5955 else $as_nop
   5956   :
   5957 fi
   5958 
   5959   ac_ext=c
   5960 ac_cpp='$CPP $CPPFLAGS'
   5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5964 
   5965 
   5966 ac_ext=c
   5967 ac_cpp='$CPP $CPPFLAGS'
   5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5971 
   5972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
   5973 printf %s "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
   5974 if test ${ax_cv_check_cflags__Werror___Wchar_subscripts+y}
   5975 then :
   5976   printf %s "(cached) " >&6
   5977 else $as_nop
   5978 
   5979   ax_check_save_flags=$CFLAGS
   5980   CFLAGS="$CFLAGS -Werror  -Wchar-subscripts"
   5981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5982 /* end confdefs.h.  */
   5983 
   5984 int
   5985 main (void)
   5986 {
   5987 
   5988   ;
   5989   return 0;
   5990 }
   5991 _ACEOF
   5992 if ac_fn_c_try_compile "$LINENO"
   5993 then :
   5994   ax_cv_check_cflags__Werror___Wchar_subscripts=yes
   5995 else $as_nop
   5996   ax_cv_check_cflags__Werror___Wchar_subscripts=no
   5997 fi
   5998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5999   CFLAGS=$ax_check_save_flags
   6000 fi
   6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
   6002 printf "%s\n" "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
   6003 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes
   6004 then :
   6005   CFLAGS="$CFLAGS -Wno-char-subscripts"
   6006 else $as_nop
   6007   :
   6008 fi
   6009 
   6010   ac_ext=c
   6011 ac_cpp='$CPP $CPPFLAGS'
   6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6015 
   6016 
   6017 ac_ext=c
   6018 ac_cpp='$CPP $CPPFLAGS'
   6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6022 
   6023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
   6024 printf %s "checking whether C compiler accepts -Wsign-compare... " >&6; }
   6025 if test ${ax_cv_check_cflags__Werror___Wsign_compare+y}
   6026 then :
   6027   printf %s "(cached) " >&6
   6028 else $as_nop
   6029 
   6030   ax_check_save_flags=$CFLAGS
   6031   CFLAGS="$CFLAGS -Werror  -Wsign-compare"
   6032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6033 /* end confdefs.h.  */
   6034 
   6035 int
   6036 main (void)
   6037 {
   6038 
   6039   ;
   6040   return 0;
   6041 }
   6042 _ACEOF
   6043 if ac_fn_c_try_compile "$LINENO"
   6044 then :
   6045   ax_cv_check_cflags__Werror___Wsign_compare=yes
   6046 else $as_nop
   6047   ax_cv_check_cflags__Werror___Wsign_compare=no
   6048 fi
   6049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6050   CFLAGS=$ax_check_save_flags
   6051 fi
   6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
   6053 printf "%s\n" "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
   6054 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes
   6055 then :
   6056   CFLAGS="$CFLAGS -Wno-sign-compare"
   6057 else $as_nop
   6058   :
   6059 fi
   6060 
   6061   ac_ext=c
   6062 ac_cpp='$CPP $CPPFLAGS'
   6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6066 
   6067 
   6068 ac_ext=c
   6069 ac_cpp='$CPP $CPPFLAGS'
   6070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6073 
   6074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
   6075 printf %s "checking whether C compiler accepts -Wempty-body... " >&6; }
   6076 if test ${ax_cv_check_cflags__Werror___Wempty_body+y}
   6077 then :
   6078   printf %s "(cached) " >&6
   6079 else $as_nop
   6080 
   6081   ax_check_save_flags=$CFLAGS
   6082   CFLAGS="$CFLAGS -Werror  -Wempty-body"
   6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6084 /* end confdefs.h.  */
   6085 
   6086 int
   6087 main (void)
   6088 {
   6089 
   6090   ;
   6091   return 0;
   6092 }
   6093 _ACEOF
   6094 if ac_fn_c_try_compile "$LINENO"
   6095 then :
   6096   ax_cv_check_cflags__Werror___Wempty_body=yes
   6097 else $as_nop
   6098   ax_cv_check_cflags__Werror___Wempty_body=no
   6099 fi
   6100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6101   CFLAGS=$ax_check_save_flags
   6102 fi
   6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
   6104 printf "%s\n" "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
   6105 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes
   6106 then :
   6107   CFLAGS="$CFLAGS -Wno-empty-body"
   6108 else $as_nop
   6109   :
   6110 fi
   6111 
   6112   ac_ext=c
   6113 ac_cpp='$CPP $CPPFLAGS'
   6114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6117 
   6118 
   6119 ac_ext=c
   6120 ac_cpp='$CPP $CPPFLAGS'
   6121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6124 
   6125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeprecated-non-prototype" >&5
   6126 printf %s "checking whether C compiler accepts -Wdeprecated-non-prototype... " >&6; }
   6127 if test ${ax_cv_check_cflags__Werror___Wdeprecated_non_prototype+y}
   6128 then :
   6129   printf %s "(cached) " >&6
   6130 else $as_nop
   6131 
   6132   ax_check_save_flags=$CFLAGS
   6133   CFLAGS="$CFLAGS -Werror  -Wdeprecated-non-prototype"
   6134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6135 /* end confdefs.h.  */
   6136 
   6137 int
   6138 main (void)
   6139 {
   6140 
   6141   ;
   6142   return 0;
   6143 }
   6144 _ACEOF
   6145 if ac_fn_c_try_compile "$LINENO"
   6146 then :
   6147   ax_cv_check_cflags__Werror___Wdeprecated_non_prototype=yes
   6148 else $as_nop
   6149   ax_cv_check_cflags__Werror___Wdeprecated_non_prototype=no
   6150 fi
   6151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6152   CFLAGS=$ax_check_save_flags
   6153 fi
   6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" >&5
   6155 printf "%s\n" "$ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" >&6; }
   6156 if test x"$ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" = xyes
   6157 then :
   6158   CFLAGS="$CFLAGS -Wno-deprecated-non-prototype"
   6159 else $as_nop
   6160   :
   6161 fi
   6162 
   6163   ac_ext=c
   6164 ac_cpp='$CPP $CPPFLAGS'
   6165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6168 
   6169 
   6170 if $CC --version | grep -q "clang version 3."
   6171 then :
   6172   CFLAGS="$CFLAGS -Wno-tautological-compare -Wno-pragmas"
   6173 fi
   6174 
   6175 ac_ext=c
   6176 ac_cpp='$CPP $CPPFLAGS'
   6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6180 
   6181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
   6182 printf %s "checking whether C compiler accepts -Wpragmas... " >&6; }
   6183 if test ${ax_cv_check_cflags__Werror___Wpragmas+y}
   6184 then :
   6185   printf %s "(cached) " >&6
   6186 else $as_nop
   6187 
   6188   ax_check_save_flags=$CFLAGS
   6189   CFLAGS="$CFLAGS -Werror  -Wpragmas"
   6190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6191 /* end confdefs.h.  */
   6192 
   6193 int
   6194 main (void)
   6195 {
   6196 
   6197   ;
   6198   return 0;
   6199 }
   6200 _ACEOF
   6201 if ac_fn_c_try_compile "$LINENO"
   6202 then :
   6203   ax_cv_check_cflags__Werror___Wpragmas=yes
   6204 else $as_nop
   6205   ax_cv_check_cflags__Werror___Wpragmas=no
   6206 fi
   6207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6208   CFLAGS=$ax_check_save_flags
   6209 fi
   6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpragmas" >&5
   6211 printf "%s\n" "$ax_cv_check_cflags__Werror___Wpragmas" >&6; }
   6212 if test x"$ax_cv_check_cflags__Werror___Wpragmas" = xyes
   6213 then :
   6214   no_pragmas=1
   6215 else $as_nop
   6216   no_pragmas=0
   6217 fi
   6218 
   6219   ac_ext=c
   6220 ac_cpp='$CPP $CPPFLAGS'
   6221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6224 
   6225 ac_ext=c
   6226 ac_cpp='$CPP $CPPFLAGS'
   6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6230 
   6231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunknown-warning-option" >&5
   6232 printf %s "checking whether C compiler accepts -Wunknown-warning-option... " >&6; }
   6233 if test ${ax_cv_check_cflags__Werror___Wunknown_warning_option+y}
   6234 then :
   6235   printf %s "(cached) " >&6
   6236 else $as_nop
   6237 
   6238   ax_check_save_flags=$CFLAGS
   6239   CFLAGS="$CFLAGS -Werror  -Wunknown-warning-option"
   6240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6241 /* end confdefs.h.  */
   6242 
   6243 int
   6244 main (void)
   6245 {
   6246 
   6247   ;
   6248   return 0;
   6249 }
   6250 _ACEOF
   6251 if ac_fn_c_try_compile "$LINENO"
   6252 then :
   6253   ax_cv_check_cflags__Werror___Wunknown_warning_option=yes
   6254 else $as_nop
   6255   ax_cv_check_cflags__Werror___Wunknown_warning_option=no
   6256 fi
   6257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6258   CFLAGS=$ax_check_save_flags
   6259 fi
   6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunknown_warning_option" >&5
   6261 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunknown_warning_option" >&6; }
   6262 if test x"$ax_cv_check_cflags__Werror___Wunknown_warning_option" = xyes
   6263 then :
   6264   unknown_warning_option=1
   6265 else $as_nop
   6266   unknown_warning_option=0
   6267 fi
   6268 
   6269   ac_ext=c
   6270 ac_cpp='$CPP $CPPFLAGS'
   6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6274 
   6275 
   6276 if test "$unknown_warning_option" = "1"; then
   6277 		CFLAGS="$CFLAGS -Wno-unknown-warning-option"
   6278 else
   6279 	if test "$no_pragmas" = "1"; then
   6280 								CFLAGS="$CFLAGS -Wno-pragmas"
   6281 	fi
   6282 fi
   6283 
   6284 
   6285 
   6286 
   6287 
   6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
   6289 printf %s "checking if your system has IPv6 support... " >&6; }
   6290 if test ${ac_cv_ip6+y}
   6291 then :
   6292   printf %s "(cached) " >&6
   6293 else $as_nop
   6294 
   6295 if test "$cross_compiling" = yes
   6296 then :
   6297   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6298 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6299 as_fn_error $? "cannot run test program while cross compiling
   6300 See \`config.log' for more details" "$LINENO" 5; }
   6301 else $as_nop
   6302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6303 /* end confdefs.h.  */
   6304 
   6305 #include <sys/types.h>
   6306 #include <sys/socket.h>
   6307 #include <stdlib.h>
   6308 int main(void) {
   6309 int s = socket(AF_INET6, SOCK_STREAM, 0);
   6310 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
   6311 }
   6312 
   6313 _ACEOF
   6314 if ac_fn_c_try_run "$LINENO"
   6315 then :
   6316   ac_cv_ip6=yes
   6317 else $as_nop
   6318   ac_cv_ip6=no
   6319 fi
   6320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6321   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6322 fi
   6323 
   6324 
   6325 fi
   6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
   6327 printf "%s\n" "$ac_cv_ip6" >&6; }
   6328 if test "$ac_cv_ip6" = "no"; then
   6329 	as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
   6330 fi
   6331 
   6332 ac_fn_c_check_header_compile "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
   6333 if test "x$ac_cv_header_sys_syslog_h" = xyes
   6334 then :
   6335 
   6336 printf "%s\n" "#define SYSSYSLOGH /**/" >>confdefs.h
   6337 
   6338 fi
   6339 
   6340 ac_fn_c_check_header_compile "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
   6341 if test "x$ac_cv_header_sys_rusage_h" = xyes
   6342 then :
   6343 
   6344 printf "%s\n" "#define RUSAGEH /**/" >>confdefs.h
   6345 
   6346 fi
   6347 
   6348 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
   6349 if test "x$ac_cv_header_glob_h" = xyes
   6350 then :
   6351 
   6352 printf "%s\n" "#define GLOBH /**/" >>confdefs.h
   6353 
   6354 fi
   6355 
   6356 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
   6357 if test "x$ac_cv_header_stdint_h" = xyes
   6358 then :
   6359   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
   6360 
   6361 fi
   6362 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
   6363 if test "x$ac_cv_header_inttypes_h" = xyes
   6364 then :
   6365   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
   6366 
   6367 fi
   6368 
   6369 
   6370 
   6371   for ac_func in strlcpy
   6372 do :
   6373   ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   6374 if test "x$ac_cv_func_strlcpy" = xyes
   6375 then :
   6376   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   6377 
   6378 printf "%s\n" "#define HAVE_STRLCPY /**/" >>confdefs.h
   6379 
   6380 fi
   6381 
   6382 done
   6383 
   6384   for ac_func in strlcat
   6385 do :
   6386   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   6387 if test "x$ac_cv_func_strlcat" = xyes
   6388 then :
   6389   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   6390 
   6391 printf "%s\n" "#define HAVE_STRLCAT /**/" >>confdefs.h
   6392 
   6393 fi
   6394 
   6395 done
   6396 
   6397   for ac_func in strlncat
   6398 do :
   6399   ac_fn_c_check_func "$LINENO" "strlncat" "ac_cv_func_strlncat"
   6400 if test "x$ac_cv_func_strlncat" = xyes
   6401 then :
   6402   printf "%s\n" "#define HAVE_STRLNCAT 1" >>confdefs.h
   6403 
   6404 printf "%s\n" "#define HAVE_STRLNCAT /**/" >>confdefs.h
   6405 
   6406 fi
   6407 
   6408 done
   6409 
   6410   for ac_func in strlncpy
   6411 do :
   6412   ac_fn_c_check_func "$LINENO" "strlncpy" "ac_cv_func_strlncpy"
   6413 if test "x$ac_cv_func_strlncpy" = xyes
   6414 then :
   6415   printf "%s\n" "#define HAVE_STRLNCPY 1" >>confdefs.h
   6416 
   6417 printf "%s\n" "#define HAVE_STRLNCPY /**/" >>confdefs.h
   6418 
   6419 fi
   6420 
   6421 done
   6422 
   6423 
   6424   for ac_func in getrusage
   6425 do :
   6426   ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
   6427 if test "x$ac_cv_func_getrusage" = xyes
   6428 then :
   6429   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
   6430 
   6431 printf "%s\n" "#define GETRUSAGE_2 /**/" >>confdefs.h
   6432 
   6433 else $as_nop
   6434 
   6435   for ac_func in times
   6436 do :
   6437   ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
   6438 if test "x$ac_cv_func_times" = xyes
   6439 then :
   6440   printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
   6441 
   6442 printf "%s\n" "#define TIMES_2 /**/" >>confdefs.h
   6443 
   6444 fi
   6445 
   6446 done
   6447 fi
   6448 
   6449 done
   6450 ac_ext=c
   6451 ac_cpp='$CPP $CPPFLAGS'
   6452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   6456 printf %s "checking how to run the C preprocessor... " >&6; }
   6457 # On Suns, sometimes $CPP names a directory.
   6458 if test -n "$CPP" && test -d "$CPP"; then
   6459   CPP=
   6460 fi
   6461 if test -z "$CPP"; then
   6462   if test ${ac_cv_prog_CPP+y}
   6463 then :
   6464   printf %s "(cached) " >&6
   6465 else $as_nop
   6466       # Double quotes because $CC needs to be expanded
   6467     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
   6468     do
   6469       ac_preproc_ok=false
   6470 for ac_c_preproc_warn_flag in '' yes
   6471 do
   6472   # Use a header file that comes with gcc, so configuring glibc
   6473   # with a fresh cross-compiler works.
   6474   # On the NeXT, cc -E runs the code through the compiler's parser,
   6475   # not just through cpp. "Syntax error" is here to catch this case.
   6476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6477 /* end confdefs.h.  */
   6478 #include <limits.h>
   6479 		     Syntax error
   6480 _ACEOF
   6481 if ac_fn_c_try_cpp "$LINENO"
   6482 then :
   6483 
   6484 else $as_nop
   6485   # Broken: fails on valid input.
   6486 continue
   6487 fi
   6488 rm -f conftest.err conftest.i conftest.$ac_ext
   6489 
   6490   # OK, works on sane cases.  Now check whether nonexistent headers
   6491   # can be detected and how.
   6492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6493 /* end confdefs.h.  */
   6494 #include <ac_nonexistent.h>
   6495 _ACEOF
   6496 if ac_fn_c_try_cpp "$LINENO"
   6497 then :
   6498   # Broken: success on invalid input.
   6499 continue
   6500 else $as_nop
   6501   # Passes both tests.
   6502 ac_preproc_ok=:
   6503 break
   6504 fi
   6505 rm -f conftest.err conftest.i conftest.$ac_ext
   6506 
   6507 done
   6508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6509 rm -f conftest.i conftest.err conftest.$ac_ext
   6510 if $ac_preproc_ok
   6511 then :
   6512   break
   6513 fi
   6514 
   6515     done
   6516     ac_cv_prog_CPP=$CPP
   6517 
   6518 fi
   6519   CPP=$ac_cv_prog_CPP
   6520 else
   6521   ac_cv_prog_CPP=$CPP
   6522 fi
   6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   6524 printf "%s\n" "$CPP" >&6; }
   6525 ac_preproc_ok=false
   6526 for ac_c_preproc_warn_flag in '' yes
   6527 do
   6528   # Use a header file that comes with gcc, so configuring glibc
   6529   # with a fresh cross-compiler works.
   6530   # On the NeXT, cc -E runs the code through the compiler's parser,
   6531   # not just through cpp. "Syntax error" is here to catch this case.
   6532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6533 /* end confdefs.h.  */
   6534 #include <limits.h>
   6535 		     Syntax error
   6536 _ACEOF
   6537 if ac_fn_c_try_cpp "$LINENO"
   6538 then :
   6539 
   6540 else $as_nop
   6541   # Broken: fails on valid input.
   6542 continue
   6543 fi
   6544 rm -f conftest.err conftest.i conftest.$ac_ext
   6545 
   6546   # OK, works on sane cases.  Now check whether nonexistent headers
   6547   # can be detected and how.
   6548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6549 /* end confdefs.h.  */
   6550 #include <ac_nonexistent.h>
   6551 _ACEOF
   6552 if ac_fn_c_try_cpp "$LINENO"
   6553 then :
   6554   # Broken: success on invalid input.
   6555 continue
   6556 else $as_nop
   6557   # Passes both tests.
   6558 ac_preproc_ok=:
   6559 break
   6560 fi
   6561 rm -f conftest.err conftest.i conftest.$ac_ext
   6562 
   6563 done
   6564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6565 rm -f conftest.i conftest.err conftest.$ac_ext
   6566 if $ac_preproc_ok
   6567 then :
   6568 
   6569 else $as_nop
   6570   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6571 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   6572 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   6573 See \`config.log' for more details" "$LINENO" 5; }
   6574 fi
   6575 
   6576 ac_ext=c
   6577 ac_cpp='$CPP $CPPFLAGS'
   6578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6581 
   6582 
   6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   6584 printf %s "checking for grep that handles long lines and -e... " >&6; }
   6585 if test ${ac_cv_path_GREP+y}
   6586 then :
   6587   printf %s "(cached) " >&6
   6588 else $as_nop
   6589   if test -z "$GREP"; then
   6590   ac_path_GREP_found=false
   6591   # Loop through the user's path and test for each of PROGNAME-LIST
   6592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6594 do
   6595   IFS=$as_save_IFS
   6596   case $as_dir in #(((
   6597     '') as_dir=./ ;;
   6598     */) ;;
   6599     *) as_dir=$as_dir/ ;;
   6600   esac
   6601     for ac_prog in grep ggrep
   6602    do
   6603     for ac_exec_ext in '' $ac_executable_extensions; do
   6604       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   6605       as_fn_executable_p "$ac_path_GREP" || continue
   6606 # Check for GNU ac_path_GREP and select it if it is found.
   6607   # Check for GNU $ac_path_GREP
   6608 case `"$ac_path_GREP" --version 2>&1` in
   6609 *GNU*)
   6610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   6611 *)
   6612   ac_count=0
   6613   printf %s 0123456789 >"conftest.in"
   6614   while :
   6615   do
   6616     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6617     mv "conftest.tmp" "conftest.in"
   6618     cp "conftest.in" "conftest.nl"
   6619     printf "%s\n" 'GREP' >> "conftest.nl"
   6620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6622     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   6624       # Best one so far, save it but keep looking for a better one
   6625       ac_cv_path_GREP="$ac_path_GREP"
   6626       ac_path_GREP_max=$ac_count
   6627     fi
   6628     # 10*(2^10) chars as input seems more than enough
   6629     test $ac_count -gt 10 && break
   6630   done
   6631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6632 esac
   6633 
   6634       $ac_path_GREP_found && break 3
   6635     done
   6636   done
   6637   done
   6638 IFS=$as_save_IFS
   6639   if test -z "$ac_cv_path_GREP"; then
   6640     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6641   fi
   6642 else
   6643   ac_cv_path_GREP=$GREP
   6644 fi
   6645 
   6646 fi
   6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   6648 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   6649  GREP="$ac_cv_path_GREP"
   6650 
   6651 
   6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   6653 printf %s "checking for egrep... " >&6; }
   6654 if test ${ac_cv_path_EGREP+y}
   6655 then :
   6656   printf %s "(cached) " >&6
   6657 else $as_nop
   6658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   6659    then ac_cv_path_EGREP="$GREP -E"
   6660    else
   6661      if test -z "$EGREP"; then
   6662   ac_path_EGREP_found=false
   6663   # Loop through the user's path and test for each of PROGNAME-LIST
   6664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6666 do
   6667   IFS=$as_save_IFS
   6668   case $as_dir in #(((
   6669     '') as_dir=./ ;;
   6670     */) ;;
   6671     *) as_dir=$as_dir/ ;;
   6672   esac
   6673     for ac_prog in egrep
   6674    do
   6675     for ac_exec_ext in '' $ac_executable_extensions; do
   6676       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   6677       as_fn_executable_p "$ac_path_EGREP" || continue
   6678 # Check for GNU ac_path_EGREP and select it if it is found.
   6679   # Check for GNU $ac_path_EGREP
   6680 case `"$ac_path_EGREP" --version 2>&1` in
   6681 *GNU*)
   6682   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   6683 *)
   6684   ac_count=0
   6685   printf %s 0123456789 >"conftest.in"
   6686   while :
   6687   do
   6688     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6689     mv "conftest.tmp" "conftest.in"
   6690     cp "conftest.in" "conftest.nl"
   6691     printf "%s\n" 'EGREP' >> "conftest.nl"
   6692     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6693     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6694     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6695     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   6696       # Best one so far, save it but keep looking for a better one
   6697       ac_cv_path_EGREP="$ac_path_EGREP"
   6698       ac_path_EGREP_max=$ac_count
   6699     fi
   6700     # 10*(2^10) chars as input seems more than enough
   6701     test $ac_count -gt 10 && break
   6702   done
   6703   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6704 esac
   6705 
   6706       $ac_path_EGREP_found && break 3
   6707     done
   6708   done
   6709   done
   6710 IFS=$as_save_IFS
   6711   if test -z "$ac_cv_path_EGREP"; then
   6712     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6713   fi
   6714 else
   6715   ac_cv_path_EGREP=$EGREP
   6716 fi
   6717 
   6718    fi
   6719 fi
   6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   6721 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   6722  EGREP="$ac_cv_path_EGREP"
   6723 
   6724 
   6725 
   6726   for ac_func in setproctitle
   6727 do :
   6728   ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
   6729 if test "x$ac_cv_func_setproctitle" = xyes
   6730 then :
   6731   printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
   6732 
   6733 printf "%s\n" "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
   6734 
   6735 else $as_nop
   6736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
   6737 printf %s "checking for setproctitle in -lutil... " >&6; }
   6738 if test ${ac_cv_lib_util_setproctitle+y}
   6739 then :
   6740   printf %s "(cached) " >&6
   6741 else $as_nop
   6742   ac_check_lib_save_LIBS=$LIBS
   6743 LIBS="-lutil  $LIBS"
   6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6745 /* end confdefs.h.  */
   6746 
   6747 /* Override any GCC internal prototype to avoid an error.
   6748    Use char because int might match the return type of a GCC
   6749    builtin and then its argument prototype would still apply.  */
   6750 char setproctitle ();
   6751 int
   6752 main (void)
   6753 {
   6754 return setproctitle ();
   6755   ;
   6756   return 0;
   6757 }
   6758 _ACEOF
   6759 if ac_fn_c_try_link "$LINENO"
   6760 then :
   6761   ac_cv_lib_util_setproctitle=yes
   6762 else $as_nop
   6763   ac_cv_lib_util_setproctitle=no
   6764 fi
   6765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6766     conftest$ac_exeext conftest.$ac_ext
   6767 LIBS=$ac_check_lib_save_LIBS
   6768 fi
   6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
   6770 printf "%s\n" "$ac_cv_lib_util_setproctitle" >&6; }
   6771 if test "x$ac_cv_lib_util_setproctitle" = xyes
   6772 then :
   6773 
   6774 printf "%s\n" "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
   6775 
   6776 		IRCDLIBS="$IRCDLIBS-lutil"
   6777 else $as_nop
   6778 
   6779 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6780 /* end confdefs.h.  */
   6781 #include <sys/exec.h>
   6782 
   6783 _ACEOF
   6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6785   $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1
   6786 then :
   6787 
   6788 printf "%s\n" "#define HAVE_PSSTRINGS /**/" >>confdefs.h
   6789 
   6790 else $as_nop
   6791 
   6792   for ac_func in pstat
   6793 do :
   6794   ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
   6795 if test "x$ac_cv_func_pstat" = xyes
   6796 then :
   6797   printf "%s\n" "#define HAVE_PSTAT 1" >>confdefs.h
   6798 
   6799 printf "%s\n" "#define HAVE_PSTAT /**/" >>confdefs.h
   6800 
   6801 fi
   6802 
   6803 done
   6804 fi
   6805 rm -rf conftest*
   6806 
   6807 
   6808 fi
   6809 
   6810 
   6811 
   6812 fi
   6813 
   6814 done
   6815 
   6816 
   6817   for ac_func in explicit_bzero
   6818 do :
   6819   ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
   6820 if test "x$ac_cv_func_explicit_bzero" = xyes
   6821 then :
   6822   printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
   6823 
   6824 printf "%s\n" "#define HAVE_EXPLICIT_BZERO /**/" >>confdefs.h
   6825 
   6826 fi
   6827 
   6828 done
   6829 
   6830   for ac_func in syslog
   6831 do :
   6832   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
   6833 if test "x$ac_cv_func_syslog" = xyes
   6834 then :
   6835   printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
   6836 
   6837 printf "%s\n" "#define HAVE_SYSLOG /**/" >>confdefs.h
   6838 
   6839 fi
   6840 
   6841 done
   6842 
   6843   for ac_func in strnlen
   6844 do :
   6845   ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
   6846 if test "x$ac_cv_func_strnlen" = xyes
   6847 then :
   6848   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
   6849 
   6850 printf "%s\n" "#define HAVE_STRNLEN /**/" >>confdefs.h
   6851 
   6852 fi
   6853 
   6854 done
   6855 
   6856 
   6857 
   6858 
   6859 # Check whether --with-nick-history was given.
   6860 if test ${with_nick_history+y}
   6861 then :
   6862   withval=$with_nick_history;
   6863 printf "%s\n" "#define NICKNAMEHISTORYLENGTH $withval" >>confdefs.h
   6864 
   6865 else $as_nop
   6866 
   6867 printf "%s\n" "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
   6868 
   6869 fi
   6870 
   6871 
   6872 # Check whether --with-permissions was given.
   6873 if test ${with_permissions+y}
   6874 then :
   6875   withval=$with_permissions;
   6876 printf "%s\n" "#define DEFAULT_PERMISSIONS 0$withval" >>confdefs.h
   6877 
   6878 else $as_nop
   6879 
   6880 printf "%s\n" "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
   6881 
   6882 fi
   6883 
   6884 
   6885 
   6886 # Check whether --with-bindir was given.
   6887 if test ${with_bindir+y}
   6888 then :
   6889   withval=$with_bindir;
   6890 printf "%s\n" "#define BINDIR \"$withval\"" >>confdefs.h
   6891 
   6892 		BINDIR="$withval"
   6893 else $as_nop
   6894 
   6895 printf "%s\n" "#define BINDIR \"$HOME/unrealircd/bin\"" >>confdefs.h
   6896 
   6897 		BINDIR="$HOME/unrealircd/bin"
   6898 fi
   6899 
   6900 
   6901 
   6902 # Check whether --with-scriptdir was given.
   6903 if test ${with_scriptdir+y}
   6904 then :
   6905   withval=$with_scriptdir;
   6906 printf "%s\n" "#define SCRIPTDIR \"$withval\"" >>confdefs.h
   6907 
   6908 		SCRIPTDIR="$withval"
   6909 else $as_nop
   6910 
   6911 printf "%s\n" "#define SCRIPTDIR \"$HOME/unrealircd\"" >>confdefs.h
   6912 
   6913 		SCRIPTDIR="$HOME/unrealircd"
   6914 fi
   6915 
   6916 
   6917 
   6918 # Check whether --with-confdir was given.
   6919 if test ${with_confdir+y}
   6920 then :
   6921   withval=$with_confdir;
   6922 printf "%s\n" "#define CONFDIR \"$withval\"" >>confdefs.h
   6923 
   6924 		CONFDIR="$withval"
   6925 else $as_nop
   6926 
   6927 printf "%s\n" "#define CONFDIR \"$HOME/unrealircd/conf\"" >>confdefs.h
   6928 
   6929 		CONFDIR="$HOME/unrealircd/conf"
   6930 fi
   6931 
   6932 
   6933 
   6934 # Check whether --with-builddir was given.
   6935 if test ${with_builddir+y}
   6936 then :
   6937   withval=$with_builddir;
   6938 printf "%s\n" "#define BUILDDIR \"$withval\"" >>confdefs.h
   6939 
   6940 		BUILDDIR="$withval"
   6941 else $as_nop
   6942 
   6943 printf "%s\n" "#define BUILDDIR \"$BUILDDIR_NOW\"" >>confdefs.h
   6944 
   6945 		BUILDDIR="$BUILDDIR_NOW"
   6946 fi
   6947 
   6948 
   6949 
   6950 # Check whether --with-modulesdir was given.
   6951 if test ${with_modulesdir+y}
   6952 then :
   6953   withval=$with_modulesdir;
   6954 printf "%s\n" "#define MODULESDIR \"$withval\"" >>confdefs.h
   6955 
   6956 		MODULESDIR="$withval"
   6957 else $as_nop
   6958 
   6959 printf "%s\n" "#define MODULESDIR \"$HOME/unrealircd/modules\"" >>confdefs.h
   6960 
   6961 		MODULESDIR="$HOME/unrealircd/modules"
   6962 fi
   6963 
   6964 
   6965 
   6966 # Check whether --with-logdir was given.
   6967 if test ${with_logdir+y}
   6968 then :
   6969   withval=$with_logdir;
   6970 printf "%s\n" "#define LOGDIR \"$withval\"" >>confdefs.h
   6971 
   6972 		LOGDIR="$withval"
   6973 else $as_nop
   6974 
   6975 printf "%s\n" "#define LOGDIR \"$HOME/unrealircd/logs\"" >>confdefs.h
   6976 
   6977 		LOGDIR="$HOME/unrealircd/logs"
   6978 fi
   6979 
   6980 
   6981 
   6982 # Check whether --with-cachedir was given.
   6983 if test ${with_cachedir+y}
   6984 then :
   6985   withval=$with_cachedir;
   6986 printf "%s\n" "#define CACHEDIR \"$withval\"" >>confdefs.h
   6987 
   6988 		CACHEDIR="$withval"
   6989 else $as_nop
   6990 
   6991 printf "%s\n" "#define CACHEDIR \"$HOME/unrealircd/cache\"" >>confdefs.h
   6992 
   6993 		CACHEDIR="$HOME/unrealircd/cache"
   6994 fi
   6995 
   6996 
   6997 
   6998 # Check whether --with-tmpdir was given.
   6999 if test ${with_tmpdir+y}
   7000 then :
   7001   withval=$with_tmpdir;
   7002 printf "%s\n" "#define TMPDIR \"$withval\"" >>confdefs.h
   7003 
   7004 		TMPDIR="$withval"
   7005 else $as_nop
   7006 
   7007 printf "%s\n" "#define TMPDIR \"$HOME/unrealircd/tmp\"" >>confdefs.h
   7008 
   7009 		TMPDIR="$HOME/unrealircd/tmp"
   7010 fi
   7011 
   7012 
   7013 
   7014 # Check whether --with-datadir was given.
   7015 if test ${with_datadir+y}
   7016 then :
   7017   withval=$with_datadir;
   7018 printf "%s\n" "#define PERMDATADIR \"$withval\"" >>confdefs.h
   7019 
   7020 		PERMDATADIR="$withval"
   7021 else $as_nop
   7022 
   7023 printf "%s\n" "#define DATADIR \"$HOME/unrealircd/data\"" >>confdefs.h
   7024 
   7025 		PERMDATADIR="$HOME/unrealircd/data"
   7026 fi
   7027 
   7028 
   7029 
   7030 # Check whether --with-docdir was given.
   7031 if test ${with_docdir+y}
   7032 then :
   7033   withval=$with_docdir;
   7034 printf "%s\n" "#define DOCDIR \"$withval\"" >>confdefs.h
   7035 
   7036 		DOCDIR="$withval"
   7037 else $as_nop
   7038 
   7039 printf "%s\n" "#define DOCDIR \"$HOME/unrealircd/doc\"" >>confdefs.h
   7040 
   7041 		DOCDIR="$HOME/unrealircd/doc"
   7042 fi
   7043 
   7044 
   7045 
   7046 # Check whether --with-pidfile was given.
   7047 if test ${with_pidfile+y}
   7048 then :
   7049   withval=$with_pidfile;
   7050 printf "%s\n" "#define PIDFILE \"$withval\"" >>confdefs.h
   7051 
   7052 		PIDFILE="$withval"
   7053 else $as_nop
   7054 
   7055 printf "%s\n" "#define PIDFILE \"$HOME/unrealircd/data/unrealircd.pid\"" >>confdefs.h
   7056 
   7057 		PIDFILE="$HOME/unrealircd/data/unrealircd.pid"
   7058 fi
   7059 
   7060 
   7061 
   7062 # Check whether --with-controlfile was given.
   7063 if test ${with_controlfile+y}
   7064 then :
   7065   withval=$with_controlfile;
   7066 printf "%s\n" "#define CONTROLFILE \"$withval\"" >>confdefs.h
   7067 
   7068 		CONTROLFILE="$withval"
   7069 else $as_nop
   7070 
   7071 printf "%s\n" "#define CONTROLFILE \"$HOME/unrealircd/data/unrealircd.ctl\"" >>confdefs.h
   7072 
   7073 		CONTROLFILE="$HOME/unrealircd/data/unrealircd.ctl"
   7074 fi
   7075 
   7076 
   7077 
   7078 # Check whether --with-privatelibdir was given.
   7079 if test ${with_privatelibdir+y}
   7080 then :
   7081   withval=$with_privatelibdir;
   7082 else $as_nop
   7083   with_privatelibdir="yes"
   7084 fi
   7085 
   7086 if test "x$with_privatelibdir" = "xno"
   7087 then :
   7088   PRIVATELIBDIR=
   7089 elif test "x$with_privatelibdir" = "xyes"
   7090 then :
   7091   PRIVATELIBDIR="$HOME/unrealircd/lib"
   7092 else $as_nop
   7093   PRIVATELIBDIR="$with_privatelibdir"
   7094 fi
   7095 if test "x$PRIVATELIBDIR" = "x"
   7096 then :
   7097   LDFLAGS_PRIVATELIBS=""
   7098 else $as_nop
   7099 
   7100 printf "%s\n" "#define PRIVATELIBDIR \"$PRIVATELIBDIR\"" >>confdefs.h
   7101 
   7102 		LDFLAGS_PRIVATELIBS="-Wl,-rpath,$PRIVATELIBDIR"
   7103 		LDFLAGS="$LDFLAGS $LDFLAGS_PRIVATELIBS"
   7104 		export LDFLAGS
   7105 fi
   7106 
   7107 
   7108 
   7109 
   7110 
   7111 
   7112 
   7113 
   7114 
   7115 
   7116 
   7117 
   7118 
   7119 
   7120 
   7121 
   7122 # Check whether --with-maxconnections was given.
   7123 if test ${with_maxconnections+y}
   7124 then :
   7125   withval=$with_maxconnections; ac_fd=$withval
   7126 else $as_nop
   7127   ac_fd=0
   7128 fi
   7129 
   7130 
   7131 printf "%s\n" "#define MAXCONNECTIONS_REQUEST $ac_fd" >>confdefs.h
   7132 
   7133 
   7134 
   7135 # Check whether --with-no-operoverride was given.
   7136 if test ${with_no_operoverride+y}
   7137 then :
   7138   withval=$with_no_operoverride; if test $withval = "yes"
   7139 then :
   7140 
   7141 printf "%s\n" "#define NO_OPEROVERRIDE /**/" >>confdefs.h
   7142 
   7143 fi
   7144 fi
   7145 
   7146 
   7147 # Check whether --with-operoverride-verify was given.
   7148 if test ${with_operoverride_verify+y}
   7149 then :
   7150   withval=$with_operoverride_verify; if test $withval = "yes"
   7151 then :
   7152 
   7153 printf "%s\n" "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
   7154 
   7155 fi
   7156 fi
   7157 
   7158 
   7159 # Check whether --with-system-pcre2 was given.
   7160 if test ${with_system_pcre2+y}
   7161 then :
   7162   withval=$with_system_pcre2;
   7163 else $as_nop
   7164   with_system_pcre2=yes
   7165 fi
   7166 
   7167 
   7168 # Check whether --with-system-argon2 was given.
   7169 if test ${with_system_argon2+y}
   7170 then :
   7171   withval=$with_system_argon2;
   7172 else $as_nop
   7173   with_system_argon2=yes
   7174 fi
   7175 
   7176 
   7177 # Check whether --with-system-sodium was given.
   7178 if test ${with_system_sodium+y}
   7179 then :
   7180   withval=$with_system_sodium;
   7181 else $as_nop
   7182   with_system_sodium=yes
   7183 fi
   7184 
   7185 
   7186 # Check whether --with-system-cares was given.
   7187 if test ${with_system_cares+y}
   7188 then :
   7189   withval=$with_system_cares;
   7190 else $as_nop
   7191   with_system_cares=yes
   7192 fi
   7193 
   7194 
   7195 # Check whether --with-system-jansson was given.
   7196 if test ${with_system_jansson+y}
   7197 then :
   7198   withval=$with_system_jansson;
   7199 else $as_nop
   7200   with_system_jansson=yes
   7201 fi
   7202 
   7203 
   7204 # Check whether --enable-ssl was given.
   7205 if test ${enable_ssl+y}
   7206 then :
   7207   enableval=$enable_ssl;
   7208 else $as_nop
   7209   enable_ssl=no
   7210 fi
   7211 
   7212 if test $enable_ssl != "no"
   7213 then :
   7214 
   7215 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
   7216 printf %s "checking for OpenSSL... " >&6; }
   7217 	for dir in $enable_ssl /usr/local/opt/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr; do
   7218 		ssldir="$dir"
   7219 		if test -f "$dir/include/openssl/ssl.h"; then
   7220 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
   7221 printf "%s\n" "found in $ssldir/include/openssl" >&6; }
   7222 			found_ssl="yes";
   7223 			if test ! "$ssldir" = "/usr" ; then
   7224 				CFLAGS="$CFLAGS -I$ssldir/include";
   7225 			fi
   7226 			break
   7227 		fi
   7228 		if test -f "$dir/include/ssl.h"; then
   7229 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
   7230 printf "%s\n" "found in $ssldir/include" >&6; }
   7231 			found_ssl="yes";
   7232 			if test ! "$ssldir" = "/usr" ; then
   7233 				CFLAGS="$CFLAGS -I$ssldir/include";
   7234 			fi
   7235 			break
   7236 		fi
   7237 	done
   7238 	if test x_$found_ssl != x_yes; then
   7239 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   7240 printf "%s\n" "not found" >&6; }
   7241 		echo ""
   7242 		echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
   7243 		echo "The following packages are required:"
   7244 		echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
   7245 		echo "2) The binary package is usually called 'openssl'."
   7246 		echo "NOTE: you or your system administrator needs to install the library AND the binary package."
   7247 		echo "After doing so, simply re-run ./Config"
   7248 		exit 1
   7249 	else
   7250 		CRYPTOLIB="-lssl -lcrypto";
   7251 		if test ! "$ssldir" = "/usr" ; then
   7252 			if test -d "$ssldir/lib64" ; then
   7253 				LDFLAGS="$LDFLAGS -L$ssldir/lib64";
   7254 			else
   7255 				LDFLAGS="$LDFLAGS -L$ssldir/lib";
   7256 			fi
   7257 						if test -f "$ssldir/bin/openssl"; then
   7258 			    OPENSSLPATH="$ssldir/bin/openssl";
   7259 			fi
   7260 		fi
   7261 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
   7262 printf %s "checking OpenSSL linking with -ldl... " >&6; }
   7263 		SAVE_LIBS="$LIBS"
   7264 		LIBS="$LIBS $CRYPTOLIB -ldl"
   7265 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7266 /* end confdefs.h.  */
   7267 #include <openssl/err.h>
   7268 int
   7269 main (void)
   7270 {
   7271 ERR_clear_error();
   7272   ;
   7273   return 0;
   7274 }
   7275 _ACEOF
   7276 if ac_fn_c_try_link "$LINENO"
   7277 then :
   7278 
   7279 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7280 printf "%s\n" "yes" >&6; }
   7281 			CRYPTOLIB="$CRYPTOLIB -ldl"
   7282 
   7283 else $as_nop
   7284 
   7285 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7286 printf "%s\n" "no" >&6; }
   7287 
   7288 						{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
   7289 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
   7290 			LIBS="$SAVE_LIBS $CRYPTOLIB -ldl -lpthread"
   7291 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7292 /* end confdefs.h.  */
   7293 #include <openssl/err.h>
   7294 int
   7295 main (void)
   7296 {
   7297 ERR_clear_error();
   7298   ;
   7299   return 0;
   7300 }
   7301 _ACEOF
   7302 if ac_fn_c_try_link "$LINENO"
   7303 then :
   7304 
   7305 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7306 printf "%s\n" "yes" >&6; }
   7307 				CRYPTOLIB="$CRYPTOLIB -ldl -lpthread"
   7308 
   7309 else $as_nop
   7310 
   7311 				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7312 printf "%s\n" "no" >&6; }
   7313 
   7314 fi
   7315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7316     conftest$ac_exeext conftest.$ac_ext
   7317 
   7318 fi
   7319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7320     conftest$ac_exeext conftest.$ac_ext
   7321 		LIBS="$SAVE_LIBS"
   7322 	fi
   7323 
   7324 fi
   7325 
   7326 
   7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
   7328 printf %s "checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
   7329 ac_ext=c
   7330 ac_cpp='$CPP $CPPFLAGS'
   7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7334 
   7335 SAVE_LIBS="$LIBS"
   7336 LIBS="$LIBS $CRYPTOLIB"
   7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7338 /* end confdefs.h.  */
   7339 #include <openssl/ssl.h>
   7340 int
   7341 main (void)
   7342 {
   7343 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
   7344   ;
   7345   return 0;
   7346 }
   7347 _ACEOF
   7348 if ac_fn_c_try_link "$LINENO"
   7349 then :
   7350   has_function=1
   7351 else $as_nop
   7352   has_function=0
   7353 fi
   7354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7355     conftest$ac_exeext conftest.$ac_ext
   7356 LIBS="$SAVE_LIBS"
   7357 ac_ext=c
   7358 ac_cpp='$CPP $CPPFLAGS'
   7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7362 
   7363 if test $has_function = 1; then
   7364 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7365 printf "%s\n" "yes" >&6; }
   7366 
   7367 printf "%s\n" "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
   7368 
   7369 else
   7370 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7371 printf "%s\n" "no" >&6; }
   7372 fi
   7373 
   7374 
   7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_min_proto_version in SSL library" >&5
   7376 printf %s "checking for SSL_CTX_set_min_proto_version in SSL library... " >&6; }
   7377 ac_ext=c
   7378 ac_cpp='$CPP $CPPFLAGS'
   7379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7382 
   7383 SAVE_LIBS="$LIBS"
   7384 LIBS="$LIBS $CRYPTOLIB"
   7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7386 /* end confdefs.h.  */
   7387 #include <openssl/ssl.h>
   7388 int
   7389 main (void)
   7390 {
   7391 SSL_CTX *ctx = NULL; SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
   7392   ;
   7393   return 0;
   7394 }
   7395 _ACEOF
   7396 if ac_fn_c_try_link "$LINENO"
   7397 then :
   7398   has_function=1
   7399 else $as_nop
   7400   has_function=0
   7401 fi
   7402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7403     conftest$ac_exeext conftest.$ac_ext
   7404 LIBS="$SAVE_LIBS"
   7405 ac_ext=c
   7406 ac_cpp='$CPP $CPPFLAGS'
   7407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7410 
   7411 if test $has_function = 1; then
   7412 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7413 printf "%s\n" "yes" >&6; }
   7414 
   7415 printf "%s\n" "#define HAS_SSL_CTX_SET_MIN_PROTO_VERSION /**/" >>confdefs.h
   7416 
   7417 else
   7418 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7419 printf "%s\n" "no" >&6; }
   7420 fi
   7421 
   7422 
   7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_security_level in SSL library" >&5
   7424 printf %s "checking for SSL_CTX_set_security_level in SSL library... " >&6; }
   7425 ac_ext=c
   7426 ac_cpp='$CPP $CPPFLAGS'
   7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7430 
   7431 SAVE_LIBS="$LIBS"
   7432 LIBS="$LIBS $CRYPTOLIB"
   7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7434 /* end confdefs.h.  */
   7435 #include <openssl/ssl.h>
   7436 int
   7437 main (void)
   7438 {
   7439 SSL_CTX *ctx = NULL; SSL_CTX_set_security_level(ctx, 1);
   7440   ;
   7441   return 0;
   7442 }
   7443 _ACEOF
   7444 if ac_fn_c_try_link "$LINENO"
   7445 then :
   7446   has_function=1
   7447 else $as_nop
   7448   has_function=0
   7449 fi
   7450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7451     conftest$ac_exeext conftest.$ac_ext
   7452 LIBS="$SAVE_LIBS"
   7453 ac_ext=c
   7454 ac_cpp='$CPP $CPPFLAGS'
   7455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7458 
   7459 if test $has_function = 1; then
   7460 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7461 printf "%s\n" "yes" >&6; }
   7462 
   7463 printf "%s\n" "#define HAS_SSL_CTX_SET_SECURITY_LEVEL /**/" >>confdefs.h
   7464 
   7465 else
   7466 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7467 printf "%s\n" "no" >&6; }
   7468 fi
   7469 
   7470 
   7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ASN1_TIME_diff in SSL library" >&5
   7472 printf %s "checking for ASN1_TIME_diff in SSL library... " >&6; }
   7473 ac_ext=c
   7474 ac_cpp='$CPP $CPPFLAGS'
   7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7478 
   7479 SAVE_LIBS="$LIBS"
   7480 LIBS="$LIBS $CRYPTOLIB"
   7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7482 /* end confdefs.h.  */
   7483 #include <openssl/ssl.h>
   7484 int
   7485 main (void)
   7486 {
   7487 int one, two; ASN1_TIME_diff(&one, &two, NULL, NULL);
   7488   ;
   7489   return 0;
   7490 }
   7491 _ACEOF
   7492 if ac_fn_c_try_link "$LINENO"
   7493 then :
   7494   has_function=1
   7495 else $as_nop
   7496   has_function=0
   7497 fi
   7498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7499     conftest$ac_exeext conftest.$ac_ext
   7500 LIBS="$SAVE_LIBS"
   7501 ac_ext=c
   7502 ac_cpp='$CPP $CPPFLAGS'
   7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7506 
   7507 if test $has_function = 1; then
   7508 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7509 printf "%s\n" "yes" >&6; }
   7510 
   7511 printf "%s\n" "#define HAS_ASN1_TIME_diff /**/" >>confdefs.h
   7512 
   7513 else
   7514 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7515 printf "%s\n" "no" >&6; }
   7516 fi
   7517 
   7518 
   7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_get0_notAfter in SSL library" >&5
   7520 printf %s "checking for X509_get0_notAfter in SSL library... " >&6; }
   7521 ac_ext=c
   7522 ac_cpp='$CPP $CPPFLAGS'
   7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7526 
   7527 SAVE_LIBS="$LIBS"
   7528 LIBS="$LIBS $CRYPTOLIB"
   7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7530 /* end confdefs.h.  */
   7531 #include <openssl/ssl.h>
   7532 int
   7533 main (void)
   7534 {
   7535 X509_get0_notAfter(NULL);
   7536   ;
   7537   return 0;
   7538 }
   7539 _ACEOF
   7540 if ac_fn_c_try_link "$LINENO"
   7541 then :
   7542   has_function=1
   7543 else $as_nop
   7544   has_function=0
   7545 fi
   7546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7547     conftest$ac_exeext conftest.$ac_ext
   7548 LIBS="$SAVE_LIBS"
   7549 ac_ext=c
   7550 ac_cpp='$CPP $CPPFLAGS'
   7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7554 
   7555 if test $has_function = 1; then
   7556 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7557 printf "%s\n" "yes" >&6; }
   7558 
   7559 printf "%s\n" "#define HAS_X509_get0_notAfter /**/" >>confdefs.h
   7560 
   7561 else
   7562 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7563 printf "%s\n" "no" >&6; }
   7564 fi
   7565 
   7566 
   7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_check_host in SSL library" >&5
   7568 printf %s "checking for X509_check_host in SSL library... " >&6; }
   7569 ac_ext=c
   7570 ac_cpp='$CPP $CPPFLAGS'
   7571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7574 
   7575 SAVE_LIBS="$LIBS"
   7576 LIBS="$LIBS $CRYPTOLIB"
   7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7578 /* end confdefs.h.  */
   7579 #include <openssl/x509v3.h>
   7580 int
   7581 main (void)
   7582 {
   7583 X509_check_host(NULL, NULL, 0, 0, NULL);
   7584   ;
   7585   return 0;
   7586 }
   7587 _ACEOF
   7588 if ac_fn_c_try_link "$LINENO"
   7589 then :
   7590   has_function=1
   7591 else $as_nop
   7592   has_function=0
   7593 fi
   7594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7595     conftest$ac_exeext conftest.$ac_ext
   7596 LIBS="$SAVE_LIBS"
   7597 ac_ext=c
   7598 ac_cpp='$CPP $CPPFLAGS'
   7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7602 
   7603 if test $has_function = 1; then
   7604 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7605 printf "%s\n" "yes" >&6; }
   7606 
   7607 printf "%s\n" "#define HAS_X509_check_host /**/" >>confdefs.h
   7608 
   7609 else
   7610 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7611 printf "%s\n" "no" >&6; }
   7612 fi
   7613 
   7614 # Check whether --enable-dynamic-linking was given.
   7615 if test ${enable_dynamic_linking+y}
   7616 then :
   7617   enableval=$enable_dynamic_linking; enable_dynamic_linking=$enableval
   7618 else $as_nop
   7619   enable_dynamic_linking="yes"
   7620 fi
   7621 
   7622 if test $enable_dynamic_linking = "yes"
   7623 then :
   7624 
   7625 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   7626 if test "x$ac_cv_func_dlopen" = xyes
   7627 then :
   7628 
   7629 else $as_nop
   7630   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   7631 printf %s "checking for dlopen in -ldl... " >&6; }
   7632 if test ${ac_cv_lib_dl_dlopen+y}
   7633 then :
   7634   printf %s "(cached) " >&6
   7635 else $as_nop
   7636   ac_check_lib_save_LIBS=$LIBS
   7637 LIBS="-ldl  $LIBS"
   7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7639 /* end confdefs.h.  */
   7640 
   7641 /* Override any GCC internal prototype to avoid an error.
   7642    Use char because int might match the return type of a GCC
   7643    builtin and then its argument prototype would still apply.  */
   7644 char dlopen ();
   7645 int
   7646 main (void)
   7647 {
   7648 return dlopen ();
   7649   ;
   7650   return 0;
   7651 }
   7652 _ACEOF
   7653 if ac_fn_c_try_link "$LINENO"
   7654 then :
   7655   ac_cv_lib_dl_dlopen=yes
   7656 else $as_nop
   7657   ac_cv_lib_dl_dlopen=no
   7658 fi
   7659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7660     conftest$ac_exeext conftest.$ac_ext
   7661 LIBS=$ac_check_lib_save_LIBS
   7662 fi
   7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   7664 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   7665 if test "x$ac_cv_lib_dl_dlopen" = xyes
   7666 then :
   7667   IRCDLIBS="$IRCDLIBS -ldl"
   7668 else $as_nop
   7669 
   7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
   7671 printf "%s\n" "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
   7672 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
   7673 
   7674 
   7675 fi
   7676 
   7677 fi
   7678 
   7679 
   7680 hold_cflags=$CFLAGS
   7681 DYNAMIC_LDFLAGS=""
   7682 CFLAGS="$CFLAGS -Wl,-export-dynamic"
   7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
   7684 printf %s "checking if we need the -export-dynamic flag... " >&6; }
   7685 if test ${ac_cv_export_dynamic+y}
   7686 then :
   7687   printf %s "(cached) " >&6
   7688 else $as_nop
   7689 
   7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7691 /* end confdefs.h.  */
   7692 
   7693 int
   7694 main (void)
   7695 {
   7696 int i;
   7697   ;
   7698   return 0;
   7699 }
   7700 _ACEOF
   7701 if ac_fn_c_try_link "$LINENO"
   7702 then :
   7703   ac_cv_export_dynamic=yes
   7704 else $as_nop
   7705   ac_cv_export_dynamic=no
   7706 fi
   7707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7708     conftest$ac_exeext conftest.$ac_ext
   7709 fi
   7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
   7711 printf "%s\n" "$ac_cv_export_dynamic" >&6; }
   7712 CFLAGS=$hold_cflags
   7713 if test "$ac_cv_export_dynamic" = "yes"; then
   7714 	DYNAMIC_LDFLAGS="-Wl,-export-dynamic"
   7715 fi
   7716 
   7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
   7718 printf %s "checking for compiler option to produce PIC... " >&6; }
   7719 if test ${ac_cv_pic+y}
   7720 then :
   7721   printf %s "(cached) " >&6
   7722 else $as_nop
   7723 
   7724 if test "$ac_cv_c_compiler_gnu" = "yes"; then
   7725 	ac_cv_pic="-fPIC -DPIC -shared"
   7726 	case `uname -s` in
   7727 		Darwin*)
   7728 		ac_cv_pic="-std=gnu89 -bundle -flat_namespace -undefined suppress"
   7729 		;;
   7730 		HP-UX*)
   7731 		ac_cv_pic="-fPIC"
   7732 		;;
   7733 	esac
   7734 else
   7735 case `uname -s` in
   7736 	SunOS*)
   7737 	ac_cv_pic="-KPIC -DPIC -G"
   7738 	;;
   7739 esac
   7740 fi
   7741 
   7742 fi
   7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
   7744 printf "%s\n" "$ac_cv_pic" >&6; }
   7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
   7746 printf %s "checking if your system prepends an underscore on symbols... " >&6; }
   7747 if test ${ac_cv_underscore+y}
   7748 then :
   7749   printf %s "(cached) " >&6
   7750 else $as_nop
   7751 
   7752 cat >uscore.c << __EOF__
   7753 int main(void) {
   7754 	return 0;
   7755 }
   7756 __EOF__
   7757 $CC -o uscore $CFLAGS uscore.c 1>&5
   7758 if test -z "`strings -a uscore |grep '^_main$'`"; then
   7759 ac_cv_underscore=no
   7760 else
   7761 ac_cv_underscore=yes
   7762 fi
   7763 rm -f uscore uscore.c
   7764 
   7765 fi
   7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
   7767 printf "%s\n" "$ac_cv_underscore" >&6; }
   7768 if test "$ac_cv_underscore" = "yes"; then
   7769 
   7770 printf "%s\n" "#define UNDERSCORE /**/" >>confdefs.h
   7771 
   7772 fi
   7773 
   7774 MODULEFLAGS="$ac_cv_pic $DYNAMIC_LDFLAGS"
   7775 
   7776 else $as_nop
   7777 
   7778 printf "%s\n" "#define STATIC_LINKING /**/" >>confdefs.h
   7779 
   7780 fi
   7781 
   7782 # Check whether --enable-werror was given.
   7783 if test ${enable_werror+y}
   7784 then :
   7785   enableval=$enable_werror; ac_cv_werror="$enableval"
   7786 else $as_nop
   7787   ac_cv_werror="no"
   7788 fi
   7789 
   7790 
   7791 # Check whether --enable-asan was given.
   7792 if test ${enable_asan+y}
   7793 then :
   7794   enableval=$enable_asan; ac_cv_asan="$enableval"
   7795 else $as_nop
   7796   ac_cv_asan="no"
   7797 fi
   7798 
   7799 
   7800 
   7801   for ac_func in poll
   7802 do :
   7803   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
   7804 if test "x$ac_cv_func_poll" = xyes
   7805 then :
   7806   printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
   7807 
   7808 printf "%s\n" "#define HAVE_POLL /**/" >>confdefs.h
   7809 
   7810 fi
   7811 
   7812 done
   7813 
   7814   for ac_func in epoll_create epoll_ctl epoll_wait
   7815 do :
   7816   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
   7817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7818 if eval test \"x\$"$as_ac_var"\" = x"yes"
   7819 then :
   7820   cat >>confdefs.h <<_ACEOF
   7821 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
   7822 _ACEOF
   7823 
   7824 printf "%s\n" "#define HAVE_EPOLL /**/" >>confdefs.h
   7825 
   7826 fi
   7827 
   7828 done
   7829 
   7830   for ac_func in kqueue kevent
   7831 do :
   7832   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
   7833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7834 if eval test \"x\$"$as_ac_var"\" = x"yes"
   7835 then :
   7836   cat >>confdefs.h <<_ACEOF
   7837 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
   7838 _ACEOF
   7839 
   7840 printf "%s\n" "#define HAVE_KQUEUE /**/" >>confdefs.h
   7841 
   7842 fi
   7843 
   7844 done
   7845 
   7846 export PATH_SEPARATOR
   7847 
   7848 has_system_pcre2="no"
   7849 
   7850 
   7851 
   7852 
   7853 
   7854 
   7855 
   7856 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   7857 	if test -n "$ac_tool_prefix"; then
   7858   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   7859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7861 printf %s "checking for $ac_word... " >&6; }
   7862 if test ${ac_cv_path_PKG_CONFIG+y}
   7863 then :
   7864   printf %s "(cached) " >&6
   7865 else $as_nop
   7866   case $PKG_CONFIG in
   7867   [\\/]* | ?:[\\/]*)
   7868   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   7869   ;;
   7870   *)
   7871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7872 for as_dir in $PATH
   7873 do
   7874   IFS=$as_save_IFS
   7875   case $as_dir in #(((
   7876     '') as_dir=./ ;;
   7877     */) ;;
   7878     *) as_dir=$as_dir/ ;;
   7879   esac
   7880     for ac_exec_ext in '' $ac_executable_extensions; do
   7881   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7882     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   7883     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7884     break 2
   7885   fi
   7886 done
   7887   done
   7888 IFS=$as_save_IFS
   7889 
   7890   ;;
   7891 esac
   7892 fi
   7893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   7894 if test -n "$PKG_CONFIG"; then
   7895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   7896 printf "%s\n" "$PKG_CONFIG" >&6; }
   7897 else
   7898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7899 printf "%s\n" "no" >&6; }
   7900 fi
   7901 
   7902 
   7903 fi
   7904 if test -z "$ac_cv_path_PKG_CONFIG"; then
   7905   ac_pt_PKG_CONFIG=$PKG_CONFIG
   7906   # Extract the first word of "pkg-config", so it can be a program name with args.
   7907 set dummy pkg-config; ac_word=$2
   7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7909 printf %s "checking for $ac_word... " >&6; }
   7910 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   7911 then :
   7912   printf %s "(cached) " >&6
   7913 else $as_nop
   7914   case $ac_pt_PKG_CONFIG in
   7915   [\\/]* | ?:[\\/]*)
   7916   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   7917   ;;
   7918   *)
   7919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7920 for as_dir in $PATH
   7921 do
   7922   IFS=$as_save_IFS
   7923   case $as_dir in #(((
   7924     '') as_dir=./ ;;
   7925     */) ;;
   7926     *) as_dir=$as_dir/ ;;
   7927   esac
   7928     for ac_exec_ext in '' $ac_executable_extensions; do
   7929   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7930     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   7931     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7932     break 2
   7933   fi
   7934 done
   7935   done
   7936 IFS=$as_save_IFS
   7937 
   7938   ;;
   7939 esac
   7940 fi
   7941 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   7942 if test -n "$ac_pt_PKG_CONFIG"; then
   7943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   7944 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   7945 else
   7946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7947 printf "%s\n" "no" >&6; }
   7948 fi
   7949 
   7950   if test "x$ac_pt_PKG_CONFIG" = x; then
   7951     PKG_CONFIG=""
   7952   else
   7953     case $cross_compiling:$ac_tool_warned in
   7954 yes:)
   7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7957 ac_tool_warned=yes ;;
   7958 esac
   7959     PKG_CONFIG=$ac_pt_PKG_CONFIG
   7960   fi
   7961 else
   7962   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   7963 fi
   7964 
   7965 fi
   7966 if test -n "$PKG_CONFIG"; then
   7967 	_pkg_min_version=0.9.0
   7968 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   7969 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   7970 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   7971 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7972 printf "%s\n" "yes" >&6; }
   7973 	else
   7974 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7975 printf "%s\n" "no" >&6; }
   7976 		PKG_CONFIG=""
   7977 	fi
   7978 fi
   7979 if test "x$with_system_pcre2" = "xyes"
   7980 then :
   7981 
   7982 
   7983 pkg_failed=no
   7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
   7985 printf %s "checking for PCRE2... " >&6; }
   7986 
   7987 if test -n "$PCRE2_CFLAGS"; then
   7988     pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
   7989  elif test -n "$PKG_CONFIG"; then
   7990     if test -n "$PKG_CONFIG" && \
   7991     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.36\""; } >&5
   7992   ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.36") 2>&5
   7993   ac_status=$?
   7994   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7995   test $ac_status = 0; }; then
   7996   pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.36" 2>/dev/null`
   7997 		      test "x$?" != "x0" && pkg_failed=yes
   7998 else
   7999   pkg_failed=yes
   8000 fi
   8001  else
   8002     pkg_failed=untried
   8003 fi
   8004 if test -n "$PCRE2_LIBS"; then
   8005     pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
   8006  elif test -n "$PKG_CONFIG"; then
   8007     if test -n "$PKG_CONFIG" && \
   8008     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.36\""; } >&5
   8009   ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.36") 2>&5
   8010   ac_status=$?
   8011   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8012   test $ac_status = 0; }; then
   8013   pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.36" 2>/dev/null`
   8014 		      test "x$?" != "x0" && pkg_failed=yes
   8015 else
   8016   pkg_failed=yes
   8017 fi
   8018  else
   8019     pkg_failed=untried
   8020 fi
   8021 
   8022 
   8023 
   8024 if test $pkg_failed = yes; then
   8025    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8026 printf "%s\n" "no" >&6; }
   8027 
   8028 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8029         _pkg_short_errors_supported=yes
   8030 else
   8031         _pkg_short_errors_supported=no
   8032 fi
   8033         if test $_pkg_short_errors_supported = yes; then
   8034 	        PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.36" 2>&1`
   8035         else
   8036 	        PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.36" 2>&1`
   8037         fi
   8038 	# Put the nasty error message in config.log where it belongs
   8039 	echo "$PCRE2_PKG_ERRORS" >&5
   8040 
   8041 	has_system_pcre2=no
   8042 elif test $pkg_failed = untried; then
   8043      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8044 printf "%s\n" "no" >&6; }
   8045 	has_system_pcre2=no
   8046 else
   8047 	PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
   8048 	PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
   8049         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8050 printf "%s\n" "yes" >&6; }
   8051 	has_system_pcre2=yes
   8052 if test "x$PRIVATELIBDIR" != "x"
   8053 then :
   8054   rm -f "$PRIVATELIBDIR/"libpcre2*
   8055 fi
   8056 fi
   8057 fi
   8058 
   8059 if test "$has_system_pcre2" = "no"
   8060 then :
   8061 
   8062 pcre2_version="10.42"
   8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
   8064 printf "%s\n" "extracting PCRE2 regex library" >&6; }
   8065 cur_dir=`pwd`
   8066 cd extras
   8067 rm -rf pcre2-$pcre2_version pcre2
   8068 if test "x$ac_cv_path_GUNZIP" = "x" ; then
   8069 	tar xfz pcre2.tar.gz
   8070 else
   8071 	cp pcre2.tar.gz pcre2.tar.gz.bak
   8072 	gunzip -f pcre2.tar.gz
   8073 	cp pcre2.tar.gz.bak pcre2.tar.gz
   8074 	tar xf pcre2.tar
   8075 fi
   8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
   8077 printf "%s\n" "configuring PCRE2 regex library" >&6; }
   8078 cd pcre2-$pcre2_version
   8079 ./configure --enable-jit --enable-shared --prefix=$cur_dir/extras/pcre2 --libdir=$PRIVATELIBDIR || exit 1
   8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
   8081 printf "%s\n" "compiling PCRE2 regex library" >&6; }
   8082 $ac_cv_prog_MAKER || exit 1
   8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
   8084 printf "%s\n" "installing PCRE2 regex library" >&6; }
   8085 rm -f "$PRIVATELIBDIR/"libpcre2*
   8086 $ac_cv_prog_MAKER install || exit 1
   8087 PCRE2_CFLAGS="-I$cur_dir/extras/pcre2/include"
   8088 
   8089 PCRE2_LIBS=
   8090 if test -n "$ac_cv_path_PKGCONFIG"
   8091 then :
   8092   PCRE2_LIBS="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
   8093 fi
   8094 if test -z "$PCRE2_LIBS"
   8095 then :
   8096   PCRE2_LIBS="$PRIVATELIBDIR/libpcre2-8.so"
   8097 fi
   8098 
   8099 cd $cur_dir
   8100 
   8101 fi
   8102 
   8103 has_system_argon2="no"
   8104 if test "x$with_system_argon2" = "xyes"
   8105 then :
   8106 
   8107 
   8108 pkg_failed=no
   8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARGON2" >&5
   8110 printf %s "checking for ARGON2... " >&6; }
   8111 
   8112 if test -n "$ARGON2_CFLAGS"; then
   8113     pkg_cv_ARGON2_CFLAGS="$ARGON2_CFLAGS"
   8114  elif test -n "$PKG_CONFIG"; then
   8115     if test -n "$PKG_CONFIG" && \
   8116     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
   8117   ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
   8118   ac_status=$?
   8119   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8120   test $ac_status = 0; }; then
   8121   pkg_cv_ARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2 >= 0~20161029" 2>/dev/null`
   8122 		      test "x$?" != "x0" && pkg_failed=yes
   8123 else
   8124   pkg_failed=yes
   8125 fi
   8126  else
   8127     pkg_failed=untried
   8128 fi
   8129 if test -n "$ARGON2_LIBS"; then
   8130     pkg_cv_ARGON2_LIBS="$ARGON2_LIBS"
   8131  elif test -n "$PKG_CONFIG"; then
   8132     if test -n "$PKG_CONFIG" && \
   8133     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
   8134   ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
   8135   ac_status=$?
   8136   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8137   test $ac_status = 0; }; then
   8138   pkg_cv_ARGON2_LIBS=`$PKG_CONFIG --libs "libargon2 >= 0~20161029" 2>/dev/null`
   8139 		      test "x$?" != "x0" && pkg_failed=yes
   8140 else
   8141   pkg_failed=yes
   8142 fi
   8143  else
   8144     pkg_failed=untried
   8145 fi
   8146 
   8147 
   8148 
   8149 if test $pkg_failed = yes; then
   8150    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8151 printf "%s\n" "no" >&6; }
   8152 
   8153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8154         _pkg_short_errors_supported=yes
   8155 else
   8156         _pkg_short_errors_supported=no
   8157 fi
   8158         if test $_pkg_short_errors_supported = yes; then
   8159 	        ARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
   8160         else
   8161 	        ARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
   8162         fi
   8163 	# Put the nasty error message in config.log where it belongs
   8164 	echo "$ARGON2_PKG_ERRORS" >&5
   8165 
   8166 	has_system_argon2=no
   8167 elif test $pkg_failed = untried; then
   8168      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8169 printf "%s\n" "no" >&6; }
   8170 	has_system_argon2=no
   8171 else
   8172 	ARGON2_CFLAGS=$pkg_cv_ARGON2_CFLAGS
   8173 	ARGON2_LIBS=$pkg_cv_ARGON2_LIBS
   8174         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8175 printf "%s\n" "yes" >&6; }
   8176 	has_system_argon2=yes
   8177 if test "x$PRIVATELIBDIR" != "x"
   8178 then :
   8179   rm -f "$PRIVATELIBDIR/"libargon2*
   8180 fi
   8181 fi
   8182 fi
   8183 
   8184 if test "$has_system_argon2" = "no"
   8185 then :
   8186 
   8187 argon2_version="20190702"
   8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting Argon2 library" >&5
   8189 printf "%s\n" "extracting Argon2 library" >&6; }
   8190 cur_dir=`pwd`
   8191 cd extras
   8192 rm -rf argon2-$argon2_version argon2
   8193 if test "x$ac_cv_path_GUNZIP" = "x" ; then
   8194 	tar xfz argon2.tar.gz
   8195 else
   8196 	cp argon2.tar.gz argon2.tar.gz.bak
   8197 	gunzip -f argon2.tar.gz
   8198 	cp argon2.tar.gz.bak argon2.tar.gz
   8199 	tar xf argon2.tar
   8200 fi
   8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling Argon2 library" >&5
   8202 printf "%s\n" "compiling Argon2 library" >&6; }
   8203 cd argon2-$argon2_version
   8204 $ac_cv_prog_MAKER || exit 1
   8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing Argon2 library" >&5
   8206 printf "%s\n" "installing Argon2 library" >&6; }
   8207 $ac_cv_prog_MAKER install PREFIX=$cur_dir/extras/argon2 || exit 1
   8208 # We need to manually copy the libs to PRIVATELIBDIR because
   8209 # there is no way to tell make install in libargon2 to do so.
   8210 # BUT FIRST, delete the old library so it becomes an unlink+create
   8211 # operation rather than overwriting the existing file which would
   8212 # lead to a crash of the currently running IRCd.
   8213 rm -f "$PRIVATELIBDIR/"libargon2*
   8214 # Now copy the new library files:
   8215 cp -av $cur_dir/extras/argon2/lib/* $PRIVATELIBDIR/
   8216 ARGON2_CFLAGS="-I$cur_dir/extras/argon2/include"
   8217 
   8218 ARGON2_LIBS="-L$PRIVATELIBDIR -largon2"
   8219 
   8220 cd $cur_dir
   8221 
   8222 fi
   8223 
   8224 has_system_sodium="no"
   8225 if test "x$with_system_sodium" = "xyes"
   8226 then :
   8227 
   8228 
   8229 pkg_failed=no
   8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SODIUM" >&5
   8231 printf %s "checking for SODIUM... " >&6; }
   8232 
   8233 if test -n "$SODIUM_CFLAGS"; then
   8234     pkg_cv_SODIUM_CFLAGS="$SODIUM_CFLAGS"
   8235  elif test -n "$PKG_CONFIG"; then
   8236     if test -n "$PKG_CONFIG" && \
   8237     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.16\""; } >&5
   8238   ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.16") 2>&5
   8239   ac_status=$?
   8240   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8241   test $ac_status = 0; }; then
   8242   pkg_cv_SODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium >= 1.0.16" 2>/dev/null`
   8243 		      test "x$?" != "x0" && pkg_failed=yes
   8244 else
   8245   pkg_failed=yes
   8246 fi
   8247  else
   8248     pkg_failed=untried
   8249 fi
   8250 if test -n "$SODIUM_LIBS"; then
   8251     pkg_cv_SODIUM_LIBS="$SODIUM_LIBS"
   8252  elif test -n "$PKG_CONFIG"; then
   8253     if test -n "$PKG_CONFIG" && \
   8254     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.16\""; } >&5
   8255   ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.16") 2>&5
   8256   ac_status=$?
   8257   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8258   test $ac_status = 0; }; then
   8259   pkg_cv_SODIUM_LIBS=`$PKG_CONFIG --libs "libsodium >= 1.0.16" 2>/dev/null`
   8260 		      test "x$?" != "x0" && pkg_failed=yes
   8261 else
   8262   pkg_failed=yes
   8263 fi
   8264  else
   8265     pkg_failed=untried
   8266 fi
   8267 
   8268 
   8269 
   8270 if test $pkg_failed = yes; then
   8271    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8272 printf "%s\n" "no" >&6; }
   8273 
   8274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8275         _pkg_short_errors_supported=yes
   8276 else
   8277         _pkg_short_errors_supported=no
   8278 fi
   8279         if test $_pkg_short_errors_supported = yes; then
   8280 	        SODIUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium >= 1.0.16" 2>&1`
   8281         else
   8282 	        SODIUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsodium >= 1.0.16" 2>&1`
   8283         fi
   8284 	# Put the nasty error message in config.log where it belongs
   8285 	echo "$SODIUM_PKG_ERRORS" >&5
   8286 
   8287 	has_system_sodium=no
   8288 elif test $pkg_failed = untried; then
   8289      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8290 printf "%s\n" "no" >&6; }
   8291 	has_system_sodium=no
   8292 else
   8293 	SODIUM_CFLAGS=$pkg_cv_SODIUM_CFLAGS
   8294 	SODIUM_LIBS=$pkg_cv_SODIUM_LIBS
   8295         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8296 printf "%s\n" "yes" >&6; }
   8297 	has_system_sodium=yes
   8298 if test "x$PRIVATELIBDIR" != "x"
   8299 then :
   8300   rm -f "$PRIVATELIBDIR/"libsodium*
   8301 fi
   8302 fi
   8303 fi
   8304 
   8305 if test "$has_system_sodium" = "no"
   8306 then :
   8307 
   8308 sodium_version="1.0.18"
   8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting sodium library" >&5
   8310 printf "%s\n" "extracting sodium library" >&6; }
   8311 cur_dir=`pwd`
   8312 cd extras
   8313 rm -rf sodium-$sodium_version sodium
   8314 if test "x$ac_cv_path_GUNZIP" = "x" ; then
   8315 	tar xfz libsodium.tar.gz
   8316 else
   8317 	cp libsodium.tar.gz libsodium.tar.gz.bak
   8318 	gunzip -f libsodium.tar.gz
   8319 	cp libsodium.tar.gz.bak libsodium.tar.gz
   8320 	tar xf libsodium.tar
   8321 fi
   8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling sodium library" >&5
   8323 printf "%s\n" "compiling sodium library" >&6; }
   8324 cd libsodium-$sodium_version
   8325 save_cflags="$CFLAGS"
   8326 CFLAGS="$orig_cflags"
   8327 export CFLAGS
   8328 ./configure --prefix=$cur_dir/extras/sodium --libdir=$PRIVATELIBDIR --enable-shared --disable-static --enable-opt || exit 1
   8329 CFLAGS="$save_cflags"
   8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling sodium resolver library" >&5
   8331 printf "%s\n" "compiling sodium resolver library" >&6; }
   8332 $ac_cv_prog_MAKER || exit 1
   8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing sodium resolver library" >&5
   8334 printf "%s\n" "installing sodium resolver library" >&6; }
   8335 rm -f "$PRIVATELIBDIR/"libsodium*
   8336 $ac_cv_prog_MAKER install || exit 1
   8337 SODIUM_CFLAGS="-I$cur_dir/extras/sodium/include"
   8338 
   8339 SODIUM_LIBS=
   8340 if test -n "$ac_cv_path_PKGCONFIG"
   8341 then :
   8342   SODIUM_LIBS="`$ac_cv_path_PKGCONFIG --libs libsodium.pc`"
   8343 fi
   8344 if test -z "$SODIUM_LIBS"
   8345 then :
   8346   SODIUM_LIBS="-L$PRIVATELIBDIR -lsodium"
   8347 fi
   8348 
   8349 cd $cur_dir
   8350 
   8351 fi
   8352 
   8353 has_system_cares="no"
   8354 if test "x$with_system_cares" = "xyes"
   8355 then :
   8356 
   8357 
   8358 pkg_failed=no
   8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
   8360 printf %s "checking for CARES... " >&6; }
   8361 
   8362 if test -n "$CARES_CFLAGS"; then
   8363     pkg_cv_CARES_CFLAGS="$CARES_CFLAGS"
   8364  elif test -n "$PKG_CONFIG"; then
   8365     if test -n "$PKG_CONFIG" && \
   8366     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
   8367   ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
   8368   ac_status=$?
   8369   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8370   test $ac_status = 0; }; then
   8371   pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
   8372 		      test "x$?" != "x0" && pkg_failed=yes
   8373 else
   8374   pkg_failed=yes
   8375 fi
   8376  else
   8377     pkg_failed=untried
   8378 fi
   8379 if test -n "$CARES_LIBS"; then
   8380     pkg_cv_CARES_LIBS="$CARES_LIBS"
   8381  elif test -n "$PKG_CONFIG"; then
   8382     if test -n "$PKG_CONFIG" && \
   8383     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
   8384   ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
   8385   ac_status=$?
   8386   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8387   test $ac_status = 0; }; then
   8388   pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
   8389 		      test "x$?" != "x0" && pkg_failed=yes
   8390 else
   8391   pkg_failed=yes
   8392 fi
   8393  else
   8394     pkg_failed=untried
   8395 fi
   8396 
   8397 
   8398 
   8399 if test $pkg_failed = yes; then
   8400    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8401 printf "%s\n" "no" >&6; }
   8402 
   8403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8404         _pkg_short_errors_supported=yes
   8405 else
   8406         _pkg_short_errors_supported=no
   8407 fi
   8408         if test $_pkg_short_errors_supported = yes; then
   8409 	        CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
   8410         else
   8411 	        CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
   8412         fi
   8413 	# Put the nasty error message in config.log where it belongs
   8414 	echo "$CARES_PKG_ERRORS" >&5
   8415 
   8416 	has_system_cares=no
   8417 elif test $pkg_failed = untried; then
   8418      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8419 printf "%s\n" "no" >&6; }
   8420 	has_system_cares=no
   8421 else
   8422 	CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
   8423 	CARES_LIBS=$pkg_cv_CARES_LIBS
   8424         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8425 printf "%s\n" "yes" >&6; }
   8426 	has_system_cares=yes
   8427 if test "x$PRIVATELIBDIR" != "x"
   8428 then :
   8429   rm -f "$PRIVATELIBDIR/"libcares*
   8430 fi
   8431 fi
   8432 fi
   8433 
   8434 if test "$has_system_cares" = "no"
   8435 then :
   8436 
   8437 cares_version="1.19.0"
   8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
   8439 printf "%s\n" "extracting c-ares resolver library" >&6; }
   8440 cur_dir=`pwd`
   8441 cd extras
   8442 rm -rf c-ares-$cares_version c-ares
   8443 if test "x$ac_cv_path_GUNZIP" = "x" ; then
   8444 	tar xfz c-ares.tar.gz
   8445 else
   8446 	cp c-ares.tar.gz c-ares.tar.gz.bak
   8447 	gunzip -f c-ares.tar.gz
   8448 	cp c-ares.tar.gz.bak c-ares.tar.gz
   8449 	tar xf c-ares.tar
   8450 fi
   8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
   8452 printf "%s\n" "configuring c-ares library" >&6; }
   8453 cd c-ares-$cares_version
   8454 save_cflags="$CFLAGS"
   8455 CFLAGS="$orig_cflags"
   8456 export CFLAGS
   8457 ./configure --prefix=$cur_dir/extras/c-ares --libdir=$PRIVATELIBDIR --enable-shared --disable-tests || exit 1
   8458 CFLAGS="$save_cflags"
   8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
   8460 printf "%s\n" "compiling c-ares resolver library" >&6; }
   8461 $ac_cv_prog_MAKER || exit 1
   8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
   8463 printf "%s\n" "installing c-ares resolver library" >&6; }
   8464 rm -f "$PRIVATELIBDIR/"libcares*
   8465 $ac_cv_prog_MAKER install || exit 1
   8466 CARES_CFLAGS="-I$cur_dir/extras/c-ares/include"
   8467 
   8468 CARES_LIBS="-L$PRIVATELIBDIR"
   8469 
   8470 cd ../..
   8471 CARESLIBSALT="$PRIVATELIBDIR/libcares.so"
   8472 cd -
   8473 case `uname -s` in
   8474 	*FreeBSD*)
   8475 		CARESLIBSALT="$CARESLIBSALT"
   8476 		;;
   8477 	*Linux*)
   8478 		CARESLIBSALT="$CARESLIBSALT -lrt"
   8479 		;;
   8480 	*SunOS*)
   8481 		CARESLIBSALT="$CARESLIBSALT -lrt"
   8482 		;;
   8483 esac
   8484 
   8485 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
   8486 	CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
   8487 else
   8488 	CARES_LIBSPRE="$CARES_LIBS"
   8489 					CARES_LIBS="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
   8490 	if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
   8491 		CARES_LIBS="$CARES_LIBS $CARESLIBSALT"
   8492 	fi
   8493 fi
   8494 
   8495 cd $cur_dir
   8496 
   8497 fi
   8498 
   8499 has_system_jansson="no"
   8500 if test "x$with_system_jansson" = "xyes"
   8501 then :
   8502 
   8503 
   8504 pkg_failed=no
   8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
   8506 printf %s "checking for JANSSON... " >&6; }
   8507 
   8508 if test -n "$JANSSON_CFLAGS"; then
   8509     pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
   8510  elif test -n "$PKG_CONFIG"; then
   8511     if test -n "$PKG_CONFIG" && \
   8512     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.0.0\""; } >&5
   8513   ($PKG_CONFIG --exists --print-errors "jansson >= 2.0.0") 2>&5
   8514   ac_status=$?
   8515   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8516   test $ac_status = 0; }; then
   8517   pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.0.0" 2>/dev/null`
   8518 		      test "x$?" != "x0" && pkg_failed=yes
   8519 else
   8520   pkg_failed=yes
   8521 fi
   8522  else
   8523     pkg_failed=untried
   8524 fi
   8525 if test -n "$JANSSON_LIBS"; then
   8526     pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
   8527  elif test -n "$PKG_CONFIG"; then
   8528     if test -n "$PKG_CONFIG" && \
   8529     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.0.0\""; } >&5
   8530   ($PKG_CONFIG --exists --print-errors "jansson >= 2.0.0") 2>&5
   8531   ac_status=$?
   8532   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   8533   test $ac_status = 0; }; then
   8534   pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.0.0" 2>/dev/null`
   8535 		      test "x$?" != "x0" && pkg_failed=yes
   8536 else
   8537   pkg_failed=yes
   8538 fi
   8539  else
   8540     pkg_failed=untried
   8541 fi
   8542 
   8543 
   8544 
   8545 if test $pkg_failed = yes; then
   8546    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8547 printf "%s\n" "no" >&6; }
   8548 
   8549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   8550         _pkg_short_errors_supported=yes
   8551 else
   8552         _pkg_short_errors_supported=no
   8553 fi
   8554         if test $_pkg_short_errors_supported = yes; then
   8555 	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.0.0" 2>&1`
   8556         else
   8557 	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.0.0" 2>&1`
   8558         fi
   8559 	# Put the nasty error message in config.log where it belongs
   8560 	echo "$JANSSON_PKG_ERRORS" >&5
   8561 
   8562 	has_system_jansson=no
   8563 elif test $pkg_failed = untried; then
   8564      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8565 printf "%s\n" "no" >&6; }
   8566 	has_system_jansson=no
   8567 else
   8568 	JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
   8569 	JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
   8570         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8571 printf "%s\n" "yes" >&6; }
   8572 	has_system_jansson=yes
   8573 if test "x$PRIVATELIBDIR" != "x"
   8574 then :
   8575   rm -f "$PRIVATELIBDIR/"libjansson*
   8576 fi
   8577 fi
   8578 fi
   8579 
   8580 if test "$has_system_jansson" = "no"
   8581 then :
   8582 
   8583 jansson_version="2.14"
   8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting jansson library" >&5
   8585 printf "%s\n" "extracting jansson library" >&6; }
   8586 cur_dir=`pwd`
   8587 cd extras
   8588 rm -rf jansson-$jansson_version jansson
   8589 if test "x$ac_cv_path_GUNZIP" = "x" ; then
   8590 	tar xfz jansson.tar.gz
   8591 else
   8592 	cp jansson.tar.gz jansson.tar.gz.bak
   8593 	gunzip -f jansson.tar.gz
   8594 	cp jansson.tar.gz.bak jansson.tar.gz
   8595 	tar xf jansson.tar
   8596 fi
   8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling jansson library" >&5
   8598 printf "%s\n" "compiling jansson library" >&6; }
   8599 cd jansson-$jansson_version
   8600 save_cflags="$CFLAGS"
   8601 CFLAGS="$orig_cflags"
   8602 export CFLAGS
   8603 ./configure --prefix=$cur_dir/extras/jansson --libdir=$PRIVATELIBDIR --enable-shared --disable-static || exit 1
   8604 CFLAGS="$save_cflags"
   8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling jansson resolver library" >&5
   8606 printf "%s\n" "compiling jansson resolver library" >&6; }
   8607 $ac_cv_prog_MAKER || exit 1
   8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing jansson resolver library" >&5
   8609 printf "%s\n" "installing jansson resolver library" >&6; }
   8610 rm -f "$PRIVATELIBDIR/"libjansson*
   8611 $ac_cv_prog_MAKER install || exit 1
   8612 JANSSON_CFLAGS="-I$cur_dir/extras/jansson/include"
   8613 
   8614 JANSSON_LIBS=
   8615 if test -n "$ac_cv_path_PKGCONFIG"
   8616 then :
   8617   JANSSON_LIBS="`$ac_cv_path_PKGCONFIG --libs jansson.pc`"
   8618 fi
   8619 if test -z "$JANSSON_LIBS"
   8620 then :
   8621   JANSSON_LIBS="-L$PRIVATELIBDIR -ljansson"
   8622 fi
   8623 
   8624 cd $cur_dir
   8625 
   8626 fi
   8627 
   8628 
   8629 
   8630 
   8631 
   8632   # Make sure we can run config.sub.
   8633 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   8634   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   8635 
   8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   8637 printf %s "checking build system type... " >&6; }
   8638 if test ${ac_cv_build+y}
   8639 then :
   8640   printf %s "(cached) " >&6
   8641 else $as_nop
   8642   ac_build_alias=$build_alias
   8643 test "x$ac_build_alias" = x &&
   8644   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   8645 test "x$ac_build_alias" = x &&
   8646   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   8647 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   8648   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   8649 
   8650 fi
   8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   8652 printf "%s\n" "$ac_cv_build" >&6; }
   8653 case $ac_cv_build in
   8654 *-*-*) ;;
   8655 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   8656 esac
   8657 build=$ac_cv_build
   8658 ac_save_IFS=$IFS; IFS='-'
   8659 set x $ac_cv_build
   8660 shift
   8661 build_cpu=$1
   8662 build_vendor=$2
   8663 shift; shift
   8664 # Remember, the first character of IFS is used to create $*,
   8665 # except with old shells:
   8666 build_os=$*
   8667 IFS=$ac_save_IFS
   8668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   8669 
   8670 
   8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   8672 printf %s "checking host system type... " >&6; }
   8673 if test ${ac_cv_host+y}
   8674 then :
   8675   printf %s "(cached) " >&6
   8676 else $as_nop
   8677   if test "x$host_alias" = x; then
   8678   ac_cv_host=$ac_cv_build
   8679 else
   8680   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   8681     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   8682 fi
   8683 
   8684 fi
   8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   8686 printf "%s\n" "$ac_cv_host" >&6; }
   8687 case $ac_cv_host in
   8688 *-*-*) ;;
   8689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   8690 esac
   8691 host=$ac_cv_host
   8692 ac_save_IFS=$IFS; IFS='-'
   8693 set x $ac_cv_host
   8694 shift
   8695 host_cpu=$1
   8696 host_vendor=$2
   8697 shift; shift
   8698 # Remember, the first character of IFS is used to create $*,
   8699 # except with old shells:
   8700 host_os=$*
   8701 IFS=$ac_save_IFS
   8702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   8703 
   8704 
   8705 
   8706 
   8707 ac_ext=c
   8708 ac_cpp='$CPP $CPPFLAGS'
   8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8712 
   8713 ax_pthread_ok=no
   8714 
   8715 # We used to check for pthread.h first, but this fails if pthread.h
   8716 # requires special compiler flags (e.g. on True64 or Sequent).
   8717 # It gets checked for in the link test anyway.
   8718 
   8719 # First of all, check if the user has set any of the PTHREAD_LIBS,
   8720 # etcetera environment variables, and if threads linking works using
   8721 # them:
   8722 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   8723         save_CFLAGS="$CFLAGS"
   8724         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   8725         save_LIBS="$LIBS"
   8726         LIBS="$PTHREAD_LIBS $LIBS"
   8727         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
   8728 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
   8729         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8730 /* end confdefs.h.  */
   8731 
   8732 /* Override any GCC internal prototype to avoid an error.
   8733    Use char because int might match the return type of a GCC
   8734    builtin and then its argument prototype would still apply.  */
   8735 char pthread_join ();
   8736 int
   8737 main (void)
   8738 {
   8739 return pthread_join ();
   8740   ;
   8741   return 0;
   8742 }
   8743 _ACEOF
   8744 if ac_fn_c_try_link "$LINENO"
   8745 then :
   8746   ax_pthread_ok=yes
   8747 fi
   8748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8749     conftest$ac_exeext conftest.$ac_ext
   8750         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   8751 printf "%s\n" "$ax_pthread_ok" >&6; }
   8752         if test x"$ax_pthread_ok" = xno; then
   8753                 PTHREAD_LIBS=""
   8754                 PTHREAD_CFLAGS=""
   8755         fi
   8756         LIBS="$save_LIBS"
   8757         CFLAGS="$save_CFLAGS"
   8758 fi
   8759 
   8760 # We must check for the threads library under a number of different
   8761 # names; the ordering is very important because some systems
   8762 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   8763 # libraries is broken (non-POSIX).
   8764 
   8765 # Create a list of thread flags to try.  Items starting with a "-" are
   8766 # C compiler flags, and other items are library names, except for "none"
   8767 # which indicates that we try without any flags at all, and "pthread-config"
   8768 # which is a program returning the flags for the Pth emulation library.
   8769 
   8770 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   8771 
   8772 # The ordering *is* (sometimes) important.  Some notes on the
   8773 # individual items follow:
   8774 
   8775 # pthreads: AIX (must check this before -lpthread)
   8776 # none: in case threads are in libc; should be tried before -Kthread and
   8777 #       other compiler flags to prevent continual compiler warnings
   8778 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   8779 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   8780 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   8781 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   8782 # -pthreads: Solaris/gcc
   8783 # -mthreads: Mingw32/gcc, Lynx/gcc
   8784 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   8785 #      doesn't hurt to check since this sometimes defines pthreads too;
   8786 #      also defines -D_REENTRANT)
   8787 #      ... -mt is also the pthreads flag for HP/aCC
   8788 # pthread: Linux, etcetera
   8789 # --thread-safe: KAI C++
   8790 # pthread-config: use pthread-config program (for GNU Pth library)
   8791 
   8792 case ${host_os} in
   8793         solaris*)
   8794 
   8795         # On Solaris (at least, for some versions), libc contains stubbed
   8796         # (non-functional) versions of the pthreads routines, so link-based
   8797         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
   8798         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   8799         # a function called by this macro, so we could check for that, but
   8800         # who knows whether they'll stub that too in a future libc.)  So,
   8801         # we'll just look for -pthreads and -lpthread first:
   8802 
   8803         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
   8804         ;;
   8805 
   8806         darwin*)
   8807         ax_pthread_flags="-pthread $ax_pthread_flags"
   8808         ;;
   8809 esac
   8810 
   8811 # Clang doesn't consider unrecognized options an error unless we specify
   8812 # -Werror. We throw in some extra Clang-specific options to ensure that
   8813 # this doesn't happen for GCC, which also accepts -Werror.
   8814 
   8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
   8816 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
   8817 save_CFLAGS="$CFLAGS"
   8818 ax_pthread_extra_flags="-Werror"
   8819 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
   8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8821 /* end confdefs.h.  */
   8822 int foo(void);
   8823 int
   8824 main (void)
   8825 {
   8826 foo()
   8827   ;
   8828   return 0;
   8829 }
   8830 _ACEOF
   8831 if ac_fn_c_try_compile "$LINENO"
   8832 then :
   8833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8834 printf "%s\n" "yes" >&6; }
   8835 else $as_nop
   8836   ax_pthread_extra_flags=
   8837                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8838 printf "%s\n" "no" >&6; }
   8839 fi
   8840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8841 CFLAGS="$save_CFLAGS"
   8842 
   8843 if test x"$ax_pthread_ok" = xno; then
   8844 for flag in $ax_pthread_flags; do
   8845 
   8846         case $flag in
   8847                 none)
   8848                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   8849 printf %s "checking whether pthreads work without any flags... " >&6; }
   8850                 ;;
   8851 
   8852                 -*)
   8853                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
   8854 printf %s "checking whether pthreads work with $flag... " >&6; }
   8855                 PTHREAD_CFLAGS="$flag"
   8856                 ;;
   8857 
   8858                 pthread-config)
   8859                 # Extract the first word of "pthread-config", so it can be a program name with args.
   8860 set dummy pthread-config; ac_word=$2
   8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8862 printf %s "checking for $ac_word... " >&6; }
   8863 if test ${ac_cv_prog_ax_pthread_config+y}
   8864 then :
   8865   printf %s "(cached) " >&6
   8866 else $as_nop
   8867   if test -n "$ax_pthread_config"; then
   8868   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   8869 else
   8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8871 for as_dir in $PATH
   8872 do
   8873   IFS=$as_save_IFS
   8874   case $as_dir in #(((
   8875     '') as_dir=./ ;;
   8876     */) ;;
   8877     *) as_dir=$as_dir/ ;;
   8878   esac
   8879     for ac_exec_ext in '' $ac_executable_extensions; do
   8880   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8881     ac_cv_prog_ax_pthread_config="yes"
   8882     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8883     break 2
   8884   fi
   8885 done
   8886   done
   8887 IFS=$as_save_IFS
   8888 
   8889   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   8890 fi
   8891 fi
   8892 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   8893 if test -n "$ax_pthread_config"; then
   8894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   8895 printf "%s\n" "$ax_pthread_config" >&6; }
   8896 else
   8897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8898 printf "%s\n" "no" >&6; }
   8899 fi
   8900 
   8901 
   8902                 if test x"$ax_pthread_config" = xno; then continue; fi
   8903                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   8904                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   8905                 ;;
   8906 
   8907                 *)
   8908                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
   8909 printf %s "checking for the pthreads library -l$flag... " >&6; }
   8910                 PTHREAD_LIBS="-l$flag"
   8911                 ;;
   8912         esac
   8913 
   8914         save_LIBS="$LIBS"
   8915         save_CFLAGS="$CFLAGS"
   8916         LIBS="$PTHREAD_LIBS $LIBS"
   8917         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
   8918 
   8919         # Check for various functions.  We must include pthread.h,
   8920         # since some functions may be macros.  (On the Sequent, we
   8921         # need a special flag -Kthread to make this header compile.)
   8922         # We check for pthread_join because it is in -lpthread on IRIX
   8923         # while pthread_create is in libc.  We check for pthread_attr_init
   8924         # due to DEC craziness with -lpthreads.  We check for
   8925         # pthread_cleanup_push because it is one of the few pthread
   8926         # functions on Solaris that doesn't have a non-functional libc stub.
   8927         # We try pthread_create on general principles.
   8928         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8929 /* end confdefs.h.  */
   8930 #include <pthread.h>
   8931                         static void routine(void *a) { a = 0; }
   8932                         static void *start_routine(void *a) { return a; }
   8933 int
   8934 main (void)
   8935 {
   8936 pthread_t th; pthread_attr_t attr;
   8937                         pthread_create(&th, 0, start_routine, 0);
   8938                         pthread_join(th, 0);
   8939                         pthread_attr_init(&attr);
   8940                         pthread_cleanup_push(routine, 0);
   8941                         pthread_cleanup_pop(0) /* ; */
   8942   ;
   8943   return 0;
   8944 }
   8945 _ACEOF
   8946 if ac_fn_c_try_link "$LINENO"
   8947 then :
   8948   ax_pthread_ok=yes
   8949 fi
   8950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8951     conftest$ac_exeext conftest.$ac_ext
   8952 
   8953         LIBS="$save_LIBS"
   8954         CFLAGS="$save_CFLAGS"
   8955 
   8956         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   8957 printf "%s\n" "$ax_pthread_ok" >&6; }
   8958         if test "x$ax_pthread_ok" = xyes; then
   8959                 break;
   8960         fi
   8961 
   8962         PTHREAD_LIBS=""
   8963         PTHREAD_CFLAGS=""
   8964 done
   8965 fi
   8966 
   8967 # Various other checks:
   8968 if test "x$ax_pthread_ok" = xyes; then
   8969         save_LIBS="$LIBS"
   8970         LIBS="$PTHREAD_LIBS $LIBS"
   8971         save_CFLAGS="$CFLAGS"
   8972         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   8973 
   8974         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   8975         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   8976 printf %s "checking for joinable pthread attribute... " >&6; }
   8977         attr_name=unknown
   8978         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   8979             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8980 /* end confdefs.h.  */
   8981 #include <pthread.h>
   8982 int
   8983 main (void)
   8984 {
   8985 int attr = $attr; return attr /* ; */
   8986   ;
   8987   return 0;
   8988 }
   8989 _ACEOF
   8990 if ac_fn_c_try_link "$LINENO"
   8991 then :
   8992   attr_name=$attr; break
   8993 fi
   8994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8995     conftest$ac_exeext conftest.$ac_ext
   8996         done
   8997         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
   8998 printf "%s\n" "$attr_name" >&6; }
   8999         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
   9000 
   9001 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
   9002 
   9003         fi
   9004 
   9005         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
   9006 printf %s "checking if more special flags are required for pthreads... " >&6; }
   9007         flag=no
   9008         case ${host_os} in
   9009             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
   9010             osf* | hpux*) flag="-D_REENTRANT";;
   9011             solaris*)
   9012             if test "$GCC" = "yes"; then
   9013                 flag="-D_REENTRANT"
   9014             else
   9015                 # TODO: What about Clang on Solaris?
   9016                 flag="-mt -D_REENTRANT"
   9017             fi
   9018             ;;
   9019         esac
   9020         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
   9021 printf "%s\n" "$flag" >&6; }
   9022         if test "x$flag" != xno; then
   9023             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   9024         fi
   9025 
   9026         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   9027 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   9028 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
   9029 then :
   9030   printf %s "(cached) " >&6
   9031 else $as_nop
   9032 
   9033                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9034 /* end confdefs.h.  */
   9035 #include <pthread.h>
   9036 int
   9037 main (void)
   9038 {
   9039 int i = PTHREAD_PRIO_INHERIT;
   9040   ;
   9041   return 0;
   9042 }
   9043 _ACEOF
   9044 if ac_fn_c_try_link "$LINENO"
   9045 then :
   9046   ax_cv_PTHREAD_PRIO_INHERIT=yes
   9047 else $as_nop
   9048   ax_cv_PTHREAD_PRIO_INHERIT=no
   9049 fi
   9050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9051     conftest$ac_exeext conftest.$ac_ext
   9052 
   9053 fi
   9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   9055 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   9056         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
   9057 then :
   9058 
   9059 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   9060 
   9061 fi
   9062 
   9063         LIBS="$save_LIBS"
   9064         CFLAGS="$save_CFLAGS"
   9065 
   9066         # More AIX lossage: compile with *_r variant
   9067         if test "x$GCC" != xyes; then
   9068             case $host_os in
   9069                 aix*)
   9070                 case "x/$CC" in #(
   9071   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   9072     #handle absolute path differently from PATH based program lookup
   9073                    case "x$CC" in #(
   9074   x/*) :
   9075     if as_fn_executable_p ${CC}_r
   9076 then :
   9077   PTHREAD_CC="${CC}_r"
   9078 fi ;; #(
   9079   *) :
   9080     for ac_prog in ${CC}_r
   9081 do
   9082   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9083 set dummy $ac_prog; ac_word=$2
   9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9085 printf %s "checking for $ac_word... " >&6; }
   9086 if test ${ac_cv_prog_PTHREAD_CC+y}
   9087 then :
   9088   printf %s "(cached) " >&6
   9089 else $as_nop
   9090   if test -n "$PTHREAD_CC"; then
   9091   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   9092 else
   9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9094 for as_dir in $PATH
   9095 do
   9096   IFS=$as_save_IFS
   9097   case $as_dir in #(((
   9098     '') as_dir=./ ;;
   9099     */) ;;
   9100     *) as_dir=$as_dir/ ;;
   9101   esac
   9102     for ac_exec_ext in '' $ac_executable_extensions; do
   9103   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   9104     ac_cv_prog_PTHREAD_CC="$ac_prog"
   9105     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   9106     break 2
   9107   fi
   9108 done
   9109   done
   9110 IFS=$as_save_IFS
   9111 
   9112 fi
   9113 fi
   9114 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   9115 if test -n "$PTHREAD_CC"; then
   9116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   9117 printf "%s\n" "$PTHREAD_CC" >&6; }
   9118 else
   9119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9120 printf "%s\n" "no" >&6; }
   9121 fi
   9122 
   9123 
   9124   test -n "$PTHREAD_CC" && break
   9125 done
   9126 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   9127  ;;
   9128 esac ;; #(
   9129   *) :
   9130      ;;
   9131 esac
   9132                 ;;
   9133             esac
   9134         fi
   9135 fi
   9136 
   9137 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   9138 
   9139 
   9140 
   9141 
   9142 
   9143 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   9144 if test x"$ax_pthread_ok" = xyes; then
   9145 
   9146 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
   9147 
   9148         :
   9149 else
   9150         ax_pthread_ok=no
   9151 
   9152 fi
   9153 ac_ext=c
   9154 ac_cpp='$CPP $CPPFLAGS'
   9155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9158 
   9159 
   9160 
   9161 
   9162 	# Check whether --enable-libcurl was given.
   9163 if test ${enable_libcurl+y}
   9164 then :
   9165   enableval=$enable_libcurl; enable_curl=$enableval
   9166 else $as_nop
   9167   enable_curl=no
   9168 fi
   9169 
   9170 
   9171 	if test "x$enable_curl" != "xno"
   9172 then :
   9173 
   9174 												CURLCONFIG="curl-config"
   9175 		if test "x$enable_curl" != "xyes"
   9176 then :
   9177   CURLCONFIG="$enable_curl/bin/curl-config"
   9178 fi
   9179 
   9180 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
   9181 printf %s "checking $CURLCONFIG... " >&6; }
   9182 		if $CURLCONFIG --version 2>/dev/null >/dev/null
   9183 then :
   9184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9185 printf "%s\n" "yes" >&6; }
   9186 else $as_nop
   9187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9188 printf "%s\n" "no" >&6; }
   9189 				{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   9191 as_fn_error $? "Could not find curl-config, try editing --enable-libcurl
   9192 See \`config.log' for more details" "$LINENO" 5; }
   9193 fi
   9194 
   9195 		CURLCFLAG="`$CURLCONFIG --cflags`"
   9196 		CURLLIBS="`$CURLCONFIG --libs`"
   9197 
   9198 				if $CURLCONFIG --libs | grep -q -e ares
   9199 then :
   9200   CURLUSESCARES="1"
   9201 else $as_nop
   9202   CURLUSESCARES="0"
   9203 fi
   9204 
   9205 				if test -z "${CURLLIBS}"
   9206 then :
   9207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
   9208 printf "%s\n" "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
   9209 fi
   9210 
   9211 
   9212 		if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0"
   9213 then :
   9214 
   9215 			as_fn_error $? "
   9216 
   9217   You have decided to build unrealIRCd with libcURL (remote includes) support.
   9218   However, you have system-installed c-ares support has either been disabled
   9219   (--without-system-cares) or is unavailable.
   9220   Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
   9221   with the system-installed libcURL, this is a bad idea which may result in error
   9222   messages looking like:
   9223 
   9224   	error downloading ... Could not resolve host: example.net (Successful completion)
   9225 
   9226   Or UnrealIRCd might even crash.
   9227 
   9228   Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
   9229 " "$LINENO" 5
   9230 
   9231 fi
   9232 
   9233 						IRCDLIBS="$IRCDLIBS $CURLLIBS"
   9234 		CFLAGS="$CFLAGS $CURLCFLAG"
   9235 
   9236 printf "%s\n" "#define USE_LIBCURL /**/" >>confdefs.h
   9237 
   9238 
   9239 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
   9240 printf %s "checking curl_easy_init() in $CURLLIBS... " >&6; }
   9241 		LIBS_SAVEDA="$LIBS"
   9242 		CFLAGS_SAVEDA="$CFLAGS"
   9243 
   9244 		LIBS="$IRCDLIBS $IRCDLIBS_CURL_CARES"
   9245 		CFLAGS="$CFLAGS $CFLAGS_CURL_CARES"
   9246 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9247 /* end confdefs.h.  */
   9248 
   9249 			#include <curl/curl.h>
   9250 int
   9251 main (void)
   9252 {
   9253 CURL *curl = curl_easy_init();
   9254   ;
   9255   return 0;
   9256 }
   9257 
   9258 _ACEOF
   9259 if ac_fn_c_try_link "$LINENO"
   9260 then :
   9261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9262 printf "%s\n" "yes" >&6; }
   9263 else $as_nop
   9264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9265 printf "%s\n" "no" >&6; }
   9266 			{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   9268 as_fn_error $? "You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
   9269 See \`config.log' for more details" "$LINENO" 5; }
   9270 
   9271 fi
   9272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9273     conftest$ac_exeext conftest.$ac_ext
   9274 		LIBS="$LIBS_SAVEDA"
   9275 		CFLAGS="$CFLAGS_SAVEDA"
   9276 
   9277 				URL="url_curl.o"
   9278 
   9279 else $as_nop
   9280 
   9281 				URL="url_unreal.o"
   9282 
   9283 fi
   9284 
   9285 
   9286 
   9287 	# Check whether --enable-geoip_classic was given.
   9288 if test ${enable_geoip_classic+y}
   9289 then :
   9290   enableval=$enable_geoip_classic; enable_geoip_classic=$enableval
   9291 else $as_nop
   9292   enable_geoip_classic=no
   9293 fi
   9294 
   9295 
   9296 	if test "x$enable_geoip_classic" = "xyes"
   9297 then :
   9298 
   9299 				has_system_geoip_classic="no"
   9300 
   9301 pkg_failed=no
   9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GEOIP_CLASSIC" >&5
   9303 printf %s "checking for GEOIP_CLASSIC... " >&6; }
   9304 
   9305 if test -n "$GEOIP_CLASSIC_CFLAGS"; then
   9306     pkg_cv_GEOIP_CLASSIC_CFLAGS="$GEOIP_CLASSIC_CFLAGS"
   9307  elif test -n "$PKG_CONFIG"; then
   9308     if test -n "$PKG_CONFIG" && \
   9309     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.6.0\""; } >&5
   9310   ($PKG_CONFIG --exists --print-errors "geoip >= 1.6.0") 2>&5
   9311   ac_status=$?
   9312   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9313   test $ac_status = 0; }; then
   9314   pkg_cv_GEOIP_CLASSIC_CFLAGS=`$PKG_CONFIG --cflags "geoip >= 1.6.0" 2>/dev/null`
   9315 		      test "x$?" != "x0" && pkg_failed=yes
   9316 else
   9317   pkg_failed=yes
   9318 fi
   9319  else
   9320     pkg_failed=untried
   9321 fi
   9322 if test -n "$GEOIP_CLASSIC_LIBS"; then
   9323     pkg_cv_GEOIP_CLASSIC_LIBS="$GEOIP_CLASSIC_LIBS"
   9324  elif test -n "$PKG_CONFIG"; then
   9325     if test -n "$PKG_CONFIG" && \
   9326     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.6.0\""; } >&5
   9327   ($PKG_CONFIG --exists --print-errors "geoip >= 1.6.0") 2>&5
   9328   ac_status=$?
   9329   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9330   test $ac_status = 0; }; then
   9331   pkg_cv_GEOIP_CLASSIC_LIBS=`$PKG_CONFIG --libs "geoip >= 1.6.0" 2>/dev/null`
   9332 		      test "x$?" != "x0" && pkg_failed=yes
   9333 else
   9334   pkg_failed=yes
   9335 fi
   9336  else
   9337     pkg_failed=untried
   9338 fi
   9339 
   9340 
   9341 
   9342 if test $pkg_failed = yes; then
   9343    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9344 printf "%s\n" "no" >&6; }
   9345 
   9346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9347         _pkg_short_errors_supported=yes
   9348 else
   9349         _pkg_short_errors_supported=no
   9350 fi
   9351         if test $_pkg_short_errors_supported = yes; then
   9352 	        GEOIP_CLASSIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "geoip >= 1.6.0" 2>&1`
   9353         else
   9354 	        GEOIP_CLASSIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "geoip >= 1.6.0" 2>&1`
   9355         fi
   9356 	# Put the nasty error message in config.log where it belongs
   9357 	echo "$GEOIP_CLASSIC_PKG_ERRORS" >&5
   9358 
   9359 	has_system_geoip_classic=no
   9360 elif test $pkg_failed = untried; then
   9361      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9362 printf "%s\n" "no" >&6; }
   9363 	has_system_geoip_classic=no
   9364 else
   9365 	GEOIP_CLASSIC_CFLAGS=$pkg_cv_GEOIP_CLASSIC_CFLAGS
   9366 	GEOIP_CLASSIC_LIBS=$pkg_cv_GEOIP_CLASSIC_LIBS
   9367         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9368 printf "%s\n" "yes" >&6; }
   9369 	has_system_geoip_classic=yes
   9370 		                   if test "x$PRIVATELIBDIR" != "x"
   9371 then :
   9372   rm -f "$PRIVATELIBDIR/"libGeoIP.*
   9373 fi
   9374 fi
   9375 
   9376 				if test "$has_system_geoip_classic" = "no"
   9377 then :
   9378 
   9379 						geoip_classic_version="1.6.12"
   9380 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting GeoIP Classic library" >&5
   9381 printf "%s\n" "extracting GeoIP Classic library" >&6; }
   9382 			cur_dir=`pwd`
   9383 			cd extras
   9384 									rm -rf GeoIP-$geoip_classic_version geoip-classic
   9385 			if test "x$ac_cv_path_GUNZIP" = "x" ; then
   9386 				tar xfz geoip-classic.tar.gz
   9387 			else
   9388 				cp geoip-classic.tar.gz geoip-classic.tar.gz.bak
   9389 				gunzip -f geoip-classic.tar.gz
   9390 				cp geoip-classic.tar.gz.bak geoip-classic.tar.gz
   9391 				tar xf geoip-classic.tar
   9392 			fi
   9393 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring GeoIP Classic library" >&5
   9394 printf "%s\n" "configuring GeoIP Classic library" >&6; }
   9395 			cd GeoIP-$geoip_classic_version
   9396 			save_cflags="$CFLAGS"
   9397 			CFLAGS="$orig_cflags"
   9398 			export CFLAGS
   9399 			./configure --prefix=$cur_dir/extras/geoip-classic --libdir=$PRIVATELIBDIR --enable-shared --disable-static || exit 1
   9400 			CFLAGS="$save_cflags"
   9401 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling GeoIP Classic library" >&5
   9402 printf "%s\n" "compiling GeoIP Classic library" >&6; }
   9403 			$ac_cv_prog_MAKER || exit 1
   9404 			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing GeoIP Classic library" >&5
   9405 printf "%s\n" "installing GeoIP Classic library" >&6; }
   9406 			rm -f "$PRIVATELIBDIR/"libGeoIP.so*
   9407 			$ac_cv_prog_MAKER install || exit 1
   9408 						if test -n "$ac_cv_path_PKGCONFIG"
   9409 then :
   9410   GEOIP_CLASSIC_LIBS="`$ac_cv_path_PKGCONFIG --libs geoip.pc`"
   9411 			        GEOIP_CLASSIC_CFLAGS="`$ac_cv_path_PKGCONFIG --cflags geoip.pc`"
   9412 fi
   9413 						if test -z "$GEOIP_CLASSIC_LIBS"
   9414 then :
   9415   GEOIP_CLASSIC_LIBS="-L$PRIVATELIBDIR -lGeoIP"
   9416 			        GEOIP_CLASSIC_CFLAGS="-I$cur_dir/extras/geoip-classic/include"
   9417 fi
   9418 			cd $cur_dir
   9419 
   9420 fi
   9421 
   9422 
   9423 
   9424 
   9425 		GEOIP_CLASSIC_OBJECTS="geoip_classic.so"
   9426 
   9427 
   9428 fi
   9429 
   9430 
   9431 	# Check whether --enable-libmaxminddb was given.
   9432 if test ${enable_libmaxminddb+y}
   9433 then :
   9434   enableval=$enable_libmaxminddb; enable_libmaxminddb=$enableval
   9435 else $as_nop
   9436   enable_libmaxminddb=no
   9437 fi
   9438 
   9439 
   9440 	if test "x$enable_libmaxminddb" = "xyes"
   9441 then :
   9442 
   9443 				has_system_libmaxminddb="no"
   9444 
   9445 pkg_failed=no
   9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBMAXMINDDB" >&5
   9447 printf %s "checking for LIBMAXMINDDB... " >&6; }
   9448 
   9449 if test -n "$LIBMAXMINDDB_CFLAGS"; then
   9450     pkg_cv_LIBMAXMINDDB_CFLAGS="$LIBMAXMINDDB_CFLAGS"
   9451  elif test -n "$PKG_CONFIG"; then
   9452     if test -n "$PKG_CONFIG" && \
   9453     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.4.3\""; } >&5
   9454   ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.4.3") 2>&5
   9455   ac_status=$?
   9456   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9457   test $ac_status = 0; }; then
   9458   pkg_cv_LIBMAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb >= 1.4.3" 2>/dev/null`
   9459 		      test "x$?" != "x0" && pkg_failed=yes
   9460 else
   9461   pkg_failed=yes
   9462 fi
   9463  else
   9464     pkg_failed=untried
   9465 fi
   9466 if test -n "$LIBMAXMINDDB_LIBS"; then
   9467     pkg_cv_LIBMAXMINDDB_LIBS="$LIBMAXMINDDB_LIBS"
   9468  elif test -n "$PKG_CONFIG"; then
   9469     if test -n "$PKG_CONFIG" && \
   9470     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.4.3\""; } >&5
   9471   ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.4.3") 2>&5
   9472   ac_status=$?
   9473   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9474   test $ac_status = 0; }; then
   9475   pkg_cv_LIBMAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb >= 1.4.3" 2>/dev/null`
   9476 		      test "x$?" != "x0" && pkg_failed=yes
   9477 else
   9478   pkg_failed=yes
   9479 fi
   9480  else
   9481     pkg_failed=untried
   9482 fi
   9483 
   9484 
   9485 
   9486 if test $pkg_failed = yes; then
   9487    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9488 printf "%s\n" "no" >&6; }
   9489 
   9490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   9491         _pkg_short_errors_supported=yes
   9492 else
   9493         _pkg_short_errors_supported=no
   9494 fi
   9495         if test $_pkg_short_errors_supported = yes; then
   9496 	        LIBMAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb >= 1.4.3" 2>&1`
   9497         else
   9498 	        LIBMAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb >= 1.4.3" 2>&1`
   9499         fi
   9500 	# Put the nasty error message in config.log where it belongs
   9501 	echo "$LIBMAXMINDDB_PKG_ERRORS" >&5
   9502 
   9503 	as_fn_error $? "Package requirements (libmaxminddb >= 1.4.3) were not met:
   9504 
   9505 $LIBMAXMINDDB_PKG_ERRORS
   9506 
   9507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   9508 installed software in a non-standard prefix.
   9509 
   9510 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
   9511 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
   9512 See the pkg-config man page for more details." "$LINENO" 5
   9513 elif test $pkg_failed = untried; then
   9514      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9515 printf "%s\n" "no" >&6; }
   9516 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9517 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   9518 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   9519 is in your PATH or set the PKG_CONFIG environment variable to the full
   9520 path to pkg-config.
   9521 
   9522 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
   9523 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
   9524 See the pkg-config man page for more details.
   9525 
   9526 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   9527 See \`config.log' for more details" "$LINENO" 5; }
   9528 else
   9529 	LIBMAXMINDDB_CFLAGS=$pkg_cv_LIBMAXMINDDB_CFLAGS
   9530 	LIBMAXMINDDB_LIBS=$pkg_cv_LIBMAXMINDDB_LIBS
   9531         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9532 printf "%s\n" "yes" >&6; }
   9533 	has_system_libmaxminddb=yes
   9534 fi
   9535 		if test "x$has_system_libmaxminddb" = "xyes"
   9536 then :
   9537 
   9538 
   9539 
   9540 
   9541 
   9542 			GEOIP_MAXMIND_OBJECTS="geoip_maxmind.so"
   9543 
   9544 
   9545 fi
   9546 
   9547 fi
   9548 
   9549 
   9550 UNRLINCDIR="`pwd`/include"
   9551 
   9552 if test "$ac_cv_werror" = "yes" ; then
   9553 	CFLAGS="$CFLAGS -Werror"
   9554 fi
   9555 
   9556 if test "$ac_cv_asan" = "yes" ; then
   9557 	CFLAGS="$CFLAGS -O1 -fno-inline -fsanitize=address -fno-omit-frame-pointer -DNOCLOSEFD"
   9558 	IRCDLIBS="-fsanitize=address $IRCDLIBS"
   9559 fi
   9560 
   9561 
   9562 
   9563 
   9564 
   9565 ac_config_files="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/extbans/Makefile src/modules/rpc/Makefile src/modules/third/Makefile extras/unrealircd-upgrade-script unrealircd"
   9566 
   9567 cat >confcache <<\_ACEOF
   9568 # This file is a shell script that caches the results of configure
   9569 # tests run on this system so they can be shared between configure
   9570 # scripts and configure runs, see configure's option --config-cache.
   9571 # It is not useful on other systems.  If it contains results you don't
   9572 # want to keep, you may remove or edit it.
   9573 #
   9574 # config.status only pays attention to the cache file if you give it
   9575 # the --recheck option to rerun configure.
   9576 #
   9577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   9578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   9579 # following values.
   9580 
   9581 _ACEOF
   9582 
   9583 # The following way of writing the cache mishandles newlines in values,
   9584 # but we know of no workaround that is simple, portable, and efficient.
   9585 # So, we kill variables containing newlines.
   9586 # Ultrix sh set writes to stderr and can't be redirected directly,
   9587 # and sets the high bit in the cache file unless we assign to the vars.
   9588 (
   9589   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   9590     eval ac_val=\$$ac_var
   9591     case $ac_val in #(
   9592     *${as_nl}*)
   9593       case $ac_var in #(
   9594       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   9595 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   9596       esac
   9597       case $ac_var in #(
   9598       _ | IFS | as_nl) ;; #(
   9599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   9600       *) { eval $ac_var=; unset $ac_var;} ;;
   9601       esac ;;
   9602     esac
   9603   done
   9604 
   9605   (set) 2>&1 |
   9606     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   9607     *${as_nl}ac_space=\ *)
   9608       # `set' does not quote correctly, so add quotes: double-quote
   9609       # substitution turns \\\\ into \\, and sed turns \\ into \.
   9610       sed -n \
   9611 	"s/'/'\\\\''/g;
   9612 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   9613       ;; #(
   9614     *)
   9615       # `set' quotes correctly as required by POSIX, so do not add quotes.
   9616       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   9617       ;;
   9618     esac |
   9619     sort
   9620 ) |
   9621   sed '
   9622      /^ac_cv_env_/b end
   9623      t clear
   9624      :clear
   9625      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   9626      t end
   9627      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   9628      :end' >>confcache
   9629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   9630   if test -w "$cache_file"; then
   9631     if test "x$cache_file" != "x/dev/null"; then
   9632       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   9633 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   9634       if test ! -f "$cache_file" || test -h "$cache_file"; then
   9635 	cat confcache >"$cache_file"
   9636       else
   9637         case $cache_file in #(
   9638         */* | ?:*)
   9639 	  mv -f confcache "$cache_file"$$ &&
   9640 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   9641         *)
   9642 	  mv -f confcache "$cache_file" ;;
   9643 	esac
   9644       fi
   9645     fi
   9646   else
   9647     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   9648 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   9649   fi
   9650 fi
   9651 rm -f confcache
   9652 
   9653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   9654 # Let make expand exec_prefix.
   9655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9656 
   9657 DEFS=-DHAVE_CONFIG_H
   9658 
   9659 ac_libobjs=
   9660 ac_ltlibobjs=
   9661 U=
   9662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   9663   # 1. Remove the extension, and $U if already installed.
   9664   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   9665   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   9666   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   9667   #    will be set to the directory where LIBOBJS objects are built.
   9668   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   9669   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   9670 done
   9671 LIBOBJS=$ac_libobjs
   9672 
   9673 LTLIBOBJS=$ac_ltlibobjs
   9674 
   9675 
   9676 
   9677 : "${CONFIG_STATUS=./config.status}"
   9678 ac_write_fail=0
   9679 ac_clean_files_save=$ac_clean_files
   9680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   9682 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   9683 as_write_fail=0
   9684 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   9685 #! $SHELL
   9686 # Generated by $as_me.
   9687 # Run this file to recreate the current configuration.
   9688 # Compiler output produced by configure, useful for debugging
   9689 # configure, is in config.log if it exists.
   9690 
   9691 debug=false
   9692 ac_cs_recheck=false
   9693 ac_cs_silent=false
   9694 
   9695 SHELL=\${CONFIG_SHELL-$SHELL}
   9696 export SHELL
   9697 _ASEOF
   9698 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   9699 ## -------------------- ##
   9700 ## M4sh Initialization. ##
   9701 ## -------------------- ##
   9702 
   9703 # Be more Bourne compatible
   9704 DUALCASE=1; export DUALCASE # for MKS sh
   9705 as_nop=:
   9706 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   9707 then :
   9708   emulate sh
   9709   NULLCMD=:
   9710   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   9711   # is contrary to our usage.  Disable this feature.
   9712   alias -g '${1+"$@"}'='"$@"'
   9713   setopt NO_GLOB_SUBST
   9714 else $as_nop
   9715   case `(set -o) 2>/dev/null` in #(
   9716   *posix*) :
   9717     set -o posix ;; #(
   9718   *) :
   9719      ;;
   9720 esac
   9721 fi
   9722 
   9723 
   9724 
   9725 # Reset variables that may have inherited troublesome values from
   9726 # the environment.
   9727 
   9728 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   9729 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   9730 # side effect of setting IFS to empty, thus disabling word splitting.)
   9731 # Quoting is to prevent editors from complaining about space-tab.
   9732 as_nl='
   9733 '
   9734 export as_nl
   9735 IFS=" ""	$as_nl"
   9736 
   9737 PS1='$ '
   9738 PS2='> '
   9739 PS4='+ '
   9740 
   9741 # Ensure predictable behavior from utilities with locale-dependent output.
   9742 LC_ALL=C
   9743 export LC_ALL
   9744 LANGUAGE=C
   9745 export LANGUAGE
   9746 
   9747 # We cannot yet rely on "unset" to work, but we need these variables
   9748 # to be unset--not just set to an empty or harmless value--now, to
   9749 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   9750 # also avoids known problems related to "unset" and subshell syntax
   9751 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   9752 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   9753 do eval test \${$as_var+y} \
   9754   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   9755 done
   9756 
   9757 # Ensure that fds 0, 1, and 2 are open.
   9758 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   9759 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   9760 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   9761 
   9762 # The user is always right.
   9763 if ${PATH_SEPARATOR+false} :; then
   9764   PATH_SEPARATOR=:
   9765   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   9766     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   9767       PATH_SEPARATOR=';'
   9768   }
   9769 fi
   9770 
   9771 
   9772 # Find who we are.  Look in the path if we contain no directory separator.
   9773 as_myself=
   9774 case $0 in #((
   9775   *[\\/]* ) as_myself=$0 ;;
   9776   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9777 for as_dir in $PATH
   9778 do
   9779   IFS=$as_save_IFS
   9780   case $as_dir in #(((
   9781     '') as_dir=./ ;;
   9782     */) ;;
   9783     *) as_dir=$as_dir/ ;;
   9784   esac
   9785     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   9786   done
   9787 IFS=$as_save_IFS
   9788 
   9789      ;;
   9790 esac
   9791 # We did not find ourselves, most probably we were run as `sh COMMAND'
   9792 # in which case we are not to be found in the path.
   9793 if test "x$as_myself" = x; then
   9794   as_myself=$0
   9795 fi
   9796 if test ! -f "$as_myself"; then
   9797   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   9798   exit 1
   9799 fi
   9800 
   9801 
   9802 
   9803 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   9804 # ----------------------------------------
   9805 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   9806 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   9807 # script with STATUS, using 1 if that was 0.
   9808 as_fn_error ()
   9809 {
   9810   as_status=$1; test $as_status -eq 0 && as_status=1
   9811   if test "$4"; then
   9812     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   9813     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   9814   fi
   9815   printf "%s\n" "$as_me: error: $2" >&2
   9816   as_fn_exit $as_status
   9817 } # as_fn_error
   9818 
   9819 
   9820 
   9821 # as_fn_set_status STATUS
   9822 # -----------------------
   9823 # Set $? to STATUS, without forking.
   9824 as_fn_set_status ()
   9825 {
   9826   return $1
   9827 } # as_fn_set_status
   9828 
   9829 # as_fn_exit STATUS
   9830 # -----------------
   9831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   9832 as_fn_exit ()
   9833 {
   9834   set +e
   9835   as_fn_set_status $1
   9836   exit $1
   9837 } # as_fn_exit
   9838 
   9839 # as_fn_unset VAR
   9840 # ---------------
   9841 # Portably unset VAR.
   9842 as_fn_unset ()
   9843 {
   9844   { eval $1=; unset $1;}
   9845 }
   9846 as_unset=as_fn_unset
   9847 
   9848 # as_fn_append VAR VALUE
   9849 # ----------------------
   9850 # Append the text in VALUE to the end of the definition contained in VAR. Take
   9851 # advantage of any shell optimizations that allow amortized linear growth over
   9852 # repeated appends, instead of the typical quadratic growth present in naive
   9853 # implementations.
   9854 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   9855 then :
   9856   eval 'as_fn_append ()
   9857   {
   9858     eval $1+=\$2
   9859   }'
   9860 else $as_nop
   9861   as_fn_append ()
   9862   {
   9863     eval $1=\$$1\$2
   9864   }
   9865 fi # as_fn_append
   9866 
   9867 # as_fn_arith ARG...
   9868 # ------------------
   9869 # Perform arithmetic evaluation on the ARGs, and store the result in the
   9870 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   9871 # must be portable across $(()) and expr.
   9872 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   9873 then :
   9874   eval 'as_fn_arith ()
   9875   {
   9876     as_val=$(( $* ))
   9877   }'
   9878 else $as_nop
   9879   as_fn_arith ()
   9880   {
   9881     as_val=`expr "$@" || test $? -eq 1`
   9882   }
   9883 fi # as_fn_arith
   9884 
   9885 
   9886 if expr a : '\(a\)' >/dev/null 2>&1 &&
   9887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   9888   as_expr=expr
   9889 else
   9890   as_expr=false
   9891 fi
   9892 
   9893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   9894   as_basename=basename
   9895 else
   9896   as_basename=false
   9897 fi
   9898 
   9899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   9900   as_dirname=dirname
   9901 else
   9902   as_dirname=false
   9903 fi
   9904 
   9905 as_me=`$as_basename -- "$0" ||
   9906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   9907 	 X"$0" : 'X\(//\)$' \| \
   9908 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   9909 printf "%s\n" X/"$0" |
   9910     sed '/^.*\/\([^/][^/]*\)\/*$/{
   9911 	    s//\1/
   9912 	    q
   9913 	  }
   9914 	  /^X\/\(\/\/\)$/{
   9915 	    s//\1/
   9916 	    q
   9917 	  }
   9918 	  /^X\/\(\/\).*/{
   9919 	    s//\1/
   9920 	    q
   9921 	  }
   9922 	  s/.*/./; q'`
   9923 
   9924 # Avoid depending upon Character Ranges.
   9925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   9926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   9927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   9928 as_cr_digits='0123456789'
   9929 as_cr_alnum=$as_cr_Letters$as_cr_digits
   9930 
   9931 
   9932 # Determine whether it's possible to make 'echo' print without a newline.
   9933 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   9934 # for compatibility with existing Makefiles.
   9935 ECHO_C= ECHO_N= ECHO_T=
   9936 case `echo -n x` in #(((((
   9937 -n*)
   9938   case `echo 'xy\c'` in
   9939   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   9940   xy)  ECHO_C='\c';;
   9941   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   9942        ECHO_T='	';;
   9943   esac;;
   9944 *)
   9945   ECHO_N='-n';;
   9946 esac
   9947 
   9948 # For backward compatibility with old third-party macros, we provide
   9949 # the shell variables $as_echo and $as_echo_n.  New code should use
   9950 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   9951 as_echo='printf %s\n'
   9952 as_echo_n='printf %s'
   9953 
   9954 rm -f conf$$ conf$$.exe conf$$.file
   9955 if test -d conf$$.dir; then
   9956   rm -f conf$$.dir/conf$$.file
   9957 else
   9958   rm -f conf$$.dir
   9959   mkdir conf$$.dir 2>/dev/null
   9960 fi
   9961 if (echo >conf$$.file) 2>/dev/null; then
   9962   if ln -s conf$$.file conf$$ 2>/dev/null; then
   9963     as_ln_s='ln -s'
   9964     # ... but there are two gotchas:
   9965     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   9966     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   9967     # In both cases, we have to default to `cp -pR'.
   9968     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   9969       as_ln_s='cp -pR'
   9970   elif ln conf$$.file conf$$ 2>/dev/null; then
   9971     as_ln_s=ln
   9972   else
   9973     as_ln_s='cp -pR'
   9974   fi
   9975 else
   9976   as_ln_s='cp -pR'
   9977 fi
   9978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   9979 rmdir conf$$.dir 2>/dev/null
   9980 
   9981 
   9982 # as_fn_mkdir_p
   9983 # -------------
   9984 # Create "$as_dir" as a directory, including parents if necessary.
   9985 as_fn_mkdir_p ()
   9986 {
   9987 
   9988   case $as_dir in #(
   9989   -*) as_dir=./$as_dir;;
   9990   esac
   9991   test -d "$as_dir" || eval $as_mkdir_p || {
   9992     as_dirs=
   9993     while :; do
   9994       case $as_dir in #(
   9995       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   9996       *) as_qdir=$as_dir;;
   9997       esac
   9998       as_dirs="'$as_qdir' $as_dirs"
   9999       as_dir=`$as_dirname -- "$as_dir" ||
  10000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10001 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  10002 	 X"$as_dir" : 'X\(//\)$' \| \
  10003 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10004 printf "%s\n" X"$as_dir" |
  10005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10006 	    s//\1/
  10007 	    q
  10008 	  }
  10009 	  /^X\(\/\/\)[^/].*/{
  10010 	    s//\1/
  10011 	    q
  10012 	  }
  10013 	  /^X\(\/\/\)$/{
  10014 	    s//\1/
  10015 	    q
  10016 	  }
  10017 	  /^X\(\/\).*/{
  10018 	    s//\1/
  10019 	    q
  10020 	  }
  10021 	  s/.*/./; q'`
  10022       test -d "$as_dir" && break
  10023     done
  10024     test -z "$as_dirs" || eval "mkdir $as_dirs"
  10025   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10026 
  10027 
  10028 } # as_fn_mkdir_p
  10029 if mkdir -p . 2>/dev/null; then
  10030   as_mkdir_p='mkdir -p "$as_dir"'
  10031 else
  10032   test -d ./-p && rmdir ./-p
  10033   as_mkdir_p=false
  10034 fi
  10035 
  10036 
  10037 # as_fn_executable_p FILE
  10038 # -----------------------
  10039 # Test if FILE is an executable regular file.
  10040 as_fn_executable_p ()
  10041 {
  10042   test -f "$1" && test -x "$1"
  10043 } # as_fn_executable_p
  10044 as_test_x='test -x'
  10045 as_executable_p=as_fn_executable_p
  10046 
  10047 # Sed expression to map a string onto a valid CPP name.
  10048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10049 
  10050 # Sed expression to map a string onto a valid variable name.
  10051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10052 
  10053 
  10054 exec 6>&1
  10055 ## ----------------------------------- ##
  10056 ## Main body of $CONFIG_STATUS script. ##
  10057 ## ----------------------------------- ##
  10058 _ASEOF
  10059 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10060 
  10061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10062 # Save the log message, to keep $0 and so on meaningful, and to
  10063 # report actual input values of CONFIG_FILES etc. instead of their
  10064 # values after options handling.
  10065 ac_log="
  10066 This file was extended by unrealircd $as_me 6.1.0, which was
  10067 generated by GNU Autoconf 2.71.  Invocation command line was
  10068 
  10069   CONFIG_FILES    = $CONFIG_FILES
  10070   CONFIG_HEADERS  = $CONFIG_HEADERS
  10071   CONFIG_LINKS    = $CONFIG_LINKS
  10072   CONFIG_COMMANDS = $CONFIG_COMMANDS
  10073   $ $0 $@
  10074 
  10075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10076 "
  10077 
  10078 _ACEOF
  10079 
  10080 case $ac_config_files in *"
  10081 "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10082 esac
  10083 
  10084 case $ac_config_headers in *"
  10085 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10086 esac
  10087 
  10088 
  10089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10090 # Files that config.status was made for.
  10091 config_files="$ac_config_files"
  10092 config_headers="$ac_config_headers"
  10093 
  10094 _ACEOF
  10095 
  10096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10097 ac_cs_usage="\
  10098 \`$as_me' instantiates files and other configuration actions
  10099 from templates according to the current configuration.  Unless the files
  10100 and actions are specified as TAGs, all are instantiated by default.
  10101 
  10102 Usage: $0 [OPTION]... [TAG]...
  10103 
  10104   -h, --help       print this help, then exit
  10105   -V, --version    print version number and configuration settings, then exit
  10106       --config     print configuration, then exit
  10107   -q, --quiet, --silent
  10108                    do not print progress messages
  10109   -d, --debug      don't remove temporary files
  10110       --recheck    update $as_me by reconfiguring in the same conditions
  10111       --file=FILE[:TEMPLATE]
  10112                    instantiate the configuration file FILE
  10113       --header=FILE[:TEMPLATE]
  10114                    instantiate the configuration header FILE
  10115 
  10116 Configuration files:
  10117 $config_files
  10118 
  10119 Configuration headers:
  10120 $config_headers
  10121 
  10122 Report bugs to <https://bugs.unrealircd.org/>.
  10123 unrealircd home page: <https://unrealircd.org/>."
  10124 
  10125 _ACEOF
  10126 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  10127 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  10128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10129 ac_cs_config='$ac_cs_config_escaped'
  10130 ac_cs_version="\\
  10131 unrealircd config.status 6.1.0
  10132 configured by $0, generated by GNU Autoconf 2.71,
  10133   with options \\"\$ac_cs_config\\"
  10134 
  10135 Copyright (C) 2021 Free Software Foundation, Inc.
  10136 This config.status script is free software; the Free Software Foundation
  10137 gives unlimited permission to copy, distribute and modify it."
  10138 
  10139 ac_pwd='$ac_pwd'
  10140 srcdir='$srcdir'
  10141 test -n "\$AWK" || AWK=awk
  10142 _ACEOF
  10143 
  10144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10145 # The default lists apply if the user does not specify any file.
  10146 ac_need_defaults=:
  10147 while test $# != 0
  10148 do
  10149   case $1 in
  10150   --*=?*)
  10151     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10152     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10153     ac_shift=:
  10154     ;;
  10155   --*=)
  10156     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10157     ac_optarg=
  10158     ac_shift=:
  10159     ;;
  10160   *)
  10161     ac_option=$1
  10162     ac_optarg=$2
  10163     ac_shift=shift
  10164     ;;
  10165   esac
  10166 
  10167   case $ac_option in
  10168   # Handling of the options.
  10169   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10170     ac_cs_recheck=: ;;
  10171   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10172     printf "%s\n" "$ac_cs_version"; exit ;;
  10173   --config | --confi | --conf | --con | --co | --c )
  10174     printf "%s\n" "$ac_cs_config"; exit ;;
  10175   --debug | --debu | --deb | --de | --d | -d )
  10176     debug=: ;;
  10177   --file | --fil | --fi | --f )
  10178     $ac_shift
  10179     case $ac_optarg in
  10180     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10181     '') as_fn_error $? "missing file argument" ;;
  10182     esac
  10183     as_fn_append CONFIG_FILES " '$ac_optarg'"
  10184     ac_need_defaults=false;;
  10185   --header | --heade | --head | --hea )
  10186     $ac_shift
  10187     case $ac_optarg in
  10188     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10189     esac
  10190     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10191     ac_need_defaults=false;;
  10192   --he | --h)
  10193     # Conflict between --help and --header
  10194     as_fn_error $? "ambiguous option: \`$1'
  10195 Try \`$0 --help' for more information.";;
  10196   --help | --hel | -h )
  10197     printf "%s\n" "$ac_cs_usage"; exit ;;
  10198   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10199   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10200     ac_cs_silent=: ;;
  10201 
  10202   # This is an error.
  10203   -*) as_fn_error $? "unrecognized option: \`$1'
  10204 Try \`$0 --help' for more information." ;;
  10205 
  10206   *) as_fn_append ac_config_targets " $1"
  10207      ac_need_defaults=false ;;
  10208 
  10209   esac
  10210   shift
  10211 done
  10212 
  10213 ac_configure_extra_args=
  10214 
  10215 if $ac_cs_silent; then
  10216   exec 6>/dev/null
  10217   ac_configure_extra_args="$ac_configure_extra_args --silent"
  10218 fi
  10219 
  10220 _ACEOF
  10221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10222 if \$ac_cs_recheck; then
  10223   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10224   shift
  10225   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  10226   CONFIG_SHELL='$SHELL'
  10227   export CONFIG_SHELL
  10228   exec "\$@"
  10229 fi
  10230 
  10231 _ACEOF
  10232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10233 exec 5>>config.log
  10234 {
  10235   echo
  10236   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10237 ## Running $as_me. ##
  10238 _ASBOX
  10239   printf "%s\n" "$ac_log"
  10240 } >&5
  10241 
  10242 _ACEOF
  10243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10244 _ACEOF
  10245 
  10246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10247 
  10248 # Handling of arguments.
  10249 for ac_config_target in $ac_config_targets
  10250 do
  10251   case $ac_config_target in
  10252     "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
  10253     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10254     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10255     "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
  10256     "src/modules/chanmodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
  10257     "src/modules/usermodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
  10258     "src/modules/extbans/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/extbans/Makefile" ;;
  10259     "src/modules/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/rpc/Makefile" ;;
  10260     "src/modules/third/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/third/Makefile" ;;
  10261     "extras/unrealircd-upgrade-script") CONFIG_FILES="$CONFIG_FILES extras/unrealircd-upgrade-script" ;;
  10262     "unrealircd") CONFIG_FILES="$CONFIG_FILES unrealircd" ;;
  10263 
  10264   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10265   esac
  10266 done
  10267 
  10268 
  10269 # If the user did not use the arguments to specify the items to instantiate,
  10270 # then the envvar interface is used.  Set only those that are not.
  10271 # We use the long form for the default assignment because of an extremely
  10272 # bizarre bug on SunOS 4.1.3.
  10273 if $ac_need_defaults; then
  10274   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  10275   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  10276 fi
  10277 
  10278 # Have a temporary directory for convenience.  Make it in the build tree
  10279 # simply because there is no reason against having it here, and in addition,
  10280 # creating and moving files from /tmp can sometimes cause problems.
  10281 # Hook for its removal unless debugging.
  10282 # Note that there is a small window in which the directory will not be cleaned:
  10283 # after its creation but before its name has been assigned to `$tmp'.
  10284 $debug ||
  10285 {
  10286   tmp= ac_tmp=
  10287   trap 'exit_status=$?
  10288   : "${ac_tmp:=$tmp}"
  10289   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10290 ' 0
  10291   trap 'as_fn_exit 1' 1 2 13 15
  10292 }
  10293 # Create a (secure) tmp directory for tmp files.
  10294 
  10295 {
  10296   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10297   test -d "$tmp"
  10298 }  ||
  10299 {
  10300   tmp=./conf$$-$RANDOM
  10301   (umask 077 && mkdir "$tmp")
  10302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10303 ac_tmp=$tmp
  10304 
  10305 # Set up the scripts for CONFIG_FILES section.
  10306 # No need to generate them if there are no CONFIG_FILES.
  10307 # This happens for instance with `./config.status config.h'.
  10308 if test -n "$CONFIG_FILES"; then
  10309 
  10310 
  10311 ac_cr=`echo X | tr X '\015'`
  10312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10313 # But we know of no other shell where ac_cr would be empty at this
  10314 # point, so we can use a bashism as a fallback.
  10315 if test "x$ac_cr" = x; then
  10316   eval ac_cr=\$\'\\r\'
  10317 fi
  10318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10320   ac_cs_awk_cr='\\r'
  10321 else
  10322   ac_cs_awk_cr=$ac_cr
  10323 fi
  10324 
  10325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10326 _ACEOF
  10327 
  10328 
  10329 {
  10330   echo "cat >conf$$subs.awk <<_ACEOF" &&
  10331   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10332   echo "_ACEOF"
  10333 } >conf$$subs.sh ||
  10334   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10336 ac_delim='%!_!# '
  10337 for ac_last_try in false false false false false :; do
  10338   . ./conf$$subs.sh ||
  10339     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10340 
  10341   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10342   if test $ac_delim_n = $ac_delim_num; then
  10343     break
  10344   elif $ac_last_try; then
  10345     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10346   else
  10347     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10348   fi
  10349 done
  10350 rm -f conf$$subs.sh
  10351 
  10352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10354 _ACEOF
  10355 sed -n '
  10356 h
  10357 s/^/S["/; s/!.*/"]=/
  10358 p
  10359 g
  10360 s/^[^!]*!//
  10361 :repl
  10362 t repl
  10363 s/'"$ac_delim"'$//
  10364 t delim
  10365 :nl
  10366 h
  10367 s/\(.\{148\}\)..*/\1/
  10368 t more1
  10369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10370 p
  10371 n
  10372 b repl
  10373 :more1
  10374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10375 p
  10376 g
  10377 s/.\{148\}//
  10378 t nl
  10379 :delim
  10380 h
  10381 s/\(.\{148\}\)..*/\1/
  10382 t more2
  10383 s/["\\]/\\&/g; s/^/"/; s/$/"/
  10384 p
  10385 b
  10386 :more2
  10387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10388 p
  10389 g
  10390 s/.\{148\}//
  10391 t delim
  10392 ' <conf$$subs.awk | sed '
  10393 /^[^""]/{
  10394   N
  10395   s/\n//
  10396 }
  10397 ' >>$CONFIG_STATUS || ac_write_fail=1
  10398 rm -f conf$$subs.awk
  10399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10400 _ACAWK
  10401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10402   for (key in S) S_is_set[key] = 1
  10403   FS = ""
  10404 
  10405 }
  10406 {
  10407   line = $ 0
  10408   nfields = split(line, field, "@")
  10409   substed = 0
  10410   len = length(field[1])
  10411   for (i = 2; i < nfields; i++) {
  10412     key = field[i]
  10413     keylen = length(key)
  10414     if (S_is_set[key]) {
  10415       value = S[key]
  10416       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10417       len += length(value) + length(field[++i])
  10418       substed = 1
  10419     } else
  10420       len += 1 + keylen
  10421   }
  10422 
  10423   print line
  10424 }
  10425 
  10426 _ACAWK
  10427 _ACEOF
  10428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10430   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10431 else
  10432   cat
  10433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10434   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10435 _ACEOF
  10436 
  10437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10439 # trailing colons and then remove the whole line if VPATH becomes empty
  10440 # (actually we leave an empty line to preserve line numbers).
  10441 if test "x$srcdir" = x.; then
  10442   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  10443 h
  10444 s///
  10445 s/^/:/
  10446 s/[	 ]*$/:/
  10447 s/:\$(srcdir):/:/g
  10448 s/:\${srcdir}:/:/g
  10449 s/:@srcdir@:/:/g
  10450 s/^:*//
  10451 s/:*$//
  10452 x
  10453 s/\(=[	 ]*\).*/\1/
  10454 G
  10455 s/\n//
  10456 s/^[^=]*=[	 ]*$//
  10457 }'
  10458 fi
  10459 
  10460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10461 fi # test -n "$CONFIG_FILES"
  10462 
  10463 # Set up the scripts for CONFIG_HEADERS section.
  10464 # No need to generate them if there are no CONFIG_HEADERS.
  10465 # This happens for instance with `./config.status Makefile'.
  10466 if test -n "$CONFIG_HEADERS"; then
  10467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10468 BEGIN {
  10469 _ACEOF
  10470 
  10471 # Transform confdefs.h into an awk script `defines.awk', embedded as
  10472 # here-document in config.status, that substitutes the proper values into
  10473 # config.h.in to produce config.h.
  10474 
  10475 # Create a delimiter string that does not exist in confdefs.h, to ease
  10476 # handling of long lines.
  10477 ac_delim='%!_!# '
  10478 for ac_last_try in false false :; do
  10479   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10480   if test -z "$ac_tt"; then
  10481     break
  10482   elif $ac_last_try; then
  10483     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10484   else
  10485     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10486   fi
  10487 done
  10488 
  10489 # For the awk script, D is an array of macro values keyed by name,
  10490 # likewise P contains macro parameters if any.  Preserve backslash
  10491 # newline sequences.
  10492 
  10493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10494 sed -n '
  10495 s/.\{148\}/&'"$ac_delim"'/g
  10496 t rset
  10497 :rset
  10498 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
  10499 t def
  10500 d
  10501 :def
  10502 s/\\$//
  10503 t bsnl
  10504 s/["\\]/\\&/g
  10505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  10506 D["\1"]=" \3"/p
  10507 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
  10508 d
  10509 :bsnl
  10510 s/["\\]/\\&/g
  10511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  10512 D["\1"]=" \3\\\\\\n"\\/p
  10513 t cont
  10514 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10515 t cont
  10516 d
  10517 :cont
  10518 n
  10519 s/.\{148\}/&'"$ac_delim"'/g
  10520 t clear
  10521 :clear
  10522 s/\\$//
  10523 t bsnlc
  10524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10525 d
  10526 :bsnlc
  10527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10528 b cont
  10529 ' <confdefs.h | sed '
  10530 s/'"$ac_delim"'/"\\\
  10531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10532 
  10533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10534   for (key in D) D_is_set[key] = 1
  10535   FS = ""
  10536 }
  10537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10538   line = \$ 0
  10539   split(line, arg, " ")
  10540   if (arg[1] == "#") {
  10541     defundef = arg[2]
  10542     mac1 = arg[3]
  10543   } else {
  10544     defundef = substr(arg[1], 2)
  10545     mac1 = arg[2]
  10546   }
  10547   split(mac1, mac2, "(") #)
  10548   macro = mac2[1]
  10549   prefix = substr(line, 1, index(line, defundef) - 1)
  10550   if (D_is_set[macro]) {
  10551     # Preserve the white space surrounding the "#".
  10552     print prefix "define", macro P[macro] D[macro]
  10553     next
  10554   } else {
  10555     # Replace #undef with comments.  This is necessary, for example,
  10556     # in the case of _POSIX_SOURCE, which is predefined and required
  10557     # on some systems where configure will not decide to define it.
  10558     if (defundef == "undef") {
  10559       print "/*", prefix defundef, macro, "*/"
  10560       next
  10561     }
  10562   }
  10563 }
  10564 { print }
  10565 _ACAWK
  10566 _ACEOF
  10567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10568   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10569 fi # test -n "$CONFIG_HEADERS"
  10570 
  10571 
  10572 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
  10573 shift
  10574 for ac_tag
  10575 do
  10576   case $ac_tag in
  10577   :[FHLC]) ac_mode=$ac_tag; continue;;
  10578   esac
  10579   case $ac_mode$ac_tag in
  10580   :[FHL]*:*);;
  10581   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10582   :[FH]-) ac_tag=-:-;;
  10583   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10584   esac
  10585   ac_save_IFS=$IFS
  10586   IFS=:
  10587   set x $ac_tag
  10588   IFS=$ac_save_IFS
  10589   shift
  10590   ac_file=$1
  10591   shift
  10592 
  10593   case $ac_mode in
  10594   :L) ac_source=$1;;
  10595   :[FH])
  10596     ac_file_inputs=
  10597     for ac_f
  10598     do
  10599       case $ac_f in
  10600       -) ac_f="$ac_tmp/stdin";;
  10601       *) # Look for the file first in the build tree, then in the source tree
  10602 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  10603 	 # because $ac_f cannot contain `:'.
  10604 	 test -f "$ac_f" ||
  10605 	   case $ac_f in
  10606 	   [\\/$]*) false;;
  10607 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10608 	   esac ||
  10609 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10610       esac
  10611       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10612       as_fn_append ac_file_inputs " '$ac_f'"
  10613     done
  10614 
  10615     # Let's still pretend it is `configure' which instantiates (i.e., don't
  10616     # use $as_me), people would be surprised to read:
  10617     #    /* config.h.  Generated by config.status.  */
  10618     configure_input='Generated from '`
  10619 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10620 	`' by configure.'
  10621     if test x"$ac_file" != x-; then
  10622       configure_input="$ac_file.  $configure_input"
  10623       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10624 printf "%s\n" "$as_me: creating $ac_file" >&6;}
  10625     fi
  10626     # Neutralize special characters interpreted by sed in replacement strings.
  10627     case $configure_input in #(
  10628     *\&* | *\|* | *\\* )
  10629        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  10630        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10631     *) ac_sed_conf_input=$configure_input;;
  10632     esac
  10633 
  10634     case $ac_tag in
  10635     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10636       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10637     esac
  10638     ;;
  10639   esac
  10640 
  10641   ac_dir=`$as_dirname -- "$ac_file" ||
  10642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10643 	 X"$ac_file" : 'X\(//\)[^/]' \| \
  10644 	 X"$ac_file" : 'X\(//\)$' \| \
  10645 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10646 printf "%s\n" X"$ac_file" |
  10647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10648 	    s//\1/
  10649 	    q
  10650 	  }
  10651 	  /^X\(\/\/\)[^/].*/{
  10652 	    s//\1/
  10653 	    q
  10654 	  }
  10655 	  /^X\(\/\/\)$/{
  10656 	    s//\1/
  10657 	    q
  10658 	  }
  10659 	  /^X\(\/\).*/{
  10660 	    s//\1/
  10661 	    q
  10662 	  }
  10663 	  s/.*/./; q'`
  10664   as_dir="$ac_dir"; as_fn_mkdir_p
  10665   ac_builddir=.
  10666 
  10667 case "$ac_dir" in
  10668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10669 *)
  10670   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  10671   # A ".." for each directory in $ac_dir_suffix.
  10672   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10673   case $ac_top_builddir_sub in
  10674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10676   esac ;;
  10677 esac
  10678 ac_abs_top_builddir=$ac_pwd
  10679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10680 # for backward compatibility:
  10681 ac_top_builddir=$ac_top_build_prefix
  10682 
  10683 case $srcdir in
  10684   .)  # We are building in place.
  10685     ac_srcdir=.
  10686     ac_top_srcdir=$ac_top_builddir_sub
  10687     ac_abs_top_srcdir=$ac_pwd ;;
  10688   [\\/]* | ?:[\\/]* )  # Absolute name.
  10689     ac_srcdir=$srcdir$ac_dir_suffix;
  10690     ac_top_srcdir=$srcdir
  10691     ac_abs_top_srcdir=$srcdir ;;
  10692   *) # Relative name.
  10693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10694     ac_top_srcdir=$ac_top_build_prefix$srcdir
  10695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10696 esac
  10697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10698 
  10699 
  10700   case $ac_mode in
  10701   :F)
  10702   #
  10703   # CONFIG_FILE
  10704   #
  10705 
  10706 _ACEOF
  10707 
  10708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10709 # If the template does not know about datarootdir, expand it.
  10710 # FIXME: This hack should be removed a few years after 2.60.
  10711 ac_datarootdir_hack=; ac_datarootdir_seen=
  10712 ac_sed_dataroot='
  10713 /datarootdir/ {
  10714   p
  10715   q
  10716 }
  10717 /@datadir@/p
  10718 /@docdir@/p
  10719 /@infodir@/p
  10720 /@localedir@/p
  10721 /@mandir@/p'
  10722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10723 *datarootdir*) ac_datarootdir_seen=yes;;
  10724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10726 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10727 _ACEOF
  10728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10729   ac_datarootdir_hack='
  10730   s&@datadir@&$datadir&g
  10731   s&@docdir@&$docdir&g
  10732   s&@infodir@&$infodir&g
  10733   s&@localedir@&$localedir&g
  10734   s&@mandir@&$mandir&g
  10735   s&\\\${datarootdir}&$datarootdir&g' ;;
  10736 esac
  10737 _ACEOF
  10738 
  10739 # Neutralize VPATH when `$srcdir' = `.'.
  10740 # Shell code in configure.ac might set extrasub.
  10741 # FIXME: do we really want to maintain this feature?
  10742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10743 ac_sed_extra="$ac_vpsub
  10744 $extrasub
  10745 _ACEOF
  10746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10747 :t
  10748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10749 s|@configure_input@|$ac_sed_conf_input|;t t
  10750 s&@top_builddir@&$ac_top_builddir_sub&;t t
  10751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10752 s&@srcdir@&$ac_srcdir&;t t
  10753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10754 s&@top_srcdir@&$ac_top_srcdir&;t t
  10755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10756 s&@builddir@&$ac_builddir&;t t
  10757 s&@abs_builddir@&$ac_abs_builddir&;t t
  10758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10759 $ac_datarootdir_hack
  10760 "
  10761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10762   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10763 
  10764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10765   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10766   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  10767       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10769 which seems to be undefined.  Please make sure it is defined" >&5
  10770 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10771 which seems to be undefined.  Please make sure it is defined" >&2;}
  10772 
  10773   rm -f "$ac_tmp/stdin"
  10774   case $ac_file in
  10775   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10776   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10777   esac \
  10778   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10779  ;;
  10780   :H)
  10781   #
  10782   # CONFIG_HEADER
  10783   #
  10784   if test x"$ac_file" != x-; then
  10785     {
  10786       printf "%s\n" "/* $configure_input  */" >&1 \
  10787       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10788     } >"$ac_tmp/config.h" \
  10789       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10790     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10791       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10792 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  10793     else
  10794       rm -f "$ac_file"
  10795       mv "$ac_tmp/config.h" "$ac_file" \
  10796 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10797     fi
  10798   else
  10799     printf "%s\n" "/* $configure_input  */" >&1 \
  10800       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10801       || as_fn_error $? "could not create -" "$LINENO" 5
  10802   fi
  10803  ;;
  10804 
  10805 
  10806   esac
  10807 
  10808 done # for ac_tag
  10809 
  10810 
  10811 as_fn_exit 0
  10812 _ACEOF
  10813 ac_clean_files=$ac_clean_files_save
  10814 
  10815 test $ac_write_fail = 0 ||
  10816   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10817 
  10818 
  10819 # configure is writing to config.log, and then calls config.status.
  10820 # config.status does its own redirection, appending to config.log.
  10821 # Unfortunately, on DOS this fails, as config.log is still kept open
  10822 # by configure, so config.status won't be able to write to it; its
  10823 # output is simply discarded.  So we exec the FD to /dev/null,
  10824 # effectively closing config.log, so it can be properly (re)opened and
  10825 # appended to by config.status.  When coming back to configure, we
  10826 # need to make the FD available again.
  10827 if test "$no_create" != yes; then
  10828   ac_cs_success=:
  10829   ac_config_status_args=
  10830   test "$silent" = yes &&
  10831     ac_config_status_args="$ac_config_status_args --quiet"
  10832   exec 5>/dev/null
  10833   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10834   exec 5>>config.log
  10835   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10836   # would make configure fail if this is the last instruction.
  10837   $ac_cs_success || as_fn_exit 1
  10838 fi
  10839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10841 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10842 fi
  10843 
  10844 chmod 0700 unrealircd
  10845