Home | History | Annotate | Line # | Download | only in minizip
      1      1.1  christos #                                               -*- Autoconf -*-
      2      1.1  christos # Process this file with autoconf to produce a configure script.
      3      1.1  christos 
      4  1.1.1.3  christos AC_INIT([minizip], [1.3.1], [bugzilla.redhat.com])
      5      1.1  christos AC_CONFIG_SRCDIR([minizip.c])
      6      1.1  christos AM_INIT_AUTOMAKE([foreign])
      7      1.1  christos LT_INIT
      8      1.1  christos 
      9      1.1  christos AC_MSG_CHECKING([whether to build example programs])
     10      1.1  christos AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
     11      1.1  christos AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
     12      1.1  christos if test "$enable_demos" = yes
     13      1.1  christos then
     14      1.1  christos 	AC_MSG_RESULT([yes])
     15      1.1  christos else
     16      1.1  christos 	AC_MSG_RESULT([no])
     17      1.1  christos fi
     18      1.1  christos 
     19      1.1  christos case "${host}" in
     20      1.1  christos 	*-mingw* | mingw*)
     21      1.1  christos 		WIN32="yes"
     22      1.1  christos 		;;
     23      1.1  christos 	*)
     24      1.1  christos 		;;
     25      1.1  christos esac
     26      1.1  christos AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
     27      1.1  christos 
     28      1.1  christos 
     29      1.1  christos AC_SUBST([HAVE_UNISTD_H], [0])
     30      1.1  christos AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
     31      1.1  christos AC_CONFIG_FILES([Makefile minizip.pc])
     32      1.1  christos AC_OUTPUT
     33