| AC_MSG_RESULT($make_type) |
AC_MSG_RESULT($make_type) |
| AC_SUBST(GNUMAKE) |
AC_SUBST(GNUMAKE) |
| |
|
| |
if test "$ac_export_dynamic" != yes; then |
| AC_MSG_CHECKING([whether the linker accepts -export-dynamic]) |
AC_MSG_CHECKING([whether the linker accepts -export-dynamic]) |
| OLDLDFLAGS=$LDFLAGS |
OLDLDFLAGS=$LDFLAGS |
| LDFLAGS="$LDFLAGS -export-dynamic" |
LDFLAGS="$LDFLAGS -export-dynamic" |
| AC_TRY_RUN(main(){exit(0);},ac_export_dynamic=yes,ac_export_dynamic=no,ac_export_dynamic=no) |
AC_TRY_RUN(main(){exit(0);},ac_export_dynamic=yes,ac_export_dynamic=no,ac_export_dynamic=no) |
| test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS |
test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS |
| AC_MSG_RESULT($ac_export_dynamic) |
AC_MSG_RESULT($ac_export_dynamic) |
| |
else |
| |
LDFLAGS="$LDFLAGS -export-dynamic" |
| |
fi |
| |
|
| #terminology is a bit unusual here: The host is the system on which |
#terminology is a bit unusual here: The host is the system on which |
| #gforth will run; the system on which configure will run is the `build' |
#gforth will run; the system on which configure will run is the `build' |
| dnl This check is just for making later checks link with libm. |
dnl This check is just for making later checks link with libm. |
| dnl using sin here is no good idea since it is built-into gcc and typechecked |
dnl using sin here is no good idea since it is built-into gcc and typechecked |
| AC_CHECK_LIB(m,asin) |
AC_CHECK_LIB(m,asin) |
| AC_CHECK_LIB(ltdl,lt_dlinit) |
AC_CHECK_LIB(ltdl,lt_dlinit,LIB_SUFFIX=.la,LIB_SUFFIX=.so) |
| |
AC_SUBST(LIB_SUFFIX) |
| AC_CHECK_LIB(rt,clock_gettime) |
AC_CHECK_LIB(rt,clock_gettime) |
| |
|
| if test -n "$GNU_LIBTOOL" -a $ac_cv_lib_ltdl_lt_dlinit = yes; then |
if test -n "$GNU_LIBTOOL" -a $ac_cv_lib_ltdl_lt_dlinit = yes; then |