source: trunk/base/configure.ac @ 11663

Last change on this file since 11663 was 11663, checked in by landonf (Landon Fuller), 15 years ago

Remove proof-of-concept Mac software receipt support.

  • Property svn:eol-style set to native
File size: 3.2 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/config.h])
6AC_CANONICAL_SYSTEM
7
8# Check user PATH for DP paths, and remove as necessary.
9OD_PATH_SCAN
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_INSTALL
14AC_PROG_MAKE_SET
15AC_PROG_LN_S
16AC_PATH_PROG(CURL, [curl], [])
17AC_PATH_PROG(CVS, [cvs], [])
18
19# Quiche eaters options.
20if test x$GCC = xyes; then
21        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
22fi
23AC_SUBST(CFLAGS_QUICHEEATERS)
24
25OD_COMPILER_ATTRIBUTE_UNUSED
26
27OD_PROG_MTREE
28
29AC_SUBST(REPLACEMENT_PROGS)
30
31# set default dports-directory
32DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"`
33
34# Check for paths
35AC_PREFIX_DEFAULT(/opt/local)
36OD_PATH_DPORTSDIR([$DPORTS_DIR_DEFAULT])
37OD_PATH_PORTCONFIGDIR([$prefix])
38
39# Check for install ownership
40OD_CHECK_INSTALLUSER
41OD_CHECK_INSTALLGROUP
42OD_DIRECTORY_MODE
43
44# Check for standard header files.
45AC_HEADER_STDC
46AC_HEADER_DIRENT
47AC_HEADER_SYS_WAIT
48AC_HEADER_STAT
49AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h libgen.h])
50
51INCLUDES="-I.. -I. $INCLUDES"
52
53# Checks for library functions.
54AC_FUNC_CLOSEDIR_VOID
55AC_FUNC_FORK
56AC_FUNC_STRERROR_R
57AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp])
58
59# Check for md5 implementation
60OD_LIB_MD5
61# Check for X11 and paraphernalia
62OD_CHECK_X11
63
64# Load tclConfig.sh
65SC_PATH_TCLCONFIG
66SC_LOAD_TCLCONFIG
67
68# Check for Tcl public headers
69dnl XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)
70CYGPATH=echo
71SC_PUBLIC_TCL_HEADERS
72
73# Check for tclsh binary
74OD_PROG_TCLSH
75
76# Check for Tcl package path
77OD_TCL_PACKAGE_DIR
78
79# Allows building of shared libraries
80SC_ENABLE_SHARED
81
82# Pull compiler / linker values from tclConfig.sh
83CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
84CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
85LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
86LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
87SHLIB_LD=${TCL_SHLIB_LD}
88STLIB_LD=${TCL_STLIB_LD}
89SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
90SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
91
92AC_SUBST(INCLUDES)
93AC_SUBST(CFLAGS_DEBUG)
94AC_SUBST(CFLAGS_OPTIMIZE)
95AC_SUBST(TCL_DEFS)
96AC_SUBST(STLIB_LD)
97AC_SUBST(SHLIB_LD)
98AC_SUBST(SHLIB_CFLAGS)
99AC_SUBST(SHLIB_LDFLAGS)
100AC_SUBST(SHLIB_SUFFIX)
101AC_SUBST(TCL_STUB_LIB_SPEC)
102AC_SUBST(TCL_CC)
103
104#misc variables that need to be expanded for substitution into tcl
105
106oldprefix=$prefix
107if test "x$prefix" = "xNONE" ; then
108   prefix=$ac_default_prefix
109fi
110
111eval "prefix_expanded=$prefix"
112AC_SUBST(prefix_expanded)
113# do this twice, since there is a nested variable of
114# ${prefix} inside of ${sysconfdir}
115eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
116eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
117AC_SUBST(PORTCONFIGDIR_EXPANDED)
118eval "localstatedir_expanded=$localstatedir"
119AC_SUBST(localstatedir_expanded)
120
121prefix=$oldprefix
122
123dnl man page settings (compressed, links, etc)
124dnl
125dnl SC_CONFIG_MANPAGES
126
127# Output
128
129AC_CONFIG_FILES([
130        Makefile
131        Mk/dports.autoconf.mk
132        doc/prefix.mtree
133        doc/macosx.mtree
134        doc/ports.conf
135        src/darwinports1.0/darwinports_autoconf.tcl
136        src/port1.0/port_autoconf.tcl
137        src/programs/Makefile
138        src/darwinports1.0/darwinports_fastload.tcl
139])
140
141AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.