1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
dnl
dnl TUN - Universal TUN/TAP device driver.
dnl Copyright (C) 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl $Id: configure.in,v 1.5 2000/05/09 01:58:55 maxk Exp $
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT()
AC_SUBST(OS_DIR)
dnl Guess host type.
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
dnl Check for programs.
AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
case $host_os in
*linux*)
OS_DIR="linux"
;;
*solaris*)
OS_DIR="solaris"
;;
*freebsd*)
OS_DIR="freebsd"
;;
*)
AC_MSG_ERROR( Unsupported OS )
;;
esac
AC_CONFIG_SUBDIRS($OS_DIR)
dnl Build release name
changequote(<,>)
REL=`echo 'substr($Name,0)$' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'`
TUN_VER="$REL `date '+%m/%d/%Y'`"; export TUN_VER
changequote([,])
AC_OUTPUT(Makefile)
|