mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
configure.in: Do not check for SEE without --enable-see.
Use #error instead of choke_on_see(), because choke_on_see could be defined by some library (very unlikely).
This commit is contained in:
parent
d791854f52
commit
e1a4414ad7
@ -575,8 +575,6 @@ AC_ARG_WITH(see, [ --with-see enable Simple Ecmascript Engine (SEE
|
|||||||
CONFIG_ECMASCRIPT_SEE=no
|
CONFIG_ECMASCRIPT_SEE=no
|
||||||
|
|
||||||
if test "$enable_see" = "yes"; then
|
if test "$enable_see" = "yes"; then
|
||||||
## Based on the SEE_FLAGS macro.
|
|
||||||
|
|
||||||
if test -d "$withval"; then
|
if test -d "$withval"; then
|
||||||
SEE_PATH="$withval:$PATH"
|
SEE_PATH="$withval:$PATH"
|
||||||
else
|
else
|
||||||
@ -592,7 +590,7 @@ if test "$enable_see" = "yes"; then
|
|||||||
CPPFLAGS="$SEE_CFLAGS $CPPFLAGS"
|
CPPFLAGS="$SEE_CFLAGS $CPPFLAGS"
|
||||||
LIBS="$SEE_LIBS $LIBS_X"
|
LIBS="$SEE_LIBS $LIBS_X"
|
||||||
AC_TRY_LINK([#include <see/see.h>],[#if SEE_VERSION_API_MAJOR < 2
|
AC_TRY_LINK([#include <see/see.h>],[#if SEE_VERSION_API_MAJOR < 2
|
||||||
choke_on_see();
|
#error SEE too old
|
||||||
#endif
|
#endif
|
||||||
], cf_result=yes, cf_result=no)
|
], cf_result=yes, cf_result=no)
|
||||||
EL_RESTORE_FLAGS
|
EL_RESTORE_FLAGS
|
||||||
@ -609,9 +607,6 @@ if test "$enable_see" = "yes"; then
|
|||||||
AC_MSG_WARN([SEE support disabled])
|
AC_MSG_WARN([SEE support disabled])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
AC_MSG_CHECKING([for SEE (2.0.1131 or later)])
|
|
||||||
AC_MSG_RESULT(no);
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user