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 GNU Autoconf 2.53 for BugCommunicator 0.1. |
# Generated by GNU Autoconf 2.53 for BugCommunicator 0.2. |
4 |
# |
# |
5 |
# Report bugs to <okuji@enbug.org>. |
# Report bugs to <okuji@enbug.org>. |
6 |
# |
# |
256 |
# Identity of this package. |
# Identity of this package. |
257 |
PACKAGE_NAME='BugCommunicator' |
PACKAGE_NAME='BugCommunicator' |
258 |
PACKAGE_TARNAME='bugcomm' |
PACKAGE_TARNAME='bugcomm' |
259 |
PACKAGE_VERSION='0.1' |
PACKAGE_VERSION='0.2' |
260 |
PACKAGE_STRING='BugCommunicator 0.1' |
PACKAGE_STRING='BugCommunicator 0.2' |
261 |
PACKAGE_BUGREPORT='okuji@enbug.org' |
PACKAGE_BUGREPORT='okuji@enbug.org' |
262 |
|
|
263 |
ac_unique_file="clients/bugcomm/bugcomm.c" |
ac_unique_file="src/bugcomm.in" |
|
# Factoring default headers for most tests. |
|
|
ac_includes_default="\ |
|
|
#include <stdio.h> |
|
|
#if HAVE_SYS_TYPES_H |
|
|
# include <sys/types.h> |
|
|
#endif |
|
|
#if HAVE_SYS_STAT_H |
|
|
# include <sys/stat.h> |
|
|
#endif |
|
|
#if STDC_HEADERS |
|
|
# include <stdlib.h> |
|
|
# include <stddef.h> |
|
|
#else |
|
|
# if HAVE_STDLIB_H |
|
|
# include <stdlib.h> |
|
|
# endif |
|
|
#endif |
|
|
#if HAVE_STRING_H |
|
|
# if !STDC_HEADERS && HAVE_MEMORY_H |
|
|
# include <memory.h> |
|
|
# endif |
|
|
# include <string.h> |
|
|
#endif |
|
|
#if HAVE_STRINGS_H |
|
|
# include <strings.h> |
|
|
#endif |
|
|
#if HAVE_INTTYPES_H |
|
|
# include <inttypes.h> |
|
|
#else |
|
|
# if HAVE_STDINT_H |
|
|
# include <stdint.h> |
|
|
# endif |
|
|
#endif |
|
|
#if HAVE_UNISTD_H |
|
|
# include <unistd.h> |
|
|
#endif" |
|
|
|
|
264 |
|
|
265 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
266 |
ac_init_help= |
ac_init_help= |
697 |
ac_env_target_alias_value=$target_alias |
ac_env_target_alias_value=$target_alias |
698 |
ac_cv_env_target_alias_set=${target_alias+set} |
ac_cv_env_target_alias_set=${target_alias+set} |
699 |
ac_cv_env_target_alias_value=$target_alias |
ac_cv_env_target_alias_value=$target_alias |
|
ac_env_CC_set=${CC+set} |
|
|
ac_env_CC_value=$CC |
|
|
ac_cv_env_CC_set=${CC+set} |
|
|
ac_cv_env_CC_value=$CC |
|
|
ac_env_CFLAGS_set=${CFLAGS+set} |
|
|
ac_env_CFLAGS_value=$CFLAGS |
|
|
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
|
ac_cv_env_CFLAGS_value=$CFLAGS |
|
|
ac_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
ac_env_LDFLAGS_value=$LDFLAGS |
|
|
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|
|
ac_cv_env_LDFLAGS_value=$LDFLAGS |
|
|
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
ac_env_CPPFLAGS_value=$CPPFLAGS |
|
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
ac_env_CPP_set=${CPP+set} |
|
|
ac_env_CPP_value=$CPP |
|
|
ac_cv_env_CPP_set=${CPP+set} |
|
|
ac_cv_env_CPP_value=$CPP |
|
700 |
|
|
701 |
# |
# |
702 |
# Report the --help message. |
# Report the --help message. |
705 |
# Omit some internal or obsolete options to make the list less imposing. |
# Omit some internal or obsolete options to make the list less imposing. |
706 |
# 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. |
707 |
cat <<_ACEOF |
cat <<_ACEOF |
708 |
\`configure' configures BugCommunicator 0.1 to adapt to many kinds of systems. |
\`configure' configures BugCommunicator 0.2 to adapt to many kinds of systems. |
709 |
|
|
710 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
Usage: $0 [OPTION]... [VAR=VALUE]... |
711 |
|
|
767 |
|
|
768 |
if test -n "$ac_init_help"; then |
if test -n "$ac_init_help"; then |
769 |
case $ac_init_help in |
case $ac_init_help in |
770 |
short | recursive ) echo "Configuration of BugCommunicator 0.1:";; |
short | recursive ) echo "Configuration of BugCommunicator 0.2:";; |
771 |
esac |
esac |
772 |
cat <<\_ACEOF |
cat <<\_ACEOF |
773 |
|
|
778 |
--enable-dependency-tracking Do not reject slow dependency extractors |
--enable-dependency-tracking Do not reject slow dependency extractors |
779 |
--enable-maintainer-mode enable make rules and dependencies not useful |
--enable-maintainer-mode enable make rules and dependencies not useful |
780 |
(and sometimes confusing) to the casual installer |
(and sometimes confusing) to the casual installer |
|
--disable-server do not build a server |
|
|
--disable-clients do not build clients |
|
781 |
|
|
782 |
Optional Packages: |
Optional Packages: |
783 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
784 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
785 |
--with-cgidir=DIR install CGI executables in DIR |
--with-cgidir=DIR install CGI executables in DIR |
786 |
[EPREFIX/lib/cgi-bin] |
[EPREFIX/lib/cgi-bin] |
787 |
--with-config-file=FILE use FILE as a configuration file |
--with-bugcomm-conf=FILE |
788 |
|
use FILE as a configuration file for clients |
789 |
[/etc/bugcomm.conf] |
[/etc/bugcomm.conf] |
790 |
|
--with-bugcommd-conf=FILE |
791 |
Some influential environment variables: |
use FILE as a configuration file for a server |
792 |
CC C compiler command |
[/etc/bugcommd.conf] |
|
CFLAGS C compiler flags |
|
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
|
nonstandard directory <lib dir> |
|
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
|
|
headers in a nonstandard directory <include dir> |
|
|
CPP C preprocessor |
|
|
|
|
|
Use these variables to override the choices made by `configure' or to help |
|
|
it to find libraries and programs with nonstandard names/locations. |
|
793 |
|
|
794 |
Report bugs to <okuji@enbug.org>. |
Report bugs to <okuji@enbug.org>. |
795 |
_ACEOF |
_ACEOF |
854 |
test -n "$ac_init_help" && exit 0 |
test -n "$ac_init_help" && exit 0 |
855 |
if $ac_init_version; then |
if $ac_init_version; then |
856 |
cat <<\_ACEOF |
cat <<\_ACEOF |
857 |
BugCommunicator configure 0.1 |
BugCommunicator configure 0.2 |
858 |
generated by GNU Autoconf 2.53 |
generated by GNU Autoconf 2.53 |
859 |
|
|
860 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
869 |
This file contains any messages produced by compilers while |
This file contains any messages produced by compilers while |
870 |
running configure, to aid debugging if configure makes a mistake. |
running configure, to aid debugging if configure makes a mistake. |
871 |
|
|
872 |
It was created by BugCommunicator $as_me 0.1, which was |
It was created by BugCommunicator $as_me 0.2, which was |
873 |
generated by GNU Autoconf 2.53. Invocation command line was |
generated by GNU Autoconf 2.53. Invocation command line was |
874 |
|
|
875 |
$ $0 $@ |
$ $0 $@ |
1435 |
|
|
1436 |
# Define the identity of the package. |
# Define the identity of the package. |
1437 |
PACKAGE=bugcomm |
PACKAGE=bugcomm |
1438 |
VERSION=0.1 |
VERSION=0.2 |
1439 |
|
|
1440 |
cat >>confdefs.h <<_ACEOF |
cat >>confdefs.h <<_ACEOF |
1441 |
#define PACKAGE "$PACKAGE" |
#define PACKAGE "$PACKAGE" |
1487 |
|
|
1488 |
|
|
1489 |
|
|
|
|
|
|
|
|
|
ac_config_headers="$ac_config_headers config.h" |
|
|
|
|
|
|
|
1490 |
# Checks for user options. |
# Checks for user options. |
1491 |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1492 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1512 |
|
|
1513 |
|
|
1514 |
|
|
|
echo "$as_me:$LINENO: checking whether to build a server" >&5 |
|
|
echo $ECHO_N "checking whether to build a server... $ECHO_C" >&6 |
|
|
# Check whether --enable-server or --disable-server was given. |
|
|
if test "${enable_server+set}" = set; then |
|
|
enableval="$enable_server" |
|
|
|
|
|
else |
|
|
enable_server=yes |
|
|
fi; |
|
|
echo "$as_me:$LINENO: result: $enable_server" >&5 |
|
|
echo "${ECHO_T}$enable_server" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking whether to build clients" >&5 |
|
|
echo $ECHO_N "checking whether to build clients... $ECHO_C" >&6 |
|
|
# Check whether --enable-clients or --disable-clients was given. |
|
|
if test "${enable_clients+set}" = set; then |
|
|
enableval="$enable_clients" |
|
|
|
|
|
else |
|
|
enable_clients=yes |
|
|
fi; |
|
|
echo "$as_me:$LINENO: result: $enable_clients" >&5 |
|
|
echo "${ECHO_T}$enable_clients" >&6 |
|
|
|
|
1515 |
echo "$as_me:$LINENO: checking where to install CGI executables" >&5 |
echo "$as_me:$LINENO: checking where to install CGI executables" >&5 |
1516 |
echo $ECHO_N "checking where to install CGI executables... $ECHO_C" >&6 |
echo $ECHO_N "checking where to install CGI executables... $ECHO_C" >&6 |
1517 |
|
|
1526 |
echo "${ECHO_T}$CGIDIR" >&6 |
echo "${ECHO_T}$CGIDIR" >&6 |
1527 |
|
|
1528 |
|
|
1529 |
echo "$as_me:$LINENO: checking where the configuration file resides" >&5 |
echo "$as_me:$LINENO: checking where the configuration file for clients resides" >&5 |
1530 |
echo $ECHO_N "checking where the configuration file resides... $ECHO_C" >&6 |
echo $ECHO_N "checking where the configuration file for clients resides... $ECHO_C" >&6 |
1531 |
|
|
1532 |
# Check whether --with-config-file or --without-config-file was given. |
# Check whether --with-bugcomm-conf or --without-bugcomm-conf was given. |
1533 |
if test "${with_config_file+set}" = set; then |
if test "${with_bugcomm_conf+set}" = set; then |
1534 |
withval="$with_config_file" |
withval="$with_bugcomm_conf" |
1535 |
DEFAULT_CONFIG_FILE=$with_config_file |
BUGCOMM_CONFIG_FILE=$with_bugcomm_conf |
1536 |
else |
else |
1537 |
DEFAULT_CONFIG_FILE=/etc/bugcomm.conf |
BUGCOMM_CONFIG_FILE=/etc/bugcomm.conf |
1538 |
fi; |
fi; |
1539 |
echo "$as_me:$LINENO: result: $DEFAULT_CONFIG_FILE" >&5 |
echo "$as_me:$LINENO: result: $BUGCOMM_CONFIG_FILE" >&5 |
1540 |
echo "${ECHO_T}$DEFAULT_CONFIG_FILE" >&6 |
echo "${ECHO_T}$BUGCOMM_CONFIG_FILE" >&6 |
1541 |
|
|
1542 |
|
|
1543 |
|
echo "$as_me:$LINENO: checking where the configuration file for a server resides" >&5 |
1544 |
|
echo $ECHO_N "checking where the configuration file for a server resides... $ECHO_C" >&6 |
1545 |
|
|
1546 |
cat >>confdefs.h <<_ACEOF |
# Check whether --with-bugcommd-conf or --without-bugcommd-conf was given. |
1547 |
#define DEFAULT_CONFIG_FILE "$DEFAULT_CONFIG_FILE" |
if test "${with_bugcommd_conf+set}" = set; then |
1548 |
_ACEOF |
withval="$with_bugcommd_conf" |
1549 |
|
BUGCOMMD_CONFIG_FILE=$with_bugcommd_conf |
1550 |
|
else |
1551 |
|
BUGCOMMD_CONFIG_FILE=/etc/bugcommd.conf |
1552 |
|
fi; |
1553 |
|
echo "$as_me:$LINENO: result: $BUGCOMMD_CONFIG_FILE" >&5 |
1554 |
|
echo "${ECHO_T}$BUGCOMMD_CONFIG_FILE" >&6 |
1555 |
|
|
|
# Server. |
|
|
if test x$enable_server != xno; then |
|
|
BUGCOMM_SUBDIRS="$BUGCOMM_SUBDIRS server" |
|
1556 |
|
|
1557 |
# Extract the first word of "ruby", so it can be a program name with args. |
# Extract the first word of "ruby", so it can be a program name with args. |
1558 |
set dummy ruby; ac_word=$2 |
set dummy ruby; ac_word=$2 |
1559 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1560 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1597 |
fi |
fi |
1598 |
|
|
1599 |
|
|
1600 |
echo "$as_me:$LINENO: checking where to install Ruby script files" >&5 |
echo "$as_me:$LINENO: checking whether dRuby is available" >&5 |
1601 |
echo $ECHO_N "checking where to install Ruby script files... $ECHO_C" >&6 |
echo $ECHO_N "checking whether dRuby is available... $ECHO_C" >&6 |
1602 |
RUBYDIR=`$RUBY -rrbconfig -e 'print Config::CONFIG["sitelibdir"]'` |
if $RUBY -rdrb/drb -e exit >/dev/null 2>&1; then |
1603 |
echo "$as_me:$LINENO: result: $RUBYDIR" >&5 |
: |
|
echo "${ECHO_T}$RUBYDIR" >&6 |
|
|
|
|
|
|
|
|
ac_config_files="$ac_config_files server/bugcommd" |
|
|
|
|
|
fi |
|
|
|
|
|
# Clients. |
|
|
if test x$enable_clients != xno; then |
|
|
BUGCOMM_SUBDIRS="$BUGCOMM_SUBDIRS clients" |
|
|
|
|
|
# Checks for programs. |
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
CC=$ac_cv_prog_CC |
|
|
if test -n "$CC"; then |
|
|
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_CC"; then |
|
|
ac_ct_CC=$CC |
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
|
|
set dummy gcc; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_CC"; then |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="gcc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
else |
|
|
CC="$ac_cv_prog_CC" |
|
|
fi |
|
|
|
|
|
if test -z "$CC"; then |
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
CC=$ac_cv_prog_CC |
|
|
if test -n "$CC"; then |
|
|
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_CC"; then |
|
|
ac_ct_CC=$CC |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
|
|
set dummy cc; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_CC"; then |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="cc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
else |
|
|
CC="$ac_cv_prog_CC" |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$CC"; then |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
|
|
set dummy cc; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
ac_prog_rejected=no |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
|
ac_prog_rejected=yes |
|
|
continue |
|
|
fi |
|
|
ac_cv_prog_CC="cc" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
if test $ac_prog_rejected = yes; then |
|
|
# We found a bogon in the path, so make sure we never use it. |
|
|
set dummy $ac_cv_prog_CC |
|
|
shift |
|
|
if test $# != 0; then |
|
|
# We chose a different compiler from the bogus one. |
|
|
# However, it has the same basename, so the bogon will be chosen |
|
|
# first if we set CC to just the basename; use the full file name. |
|
|
shift |
|
|
set dummy "$as_dir/$ac_word" ${1+"$@"} |
|
|
shift |
|
|
ac_cv_prog_CC="$@" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
CC=$ac_cv_prog_CC |
|
|
if test -n "$CC"; then |
|
|
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$CC"; then |
|
|
if test -n "$ac_tool_prefix"; then |
|
|
for ac_prog in cl |
|
|
do |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
CC=$ac_cv_prog_CC |
|
|
if test -n "$CC"; then |
|
|
echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
echo "${ECHO_T}$CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
test -n "$CC" && break |
|
|
done |
|
|
fi |
|
|
if test -z "$CC"; then |
|
|
ac_ct_CC=$CC |
|
|
for ac_prog in cl |
|
|
do |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
set dummy $ac_prog; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_CC"; then |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
if test -n "$ac_ct_CC"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
test -n "$ac_ct_CC" && break |
|
|
done |
|
|
|
|
|
CC=$ac_ct_CC |
|
|
fi |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
|
# Provide some information about the compiler. |
|
|
echo "$as_me:$LINENO:" \ |
|
|
"checking for C compiler version" >&5 |
|
|
ac_compiler=`set X $ac_compile; echo $2` |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
ac_clean_files_save=$ac_clean_files |
|
|
ac_clean_files="$ac_clean_files a.out a.exe" |
|
|
# Try to create an executable without -o first, disregard a.out. |
|
|
# It will help us diagnose broken compilers, and finding out an intuition |
|
|
# of exeext. |
|
|
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
|
|
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|
|
(eval $ac_link_default) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
# Find the output, starting from the most likely. This scheme is |
|
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|
|
# resort. |
|
|
|
|
|
# Be careful to initialize this variable, since it used to be cached. |
|
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|
|
ac_cv_exeext= |
|
|
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
|
|
ls a.out conftest 2>/dev/null; |
|
|
ls a.* conftest.* 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
|
|
a.out ) # We found the default executable, but exeext='' is most |
|
|
# certainly right. |
|
|
break;; |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
# FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
1604 |
else |
else |
1605 |
echo "$as_me: failed program was:" >&5 |
{ { echo "$as_me:$LINENO: error: dRuby not found" >&5 |
1606 |
cat conftest.$ac_ext >&5 |
echo "$as_me: error: dRuby not found" >&2;} |
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
|
|
echo "$as_me: error: C compiler cannot create executables" >&2;} |
|
|
{ (exit 77); exit 77; }; } |
|
|
fi |
|
|
|
|
|
ac_exeext=$ac_cv_exeext |
|
|
echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
echo "${ECHO_T}$ac_file" >&6 |
|
|
|
|
|
# Check the compiler produces executables we can run. If not, either |
|
|
# the compiler is broken, or we cross compile. |
|
|
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
|
# If not cross compiling, check that we can run a simple program. |
|
|
if test "$cross_compiling" != yes; then |
|
|
if { ac_try='./$ac_file' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
cross_compiling=no |
|
|
else |
|
|
if test "$cross_compiling" = maybe; then |
|
|
cross_compiling=yes |
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'." >&5 |
|
|
echo "$as_me: error: cannot run C compiled programs. |
|
|
If you meant to cross compile, use \`--host'." >&2;} |
|
1607 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
|
fi |
|
|
fi |
|
1608 |
fi |
fi |
1609 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$as_me:$LINENO: result: yes" >&5 |
1610 |
echo "${ECHO_T}yes" >&6 |
echo "${ECHO_T}yes" >&6 |
1611 |
|
|
1612 |
rm -f a.out a.exe conftest$ac_cv_exeext |
echo "$as_me:$LINENO: checking whether ACL for Ruby is available" >&5 |
1613 |
ac_clean_files=$ac_clean_files_save |
echo $ECHO_N "checking whether ACL for Ruby is available... $ECHO_C" >&6 |
1614 |
# Check the compiler produces executables we can run. If not, either |
if $RUBY -racl -e exit >/dev/null 2>&1; then |
|
# the compiler is broken, or we cross compile. |
|
|
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
|
|
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
|
echo "${ECHO_T}$cross_compiling" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
|
# `rm'. |
|
|
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
export ac_cv_exeext |
|
|
break;; |
|
|
* ) break;; |
|
|
esac |
|
|
done |
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
rm -f conftest$ac_cv_exeext |
|
|
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6 |
|
|
|
|
|
rm -f conftest.$ac_ext |
|
|
EXEEXT=$ac_cv_exeext |
|
|
ac_exeext=$EXEEXT |
|
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_objext+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.o conftest.obj |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|
|
case $ac_file in |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
|
break;; |
|
|
esac |
|
|
done |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6 |
|
|
OBJEXT=$ac_cv_objext |
|
|
ac_objext=$OBJEXT |
|
|
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
#ifndef __GNUC__ |
|
|
choke me |
|
|
#endif |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_compiler_gnu=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_compiler_gnu=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
ac_test_CFLAGS=${CFLAGS+set} |
|
|
ac_save_CFLAGS=$CFLAGS |
|
|
CFLAGS="-g" |
|
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_prog_cc_g=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_prog_cc_g=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
|
if test "$ac_test_CFLAGS" = set; then |
|
|
CFLAGS=$ac_save_CFLAGS |
|
|
elif test $ac_cv_prog_cc_g = yes; then |
|
|
if test "$GCC" = yes; then |
|
|
CFLAGS="-g -O2" |
|
|
else |
|
|
CFLAGS="-g" |
|
|
fi |
|
|
else |
|
|
if test "$GCC" = yes; then |
|
|
CFLAGS="-O2" |
|
|
else |
|
|
CFLAGS= |
|
|
fi |
|
|
fi |
|
|
# Some people use a C++ compiler to compile C. Since we use `exit', |
|
|
# in C++ we need to declare it. In case someone uses the same compiler |
|
|
# for both compiling C and C++ we need to have the C++ compiler decide |
|
|
# the declaration of exit, since it's the most demanding environment. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#ifndef __cplusplus |
|
|
choke me |
|
|
#endif |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
for ac_declaration in \ |
|
|
''\ |
|
|
'#include <stdlib.h>' \ |
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
'extern "C" void std::exit (int); using std::exit;' \ |
|
|
'extern "C" void exit (int) throw ();' \ |
|
|
'extern "C" void exit (int);' \ |
|
|
'void exit (int);' |
|
|
do |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
$ac_declaration |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
exit (42); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
: |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
continue |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_declaration |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
exit (42); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
done |
|
|
rm -f conftest* |
|
|
if test -n "$ac_declaration"; then |
|
|
echo '#ifdef __cplusplus' >>confdefs.h |
|
|
echo $ac_declaration >>confdefs.h |
|
|
echo '#endif' >>confdefs.h |
|
|
fi |
|
|
|
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
|
|
|
ac_config_commands="$ac_config_commands default-1" |
|
|
|
|
|
am_make=${MAKE-make} |
|
|
cat > confinc << 'END' |
|
|
doit: |
|
|
@echo done |
|
|
END |
|
|
# If we don't find an include directive, just comment out the code. |
|
|
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
|
|
am__include='#' |
|
|
am__quote= |
|
|
_am_result=none |
|
|
# First try GNU make style include. |
|
|
echo "include confinc" > confmf |
|
|
# We grep out `Entering directory' and `Leaving directory' |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
|
|
# In particular we don't look at `^make:' because GNU make might |
|
|
# be invoked under some other name (usually "gmake"), in which |
|
|
# case it prints its new name instead of `make'. |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
|
|
am__include=include |
|
|
am__quote= |
|
|
_am_result=GNU |
|
|
fi |
|
|
# Now try BSD make style include. |
|
|
if test "$am__include" = "#"; then |
|
|
echo '.include "confinc"' > confmf |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
|
am__include=.include |
|
|
am__quote='"' |
|
|
_am_result=BSD |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
|
echo "${ECHO_T}$_am_result" >&6 |
|
|
rm -f confinc confmf |
|
|
|
|
|
|
|
|
depcc="$CC" am_compiler_list= |
|
|
|
|
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
# We make a subdir and do the tests there. Otherwise we can end up |
|
|
# making bogus files that we don't know about and never remove. For |
|
|
# instance it was reported that on HP-UX the gcc test will end up |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output |
|
|
# in D'. |
|
|
mkdir conftest.dir |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
|
# using a relative directory. |
|
|
cp "$am_depcomp" conftest.dir |
|
|
cd conftest.dir |
|
|
|
|
|
am_cv_CC_dependencies_compiler_type=none |
|
|
if test "$am_compiler_list" = ""; then |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
|
fi |
|
|
for depmode in $am_compiler_list; do |
|
|
# We need to recreate these files for each test, as the compiler may |
|
|
# overwrite some of them when testing with obscure command lines. |
|
|
# This happens at least with the AIX C compiler. |
|
|
echo '#include "conftest.h"' > conftest.c |
|
|
echo 'int i;' > conftest.h |
|
|
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
|
|
|
|
|
case $depmode in |
|
|
nosideeffect) |
|
|
# after this tag, mechanisms are not by side-effect, so they'll |
|
|
# only be used when explicitly requested |
|
|
if test "x$enable_dependency_tracking" = xyes; then |
|
|
continue |
|
|
else |
|
|
break |
|
|
fi |
|
|
;; |
|
|
none) break ;; |
|
|
esac |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly |
|
|
# handle `-M -o', and we need to detect this. |
|
|
if depmode=$depmode \ |
|
|
source=conftest.c object=conftest.o \ |
|
|
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
|
|
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
|
|
grep conftest.h conftest.Po > /dev/null 2>&1 && |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
am_cv_CC_dependencies_compiler_type=$depmode |
|
|
break |
|
|
fi |
|
|
done |
|
|
|
|
|
cd .. |
|
|
rm -rf conftest.dir |
|
|
else |
|
|
am_cv_CC_dependencies_compiler_type=none |
|
|
fi |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
|
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" |
|
|
|
|
|
|
|
|
if test x$GCC = xyes; then |
|
|
CFLAGS="$CFLAGS -Wall -W" |
|
|
fi |
|
|
|
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$RANLIB"; then |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
RANLIB=$ac_cv_prog_RANLIB |
|
|
if test -n "$RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
echo "${ECHO_T}$RANLIB" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_RANLIB"; then |
|
|
ac_ct_RANLIB=$RANLIB |
|
|
# Extract the first word of "ranlib", so it can be a program name with args. |
|
|
set dummy ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
fi |
|
|
fi |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
RANLIB=$ac_ct_RANLIB |
|
|
else |
|
|
RANLIB="$ac_cv_prog_RANLIB" |
|
|
fi |
|
|
|
|
|
|
|
|
# Checks for libraries. |
|
|
|
|
|
# Checks for header files. |
|
|
|
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
|
# On Suns, sometimes $CPP names a directory. |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
|
|
CPP= |
|
|
fi |
|
|
if test -z "$CPP"; then |
|
|
if test "${ac_cv_prog_CPP+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
# Double quotes because CPP needs to be expanded |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
do |
|
|
ac_preproc_ok=false |
|
|
for ac_c_preproc_warn_flag in '' yes |
|
|
do |
|
|
# Use a header file that comes with gcc, so configuring glibc |
|
|
# with a fresh cross-compiler works. |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <assert.h> |
|
|
Syntax error |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
: |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
# Broken: fails on valid input. |
|
|
continue |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
# Broken: success on invalid input. |
|
|
continue |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
# Passes both tests. |
|
|
ac_preproc_ok=: |
|
|
break |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
|
done |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
if $ac_preproc_ok; then |
|
|
break |
|
|
fi |
|
|
|
|
|
done |
|
|
ac_cv_prog_CPP=$CPP |
|
|
|
|
|
fi |
|
|
CPP=$ac_cv_prog_CPP |
|
|
else |
|
|
ac_cv_prog_CPP=$CPP |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
echo "${ECHO_T}$CPP" >&6 |
|
|
ac_preproc_ok=false |
|
|
for ac_c_preproc_warn_flag in '' yes |
|
|
do |
|
|
# Use a header file that comes with gcc, so configuring glibc |
|
|
# with a fresh cross-compiler works. |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
# not just through cpp. "Syntax error" is here to catch this case. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <assert.h> |
|
|
Syntax error |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
: |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
# Broken: fails on valid input. |
|
|
continue |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
|
# OK, works on sane cases. Now check whether non-existent headers |
|
|
# can be detected and how. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <ac_nonexistent.h> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
# Broken: success on invalid input. |
|
|
continue |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
# Passes both tests. |
|
|
ac_preproc_ok=: |
|
|
break |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
|
done |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
if $ac_preproc_ok; then |
|
|
: |
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
#include <stdarg.h> |
|
|
#include <string.h> |
|
|
#include <float.h> |
|
|
|
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_cv_header_stdc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <string.h> |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
egrep "memchr" >/dev/null 2>&1; then |
|
1615 |
: |
: |
1616 |
else |
else |
1617 |
ac_cv_header_stdc=no |
{ { echo "$as_me:$LINENO: error: ACL for Ruby not found" >&5 |
1618 |
fi |
echo "$as_me: error: ACL for Ruby not found" >&2;} |
|
rm -f conftest* |
|
|
|
|
|
fi |
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
|
|
|
_ACEOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
egrep "free" >/dev/null 2>&1; then |
|
|
: |
|
|
else |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
|
fi |
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
if test "$cross_compiling" = yes; then |
|
|
: |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <ctype.h> |
|
|
#if ((' ' & 0x0FF) == 0x020) |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
#else |
|
|
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
|
|
|| ('j' <= (c) && (c) <= 'r') \ |
|
|
|| ('s' <= (c) && (c) <= 'z')) |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
#endif |
|
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
int |
|
|
main () |
|
|
{ |
|
|
int i; |
|
|
for (i = 0; i < 256; i++) |
|
|
if (XOR (islower (i), ISLOWER (i)) |
|
|
|| toupper (i) != TOUPPER (i)) |
|
|
exit(2); |
|
|
exit (0); |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
: |
|
|
else |
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
( exit $ac_status ) |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define STDC_HEADERS 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
inttypes.h stdint.h unistd.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
|
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_Header=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
eval "$as_ac_Header=no" |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in malloc.h memory.h stdlib.h string.h strings.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
fi |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sysexits.h unistd.h stdarg.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
fi |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in arpa/inet.h netdb.h netinet/in.h sys/socket.h |
|
|
do |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
else |
|
|
# Is the header compilable? |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_header_compiler=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_compiler=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
# Is the header present? |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <$ac_header> |
|
|
_ACEOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } >/dev/null; then |
|
|
if test -s conftest.err; then |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
else |
|
|
ac_cpp_err= |
|
|
fi |
|
|
else |
|
|
ac_cpp_err=yes |
|
|
fi |
|
|
if test -z "$ac_cpp_err"; then |
|
|
ac_header_preproc=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_header_preproc=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
# So? What about this header? |
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
yes:no ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
no:yes ) |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
esac |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
fi |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics. |
|
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_cv_prog_cc_stdc=no |
|
|
ac_save_CC=$CC |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdarg.h> |
|
|
#include <stdio.h> |
|
|
#include <sys/types.h> |
|
|
#include <sys/stat.h> |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
struct buf { int x; }; |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
static char *e (p, i) |
|
|
char **p; |
|
|
int i; |
|
|
{ |
|
|
return p[i]; |
|
|
} |
|
|
static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
{ |
|
|
char *s; |
|
|
va_list v; |
|
|
va_start (v,p); |
|
|
s = g (p, va_arg (v,int)); |
|
|
va_end (v); |
|
|
return s; |
|
|
} |
|
|
int test (int i, double x); |
|
|
struct s1 {int (*f) (int a);}; |
|
|
struct s2 {int (*f) (double a);}; |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
int argc; |
|
|
char **argv; |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
# Don't try gcc -ansi; that turns off useful extensions and |
|
|
# breaks some systems' header files. |
|
|
# AIX -qlanglvl=ansi |
|
|
# Ultrix and OSF/1 -std1 |
|
|
# HP-UX 10.20 and later -Ae |
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE |
|
|
# SVR4 -Xc -D__EXTENSIONS__ |
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
do |
|
|
CC="$ac_save_CC $ac_arg" |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_prog_cc_stdc=$ac_arg |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext |
|
|
done |
|
|
rm -f conftest.$ac_ext conftest.$ac_objext |
|
|
CC=$ac_save_CC |
|
|
|
|
|
fi |
|
|
|
|
|
case "x$ac_cv_prog_cc_stdc" in |
|
|
x|xno) |
|
|
echo "$as_me:$LINENO: result: none needed" >&5 |
|
|
echo "${ECHO_T}none needed" >&6 ;; |
|
|
*) |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
|
CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
|
esac |
|
|
|
|
|
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
|
|
if test "${ac_cv_c_const+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
/* FIXME: Include the comments suggested by Paul. */ |
|
|
#ifndef __cplusplus |
|
|
/* Ultrix mips cc rejects this. */ |
|
|
typedef int charset[2]; |
|
|
const charset x; |
|
|
/* SunOS 4.1.1 cc rejects this. */ |
|
|
char const *const *ccp; |
|
|
char **p; |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
struct point {int x, y;}; |
|
|
static struct point const zero = {0,0}; |
|
|
/* AIX XL C 1.02.0.0 rejects this. |
|
|
It does not let you subtract one const X* pointer from another in |
|
|
an arm of an if-expression whose if-part is not a constant |
|
|
expression */ |
|
|
const char *g = "string"; |
|
|
ccp = &g + (g ? g-g : 0); |
|
|
/* HPUX 7.0 cc rejects these. */ |
|
|
++ccp; |
|
|
p = (char**) ccp; |
|
|
ccp = (char const *const *) p; |
|
|
{ /* SCO 3.2v4 cc rejects this. */ |
|
|
char *t; |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
|
|
|
*t++ = 0; |
|
|
} |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
int x[] = {25, 17}; |
|
|
const int *foo = &x[0]; |
|
|
++foo; |
|
|
} |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
typedef const int *iptr; |
|
|
iptr p = 0; |
|
|
++p; |
|
|
} |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
struct s { int j; const int *ap[3]; }; |
|
|
struct s *b; b->j = 5; |
|
|
} |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
const int foo = 10; |
|
|
} |
|
|
#endif |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_c_const=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_c_const=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
echo "${ECHO_T}$ac_cv_c_const" >&6 |
|
|
if test $ac_cv_c_const = no; then |
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
#define const |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for size_t" >&5 |
|
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
|
|
if test "${ac_cv_type_size_t+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
$ac_includes_default |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
if ((size_t *) 0) |
|
|
return 0; |
|
|
if (sizeof (size_t)) |
|
|
return 0; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_type_size_t=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_type_size_t=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
|
|
if test $ac_cv_type_size_t = yes; then |
|
|
: |
|
|
else |
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define size_t unsigned |
|
|
_ACEOF |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# Checks for library functions. |
|
|
echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
|
|
if test "${ac_cv_type_signal+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
#include <sys/types.h> |
|
|
#include <signal.h> |
|
|
#ifdef signal |
|
|
# undef signal |
|
|
#endif |
|
|
#ifdef __cplusplus |
|
|
extern "C" void (*signal (int, void (*)(int)))(int); |
|
|
#else |
|
|
void (*signal ()) (); |
|
|
#endif |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
int i; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_type_signal=void |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_type_signal=int |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6 |
|
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define RETSIGTYPE $ac_cv_type_signal |
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
|
|
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
|
|
if test "${ac_cv_search_gethostbyname+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
ac_cv_search_gethostbyname=no |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char gethostbyname (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
gethostbyname (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_search_gethostbyname="none required" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
if test "$ac_cv_search_gethostbyname" = no; then |
|
|
for ac_lib in nsl bsd; do |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char gethostbyname (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
gethostbyname (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_search_gethostbyname="-l$ac_lib" |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
done |
|
|
fi |
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
|
|
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
|
|
if test "$ac_cv_search_gethostbyname" != no; then |
|
|
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
|
|
|
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: gethostbyname not found" >&5 |
|
|
echo "$as_me: error: gethostbyname not found" >&2;} |
|
1619 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1620 |
fi |
fi |
1621 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
1622 |
|
echo "${ECHO_T}yes" >&6 |
1623 |
|
|
1624 |
|
echo "$as_me:$LINENO: checking whether MySQL Ruby Module is available" >&5 |
1625 |
echo "$as_me:$LINENO: checking for library containing connect" >&5 |
echo $ECHO_N "checking whether MySQL Ruby Module is available... $ECHO_C" >&6 |
1626 |
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6 |
if $RUBY -rmysql -e exit >/dev/null 2>&1; then |
|
if test "${ac_cv_search_connect+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
ac_cv_search_connect=no |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char connect (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
connect (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_search_connect="none required" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
if test "$ac_cv_search_connect" = no; then |
|
|
for ac_lib in socket; do |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char connect (); |
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
connect (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_search_connect="-l$ac_lib" |
|
|
break |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
done |
|
|
fi |
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5 |
|
|
echo "${ECHO_T}$ac_cv_search_connect" >&6 |
|
|
if test "$ac_cv_search_connect" != no; then |
|
|
test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" |
|
|
|
|
|
else |
|
|
{ { echo "$as_me:$LINENO: error: connect not found" >&5 |
|
|
echo "$as_me: error: connect not found" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi |
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for alarm" >&5 |
|
|
echo $ECHO_N "checking for alarm... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_alarm+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char alarm (); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char alarm (); |
|
|
char (*f) (); |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_alarm) || defined (__stub___alarm) |
|
|
choke me |
|
|
#else |
|
|
f = alarm; |
|
|
#endif |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_alarm=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_func_alarm=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_alarm" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_alarm" >&6 |
|
|
if test $ac_cv_func_alarm = yes; then |
|
1627 |
: |
: |
1628 |
else |
else |
1629 |
{ { echo "$as_me:$LINENO: error: alarm not found" >&5 |
{ { echo "$as_me:$LINENO: error: MySQL Ruby Module not found" >&5 |
1630 |
echo "$as_me: error: alarm not found" >&2;} |
echo "$as_me: error: MySQL Ruby Module not found" >&2;} |
1631 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1632 |
fi |
fi |
1633 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
1634 |
|
echo "${ECHO_T}yes" >&6 |
1635 |
|
|
1636 |
|
ac_config_files="$ac_config_files Makefile src/Makefile src/bugcomm src/bugcomm.cgi src/bugcommd" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_func in memcpy memset strchr strstr strerror stpcpy |
|
|
do |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func (); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func (); |
|
|
char (*f) (); |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
f = $ac_func; |
|
|
#endif |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
eval "$as_ac_var=yes" |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
eval "$as_ac_var=no" |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
cat >>confdefs.h <<_ACEOF |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
_ACEOF |
|
|
|
|
|
else |
|
|
LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
|
|
fi |
|
|
done |
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
ac_config_files="$ac_config_files Makefile clients/Makefile clients/lib/Makefile clients/bugcomm/Makefile clients/include/Makefile clients/cgi/Makefile server/Makefile server/bts/Makefile" |
|
1637 |
|
|
1638 |
cat >confcache <<\_ACEOF |
cat >confcache <<\_ACEOF |
1639 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
1709 |
}' |
}' |
1710 |
fi |
fi |
1711 |
|
|
1712 |
DEFS=-DHAVE_CONFIG_H |
# Transform confdefs.h into DEFS. |
1713 |
|
# Protect against shell expansion while executing Makefile rules. |
1714 |
|
# Protect against Makefile macro expansion. |
1715 |
|
# |
1716 |
|
# If the first sed substitution is executed (which looks for macros that |
1717 |
|
# take arguments), then we branch to the quote section. Otherwise, |
1718 |
|
# look for a macro that doesn't take arguments. |
1719 |
|
cat >confdef2opt.sed <<\_ACEOF |
1720 |
|
t clear |
1721 |
|
: clear |
1722 |
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
1723 |
|
t quote |
1724 |
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
1725 |
|
t quote |
1726 |
|
d |
1727 |
|
: quote |
1728 |
|
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
1729 |
|
s,\[,\\&,g |
1730 |
|
s,\],\\&,g |
1731 |
|
s,\$,$$,g |
1732 |
|
p |
1733 |
|
_ACEOF |
1734 |
|
# We use echo to avoid assuming a particular line-breaking character. |
1735 |
|
# The extra dot is to prevent the shell from consuming trailing |
1736 |
|
# line-breaks from the sub-command output. A line-break within |
1737 |
|
# single-quotes doesn't work because, if this script is created in a |
1738 |
|
# platform that uses two characters for line-breaks (e.g., DOS), tr |
1739 |
|
# would break. |
1740 |
|
ac_LF_and_DOT=`echo; echo .` |
1741 |
|
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
1742 |
|
rm -f confdef2opt.sed |
1743 |
|
|
1744 |
|
|
1745 |
|
|
1746 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
1991 |
} >&5 |
} >&5 |
1992 |
cat >&5 <<_CSEOF |
cat >&5 <<_CSEOF |
1993 |
|
|
1994 |
This file was extended by BugCommunicator $as_me 0.1, which was |
This file was extended by BugCommunicator $as_me 0.2, which was |
1995 |
generated by GNU Autoconf 2.53. Invocation command line was |
generated by GNU Autoconf 2.53. Invocation command line was |
1996 |
|
|
1997 |
CONFIG_FILES = $CONFIG_FILES |
CONFIG_FILES = $CONFIG_FILES |
2036 |
--recheck update $as_me by reconfiguring in the same conditions |
--recheck update $as_me by reconfiguring in the same conditions |
2037 |
--file=FILE[:TEMPLATE] |
--file=FILE[:TEMPLATE] |
2038 |
instantiate the configuration file FILE |
instantiate the configuration file FILE |
|
--header=FILE[:TEMPLATE] |
|
|
instantiate the configuration header FILE |
|
2039 |
|
|
2040 |
Configuration files: |
Configuration files: |
2041 |
$config_files |
$config_files |
2042 |
|
|
|
Configuration headers: |
|
|
$config_headers |
|
|
|
|
|
Configuration commands: |
|
|
$config_commands |
|
|
|
|
2043 |
Report bugs to <bug-autoconf@gnu.org>." |
Report bugs to <bug-autoconf@gnu.org>." |
2044 |
_ACEOF |
_ACEOF |
2045 |
|
|
2046 |
cat >>$CONFIG_STATUS <<_ACEOF |
cat >>$CONFIG_STATUS <<_ACEOF |
2047 |
ac_cs_version="\\ |
ac_cs_version="\\ |
2048 |
BugCommunicator config.status 0.1 |
BugCommunicator config.status 0.2 |
2049 |
configured by $0, generated by GNU Autoconf 2.53, |
configured by $0, generated by GNU Autoconf 2.53, |
2050 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
2051 |
|
|
2123 |
|
|
2124 |
_ACEOF |
_ACEOF |
2125 |
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF |
|
|
# |
|
|
# INIT-COMMANDS section. |
|
|
# |
|
2126 |
|
|
|
AMDEP_TRUE="$AMDEP_TRUE" |
|
|
ac_aux_dir="$ac_aux_dir" |
|
|
|
|
|
_ACEOF |
|
2127 |
|
|
2128 |
|
|
2129 |
|
|
2132 |
do |
do |
2133 |
case "$ac_config_target" in |
case "$ac_config_target" in |
2134 |
# Handling of arguments. |
# Handling of arguments. |
|
"server/bugcommd" ) CONFIG_FILES="$CONFIG_FILES server/bugcommd" ;; |
|
2135 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
2136 |
"clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;; |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
2137 |
"clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;; |
"src/bugcomm" ) CONFIG_FILES="$CONFIG_FILES src/bugcomm" ;; |
2138 |
"clients/bugcomm/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/bugcomm/Makefile" ;; |
"src/bugcomm.cgi" ) CONFIG_FILES="$CONFIG_FILES src/bugcomm.cgi" ;; |
2139 |
"clients/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/include/Makefile" ;; |
"src/bugcommd" ) CONFIG_FILES="$CONFIG_FILES src/bugcommd" ;; |
|
"clients/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/cgi/Makefile" ;; |
|
|
"server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
|
|
"server/bts/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/bts/Makefile" ;; |
|
|
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
|
|
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
2140 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
2141 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
2142 |
{ (exit 1); exit 1; }; };; |
{ (exit 1); exit 1; }; };; |
2149 |
# bizarre bug on SunOS 4.1.3. |
# bizarre bug on SunOS 4.1.3. |
2150 |
if $ac_need_defaults; then |
if $ac_need_defaults; then |
2151 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
2152 |
fi |
fi |
2153 |
|
|
2154 |
# Create a temporary directory, and hook for its removal unless debugging. |
# Create a temporary directory, and hook for its removal unless debugging. |
2242 |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
2243 |
s,@MAINT@,$MAINT,;t t |
s,@MAINT@,$MAINT,;t t |
2244 |
s,@CGIDIR@,$CGIDIR,;t t |
s,@CGIDIR@,$CGIDIR,;t t |
2245 |
s,@DEFAULT_CONFIG_FILE@,$DEFAULT_CONFIG_FILE,;t t |
s,@BUGCOMM_CONFIG_FILE@,$BUGCOMM_CONFIG_FILE,;t t |
2246 |
|
s,@BUGCOMMD_CONFIG_FILE@,$BUGCOMMD_CONFIG_FILE,;t t |
2247 |
s,@RUBY@,$RUBY,;t t |
s,@RUBY@,$RUBY,;t t |
|
s,@RUBYDIR@,$RUBYDIR,;t t |
|
|
s,@CC@,$CC,;t t |
|
|
s,@CFLAGS@,$CFLAGS,;t t |
|
|
s,@LDFLAGS@,$LDFLAGS,;t t |
|
|
s,@CPPFLAGS@,$CPPFLAGS,;t t |
|
|
s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
|
s,@am__include@,$am__include,;t t |
|
|
s,@am__quote@,$am__quote,;t t |
|
|
s,@CCDEPMODE@,$CCDEPMODE,;t t |
|
|
s,@RANLIB@,$RANLIB,;t t |
|
|
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
s,@CPP@,$CPP,;t t |
|
|
s,@LIBOBJS@,$LIBOBJS,;t t |
|
|
s,@BUGCOMM_SUBDIRS@,$BUGCOMM_SUBDIRS,;t t |
|
2248 |
CEOF |
CEOF |
2249 |
|
|
2250 |
_ACEOF |
_ACEOF |
2445 |
|
|
2446 |
# Run the commands associated with the file. |
# Run the commands associated with the file. |
2447 |
case $ac_file in |
case $ac_file in |
2448 |
server/bugcommd ) chmod +x server/bugcommd ;; |
Makefile ) chmod +x src/bugcomm src/bugcomm.cgi src/bugcommd ;; |
2449 |
esac |
src/Makefile ) chmod +x src/bugcomm src/bugcomm.cgi src/bugcommd ;; |
2450 |
done |
src/bugcomm ) chmod +x src/bugcomm src/bugcomm.cgi src/bugcommd ;; |
2451 |
_ACEOF |
src/bugcomm.cgi ) chmod +x src/bugcomm src/bugcomm.cgi src/bugcommd ;; |
2452 |
cat >>$CONFIG_STATUS <<\_ACEOF |
src/bugcommd ) chmod +x src/bugcomm src/bugcomm.cgi src/bugcommd ;; |
|
|
|
|
# |
|
|
# CONFIG_HEADER section. |
|
|
# |
|
|
|
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
|
|
# |
|
|
# ac_d sets the value in "#define NAME VALUE" lines. |
|
|
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
|
ac_dB='[ ].*$,\1#\2' |
|
|
ac_dC=' ' |
|
|
ac_dD=',;t' |
|
|
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
|
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
|
ac_uB='$,\1#\2define\3' |
|
|
ac_uC=' ' |
|
|
ac_uD=',;t' |
|
|
|
|
|
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
|
case $ac_file in |
|
|
- | *:- | *:-:* ) # input from stdin |
|
|
cat >$tmp/stdin |
|
|
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
|
|
* ) ac_file_in=$ac_file.in ;; |
|
|
esac |
|
|
|
|
|
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
echo "$as_me: creating $ac_file" >&6;} |
|
|
|
|
|
# First look for the input files in the build tree, otherwise in the |
|
|
# src tree. |
|
|
ac_file_inputs=`IFS=: |
|
|
for f in $ac_file_in; do |
|
|
case $f in |
|
|
-) echo $tmp/stdin ;; |
|
|
[\\/$]*) |
|
|
# Absolute (can't be DOS-style, as IFS=:) |
|
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
echo $f;; |
|
|
*) # Relative |
|
|
if test -f "$f"; then |
|
|
# Build tree |
|
|
echo $f |
|
|
elif test -f "$srcdir/$f"; then |
|
|
# Source tree |
|
|
echo $srcdir/$f |
|
|
else |
|
|
# /dev/null tree |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
fi;; |
|
|
esac |
|
|
done` || { (exit 1); exit 1; } |
|
|
# Remove the trailing spaces. |
|
|
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
|
|
|
|
|
_ACEOF |
|
|
|
|
|
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
|
|
# `conftest.undefs', that substitutes the proper values into |
|
|
# config.h.in to produce config.h. The first handles `#define' |
|
|
# templates, and the second `#undef' templates. |
|
|
# And first: Protect against being on the right side of a sed subst in |
|
|
# config.status. Protect against being in an unquoted here document |
|
|
# in config.status. |
|
|
rm -f conftest.defines conftest.undefs |
|
|
# Using a here document instead of a string reduces the quoting nightmare. |
|
|
# Putting comments in sed scripts is not portable. |
|
|
# |
|
|
# `end' is used to avoid that the second main sed command (meant for |
|
|
# 0-ary CPP macros) applies to n-ary macro definitions. |
|
|
# See the Autoconf documentation for `clear'. |
|
|
cat >confdef2sed.sed <<\_ACEOF |
|
|
s/[\\&,]/\\&/g |
|
|
s,[\\$`],\\&,g |
|
|
t clear |
|
|
: clear |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
|
|
t end |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
|
|
: end |
|
|
_ACEOF |
|
|
# If some macros were called several times there might be several times |
|
|
# the same #defines, which is useless. Nevertheless, we may not want to |
|
|
# sort them, since we want the *last* AC-DEFINE to be honored. |
|
|
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
|
|
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
|
|
rm -f confdef2sed.sed |
|
|
|
|
|
# This sed command replaces #undef with comments. This is necessary, for |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
|
|
# on some systems where configure will not decide to define it. |
|
|
cat >>conftest.undefs <<\_ACEOF |
|
|
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
|
|
_ACEOF |
|
|
|
|
|
# Break up conftest.defines because some shells have a limit on the size |
|
|
# of here documents, and old seds have small limits too (100 cmds). |
|
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
|
|
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
|
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
|
|
echo ' :' >>$CONFIG_STATUS |
|
|
rm -f conftest.tail |
|
|
while grep . conftest.defines >/dev/null |
|
|
do |
|
|
# Write a limited-size here document to $tmp/defines.sed. |
|
|
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
|
|
# Speed up: don't consider the non `#define' lines. |
|
|
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
|
|
# Work around the forget-to-reset-the-flag bug. |
|
|
echo 't clr' >>$CONFIG_STATUS |
|
|
echo ': clr' >>$CONFIG_STATUS |
|
|
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
|
|
echo 'CEOF |
|
|
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
|
|
rm -f $tmp/in |
|
|
mv $tmp/out $tmp/in |
|
|
' >>$CONFIG_STATUS |
|
|
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
|
|
rm -f conftest.defines |
|
|
mv conftest.tail conftest.defines |
|
|
done |
|
|
rm -f conftest.defines |
|
|
echo ' fi # egrep' >>$CONFIG_STATUS |
|
|
echo >>$CONFIG_STATUS |
|
|
|
|
|
# Break up conftest.undefs because some shells have a limit on the size |
|
|
# of here documents, and old seds have small limits too (100 cmds). |
|
|
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
|
|
rm -f conftest.tail |
|
|
while grep . conftest.undefs >/dev/null |
|
|
do |
|
|
# Write a limited-size here document to $tmp/undefs.sed. |
|
|
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
|
|
# Speed up: don't consider the non `#undef' |
|
|
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
|
|
# Work around the forget-to-reset-the-flag bug. |
|
|
echo 't clr' >>$CONFIG_STATUS |
|
|
echo ': clr' >>$CONFIG_STATUS |
|
|
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
|
|
echo 'CEOF |
|
|
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
|
|
rm -f $tmp/in |
|
|
mv $tmp/out $tmp/in |
|
|
' >>$CONFIG_STATUS |
|
|
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
|
|
rm -f conftest.undefs |
|
|
mv conftest.tail conftest.undefs |
|
|
done |
|
|
rm -f conftest.undefs |
|
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
# use $as_me), people would be surprised to read: |
|
|
# /* config.h. Generated by config.status. */ |
|
|
if test x"$ac_file" = x-; then |
|
|
echo "/* Generated by configure. */" >$tmp/config.h |
|
|
else |
|
|
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
|
|
fi |
|
|
cat $tmp/in >>$tmp/config.h |
|
|
rm -f $tmp/in |
|
|
if test x"$ac_file" != x-; then |
|
|
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
|
echo "$as_me: $ac_file is unchanged" >&6;} |
|
|
else |
|
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
X"$ac_file" : 'X\(//\)$' \| \ |
|
|
X"$ac_file" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$ac_file" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
{ case "$ac_dir" in |
|
|
[\\/]* | ?:[\\/]* ) as_incr_dir=;; |
|
|
*) as_incr_dir=.;; |
|
|
esac |
|
|
as_dummy="$ac_dir" |
|
|
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
|
|
case $as_mkdir_dir in |
|
|
# Skip DOS drivespec |
|
|
?:) as_incr_dir=$as_mkdir_dir ;; |
|
|
*) |
|
|
as_incr_dir=$as_incr_dir/$as_mkdir_dir |
|
|
test -d "$as_incr_dir" || |
|
|
mkdir "$as_incr_dir" || |
|
|
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
|
|
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
|
|
{ (exit 1); exit 1; }; } |
|
|
;; |
|
|
esac |
|
|
done; } |
|
|
|
|
|
rm -f $ac_file |
|
|
mv $tmp/config.h $ac_file |
|
|
fi |
|
|
else |
|
|
cat $tmp/config.h |
|
|
rm -f $tmp/config.h |
|
|
fi |
|
|
# Run the commands associated with the file. |
|
|
case $ac_file in |
|
|
config.h ) # update the timestamp |
|
|
echo timestamp >"./stamp-h1" |
|
|
;; |
|
|
esac |
|
|
done |
|
|
_ACEOF |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
|
|
|
# |
|
|
# CONFIG_COMMANDS section. |
|
|
# |
|
|
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
|
|
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
|
|
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
|
|
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
|
|
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
|
|
X"$ac_dest" : 'X\(//\)$' \| \ |
|
|
X"$ac_dest" : 'X\(/\)' \| \ |
|
|
. : '\(.\)' 2>/dev/null || |
|
|
echo X"$ac_dest" | |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
/^X\(\/\/\)$/{ s//\1/; q; } |
|
|
/^X\(\/\).*/{ s//\1/; q; } |
|
|
s/.*/./; q'` |
|
|
ac_builddir=. |
|
|
|
|
|
if test "$ac_dir" != .; then |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
|
# A "../" for each directory in $ac_dir_suffix. |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|
|
else |
|
|
ac_dir_suffix= ac_top_builddir= |
|
|
fi |
|
|
|
|
|
case $srcdir in |
|
|
.) # No --srcdir option. We are building in place. |
|
|
ac_srcdir=. |
|
|
if test -z "$ac_top_builddir"; then |
|
|
ac_top_srcdir=. |
|
|
else |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|
|
fi ;; |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
|
|
ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
ac_top_srcdir=$srcdir ;; |
|
|
*) # Relative path. |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|
|
esac |
|
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
|
|
# absolute. |
|
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
|
|
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
|
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
|
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
|
|
echo "$as_me: executing $ac_dest commands" >&6;} |
|
|
case $ac_dest in |
|
|
default-1 ) |
|
|
test x"$AMDEP_TRUE" != x"" || |
|
|
for mf in $CONFIG_FILES; do |
|
|
case "$mf" in |
|
|
Makefile) dirpart=.;; |
|
|
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; |
|
|
*) continue;; |
|
|
esac |
|
|
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
|
|
# Extract the definition of DEP_FILES from the Makefile without |
|
|
# running `make'. |
|
|
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
|
|
test -z "$DEPDIR" && continue |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it |
|
|
U=`sed -n -e '/^U = / s///p' < "$mf"` |
|
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
|
|
# We invoke sed twice because it is the simplest approach to |
|
|
# changing $(DEPDIR) to its actual value in the expansion. |
|
|
for file in `sed -n -e ' |
|
|
/^DEP_FILES = .*\\\\$/ { |
|
|
s/^DEP_FILES = // |
|
|
:loop |
|
|
s/\\\\$// |
|
|
p |
|
|
n |
|
|
/\\\\$/ b loop |
|
|
p |
|
|
} |
|
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
|
# Make sure the directory exists. |
|
|
test -f "$dirpart/$file" && continue |
|
|
fdir=`echo "$file" | sed -e 's|/[^/]*$||'` |
|
|
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 |
|
|
# echo "creating $dirpart/$file" |
|
|
echo '# dummy' > "$dirpart/$file" |
|
|
done |
|
|
done |
|
|
;; |
|
2453 |
esac |
esac |
2454 |
done |
done |
2455 |
_ACEOF |
_ACEOF |