mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-09 03:00:41 +03:00
0bbf08fea7
* use OPENSSL_ROOT_DIR * add special .configure handling for osx * move readline, curses to cedar Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
42 lines
1.2 KiB
Bash
Executable File
42 lines
1.2 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
|
|
|
|
if [ ! -d "tmp" ]; then
|
|
mkdir tmp
|
|
fi
|
|
|
|
if [ ! -z ${CMAKE_INSTALL_PREFIX+x} ]; then
|
|
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
|
|
fi
|
|
|
|
if [ -z ${OPENSSL_ROOT_DIR} ]; then
|
|
unameOut="$(uname -s)"
|
|
if [ "$unameOut" = "Darwin" ]; then
|
|
echo "Environment variable OPENSSL_ROOT_DIR not set, using default Homebrew path: /usr/local/opt/openssl/"
|
|
export OPENSSL_ROOT_DIR="/usr/local/opt/openssl/"
|
|
fi
|
|
fi
|
|
|
|
(cd tmp && cmake ${CMAKE_FLAGS} .. || exit 1)
|
|
|
|
|
|
echo ""
|
|
|
|
echo "The Makefile is generated. Run 'make -C tmp' to build SoftEther VPN."
|