diff --git a/ChangeLog b/ChangeLog index 3adafb069..a29be2f8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-17 Adam Fedor + + * Tools/GNUmakefile, configure.ac: Don't try to run make_services if + we are cross-compiling. + 2007-12-17 Fred Kiefer * Source/NSTableView.m (-setDataSource:): Make the data source diff --git a/Tools/GNUmakefile b/Tools/GNUmakefile index b2c4267b2..06fd0ead4 100644 --- a/Tools/GNUmakefile +++ b/Tools/GNUmakefile @@ -50,7 +50,11 @@ include GNUmakefile.preamble -include GNUmakefile.local -GNUSTEP_MAKE_SERVICES=./$(GNUSTEP_OBJ_DIR)/make_services +ifeq ($(CROSS_COMPILING),yes) + GNUSTEP_MAKE_SERVICES=: +else + GNUSTEP_MAKE_SERVICES=./$(GNUSTEP_OBJ_DIR)/make_services +endif include $(GNUSTEP_MAKEFILES)/tool.make include $(GNUSTEP_MAKEFILES)/service.make diff --git a/config.make.in b/config.make.in index 1e08b3ddd..ab6bb89e9 100644 --- a/config.make.in +++ b/config.make.in @@ -13,3 +13,4 @@ GSCUPS_LDFLAGS = @GSCUPS_LDFLAGS@ GSCUPS_LIBS = @GSCUPS_LIBS@ GSCUPS_DATADIR = @GSCUPS_DATADIR@ BUILD_GSCUPS = @BUILD_GSCUPS@ +CROSS_COMPILING = @cross_compiling@ diff --git a/configure b/configure index 37cc4c596..8c94b5173 100755 --- a/configure +++ b/configure @@ -309,7 +309,7 @@ ac_includes_default="\ # include #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BUILD_GSND have_cups GSCUPS_CFLAGS GSCUPS_LDFLAGS GSCUPS_LIBS GSCUPS_DATADIR BUILD_GSCUPS GNUSTEP_GUI_VERSION GNUSTEP_GUI_MAJOR_VERSION GNUSTEP_GUI_MINOR_VERSION GNUSTEP_GUI_SUBMINOR_VERSION ADDITIONAL_LIB_DIRS ADDITIONAL_INCLUDE_DIRS LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BUILD_GSND have_cups GSCUPS_CFLAGS GSCUPS_LDFLAGS GSCUPS_LIBS GSCUPS_DATADIR BUILD_GSCUPS GNUSTEP_GUI_VERSION GNUSTEP_GUI_MAJOR_VERSION GNUSTEP_GUI_MINOR_VERSION GNUSTEP_GUI_SUBMINOR_VERSION ADDITIONAL_LIB_DIRS ADDITIONAL_INCLUDE_DIRS cross_compiling LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -2720,7 +2720,7 @@ ac_x_header_dirs=' /usr/openwin/share/include' if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for Xlib.h. + # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ @@ -2728,7 +2728,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -2755,7 +2755,7 @@ else sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Xlib.h"; then + if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi @@ -2769,18 +2769,18 @@ if test "$ac_x_libraries" = no; then # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS - LIBS="-lX11 $LIBS" + LIBS="-lXt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { -XrmInitialize () +XtMalloc (0) ; return 0; } @@ -7188,6 +7188,7 @@ ADDITIONAL_LIB_DIRS="$ADDITIONAL_LIB_DIRS $GRAPHIC_LFLAGS" + #-------------------------------------------------------------------- # Configure #-------------------------------------------------------------------- @@ -7842,6 +7843,7 @@ s,@GNUSTEP_GUI_MINOR_VERSION@,$GNUSTEP_GUI_MINOR_VERSION,;t t s,@GNUSTEP_GUI_SUBMINOR_VERSION@,$GNUSTEP_GUI_SUBMINOR_VERSION,;t t s,@ADDITIONAL_LIB_DIRS@,$ADDITIONAL_LIB_DIRS,;t t s,@ADDITIONAL_INCLUDE_DIRS@,$ADDITIONAL_INCLUDE_DIRS,;t t +s,@cross_compiling@,$cross_compiling,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF diff --git a/configure.ac b/configure.ac index ac3ef8a6b..31c0c817d 100644 --- a/configure.ac +++ b/configure.ac @@ -446,6 +446,7 @@ ADDITIONAL_LIB_DIRS="$ADDITIONAL_LIB_DIRS $GRAPHIC_LFLAGS" AC_SUBST(ADDITIONAL_LIB_DIRS) AC_SUBST(ADDITIONAL_INCLUDE_DIRS) +AC_SUBST(cross_compiling) #-------------------------------------------------------------------- # Configure