summaryrefslogtreecommitdiff
path: root/packages/aalib/aalib-1.4rc5/configure.patch
blob: 7cbbbeb6516110a62043311587ed3d453b337af9 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- aalib-1.4.0/configure.in~configure	2001-04-26 10:37:53.000000000 -0400
+++ aalib-1.4.0/configure.in	2004-01-23 12:50:44.000000000 -0500
@@ -1,8 +1,7 @@
-include(aclocal.m4)
 AC_INIT(src/aalib.c)
-AM_INIT_AUTOMAKE(aalib,1.4.0)
-AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
+AM_INIT_AUTOMAKE(aalib,1.4.0)
 
 AM_CONFIG_HEADER(src/config.h)
 
@@ -82,6 +81,20 @@
 	  force_curses_driver=true
 	fi
 ])
+AC_ARG_WITH(gpm,
+	[  --with-gpm  Specifies whether or not to use gpm],[
+	if test x$withval = xyes
+	then
+		AC_DEFINE(GPM_MOUSEDRIVER)
+		gpm_mousedriver=true
+		AALIB_LIBS="$AALIB_LIBS -lgpm"
+		LIBS="$LIBS -lgpm"
+	else
+		gpm_mousedriver=false
+	fi
+	]
+)
+if ! test x$gpm_mousedriver = xfalse; then
 AC_ARG_WITH(gpm-mouse, 
 	[  --with-gpm-mouse=base-dir  Specifies the base gpm directory],
 	if test x$withval = xyes
@@ -96,6 +109,7 @@
 		AC_MSG_RESULT(defining use_gpm)
 	fi
 )
+fi
 
 if test  "$x_driver_test" = yes; then
 AC_PATH_X
@@ -126,7 +140,7 @@
 
 
 search_ncurses=true
-AC_DEFUN(AC_USE_SUNOS_CURSES, [
+AC_DEFUN([AC_USE_SUNOS_CURSES], [
 	search_ncurses=false
 	curses_driver=true
 	screen_manager="SunOS 4.x /usr/5include curses"
@@ -140,7 +154,7 @@
 	AC_WARN(Reconsider using Slang)
 ])
 
-AC_DEFUN(AC_USE_OSF1_CURSES, [
+AC_DEFUN([AC_USE_OSF1_CURSES], [
        AC_MSG_RESULT(Using OSF1 curses)
        search_ncurses=false
        curses_driver=true
@@ -152,7 +166,7 @@
        AALIB_LIBS="$AALIB_LIBS -lcurses"
 ])
 
-AC_DEFUN(AC_USE_SYSV_CURSES, [
+AC_DEFUN([AC_USE_SYSV_CURSES], [
 	AC_MSG_RESULT(Using SysV curses)
         curses_driver=true
 	AC_DEFINE(USE_SYSV_CURSES)
@@ -208,7 +222,7 @@
 )
 
 if test  "$slang_driver_test" = yes; then
-  AC_DEFUN(AC_SLANG, [
+  AC_DEFUN([AC_SLANG], [
     if $search_slang
     then
         if test -f $1/$2
@@ -246,7 +260,7 @@
 dnl
 dnl Parameters: directory filename LIBS_append CFLAGS_append nicename
 dnl
-AC_DEFUN(AC_NCURSES, [
+AC_DEFUN([AC_NCURSES], [
     if $search_ncurses
     then
         if test -f $1/$2
@@ -274,7 +288,7 @@
 dnl
 dnl Parameters: directory filename LIBS_append CFLAGS_append nicename
 dnl
-AC_DEFUN(AC_CURSES, [
+AC_DEFUN([AC_CURSES], [
     if $search_ncurses
     then
         if test -f $1/$2