I've found a porting issue on Solaris.

The shell script lib/configure is GNU-specific. There is
1. a badly placed ! operator for test of file existance and
2. an problem with grep (extended expression syntax)

These problems are fixed for the 1.3.x Branch with the
attached patch...

Hope it's of any help and acceptable.

Greetings,

Stephan
Index: configure.m4
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/configure.m4,v
retrieving revision 1.60.2.17
diff -u -p -r1.60.2.17 configure.m4
--- configure.m4        2005/03/25 15:35:52     1.60.2.17
+++ configure.m4        2005/04/20 09:51:07
@@ -431,7 +431,7 @@ changequote(,)dnl
             # 5: if the macro did not have an optional argument, provide one 
             #    (equal to the class name)
             # 6: remove brackets and replace with correctly quoted entries
-            grep '\\Declare\(LaTeX\|DocBook\|LinuxDoc\)Class' "$file" \
+            egrep '\\Declare(LaTeX|DocBook|LinuxDoc)Class' "$file" \
              | sed -e 's/^.*\DeclareLaTeXClass *\(.*\)/\1 "false"/' \
                    -e 's/^.*\DeclareDocBookClass *\(.*\)/\1 
"'$bool_docbook'"/' \
                    -e 's/^.*\DeclareLinuxDocClass *\(.*\)/\1 
"'$bool_linuxdoc'"/' \
@@ -447,7 +447,7 @@ changequote(,)dnl
 else
   MSG_RESULT(auto)
   rm -f wrap_chkconfig.ltx chkconfig.vars chkconfig.classes chklayouts.tex
-  if ! test -r "chkconfig.ltx" ; then
+  if test ! -r "chkconfig.ltx" ; then
     ln -s "${srcdir}"/chkconfig.ltx .
     rmlink=true
   fi
@@ -465,7 +465,7 @@ EOF
       *) if test -r "$file" ; then 
            class=`echo $file | sed -e 's%^.*layouts/\(.*\)\.layout$%\1%'`
           # Generate the proper TestDocClass command for this layout
-          grep '\\Declare\(LaTeX\|DocBook\|LinuxDoc\)Class' "$file" \
+          egrep '\\Declare(LaTeX|DocBook|LinuxDoc)Class' "$file" \
              | sed -e 's/^\# *\(.*\)$/\\TestDocClass{'${class}'}{\1}/' 
         fi ;;
     esac

Reply via email to