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 # Use a config.h to avoid brazilions -DHAVE_FOO on compile lines
8 AC_CONFIG_HEADERS([config.h])
9 AC_CONFIG_AUX_DIR([scripts])
11 # Checks for programs.
16 # Checks for libraries.
19 # Checks for header files.
21 # The folowing AC_CHECK_HEADERS was a single big line
22 AC_CHECK_HEADERS([ fcntl.h libintl.h limits.h locale.h ])
23 AC_CHECK_HEADERS([ stdlib.h string.h sys/time.h unistd.h ])
25 # Checks for typedefs, structures, and compiler characteristics.
30 # Checks for library functions.
34 # The following AC_CHECK_FUNCS was a single big line
35 AC_CHECK_FUNCS([ bzero memmove memset ])
36 AC_CHECK_FUNCS([ strcasecmp strchr strcspn strdup strncasecmp strpbrk strrchr strspn strtol ])
37 AC_CHECK_FUNCS([ gettimeofday mkdir regcomp setlocale uname ])
39 # End of the autoscan-detected stuff
40 #---------------------------------------------------------------------------
42 #----------------------------------------
52 [AC_MSG_ERROR([can not find gperf])])
53 AC_SUBST([AM_LFLAGS], ["-L -P zconf"])
54 AC_SUBST([AM_YFLAGS], ["-t -l -p zconf"])
56 #----------------------------------------
57 # Check for gettext, for the kconfig frontends
61 [ac_ct_gettext_hdr=$ac_header; break],
62 [AC_MSG_WARN([libintl is missing, frontends will not be localised])])
64 [test -n "$ac_ct_gettext_hdr"],
67 [AC_MSG_WARN([gettext is missing, frontends will not be localised])
68 GETTEXT=-DKBUILD_NO_NLS],
69 [#include <$ac_ct_gettext_hdr>])])
71 #----------------------------------------
72 # Check for ncurses, for the kconfig frontends
73 AC_SUBST([CURSES_LOC])
75 [ncurses/ncurses.h ncurses/curses.h ncursesw/curses.h ncurses.h curses.h],
76 [CURSES_LOC=$ac_header; break])
78 [test -z "$CURSES_LOC"],
79 [AC_MSG_ERROR([could not find curses headers])])
82 [ncursesw ncurses curses],
83 [ac_ct_curses_lib_found=yes; break])
85 [test -z "$ac_ct_curses_lib_found"],
86 [AC_MSG_ERROR([could not find curses library])])
88 #----------------------------------------
93 #----------------------------------------
100 frontends/conf/Makefile
101 frontends/mconf/Makefile
102 frontends/nconf/Makefile