mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 02:49:52 +03:00
c5e5d7e93c
Add autoconf and automake capabilities to SoftEther so that it can be built like this: # autoreconf --force --install # ./configure # make install DESTDIR=/tmp/softether All standard configure parameters are supported, plus: # ./configure --enable-debug Autotools support makes porting, cross compiling, and optimization much easier. These GNU autoconf-archive components are used for dependency checking: * ax_check_openssl.m4 * ax_check_zlib.m4 * ax_lib_readline.m4 * ax_pthread.m4 * ax_with_curses.m4 NB: http://www.gnu.org/software/autoconf-archive/
84 lines
1.5 KiB
Bash
Executable File
84 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
echo '---------------------------------------------------------------------'
|
|
echo 'SoftEther VPN for Unix'
|
|
echo
|
|
echo 'Copyright (c) SoftEther VPN Project at University of Tsukuba, Japan.'
|
|
echo 'Copyright (c) Daiyuu Nobori. All Rights Reserved.'
|
|
echo
|
|
echo 'This program is free software; you can redistribute it and/or'
|
|
echo 'modify it under the terms of the GNU General Public License'
|
|
echo 'version 2 as published by the Free Software Foundation.'
|
|
echo
|
|
echo 'Read and understand README.TXT, LICENSE.TXT and WARNING.TXT before use.'
|
|
echo '---------------------------------------------------------------------'
|
|
echo
|
|
|
|
echo 'Welcome to the corner-cutting configure script !'
|
|
echo
|
|
echo 'Select your operating system below:'
|
|
echo ' 1: Linux'
|
|
echo ' 2: FreeBSD'
|
|
echo ' 3: Solaris'
|
|
echo ' 4: Mac OS X'
|
|
echo ' 5: OpenBSD'
|
|
echo
|
|
echo -n 'Which is your operating system (1 - 5) ? : '
|
|
read TMP
|
|
echo
|
|
OS=""
|
|
if test "$TMP" = "1"
|
|
then
|
|
OS="linux"
|
|
fi
|
|
if test "$TMP" = "2"
|
|
then
|
|
OS="freebsd"
|
|
fi
|
|
if test "$TMP" = "3"
|
|
then
|
|
OS="solaris"
|
|
fi
|
|
if test "$TMP" = "4"
|
|
then
|
|
OS="macos"
|
|
fi
|
|
if test "$TMP" = "5"
|
|
then
|
|
OS="openbsd"
|
|
fi
|
|
|
|
if test "$OS" = ""
|
|
then
|
|
echo "Wrong number."
|
|
exit 1
|
|
fi
|
|
|
|
echo 'Select your CPU bits below:'
|
|
echo ' 1: 32-bit'
|
|
echo ' 2: 64-bit'
|
|
echo
|
|
echo -n 'Which is the type of your CPU (1 - 2) ? : '
|
|
read TMP
|
|
echo
|
|
CPU=""
|
|
if test "$TMP" = "1"
|
|
then
|
|
CPU="32bit"
|
|
fi
|
|
if test "$TMP" = "2"
|
|
then
|
|
CPU="64bit"
|
|
fi
|
|
|
|
if test "$CPU" = ""
|
|
then
|
|
echo "Wrong number."
|
|
exit 1
|
|
fi
|
|
|
|
cp src/makefiles/${OS}_${CPU}.mak Makefile
|
|
|
|
echo "The Makefile is generated. Run 'make' to build SoftEther VPN."
|
|
|