Ticket #14297: patch-configure.diff
File patch-configure.diff, 7.0 KB (added by mp@…, 17 years ago) |
---|
-
configure
old new 25325 25325 25326 25326 25327 25327 if test "x$cross_compiling" = "xyes" ; then 25328 name_build_guile="$target_alias-guile -config"25328 name_build_guile="$target_alias-guile16-config" 25329 25329 else 25330 name_build_guile="guile -config"25330 name_build_guile="guile16-config" 25331 25331 fi 25332 25332 25333 25333 # Extract the first word of "$name_build_guile", so it can be a program name with args. … … 25510 25510 25511 25511 25512 25512 if test "x$BUILD_GUILE" = "xyes"; then 25513 { echo "$as_me:$LINENO: checking for guile libraries" >&525514 echo $ECHO_N "checking for guile libraries... $ECHO_C" >&6; }25513 { echo "$as_me:$LINENO: checking for guile16 libraries" >&5 25514 echo $ECHO_N "checking for guile16 libraries... $ECHO_C" >&6; } 25515 25515 GUILE_LIBS="`$name_build_guile link`" 25516 25516 { echo "$as_me:$LINENO: result: $GUILE_LIBS" >&5 25517 25517 echo "${ECHO_T}$GUILE_LIBS" >&6; } 25518 { echo "$as_me:$LINENO: checking for guile headers" >&525519 echo $ECHO_N "checking for guile headers... $ECHO_C" >&6; }25518 { echo "$as_me:$LINENO: checking for guile16 headers" >&5 25519 echo $ECHO_N "checking for guile16 headers... $ECHO_C" >&6; } 25520 25520 GUILE_INCS="`$name_build_guile compile`" 25521 25521 { echo "$as_me:$LINENO: result: $GUILE_INCS" >&5 25522 25522 echo "${ECHO_T}$GUILE_INCS" >&6; } … … 25842 25842 GUILE_LIBS="$GUILE_LIBS -lsocket" 25843 25843 fi 25844 25844 25845 GUILE_LIBS="-lguile $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB"25845 GUILE_LIBS="-lguile16 $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB" 25846 25846 fi 25847 25847 25848 25848 … … 25852 25852 LIBS="$LIBS $GUILE_LIBS" 25853 25853 CPPFLAGS="$saved_cppflags $GUILE_INCS" 25854 25854 25855 { echo "$as_me:$LINENO: checking whether guile works" >&525856 echo $ECHO_N "checking whether guile works... $ECHO_C" >&6; }25855 { echo "$as_me:$LINENO: checking whether guile16 works" >&5 25856 echo $ECHO_N "checking whether guile16 works... $ECHO_C" >&6; } 25857 25857 cat >conftest.$ac_ext <<_ACEOF 25858 25858 /* confdefs.h. */ 25859 25859 _ACEOF … … 25861 25861 cat >>conftest.$ac_ext <<_ACEOF 25862 25862 /* end confdefs.h. */ 25863 25863 25864 #include <libguile .h>25865 #include <guile /gh.h>25864 #include <libguile16.h> 25865 #include <guile16/gh.h> 25866 25866 25867 25867 int 25868 25868 main () … … 25965 25965 25966 25966 25967 25967 if test x${GUILE} = x ; then 25968 # Extract the first word of "guile ", so it can be a program name with args.25969 set dummy guile ; ac_word=$225968 # Extract the first word of "guile16", so it can be a program name with args. 25969 set dummy guile16; ac_word=$2 25970 25970 { echo "$as_me:$LINENO: checking for $ac_word" >&5 25971 25971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 25972 25972 if test "${ac_cv_path_GUILE+set}" = set; then … … 26104 26104 26105 26105 26106 26106 if test x${GUILE} = x ; then 26107 # Extract the first word of "guile ", so it can be a program name with args.26108 set dummy guile ; ac_word=$226107 # Extract the first word of "guile16", so it can be a program name with args. 26108 set dummy guile16; ac_word=$2 26109 26109 { echo "$as_me:$LINENO: checking for $ac_word" >&5 26110 26110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 26111 26111 if test "${ac_cv_path_GUILE+set}" = set; then … … 26252 26252 26253 26253 ### Check size of long_long - some guile's are broken. 26254 26254 { echo "$as_me:$LINENO: checking if guile long_long is at least as big as gint64" >&5 26255 echo $ECHO_N "checking if guile long_long is at least as big as gint64... $ECHO_C" >&6; }26255 echo $ECHO_N "checking if guile16 long_long is at least as big as gint64... $ECHO_C" >&6; } 26256 26256 GNC_OLDCFLAGS="$CFLAGS" 26257 26257 CFLAGS="${GNOME_CFLAGS} ${GUILE_INCS} ${CFLAGS} ${GLIB_CFLAGS}" 26258 26258 if test "$cross_compiling" = yes; then 26259 26259 26260 26260 { echo "$as_me:$LINENO: result: assuming yes" >&5 26261 26261 echo "${ECHO_T}assuming yes" >&6; } 26262 { echo "$as_me:$LINENO: checking for scm_long_long2num in -lguile " >&526263 echo $ECHO_N "checking for scm_long_long2num in -lguile ... $ECHO_C" >&6; }26262 { echo "$as_me:$LINENO: checking for scm_long_long2num in -lguile16" >&5 26263 echo $ECHO_N "checking for scm_long_long2num in -lguile16... $ECHO_C" >&6; } 26264 26264 if test "${ac_cv_lib_guile_scm_long_long2num+set}" = set; then 26265 26265 echo $ECHO_N "(cached) $ECHO_C" >&6 26266 26266 else 26267 26267 ac_check_lib_save_LIBS=$LIBS 26268 LIBS="-lguile $LIBS"26268 LIBS="-lguile16 $LIBS" 26269 26269 cat >conftest.$ac_ext <<_ACEOF 26270 26270 /* confdefs.h. */ 26271 26271 _ACEOF … … 26338 26338 /* end confdefs.h. */ 26339 26339 26340 26340 #include <glib.h> 26341 #include <libguile /__scm.h>26341 #include <libguile16/__scm.h> 26342 26342 int main(int argc, char *argv[]) { 26343 26343 return(!(sizeof(long_long) >= sizeof(gint64))); 26344 26344 } … … 26367 26367 26368 26368 { echo "$as_me:$LINENO: result: yes" >&5 26369 26369 echo "${ECHO_T}yes" >&6; } 26370 { echo "$as_me:$LINENO: checking for scm_long_long2num in -lguile " >&526371 echo $ECHO_N "checking for scm_long_long2num in -lguile ... $ECHO_C" >&6; }26370 { echo "$as_me:$LINENO: checking for scm_long_long2num in -lguile16" >&5 26371 echo $ECHO_N "checking for scm_long_long2num in -lguile16... $ECHO_C" >&6; } 26372 26372 if test "${ac_cv_lib_guile_scm_long_long2num+set}" = set; then 26373 26373 echo $ECHO_N "(cached) $ECHO_C" >&6 26374 26374 else 26375 26375 ac_check_lib_save_LIBS=$LIBS 26376 LIBS="-lguile $LIBS"26376 LIBS="-lguile16 $LIBS" 26377 26377 cat >conftest.$ac_ext <<_ACEOF 26378 26378 /* confdefs.h. */ 26379 26379 _ACEOF … … 26565 26565 26566 26566 { echo "$as_me:$LINENO: checking if guile needs our copy of (guile www)" >&5 26567 26567 echo $ECHO_N "checking if guile needs our copy of (guile www)... $ECHO_C" >&6; } 26568 # Extract the first word of "guile ", so it can be a program name with args.26569 set dummy guile ; ac_word=$226568 # Extract the first word of "guile16", so it can be a program name with args. 26569 set dummy guile16; ac_word=$2 26570 26570 { echo "$as_me:$LINENO: checking for $ac_word" >&5 26571 26571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 26572 26572 if test "${ac_cv_path_GUILE+set}" = set; then … … 26606 26606 26607 26607 26608 26608 if test "$GUILE" = "" ; then 26609 { { echo "$as_me:$LINENO: error: guile required but not found" >&526610 echo "$as_me: error: guile required but not found" >&2;}26609 { { echo "$as_me:$LINENO: error: guile16 required but not found" >&5 26610 echo "$as_me: error: guile16 required but not found" >&2;} 26611 26611 { (exit 1); exit 1; }; } 26612 26612 fi 26613 26613 26614 # Extract the first word of "guile -config", so it can be a program name with args.26615 set dummy guile -config; ac_word=$226614 # Extract the first word of "guile16-config", so it can be a program name with args. 26615 set dummy guile16-config; ac_word=$2 26616 26616 { echo "$as_me:$LINENO: checking for $ac_word" >&5 26617 26617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 26618 26618 if test "${ac_cv_path_GUILE_CONFIG+set}" = set; then … … 26652 26652 26653 26653 26654 26654 if test "$GUILE_CONFIG" = "" ; then 26655 { { echo "$as_me:$LINENO: error: guile -config required but not found" >&526656 echo "$as_me: error: guile -config required but not found" >&2;}26655 { { echo "$as_me:$LINENO: error: guile16-config required but not found" >&5 26656 echo "$as_me: error: guile16-config required but not found" >&2;} 26657 26657 { (exit 1); exit 1; }; } 26658 26658 fi 26659 26659 26660 # Extract the first word of "guile -tools", so it can be a program name with args.26661 set dummy guile -tools; ac_word=$226660 # Extract the first word of "guile16-tools", so it can be a program name with args. 26661 set dummy guile16-tools; ac_word=$2 26662 26662 { echo "$as_me:$LINENO: checking for $ac_word" >&5 26663 26663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 26664 26664 if test "${ac_cv_path_GUILE_TOOLS+set}" = set; then