Ignore:
Timestamp:
Jun 16, 2003, 9:40:44 PM (17 years ago)
Author:
ssen
Message:

Massive update to autoconf script:
1) generate src/pextlib1.0/config.h with header/function defines
2) Use new macros in aclocal.m4
3) Do lots of function checks (thanks to autoscan for most of the work)
4) Generate doc/prefix.mtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure.ac

    r2620 r2805  
    11dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(src/pextlib1.0/Pextlib.c)
    3 AC_PREFIX_DEFAULT(/opt/local)
     2AC_PREREQ(2.52)
     3AC_INIT([OpenDarwin DarwinPorts], [1.0], [darwinports@opendarwin.org], [darwinports])
     4AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
     5AC_CONFIG_HEADERS([src/pextlib1.0/config.h])
     6AC_CANONICAL_SYSTEM
    47
    58# Checks for programs.
    69AC_PROG_CC
    710AC_PROG_INSTALL
     11AC_PROG_MAKE_SET
     12
     13OD_PROG_MD5
     14
     15# Check for paths
     16AC_PREFIX_DEFAULT(/opt/local)
     17OD_PATH_DPORTSDIR([/usr/dports])
     18OD_PATH_PORTCONFIGDIR([/etc/ports], [$prefix])
     19
     20# Check for install ownership
     21OD_CHECK_INSTALLUSER
     22OD_CHECK_INSTALLGROUP
    823
    924# Check for standard header files.
    1025AC_HEADER_STDC
     26AC_HEADER_DIRENT
     27AC_HEADER_SYS_WAIT
     28AC_HEADER_STAT
     29AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h])
     30
     31INCLUDES="-I. $INCLUDES"
     32
     33# Checks for library functions.
     34AC_FUNC_CLOSEDIR_VOID
     35AC_FUNC_FORK
     36AC_FUNC_MALLOC
     37AC_FUNC_REALLOC
     38AC_FUNC_STRERROR_R
     39AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol])
     40
    1141
    1242# Check for Tcl public headers
     
    3565SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
    3666
     67AC_SUBST(INCLUDES)
    3768AC_SUBST(CFLAGS_DEBUG)
    3869AC_SUBST(CFLAGS_OPTIMIZE)
     
    4980
    5081# Output
    51 AC_OUTPUT(Makefile Mk/dports.autoconf.mk)
     82
     83AC_CONFIG_FILES([Makefile Mk/dports.autoconf.mk doc/prefix.mtree])
     84AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.