home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.lbl.gov / 2014.05.ftp.ee.lbl.gov.tar / ftp.ee.lbl.gov / acld-1.11.tar.gz / acld-1.11.tar / acld-1.11 / configure < prev    next >
Text File  |  2011-11-03  |  209KB  |  7,462 lines

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