52 |
, with_gcl=no) |
, with_gcl=no) |
53 |
with_gcl=`echo $with_gcl | sed -e "s#^../#$PWD/../#"` |
with_gcl=`echo $with_gcl | sed -e "s#^../#$PWD/../#"` |
54 |
|
|
55 |
|
AC_ARG_WITH(gcl-dir, |
56 |
|
[ --with-gcl-dir=PATH usually defaults correctly, specifies GCL source dir], |
57 |
|
, with_gcl_dir=no) |
58 |
|
|
59 |
AC_ARG_WITH(mpicc, |
AC_ARG_WITH(mpicc, |
60 |
[ --with-mpicc=PATH if don't want built-in MPI, define path to mpicc], |
[ --with-mpicc=PATH if don't want built-in MPI, define path to mpicc], |
61 |
, with_mpicc=no) |
, with_mpicc=no) |
126 |
AC_MSG_ERROR(Couldn't find gcl command |
AC_MSG_ERROR(Couldn't find gcl command |
127 |
Use ./configure --with-gcl= to specify location of gcl command ); |
Use ./configure --with-gcl= to specify location of gcl command ); |
128 |
fi |
fi |
129 |
libdir=`$with_gcl -batch -eval '(progn (format t *lib-directory*) (quit))'` |
|
130 |
if test ! -d $libdir/h; then |
dnl libdir=`$with_gcl -batch -eval '(progn (format t *lib-directory*) (quit))'` |
131 |
AC_MSG_ERROR(Didn't find include directory at $libdir/h |
dnl # Check if we have correct lib directory |
132 |
Bad parameter given to ./configure --with-gcl= ); |
dnl if test ! -d $libdir/h; then |
133 |
fi |
dnl AC_MSG_ERROR(Didn't find include directory at $libdir/h |
134 |
if test ! -d $libdir/gmp3; then |
dnl Bad parameter given to ./configure --with-gcl= ); |
135 |
AC_MSG_ERROR(Didn't find libgmp in gmp3 directory at $libdir/gmp3 |
dnl fi |
|
Bad parameter given to ./configure --with-gcl= ); |
|
|
fi |
|
136 |
|
|
137 |
GCL=$with_gcl |
GCL=$with_gcl |
138 |
GCL_SRC=`$with_gcl -batch -eval '(progn (write *lib-directory* :escape nil) (quit))'` |
if test "$with_gcl_dir" = "no"; then |
139 |
GCL_SRC=`echo $GCL_SRC | sed -e s'#"##g'` |
GCL_SRC=`$with_gcl -batch \ |
140 |
|
-eval '(progn (write *lib-directory* :escape nil) (quit))'` |
141 |
|
GCL_SRC=`echo $GCL_SRC | sed -e s'#"##g'` |
142 |
|
else |
143 |
|
GCL_SRC=$with_gcl_dir |
144 |
|
fi |
145 |
|
|
146 |
dnl Substitute shell variables |
dnl Substitute shell variables |
147 |
AC_SUBST(PARGCL_VERSION) |
AC_SUBST(PARGCL_VERSION) |