]> arthur.barton.de Git - bup.git/blobdiff - config/configure.inc
Get TZ offset from C localtime, given tm_gmtoff
[bup.git] / config / configure.inc
index 2f293deb44f60eee7cb3e460ebdb53062798bb9f..f813656d081749ab20c8c2220433adab85a68fa8 100644 (file)
@@ -655,7 +655,7 @@ EOF
     AC_PROG_CPP
     AC_PROG_INSTALL
 
-    ac_os=`uname -s | sed 's/[-_].*//'`
+    ac_os=`uname -s | sed 's/[-_].*//; s/[^a-zA-Z0-9]/_/g'`
     _os=`echo $ac_os | tr '[a-z]' '[A-Z]'`
     AC_DEFINE OS_$_os  1
     eval OS_${_os}=1