/[emacs]/emacs/configure
ViewVC logotype

Diff of /emacs/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.84 by pj, Mon Apr 8 06:17:17 2002 UTC revision 1.85 by walters, Wed Apr 10 22:14:09 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated by Autoconf 2.52.  # Generated by GNU Autoconf 2.53.
4  #  #
5  # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001  # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Avoid depending upon Character Ranges.  if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_cr_letters='abcdefghijklmnopqrstuvwxyz'    as_expr=expr
12  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'  else
13  as_cr_Letters=$as_cr_letters$as_cr_LETTERS    as_expr=false
14  as_cr_digits='0123456789'  fi
 as_cr_alnum=$as_cr_Letters$as_cr_digits  
15    
 # Sed expression to map a string onto a valid variable name.  
 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"  
16    
17  # Sed expression to map a string onto a valid CPP name.  ## --------------------- ##
18  as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"  ## M4sh Initialization.  ##
19    ## --------------------- ##
20    
21  # Be Bourne compatible  # Be Bourne compatible
22  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
# Line 28  elif test -n "${BASH_VERSION+set}" && (s Line 26  elif test -n "${BASH_VERSION+set}" && (s
26    set -o posix    set -o posix
27  fi  fi
28    
29    # NLS nuisances.
30    # Support unset when possible.
31    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32      as_unset=unset
33    else
34      as_unset=false
35    fi
36    
37    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38        { $as_unset LANG || test "${LANG+set}" != set; } ||
39          { LANG=C; export LANG; }
40    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42          { LC_ALL=C; export LC_ALL; }
43    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45          { LC_TIME=C; export LC_TIME; }
46    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48          { LC_CTYPE=C; export LC_CTYPE; }
49    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51          { LANGUAGE=C; export LANGUAGE; }
52    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54          { LC_COLLATE=C; export LC_COLLATE; }
55    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57          { LC_NUMERIC=C; export LC_NUMERIC; }
58    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60          { LC_MESSAGES=C; export LC_MESSAGES; }
61    
62    
63  # Name of the executable.  # Name of the executable.
64  as_me=`echo "$0" |sed 's,.*[\\/],,'`  as_me=`(basename "$0") 2>/dev/null ||
65    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66             X"$0" : 'X\(//\)$' \| \
67             X"$0" : 'X\(/\)$' \| \
68             .     : '\(.\)' 2>/dev/null ||
69    echo X/"$0" |
70        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71              /^X\/\(\/\/\)$/{ s//\1/; q; }
72              /^X\/\(\/\).*/{ s//\1/; q; }
73              s/.*/./; q'`
74    
75    # PATH needs CR, and LINENO needs CR and PATH.
76    # Avoid depending upon Character Ranges.
77    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80    as_cr_digits='0123456789'
81    as_cr_alnum=$as_cr_Letters$as_cr_digits
82    
83    # The user is always right.
84    if test "${PATH_SEPARATOR+set}" != set; then
85      echo "#! /bin/sh" >conftest.sh
86      echo  "exit 0"   >>conftest.sh
87      chmod +x conftest.sh
88      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89        PATH_SEPARATOR=';'
90      else
91        PATH_SEPARATOR=:
92      fi
93      rm -f conftest.sh
94    fi
95    
96    
97      as_lineno_1=$LINENO
98      as_lineno_2=$LINENO
99      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100      test "x$as_lineno_1" != "x$as_lineno_2" &&
101      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102      # Find who we are.  Look in the path if we contain no path at all
103      # relative or not.
104      case $0 in
105        *[\\/]* ) as_myself=$0 ;;
106        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107    for as_dir in $PATH
108    do
109      IFS=$as_save_IFS
110      test -z "$as_dir" && as_dir=.
111      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112    done
113    
114           ;;
115      esac
116      # We did not find ourselves, most probably we were run as `sh COMMAND'
117      # in which case we are not to be found in the path.
118      if test "x$as_myself" = x; then
119        as_myself=$0
120      fi
121      if test ! -f "$as_myself"; then
122        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123       { (exit 1); exit 1; }; }
124      fi
125      case $CONFIG_SHELL in
126      '')
127        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129    do
130      IFS=$as_save_IFS
131      test -z "$as_dir" && as_dir=.
132      for as_base in sh bash ksh sh5; do
133             case $as_dir in
134             /*)
135               if ("$as_dir/$as_base" -c '
136      as_lineno_1=$LINENO
137      as_lineno_2=$LINENO
138      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139      test "x$as_lineno_1" != "x$as_lineno_2" &&
140      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141                 CONFIG_SHELL=$as_dir/$as_base
142                 export CONFIG_SHELL
143                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144               fi;;
145             esac
146           done
147    done
148    ;;
149      esac
150    
151      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152      # uniformly replaced by the line number.  The first 'sed' inserts a
153      # line-number line before each line; the second 'sed' does the real
154      # work.  The second script uses 'N' to pair each line-number line
155      # with the numbered line, and appends trailing '-' during
156      # substitution so that $LINENO is not a special case at line end.
157      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159      sed '=' <$as_myself |
160        sed '
161          N
162          s,$,-,
163          : loop
164          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165          t loop
166          s,-$,,
167          s,^['$as_cr_digits']*\n,,
168        ' >$as_me.lineno &&
169      chmod +x $as_me.lineno ||
170        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171       { (exit 1); exit 1; }; }
172    
173      # Don't try to exec as it changes $[0], causing all sort of problems
174      # (the dirname of $[0] is not the place where we might find the
175      # original and so on.  Autoconf is especially sensible to this).
176      . ./$as_me.lineno
177      # Exit status is that of the last command.
178      exit
179    }
180    
181    
182    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183      *c*,-n*) ECHO_N= ECHO_C='
184    ' ECHO_T='      ' ;;
185      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187    esac
188    
189  if expr a : '\(a\)' >/dev/null 2>&1; then  if expr a : '\(a\)' >/dev/null 2>&1; then
190    as_expr=expr    as_expr=expr
# Line 57  rm -f conf$$ conf$$.exe conf$$.file Line 212  rm -f conf$$ conf$$.exe conf$$.file
212    
213  as_executable_p="test -f"  as_executable_p="test -f"
214    
215  # Support unset when possible.  # Sed expression to map a string onto a valid CPP name.
216  if (FOO=FOO; unset FOO) >/dev/null 2>&1; then  as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217    as_unset=unset  
218  else  # Sed expression to map a string onto a valid variable name.
219    as_unset=false  as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 fi  
220    
 # NLS nuisances.  
 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }  
 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }  
 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }  
 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }  
 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }  
 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }  
 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }  
 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }  
221    
222  # IFS  # IFS
223  # We need space, tab and new line, in precisely that order.  # We need space, tab and new line, in precisely that order.
# Line 81  as_nl=' Line 226  as_nl='
226  IFS="   $as_nl"  IFS="   $as_nl"
227    
228  # CDPATH.  # CDPATH.
229  $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }  $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230    
231    
232  # Name of the host.  # Name of the host.
233  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# Line 96  exec 6>&1 Line 242  exec 6>&1
242  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
243  cross_compiling=no  cross_compiling=no
244  subdirs=  subdirs=
245  MFLAGS= MAKEFLAGS=  MFLAGS=
246    MAKEFLAGS=
247  SHELL=${CONFIG_SHELL-/bin/sh}  SHELL=${CONFIG_SHELL-/bin/sh}
248    
249  # Maximum number of lines to put in a shell here document.  # Maximum number of lines to put in a shell here document.
# Line 104  SHELL=${CONFIG_SHELL-/bin/sh} Line 251  SHELL=${CONFIG_SHELL-/bin/sh}
251  # only ac_max_sed_lines should be used.  # only ac_max_sed_lines should be used.
252  : ${ac_max_here_lines=38}  : ${ac_max_here_lines=38}
253    
254    # Identity of this package.
255    PACKAGE_NAME=
256    PACKAGE_TARNAME=
257    PACKAGE_VERSION=
258    PACKAGE_STRING=
259    PACKAGE_BUGREPORT=
260    
261  ac_unique_file="src/lisp.h"  ac_unique_file="src/lisp.h"
262  # Factoring default headers for most tests.  # Factoring default headers for most tests.
263  ac_includes_default="\  ac_includes_default="\
# Line 142  ac_includes_default="\ Line 296  ac_includes_default="\
296  # include <unistd.h>  # include <unistd.h>
297  #endif"  #endif"
298    
299    
300  # Initialize some variables set by options.  # Initialize some variables set by options.
301  ac_init_help=  ac_init_help=
302  ac_init_version=false  ac_init_version=false
# Line 180  oldincludedir='/usr/include' Line 335  oldincludedir='/usr/include'
335  infodir='${prefix}/info'  infodir='${prefix}/info'
336  mandir='${prefix}/man'  mandir='${prefix}/man'
337    
 # Identity of this package.  
 PACKAGE_NAME=  
 PACKAGE_TARNAME=  
 PACKAGE_VERSION=  
 PACKAGE_STRING=  
 PACKAGE_BUGREPORT=  
   
338  ac_prev=  ac_prev=
339  for ac_option  for ac_option
340  do  do
# Line 319  do Line 467  do
467      with_fp=no ;;      with_fp=no ;;
468    
469    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
471      no_create=yes ;;      no_create=yes ;;
472    
473    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 498  do Line 646  do
646    eval ac_val=$`echo $ac_var`    eval ac_val=$`echo $ac_var`
647    case $ac_val in    case $ac_val in
648      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;      [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649      *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650     { (exit 1); exit 1; }; };;     { (exit 1); exit 1; }; };;
651    esac    esac
652  done  done
# Line 510  do Line 658  do
658    eval ac_val=$`echo $ac_var`    eval ac_val=$`echo $ac_var`
659    case $ac_val in    case $ac_val in
660      [\\/$]* | ?:[\\/]* ) ;;      [\\/$]* | ?:[\\/]* ) ;;
661      *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662     { (exit 1); exit 1; }; };;     { (exit 1); exit 1; }; };;
663    esac    esac
664  done  done
665    
666  # There might be people who depend on the old broken behavior: `$host'  # There might be people who depend on the old broken behavior: `$host'
667  # used to hold the argument of --host etc.  # used to hold the argument of --host etc.
668    # FIXME: To remove some day.
669  build=$build_alias  build=$build_alias
670  host=$host_alias  host=$host_alias
671  target=$target_alias  target=$target_alias
672    
673  # FIXME: should be removed in autoconf 3.0.  # FIXME: To remove some day.
674  if test "x$host_alias" != x; then  if test "x$host_alias" != x; then
675    if test "x$build_alias" = x; then    if test "x$build_alias" = x; then
676      cross_compiling=maybe      cross_compiling=maybe
# Line 537  test -n "$host_alias" && ac_tool_prefix= Line 686  test -n "$host_alias" && ac_tool_prefix=
686    
687  test "$silent" = yes && exec 6>/dev/null  test "$silent" = yes && exec 6>/dev/null
688    
689    
690  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
691  if test -z "$srcdir"; then  if test -z "$srcdir"; then
692    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
693    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
694    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
695    ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
697             X"$0" : 'X\(//\)$' \| \
698             X"$0" : 'X\(/\)' \| \
699             .     : '\(.\)' 2>/dev/null ||
700    echo X"$0" |
701        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703              /^X\(\/\/\)$/{ s//\1/; q; }
704              /^X\(\/\).*/{ s//\1/; q; }
705              s/.*/./; q'`
706    srcdir=$ac_confdir    srcdir=$ac_confdir
707    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
708      srcdir=..      srcdir=..
# Line 553  else Line 712  else
712  fi  fi
713  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
714    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
715      { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
717    else    else
718      { echo "$as_me: error: cannot find sources in $srcdir" >&2      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
720    fi    fi
721  fi  fi
# Line 600  ac_cv_env_CPP_value=$CPP Line 759  ac_cv_env_CPP_value=$CPP
759  if test "$ac_init_help" = "long"; then  if test "$ac_init_help" = "long"; then
760    # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
761    # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
762    cat <<EOF    cat <<_ACEOF
763  \`configure' configures this package to adapt to many kinds of systems.  \`configure' configures this package to adapt to many kinds of systems.
764    
765  Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 621  Configuration: Line 780  Configuration:
780    -n, --no-create         do not create output files    -n, --no-create         do not create output files
781        --srcdir=DIR        find the sources in DIR [configure dir or \`..']        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782    
783  EOF  _ACEOF
784    
785    cat <<EOF    cat <<_ACEOF
786  Installation directories:  Installation directories:
787    --prefix=PREFIX         install architecture-independent files in PREFIX    --prefix=PREFIX         install architecture-independent files in PREFIX
788                            [$ac_default_prefix]                            [$ac_default_prefix]
# Line 650  Fine tuning of the installation director Line 809  Fine tuning of the installation director
809    --oldincludedir=DIR    C header files for non-gcc [/usr/include]    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810    --infodir=DIR          info documentation [PREFIX/info]    --infodir=DIR          info documentation [PREFIX/info]
811    --mandir=DIR           man documentation [PREFIX/man]    --mandir=DIR           man documentation [PREFIX/man]
812  EOF  _ACEOF
813    
814    cat <<\EOF    cat <<\_ACEOF
815    
816  Program names:  Program names:
817    --program-prefix=PREFIX            prepend PREFIX to installed program names    --program-prefix=PREFIX            prepend PREFIX to installed program names
# Line 665  X features: Line 824  X features:
824    
825  System types:  System types:
826    --build=BUILD     configure for building on BUILD [guessed]    --build=BUILD     configure for building on BUILD [guessed]
827    --host=HOST       build programs to run on HOST [BUILD]    --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828  EOF  _ACEOF
829  fi  fi
830    
831  if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
832    
833    cat <<\EOF    cat <<\_ACEOF
834    
835  Optional Features:  Optional Features:
836    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 681  Optional Features: Line 840  Optional Features:
840  Optional Packages:  Optional Packages:
841    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843      --with-game-dir         use a shared game directory if possible
844      --with-game-user       use specified user for game directory
845    --without-gcc           don't use GCC to compile Emacs if GCC is found    --without-gcc           don't use GCC to compile Emacs if GCC is found
846    --without-pop           don't support POP mail retrieval with movemail    --without-pop           don't support POP mail retrieval with movemail
847    --with-kerberos         support Kerberos-authenticated POP    --with-kerberos         support Kerberos-authenticated POP
# Line 710  Some influential environment variables: Line 871  Some influential environment variables:
871  Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
872  it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
873    
874  EOF  _ACEOF
875  fi  fi
876    
877  if test "$ac_init_help" = "recursive"; then  if test "$ac_init_help" = "recursive"; then
878    # If there are subdirs, report their specific --help.    # If there are subdirs, report their specific --help.
879    ac_popdir=`pwd`    ac_popdir=`pwd`
880    for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881      cd $ac_subdir      test -d $ac_dir || continue
882      # A "../" for each directory in /$ac_subdir.      ac_builddir=.
883      ac_dots=`echo $ac_subdir |  
884               sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`  if test "$ac_dir" != .; then
885      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886      case $srcdir in    # A "../" for each directory in $ac_dir_suffix.
887      .) # No --srcdir option.  We are building in place.    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888        ac_sub_srcdir=$srcdir ;;  else
889      [\\/]* | ?:[\\/]* ) # Absolute path.    ac_dir_suffix= ac_top_builddir=
890        ac_sub_srcdir=$srcdir/$ac_subdir ;;  fi
891      *) # Relative path.  
892        ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;  case $srcdir in
893      esac    .)  # No --srcdir option.  We are building in place.
894        ac_srcdir=.
895        if test -z "$ac_top_builddir"; then
896           ac_top_srcdir=.
897        else
898           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899        fi ;;
900      [\\/]* | ?:[\\/]* )  # Absolute path.
901        ac_srcdir=$srcdir$ac_dir_suffix;
902        ac_top_srcdir=$srcdir ;;
903      *) # Relative path.
904        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905        ac_top_srcdir=$ac_top_builddir$srcdir ;;
906    esac
907    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908    # absolute.
909    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
911    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913    
914        cd $ac_dir
915      # Check for guested configure; otherwise get Cygnus style configure.      # Check for guested configure; otherwise get Cygnus style configure.
916      if test -f $ac_sub_srcdir/configure.gnu; then      if test -f $ac_srcdir/configure.gnu; then
917        echo        echo
918        $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive        $SHELL $ac_srcdir/configure.gnu  --help=recursive
919      elif test -f $ac_sub_srcdir/configure; then      elif test -f $ac_srcdir/configure; then
920        echo        echo
921        $SHELL $ac_sub_srcdir/configure  --help=recursive        $SHELL $ac_srcdir/configure  --help=recursive
922      elif test -f $ac_sub_srcdir/configure.ac ||      elif test -f $ac_srcdir/configure.ac ||
923             test -f $ac_sub_srcdir/configure.in; then             test -f $ac_srcdir/configure.in; then
924        echo        echo
925        $ac_configure --help        $ac_configure --help
926      else      else
927        echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928      fi      fi
929      cd $ac_popdir      cd $ac_popdir
930    done    done
# Line 751  fi Line 932  fi
932    
933  test -n "$ac_init_help" && exit 0  test -n "$ac_init_help" && exit 0
934  if $ac_init_version; then  if $ac_init_version; then
935    cat <<\EOF    cat <<\_ACEOF
936    
937  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938  Free Software Foundation, Inc.  Free Software Foundation, Inc.
939  This configure script is free software; the Free Software Foundation  This configure script is free software; the Free Software Foundation
940  gives unlimited permission to copy, distribute and modify it.  gives unlimited permission to copy, distribute and modify it.
941  EOF  _ACEOF
942    exit 0    exit 0
943  fi  fi
944  exec 5>config.log  exec 5>config.log
945  cat >&5 <<EOF  cat >&5 <<_ACEOF
946  This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
947  running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
948    
949  It was created by $as_me, which was  It was created by $as_me, which was
950  generated by GNU Autoconf 2.52.  Invocation command line was  generated by GNU Autoconf 2.53.  Invocation command line was
951    
952    $ $0 $@    $ $0 $@
953    
954  EOF  _ACEOF
955  {  {
956  cat <<_ASUNAME  cat <<_ASUNAME
957  ## ---------- ##  ## --------- ##
958  ## Platform.  ##  ## Platform. ##
959  ## ---------- ##  ## --------- ##
960    
961  hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`  hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962  uname -m = `(uname -m) 2>/dev/null || echo unknown`  uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 794  hostinfo               = `(hostinfo) 2>/ Line 975  hostinfo               = `(hostinfo) 2>/
975  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977    
 PATH = $PATH  
   
978  _ASUNAME  _ASUNAME
979    
980    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981    for as_dir in $PATH
982    do
983      IFS=$as_save_IFS
984      test -z "$as_dir" && as_dir=.
985      echo "PATH: $as_dir"
986    done
987    
988  } >&5  } >&5
989    
990  cat >&5 <<EOF  cat >&5 <<_ACEOF
991  ## ------------ ##  
992  ## Core tests.  ##  
993  ## ------------ ##  ## ----------- ##
994    ## Core tests. ##
995    ## ----------- ##
996    
997    _ACEOF
998    
 EOF  
999    
1000  # Keep a trace of the command line.  # Keep a trace of the command line.
1001  # Strip out --no-create and --no-recursion so they do not pile up.  # Strip out --no-create and --no-recursion so they do not pile up.
# Line 815  for ac_arg Line 1006  for ac_arg
1006  do  do
1007    case $ac_arg in    case $ac_arg in
1008    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009    | --no-cr | --no-c) ;;    | --no-cr | --no-c | -n ) continue ;;
1010    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012        continue ;;
1013    *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)    *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1014      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"    esac
1016      ac_sep=" " ;;    case " $ac_configure_args " in
1017    *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1018       ac_sep=" " ;;      *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019           ac_sep=" " ;;
1020    esac    esac
1021    # Get rid of the leading space.    # Get rid of the leading space.
1022  done  done
# Line 831  done Line 1024  done
1024  # When interrupted or exit'd, cleanup temporary files, and complete  # When interrupted or exit'd, cleanup temporary files, and complete
1025  # config.log.  We remove comments because anyway the quotes in there  # config.log.  We remove comments because anyway the quotes in there
1026  # would cause problems or look ugly.  # would cause problems or look ugly.
1027    # WARNING: Be sure not to use single quotes in there, as some shells,
1028    # such as our DU 5.0 friend, will then `close' the trap.
1029  trap 'exit_status=$?  trap 'exit_status=$?
1030    # Save into config.log some information that might help in debugging.    # Save into config.log some information that might help in debugging.
1031    echo >&5    {
1032    echo "## ----------------- ##" >&5      echo
1033    echo "## Cache variables.  ##" >&5      cat <<\_ASBOX
1034    echo "## ----------------- ##" >&5  ## ---------------- ##
1035    echo >&5  ## Cache variables. ##
1036    # The following way of writing the cache mishandles newlines in values,  ## ---------------- ##
1037    _ASBOX
1038        echo
1039        # The following way of writing the cache mishandles newlines in values,
1040  {  {
1041    (set) 2>&1 |    (set) 2>&1 |
1042      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
# Line 852  trap 'exit_status=$? Line 1050  trap 'exit_status=$?
1050          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051        ;;        ;;
1052      esac;      esac;
1053  } >&5  }
1054    sed "/^$/d" confdefs.h >conftest.log      echo
1055    if test -s conftest.log; then      if test -s confdefs.h; then
1056      echo >&5        cat <<\_ASBOX
1057      echo "## ------------ ##" >&5  ## ----------- ##
1058      echo "## confdefs.h.  ##" >&5  ## confdefs.h. ##
1059      echo "## ------------ ##" >&5  ## ----------- ##
1060      echo >&5  _ASBOX
1061      cat conftest.log >&5        echo
1062    fi        sed "/^$/d" confdefs.h
1063    (echo; echo) >&5        echo
1064    test "$ac_signal" != 0 &&      fi
1065      echo "$as_me: caught signal $ac_signal" >&5      test "$ac_signal" != 0 &&
1066    echo "$as_me: exit $exit_status" >&5        echo "$as_me: caught signal $ac_signal"
1067    rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&      echo "$as_me: exit $exit_status"
1068      } >&5
1069      rm -f core core.* *.core &&
1070      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1071      exit $exit_status      exit $exit_status
1072       ' 0       ' 0
1073  for ac_signal in 1 2 13 15; do  for ac_signal in 1 2 13 15; do
# Line 879  rm -rf conftest* confdefs.h Line 1080  rm -rf conftest* confdefs.h
1080  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1081  echo >confdefs.h  echo >confdefs.h
1082    
1083    # Predefined preprocessor variables.
1084    
1085    cat >>confdefs.h <<_ACEOF
1086    #define PACKAGE_NAME "$PACKAGE_NAME"
1087    _ACEOF
1088    
1089    
1090    cat >>confdefs.h <<_ACEOF
1091    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092    _ACEOF
1093    
1094    
1095    cat >>confdefs.h <<_ACEOF
1096    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1097    _ACEOF
1098    
1099    
1100    cat >>confdefs.h <<_ACEOF
1101    #define PACKAGE_STRING "$PACKAGE_STRING"
1102    _ACEOF
1103    
1104    
1105    cat >>confdefs.h <<_ACEOF
1106    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107    _ACEOF
1108    
1109    
1110  # Let the site file select an alternate cache file if it wants to.  # Let the site file select an alternate cache file if it wants to.
1111  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1112  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
# Line 890  if test -z "$CONFIG_SITE"; then Line 1118  if test -z "$CONFIG_SITE"; then
1118  fi  fi
1119  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1120    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1121      { echo "$as_me:893: loading site script $ac_site_file" >&5      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1122  echo "$as_me: loading site script $ac_site_file" >&6;}  echo "$as_me: loading site script $ac_site_file" >&6;}
1123      cat "$ac_site_file" >&5      sed 's/^/| /' "$ac_site_file" >&5
1124      . "$ac_site_file"      . "$ac_site_file"
1125    fi    fi
1126  done  done
# Line 901  if test -r "$cache_file"; then Line 1129  if test -r "$cache_file"; then
1129    # Some versions of bash will fail to source /dev/null (special    # Some versions of bash will fail to source /dev/null (special
1130    # files actually), so we avoid doing that.    # files actually), so we avoid doing that.
1131    if test -f "$cache_file"; then    if test -f "$cache_file"; then
1132      { echo "$as_me:904: loading cache $cache_file" >&5      { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1133  echo "$as_me: loading cache $cache_file" >&6;}  echo "$as_me: loading cache $cache_file" >&6;}
1134      case $cache_file in      case $cache_file in
1135        [\\/]* | ?:[\\/]* ) . $cache_file;;        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 909  echo "$as_me: loading cache $cache_file" Line 1137  echo "$as_me: loading cache $cache_file"
1137      esac      esac
1138    fi    fi
1139  else  else
1140    { echo "$as_me:912: creating cache $cache_file" >&5    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1141  echo "$as_me: creating cache $cache_file" >&6;}  echo "$as_me: creating cache $cache_file" >&6;}
1142    >$cache_file    >$cache_file
1143  fi  fi
# Line 925  for ac_var in `(set) 2>&1 | Line 1153  for ac_var in `(set) 2>&1 |
1153    eval ac_new_val="\$ac_env_${ac_var}_value"    eval ac_new_val="\$ac_env_${ac_var}_value"
1154    case $ac_old_set,$ac_new_set in    case $ac_old_set,$ac_new_set in
1155      set,)      set,)
1156        { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5        { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1157  echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}  echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1158        ac_cache_corrupted=: ;;        ac_cache_corrupted=: ;;
1159      ,set)      ,set)
1160        { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5        { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1161  echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}  echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1162        ac_cache_corrupted=: ;;        ac_cache_corrupted=: ;;
1163      ,);;      ,);;
1164      *)      *)
1165        if test "x$ac_old_val" != "x$ac_new_val"; then        if test "x$ac_old_val" != "x$ac_new_val"; then
1166          { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1167  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1168          { echo "$as_me:940:   former value:  $ac_old_val" >&5          { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1169  echo "$as_me:   former value:  $ac_old_val" >&2;}  echo "$as_me:   former value:  $ac_old_val" >&2;}
1170          { echo "$as_me:942:   current value: $ac_new_val" >&5          { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1171  echo "$as_me:   current value: $ac_new_val" >&2;}  echo "$as_me:   current value: $ac_new_val" >&2;}
1172          ac_cache_corrupted=:          ac_cache_corrupted=:
1173        fi;;        fi;;
1174    esac    esac
1175    # Pass precious variables to config.status.  It doesn't matter if    # Pass precious variables to config.status.
   # we pass some twice (in addition to the command line arguments).  
1176    if test "$ac_new_set" = set; then    if test "$ac_new_set" = set; then
1177      case $ac_new_val in      case $ac_new_val in
1178      *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)      *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179        ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`        ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1180        ac_configure_args="$ac_configure_args '$ac_arg'"      *) ac_arg=$ac_var=$ac_new_val ;;
1181        ;;      esac
1182      *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"      case " $ac_configure_args " in
1183         ;;        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1184          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1185      esac      esac
1186    fi    fi
1187  done  done
1188  if $ac_cache_corrupted; then  if $ac_cache_corrupted; then
1189    { echo "$as_me:961: error: changes in the environment can compromise the build" >&5    { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1190  echo "$as_me: error: changes in the environment can compromise the build" >&2;}  echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1191    { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5    { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1192  echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}  echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1193     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1194  fi  fi
# Line 971  ac_compile='$CC -c $CFLAGS $CPPFLAGS con Line 1199  ac_compile='$CC -c $CFLAGS $CPPFLAGS con
1199  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1200  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201    
1202  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in  
1203    *c*,-n*) ECHO_N= ECHO_C='  
1204  ' ECHO_T='      ' ;;  
1205    *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;  
1206    *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;  
1207  esac  
1208  echo "#! $SHELL" >conftest.sh  
1209  echo  "exit 0"   >>conftest.sh  
1210  chmod +x conftest.sh  
1211  if { (echo "$as_me:983: PATH=\".;.\"; conftest.sh") >&5  
1212    (PATH=".;."; conftest.sh) 2>&5  
1213    ac_status=$?  
1214    echo "$as_me:986: \$? = $ac_status" >&5  
1215    (exit $ac_status); }; then  
1216    ac_path_separator=';'  
1217  else  
   ac_path_separator=:  
 fi  
 PATH_SEPARATOR="$ac_path_separator"  
 rm -f conftest.sh  
1218    
1219  ac_config_headers="$ac_config_headers src/config.h:src/config.in"  ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1220    
1221    
1222  test "$program_prefix" != NONE &&  test "$program_prefix" != NONE &&
1223    program_transform_name="s,^,$program_prefix,;$program_transform_name"    program_transform_name="s,^,$program_prefix,;$program_transform_name"
1224  # Use a double $ so make ignores it.  # Use a double $ so make ignores it.
# Line 1007  _ACEOF Line 1232  _ACEOF
1232  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1233  rm conftest.sed  rm conftest.sed
1234    
1235    
1236  lispdir='${datadir}/emacs/${version}/lisp'  lispdir='${datadir}/emacs/${version}/lisp'
1237  locallisppath='${datadir}/emacs/${version}/site-lisp:'\  locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1238  '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'  '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
# Line 1014  lisppath='${locallisppath}:${lispdir}' Line 1240  lisppath='${locallisppath}:${lispdir}'
1240  etcdir='${datadir}/emacs/${version}/etc'  etcdir='${datadir}/emacs/${version}/etc'
1241  archlibdir='${libexecdir}/emacs/${version}/${configuration}'  archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1242  docdir='${datadir}/emacs/${version}/etc'  docdir='${datadir}/emacs/${version}/etc'
1243    gamedir=yes
1244    
1245    
1246    # Check whether --with-game-dir or --without-game-dir was given.
1247    if test "${with_game_dir+set}" = set; then
1248      withval="$with_game_dir"
1249      if test "$withval" = yes; then
1250          gamedir="${localstatedir}/games/emacs"
1251        else
1252          if test "$withval" = no; then
1253            gamedir=no
1254          else
1255            gamedir="$withval"
1256          fi
1257        fi
1258    
1259    fi;
1260    
1261    gameuser=games
1262    
1263    # Check whether --with-game-user or --without-game-user was given.
1264    if test "${with_game_user+set}" = set; then
1265      withval="$with_game_user"
1266      gameuser="$withval"
1267    fi;
1268    
1269    
1270  # Check whether --with-gcc or --without-gcc was given.  # Check whether --with-gcc or --without-gcc was given.
1271  if test "${with_gcc+set}" = set; then  if test "${with_gcc+set}" = set; then
# Line 1025  fi; Line 1277  fi;
1277  if test "${with_pop+set}" = set; then  if test "${with_pop+set}" = set; then
1278    withval="$with_pop"    withval="$with_pop"
1279    if test "$withval" = yes; then    if test "$withval" = yes; then
1280     cat >>confdefs.h <<\EOF     cat >>confdefs.h <<\_ACEOF
1281  #define MAIL_USE_POP 1  #define MAIL_USE_POP 1
1282  EOF  _ACEOF
1283    
1284  else :  else :
1285  fi  fi
1286  else  else
1287    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
1288  #define MAIL_USE_POP 1  #define MAIL_USE_POP 1
1289  EOF  _ACEOF
1290    
1291  fi;  fi;
1292    
1293  # Check whether --with-kerberos or --without-kerberos was given.  # Check whether --with-kerberos or --without-kerberos was given.
1294  if test "${with_kerberos+set}" = set; then  if test "${with_kerberos+set}" = set; then
1295    withval="$with_kerberos"    withval="$with_kerberos"
1296    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
1297  #define KERBEROS 1  #define KERBEROS 1
1298  EOF  _ACEOF
1299    
1300  fi;  fi;
1301    
# Line 1053  if test "${with_kerberos5+set}" = set; t Line 1305  if test "${with_kerberos5+set}" = set; t
1305    if test "${with_kerberos5+set}" = set; then    if test "${with_kerberos5+set}" = set; then
1306    if test "${with_kerberos+set}" != set; then    if test "${with_kerberos+set}" != set; then
1307      with_kerberos=yes      with_kerberos=yes
1308      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
1309  #define KERBEROS 1  #define KERBEROS 1
1310  EOF  _ACEOF
1311    
1312    fi    fi
1313  fi  fi
1314  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
1315  #define KERBEROS5 1  #define KERBEROS5 1
1316  EOF  _ACEOF
1317    
1318  fi;  fi;
1319    
1320  # Check whether --with-hesiod or --without-hesiod was given.  # Check whether --with-hesiod or --without-hesiod was given.
1321  if test "${with_hesiod+set}" = set; then  if test "${with_hesiod+set}" = set; then
1322    withval="$with_hesiod"    withval="$with_hesiod"
1323    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
1324  #define HESIOD 1  #define HESIOD 1
1325  EOF  _ACEOF
1326    
1327  fi;  fi;
1328    
1329    
1330  # Check whether --with-sound or --without-sound was given.  # Check whether --with-sound or --without-sound was given.
1331  if test "${with_sound+set}" = set; then  if test "${with_sound+set}" = set; then
1332    withval="$with_sound"    withval="$with_sound"
1333    
1334  fi;  fi;
1335    
1336    
1337  # Check whether --with-x-toolkit or --without-x-toolkit was given.  # Check whether --with-x-toolkit or --without-x-toolkit was given.
1338  if test "${with_x_toolkit+set}" = set; then  if test "${with_x_toolkit+set}" = set; then
1339    withval="$with_x_toolkit"    withval="$with_x_toolkit"
# Line 1090  if test "${with_x_toolkit+set}" = set; t Line 1344  if test "${with_x_toolkit+set}" = set; t
1344              a | at | ath | athe | athen | athena )      val=athena ;;              a | at | ath | athe | athen | athena )      val=athena ;;
1345              m | mo | mot | moti | motif )       val=motif ;;              m | mo | mot | moti | motif )       val=motif ;;
1346              * )              * )
1347  { { echo "$as_me:1093: error: \`--with-x-toolkit=$withval' is invalid\;  { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1348  this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.  this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1349  Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5  Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1350  echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;  echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
# Line 1172  esac Line 1426  esac
1426  #### Check if the source directory already has a configured system in it.  #### Check if the source directory already has a configured system in it.
1427  if test `pwd` != `(cd ${srcdir} && pwd)` \  if test `pwd` != `(cd ${srcdir} && pwd)` \
1428     && test -f "${srcdir}/src/config.h" ; then     && test -f "${srcdir}/src/config.h" ; then
1429    { echo "$as_me:1175: WARNING: The directory tree \`${srcdir}' is being used    { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1430     as a build directory right now; it has been configured in its own     as a build directory right now; it has been configured in its own
1431     right.  To configure in another directory as well, you MUST     right.  To configure in another directory as well, you MUST
1432     use GNU make.  If you do not have GNU make, then you must     use GNU make.  If you do not have GNU make, then you must
# Line 1217  for ac_dir in $srcdir $srcdir/.. $srcdir Line 1471  for ac_dir in $srcdir $srcdir/.. $srcdir
1471    fi    fi
1472  done  done
1473  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
1474    { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1475  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1476     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1477  fi  fi
# Line 1227  ac_configure="$SHELL $ac_aux_dir/configu Line 1481  ac_configure="$SHELL $ac_aux_dir/configu
1481    
1482  # Make sure we can run config.sub.  # Make sure we can run config.sub.
1483  $ac_config_sub sun4 >/dev/null 2>&1 ||  $ac_config_sub sun4 >/dev/null 2>&1 ||
1484    { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1485  echo "$as_me: error: cannot run $ac_config_sub" >&2;}  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1486     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1487    
1488  echo "$as_me:1234: checking build system type" >&5  echo "$as_me:$LINENO: checking build system type" >&5
1489  echo $ECHO_N "checking build system type... $ECHO_C" >&6  echo $ECHO_N "checking build system type... $ECHO_C" >&6
1490  if test "${ac_cv_build+set}" = set; then  if test "${ac_cv_build+set}" = set; then
1491    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1240  else Line 1494  else
1494  test -z "$ac_cv_build_alias" &&  test -z "$ac_cv_build_alias" &&
1495    ac_cv_build_alias=`$ac_config_guess`    ac_cv_build_alias=`$ac_config_guess`
1496  test -z "$ac_cv_build_alias" &&  test -z "$ac_cv_build_alias" &&
1497    { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1498  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}  echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1499     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1500  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||  ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1501    { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5    { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1502  echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}  echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1503     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1504    
1505  fi  fi
1506  echo "$as_me:1252: result: $ac_cv_build" >&5  echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1507  echo "${ECHO_T}$ac_cv_build" >&6  echo "${ECHO_T}$ac_cv_build" >&6
1508  build=$ac_cv_build  build=$ac_cv_build
1509  build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510  build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511  build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512    
 test -z "$build_alias" &&  
   build_alias=$ac_cv_build  
1513    
1514  echo "$as_me:1262: checking host system type" >&5  echo "$as_me:$LINENO: checking host system type" >&5
1515  echo $ECHO_N "checking host system type... $ECHO_C" >&6  echo $ECHO_N "checking host system type... $ECHO_C" >&6
1516  if test "${ac_cv_host+set}" = set; then  if test "${ac_cv_host+set}" = set; then
1517    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1268  else Line 1520  else
1520  test -z "$ac_cv_host_alias" &&  test -z "$ac_cv_host_alias" &&
1521    ac_cv_host_alias=$ac_cv_build_alias    ac_cv_host_alias=$ac_cv_build_alias
1522  ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||  ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1523    { { echo "$as_me:1271: error: $ac_config_sub $ac_cv_host_alias failed" >&5    { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1524  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1525     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1526    
1527  fi  fi
1528  echo "$as_me:1276: result: $ac_cv_host" >&5  echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1529  echo "${ECHO_T}$ac_cv_host" >&6  echo "${ECHO_T}$ac_cv_host" >&6
1530  host=$ac_cv_host  host=$ac_cv_host
1531  host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532  host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533  host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534    
 test -z "$host_alias" &&  
   host_alias=$ac_cv_host  
1535    
1536  canonical=$host  canonical=$host
1537  configuration=${host_alias-$host}  configuration=${host_alias-$host}
1538    
1539    
1540  ### If you add support for a new configuration, add code to this  ### If you add support for a new configuration, add code to this
1541  ### switch statement to recognize your configuration name and select  ### switch statement to recognize your configuration name and select
1542  ### the appropriate operating system and machine description files.  ### the appropriate operating system and machine description files.
# Line 2245  if test x"${opsys}" = x; then Line 2496  if test x"${opsys}" = x; then
2496    esac    esac
2497  fi  fi
2498    
2499    
2500  if test $unported = yes; then  if test $unported = yes; then
2501    { { echo "$as_me:2249: error: Emacs hasn't been ported to \`${canonical}' systems.    { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2502  Check \`etc/MACHINES' for recognized configuration names." >&5  Check \`etc/MACHINES' for recognized configuration names." >&5
2503  echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.  echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2504  Check \`etc/MACHINES' for recognized configuration names." >&2;}  Check \`etc/MACHINES' for recognized configuration names." >&2;}
# Line 2256  fi Line 2508  fi
2508  machfile="m/${machine}.h"  machfile="m/${machine}.h"
2509  opsysfile="s/${opsys}.h"  opsysfile="s/${opsys}.h"
2510    
2511    
2512  #### Choose a compiler.  #### Choose a compiler.
2513  test -n "$CC" && cc_specified=yes  test -n "$CC" && cc_specified=yes
2514    
# Line 2275  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 2528  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528  if test -n "$ac_tool_prefix"; then  if test -n "$ac_tool_prefix"; then
2529    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530  set dummy ${ac_tool_prefix}gcc; ac_word=$2  set dummy ${ac_tool_prefix}gcc; ac_word=$2
2531  echo "$as_me:2278: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2532  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533  if test "${ac_cv_prog_CC+set}" = set; then  if test "${ac_cv_prog_CC+set}" = set; then
2534    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2283  else Line 2536  else
2536    if test -n "$CC"; then    if test -n "$CC"; then
2537    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2538  else  else
2539    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540  ac_dummy="$PATH"  for as_dir in $PATH
2541  for ac_dir in $ac_dummy; do  do
2542    IFS=$ac_save_IFS    IFS=$as_save_IFS
2543    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2544    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2545  ac_cv_prog_CC="${ac_tool_prefix}gcc"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546  echo "$as_me:2293: found $ac_dir/$ac_word" >&5      ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548        break 2
2549      fi
2550    done
2551  done  done
2552    
2553  fi  fi
2554  fi  fi
2555  CC=$ac_cv_prog_CC  CC=$ac_cv_prog_CC
2556  if test -n "$CC"; then  if test -n "$CC"; then
2557    echo "$as_me:2301: result: $CC" >&5    echo "$as_me:$LINENO: result: $CC" >&5
2558  echo "${ECHO_T}$CC" >&6  echo "${ECHO_T}$CC" >&6
2559  else  else
2560    echo "$as_me:2304: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2561  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2562  fi  fi
2563    
# Line 2310  if test -z "$ac_cv_prog_CC"; then Line 2566  if test -z "$ac_cv_prog_CC"; then
2566    ac_ct_CC=$CC    ac_ct_CC=$CC
2567    # Extract the first word of "gcc", so it can be a program name with args.    # Extract the first word of "gcc", so it can be a program name with args.
2568  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
2569  echo "$as_me:2313: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2570  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2572    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2318  else Line 2574  else
2574    if test -n "$ac_ct_CC"; then    if test -n "$ac_ct_CC"; then
2575    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2576  else  else
2577    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578  ac_dummy="$PATH"  for as_dir in $PATH
2579  for ac_dir in $ac_dummy; do  do
2580    IFS=$ac_save_IFS    IFS=$as_save_IFS
2581    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2582    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2583  ac_cv_prog_ac_ct_CC="gcc"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584  echo "$as_me:2328: found $ac_dir/$ac_word" >&5      ac_cv_prog_ac_ct_CC="gcc"
2585  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586        break 2
2587      fi
2588    done
2589  done  done
2590    
2591  fi  fi
2592  fi  fi
2593  ac_ct_CC=$ac_cv_prog_ac_ct_CC  ac_ct_CC=$ac_cv_prog_ac_ct_CC
2594  if test -n "$ac_ct_CC"; then  if test -n "$ac_ct_CC"; then
2595    echo "$as_me:2336: result: $ac_ct_CC" >&5    echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2596  echo "${ECHO_T}$ac_ct_CC" >&6  echo "${ECHO_T}$ac_ct_CC" >&6
2597  else  else
2598    echo "$as_me:2339: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2599  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2600  fi  fi
2601    
# Line 2349  if test -z "$CC"; then Line 2608  if test -z "$CC"; then
2608    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
2609    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2610  set dummy ${ac_tool_prefix}cc; ac_word=$2  set dummy ${ac_tool_prefix}cc; ac_word=$2
2611  echo "$as_me:2352: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2612  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613  if test "${ac_cv_prog_CC+set}" = set; then  if test "${ac_cv_prog_CC+set}" = set; then
2614    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2357  else Line 2616  else
2616    if test -n "$CC"; then    if test -n "$CC"; then
2617    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2618  else  else
2619    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620  ac_dummy="$PATH"  for as_dir in $PATH
2621  for ac_dir in $ac_dummy; do  do
2622    IFS=$ac_save_IFS    IFS=$as_save_IFS
2623    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2624    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2625  ac_cv_prog_CC="${ac_tool_prefix}cc"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626  echo "$as_me:2367: found $ac_dir/$ac_word" >&5      ac_cv_prog_CC="${ac_tool_prefix}cc"
2627  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628        break 2
2629      fi
2630    done
2631  done  done
2632    
2633  fi  fi
2634  fi  fi
2635  CC=$ac_cv_prog_CC  CC=$ac_cv_prog_CC
2636  if test -n "$CC"; then  if test -n "$CC"; then
2637    echo "$as_me:2375: result: $CC" >&5    echo "$as_me:$LINENO: result: $CC" >&5
2638  echo "${ECHO_T}$CC" >&6  echo "${ECHO_T}$CC" >&6
2639  else  else
2640    echo "$as_me:2378: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2641  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2642  fi  fi
2643    
# Line 2384  if test -z "$ac_cv_prog_CC"; then Line 2646  if test -z "$ac_cv_prog_CC"; then
2646    ac_ct_CC=$CC    ac_ct_CC=$CC
2647    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
2648  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
2649  echo "$as_me:2387: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2650  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2392  else Line 2654  else
2654    if test -n "$ac_ct_CC"; then    if test -n "$ac_ct_CC"; then
2655    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656  else  else
2657    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658  ac_dummy="$PATH"  for as_dir in $PATH
2659  for ac_dir in $ac_dummy; do  do
2660    IFS=$ac_save_IFS    IFS=$as_save_IFS
2661    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2662    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2663  ac_cv_prog_ac_ct_CC="cc"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664  echo "$as_me:2402: found $ac_dir/$ac_word" >&5      ac_cv_prog_ac_ct_CC="cc"
2665  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666        break 2
2667      fi
2668    done
2669  done  done
2670    
2671  fi  fi
2672  fi  fi
2673  ac_ct_CC=$ac_cv_prog_ac_ct_CC  ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674  if test -n "$ac_ct_CC"; then  if test -n "$ac_ct_CC"; then
2675    echo "$as_me:2410: result: $ac_ct_CC" >&5    echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676  echo "${ECHO_T}$ac_ct_CC" >&6  echo "${ECHO_T}$ac_ct_CC" >&6
2677  else  else
2678    echo "$as_me:2413: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2679  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2680  fi  fi
2681    
# Line 2423  fi Line 2688  fi
2688  if test -z "$CC"; then  if test -z "$CC"; then
2689    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
2690  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
2691  echo "$as_me:2426: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2692  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693  if test "${ac_cv_prog_CC+set}" = set; then  if test "${ac_cv_prog_CC+set}" = set; then
2694    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2432  else Line 2697  else
2697    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2698  else  else
2699    ac_prog_rejected=no    ac_prog_rejected=no
2700    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701  ac_dummy="$PATH"  for as_dir in $PATH
2702  for ac_dir in $ac_dummy; do  do
2703    IFS=$ac_save_IFS    IFS=$as_save_IFS
2704    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2705    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2706  if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707    ac_prog_rejected=yes      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2708    continue         ac_prog_rejected=yes
2709  fi         continue
2710  ac_cv_prog_CC="cc"       fi
2711  echo "$as_me:2446: found $ac_dir/$ac_word" >&5      ac_cv_prog_CC="cc"
2712  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713        break 2
2714      fi
2715    done
2716  done  done
2717    
2718  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
# Line 2456  if test $ac_prog_rejected = yes; then Line 2724  if test $ac_prog_rejected = yes; then
2724      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
2725      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
2726      shift      shift
2727      set dummy "$ac_dir/$ac_word" ${1+"$@"}      set dummy "$as_dir/$ac_word" ${1+"$@"}
2728      shift      shift
2729      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
2730    fi    fi
# Line 2465  fi Line 2733  fi
2733  fi  fi
2734  CC=$ac_cv_prog_CC  CC=$ac_cv_prog_CC
2735  if test -n "$CC"; then  if test -n "$CC"; then
2736    echo "$as_me:2468: result: $CC" >&5    echo "$as_me:$LINENO: result: $CC" >&5
2737  echo "${ECHO_T}$CC" >&6  echo "${ECHO_T}$CC" >&6
2738  else  else
2739    echo "$as_me:2471: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2740  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2741  fi  fi
2742    
# Line 2479  if test -z "$CC"; then Line 2747  if test -z "$CC"; then
2747    do    do
2748      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749  set dummy $ac_tool_prefix$ac_prog; ac_word=$2  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2750  echo "$as_me:2482: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2751  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752  if test "${ac_cv_prog_CC+set}" = set; then  if test "${ac_cv_prog_CC+set}" = set; then
2753    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2487  else Line 2755  else
2755    if test -n "$CC"; then    if test -n "$CC"; then
2756    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
2757  else  else
2758    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759  ac_dummy="$PATH"  for as_dir in $PATH
2760  for ac_dir in $ac_dummy; do  do
2761    IFS=$ac_save_IFS    IFS=$as_save_IFS
2762    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2763    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2764  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765  echo "$as_me:2497: found $ac_dir/$ac_word" >&5      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2766  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767        break 2
2768      fi
2769    done
2770  done  done
2771    
2772  fi  fi
2773  fi  fi
2774  CC=$ac_cv_prog_CC  CC=$ac_cv_prog_CC
2775  if test -n "$CC"; then  if test -n "$CC"; then
2776    echo "$as_me:2505: result: $CC" >&5    echo "$as_me:$LINENO: result: $CC" >&5
2777  echo "${ECHO_T}$CC" >&6  echo "${ECHO_T}$CC" >&6
2778  else  else
2779    echo "$as_me:2508: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2780  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2781  fi  fi
2782    
# Line 2518  if test -z "$CC"; then Line 2789  if test -z "$CC"; then
2789  do  do
2790    # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2791  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2792  echo "$as_me:2521: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
2793  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2795    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2526  else Line 2797  else
2797    if test -n "$ac_ct_CC"; then    if test -n "$ac_ct_CC"; then
2798    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799  else  else
2800    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801  ac_dummy="$PATH"  for as_dir in $PATH
2802  for ac_dir in $ac_dummy; do  do
2803    IFS=$ac_save_IFS    IFS=$as_save_IFS
2804    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
2805    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
2806  ac_cv_prog_ac_ct_CC="$ac_prog"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807  echo "$as_me:2536: found $ac_dir/$ac_word" >&5      ac_cv_prog_ac_ct_CC="$ac_prog"
2808  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809        break 2
2810      fi
2811    done
2812  done  done
2813    
2814  fi  fi
2815  fi  fi
2816  ac_ct_CC=$ac_cv_prog_ac_ct_CC  ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817  if test -n "$ac_ct_CC"; then  if test -n "$ac_ct_CC"; then
2818    echo "$as_me:2544: result: $ac_ct_CC" >&5    echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2819  echo "${ECHO_T}$ac_ct_CC" >&6  echo "${ECHO_T}$ac_ct_CC" >&6
2820  else  else
2821    echo "$as_me:2547: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
2822  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
2823  fi  fi
2824    
# Line 2556  fi Line 2830  fi
2830    
2831  fi  fi
2832    
2833  test -z "$CC" && { { echo "$as_me:2559: error: no acceptable cc found in \$PATH" >&5  
2834  echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2835    echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2836     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
2837    
2838  # Provide some information about the compiler.  # Provide some information about the compiler.
2839  echo "$as_me:2564:" \  echo "$as_me:$LINENO:" \
2840       "checking for C compiler version" >&5       "checking for C compiler version" >&5
2841  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
2842  { (eval echo "$as_me:2567: \"$ac_compiler --version </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2843    (eval $ac_compiler --version </dev/null >&5) 2>&5    (eval $ac_compiler --version </dev/null >&5) 2>&5
2844    ac_status=$?    ac_status=$?
2845    echo "$as_me:2570: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846    (exit $ac_status); }    (exit $ac_status); }
2847  { (eval echo "$as_me:2572: \"$ac_compiler -v </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2848    (eval $ac_compiler -v </dev/null >&5) 2>&5    (eval $ac_compiler -v </dev/null >&5) 2>&5
2849    ac_status=$?    ac_status=$?
2850    echo "$as_me:2575: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851    (exit $ac_status); }    (exit $ac_status); }
2852  { (eval echo "$as_me:2577: \"$ac_compiler -V </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2853    (eval $ac_compiler -V </dev/null >&5) 2>&5    (eval $ac_compiler -V </dev/null >&5) 2>&5
2854    ac_status=$?    ac_status=$?
2855    echo "$as_me:2580: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856    (exit $ac_status); }    (exit $ac_status); }
2857    
2858  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
2859  #line 2584 "configure"  #line $LINENO "configure"
2860  #include "confdefs.h"  #include "confdefs.h"
2861    
2862    #ifdef F77_DUMMY_MAIN
2863    #  ifdef __cplusplus
2864         extern "C"
2865    #  endif
2866       int F77_DUMMY_MAIN() { return 1; }
2867    #endif
2868  int  int
2869  main ()  main ()
2870  {  {
# Line 2597  ac_clean_files="$ac_clean_files a.out a. Line 2878  ac_clean_files="$ac_clean_files a.out a.
2878  # Try to create an executable without -o first, disregard a.out.  # Try to create an executable without -o first, disregard a.out.
2879  # It will help us diagnose broken compilers, and finding out an intuition  # It will help us diagnose broken compilers, and finding out an intuition
2880  # of exeext.  # of exeext.
2881  echo "$as_me:2600: checking for C compiler default output" >&5  echo "$as_me:$LINENO: checking for C compiler default output" >&5
2882  echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6  echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2883  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2884  if { (eval echo "$as_me:2603: \"$ac_link_default\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2885    (eval $ac_link_default) 2>&5    (eval $ac_link_default) 2>&5
2886    ac_status=$?    ac_status=$?
2887    echo "$as_me:2606: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888    (exit $ac_status); }; then    (exit $ac_status); }; then
2889    # Find the output, starting from the most likely.  This scheme is    # Find the output, starting from the most likely.  This scheme is
2890  # not robust to junk in `.', hence go to wildcards (a.*) only as a last  # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2891  # resort.  # resort.
2892  for ac_file in `ls a.exe conftest.exe 2>/dev/null;  
2893    # Be careful to initialize this variable, since it used to be cached.
2894    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2895    ac_cv_exeext=
2896    for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2897                  ls a.out conftest 2>/dev/null;                  ls a.out conftest 2>/dev/null;
2898                  ls a.* conftest.* 2>/dev/null`; do                  ls a.* conftest.* 2>/dev/null`; do
2899    case $ac_file in    case $ac_file in
2900      *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;      *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2901      a.out ) # We found the default executable, but exeext='' is most      a.out ) # We found the default executable, but exeext='' is most
2902              # certainly right.              # certainly right.
2903              break;;              break;;
# Line 2626  done Line 2911  done
2911  else  else
2912    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
2913  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
2914  { { echo "$as_me:2629: error: C compiler cannot create executables" >&5  { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2915  echo "$as_me: error: C compiler cannot create executables" >&2;}  echo "$as_me: error: C compiler cannot create executables" >&2;}
2916     { (exit 77); exit 77; }; }     { (exit 77); exit 77; }; }
2917  fi  fi
2918    
2919  ac_exeext=$ac_cv_exeext  ac_exeext=$ac_cv_exeext
2920  echo "$as_me:2635: result: $ac_file" >&5  echo "$as_me:$LINENO: result: $ac_file" >&5
2921  echo "${ECHO_T}$ac_file" >&6  echo "${ECHO_T}$ac_file" >&6
2922    
2923  # Check the compiler produces executables we can run.  If not, either  # Check the compiler produces executables we can run.  If not, either
2924  # the compiler is broken, or we cross compile.  # the compiler is broken, or we cross compile.
2925  echo "$as_me:2640: checking whether the C compiler works" >&5  echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2926  echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6  echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2927  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2928  # If not cross compiling, check that we can run a simple program.  # If not cross compiling, check that we can run a simple program.
2929  if test "$cross_compiling" != yes; then  if test "$cross_compiling" != yes; then
2930    if { ac_try='./$ac_file'    if { ac_try='./$ac_file'
2931    { (eval echo "$as_me:2646: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
2933    ac_status=$?    ac_status=$?
2934    echo "$as_me:2649: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
2936      cross_compiling=no      cross_compiling=no
2937    else    else
2938      if test "$cross_compiling" = maybe; then      if test "$cross_compiling" = maybe; then
2939          cross_compiling=yes          cross_compiling=yes
2940      else      else
2941          { { echo "$as_me:2656: error: cannot run C compiled programs.          { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2942  If you meant to cross compile, use \`--host'." >&5  If you meant to cross compile, use \`--host'." >&5
2943  echo "$as_me: error: cannot run C compiled programs.  echo "$as_me: error: cannot run C compiled programs.
2944  If you meant to cross compile, use \`--host'." >&2;}  If you meant to cross compile, use \`--host'." >&2;}
# Line 2661  If you meant to cross compile, use \`--h Line 2946  If you meant to cross compile, use \`--h
2946      fi      fi
2947    fi    fi
2948  fi  fi
2949  echo "$as_me:2664: result: yes" >&5  echo "$as_me:$LINENO: result: yes" >&5
2950  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
2951    
2952  rm -f a.out a.exe conftest$ac_cv_exeext  rm -f a.out a.exe conftest$ac_cv_exeext
2953  ac_clean_files=$ac_clean_files_save  ac_clean_files=$ac_clean_files_save
2954  # Check the compiler produces executables we can run.  If not, either  # Check the compiler produces executables we can run.  If not, either
2955  # the compiler is broken, or we cross compile.  # the compiler is broken, or we cross compile.
2956  echo "$as_me:2671: checking whether we are cross compiling" >&5  echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6  echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2958  echo "$as_me:2673: result: $cross_compiling" >&5  echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959  echo "${ECHO_T}$cross_compiling" >&6  echo "${ECHO_T}$cross_compiling" >&6
2960    
2961  echo "$as_me:2676: checking for executable suffix" >&5  echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962  echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6  echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2963  if { (eval echo "$as_me:2678: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
2965    ac_status=$?    ac_status=$?
2966    echo "$as_me:2681: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967    (exit $ac_status); }; then    (exit $ac_status); }; then
2968    # If both `conftest.exe' and `conftest' are `present' (well, observable)    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2969  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# Line 2694  for ac_file in `(ls conftest.exe; ls con Line 2979  for ac_file in `(ls conftest.exe; ls con
2979    esac    esac
2980  done  done
2981  else  else
2982    { { echo "$as_me:2697: error: cannot compute EXEEXT: cannot compile and link" >&5    { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2983  echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}  echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2984     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
2985  fi  fi
2986    
2987  rm -f conftest$ac_cv_exeext  rm -f conftest$ac_cv_exeext
2988  echo "$as_me:2703: result: $ac_cv_exeext" >&5  echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2989  echo "${ECHO_T}$ac_cv_exeext" >&6  echo "${ECHO_T}$ac_cv_exeext" >&6
2990    
2991  rm -f conftest.$ac_ext  rm -f conftest.$ac_ext
2992  EXEEXT=$ac_cv_exeext  EXEEXT=$ac_cv_exeext
2993  ac_exeext=$EXEEXT  ac_exeext=$EXEEXT
2994  echo "$as_me:2709: checking for object suffix" >&5  echo "$as_me:$LINENO: checking for suffix of object files" >&5
2995  echo $ECHO_N "checking for object suffix... $ECHO_C" >&6  echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2996  if test "${ac_cv_objext+set}" = set; then  if test "${ac_cv_objext+set}" = set; then
2997    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2998  else  else
2999    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3000  #line 2715 "configure"  #line $LINENO "configure"
3001  #include "confdefs.h"  #include "confdefs.h"
3002    
3003    #ifdef F77_DUMMY_MAIN
3004    #  ifdef __cplusplus
3005         extern "C"
3006    #  endif
3007       int F77_DUMMY_MAIN() { return 1; }
3008    #endif
3009  int  int
3010  main ()  main ()
3011  {  {
# Line 2724  main () Line 3015  main ()
3015  }  }
3016  _ACEOF  _ACEOF
3017  rm -f conftest.o conftest.obj  rm -f conftest.o conftest.obj
3018  if { (eval echo "$as_me:2727: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3020    ac_status=$?    ac_status=$?
3021    echo "$as_me:2730: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022    (exit $ac_status); }; then    (exit $ac_status); }; then
3023    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3024    case $ac_file in    case $ac_file in
# Line 2739  done Line 3030  done
3030  else  else
3031    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3032  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
3033  { { echo "$as_me:2742: error: cannot compute OBJEXT: cannot compile" >&5  { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3034  echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}  echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3035     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
3036  fi  fi
3037    
3038  rm -f conftest.$ac_cv_objext conftest.$ac_ext  rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039  fi  fi
3040  echo "$as_me:2749: result: $ac_cv_objext" >&5  echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3041  echo "${ECHO_T}$ac_cv_objext" >&6  echo "${ECHO_T}$ac_cv_objext" >&6
3042  OBJEXT=$ac_cv_objext  OBJEXT=$ac_cv_objext
3043  ac_objext=$OBJEXT  ac_objext=$OBJEXT
3044  echo "$as_me:2753: checking whether we are using the GNU C compiler" >&5  echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3045  echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6  echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3046  if test "${ac_cv_c_compiler_gnu+set}" = set; then  if test "${ac_cv_c_compiler_gnu+set}" = set; then
3047    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3048  else  else
3049    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3050  #line 2759 "configure"  #line $LINENO "configure"
3051  #include "confdefs.h"  #include "confdefs.h"
3052    
3053    #ifdef F77_DUMMY_MAIN
3054    #  ifdef __cplusplus
3055         extern "C"
3056    #  endif
3057       int F77_DUMMY_MAIN() { return 1; }
3058    #endif
3059  int  int
3060  main ()  main ()
3061  {  {
# Line 2771  main () Line 3068  main ()
3068  }  }
3069  _ACEOF  _ACEOF
3070  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3071  if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3073    ac_status=$?    ac_status=$?
3074    echo "$as_me:2777: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075    (exit $ac_status); } &&    (exit $ac_status); } &&
3076           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3077    { (eval echo "$as_me:2780: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3079    ac_status=$?    ac_status=$?
3080    echo "$as_me:2783: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3082    ac_compiler_gnu=yes    ac_compiler_gnu=yes
3083  else  else
# Line 2792  rm -f conftest.$ac_objext conftest.$ac_e Line 3089  rm -f conftest.$ac_objext conftest.$ac_e
3089  ac_cv_c_compiler_gnu=$ac_compiler_gnu  ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090    
3091  fi  fi
3092  echo "$as_me:2795: result: $ac_cv_c_compiler_gnu" >&5  echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093  echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6  echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3094  GCC=`test $ac_compiler_gnu = yes && echo yes`  GCC=`test $ac_compiler_gnu = yes && echo yes`
3095  ac_test_CFLAGS=${CFLAGS+set}  ac_test_CFLAGS=${CFLAGS+set}
3096  ac_save_CFLAGS=$CFLAGS  ac_save_CFLAGS=$CFLAGS
3097  CFLAGS="-g"  CFLAGS="-g"
3098  echo "$as_me:2801: checking whether $CC accepts -g" >&5  echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099  echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6  echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3100  if test "${ac_cv_prog_cc_g+set}" = set; then  if test "${ac_cv_prog_cc_g+set}" = set; then
3101    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3102  else  else
3103    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3104  #line 2807 "configure"  #line $LINENO "configure"
3105  #include "confdefs.h"  #include "confdefs.h"
3106    
3107    #ifdef F77_DUMMY_MAIN
3108    #  ifdef __cplusplus
3109         extern "C"
3110    #  endif
3111       int F77_DUMMY_MAIN() { return 1; }
3112    #endif
3113  int  int
3114  main ()  main ()
3115  {  {
# Line 2816  main () Line 3119  main ()
3119  }  }
3120  _ACEOF  _ACEOF
3121  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3122  if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3124    ac_status=$?    ac_status=$?
3125    echo "$as_me:2822: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126    (exit $ac_status); } &&    (exit $ac_status); } &&
3127           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3128    { (eval echo "$as_me:2825: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3130    ac_status=$?    ac_status=$?
3131    echo "$as_me:2828: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3133    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
3134  else  else
# Line 2835  ac_cv_prog_cc_g=no Line 3138  ac_cv_prog_cc_g=no
3138  fi  fi
3139  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
3140  fi  fi
3141  echo "$as_me:2838: result: $ac_cv_prog_cc_g" >&5  echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3142  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3143  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
3144    CFLAGS=$ac_save_CFLAGS    CFLAGS=$ac_save_CFLAGS
# Line 2862  cat >conftest.$ac_ext <<_ACEOF Line 3165  cat >conftest.$ac_ext <<_ACEOF
3165  #endif  #endif
3166  _ACEOF  _ACEOF
3167  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3168  if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3170    ac_status=$?    ac_status=$?
3171    echo "$as_me:2868: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172    (exit $ac_status); } &&    (exit $ac_status); } &&
3173           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3174    { (eval echo "$as_me:2871: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3176    ac_status=$?    ac_status=$?
3177    echo "$as_me:2874: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3179    for ac_declaration in \    for ac_declaration in \
3180     ''\     ''\
# Line 2883  if { (eval echo "$as_me:2865: \"$ac_comp Line 3186  if { (eval echo "$as_me:2865: \"$ac_comp
3186     'void exit (int);'     'void exit (int);'
3187  do  do
3188    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3189  #line 2886 "configure"  #line $LINENO "configure"
3190  #include "confdefs.h"  #include "confdefs.h"
3191  #include <stdlib.h>  #include <stdlib.h>
3192  $ac_declaration  $ac_declaration
3193    #ifdef F77_DUMMY_MAIN
3194    #  ifdef __cplusplus
3195         extern "C"
3196    #  endif
3197       int F77_DUMMY_MAIN() { return 1; }
3198    #endif
3199  int  int
3200  main ()  main ()
3201  {  {
# Line 2896  exit (42); Line 3205  exit (42);
3205  }  }
3206  _ACEOF  _ACEOF
3207  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3208  if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3210    ac_status=$?    ac_status=$?
3211    echo "$as_me:2902: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212    (exit $ac_status); } &&    (exit $ac_status); } &&
3213           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3214    { (eval echo "$as_me:2905: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3216    ac_status=$?    ac_status=$?
3217    echo "$as_me:2908: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3219    :    :
3220  else  else
# Line 2915  continue Line 3224  continue
3224  fi  fi
3225  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
3226    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3227  #line 2918 "configure"  #line $LINENO "configure"
3228  #include "confdefs.h"  #include "confdefs.h"
3229  $ac_declaration  $ac_declaration
3230    #ifdef F77_DUMMY_MAIN
3231    #  ifdef __cplusplus
3232         extern "C"
3233    #  endif
3234       int F77_DUMMY_MAIN() { return 1; }
3235    #endif
3236  int  int
3237  main ()  main ()
3238  {  {
# Line 2927  exit (42); Line 3242  exit (42);
3242  }  }
3243  _ACEOF  _ACEOF
3244  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3245  if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3247    ac_status=$?    ac_status=$?
3248    echo "$as_me:2933: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249    (exit $ac_status); } &&    (exit $ac_status); } &&
3250           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3251    { (eval echo "$as_me:2936: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3253    ac_status=$?    ac_status=$?
3254    echo "$as_me:2939: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3256    break    break
3257  else  else
# Line 2963  ac_compile='$CC -c $CFLAGS $CPPFLAGS con Line 3278  ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3278  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280    
3281    
3282  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
3283  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
3284    CPP=    CPP=
# Line 3009  fi Line 3325  fi
3325  #### should make an entry in src/config.h, don't forget to add an  #### should make an entry in src/config.h, don't forget to add an
3326  #### #undef clause to src/config.h.in for autoconf to modify.  #### #undef clause to src/config.h.in for autoconf to modify.
3327    
3328  echo "$as_me:3012: checking whether ln -s works" >&5  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3329  echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6  echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3330  LN_S=$as_ln_s  LN_S=$as_ln_s
3331  if test "$LN_S" = "ln -s"; then  if test "$LN_S" = "ln -s"; then
3332    echo "$as_me:3016: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
3333  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
3334  else  else
3335    echo "$as_me:3019: result: no, using $LN_S" >&5    echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3336  echo "${ECHO_T}no, using $LN_S" >&6  echo "${ECHO_T}no, using $LN_S" >&6
3337  fi  fi
3338    
# Line 3025  ac_cpp='$CPP $CPPFLAGS' Line 3341  ac_cpp='$CPP $CPPFLAGS'
3341  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344  echo "$as_me:3028: checking how to run the C preprocessor" >&5  echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3345  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3346  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
3347  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
# Line 3046  do Line 3362  do
3362    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
3363    # not just through cpp. "Syntax error" is here to catch this case.    # not just through cpp. "Syntax error" is here to catch this case.
3364    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3365  #line 3049 "configure"  #line $LINENO "configure"
3366  #include "confdefs.h"  #include "confdefs.h"
3367  #include <assert.h>  #include <assert.h>
3368                       Syntax error                       Syntax error
3369  _ACEOF  _ACEOF
3370  if { (eval echo "$as_me:3054: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372    ac_status=$?    ac_status=$?
3373    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
3374    rm -f conftest.er1    rm -f conftest.er1
3375    cat conftest.err >&5    cat conftest.err >&5
3376    echo "$as_me:3060: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
3378    if test -s conftest.err; then    if test -s conftest.err; then
3379      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 3080  rm -f conftest.err conftest.$ac_ext Line 3396  rm -f conftest.err conftest.$ac_ext
3396    # OK, works on sane cases.  Now check whether non-existent headers    # OK, works on sane cases.  Now check whether non-existent headers
3397    # can be detected and how.    # can be detected and how.
3398    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3399  #line 3083 "configure"  #line $LINENO "configure"
3400  #include "confdefs.h"  #include "confdefs.h"
3401  #include <ac_nonexistent.h>  #include <ac_nonexistent.h>
3402  _ACEOF  _ACEOF
3403  if { (eval echo "$as_me:3087: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3404    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3405    ac_status=$?    ac_status=$?
3406    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
3407    rm -f conftest.er1    rm -f conftest.er1
3408    cat conftest.err >&5    cat conftest.err >&5
3409    echo "$as_me:3093: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
3411    if test -s conftest.err; then    if test -s conftest.err; then
3412      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 3127  fi Line 3443  fi
3443  else  else
3444    ac_cv_prog_CPP=$CPP    ac_cv_prog_CPP=$CPP
3445  fi  fi
3446  echo "$as_me:3130: result: $CPP" >&5  echo "$as_me:$LINENO: result: $CPP" >&5
3447  echo "${ECHO_T}$CPP" >&6  echo "${ECHO_T}$CPP" >&6
3448  ac_preproc_ok=false  ac_preproc_ok=false
3449  for ac_c_preproc_warn_flag in '' yes  for ac_c_preproc_warn_flag in '' yes
# Line 3137  do Line 3453  do
3453    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
3454    # not just through cpp. "Syntax error" is here to catch this case.    # not just through cpp. "Syntax error" is here to catch this case.
3455    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3456  #line 3140 "configure"  #line $LINENO "configure"
3457  #include "confdefs.h"  #include "confdefs.h"
3458  #include <assert.h>  #include <assert.h>
3459                       Syntax error                       Syntax error
3460  _ACEOF  _ACEOF
3461  if { (eval echo "$as_me:3145: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463    ac_status=$?    ac_status=$?
3464    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
3465    rm -f conftest.er1    rm -f conftest.er1
3466    cat conftest.err >&5    cat conftest.err >&5
3467    echo "$as_me:3151: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
3469    if test -s conftest.err; then    if test -s conftest.err; then
3470      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 3171  rm -f conftest.err conftest.$ac_ext Line 3487  rm -f conftest.err conftest.$ac_ext
3487    # OK, works on sane cases.  Now check whether non-existent headers    # OK, works on sane cases.  Now check whether non-existent headers
3488    # can be detected and how.    # can be detected and how.
3489    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
3490  #line 3174 "configure"  #line $LINENO "configure"
3491  #include "confdefs.h"  #include "confdefs.h"
3492  #include <ac_nonexistent.h>  #include <ac_nonexistent.h>
3493  _ACEOF  _ACEOF
3494  if { (eval echo "$as_me:3178: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496    ac_status=$?    ac_status=$?
3497    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
3498    rm -f conftest.er1    rm -f conftest.er1
3499    cat conftest.err >&5    cat conftest.err >&5
3500    echo "$as_me:3184: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
3502    if test -s conftest.err; then    if test -s conftest.err; then
3503      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 3209  rm -f conftest.err conftest.$ac_ext Line 3525  rm -f conftest.err conftest.$ac_ext
3525  if $ac_preproc_ok; then  if $ac_preproc_ok; then
3526    :    :
3527  else  else
3528    { { echo "$as_me:3212: error: C preprocessor \"$CPP\" fails sanity check" >&5    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3529  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3530     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
3531  fi  fi
# Line 3232  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 3548  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3549  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3550  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
3551  echo "$as_me:3235: checking for a BSD compatible install" >&5  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3552  echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3553  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
3554  if test "${ac_cv_path_install+set}" = set; then  if test "${ac_cv_path_install+set}" = set; then
3555    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3556  else  else
3557      ac_save_IFS=$IFS; IFS=$ac_path_separator    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558    for ac_dir in $PATH; do  for as_dir in $PATH
3559      IFS=$ac_save_IFS  do
3560      # Account for people who put trailing slashes in PATH elements.    IFS=$as_save_IFS
3561      case $ac_dir/ in    test -z "$as_dir" && as_dir=.
3562      / | ./ | .// | /cC/* \    # Account for people who put trailing slashes in PATH elements.
3563      | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \  case $as_dir/ in
3564      | /usr/ucb/* ) ;;    ./ | .// | /cC/* | \
3565      *)    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3566        # OSF1 and SCO ODT 3.0 have their own names for install.    /usr/ucb/* ) ;;
3567        # Don't use installbsd from OSF since it installs stuff as root    *)
3568        # by default.      # OSF1 and SCO ODT 3.0 have their own names for install.
3569        for ac_prog in ginstall scoinst install; do      # Don't use installbsd from OSF since it installs stuff as root
3570          if $as_executable_p "$ac_dir/$ac_prog"; then      # by default.
3571            if test $ac_prog = install &&      for ac_prog in ginstall scoinst install; do
3572              grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then        for ac_exec_ext in '' $ac_executable_extensions; do
3573              # AIX install.  It has an incompatible calling convention.          if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3574              :            if test $ac_prog = install &&
3575            elif test $ac_prog = install &&              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3576              grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then              # AIX install.  It has an incompatible calling convention.
3577              # program-specific install script used by HP pwplus--don't use.              :
3578              :            elif test $ac_prog = install &&
3579            else              grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580              ac_cv_path_install="$ac_dir/$ac_prog -c"              # program-specific install script used by HP pwplus--don't use.
3581              break 2              :
3582            fi            else
3583          fi              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3584                break 3
3585              fi
3586            fi
3587        done        done
3588        ;;      done
3589      esac      ;;
3590    done  esac
3591    done
3592    
3593    
3594  fi  fi
3595    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
# Line 3281  fi Line 3602  fi
3602      INSTALL=$ac_install_sh      INSTALL=$ac_install_sh
3603    fi    fi
3604  fi  fi
3605  echo "$as_me:3284: result: $INSTALL" >&5  echo "$as_me:$LINENO: result: $INSTALL" >&5
3606  echo "${ECHO_T}$INSTALL" >&6  echo "${ECHO_T}$INSTALL" >&6
3607    
3608  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3296  for ac_prog in 'bison -y' byacc Line 3617  for ac_prog in 'bison -y' byacc
3617  do  do
3618    # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
3619  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3620  echo "$as_me:3299: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
3621  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622  if test "${ac_cv_prog_YACC+set}" = set; then  if test "${ac_cv_prog_YACC+set}" = set; then
3623    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3304  else Line 3625  else
3625    if test -n "$YACC"; then    if test -n "$YACC"; then
3626    ac_cv_prog_YACC="$YACC" # Let the user override the test.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
3627  else  else
3628    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629  ac_dummy="$PATH"  for as_dir in $PATH
3630  for ac_dir in $ac_dummy; do  do
3631    IFS=$ac_save_IFS    IFS=$as_save_IFS
3632    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
3633    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
3634  ac_cv_prog_YACC="$ac_prog"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635  echo "$as_me:3314: found $ac_dir/$ac_word" >&5      ac_cv_prog_YACC="$ac_prog"
3636  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637        break 2
3638      fi
3639    done
3640  done  done
3641    
3642  fi  fi
3643  fi  fi
3644  YACC=$ac_cv_prog_YACC  YACC=$ac_cv_prog_YACC
3645  if test -n "$YACC"; then  if test -n "$YACC"; then
3646    echo "$as_me:3322: result: $YACC" >&5    echo "$as_me:$LINENO: result: $YACC" >&5
3647  echo "${ECHO_T}$YACC" >&6  echo "${ECHO_T}$YACC" >&6
3648  else  else
3649    echo "$as_me:3325: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
3650  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
3651  fi  fi
3652    
# Line 3334  if test "x$RANLIB" = x; then Line 3658  if test "x$RANLIB" = x; then
3658    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
3659    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3660  set dummy ${ac_tool_prefix}ranlib; ac_word=$2  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3661  echo "$as_me:3337: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
3662  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663  if test "${ac_cv_prog_RANLIB+set}" = set; then  if test "${ac_cv_prog_RANLIB+set}" = set; then
3664    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3342  else Line 3666  else
3666    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
3667    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3668  else  else
3669    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670  ac_dummy="$PATH"  for as_dir in $PATH
3671  for ac_dir in $ac_dummy; do  do
3672    IFS=$ac_save_IFS    IFS=$as_save_IFS
3673    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
3674    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
3675  ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676  echo "$as_me:3352: found $ac_dir/$ac_word" >&5      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3677  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678        break 2
3679      fi
3680    done
3681  done  done
3682    
3683  fi  fi
3684  fi  fi
3685  RANLIB=$ac_cv_prog_RANLIB  RANLIB=$ac_cv_prog_RANLIB
3686  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
3687    echo "$as_me:3360: result: $RANLIB" >&5    echo "$as_me:$LINENO: result: $RANLIB" >&5
3688  echo "${ECHO_T}$RANLIB" >&6  echo "${ECHO_T}$RANLIB" >&6
3689  else  else
3690    echo "$as_me:3363: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
3691  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
3692  fi  fi
3693    
# Line 3369  if test -z "$ac_cv_prog_RANLIB"; then Line 3696  if test -z "$ac_cv_prog_RANLIB"; then
3696    ac_ct_RANLIB=$RANLIB    ac_ct_RANLIB=$RANLIB
3697    # Extract the first word of "ranlib", so it can be a program name with args.    # Extract the first word of "ranlib", so it can be a program name with args.
3698  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
3699  echo "$as_me:3372: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
3700  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3702    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3377  else Line 3704  else
3704    if test -n "$ac_ct_RANLIB"; then    if test -n "$ac_ct_RANLIB"; then
3705    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3706  else  else
3707    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708  ac_dummy="$PATH"  for as_dir in $PATH
3709  for ac_dir in $ac_dummy; do  do
3710    IFS=$ac_save_IFS    IFS=$as_save_IFS
3711    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
3712    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
3713  ac_cv_prog_ac_ct_RANLIB="ranlib"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714  echo "$as_me:3387: found $ac_dir/$ac_word" >&5      ac_cv_prog_ac_ct_RANLIB="ranlib"
3715  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716        break 2
3717      fi
3718    done
3719  done  done
3720    
3721    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
# Line 3393  fi Line 3723  fi
3723  fi  fi
3724  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3725  if test -n "$ac_ct_RANLIB"; then  if test -n "$ac_ct_RANLIB"; then
3726    echo "$as_me:3396: result: $ac_ct_RANLIB" >&5    echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3727  echo "${ECHO_T}$ac_ct_RANLIB" >&6  echo "${ECHO_T}$ac_ct_RANLIB" >&6
3728  else  else
3729    echo "$as_me:3399: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
3730  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
3731  fi  fi
3732    
# Line 3407  fi Line 3737  fi
3737    
3738  fi  fi
3739    
3740  echo "$as_me:3410: checking for AIX" >&5  
3741    
3742    
3743    echo "$as_me:$LINENO: checking for AIX" >&5
3744  echo $ECHO_N "checking for AIX... $ECHO_C" >&6  echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3745  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3746  #line 3413 "configure"  #line $LINENO "configure"
3747  #include "confdefs.h"  #include "confdefs.h"
3748  #ifdef _AIX  #ifdef _AIX
3749    yes    yes
# Line 3419  cat >conftest.$ac_ext <<_ACEOF Line 3752  cat >conftest.$ac_ext <<_ACEOF
3752  _ACEOF  _ACEOF
3753  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754    egrep "yes" >/dev/null 2>&1; then    egrep "yes" >/dev/null 2>&1; then
3755    echo "$as_me:3422: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
3756  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
3757  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
3758  #define _ALL_SOURCE 1  #define _ALL_SOURCE 1
3759  EOF  _ACEOF
3760    
3761  else  else
3762    echo "$as_me:3429: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
3763  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
3764  fi  fi
3765  rm -f conftest*  rm -f conftest*
3766    
3767    
3768    
3769  #### Extract some information from the operating system and machine files.  #### Extract some information from the operating system and machine files.
3770    
3771  { echo "$as_me:3436: checking the machine- and system-dependent files to find out  { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3772   - which libraries the lib-src programs will want, and   - which libraries the lib-src programs will want, and
3773   - whether the GNU malloc routines are usable..." >&5   - whether the GNU malloc routines are usable..." >&5
3774  echo "$as_me: checking the machine- and system-dependent files to find out  echo "$as_me: checking the machine- and system-dependent files to find out
# Line 3583  if test "${enable_largefile+set}" = set; Line 3918  if test "${enable_largefile+set}" = set;
3918  fi;  fi;
3919  if test "$enable_largefile" != no; then  if test "$enable_largefile" != no; then
3920    
3921    echo "$as_me:3586: checking for special C compiler options needed for large files" >&5    echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3922  echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6  echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3923  if test "${ac_cv_sys_largefile_CC+set}" = set; then  if test "${ac_cv_sys_largefile_CC+set}" = set; then
3924    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3595  else Line 3930  else
3930           # IRIX 6.2 and later do not support large files by default,           # IRIX 6.2 and later do not support large files by default,
3931           # so use the C compiler's -n32 option if that helps.           # so use the C compiler's -n32 option if that helps.
3932           cat >conftest.$ac_ext <<_ACEOF           cat >conftest.$ac_ext <<_ACEOF
3933  #line 3598 "configure"  #line $LINENO "configure"
3934  #include "confdefs.h"  #include "confdefs.h"
3935  #include <sys/types.h>  #include <sys/types.h>
3936   /* Check that off_t can represent 2**63 - 1 correctly.   /* Check that off_t can represent 2**63 - 1 correctly.
# Line 3606  else Line 3941  else
3941    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3942                         && LARGE_OFF_T % 2147483647 == 1)                         && LARGE_OFF_T % 2147483647 == 1)
3943                        ? 1 : -1];                        ? 1 : -1];
3944    #ifdef F77_DUMMY_MAIN
3945    #  ifdef __cplusplus
3946         extern "C"
3947    #  endif
3948       int F77_DUMMY_MAIN() { return 1; }
3949    #endif
3950  int  int
3951  main ()  main ()
3952  {  {
# Line 3615  main () Line 3956  main ()
3956  }  }
3957  _ACEOF  _ACEOF
3958           rm -f conftest.$ac_objext           rm -f conftest.$ac_objext
3959  if { (eval echo "$as_me:3618: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3961    ac_status=$?    ac_status=$?
3962    echo "$as_me:3621: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963    (exit $ac_status); } &&    (exit $ac_status); } &&
3964           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3965    { (eval echo "$as_me:3624: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3967    ac_status=$?    ac_status=$?
3968    echo "$as_me:3627: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3970    break    break
3971  else  else
# Line 3634  fi Line 3975  fi
3975  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
3976           CC="$CC -n32"           CC="$CC -n32"
3977           rm -f conftest.$ac_objext           rm -f conftest.$ac_objext
3978  if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3980    ac_status=$?    ac_status=$?
3981    echo "$as_me:3640: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982    (exit $ac_status); } &&    (exit $ac_status); } &&
3983           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
3984    { (eval echo "$as_me:3643: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3986    ac_status=$?    ac_status=$?
3987    echo "$as_me:3646: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3989    ac_cv_sys_largefile_CC=' -n32'; break    ac_cv_sys_largefile_CC=' -n32'; break
3990  else  else
# Line 3657  rm -f conftest.$ac_objext Line 3998  rm -f conftest.$ac_objext
3998         rm -f conftest.$ac_ext         rm -f conftest.$ac_ext
3999      fi      fi
4000  fi  fi
4001  echo "$as_me:3660: result: $ac_cv_sys_largefile_CC" >&5  echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4002  echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6  echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4003    if test "$ac_cv_sys_largefile_CC" != no; then    if test "$ac_cv_sys_largefile_CC" != no; then
4004      CC=$CC$ac_cv_sys_largefile_CC      CC=$CC$ac_cv_sys_largefile_CC
4005    fi    fi
4006    
4007    echo "$as_me:3666: checking for _FILE_OFFSET_BITS value needed for large files" >&5    echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4008  echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6  echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4009  if test "${ac_cv_sys_file_offset_bits+set}" = set; then  if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4010    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3671  else Line 4012  else
4012    while :; do    while :; do
4013    ac_cv_sys_file_offset_bits=no    ac_cv_sys_file_offset_bits=no
4014    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4015  #line 3674 "configure"  #line $LINENO "configure"
4016  #include "confdefs.h"  #include "confdefs.h"
4017  #include <sys/types.h>  #include <sys/types.h>
4018   /* Check that off_t can represent 2**63 - 1 correctly.   /* Check that off_t can represent 2**63 - 1 correctly.
# Line 3682  else Line 4023  else
4023    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4024                         && LARGE_OFF_T % 2147483647 == 1)                         && LARGE_OFF_T % 2147483647 == 1)
4025                        ? 1 : -1];                        ? 1 : -1];
4026    #ifdef F77_DUMMY_MAIN
4027    #  ifdef __cplusplus
4028         extern "C"
4029    #  endif
4030       int F77_DUMMY_MAIN() { return 1; }
4031    #endif
4032  int  int
4033  main ()  main ()
4034  {  {
# Line 3691  main () Line 4038  main ()
4038  }  }
4039  _ACEOF  _ACEOF
4040  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4041  if { (eval echo "$as_me:3694: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4043    ac_status=$?    ac_status=$?
4044    echo "$as_me:3697: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045    (exit $ac_status); } &&    (exit $ac_status); } &&
4046           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4047    { (eval echo "$as_me:3700: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4049    ac_status=$?    ac_status=$?
4050    echo "$as_me:3703: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4052    break    break
4053  else  else
# Line 3709  cat conftest.$ac_ext >&5 Line 4056  cat conftest.$ac_ext >&5
4056  fi  fi
4057  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
4058    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4059  #line 3712 "configure"  #line $LINENO "configure"
4060  #include "confdefs.h"  #include "confdefs.h"
4061  #define _FILE_OFFSET_BITS 64  #define _FILE_OFFSET_BITS 64
4062  #include <sys/types.h>  #include <sys/types.h>
# Line 3721  rm -f conftest.$ac_objext conftest.$ac_e Line 4068  rm -f conftest.$ac_objext conftest.$ac_e
4068    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4069                         && LARGE_OFF_T % 2147483647 == 1)                         && LARGE_OFF_T % 2147483647 == 1)
4070                        ? 1 : -1];                        ? 1 : -1];
4071    #ifdef F77_DUMMY_MAIN
4072    #  ifdef __cplusplus
4073         extern "C"
4074    #  endif
4075       int F77_DUMMY_MAIN() { return 1; }
4076    #endif
4077  int  int
4078  main ()  main ()
4079  {  {
# Line 3730  main () Line 4083  main ()
4083  }  }
4084  _ACEOF  _ACEOF
4085  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4086  if { (eval echo "$as_me:3733: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4088    ac_status=$?    ac_status=$?
4089    echo "$as_me:3736: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090    (exit $ac_status); } &&    (exit $ac_status); } &&
4091           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4092    { (eval echo "$as_me:3739: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4094    ac_status=$?    ac_status=$?
4095    echo "$as_me:3742: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4097    ac_cv_sys_file_offset_bits=64; break    ac_cv_sys_file_offset_bits=64; break
4098  else  else
# Line 3750  rm -f conftest.$ac_objext conftest.$ac_e Line 4103  rm -f conftest.$ac_objext conftest.$ac_e
4103    break    break
4104  done  done
4105  fi  fi
4106  echo "$as_me:3753: result: $ac_cv_sys_file_offset_bits" >&5  echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4107  echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6  echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4108  if test "$ac_cv_sys_file_offset_bits" != no; then  if test "$ac_cv_sys_file_offset_bits" != no; then
4109    
4110  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
4111  #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits  #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4112  EOF  _ACEOF
4113    
4114  fi  fi
4115  rm -f conftest*  rm -f conftest*
4116    echo "$as_me:3763: checking for _LARGE_FILES value needed for large files" >&5    echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4117  echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6  echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4118  if test "${ac_cv_sys_large_files+set}" = set; then  if test "${ac_cv_sys_large_files+set}" = set; then
4119    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3768  else Line 4121  else
4121    while :; do    while :; do
4122    ac_cv_sys_large_files=no    ac_cv_sys_large_files=no
4123    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4124  #line 3771 "configure"  #line $LINENO "configure"
4125  #include "confdefs.h"  #include "confdefs.h"
4126  #include <sys/types.h>  #include <sys/types.h>
4127   /* Check that off_t can represent 2**63 - 1 correctly.   /* Check that off_t can represent 2**63 - 1 correctly.
# Line 3779  else Line 4132  else
4132    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4133                         && LARGE_OFF_T % 2147483647 == 1)                         && LARGE_OFF_T % 2147483647 == 1)
4134                        ? 1 : -1];                        ? 1 : -1];
4135    #ifdef F77_DUMMY_MAIN
4136    #  ifdef __cplusplus
4137         extern "C"
4138    #  endif
4139       int F77_DUMMY_MAIN() { return 1; }
4140    #endif
4141  int  int
4142  main ()  main ()
4143  {  {
# Line 3788  main () Line 4147  main ()
4147  }  }
4148  _ACEOF  _ACEOF
4149  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4150  if { (eval echo "$as_me:3791: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4152    ac_status=$?    ac_status=$?
4153    echo "$as_me:3794: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154    (exit $ac_status); } &&    (exit $ac_status); } &&
4155           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4156    { (eval echo "$as_me:3797: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4158    ac_status=$?    ac_status=$?
4159    echo "$as_me:3800: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4161    break    break
4162  else  else
# Line 3806  cat conftest.$ac_ext >&5 Line 4165  cat conftest.$ac_ext >&5
4165  fi  fi
4166  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
4167    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4168  #line 3809 "configure"  #line $LINENO "configure"
4169  #include "confdefs.h"  #include "confdefs.h"
4170  #define _LARGE_FILES 1  #define _LARGE_FILES 1
4171  #include <sys/types.h>  #include <sys/types.h>
# Line 3818  rm -f conftest.$ac_objext conftest.$ac_e Line 4177  rm -f conftest.$ac_objext conftest.$ac_e
4177    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4178                         && LARGE_OFF_T % 2147483647 == 1)                         && LARGE_OFF_T % 2147483647 == 1)
4179                        ? 1 : -1];                        ? 1 : -1];
4180    #ifdef F77_DUMMY_MAIN
4181    #  ifdef __cplusplus
4182         extern "C"
4183    #  endif
4184       int F77_DUMMY_MAIN() { return 1; }
4185    #endif
4186  int  int
4187  main ()  main ()
4188  {  {
# Line 3827  main () Line 4192  main ()
4192  }  }
4193  _ACEOF  _ACEOF
4194  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4195  if { (eval echo "$as_me:3830: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4197    ac_status=$?    ac_status=$?
4198    echo "$as_me:3833: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199    (exit $ac_status); } &&    (exit $ac_status); } &&
4200           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4201    { (eval echo "$as_me:3836: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4203    ac_status=$?    ac_status=$?
4204    echo "$as_me:3839: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4206    ac_cv_sys_large_files=1; break    ac_cv_sys_large_files=1; break
4207  else  else
# Line 3847  rm -f conftest.$ac_objext conftest.$ac_e Line 4212  rm -f conftest.$ac_objext conftest.$ac_e
4212    break    break
4213  done  done
4214  fi  fi
4215  echo "$as_me:3850: result: $ac_cv_sys_large_files" >&5  echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4216  echo "${ECHO_T}$ac_cv_sys_large_files" >&6  echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4217  if test "$ac_cv_sys_large_files" != no; then  if test "$ac_cv_sys_large_files" != no; then
4218    
4219  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
4220  #define _LARGE_FILES $ac_cv_sys_large_files  #define _LARGE_FILES $ac_cv_sys_large_files
4221  EOF  _ACEOF
4222    
4223  fi  fi
4224  rm -f conftest*  rm -f conftest*
4225  fi  fi
4226    
4227    
4228  if test "${with_sound}" != "no"; then  if test "${with_sound}" != "no"; then
4229    # Sound support for GNU/Linux and the free BSDs.    # Sound support for GNU/Linux and the free BSDs.
4230      echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4231    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4232    if test "${ac_cv_header_stdc+set}" = set; then
4233      echo $ECHO_N "(cached) $ECHO_C" >&6
4234    else
4235      cat >conftest.$ac_ext <<_ACEOF
4236    #line $LINENO "configure"
4237    #include "confdefs.h"
4238    #include <stdlib.h>
4239    #include <stdarg.h>
4240    #include <string.h>
4241    #include <float.h>
4242    
4243  for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h  _ACEOF
4244    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246      ac_status=$?
4247      egrep -v '^ *\+' conftest.er1 >conftest.err
4248      rm -f conftest.er1
4249      cat conftest.err >&5
4250      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251      (exit $ac_status); } >/dev/null; then
4252      if test -s conftest.err; then
4253        ac_cpp_err=$ac_c_preproc_warn_flag
4254      else
4255        ac_cpp_err=
4256      fi
4257    else
4258      ac_cpp_err=yes
4259    fi
4260    if test -z "$ac_cpp_err"; then
4261      ac_cv_header_stdc=yes
4262    else
4263      echo "$as_me: failed program was:" >&5
4264      cat conftest.$ac_ext >&5
4265      ac_cv_header_stdc=no
4266    fi
4267    rm -f conftest.err conftest.$ac_ext
4268    
4269    if test $ac_cv_header_stdc = yes; then
4270      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271      cat >conftest.$ac_ext <<_ACEOF
4272    #line $LINENO "configure"
4273    #include "confdefs.h"
4274    #include <string.h>
4275    
4276    _ACEOF
4277    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278      egrep "memchr" >/dev/null 2>&1; then
4279      :
4280    else
4281      ac_cv_header_stdc=no
4282    fi
4283    rm -f conftest*
4284    
4285    fi
4286    
4287    if test $ac_cv_header_stdc = yes; then
4288      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4289      cat >conftest.$ac_ext <<_ACEOF
4290    #line $LINENO "configure"
4291    #include "confdefs.h"
4292    #include <stdlib.h>
4293    
4294    _ACEOF
4295    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4296      egrep "free" >/dev/null 2>&1; then
4297      :
4298    else
4299      ac_cv_header_stdc=no
4300    fi
4301    rm -f conftest*
4302    
4303    fi
4304    
4305    if test $ac_cv_header_stdc = yes; then
4306      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4307      if test "$cross_compiling" = yes; then
4308      :
4309    else
4310      cat >conftest.$ac_ext <<_ACEOF
4311    #line $LINENO "configure"
4312    #include "confdefs.h"
4313    #include <ctype.h>
4314    #if ((' ' & 0x0FF) == 0x020)
4315    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4316    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4317    #else
4318    # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4319                         || ('j' <= (c) && (c) <= 'r') \
4320                         || ('s' <= (c) && (c) <= 'z'))
4321    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4322    #endif
4323    
4324    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4325    int
4326    main ()
4327    {
4328      int i;
4329      for (i = 0; i < 256; i++)
4330        if (XOR (islower (i), ISLOWER (i))
4331            || toupper (i) != TOUPPER (i))
4332          exit(2);
4333      exit (0);
4334    }
4335    _ACEOF
4336    rm -f conftest$ac_exeext
4337    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338      (eval $ac_link) 2>&5
4339      ac_status=$?
4340      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4342      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343      (eval $ac_try) 2>&5
4344      ac_status=$?
4345      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346      (exit $ac_status); }; }; then
4347      :
4348    else
4349      echo "$as_me: program exited with status $ac_status" >&5
4350    echo "$as_me: failed program was:" >&5
4351    cat conftest.$ac_ext >&5
4352    ( exit $ac_status )
4353    ac_cv_header_stdc=no
4354    fi
4355    rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356    fi
4357    fi
4358    fi
4359    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4360    echo "${ECHO_T}$ac_cv_header_stdc" >&6
4361    if test $ac_cv_header_stdc = yes; then
4362    
4363    cat >>confdefs.h <<\_ACEOF
4364    #define STDC_HEADERS 1
4365    _ACEOF
4366    
4367    fi
4368    
4369    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370    
4371    
4372    
4373    
4374    
4375    
4376    
4377    
4378    
4379    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380                      inttypes.h stdint.h unistd.h
4381  do  do
4382  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383  echo "$as_me:3868: checking for $ac_header" >&5  echo "$as_me:$LINENO: checking for $ac_header" >&5
4384  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4385  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4387  else  else
4388    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4389  #line 3874 "configure"  #line $LINENO "configure"
4390  #include "confdefs.h"  #include "confdefs.h"
4391    $ac_includes_default
4392    
4393  #include <$ac_header>  #include <$ac_header>
4394  _ACEOF  _ACEOF
4395  if { (eval echo "$as_me:3878: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
4396    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397      (eval $ac_compile) 2>&5
4398      ac_status=$?
4399      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400      (exit $ac_status); } &&
4401             { ac_try='test -s conftest.$ac_objext'
4402      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403      (eval $ac_try) 2>&5
4404      ac_status=$?
4405      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406      (exit $ac_status); }; }; then
4407      eval "$as_ac_Header=yes"
4408    else
4409      echo "$as_me: failed program was:" >&5
4410    cat conftest.$ac_ext >&5
4411    eval "$as_ac_Header=no"
4412    fi
4413    rm -f conftest.$ac_objext conftest.$ac_ext
4414    fi
4415    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418      cat >>confdefs.h <<_ACEOF
4419    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420    _ACEOF
4421    
4422    fi
4423    
4424    done
4425    
4426    
4427    
4428    
4429    
4430    for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4431    do
4432    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4434      echo "$as_me:$LINENO: checking for $ac_header" >&5
4435    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437      echo $ECHO_N "(cached) $ECHO_C" >&6
4438    fi
4439    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4440    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4441    else
4442      # Is the header compilable?
4443    echo "$as_me:$LINENO: checking $ac_header usability" >&5
4444    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4445    cat >conftest.$ac_ext <<_ACEOF
4446    #line $LINENO "configure"
4447    #include "confdefs.h"
4448    $ac_includes_default
4449    #include <$ac_header>
4450    _ACEOF
4451    rm -f conftest.$ac_objext
4452    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453      (eval $ac_compile) 2>&5
4454      ac_status=$?
4455      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456      (exit $ac_status); } &&
4457             { ac_try='test -s conftest.$ac_objext'
4458      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459      (eval $ac_try) 2>&5
4460      ac_status=$?
4461      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462      (exit $ac_status); }; }; then
4463      ac_header_compiler=yes
4464    else
4465      echo "$as_me: failed program was:" >&5
4466    cat conftest.$ac_ext >&5
4467    ac_header_compiler=no
4468    fi
4469    rm -f conftest.$ac_objext conftest.$ac_ext
4470    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471    echo "${ECHO_T}$ac_header_compiler" >&6
4472    
4473    # Is the header present?
4474    echo "$as_me:$LINENO: checking $ac_header presence" >&5
4475    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4476    cat >conftest.$ac_ext <<_ACEOF
4477    #line $LINENO "configure"
4478    #include "confdefs.h"
4479    #include <$ac_header>
4480    _ACEOF
4481    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483    ac_status=$?    ac_status=$?
4484    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
4485    rm -f conftest.er1    rm -f conftest.er1
4486    cat conftest.err >&5    cat conftest.err >&5
4487    echo "$as_me:3884: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
4489    if test -s conftest.err; then    if test -s conftest.err; then
4490      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 3892  else Line 4495  else
4495    ac_cpp_err=yes    ac_cpp_err=yes
4496  fi  fi
4497  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
4498    eval "$as_ac_Header=yes"    ac_header_preproc=yes
4499  else  else
4500    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4501    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4502    eval "$as_ac_Header=no"    ac_header_preproc=no
4503  fi  fi
4504  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
4505    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506    echo "${ECHO_T}$ac_header_preproc" >&6
4507    
4508    # So?  What about this header?
4509    case $ac_header_compiler:$ac_header_preproc in
4510      yes:no )
4511        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4515      no:yes )
4516        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4522    esac
4523    echo "$as_me:$LINENO: checking for $ac_header" >&5
4524    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526      echo $ECHO_N "(cached) $ECHO_C" >&6
4527    else
4528      eval "$as_ac_Header=$ac_header_preproc"
4529  fi  fi
4530  echo "$as_me:3903: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532    
4533    fi
4534  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
4536  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537  EOF  _ACEOF
4538    
4539  fi  fi
4540    
4541  done  done
4542    
4543    # Emulation library used on NetBSD.    # Emulation library used on NetBSD.
4544    echo "$as_me:3914: checking for _oss_ioctl in -lossaudio" >&5    echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4545  echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6  echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4546  if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then  if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4547    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3919  else Line 4549  else
4549    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
4550  LIBS="-lossaudio  $LIBS"  LIBS="-lossaudio  $LIBS"
4551  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
4552  #line 3922 "configure"  #line $LINENO "configure"
4553  #include "confdefs.h"  #include "confdefs.h"
4554    
4555  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 3929  extern "C" Line 4559  extern "C"
4559  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4560     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4561  char _oss_ioctl ();  char _oss_ioctl ();
4562    #ifdef F77_DUMMY_MAIN
4563    #  ifdef __cplusplus
4564         extern "C"
4565    #  endif
4566       int F77_DUMMY_MAIN() { return 1; }
4567    #endif
4568  int  int
4569  main ()  main ()
4570  {  {
# Line 3938  _oss_ioctl (); Line 4574  _oss_ioctl ();
4574  }  }
4575  _ACEOF  _ACEOF
4576  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
4577  if { (eval echo "$as_me:3941: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
4579    ac_status=$?    ac_status=$?
4580    echo "$as_me:3944: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581    (exit $ac_status); } &&    (exit $ac_status); } &&
4582           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
4583    { (eval echo "$as_me:3947: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4585    ac_status=$?    ac_status=$?
4586    echo "$as_me:3950: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4588    ac_cv_lib_ossaudio__oss_ioctl=yes    ac_cv_lib_ossaudio__oss_ioctl=yes
4589  else  else
# Line 3958  fi Line 4594  fi
4594  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4595  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
4596  fi  fi
4597  echo "$as_me:3961: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4598  echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6  echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4599  if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then  if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4600    LIBSOUND=-lossaudio    LIBSOUND=-lossaudio
# Line 3966  else Line 4602  else
4602    LIBSOUND=    LIBSOUND=
4603  fi  fi
4604    
4605    
4606  fi  fi
4607    
4608    
4609    
4610    
4611    
4612    
4613    
4614    
4615    
4616    
4617    
4618    
4619    
4620    
4621    
4622    
4623    
4624    
4625  for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \  for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4626    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4627    termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h    termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4628  do  do
4629  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630  echo "$as_me:3976: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631      echo "$as_me:$LINENO: checking for $ac_header" >&5
4632  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4635    fi
4636    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638  else  else
4639    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
4640  #line 3982 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642    cat >conftest.$ac_ext <<_ACEOF
4643    #line $LINENO "configure"
4644    #include "confdefs.h"
4645    $ac_includes_default
4646    #include <$ac_header>
4647    _ACEOF
4648    rm -f conftest.$ac_objext
4649    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650      (eval $ac_compile) 2>&5
4651      ac_status=$?
4652      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653      (exit $ac_status); } &&
4654             { ac_try='test -s conftest.$ac_objext'
4655      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656      (eval $ac_try) 2>&5
4657      ac_status=$?
4658      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659      (exit $ac_status); }; }; then
4660      ac_header_compiler=yes
4661    else
4662      echo "$as_me: failed program was:" >&5
4663    cat conftest.$ac_ext >&5
4664    ac_header_compiler=no
4665    fi
4666    rm -f conftest.$ac_objext conftest.$ac_ext
4667    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4668    echo "${ECHO_T}$ac_header_compiler" >&6
4669    
4670    # Is the header present?
4671    echo "$as_me:$LINENO: checking $ac_header presence" >&5
4672    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4673    cat >conftest.$ac_ext <<_ACEOF
4674    #line $LINENO "configure"
4675  #include "confdefs.h"  #include "confdefs.h"
4676  #include <$ac_header>  #include <$ac_header>
4677  _ACEOF  _ACEOF
4678  if { (eval echo "$as_me:3986: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680    ac_status=$?    ac_status=$?
4681    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
4682    rm -f conftest.er1    rm -f conftest.er1
4683    cat conftest.err >&5    cat conftest.err >&5
4684    echo "$as_me:3992: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
4686    if test -s conftest.err; then    if test -s conftest.err; then
4687      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4000  else Line 4692  else
4692    ac_cpp_err=yes    ac_cpp_err=yes
4693  fi  fi
4694  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
4695    eval "$as_ac_Header=yes"    ac_header_preproc=yes
4696  else  else
4697    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4698    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4699    eval "$as_ac_Header=no"    ac_header_preproc=no
4700  fi  fi
4701  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
4702    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703    echo "${ECHO_T}$ac_header_preproc" >&6
4704    
4705    # So?  What about this header?
4706    case $ac_header_compiler:$ac_header_preproc in
4707      yes:no )
4708        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4711    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4712      no:yes )
4713        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4714    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4715        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4716    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4717        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4718    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4719    esac
4720    echo "$as_me:$LINENO: checking for $ac_header" >&5
4721    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723      echo $ECHO_N "(cached) $ECHO_C" >&6
4724    else
4725      eval "$as_ac_Header=$ac_header_preproc"
4726  fi  fi
4727  echo "$as_me:4011: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4728  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4729    
4730    fi
4731  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
4732    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
4733  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4734  EOF  _ACEOF
4735    
4736  fi  fi
4737    
4738  done  done
4739    
4740  echo "$as_me:4021: checking for ANSI C header files" >&5  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4741  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4742  if test "${ac_cv_header_stdc+set}" = set; then  if test "${ac_cv_header_stdc+set}" = set; then
4743    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4744  else  else
4745    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4746  #line 4027 "configure"  #line $LINENO "configure"
4747  #include "confdefs.h"  #include "confdefs.h"
4748  #include <stdlib.h>  #include <stdlib.h>
4749  #include <stdarg.h>  #include <stdarg.h>
# Line 4032  else Line 4751  else
4751  #include <float.h>  #include <float.h>
4752    
4753  _ACEOF  _ACEOF
4754  if { (eval echo "$as_me:4035: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756    ac_status=$?    ac_status=$?
4757    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
4758    rm -f conftest.er1    rm -f conftest.er1
4759    cat conftest.err >&5    cat conftest.err >&5
4760    echo "$as_me:4041: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
4762    if test -s conftest.err; then    if test -s conftest.err; then
4763      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4060  rm -f conftest.err conftest.$ac_ext Line 4779  rm -f conftest.err conftest.$ac_ext
4779  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
4780    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4782  #line 4063 "configure"  #line $LINENO "configure"
4783  #include "confdefs.h"  #include "confdefs.h"
4784  #include <string.h>  #include <string.h>
4785    
# Line 4078  fi Line 4797  fi
4797  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
4798    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4799    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4800  #line 4081 "configure"  #line $LINENO "configure"
4801  #include "confdefs.h"  #include "confdefs.h"
4802  #include <stdlib.h>  #include <stdlib.h>
4803    
# Line 4099  if test $ac_cv_header_stdc = yes; then Line 4818  if test $ac_cv_header_stdc = yes; then
4818    :    :
4819  else  else
4820    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4821  #line 4102 "configure"  #line $LINENO "configure"
4822  #include "confdefs.h"  #include "confdefs.h"
4823  #include <ctype.h>  #include <ctype.h>
4824  #if ((' ' & 0x0FF) == 0x020)  #if ((' ' & 0x0FF) == 0x020)
# Line 4125  main () Line 4844  main ()
4844  }  }
4845  _ACEOF  _ACEOF
4846  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
4847  if { (eval echo "$as_me:4128: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
4849    ac_status=$?    ac_status=$?
4850    echo "$as_me:4131: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852    { (eval echo "$as_me:4133: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4854    ac_status=$?    ac_status=$?
4855    echo "$as_me:4136: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4857    :    :
4858  else  else
4859    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
4860  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
4861  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
4862    ( exit $ac_status )
4863  ac_cv_header_stdc=no  ac_cv_header_stdc=no
4864  fi  fi
4865  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4866  fi  fi
4867  fi  fi
4868  fi  fi
4869  echo "$as_me:4149: result: $ac_cv_header_stdc" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4870  echo "${ECHO_T}$ac_cv_header_stdc" >&6  echo "${ECHO_T}$ac_cv_header_stdc" >&6
4871  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
4872    
4873  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
4874  #define STDC_HEADERS 1  #define STDC_HEADERS 1
4875  EOF  _ACEOF
4876    
4877  fi  fi
4878    
4879  echo "$as_me:4159: checking whether time.h and sys/time.h may both be included" >&5  echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4880  echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6  echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4881  if test "${ac_cv_header_time+set}" = set; then  if test "${ac_cv_header_time+set}" = set; then
4882    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4883  else  else
4884    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4885  #line 4165 "configure"  #line $LINENO "configure"
4886  #include "confdefs.h"  #include "confdefs.h"
4887  #include <sys/types.h>  #include <sys/types.h>
4888  #include <sys/time.h>  #include <sys/time.h>
4889  #include <time.h>  #include <time.h>
4890    
4891    #ifdef F77_DUMMY_MAIN
4892    #  ifdef __cplusplus
4893         extern "C"
4894    #  endif
4895       int F77_DUMMY_MAIN() { return 1; }
4896    #endif
4897  int  int
4898  main ()  main ()
4899  {  {
# Line 4178  return 0; Line 4904  return 0;
4904  }  }
4905  _ACEOF  _ACEOF
4906  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4907  if { (eval echo "$as_me:4181: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4909    ac_status=$?    ac_status=$?
4910    echo "$as_me:4184: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911    (exit $ac_status); } &&    (exit $ac_status); } &&
4912           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4913    { (eval echo "$as_me:4187: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4915    ac_status=$?    ac_status=$?
4916    echo "$as_me:4190: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4918    ac_cv_header_time=yes    ac_cv_header_time=yes
4919  else  else
# Line 4197  ac_cv_header_time=no Line 4923  ac_cv_header_time=no
4923  fi  fi
4924  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
4925  fi  fi
4926  echo "$as_me:4200: result: $ac_cv_header_time" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4927  echo "${ECHO_T}$ac_cv_header_time" >&6  echo "${ECHO_T}$ac_cv_header_time" >&6
4928  if test $ac_cv_header_time = yes; then  if test $ac_cv_header_time = yes; then
4929    
4930  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
4931  #define TIME_WITH_SYS_TIME 1  #define TIME_WITH_SYS_TIME 1
4932  EOF  _ACEOF
4933    
4934  fi  fi
4935    
4936  echo "$as_me:4210: checking for sys_siglist declaration in signal.h or unistd.h" >&5  echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4937  echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6  echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4938  if test "${ac_cv_decl_sys_siglist+set}" = set; then  if test "${ac_cv_decl_sys_siglist+set}" = set; then
4939    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4940  else  else
4941    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4942  #line 4216 "configure"  #line $LINENO "configure"
4943  #include "confdefs.h"  #include "confdefs.h"
4944  #include <sys/types.h>  #include <sys/types.h>
4945  #include <signal.h>  #include <signal.h>
# Line 4222  else Line 4948  else
4948  # include <unistd.h>  # include <unistd.h>
4949  #endif  #endif
4950    
4951    #ifdef F77_DUMMY_MAIN
4952    #  ifdef __cplusplus
4953         extern "C"
4954    #  endif
4955       int F77_DUMMY_MAIN() { return 1; }
4956    #endif
4957  int  int
4958  main ()  main ()
4959  {  {
# Line 4231  char *msg = *(sys_siglist + 1); Line 4963  char *msg = *(sys_siglist + 1);
4963  }  }
4964  _ACEOF  _ACEOF
4965  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4966  if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4968    ac_status=$?    ac_status=$?
4969    echo "$as_me:4237: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970    (exit $ac_status); } &&    (exit $ac_status); } &&
4971           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
4972    { (eval echo "$as_me:4240: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4974    ac_status=$?    ac_status=$?
4975    echo "$as_me:4243: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4977    ac_cv_decl_sys_siglist=yes    ac_cv_decl_sys_siglist=yes
4978  else  else
# Line 4250  ac_cv_decl_sys_siglist=no Line 4982  ac_cv_decl_sys_siglist=no
4982  fi  fi
4983  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
4984  fi  fi
4985  echo "$as_me:4253: result: $ac_cv_decl_sys_siglist" >&5  echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
4986  echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6  echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4987  if test $ac_cv_decl_sys_siglist = yes; then  if test $ac_cv_decl_sys_siglist = yes; then
4988    
4989  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
4990  #define SYS_SIGLIST_DECLARED 1  #define SYS_SIGLIST_DECLARED 1
4991  EOF  _ACEOF
4992    
4993  fi  fi
4994    
4995  echo "$as_me:4263: checking for sys/wait.h that is POSIX.1 compatible" >&5  echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4996  echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6  echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4997  if test "${ac_cv_header_sys_wait_h+set}" = set; then  if test "${ac_cv_header_sys_wait_h+set}" = set; then
4998    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4999  else  else
5000    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5001  #line 4269 "configure"  #line $LINENO "configure"
5002  #include "confdefs.h"  #include "confdefs.h"
5003  #include <sys/types.h>  #include <sys/types.h>
5004  #include <sys/wait.h>  #include <sys/wait.h>
# Line 4277  else Line 5009  else
5009  # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)  # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5010  #endif  #endif
5011    
5012    #ifdef F77_DUMMY_MAIN
5013    #  ifdef __cplusplus
5014         extern "C"
5015    #  endif
5016       int F77_DUMMY_MAIN() { return 1; }
5017    #endif
5018  int  int
5019  main ()  main ()
5020  {  {
# Line 4288  main () Line 5026  main ()
5026  }  }
5027  _ACEOF  _ACEOF
5028  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5029  if { (eval echo "$as_me:4291: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5031    ac_status=$?    ac_status=$?
5032    echo "$as_me:4294: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033    (exit $ac_status); } &&    (exit $ac_status); } &&
5034           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5035    { (eval echo "$as_me:4297: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5037    ac_status=$?    ac_status=$?
5038    echo "$as_me:4300: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5040    ac_cv_header_sys_wait_h=yes    ac_cv_header_sys_wait_h=yes
5041  else  else
# Line 4307  ac_cv_header_sys_wait_h=no Line 5045  ac_cv_header_sys_wait_h=no
5045  fi  fi
5046  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5047  fi  fi
5048  echo "$as_me:4310: result: $ac_cv_header_sys_wait_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5049  echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6  echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5050  if test $ac_cv_header_sys_wait_h = yes; then  if test $ac_cv_header_sys_wait_h = yes; then
5051    
5052  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5053  #define HAVE_SYS_WAIT_H 1  #define HAVE_SYS_WAIT_H 1
5054  EOF  _ACEOF
5055    
5056  fi  fi
5057    
5058  echo "$as_me:4320: checking for struct utimbuf" >&5  
5059    echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5060  echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6  echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5061  if test "${emacs_cv_struct_utimbuf+set}" = set; then  if test "${emacs_cv_struct_utimbuf+set}" = set; then
5062    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5063  else  else
5064    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5065  #line 4326 "configure"  #line $LINENO "configure"
5066  #include "confdefs.h"  #include "confdefs.h"
5067  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
5068  #include <sys/time.h>  #include <sys/time.h>
# Line 4338  else Line 5077  else
5077  #ifdef HAVE_UTIME_H  #ifdef HAVE_UTIME_H
5078  #include <utime.h>  #include <utime.h>
5079  #endif  #endif
5080    #ifdef F77_DUMMY_MAIN
5081    #  ifdef __cplusplus
5082         extern "C"
5083    #  endif
5084       int F77_DUMMY_MAIN() { return 1; }
5085    #endif
5086  int  int
5087  main ()  main ()
5088  {  {
# Line 4347  static struct utimbuf x; x.actime = x.mo Line 5092  static struct utimbuf x; x.actime = x.mo
5092  }  }
5093  _ACEOF  _ACEOF
5094  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5095  if { (eval echo "$as_me:4350: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5097    ac_status=$?    ac_status=$?
5098    echo "$as_me:4353: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099    (exit $ac_status); } &&    (exit $ac_status); } &&
5100           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5101    { (eval echo "$as_me:4356: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5103    ac_status=$?    ac_status=$?
5104    echo "$as_me:4359: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5106    emacs_cv_struct_utimbuf=yes    emacs_cv_struct_utimbuf=yes
5107  else  else
# Line 4366  emacs_cv_struct_utimbuf=no Line 5111  emacs_cv_struct_utimbuf=no
5111  fi  fi
5112  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5113  fi  fi
5114  echo "$as_me:4369: result: $emacs_cv_struct_utimbuf" >&5  echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5115  echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6  echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5116  if test $emacs_cv_struct_utimbuf = yes; then  if test $emacs_cv_struct_utimbuf = yes; then
5117    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5118  #define HAVE_STRUCT_UTIMBUF 1  #define HAVE_STRUCT_UTIMBUF 1
5119  EOF  _ACEOF
5120    
5121  fi  fi
5122    
5123  echo "$as_me:4378: checking return type of signal handlers" >&5  echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5124  echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6  echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5125  if test "${ac_cv_type_signal+set}" = set; then  if test "${ac_cv_type_signal+set}" = set; then
5126    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5127  else  else
5128    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5129  #line 4384 "configure"  #line $LINENO "configure"
5130  #include "confdefs.h"  #include "confdefs.h"
5131  #include <sys/types.h>  #include <sys/types.h>
5132  #include <signal.h>  #include <signal.h>
# Line 4394  extern "C" void (*signal (int, void (*)( Line 5139  extern "C" void (*signal (int, void (*)(
5139  void (*signal ()) ();  void (*signal ()) ();
5140  #endif  #endif
5141    
5142    #ifdef F77_DUMMY_MAIN
5143    #  ifdef __cplusplus
5144         extern "C"
5145    #  endif
5146       int F77_DUMMY_MAIN() { return 1; }
5147    #endif
5148  int  int
5149  main ()  main ()
5150  {  {
# Line 4403  int i; Line 5154  int i;
5154  }  }
5155  _ACEOF  _ACEOF
5156  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5157  if { (eval echo "$as_me:4406: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5159    ac_status=$?    ac_status=$?
5160    echo "$as_me:4409: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161    (exit $ac_status); } &&    (exit $ac_status); } &&
5162           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5163    { (eval echo "$as_me:4412: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5165    ac_status=$?    ac_status=$?
5166    echo "$as_me:4415: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5168    ac_cv_type_signal=void    ac_cv_type_signal=void
5169  else  else
# Line 4422  ac_cv_type_signal=int Line 5173  ac_cv_type_signal=int
5173  fi  fi
5174  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5175  fi  fi
5176  echo "$as_me:4425: result: $ac_cv_type_signal" >&5  echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5177  echo "${ECHO_T}$ac_cv_type_signal" >&6  echo "${ECHO_T}$ac_cv_type_signal" >&6
5178    
5179  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
5180  #define RETSIGTYPE $ac_cv_type_signal  #define RETSIGTYPE $ac_cv_type_signal
5181  EOF  _ACEOF
5182    
5183    
5184  echo "$as_me:4432: checking for speed_t" >&5  
5185    echo "$as_me:$LINENO: checking for speed_t" >&5
5186  echo $ECHO_N "checking for speed_t... $ECHO_C" >&6  echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5187  if test "${emacs_cv_speed_t+set}" = set; then  if test "${emacs_cv_speed_t+set}" = set; then
5188    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5189  else  else
5190    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5191  #line 4438 "configure"  #line $LINENO "configure"
5192  #include "confdefs.h"  #include "confdefs.h"
5193  #include <termios.h>  #include <termios.h>
5194    #ifdef F77_DUMMY_MAIN
5195    #  ifdef __cplusplus
5196         extern "C"
5197    #  endif
5198       int F77_DUMMY_MAIN() { return 1; }
5199    #endif
5200  int  int
5201  main ()  main ()
5202  {  {
# Line 4447  speed_t x = 1; Line 5206  speed_t x = 1;
5206  }  }
5207  _ACEOF  _ACEOF
5208  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5209  if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5211    ac_status=$?    ac_status=$?
5212    echo "$as_me:4453: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213    (exit $ac_status); } &&    (exit $ac_status); } &&
5214           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5215    { (eval echo "$as_me:4456: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5217    ac_status=$?    ac_status=$?
5218    echo "$as_me:4459: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5220    emacs_cv_speed_t=yes    emacs_cv_speed_t=yes
5221  else  else
# Line 4466  emacs_cv_speed_t=no Line 5225  emacs_cv_speed_t=no
5225  fi  fi
5226  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5227  fi  fi
5228  echo "$as_me:4469: result: $emacs_cv_speed_t" >&5  echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5229  echo "${ECHO_T}$emacs_cv_speed_t" >&6  echo "${ECHO_T}$emacs_cv_speed_t" >&6
5230  if test $emacs_cv_speed_t = yes; then  if test $emacs_cv_speed_t = yes; then
5231    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5232  #define HAVE_SPEED_T 1  #define HAVE_SPEED_T 1
5233  EOF  _ACEOF
5234    
5235  fi  fi
5236    
5237  echo "$as_me:4478: checking for struct timeval" >&5  echo "$as_me:$LINENO: checking for struct timeval" >&5
5238  echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6  echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5239  if test "${emacs_cv_struct_timeval+set}" = set; then  if test "${emacs_cv_struct_timeval+set}" = set; then
5240    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5241  else  else
5242    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5243  #line 4484 "configure"  #line $LINENO "configure"
5244  #include "confdefs.h"  #include "confdefs.h"
5245  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
5246  #include <sys/time.h>  #include <sys/time.h>
# Line 4493  else Line 5252  else
5252  #include <time.h>  #include <time.h>
5253  #endif  #endif
5254  #endif  #endif
5255    #ifdef F77_DUMMY_MAIN
5256    #  ifdef __cplusplus
5257         extern "C"
5258    #  endif
5259       int F77_DUMMY_MAIN() { return 1; }
5260    #endif
5261  int  int
5262  main ()  main ()
5263  {  {
# Line 4502  static struct timeval x; x.tv_sec = x.tv Line 5267  static struct timeval x; x.tv_sec = x.tv
5267  }  }
5268  _ACEOF  _ACEOF
5269  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5270  if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5272    ac_status=$?    ac_status=$?
5273    echo "$as_me:4508: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274    (exit $ac_status); } &&    (exit $ac_status); } &&
5275           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5276    { (eval echo "$as_me:4511: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5278    ac_status=$?    ac_status=$?
5279    echo "$as_me:4514: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5281    emacs_cv_struct_timeval=yes    emacs_cv_struct_timeval=yes
5282  else  else
# Line 4521  emacs_cv_struct_timeval=no Line 5286  emacs_cv_struct_timeval=no
5286  fi  fi
5287  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5288  fi  fi
5289  echo "$as_me:4524: result: $emacs_cv_struct_timeval" >&5  echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5290  echo "${ECHO_T}$emacs_cv_struct_timeval" >&6  echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5291  HAVE_TIMEVAL=$emacs_cv_struct_timeval  HAVE_TIMEVAL=$emacs_cv_struct_timeval
5292  if test $emacs_cv_struct_timeval = yes; then  if test $emacs_cv_struct_timeval = yes; then
5293    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5294  #define HAVE_TIMEVAL 1  #define HAVE_TIMEVAL 1
5295  EOF  _ACEOF
5296    
5297  fi  fi
5298    
5299  echo "$as_me:4534: checking for struct exception" >&5  echo "$as_me:$LINENO: checking for struct exception" >&5
5300  echo $ECHO_N "checking for struct exception... $ECHO_C" >&6  echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5301  if test "${emacs_cv_struct_exception+set}" = set; then  if test "${emacs_cv_struct_exception+set}" = set; then
5302    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5303  else  else
5304    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5305  #line 4540 "configure"  #line $LINENO "configure"
5306  #include "confdefs.h"  #include "confdefs.h"
5307  #include <math.h>  #include <math.h>
5308    #ifdef F77_DUMMY_MAIN
5309    #  ifdef __cplusplus
5310         extern "C"
5311    #  endif
5312       int F77_DUMMY_MAIN() { return 1; }
5313    #endif
5314  int  int
5315  main ()  main ()
5316  {  {
# Line 4549  static struct exception x; x.arg1 = x.ar Line 5320  static struct exception x; x.arg1 = x.ar
5320  }  }
5321  _ACEOF  _ACEOF
5322  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5323  if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5325    ac_status=$?    ac_status=$?
5326    echo "$as_me:4555: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327    (exit $ac_status); } &&    (exit $ac_status); } &&
5328           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5329    { (eval echo "$as_me:4558: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5331    ac_status=$?    ac_status=$?
5332    echo "$as_me:4561: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5334    emacs_cv_struct_exception=yes    emacs_cv_struct_exception=yes
5335  else  else
# Line 4568  emacs_cv_struct_exception=no Line 5339  emacs_cv_struct_exception=no
5339  fi  fi
5340  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5341  fi  fi
5342  echo "$as_me:4571: result: $emacs_cv_struct_exception" >&5  echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5343  echo "${ECHO_T}$emacs_cv_struct_exception" >&6  echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5344  HAVE_EXCEPTION=$emacs_cv_struct_exception  HAVE_EXCEPTION=$emacs_cv_struct_exception
5345  if test $emacs_cv_struct_exception != yes; then  if test $emacs_cv_struct_exception != yes; then
5346    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5347  #define NO_MATHERR 1  #define NO_MATHERR 1
5348  EOF  _ACEOF
5349    
5350  fi  fi
5351    
5352  echo "$as_me:4581: checking whether struct tm is in sys/time.h or time.h" >&5  echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5353  echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6  echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5354  if test "${ac_cv_struct_tm+set}" = set; then  if test "${ac_cv_struct_tm+set}" = set; then
5355    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5356  else  else
5357    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5358  #line 4587 "configure"  #line $LINENO "configure"
5359  #include "confdefs.h"  #include "confdefs.h"
5360  #include <sys/types.h>  #include <sys/types.h>
5361  #include <time.h>  #include <time.h>
5362    
5363    #ifdef F77_DUMMY_MAIN
5364    #  ifdef __cplusplus
5365         extern "C"
5366    #  endif
5367       int F77_DUMMY_MAIN() { return 1; }
5368    #endif
5369  int  int
5370  main ()  main ()
5371  {  {
# Line 4598  struct tm *tp; tp->tm_sec; Line 5375  struct tm *tp; tp->tm_sec;
5375  }  }
5376  _ACEOF  _ACEOF
5377  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5378  if { (eval echo "$as_me:4601: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5380    ac_status=$?    ac_status=$?
5381    echo "$as_me:4604: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382    (exit $ac_status); } &&    (exit $ac_status); } &&
5383           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5384    { (eval echo "$as_me:4607: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5386    ac_status=$?    ac_status=$?
5387    echo "$as_me:4610: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5389    ac_cv_struct_tm=time.h    ac_cv_struct_tm=time.h
5390  else  else
# Line 4617  ac_cv_struct_tm=sys/time.h Line 5394  ac_cv_struct_tm=sys/time.h
5394  fi  fi
5395  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5396  fi  fi
5397  echo "$as_me:4620: result: $ac_cv_struct_tm" >&5  echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5398  echo "${ECHO_T}$ac_cv_struct_tm" >&6  echo "${ECHO_T}$ac_cv_struct_tm" >&6
5399  if test $ac_cv_struct_tm = sys/time.h; then  if test $ac_cv_struct_tm = sys/time.h; then
5400    
5401  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5402  #define TM_IN_SYS_TIME 1  #define TM_IN_SYS_TIME 1
5403  EOF  _ACEOF
5404    
5405  fi  fi
5406    
5407  echo "$as_me:4630: checking for struct tm.tm_zone" >&5  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5408  echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6  echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5409  if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then  if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5410    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5411  else  else
5412    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5413  #line 4636 "configure"  #line $LINENO "configure"
5414  #include "confdefs.h"  #include "confdefs.h"
5415  #include <sys/types.h>  #include <sys/types.h>
5416  #include <$ac_cv_struct_tm>  #include <$ac_cv_struct_tm>
5417    
5418    
5419    #ifdef F77_DUMMY_MAIN
5420    #  ifdef __cplusplus
5421         extern "C"
5422    #  endif
5423       int F77_DUMMY_MAIN() { return 1; }
5424    #endif
5425  int  int
5426  main ()  main ()
5427  {  {
# Line 4649  return 0; Line 5433  return 0;
5433  }  }
5434  _ACEOF  _ACEOF
5435  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5436  if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5438    ac_status=$?    ac_status=$?
5439    echo "$as_me:4655: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440    (exit $ac_status); } &&    (exit $ac_status); } &&
5441           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5442    { (eval echo "$as_me:4658: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5444    ac_status=$?    ac_status=$?
5445    echo "$as_me:4661: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5447    ac_cv_member_struct_tm_tm_zone=yes    ac_cv_member_struct_tm_tm_zone=yes
5448  else  else
# Line 4668  ac_cv_member_struct_tm_tm_zone=no Line 5452  ac_cv_member_struct_tm_tm_zone=no
5452  fi  fi
5453  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5454  fi  fi
5455  echo "$as_me:4671: result: $ac_cv_member_struct_tm_tm_zone" >&5  echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5456  echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6  echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5457  if test $ac_cv_member_struct_tm_tm_zone = yes; then  if test $ac_cv_member_struct_tm_tm_zone = yes; then
5458    
5459  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
5460  #define HAVE_STRUCT_TM_TM_ZONE 1  #define HAVE_STRUCT_TM_TM_ZONE 1
5461  EOF  _ACEOF
5462    
5463    
5464  fi  fi
5465    
5466  if test "$ac_cv_member_struct_tm_tm_zone" = yes; then  if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5467    
5468  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5469  #define HAVE_TM_ZONE 1  #define HAVE_TM_ZONE 1
5470  EOF  _ACEOF
5471    
5472  else  else
5473    echo "$as_me:4688: checking for tzname" >&5    echo "$as_me:$LINENO: checking for tzname" >&5
5474  echo $ECHO_N "checking for tzname... $ECHO_C" >&6  echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5475  if test "${ac_cv_var_tzname+set}" = set; then  if test "${ac_cv_var_tzname+set}" = set; then
5476    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5477  else  else
5478    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5479  #line 4694 "configure"  #line $LINENO "configure"
5480  #include "confdefs.h"  #include "confdefs.h"
5481  #include <time.h>  #include <time.h>
5482  #ifndef tzname /* For SGI.  */  #ifndef tzname /* For SGI.  */
5483  extern char *tzname[]; /* RS6000 and others reject char **tzname.  */  extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5484  #endif  #endif
5485    
5486    #ifdef F77_DUMMY_MAIN
5487    #  ifdef __cplusplus
5488         extern "C"
5489    #  endif
5490       int F77_DUMMY_MAIN() { return 1; }
5491    #endif
5492  int  int
5493  main ()  main ()
5494  {  {
# Line 4707  atoi(*tzname); Line 5498  atoi(*tzname);
5498  }  }
5499  _ACEOF  _ACEOF
5500  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
5501  if { (eval echo "$as_me:4710: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
5503    ac_status=$?    ac_status=$?
5504    echo "$as_me:4713: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505    (exit $ac_status); } &&    (exit $ac_status); } &&
5506           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
5507    { (eval echo "$as_me:4716: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5509    ac_status=$?    ac_status=$?
5510    echo "$as_me:4719: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5512    ac_cv_var_tzname=yes    ac_cv_var_tzname=yes
5513  else  else
# Line 4726  ac_cv_var_tzname=no Line 5517  ac_cv_var_tzname=no
5517  fi  fi
5518  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5519  fi  fi
5520  echo "$as_me:4729: result: $ac_cv_var_tzname" >&5  echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5521  echo "${ECHO_T}$ac_cv_var_tzname" >&6  echo "${ECHO_T}$ac_cv_var_tzname" >&6
5522    if test $ac_cv_var_tzname = yes; then    if test $ac_cv_var_tzname = yes; then
5523    
5524  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5525  #define HAVE_TZNAME 1  #define HAVE_TZNAME 1
5526  EOF  _ACEOF
5527    
5528    fi    fi
5529  fi  fi
5530    
5531  echo "$as_me:4740: checking for tm_gmtoff in struct tm" >&5  echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
5532  echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6  echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
5533  if test "${emacs_cv_tm_gmtoff+set}" = set; then  if test "${emacs_cv_tm_gmtoff+set}" = set; then
5534    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5535  else  else
5536    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5537  #line 4746 "configure"  #line $LINENO "configure"
5538  #include "confdefs.h"  #include "confdefs.h"
5539  #include <time.h>  #include <time.h>
5540    #ifdef F77_DUMMY_MAIN
5541    #  ifdef __cplusplus
5542         extern "C"
5543    #  endif
5544       int F77_DUMMY_MAIN() { return 1; }
5545    #endif
5546  int  int
5547  main ()  main ()
5548  {  {
# Line 4755  struct tm t; t.tm_gmtoff = 0 Line 5552  struct tm t; t.tm_gmtoff = 0
5552  }  }
5553  _ACEOF  _ACEOF
5554  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
5555  if { (eval echo "$as_me:4758: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
5557    ac_status=$?    ac_status=$?
5558    echo "$as_me:4761: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559    (exit $ac_status); } &&    (exit $ac_status); } &&
5560           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
5561    { (eval echo "$as_me:4764: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5563    ac_status=$?    ac_status=$?
5564    echo "$as_me:4767: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5566    emacs_cv_tm_gmtoff=yes    emacs_cv_tm_gmtoff=yes
5567  else  else
# Line 4774  emacs_cv_tm_gmtoff=no Line 5571  emacs_cv_tm_gmtoff=no
5571  fi  fi
5572  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5573  fi  fi
5574  echo "$as_me:4777: result: $emacs_cv_tm_gmtoff" >&5  echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
5575  echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6  echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
5576  if test $emacs_cv_tm_gmtoff = yes; then  if test $emacs_cv_tm_gmtoff = yes; then
5577    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5578  #define HAVE_TM_GMTOFF 1  #define HAVE_TM_GMTOFF 1
5579  EOF  _ACEOF
5580    
5581  fi  fi
5582    
5583  echo "$as_me:4786: checking for $CC option to accept ANSI C" >&5  
5584    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5585  echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6  echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5586  if test "${ac_cv_prog_cc_stdc+set}" = set; then  if test "${ac_cv_prog_cc_stdc+set}" = set; then
5587    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4791  else Line 5589  else
5589    ac_cv_prog_cc_stdc=no    ac_cv_prog_cc_stdc=no
5590  ac_save_CC=$CC  ac_save_CC=$CC
5591  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
5592  #line 4794 "configure"  #line $LINENO "configure"
5593  #include "confdefs.h"  #include "confdefs.h"
5594  #include <stdarg.h>  #include <stdarg.h>
5595  #include <stdio.h>  #include <stdio.h>
# Line 4821  struct s2 {int (*f) (double a);}; Line 5619  struct s2 {int (*f) (double a);};
5619  int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);  int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5620  int argc;  int argc;
5621  char **argv;  char **argv;
5622    #ifdef F77_DUMMY_MAIN
5623    #  ifdef __cplusplus
5624         extern "C"
5625    #  endif
5626       int F77_DUMMY_MAIN() { return 1; }
5627    #endif
5628  int  int
5629  main ()  main ()
5630  {  {
# Line 4840  for ac_arg in "" -qlanglvl=ansi -std1 -A Line 5644  for ac_arg in "" -qlanglvl=ansi -std1 -A
5644  do  do
5645    CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
5646    rm -f conftest.$ac_objext    rm -f conftest.$ac_objext
5647  if { (eval echo "$as_me:4843: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5649    ac_status=$?    ac_status=$?
5650    echo "$as_me:4846: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651    (exit $ac_status); } &&    (exit $ac_status); } &&
5652           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5653    { (eval echo "$as_me:4849: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5655    ac_status=$?    ac_status=$?
5656    echo "$as_me:4852: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5658    ac_cv_prog_cc_stdc=$ac_arg    ac_cv_prog_cc_stdc=$ac_arg
5659  break  break
# Line 4866  fi Line 5670  fi
5670    
5671  case "x$ac_cv_prog_cc_stdc" in  case "x$ac_cv_prog_cc_stdc" in
5672    x|xno)    x|xno)
5673      echo "$as_me:4869: result: none needed" >&5      echo "$as_me:$LINENO: result: none needed" >&5
5674  echo "${ECHO_T}none needed" >&6 ;;  echo "${ECHO_T}none needed" >&6 ;;
5675    *)    *)
5676      echo "$as_me:4872: result: $ac_cv_prog_cc_stdc" >&5      echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5677  echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6  echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5678      CC="$CC $ac_cv_prog_cc_stdc" ;;      CC="$CC $ac_cv_prog_cc_stdc" ;;
5679  esac  esac
5680    
5681  echo "$as_me:4877: checking for function prototypes" >&5  echo "$as_me:$LINENO: checking for function prototypes" >&5
5682  echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6  echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5683  if test "$ac_cv_prog_cc_stdc" != no; then  if test "$ac_cv_prog_cc_stdc" != no; then
5684    echo "$as_me:4880: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
5685  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
5686    
5687  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5688  #define PROTOTYPES 1  #define PROTOTYPES 1
5689  EOF  _ACEOF
5690    
5691    
5692    cat >>confdefs.h <<\_ACEOF
5693    #define __PROTOTYPES 1
5694    _ACEOF
5695    
5696  else  else
5697    echo "$as_me:4888: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
5698  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
5699  fi  fi
5700    
5701  echo "$as_me:4892: checking for working volatile" >&5  echo "$as_me:$LINENO: checking for working volatile" >&5
5702  echo $ECHO_N "checking for working volatile... $ECHO_C" >&6  echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5703  if test "${ac_cv_c_volatile+set}" = set; then  if test "${ac_cv_c_volatile+set}" = set; then
5704    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5705  else  else
5706    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5707  #line 4898 "configure"  #line $LINENO "configure"
5708  #include "confdefs.h"  #include "confdefs.h"
5709    
5710    #ifdef F77_DUMMY_MAIN
5711    #  ifdef __cplusplus
5712         extern "C"
5713    #  endif
5714       int F77_DUMMY_MAIN() { return 1; }
5715    #endif
5716  int  int
5717  main ()  main ()
5718  {  {
# Line 4909  int * volatile y; Line 5724  int * volatile y;
5724  }  }
5725  _ACEOF  _ACEOF
5726  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5727  if { (eval echo "$as_me:4912: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5729    ac_status=$?    ac_status=$?
5730    echo "$as_me:4915: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731    (exit $ac_status); } &&    (exit $ac_status); } &&
5732           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5733    { (eval echo "$as_me:4918: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5735    ac_status=$?    ac_status=$?
5736    echo "$as_me:4921: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5738    ac_cv_c_volatile=yes    ac_cv_c_volatile=yes
5739  else  else
# Line 4928  ac_cv_c_volatile=no Line 5743  ac_cv_c_volatile=no
5743  fi  fi
5744  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5745  fi  fi
5746  echo "$as_me:4931: result: $ac_cv_c_volatile" >&5  echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5747  echo "${ECHO_T}$ac_cv_c_volatile" >&6  echo "${ECHO_T}$ac_cv_c_volatile" >&6
5748  if test $ac_cv_c_volatile = no; then  if test $ac_cv_c_volatile = no; then
5749    
5750  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5751  #define volatile  #define volatile
5752  EOF  _ACEOF
5753    
5754  fi  fi
5755    
5756  echo "$as_me:4941: checking for an ANSI C-conforming const" >&5  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5757  echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6  echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5758  if test "${ac_cv_c_const+set}" = set; then  if test "${ac_cv_c_const+set}" = set; then
5759    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5760  else  else
5761    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5762  #line 4947 "configure"  #line $LINENO "configure"
5763  #include "confdefs.h"  #include "confdefs.h"
5764    
5765    #ifdef F77_DUMMY_MAIN
5766    #  ifdef __cplusplus
5767         extern "C"
5768    #  endif
5769       int F77_DUMMY_MAIN() { return 1; }
5770    #endif
5771  int  int
5772  main ()  main ()
5773  {  {
# Line 5002  main () Line 5823  main ()
5823  }  }
5824  _ACEOF  _ACEOF
5825  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5826  if { (eval echo "$as_me:5005: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5828    ac_status=$?    ac_status=$?
5829    echo "$as_me:5008: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830    (exit $ac_status); } &&    (exit $ac_status); } &&
5831           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5832    { (eval echo "$as_me:5011: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5834    ac_status=$?    ac_status=$?
5835    echo "$as_me:5014: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5837    ac_cv_c_const=yes    ac_cv_c_const=yes
5838  else  else
# Line 5021  ac_cv_c_const=no Line 5842  ac_cv_c_const=no
5842  fi  fi
5843  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5844  fi  fi
5845  echo "$as_me:5024: result: $ac_cv_c_const" >&5  echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5846  echo "${ECHO_T}$ac_cv_c_const" >&6  echo "${ECHO_T}$ac_cv_c_const" >&6
5847  if test $ac_cv_c_const = no; then  if test $ac_cv_c_const = no; then
5848    
5849  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5850  #define const  #define const
5851  EOF  _ACEOF
5852    
5853  fi  fi
5854    
5855  echo "$as_me:5034: checking for void * support" >&5  echo "$as_me:$LINENO: checking for void * support" >&5
5856  echo $ECHO_N "checking for void * support... $ECHO_C" >&6  echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5857  if test "${emacs_cv_void_star+set}" = set; then  if test "${emacs_cv_void_star+set}" = set; then
5858    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5859  else  else
5860    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5861  #line 5040 "configure"  #line $LINENO "configure"
5862  #include "confdefs.h"  #include "confdefs.h"
5863    
5864    #ifdef F77_DUMMY_MAIN
5865    #  ifdef __cplusplus
5866         extern "C"
5867    #  endif
5868       int F77_DUMMY_MAIN() { return 1; }
5869    #endif
5870  int  int
5871  main ()  main ()
5872  {  {
# Line 5049  void * foo; Line 5876  void * foo;
5876  }  }
5877  _ACEOF  _ACEOF
5878  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
5879  if { (eval echo "$as_me:5052: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
5881    ac_status=$?    ac_status=$?
5882    echo "$as_me:5055: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883    (exit $ac_status); } &&    (exit $ac_status); } &&
5884           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
5885    { (eval echo "$as_me:5058: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5887    ac_status=$?    ac_status=$?
5888    echo "$as_me:5061: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5890    emacs_cv_void_star=yes    emacs_cv_void_star=yes
5891  else  else
# Line 5068  emacs_cv_void_star=no Line 5895  emacs_cv_void_star=no
5895  fi  fi
5896  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
5897  fi  fi
5898  echo "$as_me:5071: result: $emacs_cv_void_star" >&5  echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5899  echo "${ECHO_T}$emacs_cv_void_star" >&6  echo "${ECHO_T}$emacs_cv_void_star" >&6
5900  if test $emacs_cv_void_star = yes; then  if test $emacs_cv_void_star = yes; then
5901    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5902  #define POINTER_TYPE void  #define POINTER_TYPE void
5903  EOF  _ACEOF
5904    
5905  else  else
5906    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
5907  #define POINTER_TYPE char  #define POINTER_TYPE char
5908  EOF  _ACEOF
5909    
5910  fi  fi
5911    
5912  echo "$as_me:5085: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5913  echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6  echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5914  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5915  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5916    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5917  else  else
5918    cat >conftest.make <<\EOF    cat >conftest.make <<\_ACEOF
5919  all:  all:
5920          @echo 'ac_maketemp="${MAKE}"'          @echo 'ac_maketemp="${MAKE}"'
5921  EOF  _ACEOF
5922  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5923  eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`  eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5924  if test -n "$ac_maketemp"; then  if test -n "$ac_maketemp"; then
# Line 5102  fi Line 5929  fi
5929  rm -f conftest.make  rm -f conftest.make
5930  fi  fi
5931  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5932    echo "$as_me:5105: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
5933  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
5934    SET_MAKE=    SET_MAKE=
5935  else  else
5936    echo "$as_me:5109: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
5937  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
5938    SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
5939  fi  fi
5940    
5941  echo "$as_me:5114: checking for long file names" >&5  
5942    echo "$as_me:$LINENO: checking for long file names" >&5
5943  echo $ECHO_N "checking for long file names... $ECHO_C" >&6  echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5944  if test "${ac_cv_sys_long_file_names+set}" = set; then  if test "${ac_cv_sys_long_file_names+set}" = set; then
5945    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5150  for ac_dir in  . $ac_tmpdirs `eval echo Line 5978  for ac_dir in  . $ac_tmpdirs `eval echo
5978    rm -rf $ac_xdir 2>/dev/null    rm -rf $ac_xdir 2>/dev/null
5979  done  done
5980  fi  fi
5981  echo "$as_me:5153: result: $ac_cv_sys_long_file_names" >&5  echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5982  echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6  echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5983  if test $ac_cv_sys_long_file_names = yes; then  if test $ac_cv_sys_long_file_names = yes; then
5984    
5985  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
5986  #define HAVE_LONG_FILE_NAMES 1  #define HAVE_LONG_FILE_NAMES 1
5987  EOF  _ACEOF
5988    
5989  fi  fi
5990    
5991    
5992    if test "$gamedir" = no; then :
5993    else
5994      echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
5995    echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
5996      rm -f conf$$chown.file
5997      touch conf$$chown.file
5998          if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
5999        echo "$as_me:$LINENO: result: yes" >&5
6000    echo "${ECHO_T}yes" >&6
6001        if test "$gamedir" = "yes"; then
6002          gamedir="${localstatedir}/games/emacs"
6003        fi
6004        tgamedir=`eval "echo $gamedir"`
6005        cat >>confdefs.h <<_ACEOF
6006    #define HAVE_SHARED_GAME_DIR "$tgamedir"
6007    _ACEOF
6008    
6009      else
6010        echo "$as_me:$LINENO: result: no" >&5
6011    echo "${ECHO_T}no" >&6
6012        gamedir=no
6013      fi
6014    fi
6015  #### Choose a window system.  #### Choose a window system.
6016    
6017  echo "$as_me:5165: checking for X" >&5  echo "$as_me:$LINENO: checking for X" >&5
6018  echo $ECHO_N "checking for X... $ECHO_C" >&6  echo $ECHO_N "checking for X... $ECHO_C" >&6
6019    
6020    
6021  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
6022  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
6023    withval="$with_x"    withval="$with_x"
# Line 5188  rm -fr conftest.dir Line 6041  rm -fr conftest.dir
6041  if mkdir conftest.dir; then  if mkdir conftest.dir; then
6042    cd conftest.dir    cd conftest.dir
6043    # Make sure to not put "make" in the Imakefile rules, since we grep it out.    # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6044    cat >Imakefile <<'EOF'    cat >Imakefile <<'_ACEOF'
6045  acfindx:  acfindx:
6046          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'          @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6047  EOF  _ACEOF
6048    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6049      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6050      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
# Line 5259  if test "$ac_x_includes" = no; then Line 6112  if test "$ac_x_includes" = no; then
6112    # Guess where to find include files, by looking for Intrinsic.h.    # Guess where to find include files, by looking for Intrinsic.h.
6113    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
6114    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6115  #line 5262 "configure"  #line $LINENO "configure"
6116  #include "confdefs.h"  #include "confdefs.h"
6117  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
6118  _ACEOF  _ACEOF
6119  if { (eval echo "$as_me:5266: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121    ac_status=$?    ac_status=$?
6122    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
6123    rm -f conftest.er1    rm -f conftest.er1
6124    cat conftest.err >&5    cat conftest.err >&5
6125    echo "$as_me:5272: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
6127    if test -s conftest.err; then    if test -s conftest.err; then
6128      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5302  if test "$ac_x_libraries" = no; then Line 6155  if test "$ac_x_libraries" = no; then
6155    ac_save_LIBS=$LIBS    ac_save_LIBS=$LIBS
6156    LIBS="-lXt $LIBS"    LIBS="-lXt $LIBS"
6157    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6158  #line 5305 "configure"  #line $LINENO "configure"
6159  #include "confdefs.h"  #include "confdefs.h"
6160  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
6161    #ifdef F77_DUMMY_MAIN
6162    #  ifdef __cplusplus
6163         extern "C"
6164    #  endif
6165       int F77_DUMMY_MAIN() { return 1; }
6166    #endif
6167  int  int
6168  main ()  main ()
6169  {  {
# Line 5314  XtMalloc (0) Line 6173  XtMalloc (0)
6173  }  }
6174  _ACEOF  _ACEOF
6175  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6176  if { (eval echo "$as_me:5317: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6178    ac_status=$?    ac_status=$?
6179    echo "$as_me:5320: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180    (exit $ac_status); } &&    (exit $ac_status); } &&
6181           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6182    { (eval echo "$as_me:5323: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6184    ac_status=$?    ac_status=$?
6185    echo "$as_me:5326: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6187    LIBS=$ac_save_LIBS    LIBS=$ac_save_LIBS
6188  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 5361  fi Line 6220  fi
6220  fi # $with_x != no  fi # $with_x != no
6221    
6222  if test "$have_x" != yes; then  if test "$have_x" != yes; then
6223    echo "$as_me:5364: result: $have_x" >&5    echo "$as_me:$LINENO: result: $have_x" >&5
6224  echo "${ECHO_T}$have_x" >&6  echo "${ECHO_T}$have_x" >&6
6225    no_x=yes    no_x=yes
6226  else  else
# Line 5371  else Line 6230  else
6230    # Update the cache value to reflect the command line values.    # Update the cache value to reflect the command line values.
6231    ac_cv_have_x="have_x=yes \    ac_cv_have_x="have_x=yes \
6232                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"                  ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6233    echo "$as_me:5374: result: libraries $x_libraries, headers $x_includes" >&5    echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6234  echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6  echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6235  fi  fi
6236    
# Line 5469  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o Line 6328  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o
6328  # Assume not, until told otherwise.  # Assume not, until told otherwise.
6329  GNU_MALLOC=yes  GNU_MALLOC=yes
6330  doug_lea_malloc=yes  doug_lea_malloc=yes
6331  echo "$as_me:5472: checking for malloc_get_state" >&5  echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6332  echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6  echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6333  if test "${ac_cv_func_malloc_get_state+set}" = set; then  if test "${ac_cv_func_malloc_get_state+set}" = set; then
6334    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6335  else  else
6336    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6337  #line 5478 "configure"  #line $LINENO "configure"
6338  #include "confdefs.h"  #include "confdefs.h"
6339  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6340      which can conflict with char malloc_get_state (); below.  */      which can conflict with char malloc_get_state (); below.  */
# Line 5489  extern "C" Line 6348  extern "C"
6348  char malloc_get_state ();  char malloc_get_state ();
6349  char (*f) ();  char (*f) ();
6350    
6351    #ifdef F77_DUMMY_MAIN
6352    #  ifdef __cplusplus
6353         extern "C"
6354    #  endif
6355       int F77_DUMMY_MAIN() { return 1; }
6356    #endif
6357  int  int
6358  main ()  main ()
6359  {  {
# Line 5506  f = malloc_get_state; Line 6371  f = malloc_get_state;
6371  }  }
6372  _ACEOF  _ACEOF
6373  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6374  if { (eval echo "$as_me:5509: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6375    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6376    ac_status=$?    ac_status=$?
6377    echo "$as_me:5512: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378    (exit $ac_status); } &&    (exit $ac_status); } &&
6379           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6380    { (eval echo "$as_me:5515: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6382    ac_status=$?    ac_status=$?
6383    echo "$as_me:5518: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6385    ac_cv_func_malloc_get_state=yes    ac_cv_func_malloc_get_state=yes
6386  else  else
# Line 5525  ac_cv_func_malloc_get_state=no Line 6390  ac_cv_func_malloc_get_state=no
6390  fi  fi
6391  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392  fi  fi
6393  echo "$as_me:5528: result: $ac_cv_func_malloc_get_state" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6394  echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6  echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6395  if test $ac_cv_func_malloc_get_state = yes; then  if test $ac_cv_func_malloc_get_state = yes; then
6396    :    :
# Line 5533  else Line 6398  else
6398    doug_lea_malloc=no    doug_lea_malloc=no
6399  fi  fi
6400    
6401  echo "$as_me:5536: checking for malloc_set_state" >&5  echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6402  echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6  echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6403  if test "${ac_cv_func_malloc_set_state+set}" = set; then  if test "${ac_cv_func_malloc_set_state+set}" = set; then
6404    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6405  else  else
6406    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6407  #line 5542 "configure"  #line $LINENO "configure"
6408  #include "confdefs.h"  #include "confdefs.h"
6409  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6410      which can conflict with char malloc_set_state (); below.  */      which can conflict with char malloc_set_state (); below.  */
# Line 5553  extern "C" Line 6418  extern "C"
6418  char malloc_set_state ();  char malloc_set_state ();
6419  char (*f) ();  char (*f) ();
6420    
6421    #ifdef F77_DUMMY_MAIN
6422    #  ifdef __cplusplus
6423         extern "C"
6424    #  endif
6425       int F77_DUMMY_MAIN() { return 1; }
6426    #endif
6427  int  int
6428  main ()  main ()
6429  {  {
# Line 5570  f = malloc_set_state; Line 6441  f = malloc_set_state;
6441  }  }
6442  _ACEOF  _ACEOF
6443  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6444  if { (eval echo "$as_me:5573: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6446    ac_status=$?    ac_status=$?
6447    echo "$as_me:5576: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448    (exit $ac_status); } &&    (exit $ac_status); } &&
6449           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6450    { (eval echo "$as_me:5579: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6452    ac_status=$?    ac_status=$?
6453    echo "$as_me:5582: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6455    ac_cv_func_malloc_set_state=yes    ac_cv_func_malloc_set_state=yes
6456  else  else
# Line 5589  ac_cv_func_malloc_set_state=no Line 6460  ac_cv_func_malloc_set_state=no
6460  fi  fi
6461  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6462  fi  fi
6463  echo "$as_me:5592: result: $ac_cv_func_malloc_set_state" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6464  echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6  echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6465  if test $ac_cv_func_malloc_set_state = yes; then  if test $ac_cv_func_malloc_set_state = yes; then
6466    :    :
# Line 5597  else Line 6468  else
6468    doug_lea_malloc=no    doug_lea_malloc=no
6469  fi  fi
6470    
6471  echo "$as_me:5600: checking whether __after_morecore_hook exists" >&5  echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6472  echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6  echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6473  if test "${emacs_cv_var___after_morecore_hook+set}" = set; then  if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6474    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6475  else  else
6476    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6477  #line 5606 "configure"  #line $LINENO "configure"
6478  #include "confdefs.h"  #include "confdefs.h"
6479  extern void (* __after_morecore_hook)();  extern void (* __after_morecore_hook)();
6480    #ifdef F77_DUMMY_MAIN
6481    #  ifdef __cplusplus
6482         extern "C"
6483    #  endif
6484       int F77_DUMMY_MAIN() { return 1; }
6485    #endif
6486  int  int
6487  main ()  main ()
6488  {  {
# Line 5615  __after_morecore_hook = 0 Line 6492  __after_morecore_hook = 0
6492  }  }
6493  _ACEOF  _ACEOF
6494  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6495  if { (eval echo "$as_me:5618: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6497    ac_status=$?    ac_status=$?
6498    echo "$as_me:5621: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499    (exit $ac_status); } &&    (exit $ac_status); } &&
6500           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6501    { (eval echo "$as_me:5624: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6503    ac_status=$?    ac_status=$?
6504    echo "$as_me:5627: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6506    emacs_cv_var___after_morecore_hook=yes    emacs_cv_var___after_morecore_hook=yes
6507  else  else
# Line 5634  emacs_cv_var___after_morecore_hook=no Line 6511  emacs_cv_var___after_morecore_hook=no
6511  fi  fi
6512  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6513  fi  fi
6514  echo "$as_me:5637: result: $emacs_cv_var___after_morecore_hook" >&5  echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6515  echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6  echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6516  if test $emacs_cv_var___after_morecore_hook = no; then  if test $emacs_cv_var___after_morecore_hook = no; then
6517    doug_lea_malloc=no    doug_lea_malloc=no
# Line 5649  if test "$doug_lea_malloc" = "yes" ; the Line 6526  if test "$doug_lea_malloc" = "yes" ; the
6526      GNU_MALLOC_reason="      GNU_MALLOC_reason="
6527        (Using Doug Lea's new malloc from the GNU C Library.)"        (Using Doug Lea's new malloc from the GNU C Library.)"
6528    fi    fi
6529    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
6530  #define DOUG_LEA_MALLOC 1  #define DOUG_LEA_MALLOC 1
6531  EOF  _ACEOF
6532    
6533  fi  fi
6534    
# Line 5659  if test x"${REL_ALLOC}" = x; then Line 6536  if test x"${REL_ALLOC}" = x; then
6536    REL_ALLOC=${GNU_MALLOC}    REL_ALLOC=${GNU_MALLOC}
6537  fi  fi
6538    
 # On IRIX 5.3, sys/types and inttypes.h are conflicting.  
6539    
6540  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  
6541                    inttypes.h stdint.h unistd.h  
6542    for ac_header in stdlib.h unistd.h
6543  do  do
6544  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545  echo "$as_me:5668: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546      echo "$as_me:$LINENO: checking for $ac_header" >&5
6547  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6550    fi
6551    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553  else  else
6554    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
6555  #line 5674 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557    cat >conftest.$ac_ext <<_ACEOF
6558    #line $LINENO "configure"
6559  #include "confdefs.h"  #include "confdefs.h"
6560  $ac_includes_default  $ac_includes_default
6561  #include <$ac_header>  #include <$ac_header>
6562  _ACEOF  _ACEOF
6563  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
6564  if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
6566    ac_status=$?    ac_status=$?
6567    echo "$as_me:5683: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568    (exit $ac_status); } &&    (exit $ac_status); } &&
6569           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
6570    { (eval echo "$as_me:5686: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6572    ac_status=$?    ac_status=$?
6573    echo "$as_me:5689: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6575    eval "$as_ac_Header=yes"    ac_header_compiler=yes
6576  else  else
6577    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6578  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6579  eval "$as_ac_Header=no"  ac_header_compiler=no
6580  fi  fi
6581  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
6582  fi  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583  echo "$as_me:5699: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "${ECHO_T}$ac_header_compiler" >&6
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<EOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 EOF  
   
 fi  
 done  
6584    
6585  for ac_header in stdlib.h unistd.h  # Is the header present?
6586  do  echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588  echo "$as_me:5712: checking for $ac_header" >&5  cat >conftest.$ac_ext <<_ACEOF
6589  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  #line $LINENO "configure"
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 #line 5718 "configure"  
6590  #include "confdefs.h"  #include "confdefs.h"
6591  #include <$ac_header>  #include <$ac_header>
6592  _ACEOF  _ACEOF
6593  if { (eval echo "$as_me:5722: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595    ac_status=$?    ac_status=$?
6596    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
6597    rm -f conftest.er1    rm -f conftest.er1
6598    cat conftest.err >&5    cat conftest.err >&5
6599    echo "$as_me:5728: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
6601    if test -s conftest.err; then    if test -s conftest.err; then
6602      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5736  else Line 6607  else
6607    ac_cpp_err=yes    ac_cpp_err=yes
6608  fi  fi
6609  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
6610    eval "$as_ac_Header=yes"    ac_header_preproc=yes
6611  else  else
6612    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
6613    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6614    eval "$as_ac_Header=no"    ac_header_preproc=no
6615  fi  fi
6616  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
6617    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618    echo "${ECHO_T}$ac_header_preproc" >&6
6619    
6620    # So?  What about this header?
6621    case $ac_header_compiler:$ac_header_preproc in
6622      yes:no )
6623        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6627      no:yes )
6628        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6629    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6630        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6631    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6632        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6634    esac
6635    echo "$as_me:$LINENO: checking for $ac_header" >&5
6636    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6637    if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638      echo $ECHO_N "(cached) $ECHO_C" >&6
6639    else
6640      eval "$as_ac_Header=$ac_header_preproc"
6641  fi  fi
6642  echo "$as_me:5747: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6643  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6644    
6645    fi
6646  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
6647    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
6648  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649  EOF  _ACEOF
6650    
6651  fi  fi
6652    
6653  done  done
6654    
6655    
6656  for ac_func in getpagesize  for ac_func in getpagesize
6657  do  do
6658  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6659  echo "$as_me:5760: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
6660  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6661  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
6662    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
6663  else  else
6664    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6665  #line 5766 "configure"  #line $LINENO "configure"
6666  #include "confdefs.h"  #include "confdefs.h"
6667  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6668      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 5777  extern "C" Line 6676  extern "C"
6676  char $ac_func ();  char $ac_func ();
6677  char (*f) ();  char (*f) ();
6678    
6679    #ifdef F77_DUMMY_MAIN
6680    #  ifdef __cplusplus
6681         extern "C"
6682    #  endif
6683       int F77_DUMMY_MAIN() { return 1; }
6684    #endif
6685  int  int
6686  main ()  main ()
6687  {  {
# Line 5794  f = $ac_func; Line 6699  f = $ac_func;
6699  }  }
6700  _ACEOF  _ACEOF
6701  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6702  if { (eval echo "$as_me:5797: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6704    ac_status=$?    ac_status=$?
6705    echo "$as_me:5800: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706    (exit $ac_status); } &&    (exit $ac_status); } &&
6707           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6708    { (eval echo "$as_me:5803: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6710    ac_status=$?    ac_status=$?
6711    echo "$as_me:5806: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6713    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
6714  else  else
# Line 5813  eval "$as_ac_var=no" Line 6718  eval "$as_ac_var=no"
6718  fi  fi
6719  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6720  fi  fi
6721  echo "$as_me:5816: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6722  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6723  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
6724    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
6725  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6726  EOF  _ACEOF
6727    
6728  fi  fi
6729  done  done
6730    
6731  echo "$as_me:5826: checking for working mmap" >&5  echo "$as_me:$LINENO: checking for working mmap" >&5
6732  echo $ECHO_N "checking for working mmap... $ECHO_C" >&6  echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6733  if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then  if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6734    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5832  else Line 6737  else
6737    ac_cv_func_mmap_fixed_mapped=no    ac_cv_func_mmap_fixed_mapped=no
6738  else  else
6739    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
6740  #line 5835 "configure"  #line $LINENO "configure"
6741  #include "confdefs.h"  #include "confdefs.h"
6742  $ac_includes_default  $ac_includes_default
6743    /* malloc might have been renamed as rpl_malloc. */
6744    #undef malloc
6745    
6746  /* Thanks to Mike Haertel and Jim Avera for this test.  /* Thanks to Mike Haertel and Jim Avera for this test.
6747     Here is a matrix of mmap possibilities:     Here is a matrix of mmap possibilities:
6748          mmap private not fixed          mmap private not fixed
# Line 5850  $ac_includes_default Line 6758  $ac_includes_default
6758     VM page cache was not coherent with the file system buffer cache     VM page cache was not coherent with the file system buffer cache
6759     like early versions of FreeBSD and possibly contemporary NetBSD.)     like early versions of FreeBSD and possibly contemporary NetBSD.)
6760     For shared mappings, we should conversely verify that changes get     For shared mappings, we should conversely verify that changes get
6761     propogated back to all the places they're supposed to be.     propagated back to all the places they're supposed to be.
6762    
6763     Grep wants private fixed already mapped.     Grep wants private fixed already mapped.
6764     The main things grep needs to know about mmap are:     The main things grep needs to know about mmap are:
# Line 5959  main () Line 6867  main ()
6867  }  }
6868  _ACEOF  _ACEOF
6869  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
6870  if { (eval echo "$as_me:5962: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6872    ac_status=$?    ac_status=$?
6873    echo "$as_me:5965: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6875    { (eval echo "$as_me:5967: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6877    ac_status=$?    ac_status=$?
6878    echo "$as_me:5970: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6880    ac_cv_func_mmap_fixed_mapped=yes    ac_cv_func_mmap_fixed_mapped=yes
6881  else  else
6882    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
6883  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
6884  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
6885    ( exit $ac_status )
6886  ac_cv_func_mmap_fixed_mapped=no  ac_cv_func_mmap_fixed_mapped=no
6887  fi  fi
6888  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6889  fi  fi
6890  fi  fi
6891  echo "$as_me:5982: result: $ac_cv_func_mmap_fixed_mapped" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6892  echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6  echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6893  if test $ac_cv_func_mmap_fixed_mapped = yes; then  if test $ac_cv_func_mmap_fixed_mapped = yes; then
6894    
6895  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
6896  #define HAVE_MMAP 1  #define HAVE_MMAP 1
6897  EOF  _ACEOF
6898    
6899  fi  fi
6900  rm -f conftest.mmap  rm -f conftest.mmap
# Line 5996  fi Line 6905  fi
6905    
6906  LIBS="$libsrc_libs $LIBS"  LIBS="$libsrc_libs $LIBS"
6907    
6908  echo "$as_me:5999: checking for dnet_ntoa in -ldnet" >&5  
6909    echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6910  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6  echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6911  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then  if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6912    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6004  else Line 6914  else
6914    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
6915  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
6916  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
6917  #line 6007 "configure"  #line $LINENO "configure"
6918  #include "confdefs.h"  #include "confdefs.h"
6919    
6920  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6014  extern "C" Line 6924  extern "C"
6924  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
6925     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
6926  char dnet_ntoa ();  char dnet_ntoa ();
6927    #ifdef F77_DUMMY_MAIN
6928    #  ifdef __cplusplus
6929         extern "C"
6930    #  endif
6931       int F77_DUMMY_MAIN() { return 1; }
6932    #endif
6933  int  int
6934  main ()  main ()
6935  {  {
# Line 6023  dnet_ntoa (); Line 6939  dnet_ntoa ();
6939  }  }
6940  _ACEOF  _ACEOF
6941  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
6942  if { (eval echo "$as_me:6026: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
6944    ac_status=$?    ac_status=$?
6945    echo "$as_me:6029: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946    (exit $ac_status); } &&    (exit $ac_status); } &&
6947           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
6948    { (eval echo "$as_me:6032: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
6950    ac_status=$?    ac_status=$?
6951    echo "$as_me:6035: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
6953    ac_cv_lib_dnet_dnet_ntoa=yes    ac_cv_lib_dnet_dnet_ntoa=yes
6954  else  else
# Line 6043  fi Line 6959  fi
6959  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6960  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
6961  fi  fi
6962  echo "$as_me:6046: result: $ac_cv_lib_dnet_dnet_ntoa" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6963  echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6  echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6964  if test $ac_cv_lib_dnet_dnet_ntoa = yes; then  if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6965    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
6966  #define HAVE_LIBDNET 1  #define HAVE_LIBDNET 1
6967  EOF  _ACEOF
6968    
6969    LIBS="-ldnet $LIBS"    LIBS="-ldnet $LIBS"
6970    
6971  fi  fi
6972    
6973  echo "$as_me:6057: checking for main in -lXbsd" >&5  
6974    echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6975  echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6  echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6976  if test "${ac_cv_lib_Xbsd_main+set}" = set; then  if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6977    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6062  else Line 6979  else
6979    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
6980  LIBS="-lXbsd  $LIBS"  LIBS="-lXbsd  $LIBS"
6981  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
6982  #line 6065 "configure"  #line $LINENO "configure"
6983  #include "confdefs.h"  #include "confdefs.h"
6984    
6985    
6986    #ifdef F77_DUMMY_MAIN
6987    #  ifdef __cplusplus
6988         extern "C"
6989    #  endif
6990       int F77_DUMMY_MAIN() { return 1; }
6991    #endif
6992  int  int
6993  main ()  main ()
6994  {  {
# Line 6074  main (); Line 6998  main ();
6998  }  }
6999  _ACEOF  _ACEOF
7000  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7001  if { (eval echo "$as_me:6077: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7003    ac_status=$?    ac_status=$?
7004    echo "$as_me:6080: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005    (exit $ac_status); } &&    (exit $ac_status); } &&
7006           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7007    { (eval echo "$as_me:6083: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7009    ac_status=$?    ac_status=$?
7010    echo "$as_me:6086: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7012    ac_cv_lib_Xbsd_main=yes    ac_cv_lib_Xbsd_main=yes
7013  else  else
# Line 6094  fi Line 7018  fi
7018  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7019  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
7020  fi  fi
7021  echo "$as_me:6097: result: $ac_cv_lib_Xbsd_main" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7022  echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6  echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7023  if test $ac_cv_lib_Xbsd_main = yes; then  if test $ac_cv_lib_Xbsd_main = yes; then
7024    LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"    LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7025  fi  fi
7026    
7027  echo "$as_me:6103: checking for cma_open in -lpthreads" >&5  
7028    
7029    echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7030  echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6  echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7031  if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then  if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7032    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6108  else Line 7034  else
7034    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
7035  LIBS="-lpthreads  $LIBS"  LIBS="-lpthreads  $LIBS"
7036  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
7037  #line 6111 "configure"  #line $LINENO "configure"
7038  #include "confdefs.h"  #include "confdefs.h"
7039    
7040  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6118  extern "C" Line 7044  extern "C"
7044  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7045     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7046  char cma_open ();  char cma_open ();
7047    #ifdef F77_DUMMY_MAIN
7048    #  ifdef __cplusplus
7049         extern "C"
7050    #  endif
7051       int F77_DUMMY_MAIN() { return 1; }
7052    #endif
7053  int  int
7054  main ()  main ()
7055  {  {
# Line 6127  cma_open (); Line 7059  cma_open ();
7059  }  }
7060  _ACEOF  _ACEOF
7061  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7062  if { (eval echo "$as_me:6130: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7064    ac_status=$?    ac_status=$?
7065    echo "$as_me:6133: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066    (exit $ac_status); } &&    (exit $ac_status); } &&
7067           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7068    { (eval echo "$as_me:6136: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7070    ac_status=$?    ac_status=$?
7071    echo "$as_me:6139: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7073    ac_cv_lib_pthreads_cma_open=yes    ac_cv_lib_pthreads_cma_open=yes
7074  else  else
# Line 6147  fi Line 7079  fi
7079  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7080  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
7081  fi  fi
7082  echo "$as_me:6150: result: $ac_cv_lib_pthreads_cma_open" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7083  echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6  echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7084  if test $ac_cv_lib_pthreads_cma_open = yes; then  if test $ac_cv_lib_pthreads_cma_open = yes; then
7085    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
7086  #define HAVE_LIBPTHREADS 1  #define HAVE_LIBPTHREADS 1
7087  EOF  _ACEOF
7088    
7089    LIBS="-lpthreads $LIBS"    LIBS="-lpthreads $LIBS"
7090    
7091  fi  fi
7092    
7093  echo "$as_me:6161: checking for XFree86 in /usr/X386" >&5  
7094    echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7095  echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6  echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7096  if test -d /usr/X386/include; then  if test -d /usr/X386/include; then
7097    HAVE_XFREE386=yes    HAVE_XFREE386=yes
# Line 6166  if test -d /usr/X386/include; then Line 7099  if test -d /usr/X386/include; then
7099  else  else
7100    HAVE_XFREE386=no    HAVE_XFREE386=no
7101  fi  fi
7102  echo "$as_me:6169: result: $HAVE_XFREE386" >&5  echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7103  echo "${ECHO_T}$HAVE_XFREE386" >&6  echo "${ECHO_T}$HAVE_XFREE386" >&6
7104    
7105  # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used  # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
# Line 6191  if test "${HAVE_X11}" = "yes"; then Line 7124  if test "${HAVE_X11}" = "yes"; then
7124    fi    fi
7125    
7126    if test "${opsys}" = "gnu-linux"; then    if test "${opsys}" = "gnu-linux"; then
7127      echo "$as_me:6194: checking whether X on GNU/Linux needs -b to link" >&5      echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7128  echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6  echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7129      cat >conftest.$ac_ext <<_ACEOF      cat >conftest.$ac_ext <<_ACEOF
7130  #line 6197 "configure"  #line $LINENO "configure"
7131  #include "confdefs.h"  #include "confdefs.h"
7132    
7133    #ifdef F77_DUMMY_MAIN
7134    #  ifdef __cplusplus
7135         extern "C"
7136    #  endif
7137       int F77_DUMMY_MAIN() { return 1; }
7138    #endif
7139  int  int
7140  main ()  main ()
7141  {  {
# Line 6206  XOpenDisplay ("foo"); Line 7145  XOpenDisplay ("foo");
7145  }  }
7146  _ACEOF  _ACEOF
7147  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7148  if { (eval echo "$as_me:6209: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7149    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7150    ac_status=$?    ac_status=$?
7151    echo "$as_me:6212: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152    (exit $ac_status); } &&    (exit $ac_status); } &&
7153           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7154    { (eval echo "$as_me:6215: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7156    ac_status=$?    ac_status=$?
7157    echo "$as_me:6218: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7159    xlinux_first_failure=no    xlinux_first_failure=no
7160  else  else
# Line 6234  rm -f conftest.$ac_objext conftest$ac_ex Line 7173  rm -f conftest.$ac_objext conftest$ac_ex
7173        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7174        LIBS="$LIBS -b i486-linuxaout"        LIBS="$LIBS -b i486-linuxaout"
7175        cat >conftest.$ac_ext <<_ACEOF        cat >conftest.$ac_ext <<_ACEOF
7176  #line 6237 "configure"  #line $LINENO "configure"
7177  #include "confdefs.h"  #include "confdefs.h"
7178    
7179    #ifdef F77_DUMMY_MAIN
7180    #  ifdef __cplusplus
7181         extern "C"
7182    #  endif
7183       int F77_DUMMY_MAIN() { return 1; }
7184    #endif
7185  int  int
7186  main ()  main ()
7187  {  {
# Line 6246  XOpenDisplay ("foo"); Line 7191  XOpenDisplay ("foo");
7191  }  }
7192  _ACEOF  _ACEOF
7193  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7194  if { (eval echo "$as_me:6249: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7196    ac_status=$?    ac_status=$?
7197    echo "$as_me:6252: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198    (exit $ac_status); } &&    (exit $ac_status); } &&
7199           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7200    { (eval echo "$as_me:6255: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7202    ac_status=$?    ac_status=$?
7203    echo "$as_me:6258: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7205    xlinux_second_failure=no    xlinux_second_failure=no
7206  else  else
# Line 6271  rm -f conftest.$ac_objext conftest$ac_ex Line 7216  rm -f conftest.$ac_objext conftest$ac_ex
7216          C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"          C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7217          CPPFLAGS="$OLD_CPPFLAGS"          CPPFLAGS="$OLD_CPPFLAGS"
7218          LIBS="$OLD_LIBS"          LIBS="$OLD_LIBS"
7219          echo "$as_me:6274: result: no" >&5          echo "$as_me:$LINENO: result: no" >&5
7220  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
7221        else        else
7222          echo "$as_me:6277: result: yes" >&5          echo "$as_me:$LINENO: result: yes" >&5
7223  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
7224        fi        fi
7225      else      else
7226        echo "$as_me:6281: result: no" >&5        echo "$as_me:$LINENO: result: no" >&5
7227  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
7228      fi      fi
7229    fi    fi
7230    
7231    # Reportedly, some broken Solaris systems have XKBlib.h but are missing    # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7232    # header files included from there.    # header files included from there.
7233    echo "$as_me:6288: checking for Xkb" >&5    echo "$as_me:$LINENO: checking for Xkb" >&5
7234  echo $ECHO_N "checking for Xkb... $ECHO_C" >&6  echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7235    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7236  #line 6291 "configure"  #line $LINENO "configure"
7237  #include "confdefs.h"  #include "confdefs.h"
7238  #include <X11/Xlib.h>  #include <X11/Xlib.h>
7239  #include <X11/XKBlib.h>  #include <X11/XKBlib.h>
7240    #ifdef F77_DUMMY_MAIN
7241    #  ifdef __cplusplus
7242         extern "C"
7243    #  endif
7244       int F77_DUMMY_MAIN() { return 1; }
7245    #endif
7246  int  int
7247  main ()  main ()
7248  {  {
# Line 6301  XkbDescPtr kb = XkbGetKeyboard (0, XkbAl Line 7252  XkbDescPtr kb = XkbGetKeyboard (0, XkbAl
7252  }  }
7253  _ACEOF  _ACEOF
7254  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7255  if { (eval echo "$as_me:6304: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7257    ac_status=$?    ac_status=$?
7258    echo "$as_me:6307: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259    (exit $ac_status); } &&    (exit $ac_status); } &&
7260           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7261    { (eval echo "$as_me:6310: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7263    ac_status=$?    ac_status=$?
7264    echo "$as_me:6313: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7266    emacs_xkb=yes    emacs_xkb=yes
7267  else  else
# Line 6319  cat conftest.$ac_ext >&5 Line 7270  cat conftest.$ac_ext >&5
7270  emacs_xkb=no  emacs_xkb=no
7271  fi  fi
7272  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273    echo "$as_me:6322: result: $emacs_xkb" >&5    echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7274  echo "${ECHO_T}$emacs_xkb" >&6  echo "${ECHO_T}$emacs_xkb" >&6
7275    if test $emacs_xkb = yes; then    if test $emacs_xkb = yes; then
7276      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
7277  #define HAVE_XKBGETKEYBOARD 1  #define HAVE_XKBGETKEYBOARD 1
7278  EOF  _ACEOF
7279    
7280    fi    fi
7281    
7282    
7283    
7284    
7285    
7286  for ac_func in XrmSetDatabase XScreenResourceString \  for ac_func in XrmSetDatabase XScreenResourceString \
7287  XScreenNumberOfScreen XSetWMProtocols  XScreenNumberOfScreen XSetWMProtocols
7288  do  do
7289  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7290  echo "$as_me:6335: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
7291  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7292  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
7293    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7294  else  else
7295    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7296  #line 6341 "configure"  #line $LINENO "configure"
7297  #include "confdefs.h"  #include "confdefs.h"
7298  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7299      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 6352  extern "C" Line 7307  extern "C"
7307  char $ac_func ();  char $ac_func ();
7308  char (*f) ();  char (*f) ();
7309    
7310    #ifdef F77_DUMMY_MAIN
7311    #  ifdef __cplusplus
7312         extern "C"
7313    #  endif
7314       int F77_DUMMY_MAIN() { return 1; }
7315    #endif
7316  int  int
7317  main ()  main ()
7318  {  {
# Line 6369  f = $ac_func; Line 7330  f = $ac_func;
7330  }  }
7331  _ACEOF  _ACEOF
7332  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7333  if { (eval echo "$as_me:6372: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7335    ac_status=$?    ac_status=$?
7336    echo "$as_me:6375: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337    (exit $ac_status); } &&    (exit $ac_status); } &&
7338           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7339    { (eval echo "$as_me:6378: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7341    ac_status=$?    ac_status=$?
7342    echo "$as_me:6381: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7344    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
7345  else  else
# Line 6388  eval "$as_ac_var=no" Line 7349  eval "$as_ac_var=no"
7349  fi  fi
7350  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351  fi  fi
7352  echo "$as_me:6391: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7353  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7354  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
7355    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
7356  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7357  EOF  _ACEOF
7358    
7359  fi  fi
7360  done  done
# Line 6401  done Line 7362  done
7362  fi  fi
7363    
7364  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
7365    echo "$as_me:6404: checking X11 version 6" >&5    echo "$as_me:$LINENO: checking X11 version 6" >&5
7366  echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6  echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7367    if test "${emacs_cv_x11_version_6+set}" = set; then    if test "${emacs_cv_x11_version_6+set}" = set; then
7368    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7369  else  else
7370    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7371  #line 6410 "configure"  #line $LINENO "configure"
7372  #include "confdefs.h"  #include "confdefs.h"
7373  #include <X11/Xlib.h>  #include <X11/Xlib.h>
7374    #ifdef F77_DUMMY_MAIN
7375    #  ifdef __cplusplus
7376         extern "C"
7377    #  endif
7378       int F77_DUMMY_MAIN() { return 1; }
7379    #endif
7380  int  int
7381  main ()  main ()
7382  {  {
# Line 6422  fail; Line 7389  fail;
7389  }  }
7390  _ACEOF  _ACEOF
7391  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7392  if { (eval echo "$as_me:6425: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7394    ac_status=$?    ac_status=$?
7395    echo "$as_me:6428: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396    (exit $ac_status); } &&    (exit $ac_status); } &&
7397           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7398    { (eval echo "$as_me:6431: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7400    ac_status=$?    ac_status=$?
7401    echo "$as_me:6434: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7403    emacs_cv_x11_version_6=yes    emacs_cv_x11_version_6=yes
7404  else  else
# Line 6443  rm -f conftest.$ac_objext conftest$ac_ex Line 7410  rm -f conftest.$ac_objext conftest$ac_ex
7410  fi  fi
7411    
7412    if test $emacs_cv_x11_version_6 = yes; then    if test $emacs_cv_x11_version_6 = yes; then
7413      echo "$as_me:6446: result: 6 or newer" >&5      echo "$as_me:$LINENO: result: 6 or newer" >&5
7414  echo "${ECHO_T}6 or newer" >&6  echo "${ECHO_T}6 or newer" >&6
7415      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
7416  #define HAVE_X11R6 1  #define HAVE_X11R6 1
7417  EOF  _ACEOF
7418    
7419    else    else
7420      echo "$as_me:6453: result: before 6" >&5      echo "$as_me:$LINENO: result: before 6" >&5
7421  echo "${ECHO_T}before 6" >&6  echo "${ECHO_T}before 6" >&6
7422    fi    fi
7423  fi  fi
7424    
7425  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
7426    echo "$as_me:6459: checking X11 version 5" >&5    echo "$as_me:$LINENO: checking X11 version 5" >&5
7427  echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6  echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7428    if test "${emacs_cv_x11_version_5+set}" = set; then    if test "${emacs_cv_x11_version_5+set}" = set; then
7429    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7430  else  else
7431    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7432  #line 6465 "configure"  #line $LINENO "configure"
7433  #include "confdefs.h"  #include "confdefs.h"
7434  #include <X11/Xlib.h>  #include <X11/Xlib.h>
7435    #ifdef F77_DUMMY_MAIN
7436    #  ifdef __cplusplus
7437         extern "C"
7438    #  endif
7439       int F77_DUMMY_MAIN() { return 1; }
7440    #endif
7441  int  int
7442  main ()  main ()
7443  {  {
# Line 6477  fail; Line 7450  fail;
7450  }  }
7451  _ACEOF  _ACEOF
7452  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7453  if { (eval echo "$as_me:6480: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7454    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7455    ac_status=$?    ac_status=$?
7456    echo "$as_me:6483: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457    (exit $ac_status); } &&    (exit $ac_status); } &&
7458           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7459    { (eval echo "$as_me:6486: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7461    ac_status=$?    ac_status=$?
7462    echo "$as_me:6489: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7464    emacs_cv_x11_version_5=yes    emacs_cv_x11_version_5=yes
7465  else  else
# Line 6498  rm -f conftest.$ac_objext conftest$ac_ex Line 7471  rm -f conftest.$ac_objext conftest$ac_ex
7471  fi  fi
7472    
7473    if test $emacs_cv_x11_version_5 = yes; then    if test $emacs_cv_x11_version_5 = yes; then
7474      echo "$as_me:6501: result: 5 or newer" >&5      echo "$as_me:$LINENO: result: 5 or newer" >&5
7475  echo "${ECHO_T}5 or newer" >&6  echo "${ECHO_T}5 or newer" >&6
7476      HAVE_X11R5=yes      HAVE_X11R5=yes
7477      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
7478  #define HAVE_X11R5 1  #define HAVE_X11R5 1
7479  EOF  _ACEOF
7480    
7481    else    else
7482      HAVE_X11R5=no      HAVE_X11R5=no
7483      echo "$as_me:6510: result: before 5" >&5      echo "$as_me:$LINENO: result: before 5" >&5
7484  echo "${ECHO_T}before 5" >&6  echo "${ECHO_T}before 5" >&6
7485    fi    fi
7486  fi  fi
7487    
7488  if test x"${USE_X_TOOLKIT}" = xmaybe; then  if test x"${USE_X_TOOLKIT}" = xmaybe; then
7489    if test x"${HAVE_X11R5}" = xyes; then    if test x"${HAVE_X11R5}" = xyes; then
7490      echo "$as_me:6517: checking X11 version 5 with Xaw" >&5      echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7491  echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6  echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7492      if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then      if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7493    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7494  else  else
7495    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7496  #line 6523 "configure"  #line $LINENO "configure"
7497  #include "confdefs.h"  #include "confdefs.h"
7498    
7499  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
7500  #include <X11/Xaw/Simple.h>  #include <X11/Xaw/Simple.h>
7501    #ifdef F77_DUMMY_MAIN
7502    #  ifdef __cplusplus
7503         extern "C"
7504    #  endif
7505       int F77_DUMMY_MAIN() { return 1; }
7506    #endif
7507  int  int
7508  main ()  main ()
7509  {  {
# Line 6534  main () Line 7513  main ()
7513  }  }
7514  _ACEOF  _ACEOF
7515  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7516  if { (eval echo "$as_me:6537: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7518    ac_status=$?    ac_status=$?
7519    echo "$as_me:6540: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520    (exit $ac_status); } &&    (exit $ac_status); } &&
7521           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7522    { (eval echo "$as_me:6543: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7524    ac_status=$?    ac_status=$?
7525    echo "$as_me:6546: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7527    emacs_cv_x11_version_5_with_xaw=yes    emacs_cv_x11_version_5_with_xaw=yes
7528  else  else
# Line 6555  rm -f conftest.$ac_objext conftest$ac_ex Line 7534  rm -f conftest.$ac_objext conftest$ac_ex
7534  fi  fi
7535    
7536      if test $emacs_cv_x11_version_5_with_xaw = yes; then      if test $emacs_cv_x11_version_5_with_xaw = yes; then
7537        echo "$as_me:6558: result: 5 or newer, with Xaw; use toolkit by default" >&5        echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7538  echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6  echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7539        USE_X_TOOLKIT=LUCID        USE_X_TOOLKIT=LUCID
7540      else      else
7541        echo "$as_me:6562: result: before 5 or no Xaw; do not use toolkit by default" >&5        echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7542  echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6  echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7543        USE_X_TOOLKIT=none        USE_X_TOOLKIT=none
7544      fi      fi
# Line 6571  fi Line 7550  fi
7550  X_TOOLKIT_TYPE=$USE_X_TOOLKIT  X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7551    
7552  if test "${USE_X_TOOLKIT}" != "none"; then  if test "${USE_X_TOOLKIT}" != "none"; then
7553    echo "$as_me:6574: checking X11 toolkit version" >&5    echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7554  echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6  echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7555    if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then    if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7556    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7557  else  else
7558    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7559  #line 6580 "configure"  #line $LINENO "configure"
7560  #include "confdefs.h"  #include "confdefs.h"
7561  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
7562    #ifdef F77_DUMMY_MAIN
7563    #  ifdef __cplusplus
7564         extern "C"
7565    #  endif
7566       int F77_DUMMY_MAIN() { return 1; }
7567    #endif
7568  int  int
7569  main ()  main ()
7570  {  {
# Line 6592  fail; Line 7577  fail;
7577  }  }
7578  _ACEOF  _ACEOF
7579  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7580  if { (eval echo "$as_me:6595: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7582    ac_status=$?    ac_status=$?
7583    echo "$as_me:6598: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584    (exit $ac_status); } &&    (exit $ac_status); } &&
7585           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7586    { (eval echo "$as_me:6601: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7588    ac_status=$?    ac_status=$?
7589    echo "$as_me:6604: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7591    emacs_cv_x11_toolkit_version_6=yes    emacs_cv_x11_toolkit_version_6=yes
7592  else  else
# Line 6614  fi Line 7599  fi
7599    
7600    HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6    HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7601    if test $emacs_cv_x11_toolkit_version_6 = yes; then    if test $emacs_cv_x11_toolkit_version_6 = yes; then
7602      echo "$as_me:6617: result: 6 or newer" >&5      echo "$as_me:$LINENO: result: 6 or newer" >&5
7603  echo "${ECHO_T}6 or newer" >&6  echo "${ECHO_T}6 or newer" >&6
7604      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
7605  #define HAVE_X11XTR6 1  #define HAVE_X11XTR6 1
7606  EOF  _ACEOF
7607    
7608    else    else
7609      echo "$as_me:6624: result: before 6" >&5      echo "$as_me:$LINENO: result: before 6" >&5
7610  echo "${ECHO_T}before 6" >&6  echo "${ECHO_T}before 6" >&6
7611    fi    fi
7612    
# Line 6632  echo "${ECHO_T}before 6" >&6 Line 7617  echo "${ECHO_T}before 6" >&6
7617      LIBS="-lXt $LIBS"      LIBS="-lXt $LIBS"
7618    fi    fi
7619    
7620  echo "$as_me:6635: checking for XmuConvertStandardSelection in -lXmu" >&5  echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7621  echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6  echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7622  if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then  if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7623    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6640  else Line 7625  else
7625    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
7626  LIBS="-lXmu  $LIBS"  LIBS="-lXmu  $LIBS"
7627  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
7628  #line 6643 "configure"  #line $LINENO "configure"
7629  #include "confdefs.h"  #include "confdefs.h"
7630    
7631  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6650  extern "C" Line 7635  extern "C"
7635  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7636     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7637  char XmuConvertStandardSelection ();  char XmuConvertStandardSelection ();
7638    #ifdef F77_DUMMY_MAIN
7639    #  ifdef __cplusplus
7640         extern "C"
7641    #  endif
7642       int F77_DUMMY_MAIN() { return 1; }
7643    #endif
7644  int  int
7645  main ()  main ()
7646  {  {
# Line 6659  XmuConvertStandardSelection (); Line 7650  XmuConvertStandardSelection ();
7650  }  }
7651  _ACEOF  _ACEOF
7652  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7653  if { (eval echo "$as_me:6662: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7655    ac_status=$?    ac_status=$?
7656    echo "$as_me:6665: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657    (exit $ac_status); } &&    (exit $ac_status); } &&
7658           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7659    { (eval echo "$as_me:6668: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7661    ac_status=$?    ac_status=$?
7662    echo "$as_me:6671: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7664    ac_cv_lib_Xmu_XmuConvertStandardSelection=yes    ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7665  else  else
# Line 6679  fi Line 7670  fi
7670  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7671  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
7672  fi  fi
7673  echo "$as_me:6682: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7674  echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6  echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7675  if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then  if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7676    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
7677  #define HAVE_LIBXMU 1  #define HAVE_LIBXMU 1
7678  EOF  _ACEOF
7679    
7680    LIBS="-lXmu $LIBS"    LIBS="-lXmu $LIBS"
7681    
# Line 6697  fi Line 7688  fi
7688  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
7689    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
7690    
7691  echo "$as_me:6700: checking for XShapeQueryExtension in -lXext" >&5  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7692  echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6  echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7693  if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then  if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7694    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6705  else Line 7696  else
7696    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
7697  LIBS="-lXext  $LIBS"  LIBS="-lXext  $LIBS"
7698  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
7699  #line 6708 "configure"  #line $LINENO "configure"
7700  #include "confdefs.h"  #include "confdefs.h"
7701    
7702  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6715  extern "C" Line 7706  extern "C"
7706  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7707     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7708  char XShapeQueryExtension ();  char XShapeQueryExtension ();
7709    #ifdef F77_DUMMY_MAIN
7710    #  ifdef __cplusplus
7711         extern "C"
7712    #  endif
7713       int F77_DUMMY_MAIN() { return 1; }
7714    #endif
7715  int  int
7716  main ()  main ()
7717  {  {
# Line 6724  XShapeQueryExtension (); Line 7721  XShapeQueryExtension ();
7721  }  }
7722  _ACEOF  _ACEOF
7723  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7724  if { (eval echo "$as_me:6727: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7726    ac_status=$?    ac_status=$?
7727    echo "$as_me:6730: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728    (exit $ac_status); } &&    (exit $ac_status); } &&
7729           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7730    { (eval echo "$as_me:6733: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7732    ac_status=$?    ac_status=$?
7733    echo "$as_me:6736: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7735    ac_cv_lib_Xext_XShapeQueryExtension=yes    ac_cv_lib_Xext_XShapeQueryExtension=yes
7736  else  else
# Line 6744  fi Line 7741  fi
7741  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
7743  fi  fi
7744  echo "$as_me:6747: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7745  echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6  echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7746  if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then  if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7747    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
7748  #define HAVE_LIBXEXT 1  #define HAVE_LIBXEXT 1
7749  EOF  _ACEOF
7750    
7751    LIBS="-lXext $LIBS"    LIBS="-lXext $LIBS"
7752    
# Line 6759  fi Line 7756  fi
7756  fi  fi
7757    
7758  if test "${USE_X_TOOLKIT}" = "MOTIF"; then  if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7759    echo "$as_me:6762: checking for Motif version 2.1" >&5    echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7760  echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6  echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7761  if test "${emacs_cv_motif_version_2_1+set}" = set; then  if test "${emacs_cv_motif_version_2_1+set}" = set; then
7762    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7763  else  else
7764    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
7765  #line 6768 "configure"  #line $LINENO "configure"
7766  #include "confdefs.h"  #include "confdefs.h"
7767  #include <Xm/Xm.h>  #include <Xm/Xm.h>
7768    #ifdef F77_DUMMY_MAIN
7769    #  ifdef __cplusplus
7770         extern "C"
7771    #  endif
7772       int F77_DUMMY_MAIN() { return 1; }
7773    #endif
7774  int  int
7775  main ()  main ()
7776  {  {
# Line 6781  Motif version prior to 2.1. Line 7784  Motif version prior to 2.1.
7784  }  }
7785  _ACEOF  _ACEOF
7786  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
7787  if { (eval echo "$as_me:6784: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
7789    ac_status=$?    ac_status=$?
7790    echo "$as_me:6787: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791    (exit $ac_status); } &&    (exit $ac_status); } &&
7792           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
7793    { (eval echo "$as_me:6790: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7795    ac_status=$?    ac_status=$?
7796    echo "$as_me:6793: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7798    emacs_cv_motif_version_2_1=yes    emacs_cv_motif_version_2_1=yes
7799  else  else
# Line 6800  emacs_cv_motif_version_2_1=no Line 7803  emacs_cv_motif_version_2_1=no
7803  fi  fi
7804  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
7805  fi  fi
7806  echo "$as_me:6803: result: $emacs_cv_motif_version_2_1" >&5  echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7807  echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6  echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7808    HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1    HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7809    if test $emacs_cv_motif_version_2_1 = yes; then    if test $emacs_cv_motif_version_2_1 = yes; then
7810      HAVE_LIBXP=no      HAVE_LIBXP=no
7811      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
7812  #define HAVE_MOTIF_2_1 1  #define HAVE_MOTIF_2_1 1
7813  EOF  _ACEOF
7814    
7815      echo "$as_me:6812: checking for XpCreateContext in -lXp" >&5      echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7816  echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6  echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7817  if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then  if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7818    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6817  else Line 7820  else
7820    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
7821  LIBS="-lXp  $LIBS"  LIBS="-lXp  $LIBS"
7822  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
7823  #line 6820 "configure"  #line $LINENO "configure"
7824  #include "confdefs.h"  #include "confdefs.h"
7825    
7826  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6827  extern "C" Line 7830  extern "C"
7830  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
7831     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
7832  char XpCreateContext ();  char XpCreateContext ();
7833    #ifdef F77_DUMMY_MAIN
7834    #  ifdef __cplusplus
7835         extern "C"
7836    #  endif
7837       int F77_DUMMY_MAIN() { return 1; }
7838    #endif
7839  int  int
7840  main ()  main ()
7841  {  {
# Line 6836  XpCreateContext (); Line 7845  XpCreateContext ();
7845  }  }
7846  _ACEOF  _ACEOF
7847  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
7848  if { (eval echo "$as_me:6839: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
7850    ac_status=$?    ac_status=$?
7851    echo "$as_me:6842: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852    (exit $ac_status); } &&    (exit $ac_status); } &&
7853           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
7854    { (eval echo "$as_me:6845: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
7856    ac_status=$?    ac_status=$?
7857    echo "$as_me:6848: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
7859    ac_cv_lib_Xp_XpCreateContext=yes    ac_cv_lib_Xp_XpCreateContext=yes
7860  else  else
# Line 6856  fi Line 7865  fi
7865  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7866  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
7867  fi  fi
7868  echo "$as_me:6859: result: $ac_cv_lib_Xp_XpCreateContext" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7869  echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6  echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7870  if test $ac_cv_lib_Xp_XpCreateContext = yes; then  if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7871    HAVE_LIBXP=yes    HAVE_LIBXP=yes
7872  fi  fi
7873    
7874      if test ${HAVE_LIBXP} = yes; then      if test ${HAVE_LIBXP} = yes; then
7875        cat >>confdefs.h <<\EOF        cat >>confdefs.h <<\_ACEOF
7876  #define HAVE_LIBXP 1  #define HAVE_LIBXP 1
7877  EOF  _ACEOF
7878    
7879      fi      fi
7880    fi    fi
# Line 6875  fi Line 7884  fi
7884  HAVE_XAW3D=no  HAVE_XAW3D=no
7885  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
7886    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
7887      echo "$as_me:6878: checking for X11/Xaw3d/Scrollbar.h" >&5      if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7888      echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7889  echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6  echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7890  if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then  if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7891    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7892    fi
7893    echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7894    echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7895  else  else
7896    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
7897  #line 6884 "configure"  echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7898    echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7899    cat >conftest.$ac_ext <<_ACEOF
7900    #line $LINENO "configure"
7901    #include "confdefs.h"
7902    $ac_includes_default
7903    #include <X11/Xaw3d/Scrollbar.h>
7904    _ACEOF
7905    rm -f conftest.$ac_objext
7906    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907      (eval $ac_compile) 2>&5
7908      ac_status=$?
7909      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910      (exit $ac_status); } &&
7911             { ac_try='test -s conftest.$ac_objext'
7912      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913      (eval $ac_try) 2>&5
7914      ac_status=$?
7915      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916      (exit $ac_status); }; }; then
7917      ac_header_compiler=yes
7918    else
7919      echo "$as_me: failed program was:" >&5
7920    cat conftest.$ac_ext >&5
7921    ac_header_compiler=no
7922    fi
7923    rm -f conftest.$ac_objext conftest.$ac_ext
7924    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925    echo "${ECHO_T}$ac_header_compiler" >&6
7926    
7927    # Is the header present?
7928    echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7929    echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7930    cat >conftest.$ac_ext <<_ACEOF
7931    #line $LINENO "configure"
7932  #include "confdefs.h"  #include "confdefs.h"
7933  #include <X11/Xaw3d/Scrollbar.h>  #include <X11/Xaw3d/Scrollbar.h>
7934  _ACEOF  _ACEOF
7935  if { (eval echo "$as_me:6888: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7936    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7937    ac_status=$?    ac_status=$?
7938    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
7939    rm -f conftest.er1    rm -f conftest.er1
7940    cat conftest.err >&5    cat conftest.err >&5
7941    echo "$as_me:6894: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
7943    if test -s conftest.err; then    if test -s conftest.err; then
7944      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 6902  else Line 7949  else
7949    ac_cpp_err=yes    ac_cpp_err=yes
7950  fi  fi
7951  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
7952    ac_cv_header_X11_Xaw3d_Scrollbar_h=yes    ac_header_preproc=yes
7953  else  else
7954    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
7955    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7956    ac_cv_header_X11_Xaw3d_Scrollbar_h=no    ac_header_preproc=no
7957  fi  fi
7958  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
7959    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7960    echo "${ECHO_T}$ac_header_preproc" >&6
7961    
7962    # So?  What about this header?
7963    case $ac_header_compiler:$ac_header_preproc in
7964      yes:no )
7965        { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7966    echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7967        { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7968    echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7969      no:yes )
7970        { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7971    echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7972        { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7973    echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7974        { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7975    echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7976    esac
7977    echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7978    echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7979    if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7980      echo $ECHO_N "(cached) $ECHO_C" >&6
7981    else
7982      ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
7983  fi  fi
7984  echo "$as_me:6913: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7985  echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6  echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7986    
7987    fi
7988  if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then  if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7989    echo "$as_me:6916: checking for XawScrollbarSetThumb in -lXaw3d" >&5    echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7990  echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6  echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7991  if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then  if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7992    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6921  else Line 7994  else
7994    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
7995  LIBS="-lXaw3d  $LIBS"  LIBS="-lXaw3d  $LIBS"
7996  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
7997  #line 6924 "configure"  #line $LINENO "configure"
7998  #include "confdefs.h"  #include "confdefs.h"
7999    
8000  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 6931  extern "C" Line 8004  extern "C"
8004  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8005     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8006  char XawScrollbarSetThumb ();  char XawScrollbarSetThumb ();
8007    #ifdef F77_DUMMY_MAIN
8008    #  ifdef __cplusplus
8009         extern "C"
8010    #  endif
8011       int F77_DUMMY_MAIN() { return 1; }
8012    #endif
8013  int  int
8014  main ()  main ()
8015  {  {
# Line 6940  XawScrollbarSetThumb (); Line 8019  XawScrollbarSetThumb ();
8019  }  }
8020  _ACEOF  _ACEOF
8021  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8022  if { (eval echo "$as_me:6943: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8024    ac_status=$?    ac_status=$?
8025    echo "$as_me:6946: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026    (exit $ac_status); } &&    (exit $ac_status); } &&
8027           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
8028    { (eval echo "$as_me:6949: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
8030    ac_status=$?    ac_status=$?
8031    echo "$as_me:6952: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
8033    ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes    ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8034  else  else
# Line 6960  fi Line 8039  fi
8039  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
8041  fi  fi
8042  echo "$as_me:6963: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8043  echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6  echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8044  if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then  if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8045    HAVE_XAW3D=yes    HAVE_XAW3D=yes
# Line 6968  fi Line 8047  fi
8047    
8048  fi  fi
8049    
8050    
8051      if test "${HAVE_XAW3D}" = "yes"; then      if test "${HAVE_XAW3D}" = "yes"; then
8052          cat >>confdefs.h <<\EOF          cat >>confdefs.h <<\_ACEOF
8053  #define HAVE_XAW3D 1  #define HAVE_XAW3D 1
8054  EOF  _ACEOF
8055    
8056      fi      fi
8057    fi    fi
8058  fi  fi
8059    
8060    
8061  USE_TOOLKIT_SCROLL_BARS=no  USE_TOOLKIT_SCROLL_BARS=no
8062  if test "${with_toolkit_scroll_bars}" != "no"; then  if test "${with_toolkit_scroll_bars}" != "no"; then
8063    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
8064      if test "${USE_X_TOOLKIT}" = "MOTIF"; then      if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8065        cat >>confdefs.h <<\EOF        cat >>confdefs.h <<\_ACEOF
8066  #define USE_TOOLKIT_SCROLL_BARS 1  #define USE_TOOLKIT_SCROLL_BARS 1
8067  EOF  _ACEOF
8068    
8069        HAVE_XAW3D=no        HAVE_XAW3D=no
8070        USE_TOOLKIT_SCROLL_BARS=yes        USE_TOOLKIT_SCROLL_BARS=yes
8071      elif test "${HAVE_XAW3D}" = "yes"; then      elif test "${HAVE_XAW3D}" = "yes"; then
8072        cat >>confdefs.h <<\EOF        cat >>confdefs.h <<\_ACEOF
8073  #define USE_TOOLKIT_SCROLL_BARS 1  #define USE_TOOLKIT_SCROLL_BARS 1
8074  EOF  _ACEOF
8075    
8076        USE_TOOLKIT_SCROLL_BARS=yes        USE_TOOLKIT_SCROLL_BARS=yes
8077      fi      fi
8078    fi    fi
8079  fi  fi
8080    
8081    
8082  if test "${with_xim}" != "no"; then  if test "${with_xim}" != "no"; then
8083    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
8084  #define USE_XIM 1  #define USE_XIM 1
8085  EOF  _ACEOF
8086    
8087  fi  fi
8088    
# Line 7008  fi Line 8090  fi
8090  HAVE_XPM=no  HAVE_XPM=no
8091  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
8092    if test "${with_xpm}" != "no"; then    if test "${with_xpm}" != "no"; then
8093      echo "$as_me:7011: checking for X11/xpm.h" >&5      if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8094      echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8095  echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6  echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8096  if test "${ac_cv_header_X11_xpm_h+set}" = set; then  if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8097    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8098    fi
8099    echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8100    echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8101  else  else
8102    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
8103  #line 7017 "configure"  echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8104    echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8105    cat >conftest.$ac_ext <<_ACEOF
8106    #line $LINENO "configure"
8107    #include "confdefs.h"
8108    $ac_includes_default
8109    #include <X11/xpm.h>
8110    _ACEOF
8111    rm -f conftest.$ac_objext
8112    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113      (eval $ac_compile) 2>&5
8114      ac_status=$?
8115      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116      (exit $ac_status); } &&
8117             { ac_try='test -s conftest.$ac_objext'
8118      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119      (eval $ac_try) 2>&5
8120      ac_status=$?
8121      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122      (exit $ac_status); }; }; then
8123      ac_header_compiler=yes
8124    else
8125      echo "$as_me: failed program was:" >&5
8126    cat conftest.$ac_ext >&5
8127    ac_header_compiler=no
8128    fi
8129    rm -f conftest.$ac_objext conftest.$ac_ext
8130    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131    echo "${ECHO_T}$ac_header_compiler" >&6
8132    
8133    # Is the header present?
8134    echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8135    echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8136    cat >conftest.$ac_ext <<_ACEOF
8137    #line $LINENO "configure"
8138  #include "confdefs.h"  #include "confdefs.h"
8139  #include <X11/xpm.h>  #include <X11/xpm.h>
8140  _ACEOF  _ACEOF
8141  if { (eval echo "$as_me:7021: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8143    ac_status=$?    ac_status=$?
8144    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
8145    rm -f conftest.er1    rm -f conftest.er1
8146    cat conftest.err >&5    cat conftest.err >&5
8147    echo "$as_me:7027: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
8149    if test -s conftest.err; then    if test -s conftest.err; then
8150      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7035  else Line 8155  else
8155    ac_cpp_err=yes    ac_cpp_err=yes
8156  fi  fi
8157  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
8158    ac_cv_header_X11_xpm_h=yes    ac_header_preproc=yes
8159  else  else
8160    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8161    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8162    ac_cv_header_X11_xpm_h=no    ac_header_preproc=no
8163  fi  fi
8164  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
8165    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8166    echo "${ECHO_T}$ac_header_preproc" >&6
8167    
8168    # So?  What about this header?
8169    case $ac_header_compiler:$ac_header_preproc in
8170      yes:no )
8171        { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8172    echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8173        { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8174    echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8175      no:yes )
8176        { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8177    echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8178        { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8179    echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8180        { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8181    echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8182    esac
8183    echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8184    echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8185    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8186      echo $ECHO_N "(cached) $ECHO_C" >&6
8187    else
8188      ac_cv_header_X11_xpm_h=$ac_header_preproc
8189  fi  fi
8190  echo "$as_me:7046: result: $ac_cv_header_X11_xpm_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8191  echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6  echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8192    
8193    fi
8194  if test $ac_cv_header_X11_xpm_h = yes; then  if test $ac_cv_header_X11_xpm_h = yes; then
8195    echo "$as_me:7049: checking for XpmReadFileToPixmap in -lXpm" >&5    echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8196  echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6  echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8197  if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then  if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8198    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7054  else Line 8200  else
8200    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
8201  LIBS="-lXpm -lX11 $LIBS"  LIBS="-lXpm -lX11 $LIBS"
8202  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
8203  #line 7057 "configure"  #line $LINENO "configure"
8204  #include "confdefs.h"  #include "confdefs.h"
8205    
8206  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7064  extern "C" Line 8210  extern "C"
8210  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8211     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8212  char XpmReadFileToPixmap ();  char XpmReadFileToPixmap ();
8213    #ifdef F77_DUMMY_MAIN
8214    #  ifdef __cplusplus
8215         extern "C"
8216    #  endif
8217       int F77_DUMMY_MAIN() { return 1; }
8218    #endif
8219  int  int
8220  main ()  main ()
8221  {  {
# Line 7073  XpmReadFileToPixmap (); Line 8225  XpmReadFileToPixmap ();
8225  }  }
8226  _ACEOF  _ACEOF
8227  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8228  if { (eval echo "$as_me:7076: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8230    ac_status=$?    ac_status=$?
8231    echo "$as_me:7079: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232    (exit $ac_status); } &&    (exit $ac_status); } &&
8233           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
8234    { (eval echo "$as_me:7082: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
8236    ac_status=$?    ac_status=$?
8237    echo "$as_me:7085: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
8239    ac_cv_lib_Xpm_XpmReadFileToPixmap=yes    ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8240  else  else
# Line 7093  fi Line 8245  fi
8245  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
8247  fi  fi
8248  echo "$as_me:7096: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8249  echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6  echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8250  if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then  if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8251    HAVE_XPM=yes    HAVE_XPM=yes
# Line 7101  fi Line 8253  fi
8253    
8254  fi  fi
8255    
8256    
8257      if test "${HAVE_XPM}" = "yes"; then      if test "${HAVE_XPM}" = "yes"; then
8258        echo "$as_me:7105: checking for XpmReturnAllocPixels preprocessor define" >&5        echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8259  echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6  echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8260        cat >conftest.$ac_ext <<_ACEOF        cat >conftest.$ac_ext <<_ACEOF
8261  #line 7108 "configure"  #line $LINENO "configure"
8262  #include "confdefs.h"  #include "confdefs.h"
8263  #include "X11/xpm.h"  #include "X11/xpm.h"
8264  #ifndef XpmReturnAllocPixels  #ifndef XpmReturnAllocPixels
# Line 7121  else Line 8274  else
8274  fi  fi
8275  rm -f conftest*  rm -f conftest*
8276    
8277    
8278        if test "${HAVE_XPM}" = "yes"; then        if test "${HAVE_XPM}" = "yes"; then
8279          echo "$as_me:7125: result: yes" >&5          echo "$as_me:$LINENO: result: yes" >&5
8280  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
8281        else        else
8282          echo "$as_me:7128: result: no" >&5          echo "$as_me:$LINENO: result: no" >&5
8283  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
8284        fi        fi
8285      fi      fi
8286    fi    fi
8287    
8288    if test "${HAVE_XPM}" = "yes"; then    if test "${HAVE_XPM}" = "yes"; then
8289      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
8290  #define HAVE_XPM 1  #define HAVE_XPM 1
8291  EOF  _ACEOF
8292    
8293    fi    fi
8294  fi  fi
# Line 7143  fi Line 8297  fi
8297  HAVE_JPEG=no  HAVE_JPEG=no
8298  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
8299    if test "${with_jpeg}" != "no"; then    if test "${with_jpeg}" != "no"; then
8300              echo "$as_me:7146: checking for jerror.h" >&5              if test "${ac_cv_header_jerror_h+set}" = set; then
8301      echo "$as_me:$LINENO: checking for jerror.h" >&5
8302  echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6  echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8303  if test "${ac_cv_header_jerror_h+set}" = set; then  if test "${ac_cv_header_jerror_h+set}" = set; then
8304    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8305    fi
8306    echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8307    echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8308  else  else
8309    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
8310  #line 7152 "configure"  echo "$as_me:$LINENO: checking jerror.h usability" >&5
8311    echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8312    cat >conftest.$ac_ext <<_ACEOF
8313    #line $LINENO "configure"
8314    #include "confdefs.h"
8315    $ac_includes_default
8316    #include <jerror.h>
8317    _ACEOF
8318    rm -f conftest.$ac_objext
8319    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320      (eval $ac_compile) 2>&5
8321      ac_status=$?
8322      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323      (exit $ac_status); } &&
8324             { ac_try='test -s conftest.$ac_objext'
8325      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326      (eval $ac_try) 2>&5
8327      ac_status=$?
8328      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329      (exit $ac_status); }; }; then
8330      ac_header_compiler=yes
8331    else
8332      echo "$as_me: failed program was:" >&5
8333    cat conftest.$ac_ext >&5
8334    ac_header_compiler=no
8335    fi
8336    rm -f conftest.$ac_objext conftest.$ac_ext
8337    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8338    echo "${ECHO_T}$ac_header_compiler" >&6
8339    
8340    # Is the header present?
8341    echo "$as_me:$LINENO: checking jerror.h presence" >&5
8342    echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8343    cat >conftest.$ac_ext <<_ACEOF
8344    #line $LINENO "configure"
8345  #include "confdefs.h"  #include "confdefs.h"
8346  #include <jerror.h>  #include <jerror.h>
8347  _ACEOF  _ACEOF
8348  if { (eval echo "$as_me:7156: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8349    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8350    ac_status=$?    ac_status=$?
8351    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
8352    rm -f conftest.er1    rm -f conftest.er1
8353    cat conftest.err >&5    cat conftest.err >&5
8354    echo "$as_me:7162: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
8356    if test -s conftest.err; then    if test -s conftest.err; then
8357      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7170  else Line 8362  else
8362    ac_cpp_err=yes    ac_cpp_err=yes
8363  fi  fi
8364  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
8365    ac_cv_header_jerror_h=yes    ac_header_preproc=yes
8366  else  else
8367    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8368    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8369    ac_cv_header_jerror_h=no    ac_header_preproc=no
8370  fi  fi
8371  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
8372    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8373    echo "${ECHO_T}$ac_header_preproc" >&6
8374    
8375    # So?  What about this header?
8376    case $ac_header_compiler:$ac_header_preproc in
8377      yes:no )
8378        { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8379    echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380        { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8381    echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8382      no:yes )
8383        { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8384    echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8385        { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8386    echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8387        { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8388    echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8389    esac
8390    echo "$as_me:$LINENO: checking for jerror.h" >&5
8391    echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8392    if test "${ac_cv_header_jerror_h+set}" = set; then
8393      echo $ECHO_N "(cached) $ECHO_C" >&6
8394    else
8395      ac_cv_header_jerror_h=$ac_header_preproc
8396  fi  fi
8397  echo "$as_me:7181: result: $ac_cv_header_jerror_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8398  echo "${ECHO_T}$ac_cv_header_jerror_h" >&6  echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8399    
8400    fi
8401  if test $ac_cv_header_jerror_h = yes; then  if test $ac_cv_header_jerror_h = yes; then
8402    echo "$as_me:7184: checking for jpeg_destroy_compress in -ljpeg" >&5    echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8403  echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6  echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8404  if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then  if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8405    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7189  else Line 8407  else
8407    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
8408  LIBS="-ljpeg  $LIBS"  LIBS="-ljpeg  $LIBS"
8409  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
8410  #line 7192 "configure"  #line $LINENO "configure"
8411  #include "confdefs.h"  #include "confdefs.h"
8412    
8413  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7199  extern "C" Line 8417  extern "C"
8417  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8418     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8419  char jpeg_destroy_compress ();  char jpeg_destroy_compress ();
8420    #ifdef F77_DUMMY_MAIN
8421    #  ifdef __cplusplus
8422         extern "C"
8423    #  endif
8424       int F77_DUMMY_MAIN() { return 1; }
8425    #endif
8426  int  int
8427  main ()  main ()
8428  {  {
# Line 7208  jpeg_destroy_compress (); Line 8432  jpeg_destroy_compress ();
8432  }  }
8433  _ACEOF  _ACEOF
8434  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8435  if { (eval echo "$as_me:7211: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8437    ac_status=$?    ac_status=$?
8438    echo "$as_me:7214: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439    (exit $ac_status); } &&    (exit $ac_status); } &&
8440           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
8441    { (eval echo "$as_me:7217: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
8443    ac_status=$?    ac_status=$?
8444    echo "$as_me:7220: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
8446    ac_cv_lib_jpeg_jpeg_destroy_compress=yes    ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8447  else  else
# Line 7228  fi Line 8452  fi
8452  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
8454  fi  fi
8455  echo "$as_me:7231: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8456  echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6  echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8457  if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then  if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8458    HAVE_JPEG=yes    HAVE_JPEG=yes
# Line 7236  fi Line 8460  fi
8460    
8461  fi  fi
8462    
8463    
8464    fi    fi
8465    
8466    if test "${HAVE_JPEG}" = "yes"; then    if test "${HAVE_JPEG}" = "yes"; then
8467      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
8468  #define HAVE_JPEG 1  #define HAVE_JPEG 1
8469  EOF  _ACEOF
8470    
8471      cat >conftest.$ac_ext <<_ACEOF      cat >conftest.$ac_ext <<_ACEOF
8472  #line 7247 "configure"  #line $LINENO "configure"
8473  #include "confdefs.h"  #include "confdefs.h"
8474          #include <jpeglib.h>          #include <jpeglib.h>
8475           version=JPEG_LIB_VERSION           version=JPEG_LIB_VERSION
# Line 7252  EOF Line 8477  EOF
8477  _ACEOF  _ACEOF
8478  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8479    egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then    egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8480    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
8481  #define HAVE_JPEG 1  #define HAVE_JPEG 1
8482  EOF  _ACEOF
8483    
8484  else  else
8485    { echo "$as_me:7260: WARNING: libjpeg found, but not version 6b or later" >&5    { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8486  echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}  echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8487          HAVE_JPEG=no          HAVE_JPEG=no
8488  fi  fi
# Line 7270  fi Line 8495  fi
8495  HAVE_PNG=no  HAVE_PNG=no
8496  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
8497    if test "${with_png}" != "no"; then    if test "${with_png}" != "no"; then
8498      echo "$as_me:7273: checking for png.h" >&5      if test "${ac_cv_header_png_h+set}" = set; then
8499      echo "$as_me:$LINENO: checking for png.h" >&5
8500  echo $ECHO_N "checking for png.h... $ECHO_C" >&6  echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8501  if test "${ac_cv_header_png_h+set}" = set; then  if test "${ac_cv_header_png_h+set}" = set; then
8502    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8503    fi
8504    echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8505    echo "${ECHO_T}$ac_cv_header_png_h" >&6
8506  else  else
8507    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
8508  #line 7279 "configure"  echo "$as_me:$LINENO: checking png.h usability" >&5
8509    echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8510    cat >conftest.$ac_ext <<_ACEOF
8511    #line $LINENO "configure"
8512    #include "confdefs.h"
8513    $ac_includes_default
8514    #include <png.h>
8515    _ACEOF
8516    rm -f conftest.$ac_objext
8517    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518      (eval $ac_compile) 2>&5
8519      ac_status=$?
8520      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521      (exit $ac_status); } &&
8522             { ac_try='test -s conftest.$ac_objext'
8523      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524      (eval $ac_try) 2>&5
8525      ac_status=$?
8526      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527      (exit $ac_status); }; }; then
8528      ac_header_compiler=yes
8529    else
8530      echo "$as_me: failed program was:" >&5
8531    cat conftest.$ac_ext >&5
8532    ac_header_compiler=no
8533    fi
8534    rm -f conftest.$ac_objext conftest.$ac_ext
8535    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8536    echo "${ECHO_T}$ac_header_compiler" >&6
8537    
8538    # Is the header present?
8539    echo "$as_me:$LINENO: checking png.h presence" >&5
8540    echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8541    cat >conftest.$ac_ext <<_ACEOF
8542    #line $LINENO "configure"
8543  #include "confdefs.h"  #include "confdefs.h"
8544  #include <png.h>  #include <png.h>
8545  _ACEOF  _ACEOF
8546  if { (eval echo "$as_me:7283: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8547    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8548    ac_status=$?    ac_status=$?
8549    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
8550    rm -f conftest.er1    rm -f conftest.er1
8551    cat conftest.err >&5    cat conftest.err >&5
8552    echo "$as_me:7289: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
8554    if test -s conftest.err; then    if test -s conftest.err; then
8555      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7297  else Line 8560  else
8560    ac_cpp_err=yes    ac_cpp_err=yes
8561  fi  fi
8562  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
8563    ac_cv_header_png_h=yes    ac_header_preproc=yes
8564  else  else
8565    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8566    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8567    ac_cv_header_png_h=no    ac_header_preproc=no
8568  fi  fi
8569  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
8570    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571    echo "${ECHO_T}$ac_header_preproc" >&6
8572    
8573    # So?  What about this header?
8574    case $ac_header_compiler:$ac_header_preproc in
8575      yes:no )
8576        { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8577    echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578        { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8579    echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8580      no:yes )
8581        { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8582    echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8583        { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8584    echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8585        { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8586    echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8587    esac
8588    echo "$as_me:$LINENO: checking for png.h" >&5
8589    echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8590    if test "${ac_cv_header_png_h+set}" = set; then
8591      echo $ECHO_N "(cached) $ECHO_C" >&6
8592    else
8593      ac_cv_header_png_h=$ac_header_preproc
8594  fi  fi
8595  echo "$as_me:7308: result: $ac_cv_header_png_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8596  echo "${ECHO_T}$ac_cv_header_png_h" >&6  echo "${ECHO_T}$ac_cv_header_png_h" >&6
8597    
8598    fi
8599  if test $ac_cv_header_png_h = yes; then  if test $ac_cv_header_png_h = yes; then
8600    echo "$as_me:7311: checking for png_get_channels in -lpng" >&5    echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8601  echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6  echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8602  if test "${ac_cv_lib_png_png_get_channels+set}" = set; then  if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8603    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7316  else Line 8605  else
8605    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
8606  LIBS="-lpng -lz -lm $LIBS"  LIBS="-lpng -lz -lm $LIBS"
8607  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
8608  #line 7319 "configure"  #line $LINENO "configure"
8609  #include "confdefs.h"  #include "confdefs.h"
8610    
8611  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7326  extern "C" Line 8615  extern "C"
8615  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8616     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8617  char png_get_channels ();  char png_get_channels ();
8618    #ifdef F77_DUMMY_MAIN
8619    #  ifdef __cplusplus
8620         extern "C"
8621    #  endif
8622       int F77_DUMMY_MAIN() { return 1; }
8623    #endif
8624  int  int
8625  main ()  main ()
8626  {  {
# Line 7335  png_get_channels (); Line 8630  png_get_channels ();
8630  }  }
8631  _ACEOF  _ACEOF
8632  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8633  if { (eval echo "$as_me:7338: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8635    ac_status=$?    ac_status=$?
8636    echo "$as_me:7341: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637    (exit $ac_status); } &&    (exit $ac_status); } &&
8638           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
8639    { (eval echo "$as_me:7344: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
8641    ac_status=$?    ac_status=$?
8642    echo "$as_me:7347: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
8644    ac_cv_lib_png_png_get_channels=yes    ac_cv_lib_png_png_get_channels=yes
8645  else  else
# Line 7355  fi Line 8650  fi
8650  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8651  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
8652  fi  fi
8653  echo "$as_me:7358: result: $ac_cv_lib_png_png_get_channels" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8654  echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6  echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8655  if test $ac_cv_lib_png_png_get_channels = yes; then  if test $ac_cv_lib_png_png_get_channels = yes; then
8656    HAVE_PNG=yes    HAVE_PNG=yes
# Line 7363  fi Line 8658  fi
8658    
8659  fi  fi
8660    
8661    
8662    fi    fi
8663    
8664    if test "${HAVE_PNG}" = "yes"; then    if test "${HAVE_PNG}" = "yes"; then
8665      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
8666  #define HAVE_PNG 1  #define HAVE_PNG 1
8667  EOF  _ACEOF
8668    
8669    fi    fi
8670  fi  fi
# Line 7377  fi Line 8673  fi
8673  HAVE_TIFF=no  HAVE_TIFF=no
8674  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
8675    if test "${with_tiff}" != "no"; then    if test "${with_tiff}" != "no"; then
8676      echo "$as_me:7380: checking for tiffio.h" >&5      if test "${ac_cv_header_tiffio_h+set}" = set; then
8677      echo "$as_me:$LINENO: checking for tiffio.h" >&5
8678  echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6  echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8679  if test "${ac_cv_header_tiffio_h+set}" = set; then  if test "${ac_cv_header_tiffio_h+set}" = set; then
8680    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8681    fi
8682    echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8683    echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8684  else  else
8685    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
8686  #line 7386 "configure"  echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8687    echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8688    cat >conftest.$ac_ext <<_ACEOF
8689    #line $LINENO "configure"
8690    #include "confdefs.h"
8691    $ac_includes_default
8692    #include <tiffio.h>
8693    _ACEOF
8694    rm -f conftest.$ac_objext
8695    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8696      (eval $ac_compile) 2>&5
8697      ac_status=$?
8698      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699      (exit $ac_status); } &&
8700             { ac_try='test -s conftest.$ac_objext'
8701      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702      (eval $ac_try) 2>&5
8703      ac_status=$?
8704      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705      (exit $ac_status); }; }; then
8706      ac_header_compiler=yes
8707    else
8708      echo "$as_me: failed program was:" >&5
8709    cat conftest.$ac_ext >&5
8710    ac_header_compiler=no
8711    fi
8712    rm -f conftest.$ac_objext conftest.$ac_ext
8713    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714    echo "${ECHO_T}$ac_header_compiler" >&6
8715    
8716    # Is the header present?
8717    echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8718    echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8719    cat >conftest.$ac_ext <<_ACEOF
8720    #line $LINENO "configure"
8721  #include "confdefs.h"  #include "confdefs.h"
8722  #include <tiffio.h>  #include <tiffio.h>
8723  _ACEOF  _ACEOF
8724  if { (eval echo "$as_me:7390: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8725    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726    ac_status=$?    ac_status=$?
8727    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
8728    rm -f conftest.er1    rm -f conftest.er1
8729    cat conftest.err >&5    cat conftest.err >&5
8730    echo "$as_me:7396: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
8732    if test -s conftest.err; then    if test -s conftest.err; then
8733      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7404  else Line 8738  else
8738    ac_cpp_err=yes    ac_cpp_err=yes
8739  fi  fi
8740  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
8741    ac_cv_header_tiffio_h=yes    ac_header_preproc=yes
8742  else  else
8743    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8744    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8745    ac_cv_header_tiffio_h=no    ac_header_preproc=no
8746  fi  fi
8747  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
8748    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749    echo "${ECHO_T}$ac_header_preproc" >&6
8750    
8751    # So?  What about this header?
8752    case $ac_header_compiler:$ac_header_preproc in
8753      yes:no )
8754        { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8755    echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756        { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8757    echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8758      no:yes )
8759        { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8760    echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8761        { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8762    echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8763        { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8764    echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8765    esac
8766    echo "$as_me:$LINENO: checking for tiffio.h" >&5
8767    echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8768    if test "${ac_cv_header_tiffio_h+set}" = set; then
8769      echo $ECHO_N "(cached) $ECHO_C" >&6
8770    else
8771      ac_cv_header_tiffio_h=$ac_header_preproc
8772  fi  fi
8773  echo "$as_me:7415: result: $ac_cv_header_tiffio_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8774  echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6  echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8775    
8776    fi
8777  if test $ac_cv_header_tiffio_h = yes; then  if test $ac_cv_header_tiffio_h = yes; then
8778    tifflibs="-lz -lm"    tifflibs="-lz -lm"
8779        # At least one tiff package requires the jpeg library.        # At least one tiff package requires the jpeg library.
8780        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8781        echo "$as_me:7421: checking for TIFFGetVersion in -ltiff" >&5        echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8782  echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6  echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8783  if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then  if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8784    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7426  else Line 8786  else
8786    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
8787  LIBS="-ltiff $tifflibs $LIBS"  LIBS="-ltiff $tifflibs $LIBS"
8788  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
8789  #line 7429 "configure"  #line $LINENO "configure"
8790  #include "confdefs.h"  #include "confdefs.h"
8791    
8792  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7436  extern "C" Line 8796  extern "C"
8796  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8797     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8798  char TIFFGetVersion ();  char TIFFGetVersion ();
8799    #ifdef F77_DUMMY_MAIN
8800    #  ifdef __cplusplus
8801         extern "C"
8802    #  endif
8803       int F77_DUMMY_MAIN() { return 1; }
8804    #endif
8805  int  int
8806  main ()  main ()
8807  {  {
# Line 7445  TIFFGetVersion (); Line 8811  TIFFGetVersion ();
8811  }  }
8812  _ACEOF  _ACEOF
8813  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8814  if { (eval echo "$as_me:7448: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8815    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8816    ac_status=$?    ac_status=$?
8817    echo "$as_me:7451: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818    (exit $ac_status); } &&    (exit $ac_status); } &&
8819           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
8820    { (eval echo "$as_me:7454: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
8822    ac_status=$?    ac_status=$?
8823    echo "$as_me:7457: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
8825    ac_cv_lib_tiff_TIFFGetVersion=yes    ac_cv_lib_tiff_TIFFGetVersion=yes
8826  else  else
# Line 7465  fi Line 8831  fi
8831  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8832  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
8833  fi  fi
8834  echo "$as_me:7468: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8835  echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6  echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8836  if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then  if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8837    HAVE_TIFF=yes    HAVE_TIFF=yes
# Line 7473  fi Line 8839  fi
8839    
8840  fi  fi
8841    
8842    
8843    fi    fi
8844    
8845    if test "${HAVE_TIFF}" = "yes"; then    if test "${HAVE_TIFF}" = "yes"; then
8846      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
8847  #define HAVE_TIFF 1  #define HAVE_TIFF 1
8848  EOF  _ACEOF
8849    
8850    fi    fi
8851  fi  fi
# Line 7487  fi Line 8854  fi
8854  HAVE_GIF=no  HAVE_GIF=no
8855  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
8856    if test "${with_gif}" != "no"; then    if test "${with_gif}" != "no"; then
8857      echo "$as_me:7490: checking for gif_lib.h" >&5      if test "${ac_cv_header_gif_lib_h+set}" = set; then
8858      echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8859  echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6  echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8860  if test "${ac_cv_header_gif_lib_h+set}" = set; then  if test "${ac_cv_header_gif_lib_h+set}" = set; then
8861    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
8862    fi
8863    echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8864    echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8865  else  else
8866    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
8867  #line 7496 "configure"  echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8868    echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8869    cat >conftest.$ac_ext <<_ACEOF
8870    #line $LINENO "configure"
8871    #include "confdefs.h"
8872    $ac_includes_default
8873    #include <gif_lib.h>
8874    _ACEOF
8875    rm -f conftest.$ac_objext
8876    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877      (eval $ac_compile) 2>&5
8878      ac_status=$?
8879      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880      (exit $ac_status); } &&
8881             { ac_try='test -s conftest.$ac_objext'
8882      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883      (eval $ac_try) 2>&5
8884      ac_status=$?
8885      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886      (exit $ac_status); }; }; then
8887      ac_header_compiler=yes
8888    else
8889      echo "$as_me: failed program was:" >&5
8890    cat conftest.$ac_ext >&5
8891    ac_header_compiler=no
8892    fi
8893    rm -f conftest.$ac_objext conftest.$ac_ext
8894    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8895    echo "${ECHO_T}$ac_header_compiler" >&6
8896    
8897    # Is the header present?
8898    echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8899    echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8900    cat >conftest.$ac_ext <<_ACEOF
8901    #line $LINENO "configure"
8902  #include "confdefs.h"  #include "confdefs.h"
8903  #include <gif_lib.h>  #include <gif_lib.h>
8904  _ACEOF  _ACEOF
8905  if { (eval echo "$as_me:7500: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8907    ac_status=$?    ac_status=$?
8908    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
8909    rm -f conftest.er1    rm -f conftest.er1
8910    cat conftest.err >&5    cat conftest.err >&5
8911    echo "$as_me:7506: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
8913    if test -s conftest.err; then    if test -s conftest.err; then
8914      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7514  else Line 8919  else
8919    ac_cpp_err=yes    ac_cpp_err=yes
8920  fi  fi
8921  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
8922    ac_cv_header_gif_lib_h=yes    ac_header_preproc=yes
8923  else  else
8924    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8925    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
8926    ac_cv_header_gif_lib_h=no    ac_header_preproc=no
8927  fi  fi
8928  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
8929    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8930    echo "${ECHO_T}$ac_header_preproc" >&6
8931    
8932    # So?  What about this header?
8933    case $ac_header_compiler:$ac_header_preproc in
8934      yes:no )
8935        { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8936    echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8937        { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8938    echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8939      no:yes )
8940        { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8941    echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8942        { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8943    echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8944        { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8945    echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8946    esac
8947    echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8948    echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8949    if test "${ac_cv_header_gif_lib_h+set}" = set; then
8950      echo $ECHO_N "(cached) $ECHO_C" >&6
8951    else
8952      ac_cv_header_gif_lib_h=$ac_header_preproc
8953  fi  fi
8954  echo "$as_me:7525: result: $ac_cv_header_gif_lib_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8955  echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6  echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8956    
8957    fi
8958  if test $ac_cv_header_gif_lib_h = yes; then  if test $ac_cv_header_gif_lib_h = yes; then
8959    # EGifPutExtensionLast only exists from version libungif-4.1.0b1.    # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8960  # Earlier versions can crash Emacs.  # Earlier versions can crash Emacs.
8961        echo "$as_me:7530: checking for EGifPutExtensionLast in -lungif" >&5        echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8962  echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6  echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8963  if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then  if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8964    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7535  else Line 8966  else
8966    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
8967  LIBS="-lungif  $LIBS"  LIBS="-lungif  $LIBS"
8968  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
8969  #line 7538 "configure"  #line $LINENO "configure"
8970  #include "confdefs.h"  #include "confdefs.h"
8971    
8972  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7545  extern "C" Line 8976  extern "C"
8976  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
8977     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
8978  char EGifPutExtensionLast ();  char EGifPutExtensionLast ();
8979    #ifdef F77_DUMMY_MAIN
8980    #  ifdef __cplusplus
8981         extern "C"
8982    #  endif
8983       int F77_DUMMY_MAIN() { return 1; }
8984    #endif
8985  int  int
8986  main ()  main ()
8987  {  {
# Line 7554  EGifPutExtensionLast (); Line 8991  EGifPutExtensionLast ();
8991  }  }
8992  _ACEOF  _ACEOF
8993  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
8994  if { (eval echo "$as_me:7557: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
8996    ac_status=$?    ac_status=$?
8997    echo "$as_me:7560: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998    (exit $ac_status); } &&    (exit $ac_status); } &&
8999           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9000    { (eval echo "$as_me:7563: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9002    ac_status=$?    ac_status=$?
9003    echo "$as_me:7566: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9005    ac_cv_lib_ungif_EGifPutExtensionLast=yes    ac_cv_lib_ungif_EGifPutExtensionLast=yes
9006  else  else
# Line 7574  fi Line 9011  fi
9011  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
9013  fi  fi
9014  echo "$as_me:7577: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9015  echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6  echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9016  if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then  if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9017    HAVE_GIF=yes    HAVE_GIF=yes
# Line 7582  fi Line 9019  fi
9019    
9020  fi  fi
9021    
9022    
9023    fi    fi
9024    
9025    if test "${HAVE_GIF}" = "yes"; then    if test "${HAVE_GIF}" = "yes"; then
9026      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9027  #define HAVE_GIF 1  #define HAVE_GIF 1
9028  EOF  _ACEOF
9029    
9030    fi    fi
9031  fi  fi
# Line 7595  fi Line 9033  fi
9033  ### Use session management (-lSM -lICE) if available  ### Use session management (-lSM -lICE) if available
9034  HAVE_X_SM=no  HAVE_X_SM=no
9035  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
9036    echo "$as_me:7598: checking for X11/SM/SMlib.h" >&5    if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9037      echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9038  echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6  echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9039  if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then  if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9040    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9041    fi
9042    echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9043    echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9044  else  else
9045    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
9046  #line 7604 "configure"  echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9047    echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9048    cat >conftest.$ac_ext <<_ACEOF
9049    #line $LINENO "configure"
9050    #include "confdefs.h"
9051    $ac_includes_default
9052    #include <X11/SM/SMlib.h>
9053    _ACEOF
9054    rm -f conftest.$ac_objext
9055    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056      (eval $ac_compile) 2>&5
9057      ac_status=$?
9058      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059      (exit $ac_status); } &&
9060             { ac_try='test -s conftest.$ac_objext'
9061      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062      (eval $ac_try) 2>&5
9063      ac_status=$?
9064      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065      (exit $ac_status); }; }; then
9066      ac_header_compiler=yes
9067    else
9068      echo "$as_me: failed program was:" >&5
9069    cat conftest.$ac_ext >&5
9070    ac_header_compiler=no
9071    fi
9072    rm -f conftest.$ac_objext conftest.$ac_ext
9073    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9074    echo "${ECHO_T}$ac_header_compiler" >&6
9075    
9076    # Is the header present?
9077    echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9078    echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9079    cat >conftest.$ac_ext <<_ACEOF
9080    #line $LINENO "configure"
9081  #include "confdefs.h"  #include "confdefs.h"
9082  #include <X11/SM/SMlib.h>  #include <X11/SM/SMlib.h>
9083  _ACEOF  _ACEOF
9084  if { (eval echo "$as_me:7608: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9085    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9086    ac_status=$?    ac_status=$?
9087    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
9088    rm -f conftest.er1    rm -f conftest.er1
9089    cat conftest.err >&5    cat conftest.err >&5
9090    echo "$as_me:7614: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
9092    if test -s conftest.err; then    if test -s conftest.err; then
9093      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 7622  else Line 9098  else
9098    ac_cpp_err=yes    ac_cpp_err=yes
9099  fi  fi
9100  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
9101    ac_cv_header_X11_SM_SMlib_h=yes    ac_header_preproc=yes
9102  else  else
9103    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9104    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
9105    ac_cv_header_X11_SM_SMlib_h=no    ac_header_preproc=no
9106  fi  fi
9107  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
9108    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9109    echo "${ECHO_T}$ac_header_preproc" >&6
9110    
9111    # So?  What about this header?
9112    case $ac_header_compiler:$ac_header_preproc in
9113      yes:no )
9114        { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9115    echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9116        { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9117    echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9118      no:yes )
9119        { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9120    echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9121        { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9122    echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9123        { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9124    echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9125    esac
9126    echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9127    echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9128    if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9129      echo $ECHO_N "(cached) $ECHO_C" >&6
9130    else
9131      ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9132  fi  fi
9133  echo "$as_me:7633: result: $ac_cv_header_X11_SM_SMlib_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9134  echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6  echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9135    
9136    fi
9137  if test $ac_cv_header_X11_SM_SMlib_h = yes; then  if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9138    echo "$as_me:7636: checking for SmcOpenConnection in -lSM" >&5    echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9139  echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6  echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9140  if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then  if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9141    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7641  else Line 9143  else
9143    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
9144  LIBS="-lSM  $LIBS"  LIBS="-lSM  $LIBS"
9145  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
9146  #line 7644 "configure"  #line $LINENO "configure"
9147  #include "confdefs.h"  #include "confdefs.h"
9148    
9149  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 7651  extern "C" Line 9153  extern "C"
9153  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
9154     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9155  char SmcOpenConnection ();  char SmcOpenConnection ();
9156    #ifdef F77_DUMMY_MAIN
9157    #  ifdef __cplusplus
9158         extern "C"
9159    #  endif
9160       int F77_DUMMY_MAIN() { return 1; }
9161    #endif
9162  int  int
9163  main ()  main ()
9164  {  {
# Line 7660  SmcOpenConnection (); Line 9168  SmcOpenConnection ();
9168  }  }
9169  _ACEOF  _ACEOF
9170  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9171  if { (eval echo "$as_me:7663: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9173    ac_status=$?    ac_status=$?
9174    echo "$as_me:7666: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175    (exit $ac_status); } &&    (exit $ac_status); } &&
9176           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9177    { (eval echo "$as_me:7669: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9179    ac_status=$?    ac_status=$?
9180    echo "$as_me:7672: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9182    ac_cv_lib_SM_SmcOpenConnection=yes    ac_cv_lib_SM_SmcOpenConnection=yes
9183  else  else
# Line 7680  fi Line 9188  fi
9188  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9189  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
9190  fi  fi
9191  echo "$as_me:7683: result: $ac_cv_lib_SM_SmcOpenConnection" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9192  echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6  echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9193  if test $ac_cv_lib_SM_SmcOpenConnection = yes; then  if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9194    HAVE_X_SM=yes    HAVE_X_SM=yes
# Line 7690  fi Line 9198  fi
9198    
9199  fi  fi
9200    
9201    
9202    
9203    if test "${HAVE_X_SM}" = "yes"; then    if test "${HAVE_X_SM}" = "yes"; then
9204      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
9205  #define HAVE_X_SM 1  #define HAVE_X_SM 1
9206  EOF  _ACEOF
9207    
9208      case "$LIBS" in      case "$LIBS" in
9209        *-lSM*) ;;        *-lSM*) ;;
# Line 7703  EOF Line 9213  EOF
9213  fi  fi
9214    
9215  # If netdb.h doesn't declare h_errno, we must declare it by hand.  # If netdb.h doesn't declare h_errno, we must declare it by hand.
9216  echo "$as_me:7706: checking whether netdb declares h_errno" >&5  echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9217  echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6  echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9218  if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then  if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9219    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9220  else  else
9221    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9222  #line 7712 "configure"  #line $LINENO "configure"
9223  #include "confdefs.h"  #include "confdefs.h"
9224  #include <netdb.h>  #include <netdb.h>
9225    #ifdef F77_DUMMY_MAIN
9226    #  ifdef __cplusplus
9227         extern "C"
9228    #  endif
9229       int F77_DUMMY_MAIN() { return 1; }
9230    #endif
9231  int  int
9232  main ()  main ()
9233  {  {
# Line 7721  return h_errno; Line 9237  return h_errno;
9237  }  }
9238  _ACEOF  _ACEOF
9239  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9240  if { (eval echo "$as_me:7724: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9242    ac_status=$?    ac_status=$?
9243    echo "$as_me:7727: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244    (exit $ac_status); } &&    (exit $ac_status); } &&
9245           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9246    { (eval echo "$as_me:7730: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9248    ac_status=$?    ac_status=$?
9249    echo "$as_me:7733: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9251    emacs_cv_netdb_declares_h_errno=yes    emacs_cv_netdb_declares_h_errno=yes
9252  else  else
# Line 7740  emacs_cv_netdb_declares_h_errno=no Line 9256  emacs_cv_netdb_declares_h_errno=no
9256  fi  fi
9257  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258  fi  fi
9259  echo "$as_me:7743: result: $emacs_cv_netdb_declares_h_errno" >&5  echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9260  echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6  echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9261  if test $emacs_cv_netdb_declares_h_errno = yes; then  if test $emacs_cv_netdb_declares_h_errno = yes; then
9262    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
9263  #define HAVE_H_ERRNO 1  #define HAVE_H_ERRNO 1
9264  EOF  _ACEOF
9265    
9266  fi  fi
9267    
9268  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9269  # for constant arguments.  Useless!  # for constant arguments.  Useless!
9270  echo "$as_me:7754: checking for working alloca.h" >&5  echo "$as_me:$LINENO: checking for working alloca.h" >&5
9271  echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6  echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9272  if test "${ac_cv_working_alloca_h+set}" = set; then  if test "${ac_cv_working_alloca_h+set}" = set; then
9273    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9274  else  else
9275    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9276  #line 7760 "configure"  #line $LINENO "configure"
9277  #include "confdefs.h"  #include "confdefs.h"
9278  #include <alloca.h>  #include <alloca.h>
9279    #ifdef F77_DUMMY_MAIN
9280    #  ifdef __cplusplus
9281         extern "C"
9282    #  endif
9283       int F77_DUMMY_MAIN() { return 1; }
9284    #endif
9285  int  int
9286  main ()  main ()
9287  {  {
# Line 7769  char *p = (char *) alloca (2 * sizeof (i Line 9291  char *p = (char *) alloca (2 * sizeof (i
9291  }  }
9292  _ACEOF  _ACEOF
9293  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9294  if { (eval echo "$as_me:7772: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9296    ac_status=$?    ac_status=$?
9297    echo "$as_me:7775: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298    (exit $ac_status); } &&    (exit $ac_status); } &&
9299           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9300    { (eval echo "$as_me:7778: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9302    ac_status=$?    ac_status=$?
9303    echo "$as_me:7781: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9305    ac_cv_working_alloca_h=yes    ac_cv_working_alloca_h=yes
9306  else  else
# Line 7788  ac_cv_working_alloca_h=no Line 9310  ac_cv_working_alloca_h=no
9310  fi  fi
9311  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9312  fi  fi
9313  echo "$as_me:7791: result: $ac_cv_working_alloca_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9314  echo "${ECHO_T}$ac_cv_working_alloca_h" >&6  echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9315  if test $ac_cv_working_alloca_h = yes; then  if test $ac_cv_working_alloca_h = yes; then
9316    
9317  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
9318  #define HAVE_ALLOCA_H 1  #define HAVE_ALLOCA_H 1
9319  EOF  _ACEOF
9320    
9321  fi  fi
9322    
9323  echo "$as_me:7801: checking for alloca" >&5  echo "$as_me:$LINENO: checking for alloca" >&5
9324  echo $ECHO_N "checking for alloca... $ECHO_C" >&6  echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9325  if test "${ac_cv_func_alloca_works+set}" = set; then  if test "${ac_cv_func_alloca_works+set}" = set; then
9326    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9327  else  else
9328    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9329  #line 7807 "configure"  #line $LINENO "configure"
9330  #include "confdefs.h"  #include "confdefs.h"
9331  #ifdef __GNUC__  #ifdef __GNUC__
9332  # define alloca __builtin_alloca  # define alloca __builtin_alloca
# Line 7827  char *alloca (); Line 9349  char *alloca ();
9349  # endif  # endif
9350  #endif  #endif
9351    
9352    #ifdef F77_DUMMY_MAIN
9353    #  ifdef __cplusplus
9354         extern "C"
9355    #  endif
9356       int F77_DUMMY_MAIN() { return 1; }
9357    #endif
9358  int  int
9359  main ()  main ()
9360  {  {
# Line 7836  char *p = (char *) alloca (1); Line 9364  char *p = (char *) alloca (1);
9364  }  }
9365  _ACEOF  _ACEOF
9366  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9367  if { (eval echo "$as_me:7839: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9369    ac_status=$?    ac_status=$?
9370    echo "$as_me:7842: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371    (exit $ac_status); } &&    (exit $ac_status); } &&
9372           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9373    { (eval echo "$as_me:7845: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9375    ac_status=$?    ac_status=$?
9376    echo "$as_me:7848: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9378    ac_cv_func_alloca_works=yes    ac_cv_func_alloca_works=yes
9379  else  else
# Line 7855  ac_cv_func_alloca_works=no Line 9383  ac_cv_func_alloca_works=no
9383  fi  fi
9384  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385  fi  fi
9386  echo "$as_me:7858: result: $ac_cv_func_alloca_works" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9387  echo "${ECHO_T}$ac_cv_func_alloca_works" >&6  echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9388    
9389  if test $ac_cv_func_alloca_works = yes; then  if test $ac_cv_func_alloca_works = yes; then
9390    
9391  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
9392  #define HAVE_ALLOCA 1  #define HAVE_ALLOCA 1
9393  EOF  _ACEOF
9394    
9395  else  else
9396    # The SVR3 libPW and SVR4 libucb both contain incompatible functions    # The SVR3 libPW and SVR4 libucb both contain incompatible functions
# Line 7872  else Line 9400  else
9400    
9401  ALLOCA=alloca.$ac_objext  ALLOCA=alloca.$ac_objext
9402    
9403  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
9404  #define C_ALLOCA 1  #define C_ALLOCA 1
9405  EOF  _ACEOF
9406    
9407    
9408  echo "$as_me:7879: checking whether \`alloca.c' needs Cray hooks" >&5  echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9409  echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6  echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9410  if test "${ac_cv_os_cray+set}" = set; then  if test "${ac_cv_os_cray+set}" = set; then
9411    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9412  else  else
9413    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9414  #line 7885 "configure"  #line $LINENO "configure"
9415  #include "confdefs.h"  #include "confdefs.h"
9416  #if defined(CRAY) && ! defined(CRAY2)  #if defined(CRAY) && ! defined(CRAY2)
9417  webecray  webecray
# Line 7900  fi Line 9429  fi
9429  rm -f conftest*  rm -f conftest*
9430    
9431  fi  fi
9432  echo "$as_me:7903: result: $ac_cv_os_cray" >&5  echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9433  echo "${ECHO_T}$ac_cv_os_cray" >&6  echo "${ECHO_T}$ac_cv_os_cray" >&6
9434  if test $ac_cv_os_cray = yes; then  if test $ac_cv_os_cray = yes; then
9435    for ac_func in _getb67 GETB67 getb67; do    for ac_func in _getb67 GETB67 getb67; do
9436      as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`      as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9437  echo "$as_me:7908: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
9438  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9439  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
9440    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9441  else  else
9442    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9443  #line 7914 "configure"  #line $LINENO "configure"
9444  #include "confdefs.h"  #include "confdefs.h"
9445  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9446      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 7925  extern "C" Line 9454  extern "C"
9454  char $ac_func ();  char $ac_func ();
9455  char (*f) ();  char (*f) ();
9456    
9457    #ifdef F77_DUMMY_MAIN
9458    #  ifdef __cplusplus
9459         extern "C"
9460    #  endif
9461       int F77_DUMMY_MAIN() { return 1; }
9462    #endif
9463  int  int
9464  main ()  main ()
9465  {  {
# Line 7942  f = $ac_func; Line 9477  f = $ac_func;
9477  }  }
9478  _ACEOF  _ACEOF
9479  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9480  if { (eval echo "$as_me:7945: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9482    ac_status=$?    ac_status=$?
9483    echo "$as_me:7948: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484    (exit $ac_status); } &&    (exit $ac_status); } &&
9485           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9486    { (eval echo "$as_me:7951: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9488    ac_status=$?    ac_status=$?
9489    echo "$as_me:7954: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9491    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
9492  else  else
# Line 7961  eval "$as_ac_var=no" Line 9496  eval "$as_ac_var=no"
9496  fi  fi
9497  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9498  fi  fi
9499  echo "$as_me:7964: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9500  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9501  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
9502    
9503  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
9504  #define CRAY_STACKSEG_END $ac_func  #define CRAY_STACKSEG_END $ac_func
9505  EOF  _ACEOF
9506    
9507      break      break
9508  fi  fi
# Line 7975  fi Line 9510  fi
9510    done    done
9511  fi  fi
9512    
9513  echo "$as_me:7978: checking stack direction for C alloca" >&5  echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9514  echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6  echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9515  if test "${ac_cv_c_stack_direction+set}" = set; then  if test "${ac_cv_c_stack_direction+set}" = set; then
9516    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 7984  else Line 9519  else
9519    ac_cv_c_stack_direction=0    ac_cv_c_stack_direction=0
9520  else  else
9521    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9522  #line 7987 "configure"  #line $LINENO "configure"
9523  #include "confdefs.h"  #include "confdefs.h"
9524  int  int
9525  find_stack_direction ()  find_stack_direction ()
# Line 8007  main () Line 9542  main ()
9542  }  }
9543  _ACEOF  _ACEOF
9544  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
9545  if { (eval echo "$as_me:8010: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9547    ac_status=$?    ac_status=$?
9548    echo "$as_me:8013: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9550    { (eval echo "$as_me:8015: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9552    ac_status=$?    ac_status=$?
9553    echo "$as_me:8018: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9555    ac_cv_c_stack_direction=1    ac_cv_c_stack_direction=1
9556  else  else
9557    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
9558  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
9559  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
9560    ( exit $ac_status )
9561  ac_cv_c_stack_direction=-1  ac_cv_c_stack_direction=-1
9562  fi  fi
9563  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9564  fi  fi
9565  fi  fi
9566  echo "$as_me:8030: result: $ac_cv_c_stack_direction" >&5  echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9567  echo "${ECHO_T}$ac_cv_c_stack_direction" >&6  echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9568    
9569  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
9570  #define STACK_DIRECTION $ac_cv_c_stack_direction  #define STACK_DIRECTION $ac_cv_c_stack_direction
9571  EOF  _ACEOF
9572    
9573    
9574  fi  fi
9575    
9576    
9577  # fmod, logb, and frexp are found in -lm on most systems.  # fmod, logb, and frexp are found in -lm on most systems.
9578  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9579    
9580  echo "$as_me:8042: checking for sqrt in -lm" >&5  echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9581  echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6  echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9582  if test "${ac_cv_lib_m_sqrt+set}" = set; then  if test "${ac_cv_lib_m_sqrt+set}" = set; then
9583    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8047  else Line 9585  else
9585    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
9586  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
9587  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
9588  #line 8050 "configure"  #line $LINENO "configure"
9589  #include "confdefs.h"  #include "confdefs.h"
9590    
9591  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 8057  extern "C" Line 9595  extern "C"
9595  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
9596     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9597  char sqrt ();  char sqrt ();
9598    #ifdef F77_DUMMY_MAIN
9599    #  ifdef __cplusplus
9600         extern "C"
9601    #  endif
9602       int F77_DUMMY_MAIN() { return 1; }
9603    #endif
9604  int  int
9605  main ()  main ()
9606  {  {
# Line 8066  sqrt (); Line 9610  sqrt ();
9610  }  }
9611  _ACEOF  _ACEOF
9612  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9613  if { (eval echo "$as_me:8069: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9615    ac_status=$?    ac_status=$?
9616    echo "$as_me:8072: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617    (exit $ac_status); } &&    (exit $ac_status); } &&
9618           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9619    { (eval echo "$as_me:8075: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9621    ac_status=$?    ac_status=$?
9622    echo "$as_me:8078: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9624    ac_cv_lib_m_sqrt=yes    ac_cv_lib_m_sqrt=yes
9625  else  else
# Line 8086  fi Line 9630  fi
9630  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9631  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
9632  fi  fi
9633  echo "$as_me:8089: result: $ac_cv_lib_m_sqrt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9634  echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6  echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9635  if test $ac_cv_lib_m_sqrt = yes; then  if test $ac_cv_lib_m_sqrt = yes; then
9636    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
9637  #define HAVE_LIBM 1  #define HAVE_LIBM 1
9638  EOF  _ACEOF
9639    
9640    LIBS="-lm $LIBS"    LIBS="-lm $LIBS"
9641    
9642  fi  fi
9643    
9644    
9645  # Check for mail-locking functions in a "mail" library  # Check for mail-locking functions in a "mail" library
9646    
9647  echo "$as_me:8102: checking for maillock in -lmail" >&5  echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9648  echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6  echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9649  if test "${ac_cv_lib_mail_maillock+set}" = set; then  if test "${ac_cv_lib_mail_maillock+set}" = set; then
9650    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8107  else Line 9652  else
9652    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
9653  LIBS="-lmail  $LIBS"  LIBS="-lmail  $LIBS"
9654  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
9655  #line 8110 "configure"  #line $LINENO "configure"
9656  #include "confdefs.h"  #include "confdefs.h"
9657    
9658  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 8117  extern "C" Line 9662  extern "C"
9662  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
9663     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9664  char maillock ();  char maillock ();
9665    #ifdef F77_DUMMY_MAIN
9666    #  ifdef __cplusplus
9667         extern "C"
9668    #  endif
9669       int F77_DUMMY_MAIN() { return 1; }
9670    #endif
9671  int  int
9672  main ()  main ()
9673  {  {
# Line 8126  maillock (); Line 9677  maillock ();
9677  }  }
9678  _ACEOF  _ACEOF
9679  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9680  if { (eval echo "$as_me:8129: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9682    ac_status=$?    ac_status=$?
9683    echo "$as_me:8132: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684    (exit $ac_status); } &&    (exit $ac_status); } &&
9685           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9686    { (eval echo "$as_me:8135: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9688    ac_status=$?    ac_status=$?
9689    echo "$as_me:8138: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9691    ac_cv_lib_mail_maillock=yes    ac_cv_lib_mail_maillock=yes
9692  else  else
# Line 8146  fi Line 9697  fi
9697  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9698  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
9699  fi  fi
9700  echo "$as_me:8149: result: $ac_cv_lib_mail_maillock" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9701  echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6  echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9702  if test $ac_cv_lib_mail_maillock = yes; then  if test $ac_cv_lib_mail_maillock = yes; then
9703    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
9704  #define HAVE_LIBMAIL 1  #define HAVE_LIBMAIL 1
9705  EOF  _ACEOF
9706    
9707    LIBS="-lmail $LIBS"    LIBS="-lmail $LIBS"
9708    
9709  fi  fi
9710    
9711  echo "$as_me:8160: checking for maillock in -llockfile" >&5  
9712    echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9713  echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6  echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9714  if test "${ac_cv_lib_lockfile_maillock+set}" = set; then  if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9715    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8165  else Line 9717  else
9717    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
9718  LIBS="-llockfile  $LIBS"  LIBS="-llockfile  $LIBS"
9719  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
9720  #line 8168 "configure"  #line $LINENO "configure"
9721  #include "confdefs.h"  #include "confdefs.h"
9722    
9723  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 8175  extern "C" Line 9727  extern "C"
9727  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
9728     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
9729  char maillock ();  char maillock ();
9730    #ifdef F77_DUMMY_MAIN
9731    #  ifdef __cplusplus
9732         extern "C"
9733    #  endif
9734       int F77_DUMMY_MAIN() { return 1; }
9735    #endif
9736  int  int
9737  main ()  main ()
9738  {  {
# Line 8184  maillock (); Line 9742  maillock ();
9742  }  }
9743  _ACEOF  _ACEOF
9744  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9745  if { (eval echo "$as_me:8187: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9747    ac_status=$?    ac_status=$?
9748    echo "$as_me:8190: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749    (exit $ac_status); } &&    (exit $ac_status); } &&
9750           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9751    { (eval echo "$as_me:8193: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9753    ac_status=$?    ac_status=$?
9754    echo "$as_me:8196: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9756    ac_cv_lib_lockfile_maillock=yes    ac_cv_lib_lockfile_maillock=yes
9757  else  else
# Line 8204  fi Line 9762  fi
9762  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
9764  fi  fi
9765  echo "$as_me:8207: result: $ac_cv_lib_lockfile_maillock" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9766  echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6  echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9767  if test $ac_cv_lib_lockfile_maillock = yes; then  if test $ac_cv_lib_lockfile_maillock = yes; then
9768    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
9769  #define HAVE_LIBLOCKFILE 1  #define HAVE_LIBLOCKFILE 1
9770  EOF  _ACEOF
9771    
9772    LIBS="-llockfile $LIBS"    LIBS="-llockfile $LIBS"
9773    
# Line 8221  fi Line 9779  fi
9779  if test "$ac_cv_lib_lockfile_maillock" = no; then  if test "$ac_cv_lib_lockfile_maillock" = no; then
9780        # Extract the first word of "liblockfile.so", so it can be a program name with args.        # Extract the first word of "liblockfile.so", so it can be a program name with args.
9781  set dummy liblockfile.so; ac_word=$2  set dummy liblockfile.so; ac_word=$2
9782  echo "$as_me:8224: checking for $ac_word" >&5  echo "$as_me:$LINENO: checking for $ac_word" >&5
9783  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9784  if test "${ac_cv_prog_liblockfile+set}" = set; then  if test "${ac_cv_prog_liblockfile+set}" = set; then
9785    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8229  else Line 9787  else
9787    if test -n "$liblockfile"; then    if test -n "$liblockfile"; then
9788    ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.    ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9789  else  else
9790    ac_save_IFS=$IFS; IFS=$ac_path_separator  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791  ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"  for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH
9792  for ac_dir in $ac_dummy; do  do
9793    IFS=$ac_save_IFS    IFS=$as_save_IFS
9794    test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
9795    $as_executable_p "$ac_dir/$ac_word" || continue    for ac_exec_ext in '' $ac_executable_extensions; do
9796  ac_cv_prog_liblockfile="yes"    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9797  echo "$as_me:8239: found $ac_dir/$ac_word" >&5      ac_cv_prog_liblockfile="yes"
9798  break      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9799        break 2
9800      fi
9801    done
9802  done  done
9803    
9804    test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"    test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
# Line 8245  fi Line 9806  fi
9806  fi  fi
9807  liblockfile=$ac_cv_prog_liblockfile  liblockfile=$ac_cv_prog_liblockfile
9808  if test -n "$liblockfile"; then  if test -n "$liblockfile"; then
9809    echo "$as_me:8248: result: $liblockfile" >&5    echo "$as_me:$LINENO: result: $liblockfile" >&5
9810  echo "${ECHO_T}$liblockfile" >&6  echo "${ECHO_T}$liblockfile" >&6
9811  else  else
9812    echo "$as_me:8251: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
9813  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
9814  fi  fi
9815    
9816    if test $ac_cv_prog_liblockfile = yes; then    if test $ac_cv_prog_liblockfile = yes; then
9817      { { echo "$as_me:8256: error: Shared liblockfile found but can't link against it.      { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9818  This probably means that movemail could lose mail.  This probably means that movemail could lose mail.
9819  There may be a \`development' package to install containing liblockfile." >&5  There may be a \`development' package to install containing liblockfile." >&5
9820  echo "$as_me: error: Shared liblockfile found but can't link against it.  echo "$as_me: error: Shared liblockfile found but can't link against it.
9821  This probably means that movemail could lose mail.  This probably means that movemail could lose mail.
9822  There may be a \`development' package to install containing liblockfile." >&2;}  There may be a \`development' package to install containing liblockfile." >&2;}
9823     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
9824    else cat >>confdefs.h <<\EOF    else cat >>confdefs.h <<\_ACEOF
9825  #define LIBMAIL -llockfile  #define LIBMAIL -llockfile
9826  EOF  _ACEOF
9827    
9828    fi    fi
9829    else :    else :
# Line 8271  fi Line 9832  fi
9832  for ac_func in touchlock  for ac_func in touchlock
9833  do  do
9834  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9835  echo "$as_me:8274: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
9836  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9837  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
9838    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9839  else  else
9840    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
9841  #line 8280 "configure"  #line $LINENO "configure"
9842  #include "confdefs.h"  #include "confdefs.h"
9843  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
9844      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 8291  extern "C" Line 9852  extern "C"
9852  char $ac_func ();  char $ac_func ();
9853  char (*f) ();  char (*f) ();
9854    
9855    #ifdef F77_DUMMY_MAIN
9856    #  ifdef __cplusplus
9857         extern "C"
9858    #  endif
9859       int F77_DUMMY_MAIN() { return 1; }
9860    #endif
9861  int  int
9862  main ()  main ()
9863  {  {
# Line 8308  f = $ac_func; Line 9875  f = $ac_func;
9875  }  }
9876  _ACEOF  _ACEOF
9877  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
9878  if { (eval echo "$as_me:8311: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
9880    ac_status=$?    ac_status=$?
9881    echo "$as_me:8314: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882    (exit $ac_status); } &&    (exit $ac_status); } &&
9883           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
9884    { (eval echo "$as_me:8317: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
9886    ac_status=$?    ac_status=$?
9887    echo "$as_me:8320: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
9889    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
9890  else  else
# Line 8327  eval "$as_ac_var=no" Line 9894  eval "$as_ac_var=no"
9894  fi  fi
9895  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896  fi  fi
9897  echo "$as_me:8330: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9898  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9899  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
9900    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
9901  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9902  EOF  _ACEOF
9903    
9904  fi  fi
9905  done  done
9906    
9907    
9908  for ac_header in maillock.h  for ac_header in maillock.h
9909  do  do
9910  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9911  echo "$as_me:8343: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9912      echo "$as_me:$LINENO: checking for $ac_header" >&5
9913  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9914  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
9915    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9916    fi
9917    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9918    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9919  else  else
9920    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
9921  #line 8349 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
9922    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9923    cat >conftest.$ac_ext <<_ACEOF
9924    #line $LINENO "configure"
9925    #include "confdefs.h"
9926    $ac_includes_default
9927    #include <$ac_header>
9928    _ACEOF
9929    rm -f conftest.$ac_objext
9930    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931      (eval $ac_compile) 2>&5
9932      ac_status=$?
9933      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934      (exit $ac_status); } &&
9935             { ac_try='test -s conftest.$ac_objext'
9936      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937      (eval $ac_try) 2>&5
9938      ac_status=$?
9939      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940      (exit $ac_status); }; }; then
9941      ac_header_compiler=yes
9942    else
9943      echo "$as_me: failed program was:" >&5
9944    cat conftest.$ac_ext >&5
9945    ac_header_compiler=no
9946    fi
9947    rm -f conftest.$ac_objext conftest.$ac_ext
9948    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9949    echo "${ECHO_T}$ac_header_compiler" >&6
9950    
9951    # Is the header present?
9952    echo "$as_me:$LINENO: checking $ac_header presence" >&5
9953    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9954    cat >conftest.$ac_ext <<_ACEOF
9955    #line $LINENO "configure"
9956  #include "confdefs.h"  #include "confdefs.h"
9957  #include <$ac_header>  #include <$ac_header>
9958  _ACEOF  _ACEOF
9959  if { (eval echo "$as_me:8353: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9960    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9961    ac_status=$?    ac_status=$?
9962    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
9963    rm -f conftest.er1    rm -f conftest.er1
9964    cat conftest.err >&5    cat conftest.err >&5
9965    echo "$as_me:8359: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
9967    if test -s conftest.err; then    if test -s conftest.err; then
9968      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 8367  else Line 9973  else
9973    ac_cpp_err=yes    ac_cpp_err=yes
9974  fi  fi
9975  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
9976    eval "$as_ac_Header=yes"    ac_header_preproc=yes
9977  else  else
9978    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
9979    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
9980    eval "$as_ac_Header=no"    ac_header_preproc=no
9981  fi  fi
9982  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
9983    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9984    echo "${ECHO_T}$ac_header_preproc" >&6
9985    
9986    # So?  What about this header?
9987    case $ac_header_compiler:$ac_header_preproc in
9988      yes:no )
9989        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9993      no:yes )
9994        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9995    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9996        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9997    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9998        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9999    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10000    esac
10001    echo "$as_me:$LINENO: checking for $ac_header" >&5
10002    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10003    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10004      echo $ECHO_N "(cached) $ECHO_C" >&6
10005    else
10006      eval "$as_ac_Header=$ac_header_preproc"
10007  fi  fi
10008  echo "$as_me:8378: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10009  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10010    
10011    fi
10012  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
10013    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10014  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10015  EOF  _ACEOF
10016    
10017  fi  fi
10018    
10019  done  done
10020    
10021    
10022    
10023    
10024    
10025    
10026    
10027    
10028    
10029    
10030    
10031    
10032    
10033    
10034    
10035    
10036    
10037    
10038    
10039    
10040    
10041    
10042    
10043    
10044    
10045    
10046    
10047    
10048    
10049    
10050    
10051    
10052    
10053    
10054    
10055    
10056    
10057    
10058    
10059    
10060    
10061    
10062    
10063    
10064    
10065    
10066    
10067    
10068    
10069    
10070    
10071    
10072    
10073    
10074    
10075    
10076    
10077  for ac_func in gethostname getdomainname dup2 \  for ac_func in gethostname getdomainname dup2 \
10078  rename closedir mkdir rmdir sysinfo \  rename closedir mkdir rmdir sysinfo \
10079  random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \  random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
# Line 8392  strerror fpathconf select mktime euidacc Line 10081  strerror fpathconf select mktime euidacc
10081  utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \  utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10082  __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \  __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10083  sendto recvfrom getsockopt setsockopt getsockname getpeername \  sendto recvfrom getsockopt setsockopt getsockname getpeername \
10084  gai_strerror mkstemp  gai_strerror mkstemp getline getdelim
10085  do  do
10086  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10087  echo "$as_me:8398: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
10088  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10089  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
10090    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10091  else  else
10092    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
10093  #line 8404 "configure"  #line $LINENO "configure"
10094  #include "confdefs.h"  #include "confdefs.h"
10095  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10096      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 8415  extern "C" Line 10104  extern "C"
10104  char $ac_func ();  char $ac_func ();
10105  char (*f) ();  char (*f) ();
10106    
10107    #ifdef F77_DUMMY_MAIN
10108    #  ifdef __cplusplus
10109         extern "C"
10110    #  endif
10111       int F77_DUMMY_MAIN() { return 1; }
10112    #endif
10113  int  int
10114  main ()  main ()
10115  {  {
# Line 8432  f = $ac_func; Line 10127  f = $ac_func;
10127  }  }
10128  _ACEOF  _ACEOF
10129  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10130  if { (eval echo "$as_me:8435: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10132    ac_status=$?    ac_status=$?
10133    echo "$as_me:8438: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134    (exit $ac_status); } &&    (exit $ac_status); } &&
10135           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10136    { (eval echo "$as_me:8441: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10138    ac_status=$?    ac_status=$?
10139    echo "$as_me:8444: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10141    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
10142  else  else
# Line 8451  eval "$as_ac_var=no" Line 10146  eval "$as_ac_var=no"
10146  fi  fi
10147  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10148  fi  fi
10149  echo "$as_me:8454: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10150  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10151  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
10152    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10153  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10154  EOF  _ACEOF
10155    
10156  fi  fi
10157  done  done
10158    
10159    
10160    
10161  for ac_header in sys/un.h  for ac_header in sys/un.h
10162  do  do
10163  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10164  echo "$as_me:8467: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10165      echo "$as_me:$LINENO: checking for $ac_header" >&5
10166  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10167  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10168    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10169    fi
10170    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10171    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10172  else  else
10173    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
10174  #line 8473 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10175    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10176    cat >conftest.$ac_ext <<_ACEOF
10177    #line $LINENO "configure"
10178    #include "confdefs.h"
10179    $ac_includes_default
10180    #include <$ac_header>
10181    _ACEOF
10182    rm -f conftest.$ac_objext
10183    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184      (eval $ac_compile) 2>&5
10185      ac_status=$?
10186      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187      (exit $ac_status); } &&
10188             { ac_try='test -s conftest.$ac_objext'
10189      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190      (eval $ac_try) 2>&5
10191      ac_status=$?
10192      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193      (exit $ac_status); }; }; then
10194      ac_header_compiler=yes
10195    else
10196      echo "$as_me: failed program was:" >&5
10197    cat conftest.$ac_ext >&5
10198    ac_header_compiler=no
10199    fi
10200    rm -f conftest.$ac_objext conftest.$ac_ext
10201    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10202    echo "${ECHO_T}$ac_header_compiler" >&6
10203    
10204    # Is the header present?
10205    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10206    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10207    cat >conftest.$ac_ext <<_ACEOF
10208    #line $LINENO "configure"
10209  #include "confdefs.h"  #include "confdefs.h"
10210  #include <$ac_header>  #include <$ac_header>
10211  _ACEOF  _ACEOF
10212  if { (eval echo "$as_me:8477: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10213    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10214    ac_status=$?    ac_status=$?
10215    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
10216    rm -f conftest.er1    rm -f conftest.er1
10217    cat conftest.err >&5    cat conftest.err >&5
10218    echo "$as_me:8483: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
10220    if test -s conftest.err; then    if test -s conftest.err; then
10221      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 8491  else Line 10226  else
10226    ac_cpp_err=yes    ac_cpp_err=yes
10227  fi  fi
10228  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
10229    eval "$as_ac_Header=yes"    ac_header_preproc=yes
10230  else  else
10231    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10232    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
10233    eval "$as_ac_Header=no"    ac_header_preproc=no
10234  fi  fi
10235  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
10236    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10237    echo "${ECHO_T}$ac_header_preproc" >&6
10238    
10239    # So?  What about this header?
10240    case $ac_header_compiler:$ac_header_preproc in
10241      yes:no )
10242        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10245    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10246      no:yes )
10247        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10252    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10253    esac
10254    echo "$as_me:$LINENO: checking for $ac_header" >&5
10255    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257      echo $ECHO_N "(cached) $ECHO_C" >&6
10258    else
10259      eval "$as_ac_Header=$ac_header_preproc"
10260  fi  fi
10261  echo "$as_me:8502: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10262  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10263    
10264    fi
10265  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
10266    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10267  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268  EOF  _ACEOF
10269    
10270  fi  fi
10271    
10272  done  done
10273    
10274    
10275    
10276    
10277  for ac_header in sys/time.h unistd.h  for ac_header in sys/time.h unistd.h
10278  do  do
10279  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280  echo "$as_me:8515: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10281      echo "$as_me:$LINENO: checking for $ac_header" >&5
10282  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10283  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
10284    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10285    fi
10286    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10287    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10288  else  else
10289    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
10290  #line 8521 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
10291    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10292    cat >conftest.$ac_ext <<_ACEOF
10293    #line $LINENO "configure"
10294    #include "confdefs.h"
10295    $ac_includes_default
10296    #include <$ac_header>
10297    _ACEOF
10298    rm -f conftest.$ac_objext
10299    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300      (eval $ac_compile) 2>&5
10301      ac_status=$?
10302      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303      (exit $ac_status); } &&
10304             { ac_try='test -s conftest.$ac_objext'
10305      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306      (eval $ac_try) 2>&5
10307      ac_status=$?
10308      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309      (exit $ac_status); }; }; then
10310      ac_header_compiler=yes
10311    else
10312      echo "$as_me: failed program was:" >&5
10313    cat conftest.$ac_ext >&5
10314    ac_header_compiler=no
10315    fi
10316    rm -f conftest.$ac_objext conftest.$ac_ext
10317    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10318    echo "${ECHO_T}$ac_header_compiler" >&6
10319    
10320    # Is the header present?
10321    echo "$as_me:$LINENO: checking $ac_header presence" >&5
10322    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10323    cat >conftest.$ac_ext <<_ACEOF
10324    #line $LINENO "configure"
10325  #include "confdefs.h"  #include "confdefs.h"
10326  #include <$ac_header>  #include <$ac_header>
10327  _ACEOF  _ACEOF
10328  if { (eval echo "$as_me:8525: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10329    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330    ac_status=$?    ac_status=$?
10331    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
10332    rm -f conftest.er1    rm -f conftest.er1
10333    cat conftest.err >&5    cat conftest.err >&5
10334    echo "$as_me:8531: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
10336    if test -s conftest.err; then    if test -s conftest.err; then
10337      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 8539  else Line 10342  else
10342    ac_cpp_err=yes    ac_cpp_err=yes
10343  fi  fi
10344  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
10345    eval "$as_ac_Header=yes"    ac_header_preproc=yes
10346  else  else
10347    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
10348    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
10349    eval "$as_ac_Header=no"    ac_header_preproc=no
10350  fi  fi
10351  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
10352    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10353    echo "${ECHO_T}$ac_header_preproc" >&6
10354    
10355    # So?  What about this header?
10356    case $ac_header_compiler:$ac_header_preproc in
10357      yes:no )
10358        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10359    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10360        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10362      no:yes )
10363        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10368    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10369    esac
10370    echo "$as_me:$LINENO: checking for $ac_header" >&5
10371    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10372    if eval "test \"\${$as_ac_Header+set}\" = set"; then
10373      echo $ECHO_N "(cached) $ECHO_C" >&6
10374    else
10375      eval "$as_ac_Header=$ac_header_preproc"
10376  fi  fi
10377  echo "$as_me:8550: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10378  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379    
10380    fi
10381  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
10382    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10383  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10384  EOF  _ACEOF
10385    
10386  fi  fi
10387    
10388  done  done
10389    
10390    
10391  for ac_func in alarm  for ac_func in alarm
10392  do  do
10393  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394  echo "$as_me:8563: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
10395  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10396  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
10397    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10398  else  else
10399    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
10400  #line 8569 "configure"  #line $LINENO "configure"
10401  #include "confdefs.h"  #include "confdefs.h"
10402  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10403      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 8580  extern "C" Line 10411  extern "C"
10411  char $ac_func ();  char $ac_func ();
10412  char (*f) ();  char (*f) ();
10413    
10414    #ifdef F77_DUMMY_MAIN
10415    #  ifdef __cplusplus
10416         extern "C"
10417    #  endif
10418       int F77_DUMMY_MAIN() { return 1; }
10419    #endif
10420  int  int
10421  main ()  main ()
10422  {  {
# Line 8597  f = $ac_func; Line 10434  f = $ac_func;
10434  }  }
10435  _ACEOF  _ACEOF
10436  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10437  if { (eval echo "$as_me:8600: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10439    ac_status=$?    ac_status=$?
10440    echo "$as_me:8603: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441    (exit $ac_status); } &&    (exit $ac_status); } &&
10442           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10443    { (eval echo "$as_me:8606: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10445    ac_status=$?    ac_status=$?
10446    echo "$as_me:8609: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10448    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
10449  else  else
# Line 8616  eval "$as_ac_var=no" Line 10453  eval "$as_ac_var=no"
10453  fi  fi
10454  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10455  fi  fi
10456  echo "$as_me:8619: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10457  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10458  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
10459    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10460  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10461  EOF  _ACEOF
10462    
10463  fi  fi
10464  done  done
10465    
10466  echo "$as_me:8629: checking for working mktime" >&5  echo "$as_me:$LINENO: checking for working mktime" >&5
10467  echo $ECHO_N "checking for working mktime... $ECHO_C" >&6  echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10468  if test "${ac_cv_func_working_mktime+set}" = set; then  if test "${ac_cv_func_working_mktime+set}" = set; then
10469    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8635  else Line 10472  else
10472    ac_cv_func_working_mktime=no    ac_cv_func_working_mktime=no
10473  else  else
10474    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
10475  #line 8638 "configure"  #line $LINENO "configure"
10476  #include "confdefs.h"  #include "confdefs.h"
10477  /* Test program from Paul Eggert and Tony Leneis.  */  /* Test program from Paul Eggert and Tony Leneis.  */
10478  #if TIME_WITH_SYS_TIME  #if TIME_WITH_SYS_TIME
# Line 8784  main () Line 10621  main ()
10621  }  }
10622  _ACEOF  _ACEOF
10623  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
10624  if { (eval echo "$as_me:8787: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10626    ac_status=$?    ac_status=$?
10627    echo "$as_me:8790: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10629    { (eval echo "$as_me:8792: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10631    ac_status=$?    ac_status=$?
10632    echo "$as_me:8795: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10634    ac_cv_func_working_mktime=yes    ac_cv_func_working_mktime=yes
10635  else  else
10636    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
10637  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
10638  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
10639    ( exit $ac_status )
10640  ac_cv_func_working_mktime=no  ac_cv_func_working_mktime=no
10641  fi  fi
10642  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10643  fi  fi
10644  fi  fi
10645  echo "$as_me:8807: result: $ac_cv_func_working_mktime" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10646  echo "${ECHO_T}$ac_cv_func_working_mktime" >&6  echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10647  if test $ac_cv_func_working_mktime = no; then  if test $ac_cv_func_working_mktime = no; then
10648    LIBOBJS="$LIBOBJS mktime.$ac_objext"    LIBOBJS="$LIBOBJS mktime.$ac_objext"
10649  fi  fi
10650    
10651  if test "$ac_cv_func_working_mktime" = no; then  if test "$ac_cv_func_working_mktime" = no; then
10652    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
10653  #define BROKEN_MKTIME 1  #define BROKEN_MKTIME 1
10654  EOF  _ACEOF
10655    
10656  fi  fi
10657    
# Line 8822  ac_have_func=no # yes means we've found Line 10660  ac_have_func=no # yes means we've found
10660  ac_save_LIBS=$LIBS  ac_save_LIBS=$LIBS
10661    
10662  # Check for getloadavg, but be sure not to touch the cache variable.  # Check for getloadavg, but be sure not to touch the cache variable.
10663  (echo "$as_me:8825: checking for getloadavg" >&5  (echo "$as_me:$LINENO: checking for getloadavg" >&5
10664  echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6  echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10665  if test "${ac_cv_func_getloadavg+set}" = set; then  if test "${ac_cv_func_getloadavg+set}" = set; then
10666    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10667  else  else
10668    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
10669  #line 8831 "configure"  #line $LINENO "configure"
10670  #include "confdefs.h"  #include "confdefs.h"
10671  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10672      which can conflict with char getloadavg (); below.  */      which can conflict with char getloadavg (); below.  */
# Line 8842  extern "C" Line 10680  extern "C"
10680  char getloadavg ();  char getloadavg ();
10681  char (*f) ();  char (*f) ();
10682    
10683    #ifdef F77_DUMMY_MAIN
10684    #  ifdef __cplusplus
10685         extern "C"
10686    #  endif
10687       int F77_DUMMY_MAIN() { return 1; }
10688    #endif
10689  int  int
10690  main ()  main ()
10691  {  {
# Line 8859  f = getloadavg; Line 10703  f = getloadavg;
10703  }  }
10704  _ACEOF  _ACEOF
10705  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10706  if { (eval echo "$as_me:8862: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10708    ac_status=$?    ac_status=$?
10709    echo "$as_me:8865: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710    (exit $ac_status); } &&    (exit $ac_status); } &&
10711           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10712    { (eval echo "$as_me:8868: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10714    ac_status=$?    ac_status=$?
10715    echo "$as_me:8871: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10717    ac_cv_func_getloadavg=yes    ac_cv_func_getloadavg=yes
10718  else  else
# Line 8878  ac_cv_func_getloadavg=no Line 10722  ac_cv_func_getloadavg=no
10722  fi  fi
10723  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10724  fi  fi
10725  echo "$as_me:8881: result: $ac_cv_func_getloadavg" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10726  echo "${ECHO_T}$ac_cv_func_getloadavg" >&6  echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10727  if test $ac_cv_func_getloadavg = yes; then  if test $ac_cv_func_getloadavg = yes; then
10728    exit 0    exit 0
# Line 8892  fi Line 10736  fi
10736  for ac_func in pstat_getdynamic  for ac_func in pstat_getdynamic
10737  do  do
10738  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739  echo "$as_me:8895: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
10740  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10741  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
10742    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
10743  else  else
10744    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
10745  #line 8901 "configure"  #line $LINENO "configure"
10746  #include "confdefs.h"  #include "confdefs.h"
10747  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
10748      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 8912  extern "C" Line 10756  extern "C"
10756  char $ac_func ();  char $ac_func ();
10757  char (*f) ();  char (*f) ();
10758    
10759    #ifdef F77_DUMMY_MAIN
10760    #  ifdef __cplusplus
10761         extern "C"
10762    #  endif
10763       int F77_DUMMY_MAIN() { return 1; }
10764    #endif
10765  int  int
10766  main ()  main ()
10767  {  {
# Line 8929  f = $ac_func; Line 10779  f = $ac_func;
10779  }  }
10780  _ACEOF  _ACEOF
10781  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10782  if { (eval echo "$as_me:8932: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10784    ac_status=$?    ac_status=$?
10785    echo "$as_me:8935: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786    (exit $ac_status); } &&    (exit $ac_status); } &&
10787           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10788    { (eval echo "$as_me:8938: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10790    ac_status=$?    ac_status=$?
10791    echo "$as_me:8941: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10793    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
10794  else  else
# Line 8948  eval "$as_ac_var=no" Line 10798  eval "$as_ac_var=no"
10798  fi  fi
10799  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800  fi  fi
10801  echo "$as_me:8951: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10802  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10803  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
10804    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10805  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10806  EOF  _ACEOF
10807    
10808  fi  fi
10809  done  done
10810    
10811    
10812  # Solaris has libkstat which does not require root.  # Solaris has libkstat which does not require root.
10813    
10814  echo "$as_me:8963: checking for kstat_open in -lkstat" >&5  echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10815  echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6  echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10816  if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then  if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10817    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 8968  else Line 10819  else
10819    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
10820  LIBS="-lkstat  $LIBS"  LIBS="-lkstat  $LIBS"
10821  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
10822  #line 8971 "configure"  #line $LINENO "configure"
10823  #include "confdefs.h"  #include "confdefs.h"
10824    
10825  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 8978  extern "C" Line 10829  extern "C"
10829  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
10830     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10831  char kstat_open ();  char kstat_open ();
10832    #ifdef F77_DUMMY_MAIN
10833    #  ifdef __cplusplus
10834         extern "C"
10835    #  endif
10836       int F77_DUMMY_MAIN() { return 1; }
10837    #endif
10838  int  int
10839  main ()  main ()
10840  {  {
# Line 8987  kstat_open (); Line 10844  kstat_open ();
10844  }  }
10845  _ACEOF  _ACEOF
10846  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10847  if { (eval echo "$as_me:8990: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10849    ac_status=$?    ac_status=$?
10850    echo "$as_me:8993: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851    (exit $ac_status); } &&    (exit $ac_status); } &&
10852           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10853    { (eval echo "$as_me:8996: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10855    ac_status=$?    ac_status=$?
10856    echo "$as_me:8999: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10858    ac_cv_lib_kstat_kstat_open=yes    ac_cv_lib_kstat_kstat_open=yes
10859  else  else
# Line 9007  fi Line 10864  fi
10864  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10865  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
10866  fi  fi
10867  echo "$as_me:9010: result: $ac_cv_lib_kstat_kstat_open" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10868  echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6  echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10869  if test $ac_cv_lib_kstat_kstat_open = yes; then  if test $ac_cv_lib_kstat_kstat_open = yes; then
10870    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
10871  #define HAVE_LIBKSTAT 1  #define HAVE_LIBKSTAT 1
10872  EOF  _ACEOF
10873    
10874    LIBS="-lkstat $LIBS"    LIBS="-lkstat $LIBS"
10875    
# Line 9025  test $ac_cv_lib_kstat_kstat_open = yes & Line 10882  test $ac_cv_lib_kstat_kstat_open = yes &
10882  # to get the right answer into the cache.  # to get the right answer into the cache.
10883  # For kstat on solaris, we need libelf to force the definition of SVR4 below.  # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10884  if test $ac_have_func = no; then  if test $ac_have_func = no; then
10885    echo "$as_me:9028: checking for elf_begin in -lelf" >&5    echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10886  echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6  echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10887  if test "${ac_cv_lib_elf_elf_begin+set}" = set; then  if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10888    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9033  else Line 10890  else
10890    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
10891  LIBS="-lelf  $LIBS"  LIBS="-lelf  $LIBS"
10892  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
10893  #line 9036 "configure"  #line $LINENO "configure"
10894  #include "confdefs.h"  #include "confdefs.h"
10895    
10896  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 9043  extern "C" Line 10900  extern "C"
10900  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
10901     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10902  char elf_begin ();  char elf_begin ();
10903    #ifdef F77_DUMMY_MAIN
10904    #  ifdef __cplusplus
10905         extern "C"
10906    #  endif
10907       int F77_DUMMY_MAIN() { return 1; }
10908    #endif
10909  int  int
10910  main ()  main ()
10911  {  {
# Line 9052  elf_begin (); Line 10915  elf_begin ();
10915  }  }
10916  _ACEOF  _ACEOF
10917  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10918  if { (eval echo "$as_me:9055: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10920    ac_status=$?    ac_status=$?
10921    echo "$as_me:9058: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922    (exit $ac_status); } &&    (exit $ac_status); } &&
10923           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10924    { (eval echo "$as_me:9061: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10926    ac_status=$?    ac_status=$?
10927    echo "$as_me:9064: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10929    ac_cv_lib_elf_elf_begin=yes    ac_cv_lib_elf_elf_begin=yes
10930  else  else
# Line 9072  fi Line 10935  fi
10935  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10936  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
10937  fi  fi
10938  echo "$as_me:9075: result: $ac_cv_lib_elf_elf_begin" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10939  echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6  echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10940  if test $ac_cv_lib_elf_elf_begin = yes; then  if test $ac_cv_lib_elf_elf_begin = yes; then
10941    LIBS="-lelf $LIBS"    LIBS="-lelf $LIBS"
# Line 9080  fi Line 10943  fi
10943    
10944  fi  fi
10945  if test $ac_have_func = no; then  if test $ac_have_func = no; then
10946    echo "$as_me:9083: checking for kvm_open in -lkvm" >&5    echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10947  echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6  echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10948  if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then  if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10949    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9088  else Line 10951  else
10951    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
10952  LIBS="-lkvm  $LIBS"  LIBS="-lkvm  $LIBS"
10953  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
10954  #line 9091 "configure"  #line $LINENO "configure"
10955  #include "confdefs.h"  #include "confdefs.h"
10956    
10957  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 9098  extern "C" Line 10961  extern "C"
10961  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
10962     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
10963  char kvm_open ();  char kvm_open ();
10964    #ifdef F77_DUMMY_MAIN
10965    #  ifdef __cplusplus
10966         extern "C"
10967    #  endif
10968       int F77_DUMMY_MAIN() { return 1; }
10969    #endif
10970  int  int
10971  main ()  main ()
10972  {  {
# Line 9107  kvm_open (); Line 10976  kvm_open ();
10976  }  }
10977  _ACEOF  _ACEOF
10978  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
10979  if { (eval echo "$as_me:9110: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
10981    ac_status=$?    ac_status=$?
10982    echo "$as_me:9113: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983    (exit $ac_status); } &&    (exit $ac_status); } &&
10984           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
10985    { (eval echo "$as_me:9116: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
10987    ac_status=$?    ac_status=$?
10988    echo "$as_me:9119: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
10990    ac_cv_lib_kvm_kvm_open=yes    ac_cv_lib_kvm_kvm_open=yes
10991  else  else
# Line 9127  fi Line 10996  fi
10996  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10997  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
10998  fi  fi
10999  echo "$as_me:9130: result: $ac_cv_lib_kvm_kvm_open" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11000  echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6  echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11001  if test $ac_cv_lib_kvm_kvm_open = yes; then  if test $ac_cv_lib_kvm_kvm_open = yes; then
11002    LIBS="-lkvm $LIBS"    LIBS="-lkvm $LIBS"
11003  fi  fi
11004    
11005    # Check for the 4.4BSD definition of getloadavg.    # Check for the 4.4BSD definition of getloadavg.
11006    echo "$as_me:9137: checking for getloadavg in -lutil" >&5    echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11007  echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6  echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11008  if test "${ac_cv_lib_util_getloadavg+set}" = set; then  if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11009    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9142  else Line 11011  else
11011    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
11012  LIBS="-lutil  $LIBS"  LIBS="-lutil  $LIBS"
11013  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
11014  #line 9145 "configure"  #line $LINENO "configure"
11015  #include "confdefs.h"  #include "confdefs.h"
11016    
11017  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 9152  extern "C" Line 11021  extern "C"
11021  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
11022     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
11023  char getloadavg ();  char getloadavg ();
11024    #ifdef F77_DUMMY_MAIN
11025    #  ifdef __cplusplus
11026         extern "C"
11027    #  endif
11028       int F77_DUMMY_MAIN() { return 1; }
11029    #endif
11030  int  int
11031  main ()  main ()
11032  {  {
# Line 9161  getloadavg (); Line 11036  getloadavg ();
11036  }  }
11037  _ACEOF  _ACEOF
11038  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
11039  if { (eval echo "$as_me:9164: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
11041    ac_status=$?    ac_status=$?
11042    echo "$as_me:9167: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043    (exit $ac_status); } &&    (exit $ac_status); } &&
11044           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
11045    { (eval echo "$as_me:9170: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
11047    ac_status=$?    ac_status=$?
11048    echo "$as_me:9173: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
11050    ac_cv_lib_util_getloadavg=yes    ac_cv_lib_util_getloadavg=yes
11051  else  else
# Line 9181  fi Line 11056  fi
11056  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11057  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
11058  fi  fi
11059  echo "$as_me:9184: result: $ac_cv_lib_util_getloadavg" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11060  echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6  echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11061  if test $ac_cv_lib_util_getloadavg = yes; then  if test $ac_cv_lib_util_getloadavg = yes; then
11062    LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes    LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
# Line 9194  if test $ac_have_func = no; then Line 11069  if test $ac_have_func = no; then
11069    # Since it is not a standard part of AIX, it might be installed locally.    # Since it is not a standard part of AIX, it might be installed locally.
11070    ac_getloadavg_LIBS=$LIBS    ac_getloadavg_LIBS=$LIBS
11071    LIBS="-L/usr/local/lib $LIBS"    LIBS="-L/usr/local/lib $LIBS"
11072    echo "$as_me:9197: checking for getloadavg in -lgetloadavg" >&5    echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11073  echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6  echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11074  if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then  if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11075    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9202  else Line 11077  else
11077    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
11078  LIBS="-lgetloadavg  $LIBS"  LIBS="-lgetloadavg  $LIBS"
11079  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
11080  #line 9205 "configure"  #line $LINENO "configure"
11081  #include "confdefs.h"  #include "confdefs.h"
11082    
11083  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 9212  extern "C" Line 11087  extern "C"
11087  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
11088     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
11089  char getloadavg ();  char getloadavg ();
11090    #ifdef F77_DUMMY_MAIN
11091    #  ifdef __cplusplus
11092         extern "C"
11093    #  endif
11094       int F77_DUMMY_MAIN() { return 1; }
11095    #endif
11096  int  int
11097  main ()  main ()
11098  {  {
# Line 9221  getloadavg (); Line 11102  getloadavg ();
11102  }  }
11103  _ACEOF  _ACEOF
11104  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
11105  if { (eval echo "$as_me:9224: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
11107    ac_status=$?    ac_status=$?
11108    echo "$as_me:9227: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109    (exit $ac_status); } &&    (exit $ac_status); } &&
11110           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
11111    { (eval echo "$as_me:9230: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
11113    ac_status=$?    ac_status=$?
11114    echo "$as_me:9233: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
11116    ac_cv_lib_getloadavg_getloadavg=yes    ac_cv_lib_getloadavg_getloadavg=yes
11117  else  else
# Line 9241  fi Line 11122  fi
11122  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11123  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
11124  fi  fi
11125  echo "$as_me:9244: result: $ac_cv_lib_getloadavg_getloadavg" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11126  echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6  echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11127  if test $ac_cv_lib_getloadavg_getloadavg = yes; then  if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11128    LIBS="-lgetloadavg $LIBS"    LIBS="-lgetloadavg $LIBS"
# Line 9257  fi Line 11138  fi
11138  for ac_func in getloadavg  for ac_func in getloadavg
11139  do  do
11140  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141  echo "$as_me:9260: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
11142  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
11144    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11145  else  else
11146    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
11147  #line 9266 "configure"  #line $LINENO "configure"
11148  #include "confdefs.h"  #include "confdefs.h"
11149  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
11150      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 9277  extern "C" Line 11158  extern "C"
11158  char $ac_func ();  char $ac_func ();
11159  char (*f) ();  char (*f) ();
11160    
11161    #ifdef F77_DUMMY_MAIN
11162    #  ifdef __cplusplus
11163         extern "C"
11164    #  endif
11165       int F77_DUMMY_MAIN() { return 1; }
11166    #endif
11167  int  int
11168  main ()  main ()
11169  {  {
# Line 9294  f = $ac_func; Line 11181  f = $ac_func;
11181  }  }
11182  _ACEOF  _ACEOF
11183  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
11184  if { (eval echo "$as_me:9297: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
11186    ac_status=$?    ac_status=$?
11187    echo "$as_me:9300: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188    (exit $ac_status); } &&    (exit $ac_status); } &&
11189           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
11190    { (eval echo "$as_me:9303: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
11192    ac_status=$?    ac_status=$?
11193    echo "$as_me:9306: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
11195    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
11196  else  else
# Line 9313  eval "$as_ac_var=no" Line 11200  eval "$as_ac_var=no"
11200  fi  fi
11201  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202  fi  fi
11203  echo "$as_me:9316: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11204  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11205  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
11206    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
11207  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208  EOF  _ACEOF
11209    
11210  else  else
11211    LIBOBJS="$LIBOBJS getloadavg.$ac_objext"    LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11212    
11213  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
11214  #define C_GETLOADAVG 1  #define C_GETLOADAVG 1
11215  EOF  _ACEOF
11216    
11217  # Figure out what our getloadavg.c needs.  # Figure out what our getloadavg.c needs.
11218  ac_have_func=no  ac_have_func=no
11219  echo "$as_me:9332: checking for sys/dg_sys_info.h" >&5  if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11220      echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11221  echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6  echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11222  if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then  if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11223    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11224    fi
11225    echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11226    echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11227  else  else
11228    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
11229  #line 9338 "configure"  echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11230    echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11231    cat >conftest.$ac_ext <<_ACEOF
11232    #line $LINENO "configure"
11233    #include "confdefs.h"
11234    $ac_includes_default
11235    #include <sys/dg_sys_info.h>
11236    _ACEOF
11237    rm -f conftest.$ac_objext
11238    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239      (eval $ac_compile) 2>&5
11240      ac_status=$?
11241      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242      (exit $ac_status); } &&
11243             { ac_try='test -s conftest.$ac_objext'
11244      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245      (eval $ac_try) 2>&5
11246      ac_status=$?
11247      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248      (exit $ac_status); }; }; then
11249      ac_header_compiler=yes
11250    else
11251      echo "$as_me: failed program was:" >&5
11252    cat conftest.$ac_ext >&5
11253    ac_header_compiler=no
11254    fi
11255    rm -f conftest.$ac_objext conftest.$ac_ext
11256    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257    echo "${ECHO_T}$ac_header_compiler" >&6
11258    
11259    # Is the header present?
11260    echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11261    echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11262    cat >conftest.$ac_ext <<_ACEOF
11263    #line $LINENO "configure"
11264  #include "confdefs.h"  #include "confdefs.h"
11265  #include <sys/dg_sys_info.h>  #include <sys/dg_sys_info.h>
11266  _ACEOF  _ACEOF
11267  if { (eval echo "$as_me:9342: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269    ac_status=$?    ac_status=$?
11270    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
11271    rm -f conftest.er1    rm -f conftest.er1
11272    cat conftest.err >&5    cat conftest.err >&5
11273    echo "$as_me:9348: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
11275    if test -s conftest.err; then    if test -s conftest.err; then
11276      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9356  else Line 11281  else
11281    ac_cpp_err=yes    ac_cpp_err=yes
11282  fi  fi
11283  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
11284    ac_cv_header_sys_dg_sys_info_h=yes    ac_header_preproc=yes
11285  else  else
11286    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11287    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
11288    ac_cv_header_sys_dg_sys_info_h=no    ac_header_preproc=no
11289  fi  fi
11290  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
11291    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292    echo "${ECHO_T}$ac_header_preproc" >&6
11293    
11294    # So?  What about this header?
11295    case $ac_header_compiler:$ac_header_preproc in
11296      yes:no )
11297        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11298    echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11300    echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11301      no:yes )
11302        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11303    echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11304        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11305    echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11306        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11307    echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11308    esac
11309    echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11310    echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11311    if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11312      echo $ECHO_N "(cached) $ECHO_C" >&6
11313    else
11314      ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11315  fi  fi
11316  echo "$as_me:9367: result: $ac_cv_header_sys_dg_sys_info_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11317  echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6  echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11318    
11319    fi
11320  if test $ac_cv_header_sys_dg_sys_info_h = yes; then  if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11321    ac_have_func=yes    ac_have_func=yes
11322    
11323  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
11324  #define DGUX 1  #define DGUX 1
11325  EOF  _ACEOF
11326    
11327    
11328  echo "$as_me:9376: checking for dg_sys_info in -ldgc" >&5  echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11329  echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6  echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11330  if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then  if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11331    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9381  else Line 11333  else
11333    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
11334  LIBS="-ldgc  $LIBS"  LIBS="-ldgc  $LIBS"
11335  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
11336  #line 9384 "configure"  #line $LINENO "configure"
11337  #include "confdefs.h"  #include "confdefs.h"
11338    
11339  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 9391  extern "C" Line 11343  extern "C"
11343  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
11344     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
11345  char dg_sys_info ();  char dg_sys_info ();
11346    #ifdef F77_DUMMY_MAIN
11347    #  ifdef __cplusplus
11348         extern "C"
11349    #  endif
11350       int F77_DUMMY_MAIN() { return 1; }
11351    #endif
11352  int  int
11353  main ()  main ()
11354  {  {
# Line 9400  dg_sys_info (); Line 11358  dg_sys_info ();
11358  }  }
11359  _ACEOF  _ACEOF
11360  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
11361  if { (eval echo "$as_me:9403: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
11363    ac_status=$?    ac_status=$?
11364    echo "$as_me:9406: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365    (exit $ac_status); } &&    (exit $ac_status); } &&
11366           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
11367    { (eval echo "$as_me:9409: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
11369    ac_status=$?    ac_status=$?
11370    echo "$as_me:9412: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
11372    ac_cv_lib_dgc_dg_sys_info=yes    ac_cv_lib_dgc_dg_sys_info=yes
11373  else  else
# Line 9420  fi Line 11378  fi
11378  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11379  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
11380  fi  fi
11381  echo "$as_me:9423: result: $ac_cv_lib_dgc_dg_sys_info" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11382  echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6  echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11383  if test $ac_cv_lib_dgc_dg_sys_info = yes; then  if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11384    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
11385  #define HAVE_LIBDGC 1  #define HAVE_LIBDGC 1
11386  EOF  _ACEOF
11387    
11388    LIBS="-ldgc $LIBS"    LIBS="-ldgc $LIBS"
11389    
# Line 9433  fi Line 11391  fi
11391    
11392  fi  fi
11393    
11394  echo "$as_me:9436: checking for locale.h" >&5  
11395    
11396    if test "${ac_cv_header_locale_h+set}" = set; then
11397      echo "$as_me:$LINENO: checking for locale.h" >&5
11398  echo $ECHO_N "checking for locale.h... $ECHO_C" >&6  echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11399  if test "${ac_cv_header_locale_h+set}" = set; then  if test "${ac_cv_header_locale_h+set}" = set; then
11400    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11401    fi
11402    echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11403    echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11404  else  else
11405    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
11406  #line 9442 "configure"  echo "$as_me:$LINENO: checking locale.h usability" >&5
11407    echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11408    cat >conftest.$ac_ext <<_ACEOF
11409    #line $LINENO "configure"
11410    #include "confdefs.h"
11411    $ac_includes_default
11412    #include <locale.h>
11413    _ACEOF
11414    rm -f conftest.$ac_objext
11415    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416      (eval $ac_compile) 2>&5
11417      ac_status=$?
11418      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419      (exit $ac_status); } &&
11420             { ac_try='test -s conftest.$ac_objext'
11421      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422      (eval $ac_try) 2>&5
11423      ac_status=$?
11424      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425      (exit $ac_status); }; }; then
11426      ac_header_compiler=yes
11427    else
11428      echo "$as_me: failed program was:" >&5
11429    cat conftest.$ac_ext >&5
11430    ac_header_compiler=no
11431    fi
11432    rm -f conftest.$ac_objext conftest.$ac_ext
11433    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11434    echo "${ECHO_T}$ac_header_compiler" >&6
11435    
11436    # Is the header present?
11437    echo "$as_me:$LINENO: checking locale.h presence" >&5
11438    echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11439    cat >conftest.$ac_ext <<_ACEOF
11440    #line $LINENO "configure"
11441  #include "confdefs.h"  #include "confdefs.h"
11442  #include <locale.h>  #include <locale.h>
11443  _ACEOF  _ACEOF
11444  if { (eval echo "$as_me:9446: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11445    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11446    ac_status=$?    ac_status=$?
11447    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
11448    rm -f conftest.er1    rm -f conftest.er1
11449    cat conftest.err >&5    cat conftest.err >&5
11450    echo "$as_me:9452: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
11452    if test -s conftest.err; then    if test -s conftest.err; then
11453      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9460  else Line 11458  else
11458    ac_cpp_err=yes    ac_cpp_err=yes
11459  fi  fi
11460  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
11461    ac_cv_header_locale_h=yes    ac_header_preproc=yes
11462  else  else
11463    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11464    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
11465    ac_cv_header_locale_h=no    ac_header_preproc=no
11466  fi  fi
11467  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
11468    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11469    echo "${ECHO_T}$ac_header_preproc" >&6
11470    
11471    # So?  What about this header?
11472    case $ac_header_compiler:$ac_header_preproc in
11473      yes:no )
11474        { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11475    echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11476        { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11477    echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11478      no:yes )
11479        { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11480    echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11481        { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11482    echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11483        { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11484    echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11485    esac
11486    echo "$as_me:$LINENO: checking for locale.h" >&5
11487    echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11488    if test "${ac_cv_header_locale_h+set}" = set; then
11489      echo $ECHO_N "(cached) $ECHO_C" >&6
11490    else
11491      ac_cv_header_locale_h=$ac_header_preproc
11492  fi  fi
11493  echo "$as_me:9471: result: $ac_cv_header_locale_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11494  echo "${ECHO_T}$ac_cv_header_locale_h" >&6  echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11495    
11496    fi
11497    
11498    
11499    
11500  for ac_func in setlocale  for ac_func in setlocale
11501  do  do
11502  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11503  echo "$as_me:9477: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
11504  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11505  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
11506    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11507  else  else
11508    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
11509  #line 9483 "configure"  #line $LINENO "configure"
11510  #include "confdefs.h"  #include "confdefs.h"
11511  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
11512      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 9494  extern "C" Line 11520  extern "C"
11520  char $ac_func ();  char $ac_func ();
11521  char (*f) ();  char (*f) ();
11522    
11523    #ifdef F77_DUMMY_MAIN
11524    #  ifdef __cplusplus
11525         extern "C"
11526    #  endif
11527       int F77_DUMMY_MAIN() { return 1; }
11528    #endif
11529  int  int
11530  main ()  main ()
11531  {  {
# Line 9511  f = $ac_func; Line 11543  f = $ac_func;
11543  }  }
11544  _ACEOF  _ACEOF
11545  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
11546  if { (eval echo "$as_me:9514: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11547    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
11548    ac_status=$?    ac_status=$?
11549    echo "$as_me:9517: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550    (exit $ac_status); } &&    (exit $ac_status); } &&
11551           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
11552    { (eval echo "$as_me:9520: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
11554    ac_status=$?    ac_status=$?
11555    echo "$as_me:9523: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
11557    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
11558  else  else
# Line 9530  eval "$as_ac_var=no" Line 11562  eval "$as_ac_var=no"
11562  fi  fi
11563  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11564  fi  fi
11565  echo "$as_me:9533: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11566  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11567  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
11568    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
11569  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11570  EOF  _ACEOF
11571    
11572  fi  fi
11573  done  done
11574    
11575    
11576  # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it  # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11577  # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because  # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
11578  # Irix 4.0.5F has the header but not the library.  # Irix 4.0.5F has the header but not the library.
11579  if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then  if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11580    ac_have_func=yes    ac_have_func=yes
11581    
11582  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
11583  #define SVR4 1  #define SVR4 1
11584  EOF  _ACEOF
11585    
11586  fi  fi
11587    
11588  if test $ac_have_func = no; then  if test $ac_have_func = no; then
11589    echo "$as_me:9556: checking for inq_stats/cpustats.h" >&5    if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11590      echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11591  echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6  echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11592  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11593    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11594    fi
11595    echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11596    echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11597  else  else
11598    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
11599  #line 9562 "configure"  echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11600    echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11601    cat >conftest.$ac_ext <<_ACEOF
11602    #line $LINENO "configure"
11603  #include "confdefs.h"  #include "confdefs.h"
11604    $ac_includes_default
11605  #include <inq_stats/cpustats.h>  #include <inq_stats/cpustats.h>
11606  _ACEOF  _ACEOF
11607  if { (eval echo "$as_me:9566: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
11608    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609      (eval $ac_compile) 2>&5
11610      ac_status=$?
11611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612      (exit $ac_status); } &&
11613             { ac_try='test -s conftest.$ac_objext'
11614      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615      (eval $ac_try) 2>&5
11616      ac_status=$?
11617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618      (exit $ac_status); }; }; then
11619      ac_header_compiler=yes
11620    else
11621      echo "$as_me: failed program was:" >&5
11622    cat conftest.$ac_ext >&5
11623    ac_header_compiler=no
11624    fi
11625    rm -f conftest.$ac_objext conftest.$ac_ext
11626    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11627    echo "${ECHO_T}$ac_header_compiler" >&6
11628    
11629    # Is the header present?
11630    echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11631    echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11632    cat >conftest.$ac_ext <<_ACEOF
11633    #line $LINENO "configure"
11634    #include "confdefs.h"
11635    #include <inq_stats/cpustats.h>
11636    _ACEOF
11637    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11638    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11639    ac_status=$?    ac_status=$?
11640    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
11641    rm -f conftest.er1    rm -f conftest.er1
11642    cat conftest.err >&5    cat conftest.err >&5
11643    echo "$as_me:9572: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
11645    if test -s conftest.err; then    if test -s conftest.err; then
11646      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9580  else Line 11651  else
11651    ac_cpp_err=yes    ac_cpp_err=yes
11652  fi  fi
11653  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
11654    ac_cv_header_inq_stats_cpustats_h=yes    ac_header_preproc=yes
11655  else  else
11656    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11657    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
11658    ac_cv_header_inq_stats_cpustats_h=no    ac_header_preproc=no
11659  fi  fi
11660  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
11661    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11662    echo "${ECHO_T}$ac_header_preproc" >&6
11663    
11664    # So?  What about this header?
11665    case $ac_header_compiler:$ac_header_preproc in
11666      yes:no )
11667        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11668    echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11669        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11670    echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11671      no:yes )
11672        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11673    echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11674        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11675    echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11676        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11677    echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11678    esac
11679    echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11680    echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11681    if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11682      echo $ECHO_N "(cached) $ECHO_C" >&6
11683    else
11684      ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11685  fi  fi
11686  echo "$as_me:9591: result: $ac_cv_header_inq_stats_cpustats_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11687  echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6  echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11688    
11689    fi
11690  if test $ac_cv_header_inq_stats_cpustats_h = yes; then  if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11691    ac_have_func=yes    ac_have_func=yes
11692    
11693  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
11694  #define UMAX 1  #define UMAX 1
11695  EOF  _ACEOF
11696    
11697  cat >>confdefs.h <<\EOF  
11698    cat >>confdefs.h <<\_ACEOF
11699  #define UMAX4_3 1  #define UMAX4_3 1
11700  EOF  _ACEOF
11701    
11702  fi  fi
11703    
11704    
11705  fi  fi
11706    
11707  if test $ac_have_func = no; then  if test $ac_have_func = no; then
11708    echo "$as_me:9609: checking for sys/cpustats.h" >&5    if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11709      echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11710  echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6  echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11711  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11712    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11713    fi
11714    echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11715    echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11716  else  else
11717    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
11718  #line 9615 "configure"  echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11719    echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11720    cat >conftest.$ac_ext <<_ACEOF
11721    #line $LINENO "configure"
11722    #include "confdefs.h"
11723    $ac_includes_default
11724    #include <sys/cpustats.h>
11725    _ACEOF
11726    rm -f conftest.$ac_objext
11727    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728      (eval $ac_compile) 2>&5
11729      ac_status=$?
11730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731      (exit $ac_status); } &&
11732             { ac_try='test -s conftest.$ac_objext'
11733      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734      (eval $ac_try) 2>&5
11735      ac_status=$?
11736      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737      (exit $ac_status); }; }; then
11738      ac_header_compiler=yes
11739    else
11740      echo "$as_me: failed program was:" >&5
11741    cat conftest.$ac_ext >&5
11742    ac_header_compiler=no
11743    fi
11744    rm -f conftest.$ac_objext conftest.$ac_ext
11745    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746    echo "${ECHO_T}$ac_header_compiler" >&6
11747    
11748    # Is the header present?
11749    echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11750    echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11751    cat >conftest.$ac_ext <<_ACEOF
11752    #line $LINENO "configure"
11753  #include "confdefs.h"  #include "confdefs.h"
11754  #include <sys/cpustats.h>  #include <sys/cpustats.h>
11755  _ACEOF  _ACEOF
11756  if { (eval echo "$as_me:9619: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11757    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11758    ac_status=$?    ac_status=$?
11759    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
11760    rm -f conftest.er1    rm -f conftest.er1
11761    cat conftest.err >&5    cat conftest.err >&5
11762    echo "$as_me:9625: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
11764    if test -s conftest.err; then    if test -s conftest.err; then
11765      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9633  else Line 11770  else
11770    ac_cpp_err=yes    ac_cpp_err=yes
11771  fi  fi
11772  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
11773    ac_cv_header_sys_cpustats_h=yes    ac_header_preproc=yes
11774  else  else
11775    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11776    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
11777    ac_cv_header_sys_cpustats_h=no    ac_header_preproc=no
11778  fi  fi
11779  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
11780    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11781    echo "${ECHO_T}$ac_header_preproc" >&6
11782    
11783    # So?  What about this header?
11784    case $ac_header_compiler:$ac_header_preproc in
11785      yes:no )
11786        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11787    echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11788        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11789    echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11790      no:yes )
11791        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11792    echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11793        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11794    echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11795        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11796    echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11797    esac
11798    echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11799    echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11800    if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11801      echo $ECHO_N "(cached) $ECHO_C" >&6
11802    else
11803      ac_cv_header_sys_cpustats_h=$ac_header_preproc
11804  fi  fi
11805  echo "$as_me:9644: result: $ac_cv_header_sys_cpustats_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11806  echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6  echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11807    
11808    fi
11809  if test $ac_cv_header_sys_cpustats_h = yes; then  if test $ac_cv_header_sys_cpustats_h = yes; then
11810    ac_have_func=yes; cat >>confdefs.h <<\EOF    ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11811  #define UMAX 1  #define UMAX 1
11812  EOF  _ACEOF
11813    
11814  fi  fi
11815    
11816    
11817  fi  fi
11818    
11819  if test $ac_have_func = no; then  if test $ac_have_func = no; then
# Line 9657  if test $ac_have_func = no; then Line 11821  if test $ac_have_func = no; then
11821  for ac_header in mach/mach.h  for ac_header in mach/mach.h
11822  do  do
11823  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11824  echo "$as_me:9660: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825      echo "$as_me:$LINENO: checking for $ac_header" >&5
11826  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11827  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11828    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
11829    fi
11830    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11831    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11832  else  else
11833    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
11834  #line 9666 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
11835    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11836    cat >conftest.$ac_ext <<_ACEOF
11837    #line $LINENO "configure"
11838    #include "confdefs.h"
11839    $ac_includes_default
11840    #include <$ac_header>
11841    _ACEOF
11842    rm -f conftest.$ac_objext
11843    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844      (eval $ac_compile) 2>&5
11845      ac_status=$?
11846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847      (exit $ac_status); } &&
11848             { ac_try='test -s conftest.$ac_objext'
11849      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850      (eval $ac_try) 2>&5
11851      ac_status=$?
11852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853      (exit $ac_status); }; }; then
11854      ac_header_compiler=yes
11855    else
11856      echo "$as_me: failed program was:" >&5
11857    cat conftest.$ac_ext >&5
11858    ac_header_compiler=no
11859    fi
11860    rm -f conftest.$ac_objext conftest.$ac_ext
11861    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862    echo "${ECHO_T}$ac_header_compiler" >&6
11863    
11864    # Is the header present?
11865    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11867    cat >conftest.$ac_ext <<_ACEOF
11868    #line $LINENO "configure"
11869  #include "confdefs.h"  #include "confdefs.h"
11870  #include <$ac_header>  #include <$ac_header>
11871  _ACEOF  _ACEOF
11872  if { (eval echo "$as_me:9670: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11873    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11874    ac_status=$?    ac_status=$?
11875    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
11876    rm -f conftest.er1    rm -f conftest.er1
11877    cat conftest.err >&5    cat conftest.err >&5
11878    echo "$as_me:9676: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
11880    if test -s conftest.err; then    if test -s conftest.err; then
11881      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9684  else Line 11886  else
11886    ac_cpp_err=yes    ac_cpp_err=yes
11887  fi  fi
11888  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
11889    eval "$as_ac_Header=yes"    ac_header_preproc=yes
11890  else  else
11891    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11892    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
11893    eval "$as_ac_Header=no"    ac_header_preproc=no
11894  fi  fi
11895  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
11896    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897    echo "${ECHO_T}$ac_header_preproc" >&6
11898    
11899    # So?  What about this header?
11900    case $ac_header_compiler:$ac_header_preproc in
11901      yes:no )
11902        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11906      no:yes )
11907        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11908    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11909        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11910    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11911        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11913    esac
11914    echo "$as_me:$LINENO: checking for $ac_header" >&5
11915    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917      echo $ECHO_N "(cached) $ECHO_C" >&6
11918    else
11919      eval "$as_ac_Header=$ac_header_preproc"
11920  fi  fi
11921  echo "$as_me:9695: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11922  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11923    
11924    fi
11925  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
11926    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
11927  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11928  EOF  _ACEOF
11929    
11930  fi  fi
11931    
11932  done  done
11933    
11934  fi  fi
11935    
11936    
11937  for ac_header in nlist.h  for ac_header in nlist.h
11938  do  do
11939  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11940  echo "$as_me:9710: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
11941      echo "$as_me:$LINENO: checking for $ac_header" >&5
11942    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11943    if eval "test \"\${$as_ac_Header+set}\" = set"; then
11944      echo $ECHO_N "(cached) $ECHO_C" >&6
11945    fi
11946    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11947    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11948    else
11949      # Is the header compilable?
11950    echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11952    cat >conftest.$ac_ext <<_ACEOF
11953    #line $LINENO "configure"
11954    #include "confdefs.h"
11955    $ac_includes_default
11956    #include <$ac_header>
11957    _ACEOF
11958    rm -f conftest.$ac_objext
11959    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11960      (eval $ac_compile) 2>&5
11961      ac_status=$?
11962      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963      (exit $ac_status); } &&
11964             { ac_try='test -s conftest.$ac_objext'
11965      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966      (eval $ac_try) 2>&5
11967      ac_status=$?
11968      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969      (exit $ac_status); }; }; then
11970      ac_header_compiler=yes
11971    else
11972      echo "$as_me: failed program was:" >&5
11973    cat conftest.$ac_ext >&5
11974    ac_header_compiler=no
11975    fi
11976    rm -f conftest.$ac_objext conftest.$ac_ext
11977    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978    echo "${ECHO_T}$ac_header_compiler" >&6
11979    
11980    # Is the header present?
11981    echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11983    cat >conftest.$ac_ext <<_ACEOF
11984    #line $LINENO "configure"
11985    #include "confdefs.h"
11986    #include <$ac_header>
11987    _ACEOF
11988    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11989      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11990      ac_status=$?
11991      egrep -v '^ *\+' conftest.er1 >conftest.err
11992      rm -f conftest.er1
11993      cat conftest.err >&5
11994      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995      (exit $ac_status); } >/dev/null; then
11996      if test -s conftest.err; then
11997        ac_cpp_err=$ac_c_preproc_warn_flag
11998      else
11999        ac_cpp_err=
12000      fi
12001    else
12002      ac_cpp_err=yes
12003    fi
12004    if test -z "$ac_cpp_err"; then
12005      ac_header_preproc=yes
12006    else
12007      echo "$as_me: failed program was:" >&5
12008      cat conftest.$ac_ext >&5
12009      ac_header_preproc=no
12010    fi
12011    rm -f conftest.err conftest.$ac_ext
12012    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013    echo "${ECHO_T}$ac_header_preproc" >&6
12014    
12015    # So?  What about this header?
12016    case $ac_header_compiler:$ac_header_preproc in
12017      yes:no )
12018        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12019    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12021    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12022      no:yes )
12023        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12024    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12025        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12026    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12027        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12028    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12029    esac
12030    echo "$as_me:$LINENO: checking for $ac_header" >&5
12031  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
12034  else  else
12035      eval "$as_ac_Header=$ac_header_preproc"
12036    fi
12037    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039    
12040    fi
12041    if test `eval echo '${'$as_ac_Header'}'` = yes; then
12042      cat >>confdefs.h <<_ACEOF
12043    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12044    _ACEOF
12045     echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12046    echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12047    if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12048      echo $ECHO_N "(cached) $ECHO_C" >&6
12049    else
12050      cat >conftest.$ac_ext <<_ACEOF
12051    #line $LINENO "configure"
12052    #include "confdefs.h"
12053    #include <nlist.h>
12054    
12055    #ifdef F77_DUMMY_MAIN
12056    #  ifdef __cplusplus
12057         extern "C"
12058    #  endif
12059       int F77_DUMMY_MAIN() { return 1; }
12060    #endif
12061    int
12062    main ()
12063    {
12064    static struct nlist ac_aggr;
12065    if (ac_aggr.n_un.n_name)
12066    return 0;
12067      ;
12068      return 0;
12069    }
12070    _ACEOF
12071    rm -f conftest.$ac_objext
12072    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073      (eval $ac_compile) 2>&5
12074      ac_status=$?
12075      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076      (exit $ac_status); } &&
12077             { ac_try='test -s conftest.$ac_objext'
12078      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079      (eval $ac_try) 2>&5
12080      ac_status=$?
12081      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082      (exit $ac_status); }; }; then
12083      ac_cv_member_struct_nlist_n_un_n_name=yes
12084    else
12085      echo "$as_me: failed program was:" >&5
12086    cat conftest.$ac_ext >&5
12087    ac_cv_member_struct_nlist_n_un_n_name=no
12088    fi
12089    rm -f conftest.$ac_objext conftest.$ac_ext
12090    fi
12091    echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12092    echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12093    if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12094    
12095    cat >>confdefs.h <<_ACEOF
12096    #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12097    _ACEOF
12098    
12099    
12100    cat >>confdefs.h <<\_ACEOF
12101    #define NLIST_NAME_UNION 1
12102    _ACEOF
12103    
12104    fi
12105    
12106    
12107    fi
12108    
12109    done
12110    
12111    fi
12112    done
12113    
12114    
12115    # Some definitions of getloadavg require that the program be installed setgid.
12116    echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12117    echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12118    if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12119      echo $ECHO_N "(cached) $ECHO_C" >&6
12120    else
12121      cat >conftest.$ac_ext <<_ACEOF
12122    #line $LINENO "configure"
12123    #include "confdefs.h"
12124    #include "$srcdir/getloadavg.c"
12125    #ifdef LDAV_PRIVILEGED
12126    Yowza Am I SETGID yet
12127    #endif
12128    _ACEOF
12129    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12130      egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12131      ac_cv_func_getloadavg_setgid=yes
12132    else
12133      ac_cv_func_getloadavg_setgid=no
12134    fi
12135    rm -f conftest*
12136    
12137    fi
12138    echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12139    echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12140    if test $ac_cv_func_getloadavg_setgid = yes; then
12141      NEED_SETGID=true
12142    
12143    cat >>confdefs.h <<\_ACEOF
12144    #define GETLOADAVG_PRIVILEGED 1
12145    _ACEOF
12146    
12147    else
12148      NEED_SETGID=false
12149    fi
12150    
12151    if test $ac_cv_func_getloadavg_setgid = yes; then
12152      echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12153    echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12154    if test "${ac_cv_group_kmem+set}" = set; then
12155      echo $ECHO_N "(cached) $ECHO_C" >&6
12156    else
12157       # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
12158      ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12159      # If we got an error (system does not support symlinks), try without -L.
12160      test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12161      ac_cv_group_kmem=`echo $ac_ls_output \
12162        | sed -ne 's/[      ][      ]*/ /g;
12163                   s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
12164                   / /s/.* //;p;'`
12165    
12166    fi
12167    echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12168    echo "${ECHO_T}$ac_cv_group_kmem" >&6
12169      KMEM_GROUP=$ac_cv_group_kmem
12170    fi
12171    if test "x$ac_save_LIBS" = x; then
12172      GETLOADAVG_LIBS=$LIBS
12173    else
12174      GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12175    fi
12176    LIBS=$ac_save_LIBS
12177    
12178    
12179    
12180    ac_have_func=no # yes means we've found a way to get the load average.
12181    
12182    ac_save_LIBS=$LIBS
12183    
12184    # Check for getloadavg, but be sure not to touch the cache variable.
12185    (echo "$as_me:$LINENO: checking for getloadavg" >&5
12186    echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12187    if test "${ac_cv_func_getloadavg+set}" = set; then
12188      echo $ECHO_N "(cached) $ECHO_C" >&6
12189    else
12190      cat >conftest.$ac_ext <<_ACEOF
12191    #line $LINENO "configure"
12192    #include "confdefs.h"
12193    /* System header to define __stub macros and hopefully few prototypes,
12194        which can conflict with char getloadavg (); below.  */
12195    #include <assert.h>
12196    /* Override any gcc2 internal prototype to avoid an error.  */
12197    #ifdef __cplusplus
12198    extern "C"
12199    #endif
12200    /* We use char because int might match the return type of a gcc2
12201       builtin and then its argument prototype would still apply.  */
12202    char getloadavg ();
12203    char (*f) ();
12204    
12205    #ifdef F77_DUMMY_MAIN
12206    #  ifdef __cplusplus
12207         extern "C"
12208    #  endif
12209       int F77_DUMMY_MAIN() { return 1; }
12210    #endif
12211    int
12212    main ()
12213    {
12214    /* The GNU C library defines this for functions which it implements
12215        to always fail with ENOSYS.  Some functions are actually named
12216        something starting with __ and the normal name is an alias.  */
12217    #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12218    choke me
12219    #else
12220    f = getloadavg;
12221    #endif
12222    
12223      ;
12224      return 0;
12225    }
12226    _ACEOF
12227    rm -f conftest.$ac_objext conftest$ac_exeext
12228    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229      (eval $ac_link) 2>&5
12230      ac_status=$?
12231      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232      (exit $ac_status); } &&
12233             { ac_try='test -s conftest$ac_exeext'
12234      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235      (eval $ac_try) 2>&5
12236      ac_status=$?
12237      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238      (exit $ac_status); }; }; then
12239      ac_cv_func_getloadavg=yes
12240    else
12241      echo "$as_me: failed program was:" >&5
12242    cat conftest.$ac_ext >&5
12243    ac_cv_func_getloadavg=no
12244    fi
12245    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12246    fi
12247    echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12248    echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12249    if test $ac_cv_func_getloadavg = yes; then
12250      exit 0
12251    else
12252      exit 1
12253    fi
12254    ) && ac_have_func=yes
12255    
12256    # On HPUX9, an unprivileged user can get load averages through this function.
12257    
12258    for ac_func in pstat_getdynamic
12259    do
12260    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261    echo "$as_me:$LINENO: checking for $ac_func" >&5
12262    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12263    if eval "test \"\${$as_ac_var+set}\" = set"; then
12264      echo $ECHO_N "(cached) $ECHO_C" >&6
12265    else
12266    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
12267  #line 9716 "configure"  #line $LINENO "configure"
12268    #include "confdefs.h"
12269    /* System header to define __stub macros and hopefully few prototypes,
12270        which can conflict with char $ac_func (); below.  */
12271    #include <assert.h>
12272    /* Override any gcc2 internal prototype to avoid an error.  */
12273    #ifdef __cplusplus
12274    extern "C"
12275    #endif
12276    /* We use char because int might match the return type of a gcc2
12277       builtin and then its argument prototype would still apply.  */
12278    char $ac_func ();
12279    char (*f) ();
12280    
12281    #ifdef F77_DUMMY_MAIN
12282    #  ifdef __cplusplus
12283         extern "C"
12284    #  endif
12285       int F77_DUMMY_MAIN() { return 1; }
12286    #endif
12287    int
12288    main ()
12289    {
12290    /* The GNU C library defines this for functions which it implements
12291        to always fail with ENOSYS.  Some functions are actually named
12292        something starting with __ and the normal name is an alias.  */
12293    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12294    choke me
12295    #else
12296    f = $ac_func;
12297    #endif
12298    
12299      ;
12300      return 0;
12301    }
12302    _ACEOF
12303    rm -f conftest.$ac_objext conftest$ac_exeext
12304    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305      (eval $ac_link) 2>&5
12306      ac_status=$?
12307      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308      (exit $ac_status); } &&
12309             { ac_try='test -s conftest$ac_exeext'
12310      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311      (eval $ac_try) 2>&5
12312      ac_status=$?
12313      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314      (exit $ac_status); }; }; then
12315      eval "$as_ac_var=yes"
12316    else
12317      echo "$as_me: failed program was:" >&5
12318    cat conftest.$ac_ext >&5
12319    eval "$as_ac_var=no"
12320    fi
12321    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12322    fi
12323    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12324    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12325    if test `eval echo '${'$as_ac_var'}'` = yes; then
12326      cat >>confdefs.h <<_ACEOF
12327    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12328    _ACEOF
12329    
12330    fi
12331    done
12332    
12333    
12334    # Solaris has libkstat which does not require root.
12335    
12336    echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12337    echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12338    if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12339      echo $ECHO_N "(cached) $ECHO_C" >&6
12340    else
12341      ac_check_lib_save_LIBS=$LIBS
12342    LIBS="-lkstat  $LIBS"
12343    cat >conftest.$ac_ext <<_ACEOF
12344    #line $LINENO "configure"
12345    #include "confdefs.h"
12346    
12347    /* Override any gcc2 internal prototype to avoid an error.  */
12348    #ifdef __cplusplus
12349    extern "C"
12350    #endif
12351    /* We use char because int might match the return type of a gcc2
12352       builtin and then its argument prototype would still apply.  */
12353    char kstat_open ();
12354    #ifdef F77_DUMMY_MAIN
12355    #  ifdef __cplusplus
12356         extern "C"
12357    #  endif
12358       int F77_DUMMY_MAIN() { return 1; }
12359    #endif
12360    int
12361    main ()
12362    {
12363    kstat_open ();
12364      ;
12365      return 0;
12366    }
12367    _ACEOF
12368    rm -f conftest.$ac_objext conftest$ac_exeext
12369    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370      (eval $ac_link) 2>&5
12371      ac_status=$?
12372      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373      (exit $ac_status); } &&
12374             { ac_try='test -s conftest$ac_exeext'
12375      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376      (eval $ac_try) 2>&5
12377      ac_status=$?
12378      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379      (exit $ac_status); }; }; then
12380      ac_cv_lib_kstat_kstat_open=yes
12381    else
12382      echo "$as_me: failed program was:" >&5
12383    cat conftest.$ac_ext >&5
12384    ac_cv_lib_kstat_kstat_open=no
12385    fi
12386    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12387    LIBS=$ac_check_lib_save_LIBS
12388    fi
12389    echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12390    echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12391    if test $ac_cv_lib_kstat_kstat_open = yes; then
12392      cat >>confdefs.h <<_ACEOF
12393    #define HAVE_LIBKSTAT 1
12394    _ACEOF
12395    
12396      LIBS="-lkstat $LIBS"
12397    
12398    fi
12399    
12400    test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12401    
12402    # Some systems with -lutil have (and need) -lkvm as well, some do not.
12403    # On Solaris, -lkvm requires nlist from -lelf, so check that first
12404    # to get the right answer into the cache.
12405    # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12406    if test $ac_have_func = no; then
12407      echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12408    echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12409    if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12410      echo $ECHO_N "(cached) $ECHO_C" >&6
12411    else
12412      ac_check_lib_save_LIBS=$LIBS
12413    LIBS="-lelf  $LIBS"
12414    cat >conftest.$ac_ext <<_ACEOF
12415    #line $LINENO "configure"
12416    #include "confdefs.h"
12417    
12418    /* Override any gcc2 internal prototype to avoid an error.  */
12419    #ifdef __cplusplus
12420    extern "C"
12421    #endif
12422    /* We use char because int might match the return type of a gcc2
12423       builtin and then its argument prototype would still apply.  */
12424    char elf_begin ();
12425    #ifdef F77_DUMMY_MAIN
12426    #  ifdef __cplusplus
12427         extern "C"
12428    #  endif
12429       int F77_DUMMY_MAIN() { return 1; }
12430    #endif
12431    int
12432    main ()
12433    {
12434    elf_begin ();
12435      ;
12436      return 0;
12437    }
12438    _ACEOF
12439    rm -f conftest.$ac_objext conftest$ac_exeext
12440    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441      (eval $ac_link) 2>&5
12442      ac_status=$?
12443      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444      (exit $ac_status); } &&
12445             { ac_try='test -s conftest$ac_exeext'
12446      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447      (eval $ac_try) 2>&5
12448      ac_status=$?
12449      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450      (exit $ac_status); }; }; then
12451      ac_cv_lib_elf_elf_begin=yes
12452    else
12453      echo "$as_me: failed program was:" >&5
12454    cat conftest.$ac_ext >&5
12455    ac_cv_lib_elf_elf_begin=no
12456    fi
12457    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12458    LIBS=$ac_check_lib_save_LIBS
12459    fi
12460    echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12461    echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12462    if test $ac_cv_lib_elf_elf_begin = yes; then
12463      LIBS="-lelf $LIBS"
12464    fi
12465    
12466    fi
12467    if test $ac_have_func = no; then
12468      echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12469    echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12470    if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12471      echo $ECHO_N "(cached) $ECHO_C" >&6
12472    else
12473      ac_check_lib_save_LIBS=$LIBS
12474    LIBS="-lkvm  $LIBS"
12475    cat >conftest.$ac_ext <<_ACEOF
12476    #line $LINENO "configure"
12477    #include "confdefs.h"
12478    
12479    /* Override any gcc2 internal prototype to avoid an error.  */
12480    #ifdef __cplusplus
12481    extern "C"
12482    #endif
12483    /* We use char because int might match the return type of a gcc2
12484       builtin and then its argument prototype would still apply.  */
12485    char kvm_open ();
12486    #ifdef F77_DUMMY_MAIN
12487    #  ifdef __cplusplus
12488         extern "C"
12489    #  endif
12490       int F77_DUMMY_MAIN() { return 1; }
12491    #endif
12492    int
12493    main ()
12494    {
12495    kvm_open ();
12496      ;
12497      return 0;
12498    }
12499    _ACEOF
12500    rm -f conftest.$ac_objext conftest$ac_exeext
12501    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502      (eval $ac_link) 2>&5
12503      ac_status=$?
12504      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505      (exit $ac_status); } &&
12506             { ac_try='test -s conftest$ac_exeext'
12507      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508      (eval $ac_try) 2>&5
12509      ac_status=$?
12510      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511      (exit $ac_status); }; }; then
12512      ac_cv_lib_kvm_kvm_open=yes
12513    else
12514      echo "$as_me: failed program was:" >&5
12515    cat conftest.$ac_ext >&5
12516    ac_cv_lib_kvm_kvm_open=no
12517    fi
12518    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12519    LIBS=$ac_check_lib_save_LIBS
12520    fi
12521    echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12522    echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12523    if test $ac_cv_lib_kvm_kvm_open = yes; then
12524      LIBS="-lkvm $LIBS"
12525    fi
12526    
12527      # Check for the 4.4BSD definition of getloadavg.
12528      echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12529    echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12530    if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12531      echo $ECHO_N "(cached) $ECHO_C" >&6
12532    else
12533      ac_check_lib_save_LIBS=$LIBS
12534    LIBS="-lutil  $LIBS"
12535    cat >conftest.$ac_ext <<_ACEOF
12536    #line $LINENO "configure"
12537    #include "confdefs.h"
12538    
12539    /* Override any gcc2 internal prototype to avoid an error.  */
12540    #ifdef __cplusplus
12541    extern "C"
12542    #endif
12543    /* We use char because int might match the return type of a gcc2
12544       builtin and then its argument prototype would still apply.  */
12545    char getloadavg ();
12546    #ifdef F77_DUMMY_MAIN
12547    #  ifdef __cplusplus
12548         extern "C"
12549    #  endif
12550       int F77_DUMMY_MAIN() { return 1; }
12551    #endif
12552    int
12553    main ()
12554    {
12555    getloadavg ();
12556      ;
12557      return 0;
12558    }
12559    _ACEOF
12560    rm -f conftest.$ac_objext conftest$ac_exeext
12561    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562      (eval $ac_link) 2>&5
12563      ac_status=$?
12564      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565      (exit $ac_status); } &&
12566             { ac_try='test -s conftest$ac_exeext'
12567      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568      (eval $ac_try) 2>&5
12569      ac_status=$?
12570      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571      (exit $ac_status); }; }; then
12572      ac_cv_lib_util_getloadavg=yes
12573    else
12574      echo "$as_me: failed program was:" >&5
12575    cat conftest.$ac_ext >&5
12576    ac_cv_lib_util_getloadavg=no
12577    fi
12578    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12579    LIBS=$ac_check_lib_save_LIBS
12580    fi
12581    echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12582    echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12583    if test $ac_cv_lib_util_getloadavg = yes; then
12584      LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12585    fi
12586    
12587    fi
12588    
12589    if test $ac_have_func = no; then
12590      # There is a commonly available library for RS/6000 AIX.
12591      # Since it is not a standard part of AIX, it might be installed locally.
12592      ac_getloadavg_LIBS=$LIBS
12593      LIBS="-L/usr/local/lib $LIBS"
12594      echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12595    echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12596    if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12597      echo $ECHO_N "(cached) $ECHO_C" >&6
12598    else
12599      ac_check_lib_save_LIBS=$LIBS
12600    LIBS="-lgetloadavg  $LIBS"
12601    cat >conftest.$ac_ext <<_ACEOF
12602    #line $LINENO "configure"
12603    #include "confdefs.h"
12604    
12605    /* Override any gcc2 internal prototype to avoid an error.  */
12606    #ifdef __cplusplus
12607    extern "C"
12608    #endif
12609    /* We use char because int might match the return type of a gcc2
12610       builtin and then its argument prototype would still apply.  */
12611    char getloadavg ();
12612    #ifdef F77_DUMMY_MAIN
12613    #  ifdef __cplusplus
12614         extern "C"
12615    #  endif
12616       int F77_DUMMY_MAIN() { return 1; }
12617    #endif
12618    int
12619    main ()
12620    {
12621    getloadavg ();
12622      ;
12623      return 0;
12624    }
12625    _ACEOF
12626    rm -f conftest.$ac_objext conftest$ac_exeext
12627    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12628      (eval $ac_link) 2>&5
12629      ac_status=$?
12630      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631      (exit $ac_status); } &&
12632             { ac_try='test -s conftest$ac_exeext'
12633      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634      (eval $ac_try) 2>&5
12635      ac_status=$?
12636      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637      (exit $ac_status); }; }; then
12638      ac_cv_lib_getloadavg_getloadavg=yes
12639    else
12640      echo "$as_me: failed program was:" >&5
12641    cat conftest.$ac_ext >&5
12642    ac_cv_lib_getloadavg_getloadavg=no
12643    fi
12644    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12645    LIBS=$ac_check_lib_save_LIBS
12646    fi
12647    echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12648    echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12649    if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12650      LIBS="-lgetloadavg $LIBS"
12651    else
12652      LIBS=$ac_getloadavg_LIBS
12653    fi
12654    
12655    fi
12656    
12657    # Make sure it is really in the library, if we think we found it,
12658    # otherwise set up the replacement function.
12659    
12660    for ac_func in getloadavg
12661    do
12662    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663    echo "$as_me:$LINENO: checking for $ac_func" >&5
12664    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12665    if eval "test \"\${$as_ac_var+set}\" = set"; then
12666      echo $ECHO_N "(cached) $ECHO_C" >&6
12667    else
12668      cat >conftest.$ac_ext <<_ACEOF
12669    #line $LINENO "configure"
12670    #include "confdefs.h"
12671    /* System header to define __stub macros and hopefully few prototypes,
12672        which can conflict with char $ac_func (); below.  */
12673    #include <assert.h>
12674    /* Override any gcc2 internal prototype to avoid an error.  */
12675    #ifdef __cplusplus
12676    extern "C"
12677    #endif
12678    /* We use char because int might match the return type of a gcc2
12679       builtin and then its argument prototype would still apply.  */
12680    char $ac_func ();
12681    char (*f) ();
12682    
12683    #ifdef F77_DUMMY_MAIN
12684    #  ifdef __cplusplus
12685         extern "C"
12686    #  endif
12687       int F77_DUMMY_MAIN() { return 1; }
12688    #endif
12689    int
12690    main ()
12691    {
12692    /* The GNU C library defines this for functions which it implements
12693        to always fail with ENOSYS.  Some functions are actually named
12694        something starting with __ and the normal name is an alias.  */
12695    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12696    choke me
12697    #else
12698    f = $ac_func;
12699    #endif
12700    
12701      ;
12702      return 0;
12703    }
12704    _ACEOF
12705    rm -f conftest.$ac_objext conftest$ac_exeext
12706    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707      (eval $ac_link) 2>&5
12708      ac_status=$?
12709      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710      (exit $ac_status); } &&
12711             { ac_try='test -s conftest$ac_exeext'
12712      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713      (eval $ac_try) 2>&5
12714      ac_status=$?
12715      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716      (exit $ac_status); }; }; then
12717      eval "$as_ac_var=yes"
12718    else
12719      echo "$as_me: failed program was:" >&5
12720    cat conftest.$ac_ext >&5
12721    eval "$as_ac_var=no"
12722    fi
12723    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12724    fi
12725    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12726    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12727    if test `eval echo '${'$as_ac_var'}'` = yes; then
12728      cat >>confdefs.h <<_ACEOF
12729    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12730    _ACEOF
12731    
12732    else
12733      LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12734    
12735    cat >>confdefs.h <<\_ACEOF
12736    #define C_GETLOADAVG 1
12737    _ACEOF
12738    
12739    # Figure out what our getloadavg.c needs.
12740    ac_have_func=no
12741    if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12742      echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12743    echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12744    if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12745      echo $ECHO_N "(cached) $ECHO_C" >&6
12746    fi
12747    echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12748    echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12749    else
12750      # Is the header compilable?
12751    echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12752    echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12753    cat >conftest.$ac_ext <<_ACEOF
12754    #line $LINENO "configure"
12755    #include "confdefs.h"
12756    $ac_includes_default
12757    #include <sys/dg_sys_info.h>
12758    _ACEOF
12759    rm -f conftest.$ac_objext
12760    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761      (eval $ac_compile) 2>&5
12762      ac_status=$?
12763      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764      (exit $ac_status); } &&
12765             { ac_try='test -s conftest.$ac_objext'
12766      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767      (eval $ac_try) 2>&5
12768      ac_status=$?
12769      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770      (exit $ac_status); }; }; then
12771      ac_header_compiler=yes
12772    else
12773      echo "$as_me: failed program was:" >&5
12774    cat conftest.$ac_ext >&5
12775    ac_header_compiler=no
12776    fi
12777    rm -f conftest.$ac_objext conftest.$ac_ext
12778    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12779    echo "${ECHO_T}$ac_header_compiler" >&6
12780    
12781    # Is the header present?
12782    echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12783    echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12784    cat >conftest.$ac_ext <<_ACEOF
12785    #line $LINENO "configure"
12786    #include "confdefs.h"
12787    #include <sys/dg_sys_info.h>
12788    _ACEOF
12789    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12790      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12791      ac_status=$?
12792      egrep -v '^ *\+' conftest.er1 >conftest.err
12793      rm -f conftest.er1
12794      cat conftest.err >&5
12795      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796      (exit $ac_status); } >/dev/null; then
12797      if test -s conftest.err; then
12798        ac_cpp_err=$ac_c_preproc_warn_flag
12799      else
12800        ac_cpp_err=
12801      fi
12802    else
12803      ac_cpp_err=yes
12804    fi
12805    if test -z "$ac_cpp_err"; then
12806      ac_header_preproc=yes
12807    else
12808      echo "$as_me: failed program was:" >&5
12809      cat conftest.$ac_ext >&5
12810      ac_header_preproc=no
12811    fi
12812    rm -f conftest.err conftest.$ac_ext
12813    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12814    echo "${ECHO_T}$ac_header_preproc" >&6
12815    
12816    # So?  What about this header?
12817    case $ac_header_compiler:$ac_header_preproc in
12818      yes:no )
12819        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12820    echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12821        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12822    echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
12823      no:yes )
12824        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12825    echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12826        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12827    echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12828        { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12829    echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
12830    esac
12831    echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12832    echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12833    if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12834      echo $ECHO_N "(cached) $ECHO_C" >&6
12835    else
12836      ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12837    fi
12838    echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12839    echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12840    
12841    fi
12842    if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12843      ac_have_func=yes
12844    
12845    cat >>confdefs.h <<\_ACEOF
12846    #define DGUX 1
12847    _ACEOF
12848    
12849    
12850    echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12851    echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12852    if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12853      echo $ECHO_N "(cached) $ECHO_C" >&6
12854    else
12855      ac_check_lib_save_LIBS=$LIBS
12856    LIBS="-ldgc  $LIBS"
12857    cat >conftest.$ac_ext <<_ACEOF
12858    #line $LINENO "configure"
12859    #include "confdefs.h"
12860    
12861    /* Override any gcc2 internal prototype to avoid an error.  */
12862    #ifdef __cplusplus
12863    extern "C"
12864    #endif
12865    /* We use char because int might match the return type of a gcc2
12866       builtin and then its argument prototype would still apply.  */
12867    char dg_sys_info ();
12868    #ifdef F77_DUMMY_MAIN
12869    #  ifdef __cplusplus
12870         extern "C"
12871    #  endif
12872       int F77_DUMMY_MAIN() { return 1; }
12873    #endif
12874    int
12875    main ()
12876    {
12877    dg_sys_info ();
12878      ;
12879      return 0;
12880    }
12881    _ACEOF
12882    rm -f conftest.$ac_objext conftest$ac_exeext
12883    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884      (eval $ac_link) 2>&5
12885      ac_status=$?
12886      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887      (exit $ac_status); } &&
12888             { ac_try='test -s conftest$ac_exeext'
12889      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890      (eval $ac_try) 2>&5
12891      ac_status=$?
12892      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893      (exit $ac_status); }; }; then
12894      ac_cv_lib_dgc_dg_sys_info=yes
12895    else
12896      echo "$as_me: failed program was:" >&5
12897    cat conftest.$ac_ext >&5
12898    ac_cv_lib_dgc_dg_sys_info=no
12899    fi
12900    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901    LIBS=$ac_check_lib_save_LIBS
12902    fi
12903    echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12904    echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12905    if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12906      cat >>confdefs.h <<_ACEOF
12907    #define HAVE_LIBDGC 1
12908    _ACEOF
12909    
12910      LIBS="-ldgc $LIBS"
12911    
12912    fi
12913    
12914    fi
12915    
12916    
12917    
12918    if test "${ac_cv_header_locale_h+set}" = set; then
12919      echo "$as_me:$LINENO: checking for locale.h" >&5
12920    echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12921    if test "${ac_cv_header_locale_h+set}" = set; then
12922      echo $ECHO_N "(cached) $ECHO_C" >&6
12923    fi
12924    echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12925    echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12926    else
12927      # Is the header compilable?
12928    echo "$as_me:$LINENO: checking locale.h usability" >&5
12929    echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12930    cat >conftest.$ac_ext <<_ACEOF
12931    #line $LINENO "configure"
12932    #include "confdefs.h"
12933    $ac_includes_default
12934    #include <locale.h>
12935    _ACEOF
12936    rm -f conftest.$ac_objext
12937    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938      (eval $ac_compile) 2>&5
12939      ac_status=$?
12940      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941      (exit $ac_status); } &&
12942             { ac_try='test -s conftest.$ac_objext'
12943      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944      (eval $ac_try) 2>&5
12945      ac_status=$?
12946      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947      (exit $ac_status); }; }; then
12948      ac_header_compiler=yes
12949    else
12950      echo "$as_me: failed program was:" >&5
12951    cat conftest.$ac_ext >&5
12952    ac_header_compiler=no
12953    fi
12954    rm -f conftest.$ac_objext conftest.$ac_ext
12955    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12956    echo "${ECHO_T}$ac_header_compiler" >&6
12957    
12958    # Is the header present?
12959    echo "$as_me:$LINENO: checking locale.h presence" >&5
12960    echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12961    cat >conftest.$ac_ext <<_ACEOF
12962    #line $LINENO "configure"
12963    #include "confdefs.h"
12964    #include <locale.h>
12965    _ACEOF
12966    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12968      ac_status=$?
12969      egrep -v '^ *\+' conftest.er1 >conftest.err
12970      rm -f conftest.er1
12971      cat conftest.err >&5
12972      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973      (exit $ac_status); } >/dev/null; then
12974      if test -s conftest.err; then
12975        ac_cpp_err=$ac_c_preproc_warn_flag
12976      else
12977        ac_cpp_err=
12978      fi
12979    else
12980      ac_cpp_err=yes
12981    fi
12982    if test -z "$ac_cpp_err"; then
12983      ac_header_preproc=yes
12984    else
12985      echo "$as_me: failed program was:" >&5
12986      cat conftest.$ac_ext >&5
12987      ac_header_preproc=no
12988    fi
12989    rm -f conftest.err conftest.$ac_ext
12990    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991    echo "${ECHO_T}$ac_header_preproc" >&6
12992    
12993    # So?  What about this header?
12994    case $ac_header_compiler:$ac_header_preproc in
12995      yes:no )
12996        { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12997    echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998        { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12999    echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
13000      no:yes )
13001        { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13002    echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13003        { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13004    echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13005        { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13006    echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
13007    esac
13008    echo "$as_me:$LINENO: checking for locale.h" >&5
13009    echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13010    if test "${ac_cv_header_locale_h+set}" = set; then
13011      echo $ECHO_N "(cached) $ECHO_C" >&6
13012    else
13013      ac_cv_header_locale_h=$ac_header_preproc
13014    fi
13015    echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13016    echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13017    
13018    fi
13019    
13020    
13021    
13022    for ac_func in setlocale
13023    do
13024    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025    echo "$as_me:$LINENO: checking for $ac_func" >&5
13026    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13027    if eval "test \"\${$as_ac_var+set}\" = set"; then
13028      echo $ECHO_N "(cached) $ECHO_C" >&6
13029    else
13030      cat >conftest.$ac_ext <<_ACEOF
13031    #line $LINENO "configure"
13032    #include "confdefs.h"
13033    /* System header to define __stub macros and hopefully few prototypes,
13034        which can conflict with char $ac_func (); below.  */
13035    #include <assert.h>
13036    /* Override any gcc2 internal prototype to avoid an error.  */
13037    #ifdef __cplusplus
13038    extern "C"
13039    #endif
13040    /* We use char because int might match the return type of a gcc2
13041       builtin and then its argument prototype would still apply.  */
13042    char $ac_func ();
13043    char (*f) ();
13044    
13045    #ifdef F77_DUMMY_MAIN
13046    #  ifdef __cplusplus
13047         extern "C"
13048    #  endif
13049       int F77_DUMMY_MAIN() { return 1; }
13050    #endif
13051    int
13052    main ()
13053    {
13054    /* The GNU C library defines this for functions which it implements
13055        to always fail with ENOSYS.  Some functions are actually named
13056        something starting with __ and the normal name is an alias.  */
13057    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13058    choke me
13059    #else
13060    f = $ac_func;
13061    #endif
13062    
13063      ;
13064      return 0;
13065    }
13066    _ACEOF
13067    rm -f conftest.$ac_objext conftest$ac_exeext
13068    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069      (eval $ac_link) 2>&5
13070      ac_status=$?
13071      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072      (exit $ac_status); } &&
13073             { ac_try='test -s conftest$ac_exeext'
13074      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075      (eval $ac_try) 2>&5
13076      ac_status=$?
13077      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078      (exit $ac_status); }; }; then
13079      eval "$as_ac_var=yes"
13080    else
13081      echo "$as_me: failed program was:" >&5
13082    cat conftest.$ac_ext >&5
13083    eval "$as_ac_var=no"
13084    fi
13085    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13086    fi
13087    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13088    echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13089    if test `eval echo '${'$as_ac_var'}'` = yes; then
13090      cat >>confdefs.h <<_ACEOF
13091    #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092    _ACEOF
13093    
13094    fi
13095    done
13096    
13097    
13098    # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13099    # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
13100    # Irix 4.0.5F has the header but not the library.
13101    if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13102      ac_have_func=yes
13103    
13104    cat >>confdefs.h <<\_ACEOF
13105    #define SVR4 1
13106    _ACEOF
13107    
13108    fi
13109    
13110    if test $ac_have_func = no; then
13111      if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112      echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13113    echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13114    if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13115      echo $ECHO_N "(cached) $ECHO_C" >&6
13116    fi
13117    echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13118    echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13119    else
13120      # Is the header compilable?
13121    echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13122    echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13123    cat >conftest.$ac_ext <<_ACEOF
13124    #line $LINENO "configure"
13125    #include "confdefs.h"
13126    $ac_includes_default
13127    #include <inq_stats/cpustats.h>
13128    _ACEOF
13129    rm -f conftest.$ac_objext
13130    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131      (eval $ac_compile) 2>&5
13132      ac_status=$?
13133      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134      (exit $ac_status); } &&
13135             { ac_try='test -s conftest.$ac_objext'
13136      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137      (eval $ac_try) 2>&5
13138      ac_status=$?
13139      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140      (exit $ac_status); }; }; then
13141      ac_header_compiler=yes
13142    else
13143      echo "$as_me: failed program was:" >&5
13144    cat conftest.$ac_ext >&5
13145    ac_header_compiler=no
13146    fi
13147    rm -f conftest.$ac_objext conftest.$ac_ext
13148    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13149    echo "${ECHO_T}$ac_header_compiler" >&6
13150    
13151    # Is the header present?
13152    echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13153    echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13154    cat >conftest.$ac_ext <<_ACEOF
13155    #line $LINENO "configure"
13156    #include "confdefs.h"
13157    #include <inq_stats/cpustats.h>
13158    _ACEOF
13159    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13160      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13161      ac_status=$?
13162      egrep -v '^ *\+' conftest.er1 >conftest.err
13163      rm -f conftest.er1
13164      cat conftest.err >&5
13165      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166      (exit $ac_status); } >/dev/null; then
13167      if test -s conftest.err; then
13168        ac_cpp_err=$ac_c_preproc_warn_flag
13169      else
13170        ac_cpp_err=
13171      fi
13172    else
13173      ac_cpp_err=yes
13174    fi
13175    if test -z "$ac_cpp_err"; then
13176      ac_header_preproc=yes
13177    else
13178      echo "$as_me: failed program was:" >&5
13179      cat conftest.$ac_ext >&5
13180      ac_header_preproc=no
13181    fi
13182    rm -f conftest.err conftest.$ac_ext
13183    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13184    echo "${ECHO_T}$ac_header_preproc" >&6
13185    
13186    # So?  What about this header?
13187    case $ac_header_compiler:$ac_header_preproc in
13188      yes:no )
13189        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13190    echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13191        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13192    echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13193      no:yes )
13194        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13195    echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13196        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13197    echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13198        { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13199    echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13200    esac
13201    echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13202    echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13203    if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13204      echo $ECHO_N "(cached) $ECHO_C" >&6
13205    else
13206      ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13207    fi
13208    echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13209    echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13210    
13211    fi
13212    if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13213      ac_have_func=yes
13214    
13215    cat >>confdefs.h <<\_ACEOF
13216    #define UMAX 1
13217    _ACEOF
13218    
13219    
13220    cat >>confdefs.h <<\_ACEOF
13221    #define UMAX4_3 1
13222    _ACEOF
13223    
13224    fi
13225    
13226    
13227    fi
13228    
13229    if test $ac_have_func = no; then
13230      if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13231      echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13232    echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13233    if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13234      echo $ECHO_N "(cached) $ECHO_C" >&6
13235    fi
13236    echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13237    echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13238    else
13239      # Is the header compilable?
13240    echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13241    echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13242    cat >conftest.$ac_ext <<_ACEOF
13243    #line $LINENO "configure"
13244    #include "confdefs.h"
13245    $ac_includes_default
13246    #include <sys/cpustats.h>
13247    _ACEOF
13248    rm -f conftest.$ac_objext
13249    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250      (eval $ac_compile) 2>&5
13251      ac_status=$?
13252      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253      (exit $ac_status); } &&
13254             { ac_try='test -s conftest.$ac_objext'
13255      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256      (eval $ac_try) 2>&5
13257      ac_status=$?
13258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259      (exit $ac_status); }; }; then
13260      ac_header_compiler=yes
13261    else
13262      echo "$as_me: failed program was:" >&5
13263    cat conftest.$ac_ext >&5
13264    ac_header_compiler=no
13265    fi
13266    rm -f conftest.$ac_objext conftest.$ac_ext
13267    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13268    echo "${ECHO_T}$ac_header_compiler" >&6
13269    
13270    # Is the header present?
13271    echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13272    echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13273    cat >conftest.$ac_ext <<_ACEOF
13274    #line $LINENO "configure"
13275    #include "confdefs.h"
13276    #include <sys/cpustats.h>
13277    _ACEOF
13278    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13280      ac_status=$?
13281      egrep -v '^ *\+' conftest.er1 >conftest.err
13282      rm -f conftest.er1
13283      cat conftest.err >&5
13284      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285      (exit $ac_status); } >/dev/null; then
13286      if test -s conftest.err; then
13287        ac_cpp_err=$ac_c_preproc_warn_flag
13288      else
13289        ac_cpp_err=
13290      fi
13291    else
13292      ac_cpp_err=yes
13293    fi
13294    if test -z "$ac_cpp_err"; then
13295      ac_header_preproc=yes
13296    else
13297      echo "$as_me: failed program was:" >&5
13298      cat conftest.$ac_ext >&5
13299      ac_header_preproc=no
13300    fi
13301    rm -f conftest.err conftest.$ac_ext
13302    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303    echo "${ECHO_T}$ac_header_preproc" >&6
13304    
13305    # So?  What about this header?
13306    case $ac_header_compiler:$ac_header_preproc in
13307      yes:no )
13308        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13309    echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13311    echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13312      no:yes )
13313        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13314    echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13315        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13316    echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13317        { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13318    echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13319    esac
13320    echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13321    echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13322    if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13323      echo $ECHO_N "(cached) $ECHO_C" >&6
13324    else
13325      ac_cv_header_sys_cpustats_h=$ac_header_preproc
13326    fi
13327    echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13328    echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13329    
13330    fi
13331    if test $ac_cv_header_sys_cpustats_h = yes; then
13332      ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13333    #define UMAX 1
13334    _ACEOF
13335    
13336    fi
13337    
13338    
13339    fi
13340    
13341    if test $ac_have_func = no; then
13342    
13343    for ac_header in mach/mach.h
13344    do
13345    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347      echo "$as_me:$LINENO: checking for $ac_header" >&5
13348    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350      echo $ECHO_N "(cached) $ECHO_C" >&6
13351    fi
13352    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13353    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13354    else
13355      # Is the header compilable?
13356    echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13358    cat >conftest.$ac_ext <<_ACEOF
13359    #line $LINENO "configure"
13360    #include "confdefs.h"
13361    $ac_includes_default
13362    #include <$ac_header>
13363    _ACEOF
13364    rm -f conftest.$ac_objext
13365    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13366      (eval $ac_compile) 2>&5
13367      ac_status=$?
13368      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369      (exit $ac_status); } &&
13370             { ac_try='test -s conftest.$ac_objext'
13371      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372      (eval $ac_try) 2>&5
13373      ac_status=$?
13374      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375      (exit $ac_status); }; }; then
13376      ac_header_compiler=yes
13377    else
13378      echo "$as_me: failed program was:" >&5
13379    cat conftest.$ac_ext >&5
13380    ac_header_compiler=no
13381    fi
13382    rm -f conftest.$ac_objext conftest.$ac_ext
13383    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384    echo "${ECHO_T}$ac_header_compiler" >&6
13385    
13386    # Is the header present?
13387    echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13389    cat >conftest.$ac_ext <<_ACEOF
13390    #line $LINENO "configure"
13391  #include "confdefs.h"  #include "confdefs.h"
13392  #include <$ac_header>  #include <$ac_header>
13393  _ACEOF  _ACEOF
13394  if { (eval echo "$as_me:9720: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13395    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13396    ac_status=$?    ac_status=$?
13397    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
13398    rm -f conftest.er1    rm -f conftest.er1
13399    cat conftest.err >&5    cat conftest.err >&5
13400    echo "$as_me:9726: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
13402    if test -s conftest.err; then    if test -s conftest.err; then
13403      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 9734  else Line 13408  else
13408    ac_cpp_err=yes    ac_cpp_err=yes
13409  fi  fi
13410  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
13411    eval "$as_ac_Header=yes"    ac_header_preproc=yes
13412  else  else
13413    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
13414    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
13415    eval "$as_ac_Header=no"    ac_header_preproc=no
13416  fi  fi
13417  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
13418    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13419    echo "${ECHO_T}$ac_header_preproc" >&6
13420    
13421    # So?  What about this header?
13422    case $ac_header_compiler:$ac_header_preproc in
13423      yes:no )
13424        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13425    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13426        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13428      no:yes )
13429        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13430    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13431        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13432    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13433        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13434    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13435    esac
13436    echo "$as_me:$LINENO: checking for $ac_header" >&5
13437    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13438    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439      echo $ECHO_N "(cached) $ECHO_C" >&6
13440    else
13441      eval "$as_ac_Header=$ac_header_preproc"
13442  fi  fi
13443  echo "$as_me:9745: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13444  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445    
13446    fi
13447  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
13448    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
13449  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13450  EOF  _ACEOF
13451   echo "$as_me:9751: checking for struct nlist.n_un.n_name" >&5  
13452    fi
13453    
13454    done
13455    
13456    fi
13457    
13458    
13459    for ac_header in nlist.h
13460    do
13461    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13462    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463      echo "$as_me:$LINENO: checking for $ac_header" >&5
13464    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13465    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466      echo $ECHO_N "(cached) $ECHO_C" >&6
13467    fi
13468    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13469    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470    else
13471      # Is the header compilable?
13472    echo "$as_me:$LINENO: checking $ac_header usability" >&5
13473    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13474    cat >conftest.$ac_ext <<_ACEOF
13475    #line $LINENO "configure"
13476    #include "confdefs.h"
13477    $ac_includes_default
13478    #include <$ac_header>
13479    _ACEOF
13480    rm -f conftest.$ac_objext
13481    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482      (eval $ac_compile) 2>&5
13483      ac_status=$?
13484      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485      (exit $ac_status); } &&
13486             { ac_try='test -s conftest.$ac_objext'
13487      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488      (eval $ac_try) 2>&5
13489      ac_status=$?
13490      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491      (exit $ac_status); }; }; then
13492      ac_header_compiler=yes
13493    else
13494      echo "$as_me: failed program was:" >&5
13495    cat conftest.$ac_ext >&5
13496    ac_header_compiler=no
13497    fi
13498    rm -f conftest.$ac_objext conftest.$ac_ext
13499    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13500    echo "${ECHO_T}$ac_header_compiler" >&6
13501    
13502    # Is the header present?
13503    echo "$as_me:$LINENO: checking $ac_header presence" >&5
13504    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13505    cat >conftest.$ac_ext <<_ACEOF
13506    #line $LINENO "configure"
13507    #include "confdefs.h"
13508    #include <$ac_header>
13509    _ACEOF
13510    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13511      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13512      ac_status=$?
13513      egrep -v '^ *\+' conftest.er1 >conftest.err
13514      rm -f conftest.er1
13515      cat conftest.err >&5
13516      echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517      (exit $ac_status); } >/dev/null; then
13518      if test -s conftest.err; then
13519        ac_cpp_err=$ac_c_preproc_warn_flag
13520      else
13521        ac_cpp_err=
13522      fi
13523    else
13524      ac_cpp_err=yes
13525    fi
13526    if test -z "$ac_cpp_err"; then
13527      ac_header_preproc=yes
13528    else
13529      echo "$as_me: failed program was:" >&5
13530      cat conftest.$ac_ext >&5
13531      ac_header_preproc=no
13532    fi
13533    rm -f conftest.err conftest.$ac_ext
13534    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535    echo "${ECHO_T}$ac_header_preproc" >&6
13536    
13537    # So?  What about this header?
13538    case $ac_header_compiler:$ac_header_preproc in
13539      yes:no )
13540        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13541    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13543    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13544      no:yes )
13545        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13551    esac
13552    echo "$as_me:$LINENO: checking for $ac_header" >&5
13553    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13554    if eval "test \"\${$as_ac_Header+set}\" = set"; then
13555      echo $ECHO_N "(cached) $ECHO_C" >&6
13556    else
13557      eval "$as_ac_Header=$ac_header_preproc"
13558    fi
13559    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13560    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13561    
13562    fi
13563    if test `eval echo '${'$as_ac_Header'}'` = yes; then
13564      cat >>confdefs.h <<_ACEOF
13565    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13566    _ACEOF
13567     echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13568  echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6  echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13569  if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then  if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13570    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13571  else  else
13572    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13573  #line 9757 "configure"  #line $LINENO "configure"
13574  #include "confdefs.h"  #include "confdefs.h"
13575  #include <nlist.h>  #include <nlist.h>
13576    
13577    #ifdef F77_DUMMY_MAIN
13578    #  ifdef __cplusplus
13579         extern "C"
13580    #  endif
13581       int F77_DUMMY_MAIN() { return 1; }
13582    #endif
13583  int  int
13584  main ()  main ()
13585  {  {
# Line 9769  return 0; Line 13591  return 0;
13591  }  }
13592  _ACEOF  _ACEOF
13593  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
13594  if { (eval echo "$as_me:9772: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
13596    ac_status=$?    ac_status=$?
13597    echo "$as_me:9775: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598    (exit $ac_status); } &&    (exit $ac_status); } &&
13599           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
13600    { (eval echo "$as_me:9778: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13602    ac_status=$?    ac_status=$?
13603    echo "$as_me:9781: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13605    ac_cv_member_struct_nlist_n_un_n_name=yes    ac_cv_member_struct_nlist_n_un_n_name=yes
13606  else  else
# Line 9788  ac_cv_member_struct_nlist_n_un_n_name=no Line 13610  ac_cv_member_struct_nlist_n_un_n_name=no
13610  fi  fi
13611  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
13612  fi  fi
13613  echo "$as_me:9791: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5  echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13614  echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6  echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13615  if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then  if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13616    
13617  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
13618  #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1  #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13619  EOF  _ACEOF
13620    
13621  cat >>confdefs.h <<\EOF  
13622    cat >>confdefs.h <<\_ACEOF
13623  #define NLIST_NAME_UNION 1  #define NLIST_NAME_UNION 1
13624  EOF  _ACEOF
13625    
13626  fi  fi
13627    
13628    
13629  fi  fi
13630    
13631  done  done
13632    
13633  fi  fi
13634  done  done
13635    
13636    
13637  # Some definitions of getloadavg require that the program be installed setgid.  # Some definitions of getloadavg require that the program be installed setgid.
13638  echo "$as_me:9812: checking whether getloadavg requires setgid" >&5  echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13639  echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6  echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13640  if test "${ac_cv_func_getloadavg_setgid+set}" = set; then  if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13641    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13642  else  else
13643    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13644  #line 9818 "configure"  #line $LINENO "configure"
13645  #include "confdefs.h"  #include "confdefs.h"
13646  #include "$srcdir/getloadavg.c"  #include "$srcdir/getloadavg.c"
13647  #ifdef LDAV_PRIVILEGED  #ifdef LDAV_PRIVILEGED
# Line 9831  fi Line 13657  fi
13657  rm -f conftest*  rm -f conftest*
13658    
13659  fi  fi
13660  echo "$as_me:9834: result: $ac_cv_func_getloadavg_setgid" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13661  echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6  echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13662  if test $ac_cv_func_getloadavg_setgid = yes; then  if test $ac_cv_func_getloadavg_setgid = yes; then
13663    NEED_SETGID=true    NEED_SETGID=true
13664    
13665  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
13666  #define GETLOADAVG_PRIVILEGED 1  #define GETLOADAVG_PRIVILEGED 1
13667  EOF  _ACEOF
13668    
13669  else  else
13670    NEED_SETGID=false    NEED_SETGID=false
13671  fi  fi
13672    
13673  if test $ac_cv_func_getloadavg_setgid = yes; then  if test $ac_cv_func_getloadavg_setgid = yes; then
13674    echo "$as_me:9848: checking group of /dev/kmem" >&5    echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13675  echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6  echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13676  if test "${ac_cv_group_kmem+set}" = set; then  if test "${ac_cv_group_kmem+set}" = set; then
13677    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9860  else Line 13686  else
13686                 / /s/.* //;p;'`                 / /s/.* //;p;'`
13687    
13688  fi  fi
13689  echo "$as_me:9863: result: $ac_cv_group_kmem" >&5  echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13690  echo "${ECHO_T}$ac_cv_group_kmem" >&6  echo "${ECHO_T}$ac_cv_group_kmem" >&6
13691    KMEM_GROUP=$ac_cv_group_kmem    KMEM_GROUP=$ac_cv_group_kmem
13692  fi  fi
# Line 9871  else Line 13697  else
13697  fi  fi
13698  LIBS=$ac_save_LIBS  LIBS=$ac_save_LIBS
13699    
13700  echo "$as_me:9874: checking for _LARGEFILE_SOURCE value needed for large files" >&5  
13701    
13702    echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13703  echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6  echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13704  if test "${ac_cv_sys_largefile_source+set}" = set; then  if test "${ac_cv_sys_largefile_source+set}" = set; then
13705    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 9879  else Line 13707  else
13707    while :; do    while :; do
13708    ac_cv_sys_largefile_source=no    ac_cv_sys_largefile_source=no
13709    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13710  #line 9882 "configure"  #line $LINENO "configure"
13711  #include "confdefs.h"  #include "confdefs.h"
13712  #include <stdio.h>  #include <stdio.h>
13713    #ifdef F77_DUMMY_MAIN
13714    #  ifdef __cplusplus
13715         extern "C"
13716    #  endif
13717       int F77_DUMMY_MAIN() { return 1; }
13718    #endif
13719  int  int
13720  main ()  main ()
13721  {  {
# Line 9891  return !fseeko; Line 13725  return !fseeko;
13725  }  }
13726  _ACEOF  _ACEOF
13727  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
13728  if { (eval echo "$as_me:9894: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
13730    ac_status=$?    ac_status=$?
13731    echo "$as_me:9897: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732    (exit $ac_status); } &&    (exit $ac_status); } &&
13733           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
13734    { (eval echo "$as_me:9900: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13736    ac_status=$?    ac_status=$?
13737    echo "$as_me:9903: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13739    break    break
13740  else  else
# Line 9909  cat conftest.$ac_ext >&5 Line 13743  cat conftest.$ac_ext >&5
13743  fi  fi
13744  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
13745    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13746  #line 9912 "configure"  #line $LINENO "configure"
13747  #include "confdefs.h"  #include "confdefs.h"
13748  #define _LARGEFILE_SOURCE 1  #define _LARGEFILE_SOURCE 1
13749  #include <stdio.h>  #include <stdio.h>
13750    #ifdef F77_DUMMY_MAIN
13751    #  ifdef __cplusplus
13752         extern "C"
13753    #  endif
13754       int F77_DUMMY_MAIN() { return 1; }
13755    #endif
13756  int  int
13757  main ()  main ()
13758  {  {
# Line 9922  return !fseeko; Line 13762  return !fseeko;
13762  }  }
13763  _ACEOF  _ACEOF
13764  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
13765  if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
13767    ac_status=$?    ac_status=$?
13768    echo "$as_me:9928: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769    (exit $ac_status); } &&    (exit $ac_status); } &&
13770           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
13771    { (eval echo "$as_me:9931: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13773    ac_status=$?    ac_status=$?
13774    echo "$as_me:9934: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13776    ac_cv_sys_largefile_source=1; break    ac_cv_sys_largefile_source=1; break
13777  else  else
# Line 9942  rm -f conftest.$ac_objext conftest.$ac_e Line 13782  rm -f conftest.$ac_objext conftest.$ac_e
13782    break    break
13783  done  done
13784  fi  fi
13785  echo "$as_me:9945: result: $ac_cv_sys_largefile_source" >&5  echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13786  echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6  echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13787  if test "$ac_cv_sys_largefile_source" != no; then  if test "$ac_cv_sys_largefile_source" != no; then
13788    
13789  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
13790  #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source  #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13791  EOF  _ACEOF
13792    
13793  fi  fi
13794  rm -f conftest*  rm -f conftest*
# Line 9956  rm -f conftest* Line 13796  rm -f conftest*
13796  # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug  # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13797  # in glibc 2.1.3, but that breaks too many other things.  # in glibc 2.1.3, but that breaks too many other things.
13798  # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.  # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13799  echo "$as_me:9959: checking for fseeko" >&5  echo "$as_me:$LINENO: checking for fseeko" >&5
13800  echo $ECHO_N "checking for fseeko... $ECHO_C" >&6  echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13801  if test "${ac_cv_func_fseeko+set}" = set; then  if test "${ac_cv_func_fseeko+set}" = set; then
13802    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13803  else  else
13804    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13805  #line 9965 "configure"  #line $LINENO "configure"
13806  #include "confdefs.h"  #include "confdefs.h"
13807  #include <stdio.h>  #include <stdio.h>
13808    #ifdef F77_DUMMY_MAIN
13809    #  ifdef __cplusplus
13810         extern "C"
13811    #  endif
13812       int F77_DUMMY_MAIN() { return 1; }
13813    #endif
13814  int  int
13815  main ()  main ()
13816  {  {
# Line 9974  return fseeko && fseeko (stdin, 0, 0); Line 13820  return fseeko && fseeko (stdin, 0, 0);
13820  }  }
13821  _ACEOF  _ACEOF
13822  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
13823  if { (eval echo "$as_me:9977: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
13825    ac_status=$?    ac_status=$?
13826    echo "$as_me:9980: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827    (exit $ac_status); } &&    (exit $ac_status); } &&
13828           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
13829    { (eval echo "$as_me:9983: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13831    ac_status=$?    ac_status=$?
13832    echo "$as_me:9986: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13834    ac_cv_func_fseeko=yes    ac_cv_func_fseeko=yes
13835  else  else
# Line 9993  ac_cv_func_fseeko=no Line 13839  ac_cv_func_fseeko=no
13839  fi  fi
13840  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13841  fi  fi
13842  echo "$as_me:9996: result: $ac_cv_func_fseeko" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13843  echo "${ECHO_T}$ac_cv_func_fseeko" >&6  echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13844  if test $ac_cv_func_fseeko = yes; then  if test $ac_cv_func_fseeko = yes; then
13845    
13846  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
13847  #define HAVE_FSEEKO 1  #define HAVE_FSEEKO 1
13848  EOF  _ACEOF
13849    
13850  fi  fi
13851    
13852    
13853  # UNIX98 PTYs.  # UNIX98 PTYs.
13854    
13855  for ac_func in grantpt  for ac_func in grantpt
13856  do  do
13857  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858  echo "$as_me:10011: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
13859  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13860  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
13861    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13862  else  else
13863    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13864  #line 10017 "configure"  #line $LINENO "configure"
13865  #include "confdefs.h"  #include "confdefs.h"
13866  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13867      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 10028  extern "C" Line 13875  extern "C"
13875  char $ac_func ();  char $ac_func ();
13876  char (*f) ();  char (*f) ();
13877    
13878    #ifdef F77_DUMMY_MAIN
13879    #  ifdef __cplusplus
13880         extern "C"
13881    #  endif
13882       int F77_DUMMY_MAIN() { return 1; }
13883    #endif
13884  int  int
13885  main ()  main ()
13886  {  {
# Line 10045  f = $ac_func; Line 13898  f = $ac_func;
13898  }  }
13899  _ACEOF  _ACEOF
13900  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
13901  if { (eval echo "$as_me:10048: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13902    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
13903    ac_status=$?    ac_status=$?
13904    echo "$as_me:10051: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905    (exit $ac_status); } &&    (exit $ac_status); } &&
13906           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
13907    { (eval echo "$as_me:10054: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13909    ac_status=$?    ac_status=$?
13910    echo "$as_me:10057: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13912    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
13913  else  else
# Line 10064  eval "$as_ac_var=no" Line 13917  eval "$as_ac_var=no"
13917  fi  fi
13918  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13919  fi  fi
13920  echo "$as_me:10067: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13921  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13922  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
13923    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
13924  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13925  EOF  _ACEOF
13926    
13927  fi  fi
13928  done  done
13929    
13930    
13931  # PTY-related GNU extensions.  # PTY-related GNU extensions.
13932    
13933  for ac_func in getpt  for ac_func in getpt
13934  do  do
13935  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13936  echo "$as_me:10082: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
13937  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13938  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
13939    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
13940  else  else
13941    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
13942  #line 10088 "configure"  #line $LINENO "configure"
13943  #include "confdefs.h"  #include "confdefs.h"
13944  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
13945      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 10099  extern "C" Line 13953  extern "C"
13953  char $ac_func ();  char $ac_func ();
13954  char (*f) ();  char (*f) ();
13955    
13956    #ifdef F77_DUMMY_MAIN
13957    #  ifdef __cplusplus
13958         extern "C"
13959    #  endif
13960       int F77_DUMMY_MAIN() { return 1; }
13961    #endif
13962  int  int
13963  main ()  main ()
13964  {  {
# Line 10116  f = $ac_func; Line 13976  f = $ac_func;
13976  }  }
13977  _ACEOF  _ACEOF
13978  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
13979  if { (eval echo "$as_me:10119: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
13981    ac_status=$?    ac_status=$?
13982    echo "$as_me:10122: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983    (exit $ac_status); } &&    (exit $ac_status); } &&
13984           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
13985    { (eval echo "$as_me:10125: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
13987    ac_status=$?    ac_status=$?
13988    echo "$as_me:10128: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
13990    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
13991  else  else
# Line 10135  eval "$as_ac_var=no" Line 13995  eval "$as_ac_var=no"
13995  fi  fi
13996  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13997  fi  fi
13998  echo "$as_me:10138: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13999  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14000  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
14001    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14002  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14003  EOF  _ACEOF
14004    
14005  fi  fi
14006  done  done
14007    
14008    
14009  # Check this now, so that we will NOT find the above functions in ncurses.  # Check this now, so that we will NOT find the above functions in ncurses.
14010  # That is because we have not set up to link ncurses in lib-src.  # That is because we have not set up to link ncurses in lib-src.
14011  # It's better to believe a function is not available  # It's better to believe a function is not available
14012  # than to expect to find it in ncurses.  # than to expect to find it in ncurses.
14013    
14014  echo "$as_me:10153: checking for tparm in -lncurses" >&5  echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14015  echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6  echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14016  if test "${ac_cv_lib_ncurses_tparm+set}" = set; then  if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14017    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10158  else Line 14019  else
14019    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14020  LIBS="-lncurses  $LIBS"  LIBS="-lncurses  $LIBS"
14021  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14022  #line 10161 "configure"  #line $LINENO "configure"
14023  #include "confdefs.h"  #include "confdefs.h"
14024    
14025  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10168  extern "C" Line 14029  extern "C"
14029  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14030     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14031  char tparm ();  char tparm ();
14032    #ifdef F77_DUMMY_MAIN
14033    #  ifdef __cplusplus
14034         extern "C"
14035    #  endif
14036       int F77_DUMMY_MAIN() { return 1; }
14037    #endif
14038  int  int
14039  main ()  main ()
14040  {  {
# Line 10177  tparm (); Line 14044  tparm ();
14044  }  }
14045  _ACEOF  _ACEOF
14046  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14047  if { (eval echo "$as_me:10180: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14049    ac_status=$?    ac_status=$?
14050    echo "$as_me:10183: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051    (exit $ac_status); } &&    (exit $ac_status); } &&
14052           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14053    { (eval echo "$as_me:10186: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14055    ac_status=$?    ac_status=$?
14056    echo "$as_me:10189: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14058    ac_cv_lib_ncurses_tparm=yes    ac_cv_lib_ncurses_tparm=yes
14059  else  else
# Line 10197  fi Line 14064  fi
14064  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14065  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14066  fi  fi
14067  echo "$as_me:10200: result: $ac_cv_lib_ncurses_tparm" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14068  echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6  echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14069  if test $ac_cv_lib_ncurses_tparm = yes; then  if test $ac_cv_lib_ncurses_tparm = yes; then
14070    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14071  #define HAVE_LIBNCURSES 1  #define HAVE_LIBNCURSES 1
14072  EOF  _ACEOF
14073    
14074    LIBS="-lncurses $LIBS"    LIBS="-lncurses $LIBS"
14075    
14076  fi  fi
14077    
14078    
14079  # Do we need the Hesiod library to provide the support routines?  # Do we need the Hesiod library to provide the support routines?
14080  if test "$with_hesiod" = yes ; then  if test "$with_hesiod" = yes ; then
14081    # Don't set $LIBS here -- see comments above.    # Don't set $LIBS here -- see comments above.
14082    resolv=no    resolv=no
14083    echo "$as_me:10215: checking for res_send" >&5    echo "$as_me:$LINENO: checking for res_send" >&5
14084  echo $ECHO_N "checking for res_send... $ECHO_C" >&6  echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14085  if test "${ac_cv_func_res_send+set}" = set; then  if test "${ac_cv_func_res_send+set}" = set; then
14086    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14087  else  else
14088    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
14089  #line 10221 "configure"  #line $LINENO "configure"
14090  #include "confdefs.h"  #include "confdefs.h"
14091  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
14092      which can conflict with char res_send (); below.  */      which can conflict with char res_send (); below.  */
# Line 10232  extern "C" Line 14100  extern "C"
14100  char res_send ();  char res_send ();
14101  char (*f) ();  char (*f) ();
14102    
14103    #ifdef F77_DUMMY_MAIN
14104    #  ifdef __cplusplus
14105         extern "C"
14106    #  endif
14107       int F77_DUMMY_MAIN() { return 1; }
14108    #endif
14109  int  int
14110  main ()  main ()
14111  {  {
# Line 10249  f = res_send; Line 14123  f = res_send;
14123  }  }
14124  _ACEOF  _ACEOF
14125  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14126  if { (eval echo "$as_me:10252: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14127    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14128    ac_status=$?    ac_status=$?
14129    echo "$as_me:10255: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130    (exit $ac_status); } &&    (exit $ac_status); } &&
14131           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14132    { (eval echo "$as_me:10258: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14134    ac_status=$?    ac_status=$?
14135    echo "$as_me:10261: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14137    ac_cv_func_res_send=yes    ac_cv_func_res_send=yes
14138  else  else
# Line 10268  ac_cv_func_res_send=no Line 14142  ac_cv_func_res_send=no
14142  fi  fi
14143  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14144  fi  fi
14145  echo "$as_me:10271: result: $ac_cv_func_res_send" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14146  echo "${ECHO_T}$ac_cv_func_res_send" >&6  echo "${ECHO_T}$ac_cv_func_res_send" >&6
14147  if test $ac_cv_func_res_send = yes; then  if test $ac_cv_func_res_send = yes; then
14148    :    :
14149  else  else
14150    echo "$as_me:10276: checking for __res_send" >&5    echo "$as_me:$LINENO: checking for __res_send" >&5
14151  echo $ECHO_N "checking for __res_send... $ECHO_C" >&6  echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14152  if test "${ac_cv_func___res_send+set}" = set; then  if test "${ac_cv_func___res_send+set}" = set; then
14153    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14154  else  else
14155    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
14156  #line 10282 "configure"  #line $LINENO "configure"
14157  #include "confdefs.h"  #include "confdefs.h"
14158  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
14159      which can conflict with char __res_send (); below.  */      which can conflict with char __res_send (); below.  */
# Line 10293  extern "C" Line 14167  extern "C"
14167  char __res_send ();  char __res_send ();
14168  char (*f) ();  char (*f) ();
14169    
14170    #ifdef F77_DUMMY_MAIN
14171    #  ifdef __cplusplus
14172         extern "C"
14173    #  endif
14174       int F77_DUMMY_MAIN() { return 1; }
14175    #endif
14176  int  int
14177  main ()  main ()
14178  {  {
# Line 10310  f = __res_send; Line 14190  f = __res_send;
14190  }  }
14191  _ACEOF  _ACEOF
14192  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14193  if { (eval echo "$as_me:10313: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14195    ac_status=$?    ac_status=$?
14196    echo "$as_me:10316: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197    (exit $ac_status); } &&    (exit $ac_status); } &&
14198           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14199    { (eval echo "$as_me:10319: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14201    ac_status=$?    ac_status=$?
14202    echo "$as_me:10322: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14204    ac_cv_func___res_send=yes    ac_cv_func___res_send=yes
14205  else  else
# Line 10329  ac_cv_func___res_send=no Line 14209  ac_cv_func___res_send=no
14209  fi  fi
14210  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14211  fi  fi
14212  echo "$as_me:10332: result: $ac_cv_func___res_send" >&5  echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14213  echo "${ECHO_T}$ac_cv_func___res_send" >&6  echo "${ECHO_T}$ac_cv_func___res_send" >&6
14214  if test $ac_cv_func___res_send = yes; then  if test $ac_cv_func___res_send = yes; then
14215    :    :
14216  else  else
14217    echo "$as_me:10337: checking for res_send in -lresolv" >&5    echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14218  echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6  echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14219  if test "${ac_cv_lib_resolv_res_send+set}" = set; then  if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14220    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10342  else Line 14222  else
14222    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14223  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
14224  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14225  #line 10345 "configure"  #line $LINENO "configure"
14226  #include "confdefs.h"  #include "confdefs.h"
14227    
14228  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10352  extern "C" Line 14232  extern "C"
14232  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14233     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14234  char res_send ();  char res_send ();
14235    #ifdef F77_DUMMY_MAIN
14236    #  ifdef __cplusplus
14237         extern "C"
14238    #  endif
14239       int F77_DUMMY_MAIN() { return 1; }
14240    #endif
14241  int  int
14242  main ()  main ()
14243  {  {
# Line 10361  res_send (); Line 14247  res_send ();
14247  }  }
14248  _ACEOF  _ACEOF
14249  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14250  if { (eval echo "$as_me:10364: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14252    ac_status=$?    ac_status=$?
14253    echo "$as_me:10367: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254    (exit $ac_status); } &&    (exit $ac_status); } &&
14255           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14256    { (eval echo "$as_me:10370: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14258    ac_status=$?    ac_status=$?
14259    echo "$as_me:10373: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14261    ac_cv_lib_resolv_res_send=yes    ac_cv_lib_resolv_res_send=yes
14262  else  else
# Line 10381  fi Line 14267  fi
14267  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14268  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14269  fi  fi
14270  echo "$as_me:10384: result: $ac_cv_lib_resolv_res_send" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14271  echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6  echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14272  if test $ac_cv_lib_resolv_res_send = yes; then  if test $ac_cv_lib_resolv_res_send = yes; then
14273    resolv=yes    resolv=yes
14274  else  else
14275    echo "$as_me:10389: checking for __res_send in -lresolv" >&5    echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14276  echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6  echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14277  if test "${ac_cv_lib_resolv___res_send+set}" = set; then  if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14278    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10394  else Line 14280  else
14280    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14281  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
14282  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14283  #line 10397 "configure"  #line $LINENO "configure"
14284  #include "confdefs.h"  #include "confdefs.h"
14285    
14286  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10404  extern "C" Line 14290  extern "C"
14290  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14291     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14292  char __res_send ();  char __res_send ();
14293    #ifdef F77_DUMMY_MAIN
14294    #  ifdef __cplusplus
14295         extern "C"
14296    #  endif
14297       int F77_DUMMY_MAIN() { return 1; }
14298    #endif
14299  int  int
14300  main ()  main ()
14301  {  {
# Line 10413  __res_send (); Line 14305  __res_send ();
14305  }  }
14306  _ACEOF  _ACEOF
14307  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14308  if { (eval echo "$as_me:10416: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14309    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14310    ac_status=$?    ac_status=$?
14311    echo "$as_me:10419: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312    (exit $ac_status); } &&    (exit $ac_status); } &&
14313           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14314    { (eval echo "$as_me:10422: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14316    ac_status=$?    ac_status=$?
14317    echo "$as_me:10425: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14319    ac_cv_lib_resolv___res_send=yes    ac_cv_lib_resolv___res_send=yes
14320  else  else
# Line 10433  fi Line 14325  fi
14325  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14326  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14327  fi  fi
14328  echo "$as_me:10436: result: $ac_cv_lib_resolv___res_send" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14329  echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6  echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14330  if test $ac_cv_lib_resolv___res_send = yes; then  if test $ac_cv_lib_resolv___res_send = yes; then
14331    resolv=yes    resolv=yes
# Line 10447  fi Line 14339  fi
14339    
14340    if test "$resolv" = yes ; then    if test "$resolv" = yes ; then
14341      RESOLVLIB=-lresolv      RESOLVLIB=-lresolv
14342      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
14343  #define HAVE_LIBRESOLV 1  #define HAVE_LIBRESOLV 1
14344  EOF  _ACEOF
14345    
14346    else    else
14347      RESOLVLIB=      RESOLVLIB=
14348    fi    fi
14349    echo "$as_me:10457: checking for hes_getmailhost" >&5    echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14350  echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6  echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14351  if test "${ac_cv_func_hes_getmailhost+set}" = set; then  if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14352    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14353  else  else
14354    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
14355  #line 10463 "configure"  #line $LINENO "configure"
14356  #include "confdefs.h"  #include "confdefs.h"
14357  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
14358      which can conflict with char hes_getmailhost (); below.  */      which can conflict with char hes_getmailhost (); below.  */
# Line 10474  extern "C" Line 14366  extern "C"
14366  char hes_getmailhost ();  char hes_getmailhost ();
14367  char (*f) ();  char (*f) ();
14368    
14369    #ifdef F77_DUMMY_MAIN
14370    #  ifdef __cplusplus
14371         extern "C"
14372    #  endif
14373       int F77_DUMMY_MAIN() { return 1; }
14374    #endif
14375  int  int
14376  main ()  main ()
14377  {  {
# Line 10491  f = hes_getmailhost; Line 14389  f = hes_getmailhost;
14389  }  }
14390  _ACEOF  _ACEOF
14391  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14392  if { (eval echo "$as_me:10494: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14394    ac_status=$?    ac_status=$?
14395    echo "$as_me:10497: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396    (exit $ac_status); } &&    (exit $ac_status); } &&
14397           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14398    { (eval echo "$as_me:10500: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14400    ac_status=$?    ac_status=$?
14401    echo "$as_me:10503: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14403    ac_cv_func_hes_getmailhost=yes    ac_cv_func_hes_getmailhost=yes
14404  else  else
# Line 10510  ac_cv_func_hes_getmailhost=no Line 14408  ac_cv_func_hes_getmailhost=no
14408  fi  fi
14409  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14410  fi  fi
14411  echo "$as_me:10513: result: $ac_cv_func_hes_getmailhost" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14412  echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6  echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14413  if test $ac_cv_func_hes_getmailhost = yes; then  if test $ac_cv_func_hes_getmailhost = yes; then
14414    :    :
14415  else  else
14416    echo "$as_me:10518: checking for hes_getmailhost in -lhesiod" >&5    echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14417  echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6  echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14418  if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then  if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14419    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10523  else Line 14421  else
14421    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14422  LIBS="-lhesiod $RESOLVLIB $LIBS"  LIBS="-lhesiod $RESOLVLIB $LIBS"
14423  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14424  #line 10526 "configure"  #line $LINENO "configure"
14425  #include "confdefs.h"  #include "confdefs.h"
14426    
14427  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10533  extern "C" Line 14431  extern "C"
14431  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14432     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14433  char hes_getmailhost ();  char hes_getmailhost ();
14434    #ifdef F77_DUMMY_MAIN
14435    #  ifdef __cplusplus
14436         extern "C"
14437    #  endif
14438       int F77_DUMMY_MAIN() { return 1; }
14439    #endif
14440  int  int
14441  main ()  main ()
14442  {  {
# Line 10542  hes_getmailhost (); Line 14446  hes_getmailhost ();
14446  }  }
14447  _ACEOF  _ACEOF
14448  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14449  if { (eval echo "$as_me:10545: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14450    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14451    ac_status=$?    ac_status=$?
14452    echo "$as_me:10548: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453    (exit $ac_status); } &&    (exit $ac_status); } &&
14454           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14455    { (eval echo "$as_me:10551: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14457    ac_status=$?    ac_status=$?
14458    echo "$as_me:10554: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14460    ac_cv_lib_hesiod_hes_getmailhost=yes    ac_cv_lib_hesiod_hes_getmailhost=yes
14461  else  else
# Line 10562  fi Line 14466  fi
14466  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14467  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14468  fi  fi
14469  echo "$as_me:10565: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14470  echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6  echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14471  if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then  if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14472    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
14473  #define HAVE_LIBHESIOD 1  #define HAVE_LIBHESIOD 1
14474  EOF  _ACEOF
14475    
14476  else  else
14477    :    :
# Line 10580  fi Line 14484  fi
14484  # These tell us which Kerberos-related libraries to use.  # These tell us which Kerberos-related libraries to use.
14485  if test "${with_kerberos+set}" = set; then  if test "${with_kerberos+set}" = set; then
14486    
14487  echo "$as_me:10583: checking for com_err in -lcom_err" >&5  echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14488  echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6  echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14489  if test "${ac_cv_lib_com_err_com_err+set}" = set; then  if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14490    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10588  else Line 14492  else
14492    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14493  LIBS="-lcom_err  $LIBS"  LIBS="-lcom_err  $LIBS"
14494  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14495  #line 10591 "configure"  #line $LINENO "configure"
14496  #include "confdefs.h"  #include "confdefs.h"
14497    
14498  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10598  extern "C" Line 14502  extern "C"
14502  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14503     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14504  char com_err ();  char com_err ();
14505    #ifdef F77_DUMMY_MAIN
14506    #  ifdef __cplusplus
14507         extern "C"
14508    #  endif
14509       int F77_DUMMY_MAIN() { return 1; }
14510    #endif
14511  int  int
14512  main ()  main ()
14513  {  {
# Line 10607  com_err (); Line 14517  com_err ();
14517  }  }
14518  _ACEOF  _ACEOF
14519  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14520  if { (eval echo "$as_me:10610: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14522    ac_status=$?    ac_status=$?
14523    echo "$as_me:10613: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524    (exit $ac_status); } &&    (exit $ac_status); } &&
14525           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14526    { (eval echo "$as_me:10616: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14528    ac_status=$?    ac_status=$?
14529    echo "$as_me:10619: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14531    ac_cv_lib_com_err_com_err=yes    ac_cv_lib_com_err_com_err=yes
14532  else  else
# Line 10627  fi Line 14537  fi
14537  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14538  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14539  fi  fi
14540  echo "$as_me:10630: result: $ac_cv_lib_com_err_com_err" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14541  echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6  echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14542  if test $ac_cv_lib_com_err_com_err = yes; then  if test $ac_cv_lib_com_err_com_err = yes; then
14543    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14544  #define HAVE_LIBCOM_ERR 1  #define HAVE_LIBCOM_ERR 1
14545  EOF  _ACEOF
14546    
14547    LIBS="-lcom_err $LIBS"    LIBS="-lcom_err $LIBS"
14548    
14549  fi  fi
14550    
14551  echo "$as_me:10641: checking for mit_des_cbc_encrypt in -lk5crypto" >&5  
14552    echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14553  echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6  echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14554  if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then  if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14555    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10646  else Line 14557  else
14557    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14558  LIBS="-lk5crypto  $LIBS"  LIBS="-lk5crypto  $LIBS"
14559  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14560  #line 10649 "configure"  #line $LINENO "configure"
14561  #include "confdefs.h"  #include "confdefs.h"
14562    
14563  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10656  extern "C" Line 14567  extern "C"
14567  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14568     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14569  char mit_des_cbc_encrypt ();  char mit_des_cbc_encrypt ();
14570    #ifdef F77_DUMMY_MAIN
14571    #  ifdef __cplusplus
14572         extern "C"
14573    #  endif
14574       int F77_DUMMY_MAIN() { return 1; }
14575    #endif
14576  int  int
14577  main ()  main ()
14578  {  {
# Line 10665  mit_des_cbc_encrypt (); Line 14582  mit_des_cbc_encrypt ();
14582  }  }
14583  _ACEOF  _ACEOF
14584  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14585  if { (eval echo "$as_me:10668: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14587    ac_status=$?    ac_status=$?
14588    echo "$as_me:10671: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589    (exit $ac_status); } &&    (exit $ac_status); } &&
14590           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14591    { (eval echo "$as_me:10674: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14593    ac_status=$?    ac_status=$?
14594    echo "$as_me:10677: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14596    ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes    ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14597  else  else
# Line 10685  fi Line 14602  fi
14602  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14604  fi  fi
14605  echo "$as_me:10688: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14606  echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6  echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14607  if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then  if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14608    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14609  #define HAVE_LIBK5CRYPTO 1  #define HAVE_LIBK5CRYPTO 1
14610  EOF  _ACEOF
14611    
14612    LIBS="-lk5crypto $LIBS"    LIBS="-lk5crypto $LIBS"
14613    
14614  fi  fi
14615    
14616  echo "$as_me:10699: checking for mit_des_cbc_encrypt in -lcrypto" >&5  
14617    echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14618  echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6  echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14619  if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then  if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14620    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10704  else Line 14622  else
14622    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14623  LIBS="-lcrypto  $LIBS"  LIBS="-lcrypto  $LIBS"
14624  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14625  #line 10707 "configure"  #line $LINENO "configure"
14626  #include "confdefs.h"  #include "confdefs.h"
14627    
14628  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10714  extern "C" Line 14632  extern "C"
14632  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14633     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14634  char mit_des_cbc_encrypt ();  char mit_des_cbc_encrypt ();
14635    #ifdef F77_DUMMY_MAIN
14636    #  ifdef __cplusplus
14637         extern "C"
14638    #  endif
14639       int F77_DUMMY_MAIN() { return 1; }
14640    #endif
14641  int  int
14642  main ()  main ()
14643  {  {
# Line 10723  mit_des_cbc_encrypt (); Line 14647  mit_des_cbc_encrypt ();
14647  }  }
14648  _ACEOF  _ACEOF
14649  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14650  if { (eval echo "$as_me:10726: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14652    ac_status=$?    ac_status=$?
14653    echo "$as_me:10729: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654    (exit $ac_status); } &&    (exit $ac_status); } &&
14655           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14656    { (eval echo "$as_me:10732: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14658    ac_status=$?    ac_status=$?
14659    echo "$as_me:10735: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14661    ac_cv_lib_crypto_mit_des_cbc_encrypt=yes    ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14662  else  else
# Line 10743  fi Line 14667  fi
14667  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14668  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14669  fi  fi
14670  echo "$as_me:10746: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14671  echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6  echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14672  if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then  if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14673    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14674  #define HAVE_LIBCRYPTO 1  #define HAVE_LIBCRYPTO 1
14675  EOF  _ACEOF
14676    
14677    LIBS="-lcrypto $LIBS"    LIBS="-lcrypto $LIBS"
14678    
14679  fi  fi
14680    
14681  echo "$as_me:10757: checking for krb5_init_context in -lkrb5" >&5  
14682    echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14683  echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6  echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14684  if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then  if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14685    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10762  else Line 14687  else
14687    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14688  LIBS="-lkrb5  $LIBS"  LIBS="-lkrb5  $LIBS"
14689  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14690  #line 10765 "configure"  #line $LINENO "configure"
14691  #include "confdefs.h"  #include "confdefs.h"
14692    
14693  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10772  extern "C" Line 14697  extern "C"
14697  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14698     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14699  char krb5_init_context ();  char krb5_init_context ();
14700    #ifdef F77_DUMMY_MAIN
14701    #  ifdef __cplusplus
14702         extern "C"
14703    #  endif
14704       int F77_DUMMY_MAIN() { return 1; }
14705    #endif
14706  int  int
14707  main ()  main ()
14708  {  {
# Line 10781  krb5_init_context (); Line 14712  krb5_init_context ();
14712  }  }
14713  _ACEOF  _ACEOF
14714  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14715  if { (eval echo "$as_me:10784: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14716    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14717    ac_status=$?    ac_status=$?
14718    echo "$as_me:10787: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719    (exit $ac_status); } &&    (exit $ac_status); } &&
14720           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14721    { (eval echo "$as_me:10790: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14723    ac_status=$?    ac_status=$?
14724    echo "$as_me:10793: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14726    ac_cv_lib_krb5_krb5_init_context=yes    ac_cv_lib_krb5_krb5_init_context=yes
14727  else  else
# Line 10801  fi Line 14732  fi
14732  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14733  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14734  fi  fi
14735  echo "$as_me:10804: result: $ac_cv_lib_krb5_krb5_init_context" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14736  echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6  echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14737  if test $ac_cv_lib_krb5_krb5_init_context = yes; then  if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14738    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14739  #define HAVE_LIBKRB5 1  #define HAVE_LIBKRB5 1
14740  EOF  _ACEOF
14741    
14742    LIBS="-lkrb5 $LIBS"    LIBS="-lkrb5 $LIBS"
14743    
# Line 10814  fi Line 14745  fi
14745    
14746    if test "${with_kerberos5+set}" != set; then    if test "${with_kerberos5+set}" != set; then
14747    
14748  echo "$as_me:10817: checking for des_cbc_encrypt in -ldes425" >&5  echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14749  echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6  echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14750  if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then  if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14751    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10822  else Line 14753  else
14753    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14754  LIBS="-ldes425  $LIBS"  LIBS="-ldes425  $LIBS"
14755  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14756  #line 10825 "configure"  #line $LINENO "configure"
14757  #include "confdefs.h"  #include "confdefs.h"
14758    
14759  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10832  extern "C" Line 14763  extern "C"
14763  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14764     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14765  char des_cbc_encrypt ();  char des_cbc_encrypt ();
14766    #ifdef F77_DUMMY_MAIN
14767    #  ifdef __cplusplus
14768         extern "C"
14769    #  endif
14770       int F77_DUMMY_MAIN() { return 1; }
14771    #endif
14772  int  int
14773  main ()  main ()
14774  {  {
# Line 10841  des_cbc_encrypt (); Line 14778  des_cbc_encrypt ();
14778  }  }
14779  _ACEOF  _ACEOF
14780  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14781  if { (eval echo "$as_me:10844: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14782    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14783    ac_status=$?    ac_status=$?
14784    echo "$as_me:10847: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785    (exit $ac_status); } &&    (exit $ac_status); } &&
14786           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14787    { (eval echo "$as_me:10850: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14789    ac_status=$?    ac_status=$?
14790    echo "$as_me:10853: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14792    ac_cv_lib_des425_des_cbc_encrypt=yes    ac_cv_lib_des425_des_cbc_encrypt=yes
14793  else  else
# Line 10861  fi Line 14798  fi
14798  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14799  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14800  fi  fi
14801  echo "$as_me:10864: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14802  echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6  echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14803  if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then  if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14804    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14805  #define HAVE_LIBDES425 1  #define HAVE_LIBDES425 1
14806  EOF  _ACEOF
14807    
14808    LIBS="-ldes425 $LIBS"    LIBS="-ldes425 $LIBS"
14809    
14810  else  else
14811    
14812  echo "$as_me:10875: checking for des_cbc_encrypt in -ldes" >&5  echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14813  echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6  echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14814  if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then  if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14815    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10880  else Line 14817  else
14817    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14818  LIBS="-ldes  $LIBS"  LIBS="-ldes  $LIBS"
14819  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14820  #line 10883 "configure"  #line $LINENO "configure"
14821  #include "confdefs.h"  #include "confdefs.h"
14822    
14823  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10890  extern "C" Line 14827  extern "C"
14827  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14828     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14829  char des_cbc_encrypt ();  char des_cbc_encrypt ();
14830    #ifdef F77_DUMMY_MAIN
14831    #  ifdef __cplusplus
14832         extern "C"
14833    #  endif
14834       int F77_DUMMY_MAIN() { return 1; }
14835    #endif
14836  int  int
14837  main ()  main ()
14838  {  {
# Line 10899  des_cbc_encrypt (); Line 14842  des_cbc_encrypt ();
14842  }  }
14843  _ACEOF  _ACEOF
14844  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14845  if { (eval echo "$as_me:10902: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14847    ac_status=$?    ac_status=$?
14848    echo "$as_me:10905: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849    (exit $ac_status); } &&    (exit $ac_status); } &&
14850           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14851    { (eval echo "$as_me:10908: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14853    ac_status=$?    ac_status=$?
14854    echo "$as_me:10911: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14856    ac_cv_lib_des_des_cbc_encrypt=yes    ac_cv_lib_des_des_cbc_encrypt=yes
14857  else  else
# Line 10919  fi Line 14862  fi
14862  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14863  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14864  fi  fi
14865  echo "$as_me:10922: result: $ac_cv_lib_des_des_cbc_encrypt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14866  echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6  echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14867  if test $ac_cv_lib_des_des_cbc_encrypt = yes; then  if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14868    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14869  #define HAVE_LIBDES 1  #define HAVE_LIBDES 1
14870  EOF  _ACEOF
14871    
14872    LIBS="-ldes $LIBS"    LIBS="-ldes $LIBS"
14873    
# Line 10932  fi Line 14875  fi
14875    
14876  fi  fi
14877    
14878  echo "$as_me:10935: checking for krb_get_cred in -lkrb4" >&5  
14879    echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14880  echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6  echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14881  if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then  if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14882    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10940  else Line 14884  else
14884    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14885  LIBS="-lkrb4  $LIBS"  LIBS="-lkrb4  $LIBS"
14886  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14887  #line 10943 "configure"  #line $LINENO "configure"
14888  #include "confdefs.h"  #include "confdefs.h"
14889    
14890  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 10950  extern "C" Line 14894  extern "C"
14894  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14895     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14896  char krb_get_cred ();  char krb_get_cred ();
14897    #ifdef F77_DUMMY_MAIN
14898    #  ifdef __cplusplus
14899         extern "C"
14900    #  endif
14901       int F77_DUMMY_MAIN() { return 1; }
14902    #endif
14903  int  int
14904  main ()  main ()
14905  {  {
# Line 10959  krb_get_cred (); Line 14909  krb_get_cred ();
14909  }  }
14910  _ACEOF  _ACEOF
14911  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14912  if { (eval echo "$as_me:10962: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14914    ac_status=$?    ac_status=$?
14915    echo "$as_me:10965: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916    (exit $ac_status); } &&    (exit $ac_status); } &&
14917           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14918    { (eval echo "$as_me:10968: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14920    ac_status=$?    ac_status=$?
14921    echo "$as_me:10971: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14923    ac_cv_lib_krb4_krb_get_cred=yes    ac_cv_lib_krb4_krb_get_cred=yes
14924  else  else
# Line 10979  fi Line 14929  fi
14929  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14930  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14931  fi  fi
14932  echo "$as_me:10982: result: $ac_cv_lib_krb4_krb_get_cred" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14933  echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6  echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14934  if test $ac_cv_lib_krb4_krb_get_cred = yes; then  if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14935    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
14936  #define HAVE_LIBKRB4 1  #define HAVE_LIBKRB4 1
14937  EOF  _ACEOF
14938    
14939    LIBS="-lkrb4 $LIBS"    LIBS="-lkrb4 $LIBS"
14940    
14941  else  else
14942    
14943  echo "$as_me:10993: checking for krb_get_cred in -lkrb" >&5  echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14944  echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6  echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14945  if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then  if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14946    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 10998  else Line 14948  else
14948    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
14949  LIBS="-lkrb  $LIBS"  LIBS="-lkrb  $LIBS"
14950  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
14951  #line 11001 "configure"  #line $LINENO "configure"
14952  #include "confdefs.h"  #include "confdefs.h"
14953    
14954  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 11008  extern "C" Line 14958  extern "C"
14958  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
14959     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
14960  char krb_get_cred ();  char krb_get_cred ();
14961    #ifdef F77_DUMMY_MAIN
14962    #  ifdef __cplusplus
14963         extern "C"
14964    #  endif
14965       int F77_DUMMY_MAIN() { return 1; }
14966    #endif
14967  int  int
14968  main ()  main ()
14969  {  {
# Line 11017  krb_get_cred (); Line 14973  krb_get_cred ();
14973  }  }
14974  _ACEOF  _ACEOF
14975  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
14976  if { (eval echo "$as_me:11020: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
14978    ac_status=$?    ac_status=$?
14979    echo "$as_me:11023: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980    (exit $ac_status); } &&    (exit $ac_status); } &&
14981           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
14982    { (eval echo "$as_me:11026: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
14984    ac_status=$?    ac_status=$?
14985    echo "$as_me:11029: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
14987    ac_cv_lib_krb_krb_get_cred=yes    ac_cv_lib_krb_krb_get_cred=yes
14988  else  else
# Line 11037  fi Line 14993  fi
14993  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14994  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
14995  fi  fi
14996  echo "$as_me:11040: result: $ac_cv_lib_krb_krb_get_cred" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14997  echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6  echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14998  if test $ac_cv_lib_krb_krb_get_cred = yes; then  if test $ac_cv_lib_krb_krb_get_cred = yes; then
14999    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15000  #define HAVE_LIBKRB 1  #define HAVE_LIBKRB 1
15001  EOF  _ACEOF
15002    
15003    LIBS="-lkrb $LIBS"    LIBS="-lkrb $LIBS"
15004    
# Line 11057  fi Line 15013  fi
15013  for ac_header in krb5.h  for ac_header in krb5.h
15014  do  do
15015  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15016  echo "$as_me:11060: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15017      echo "$as_me:$LINENO: checking for $ac_header" >&5
15018  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15019  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15021    fi
15022    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15023    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15024  else  else
15025    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15026  #line 11066 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15028    cat >conftest.$ac_ext <<_ACEOF
15029    #line $LINENO "configure"
15030  #include "confdefs.h"  #include "confdefs.h"
15031    $ac_includes_default
15032  #include <$ac_header>  #include <$ac_header>
15033  _ACEOF  _ACEOF
15034  if { (eval echo "$as_me:11070: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
15035    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036      (eval $ac_compile) 2>&5
15037      ac_status=$?
15038      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039      (exit $ac_status); } &&
15040             { ac_try='test -s conftest.$ac_objext'
15041      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042      (eval $ac_try) 2>&5
15043      ac_status=$?
15044      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045      (exit $ac_status); }; }; then
15046      ac_header_compiler=yes
15047    else
15048      echo "$as_me: failed program was:" >&5
15049    cat conftest.$ac_ext >&5
15050    ac_header_compiler=no
15051    fi
15052    rm -f conftest.$ac_objext conftest.$ac_ext
15053    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15054    echo "${ECHO_T}$ac_header_compiler" >&6
15055    
15056    # Is the header present?
15057    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15058    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15059    cat >conftest.$ac_ext <<_ACEOF
15060    #line $LINENO "configure"
15061    #include "confdefs.h"
15062    #include <$ac_header>
15063    _ACEOF
15064    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15065    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15066    ac_status=$?    ac_status=$?
15067    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15068    rm -f conftest.er1    rm -f conftest.er1
15069    cat conftest.err >&5    cat conftest.err >&5
15070    echo "$as_me:11076: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15072    if test -s conftest.err; then    if test -s conftest.err; then
15073      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11084  else Line 15078  else
15078    ac_cpp_err=yes    ac_cpp_err=yes
15079  fi  fi
15080  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15081    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15082  else  else
15083    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15084    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15085    eval "$as_ac_Header=no"    ac_header_preproc=no
15086  fi  fi
15087  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15088    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15089    echo "${ECHO_T}$ac_header_preproc" >&6
15090    
15091    # So?  What about this header?
15092    case $ac_header_compiler:$ac_header_preproc in
15093      yes:no )
15094        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15095    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15096        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15098      no:yes )
15099        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15100    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15101        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15102    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15103        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15104    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15105    esac
15106    echo "$as_me:$LINENO: checking for $ac_header" >&5
15107    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15108    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109      echo $ECHO_N "(cached) $ECHO_C" >&6
15110    else
15111      eval "$as_ac_Header=$ac_header_preproc"
15112  fi  fi
15113  echo "$as_me:11095: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15114  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15115    
15116    fi
15117  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15118    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15119  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15120  EOF  _ACEOF
15121    
15122  fi  fi
15123    
15124  done  done
15125    
15126    else    else
# Line 11107  done Line 15128  done
15128  for ac_header in des.h  for ac_header in des.h
15129  do  do
15130  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131  echo "$as_me:11110: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132      echo "$as_me:$LINENO: checking for $ac_header" >&5
15133  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15134  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15135    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15136    fi
15137    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15138    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15139  else  else
15140    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15141  #line 11116 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15142    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15143    cat >conftest.$ac_ext <<_ACEOF
15144    #line $LINENO "configure"
15145    #include "confdefs.h"
15146    $ac_includes_default
15147    #include <$ac_header>
15148    _ACEOF
15149    rm -f conftest.$ac_objext
15150    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151      (eval $ac_compile) 2>&5
15152      ac_status=$?
15153      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154      (exit $ac_status); } &&
15155             { ac_try='test -s conftest.$ac_objext'
15156      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157      (eval $ac_try) 2>&5
15158      ac_status=$?
15159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160      (exit $ac_status); }; }; then
15161      ac_header_compiler=yes
15162    else
15163      echo "$as_me: failed program was:" >&5
15164    cat conftest.$ac_ext >&5
15165    ac_header_compiler=no
15166    fi
15167    rm -f conftest.$ac_objext conftest.$ac_ext
15168    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15169    echo "${ECHO_T}$ac_header_compiler" >&6
15170    
15171    # Is the header present?
15172    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15173    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15174    cat >conftest.$ac_ext <<_ACEOF
15175    #line $LINENO "configure"
15176  #include "confdefs.h"  #include "confdefs.h"
15177  #include <$ac_header>  #include <$ac_header>
15178  _ACEOF  _ACEOF
15179  if { (eval echo "$as_me:11120: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15180    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15181    ac_status=$?    ac_status=$?
15182    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15183    rm -f conftest.er1    rm -f conftest.er1
15184    cat conftest.err >&5    cat conftest.err >&5
15185    echo "$as_me:11126: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15187    if test -s conftest.err; then    if test -s conftest.err; then
15188      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11134  else Line 15193  else
15193    ac_cpp_err=yes    ac_cpp_err=yes
15194  fi  fi
15195  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15196    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15197  else  else
15198    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15199    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15200    eval "$as_ac_Header=no"    ac_header_preproc=no
15201  fi  fi
15202  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15203    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15204    echo "${ECHO_T}$ac_header_preproc" >&6
15205    
15206    # So?  What about this header?
15207    case $ac_header_compiler:$ac_header_preproc in
15208      yes:no )
15209        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15210    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15211        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15212    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15213      no:yes )
15214        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15217    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15218        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15220    esac
15221    echo "$as_me:$LINENO: checking for $ac_header" >&5
15222    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224      echo $ECHO_N "(cached) $ECHO_C" >&6
15225    else
15226      eval "$as_ac_Header=$ac_header_preproc"
15227  fi  fi
15228  echo "$as_me:11145: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15229  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15230    
15231    fi
15232  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15233    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15234  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15235  EOF  _ACEOF
15236    
15237  else  else
15238    
15239  for ac_header in kerberosIV/des.h  for ac_header in kerberosIV/des.h
15240  do  do
15241  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15242  echo "$as_me:11157: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15243      echo "$as_me:$LINENO: checking for $ac_header" >&5
15244  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15245  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15246    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15247    fi
15248    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15249    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15250  else  else
15251    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15252  #line 11163 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15253    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15254    cat >conftest.$ac_ext <<_ACEOF
15255    #line $LINENO "configure"
15256    #include "confdefs.h"
15257    $ac_includes_default
15258    #include <$ac_header>
15259    _ACEOF
15260    rm -f conftest.$ac_objext
15261    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262      (eval $ac_compile) 2>&5
15263      ac_status=$?
15264      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265      (exit $ac_status); } &&
15266             { ac_try='test -s conftest.$ac_objext'
15267      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268      (eval $ac_try) 2>&5
15269      ac_status=$?
15270      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271      (exit $ac_status); }; }; then
15272      ac_header_compiler=yes
15273    else
15274      echo "$as_me: failed program was:" >&5
15275    cat conftest.$ac_ext >&5
15276    ac_header_compiler=no
15277    fi
15278    rm -f conftest.$ac_objext conftest.$ac_ext
15279    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15280    echo "${ECHO_T}$ac_header_compiler" >&6
15281    
15282    # Is the header present?
15283    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15284    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15285    cat >conftest.$ac_ext <<_ACEOF
15286    #line $LINENO "configure"
15287  #include "confdefs.h"  #include "confdefs.h"
15288  #include <$ac_header>  #include <$ac_header>
15289  _ACEOF  _ACEOF
15290  if { (eval echo "$as_me:11167: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15291    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15292    ac_status=$?    ac_status=$?
15293    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15294    rm -f conftest.er1    rm -f conftest.er1
15295    cat conftest.err >&5    cat conftest.err >&5
15296    echo "$as_me:11173: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15298    if test -s conftest.err; then    if test -s conftest.err; then
15299      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11181  else Line 15304  else
15304    ac_cpp_err=yes    ac_cpp_err=yes
15305  fi  fi
15306  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15307    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15308  else  else
15309    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15310    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15311    eval "$as_ac_Header=no"    ac_header_preproc=no
15312  fi  fi
15313  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15314    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15315    echo "${ECHO_T}$ac_header_preproc" >&6
15316    
15317    # So?  What about this header?
15318    case $ac_header_compiler:$ac_header_preproc in
15319      yes:no )
15320        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15321    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15322        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15323    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15324      no:yes )
15325        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15330    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15331    esac
15332    echo "$as_me:$LINENO: checking for $ac_header" >&5
15333    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15334    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15335      echo $ECHO_N "(cached) $ECHO_C" >&6
15336    else
15337      eval "$as_ac_Header=$ac_header_preproc"
15338  fi  fi
15339  echo "$as_me:11192: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15340  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15341    
15342    fi
15343  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15344    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15345  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15346  EOF  _ACEOF
15347    
15348  else  else
15349    
15350  for ac_header in kerberos/des.h  for ac_header in kerberos/des.h
15351  do  do
15352  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353  echo "$as_me:11204: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15354      echo "$as_me:$LINENO: checking for $ac_header" >&5
15355  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15356  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15357    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15358    fi
15359    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15360    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15361  else  else
15362    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15363  #line 11210 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15364    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15365    cat >conftest.$ac_ext <<_ACEOF
15366    #line $LINENO "configure"
15367  #include "confdefs.h"  #include "confdefs.h"
15368    $ac_includes_default
15369  #include <$ac_header>  #include <$ac_header>
15370  _ACEOF  _ACEOF
15371  if { (eval echo "$as_me:11214: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
15372    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373      (eval $ac_compile) 2>&5
15374      ac_status=$?
15375      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376      (exit $ac_status); } &&
15377             { ac_try='test -s conftest.$ac_objext'
15378      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379      (eval $ac_try) 2>&5
15380      ac_status=$?
15381      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382      (exit $ac_status); }; }; then
15383      ac_header_compiler=yes
15384    else
15385      echo "$as_me: failed program was:" >&5
15386    cat conftest.$ac_ext >&5
15387    ac_header_compiler=no
15388    fi
15389    rm -f conftest.$ac_objext conftest.$ac_ext
15390    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15391    echo "${ECHO_T}$ac_header_compiler" >&6
15392    
15393    # Is the header present?
15394    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15395    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15396    cat >conftest.$ac_ext <<_ACEOF
15397    #line $LINENO "configure"
15398    #include "confdefs.h"
15399    #include <$ac_header>
15400    _ACEOF
15401    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15402    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15403    ac_status=$?    ac_status=$?
15404    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15405    rm -f conftest.er1    rm -f conftest.er1
15406    cat conftest.err >&5    cat conftest.err >&5
15407    echo "$as_me:11220: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15409    if test -s conftest.err; then    if test -s conftest.err; then
15410      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11228  else Line 15415  else
15415    ac_cpp_err=yes    ac_cpp_err=yes
15416  fi  fi
15417  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15418    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15419  else  else
15420    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15421    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15422    eval "$as_ac_Header=no"    ac_header_preproc=no
15423  fi  fi
15424  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15425    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15426    echo "${ECHO_T}$ac_header_preproc" >&6
15427    
15428    # So?  What about this header?
15429    case $ac_header_compiler:$ac_header_preproc in
15430      yes:no )
15431        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15432    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15433        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15435      no:yes )
15436        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15437    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15438        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15439    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15440        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15442    esac
15443    echo "$as_me:$LINENO: checking for $ac_header" >&5
15444    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15445    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15446      echo $ECHO_N "(cached) $ECHO_C" >&6
15447    else
15448      eval "$as_ac_Header=$ac_header_preproc"
15449  fi  fi
15450  echo "$as_me:11239: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15451  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15452    
15453    fi
15454  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15455    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15456  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15457  EOF  _ACEOF
15458    
15459  fi  fi
15460    
15461  done  done
15462    
15463  fi  fi
15464    
15465  done  done
15466    
15467  fi  fi
15468    
15469  done  done
15470    
15471    
15472  for ac_header in krb.h  for ac_header in krb.h
15473  do  do
15474  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475  echo "$as_me:11258: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15476      echo "$as_me:$LINENO: checking for $ac_header" >&5
15477  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15478  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15479    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15480    fi
15481    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15482    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15483  else  else
15484    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15485  #line 11264 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15486    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15487    cat >conftest.$ac_ext <<_ACEOF
15488    #line $LINENO "configure"
15489    #include "confdefs.h"
15490    $ac_includes_default
15491    #include <$ac_header>
15492    _ACEOF
15493    rm -f conftest.$ac_objext
15494    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15495      (eval $ac_compile) 2>&5
15496      ac_status=$?
15497      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498      (exit $ac_status); } &&
15499             { ac_try='test -s conftest.$ac_objext'
15500      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501      (eval $ac_try) 2>&5
15502      ac_status=$?
15503      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504      (exit $ac_status); }; }; then
15505      ac_header_compiler=yes
15506    else
15507      echo "$as_me: failed program was:" >&5
15508    cat conftest.$ac_ext >&5
15509    ac_header_compiler=no
15510    fi
15511    rm -f conftest.$ac_objext conftest.$ac_ext
15512    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513    echo "${ECHO_T}$ac_header_compiler" >&6
15514    
15515    # Is the header present?
15516    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15517    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15518    cat >conftest.$ac_ext <<_ACEOF
15519    #line $LINENO "configure"
15520  #include "confdefs.h"  #include "confdefs.h"
15521  #include <$ac_header>  #include <$ac_header>
15522  _ACEOF  _ACEOF
15523  if { (eval echo "$as_me:11268: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15524    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15525    ac_status=$?    ac_status=$?
15526    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15527    rm -f conftest.er1    rm -f conftest.er1
15528    cat conftest.err >&5    cat conftest.err >&5
15529    echo "$as_me:11274: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15531    if test -s conftest.err; then    if test -s conftest.err; then
15532      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11282  else Line 15537  else
15537    ac_cpp_err=yes    ac_cpp_err=yes
15538  fi  fi
15539  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15540    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15541  else  else
15542    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15543    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15544    eval "$as_ac_Header=no"    ac_header_preproc=no
15545  fi  fi
15546  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15547    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15548    echo "${ECHO_T}$ac_header_preproc" >&6
15549    
15550    # So?  What about this header?
15551    case $ac_header_compiler:$ac_header_preproc in
15552      yes:no )
15553        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15554    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15556    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15557      no:yes )
15558        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15559    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15560        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15561    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15562        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15564    esac
15565    echo "$as_me:$LINENO: checking for $ac_header" >&5
15566    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15567    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15568      echo $ECHO_N "(cached) $ECHO_C" >&6
15569    else
15570      eval "$as_ac_Header=$ac_header_preproc"
15571  fi  fi
15572  echo "$as_me:11293: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15573  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15574    
15575    fi
15576  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15577    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15578  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15579  EOF  _ACEOF
15580    
15581  else  else
15582    
15583  for ac_header in kerberosIV/krb.h  for ac_header in kerberosIV/krb.h
15584  do  do
15585  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586  echo "$as_me:11305: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587      echo "$as_me:$LINENO: checking for $ac_header" >&5
15588  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15589  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15590    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15591    fi
15592    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15593    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15594  else  else
15595    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15596  #line 11311 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15598    cat >conftest.$ac_ext <<_ACEOF
15599    #line $LINENO "configure"
15600  #include "confdefs.h"  #include "confdefs.h"
15601    $ac_includes_default
15602  #include <$ac_header>  #include <$ac_header>
15603  _ACEOF  _ACEOF
15604  if { (eval echo "$as_me:11315: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
15605    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15606      (eval $ac_compile) 2>&5
15607      ac_status=$?
15608      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609      (exit $ac_status); } &&
15610             { ac_try='test -s conftest.$ac_objext'
15611      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612      (eval $ac_try) 2>&5
15613      ac_status=$?
15614      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615      (exit $ac_status); }; }; then
15616      ac_header_compiler=yes
15617    else
15618      echo "$as_me: failed program was:" >&5
15619    cat conftest.$ac_ext >&5
15620    ac_header_compiler=no
15621    fi
15622    rm -f conftest.$ac_objext conftest.$ac_ext
15623    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624    echo "${ECHO_T}$ac_header_compiler" >&6
15625    
15626    # Is the header present?
15627    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629    cat >conftest.$ac_ext <<_ACEOF
15630    #line $LINENO "configure"
15631    #include "confdefs.h"
15632    #include <$ac_header>
15633    _ACEOF
15634    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15635    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15636    ac_status=$?    ac_status=$?
15637    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15638    rm -f conftest.er1    rm -f conftest.er1
15639    cat conftest.err >&5    cat conftest.err >&5
15640    echo "$as_me:11321: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15642    if test -s conftest.err; then    if test -s conftest.err; then
15643      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11329  else Line 15648  else
15648    ac_cpp_err=yes    ac_cpp_err=yes
15649  fi  fi
15650  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15651    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15652  else  else
15653    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15654    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15655    eval "$as_ac_Header=no"    ac_header_preproc=no
15656  fi  fi
15657  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15658    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659    echo "${ECHO_T}$ac_header_preproc" >&6
15660    
15661    # So?  What about this header?
15662    case $ac_header_compiler:$ac_header_preproc in
15663      yes:no )
15664        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15667    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15668      no:yes )
15669        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15670    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15671        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15672    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15673        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15674    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15675    esac
15676    echo "$as_me:$LINENO: checking for $ac_header" >&5
15677    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15678    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15679      echo $ECHO_N "(cached) $ECHO_C" >&6
15680    else
15681      eval "$as_ac_Header=$ac_header_preproc"
15682  fi  fi
15683  echo "$as_me:11340: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15684  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15685    
15686    fi
15687  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15688    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15689  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15690  EOF  _ACEOF
15691    
15692  else  else
15693    
15694  for ac_header in kerberos/krb.h  for ac_header in kerberos/krb.h
15695  do  do
15696  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697  echo "$as_me:11352: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698      echo "$as_me:$LINENO: checking for $ac_header" >&5
15699  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15702    fi
15703    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15704    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15705  else  else
15706    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15707  #line 11358 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15709    cat >conftest.$ac_ext <<_ACEOF
15710    #line $LINENO "configure"
15711  #include "confdefs.h"  #include "confdefs.h"
15712    $ac_includes_default
15713  #include <$ac_header>  #include <$ac_header>
15714  _ACEOF  _ACEOF
15715  if { (eval echo "$as_me:11362: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext
15716    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717      (eval $ac_compile) 2>&5
15718      ac_status=$?
15719      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720      (exit $ac_status); } &&
15721             { ac_try='test -s conftest.$ac_objext'
15722      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723      (eval $ac_try) 2>&5
15724      ac_status=$?
15725      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726      (exit $ac_status); }; }; then
15727      ac_header_compiler=yes
15728    else
15729      echo "$as_me: failed program was:" >&5
15730    cat conftest.$ac_ext >&5
15731    ac_header_compiler=no
15732    fi
15733    rm -f conftest.$ac_objext conftest.$ac_ext
15734    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15735    echo "${ECHO_T}$ac_header_compiler" >&6
15736    
15737    # Is the header present?
15738    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15739    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15740    cat >conftest.$ac_ext <<_ACEOF
15741    #line $LINENO "configure"
15742    #include "confdefs.h"
15743    #include <$ac_header>
15744    _ACEOF
15745    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15746    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15747    ac_status=$?    ac_status=$?
15748    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15749    rm -f conftest.er1    rm -f conftest.er1
15750    cat conftest.err >&5    cat conftest.err >&5
15751    echo "$as_me:11368: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15753    if test -s conftest.err; then    if test -s conftest.err; then
15754      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11376  else Line 15759  else
15759    ac_cpp_err=yes    ac_cpp_err=yes
15760  fi  fi
15761  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15762    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15763  else  else
15764    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15765    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15766    eval "$as_ac_Header=no"    ac_header_preproc=no
15767  fi  fi
15768  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15769    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15770    echo "${ECHO_T}$ac_header_preproc" >&6
15771    
15772    # So?  What about this header?
15773    case $ac_header_compiler:$ac_header_preproc in
15774      yes:no )
15775        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15776    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15779      no:yes )
15780        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15781    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15782        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15783    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15784        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15786    esac
15787    echo "$as_me:$LINENO: checking for $ac_header" >&5
15788    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15789    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790      echo $ECHO_N "(cached) $ECHO_C" >&6
15791    else
15792      eval "$as_ac_Header=$ac_header_preproc"
15793  fi  fi
15794  echo "$as_me:11387: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15795  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15796    
15797    fi
15798  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15800  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15801  EOF  _ACEOF
15802    
15803  fi  fi
15804    
15805  done  done
15806    
15807  fi  fi
15808    
15809  done  done
15810    
15811  fi  fi
15812    
15813  done  done
15814    
15815    fi    fi
# Line 11405  done Line 15817  done
15817  for ac_header in com_err.h  for ac_header in com_err.h
15818  do  do
15819  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15820  echo "$as_me:11408: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821      echo "$as_me:$LINENO: checking for $ac_header" >&5
15822  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15823  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
15824    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15825    fi
15826    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15827    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15828  else  else
15829    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
15830  #line 11414 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15832    cat >conftest.$ac_ext <<_ACEOF
15833    #line $LINENO "configure"
15834    #include "confdefs.h"
15835    $ac_includes_default
15836    #include <$ac_header>
15837    _ACEOF
15838    rm -f conftest.$ac_objext
15839    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840      (eval $ac_compile) 2>&5
15841      ac_status=$?
15842      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843      (exit $ac_status); } &&
15844             { ac_try='test -s conftest.$ac_objext'
15845      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846      (eval $ac_try) 2>&5
15847      ac_status=$?
15848      echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849      (exit $ac_status); }; }; then
15850      ac_header_compiler=yes
15851    else
15852      echo "$as_me: failed program was:" >&5
15853    cat conftest.$ac_ext >&5
15854    ac_header_compiler=no
15855    fi
15856    rm -f conftest.$ac_objext conftest.$ac_ext
15857    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858    echo "${ECHO_T}$ac_header_compiler" >&6
15859    
15860    # Is the header present?
15861    echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15863    cat >conftest.$ac_ext <<_ACEOF
15864    #line $LINENO "configure"
15865  #include "confdefs.h"  #include "confdefs.h"
15866  #include <$ac_header>  #include <$ac_header>
15867  _ACEOF  _ACEOF
15868  if { (eval echo "$as_me:11418: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15869    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15870    ac_status=$?    ac_status=$?
15871    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
15872    rm -f conftest.er1    rm -f conftest.er1
15873    cat conftest.err >&5    cat conftest.err >&5
15874    echo "$as_me:11424: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
15876    if test -s conftest.err; then    if test -s conftest.err; then
15877      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11432  else Line 15882  else
15882    ac_cpp_err=yes    ac_cpp_err=yes
15883  fi  fi
15884  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
15885    eval "$as_ac_Header=yes"    ac_header_preproc=yes
15886  else  else
15887    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15888    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
15889    eval "$as_ac_Header=no"    ac_header_preproc=no
15890  fi  fi
15891  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
15892    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15893    echo "${ECHO_T}$ac_header_preproc" >&6
15894    
15895    # So?  What about this header?
15896    case $ac_header_compiler:$ac_header_preproc in
15897      yes:no )
15898        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15901    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15902      no:yes )
15903        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15904    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15905        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15906    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15907        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15909    esac
15910    echo "$as_me:$LINENO: checking for $ac_header" >&5
15911    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15912    if eval "test \"\${$as_ac_Header+set}\" = set"; then
15913      echo $ECHO_N "(cached) $ECHO_C" >&6
15914    else
15915      eval "$as_ac_Header=$ac_header_preproc"
15916  fi  fi
15917  echo "$as_me:11443: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15918  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15919    
15920    fi
15921  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
15922    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15923  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15924  EOF  _ACEOF
15925    
15926  fi  fi
15927    
15928  done  done
15929    
15930  fi  fi
# Line 11455  fi Line 15932  fi
15932  # Solaris requires -lintl if you want strerror (which calls dgettext)  # Solaris requires -lintl if you want strerror (which calls dgettext)
15933  # to return localized messages.  # to return localized messages.
15934    
15935  echo "$as_me:11458: checking for dgettext in -lintl" >&5  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15936  echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6  echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
15937  if test "${ac_cv_lib_intl_dgettext+set}" = set; then  if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15938    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 11463  else Line 15940  else
15940    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
15941  LIBS="-lintl  $LIBS"  LIBS="-lintl  $LIBS"
15942  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
15943  #line 11466 "configure"  #line $LINENO "configure"
15944  #include "confdefs.h"  #include "confdefs.h"
15945    
15946  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
# Line 11473  extern "C" Line 15950  extern "C"
15950  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
15951     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
15952  char dgettext ();  char dgettext ();
15953    #ifdef F77_DUMMY_MAIN
15954    #  ifdef __cplusplus
15955         extern "C"
15956    #  endif
15957       int F77_DUMMY_MAIN() { return 1; }
15958    #endif
15959  int  int
15960  main ()  main ()
15961  {  {
# Line 11482  dgettext (); Line 15965  dgettext ();
15965  }  }
15966  _ACEOF  _ACEOF
15967  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
15968  if { (eval echo "$as_me:11485: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15969    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
15970    ac_status=$?    ac_status=$?
15971    echo "$as_me:11488: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972    (exit $ac_status); } &&    (exit $ac_status); } &&
15973           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
15974    { (eval echo "$as_me:11491: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
15976    ac_status=$?    ac_status=$?
15977    echo "$as_me:11494: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
15979    ac_cv_lib_intl_dgettext=yes    ac_cv_lib_intl_dgettext=yes
15980  else  else
# Line 11502  fi Line 15985  fi
15985  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15986  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
15987  fi  fi
15988  echo "$as_me:11505: result: $ac_cv_lib_intl_dgettext" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15989  echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6  echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
15990  if test $ac_cv_lib_intl_dgettext = yes; then  if test $ac_cv_lib_intl_dgettext = yes; then
15991    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
15992  #define HAVE_LIBINTL 1  #define HAVE_LIBINTL 1
15993  EOF  _ACEOF
15994    
15995    LIBS="-lintl $LIBS"    LIBS="-lintl $LIBS"
15996    
15997  fi  fi
15998    
15999  echo "$as_me:11516: checking whether localtime caches TZ" >&5  
16000    echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16001  echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6  echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16002  if test "${emacs_cv_localtime_cache+set}" = set; then  if test "${emacs_cv_localtime_cache+set}" = set; then
16003    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 11524  if test "$cross_compiling" = yes; then Line 16008  if test "$cross_compiling" = yes; then
16008  emacs_cv_localtime_cache=yes  emacs_cv_localtime_cache=yes
16009  else  else
16010    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16011  #line 11527 "configure"  #line $LINENO "configure"
16012  #include "confdefs.h"  #include "confdefs.h"
16013  #include <time.h>  #include <time.h>
16014  extern char **environ;  extern char **environ;
# Line 11557  main() Line 16041  main()
16041  }  }
16042  _ACEOF  _ACEOF
16043  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
16044  if { (eval echo "$as_me:11560: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16046    ac_status=$?    ac_status=$?
16047    echo "$as_me:11563: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16049    { (eval echo "$as_me:11565: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16051    ac_status=$?    ac_status=$?
16052    echo "$as_me:11568: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16054    emacs_cv_localtime_cache=no    emacs_cv_localtime_cache=no
16055  else  else
16056    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
16057  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
16058  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
16059    ( exit $ac_status )
16060  emacs_cv_localtime_cache=yes  emacs_cv_localtime_cache=yes
16061  fi  fi
16062  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
# Line 11582  else Line 16067  else
16067          emacs_cv_localtime_cache=no          emacs_cv_localtime_cache=no
16068  fi  fi
16069  fi  fi
16070  echo "$as_me:11585: result: $emacs_cv_localtime_cache" >&5  echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16071  echo "${ECHO_T}$emacs_cv_localtime_cache" >&6  echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16072  if test $emacs_cv_localtime_cache = yes; then  if test $emacs_cv_localtime_cache = yes; then
16073    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
16074  #define LOCALTIME_CACHE 1  #define LOCALTIME_CACHE 1
16075  EOF  _ACEOF
16076    
16077  fi  fi
16078    
# Line 11596  if test "x$HAVE_TIMEVAL" = xyes; then Line 16081  if test "x$HAVE_TIMEVAL" = xyes; then
16081  for ac_func in gettimeofday  for ac_func in gettimeofday
16082  do  do
16083  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084  echo "$as_me:11599: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
16085  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
16087    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16088  else  else
16089    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16090  #line 11605 "configure"  #line $LINENO "configure"
16091  #include "confdefs.h"  #include "confdefs.h"
16092  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
16093      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 11616  extern "C" Line 16101  extern "C"
16101  char $ac_func ();  char $ac_func ();
16102  char (*f) ();  char (*f) ();
16103    
16104    #ifdef F77_DUMMY_MAIN
16105    #  ifdef __cplusplus
16106         extern "C"
16107    #  endif
16108       int F77_DUMMY_MAIN() { return 1; }
16109    #endif
16110  int  int
16111  main ()  main ()
16112  {  {
# Line 11633  f = $ac_func; Line 16124  f = $ac_func;
16124  }  }
16125  _ACEOF  _ACEOF
16126  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
16127  if { (eval echo "$as_me:11636: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16129    ac_status=$?    ac_status=$?
16130    echo "$as_me:11639: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131    (exit $ac_status); } &&    (exit $ac_status); } &&
16132           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
16133    { (eval echo "$as_me:11642: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16135    ac_status=$?    ac_status=$?
16136    echo "$as_me:11645: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16138    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
16139  else  else
# Line 11652  eval "$as_ac_var=no" Line 16143  eval "$as_ac_var=no"
16143  fi  fi
16144  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16145  fi  fi
16146  echo "$as_me:11655: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16147  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16148  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
16149    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
16150  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16151  EOF  _ACEOF
16152    
16153  fi  fi
16154  done  done
16155    
16156    echo "$as_me:11665: checking whether gettimeofday can accept two arguments" >&5    echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16157  echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6  echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16158  if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then  if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16159    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16160  else  else
16161    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16162  #line 11671 "configure"  #line $LINENO "configure"
16163  #include "confdefs.h"  #include "confdefs.h"
16164    
16165  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 11681  else Line 16172  else
16172  #include <time.h>  #include <time.h>
16173  #endif  #endif
16174  #endif  #endif
16175    #ifdef F77_DUMMY_MAIN
16176    #  ifdef __cplusplus
16177         extern "C"
16178    #  endif
16179       int F77_DUMMY_MAIN() { return 1; }
16180    #endif
16181  int  int
16182  main ()  main ()
16183  {  {
# Line 11691  struct timeval time; Line 16188  struct timeval time;
16188  }  }
16189  _ACEOF  _ACEOF
16190  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
16191  if { (eval echo "$as_me:11694: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
16193    ac_status=$?    ac_status=$?
16194    echo "$as_me:11697: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195    (exit $ac_status); } &&    (exit $ac_status); } &&
16196           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
16197    { (eval echo "$as_me:11700: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16199    ac_status=$?    ac_status=$?
16200    echo "$as_me:11703: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16202    emacs_cv_gettimeofday_two_arguments=yes    emacs_cv_gettimeofday_two_arguments=yes
16203  else  else
# Line 11710  emacs_cv_gettimeofday_two_arguments=no Line 16207  emacs_cv_gettimeofday_two_arguments=no
16207  fi  fi
16208  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
16209  fi  fi
16210  echo "$as_me:11713: result: $emacs_cv_gettimeofday_two_arguments" >&5  echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16211  echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6  echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16212    if test $emacs_cv_gettimeofday_two_arguments = no; then    if test $emacs_cv_gettimeofday_two_arguments = no; then
16213      cat >>confdefs.h <<\EOF      cat >>confdefs.h <<\_ACEOF
16214  #define GETTIMEOFDAY_ONE_ARGUMENT 1  #define GETTIMEOFDAY_ONE_ARGUMENT 1
16215  EOF  _ACEOF
16216    
16217    fi    fi
16218  fi  fi
16219    
16220  if test "$ac_cv_func_gettimeofday" = yes; then  if test "$ac_cv_func_gettimeofday" = yes; then
16221    echo "$as_me:11724: checking for struct timezone" >&5    echo "$as_me:$LINENO: checking for struct timezone" >&5
16222  echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6  echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16223  if test "${emacs_cv_struct_timezone+set}" = set; then  if test "${emacs_cv_struct_timezone+set}" = set; then
16224    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16225  else  else
16226    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16227  #line 11730 "configure"  #line $LINENO "configure"
16228  #include "confdefs.h"  #include "confdefs.h"
16229  #include <sys/time.h>  #include <sys/time.h>
16230    #ifdef F77_DUMMY_MAIN
16231    #  ifdef __cplusplus
16232         extern "C"
16233    #  endif
16234       int F77_DUMMY_MAIN() { return 1; }
16235    #endif
16236  int  int
16237  main ()  main ()
16238  {  {
# Line 11739  struct timezone tz; Line 16242  struct timezone tz;
16242  }  }
16243  _ACEOF  _ACEOF
16244  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
16245  if { (eval echo "$as_me:11742: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
16247    ac_status=$?    ac_status=$?
16248    echo "$as_me:11745: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249    (exit $ac_status); } &&    (exit $ac_status); } &&
16250           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
16251    { (eval echo "$as_me:11748: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16253    ac_status=$?    ac_status=$?
16254    echo "$as_me:11751: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16256                if test "$cross_compiling" = yes; then                if test "$cross_compiling" = yes; then
16257    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
16258  else  else
16259    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16260  #line 11757 "configure"  #line $LINENO "configure"
16261  #include "confdefs.h"  #include "confdefs.h"
16262    
16263  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 11774  main () { Line 16277  main () {
16277  }  }
16278  _ACEOF  _ACEOF
16279  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
16280  if { (eval echo "$as_me:11777: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16282    ac_status=$?    ac_status=$?
16283    echo "$as_me:11780: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16285    { (eval echo "$as_me:11782: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16287    ac_status=$?    ac_status=$?
16288    echo "$as_me:11785: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16290    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
16291  else  else
16292    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
16293  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
16294  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
16295    ( exit $ac_status )
16296  emacs_cv_struct_timezone=no  emacs_cv_struct_timezone=no
16297  fi  fi
16298  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
# Line 11800  emacs_cv_struct_timezone=no Line 16304  emacs_cv_struct_timezone=no
16304  fi  fi
16305  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
16306  fi  fi
16307  echo "$as_me:11803: result: $emacs_cv_struct_timezone" >&5  echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16308  echo "${ECHO_T}$emacs_cv_struct_timezone" >&6  echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16309  fi  fi
16310    
16311  ok_so_far=yes  ok_so_far=yes
16312  echo "$as_me:11808: checking for socket" >&5  echo "$as_me:$LINENO: checking for socket" >&5
16313  echo $ECHO_N "checking for socket... $ECHO_C" >&6  echo $ECHO_N "checking for socket... $ECHO_C" >&6
16314  if test "${ac_cv_func_socket+set}" = set; then  if test "${ac_cv_func_socket+set}" = set; then
16315    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16316  else  else
16317    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16318  #line 11814 "configure"  #line $LINENO "configure"
16319  #include "confdefs.h"  #include "confdefs.h"
16320  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
16321      which can conflict with char socket (); below.  */      which can conflict with char socket (); below.  */
# Line 11825  extern "C" Line 16329  extern "C"
16329  char socket ();  char socket ();
16330  char (*f) ();  char (*f) ();
16331    
16332    #ifdef F77_DUMMY_MAIN
16333    #  ifdef __cplusplus
16334         extern "C"
16335    #  endif
16336       int F77_DUMMY_MAIN() { return 1; }
16337    #endif
16338  int  int
16339  main ()  main ()
16340  {  {
# Line 11842  f = socket; Line 16352  f = socket;
16352  }  }
16353  _ACEOF  _ACEOF
16354  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
16355  if { (eval echo "$as_me:11845: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16356    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16357    ac_status=$?    ac_status=$?
16358    echo "$as_me:11848: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359    (exit $ac_status); } &&    (exit $ac_status); } &&
16360           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
16361    { (eval echo "$as_me:11851: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16363    ac_status=$?    ac_status=$?
16364    echo "$as_me:11854: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16366    ac_cv_func_socket=yes    ac_cv_func_socket=yes
16367  else  else
# Line 11861  ac_cv_func_socket=no Line 16371  ac_cv_func_socket=no
16371  fi  fi
16372  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16373  fi  fi
16374  echo "$as_me:11864: result: $ac_cv_func_socket" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16375  echo "${ECHO_T}$ac_cv_func_socket" >&6  echo "${ECHO_T}$ac_cv_func_socket" >&6
16376  if test $ac_cv_func_socket = yes; then  if test $ac_cv_func_socket = yes; then
16377    :    :
# Line 11870  else Line 16380  else
16380  fi  fi
16381    
16382  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
16383    echo "$as_me:11873: checking for netinet/in.h" >&5    if test "${ac_cv_header_netinet_in_h+set}" = set; then
16384      echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16385  echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6  echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16386  if test "${ac_cv_header_netinet_in_h+set}" = set; then  if test "${ac_cv_header_netinet_in_h+set}" = set; then
16387    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16388    fi
16389    echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16390    echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16391  else  else
16392    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
16393  #line 11879 "configure"  echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16394    echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16395    cat >conftest.$ac_ext <<_ACEOF
16396    #line $LINENO "configure"
16397    #include "confdefs.h"
16398    $ac_includes_default
16399    #include <netinet/in.h>
16400    _ACEOF
16401    rm -f conftest.$ac_objext
16402    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16403      (eval $ac_compile) 2>&5
16404      ac_status=$?
16405      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406      (exit $ac_status); } &&
16407             { ac_try='test -s conftest.$ac_objext'
16408      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409      (eval $ac_try) 2>&5
16410      ac_status=$?
16411      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412      (exit $ac_status); }; }; then
16413      ac_header_compiler=yes
16414    else
16415      echo "$as_me: failed program was:" >&5
16416    cat conftest.$ac_ext >&5
16417    ac_header_compiler=no
16418    fi
16419    rm -f conftest.$ac_objext conftest.$ac_ext
16420    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421    echo "${ECHO_T}$ac_header_compiler" >&6
16422    
16423    # Is the header present?
16424    echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16425    echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16426    cat >conftest.$ac_ext <<_ACEOF
16427    #line $LINENO "configure"
16428  #include "confdefs.h"  #include "confdefs.h"
16429  #include <netinet/in.h>  #include <netinet/in.h>
16430  _ACEOF  _ACEOF
16431  if { (eval echo "$as_me:11883: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16432    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16433    ac_status=$?    ac_status=$?
16434    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
16435    rm -f conftest.er1    rm -f conftest.er1
16436    cat conftest.err >&5    cat conftest.err >&5
16437    echo "$as_me:11889: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
16439    if test -s conftest.err; then    if test -s conftest.err; then
16440      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11897  else Line 16445  else
16445    ac_cpp_err=yes    ac_cpp_err=yes
16446  fi  fi
16447  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
16448    ac_cv_header_netinet_in_h=yes    ac_header_preproc=yes
16449  else  else
16450    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
16451    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
16452    ac_cv_header_netinet_in_h=no    ac_header_preproc=no
16453  fi  fi
16454  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
16455    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16456    echo "${ECHO_T}$ac_header_preproc" >&6
16457    
16458    # So?  What about this header?
16459    case $ac_header_compiler:$ac_header_preproc in
16460      yes:no )
16461        { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16462    echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16463        { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16464    echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
16465      no:yes )
16466        { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16467    echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16468        { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16469    echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16470        { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16471    echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
16472    esac
16473    echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16474    echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16475    if test "${ac_cv_header_netinet_in_h+set}" = set; then
16476      echo $ECHO_N "(cached) $ECHO_C" >&6
16477    else
16478      ac_cv_header_netinet_in_h=$ac_header_preproc
16479  fi  fi
16480  echo "$as_me:11908: result: $ac_cv_header_netinet_in_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16481  echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6  echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16482    
16483    fi
16484  if test $ac_cv_header_netinet_in_h = yes; then  if test $ac_cv_header_netinet_in_h = yes; then
16485    :    :
16486  else  else
16487    ok_so_far=no    ok_so_far=no
16488  fi  fi
16489    
16490    
16491  fi  fi
16492  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
16493    echo "$as_me:11918: checking for arpa/inet.h" >&5    if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16494      echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16495  echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6  echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16496  if test "${ac_cv_header_arpa_inet_h+set}" = set; then  if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16497    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16498    fi
16499    echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16500    echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16501  else  else
16502    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
16503  #line 11924 "configure"  echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16504    echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16505    cat >conftest.$ac_ext <<_ACEOF
16506    #line $LINENO "configure"
16507    #include "confdefs.h"
16508    $ac_includes_default
16509    #include <arpa/inet.h>
16510    _ACEOF
16511    rm -f conftest.$ac_objext
16512    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16513      (eval $ac_compile) 2>&5
16514      ac_status=$?
16515      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516      (exit $ac_status); } &&
16517             { ac_try='test -s conftest.$ac_objext'
16518      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519      (eval $ac_try) 2>&5
16520      ac_status=$?
16521      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522      (exit $ac_status); }; }; then
16523      ac_header_compiler=yes
16524    else
16525      echo "$as_me: failed program was:" >&5
16526    cat conftest.$ac_ext >&5
16527    ac_header_compiler=no
16528    fi
16529    rm -f conftest.$ac_objext conftest.$ac_ext
16530    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16531    echo "${ECHO_T}$ac_header_compiler" >&6
16532    
16533    # Is the header present?
16534    echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16535    echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16536    cat >conftest.$ac_ext <<_ACEOF
16537    #line $LINENO "configure"
16538  #include "confdefs.h"  #include "confdefs.h"
16539  #include <arpa/inet.h>  #include <arpa/inet.h>
16540  _ACEOF  _ACEOF
16541  if { (eval echo "$as_me:11928: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16542    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16543    ac_status=$?    ac_status=$?
16544    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
16545    rm -f conftest.er1    rm -f conftest.er1
16546    cat conftest.err >&5    cat conftest.err >&5
16547    echo "$as_me:11934: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
16549    if test -s conftest.err; then    if test -s conftest.err; then
16550      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 11942  else Line 16555  else
16555    ac_cpp_err=yes    ac_cpp_err=yes
16556  fi  fi
16557  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
16558    ac_cv_header_arpa_inet_h=yes    ac_header_preproc=yes
16559  else  else
16560    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
16561    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
16562    ac_cv_header_arpa_inet_h=no    ac_header_preproc=no
16563  fi  fi
16564  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
16565    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16566    echo "${ECHO_T}$ac_header_preproc" >&6
16567    
16568    # So?  What about this header?
16569    case $ac_header_compiler:$ac_header_preproc in
16570      yes:no )
16571        { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16572    echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16573        { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16574    echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
16575      no:yes )
16576        { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16577    echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16578        { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16579    echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16580        { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16581    echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
16582    esac
16583    echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16584    echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16585    if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16586      echo $ECHO_N "(cached) $ECHO_C" >&6
16587    else
16588      ac_cv_header_arpa_inet_h=$ac_header_preproc
16589  fi  fi
16590  echo "$as_me:11953: result: $ac_cv_header_arpa_inet_h" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16591  echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6  echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16592    
16593    fi
16594  if test $ac_cv_header_arpa_inet_h = yes; then  if test $ac_cv_header_arpa_inet_h = yes; then
16595    :    :
16596  else  else
16597    ok_so_far=no    ok_so_far=no
16598  fi  fi
16599    
16600    
16601  fi  fi
16602  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
16603    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
16604  #define HAVE_INET_SOCKETS 1  #define HAVE_INET_SOCKETS 1
16605  EOF  _ACEOF
16606    
16607  fi  fi
16608    
16609  if test -f /usr/lpp/X11/bin/smt.exp; then  if test -f /usr/lpp/X11/bin/smt.exp; then
16610    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
16611  #define HAVE_AIX_SMT_EXP 1  #define HAVE_AIX_SMT_EXP 1
16612  EOF  _ACEOF
16613    
16614  fi  fi
16615    
16616  echo "$as_me:11976: checking whether system supports dynamic ptys" >&5  echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16617  echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6  echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16618  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16619    echo "$as_me:11979: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
16620  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
16621    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
16622  #define HAVE_DEV_PTMX 1  #define HAVE_DEV_PTMX 1
16623  EOF  _ACEOF
16624    
16625  else  else
16626    echo "$as_me:11986: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
16627  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
16628  fi  fi
16629    
16630  echo "$as_me:11990: checking for pid_t" >&5  echo "$as_me:$LINENO: checking for pid_t" >&5
16631  echo $ECHO_N "checking for pid_t... $ECHO_C" >&6  echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16632  if test "${ac_cv_type_pid_t+set}" = set; then  if test "${ac_cv_type_pid_t+set}" = set; then
16633    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16634  else  else
16635    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16636  #line 11996 "configure"  #line $LINENO "configure"
16637  #include "confdefs.h"  #include "confdefs.h"
16638  $ac_includes_default  $ac_includes_default
16639    #ifdef F77_DUMMY_MAIN
16640    #  ifdef __cplusplus
16641         extern "C"
16642    #  endif
16643       int F77_DUMMY_MAIN() { return 1; }
16644    #endif
16645  int  int
16646  main ()  main ()
16647  {  {
# Line 12008  if (sizeof (pid_t)) Line 16654  if (sizeof (pid_t))
16654  }  }
16655  _ACEOF  _ACEOF
16656  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
16657  if { (eval echo "$as_me:12011: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16658    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
16659    ac_status=$?    ac_status=$?
16660    echo "$as_me:12014: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661    (exit $ac_status); } &&    (exit $ac_status); } &&
16662           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
16663    { (eval echo "$as_me:12017: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16665    ac_status=$?    ac_status=$?
16666    echo "$as_me:12020: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16668    ac_cv_type_pid_t=yes    ac_cv_type_pid_t=yes
16669  else  else
# Line 12027  ac_cv_type_pid_t=no Line 16673  ac_cv_type_pid_t=no
16673  fi  fi
16674  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
16675  fi  fi
16676  echo "$as_me:12030: result: $ac_cv_type_pid_t" >&5  echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16677  echo "${ECHO_T}$ac_cv_type_pid_t" >&6  echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16678  if test $ac_cv_type_pid_t = yes; then  if test $ac_cv_type_pid_t = yes; then
16679    :    :
16680  else  else
16681    
16682  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
16683  #define pid_t int  #define pid_t int
16684  EOF  _ACEOF
16685    
16686  fi  fi
16687    
16688    
16689    
16690  for ac_header in unistd.h vfork.h  for ac_header in unistd.h vfork.h
16691  do  do
16692  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693  echo "$as_me:12045: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
16694      echo "$as_me:$LINENO: checking for $ac_header" >&5
16695  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16696  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
16697    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16698    fi
16699    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16700    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16701  else  else
16702    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
16703  #line 12051 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
16704    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16705    cat >conftest.$ac_ext <<_ACEOF
16706    #line $LINENO "configure"
16707    #include "confdefs.h"
16708    $ac_includes_default
16709    #include <$ac_header>
16710    _ACEOF
16711    rm -f conftest.$ac_objext
16712    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713      (eval $ac_compile) 2>&5
16714      ac_status=$?
16715      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716      (exit $ac_status); } &&
16717             { ac_try='test -s conftest.$ac_objext'
16718      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719      (eval $ac_try) 2>&5
16720      ac_status=$?
16721      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722      (exit $ac_status); }; }; then
16723      ac_header_compiler=yes
16724    else
16725      echo "$as_me: failed program was:" >&5
16726    cat conftest.$ac_ext >&5
16727    ac_header_compiler=no
16728    fi
16729    rm -f conftest.$ac_objext conftest.$ac_ext
16730    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16731    echo "${ECHO_T}$ac_header_compiler" >&6
16732    
16733    # Is the header present?
16734    echo "$as_me:$LINENO: checking $ac_header presence" >&5
16735    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16736    cat >conftest.$ac_ext <<_ACEOF
16737    #line $LINENO "configure"
16738  #include "confdefs.h"  #include "confdefs.h"
16739  #include <$ac_header>  #include <$ac_header>
16740  _ACEOF  _ACEOF
16741  if { (eval echo "$as_me:12055: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16742    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16743    ac_status=$?    ac_status=$?
16744    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
16745    rm -f conftest.er1    rm -f conftest.er1
16746    cat conftest.err >&5    cat conftest.err >&5
16747    echo "$as_me:12061: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
16749    if test -s conftest.err; then    if test -s conftest.err; then
16750      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 12069  else Line 16755  else
16755    ac_cpp_err=yes    ac_cpp_err=yes
16756  fi  fi
16757  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
16758    eval "$as_ac_Header=yes"    ac_header_preproc=yes
16759  else  else
16760    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
16761    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
16762    eval "$as_ac_Header=no"    ac_header_preproc=no
16763  fi  fi
16764  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
16765    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766    echo "${ECHO_T}$ac_header_preproc" >&6
16767    
16768    # So?  What about this header?
16769    case $ac_header_compiler:$ac_header_preproc in
16770      yes:no )
16771        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16774    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16775      no:yes )
16776        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16781    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16782    esac
16783    echo "$as_me:$LINENO: checking for $ac_header" >&5
16784    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16785    if eval "test \"\${$as_ac_Header+set}\" = set"; then
16786      echo $ECHO_N "(cached) $ECHO_C" >&6
16787    else
16788      eval "$as_ac_Header=$ac_header_preproc"
16789  fi  fi
16790  echo "$as_me:12080: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16791  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16792    
16793    fi
16794  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
16795    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
16796  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16797  EOF  _ACEOF
16798    
16799  fi  fi
16800    
16801  done  done
16802    
16803    
16804    
16805  for ac_func in fork vfork  for ac_func in fork vfork
16806  do  do
16807  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16808  echo "$as_me:12093: checking for $ac_func" >&5  echo "$as_me:$LINENO: checking for $ac_func" >&5
16809  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16810  if eval "test \"\${$as_ac_var+set}\" = set"; then  if eval "test \"\${$as_ac_var+set}\" = set"; then
16811    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
16812  else  else
16813    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16814  #line 12099 "configure"  #line $LINENO "configure"
16815  #include "confdefs.h"  #include "confdefs.h"
16816  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
16817      which can conflict with char $ac_func (); below.  */      which can conflict with char $ac_func (); below.  */
# Line 12110  extern "C" Line 16825  extern "C"
16825  char $ac_func ();  char $ac_func ();
16826  char (*f) ();  char (*f) ();
16827    
16828    #ifdef F77_DUMMY_MAIN
16829    #  ifdef __cplusplus
16830         extern "C"
16831    #  endif
16832       int F77_DUMMY_MAIN() { return 1; }
16833    #endif
16834  int  int
16835  main ()  main ()
16836  {  {
# Line 12127  f = $ac_func; Line 16848  f = $ac_func;
16848  }  }
16849  _ACEOF  _ACEOF
16850  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
16851  if { (eval echo "$as_me:12130: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16853    ac_status=$?    ac_status=$?
16854    echo "$as_me:12133: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855    (exit $ac_status); } &&    (exit $ac_status); } &&
16856           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest$ac_exeext'
16857    { (eval echo "$as_me:12136: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16859    ac_status=$?    ac_status=$?
16860    echo "$as_me:12139: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16862    eval "$as_ac_var=yes"    eval "$as_ac_var=yes"
16863  else  else
# Line 12146  eval "$as_ac_var=no" Line 16867  eval "$as_ac_var=no"
16867  fi  fi
16868  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869  fi  fi
16870  echo "$as_me:12149: result: `eval echo '${'$as_ac_var'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16871  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16872  if test `eval echo '${'$as_ac_var'}'` = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
16873    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
16874  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16875  EOF  _ACEOF
16876    
16877  fi  fi
16878  done  done
16879    
16880  ac_cv_func_fork_works=$ac_cv_func_fork  ac_cv_func_fork_works=$ac_cv_func_fork
16881  if test "x$ac_cv_func_fork" = xyes; then  if test "x$ac_cv_func_fork" = xyes; then
16882    echo "$as_me:12161: checking for working fork" >&5    echo "$as_me:$LINENO: checking for working fork" >&5
16883  echo $ECHO_N "checking for working fork... $ECHO_C" >&6  echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16884  if test "${ac_cv_func_fork_works+set}" = set; then  if test "${ac_cv_func_fork_works+set}" = set; then
16885    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 12167  else Line 16888  else
16888    ac_cv_func_fork_works=cross    ac_cv_func_fork_works=cross
16889  else  else
16890    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16891  /* By Rüdiger Kuhlmann. */  /* By Ruediger Kuhlmann. */
16892        #include <sys/types.h>        #include <sys/types.h>
16893        #if HAVE_UNISTD_H        #if HAVE_UNISTD_H
16894        # include <unistd.h>        # include <unistd.h>
# Line 12181  else Line 16902  else
16902        }        }
16903  _ACEOF  _ACEOF
16904  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
16905  if { (eval echo "$as_me:12184: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16906    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
16907    ac_status=$?    ac_status=$?
16908    echo "$as_me:12187: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16910    { (eval echo "$as_me:12189: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16912    ac_status=$?    ac_status=$?
16913    echo "$as_me:12192: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
16915    ac_cv_func_fork_works=yes    ac_cv_func_fork_works=yes
16916  else  else
16917    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
16918  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
16919  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
16920    ( exit $ac_status )
16921  ac_cv_func_fork_works=no  ac_cv_func_fork_works=no
16922  fi  fi
16923  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16924  fi  fi
16925  fi  fi
16926  echo "$as_me:12204: result: $ac_cv_func_fork_works" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16927  echo "${ECHO_T}$ac_cv_func_fork_works" >&6  echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16928    
16929  fi  fi
# Line 12215  if test "x$ac_cv_func_fork_works" = xcro Line 16937  if test "x$ac_cv_func_fork_works" = xcro
16937        ac_cv_func_fork_works=yes        ac_cv_func_fork_works=yes
16938        ;;        ;;
16939    esac    esac
16940    { echo "$as_me:12218: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5    { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16941  echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}  echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16942  fi  fi
16943  ac_cv_func_vfork_works=$ac_cv_func_vfork  ac_cv_func_vfork_works=$ac_cv_func_vfork
16944  if test "x$ac_cv_func_vfork" = xyes; then  if test "x$ac_cv_func_vfork" = xyes; then
16945    echo "$as_me:12223: checking for working vfork" >&5    echo "$as_me:$LINENO: checking for working vfork" >&5
16946  echo $ECHO_N "checking for working vfork... $ECHO_C" >&6  echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16947  if test "${ac_cv_func_vfork_works+set}" = set; then  if test "${ac_cv_func_vfork_works+set}" = set; then
16948    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 12229  else Line 16951  else
16951    ac_cv_func_vfork_works=cross    ac_cv_func_vfork_works=cross
16952  else  else
16953    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
16954  #line 12232 "configure"  #line $LINENO "configure"
16955  #include "confdefs.h"  #include "confdefs.h"
16956  /* Thanks to Paul Eggert for this test.  */  /* Thanks to Paul Eggert for this test.  */
16957  #include <stdio.h>  #include <stdio.h>
# Line 12326  main () Line 17048  main ()
17048  }  }
17049  _ACEOF  _ACEOF
17050  rm -f conftest$ac_exeext  rm -f conftest$ac_exeext
17051  if { (eval echo "$as_me:12329: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052    (eval $ac_link) 2>&5    (eval $ac_link) 2>&5
17053    ac_status=$?    ac_status=$?
17054    echo "$as_me:12332: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17056    { (eval echo "$as_me:12334: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
17058    ac_status=$?    ac_status=$?
17059    echo "$as_me:12337: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
17061    ac_cv_func_vfork_works=yes    ac_cv_func_vfork_works=yes
17062  else  else
17063    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: program exited with status $ac_status" >&5
17064  echo "$as_me: failed program was:" >&5  echo "$as_me: failed program was:" >&5
17065  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
17066    ( exit $ac_status )
17067  ac_cv_func_vfork_works=no  ac_cv_func_vfork_works=no
17068  fi  fi
17069  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17070  fi  fi
17071  fi  fi
17072  echo "$as_me:12349: result: $ac_cv_func_vfork_works" >&5  echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17073  echo "${ECHO_T}$ac_cv_func_vfork_works" >&6  echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17074    
17075  fi;  fi;
17076  if test "x$ac_cv_func_fork_works" = xcross; then  if test "x$ac_cv_func_fork_works" = xcross; then
17077    ac_cv_func_vfork_works=ac_cv_func_vfork    ac_cv_func_vfork_works=ac_cv_func_vfork
17078    { echo "$as_me:12355: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5    { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17079  echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}  echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17080  fi  fi
17081    
17082  if test "x$ac_cv_func_vfork_works" = xyes; then  if test "x$ac_cv_func_vfork_works" = xyes; then
17083    
17084  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
17085  #define HAVE_WORKING_VFORK 1  #define HAVE_WORKING_VFORK 1
17086  EOF  _ACEOF
17087    
17088  else  else
17089    
17090  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
17091  #define vfork fork  #define vfork fork
17092  EOF  _ACEOF
17093    
17094  fi  fi
17095  if test "x$ac_cv_func_fork_works" = xyes; then  if test "x$ac_cv_func_fork_works" = xyes; then
17096    
17097  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
17098  #define HAVE_WORKING_FORK 1  #define HAVE_WORKING_FORK 1
17099  EOF  _ACEOF
17100    
17101  fi  fi
17102    
17103    
17104  # Fixme: This should be replaced when we have autoconf 2.14.  # Fixme: This should be replaced when we have autoconf 2.14.
17105  echo "$as_me:12381: checking for size_t" >&5  echo "$as_me:$LINENO: checking for size_t" >&5
17106  echo $ECHO_N "checking for size_t... $ECHO_C" >&6  echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17107  if test "${ac_cv_type_size_t+set}" = set; then  if test "${ac_cv_type_size_t+set}" = set; then
17108    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
17109  else  else
17110    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
17111  #line 12387 "configure"  #line $LINENO "configure"
17112  #include "confdefs.h"  #include "confdefs.h"
17113  $ac_includes_default  $ac_includes_default
17114    #ifdef F77_DUMMY_MAIN
17115    #  ifdef __cplusplus
17116         extern "C"
17117    #  endif
17118       int F77_DUMMY_MAIN() { return 1; }
17119    #endif
17120  int  int
17121  main ()  main ()
17122  {  {
# Line 12399  if (sizeof (size_t)) Line 17129  if (sizeof (size_t))
17129  }  }
17130  _ACEOF  _ACEOF
17131  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
17132  if { (eval echo "$as_me:12402: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
17134    ac_status=$?    ac_status=$?
17135    echo "$as_me:12405: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136    (exit $ac_status); } &&    (exit $ac_status); } &&
17137           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest.$ac_objext'
17138    { (eval echo "$as_me:12408: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
17140    ac_status=$?    ac_status=$?
17141    echo "$as_me:12411: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
17143    ac_cv_type_size_t=yes    ac_cv_type_size_t=yes
17144  else  else
# Line 12418  ac_cv_type_size_t=no Line 17148  ac_cv_type_size_t=no
17148  fi  fi
17149  rm -f conftest.$ac_objext conftest.$ac_ext  rm -f conftest.$ac_objext conftest.$ac_ext
17150  fi  fi
17151  echo "$as_me:12421: result: $ac_cv_type_size_t" >&5  echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17152  echo "${ECHO_T}$ac_cv_type_size_t" >&6  echo "${ECHO_T}$ac_cv_type_size_t" >&6
17153  if test $ac_cv_type_size_t = yes; then  if test $ac_cv_type_size_t = yes; then
17154    :    :
17155  else  else
17156    
17157  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17158  #define size_t unsigned  #define size_t unsigned
17159  EOF  _ACEOF
17160    
17161  fi  fi
17162    
17163    
17164  # Set up the CFLAGS for real compilation, so we can substitute it.  # Set up the CFLAGS for real compilation, so we can substitute it.
17165  CFLAGS="$REAL_CFLAGS"  CFLAGS="$REAL_CFLAGS"
17166  CPPFLAGS="$REAL_CPPFLAGS"  CPPFLAGS="$REAL_CPPFLAGS"
# Line 12438  CPPFLAGS="$REAL_CPPFLAGS" Line 17169  CPPFLAGS="$REAL_CPPFLAGS"
17169  version=`grep 'defconst[         ]*emacs-version' ${srcdir}/lisp/version.el \  version=`grep 'defconst[         ]*emacs-version' ${srcdir}/lisp/version.el \
17170           | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`           | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17171  if test x"${version}" = x; then  if test x"${version}" = x; then
17172    { { echo "$as_me:12441: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5    { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17173  echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}  echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17174     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
17175  fi  fi
# Line 12446  fi Line 17177  fi
17177  ### Specify what sort of things we'll be editing into Makefile and config.h.  ### Specify what sort of things we'll be editing into Makefile and config.h.
17178  ### Use configuration here uncanonicalized to avoid exceeding size limits.  ### Use configuration here uncanonicalized to avoid exceeding size limits.
17179    
17180  cat >>confdefs.h <<EOF  
17181    
17182    
17183    
17184    
17185    
17186    
17187    
17188    
17189    
17190    
17191    
17192    
17193    
17194    
17195    
17196    
17197    
17198    
17199    
17200    
17201    
17202    
17203    
17204    
17205    
17206    
17207    
17208    
17209    
17210    
17211    
17212    cat >>confdefs.h <<_ACEOF
17213  #define EMACS_CONFIGURATION "${canonical}"  #define EMACS_CONFIGURATION "${canonical}"
17214  EOF  _ACEOF
17215    
17216  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17217  #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"  #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17218  EOF  _ACEOF
17219    
17220  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17221  #define config_machfile "${machfile}"  #define config_machfile "${machfile}"
17222  EOF  _ACEOF
17223    
17224  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17225  #define config_opsysfile "${opsysfile}"  #define config_opsysfile "${opsysfile}"
17226  EOF  _ACEOF
17227    
17228  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17229  #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}  #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17230  EOF  _ACEOF
17231    
17232  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17233  #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}  #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17234  EOF  _ACEOF
17235    
17236  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17237  #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}  #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17238  EOF  _ACEOF
17239    
17240  cat >>confdefs.h <<EOF  cat >>confdefs.h <<_ACEOF
17241  #define UNEXEC_SRC ${UNEXEC_SRC}  #define UNEXEC_SRC ${UNEXEC_SRC}
17242  EOF  _ACEOF
17243    
17244    
17245  if test "${HAVE_X_WINDOWS}" = "yes" ; then  if test "${HAVE_X_WINDOWS}" = "yes" ; then
17246    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17247  #define HAVE_X_WINDOWS 1  #define HAVE_X_WINDOWS 1
17248  EOF  _ACEOF
17249    
17250  fi  fi
17251  if test "${USE_X_TOOLKIT}" != "none" ; then  if test "${USE_X_TOOLKIT}" != "none" ; then
17252    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17253  #define USE_X_TOOLKIT 1  #define USE_X_TOOLKIT 1
17254  EOF  _ACEOF
17255    
17256  fi  fi
17257  if test "${HAVE_X11}" = "yes" ; then  if test "${HAVE_X11}" = "yes" ; then
17258    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17259  #define HAVE_X11 1  #define HAVE_X11 1
17260  EOF  _ACEOF
17261    
17262  fi  fi
17263  if test "${HAVE_XFREE386}" = "yes" ; then  if test "${HAVE_XFREE386}" = "yes" ; then
17264    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17265  #define HAVE_XFREE386 1  #define HAVE_XFREE386 1
17266  EOF  _ACEOF
17267    
17268  fi  fi
17269  if test "${HAVE_MENUS}" = "yes" ; then  if test "${HAVE_MENUS}" = "yes" ; then
17270    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17271  #define HAVE_MENUS 1  #define HAVE_MENUS 1
17272  EOF  _ACEOF
17273    
17274  fi  fi
17275  if test "${GNU_MALLOC}" = "yes" ; then  if test "${GNU_MALLOC}" = "yes" ; then
17276    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17277  #define GNU_MALLOC 1  #define GNU_MALLOC 1
17278  EOF  _ACEOF
17279    
17280  fi  fi
17281  if test "${REL_ALLOC}" = "yes" ; then  if test "${REL_ALLOC}" = "yes" ; then
17282    cat >>confdefs.h <<\EOF    cat >>confdefs.h <<\_ACEOF
17283  #define REL_ALLOC 1  #define REL_ALLOC 1
17284  EOF  _ACEOF
17285    
17286  fi  fi
17287    
17288    
17289  for ac_header in nlist.h  for ac_header in nlist.h
17290  do  do
17291  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292  echo "$as_me:12527: checking for $ac_header" >&5  if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293      echo "$as_me:$LINENO: checking for $ac_header" >&5
17294  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295  if eval "test \"\${$as_ac_Header+set}\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
17297    fi
17298    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300  else  else
17301    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
17302  #line 12533 "configure"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304    cat >conftest.$ac_ext <<_ACEOF
17305    #line $LINENO "configure"
17306    #include "confdefs.h"
17307    $ac_includes_default
17308    #include <$ac_header>
17309    _ACEOF
17310    rm -f conftest.$ac_objext
17311    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312      (eval $ac_compile) 2>&5
17313      ac_status=$?
17314      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315      (exit $ac_status); } &&
17316             { ac_try='test -s conftest.$ac_objext'
17317      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318      (eval $ac_try) 2>&5
17319      ac_status=$?
17320      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321      (exit $ac_status); }; }; then
17322      ac_header_compiler=yes
17323    else
17324      echo "$as_me: failed program was:" >&5
17325    cat conftest.$ac_ext >&5
17326    ac_header_compiler=no
17327    fi
17328    rm -f conftest.$ac_objext conftest.$ac_ext
17329    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17330    echo "${ECHO_T}$ac_header_compiler" >&6
17331    
17332    # Is the header present?
17333    echo "$as_me:$LINENO: checking $ac_header presence" >&5
17334    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17335    cat >conftest.$ac_ext <<_ACEOF
17336    #line $LINENO "configure"
17337  #include "confdefs.h"  #include "confdefs.h"
17338  #include <$ac_header>  #include <$ac_header>
17339  _ACEOF  _ACEOF
17340  if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17341    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17342    ac_status=$?    ac_status=$?
17343    egrep -v '^ *\+' conftest.er1 >conftest.err    egrep -v '^ *\+' conftest.er1 >conftest.err
17344    rm -f conftest.er1    rm -f conftest.er1
17345    cat conftest.err >&5    cat conftest.err >&5
17346    echo "$as_me:12543: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } >/dev/null; then
17348    if test -s conftest.err; then    if test -s conftest.err; then
17349      ac_cpp_err=$ac_c_preproc_warn_flag      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 12551  else Line 17354  else
17354    ac_cpp_err=yes    ac_cpp_err=yes
17355  fi  fi
17356  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
17357    eval "$as_ac_Header=yes"    ac_header_preproc=yes
17358  else  else
17359    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
17360    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
17361    eval "$as_ac_Header=no"    ac_header_preproc=no
17362  fi  fi
17363  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
17364    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17365    echo "${ECHO_T}$ac_header_preproc" >&6
17366    
17367    # So?  What about this header?
17368    case $ac_header_compiler:$ac_header_preproc in
17369      yes:no )
17370        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17371    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17372        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17373    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17374      no:yes )
17375        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17376    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17377        { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17378    echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17379        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17381    esac
17382    echo "$as_me:$LINENO: checking for $ac_header" >&5
17383    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384    if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385      echo $ECHO_N "(cached) $ECHO_C" >&6
17386    else
17387      eval "$as_ac_Header=$ac_header_preproc"
17388  fi  fi
17389  echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17390  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17391    
17392    fi
17393  if test `eval echo '${'$as_ac_Header'}'` = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
17394    cat >>confdefs.h <<EOF    cat >>confdefs.h <<_ACEOF
17395  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17396  EOF  _ACEOF
17397    
17398  cat >>confdefs.h <<\EOF  cat >>confdefs.h <<\_ACEOF
17399  #define NLIST_STRUCT 1  #define NLIST_STRUCT 1
17400  EOF  _ACEOF
17401    
17402  fi  fi
17403    
17404  done  done
17405    
17406    
17407  #### Report on what we decided to do.  #### Report on what we decided to do.
17408  echo "  echo "
17409  Configured for \`${canonical}'.  Configured for \`${canonical}'.
# Line 12585  Configured for \`${canonical}'. Line 17416  Configured for \`${canonical}'.
17416    Should Emacs use a relocating allocator for buffers?    ${REL_ALLOC}    Should Emacs use a relocating allocator for buffers?    ${REL_ALLOC}
17417    Should Emacs use mmap(2) for buffer allocation?         $use_mmap_for_buffers    Should Emacs use mmap(2) for buffer allocation?         $use_mmap_for_buffers
17418    What window system should Emacs use?                    ${window_system}    What window system should Emacs use?                    ${window_system}
17419    What toolkit should Emacs use?                          ${USE_X_TOOLKIT}"    What toolkit should Emacs use?                          ${USE_X_TOOLKIT}
17420      Should Emacs use a shared game state directory?         ${gamedir}"
17421    
17422  if test -n "${x_includes}"; then  if test -n "${x_includes}"; then
17423  echo "  Where do we find X Windows header files?                ${x_includes}"  echo "  Where do we find X Windows header files?                ${x_includes}"
# Line 12619  test "${exec_prefix}" != NONE && Line 17451  test "${exec_prefix}" != NONE &&
17451  ## C preprocessor.  ## C preprocessor.
17452    
17453  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
17454  #line 12622 "configure"  #line $LINENO "configure"
17455  #include "confdefs.h"  #include "confdefs.h"
17456  yes..yes  yes..yes
17457  _ACEOF  _ACEOF
# Line 12631  else Line 17463  else
17463  fi  fi
17464  rm -f conftest*  rm -f conftest*
17465    
17466    
17467  ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"  ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
17468  ac_config_commands="$ac_config_commands default"  ac_config_commands="$ac_config_commands default"
17469  cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF
# Line 12709  fi Line 17542  fi
17542    
17543  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
17544    
17545    
17546  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
17547  ac_clean_files_save=$ac_clean_files  ac_clean_files_save=$ac_clean_files
17548  ac_clean_files="$ac_clean_files $CONFIG_STATUS"  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17549  { echo "$as_me:12715: creating $CONFIG_STATUS" >&5  { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17550  echo "$as_me: creating $CONFIG_STATUS" >&6;}  echo "$as_me: creating $CONFIG_STATUS" >&6;}
17551  cat >$CONFIG_STATUS <<_ACEOF  cat >$CONFIG_STATUS <<_ACEOF
17552  #! $SHELL  #! $SHELL
17553  # Generated automatically by configure.  # Generated by $as_me.
17554  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
17555  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
17556  # configure, is in config.log if it exists.  # configure, is in config.log if it exists.
17557    
17558  debug=false  debug=false
17559  SHELL=\${CONFIG_SHELL-$SHELL}  SHELL=\${CONFIG_SHELL-$SHELL}
 ac_cs_invocation="\$0 \$@"  
   
17560  _ACEOF  _ACEOF
17561    
17562  cat >>$CONFIG_STATUS <<\_ACEOF  cat >>$CONFIG_STATUS <<\_ACEOF
17563    
17564    ## --------------------- ##
17565    ## M4sh Initialization.  ##
17566    ## --------------------- ##
17567    
17568  # Be Bourne compatible  # Be Bourne compatible
17569  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17570    emulate sh    emulate sh
# Line 12736  elif test -n "${BASH_VERSION+set}" && (s Line 17573  elif test -n "${BASH_VERSION+set}" && (s
17573    set -o posix    set -o posix
17574  fi  fi
17575    
17576    # NLS nuisances.
17577    # Support unset when possible.
17578    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17579      as_unset=unset
17580    else
17581      as_unset=false
17582    fi
17583    
17584    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17585        { $as_unset LANG || test "${LANG+set}" != set; } ||
17586          { LANG=C; export LANG; }
17587    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17588        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17589          { LC_ALL=C; export LC_ALL; }
17590    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17591        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17592          { LC_TIME=C; export LC_TIME; }
17593    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17594        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17595          { LC_CTYPE=C; export LC_CTYPE; }
17596    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17597        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17598          { LANGUAGE=C; export LANGUAGE; }
17599    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17600        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17601          { LC_COLLATE=C; export LC_COLLATE; }
17602    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17603        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17604          { LC_NUMERIC=C; export LC_NUMERIC; }
17605    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17606        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17607          { LC_MESSAGES=C; export LC_MESSAGES; }
17608    
17609    
17610  # Name of the executable.  # Name of the executable.
17611  as_me=`echo "$0" |sed 's,.*[\\/],,'`  as_me=`(basename "$0") 2>/dev/null ||
17612    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17613             X"$0" : 'X\(//\)$' \| \
17614             X"$0" : 'X\(/\)$' \| \
17615             .     : '\(.\)' 2>/dev/null ||
17616    echo X/"$0" |
17617        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17618              /^X\/\(\/\/\)$/{ s//\1/; q; }
17619              /^X\/\(\/\).*/{ s//\1/; q; }
17620              s/.*/./; q'`
17621    
17622    # PATH needs CR, and LINENO needs CR and PATH.
17623    # Avoid depending upon Character Ranges.
17624    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17625    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17626    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17627    as_cr_digits='0123456789'
17628    as_cr_alnum=$as_cr_Letters$as_cr_digits
17629    
17630    # The user is always right.
17631    if test "${PATH_SEPARATOR+set}" != set; then
17632      echo "#! /bin/sh" >conftest.sh
17633      echo  "exit 0"   >>conftest.sh
17634      chmod +x conftest.sh
17635      if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17636        PATH_SEPARATOR=';'
17637      else
17638        PATH_SEPARATOR=:
17639      fi
17640      rm -f conftest.sh
17641    fi
17642    
17643    
17644      as_lineno_1=$LINENO
17645      as_lineno_2=$LINENO
17646      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17647      test "x$as_lineno_1" != "x$as_lineno_2" &&
17648      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17649      # Find who we are.  Look in the path if we contain no path at all
17650      # relative or not.
17651      case $0 in
17652        *[\\/]* ) as_myself=$0 ;;
17653        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17654    for as_dir in $PATH
17655    do
17656      IFS=$as_save_IFS
17657      test -z "$as_dir" && as_dir=.
17658      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17659    done
17660    
17661           ;;
17662      esac
17663      # We did not find ourselves, most probably we were run as `sh COMMAND'
17664      # in which case we are not to be found in the path.
17665      if test "x$as_myself" = x; then
17666        as_myself=$0
17667      fi
17668      if test ! -f "$as_myself"; then
17669        { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17670    echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17671       { (exit 1); exit 1; }; }
17672      fi
17673      case $CONFIG_SHELL in
17674      '')
17675        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17677    do
17678      IFS=$as_save_IFS
17679      test -z "$as_dir" && as_dir=.
17680      for as_base in sh bash ksh sh5; do
17681             case $as_dir in
17682             /*)
17683               if ("$as_dir/$as_base" -c '
17684      as_lineno_1=$LINENO
17685      as_lineno_2=$LINENO
17686      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17687      test "x$as_lineno_1" != "x$as_lineno_2" &&
17688      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17689                 CONFIG_SHELL=$as_dir/$as_base
17690                 export CONFIG_SHELL
17691                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17692               fi;;
17693             esac
17694           done
17695    done
17696    ;;
17697      esac
17698    
17699      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17700      # uniformly replaced by the line number.  The first 'sed' inserts a
17701      # line-number line before each line; the second 'sed' does the real
17702      # work.  The second script uses 'N' to pair each line-number line
17703      # with the numbered line, and appends trailing '-' during
17704      # substitution so that $LINENO is not a special case at line end.
17705      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17706      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17707      sed '=' <$as_myself |
17708        sed '
17709          N
17710          s,$,-,
17711          : loop
17712          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17713          t loop
17714          s,-$,,
17715          s,^['$as_cr_digits']*\n,,
17716        ' >$as_me.lineno &&
17717      chmod +x $as_me.lineno ||
17718        { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17719    echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17720       { (exit 1); exit 1; }; }
17721    
17722      # Don't try to exec as it changes $[0], causing all sort of problems
17723      # (the dirname of $[0] is not the place where we might find the
17724      # original and so on.  Autoconf is especially sensible to this).
17725      . ./$as_me.lineno
17726      # Exit status is that of the last command.
17727      exit
17728    }
17729    
17730    
17731    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17732      *c*,-n*) ECHO_N= ECHO_C='
17733    ' ECHO_T='      ' ;;
17734      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17735      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17736    esac
17737    
17738  if expr a : '\(a\)' >/dev/null 2>&1; then  if expr a : '\(a\)' >/dev/null 2>&1; then
17739    as_expr=expr    as_expr=expr
# Line 12765  rm -f conf$$ conf$$.exe conf$$.file Line 17761  rm -f conf$$ conf$$.exe conf$$.file
17761    
17762  as_executable_p="test -f"  as_executable_p="test -f"
17763    
17764  # Support unset when possible.  # Sed expression to map a string onto a valid CPP name.
17765  if (FOO=FOO; unset FOO) >/dev/null 2>&1; then  as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17766    as_unset=unset  
17767  else  # Sed expression to map a string onto a valid variable name.
17768    as_unset=false  as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 fi  
17769    
 # NLS nuisances.  
 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }  
 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }  
 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }  
 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }  
 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }  
 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }  
 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }  
 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }  
17770    
17771  # IFS  # IFS
17772  # We need space, tab and new line, in precisely that order.  # We need space, tab and new line, in precisely that order.
# Line 12789  as_nl=' Line 17775  as_nl='
17775  IFS="   $as_nl"  IFS="   $as_nl"
17776    
17777  # CDPATH.  # CDPATH.
17778  $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }  $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17779    
17780  exec 6>&1  exec 6>&1
17781    
17782    # Open the log real soon, to keep \$[0] and so on meaningful, and to
17783    # report actual input values of CONFIG_FILES etc. instead of their
17784    # values after options handling.  Logging --version etc. is OK.
17785    exec 5>>config.log
17786    {
17787      echo
17788      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17789    ## Running $as_me. ##
17790    _ASBOX
17791    } >&5
17792    cat >&5 <<_CSEOF
17793    
17794    This file was extended by $as_me, which was
17795    generated by GNU Autoconf 2.53.  Invocation command line was
17796    
17797      CONFIG_FILES    = $CONFIG_FILES
17798      CONFIG_HEADERS  = $CONFIG_HEADERS
17799      CONFIG_LINKS    = $CONFIG_LINKS
17800      CONFIG_COMMANDS = $CONFIG_COMMANDS
17801      $ $0 $@
17802    
17803    _CSEOF
17804    echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17805    echo >&5
17806  _ACEOF  _ACEOF
17807    
17808  # Files that config.status was made for.  # Files that config.status was made for.
# Line 12812  if test -n "$ac_config_commands"; then Line 17822  if test -n "$ac_config_commands"; then
17822    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17823  fi  fi
17824    
17825  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
17826    
17827  ac_cs_usage="\  ac_cs_usage="\
17828  \`$as_me' instantiates files from templates according to the  \`$as_me' instantiates files from templates according to the
# Line 12839  Configuration commands: Line 17849  Configuration commands:
17849  $config_commands  $config_commands
17850    
17851  Report bugs to <bug-autoconf@gnu.org>."  Report bugs to <bug-autoconf@gnu.org>."
17852  EOF  _ACEOF
17853    
17854  cat >>$CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<_ACEOF
17855  ac_cs_version="\\  ac_cs_version="\\
17856  config.status  config.status
17857  configured by $0, generated by GNU Autoconf 2.52,  configured by $0, generated by GNU Autoconf 2.53,
17858    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17859    
17860  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001  Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Line 12853  This config.status script is free softwa Line 17863  This config.status script is free softwa
17863  gives unlimited permission to copy, distribute and modify it."  gives unlimited permission to copy, distribute and modify it."
17864  srcdir=$srcdir  srcdir=$srcdir
17865  INSTALL="$INSTALL"  INSTALL="$INSTALL"
17866  EOF  _ACEOF
17867    
17868  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
17869  # If no file are specified by the user, then we need to provide default  # If no file are specified by the user, then we need to provide default
17870  # value.  By we need to know if files were specified by the user.  # value.  By we need to know if files were specified by the user.
17871  ac_need_defaults=:  ac_need_defaults=:
# Line 12877  do Line 17887  do
17887    
17888    case $1 in    case $1 in
17889    # Handling of the options.    # Handling of the options.
17890  EOF  _ACEOF
17891  cat >>$CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<_ACEOF
17892    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17893      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17894      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17895  EOF  _ACEOF
17896  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
17897    --version | --vers* | -V )    --version | --vers* | -V )
17898      echo "$ac_cs_version"; exit 0 ;;      echo "$ac_cs_version"; exit 0 ;;
17899    --he | --h)    --he | --h)
17900      # Conflict between --help and --header      # Conflict between --help and --header
17901      { { echo "$as_me:12891: error: ambiguous option: $1      { { echo "$as_me:$LINENO: error: ambiguous option: $1
17902  Try \`$0 --help' for more information." >&5  Try \`$0 --help' for more information." >&5
17903  echo "$as_me: error: ambiguous option: $1  echo "$as_me: error: ambiguous option: $1
17904  Try \`$0 --help' for more information." >&2;}  Try \`$0 --help' for more information." >&2;}
# Line 12907  Try \`$0 --help' for more information." Line 17917  Try \`$0 --help' for more information."
17917      ac_need_defaults=false;;      ac_need_defaults=false;;
17918    
17919    # This is an error.    # This is an error.
17920    -*) { { echo "$as_me:12910: error: unrecognized option: $1    -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17921  Try \`$0 --help' for more information." >&5  Try \`$0 --help' for more information." >&5
17922  echo "$as_me: error: unrecognized option: $1  echo "$as_me: error: unrecognized option: $1
17923  Try \`$0 --help' for more information." >&2;}  Try \`$0 --help' for more information." >&2;}
# Line 12919  Try \`$0 --help' for more information." Line 17929  Try \`$0 --help' for more information."
17929    shift    shift
17930  done  done
17931    
 exec 5>>config.log  
 cat >&5 << _ACEOF  
   
 ## ----------------------- ##  
 ## Running config.status.  ##  
 ## ----------------------- ##  
   
 This file was extended by $as_me 2.52, executed with  
   CONFIG_FILES    = $CONFIG_FILES  
   CONFIG_HEADERS  = $CONFIG_HEADERS  
   CONFIG_LINKS    = $CONFIG_LINKS  
   CONFIG_COMMANDS = $CONFIG_COMMANDS  
   > $ac_cs_invocation  
 on `(hostname || uname -n) 2>/dev/null | sed 1q`  
   
17932  _ACEOF  _ACEOF
 EOF  
17933    
17934  cat >>$CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<_ACEOF
17935  #  #
17936  # INIT-COMMANDS section.  # INIT-COMMANDS section.
17937  #  #
17938    
17939  GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"  GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
17940    
17941  EOF  _ACEOF
17942    
17943    
17944    
17945  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
17946  for ac_config_target in $ac_config_targets  for ac_config_target in $ac_config_targets
17947  do  do
17948    case "$ac_config_target" in    case "$ac_config_target" in
# Line 12963  do Line 17959  do
17959    "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;    "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
17960    "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;    "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17961    "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;    "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
17962    *) { { echo "$as_me:12966: error: invalid argument: $ac_config_target" >&5    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17963  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17964     { (exit 1); exit 1; }; };;     { (exit 1); exit 1; }; };;
17965    esac    esac
# Line 13001  $debug || Line 17997  $debug ||
17997     { (exit 1); exit 1; }     { (exit 1); exit 1; }
17998  }  }
17999    
18000  EOF  _ACEOF
18001    
18002  cat >>$CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<_ACEOF
18003    
18004  #  #
18005  # CONFIG_FILES section.  # CONFIG_FILES section.
# Line 13016  if test -n "\$CONFIG_FILES"; then Line 18012  if test -n "\$CONFIG_FILES"; then
18012    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18013     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18014  s,@SHELL@,$SHELL,;t t  s,@SHELL@,$SHELL,;t t
18015    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18016    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18017    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18018    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18019    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18020    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18021  s,@exec_prefix@,$exec_prefix,;t t  s,@exec_prefix@,$exec_prefix,;t t
18022  s,@prefix@,$prefix,;t t  s,@prefix@,$prefix,;t t
18023  s,@program_transform_name@,$program_transform_name,;t t  s,@program_transform_name@,$program_transform_name,;t t
# Line 13031  s,@includedir@,$includedir,;t t Line 18033  s,@includedir@,$includedir,;t t
18033  s,@oldincludedir@,$oldincludedir,;t t  s,@oldincludedir@,$oldincludedir,;t t
18034  s,@infodir@,$infodir,;t t  s,@infodir@,$infodir,;t t
18035  s,@mandir@,$mandir,;t t  s,@mandir@,$mandir,;t t
 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t  
 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t  
 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t  
 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t  
 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t  
18036  s,@build_alias@,$build_alias,;t t  s,@build_alias@,$build_alias,;t t
18037  s,@host_alias@,$host_alias,;t t  s,@host_alias@,$host_alias,;t t
18038  s,@target_alias@,$target_alias,;t t  s,@target_alias@,$target_alias,;t t
18039    s,@DEFS@,$DEFS,;t t
18040  s,@ECHO_C@,$ECHO_C,;t t  s,@ECHO_C@,$ECHO_C,;t t
18041  s,@ECHO_N@,$ECHO_N,;t t  s,@ECHO_N@,$ECHO_N,;t t
18042  s,@ECHO_T@,$ECHO_T,;t t  s,@ECHO_T@,$ECHO_T,;t t
 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t  
 s,@DEFS@,$DEFS,;t t  
18043  s,@LIBS@,$LIBS,;t t  s,@LIBS@,$LIBS,;t t
18044  s,@build@,$build,;t t  s,@build@,$build,;t t
18045  s,@build_cpu@,$build_cpu,;t t  s,@build_cpu@,$build_cpu,;t t
# Line 13088  s,@etcdir@,$etcdir,;t t Line 18084  s,@etcdir@,$etcdir,;t t
18084  s,@archlibdir@,$archlibdir,;t t  s,@archlibdir@,$archlibdir,;t t
18085  s,@docdir@,$docdir,;t t  s,@docdir@,$docdir,;t t
18086  s,@bitmapdir@,$bitmapdir,;t t  s,@bitmapdir@,$bitmapdir,;t t
18087    s,@gamedir@,$gamedir,;t t
18088    s,@gameuser@,$gameuser,;t t
18089  s,@c_switch_system@,$c_switch_system,;t t  s,@c_switch_system@,$c_switch_system,;t t
18090  s,@c_switch_machine@,$c_switch_machine,;t t  s,@c_switch_machine@,$c_switch_machine,;t t
18091  s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t  s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
# Line 13098  s,@machfile@,$machfile,;t t Line 18096  s,@machfile@,$machfile,;t t
18096  s,@opsysfile@,$opsysfile,;t t  s,@opsysfile@,$opsysfile,;t t
18097  CEOF  CEOF
18098    
18099  EOF  _ACEOF
18100    
18101    cat >>$CONFIG_STATUS <<\EOF    cat >>$CONFIG_STATUS <<\_ACEOF
18102    # Split the substitutions into bite-sized pieces for seds with    # Split the substitutions into bite-sized pieces for seds with
18103    # small command number limits, like on Digital OSF/1 and HP-UX.    # small command number limits, like on Digital OSF/1 and HP-UX.
18104    ac_max_sed_lines=48    ac_max_sed_lines=48
# Line 13139  EOF Line 18137  EOF
18137    fi    fi
18138  fi # test -n "$CONFIG_FILES"  fi # test -n "$CONFIG_FILES"
18139    
18140  EOF  _ACEOF
18141  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18142  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18143    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18144    case $ac_file in    case $ac_file in
# Line 13154  for ac_file in : $CONFIG_FILES; do test Line 18152  for ac_file in : $CONFIG_FILES; do test
18152    esac    esac
18153    
18154    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18155    ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18156    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157           X"$ac_file" : 'X\(//\)[^/]' \| \           X"$ac_file" : 'X\(//\)[^/]' \| \
18158           X"$ac_file" : 'X\(//\)$' \| \           X"$ac_file" : 'X\(//\)$' \| \
18159           X"$ac_file" : 'X\(/\)' \| \           X"$ac_file" : 'X\(/\)' \| \
# Line 13165  echo X"$ac_file" | Line 18164  echo X"$ac_file" |
18164            /^X\(\/\/\)$/{ s//\1/; q; }            /^X\(\/\/\)$/{ s//\1/; q; }
18165            /^X\(\/\).*/{ s//\1/; q; }            /^X\(\/\).*/{ s//\1/; q; }
18166            s/.*/./; q'`            s/.*/./; q'`
18167    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    { case "$ac_dir" in
     { case "$ac_dir" in  
18168    [\\/]* | ?:[\\/]* ) as_incr_dir=;;    [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18169    *)                      as_incr_dir=.;;    *)                      as_incr_dir=.;;
18170  esac  esac
# Line 13177  for as_mkdir_dir in `IFS='/\\'; set X $a Line 18175  for as_mkdir_dir in `IFS='/\\'; set X $a
18175      ?:) as_incr_dir=$as_mkdir_dir ;;      ?:) as_incr_dir=$as_mkdir_dir ;;
18176      *)      *)
18177        as_incr_dir=$as_incr_dir/$as_mkdir_dir        as_incr_dir=$as_incr_dir/$as_mkdir_dir
18178        test -d "$as_incr_dir" || mkdir "$as_incr_dir"        test -d "$as_incr_dir" ||
18179            mkdir "$as_incr_dir" ||
18180            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18181    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18182       { (exit 1); exit 1; }; }
18183      ;;      ;;
18184    esac    esac
18185  done; }  done; }
18186    
18187      ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"    ac_builddir=.
     # A "../" for each directory in $ac_dir_suffix.  
     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`  
   else  
     ac_dir_suffix= ac_dots=  
   fi  
18188    
18189    case $srcdir in  if test "$ac_dir" != .; then
18190    .)  ac_srcdir=.    ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18191        if test -z "$ac_dots"; then    # A "../" for each directory in $ac_dir_suffix.
18192           ac_top_srcdir=.    ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18193        else  else
18194           ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`    ac_dir_suffix= ac_top_builddir=
18195        fi ;;  fi
18196    [\\/]* | ?:[\\/]* )  
18197        ac_srcdir=$srcdir$ac_dir_suffix;  case $srcdir in
18198        ac_top_srcdir=$srcdir ;;    .)  # No --srcdir option.  We are building in place.
18199        ac_srcdir=.
18200        if test -z "$ac_top_builddir"; then
18201           ac_top_srcdir=.
18202        else
18203           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18204        fi ;;
18205      [\\/]* | ?:[\\/]* )  # Absolute path.
18206        ac_srcdir=$srcdir$ac_dir_suffix;
18207        ac_top_srcdir=$srcdir ;;
18208    *) # Relative path.    *) # Relative path.
18209      ac_srcdir=$ac_dots$srcdir$ac_dir_suffix      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18210      ac_top_srcdir=$ac_dots$srcdir ;;      ac_top_srcdir=$ac_top_builddir$srcdir ;;
18211    esac  esac
18212    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18213    # absolute.
18214    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18215    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18216    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18217    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18218    
18219    
18220    case $INSTALL in    case $INSTALL in
18221    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18222    *) ac_INSTALL=$ac_dots$INSTALL ;;    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18223    esac    esac
18224    
18225    if test x"$ac_file" != x-; then    if test x"$ac_file" != x-; then
18226      { echo "$as_me:13213: creating $ac_file" >&5      { echo "$as_me:$LINENO: creating $ac_file" >&5
18227  echo "$as_me: creating $ac_file" >&6;}  echo "$as_me: creating $ac_file" >&6;}
18228      rm -f "$ac_file"      rm -f "$ac_file"
18229    fi    fi
18230    # Let's still pretend it is `configure' which instantiates (i.e., don't    # Let's still pretend it is `configure' which instantiates (i.e., don't
18231    # use $as_me), people would be surprised to read:    # use $as_me), people would be surprised to read:
18232    #    /* config.h.  Generated automatically by config.status.  */    #    /* config.h.  Generated by config.status.  */
18233    configure_input="Generated automatically from `echo $ac_file_in |    if test x"$ac_file" = x-; then
18234                                                   sed 's,.*/,,'` by configure."      configure_input=
18235      else
18236        configure_input="$ac_file.  "
18237      fi
18238      configure_input=$configure_input"Generated from `echo $ac_file_in |
18239                                         sed 's,.*/,,'` by configure."
18240    
18241    # First look for the input files in the build tree, otherwise in the    # First look for the input files in the build tree, otherwise in the
18242    # src tree.    # src tree.
# Line 13228  echo "$as_me: creating $ac_file" >&6;} Line 18246  echo "$as_me: creating $ac_file" >&6;}
18246        -) echo $tmp/stdin ;;        -) echo $tmp/stdin ;;
18247        [\\/$]*)        [\\/$]*)
18248           # Absolute (can't be DOS-style, as IFS=:)           # Absolute (can't be DOS-style, as IFS=:)
18249           test -f "$f" || { { echo "$as_me:13231: error: cannot find input file: $f" >&5           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18250  echo "$as_me: error: cannot find input file: $f" >&2;}  echo "$as_me: error: cannot find input file: $f" >&2;}
18251     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
18252           echo $f;;           echo $f;;
# Line 13241  echo "$as_me: error: cannot find input f Line 18259  echo "$as_me: error: cannot find input f
18259             echo $srcdir/$f             echo $srcdir/$f
18260           else           else
18261             # /dev/null tree             # /dev/null tree
18262             { { echo "$as_me:13244: error: cannot find input file: $f" >&5             { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18263  echo "$as_me: error: cannot find input file: $f" >&2;}  echo "$as_me: error: cannot find input file: $f" >&2;}
18264     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
18265           fi;;           fi;;
18266        esac        esac
18267      done` || { (exit 1); exit 1; }      done` || { (exit 1); exit 1; }
18268  EOF  _ACEOF
18269  cat >>$CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<_ACEOF
18270    sed "$ac_vpsub    sed "$ac_vpsub
18271  $extrasub  $extrasub
18272  EOF  _ACEOF
18273  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18274  :t  :t
18275  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18276  s,@configure_input@,$configure_input,;t t  s,@configure_input@,$configure_input,;t t
18277  s,@srcdir@,$ac_srcdir,;t t  s,@srcdir@,$ac_srcdir,;t t
18278    s,@abs_srcdir@,$ac_abs_srcdir,;t t
18279  s,@top_srcdir@,$ac_top_srcdir,;t t  s,@top_srcdir@,$ac_top_srcdir,;t t
18280    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18281    s,@builddir@,$ac_builddir,;t t
18282    s,@abs_builddir@,$ac_abs_builddir,;t t
18283    s,@top_builddir@,$ac_top_builddir,;t t
18284    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18285  s,@INSTALL@,$ac_INSTALL,;t t  s,@INSTALL@,$ac_INSTALL,;t t
18286  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18287    rm -f $tmp/stdin    rm -f $tmp/stdin
# Line 13269  s,@INSTALL@,$ac_INSTALL,;t t Line 18293  s,@INSTALL@,$ac_INSTALL,;t t
18293    fi    fi
18294    
18295  done  done
18296  EOF  _ACEOF
18297  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18298    
18299  #  #
18300  # CONFIG_HEADER section.  # CONFIG_HEADER section.
# Line 13302  for ac_file in : $CONFIG_HEADERS; do tes Line 18326  for ac_file in : $CONFIG_HEADERS; do tes
18326    * )   ac_file_in=$ac_file.in ;;    * )   ac_file_in=$ac_file.in ;;
18327    esac    esac
18328    
18329    test x"$ac_file" != x- && { echo "$as_me:13305: creating $ac_file" >&5    test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18330  echo "$as_me: creating $ac_file" >&6;}  echo "$as_me: creating $ac_file" >&6;}
18331    
18332    # First look for the input files in the build tree, otherwise in the    # First look for the input files in the build tree, otherwise in the
# Line 13313  echo "$as_me: creating $ac_file" >&6;} Line 18337  echo "$as_me: creating $ac_file" >&6;}
18337        -) echo $tmp/stdin ;;        -) echo $tmp/stdin ;;
18338        [\\/$]*)        [\\/$]*)
18339           # Absolute (can't be DOS-style, as IFS=:)           # Absolute (can't be DOS-style, as IFS=:)
18340           test -f "$f" || { { echo "$as_me:13316: error: cannot find input file: $f" >&5           test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18341  echo "$as_me: error: cannot find input file: $f" >&2;}  echo "$as_me: error: cannot find input file: $f" >&2;}
18342     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
18343           echo $f;;           echo $f;;
# Line 13326  echo "$as_me: error: cannot find input f Line 18350  echo "$as_me: error: cannot find input f
18350             echo $srcdir/$f             echo $srcdir/$f
18351           else           else
18352             # /dev/null tree             # /dev/null tree
18353             { { echo "$as_me:13329: error: cannot find input file: $f" >&5             { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18354  echo "$as_me: error: cannot find input file: $f" >&2;}  echo "$as_me: error: cannot find input file: $f" >&2;}
18355     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
18356           fi;;           fi;;
# Line 13335  echo "$as_me: error: cannot find input f Line 18359  echo "$as_me: error: cannot find input f
18359    # Remove the trailing spaces.    # Remove the trailing spaces.
18360    sed 's/[      ]*$//' $ac_file_inputs >$tmp/in    sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18361    
18362  EOF  _ACEOF
18363    
18364  # Transform confdefs.h into two sed scripts, `conftest.defines' and  # Transform confdefs.h into two sed scripts, `conftest.defines' and
18365  # `conftest.undefs', that substitutes the proper values into  # `conftest.undefs', that substitutes the proper values into
# Line 13351  rm -f conftest.defines conftest.undefs Line 18375  rm -f conftest.defines conftest.undefs
18375  # `end' is used to avoid that the second main sed command (meant for  # `end' is used to avoid that the second main sed command (meant for
18376  # 0-ary CPP macros) applies to n-ary macro definitions.  # 0-ary CPP macros) applies to n-ary macro definitions.
18377  # See the Autoconf documentation for `clear'.  # See the Autoconf documentation for `clear'.
18378  cat >confdef2sed.sed <<\EOF  cat >confdef2sed.sed <<\_ACEOF
18379  s/[\\&,]/\\&/g  s/[\\&,]/\\&/g
18380  s,[\\$`],\\&,g  s,[\\$`],\\&,g
18381  t clear  t clear
18382  : clear  : clear
18383  s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp  s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18384  t end  t end
18385  s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp  s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18386  : end  : end
18387  EOF  _ACEOF
18388  # If some macros were called several times there might be several times  # If some macros were called several times there might be several times
18389  # the same #defines, which is useless.  Nevertheless, we may not want to  # the same #defines, which is useless.  Nevertheless, we may not want to
18390  # sort them, since we want the *last* AC-DEFINE to be honored.  # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 13371  rm -f confdef2sed.sed Line 18395  rm -f confdef2sed.sed
18395  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
18396  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
18397  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
18398  cat >>conftest.undefs <<\EOF  cat >>conftest.undefs <<\_ACEOF
18399  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18400  EOF  _ACEOF
18401    
18402  # Break up conftest.defines because some shells have a limit on the size  # Break up conftest.defines because some shells have a limit on the size
18403  # of here documents, and old seds have small limits too (100 cmds).  # of here documents, and old seds have small limits too (100 cmds).
# Line 13430  do Line 18454  do
18454  done  done
18455  rm -f conftest.undefs  rm -f conftest.undefs
18456    
18457  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18458    # Let's still pretend it is `configure' which instantiates (i.e., don't    # Let's still pretend it is `configure' which instantiates (i.e., don't
18459    # use $as_me), people would be surprised to read:    # use $as_me), people would be surprised to read:
18460    #    /* config.h.  Generated automatically by config.status.  */    #    /* config.h.  Generated by config.status.  */
18461    if test x"$ac_file" = x-; then    if test x"$ac_file" = x-; then
18462      echo "/* Generated automatically by configure.  */" >$tmp/config.h      echo "/* Generated by configure.  */" >$tmp/config.h
18463    else    else
18464      echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h      echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18465    fi    fi
18466    cat $tmp/in >>$tmp/config.h    cat $tmp/in >>$tmp/config.h
18467    rm -f $tmp/in    rm -f $tmp/in
18468    if test x"$ac_file" != x-; then    if test x"$ac_file" != x-; then
18469      if cmp -s $ac_file $tmp/config.h 2>/dev/null; then      if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18470        { echo "$as_me:13446: $ac_file is unchanged" >&5        { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18471  echo "$as_me: $ac_file is unchanged" >&6;}  echo "$as_me: $ac_file is unchanged" >&6;}
18472      else      else
18473        ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18474    $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18475           X"$ac_file" : 'X\(//\)[^/]' \| \           X"$ac_file" : 'X\(//\)[^/]' \| \
18476           X"$ac_file" : 'X\(//\)$' \| \           X"$ac_file" : 'X\(//\)$' \| \
18477           X"$ac_file" : 'X\(/\)' \| \           X"$ac_file" : 'X\(/\)' \| \
# Line 13457  echo X"$ac_file" | Line 18482  echo X"$ac_file" |
18482            /^X\(\/\/\)$/{ s//\1/; q; }            /^X\(\/\/\)$/{ s//\1/; q; }
18483            /^X\(\/\).*/{ s//\1/; q; }            /^X\(\/\).*/{ s//\1/; q; }
18484            s/.*/./; q'`            s/.*/./; q'`
18485        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then        { case "$ac_dir" in
         { case "$ac_dir" in  
18486    [\\/]* | ?:[\\/]* ) as_incr_dir=;;    [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18487    *)                      as_incr_dir=.;;    *)                      as_incr_dir=.;;
18488  esac  esac
# Line 13469  for as_mkdir_dir in `IFS='/\\'; set X $a Line 18493  for as_mkdir_dir in `IFS='/\\'; set X $a
18493      ?:) as_incr_dir=$as_mkdir_dir ;;      ?:) as_incr_dir=$as_mkdir_dir ;;
18494      *)      *)
18495        as_incr_dir=$as_incr_dir/$as_mkdir_dir        as_incr_dir=$as_incr_dir/$as_mkdir_dir
18496        test -d "$as_incr_dir" || mkdir "$as_incr_dir"        test -d "$as_incr_dir" ||
18497            mkdir "$as_incr_dir" ||
18498            { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18499    echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18500       { (exit 1); exit 1; }; }
18501      ;;      ;;
18502    esac    esac
18503  done; }  done; }
18504    
       fi  
18505        rm -f $ac_file        rm -f $ac_file
18506        mv $tmp/config.h $ac_file        mv $tmp/config.h $ac_file
18507      fi      fi
# Line 13483  done; } Line 18510  done; }
18510      rm -f $tmp/config.h      rm -f $tmp/config.h
18511    fi    fi
18512  done  done
18513  EOF  _ACEOF
18514  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18515    
18516  #  #
18517  # CONFIG_COMMANDS section.  # CONFIG_COMMANDS section.
# Line 13492  cat >>$CONFIG_STATUS <<\EOF Line 18519  cat >>$CONFIG_STATUS <<\EOF
18519  for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue  for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18520    ac_dest=`echo "$ac_file" | sed 's,:.*,,'`    ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18521    ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`    ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18522      ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18523    $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18524             X"$ac_dest" : 'X\(//\)[^/]' \| \
18525             X"$ac_dest" : 'X\(//\)$' \| \
18526             X"$ac_dest" : 'X\(/\)' \| \
18527             .     : '\(.\)' 2>/dev/null ||
18528    echo X"$ac_dest" |
18529        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18530              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18531              /^X\(\/\/\)$/{ s//\1/; q; }
18532              /^X\(\/\).*/{ s//\1/; q; }
18533              s/.*/./; q'`
18534      ac_builddir=.
18535    
18536    if test "$ac_dir" != .; then
18537      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18538      # A "../" for each directory in $ac_dir_suffix.
18539      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18540    else
18541      ac_dir_suffix= ac_top_builddir=
18542    fi
18543    
18544    case $srcdir in
18545      .)  # No --srcdir option.  We are building in place.
18546        ac_srcdir=.
18547        if test -z "$ac_top_builddir"; then
18548           ac_top_srcdir=.
18549        else
18550           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18551        fi ;;
18552      [\\/]* | ?:[\\/]* )  # Absolute path.
18553        ac_srcdir=$srcdir$ac_dir_suffix;
18554        ac_top_srcdir=$srcdir ;;
18555      *) # Relative path.
18556        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18557        ac_top_srcdir=$ac_top_builddir$srcdir ;;
18558    esac
18559    # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18560    # absolute.
18561    ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18562    ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18563    ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18564    ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18565    
18566    
18567      { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18568    echo "$as_me: executing $ac_dest commands" >&6;}
18569    case $ac_dest in    case $ac_dest in
18570      default )      default )
18571    
# Line 13569  touch src/config.stamp Line 18642  touch src/config.stamp
18642   ;;   ;;
18643    esac    esac
18644  done  done
18645  EOF  _ACEOF
18646    
18647  cat >>$CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\_ACEOF
18648    
18649  { (exit 0); exit 0; }  { (exit 0); exit 0; }
18650  EOF  _ACEOF
18651  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
18652  ac_clean_files=$ac_clean_files_save  ac_clean_files=$ac_clean_files_save
18653    
18654    
18655  # configure is writing to config.log, and then calls config.status.  # configure is writing to config.log, and then calls config.status.
18656  # config.status does its own redirection, appending to config.log.  # config.status does its own redirection, appending to config.log.
18657  # Unfortunately, on DOS this fails, as config.log is still kept open  # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 13596  if test "$no_create" != yes; then Line 18670  if test "$no_create" != yes; then
18670    $ac_cs_success || { (exit 1); exit 1; }    $ac_cs_success || { (exit 1); exit 1; }
18671  fi  fi
18672    
18673    

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26