Browse Source

Don't check for readline, if shared lib or Windows GUI is selected

pre-master-46
Holger Vogt 2 years ago
parent
commit
6b3c085037
  1. 21
      configure.ac

21
configure.ac

@ -1252,12 +1252,16 @@ if test "x$enable_expdevices" = xyes; then
fi
# ---- Option to include GNU readline support in ngspice CLI ----
# ---- Default: disabled. ----
# ---- Default: enabled. ----
# ---- Hope to see in the future readline replacement. ----
if test "x$with_readline" = xno ; then
if test "x$with_wingui" = xyes || test "x$with_ngshared" = xyes; then
AC_MSG_RESULT([GNU readline disabled.])
AC_MSG_RESULT([BSD editline disabled.])
else
if test "x$with_readline" = xno ; then
AC_MSG_RESULT([GNU readline disabled.])
else
if test "x$with_readline" = x || test "x$with_readline" = xyes ; then
if test "x$with_tcl" = x || test "x$with_tcl" = xno ; then
AC_MSG_RESULT([Checking for readline:])
@ -1272,7 +1276,7 @@ else
[AC_MSG_ERROR([Couldn't find readline libraries.])])
fi
else
# Especially defined for macOS (Big Sur), with readline installed from Brew
# Especially defined for macOS (Big Sur), with readline installed from Brew
for dir in \
$with_readline
do
@ -1290,14 +1294,14 @@ else
fi
done
fi
fi
fi
# ---- Option to include BSD editline support in ngspice CLI ----
# ---- Default: disabled. ----
# ---- Option to include BSD editline support in ngspice CLI ----
# ---- Default: disabled. ----
if test "x$with_editline" != xyes; then
if test "x$with_editline" != xyes; then
AC_MSG_RESULT([BSD editline disabled.])
else
else
AC_MSG_RESULT([Checking for editline:])
AC_CHECK_HEADERS([editline/readline.h],
[AC_DEFINE([HAVE_BSDEDITLINE], [1], [Define to enable BSD editline])],
@ -1309,6 +1313,7 @@ else
[LIBS="$LIBS -ledit"],
[AC_MSG_ERROR([Couldn't find editline libraries.])],
[-lncurses])
fi
fi
# Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined

Loading…
Cancel
Save