1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
$NetBSD: patch-configure-alt,v 1.2 2015/06/10 14:59:43 joerg Exp $
Use default CFLAGS and LDFLAGS.
Add DragolFly support.
--- configure-alt.orig 2014-04-08 14:02:27.000000000 +0000
+++ configure-alt
@@ -64,6 +64,7 @@ echo
case `uname` in
Darwin) true ${os_type:=MAC_OSX} ;;
Linux) true ${os_type:=LINUX} ;;
+ DragonFly) true ${os_type:=_BSD} ;;
FreeBSD) true ${os_type:=_BSD} ;;
NetBSD) true ${os_type:=_BSD} ;;
OpenBSD) true ${os_type:=_BSD} ;;
@@ -180,7 +181,7 @@ cat > test-readline.c <<EOF
#include <readline/history.h>
char **
-test_completion (char * text, int start, int end) {
+test_completion (const char * text, int start, int end) {
return NULL;
}
@@ -188,7 +189,7 @@ int
main(int argc, char** argv) {
rl_readline_name = "test";
- rl_attempted_completion_function = (CPPFunction *)test_completion;
+ rl_attempted_completion_function = test_completion;
readline(NULL);
add_history("test");
@@ -474,8 +475,8 @@ fi
cat > makefile_build <<EOF
# makefile for newLISP v. 10.1.x generated by the configure script (configure-alt)
CC = ${CC:-${DEFAULT_CC}}
-CFLAGS = ${CFLAGS:-${DEFAULT_CFLAGS}} ${INCLUDES}
-LDFLAGS = ${LDFLAGS:-${DEFAULT_LDFLAGS}}
+CFLAGS = ${CFLAGS} ${DEFAULT_CFLAGS} ${INCLUDES}
+LDFLAGS = ${LDFLAGS} ${DEFAULT_LDFLAGS}
OBJS = ${OBJS:-${DEFAULT_OBJS}}
STRIP = ${STRIP:-${DEFAULT_STRIP}}
TARG = ${TARG:-${DEFAULT_TARG}}
|