* PATCH: Fix cross compile support in libgui.
@ 2001-08-03 17:06 Mo DeJong
0 siblings, 0 replies; only message in thread
From: Mo DeJong @ 2001-08-03 17:06 UTC (permalink / raw)
To: insight
Hi all.
This will fix cross compiling for libgui by using
the cross version of AR when building libgui.
cheers
Mo
2001-08-03 Mo DeJong <mdejong@redhat.com>
* configure: Regen.
* configure.in: Check for cross AR using the
AC_CHECK_TOOL macro to fix cross compile. Use
AC_CHECK_TOOL instead of AC_PROG_RANLIB for
ranlib. The ranlib change is not required
but it is more correct. Move the call to
AC_CANONICAL_HOST up in the file.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/libgui/configure.in,v
retrieving revision 1.4
diff -u -r1.4 configure.in
--- configure.in 2001/08/02 21:48:17 1.4
+++ configure.in 2001/08/03 23:58:52
@@ -4,6 +4,7 @@
AM_INIT_AUTOMAKE(libgui, 0.0)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
+AC_CANONICAL_HOST
AC_PROG_CC
AC_EXEEXT
AC_OBJEXT
@@ -11,7 +12,8 @@
[ --enable-install-libgui Install libgui.a and library header files])
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
AM_CONDITIONAL(INSTALL_LIBGUI, test x$enable_install_libgui = xyes)
-AC_PROG_RANLIB
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(AR, ar, :)
AC_FUNC_ALLOCA
AC_HAVE_HEADERS(stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h)
@@ -99,7 +101,6 @@
CYG_AC_LOAD_ITCLCONFIG
dnl what is the path to itclsh?
-AC_CANONICAL_HOST
case ${host} in
*cygwin*)
ITCL_DIR=itcl/itcl/win
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-03 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 17:06 PATCH: Fix cross compile support in libgui Mo DeJong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).