File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / configure
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Jul 3 12:45:59 2012 UTC (11 years, 11 months ago) by misho
Branches: MAIN
CVS tags: mqtt1_3, MQTT1_2, HEAD
version 1.2
first MQTT service release!

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>