From 7b5865c2a0ebf7a7ebd48039dcc22266552dbb0f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 19 Apr 2005 00:52:01 +0000 Subject: made it search for the sources in the standard Dev layout as well as /usr/local svn path=/trunk/externals/gem2pdp/; revision=2784 --- configure.ac | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f2cb5fd..74cc57a 100644 --- a/configure.ac +++ b/configure.ac @@ -2,9 +2,32 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT GEM2PDP_VERSION=0.6 -PD_DIR=/usr/local/pd -PDP_DIR=/usr/local/pd/pdp -GEM_DIR=/usr/local/pd/gem + +if test -f /usr/local/pd; then + PD_DIR=/usr/local/pd +elif test -f ../../pd; then + PD_DIR=../../pd +elif + echo "Pd sources not found" +fi + +if test -f /usr/local/pd/pdp; then + PDP_DIR=/usr/local/pd/pdp +elif test -f ../pdp; then + PDP_DIR=../pdp +elif + echo "PdP sources not found" +fi + +if test -f /usr/local/pd/gem; then + GEM_DIR=/usr/local/pd/gem +elif test -f ../../Gem; then + GEM_DIR=../../Gem +elif test -f ../gem/Gem; then + GEM_DIR=../gem/Gem +elif + echo "Gem sources not found" +fi AC_ISC_POSIX AC_PROG_CC -- cgit v1.2.1