diff options
| author | Richard Brooksby | 2012-09-10 17:24:47 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-10 17:24:47 +0100 |
| commit | 2c4c8902240d4f367125bbde044bbfcbb41c6434 (patch) | |
| tree | 039938b14e0a8ba805b1aae3fbe01e05df60cc31 | |
| parent | 4a3a69934b93c0481a4e29f1ae346c59dfe3ed47 (diff) | |
| download | emacs-2c4c8902240d4f367125bbde044bbfcbb41c6434.tar.gz emacs-2c4c8902240d4f367125bbde044bbfcbb41c6434.zip | |
Merging https://github.com/datafueled/memory-pool-system/pull/6 to make configure work on freebsd (whose "make" isn't gnu make).
Copied from Perforce
Change: 179400
ServerID: perforce.ravenbrook.com
| -rw-r--r-- | mps/Makefile.in | 2 | ||||
| -rwxr-xr-x | mps/configure | 48 | ||||
| -rw-r--r-- | mps/configure.ac | 5 |
3 files changed, 54 insertions, 1 deletions
diff --git a/mps/Makefile.in b/mps/Makefile.in index c816e73efcc..180bf944083 100644 --- a/mps/Makefile.in +++ b/mps/Makefile.in | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | # to build and integrate the MPS. | 9 | # to build and integrate the MPS. |
| 10 | # | 10 | # |
| 11 | 11 | ||
| 12 | MAKE=@MAKE@ | ||
| 12 | MPS_TARGET_PF=@MPS_TARGET_PF@ | 13 | MPS_TARGET_PF=@MPS_TARGET_PF@ |
| 13 | MPS_TARGET_NAME=@MPS_TARGET_NAME@ | 14 | MPS_TARGET_NAME=@MPS_TARGET_NAME@ |
| 14 | 15 | ||
| @@ -16,7 +17,6 @@ BUILD_TARGET=@BUILD_TARGET@ | |||
| 16 | CLEAN_TARGET=@CLEAN_TARGET@ | 17 | CLEAN_TARGET=@CLEAN_TARGET@ |
| 17 | 18 | ||
| 18 | all: @BUILD_TARGET@ | 19 | all: @BUILD_TARGET@ |
| 19 | $(BUILD) | ||
| 20 | 20 | ||
| 21 | build-via-make: | 21 | build-via-make: |
| 22 | $(MAKE) -C code -f $(MPS_TARGET_NAME).gmk | 22 | $(MAKE) -C code -f $(MPS_TARGET_NAME).gmk |
diff --git a/mps/configure b/mps/configure index 787f690890b..3c6b094c176 100755 --- a/mps/configure +++ b/mps/configure | |||
| @@ -591,6 +591,7 @@ CLEAN_TARGET | |||
| 591 | BUILD_TARGET | 591 | BUILD_TARGET |
| 592 | MPS_TARGET_NAME | 592 | MPS_TARGET_NAME |
| 593 | MPS_TARGET_PF | 593 | MPS_TARGET_PF |
| 594 | MAKE | ||
| 594 | host_os | 595 | host_os |
| 595 | host_vendor | 596 | host_vendor |
| 596 | host_cpu | 597 | host_cpu |
| @@ -2686,6 +2687,53 @@ $as_echo "FreeBSD x86_64" >&6; } | |||
| 2686 | as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5 | 2687 | as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5 |
| 2687 | esac | 2688 | esac |
| 2688 | 2689 | ||
| 2690 | for ac_prog in gnumake gmake make | ||
| 2691 | do | ||
| 2692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 2693 | set dummy $ac_prog; ac_word=$2 | ||
| 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
| 2695 | $as_echo_n "checking for $ac_word... " >&6; } | ||
| 2696 | if ${ac_cv_prog_MAKE+:} false; then : | ||
| 2697 | $as_echo_n "(cached) " >&6 | ||
| 2698 | else | ||
| 2699 | if test -n "$MAKE"; then | ||
| 2700 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | ||
| 2701 | else | ||
| 2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2703 | for as_dir in $PATH | ||
| 2704 | do | ||
| 2705 | IFS=$as_save_IFS | ||
| 2706 | test -z "$as_dir" && as_dir=. | ||
| 2707 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 2708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 2709 | ac_cv_prog_MAKE="$ac_prog" | ||
| 2710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 2711 | break 2 | ||
| 2712 | fi | ||
| 2713 | done | ||
| 2714 | done | ||
| 2715 | IFS=$as_save_IFS | ||
| 2716 | |||
| 2717 | fi | ||
| 2718 | fi | ||
| 2719 | MAKE=$ac_cv_prog_MAKE | ||
| 2720 | if test -n "$MAKE"; then | ||
| 2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | ||
| 2722 | $as_echo "$MAKE" >&6; } | ||
| 2723 | else | ||
| 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 2725 | $as_echo "no" >&6; } | ||
| 2726 | fi | ||
| 2727 | |||
| 2728 | |||
| 2729 | test -n "$MAKE" && break | ||
| 2730 | done | ||
| 2731 | test -n "$MAKE" || MAKE="as_fn_error $? "Unable to find a make program." "$LINENO" 5" | ||
| 2732 | |||
| 2733 | if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then | ||
| 2734 | as_fn_error $? "MPS requires GNU make to build from configure, but see manual/build.txt" "$LINENO" 5 | ||
| 2735 | fi | ||
| 2736 | |||
| 2689 | 2737 | ||
| 2690 | 2738 | ||
| 2691 | 2739 | ||
diff --git a/mps/configure.ac b/mps/configure.ac index abcddd82166..66f90ba17ca 100644 --- a/mps/configure.ac +++ b/mps/configure.ac | |||
| @@ -69,6 +69,11 @@ case $host in | |||
| 69 | AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt]) | 69 | AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt]) |
| 70 | esac | 70 | esac |
| 71 | 71 | ||
| 72 | AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])]) | ||
| 73 | if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then | ||
| 74 | AC_MSG_ERROR([MPS requires GNU make to build from configure, but see manual/build.txt]) | ||
| 75 | fi | ||
| 76 | |||
| 72 | AC_SUBST(MPS_TARGET_PF) | 77 | AC_SUBST(MPS_TARGET_PF) |
| 73 | AC_SUBST(MPS_TARGET_NAME) | 78 | AC_SUBST(MPS_TARGET_NAME) |
| 74 | AC_SUBST(BUILD_TARGET) | 79 | AC_SUBST(BUILD_TARGET) |