aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlan Brault <alan.brault@incruentatus.net>2010-12-09 20:39:22 -0500
committerAlan Brault <alan.brault@incruentatus.net>2010-12-09 20:39:22 -0500
commit8b5923e40557970824d2c7cdf7f181a87c9c424d (patch)
treef5e8f0536df840939c1e6a6846fb2a516a31e256 /configure
parent677538b13b066b24ddec5429b10dd3453bad06af (diff)
downloadNetNuke2-8b5923e40557970824d2c7cdf7f181a87c9c424d.tar.gz
ncurses support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure51
1 files changed, 51 insertions, 0 deletions
diff --git a/configure b/configure
index d5c5f6e..c1b474d 100755
--- a/configure
+++ b/configure
@@ -2330,6 +2330,7 @@ $as_echo "$as_me: creating cache $cache_file" >&6;}
fi
as_fn_append ac_header_list " fcntl.h"
+as_fn_append ac_header_list " ncurses.h"
as_fn_append ac_header_list " stddef.h"
as_fn_append ac_header_list " stdlib.h"
as_fn_append ac_header_list " string.h"
@@ -11133,6 +11134,54 @@ else
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
+$as_echo_n "checking for initscr in -lncurses... " >&6; }
+if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lncurses $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char initscr ();
+int
+main ()
+{
+return initscr ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_ncurses_initscr=yes
+else
+ ac_cv_lib_ncurses_initscr=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
+$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
+if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBNCURSES 1
+_ACEOF
+
+ LIBS="-lncurses $LIBS"
+
+else
+ as_fn_error $? "required library ncurses missing" "$LINENO" 5
+fi
+
+
# Checks for header files.
@@ -11165,6 +11214,8 @@ done
+
+
# Checks for typedefs, structures, and compiler characteristics.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }