summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-10-03 14:33:37 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-10-03 14:33:37 +0200
commit5a06808210ba0d52c06c34dee124f1a9fd95d92e (patch)
tree164ff0d0186927a64bcc9737c50dd37896f15918 /configure
parent75fc3665a86af37b1199128c3debe973f0cae8ea (diff)
downloadeurephia-5a06808210ba0d52c06c34dee124f1a9fd95d92e.tar.gz
eurephia-5a06808210ba0d52c06c34dee124f1a9fd95d92e.tar.xz
eurephia-5a06808210ba0d52c06c34dee124f1a9fd95d92e.zip
Moved away from using environment variable for OPENVPN_SRC_DIR. Forcing use of ./configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure b/configure
index 59d0ab8..51edf0f 100755
--- a/configure
+++ b/configure
@@ -18,7 +18,7 @@ EOF
PARAMS=""
DB=""
FW=""
-export OPENVPN_SRC_DIR=""
+OPENVPN_SRC_DIR=""
while [ ! -z "$1" ]; do
case $1 in
-h|--help)
@@ -26,7 +26,7 @@ while [ ! -z "$1" ]; do
exit 0
;;
-s|--openvpn-src)
- export OPENVPN_SRC_DIR="$2"
+ OPENVPN_SRC_DIR="$2"
shift
;;
-D|--debug)
@@ -53,12 +53,12 @@ while [ ! -z "$1" ]; do
shift
done
-if [ -z $(which cmake) ]; then
+if [ -z "$(which cmake)" ]; then
echo "To build eurephia, you need to install cmake (at least version 2.6)"
exit 1;
fi
-if [ -z ${OPENVPN_SRC_DIR} ]; then
+if [ -z "${OPENVPN_SRC_DIR}" ]; then
echo "You need to give the --openvpn-src <path> option"
exit 1;
fi
@@ -68,7 +68,8 @@ if [ ${DB} = 0 ]; then
exit 1;
fi
-rm -f CMakeCache.txt
+rm -f CMakeCache.txt CMakeList.txt
+cat CMakeLists.in | sed "s#\@\@OPENVPN_SRC\@\@#${OPENVPN_SRC_DIR}#" > CMakeLists.txt
cmake . ${PARAMS}
ec=$?
if [ $ec = 0 ]; then