Macro for configure.in from the autoconf macro archive. It allows one to define preprocessor definitions for swigconfig.h when the #define contains the installation directory. Autoconf won't normally expand installation directory variables.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-05-19 14:18:41 +00:00
commit 9a5504eb87

View file

@ -0,0 +1,12 @@
dnl Available from the GNU Autoconf Macro Archive at:
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html
dnl
AC_DEFUN([AC_DEFINE_DIR], [
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
ac_define_dir=`eval echo [$]$2`
ac_define_dir=`eval echo [$]ac_define_dir`
ifelse($3, ,
AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
])