scilab: test several system include paths in configure
This commit is contained in:
parent
fc3a43240d
commit
341e61834f
1 changed files with 18 additions and 16 deletions
32
configure.ac
32
configure.ac
|
|
@ -926,7 +926,7 @@ AC_SUBST(OCTAVE_LDFLAGS)
|
||||||
|
|
||||||
AC_ARG_WITH(scilab, AS_HELP_STRING([--without-scilab], [Disable Scilab])
|
AC_ARG_WITH(scilab, AS_HELP_STRING([--without-scilab], [Disable Scilab])
|
||||||
AS_HELP_STRING([--with-scilab=path], [Set location of Scilab executable]),[SCILABBIN="$withval"], [SCILABBIN=yes])
|
AS_HELP_STRING([--with-scilab=path], [Set location of Scilab executable]),[SCILABBIN="$withval"], [SCILABBIN=yes])
|
||||||
AC_ARG_WITH(scilab-inc, [ --with-scilab-inc=path Set location of Scilab include directory], [SCILABINCDIR="$withval"], [SCILABINCDIR="/usr/include"])
|
AC_ARG_WITH(scilab-inc, [ --with-scilab-inc=path Set location of Scilab include directory], [SCILABINCDIR="$withval"], [SCILABINCDIR=""])
|
||||||
|
|
||||||
# First, check for "--without-scilab" or "--with-scilab=no".
|
# First, check for "--without-scilab" or "--with-scilab=no".
|
||||||
if test x"${SCILABBIN}" = xno -o x"${with_alllang}" = xno ; then
|
if test x"${SCILABBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||||
|
|
@ -975,21 +975,23 @@ else
|
||||||
AC_MSG_CHECKING(for Scilab header files)
|
AC_MSG_CHECKING(for Scilab header files)
|
||||||
if test "$SCILABINCDIR" != ""; then
|
if test "$SCILABINCDIR" != ""; then
|
||||||
dirs="$SCILABINCDIR"
|
dirs="$SCILABINCDIR"
|
||||||
for i in $dirs; do
|
else
|
||||||
if test -r $i/scilab/api_scilab.h; then
|
dirs="/usr/local/include /usr/include /opt/local/include"
|
||||||
SCILABINCLUDE="$i"
|
fi
|
||||||
break;
|
for i in $dirs; do
|
||||||
fi
|
if test -r $i/scilab/api_scilab.h; then
|
||||||
if test -r $i/scilab/scilab/api_scilab.h; then
|
SCILABINCLUDE="$i"
|
||||||
SCILABINCLUDE="$i/scilab"
|
break;
|
||||||
break;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if test "$SCILABINCLUDE" = "" ; then
|
|
||||||
AC_MSG_RESULT(not found)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT($SCILABINCLUDE)
|
|
||||||
fi
|
fi
|
||||||
|
if test -r $i/scilab/scilab/api_scilab.h; then
|
||||||
|
SCILABINCLUDE="$i/scilab"
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test "$SCILABINCLUDE" = "" ; then
|
||||||
|
AC_MSG_RESULT(not found)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT($SCILABINCLUDE)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue