dnl Process this file with autoconf to produce a configure script. AC_INIT(pgm/Makefile.in) AM_INIT_AUTOMAKE(styx, 1.6.1) AM_CONFIG_HEADER(config.h) dnl dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_CXX AC_PROG_CPP AM_PROG_LIBTOOL AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_CHECK_PROG([SED],sed,[$(which sed)]) dnl Checks for libraries. AC_CHECK_LIB(dl, dlopen) AC_CHECK_LIB(rt, sem_init) dnl Checks for typedefs, structures, and compiler characteristics. if test "x$GCC" = "xyes" then CFLAGS="-funsigned-char $CFLAGS" fi AC_C_CONST AC_TYPE_SIZE_T AC_STRUCT_TM dnl Checks for header files. AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h) AC_CHECK_HEADERS(sys/fcntl.h fcntl.h) AC_CHECK_HEADERS(sys/stat.h stat.h) AC_CHECK_HEADERS(sys/time.h time.h) AC_CHECK_HEADERS(sys/types.h types.h) AC_CHECK_HEADERS(sys/unistd.h unistd.h) AC_CHECK_HEADERS(ctype.h) AC_CHECK_HEADERS(wchar.h) AC_CHECK_HEADERS(wctype.h) AC_CHECK_HEADERS(iconv.h) AC_CHECK_HEADERS(semaphore.h) AC_CHECK_HEADERS(malloc.h) AC_CHECK_HEADERS(memory.h) AC_CHECK_HEADERS(stdio.h) AC_CHECK_HEADERS(stdlib.h) AC_CHECK_HEADERS(string.h strings.h) AC_CHECK_HEADERS(libc.h) AC_CHECK_HEADERS(dlfcn.h) AC_HEADER_DIRENT AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some.. AC_HEADER_STDC AC_HEADER_TIME AC_HEADER_STAT dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS(getcwd strcspn strdup strerror strstr strchr strrchr index rindex memcpy memcmp) AC_CHECK_FUNCS(vsnprintf) AC_CHECK_FUNCS(dlerror) dnl AC_PREFIX_DEFAULT(/usr/local/styx) AC_CACHE_CHECK( [where to install HTML documents], [ac_cv_htmldir],[ac_cv_htmldir='$(datadir)/doc']) htmldir=$ac_cv_htmldir AC_CACHE_CHECK( [where to install SGML documents], [ac_cv_sgmldir],[ac_cv_sgmldir='$(datadir)/doc']) sgmldir=$ac_cv_sgmldir AC_CACHE_CHECK( [where to install examples], [ac_cv_sampledir],[ac_cv_sampledir='$(datadir)/examples']) sampledir=$ac_cv_sampledir AC_SUBST(htmldir) AC_SUBST(sgmldir) AC_SUBST(sampledir) AC_OUTPUT( Makefile gen/Makefile genxml/Makefile libbase/Makefile libstyx/Makefile libutil/Makefile libxml/Makefile modstd/Makefile modext/Makefile pgm/Makefile pgmxml/Makefile inc/Makefile incxml/Makefile doc/Makefile examples/Makefile examples/example01/Makefile examples/example01/mx examples/example02/Makefile examples/example02/mx examples/example03/Makefile examples/example03/mx examples/example04/Makefile examples/example04/mx examples/example05/Makefile examples/example05/mx examples/example06/Makefile examples/example06/mx spe/Makefile spe/xsty.in spexml/Makefile spexml/xxml.in pat/Makefile )