1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
dnl Copyright (C) 1999, 2000 Florian Schintke
dnl
dnl This is free software; you can redistribute it and/or modify it under
dnl the terms of the GNU General Public License as published by the Free
dnl Software Foundation; either version 2, or (at your option) any later
dnl version.
dnl
dnl This is distributed in the hope that it will be useful, but WITHOUT
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received a copy of the GNU General Public License with
dnl the java2html source package as the
dnl file COPYING. If not, write to the Free Software Foundation, Inc.,
dnl 59 Temple Place - Suite 330, Boston, MA
dnl l02111-1307, USA.
dnl Process this file with autoconf to produce a configure script.
AC_INIT(java2html.l)
AC_CONFIG_HEADER(config.h)
VERSION=0.9.2
AC_SUBST(VERSION)
PROJECT_NAME=java2html
AC_SUBST(PROJECT_NAME)
DOCDIR=\${prefix}/doc/$PROJECT_NAME
AC_ARG_ENABLE(share-usage,
[ --enable-share-usage Use 'share' in directory names for documentation.
Sets the following variables:
mandir = \$(prefix)/share/man
infodir = \$(prefix)/share/info
docdir = \$(prefix)/share/doc/java2html],
mandir=\${prefix}/share/man;
infodir=\${prefix}/share/info;
DOCDIR=\${prefix}/share/doc/$PROJECT_NAME)
AC_ARG_ENABLE(fhs,
[ --enable-fhs Use 'File Hierarchy Standard 2.0'
Sets the following variables:
prefix = /usr
mandir = /usr/share/man
infodir = /usr/share/info
docdir = /usr/share/doc/java2html],
prefix=/usr;
mandir=\${prefix}/share/man;
infodir=\${prefix}/share/info;
DOCDIR=\${prefix}/share/doc/$PROJECT_NAME)
AC_SUBST(DOCDIR)
dnl Checks for programs.
dnl AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LEX
AC_PROG_MAKE_SET
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(getopt.h)
AC_CHECK_HEADERS(malloc.h)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl this sets LEX_OUTPUT_ROOT (flex -> lex.yy)
AC_DECL_YYTEXT
AC_C_CONST
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_FUNC_MMAP
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strstr)
dnl No longer use this function
dnl AC_CHECK_FUNCS(snprintf)
AC_CHECK_FUNCS(getopt)
AC_CHECK_FUNCS(popen)
AC_CHECK_FUNCS(fileno)
dnl This goes into the config.h file
AC_DEFINE_UNQUOTED(VERSION,"$VERSION")
AC_DEFINE_UNQUOTED(PROJECT_NAME,"$PROJECT_NAME")
dnl This is the main outputfile
AC_OUTPUT(Makefile)
|