File:  [ELWIX - Embedded LightWeight unIX -] / libaitsync / configure
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Sun Apr 27 16:33:42 2014 UTC (10 years ago) by misho
Branches: MAIN
CVS tags: sync2_3, SYNC2_2, HEAD
version 2.2

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.69 for libaitsync 2.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='libaitsync'
  582: PACKAGE_TARNAME='libaitsync'
  583: PACKAGE_VERSION='2.2'
  584: PACKAGE_STRING='libaitsync 2.2'
  585: PACKAGE_BUGREPORT='misho@elwix.org'
  586: PACKAGE_URL=''
  587: 
  588: ac_unique_file="src/aitsync.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 libaitsync 2.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/libaitsync]
 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 libaitsync 2.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: libaitsync configure 2.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 libaitsync $as_me 2.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: 
 2174: ac_config_headers="$ac_config_headers inc/config.h"
 2175: 
 2176: 
 2177: ac_cv_func_malloc_0_nonnull="yes"
 2178: ac_cv_func_realloc_0_nonnull="yes"
 2179: 
 2180: # Checks for programs.
 2181: ac_ext=c
 2182: ac_cpp='$CPP $CPPFLAGS'
 2183: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2184: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2185: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2186: if test -n "$ac_tool_prefix"; then
 2187:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2188: set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2190: $as_echo_n "checking for $ac_word... " >&6; }
 2191: if ${ac_cv_prog_CC+:} false; then :
 2192:   $as_echo_n "(cached) " >&6
 2193: else
 2194:   if test -n "$CC"; then
 2195:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2196: else
 2197: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2198: for as_dir in $PATH
 2199: do
 2200:   IFS=$as_save_IFS
 2201:   test -z "$as_dir" && as_dir=.
 2202:     for ac_exec_ext in '' $ac_executable_extensions; do
 2203:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2204:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2205:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2206:     break 2
 2207:   fi
 2208: done
 2209:   done
 2210: IFS=$as_save_IFS
 2211: 
 2212: fi
 2213: fi
 2214: CC=$ac_cv_prog_CC
 2215: if test -n "$CC"; then
 2216:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2217: $as_echo "$CC" >&6; }
 2218: else
 2219:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2220: $as_echo "no" >&6; }
 2221: fi
 2222: 
 2223: 
 2224: fi
 2225: if test -z "$ac_cv_prog_CC"; then
 2226:   ac_ct_CC=$CC
 2227:   # Extract the first word of "gcc", so it can be a program name with args.
 2228: set dummy gcc; ac_word=$2
 2229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2230: $as_echo_n "checking for $ac_word... " >&6; }
 2231: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2232:   $as_echo_n "(cached) " >&6
 2233: else
 2234:   if test -n "$ac_ct_CC"; then
 2235:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2236: else
 2237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2238: for as_dir in $PATH
 2239: do
 2240:   IFS=$as_save_IFS
 2241:   test -z "$as_dir" && as_dir=.
 2242:     for ac_exec_ext in '' $ac_executable_extensions; do
 2243:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2244:     ac_cv_prog_ac_ct_CC="gcc"
 2245:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2246:     break 2
 2247:   fi
 2248: done
 2249:   done
 2250: IFS=$as_save_IFS
 2251: 
 2252: fi
 2253: fi
 2254: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2255: if test -n "$ac_ct_CC"; then
 2256:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2257: $as_echo "$ac_ct_CC" >&6; }
 2258: else
 2259:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2260: $as_echo "no" >&6; }
 2261: fi
 2262: 
 2263:   if test "x$ac_ct_CC" = x; then
 2264:     CC=""
 2265:   else
 2266:     case $cross_compiling:$ac_tool_warned in
 2267: yes:)
 2268: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2269: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2270: ac_tool_warned=yes ;;
 2271: esac
 2272:     CC=$ac_ct_CC
 2273:   fi
 2274: else
 2275:   CC="$ac_cv_prog_CC"
 2276: fi
 2277: 
 2278: if test -z "$CC"; then
 2279:           if test -n "$ac_tool_prefix"; then
 2280:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2281: set dummy ${ac_tool_prefix}cc; ac_word=$2
 2282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2283: $as_echo_n "checking for $ac_word... " >&6; }
 2284: if ${ac_cv_prog_CC+:} false; then :
 2285:   $as_echo_n "(cached) " >&6
 2286: else
 2287:   if test -n "$CC"; then
 2288:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2289: else
 2290: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2291: for as_dir in $PATH
 2292: do
 2293:   IFS=$as_save_IFS
 2294:   test -z "$as_dir" && as_dir=.
 2295:     for ac_exec_ext in '' $ac_executable_extensions; do
 2296:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2297:     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2298:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2299:     break 2
 2300:   fi
 2301: done
 2302:   done
 2303: IFS=$as_save_IFS
 2304: 
 2305: fi
 2306: fi
 2307: CC=$ac_cv_prog_CC
 2308: if test -n "$CC"; then
 2309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2310: $as_echo "$CC" >&6; }
 2311: else
 2312:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2313: $as_echo "no" >&6; }
 2314: fi
 2315: 
 2316: 
 2317:   fi
 2318: fi
 2319: if test -z "$CC"; then
 2320:   # Extract the first word of "cc", so it can be a program name with args.
 2321: set dummy cc; ac_word=$2
 2322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2323: $as_echo_n "checking for $ac_word... " >&6; }
 2324: if ${ac_cv_prog_CC+:} false; then :
 2325:   $as_echo_n "(cached) " >&6
 2326: else
 2327:   if test -n "$CC"; then
 2328:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2329: else
 2330:   ac_prog_rejected=no
 2331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2332: for as_dir in $PATH
 2333: do
 2334:   IFS=$as_save_IFS
 2335:   test -z "$as_dir" && as_dir=.
 2336:     for ac_exec_ext in '' $ac_executable_extensions; do
 2337:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2338:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2339:        ac_prog_rejected=yes
 2340:        continue
 2341:      fi
 2342:     ac_cv_prog_CC="cc"
 2343:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2344:     break 2
 2345:   fi
 2346: done
 2347:   done
 2348: IFS=$as_save_IFS
 2349: 
 2350: if test $ac_prog_rejected = yes; then
 2351:   # We found a bogon in the path, so make sure we never use it.
 2352:   set dummy $ac_cv_prog_CC
 2353:   shift
 2354:   if test $# != 0; then
 2355:     # We chose a different compiler from the bogus one.
 2356:     # However, it has the same basename, so the bogon will be chosen
 2357:     # first if we set CC to just the basename; use the full file name.
 2358:     shift
 2359:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2360:   fi
 2361: fi
 2362: fi
 2363: fi
 2364: CC=$ac_cv_prog_CC
 2365: if test -n "$CC"; then
 2366:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2367: $as_echo "$CC" >&6; }
 2368: else
 2369:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2370: $as_echo "no" >&6; }
 2371: fi
 2372: 
 2373: 
 2374: fi
 2375: if test -z "$CC"; then
 2376:   if test -n "$ac_tool_prefix"; then
 2377:   for ac_prog in cl.exe
 2378:   do
 2379:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2380: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2382: $as_echo_n "checking for $ac_word... " >&6; }
 2383: if ${ac_cv_prog_CC+:} false; then :
 2384:   $as_echo_n "(cached) " >&6
 2385: else
 2386:   if test -n "$CC"; then
 2387:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2388: else
 2389: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2390: for as_dir in $PATH
 2391: do
 2392:   IFS=$as_save_IFS
 2393:   test -z "$as_dir" && as_dir=.
 2394:     for ac_exec_ext in '' $ac_executable_extensions; do
 2395:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2396:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2397:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2398:     break 2
 2399:   fi
 2400: done
 2401:   done
 2402: IFS=$as_save_IFS
 2403: 
 2404: fi
 2405: fi
 2406: CC=$ac_cv_prog_CC
 2407: if test -n "$CC"; then
 2408:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2409: $as_echo "$CC" >&6; }
 2410: else
 2411:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2412: $as_echo "no" >&6; }
 2413: fi
 2414: 
 2415: 
 2416:     test -n "$CC" && break
 2417:   done
 2418: fi
 2419: if test -z "$CC"; then
 2420:   ac_ct_CC=$CC
 2421:   for ac_prog in cl.exe
 2422: do
 2423:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2424: set dummy $ac_prog; ac_word=$2
 2425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2426: $as_echo_n "checking for $ac_word... " >&6; }
 2427: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2428:   $as_echo_n "(cached) " >&6
 2429: else
 2430:   if test -n "$ac_ct_CC"; then
 2431:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2432: else
 2433: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2434: for as_dir in $PATH
 2435: do
 2436:   IFS=$as_save_IFS
 2437:   test -z "$as_dir" && as_dir=.
 2438:     for ac_exec_ext in '' $ac_executable_extensions; do
 2439:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2440:     ac_cv_prog_ac_ct_CC="$ac_prog"
 2441:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2442:     break 2
 2443:   fi
 2444: done
 2445:   done
 2446: IFS=$as_save_IFS
 2447: 
 2448: fi
 2449: fi
 2450: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2451: if test -n "$ac_ct_CC"; then
 2452:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2453: $as_echo "$ac_ct_CC" >&6; }
 2454: else
 2455:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2456: $as_echo "no" >&6; }
 2457: fi
 2458: 
 2459: 
 2460:   test -n "$ac_ct_CC" && break
 2461: done
 2462: 
 2463:   if test "x$ac_ct_CC" = x; then
 2464:     CC=""
 2465:   else
 2466:     case $cross_compiling:$ac_tool_warned in
 2467: yes:)
 2468: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2469: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2470: ac_tool_warned=yes ;;
 2471: esac
 2472:     CC=$ac_ct_CC
 2473:   fi
 2474: fi
 2475: 
 2476: fi
 2477: 
 2478: 
 2479: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2480: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2481: as_fn_error $? "no acceptable C compiler found in \$PATH
 2482: See \`config.log' for more details" "$LINENO" 5; }
 2483: 
 2484: # Provide some information about the compiler.
 2485: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2486: set X $ac_compile
 2487: ac_compiler=$2
 2488: for ac_option in --version -v -V -qversion; do
 2489:   { { ac_try="$ac_compiler $ac_option >&5"
 2490: case "(($ac_try" in
 2491:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2492:   *) ac_try_echo=$ac_try;;
 2493: esac
 2494: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2495: $as_echo "$ac_try_echo"; } >&5
 2496:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2497:   ac_status=$?
 2498:   if test -s conftest.err; then
 2499:     sed '10a\
 2500: ... rest of stderr output deleted ...
 2501:          10q' conftest.err >conftest.er1
 2502:     cat conftest.er1 >&5
 2503:   fi
 2504:   rm -f conftest.er1 conftest.err
 2505:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2506:   test $ac_status = 0; }
 2507: done
 2508: 
 2509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2510: /* end confdefs.h.  */
 2511: 
 2512: int
 2513: main ()
 2514: {
 2515: 
 2516:   ;
 2517:   return 0;
 2518: }
 2519: _ACEOF
 2520: ac_clean_files_save=$ac_clean_files
 2521: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2522: # Try to create an executable without -o first, disregard a.out.
 2523: # It will help us diagnose broken compilers, and finding out an intuition
 2524: # of exeext.
 2525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2526: $as_echo_n "checking whether the C compiler works... " >&6; }
 2527: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2528: 
 2529: # The possible output files:
 2530: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2531: 
 2532: ac_rmfiles=
 2533: for ac_file in $ac_files
 2534: do
 2535:   case $ac_file in
 2536:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2537:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2538:   esac
 2539: done
 2540: rm -f $ac_rmfiles
 2541: 
 2542: if { { ac_try="$ac_link_default"
 2543: case "(($ac_try" in
 2544:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2545:   *) ac_try_echo=$ac_try;;
 2546: esac
 2547: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2548: $as_echo "$ac_try_echo"; } >&5
 2549:   (eval "$ac_link_default") 2>&5
 2550:   ac_status=$?
 2551:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2552:   test $ac_status = 0; }; then :
 2553:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2554: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2555: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2556: # so that the user can short-circuit this test for compilers unknown to
 2557: # Autoconf.
 2558: for ac_file in $ac_files ''
 2559: do
 2560:   test -f "$ac_file" || continue
 2561:   case $ac_file in
 2562:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2563: 	;;
 2564:     [ab].out )
 2565: 	# We found the default executable, but exeext='' is most
 2566: 	# certainly right.
 2567: 	break;;
 2568:     *.* )
 2569: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2570: 	then :; else
 2571: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2572: 	fi
 2573: 	# We set ac_cv_exeext here because the later test for it is not
 2574: 	# safe: cross compilers may not add the suffix if given an `-o'
 2575: 	# argument, so we may need to know it at that point already.
 2576: 	# Even if this section looks crufty: it has the advantage of
 2577: 	# actually working.
 2578: 	break;;
 2579:     * )
 2580: 	break;;
 2581:   esac
 2582: done
 2583: test "$ac_cv_exeext" = no && ac_cv_exeext=
 2584: 
 2585: else
 2586:   ac_file=''
 2587: fi
 2588: if test -z "$ac_file"; then :
 2589:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2590: $as_echo "no" >&6; }
 2591: $as_echo "$as_me: failed program was:" >&5
 2592: sed 's/^/| /' conftest.$ac_ext >&5
 2593: 
 2594: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2595: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2596: as_fn_error 77 "C compiler cannot create executables
 2597: See \`config.log' for more details" "$LINENO" 5; }
 2598: else
 2599:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2600: $as_echo "yes" >&6; }
 2601: fi
 2602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 2603: $as_echo_n "checking for C compiler default output file name... " >&6; }
 2604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 2605: $as_echo "$ac_file" >&6; }
 2606: ac_exeext=$ac_cv_exeext
 2607: 
 2608: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 2609: ac_clean_files=$ac_clean_files_save
 2610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 2611: $as_echo_n "checking for suffix of executables... " >&6; }
 2612: if { { ac_try="$ac_link"
 2613: case "(($ac_try" in
 2614:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2615:   *) ac_try_echo=$ac_try;;
 2616: esac
 2617: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2618: $as_echo "$ac_try_echo"; } >&5
 2619:   (eval "$ac_link") 2>&5
 2620:   ac_status=$?
 2621:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2622:   test $ac_status = 0; }; then :
 2623:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2624: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2625: # work properly (i.e., refer to `conftest.exe'), while it won't with
 2626: # `rm'.
 2627: for ac_file in conftest.exe conftest conftest.*; do
 2628:   test -f "$ac_file" || continue
 2629:   case $ac_file in
 2630:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2631:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2632: 	  break;;
 2633:     * ) break;;
 2634:   esac
 2635: done
 2636: else
 2637:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2638: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2639: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 2640: See \`config.log' for more details" "$LINENO" 5; }
 2641: fi
 2642: rm -f conftest conftest$ac_cv_exeext
 2643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 2644: $as_echo "$ac_cv_exeext" >&6; }
 2645: 
 2646: rm -f conftest.$ac_ext
 2647: EXEEXT=$ac_cv_exeext
 2648: ac_exeext=$EXEEXT
 2649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2650: /* end confdefs.h.  */
 2651: #include <stdio.h>
 2652: int
 2653: main ()
 2654: {
 2655: FILE *f = fopen ("conftest.out", "w");
 2656:  return ferror (f) || fclose (f) != 0;
 2657: 
 2658:   ;
 2659:   return 0;
 2660: }
 2661: _ACEOF
 2662: ac_clean_files="$ac_clean_files conftest.out"
 2663: # Check that the compiler produces executables we can run.  If not, either
 2664: # the compiler is broken, or we cross compile.
 2665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 2666: $as_echo_n "checking whether we are cross compiling... " >&6; }
 2667: if test "$cross_compiling" != yes; then
 2668:   { { ac_try="$ac_link"
 2669: case "(($ac_try" in
 2670:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2671:   *) ac_try_echo=$ac_try;;
 2672: esac
 2673: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2674: $as_echo "$ac_try_echo"; } >&5
 2675:   (eval "$ac_link") 2>&5
 2676:   ac_status=$?
 2677:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2678:   test $ac_status = 0; }
 2679:   if { ac_try='./conftest$ac_cv_exeext'
 2680:   { { case "(($ac_try" in
 2681:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2682:   *) ac_try_echo=$ac_try;;
 2683: esac
 2684: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2685: $as_echo "$ac_try_echo"; } >&5
 2686:   (eval "$ac_try") 2>&5
 2687:   ac_status=$?
 2688:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2689:   test $ac_status = 0; }; }; then
 2690:     cross_compiling=no
 2691:   else
 2692:     if test "$cross_compiling" = maybe; then
 2693: 	cross_compiling=yes
 2694:     else
 2695: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2696: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2697: as_fn_error $? "cannot run C compiled programs.
 2698: If you meant to cross compile, use \`--host'.
 2699: See \`config.log' for more details" "$LINENO" 5; }
 2700:     fi
 2701:   fi
 2702: fi
 2703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 2704: $as_echo "$cross_compiling" >&6; }
 2705: 
 2706: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 2707: ac_clean_files=$ac_clean_files_save
 2708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 2709: $as_echo_n "checking for suffix of object files... " >&6; }
 2710: if ${ac_cv_objext+:} false; then :
 2711:   $as_echo_n "(cached) " >&6
 2712: else
 2713:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2714: /* end confdefs.h.  */
 2715: 
 2716: int
 2717: main ()
 2718: {
 2719: 
 2720:   ;
 2721:   return 0;
 2722: }
 2723: _ACEOF
 2724: rm -f conftest.o conftest.obj
 2725: if { { ac_try="$ac_compile"
 2726: case "(($ac_try" in
 2727:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2728:   *) ac_try_echo=$ac_try;;
 2729: esac
 2730: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2731: $as_echo "$ac_try_echo"; } >&5
 2732:   (eval "$ac_compile") 2>&5
 2733:   ac_status=$?
 2734:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2735:   test $ac_status = 0; }; then :
 2736:   for ac_file in conftest.o conftest.obj conftest.*; do
 2737:   test -f "$ac_file" || continue;
 2738:   case $ac_file in
 2739:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 2740:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 2741:        break;;
 2742:   esac
 2743: done
 2744: else
 2745:   $as_echo "$as_me: failed program was:" >&5
 2746: sed 's/^/| /' conftest.$ac_ext >&5
 2747: 
 2748: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2749: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2750: as_fn_error $? "cannot compute suffix of object files: cannot compile
 2751: See \`config.log' for more details" "$LINENO" 5; }
 2752: fi
 2753: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 2754: fi
 2755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 2756: $as_echo "$ac_cv_objext" >&6; }
 2757: OBJEXT=$ac_cv_objext
 2758: ac_objext=$OBJEXT
 2759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 2760: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 2761: if ${ac_cv_c_compiler_gnu+:} false; then :
 2762:   $as_echo_n "(cached) " >&6
 2763: else
 2764:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2765: /* end confdefs.h.  */
 2766: 
 2767: int
 2768: main ()
 2769: {
 2770: #ifndef __GNUC__
 2771:        choke me
 2772: #endif
 2773: 
 2774:   ;
 2775:   return 0;
 2776: }
 2777: _ACEOF
 2778: if ac_fn_c_try_compile "$LINENO"; then :
 2779:   ac_compiler_gnu=yes
 2780: else
 2781:   ac_compiler_gnu=no
 2782: fi
 2783: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2784: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 2785: 
 2786: fi
 2787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 2788: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 2789: if test $ac_compiler_gnu = yes; then
 2790:   GCC=yes
 2791: else
 2792:   GCC=
 2793: fi
 2794: ac_test_CFLAGS=${CFLAGS+set}
 2795: ac_save_CFLAGS=$CFLAGS
 2796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 2797: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 2798: if ${ac_cv_prog_cc_g+:} false; then :
 2799:   $as_echo_n "(cached) " >&6
 2800: else
 2801:   ac_save_c_werror_flag=$ac_c_werror_flag
 2802:    ac_c_werror_flag=yes
 2803:    ac_cv_prog_cc_g=no
 2804:    CFLAGS="-g"
 2805:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2806: /* end confdefs.h.  */
 2807: 
 2808: int
 2809: main ()
 2810: {
 2811: 
 2812:   ;
 2813:   return 0;
 2814: }
 2815: _ACEOF
 2816: if ac_fn_c_try_compile "$LINENO"; then :
 2817:   ac_cv_prog_cc_g=yes
 2818: else
 2819:   CFLAGS=""
 2820:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2821: /* end confdefs.h.  */
 2822: 
 2823: int
 2824: main ()
 2825: {
 2826: 
 2827:   ;
 2828:   return 0;
 2829: }
 2830: _ACEOF
 2831: if ac_fn_c_try_compile "$LINENO"; then :
 2832: 
 2833: else
 2834:   ac_c_werror_flag=$ac_save_c_werror_flag
 2835: 	 CFLAGS="-g"
 2836: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2837: /* end confdefs.h.  */
 2838: 
 2839: int
 2840: main ()
 2841: {
 2842: 
 2843:   ;
 2844:   return 0;
 2845: }
 2846: _ACEOF
 2847: if ac_fn_c_try_compile "$LINENO"; then :
 2848:   ac_cv_prog_cc_g=yes
 2849: fi
 2850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2851: fi
 2852: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2853: fi
 2854: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2855:    ac_c_werror_flag=$ac_save_c_werror_flag
 2856: fi
 2857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 2858: $as_echo "$ac_cv_prog_cc_g" >&6; }
 2859: if test "$ac_test_CFLAGS" = set; then
 2860:   CFLAGS=$ac_save_CFLAGS
 2861: elif test $ac_cv_prog_cc_g = yes; then
 2862:   if test "$GCC" = yes; then
 2863:     CFLAGS="-g -O2"
 2864:   else
 2865:     CFLAGS="-g"
 2866:   fi
 2867: else
 2868:   if test "$GCC" = yes; then
 2869:     CFLAGS="-O2"
 2870:   else
 2871:     CFLAGS=
 2872:   fi
 2873: fi
 2874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 2875: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 2876: if ${ac_cv_prog_cc_c89+:} false; then :
 2877:   $as_echo_n "(cached) " >&6
 2878: else
 2879:   ac_cv_prog_cc_c89=no
 2880: ac_save_CC=$CC
 2881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2882: /* end confdefs.h.  */
 2883: #include <stdarg.h>
 2884: #include <stdio.h>
 2885: struct stat;
 2886: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2887: struct buf { int x; };
 2888: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2889: static char *e (p, i)
 2890:      char **p;
 2891:      int i;
 2892: {
 2893:   return p[i];
 2894: }
 2895: static char *f (char * (*g) (char **, int), char **p, ...)
 2896: {
 2897:   char *s;
 2898:   va_list v;
 2899:   va_start (v,p);
 2900:   s = g (p, va_arg (v,int));
 2901:   va_end (v);
 2902:   return s;
 2903: }
 2904: 
 2905: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 2906:    function prototypes and stuff, but not '\xHH' hex character constants.
 2907:    These don't provoke an error unfortunately, instead are silently treated
 2908:    as 'x'.  The following induces an error, until -std is added to get
 2909:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 2910:    array size at least.  It's necessary to write '\x00'==0 to get something
 2911:    that's true only with -std.  */
 2912: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 2913: 
 2914: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 2915:    inside strings and character constants.  */
 2916: #define FOO(x) 'x'
 2917: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 2918: 
 2919: int test (int i, double x);
 2920: struct s1 {int (*f) (int a);};
 2921: struct s2 {int (*f) (double a);};
 2922: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 2923: int argc;
 2924: char **argv;
 2925: int
 2926: main ()
 2927: {
 2928: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 2929:   ;
 2930:   return 0;
 2931: }
 2932: _ACEOF
 2933: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 2934: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 2935: do
 2936:   CC="$ac_save_CC $ac_arg"
 2937:   if ac_fn_c_try_compile "$LINENO"; then :
 2938:   ac_cv_prog_cc_c89=$ac_arg
 2939: fi
 2940: rm -f core conftest.err conftest.$ac_objext
 2941:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 2942: done
 2943: rm -f conftest.$ac_ext
 2944: CC=$ac_save_CC
 2945: 
 2946: fi
 2947: # AC_CACHE_VAL
 2948: case "x$ac_cv_prog_cc_c89" in
 2949:   x)
 2950:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 2951: $as_echo "none needed" >&6; } ;;
 2952:   xno)
 2953:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 2954: $as_echo "unsupported" >&6; } ;;
 2955:   *)
 2956:     CC="$CC $ac_cv_prog_cc_c89"
 2957:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 2958: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 2959: esac
 2960: if test "x$ac_cv_prog_cc_c89" != xno; then :
 2961: 
 2962: fi
 2963: 
 2964: ac_ext=c
 2965: ac_cpp='$CPP $CPPFLAGS'
 2966: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2967: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2968: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2969: 
 2970: if test -n "$ac_tool_prefix"; then
 2971:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 2972: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 2973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2974: $as_echo_n "checking for $ac_word... " >&6; }
 2975: if ${ac_cv_prog_RANLIB+:} false; then :
 2976:   $as_echo_n "(cached) " >&6
 2977: else
 2978:   if test -n "$RANLIB"; then
 2979:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2980: else
 2981: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2982: for as_dir in $PATH
 2983: do
 2984:   IFS=$as_save_IFS
 2985:   test -z "$as_dir" && as_dir=.
 2986:     for ac_exec_ext in '' $ac_executable_extensions; do
 2987:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2988:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 2989:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2990:     break 2
 2991:   fi
 2992: done
 2993:   done
 2994: IFS=$as_save_IFS
 2995: 
 2996: fi
 2997: fi
 2998: RANLIB=$ac_cv_prog_RANLIB
 2999: if test -n "$RANLIB"; then
 3000:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 3001: $as_echo "$RANLIB" >&6; }
 3002: else
 3003:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3004: $as_echo "no" >&6; }
 3005: fi
 3006: 
 3007: 
 3008: fi
 3009: if test -z "$ac_cv_prog_RANLIB"; then
 3010:   ac_ct_RANLIB=$RANLIB
 3011:   # Extract the first word of "ranlib", so it can be a program name with args.
 3012: set dummy ranlib; ac_word=$2
 3013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3014: $as_echo_n "checking for $ac_word... " >&6; }
 3015: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 3016:   $as_echo_n "(cached) " >&6
 3017: else
 3018:   if test -n "$ac_ct_RANLIB"; then
 3019:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 3020: else
 3021: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3022: for as_dir in $PATH
 3023: do
 3024:   IFS=$as_save_IFS
 3025:   test -z "$as_dir" && as_dir=.
 3026:     for ac_exec_ext in '' $ac_executable_extensions; do
 3027:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3028:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 3029:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3030:     break 2
 3031:   fi
 3032: done
 3033:   done
 3034: IFS=$as_save_IFS
 3035: 
 3036: fi
 3037: fi
 3038: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 3039: if test -n "$ac_ct_RANLIB"; then
 3040:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 3041: $as_echo "$ac_ct_RANLIB" >&6; }
 3042: else
 3043:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3044: $as_echo "no" >&6; }
 3045: fi
 3046: 
 3047:   if test "x$ac_ct_RANLIB" = x; then
 3048:     RANLIB=":"
 3049:   else
 3050:     case $cross_compiling:$ac_tool_warned in
 3051: yes:)
 3052: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3053: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3054: ac_tool_warned=yes ;;
 3055: esac
 3056:     RANLIB=$ac_ct_RANLIB
 3057:   fi
 3058: else
 3059:   RANLIB="$ac_cv_prog_RANLIB"
 3060: fi
 3061: 
 3062: ac_aux_dir=
 3063: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 3064:   if test -f "$ac_dir/install-sh"; then
 3065:     ac_aux_dir=$ac_dir
 3066:     ac_install_sh="$ac_aux_dir/install-sh -c"
 3067:     break
 3068:   elif test -f "$ac_dir/install.sh"; then
 3069:     ac_aux_dir=$ac_dir
 3070:     ac_install_sh="$ac_aux_dir/install.sh -c"
 3071:     break
 3072:   elif test -f "$ac_dir/shtool"; then
 3073:     ac_aux_dir=$ac_dir
 3074:     ac_install_sh="$ac_aux_dir/shtool install -c"
 3075:     break
 3076:   fi
 3077: done
 3078: if test -z "$ac_aux_dir"; then
 3079:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 3080: fi
 3081: 
 3082: # These three variables are undocumented and unsupported,
 3083: # and are intended to be withdrawn in a future Autoconf release.
 3084: # They can cause serious problems if a builder's source tree is in a directory
 3085: # whose full name contains unusual characters.
 3086: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 3087: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 3088: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 3089: 
 3090: 
 3091: # Find a good install program.  We prefer a C program (faster),
 3092: # so one script is as good as another.  But avoid the broken or
 3093: # incompatible versions:
 3094: # SysV /etc/install, /usr/sbin/install
 3095: # SunOS /usr/etc/install
 3096: # IRIX /sbin/install
 3097: # AIX /bin/install
 3098: # AmigaOS /C/install, which installs bootblocks on floppy discs
 3099: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 3100: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 3101: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 3102: # OS/2's system install, which has a completely different semantic
 3103: # ./install, which can be erroneously created by make from ./install.sh.
 3104: # Reject install programs that cannot install multiple files.
 3105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 3106: $as_echo_n "checking for a BSD-compatible install... " >&6; }
 3107: if test -z "$INSTALL"; then
 3108: if ${ac_cv_path_install+:} false; then :
 3109:   $as_echo_n "(cached) " >&6
 3110: else
 3111:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3112: for as_dir in $PATH
 3113: do
 3114:   IFS=$as_save_IFS
 3115:   test -z "$as_dir" && as_dir=.
 3116:     # Account for people who put trailing slashes in PATH elements.
 3117: case $as_dir/ in #((
 3118:   ./ | .// | /[cC]/* | \
 3119:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 3120:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 3121:   /usr/ucb/* ) ;;
 3122:   *)
 3123:     # OSF1 and SCO ODT 3.0 have their own names for install.
 3124:     # Don't use installbsd from OSF since it installs stuff as root
 3125:     # by default.
 3126:     for ac_prog in ginstall scoinst install; do
 3127:       for ac_exec_ext in '' $ac_executable_extensions; do
 3128: 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 3129: 	  if test $ac_prog = install &&
 3130: 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3131: 	    # AIX install.  It has an incompatible calling convention.
 3132: 	    :
 3133: 	  elif test $ac_prog = install &&
 3134: 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3135: 	    # program-specific install script used by HP pwplus--don't use.
 3136: 	    :
 3137: 	  else
 3138: 	    rm -rf conftest.one conftest.two conftest.dir
 3139: 	    echo one > conftest.one
 3140: 	    echo two > conftest.two
 3141: 	    mkdir conftest.dir
 3142: 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 3143: 	      test -s conftest.one && test -s conftest.two &&
 3144: 	      test -s conftest.dir/conftest.one &&
 3145: 	      test -s conftest.dir/conftest.two
 3146: 	    then
 3147: 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 3148: 	      break 3
 3149: 	    fi
 3150: 	  fi
 3151: 	fi
 3152:       done
 3153:     done
 3154:     ;;
 3155: esac
 3156: 
 3157:   done
 3158: IFS=$as_save_IFS
 3159: 
 3160: rm -rf conftest.one conftest.two conftest.dir
 3161: 
 3162: fi
 3163:   if test "${ac_cv_path_install+set}" = set; then
 3164:     INSTALL=$ac_cv_path_install
 3165:   else
 3166:     # As a last resort, use the slow shell script.  Don't cache a
 3167:     # value for INSTALL within a source directory, because that will
 3168:     # break other packages using the cache if that directory is
 3169:     # removed, or if the value is a relative name.
 3170:     INSTALL=$ac_install_sh
 3171:   fi
 3172: fi
 3173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 3174: $as_echo "$INSTALL" >&6; }
 3175: 
 3176: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 3177: # It thinks the first close brace ends the variable substitution.
 3178: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 3179: 
 3180: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 3181: 
 3182: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 3183: 
 3184: 
 3185: # Make sure we can run config.sub.
 3186: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 3187:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 3188: 
 3189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 3190: $as_echo_n "checking build system type... " >&6; }
 3191: if ${ac_cv_build+:} false; then :
 3192:   $as_echo_n "(cached) " >&6
 3193: else
 3194:   ac_build_alias=$build_alias
 3195: test "x$ac_build_alias" = x &&
 3196:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 3197: test "x$ac_build_alias" = x &&
 3198:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 3199: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 3200:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 3201: 
 3202: fi
 3203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 3204: $as_echo "$ac_cv_build" >&6; }
 3205: case $ac_cv_build in
 3206: *-*-*) ;;
 3207: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 3208: esac
 3209: build=$ac_cv_build
 3210: ac_save_IFS=$IFS; IFS='-'
 3211: set x $ac_cv_build
 3212: shift
 3213: build_cpu=$1
 3214: build_vendor=$2
 3215: shift; shift
 3216: # Remember, the first character of IFS is used to create $*,
 3217: # except with old shells:
 3218: build_os=$*
 3219: IFS=$ac_save_IFS
 3220: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 3221: 
 3222: 
 3223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 3224: $as_echo_n "checking host system type... " >&6; }
 3225: if ${ac_cv_host+:} false; then :
 3226:   $as_echo_n "(cached) " >&6
 3227: else
 3228:   if test "x$host_alias" = x; then
 3229:   ac_cv_host=$ac_cv_build
 3230: else
 3231:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 3232:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 3233: fi
 3234: 
 3235: fi
 3236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 3237: $as_echo "$ac_cv_host" >&6; }
 3238: case $ac_cv_host in
 3239: *-*-*) ;;
 3240: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 3241: esac
 3242: host=$ac_cv_host
 3243: ac_save_IFS=$IFS; IFS='-'
 3244: set x $ac_cv_host
 3245: shift
 3246: host_cpu=$1
 3247: host_vendor=$2
 3248: shift; shift
 3249: # Remember, the first character of IFS is used to create $*,
 3250: # except with old shells:
 3251: host_os=$*
 3252: IFS=$ac_save_IFS
 3253: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 3254: 
 3255: 
 3256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 3257: $as_echo_n "checking target system type... " >&6; }
 3258: if ${ac_cv_target+:} false; then :
 3259:   $as_echo_n "(cached) " >&6
 3260: else
 3261:   if test "x$target_alias" = x; then
 3262:   ac_cv_target=$ac_cv_host
 3263: else
 3264:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 3265:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 3266: fi
 3267: 
 3268: fi
 3269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 3270: $as_echo "$ac_cv_target" >&6; }
 3271: case $ac_cv_target in
 3272: *-*-*) ;;
 3273: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 3274: esac
 3275: target=$ac_cv_target
 3276: ac_save_IFS=$IFS; IFS='-'
 3277: set x $ac_cv_target
 3278: shift
 3279: target_cpu=$1
 3280: target_vendor=$2
 3281: shift; shift
 3282: # Remember, the first character of IFS is used to create $*,
 3283: # except with old shells:
 3284: target_os=$*
 3285: IFS=$ac_save_IFS
 3286: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 3287: 
 3288: 
 3289: # The aliases save the names the user supplied, while $host etc.
 3290: # will get canonicalized.
 3291: test -n "$target_alias" &&
 3292:   test "$program_prefix$program_suffix$program_transform_name" = \
 3293:     NONENONEs,x,x, &&
 3294:   program_prefix=${target_alias}-
 3295: 
 3296: if test -n "$ac_tool_prefix"; then
 3297:   # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
 3298: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
 3299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3300: $as_echo_n "checking for $ac_word... " >&6; }
 3301: if ${ac_cv_prog_MKDEP+:} false; then :
 3302:   $as_echo_n "(cached) " >&6
 3303: else
 3304:   if test -n "$MKDEP"; then
 3305:   ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
 3306: else
 3307: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3308: for as_dir in $PATH
 3309: do
 3310:   IFS=$as_save_IFS
 3311:   test -z "$as_dir" && as_dir=.
 3312:     for ac_exec_ext in '' $ac_executable_extensions; do
 3313:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3314:     ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
 3315:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3316:     break 2
 3317:   fi
 3318: done
 3319:   done
 3320: IFS=$as_save_IFS
 3321: 
 3322: fi
 3323: fi
 3324: MKDEP=$ac_cv_prog_MKDEP
 3325: if test -n "$MKDEP"; then
 3326:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
 3327: $as_echo "$MKDEP" >&6; }
 3328: else
 3329:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3330: $as_echo "no" >&6; }
 3331: fi
 3332: 
 3333: 
 3334: fi
 3335: if test -z "$ac_cv_prog_MKDEP"; then
 3336:   ac_ct_MKDEP=$MKDEP
 3337:   # Extract the first word of "mkdep", so it can be a program name with args.
 3338: set dummy mkdep; ac_word=$2
 3339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3340: $as_echo_n "checking for $ac_word... " >&6; }
 3341: if ${ac_cv_prog_ac_ct_MKDEP+:} false; then :
 3342:   $as_echo_n "(cached) " >&6
 3343: else
 3344:   if test -n "$ac_ct_MKDEP"; then
 3345:   ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
 3346: else
 3347: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3348: for as_dir in $PATH
 3349: do
 3350:   IFS=$as_save_IFS
 3351:   test -z "$as_dir" && as_dir=.
 3352:     for ac_exec_ext in '' $ac_executable_extensions; do
 3353:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3354:     ac_cv_prog_ac_ct_MKDEP="mkdep"
 3355:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3356:     break 2
 3357:   fi
 3358: done
 3359:   done
 3360: IFS=$as_save_IFS
 3361: 
 3362: fi
 3363: fi
 3364: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
 3365: if test -n "$ac_ct_MKDEP"; then
 3366:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
 3367: $as_echo "$ac_ct_MKDEP" >&6; }
 3368: else
 3369:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3370: $as_echo "no" >&6; }
 3371: fi
 3372: 
 3373:   if test "x$ac_ct_MKDEP" = x; then
 3374:     MKDEP="no"
 3375:   else
 3376:     case $cross_compiling:$ac_tool_warned in
 3377: yes:)
 3378: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3379: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3380: ac_tool_warned=yes ;;
 3381: esac
 3382:     MKDEP=$ac_ct_MKDEP
 3383:   fi
 3384: else
 3385:   MKDEP="$ac_cv_prog_MKDEP"
 3386: fi
 3387: 
 3388: 
 3389: 
 3390: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
 3391: LDFLAGS="${LDFLAGS}"
 3392: 
 3393: # Checks for libraries.
 3394: 
 3395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
 3396: $as_echo_n "checking for deflate in -lz... " >&6; }
 3397: if ${ac_cv_lib_z_deflate+:} false; then :
 3398:   $as_echo_n "(cached) " >&6
 3399: else
 3400:   ac_check_lib_save_LIBS=$LIBS
 3401: LIBS="-lz  $LIBS"
 3402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3403: /* end confdefs.h.  */
 3404: 
 3405: /* Override any GCC internal prototype to avoid an error.
 3406:    Use char because int might match the return type of a GCC
 3407:    builtin and then its argument prototype would still apply.  */
 3408: #ifdef __cplusplus
 3409: extern "C"
 3410: #endif
 3411: char deflate ();
 3412: int
 3413: main ()
 3414: {
 3415: return deflate ();
 3416:   ;
 3417:   return 0;
 3418: }
 3419: _ACEOF
 3420: if ac_fn_c_try_link "$LINENO"; then :
 3421:   ac_cv_lib_z_deflate=yes
 3422: else
 3423:   ac_cv_lib_z_deflate=no
 3424: fi
 3425: rm -f core conftest.err conftest.$ac_objext \
 3426:     conftest$ac_exeext conftest.$ac_ext
 3427: LIBS=$ac_check_lib_save_LIBS
 3428: fi
 3429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
 3430: $as_echo "$ac_cv_lib_z_deflate" >&6; }
 3431: if test "x$ac_cv_lib_z_deflate" = xyes; then :
 3432:   cat >>confdefs.h <<_ACEOF
 3433: #define HAVE_LIBZ 1
 3434: _ACEOF
 3435: 
 3436:   LIBS="-lz $LIBS"
 3437: 
 3438: fi
 3439: 
 3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crcAdler in -lelwix" >&5
 3441: $as_echo_n "checking for crcAdler in -lelwix... " >&6; }
 3442: if ${ac_cv_lib_elwix_crcAdler+:} false; then :
 3443:   $as_echo_n "(cached) " >&6
 3444: else
 3445:   ac_check_lib_save_LIBS=$LIBS
 3446: LIBS="-lelwix  $LIBS"
 3447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3448: /* end confdefs.h.  */
 3449: 
 3450: /* Override any GCC internal prototype to avoid an error.
 3451:    Use char because int might match the return type of a GCC
 3452:    builtin and then its argument prototype would still apply.  */
 3453: #ifdef __cplusplus
 3454: extern "C"
 3455: #endif
 3456: char crcAdler ();
 3457: int
 3458: main ()
 3459: {
 3460: return crcAdler ();
 3461:   ;
 3462:   return 0;
 3463: }
 3464: _ACEOF
 3465: if ac_fn_c_try_link "$LINENO"; then :
 3466:   ac_cv_lib_elwix_crcAdler=yes
 3467: else
 3468:   ac_cv_lib_elwix_crcAdler=no
 3469: fi
 3470: rm -f core conftest.err conftest.$ac_objext \
 3471:     conftest$ac_exeext conftest.$ac_ext
 3472: LIBS=$ac_check_lib_save_LIBS
 3473: fi
 3474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elwix_crcAdler" >&5
 3475: $as_echo "$ac_cv_lib_elwix_crcAdler" >&6; }
 3476: if test "x$ac_cv_lib_elwix_crcAdler" = xyes; then :
 3477:   cat >>confdefs.h <<_ACEOF
 3478: #define HAVE_LIBELWIX 1
 3479: _ACEOF
 3480: 
 3481:   LIBS="-lelwix $LIBS"
 3482: 
 3483: fi
 3484: 
 3485: 
 3486: # Checks for header files.
 3487: ac_ext=c
 3488: ac_cpp='$CPP $CPPFLAGS'
 3489: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3490: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3491: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 3493: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 3494: # On Suns, sometimes $CPP names a directory.
 3495: if test -n "$CPP" && test -d "$CPP"; then
 3496:   CPP=
 3497: fi
 3498: if test -z "$CPP"; then
 3499:   if ${ac_cv_prog_CPP+:} false; then :
 3500:   $as_echo_n "(cached) " >&6
 3501: else
 3502:       # Double quotes because CPP needs to be expanded
 3503:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 3504:     do
 3505:       ac_preproc_ok=false
 3506: for ac_c_preproc_warn_flag in '' yes
 3507: do
 3508:   # Use a header file that comes with gcc, so configuring glibc
 3509:   # with a fresh cross-compiler works.
 3510:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3511:   # <limits.h> exists even on freestanding compilers.
 3512:   # On the NeXT, cc -E runs the code through the compiler's parser,
 3513:   # not just through cpp. "Syntax error" is here to catch this case.
 3514:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3515: /* end confdefs.h.  */
 3516: #ifdef __STDC__
 3517: # include <limits.h>
 3518: #else
 3519: # include <assert.h>
 3520: #endif
 3521: 		     Syntax error
 3522: _ACEOF
 3523: if ac_fn_c_try_cpp "$LINENO"; then :
 3524: 
 3525: else
 3526:   # Broken: fails on valid input.
 3527: continue
 3528: fi
 3529: rm -f conftest.err conftest.i conftest.$ac_ext
 3530: 
 3531:   # OK, works on sane cases.  Now check whether nonexistent headers
 3532:   # can be detected and how.
 3533:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3534: /* end confdefs.h.  */
 3535: #include <ac_nonexistent.h>
 3536: _ACEOF
 3537: if ac_fn_c_try_cpp "$LINENO"; then :
 3538:   # Broken: success on invalid input.
 3539: continue
 3540: else
 3541:   # Passes both tests.
 3542: ac_preproc_ok=:
 3543: break
 3544: fi
 3545: rm -f conftest.err conftest.i conftest.$ac_ext
 3546: 
 3547: done
 3548: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3549: rm -f conftest.i conftest.err conftest.$ac_ext
 3550: if $ac_preproc_ok; then :
 3551:   break
 3552: fi
 3553: 
 3554:     done
 3555:     ac_cv_prog_CPP=$CPP
 3556: 
 3557: fi
 3558:   CPP=$ac_cv_prog_CPP
 3559: else
 3560:   ac_cv_prog_CPP=$CPP
 3561: fi
 3562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 3563: $as_echo "$CPP" >&6; }
 3564: ac_preproc_ok=false
 3565: for ac_c_preproc_warn_flag in '' yes
 3566: do
 3567:   # Use a header file that comes with gcc, so configuring glibc
 3568:   # with a fresh cross-compiler works.
 3569:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3570:   # <limits.h> exists even on freestanding compilers.
 3571:   # On the NeXT, cc -E runs the code through the compiler's parser,
 3572:   # not just through cpp. "Syntax error" is here to catch this case.
 3573:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3574: /* end confdefs.h.  */
 3575: #ifdef __STDC__
 3576: # include <limits.h>
 3577: #else
 3578: # include <assert.h>
 3579: #endif
 3580: 		     Syntax error
 3581: _ACEOF
 3582: if ac_fn_c_try_cpp "$LINENO"; then :
 3583: 
 3584: else
 3585:   # Broken: fails on valid input.
 3586: continue
 3587: fi
 3588: rm -f conftest.err conftest.i conftest.$ac_ext
 3589: 
 3590:   # OK, works on sane cases.  Now check whether nonexistent headers
 3591:   # can be detected and how.
 3592:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3593: /* end confdefs.h.  */
 3594: #include <ac_nonexistent.h>
 3595: _ACEOF
 3596: if ac_fn_c_try_cpp "$LINENO"; then :
 3597:   # Broken: success on invalid input.
 3598: continue
 3599: else
 3600:   # Passes both tests.
 3601: ac_preproc_ok=:
 3602: break
 3603: fi
 3604: rm -f conftest.err conftest.i conftest.$ac_ext
 3605: 
 3606: done
 3607: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3608: rm -f conftest.i conftest.err conftest.$ac_ext
 3609: if $ac_preproc_ok; then :
 3610: 
 3611: else
 3612:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3613: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3614: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 3615: See \`config.log' for more details" "$LINENO" 5; }
 3616: fi
 3617: 
 3618: ac_ext=c
 3619: ac_cpp='$CPP $CPPFLAGS'
 3620: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3621: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3622: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3623: 
 3624: 
 3625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3626: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3627: if ${ac_cv_path_GREP+:} false; then :
 3628:   $as_echo_n "(cached) " >&6
 3629: else
 3630:   if test -z "$GREP"; then
 3631:   ac_path_GREP_found=false
 3632:   # Loop through the user's path and test for each of PROGNAME-LIST
 3633:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3634: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3635: do
 3636:   IFS=$as_save_IFS
 3637:   test -z "$as_dir" && as_dir=.
 3638:     for ac_prog in grep ggrep; do
 3639:     for ac_exec_ext in '' $ac_executable_extensions; do
 3640:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3641:       as_fn_executable_p "$ac_path_GREP" || continue
 3642: # Check for GNU ac_path_GREP and select it if it is found.
 3643:   # Check for GNU $ac_path_GREP
 3644: case `"$ac_path_GREP" --version 2>&1` in
 3645: *GNU*)
 3646:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3647: *)
 3648:   ac_count=0
 3649:   $as_echo_n 0123456789 >"conftest.in"
 3650:   while :
 3651:   do
 3652:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3653:     mv "conftest.tmp" "conftest.in"
 3654:     cp "conftest.in" "conftest.nl"
 3655:     $as_echo 'GREP' >> "conftest.nl"
 3656:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3657:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3658:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3659:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3660:       # Best one so far, save it but keep looking for a better one
 3661:       ac_cv_path_GREP="$ac_path_GREP"
 3662:       ac_path_GREP_max=$ac_count
 3663:     fi
 3664:     # 10*(2^10) chars as input seems more than enough
 3665:     test $ac_count -gt 10 && break
 3666:   done
 3667:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3668: esac
 3669: 
 3670:       $ac_path_GREP_found && break 3
 3671:     done
 3672:   done
 3673:   done
 3674: IFS=$as_save_IFS
 3675:   if test -z "$ac_cv_path_GREP"; then
 3676:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3677:   fi
 3678: else
 3679:   ac_cv_path_GREP=$GREP
 3680: fi
 3681: 
 3682: fi
 3683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 3684: $as_echo "$ac_cv_path_GREP" >&6; }
 3685:  GREP="$ac_cv_path_GREP"
 3686: 
 3687: 
 3688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 3689: $as_echo_n "checking for egrep... " >&6; }
 3690: if ${ac_cv_path_EGREP+:} false; then :
 3691:   $as_echo_n "(cached) " >&6
 3692: else
 3693:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 3694:    then ac_cv_path_EGREP="$GREP -E"
 3695:    else
 3696:      if test -z "$EGREP"; then
 3697:   ac_path_EGREP_found=false
 3698:   # Loop through the user's path and test for each of PROGNAME-LIST
 3699:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3700: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3701: do
 3702:   IFS=$as_save_IFS
 3703:   test -z "$as_dir" && as_dir=.
 3704:     for ac_prog in egrep; do
 3705:     for ac_exec_ext in '' $ac_executable_extensions; do
 3706:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 3707:       as_fn_executable_p "$ac_path_EGREP" || continue
 3708: # Check for GNU ac_path_EGREP and select it if it is found.
 3709:   # Check for GNU $ac_path_EGREP
 3710: case `"$ac_path_EGREP" --version 2>&1` in
 3711: *GNU*)
 3712:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 3713: *)
 3714:   ac_count=0
 3715:   $as_echo_n 0123456789 >"conftest.in"
 3716:   while :
 3717:   do
 3718:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3719:     mv "conftest.tmp" "conftest.in"
 3720:     cp "conftest.in" "conftest.nl"
 3721:     $as_echo 'EGREP' >> "conftest.nl"
 3722:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3723:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3724:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3725:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 3726:       # Best one so far, save it but keep looking for a better one
 3727:       ac_cv_path_EGREP="$ac_path_EGREP"
 3728:       ac_path_EGREP_max=$ac_count
 3729:     fi
 3730:     # 10*(2^10) chars as input seems more than enough
 3731:     test $ac_count -gt 10 && break
 3732:   done
 3733:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3734: esac
 3735: 
 3736:       $ac_path_EGREP_found && break 3
 3737:     done
 3738:   done
 3739:   done
 3740: IFS=$as_save_IFS
 3741:   if test -z "$ac_cv_path_EGREP"; then
 3742:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3743:   fi
 3744: else
 3745:   ac_cv_path_EGREP=$EGREP
 3746: fi
 3747: 
 3748:    fi
 3749: fi
 3750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 3751: $as_echo "$ac_cv_path_EGREP" >&6; }
 3752:  EGREP="$ac_cv_path_EGREP"
 3753: 
 3754: 
 3755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 3756: $as_echo_n "checking for ANSI C header files... " >&6; }
 3757: if ${ac_cv_header_stdc+:} false; then :
 3758:   $as_echo_n "(cached) " >&6
 3759: else
 3760:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3761: /* end confdefs.h.  */
 3762: #include <stdlib.h>
 3763: #include <stdarg.h>
 3764: #include <string.h>
 3765: #include <float.h>
 3766: 
 3767: int
 3768: main ()
 3769: {
 3770: 
 3771:   ;
 3772:   return 0;
 3773: }
 3774: _ACEOF
 3775: if ac_fn_c_try_compile "$LINENO"; then :
 3776:   ac_cv_header_stdc=yes
 3777: else
 3778:   ac_cv_header_stdc=no
 3779: fi
 3780: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3781: 
 3782: if test $ac_cv_header_stdc = yes; then
 3783:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 3784:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3785: /* end confdefs.h.  */
 3786: #include <string.h>
 3787: 
 3788: _ACEOF
 3789: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3790:   $EGREP "memchr" >/dev/null 2>&1; then :
 3791: 
 3792: else
 3793:   ac_cv_header_stdc=no
 3794: fi
 3795: rm -f conftest*
 3796: 
 3797: fi
 3798: 
 3799: if test $ac_cv_header_stdc = yes; then
 3800:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 3801:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3802: /* end confdefs.h.  */
 3803: #include <stdlib.h>
 3804: 
 3805: _ACEOF
 3806: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 3807:   $EGREP "free" >/dev/null 2>&1; then :
 3808: 
 3809: else
 3810:   ac_cv_header_stdc=no
 3811: fi
 3812: rm -f conftest*
 3813: 
 3814: fi
 3815: 
 3816: if test $ac_cv_header_stdc = yes; then
 3817:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 3818:   if test "$cross_compiling" = yes; then :
 3819:   :
 3820: else
 3821:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3822: /* end confdefs.h.  */
 3823: #include <ctype.h>
 3824: #include <stdlib.h>
 3825: #if ((' ' & 0x0FF) == 0x020)
 3826: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 3827: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 3828: #else
 3829: # define ISLOWER(c) \
 3830: 		   (('a' <= (c) && (c) <= 'i') \
 3831: 		     || ('j' <= (c) && (c) <= 'r') \
 3832: 		     || ('s' <= (c) && (c) <= 'z'))
 3833: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 3834: #endif
 3835: 
 3836: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 3837: int
 3838: main ()
 3839: {
 3840:   int i;
 3841:   for (i = 0; i < 256; i++)
 3842:     if (XOR (islower (i), ISLOWER (i))
 3843: 	|| toupper (i) != TOUPPER (i))
 3844:       return 2;
 3845:   return 0;
 3846: }
 3847: _ACEOF
 3848: if ac_fn_c_try_run "$LINENO"; then :
 3849: 
 3850: else
 3851:   ac_cv_header_stdc=no
 3852: fi
 3853: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 3854:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 3855: fi
 3856: 
 3857: fi
 3858: fi
 3859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 3860: $as_echo "$ac_cv_header_stdc" >&6; }
 3861: if test $ac_cv_header_stdc = yes; then
 3862: 
 3863: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 3864: 
 3865: fi
 3866: 
 3867: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 3868: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 3869: 		  inttypes.h stdint.h unistd.h
 3870: do :
 3871:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 3872: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 3873: "
 3874: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 3875:   cat >>confdefs.h <<_ACEOF
 3876: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 3877: _ACEOF
 3878: 
 3879: fi
 3880: 
 3881: done
 3882: 
 3883: 
 3884: for ac_header in fcntl.h stdlib.h string.h sys/param.h unistd.h
 3885: do :
 3886:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 3887: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 3888: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 3889:   cat >>confdefs.h <<_ACEOF
 3890: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 3891: _ACEOF
 3892: 
 3893: fi
 3894: 
 3895: done
 3896: 
 3897: 
 3898: # Checks for typedefs, structures, and compiler characteristics.
 3899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 3900: $as_echo_n "checking for inline... " >&6; }
 3901: if ${ac_cv_c_inline+:} false; then :
 3902:   $as_echo_n "(cached) " >&6
 3903: else
 3904:   ac_cv_c_inline=no
 3905: for ac_kw in inline __inline__ __inline; do
 3906:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3907: /* end confdefs.h.  */
 3908: #ifndef __cplusplus
 3909: typedef int foo_t;
 3910: static $ac_kw foo_t static_foo () {return 0; }
 3911: $ac_kw foo_t foo () {return 0; }
 3912: #endif
 3913: 
 3914: _ACEOF
 3915: if ac_fn_c_try_compile "$LINENO"; then :
 3916:   ac_cv_c_inline=$ac_kw
 3917: fi
 3918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3919:   test "$ac_cv_c_inline" != no && break
 3920: done
 3921: 
 3922: fi
 3923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 3924: $as_echo "$ac_cv_c_inline" >&6; }
 3925: 
 3926: case $ac_cv_c_inline in
 3927:   inline | yes) ;;
 3928:   *)
 3929:     case $ac_cv_c_inline in
 3930:       no) ac_val=;;
 3931:       *) ac_val=$ac_cv_c_inline;;
 3932:     esac
 3933:     cat >>confdefs.h <<_ACEOF
 3934: #ifndef __cplusplus
 3935: #define inline $ac_val
 3936: #endif
 3937: _ACEOF
 3938:     ;;
 3939: esac
 3940: 
 3941: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 3942: if test "x$ac_cv_type_off_t" = xyes; then :
 3943: 
 3944: else
 3945: 
 3946: cat >>confdefs.h <<_ACEOF
 3947: #define off_t long int
 3948: _ACEOF
 3949: 
 3950: fi
 3951: 
 3952: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 3953: if test "x$ac_cv_type_size_t" = xyes; then :
 3954: 
 3955: else
 3956: 
 3957: cat >>confdefs.h <<_ACEOF
 3958: #define size_t unsigned int
 3959: _ACEOF
 3960: 
 3961: fi
 3962: 
 3963: 
 3964: # Checks for library functions.
 3965: for ac_header in stdlib.h
 3966: do :
 3967:   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 3968: if test "x$ac_cv_header_stdlib_h" = xyes; then :
 3969:   cat >>confdefs.h <<_ACEOF
 3970: #define HAVE_STDLIB_H 1
 3971: _ACEOF
 3972: 
 3973: fi
 3974: 
 3975: done
 3976: 
 3977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 3978: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 3979: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
 3980:   $as_echo_n "(cached) " >&6
 3981: else
 3982:   if test "$cross_compiling" = yes; then :
 3983:   ac_cv_func_malloc_0_nonnull=no
 3984: else
 3985:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3986: /* end confdefs.h.  */
 3987: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
 3988: # include <stdlib.h>
 3989: #else
 3990: char *malloc ();
 3991: #endif
 3992: 
 3993: int
 3994: main ()
 3995: {
 3996: return ! malloc (0);
 3997:   ;
 3998:   return 0;
 3999: }
 4000: _ACEOF
 4001: if ac_fn_c_try_run "$LINENO"; then :
 4002:   ac_cv_func_malloc_0_nonnull=yes
 4003: else
 4004:   ac_cv_func_malloc_0_nonnull=no
 4005: fi
 4006: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4007:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4008: fi
 4009: 
 4010: fi
 4011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 4012: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 4013: if test $ac_cv_func_malloc_0_nonnull = yes; then :
 4014: 
 4015: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
 4016: 
 4017: else
 4018:   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
 4019: 
 4020:    case " $LIBOBJS " in
 4021:   *" malloc.$ac_objext "* ) ;;
 4022:   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 4023:  ;;
 4024: esac
 4025: 
 4026: 
 4027: $as_echo "#define malloc rpl_malloc" >>confdefs.h
 4028: 
 4029: fi
 4030: 
 4031: 
 4032: 
 4033: 
 4034: 
 4035:   for ac_header in $ac_header_list
 4036: do :
 4037:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4038: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4039: "
 4040: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4041:   cat >>confdefs.h <<_ACEOF
 4042: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4043: _ACEOF
 4044: 
 4045: fi
 4046: 
 4047: done
 4048: 
 4049: 
 4050: 
 4051: 
 4052: 
 4053: 
 4054: 
 4055: 
 4056: for ac_func in getpagesize
 4057: do :
 4058:   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 4059: if test "x$ac_cv_func_getpagesize" = xyes; then :
 4060:   cat >>confdefs.h <<_ACEOF
 4061: #define HAVE_GETPAGESIZE 1
 4062: _ACEOF
 4063: 
 4064: fi
 4065: done
 4066: 
 4067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 4068: $as_echo_n "checking for working mmap... " >&6; }
 4069: if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
 4070:   $as_echo_n "(cached) " >&6
 4071: else
 4072:   if test "$cross_compiling" = yes; then :
 4073:   ac_cv_func_mmap_fixed_mapped=no
 4074: else
 4075:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4076: /* end confdefs.h.  */
 4077: $ac_includes_default
 4078: /* malloc might have been renamed as rpl_malloc. */
 4079: #undef malloc
 4080: 
 4081: /* Thanks to Mike Haertel and Jim Avera for this test.
 4082:    Here is a matrix of mmap possibilities:
 4083: 	mmap private not fixed
 4084: 	mmap private fixed at somewhere currently unmapped
 4085: 	mmap private fixed at somewhere already mapped
 4086: 	mmap shared not fixed
 4087: 	mmap shared fixed at somewhere currently unmapped
 4088: 	mmap shared fixed at somewhere already mapped
 4089:    For private mappings, we should verify that changes cannot be read()
 4090:    back from the file, nor mmap's back from the file at a different
 4091:    address.  (There have been systems where private was not correctly
 4092:    implemented like the infamous i386 svr4.0, and systems where the
 4093:    VM page cache was not coherent with the file system buffer cache
 4094:    like early versions of FreeBSD and possibly contemporary NetBSD.)
 4095:    For shared mappings, we should conversely verify that changes get
 4096:    propagated back to all the places they're supposed to be.
 4097: 
 4098:    Grep wants private fixed already mapped.
 4099:    The main things grep needs to know about mmap are:
 4100:    * does it exist and is it safe to write into the mmap'd area
 4101:    * how to use it (BSD variants)  */
 4102: 
 4103: #include <fcntl.h>
 4104: #include <sys/mman.h>
 4105: 
 4106: #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 4107: char *malloc ();
 4108: #endif
 4109: 
 4110: /* This mess was copied from the GNU getpagesize.h.  */
 4111: #ifndef HAVE_GETPAGESIZE
 4112: # ifdef _SC_PAGESIZE
 4113: #  define getpagesize() sysconf(_SC_PAGESIZE)
 4114: # else /* no _SC_PAGESIZE */
 4115: #  ifdef HAVE_SYS_PARAM_H
 4116: #   include <sys/param.h>
 4117: #   ifdef EXEC_PAGESIZE
 4118: #    define getpagesize() EXEC_PAGESIZE
 4119: #   else /* no EXEC_PAGESIZE */
 4120: #    ifdef NBPG
 4121: #     define getpagesize() NBPG * CLSIZE
 4122: #     ifndef CLSIZE
 4123: #      define CLSIZE 1
 4124: #     endif /* no CLSIZE */
 4125: #    else /* no NBPG */
 4126: #     ifdef NBPC
 4127: #      define getpagesize() NBPC
 4128: #     else /* no NBPC */
 4129: #      ifdef PAGESIZE
 4130: #       define getpagesize() PAGESIZE
 4131: #      endif /* PAGESIZE */
 4132: #     endif /* no NBPC */
 4133: #    endif /* no NBPG */
 4134: #   endif /* no EXEC_PAGESIZE */
 4135: #  else /* no HAVE_SYS_PARAM_H */
 4136: #   define getpagesize() 8192	/* punt totally */
 4137: #  endif /* no HAVE_SYS_PARAM_H */
 4138: # endif /* no _SC_PAGESIZE */
 4139: 
 4140: #endif /* no HAVE_GETPAGESIZE */
 4141: 
 4142: int
 4143: main ()
 4144: {
 4145:   char *data, *data2, *data3;
 4146:   const char *cdata2;
 4147:   int i, pagesize;
 4148:   int fd, fd2;
 4149: 
 4150:   pagesize = getpagesize ();
 4151: 
 4152:   /* First, make a file with some known garbage in it. */
 4153:   data = (char *) malloc (pagesize);
 4154:   if (!data)
 4155:     return 1;
 4156:   for (i = 0; i < pagesize; ++i)
 4157:     *(data + i) = rand ();
 4158:   umask (0);
 4159:   fd = creat ("conftest.mmap", 0600);
 4160:   if (fd < 0)
 4161:     return 2;
 4162:   if (write (fd, data, pagesize) != pagesize)
 4163:     return 3;
 4164:   close (fd);
 4165: 
 4166:   /* Next, check that the tail of a page is zero-filled.  File must have
 4167:      non-zero length, otherwise we risk SIGBUS for entire page.  */
 4168:   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 4169:   if (fd2 < 0)
 4170:     return 4;
 4171:   cdata2 = "";
 4172:   if (write (fd2, cdata2, 1) != 1)
 4173:     return 5;
 4174:   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 4175:   if (data2 == MAP_FAILED)
 4176:     return 6;
 4177:   for (i = 0; i < pagesize; ++i)
 4178:     if (*(data2 + i))
 4179:       return 7;
 4180:   close (fd2);
 4181:   if (munmap (data2, pagesize))
 4182:     return 8;
 4183: 
 4184:   /* Next, try to mmap the file at a fixed address which already has
 4185:      something else allocated at it.  If we can, also make sure that
 4186:      we see the same garbage.  */
 4187:   fd = open ("conftest.mmap", O_RDWR);
 4188:   if (fd < 0)
 4189:     return 9;
 4190:   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 4191: 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 4192:     return 10;
 4193:   for (i = 0; i < pagesize; ++i)
 4194:     if (*(data + i) != *(data2 + i))
 4195:       return 11;
 4196: 
 4197:   /* Finally, make sure that changes to the mapped area do not
 4198:      percolate back to the file as seen by read().  (This is a bug on
 4199:      some variants of i386 svr4.0.)  */
 4200:   for (i = 0; i < pagesize; ++i)
 4201:     *(data2 + i) = *(data2 + i) + 1;
 4202:   data3 = (char *) malloc (pagesize);
 4203:   if (!data3)
 4204:     return 12;
 4205:   if (read (fd, data3, pagesize) != pagesize)
 4206:     return 13;
 4207:   for (i = 0; i < pagesize; ++i)
 4208:     if (*(data + i) != *(data3 + i))
 4209:       return 14;
 4210:   close (fd);
 4211:   return 0;
 4212: }
 4213: _ACEOF
 4214: if ac_fn_c_try_run "$LINENO"; then :
 4215:   ac_cv_func_mmap_fixed_mapped=yes
 4216: else
 4217:   ac_cv_func_mmap_fixed_mapped=no
 4218: fi
 4219: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4220:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4221: fi
 4222: 
 4223: fi
 4224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 4225: $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
 4226: if test $ac_cv_func_mmap_fixed_mapped = yes; then
 4227: 
 4228: $as_echo "#define HAVE_MMAP 1" >>confdefs.h
 4229: 
 4230: fi
 4231: rm -f conftest.mmap conftest.txt
 4232: 
 4233: for ac_header in stdlib.h
 4234: do :
 4235:   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 4236: if test "x$ac_cv_header_stdlib_h" = xyes; then :
 4237:   cat >>confdefs.h <<_ACEOF
 4238: #define HAVE_STDLIB_H 1
 4239: _ACEOF
 4240: 
 4241: fi
 4242: 
 4243: done
 4244: 
 4245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
 4246: $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
 4247: if ${ac_cv_func_realloc_0_nonnull+:} false; then :
 4248:   $as_echo_n "(cached) " >&6
 4249: else
 4250:   if test "$cross_compiling" = yes; then :
 4251:   ac_cv_func_realloc_0_nonnull=no
 4252: else
 4253:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4254: /* end confdefs.h.  */
 4255: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
 4256: # include <stdlib.h>
 4257: #else
 4258: char *realloc ();
 4259: #endif
 4260: 
 4261: int
 4262: main ()
 4263: {
 4264: return ! realloc (0, 0);
 4265:   ;
 4266:   return 0;
 4267: }
 4268: _ACEOF
 4269: if ac_fn_c_try_run "$LINENO"; then :
 4270:   ac_cv_func_realloc_0_nonnull=yes
 4271: else
 4272:   ac_cv_func_realloc_0_nonnull=no
 4273: fi
 4274: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4275:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4276: fi
 4277: 
 4278: fi
 4279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
 4280: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
 4281: if test $ac_cv_func_realloc_0_nonnull = yes; then :
 4282: 
 4283: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
 4284: 
 4285: else
 4286:   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
 4287: 
 4288:    case " $LIBOBJS " in
 4289:   *" realloc.$ac_objext "* ) ;;
 4290:   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 4291:  ;;
 4292: esac
 4293: 
 4294: 
 4295: $as_echo "#define realloc rpl_realloc" >>confdefs.h
 4296: 
 4297: fi
 4298: 
 4299: 
 4300: for ac_func in memset munmap
 4301: do :
 4302:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 4303: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 4304: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 4305:   cat >>confdefs.h <<_ACEOF
 4306: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 4307: _ACEOF
 4308: 
 4309: fi
 4310: done
 4311: 
 4312: for ac_func in mkstemps
 4313: do :
 4314:   ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
 4315: if test "x$ac_cv_func_mkstemps" = xyes; then :
 4316:   cat >>confdefs.h <<_ACEOF
 4317: #define HAVE_MKSTEMPS 1
 4318: _ACEOF
 4319: 
 4320: fi
 4321: done
 4322: 
 4323: 
 4324: DEBUG=no
 4325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
 4326: $as_echo_n "checking Debug Build... " >&6; }
 4327: # Check whether --enable-debug was given.
 4328: if test "${enable_debug+set}" = set; then :
 4329:   enableval=$enable_debug;  DEBUG=$enableval
 4330: 		case "$enableval" in
 4331: 			yes)
 4332: 
 4333: $as_echo "#define __DEBUG /**/" >>confdefs.h
 4334: 
 4335: 				CFLAGS="-g ${CFLAGS}"
 4336: 				;;
 4337: 			*)
 4338: 
 4339: $as_echo "#define NDEBUG /**/" >>confdefs.h
 4340: 
 4341: 				;;
 4342: 		esac
 4343: fi
 4344: 
 4345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
 4346: $as_echo "$DEBUG" >&6; }
 4347: 
 4348: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"
 4349: 
 4350: cat >confcache <<\_ACEOF
 4351: # This file is a shell script that caches the results of configure
 4352: # tests run on this system so they can be shared between configure
 4353: # scripts and configure runs, see configure's option --config-cache.
 4354: # It is not useful on other systems.  If it contains results you don't
 4355: # want to keep, you may remove or edit it.
 4356: #
 4357: # config.status only pays attention to the cache file if you give it
 4358: # the --recheck option to rerun configure.
 4359: #
 4360: # `ac_cv_env_foo' variables (set or unset) will be overridden when
 4361: # loading this file, other *unset* `ac_cv_foo' will be assigned the
 4362: # following values.
 4363: 
 4364: _ACEOF
 4365: 
 4366: # The following way of writing the cache mishandles newlines in values,
 4367: # but we know of no workaround that is simple, portable, and efficient.
 4368: # So, we kill variables containing newlines.
 4369: # Ultrix sh set writes to stderr and can't be redirected directly,
 4370: # and sets the high bit in the cache file unless we assign to the vars.
 4371: (
 4372:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 4373:     eval ac_val=\$$ac_var
 4374:     case $ac_val in #(
 4375:     *${as_nl}*)
 4376:       case $ac_var in #(
 4377:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 4378: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 4379:       esac
 4380:       case $ac_var in #(
 4381:       _ | IFS | as_nl) ;; #(
 4382:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 4383:       *) { eval $ac_var=; unset $ac_var;} ;;
 4384:       esac ;;
 4385:     esac
 4386:   done
 4387: 
 4388:   (set) 2>&1 |
 4389:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 4390:     *${as_nl}ac_space=\ *)
 4391:       # `set' does not quote correctly, so add quotes: double-quote
 4392:       # substitution turns \\\\ into \\, and sed turns \\ into \.
 4393:       sed -n \
 4394: 	"s/'/'\\\\''/g;
 4395: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 4396:       ;; #(
 4397:     *)
 4398:       # `set' quotes correctly as required by POSIX, so do not add quotes.
 4399:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 4400:       ;;
 4401:     esac |
 4402:     sort
 4403: ) |
 4404:   sed '
 4405:      /^ac_cv_env_/b end
 4406:      t clear
 4407:      :clear
 4408:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 4409:      t end
 4410:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 4411:      :end' >>confcache
 4412: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 4413:   if test -w "$cache_file"; then
 4414:     if test "x$cache_file" != "x/dev/null"; then
 4415:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 4416: $as_echo "$as_me: updating cache $cache_file" >&6;}
 4417:       if test ! -f "$cache_file" || test -h "$cache_file"; then
 4418: 	cat confcache >"$cache_file"
 4419:       else
 4420:         case $cache_file in #(
 4421:         */* | ?:*)
 4422: 	  mv -f confcache "$cache_file"$$ &&
 4423: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
 4424:         *)
 4425: 	  mv -f confcache "$cache_file" ;;
 4426: 	esac
 4427:       fi
 4428:     fi
 4429:   else
 4430:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 4431: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 4432:   fi
 4433: fi
 4434: rm -f confcache
 4435: 
 4436: test "x$prefix" = xNONE && prefix=$ac_default_prefix
 4437: # Let make expand exec_prefix.
 4438: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 4439: 
 4440: DEFS=-DHAVE_CONFIG_H
 4441: 
 4442: ac_libobjs=
 4443: ac_ltlibobjs=
 4444: U=
 4445: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 4446:   # 1. Remove the extension, and $U if already installed.
 4447:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 4448:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 4449:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 4450:   #    will be set to the directory where LIBOBJS objects are built.
 4451:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 4452:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 4453: done
 4454: LIBOBJS=$ac_libobjs
 4455: 
 4456: LTLIBOBJS=$ac_ltlibobjs
 4457: 
 4458: 
 4459: 
 4460: : "${CONFIG_STATUS=./config.status}"
 4461: ac_write_fail=0
 4462: ac_clean_files_save=$ac_clean_files
 4463: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 4464: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 4465: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 4466: as_write_fail=0
 4467: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 4468: #! $SHELL
 4469: # Generated by $as_me.
 4470: # Run this file to recreate the current configuration.
 4471: # Compiler output produced by configure, useful for debugging
 4472: # configure, is in config.log if it exists.
 4473: 
 4474: debug=false
 4475: ac_cs_recheck=false
 4476: ac_cs_silent=false
 4477: 
 4478: SHELL=\${CONFIG_SHELL-$SHELL}
 4479: export SHELL
 4480: _ASEOF
 4481: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 4482: ## -------------------- ##
 4483: ## M4sh Initialization. ##
 4484: ## -------------------- ##
 4485: 
 4486: # Be more Bourne compatible
 4487: DUALCASE=1; export DUALCASE # for MKS sh
 4488: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 4489:   emulate sh
 4490:   NULLCMD=:
 4491:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 4492:   # is contrary to our usage.  Disable this feature.
 4493:   alias -g '${1+"$@"}'='"$@"'
 4494:   setopt NO_GLOB_SUBST
 4495: else
 4496:   case `(set -o) 2>/dev/null` in #(
 4497:   *posix*) :
 4498:     set -o posix ;; #(
 4499:   *) :
 4500:      ;;
 4501: esac
 4502: fi
 4503: 
 4504: 
 4505: as_nl='
 4506: '
 4507: export as_nl
 4508: # Printing a long string crashes Solaris 7 /usr/bin/printf.
 4509: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 4510: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 4511: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 4512: # Prefer a ksh shell builtin over an external printf program on Solaris,
 4513: # but without wasting forks for bash or zsh.
 4514: if test -z "$BASH_VERSION$ZSH_VERSION" \
 4515:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 4516:   as_echo='print -r --'
 4517:   as_echo_n='print -rn --'
 4518: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 4519:   as_echo='printf %s\n'
 4520:   as_echo_n='printf %s'
 4521: else
 4522:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 4523:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 4524:     as_echo_n='/usr/ucb/echo -n'
 4525:   else
 4526:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 4527:     as_echo_n_body='eval
 4528:       arg=$1;
 4529:       case $arg in #(
 4530:       *"$as_nl"*)
 4531: 	expr "X$arg" : "X\\(.*\\)$as_nl";
 4532: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 4533:       esac;
 4534:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 4535:     '
 4536:     export as_echo_n_body
 4537:     as_echo_n='sh -c $as_echo_n_body as_echo'
 4538:   fi
 4539:   export as_echo_body
 4540:   as_echo='sh -c $as_echo_body as_echo'
 4541: fi
 4542: 
 4543: # The user is always right.
 4544: if test "${PATH_SEPARATOR+set}" != set; then
 4545:   PATH_SEPARATOR=:
 4546:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 4547:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 4548:       PATH_SEPARATOR=';'
 4549:   }
 4550: fi
 4551: 
 4552: 
 4553: # IFS
 4554: # We need space, tab and new line, in precisely that order.  Quoting is
 4555: # there to prevent editors from complaining about space-tab.
 4556: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 4557: # splitting by setting IFS to empty value.)
 4558: IFS=" ""	$as_nl"
 4559: 
 4560: # Find who we are.  Look in the path if we contain no directory separator.
 4561: as_myself=
 4562: case $0 in #((
 4563:   *[\\/]* ) as_myself=$0 ;;
 4564:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4565: for as_dir in $PATH
 4566: do
 4567:   IFS=$as_save_IFS
 4568:   test -z "$as_dir" && as_dir=.
 4569:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 4570:   done
 4571: IFS=$as_save_IFS
 4572: 
 4573:      ;;
 4574: esac
 4575: # We did not find ourselves, most probably we were run as `sh COMMAND'
 4576: # in which case we are not to be found in the path.
 4577: if test "x$as_myself" = x; then
 4578:   as_myself=$0
 4579: fi
 4580: if test ! -f "$as_myself"; then
 4581:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 4582:   exit 1
 4583: fi
 4584: 
 4585: # Unset variables that we do not need and which cause bugs (e.g. in
 4586: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 4587: # suppresses any "Segmentation fault" message there.  '((' could
 4588: # trigger a bug in pdksh 5.2.14.
 4589: for as_var in BASH_ENV ENV MAIL MAILPATH
 4590: do eval test x\${$as_var+set} = xset \
 4591:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 4592: done
 4593: PS1='$ '
 4594: PS2='> '
 4595: PS4='+ '
 4596: 
 4597: # NLS nuisances.
 4598: LC_ALL=C
 4599: export LC_ALL
 4600: LANGUAGE=C
 4601: export LANGUAGE
 4602: 
 4603: # CDPATH.
 4604: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 4605: 
 4606: 
 4607: # as_fn_error STATUS ERROR [LINENO LOG_FD]
 4608: # ----------------------------------------
 4609: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 4610: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 4611: # script with STATUS, using 1 if that was 0.
 4612: as_fn_error ()
 4613: {
 4614:   as_status=$1; test $as_status -eq 0 && as_status=1
 4615:   if test "$4"; then
 4616:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 4617:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 4618:   fi
 4619:   $as_echo "$as_me: error: $2" >&2
 4620:   as_fn_exit $as_status
 4621: } # as_fn_error
 4622: 
 4623: 
 4624: # as_fn_set_status STATUS
 4625: # -----------------------
 4626: # Set $? to STATUS, without forking.
 4627: as_fn_set_status ()
 4628: {
 4629:   return $1
 4630: } # as_fn_set_status
 4631: 
 4632: # as_fn_exit STATUS
 4633: # -----------------
 4634: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 4635: as_fn_exit ()
 4636: {
 4637:   set +e
 4638:   as_fn_set_status $1
 4639:   exit $1
 4640: } # as_fn_exit
 4641: 
 4642: # as_fn_unset VAR
 4643: # ---------------
 4644: # Portably unset VAR.
 4645: as_fn_unset ()
 4646: {
 4647:   { eval $1=; unset $1;}
 4648: }
 4649: as_unset=as_fn_unset
 4650: # as_fn_append VAR VALUE
 4651: # ----------------------
 4652: # Append the text in VALUE to the end of the definition contained in VAR. Take
 4653: # advantage of any shell optimizations that allow amortized linear growth over
 4654: # repeated appends, instead of the typical quadratic growth present in naive
 4655: # implementations.
 4656: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 4657:   eval 'as_fn_append ()
 4658:   {
 4659:     eval $1+=\$2
 4660:   }'
 4661: else
 4662:   as_fn_append ()
 4663:   {
 4664:     eval $1=\$$1\$2
 4665:   }
 4666: fi # as_fn_append
 4667: 
 4668: # as_fn_arith ARG...
 4669: # ------------------
 4670: # Perform arithmetic evaluation on the ARGs, and store the result in the
 4671: # global $as_val. Take advantage of shells that can avoid forks. The arguments
 4672: # must be portable across $(()) and expr.
 4673: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 4674:   eval 'as_fn_arith ()
 4675:   {
 4676:     as_val=$(( $* ))
 4677:   }'
 4678: else
 4679:   as_fn_arith ()
 4680:   {
 4681:     as_val=`expr "$@" || test $? -eq 1`
 4682:   }
 4683: fi # as_fn_arith
 4684: 
 4685: 
 4686: if expr a : '\(a\)' >/dev/null 2>&1 &&
 4687:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 4688:   as_expr=expr
 4689: else
 4690:   as_expr=false
 4691: fi
 4692: 
 4693: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 4694:   as_basename=basename
 4695: else
 4696:   as_basename=false
 4697: fi
 4698: 
 4699: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 4700:   as_dirname=dirname
 4701: else
 4702:   as_dirname=false
 4703: fi
 4704: 
 4705: as_me=`$as_basename -- "$0" ||
 4706: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 4707: 	 X"$0" : 'X\(//\)$' \| \
 4708: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 4709: $as_echo X/"$0" |
 4710:     sed '/^.*\/\([^/][^/]*\)\/*$/{
 4711: 	    s//\1/
 4712: 	    q
 4713: 	  }
 4714: 	  /^X\/\(\/\/\)$/{
 4715: 	    s//\1/
 4716: 	    q
 4717: 	  }
 4718: 	  /^X\/\(\/\).*/{
 4719: 	    s//\1/
 4720: 	    q
 4721: 	  }
 4722: 	  s/.*/./; q'`
 4723: 
 4724: # Avoid depending upon Character Ranges.
 4725: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 4726: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 4727: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 4728: as_cr_digits='0123456789'
 4729: as_cr_alnum=$as_cr_Letters$as_cr_digits
 4730: 
 4731: ECHO_C= ECHO_N= ECHO_T=
 4732: case `echo -n x` in #(((((
 4733: -n*)
 4734:   case `echo 'xy\c'` in
 4735:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 4736:   xy)  ECHO_C='\c';;
 4737:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 4738:        ECHO_T='	';;
 4739:   esac;;
 4740: *)
 4741:   ECHO_N='-n';;
 4742: esac
 4743: 
 4744: rm -f conf$$ conf$$.exe conf$$.file
 4745: if test -d conf$$.dir; then
 4746:   rm -f conf$$.dir/conf$$.file
 4747: else
 4748:   rm -f conf$$.dir
 4749:   mkdir conf$$.dir 2>/dev/null
 4750: fi
 4751: if (echo >conf$$.file) 2>/dev/null; then
 4752:   if ln -s conf$$.file conf$$ 2>/dev/null; then
 4753:     as_ln_s='ln -s'
 4754:     # ... but there are two gotchas:
 4755:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 4756:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 4757:     # In both cases, we have to default to `cp -pR'.
 4758:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 4759:       as_ln_s='cp -pR'
 4760:   elif ln conf$$.file conf$$ 2>/dev/null; then
 4761:     as_ln_s=ln
 4762:   else
 4763:     as_ln_s='cp -pR'
 4764:   fi
 4765: else
 4766:   as_ln_s='cp -pR'
 4767: fi
 4768: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 4769: rmdir conf$$.dir 2>/dev/null
 4770: 
 4771: 
 4772: # as_fn_mkdir_p
 4773: # -------------
 4774: # Create "$as_dir" as a directory, including parents if necessary.
 4775: as_fn_mkdir_p ()
 4776: {
 4777: 
 4778:   case $as_dir in #(
 4779:   -*) as_dir=./$as_dir;;
 4780:   esac
 4781:   test -d "$as_dir" || eval $as_mkdir_p || {
 4782:     as_dirs=
 4783:     while :; do
 4784:       case $as_dir in #(
 4785:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 4786:       *) as_qdir=$as_dir;;
 4787:       esac
 4788:       as_dirs="'$as_qdir' $as_dirs"
 4789:       as_dir=`$as_dirname -- "$as_dir" ||
 4790: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 4791: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 4792: 	 X"$as_dir" : 'X\(//\)$' \| \
 4793: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 4794: $as_echo X"$as_dir" |
 4795:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 4796: 	    s//\1/
 4797: 	    q
 4798: 	  }
 4799: 	  /^X\(\/\/\)[^/].*/{
 4800: 	    s//\1/
 4801: 	    q
 4802: 	  }
 4803: 	  /^X\(\/\/\)$/{
 4804: 	    s//\1/
 4805: 	    q
 4806: 	  }
 4807: 	  /^X\(\/\).*/{
 4808: 	    s//\1/
 4809: 	    q
 4810: 	  }
 4811: 	  s/.*/./; q'`
 4812:       test -d "$as_dir" && break
 4813:     done
 4814:     test -z "$as_dirs" || eval "mkdir $as_dirs"
 4815:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 4816: 
 4817: 
 4818: } # as_fn_mkdir_p
 4819: if mkdir -p . 2>/dev/null; then
 4820:   as_mkdir_p='mkdir -p "$as_dir"'
 4821: else
 4822:   test -d ./-p && rmdir ./-p
 4823:   as_mkdir_p=false
 4824: fi
 4825: 
 4826: 
 4827: # as_fn_executable_p FILE
 4828: # -----------------------
 4829: # Test if FILE is an executable regular file.
 4830: as_fn_executable_p ()
 4831: {
 4832:   test -f "$1" && test -x "$1"
 4833: } # as_fn_executable_p
 4834: as_test_x='test -x'
 4835: as_executable_p=as_fn_executable_p
 4836: 
 4837: # Sed expression to map a string onto a valid CPP name.
 4838: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 4839: 
 4840: # Sed expression to map a string onto a valid variable name.
 4841: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 4842: 
 4843: 
 4844: exec 6>&1
 4845: ## ----------------------------------- ##
 4846: ## Main body of $CONFIG_STATUS script. ##
 4847: ## ----------------------------------- ##
 4848: _ASEOF
 4849: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 4850: 
 4851: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4852: # Save the log message, to keep $0 and so on meaningful, and to
 4853: # report actual input values of CONFIG_FILES etc. instead of their
 4854: # values after options handling.
 4855: ac_log="
 4856: This file was extended by libaitsync $as_me 2.2, which was
 4857: generated by GNU Autoconf 2.69.  Invocation command line was
 4858: 
 4859:   CONFIG_FILES    = $CONFIG_FILES
 4860:   CONFIG_HEADERS  = $CONFIG_HEADERS
 4861:   CONFIG_LINKS    = $CONFIG_LINKS
 4862:   CONFIG_COMMANDS = $CONFIG_COMMANDS
 4863:   $ $0 $@
 4864: 
 4865: on `(hostname || uname -n) 2>/dev/null | sed 1q`
 4866: "
 4867: 
 4868: _ACEOF
 4869: 
 4870: case $ac_config_files in *"
 4871: "*) set x $ac_config_files; shift; ac_config_files=$*;;
 4872: esac
 4873: 
 4874: case $ac_config_headers in *"
 4875: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 4876: esac
 4877: 
 4878: 
 4879: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4880: # Files that config.status was made for.
 4881: config_files="$ac_config_files"
 4882: config_headers="$ac_config_headers"
 4883: 
 4884: _ACEOF
 4885: 
 4886: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4887: ac_cs_usage="\
 4888: \`$as_me' instantiates files and other configuration actions
 4889: from templates according to the current configuration.  Unless the files
 4890: and actions are specified as TAGs, all are instantiated by default.
 4891: 
 4892: Usage: $0 [OPTION]... [TAG]...
 4893: 
 4894:   -h, --help       print this help, then exit
 4895:   -V, --version    print version number and configuration settings, then exit
 4896:       --config     print configuration, then exit
 4897:   -q, --quiet, --silent
 4898:                    do not print progress messages
 4899:   -d, --debug      don't remove temporary files
 4900:       --recheck    update $as_me by reconfiguring in the same conditions
 4901:       --file=FILE[:TEMPLATE]
 4902:                    instantiate the configuration file FILE
 4903:       --header=FILE[:TEMPLATE]
 4904:                    instantiate the configuration header FILE
 4905: 
 4906: Configuration files:
 4907: $config_files
 4908: 
 4909: Configuration headers:
 4910: $config_headers
 4911: 
 4912: Report bugs to <misho@elwix.org>."
 4913: 
 4914: _ACEOF
 4915: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4916: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 4917: ac_cs_version="\\
 4918: libaitsync config.status 2.2
 4919: configured by $0, generated by GNU Autoconf 2.69,
 4920:   with options \\"\$ac_cs_config\\"
 4921: 
 4922: Copyright (C) 2012 Free Software Foundation, Inc.
 4923: This config.status script is free software; the Free Software Foundation
 4924: gives unlimited permission to copy, distribute and modify it."
 4925: 
 4926: ac_pwd='$ac_pwd'
 4927: srcdir='$srcdir'
 4928: INSTALL='$INSTALL'
 4929: test -n "\$AWK" || AWK=awk
 4930: _ACEOF
 4931: 
 4932: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4933: # The default lists apply if the user does not specify any file.
 4934: ac_need_defaults=:
 4935: while test $# != 0
 4936: do
 4937:   case $1 in
 4938:   --*=?*)
 4939:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 4940:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 4941:     ac_shift=:
 4942:     ;;
 4943:   --*=)
 4944:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 4945:     ac_optarg=
 4946:     ac_shift=:
 4947:     ;;
 4948:   *)
 4949:     ac_option=$1
 4950:     ac_optarg=$2
 4951:     ac_shift=shift
 4952:     ;;
 4953:   esac
 4954: 
 4955:   case $ac_option in
 4956:   # Handling of the options.
 4957:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 4958:     ac_cs_recheck=: ;;
 4959:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 4960:     $as_echo "$ac_cs_version"; exit ;;
 4961:   --config | --confi | --conf | --con | --co | --c )
 4962:     $as_echo "$ac_cs_config"; exit ;;
 4963:   --debug | --debu | --deb | --de | --d | -d )
 4964:     debug=: ;;
 4965:   --file | --fil | --fi | --f )
 4966:     $ac_shift
 4967:     case $ac_optarg in
 4968:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 4969:     '') as_fn_error $? "missing file argument" ;;
 4970:     esac
 4971:     as_fn_append CONFIG_FILES " '$ac_optarg'"
 4972:     ac_need_defaults=false;;
 4973:   --header | --heade | --head | --hea )
 4974:     $ac_shift
 4975:     case $ac_optarg in
 4976:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 4977:     esac
 4978:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 4979:     ac_need_defaults=false;;
 4980:   --he | --h)
 4981:     # Conflict between --help and --header
 4982:     as_fn_error $? "ambiguous option: \`$1'
 4983: Try \`$0 --help' for more information.";;
 4984:   --help | --hel | -h )
 4985:     $as_echo "$ac_cs_usage"; exit ;;
 4986:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 4987:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 4988:     ac_cs_silent=: ;;
 4989: 
 4990:   # This is an error.
 4991:   -*) as_fn_error $? "unrecognized option: \`$1'
 4992: Try \`$0 --help' for more information." ;;
 4993: 
 4994:   *) as_fn_append ac_config_targets " $1"
 4995:      ac_need_defaults=false ;;
 4996: 
 4997:   esac
 4998:   shift
 4999: done
 5000: 
 5001: ac_configure_extra_args=
 5002: 
 5003: if $ac_cs_silent; then
 5004:   exec 6>/dev/null
 5005:   ac_configure_extra_args="$ac_configure_extra_args --silent"
 5006: fi
 5007: 
 5008: _ACEOF
 5009: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5010: if \$ac_cs_recheck; then
 5011:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 5012:   shift
 5013:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 5014:   CONFIG_SHELL='$SHELL'
 5015:   export CONFIG_SHELL
 5016:   exec "\$@"
 5017: fi
 5018: 
 5019: _ACEOF
 5020: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5021: exec 5>>config.log
 5022: {
 5023:   echo
 5024:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 5025: ## Running $as_me. ##
 5026: _ASBOX
 5027:   $as_echo "$ac_log"
 5028: } >&5
 5029: 
 5030: _ACEOF
 5031: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5032: _ACEOF
 5033: 
 5034: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5035: 
 5036: # Handling of arguments.
 5037: for ac_config_target in $ac_config_targets
 5038: do
 5039:   case $ac_config_target in
 5040:     "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
 5041:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 5042:     "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
 5043:     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 5044:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 5045: 
 5046:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 5047:   esac
 5048: done
 5049: 
 5050: 
 5051: # If the user did not use the arguments to specify the items to instantiate,
 5052: # then the envvar interface is used.  Set only those that are not.
 5053: # We use the long form for the default assignment because of an extremely
 5054: # bizarre bug on SunOS 4.1.3.
 5055: if $ac_need_defaults; then
 5056:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 5057:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 5058: fi
 5059: 
 5060: # Have a temporary directory for convenience.  Make it in the build tree
 5061: # simply because there is no reason against having it here, and in addition,
 5062: # creating and moving files from /tmp can sometimes cause problems.
 5063: # Hook for its removal unless debugging.
 5064: # Note that there is a small window in which the directory will not be cleaned:
 5065: # after its creation but before its name has been assigned to `$tmp'.
 5066: $debug ||
 5067: {
 5068:   tmp= ac_tmp=
 5069:   trap 'exit_status=$?
 5070:   : "${ac_tmp:=$tmp}"
 5071:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 5072: ' 0
 5073:   trap 'as_fn_exit 1' 1 2 13 15
 5074: }
 5075: # Create a (secure) tmp directory for tmp files.
 5076: 
 5077: {
 5078:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 5079:   test -d "$tmp"
 5080: }  ||
 5081: {
 5082:   tmp=./conf$$-$RANDOM
 5083:   (umask 077 && mkdir "$tmp")
 5084: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 5085: ac_tmp=$tmp
 5086: 
 5087: # Set up the scripts for CONFIG_FILES section.
 5088: # No need to generate them if there are no CONFIG_FILES.
 5089: # This happens for instance with `./config.status config.h'.
 5090: if test -n "$CONFIG_FILES"; then
 5091: 
 5092: 
 5093: ac_cr=`echo X | tr X '\015'`
 5094: # On cygwin, bash can eat \r inside `` if the user requested igncr.
 5095: # But we know of no other shell where ac_cr would be empty at this
 5096: # point, so we can use a bashism as a fallback.
 5097: if test "x$ac_cr" = x; then
 5098:   eval ac_cr=\$\'\\r\'
 5099: fi
 5100: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 5101: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 5102:   ac_cs_awk_cr='\\r'
 5103: else
 5104:   ac_cs_awk_cr=$ac_cr
 5105: fi
 5106: 
 5107: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 5108: _ACEOF
 5109: 
 5110: 
 5111: {
 5112:   echo "cat >conf$$subs.awk <<_ACEOF" &&
 5113:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 5114:   echo "_ACEOF"
 5115: } >conf$$subs.sh ||
 5116:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5117: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 5118: ac_delim='%!_!# '
 5119: for ac_last_try in false false false false false :; do
 5120:   . ./conf$$subs.sh ||
 5121:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5122: 
 5123:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 5124:   if test $ac_delim_n = $ac_delim_num; then
 5125:     break
 5126:   elif $ac_last_try; then
 5127:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5128:   else
 5129:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 5130:   fi
 5131: done
 5132: rm -f conf$$subs.sh
 5133: 
 5134: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5135: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 5136: _ACEOF
 5137: sed -n '
 5138: h
 5139: s/^/S["/; s/!.*/"]=/
 5140: p
 5141: g
 5142: s/^[^!]*!//
 5143: :repl
 5144: t repl
 5145: s/'"$ac_delim"'$//
 5146: t delim
 5147: :nl
 5148: h
 5149: s/\(.\{148\}\)..*/\1/
 5150: t more1
 5151: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 5152: p
 5153: n
 5154: b repl
 5155: :more1
 5156: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 5157: p
 5158: g
 5159: s/.\{148\}//
 5160: t nl
 5161: :delim
 5162: h
 5163: s/\(.\{148\}\)..*/\1/
 5164: t more2
 5165: s/["\\]/\\&/g; s/^/"/; s/$/"/
 5166: p
 5167: b
 5168: :more2
 5169: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 5170: p
 5171: g
 5172: s/.\{148\}//
 5173: t delim
 5174: ' <conf$$subs.awk | sed '
 5175: /^[^""]/{
 5176:   N
 5177:   s/\n//
 5178: }
 5179: ' >>$CONFIG_STATUS || ac_write_fail=1
 5180: rm -f conf$$subs.awk
 5181: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5182: _ACAWK
 5183: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 5184:   for (key in S) S_is_set[key] = 1
 5185:   FS = ""
 5186: 
 5187: }
 5188: {
 5189:   line = $ 0
 5190:   nfields = split(line, field, "@")
 5191:   substed = 0
 5192:   len = length(field[1])
 5193:   for (i = 2; i < nfields; i++) {
 5194:     key = field[i]
 5195:     keylen = length(key)
 5196:     if (S_is_set[key]) {
 5197:       value = S[key]
 5198:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 5199:       len += length(value) + length(field[++i])
 5200:       substed = 1
 5201:     } else
 5202:       len += 1 + keylen
 5203:   }
 5204: 
 5205:   print line
 5206: }
 5207: 
 5208: _ACAWK
 5209: _ACEOF
 5210: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5211: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 5212:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 5213: else
 5214:   cat
 5215: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 5216:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 5217: _ACEOF
 5218: 
 5219: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 5220: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 5221: # trailing colons and then remove the whole line if VPATH becomes empty
 5222: # (actually we leave an empty line to preserve line numbers).
 5223: if test "x$srcdir" = x.; then
 5224:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
 5225: h
 5226: s///
 5227: s/^/:/
 5228: s/[	 ]*$/:/
 5229: s/:\$(srcdir):/:/g
 5230: s/:\${srcdir}:/:/g
 5231: s/:@srcdir@:/:/g
 5232: s/^:*//
 5233: s/:*$//
 5234: x
 5235: s/\(=[	 ]*\).*/\1/
 5236: G
 5237: s/\n//
 5238: s/^[^=]*=[	 ]*$//
 5239: }'
 5240: fi
 5241: 
 5242: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5243: fi # test -n "$CONFIG_FILES"
 5244: 
 5245: # Set up the scripts for CONFIG_HEADERS section.
 5246: # No need to generate them if there are no CONFIG_HEADERS.
 5247: # This happens for instance with `./config.status Makefile'.
 5248: if test -n "$CONFIG_HEADERS"; then
 5249: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 5250: BEGIN {
 5251: _ACEOF
 5252: 
 5253: # Transform confdefs.h into an awk script `defines.awk', embedded as
 5254: # here-document in config.status, that substitutes the proper values into
 5255: # config.h.in to produce config.h.
 5256: 
 5257: # Create a delimiter string that does not exist in confdefs.h, to ease
 5258: # handling of long lines.
 5259: ac_delim='%!_!# '
 5260: for ac_last_try in false false :; do
 5261:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 5262:   if test -z "$ac_tt"; then
 5263:     break
 5264:   elif $ac_last_try; then
 5265:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 5266:   else
 5267:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 5268:   fi
 5269: done
 5270: 
 5271: # For the awk script, D is an array of macro values keyed by name,
 5272: # likewise P contains macro parameters if any.  Preserve backslash
 5273: # newline sequences.
 5274: 
 5275: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 5276: sed -n '
 5277: s/.\{148\}/&'"$ac_delim"'/g
 5278: t rset
 5279: :rset
 5280: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 5281: t def
 5282: d
 5283: :def
 5284: s/\\$//
 5285: t bsnl
 5286: s/["\\]/\\&/g
 5287: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 5288: D["\1"]=" \3"/p
 5289: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 5290: d
 5291: :bsnl
 5292: s/["\\]/\\&/g
 5293: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 5294: D["\1"]=" \3\\\\\\n"\\/p
 5295: t cont
 5296: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 5297: t cont
 5298: d
 5299: :cont
 5300: n
 5301: s/.\{148\}/&'"$ac_delim"'/g
 5302: t clear
 5303: :clear
 5304: s/\\$//
 5305: t bsnlc
 5306: s/["\\]/\\&/g; s/^/"/; s/$/"/p
 5307: d
 5308: :bsnlc
 5309: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 5310: b cont
 5311: ' <confdefs.h | sed '
 5312: s/'"$ac_delim"'/"\\\
 5313: "/g' >>$CONFIG_STATUS || ac_write_fail=1
 5314: 
 5315: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5316:   for (key in D) D_is_set[key] = 1
 5317:   FS = ""
 5318: }
 5319: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 5320:   line = \$ 0
 5321:   split(line, arg, " ")
 5322:   if (arg[1] == "#") {
 5323:     defundef = arg[2]
 5324:     mac1 = arg[3]
 5325:   } else {
 5326:     defundef = substr(arg[1], 2)
 5327:     mac1 = arg[2]
 5328:   }
 5329:   split(mac1, mac2, "(") #)
 5330:   macro = mac2[1]
 5331:   prefix = substr(line, 1, index(line, defundef) - 1)
 5332:   if (D_is_set[macro]) {
 5333:     # Preserve the white space surrounding the "#".
 5334:     print prefix "define", macro P[macro] D[macro]
 5335:     next
 5336:   } else {
 5337:     # Replace #undef with comments.  This is necessary, for example,
 5338:     # in the case of _POSIX_SOURCE, which is predefined and required
 5339:     # on some systems where configure will not decide to define it.
 5340:     if (defundef == "undef") {
 5341:       print "/*", prefix defundef, macro, "*/"
 5342:       next
 5343:     }
 5344:   }
 5345: }
 5346: { print }
 5347: _ACAWK
 5348: _ACEOF
 5349: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5350:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 5351: fi # test -n "$CONFIG_HEADERS"
 5352: 
 5353: 
 5354: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 5355: shift
 5356: for ac_tag
 5357: do
 5358:   case $ac_tag in
 5359:   :[FHLC]) ac_mode=$ac_tag; continue;;
 5360:   esac
 5361:   case $ac_mode$ac_tag in
 5362:   :[FHL]*:*);;
 5363:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 5364:   :[FH]-) ac_tag=-:-;;
 5365:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 5366:   esac
 5367:   ac_save_IFS=$IFS
 5368:   IFS=:
 5369:   set x $ac_tag
 5370:   IFS=$ac_save_IFS
 5371:   shift
 5372:   ac_file=$1
 5373:   shift
 5374: 
 5375:   case $ac_mode in
 5376:   :L) ac_source=$1;;
 5377:   :[FH])
 5378:     ac_file_inputs=
 5379:     for ac_f
 5380:     do
 5381:       case $ac_f in
 5382:       -) ac_f="$ac_tmp/stdin";;
 5383:       *) # Look for the file first in the build tree, then in the source tree
 5384: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 5385: 	 # because $ac_f cannot contain `:'.
 5386: 	 test -f "$ac_f" ||
 5387: 	   case $ac_f in
 5388: 	   [\\/$]*) false;;
 5389: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 5390: 	   esac ||
 5391: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 5392:       esac
 5393:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 5394:       as_fn_append ac_file_inputs " '$ac_f'"
 5395:     done
 5396: 
 5397:     # Let's still pretend it is `configure' which instantiates (i.e., don't
 5398:     # use $as_me), people would be surprised to read:
 5399:     #    /* config.h.  Generated by config.status.  */
 5400:     configure_input='Generated from '`
 5401: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 5402: 	`' by configure.'
 5403:     if test x"$ac_file" != x-; then
 5404:       configure_input="$ac_file.  $configure_input"
 5405:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 5406: $as_echo "$as_me: creating $ac_file" >&6;}
 5407:     fi
 5408:     # Neutralize special characters interpreted by sed in replacement strings.
 5409:     case $configure_input in #(
 5410:     *\&* | *\|* | *\\* )
 5411:        ac_sed_conf_input=`$as_echo "$configure_input" |
 5412:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 5413:     *) ac_sed_conf_input=$configure_input;;
 5414:     esac
 5415: 
 5416:     case $ac_tag in
 5417:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
 5418:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 5419:     esac
 5420:     ;;
 5421:   esac
 5422: 
 5423:   ac_dir=`$as_dirname -- "$ac_file" ||
 5424: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 5425: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 5426: 	 X"$ac_file" : 'X\(//\)$' \| \
 5427: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 5428: $as_echo X"$ac_file" |
 5429:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 5430: 	    s//\1/
 5431: 	    q
 5432: 	  }
 5433: 	  /^X\(\/\/\)[^/].*/{
 5434: 	    s//\1/
 5435: 	    q
 5436: 	  }
 5437: 	  /^X\(\/\/\)$/{
 5438: 	    s//\1/
 5439: 	    q
 5440: 	  }
 5441: 	  /^X\(\/\).*/{
 5442: 	    s//\1/
 5443: 	    q
 5444: 	  }
 5445: 	  s/.*/./; q'`
 5446:   as_dir="$ac_dir"; as_fn_mkdir_p
 5447:   ac_builddir=.
 5448: 
 5449: case "$ac_dir" in
 5450: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 5451: *)
 5452:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 5453:   # A ".." for each directory in $ac_dir_suffix.
 5454:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 5455:   case $ac_top_builddir_sub in
 5456:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 5457:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 5458:   esac ;;
 5459: esac
 5460: ac_abs_top_builddir=$ac_pwd
 5461: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 5462: # for backward compatibility:
 5463: ac_top_builddir=$ac_top_build_prefix
 5464: 
 5465: case $srcdir in
 5466:   .)  # We are building in place.
 5467:     ac_srcdir=.
 5468:     ac_top_srcdir=$ac_top_builddir_sub
 5469:     ac_abs_top_srcdir=$ac_pwd ;;
 5470:   [\\/]* | ?:[\\/]* )  # Absolute name.
 5471:     ac_srcdir=$srcdir$ac_dir_suffix;
 5472:     ac_top_srcdir=$srcdir
 5473:     ac_abs_top_srcdir=$srcdir ;;
 5474:   *) # Relative name.
 5475:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 5476:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 5477:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 5478: esac
 5479: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 5480: 
 5481: 
 5482:   case $ac_mode in
 5483:   :F)
 5484:   #
 5485:   # CONFIG_FILE
 5486:   #
 5487: 
 5488:   case $INSTALL in
 5489:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 5490:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 5491:   esac
 5492: _ACEOF
 5493: 
 5494: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5495: # If the template does not know about datarootdir, expand it.
 5496: # FIXME: This hack should be removed a few years after 2.60.
 5497: ac_datarootdir_hack=; ac_datarootdir_seen=
 5498: ac_sed_dataroot='
 5499: /datarootdir/ {
 5500:   p
 5501:   q
 5502: }
 5503: /@datadir@/p
 5504: /@docdir@/p
 5505: /@infodir@/p
 5506: /@localedir@/p
 5507: /@mandir@/p'
 5508: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 5509: *datarootdir*) ac_datarootdir_seen=yes;;
 5510: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 5511:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 5512: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 5513: _ACEOF
 5514: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5515:   ac_datarootdir_hack='
 5516:   s&@datadir@&$datadir&g
 5517:   s&@docdir@&$docdir&g
 5518:   s&@infodir@&$infodir&g
 5519:   s&@localedir@&$localedir&g
 5520:   s&@mandir@&$mandir&g
 5521:   s&\\\${datarootdir}&$datarootdir&g' ;;
 5522: esac
 5523: _ACEOF
 5524: 
 5525: # Neutralize VPATH when `$srcdir' = `.'.
 5526: # Shell code in configure.ac might set extrasub.
 5527: # FIXME: do we really want to maintain this feature?
 5528: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5529: ac_sed_extra="$ac_vpsub
 5530: $extrasub
 5531: _ACEOF
 5532: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5533: :t
 5534: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 5535: s|@configure_input@|$ac_sed_conf_input|;t t
 5536: s&@top_builddir@&$ac_top_builddir_sub&;t t
 5537: s&@top_build_prefix@&$ac_top_build_prefix&;t t
 5538: s&@srcdir@&$ac_srcdir&;t t
 5539: s&@abs_srcdir@&$ac_abs_srcdir&;t t
 5540: s&@top_srcdir@&$ac_top_srcdir&;t t
 5541: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 5542: s&@builddir@&$ac_builddir&;t t
 5543: s&@abs_builddir@&$ac_abs_builddir&;t t
 5544: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 5545: s&@INSTALL@&$ac_INSTALL&;t t
 5546: $ac_datarootdir_hack
 5547: "
 5548: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 5549:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 5550: 
 5551: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 5552:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 5553:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
 5554:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
 5555:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 5556: which seems to be undefined.  Please make sure it is defined" >&5
 5557: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 5558: which seems to be undefined.  Please make sure it is defined" >&2;}
 5559: 
 5560:   rm -f "$ac_tmp/stdin"
 5561:   case $ac_file in
 5562:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 5563:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 5564:   esac \
 5565:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 5566:  ;;
 5567:   :H)
 5568:   #
 5569:   # CONFIG_HEADER
 5570:   #
 5571:   if test x"$ac_file" != x-; then
 5572:     {
 5573:       $as_echo "/* $configure_input  */" \
 5574:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 5575:     } >"$ac_tmp/config.h" \
 5576:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 5577:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 5578:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 5579: $as_echo "$as_me: $ac_file is unchanged" >&6;}
 5580:     else
 5581:       rm -f "$ac_file"
 5582:       mv "$ac_tmp/config.h" "$ac_file" \
 5583: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
 5584:     fi
 5585:   else
 5586:     $as_echo "/* $configure_input  */" \
 5587:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 5588:       || as_fn_error $? "could not create -" "$LINENO" 5
 5589:   fi
 5590:  ;;
 5591: 
 5592: 
 5593:   esac
 5594: 
 5595: done # for ac_tag
 5596: 
 5597: 
 5598: as_fn_exit 0
 5599: _ACEOF
 5600: ac_clean_files=$ac_clean_files_save
 5601: 
 5602: test $ac_write_fail = 0 ||
 5603:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 5604: 
 5605: 
 5606: # configure is writing to config.log, and then calls config.status.
 5607: # config.status does its own redirection, appending to config.log.
 5608: # Unfortunately, on DOS this fails, as config.log is still kept open
 5609: # by configure, so config.status won't be able to write to it; its
 5610: # output is simply discarded.  So we exec the FD to /dev/null,
 5611: # effectively closing config.log, so it can be properly (re)opened and
 5612: # appended to by config.status.  When coming back to configure, we
 5613: # need to make the FD available again.
 5614: if test "$no_create" != yes; then
 5615:   ac_cs_success=:
 5616:   ac_config_status_args=
 5617:   test "$silent" = yes &&
 5618:     ac_config_status_args="$ac_config_status_args --quiet"
 5619:   exec 5>/dev/null
 5620:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 5621:   exec 5>>config.log
 5622:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 5623:   # would make configure fail if this is the last instruction.
 5624:   $ac_cs_success || as_fn_exit 1
 5625: fi
 5626: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 5627:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 5628: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 5629: fi
 5630: 

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