more work

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4909 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-08-08 18:53:23 +00:00
parent 15d40ab329
commit a07e20bf57
8 changed files with 210 additions and 380 deletions

View File

@ -1,3 +1,7 @@
2002-08-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
* further work on 2.53 stuff.
2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net> 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
* lyxinclude.m4 (LYX_PROG_CXX): remove the double -Winline * lyxinclude.m4 (LYX_PROG_CXX): remove the double -Winline

View File

@ -66,7 +66,7 @@ LYX_USE_FRONTEND
### Check for a C++ compiler ### Check for a C++ compiler
LYX_PROG_CXX LYX_PROG_CXX
### Some checks on what the C++ compiler can(not) do ### Some checks on what the C++ compiler can(not) do
AC_LANG_CPLUSPLUS AC_LANG(C++)
dnl we do not need that currently (and probably all our supported dnl we do not need that currently (and probably all our supported
dnl compiler allow that) dnl compiler allow that)
dnl LYX_CXX_PARTIAL dnl LYX_CXX_PARTIAL
@ -215,7 +215,7 @@ LYX_USE_XFORMS_IMAGE_LOADER
### Setup GNU gettext ### Setup GNU gettext
dnl GNU gettext is written in C dnl GNU gettext is written in C
AC_LANG_C AC_LANG(C)
# Some tests that may be useful for gettext # Some tests that may be useful for gettext
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
@ -228,7 +228,7 @@ esac
AC_SUBST(LINGUAS) AC_SUBST(LINGUAS)
AC_LANG_CPLUSPLUS AC_LANG(C++)
# some standard header files # some standard header files
AC_HEADER_DIRENT AC_HEADER_DIRENT
@ -256,9 +256,9 @@ dnl This is a slight hack: the tests generated by autoconf 2.52 do not
dnl work correctly because of some conflict with stdlib.h with g++ 2.96 dnl work correctly because of some conflict with stdlib.h with g++ 2.96
dnl We aim to remove this eventually, since we should test as much as dnl We aim to remove this eventually, since we should test as much as
dnl possible with the compiler which will use the functions (JMarc) dnl possible with the compiler which will use the functions (JMarc)
AC_LANG_C AC_LANG(C)
AC_CHECK_FUNCS(memmove memset strchr putenv setenv mkfifo mkstemp mktemp) AC_CHECK_FUNCS(memmove memset strchr putenv setenv mkfifo mkstemp mktemp)
AC_LANG_CPLUSPLUS AC_LANG(C++)
dnl Until this is fixed in autoconf we provide our own version dnl Until this is fixed in autoconf we provide our own version
LYX_FUNC_SELECT_ARGTYPES LYX_FUNC_SELECT_ARGTYPES

View File

