File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / configure.ac
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:49:17 2021 UTC (3 years, 2 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, HEAD
confuse 3.3

    1: # Process this file with -*- autoconf -*- to produce a configure script.
    2: # The bundled autogen.sh script does this and also calls autoamake. 
    3: AC_PREREQ(2.50)
    4: 
    5: AC_INIT(libConfuse, 3.3, https://github.com/martinh/libconfuse/issues, confuse)
    6: AC_CONFIG_AUX_DIR(support)
    7: AM_INIT_AUTOMAKE([foreign dist-xz])
    8: AM_SILENT_RULES([no])
    9: 
   10: AM_CONFIG_HEADER(config.h)
   11: AC_CONFIG_SRCDIR(src/confuse.c)
   12: 
   13: # Checks for programs.
   14: AC_PROG_CC
   15: AM_PROG_AR
   16: AM_PROG_LEX
   17: 
   18: LT_INIT([win32-dll])
   19: 
   20: # optional building of examples:
   21: AC_ARG_ENABLE([examples],
   22: 	[AC_HELP_STRING([--disable-examples], [don't build examples in examples])],
   23: 	[], [enable_examples=yes])
   24: AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
   25: 
   26: # 0.18.2.1 updates AM_GNU_GETTEXT() to use AC_PROG_MKDIR_P instead of
   27: # AM_PROG_MKDIR_P, but 0.18.1.1 is included in Ubuntu 12.04 LTS.
   28: # Fortunately Ubuntu 14.04 LTS ships 0.18.3.1 and Debian Jessie 0.19.3
   29: # Unfortunately CentOS7, RHEL7 ships 0.18.2.1, so for best compat.
   30: # level at this point in time we set 0.18.2.
   31: AM_GNU_GETTEXT([external])
   32: AM_GNU_GETTEXT_VERSION([0.18.2])
   33: 
   34: # Checks for header files.
   35: AC_HEADER_STDC
   36: AC_CHECK_HEADERS([unistd.h string.h strings.h sys/stat.h windows.h])
   37: 
   38: # Checks for typedefs, structures, and compiler characteristics.
   39: AC_C_CONST
   40: 
   41: # Checks for library functions.
   42: AC_CHECK_FUNCS([fmemopen funopen reallocarray strcasecmp strdup strndup setenv unsetenv _putenv])
   43: 
   44: # Set conditional includes in Makefile.am
   45: AM_CONDITIONAL(MISSING_FMEMOPEN, [test "x$ac_cv_func_fmemopen" = "xno"])
   46: AM_CONDITIONAL(MISSING_REALLOCARRAY, [test "x$ac_cv_func_reallocarray" = "xno"])
   47: AM_CONDITIONAL(WINDOWS_BUILD, [test "x$ac_cv_header_windows_h" = "xyes"])
   48: 
   49: # Files to generate
   50: AC_CONFIG_FILES([Makefile \
   51: 		 src/Makefile \
   52: 		 examples/Makefile \
   53:                  po/Makefile.in \
   54: 		 m4/Makefile \
   55: 		 tests/Makefile \
   56: 		 doc/Makefile \
   57:                  doc/Doxyfile \
   58: 		 libconfuse.pc \
   59: 		 libconfuse.spec])
   60: AC_OUTPUT
   61: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>