changeset 890:788e088702d6

Improve configure checks
author Mikael Berthe <mikael@lilotux.net>
date Wed, 31 May 2006 20:32:27 +0200
parents ae93e69aaaaf
children 78f4971578dd
files mcabber/configure.ac
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/configure.ac	Tue May 30 23:22:37 2006 +0200
+++ b/mcabber/configure.ac	Wed May 31 20:32:27 2006 +0200
@@ -10,7 +10,6 @@
 AC_PROG_RANLIB
 
 # Checks for programs.
-AC_PROG_CXX
 AC_PROG_CC
 AC_PROG_INSTALL
 
@@ -27,7 +26,7 @@
 fi
 
 # Checks for libraries.
-AC_CHECK_LIB([ncurses], [initscr])
+AC_CHECK_LIB([ncurses], [initscr], , AC_MSG_ERROR([NCURSES library needed]))
 AC_CHECK_LIB([panel], [new_panel])
 
 AC_CHECK_DECLS([strptime],,,
@@ -38,7 +37,9 @@
 AC_HEADER_STDC
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \
                   stdlib.h string.h strings.h sys/socket.h sys/time.h \
-                  syslog.h termios.h unistd.h ncurses.h panel.h getopt.h])
+                  syslog.h termios.h unistd.h getopt.h])
+AC_CHECK_HEADERS([ncurses.h panel.h getopt.h], ,
+                 AC_MSG_ERROR([Missing header file]))
 AC_VAR_TIMEZONE_EXTERNALS
 
 # Checks for typedefs, structures, and compiler characteristics.