source: trunk/base/configure.ac @ 2941

Last change on this file since 2941 was 2941, checked in by ssen, 16 years ago

Merge from ssen-platform-1

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
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
7
8# Checks for programs.
9AC_PROG_CC
10AC_PROG_INSTALL
11AC_PROG_MAKE_SET
12
13OD_PROG_MD5
14OD_PROG_MTREE
15
16AC_SUBST(REPLACEMENT_PROGS)
17
18# Check for paths
19AC_PREFIX_DEFAULT(/opt/local)
20OD_PATH_DPORTSDIR([/usr/dports])
21OD_PATH_PORTCONFIGDIR([/etc/ports], [$prefix])
22
23# Check for install ownership
24OD_CHECK_INSTALLUSER
25OD_CHECK_INSTALLGROUP
26
27# Check for standard header files.
28AC_HEADER_STDC
29AC_HEADER_DIRENT
30AC_HEADER_SYS_WAIT
31AC_HEADER_STAT
32AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h])
33
34INCLUDES="-I. $INCLUDES"
35
36# Checks for library functions.
37AC_FUNC_CLOSEDIR_VOID
38AC_FUNC_FORK
39AC_FUNC_STRERROR_R
40AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock])
41
42
43# Check for Tcl public headers
44dnl XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)
45CYGPATH=echo
46SC_PUBLIC_TCL_HEADERS
47
48# Load tclConfig.sh
49SC_PATH_TCLCONFIG
50SC_LOAD_TCLCONFIG
51
52# Check for Tcl package path
53OD_TCL_PACKAGE_DIR
54
55# Allows building of shared libraries
56SC_ENABLE_SHARED
57
58# Pull compiler / linker values from tclConfig.sh
59CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
60CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
61LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
62LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
63SHLIB_LD=${TCL_SHLIB_LD}
64STLIB_LD=${TCL_STLIB_LD}
65SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
66SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
67
68AC_SUBST(INCLUDES)
69AC_SUBST(CFLAGS_DEBUG)
70AC_SUBST(CFLAGS_OPTIMIZE)
71AC_SUBST(TCL_DEFS)
72AC_SUBST(STLIB_LD)
73AC_SUBST(SHLIB_LD)
74AC_SUBST(SHLIB_CFLAGS)
75AC_SUBST(SHLIB_LDFLAGS)
76AC_SUBST(SHLIB_SUFFIX)
77AC_SUBST(TCL_STUB_LIB_SPEC)
78
79#misc variables that need to be expanded for substitution into tcl
80
81oldprefix=$prefix
82if test "x$prefix" = "xNONE" ; then
83   prefix=$ac_default_prefix
84fi
85
86eval "prefix_expanded=$prefix"
87AC_SUBST(prefix_expanded)
88# do this twice, since there is a nested variable of
89# ${prefix} inside of ${sysconfdir}
90eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
91eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
92AC_SUBST(PORTCONFIGDIR_EXPANDED)
93eval "localstatedir_expanded=$localstatedir"
94AC_SUBST(localstatedir_expanded)
95
96prefix=$oldprefix
97
98dnl man page settings (compressed, links, etc)
99dnl
100dnl SC_CONFIG_MANPAGES
101
102# Output
103
104AC_CONFIG_FILES([Makefile Mk/dports.autoconf.mk doc/prefix.mtree
105                doc/ports.conf src/darwinports1.0/darwinports_autoconf.tcl
106                src/programs/Makefile])
107AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.