mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
1a4b241ed2
unix now has an autoconf based make system. currently the new make system only makes parser related files, back end stuff to be added soon. mac and windows makesystems will be checked in next. parser.cpp has been factored into token.*, lexer.*, and parser.* utilities.cpp has been factored into formatter.*, exception.*, mem.*, strings.*,ds.h, stlcfg.h, and algo.h
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
PACKAGE=JavaScript2
|
|
VERSION=0.1
|
|
AC_INIT(src/parser.h)
|
|
AM_INIT_AUTOMAKE(JavaScript2, 0.1)
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
[ --enable-debug Turn on debugging],
|
|
[case "${enableval}" in
|
|
yes) debug=true ;;
|
|
no) debug=false ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
|
esac],[debug=false])
|
|
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
dnl Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_AWK
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_RANLIB
|
|
dnl AM_PATH_GTK(1.2.0, ,
|
|
dnl AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))
|
|
|
|
dnl Checks for libraries.
|
|
dnl Replace `main' with a function in -ldl:
|
|
dnl AC_CHECK_LIB(dl, main)
|
|
dnl Replace `main' with a function in -lgdk:
|
|
dnl AC_CHECK_LIB(gdk, main)
|
|
dnl Replace `main' with a function in -lglib:
|
|
dnl AC_CHECK_LIB(glib, main)
|
|
dnl Replace `main' with a function in -lgmodule:
|
|
dnl AC_CHECK_LIB(gmodule, main)
|
|
dnl Replace `main' with a function in -lgtk:
|
|
dnl AC_CHECK_LIB(gtk, main)
|
|
dnl Replace `main' with a function in -lm:
|
|
dnl AC_CHECK_LIB(m, main)
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
dnl AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h unistd.h)
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
dnl AC_C_CONST
|
|
dnl AC_C_INLINE
|
|
dnl AC_TYPE_SIZE_T
|
|
|
|
dnl Checks for library functions.
|
|
AC_FUNC_ALLOCA
|
|
AC_FUNC_MMAP
|
|
dnl AC_CHECK_FUNCS(getcwd getwd putenv strdup strerror tcgetattr)
|
|
|
|
AC_OUTPUT(./Makefile src/Makefile tests/Makefile tests/cpp/Makefile tests/js/Makefile)
|