]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Francesco Chemolli <kinkie@squid-cache.org>
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Dec 2010 15:09:15 +0000 (08:09 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 21 Dec 2010 15:09:15 +0000 (08:09 -0700)
Port from 3.2: simplified OS host and version detection

* part of the configure upgrade. These variables are used by some features now.
  This makes backporting simpler.

configure.ac

index 9cb2470f5b3755b945eeb1b9c5694421e55609a2..ee3d91424a5e26d113282cff4f973c761d596f0d 100644 (file)
@@ -27,6 +27,18 @@ AC_PROG_CXX
 AC_LANG([C++])
 AC_CANONICAL_HOST
 
+AC_MSG_CHECKING([simplified host os])
+simple_host_os=`echo $host_os|sed 's/[0-9].*//g;s/-.*//g'`
+squid_host_os_version=`echo $host_os|tr -d "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"`
+if test -n "$squid_host_os_version"; then
+        squid_host_os="`echo $simple_host_os| sed s/$squid_host_os_version//g`"
+else
+        squid_host_os="$simple_host_os"
+fi 
+AC_MSG_RESULT($squid_host_os (version $squid_host_os_version))
+# on windows squid_host_os is either mingw or cygwin, version is 32
+
+
 dnl Make the squid top srcdir available to sub-packages as --with-squid=PATH
 new_configure_args="$ac_configure_args --with-squid=$ac_abs_confdir"
 ac_configure_args="$new_configure_args"