From 3c050000c6918b77a353583999e6e810aa675fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Wed, 24 Oct 2007 20:37:21 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r8875, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/pdvjtools/; revision=8876 --- pix_preview/configure.ac | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100755 pix_preview/configure.ac (limited to 'pix_preview/configure.ac') diff --git a/pix_preview/configure.ac b/pix_preview/configure.ac new file mode 100755 index 0000000..22cb86a --- /dev/null +++ b/pix_preview/configure.ac @@ -0,0 +1,83 @@ +dnl Process this file with autoconf to produce a configure script. + +AC_INIT +GEM2PNM_VERSION=0.6 + +if test -d /usr/local/pd; +then + PD_DIR=/usr/local/pd +elif test -d ../../pd; +then + PD_DIR=../../pd +else + echo "Pd sources not found" +fi + + +if test -d /win/Georg/pd-cvs/gem/Gem; +then + GEM_DIR=/win/Georg/pd-cvs/gem/Gem +elif test -d ../../gem/Gem; +then + GEM_DIR=../../gem/Gem +elif test -d ../../gem/Gem; +then + GEM_DIR=../../gem/Gem +else + echo "Gem sources not found" +fi + +AC_ISC_POSIX +AC_PROG_CC +AM_PROG_CC_STDC +AC_HEADER_STDC +AC_PROG_INSTALL +AC_PROG_MAKE_SET +AM_SANITY_CHECK + +AM_MAINTAINER_MODE +AM_WITH_DMALLOC + +AC_SUBST(GEM2PNM_VERSION) + +AC_ARG_WITH(pddir, [ --with-pddir= specify an alternate pd source tree]) +AC_ARG_WITH(gemdir, [ --with-gemdir= specify an alternate gem source tree]) + +if test "$with_gemdir" != "" +then + GEM_DIR=$with_gemdir +fi + +if test "$with_pddir" != "" +then + PD_DIR=$with_pddir +fi + +echo -n "looking for gem sources (required) ... " +if test -f $GEM_DIR/src/Base/GemMan.h +then + AC_SUBST(GEM_DIR) + echo "ok." +else + echo "gem source tree not found... use ./configure --with-gemdir= option" + exit -1 +fi + + +echo -n "looking for pd sources (required) ... " +if test -f $PD_DIR/src/m_imp.h +then + AC_SUBST(PD_DIR) + echo "ok." +else + echo "pd source tree not found... use ./configure --with-pddir= option" + exit -1 +fi + +LIBS="$LIBS -lm" +CFLAGS="$CFLAGS -Wall" + +AC_CONFIG_FILES([ +Makefile +]) +AC_OUTPUT -- cgit v1.2.1