2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([kconfig-frontends], [m4_esyscmd_s([cat .version])], [nobody@nowhere.org])
6 AC_CONFIG_SRCDIR([frontends/conf/conf.c])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_AUX_DIR([scripts])
10 # Checks for programs.
25 [AC_MSG_ERROR([can not find gperf])])
26 AC_SUBST([AM_LFLAGS], ["-L -P zconf"])
27 AC_SUBST([AM_YFLAGS], ["-t -l -p zconf"])
29 # Checks for libraries.
31 # Checks for header files.
32 AC_CHECK_HEADERS([ fcntl.h libintl.h limits.h locale.h stdlib.h string.h sys/time.h unistd.h ])
34 # Checks for typedefs, structures, and compiler characteristics.
39 # Checks for library functions.
42 AC_CHECK_FUNCS([ bzero gettimeofday memmove memset mkdir regcomp setlocale strcasecmp strchr strcspn strdup strncasecmp strpbrk strrchr strspn strtol uname ])
44 #----------------------------------------
51 #----------------------------------------
52 # Check for gettext, for the kconfig frontends
56 [ac_ct_gettext_hdr=$ac_header; break])
58 [test -n "$ac_ct_gettext_hdr"],
60 [gettext],[gettext=y],,
61 [#include <$ac_ct_gettext_hdr>])])
63 #----------------------------------------
64 # Check for ncurses, for the kconfig frontends
65 AC_SUBST([CURSES_LOC])
67 [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
68 [CURSES_LOC=$ac_header; break])
70 [test -z "$CURSES_LOC"],
71 [AC_MSG_ERROR([could not find curses header, required for the kconfig frontends])])
74 [ncursesw ncurses curses],
75 [ac_ct_curses_lib_found=yes; break])
77 [test -z "$ac_ct_curses_lib_found"],
78 [AC_MSG_ERROR([could not find curses library, required for the kconfig frontends])])
87 frontends/conf/Makefile
88 frontends/mconf/Makefile
89 frontends/nconf/Makefile