[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r12376: Define SHARE_DATADIR, LOCALSTATEDIR, and BINDIR in Makefile. (in tor/trunk: . src/or)
Author: nickm
Date: 2007-11-04 15:49:02 -0500 (Sun, 04 Nov 2007)
New Revision: 12376
Modified:
tor/trunk/
tor/trunk/configure.in
tor/trunk/src/or/Makefile.am
Log:
r14702@tombo: nickm | 2007-11-04 15:48:56 -0500
Define SHARE_DATADIR, LOCALSTATEDIR, and BINDIR in Makefile.am as autoconf recommends. Do not move CONFDIR yet, since we seem to support overriding it in a weird way. Resolves bug 542.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r14702] on d9e39d38-0f13-419c-a857-e10a0ce2aa0c
Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in 2007-11-04 17:59:08 UTC (rev 12375)
+++ tor/trunk/configure.in 2007-11-04 20:49:02 UTC (rev 12376)
@@ -617,21 +617,6 @@
AH_TEMPLATE([CONFDIR],[tor's configuration directory])
AC_DEFINE_UNQUOTED(CONFDIR,"$CONFDIR")
-BINDIR=`eval echo $bindir`
-AC_SUBST(BINDIR)
-
-LOCALSTATEDIR=`eval echo $localstatedir`
-AC_SUBST(LOCALSTATEDIR)
-AH_TEMPLATE([LOCALSTATEDIR], [Default location to store state files.])
-AC_DEFINE_UNQUOTED(LOCALSTATEDIR,"$LOCALSTATEDIR")
-
-dnl Note: this is not the same as Tor's "DataDir" config option.
-dnl We'd call it 'DATADIR', except that's a symbol in MinGW's objidl.h.
-SHARE_DATADIR=`eval echo $datadir`
-AC_SUBST(SHARE_DATADIR)
-AH_TEMPLATE([SHARE_DATADIR], [Default location for platform-independent read-only data.])
-AC_DEFINE_UNQUOTED(SHARE_DATADIR,"$SHARE_DATADIR")
-
# Set CFLAGS _after_ all the above checks, since our warnings are stricter
# than autoconf's macros like.
if test $ac_cv_c_compiler_gnu = yes; then
Modified: tor/trunk/src/or/Makefile.am
===================================================================
--- tor/trunk/src/or/Makefile.am 2007-11-04 17:59:08 UTC (rev 12375)
+++ tor/trunk/src/or/Makefile.am 2007-11-04 20:49:02 UTC (rev 12376)
@@ -23,6 +23,10 @@
eventdns.c \
tor_main.c
+AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
+ -DLOCALSTATEDIR="\"$(localstatedir)\"" \
+ -DBINDIR="\"$(bindir)\""
+
# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
# This seems to matter nowhere but on windows, but I assure you that it
# matters a lot there, and is quite hard to debug if you forget to do it.