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