]> code.delx.au - gnu-emacs/blobdiff - configure.ac
Further shr quotation mark fill fixes
[gnu-emacs] / configure.ac
index 6d0ba7c851a2428ad4a0e4b1d90cabf18d77695c..ea76baf8f8fdb431ce2ae2efcb5a867bc013b19f 100644 (file)
@@ -26,16 +26,17 @@ AC_INIT(emacs, 24.3.50)
 
 if test "x$MSYSTEM" = "xMINGW32"
 then
-   . $srcdir/nt/mingw-cfg.site
-
-   if test ${srcdir:0:1} = "/" -o ${srcdir:1:1} = ":"
-   then
-       # srcdir is an absolute path.  In this case, force the format
-       # "/c/foo/bar", to simplify later conversions to native Windows
-       # format ("c:/foo/bar")
-       srcdir=`cd "${srcdir}" && pwd -W`
-       srcdir="/${srcdir:0:1}${srcdir:2}"
-   fi
+  . $srcdir/nt/mingw-cfg.site
+
+  case $srcdir in
+    /* | ?:*)
+      # srcdir is an absolute path.  In this case, force the format
+      # "/c/foo/bar", to simplify later conversions to native Windows
+      # format ("c:/foo/bar")
+      srcdir=`cd "${srcdir}" && pwd -W`
+      srcdir="/${srcdir:0:1}${srcdir:2}"
+      ;;
+  esac
 fi
 
 dnl Set emacs_config_options to the options of 'configure', quoted for the shell,
@@ -77,7 +78,7 @@ for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
   optsep=' '
 done
 
-AC_CONFIG_HEADER(src/config.h:src/config.in)
+AC_CONFIG_HEADERS(src/config.h:src/config.in)
 AC_CONFIG_SRCDIR(src/lisp.h)
 AC_CONFIG_AUX_DIR(build-aux)
 dnl Fairly arbitrary, older versions might work too.