Commit 6b4abadb authored by panne's avatar panne

[project @ 2003-08-19 14:22:14 by panne]

Death to the acconfig.h hack!
parent da8f39a9
......@@ -350,7 +350,7 @@ SRC_DIST_DIR=$(shell pwd)/$(SRC_DIST_NAME)
SRC_DIST_DIRS += docs distrib $(SUBDIRS)
SRC_DIST_FILES += \
configure.ac config.guess config.sub configure \
aclocal.m4 acconfig.h README Makefile Makefile.config install-sh \
aclocal.m4 README Makefile Makefile.config install-sh \
mk/bootstrap.mk \
mk/boilerplate.mk mk/config.h.in mk/config.mk.in mk/opts.mk \
mk/paths.mk mk/package.mk mk/suffix.mk mk/target.mk
......
/* acconfig.h
Descriptive text for the C preprocessor macros that
the fptools configuration script can define.
The current version may not use all of them; autoheader copies the ones
your configure.ac uses into your configuration header file templates.
The entries are in sort -df order: alphabetical, case insensitive,
ignoring punctuation (such as underscores). Although this order
can split up related entries, it makes it easier to check whether
a given entry is in the file.
Leave the following blank line there!! Autoheader needs it. */
@TOP@
/* Define to alignment constraint on chars */
#undef ALIGNMENT_CHAR
/* Define to alignment constraint on doubles */
#undef ALIGNMENT_DOUBLE
/* Define to alignment constraint on floats */
#undef ALIGNMENT_FLOAT
/* Define to alignment constraint on ints */
#undef ALIGNMENT_INT
/* Define to alignment constraint on longs */
#undef ALIGNMENT_LONG
/* Define to alignment constraint on long longs */
#undef ALIGNMENT_LONG_LONG
/* Define to alignment constraint on shorts */
#undef ALIGNMENT_SHORT
/* Define to alignment constraint on unsigned chars */
#undef ALIGNMENT_UNSIGNED_CHAR
/* Define to alignment constraint on unsigned ints */
#undef ALIGNMENT_UNSIGNED_INT
/* Define to alignment constraint on unsigned longs */
#undef ALIGNMENT_UNSIGNED_LONG
/* Define to alignment constraint on unsigned long longs */
#undef ALIGNMENT_UNSIGNED_LONG_LONG
/* Define to alignment constraint on unsigned shorts */
#undef ALIGNMENT_UNSIGNED_SHORT
/* Define to alignment constraint on void pointers */
#undef ALIGNMENT_VOID_P
/* The value of E2BIG. */
#undef CCONST_E2BIG
/* The value of EACCES. */
#undef CCONST_EACCES
/* The value of EADDRINUSE. */
#undef CCONST_EADDRINUSE
/* The value of EADDRNOTAVAIL. */
#undef CCONST_EADDRNOTAVAIL
/* The value of EADV. */
#undef CCONST_EADV
/* The value of EAFNOSUPPORT. */
#undef CCONST_EAFNOSUPPORT
/* The value of EAGAIN. */
#undef CCONST_EAGAIN
/* The value of EALREADY. */
#undef CCONST_EALREADY
/* The value of EBADF. */
#undef CCONST_EBADF
/* The value of EBADMSG. */
#undef CCONST_EBADMSG
/* The value of EBADRPC. */
#undef CCONST_EBADRPC
/* The value of EBUSY. */
#undef CCONST_EBUSY
/* The value of ECHILD. */
#undef CCONST_ECHILD
/* The value of ECOMM. */
#undef CCONST_ECOMM
/* The value of ECONNABORTED. */
#undef CCONST_ECONNABORTED
/* The value of ECONNREFUSED. */
#undef CCONST_ECONNREFUSED
/* The value of ECONNRESET. */
#undef CCONST_ECONNRESET
/* The value of EDEADLK. */
#undef CCONST_EDEADLK
/* The value of EDESTADDRREQ. */
#undef CCONST_EDESTADDRREQ
/* The value of EDIRTY. */
#undef CCONST_EDIRTY
/* The value of EDOM. */
#undef CCONST_EDOM
/* The value of EDQUOT. */
#undef CCONST_EDQUOT
/* The value of EEXIST. */
#undef CCONST_EEXIST
/* The value of EFAULT. */
#undef CCONST_EFAULT
/* The value of EFBIG. */
#undef CCONST_EFBIG
/* The value of EFTYPE. */
#undef CCONST_EFTYPE
/* The value of EHOSTDOWN. */
#undef CCONST_EHOSTDOWN
/* The value of EHOSTUNREACH. */
#undef CCONST_EHOSTUNREACH
/* The value of EIDRM. */
#undef CCONST_EIDRM
/* The value of EILSEQ. */
#undef CCONST_EILSEQ
/* The value of EINPROGRESS. */
#undef CCONST_EINPROGRESS
/* The value of EINTR. */
#undef CCONST_EINTR
/* The value of EINVAL. */
#undef CCONST_EINVAL
/* The value of EIO. */
#undef CCONST_EIO
/* The value of EISCONN. */
#undef CCONST_EISCONN
/* The value of EISDIR. */
#undef CCONST_EISDIR
/* The value of ELOOP. */
#undef CCONST_ELOOP
/* The value of EMFILE. */
#undef CCONST_EMFILE
/* The value of EMLINK. */
#undef CCONST_EMLINK
/* The value of EMSGSIZE. */
#undef CCONST_EMSGSIZE
/* The value of EMULTIHOP. */
#undef CCONST_EMULTIHOP
/* The value of ENAMETOOLONG. */
#undef CCONST_ENAMETOOLONG
/* The value of ENETDOWN. */
#undef CCONST_ENETDOWN
/* The value of ENETRESET. */
#undef CCONST_ENETRESET
/* The value of ENETUNREACH. */
#undef CCONST_ENETUNREACH
/* The value of ENFILE. */
#undef CCONST_ENFILE
/* The value of ENOBUFS. */
#undef CCONST_ENOBUFS
/* The value of ENODATA. */
#undef CCONST_ENODATA
/* The value of ENODEV. */
#undef CCONST_ENODEV
/* The value of ENOENT. */
#undef CCONST_ENOENT
/* The value of ENOEXEC. */
#undef CCONST_ENOEXEC
/* The value of ENOLCK. */
#undef CCONST_ENOLCK
/* The value of ENOLINK. */
#undef CCONST_ENOLINK
/* The value of ENOMEM. */
#undef CCONST_ENOMEM
/* The value of ENOMSG. */
#undef CCONST_ENOMSG
/* The value of ENONET. */
#undef CCONST_ENONET
/* The value of ENOPROTOOPT. */
#undef CCONST_ENOPROTOOPT
/* The value of ENOSPC. */
#undef CCONST_ENOSPC
/* The value of ENOSR. */
#undef CCONST_ENOSR
/* The value of ENOSTR. */
#undef CCONST_ENOSTR
/* The value of ENOSYS. */
#undef CCONST_ENOSYS
/* The value of ENOTBLK. */
#undef CCONST_ENOTBLK
/* The value of ENOTCONN. */
#undef CCONST_ENOTCONN
/* The value of ENOTDIR. */
#undef CCONST_ENOTDIR
/* The value of ENOTEMPTY. */
#undef CCONST_ENOTEMPTY
/* The value of ENOTSOCK. */
#undef CCONST_ENOTSOCK
/* The value of ENOTTY. */
#undef CCONST_ENOTTY
/* The value of ENXIO. */
#undef CCONST_ENXIO
/* The value of EOPNOTSUPP. */
#undef CCONST_EOPNOTSUPP
/* The value of EPERM. */
#undef CCONST_EPERM
/* The value of EPFNOSUPPORT. */
#undef CCONST_EPFNOSUPPORT
/* The value of EPIPE. */
#undef CCONST_EPIPE
/* The value of EPROCLIM. */
#undef CCONST_EPROCLIM
/* The value of EPROCUNAVAIL. */
#undef CCONST_EPROCUNAVAIL
/* The value of EPROGMISMATCH. */
#undef CCONST_EPROGMISMATCH
/* The value of EPROGUNAVAIL. */
#undef CCONST_EPROGUNAVAIL
/* The value of EPROTO. */
#undef CCONST_EPROTO
/* The value of EPROTONOSUPPORT. */
#undef CCONST_EPROTONOSUPPORT
/* The value of EPROTOTYPE. */
#undef CCONST_EPROTOTYPE
/* The value of ERANGE. */
#undef CCONST_ERANGE
/* The value of EREMCHG. */
#undef CCONST_EREMCHG
/* The value of EREMOTE. */
#undef CCONST_EREMOTE
/* The value of EROFS. */
#undef CCONST_EROFS
/* The value of ERPCMISMATCH. */
#undef CCONST_ERPCMISMATCH
/* The value of ERREMOTE. */
#undef CCONST_ERREMOTE
/* The value of ESHUTDOWN. */
#undef CCONST_ESHUTDOWN
/* The value of ESOCKTNOSUPPORT. */
#undef CCONST_ESOCKTNOSUPPORT
/* The value of ESPIPE. */
#undef CCONST_ESPIPE
/* The value of ESRCH. */
#undef CCONST_ESRCH
/* The value of ESRMNT. */
#undef CCONST_ESRMNT
/* The value of ESTALE. */
#undef CCONST_ESTALE
/* The value of ETIME. */
#undef CCONST_ETIME
/* The value of ETIMEDOUT. */
#undef CCONST_ETIMEDOUT
/* The value of ETOOMANYREFS. */
#undef CCONST_ETOOMANYREFS
/* The value of ETXTBSY. */
#undef CCONST_ETXTBSY
/* The value of EUSERS. */
#undef CCONST_EUSERS
/* The value of EWOULDBLOCK. */
#undef CCONST_EWOULDBLOCK
/* The value of EXDEV. */
#undef CCONST_EXDEV
/* Define to 1 if you have the declaration of `altzone', and to 0 if you
don't. */
#undef HAVE_DECL_ALTZONE
/* Define if you have /bin/sh */
#undef HAVE_BIN_SH
/* Define if the HaskellSupport.framework is installed (Mac OS X only) */
#undef HAVE_FRAMEWORK_HASKELLSUPPORT
/* Define if gcc supports -mno-omit-leaf-frame-pointer */
#undef HAVE_GCC_MNO_OMIT_LFPTR
/* Define if you have the GetModuleFileName function. */
#undef HAVE_GETMODULEFILENAME
/* Define if in_addr_t is available */
#undef HAVE_IN_ADDR_T
/* Define if you need -ldl to get dlopen() */
#undef HAVE_LIBDL
/* Define if you have the mingwex library. */
#undef HAVE_MINGWEX
/* Define if struct msghdr contains msg_accrights field */
#undef HAVE_MSGHDR_MSG_ACCRIGHTS
/* Define if struct msghdr contains msg_control field */
#undef HAVE_MSGHDR_MSG_CONTROL
/* Define if RTLD_GLOBAL is available */
#undef HAVE_RTLDGLOBAL
/* Define if RTLD_LOCAL is available */
#undef HAVE_RTLDLOCAL
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if we can see RTLD_NOW in dlfcn.h */
#undef HAVE_RTLDNOW
/* Define if usleep returns void */
#undef USLEEP_RETURNS_VOID
/* Define if it looks like a Linux sendfile(2) implementation */
#undef HAVE_LINUX_SENDFILE
/* Define if it looks like a BSDish sendfile(2) implementation */
#undef HAVE_BSD_SENDFILE
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
/* Define if fcntl.h defines O_BINARY */
#undef HAVE_O_BINARY
/* Define if readline/readline.h and readline/history.h exist */
#undef HAVE_READLINE_HEADERS
/* Define if readline plus any additional libs needed for it exist */
#undef HAVE_READLINE_LIBS
/* Define if readline has version >= 4.0. */
#undef HAVE_READLINE_4
/* Define if readline has version >= 4.2. */
#undef HAVE_READLINE_4_2
/* Define if <unistd.h> defines _SC_GETGR_R_SIZE_MAX */
#undef HAVE_SC_GETGR_R_SIZE_MAX
/* Define if <unistd.h> defines _SC_GETPW_R_SIZE_MAX */
#undef HAVE_SC_GETPW_R_SIZE_MAX
/* Define if you have the sigpoll() function */
#undef HAVE_SIGPOLL
/* Define if you support the production (and use) of Win32 DLLs. */
#undef HAVE_WIN32_DLL_SUPPORT
/* Define if you have the WinExec function. */
#undef HAVE_WINEXEC
/* Define to Haskell type for blkcnt_t */
#undef HTYPE_BLKCNT_T
/* Define to Haskell type for cc_t */
#undef HTYPE_CC_T
/* Define to Haskell type for char */
#undef HTYPE_CHAR
/* Define to Haskell type for clock_t */
#undef HTYPE_CLOCK_T
/* Define to Haskell type for dev_t */
#undef HTYPE_DEV_T
/* Define to Haskell type for signed double */
#undef HTYPE_DOUBLE
/* Define to Haskell type for float */
#undef HTYPE_FLOAT
/* Define to Haskell type for gid_t */
#undef HTYPE_GID_T
/* Define to Haskell type for GLbitfield */
#undef HTYPE_GLBITFIELD
/* Define to Haskell type for GLboolean */
#undef HTYPE_GLBOOLEAN
/* Define to Haskell type for GLbyte */
#undef HTYPE_GLBYTE
/* Define to Haskell type for GLclampd */
#undef HTYPE_GLCLAMPD
/* Define to Haskell type for GLclampf */
#undef HTYPE_GLCLAMPF
/* Define to Haskell type for GLdouble */
#undef HTYPE_GLDOUBLE
/* Define to Haskell type for GLenum */
#undef HTYPE_GLENUM
/* Define to Haskell type for GLfloat */
#undef HTYPE_GLFLOAT
/* Define to Haskell type for GLint */
#undef HTYPE_GLINT
/* Define to Haskell type for GLshort */
#undef HTYPE_GLSHORT
/* Define to Haskell type for GLsizei */
#undef HTYPE_GLSIZEI
/* Define to Haskell type for GLubyte */
#undef HTYPE_GLUBYTE
/* Define to Haskell type for GLuint */
#undef HTYPE_GLUINT
/* Define to Haskell type for GLushort */
#undef HTYPE_GLUSHORT
/* Define to Haskell type for int */
#undef HTYPE_INT
/* Define to Haskell type for ino_t */
#undef HTYPE_INO_T
/* Define to Haskell type for long */
#undef HTYPE_LONG
/* Define to Haskell type for long long */
#undef HTYPE_LONG_LONG
/* Define to Haskell type for mode_t */
#undef HTYPE_MODE_T
/* Define to Haskell type for nlink_t */
#undef HTYPE_NLINK_T
/* Define to Haskell type for off_t */
#undef HTYPE_OFF_T
/* Define to Haskell type for pid_t */
#undef HTYPE_PID_T
/* Define to Haskell type for ptrdiff_t */
#undef HTYPE_PTRDIFF_T
/* Define to Haskell type for rlim_t */
#undef HTYPE_RLIM_T
/* Define to Haskell type for short */
#undef HTYPE_SHORT
/* Define to Haskell type for sig_atomic_t */
#undef HTYPE_SIG_ATOMIC_T
/* Define to Haskell type for signed char */
#undef HTYPE_SIGNED_CHAR
/* Define to Haskell type for size_t */
#undef HTYPE_SIZE_T
/* Define to Haskell type for speed_t */
#undef HTYPE_SPEED_T
/* Define to Haskell type for ssize_t */
#undef HTYPE_SSIZE_T
/* Define to Haskell type for time_t */
#undef HTYPE_TIME_T
/* Define to Haskell type for tcflag_t */
#undef HTYPE_TCFLAG_T
/* Define to Haskell type for uid_t */
#undef HTYPE_UID_T
/* Define to Haskell type for unsigned char */
#undef HTYPE_UNSIGNED_CHAR
/* Define to Haskell type for unsigned int */
#undef HTYPE_UNSIGNED_INT
/* Define to Haskell type for unsigned long */
#undef HTYPE_UNSIGNED_LONG
/* Define to Haskell type for unsigned long long */
#undef HTYPE_UNSIGNED_LONG_LONG
/* Define to Haskell type for unsigned short */
#undef HTYPE_UNSIGNED_SHORT
/* Define to Haskell type for wchar_t */
#undef HTYPE_WCHAR_T
/* Define if C Symbols have a leading underscore added by the compiler */
#undef LEADING_UNDERSCORE
/* Define if signal handlers have type void (*)(int)
* (Otherwise, they're assumed to have type int (*)(void).)
*/
#undef VOID_INT_SIGNALS
/* Define if you want to include .NET interop support. */
#undef WANT_DOTNET_SUPPORT
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:
The entries are in sort -df order: alphabetical, case insensitive,
ignoring punctuation (such as underscores). */
/* autoheader doesn't grok AC_CHECK_LIB_NOWARN so we have to add them
manually. */
@BOTTOM@
......@@ -146,7 +146,7 @@ esac);
LeadingUnderscore=`echo $fptools_cv_lead_uscore | sed 'y/yesno/YESNO/'`
AC_SUBST(LeadingUnderscore)
case $LeadingUnderscore in
YES) AC_DEFINE(LEADING_UNDERSCORE);;
YES) AC_DEFINE([LEADING_UNDERSCORE], [1], [Define to 1 if C symbols have a leading underscore added by the compiler.]);;
esac
])
......@@ -450,7 +450,7 @@ AC_DEFUN(FPTOOLS_GCC_NEEDS_NO_OMIT_LFPTR,
fptools_cv_gcc_needs_no_omit_lfptr='yes')
])
if test "$fptools_cv_gcc_needs_no_omit_lfptr" = "yes"; then
AC_DEFINE(HAVE_GCC_MNO_OMIT_LFPTR)
AC_DEFINE([HAVE_GCC_MNO_OMIT_LFPTR], [1], [Define to 1 if gcc supports -mno-omit-leaf-frame-pointer.])
fi
])
......@@ -649,7 +649,7 @@ main() {
ifelse([$2], , AC_CV_NAME=NotReallyAType, AC_CV_NAME=$2),
ifelse([$3], , AC_CV_NAME=NotReallyATypeCross, AC_CV_NAME=$3))]) dnl
AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [Define to Haskell type for $1])
undefine([AC_TYPE_NAME])dnl
undefine([AC_CV_NAME])dnl
])
......@@ -679,15 +679,26 @@ eval "$cv_name=-1",
eval "$cv_name=-1")])dnl
eval "fptools_check_cconst_result=`echo '$'{$cv_name}`"
AC_MSG_RESULT($fptools_check_cconst_result)
AC_DEFINE_UNQUOTED(CCONST_$1, $fptools_check_cconst_result)
AC_DEFINE_UNQUOTED(CCONST_$1, $fptools_check_cconst_result, [The value of $1.])
unset fptools_check_cconst_result
])
# FP_CHECK_CCONSTS_TEMPLATE(CONST...)
# -----------------------------------
m4_define([FP_CHECK_CCONSTS_TEMPLATE],
[AC_FOREACH([FP_Const], [$1],
[AH_TEMPLATE(AS_TR_CPP(CCONST_[]FP_Const),
[The value of ]FP_Const[.])])[]dnl
])# FP_CHECK_CCONSTS_TEMPLATE
dnl ** Invoke AC_CHECK_CCONST on each argument (which have to separate with
dnl spaces)
dnl
AC_DEFUN(FPTOOLS_CHECK_CCONSTS,
[for ac_const_name in $1
[FP_CHECK_CCONSTS_TEMPLATE([$1])dnl
for ac_const_name in $1
do
FPTOOLS_CHECK_CCONST($ac_const_name)dnl
done
......@@ -715,7 +726,7 @@ AC_LANG_RESTORE
])
AC_MSG_RESULT($fptools_cv_have_o_binary)
if test "$fptools_cv_have_o_binary" = yes; then
AC_DEFINE(HAVE_O_BINARY)
AC_DEFINE([HAVE_O_BINARY], [1], [Define to 1 if fcntl.h defines O_BINARY.])
fi
])
......@@ -1103,7 +1114,7 @@ AC_DEFUN(FPTOOLS_MSGHDR_MSG_CONTROL,