summaryrefslogtreecommitdiff
path: root/package/srelay/patches/patch-configure
blob: b4a4e599985cde2b9ff15d3c7308938e740c278a (plain)
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
45
46
47
48
--- srelay-0.4.7b2.orig/configure	2009-08-30 15:06:32.000000000 +0200
+++ srelay-0.4.7b2/configure	2009-12-11 23:56:31.000000000 +0100
@@ -1858,43 +1858,11 @@ test -n "$target_alias" &&
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-
 
-case "$build_os" in
-  freebsd*)
-	OS=FREEBSD
-	cat >>confdefs.h <<\_ACEOF
-#define FREEBSD 1
-_ACEOF
-
-	;;
-  solaris*)
-	OS=SOLARIS
-	cat >>confdefs.h <<\_ACEOF
-#define SOLARIS 1
-_ACEOF
-
-	;;
-  linux*)
-	case "$build_cpu" in
-	  i*86)
-	    OS=LINUX
-	    cat >>confdefs.h <<\_ACEOF
+OS=LINUX
+cat >>confdefs.h <<\_ACEOF
 #define LINUX 1
 _ACEOF
 
-	    ;;
-        esac
-	;;
-  darwin*)
-	OS=MACOSX
-	cat >>confdefs.h <<\_ACEOF
-#define MACOSX 1
-_ACEOF
-
-	;;
-esac
-
-CFLAGS="$CFLAGS -O2 -Wall"
-
 if test -d /usr/local/lib; then
     LIBS="-L/usr/local/lib $LIBS"
 fi