Mercurial > repo
view interps/c-intercal/buildaux/buildconfig.ac @ 12518:2d8fe55c6e65 draft default tip
<int-e> learn The password of the month is release incident pilot.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 03 Nov 2024 00:31:02 +0000 |
parents | 859f9b4339e6 |
children |
line wrap: on
line source
dnl -*- autoconf -*- dnl Process this file with autoconf to produce a configure script. dnl Yes, that is a valid email address. If your mailer doesn't support nested dnl comments, then get a better mailer. AC_INIT([C-INTERCAL],[0.29],[[ais523(524\)x\((525)y)@bham.ac.uk]],[ick]) AC_CONFIG_SRCDIR([../src/oil.h]) AC_CONFIG_HEADER([bconfig.h:../src/bconfigh.in]) AC_CONFIG_AUX_DIR([.]) dnl Checks for programs. AC_PROG_YACC AC_PROG_CC AM_PROG_LEX AC_PROG_RANLIB AC_PROG_LN_S dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([sys/time.h unistd.h stdarg.h]) AC_CHECK_HEADERS([stdint.h],[HAVE_STDINT_H=1]) AC_SUBST(HAVE_STDINT_H) dnl Checks for typedefs, structures, and compiler characteristics. dnl This Autoconf input is compatible with pre-C99 Autoconf, so to dnl check for long long AC_CHECK_SIZEOF is used to test for a nonzero result, dnl likewise for _Bool. AC_C_CONST AC_C_VOLATILE AC_CHECK_SIZEOF([long long int],[0]) AC_CHECK_SIZEOF([_Bool],[0]) AC_HEADER_TIME AC_EXEEXT AC_OBJEXT AC_SYS_INTERPRETER AC_TYPE_SIGNAL AC_TYPE_SIZE_T AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_MSG_CHECKING([[whether yyrestart() is needed]]) # Write a lex program that will cause an error if yyrestart exists. echo '%% %% float yyrestart(int, ...);' | $LEX AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "${LEX_OUTPUT_ROOT}.c" ]], [[exit(0);]])],[AC_MSG_RESULT(no)],[AC_DEFINE([NEED_YYRESTART],dnl [],[Define if yyrestart() is necessary to yyparse a new file.]) AC_MSG_RESULT(yes)]) rm -f ${LEX_OUTPUT_ROOT}.c dnl Checks for library functions. AC_CHECK_FUNCS(gettimeofday gethrtime strdup strtol strtoul snprintf) if test "$interpval" != "no"; then AC_DEFINE([HAVE_SYS_INTERPRETER], [], [Define if #! works on your system.]) fi AC_DEFINE_UNQUOTED([EXEEXT],"$EXEEXT",[Extension to use on executable files.]) AC_CONFIG_FILES([host.mak:hostmak.in]) AC_OUTPUT