AC_PREREQ([2.64]) AC_INIT([pjctl (PJLink Projector Control)], [1], [benjaminfranzke@googlemail.com], [pjctl], [https://git.bnfr.net/pjctl/]) AC_SUBST([PACKAGE_AUTHOR], ["Benjamin Franzke"]) AC_SUBST([PACKAGE_DESCRIPTION], ["Control a PJLink Projector"]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # Check for programs AC_PROG_CC if test "x$GCC" = "xyes"; then GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes" fi AC_SUBST([GCC_CFLAGS]) # for src/ext/gnulib/md5.c AC_C_BIGENDIAN AC_CANONICAL_HOST have_windows="no" case "$host_os" in *cygwin) have_windows="yes" ;; esac AM_CONDITIONAL([HAVE_WINDOWS], [test "x$have_windows" = "xyes"]) AC_CONFIG_FILES([Makefile src/Makefile win/pjctl.mm win/pjctl.ver]) AC_OUTPUT