diff --git a/autogen.sh b/autogen.sh index 9e8c3203e2a8b30bfc72b648b6a70ef6cccc196b..7b5a78ad4a02863184f02fb73c6dc9e333a03108 100755 --- a/autogen.sh +++ b/autogen.sh @@ -101,13 +101,13 @@ autoconf #### start configure with special environment -export CC=$COMP -export CXX=$CXXCOMP -export CPP="$COMP -E" +if [ $# -gt 0 ] ; then + export CC=$COMP + export CXX=$CXXCOMP + export CPP="$COMP -E" -export CFLAGS="$COMPFLAGS" -export CXXFLAGS="$COMPFLAGS" + export CFLAGS="$COMPFLAGS" + export CXXFLAGS="$COMPFLAGS" -if [ "$1" != "" ] ; then -./configure $DEFAULTCONFOPT $CONFOPT + ./configure $DEFAULTCONFOPT $CONFOPT fi