[complement-svn] SF.net SVN: complement: [1905] branches/complement-sockios/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2008-06-26 05:41:27
|
Revision: 1905 http://complement.svn.sourceforge.net/complement/?rev=1905&view=rev Author: complement Date: 2008-06-25 22:41:25 -0700 (Wed, 25 Jun 2008) Log Message: ----------- don't duplicate options in config.mak, that has default values in makefiles Modified Paths: -------------- branches/complement-sockios/explore/Makefiles/ChangeLog branches/complement-sockios/explore/configure Modified: branches/complement-sockios/explore/Makefiles/ChangeLog =================================================================== --- branches/complement-sockios/explore/Makefiles/ChangeLog 2008-06-26 05:41:09 UTC (rev 1904) +++ branches/complement-sockios/explore/Makefiles/ChangeLog 2008-06-26 05:41:25 UTC (rev 1905) @@ -1,3 +1,8 @@ +2008-06-07 Petr Ovtchenkov <pt...@is...> + + * configure: don't duplicate options in config.mak, that + has default values in makefiles. + 2008-06-06 Petr Ovtchenkov <pt...@is...> * gmake/targetdirs.mak: use $(DESTDIR) as in common practice Modified: branches/complement-sockios/explore/configure =================================================================== --- branches/complement-sockios/explore/configure 2008-06-26 05:41:09 UTC (rev 1904) +++ branches/complement-sockios/explore/configure 2008-06-26 05:41:25 UTC (rev 1905) @@ -1,6 +1,6 @@ #!/bin/sh -# Time-stamp: <08/06/06 17:44:52 yeti> +# Time-stamp: <08/06/07 15:22:06 yeti> base=`cd \`dirname $0\`; echo $PWD` @@ -86,27 +86,26 @@ # write_option "${PWD}/external/boost" BOOST_DIR # fi - if [ "$stlport_set" = "" ]; then - # write_option "${PWD}/external/STLport" STLPORT_DIR - write_option "1" WITHOUT_STLPORT - fi + # Set in Makefiles/gmake/extern.mak + # if [ -z "${stlport_set}" ]; then + # # write_option "${PWD}/external/STLport" STLPORT_DIR + # write_option "1" WITHOUT_STLPORT + # fi + # write_option "${PWD}/build/" BASE_INSTALL_DIR '${DESTDIR}' - if [ "$compiler_family_set" = "" ]; then - write_option gcc COMPILER_NAME - fi - # if [ "$prefix_set" = "" ]; then + + # Set in Makefiles/gmake/top.mak + # if [ -z "${compiler_family_set}" ]; then + # write_option gcc COMPILER_NAME + # fi + + # Set in Makefiles/gmake/targetdirs.mak + # if [ -z "${prefix_set}" ]; then # write_option "/usr/local" BASE_INSTALL_DIR '${DESTDIR}' # fi } -case $# in - 0) - if [ ! -f ${configmak} ]; then - default_settings - fi - exit 0 - ;; -esac +[ $# -eq 0 ] && { >${configmak}; default_settings; exit 0; } for a in $@ ; do case $a in @@ -121,8 +120,7 @@ esac done -rm -f ${configmak} -touch ${configmak} +>${configmak} while : do @@ -207,7 +205,7 @@ ;; --prefix=*) write_option "$option" BASE_INSTALL_DIR '${DESTDIR}' - # prefix_set=y + prefix_set=y ;; --bindir=*) write_option "$option" INSTALL_BIN_DIR '${DESTDIR}' @@ -221,46 +219,46 @@ esac done -if [ "$CXX" != "" ]; then - if [ "$cxx_set" != "" ]; then +if [ -n "${CXX}" ]; then + if [ -n "${cxx_set}" ]; then echo "Both --with-cxx and \$CXX set, using the first" - elif [ "$target_set" = "" ]; then - write_option "$CXX" _FORCE_CXX + elif [ -z "${target_set}" ]; then + write_option "${CXX}" _FORCE_CXX else echo "For cross-compilation with gcc use --target option only" fi - if [ "$CC" = "" ] && [ "$cc_set" = "" ]; then + if [ -z "${CC}" -a -z "${cc_set}" ]; then echo "\$CXX set, but I don't see \$CC!" fi fi -if [ "$CC" != "" ]; then - if [ "$cxx_set" != "" ]; then +if [ -n "${CC}" ]; then + if [ -n "${cxx_set}" ]; then echo "Both --with-cc and \$CC set, using the first" else - write_option "$CC" _FORCE_CC + write_option "${CC}" _FORCE_CC fi fi -if [ "$CXXFLAGS" != "" ]; then - if [ "$cxxflags_set" = "" ]; then - write_option "$CXXFLAGS" EXTRA_CXXFLAGS +if [ -n "${CXXFLAGS}" ]; then + if [ -z "${cxxflags_set}" ]; then + write_option "${CXXFLAGS}" EXTRA_CXXFLAGS else echo "Both --with-extra-cxxflags and \$CXXFLAGS set, using the first" fi fi -if [ "$CFLAGS" != "" ]; then - if [ "$cflags_set" = "" ]; then - write_option "$CFLAGS" EXTRA_CFLAGS +if [ -n "${CFLAGS}" ]; then + if [ -z "${cflags_set}" ]; then + write_option "${CFLAGS}" EXTRA_CFLAGS else echo "Both --with-extra-cflags and \$CFLAGS set, using the first" fi fi -if [ "$LDFLAGS" != "" ]; then - if [ "$ldflags_set" = "" ]; then - write_option "$LDFLAGS" EXTRA_LDFLAGS +if [ -n "${LDFLAGS}" ]; then + if [ -z "${ldflags_set}" ]; then + write_option "${LDFLAGS}" EXTRA_LDFLAGS else echo "Both --with-extra-ldflags and \$LDFLAGS set, using the first" fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |