diff --git a/ChangeLog b/ChangeLog index bd53b2634c..6dbba540cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -39,6 +39,8 @@ Changes in version 0.1.2.2-alpha - 2006-??-?? instead of "X resolved to X". - Prevent the 'exitlist' script from printing the same result more than once. + - Build correctly for use on OS X platforms with case-sensitive + filesystems. o Documentation - Documented (and renamed) ServerDNSSearchDomains and diff --git a/Makefile.am b/Makefile.am index 6179291fd1..e6c491e424 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,6 +46,9 @@ dist-osx: if [ "x$(sysconfdir)" != 'x/Library' ]; then \ echo "Configure with --sysconfdir=/Library, please"; \ exit 1; \ + fi; \ + if [ "x$(CONFDIR)" != 'x/Library/Tor' ]; then \ + echo "Configure with CONFDIR=/Library/Tor, please"; \ fi $(MAKE) all VERSION=$(VERSION) sh ./contrib/osx/package.sh diff --git a/configure.in b/configure.in index 7527bed5cc..f177ad7386 100644 --- a/configure.in +++ b/configure.in @@ -716,7 +716,9 @@ if test "x$exec_prefix" = "xNONE"; then exec_prefix=$prefix fi -CONFDIR=`eval echo $sysconfdir/tor` +if test "x$CONFDIR" = "x"; then + CONFDIR=`eval echo $sysconfdir/tor` +fi AC_SUBST(CONFDIR) AH_TEMPLATE([CONFDIR],[tor's configuration directory]) AC_DEFINE_UNQUOTED(CONFDIR,"$CONFDIR") @@ -742,8 +744,6 @@ fi # Add these in when you feel like fun. #CFLAGS="$CFLAGS -Wbad-function-cast -Werror -Wdeclaration-after-statement -Wold-style-definition" -echo "confdir: $CONFDIR" - AC_OUTPUT(Makefile tor.spec contrib/tor.sh contrib/torctl contrib/torify contrib/tor.logrotate contrib/Makefile contrib/osx/Makefile contrib/osx/TorBundleDesc.plist contrib/osx/TorBundleInfo.plist contrib/osx/TorDesc.plist contrib/osx/TorInfo.plist contrib/osx/TorStartupDesc.plist src/config/torrc.sample doc/tor.1 src/Makefile doc/Makefile doc/design-paper/Makefile src/config/Makefile src/common/Makefile src/or/Makefile src/win32/Makefile src/tools/Makefile contrib/suse/Makefile contrib/suse/tor.sh) if test -x /usr/bin/perl && test -x ./contrib/updateVersions.pl ; then