diff --git a/ChangeLog b/ChangeLog index 0e431734b8..65da35043b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +1999-11-26 Jean-Marc Lasgouttes + + * lib/configure, po/POTFILES.in: regenerated + + * autogen.sh: autogenerate lib/configure from lib/configure.m4 + + * config/lib_configure.m4: removed + + * lib/configure.m4: new file (was config/lib_configure.m4) + + * configure.in: do not test for rtti, since we do not use it. + 1999-11-26 Lars Gullik Bjønnes * src/support/lyxstring.C (lyxstring::Srep): Changed to use a diff --git a/autogen.sh b/autogen.sh index f76c35df62..a4086511e7 100755 --- a/autogen.sh +++ b/autogen.sh @@ -39,6 +39,24 @@ else exit fi +# Autogenerate lib/configure.m4. We need GNU m4 for that and thus have +# to try several ones. +ok=no +for prog in $M4 gm4 gnum4 m4 ; do + case `$prog --help < /dev/null 2>&1 | grep traditional` in + *traditional*) echo "Building lib/configure" + rm -f lib/configure + $prog lib/configure.m4 >lib/configure + ok=yes + break ;; + *) ;; + esac +done +if test $ok = no ; then + echo "GNU m4 not found -- aborting" + exit +fi + echo "Creating POTFILES.in..." cat < tmppot # diff --git a/configure.in b/configure.in index 623112f2eb..36682055ec 100644 --- a/configure.in +++ b/configure.in @@ -69,7 +69,8 @@ LYX_CXX_STL_STACK LYX_CXX_STL_STRING LYX_CXX_NAMESPACES LYX_CXX_CHEADERS -LYX_CXX_RTTI +dnl we disable rtti for now +dnl LYX_CXX_RTTI AC_CHECK_HEADERS(ostream istream) LYX_CXX_STL_MODERN_STREAMS @@ -195,15 +196,6 @@ LYX_FUNC_SELECT_ARGTYPES # SunOS 4.1.3 does not have strerror and atexit AC_REPLACE_FUNCS(strerror atexit) -dnl This check should be removed. If the compiler does not understand -dnl bool it is so broken that we should not support it. (Lgb) -dnl AC_CACHE_CHECK([for bool type],lyx_cv_have_bool,[ -dnl AC_TRY_LINK(, [bool foo = true;], lyx_cv_have_bool=yes,lyx_cv_have_bool=no)]) -dnl if test $lyx_cv_have_bool = 'yes' ; then -dnl AC_DEFINE(HAVE_bool,1, -dnl [Define if the bool type is known to your compiler]) -dnl fi - ### and now some special lyx flags. AC_ARG_WITH(two-colors,[ --with-two-colors use two color pixmaps], [AC_DEFINE(TWO_COLOR_ICONS) diff --git a/lib/configure b/lib/configure index 35951e5fcc..e470a45adc 100755 --- a/lib/configure +++ b/lib/configure @@ -129,6 +129,59 @@ if test -z "$LATEX" ; then lyx_check_config=no fi +if test x$lyx_check_config != x ; then +echo $ac_n "checking for the pdflatex program""... $ac_c" +echo "$ac_t""" +PDFLATEX= +for ac_prog in pdflatex +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog ; ac_word=$2 +if test -n "$ac_word"; then + echo $ac_n "+checking for \"$ac_word\"""... $ac_c" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -x $ac_dir/$ac_word; then + PDFLATEX="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" + + if test -n "$PDFLATEX"; then + ac_result=yes + else + ac_result=no + fi + +## Check whether this is really LaTeX2e +rm -f chklatex.ltx +cat >chklatex.ltx </dev/null \ + | grep 'ThisIsLaTeX2e' >/dev/null; then + : +else + LATEX= + ac_result="not useable" +fi +rm -f chklatex.ltx chklatex.log + echo "$ac_t""$ac_result" + test -n "$PDFLATEX" && break +fi +done + +if test -z "$PDFLATEX" ; then + PDFLATEX=none +fi + +fi # Search for an installed reLyX or a ready-to-install one save_PATH=${PATH} diff --git a/config/lib_configure.m4 b/lib/configure.m4 similarity index 100% rename from config/lib_configure.m4 rename to lib/configure.m4 diff --git a/po/POTFILES.in b/po/POTFILES.in index 13bfaf452b..5755ba3ba6 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -23,6 +23,7 @@ src/FontLoader.C src/form1.C src/gettext.h src/insets/figinset.C +src/insets/figinset.h src/insets/form_url.C src/insets/insetbib.C src/insets/inseterror.C @@ -30,6 +31,7 @@ src/insets/inseterror.h src/insets/insetinclude.C src/insets/insetindex.C src/insets/insetinfo.C +src/insets/insetinfo.h src/insets/insetloa.h src/insets/insetlof.h src/insets/insetlot.h @@ -37,6 +39,7 @@ src/insets/insetparent.h src/insets/insetref.C src/insets/insettoc.h src/insets/inseturl.C +src/insets/inseturl.h src/insets/lyxinset.h src/intl.C src/kbmap.C @@ -64,6 +67,7 @@ src/LyXView.C src/mathed/formula.C src/mathed/formula.h src/mathed/formulamacro.C +src/mathed/formulamacro.h src/mathed/math_forms.C src/mathed/math_panel.C src/menus.C