]> git.lyx.org Git - features.git/commitdiff
fix cygwin detection
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 15 Jul 2002 11:40:21 +0000 (11:40 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 15 Jul 2002 11:40:21 +0000 (11:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4639 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/configure.m4

index 6d6cc37791ceaba761b2cbe3120e49c1b59bf9ed..6d75616a2da5e12bc1665b05c7aead8aed35f734 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-15  Soeren Pietsch  <SPietsch@gmx.de>
+
+       * lib/configure.m4: fix the detection of cygwin when the shell is
+       not bash
+
 2002-07-12  Angus Leeming  <leeming@lyx.org>
 
        * lyxpreview2ppm.sh: use the pnmraw device in preference to pnm.
index 1675d00730349a3c0c403c95d72b2907ff67a992..25d8440d936006539e7332c2de45ba5de46fed9a 100644 (file)
@@ -164,11 +164,12 @@ if test ! -r ${srcdir}/chkconfig.ltx ; then
 fi
 
 #### Adjust PATH for Win32 (Cygwin)
-if test "x$OSTYPE" = xcygwin; then
-  echo "configure: cygwin detected; path correction"
-  srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /`
-  echo "srcdir=${srcdir}"
-fi
+case `uname -s` in
+   CYGWIN*)
+     echo "configure: cygwin detected; path correction"
+     srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /`
+     echo "srcdir=${srcdir}" ;;
+esac
 
 #### Create the build directories if necessary
 for dir in bind clipart doc examples help images kbd layouts reLyX \