@ -12,24 +12,24 @@ AC_DEFUN(AM_PATH_GTKMM,
dnl Get the cflags and libraries from the gtkmm-config script dnl Get the cflags and libraries from the gtkmm-config script
dnl dnl
AC_ARG_WITH(gtkmm-prefix,[ --with-gtkmm-prefix=PREFIX AC_ARG_WITH(gtkmm-prefix,[ --with-gtkmm-prefix=PREFIX
Prefix where GTK-- is installed (optional)], Prefix where GTK-- is installed (optional)],
gtkmm_config_prefix="$withval", gtkmm_config_prefix="") gtkmm_config_prefix="$withval", gtkmm_config_prefix="")
AC_ARG_WITH(gtkmm-exec-prefix,[ --with-gtkmm-exec-prefix=PREFIX AC_ARG_WITH(gtkmm-exec-prefix,[ --with-gtkmm-exec-prefix=PREFIX
Exec prefix where GTK-- is installed (optional)], Exec prefix where GTK-- is installed (optional)],
gtkmm_config_exec_prefix="$withval", gtkmm_config_exec_prefix="") gtkmm_config_exec_prefix="$withval", gtkmm_config_exec_prefix="")
AC_ARG_ENABLE(gtkmmtest, [ --disable-gtkmmtest Do not try to compile and run a test GTK-- program], AC_ARG_ENABLE(gtkmmtest, [ --disable-gtkmmtest Do not try to compile and run a test GTK-- program],
, enable_gtkmmtest=yes) , enable_gtkmmtest=yes)
if test x$gtkmm_config_exec_prefix != x ; then if test x$gtkmm_config_exec_prefix != x ; then
gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix" gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
if test x${GTKMM_CONFIG+set} != xset ; then if test x${GTKMM_CONFIG+set} != xset ; then
GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
fi fi
fi fi
if test x$gtkmm_config_prefix != x ; then if test x$gtkmm_config_prefix != x ; then
gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix" gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
if test x${GTKMM_CONFIG+set} != xset ; then if test x${GTKMM_CONFIG+set} != xset ; then
GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
fi fi
fi fi
@ -42,16 +42,16 @@ AC_ARG_ENABLE(gtkmmtest, [ --disable-gtkmmtest Do not try to compile and ru
no_gtkmm=yes no_gtkmm=yes
else else
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG(C++)
GTKMM_CFLAGS=`$GTKMM_CONFIG $gtkmm_config_args --cflags` GTKMM_CFLAGS=`$GTKMM_CONFIG $gtkmm_config_args --cflags`
GTKMM_LIBS=`$GTKMM_CONFIG $gtkmm_config_args --libs` GTKMM_LIBS=`$GTKMM_CONFIG $gtkmm_config_args --libs`
gtkmm_config_major_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \ gtkmm_config_major_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
gtkmm_config_minor_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \ gtkmm_config_minor_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
gtkmm_config_micro_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \ gtkmm_config_micro_version=`$GTKMM_CONFIG $gtkmm_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_gtkmmtest" = "xyes" ; then if test "x$enable_gtkmmtest" = "xyes" ; then
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
@ -87,8 +87,8 @@ main ()
(gtkmm_micro_version != $gtkmm_config_micro_version)) (gtkmm_micro_version != $gtkmm_config_micro_version))
{ {
printf("\n*** 'gtkmm-config --version' returned %d.%d.%d, but GTK-- (%d.%d.%d)\n", printf("\n*** 'gtkmm-config --version' returned %d.%d.%d, but GTK-- (%d.%d.%d)\n",
$gtkmm_config_major_version, $gtkmm_config_minor_version, $gtkmm_config_micro_version, $gtkmm_config_major_version, $gtkmm_config_minor_version, $gtkmm_config_micro_version,
gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version); gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
printf ("*** was found! If gtkmm-config was correct, then it is best\n"); printf ("*** was found! If gtkmm-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK--. You may also be able to fix the error\n"); printf ("*** to remove the old version of GTK--. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
@ -102,7 +102,7 @@ main ()
/* /*
else if ((gtkmm_major_version != GTKMM_MAJOR_VERSION) || else if ((gtkmm_major_version != GTKMM_MAJOR_VERSION) ||
(gtkmm_minor_version != GTKMM_MINOR_VERSION) || (gtkmm_minor_version != GTKMM_MINOR_VERSION) ||
(gtkmm_micro_version != GTKMM_MICRO_VERSION)) (gtkmm_micro_version != GTKMM_MICRO_VERSION))
{ {
printf("*** GTK-- header files (version %d.%d.%d) do not match\n", printf("*** GTK-- header files (version %d.%d.%d) do not match\n",
GTKMM_MAJOR_VERSION, GTKMM_MINOR_VERSION, GTKMM_MICRO_VERSION); GTKMM_MAJOR_VERSION, GTKMM_MINOR_VERSION, GTKMM_MICRO_VERSION);
@ -113,26 +113,26 @@ main ()
else else
{ {
if ((gtkmm_major_version > major) || if ((gtkmm_major_version > major) ||
((gtkmm_major_version == major) && (gtkmm_minor_version > minor)) || ((gtkmm_major_version == major) && (gtkmm_minor_version > minor)) ||
((gtkmm_major_version == major) && (gtkmm_minor_version == minor) && (gtkmm_micro_version >= micro))) ((gtkmm_major_version == major) && (gtkmm_minor_version == minor) && (gtkmm_micro_version >= micro)))
{ {
return 0; return 0;
} }
else else
{ {
printf("\n*** An old version of GTK-- (%d.%d.%d) was found.\n", printf("\n*** An old version of GTK-- (%d.%d.%d) was found.\n",
gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version); gtkmm_major_version, gtkmm_minor_version, gtkmm_micro_version);
printf("*** You need a version of GTK-- newer than %d.%d.%d. The latest version of\n", printf("*** You need a version of GTK-- newer than %d.%d.%d. The latest version of\n",
major, minor, micro); major, minor, micro);
printf("*** GTK-- is always available from ftp://ftp.gtk.org.\n"); printf("*** GTK-- is always available from ftp://ftp.gtk.org.\n");
printf("***\n"); printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtkmm-config shell script is\n"); printf("*** probably means that the wrong copy of the gtkmm-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GTK--, but you can also set the GTKMM_CONFIG environment to point to the\n"); printf("*** of GTK--, but you can also set the GTKMM_CONFIG environment to point to the\n");
printf("*** correct copy of gtkmm-config. (In this case, you will have to\n"); printf("*** correct copy of gtkmm-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n"); printf("*** so that the correct libraries are found at run-time))\n");
} }
} }
return 1; return 1;
@ -157,30 +157,30 @@ main ()
echo "*** version to 0.9.12 or later" echo "*** version to 0.9.12 or later"
else else
if test -f conf.gtkmmtest ; then if test -f conf.gtkmmtest ; then
: :
else else
echo "*** Could not run GTK-- test program, checking why..." echo "*** Could not run GTK-- test program, checking why..."
CXXFLAGS="$CXXFLAGS $GTKMM_CFLAGS" CXXFLAGS="$CXXFLAGS $GTKMM_CFLAGS"
LIBS="$LIBS $GTKMM_LIBS" LIBS="$LIBS $GTKMM_LIBS"
AC_TRY_LINK([ AC_TRY_LINK([
#include <gtk--.h> #include <gtk--.h>
#include <stdio.h> #include <stdio.h>
], [ return ((gtkmm_major_version) || (gtkmm_minor_version) || (gtkmm_micro_version)); ], ], [ return ((gtkmm_major_version) || (gtkmm_minor_version) || (gtkmm_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means" [ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GTK-- or finding the wrong" echo "*** that the run-time linker is not finding GTK-- or finding the wrong"
echo "*** version of GTK--. If it is not finding GTK--, you'll need to set your" echo "*** version of GTK--. If it is not finding GTK--, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system" echo "*** is required on your system"
echo "***" echo "***"
echo "*** If you have an old version installed, it is best to remove it, although" echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the" [ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GTK-- was incorrectly installed" echo "*** exact error that occured. This usually means GTK-- was incorrectly installed"
echo "*** or that you have moved GTK-- since it was installed. In the latter case, you" echo "*** or that you have moved GTK-- since it was installed. In the latter case, you"
echo "*** may want to edit the gtkmm-config script: $GTKMM_CONFIG" ]) echo "*** may want to edit the gtkmm-config script: $GTKMM_CONFIG" ])
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"
fi fi
fi fi
GTKMM_CFLAGS="" GTKMM_CFLAGS=""
@ -192,4 +192,3 @@ main ()
AC_SUBST(GTKMM_LIBS) AC_SUBST(GTKMM_LIBS)
rm -f conf.gtkmmtest rm -f conf.gtkmmtest
]) ])

170
config/libtool.m4 vendored
View File

@ -103,7 +103,7 @@ case $host in
CFLAGS="$CFLAGS -belf" CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_LANG_SAVE [AC_LANG_SAVE
AC_LANG_C AC_LANG(C)
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
AC_LANG_RESTORE]) AC_LANG_RESTORE])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then if test x"$lt_cv_cc_needs_belf" != x"yes"; then
@ -218,7 +218,7 @@ fi
for ac_symprfx in "" "_"; do for ac_symprfx in "" "_"; do
# Write the raw and C identifiers. # Write the raw and C identifiers.
[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"] [lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
# Check to see that the pipe works correctly. # Check to see that the pipe works correctly.
pipe_works=no pipe_works=no
@ -350,7 +350,7 @@ fi
# will find an echo command which doesn;t interpret backslashes. # will find an echo command which doesn;t interpret backslashes.
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
[AC_DIVERT_PUSH(NOTICE)]) [AC_DIVERT_PUSH(NOTICE)])
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
# Check that we are running under the correct shell. # Check that we are running under the correct shell.
@ -416,7 +416,7 @@ else
# #
# So, first we look for a working echo in the user's PATH. # So, first we look for a working echo in the user's PATH.
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
for dir in $PATH /usr/ucb; do for dir in $PATH /usr/ucb; do
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
@ -616,14 +616,14 @@ else
*) *)
AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen", [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
[AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load", [AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
[AC_CHECK_LIB(svld, dlopen, [AC_CHECK_LIB(svld, dlopen,
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
[AC_CHECK_LIB(dld, shl_load, [AC_CHECK_LIB(dld, shl_load,
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
]) ])
]) ])
]) ])
]) ])
;; ;;
esac esac
@ -656,7 +656,7 @@ else
if test "x$lt_cv_dlopen_self" = xyes; then if test "x$lt_cv_dlopen_self" = xyes; then
LDFLAGS="$LDFLAGS $link_static_flag" LDFLAGS="$LDFLAGS $link_static_flag"
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
lt_cv_dlopen_self_static, [dnl lt_cv_dlopen_self_static, [dnl
_LT_AC_TRY_DLOPEN_SELF( _LT_AC_TRY_DLOPEN_SELF(
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
@ -850,11 +850,11 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
aix3* | aix4* | aix5*) aix3* | aix4* | aix5*)
# All AIX code is PIC. # All AIX code is PIC.
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
# AIX 5 now supports IA64 processor # AIX 5 now supports IA64 processor
lt_cv_prog_cc_static='-Bstatic' lt_cv_prog_cc_static='-Bstatic'
lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_wl='-Wl,'
else else
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
fi fi
;; ;;
@ -910,9 +910,9 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
lt_cv_prog_cc_pic='-KPIC' lt_cv_prog_cc_pic='-KPIC'
lt_cv_prog_cc_static='-Bstatic' lt_cv_prog_cc_static='-Bstatic'
if test "x$host_vendor" = xsni; then if test "x$host_vendor" = xsni; then
lt_cv_prog_cc_wl='-LD' lt_cv_prog_cc_wl='-LD'
else else
lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_wl='-Wl,'
fi fi
;; ;;
@ -981,7 +981,7 @@ fi
# Check for any special shared library compilation flags. # Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then if test -n "$lt_cv_prog_cc_shlib"; then
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then : if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then :
else else
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
lt_cv_prog_cc_can_build_shared=no lt_cv_prog_cc_can_build_shared=no
@ -1294,18 +1294,18 @@ EOF
# is EXPORTS), use it as is. # is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them! # If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def; cp $export_symbols $output_objdir/$soname-def;
else else
echo EXPORTS > $output_objdir/$soname-def; echo EXPORTS > $output_objdir/$soname-def;
_lt_hint=1; _lt_hint=1;
cat $export_symbols | while read symbol; do cat $export_symbols | while read symbol; do
set dummy \$symbol; set dummy \$symbol;
case \[$]# in case \[$]# in
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
esac; esac;
_lt_hint=`expr 1 + \$_lt_hint`; _lt_hint=`expr 1 + \$_lt_hint`;
done; done;
fi~ fi~
'"$ltdll_cmds"' '"$ltdll_cmds"'
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
@ -1416,21 +1416,21 @@ else
# We have reworked collect2 # We have reworked collect2
hardcode_direct=yes hardcode_direct=yes
else else
# We have old collect2 # We have old collect2
hardcode_direct=unsupported hardcode_direct=unsupported
# It fails to find uninstalled libraries when the uninstalled # It fails to find uninstalled libraries when the uninstalled
# path is not listed in the libpath. Setting hardcode_minus_L # path is not listed in the libpath. Setting hardcode_minus_L
# to unsupported forces relinking # to unsupported forces relinking
hardcode_minus_L=yes hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator= hardcode_libdir_separator=
fi fi
shared_flag='-shared' shared_flag='-shared'
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
shared_flag='-G' shared_flag='-G'
else else
shared_flag='${wl}-bM:SRE' shared_flag='${wl}-bM:SRE'
fi fi
hardcode_direct=yes hardcode_direct=yes
fi fi
@ -1446,10 +1446,10 @@ else
# If -brtl is somewhere in LDFLAGS, we need to do run time linking. # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
aix_use_runtimelinking=no aix_use_runtimelinking=no
for ld_flag in $LDFLAGS; do for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
aix_use_runtimelinking=yes aix_use_runtimelinking=yes
break break
fi fi
done done
exp_sym_flag='-bexport' exp_sym_flag='-bexport'
no_entry_flag='-bnoentry' no_entry_flag='-bnoentry'
@ -1463,17 +1463,17 @@ else
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
allow_undefined_flag="-znodefs" allow_undefined_flag="-znodefs"
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
else else
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
# Warning - without using the other run time loading flags, -berok will # Warning - without using the other run time loading flags, -berok will
# link without error, but may produce a broken library. # link without error, but may produce a broken library.
allow_undefined_flag='${wl}-berok' allow_undefined_flag='${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds # This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries. # it's shared libraries.
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
fi fi
fi fi
;; ;;
@ -1846,11 +1846,11 @@ aix4* | aix5*)
case $host_os in case $host_os in
[ aix4 | aix4.[01] | aix4.[01].*)] [ aix4 | aix4.[01] | aix4.[01].*)]
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes ' echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
: :
else else
can_build_shared=no can_build_shared=no
fi fi
;; ;;
esac esac
@ -2658,9 +2658,9 @@ EOF
# return TRUE; # return TRUE;
# } # }
# /* ltdll.c ends here */ # /* ltdll.c ends here */
# This is a source program that is used to create import libraries # This is a source program that is used to create import libraries
# on Windows for dlls which lack them. Don't remove nor modify the # on Windows for dlls which lack them. Don't remove nor modify the
# starting and closing comments # starting and closing comments
# /* impgen.c starts here */ # /* impgen.c starts here */
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
# #
@ -2737,44 +2737,44 @@ EOF
# #
# dll = open(filename, O_RDONLY|O_BINARY); # dll = open(filename, O_RDONLY|O_BINARY);
# if (dll < 1) # if (dll < 1)
# return 1; # return 1;
# #
# dll_name = filename; # dll_name = filename;
# #
# for (i=0; filename[i]; i++) # for (i=0; filename[i]; i++)
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
# dll_name = filename + i +1; # dll_name = filename + i +1;
# #
# pe_header_offset = pe_get32 (dll, 0x3c); # pe_header_offset = pe_get32 (dll, 0x3c);
# opthdr_ofs = pe_header_offset + 4 + 20; # opthdr_ofs = pe_header_offset + 4 + 20;
# num_entries = pe_get32 (dll, opthdr_ofs + 92); # num_entries = pe_get32 (dll, opthdr_ofs + 92);
# #
# if (num_entries < 1) /* no exports */ # if (num_entries < 1) /* no exports */
# return 1; # return 1;
# #
# export_rva = pe_get32 (dll, opthdr_ofs + 96); # export_rva = pe_get32 (dll, opthdr_ofs + 96);
# export_size = pe_get32 (dll, opthdr_ofs + 100); # export_size = pe_get32 (dll, opthdr_ofs + 100);
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
# secptr = (pe_header_offset + 4 + 20 + # secptr = (pe_header_offset + 4 + 20 +
# pe_get16 (dll, pe_header_offset + 4 + 16)); # pe_get16 (dll, pe_header_offset + 4 + 16));
# #
# expptr = 0; # expptr = 0;
# for (i = 0; i < nsections; i++) # for (i = 0; i < nsections; i++)
# { # {
# char sname[8]; # char sname[8];
# unsigned long secptr1 = secptr + 40 * i; # unsigned long secptr1 = secptr + 40 * i;
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
# lseek(dll, secptr1, SEEK_SET); # lseek(dll, secptr1, SEEK_SET);
# read(dll, sname, 8); # read(dll, sname, 8);
# if (vaddr <= export_rva && vaddr+vsize > export_rva) # if (vaddr <= export_rva && vaddr+vsize > export_rva)
# { # {
# expptr = fptr + (export_rva - vaddr); # expptr = fptr + (export_rva - vaddr);
# if (export_rva + export_size > vaddr + vsize) # if (export_rva + export_size > vaddr + vsize)
# export_size = vsize - (export_rva - vaddr); # export_size = vsize - (export_rva - vaddr);
# break; # break;
# } # }
# } # }
# #
# expdata = (unsigned char*)malloc(export_size); # expdata = (unsigned char*)malloc(export_size);
@ -2788,8 +2788,8 @@ EOF
# printf ("EXPORTS\n"); # printf ("EXPORTS\n");
# for (i = 0; i<nexp; i++) # for (i = 0; i<nexp; i++)
# { # {
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
# } # }
# #
# return 0; # return 0;
@ -2838,7 +2838,7 @@ no) enable_shared=no ;;
*) *)
enable_shared=no enable_shared=no
# Look at the argument we got. We use all the common list separators. # Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do for pkg in $enableval; do
if test "X$pkg" = "X$p"; then if test "X$pkg" = "X$p"; then
enable_shared=yes enable_shared=yes
@ -2872,7 +2872,7 @@ no) enable_static=no ;;
*) *)
enable_static=no enable_static=no
# Look at the argument we got. We use all the common list separators. # Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do for pkg in $enableval; do
if test "X$pkg" = "X$p"; then if test "X$pkg" = "X$p"; then
enable_static=yes enable_static=yes
@ -2907,7 +2907,7 @@ no) enable_fast_install=no ;;
*) *)
enable_fast_install=no enable_fast_install=no
# Look at the argument we got. We use all the common list separators. # Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do for pkg in $enableval; do
if test "X$pkg" = "X$p"; then if test "X$pkg" = "X$p"; then
enable_fast_install=yes enable_fast_install=yes
@ -3055,7 +3055,7 @@ else
fi fi
AC_CACHE_VAL(lt_cv_path_LD, AC_CACHE_VAL(lt_cv_path_LD,
[if test -z "$LD"; then [if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
@ -3285,7 +3285,7 @@ AC_CACHE_VAL(lt_cv_path_NM,
# Let the user override the test. # Let the user override the test.
lt_cv_path_NM="$NM" lt_cv_path_NM="$NM"
else else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm tmp_nm=$ac_dir/${ac_tool_prefix}nm

View File

@ -156,7 +156,7 @@ AC_DEFUN(LYX_PROG_CXX,
LYX_SEARCH_PROG(CXX, $CXX $CCC g++ gcc c++ CC cxx xlC cc++, [LYX_PROG_CXX_WORKS]) LYX_SEARCH_PROG(CXX, $CXX $CCC g++ gcc c++ CC cxx xlC cc++, [LYX_PROG_CXX_WORKS])
if test -z "$CXX" ; then if test -z "$CXX" ; then
AC_ERROR([Unable to find a good enough C++ compiler]) AC_MSG_ERROR([Unable to find a good enough C++ compiler])
fi fi
AC_MSG_RESULT($CXX) AC_MSG_RESULT($CXX)
@ -591,7 +591,7 @@ AC_DEFUN(LYX_LOOP_DIR,[
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for dir in `eval "echo $1"`; do for dir in `eval "echo $1"`; do
if test ! "$dir" = NONE; then if test ! "$dir" = NONE; then
test ! -d "$dir" && AC_ERROR([\"$dir\" is not a directory]) test ! -d "$dir" && AC_MSG_ERROR([\"$dir\" is not a directory])
$2 $2
fi fi
done done

View File

@ -39,31 +39,31 @@ AC_DEFUN(QT2_FIND_PATH,
[ [
qt2_cv_path_$1="NONE" qt2_cv_path_$1="NONE"
if test -n "$$2"; then if test -n "$$2"; then
qt2_cv_path_$1="$$2"; qt2_cv_path_$1="$$2";
else else
dirs="$3" dirs="$3"
qt2_save_IFS=$IFS qt2_save_IFS=$IFS
IFS=':' IFS=':'
for dir in $PATH; do for dir in $PATH; do
dirs="$dirs $dir" dirs="$dirs $dir"
done done
IFS=$qt2_save_IFS IFS=$qt2_save_IFS
for dir in $dirs; do for dir in $dirs; do
if test -x "$dir/$1"; then if test -x "$dir/$1"; then
if test -n "$5" if test -n "$5"
then then
evalstr="$dir/$1 $5 2>&1 " evalstr="$dir/$1 $5 2>&1 "
if eval $evalstr; then if eval $evalstr; then
qt2_cv_path_$1="$dir/$1" qt2_cv_path_$1="$dir/$1"
break break
fi fi
else else
qt2_cv_path_$1="$dir/$1" qt2_cv_path_$1="$dir/$1"
break break
fi fi
fi fi
done done
fi fi
@ -84,8 +84,8 @@ dnl ------------------------------------------------------------------------
AC_DEFUN(QT2_AC_PATH_UIC, AC_DEFUN(QT2_AC_PATH_UIC,
[ [
QT2_FIND_PATH(uic, UIC, [$ac_qt2_bindir $QTDIR/bin \ QT2_FIND_PATH(uic, UIC, [$ac_qt2_bindir $QTDIR/bin \
/usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \
/usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin], ) /usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin], )
AC_SUBST(UIC) AC_SUBST(UIC)
]) ])
@ -97,12 +97,12 @@ dnl
AC_DEFUN(QT2_AC_PATH_MOC, AC_DEFUN(QT2_AC_PATH_MOC,
[ [
QT2_FIND_PATH(moc, MOC, [$ac_qt2_bindir $QTDIR/bin \ QT2_FIND_PATH(moc, MOC, [$ac_qt2_bindir $QTDIR/bin \
/usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \
/usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin],) /usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin],)
QT2_FIND_PATH(moc2, MOC2, [$ac_qt2_bindir $QTDIR/bin \ QT2_FIND_PATH(moc2, MOC2, [$ac_qt2_bindir $QTDIR/bin \
/usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \ /usr/bin /usr/X11R6/bin /usr/lib/qt2/bin \
/usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin],) /usr/local/qt2/bin /usr/local/qt/bin /usr/lib/qt/bin],)
if ! test -z "$MOC2"; then if ! test -z "$MOC2"; then
MOC="$MOC2"; MOC="$MOC2";
@ -125,7 +125,7 @@ AC_DEFUN(QT2_AC_PATH_MOC,
AC_DEFUN(QT2_PRINT_PROGRAM, AC_DEFUN(QT2_PRINT_PROGRAM,
[ [
AC_LANG_CPLUSPLUS AC_LANG(C++)
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#include "confdefs.h" #include "confdefs.h"
#include <qmovie.h> #include <qmovie.h>
@ -301,7 +301,7 @@ dnl check it is Qt2
SAVE_CXXFLAGS="$CXXFLAGS" SAVE_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -I$qt2_includes -L$qt2_libraries" CXXFLAGS="$CXXFLAGS -I$qt2_includes -L$qt2_libraries"
dnl specify we are definitely C++ compiling first dnl specify we are definitely C++ compiling first
AC_LANG_CPLUSPLUS AC_LANG(C++)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <qglobal.h> #include <qglobal.h>
], ],

View File

@ -1,172 +0,0 @@
# Configure paths for Libsigc++
# Based on Gtk-- script by Erik Andersen and Tero Pulkkinen
dnl Test for Libsigc++, and define SIGC_CFLAGS and SIGC_LIBS
dnl to be used as follows:
dnl AM_PATH_SIGC(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl
AC_DEFUN(AM_PATH_SIGC,
[dnl
dnl Get the cflags and libraries from the sigc-config script
dnl
dnl
dnl Prefix options
dnl
AC_ARG_WITH(sigc-prefix,
[ --with-sigc-prefix=PREFIX
Prefix where libsigc++ is installed (optional)]
, sigc_config_prefix="$withval", sigc_config_prefix="")
AC_ARG_WITH(sigc-exec-prefix,
[ --with-sigc-exec-prefix=PREFIX
Exec prefix where libsigc++ is installed (optional)]
, sigc_config_exec_prefix="$withval", sigc_config_exec_prefix="")
AC_ARG_ENABLE(sigctest,
[ --disable-sigctest Do not try to compile and run a test libsigc++
program],
, enable_sigctest=yes)
dnl
dnl Prefix handling
dnl
if test x$sigc_config_exec_prefix != x ; then
sigc_config_args="$sigc_config_args --exec-prefix=$sigc_config_exec_prefix"
if test x${SIGC_CONFIG+set} != xset ; then
SIGC_CONFIG=$sigc_config_exec_prefix/bin/sigc-config
fi
fi
if test x$sigc_config_prefix != x ; then
sigc_config_args="$sigc_config_args --prefix=$sigc_config_prefix"
if test x${SIGC_CONFIG+set} != xset ; then
SIGC_CONFIG=$sigc_config_prefix/bin/sigc-config
fi
fi
dnl
dnl See if sigc-config is alive
dnl
AC_PATH_PROG(SIGC_CONFIG, sigc-config, no)
sigc_version_min=$1
dnl
dnl Version check
dnl
AC_MSG_CHECKING(for libsigc++ - version >= $sigc_version_min)
no_sigc=""
if test "$SIGC_CONFIG" = "no" ; then
no_sigc=yes
else
sigc_version=`$SIGC_CONFIG --version`
SIGC_CFLAGS=`$SIGC_CONFIG $sigc_config_args --cflags`
SIGC_LIBS=`$SIGC_CONFIG $sigc_config_args --libs`
SIGC_MACROS=`$SIGC_CONFIG $sigc_config_args --macros`
sigc_major_version=`echo $sigc_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sigc_minor_version=`echo $sigc_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sigc_micro_version=`echo $sigc_version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
sigc_major_min=`echo $sigc_version_min | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sigc_minor_min=`echo $sigc_version_min | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sigc_micro_min=`echo $sigc_version_min | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
sigc_version_proper=`expr \
$sigc_major_version \> $sigc_major_min \| \
$sigc_major_version \= $sigc_major_min \& \
$sigc_minor_version \> $sigc_minor_min \| \
$sigc_major_version \= $sigc_major_min \& \
$sigc_minor_version \= $sigc_minor_min \& \
$sigc_micro_version \>= $sigc_micro_min `
if test "$sigc_version_proper" = "1" ; then
AC_MSG_RESULT([$sigc_major_version.$sigc_minor_version.$sigc_micro_version])
else
AC_MSG_RESULT(no)
no_sigc=yes
fi
if test "X$no_sigc" = "Xyes" ; then
enable_sigctest=no
fi
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
dnl
dnl
dnl
if test "x$enable_sigctest" = "xyes" ; then
AC_MSG_CHECKING(if libsigc++ sane)
ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_LIBS="$LIBS"
CXXFLAGS="$CXXFLAGS $SIGC_CFLAGS"
LIBS="$LIBS $SIGC_LIBS"
rm -f conf.sigctest
AC_TRY_RUN([
#include <stdio.h>
#include <sigc++/signal_system.h>
#ifdef SIGC_CXX_NAMESPACES
using namespace SigC;
#endif
int foo1(int i)
{
return 1;
}
int main(int argc,char **argv)
{
if (sigc_major_version!=$sigc_major_version ||
sigc_minor_version!=$sigc_minor_version ||
sigc_micro_version!=$sigc_micro_version)
{ printf("(%d.%d.%d) ",
sigc_major_version,sigc_minor_version,sigc_micro_version);
return 1;
}
Signal1<int,int> sig1;
sig1.connect(slot(foo1));
sig1(1);
return 0;
}
],[
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
no_sigc=yes
]
,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
dnl
dnl
if test "x$no_sigc" = x ; then
ifelse([$2], , :, [$2])
else
SIGC_CFLAGS=""
SIGC_LIBS=""
SIGC_MACROS=""
ifelse([$3], , :, [$3])
fi
AC_LANG_RESTORE
AC_SUBST(SIGC_CFLAGS)
AC_SUBST(SIGC_LIBS)
AC_SUBST(SIGC_MACROS)
])

View File

@ -70,7 +70,7 @@ save_LIBS=$LIBS
LIBS="$XFORMS_LIB $LIBS" LIBS="$XFORMS_LIB $LIBS"
lyx_use_xforms_image_loader=no lyx_use_xforms_image_loader=no
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_C AC_LANG(C)
AC_CHECK_LIB(jpeg, jpeg_read_header, AC_CHECK_LIB(jpeg, jpeg_read_header,
[XFORMS_IMAGE_LIB=-ljpeg [XFORMS_IMAGE_LIB=-ljpeg
@ -86,7 +86,7 @@ AC_SUBST(XFORMS_IMAGE_LIB)
if test $lyx_use_xforms_image_loader = yes ; then if test $lyx_use_xforms_image_loader = yes ; then
lyx_flags="$lyx_flags xforms-image-loader" lyx_flags="$lyx_flags xforms-image-loader"
AC_DEFINE(USE_XFORMS_IMAGE_LOADER, 1, AC_DEFINE(USE_XFORMS_IMAGE_LOADER, 1,
[Define if you want to use xforms built-in image loader]) [Define if you want to use xforms built-in image loader])
AC_CHECK_FUNCS(flimage_enable_ps flimage_enable_jpeg) AC_CHECK_FUNCS(flimage_enable_ps flimage_enable_jpeg)
AC_CHECK_HEADERS(flimage.h X11/flimage.h, break) AC_CHECK_HEADERS(flimage.h X11/flimage.h, break)
fi fi
@ -97,4 +97,3 @@ AM_CONDITIONAL(USE_BASIC_IMAGE_LOADER,
test $lyx_use_xforms_image_loader = no) test $lyx_use_xforms_image_loader = no)
AC_LANG_RESTORE AC_LANG_RESTORE
LIBS=$save_LIBS]) LIBS=$save_LIBS])