Annotation of embedaddon/confuse/configure.ac, revision 1.1.1.2

1.1.1.2 ! misho       1: # Process this file with -*- autoconf -*- to produce a configure script.
        !             2: # The bundled autogen.sh script does this and also calls autoamake. 
1.1       misho       3: AC_PREREQ(2.50)
                      4: 
1.1.1.2 ! misho       5: AC_INIT(libConfuse, 3.3, https://github.com/martinh/libconfuse/issues, confuse)
1.1       misho       6: AC_CONFIG_AUX_DIR(support)
1.1.1.2 ! misho       7: AM_INIT_AUTOMAKE([foreign dist-xz])
        !             8: AM_SILENT_RULES([no])
        !             9: 
1.1       misho      10: AM_CONFIG_HEADER(config.h)
                     11: AC_CONFIG_SRCDIR(src/confuse.c)
                     12: 
                     13: # Checks for programs.
                     14: AC_PROG_CC
1.1.1.2 ! misho      15: AM_PROG_AR
1.1       misho      16: AM_PROG_LEX
1.1.1.2 ! misho      17: 
        !            18: LT_INIT([win32-dll])
1.1       misho      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: 
1.1.1.2 ! misho      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.
1.1       misho      31: AM_GNU_GETTEXT([external])
1.1.1.2 ! misho      32: AM_GNU_GETTEXT_VERSION([0.18.2])
1.1       misho      33: 
                     34: # Checks for header files.
                     35: AC_HEADER_STDC
1.1.1.2 ! misho      36: AC_CHECK_HEADERS([unistd.h string.h strings.h sys/stat.h windows.h])
1.1       misho      37: 
                     38: # Checks for typedefs, structures, and compiler characteristics.
                     39: AC_C_CONST
                     40: 
                     41: # Checks for library functions.
1.1.1.2 ! misho      42: AC_CHECK_FUNCS([fmemopen funopen reallocarray strcasecmp strdup strndup setenv unsetenv _putenv])
1.1       misho      43: 
1.1.1.2 ! misho      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"])
1.1       misho      48: 
1.1.1.2 ! misho      49: # Files to generate
1.1       misho      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>