updates to configure
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@681 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
99c2029cdc
commit
0b562d3e2d
22
configure
vendored
22
configure
vendored
@ -305,7 +305,7 @@ ac_includes_default="\
|
|||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GCC C_INTERF_FLAGS C_PARSER_FLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INDENT ac_ct_INDENT AR ac_ct_AR MPI_CC ac_ct_MPI_CC INSTALL_INFO INSTALL_COMMAND CROSS_SIMULATOR YAPMPILIB MPI_OBJS MPI_LIBS CPP EGREP INSTALL_DLLS SHLIB_CFLAGS SHLIB_SUFFIX DO_SECOND_LD SHLIB_LD NEWSHOBJ YAPLIB YAP_EXTRAS DLL_LIBS NO_BUILTIN_REGEXP M4 M4GENHDRS M4GENABSMI LIBOBJS LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GCC C_INTERF_FLAGS C_PARSER_FLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INDENT ac_ct_INDENT AR ac_ct_AR MPI_CC ac_ct_MPI_CC INSTALL_INFO INSTALL_COMMAND CROSS_SIMULATOR YAPMPILIB MPI_OBJS MPI_LIBS CPP EGREP INSTALL_DLLS SHLIB_CFLAGS SHLIB_SUFFIX EXEC_SUFFIX DO_SECOND_LD SHLIB_LD NEWSHOBJ YAPLIB YAP_EXTRAS DLL_LIBS NO_BUILTIN_REGEXP M4 M4GENHDRS M4GENABSMI LIBOBJS LTLIBOBJS'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@ -3032,11 +3032,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "$target_os" = "cygwin"
|
if test "$target_os" = "cygwin"
|
||||||
then
|
then
|
||||||
INSTALL_COMMAND=install_win32
|
|
||||||
if test "$cygwin" = "no"
|
if test "$cygwin" = "no"
|
||||||
then
|
then
|
||||||
|
INSTALL_COMMAND=install_win32
|
||||||
CC="gcc -mno-cygwin"
|
CC="gcc -mno-cygwin"
|
||||||
|
|
||||||
|
|
||||||
@ -3100,6 +3101,7 @@ fi
|
|||||||
else
|
else
|
||||||
DLL_LIBS=""
|
DLL_LIBS=""
|
||||||
LIBS="-lcygwin -lkernel32"
|
LIBS="-lcygwin -lkernel32"
|
||||||
|
INSTALL_COMMAND=install_unix
|
||||||
fi
|
fi
|
||||||
elif test "$target_os" = "mingw32"
|
elif test "$target_os" = "mingw32"
|
||||||
then
|
then
|
||||||
@ -4478,6 +4480,8 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EXEC_SUFFIX=""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -4813,13 +4817,13 @@ fi
|
|||||||
*cyg*)
|
*cyg*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
# and -fomit-frame-point -DBP_FREE
|
# and -fomit-frame-point -DBP_FREE
|
||||||
if test "$cygwin" = "no"
|
YAPLIB="libWYap.a"
|
||||||
then
|
SHLIB_CFLAGS=""
|
||||||
YAPLIB="libWYap.a"
|
NEWSHOBJ="dll"
|
||||||
SHLIB_SUFFIX=".dll"
|
SHLIB_SUFFIX=".dll"
|
||||||
NEWSHOBJ="dll"
|
|
||||||
fi
|
|
||||||
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
||||||
|
EXEC_SUFFIX=".exe"
|
||||||
|
INSTALL_DLLS=""
|
||||||
;;
|
;;
|
||||||
*mingw*)
|
*mingw*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
@ -4828,6 +4832,7 @@ fi
|
|||||||
SHLIB_SUFFIX=".dll"
|
SHLIB_SUFFIX=".dll"
|
||||||
NEWSHOBJ="dll"
|
NEWSHOBJ="dll"
|
||||||
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
||||||
|
EXEC_SUFFIX=".exe"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
||||||
@ -12010,6 +12015,7 @@ s,@EGREP@,$EGREP,;t t
|
|||||||
s,@INSTALL_DLLS@,$INSTALL_DLLS,;t t
|
s,@INSTALL_DLLS@,$INSTALL_DLLS,;t t
|
||||||
s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
|
s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
|
||||||
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
|
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
|
||||||
|
s,@EXEC_SUFFIX@,$EXEC_SUFFIX,;t t
|
||||||
s,@DO_SECOND_LD@,$DO_SECOND_LD,;t t
|
s,@DO_SECOND_LD@,$DO_SECOND_LD,;t t
|
||||||
s,@SHLIB_LD@,$SHLIB_LD,;t t
|
s,@SHLIB_LD@,$SHLIB_LD,;t t
|
||||||
s,@NEWSHOBJ@,$NEWSHOBJ,;t t
|
s,@NEWSHOBJ@,$NEWSHOBJ,;t t
|
||||||
|
20
configure.in
20
configure.in
@ -270,15 +270,16 @@ AC_PATH_PROG(SHELL,sh)
|
|||||||
AC_SUBST(INSTALL_COMMAND)
|
AC_SUBST(INSTALL_COMMAND)
|
||||||
AC_SUBST(CROSS_SIMULATOR)
|
AC_SUBST(CROSS_SIMULATOR)
|
||||||
|
|
||||||
|
|
||||||
dnl Check for libraries.
|
dnl Check for libraries.
|
||||||
dnl mingw does not get along well with libm
|
dnl mingw does not get along well with libm
|
||||||
dnl cygnus and mingw32 also need wsock32 to use sockets.
|
dnl cygnus and mingw32 also need wsock32 to use sockets.
|
||||||
dnl
|
dnl
|
||||||
if test "$target_os" = "cygwin"
|
if test "$target_os" = "cygwin"
|
||||||
then
|
then
|
||||||
INSTALL_COMMAND=install_win32
|
|
||||||
if test "$cygwin" = "no"
|
if test "$cygwin" = "no"
|
||||||
then
|
then
|
||||||
|
INSTALL_COMMAND=install_win32
|
||||||
CC="gcc -mno-cygwin"
|
CC="gcc -mno-cygwin"
|
||||||
AC_CHECK_LIB(wsock32,main)
|
AC_CHECK_LIB(wsock32,main)
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
@ -289,6 +290,7 @@ then
|
|||||||
else
|
else
|
||||||
DLL_LIBS=""
|
DLL_LIBS=""
|
||||||
LIBS="-lcygwin -lkernel32"
|
LIBS="-lcygwin -lkernel32"
|
||||||
|
INSTALL_COMMAND=install_unix
|
||||||
fi
|
fi
|
||||||
elif test "$target_os" = "mingw32"
|
elif test "$target_os" = "mingw32"
|
||||||
then
|
then
|
||||||
@ -391,6 +393,9 @@ dnl C-flags used to compile a file that will be loaded dynamically
|
|||||||
AC_SUBST(SHLIB_CFLAGS)
|
AC_SUBST(SHLIB_CFLAGS)
|
||||||
dnl suffix for loadable binary (.so,.dll,.o)
|
dnl suffix for loadable binary (.so,.dll,.o)
|
||||||
AC_SUBST(SHLIB_SUFFIX)
|
AC_SUBST(SHLIB_SUFFIX)
|
||||||
|
dnl suffix for executable (.exe)
|
||||||
|
EXEC_SUFFIX=""
|
||||||
|
AC_SUBST(EXEC_SUFFIX)
|
||||||
dnl how to call the loader
|
dnl how to call the loader
|
||||||
AC_SUBST(DO_SECOND_LD)
|
AC_SUBST(DO_SECOND_LD)
|
||||||
AC_SUBST(SHLIB_LD)
|
AC_SUBST(SHLIB_LD)
|
||||||
@ -565,13 +570,13 @@ dnl Linux has both elf and a.out, in this case we found elf
|
|||||||
*cyg*)
|
*cyg*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
# and -fomit-frame-point -DBP_FREE
|
# and -fomit-frame-point -DBP_FREE
|
||||||
if test "$cygwin" = "no"
|
YAPLIB="libWYap.a"
|
||||||
then
|
SHLIB_CFLAGS=""
|
||||||
YAPLIB="libWYap.a"
|
NEWSHOBJ="dll"
|
||||||
SHLIB_SUFFIX=".dll"
|
SHLIB_SUFFIX=".dll"
|
||||||
NEWSHOBJ="dll"
|
|
||||||
fi
|
|
||||||
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
||||||
|
EXEC_SUFFIX=".exe"
|
||||||
|
INSTALL_DLLS=""
|
||||||
;;
|
;;
|
||||||
*mingw*)
|
*mingw*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
@ -580,6 +585,7 @@ dnl Linux has both elf and a.out, in this case we found elf
|
|||||||
SHLIB_SUFFIX=".dll"
|
SHLIB_SUFFIX=".dll"
|
||||||
NEWSHOBJ="dll"
|
NEWSHOBJ="dll"
|
||||||
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
||||||
|
EXEC_SUFFIX=".exe"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_CHECK_LIB(dl,dlopen,
|
AC_CHECK_LIB(dl,dlopen,
|
||||||
|
Reference in New Issue
Block a user