(GUILE_CONFIG, GUILEINCLUDE, GUILELIB, GUILELINK): New vars, substituted.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
56766747bc
commit
6493c01178
1 changed files with 72 additions and 0 deletions
|
|
@ -468,6 +468,77 @@ if test "$PERL" != nope; then
|
|||
|
||||
AC_SUBST(PERL5EXT)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Look for Guile
|
||||
#----------------------------------------------------------------
|
||||
|
||||
GUILEINCLUDE=nope
|
||||
GUILELIB=nope
|
||||
GUILELINK=nope
|
||||
|
||||
AC_PATH_PROG(GUILE_CONFIG, guile-config)
|
||||
|
||||
if test -n "$GUILE_CONFIG" ; then
|
||||
|
||||
GUILEPACKAGE=nope
|
||||
|
||||
AC_ARG_WITH(guile,[ --with-guile=path Set location of Guile],[
|
||||
GUILEPACKAGE="$withval"], [GUILEPACKAGE=nope])
|
||||
AC_ARG_WITH(guilencl,[ --with-guileincl=path Set location of Guile include directory],[
|
||||
GUILEINCLUDE="$withval"], [GUILEINCLUDE=nope])
|
||||
AC_ARG_WITH(guilelib,[ --with-guilelib=path Set location of Guile library directory],[
|
||||
GUILELIB="$withval"], [GUILELIB=nope])
|
||||
|
||||
if test "$GUILEINCLUDE" = nope; then
|
||||
if test "$GUILEPACKAGE" != nope; then
|
||||
GUILEINCLUDE="$GUILEPACKAGE/include"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$GUILELIB" = nope; then
|
||||
if test "$GUILEPACKAGE" != nope; then
|
||||
GUILELIB="$GUILEPACKAGE/lib"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for Guile header files)
|
||||
|
||||
dirs="$GUILEINCLUDE `guile-config info includedir`"
|
||||
for i in $dirs ; do
|
||||
if test -r $i/guile/gh.h; then
|
||||
AC_MSG_RESULT($i)
|
||||
GUILEINCLUDE="-I$i/guile"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test "$GUILEINCLUDE" = nope; then
|
||||
GUILEINCLUDE="-I/usr/local/include/guile"
|
||||
AC_MSG_RESULT(not found)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for Guile library)
|
||||
dirs="$GUILELIB `guile-config info libdir`"
|
||||
for i in $dirs ; do
|
||||
if test -r $i/libguile.so; then
|
||||
AC_MSG_RESULT($i)
|
||||
GUILELIB="$i"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test "$GUILELIB" = nope; then
|
||||
AC_MSG_RESULT(not found)
|
||||
GUILELIB="/usr/local/lib"
|
||||
fi
|
||||
|
||||
GUILELINK="`guile-config link`"
|
||||
|
||||
fi # have GUILE_CONFIG
|
||||
|
||||
AC_SUBST(GUILEINCLUDE)
|
||||
AC_SUBST(GUILELIB)
|
||||
AC_SUBST(GUILELINK)
|
||||
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Miscellaneous
|
||||
#----------------------------------------------------------------
|
||||
|
|
@ -512,3 +583,4 @@ AC_OUTPUT(
|
|||
Source/Xmlparse/Makefile
|
||||
)
|
||||
|
||||
dnl configure.in ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue