"Fossies" - the Fresh Open Source Software Archive

Member "hatools-2.14/configure.in" (16 Mar 2010, 1366 Bytes) of package /linux/privat/old/hatools-2.14.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT
    3 AC_LANG(C)
    4 AC_CONFIG_SRCDIR([hatimerun.c])
    5 AM_INIT_AUTOMAKE(hatools, "2.14")
    6 AC_SUBST(DATE, "2010-03-16")
    7 AC_CONFIG_HEADERS([config.h])
    8 
    9 dnl Checks for programs.
   10 AC_PROG_CC
   11 AC_PROG_INSTALL
   12 AC_PROG_AWK
   13 AC_PROG_LN_S
   14 
   15 dnl Checks for libraries.
   16 
   17 dnl Checks for header files.
   18 AC_HEADER_STDC
   19 AC_HEADER_SYS_WAIT
   20 AC_CHECK_HEADERS(fcntl.h unistd.h)
   21 
   22 dnl Checks for typedefs, structures, and compiler characteristics.
   23 AC_C_CONST
   24 AC_TYPE_PID_T
   25 
   26 dnl Checks for library functions.
   27 AC_FUNC_VPRINTF
   28 AC_CHECK_FUNCS(strerror)
   29 AC_CHECK_FUNCS(setenv)
   30 # solaris requires explicit -lposix4 for nanosleep
   31 AC_CHECK_LIB(posix4, nanosleep, [AC_SUBST(MAYBE_LIBPOSIX4, "-lposix4")] )
   32 
   33 ./mk_siglist.sh
   34 AC_CHECK_FUNCS(sys_signame, ,
   35 AC_MSG_CHECKING([output of \"kill -l\" for signallist])
   36 AC_TRY_COMPILE([#include "sys_signame.h"], [], 
   37 	AC_MSG_RESULT(ok)
   38 	AC_DEFINE(HATOOLS_SYS_SIGNAME_H, [1], [HAVE_SYS_SIGNAME]),
   39 	AC_MSG_RESULT(fail)
   40 	AC_MSG_WARN([Using Standard POSIX signals as fallback])
   41 	AC_MSG_CHECKING([for POSIX signals])
   42 	AC_TRY_COMPILE([#include "sys_signame_posix.h"], [],
   43 		AC_MSG_RESULT(ok),
   44 		AC_MSG_RESULT(fail)
   45 		AC_MSG_ERROR([OOPS! You platform even has problems with the POSIX signals])
   46 		AC_MSG_ERROR([You can still edit sys_signame.h by manual])
   47 	)	
   48 )
   49 )
   50 AC_OUTPUT(Makefile halockrun.1 hatimerun.1)