"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/configure.in" (21 May 2007, 1615 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. 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(src/addr.cc)
    3 AC_CONFIG_AUX_DIR(config)
    4 AM_CONFIG_HEADER(config.h)
    5 AM_INIT_AUTOMAKE(portfwd,"0.29")
    6 
    7 dnl Checks for programs.
    8 AC_PROG_CC
    9 AC_PROG_CXX
   10 AC_PROG_YACC
   11 AM_PROG_LEX
   12 AC_PROG_RANLIB
   13 
   14 dnl Checks for library, function.
   15 AC_CHECK_LIB(socket, socket) 
   16 AC_CHECK_LIB(nsl, gethostbyname) 
   17 
   18 dnl Checks for operating systems.
   19 AC_AIX
   20 
   21 dnl Checks for header files.
   22 AC_HEADER_STDC
   23 AC_HEADER_SYS_WAIT
   24 AC_CHECK_HEADERS(getopt.h fcntl.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h sys/termios.h sys/socket.h)
   25 
   26 dnl Checks for typedefs, structures, and compiler characteristics.
   27 AC_TYPE_PID_T
   28 
   29 dnl Checks for library functions.
   30 AC_FUNC_ALLOCA
   31 dnl AC_PROG_GCC_TRADITIONAL
   32 AC_FUNC_MEMCMP
   33 AC_TYPE_SIGNAL
   34 AC_CHECK_FUNCS(getopt_long select socket strdup strerror)
   35 
   36 dnl Checks for includes declarations.
   37 dnl
   38 dnl Only for Autoconf 2.50+:
   39 dnl AC_CHECK_DECLS([getopt], , , includes=stdlib.h)
   40 
   41 dnl AC_EGREP_HEADER(getopt, stdlib.h,
   42 dnl [AC_DEFINE(HAVE_STDLIB_DECL_GETOPT, 1, [Define if you have the getopt() declared in <stdlib.h>])]
   43 dnl )
   44 
   45 dnl Checks for MSG_PROXY symbol
   46 AC_TRY_RUN(
   47 [
   48 #include <sys/socket.h>
   49 int main()
   50 {
   51 #ifdef MSG_PROXY
   52   exit(0);
   53 #else
   54   exit(1);
   55 #endif
   56 }
   57 ], 
   58 [AC_DEFINE(HAVE_MSG_PROXY, 1, [Define if you have MSG_PROXY in <sys/socket.h>])],
   59 echo "Transparent proxy support is NOT present in kernel",
   60 echo "Transparent proxy support disabled by cross-compiling"
   61 )
   62 
   63 LIBS="$LIBS $LEXLIB"
   64 AC_SUBST(LIBS)
   65 
   66 REAL_CC=$CC
   67 CC=$CXX
   68 AC_SUBST(REAL_CC)
   69 AC_SUBST(CC)
   70 
   71 AC_OUTPUT(getopt/Makefile src/Makefile tools/Makefile doc/Makefile Makefile)
   72