]> git.lyx.org Git - lyx.git/blobdiff - lib/configure.m4
fix bug when reading bind files
[lyx.git] / lib / configure.m4
index 8c73c77db2cb7a5ea4c6bce5342e3f70b7a7aad4..2ad6325e8260dfb62d8a58aef250c5cc3ca57738 100644 (file)
@@ -94,6 +94,16 @@ changequote(,)dnl
 dnl ######### End M4 macros #############################################
 
 
+# Be Bourne compatible (taken from autoconf 2.53)
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+
+
 ####some configuration variables
 outfile=lyxrc.defaults
 rc_entries=
@@ -268,7 +278,7 @@ SEARCH_PROG([for a DVI to PDF converter],dvi_to_pdf_command,dvipdfm)
 test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i"
 
 # We have a script to convert previewlyx to ppm
-lyxpreview_to_bitmap_command="lyxpreview2bitmap.sh"
+lyxpreview_to_bitmap_command='$$s/lyxpreview2bitmap.sh'
 
 # Search a *roff program (used to translate tables in ASCII export)
 LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl
@@ -436,7 +446,7 @@ cat >$outfile <<EOF
 \\Format agr      agr  GRACE           ""
 \\Format bmp      bmp  BMP             ""
 \\Format date     ""    "date command"  ""
-\\Format dateout  ""    "date (output)" ""
+\\Format dateout  "tmp" "date (output)" ""
 \\Format docbook  sgml DocBook         B
 \\Format dvi     dvi   DVI             D
 \\Format eps     eps   EPS             ""