summaryrefslogtreecommitdiff
path: root/chat/amsn/patches/patch-configureac
blob: 8da938a3840b6c0d0beb80c825cf16c7573adfeb (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
$NetBSD: patch-configureac,v 1.2 2008/01/05 20:35:14 rillig Exp $

http://sourceforge.net/tracker/index.php?func=detail&aid=1864687&group_id=54091&atid=472657

--- configure.ac.orig	2007-12-24 21:35:51.000000000 +0000
+++ configure.ac	2008-01-05 20:03:57.000000000 +0000
@@ -22,7 +22,7 @@ AC_ARG_ENABLE(debug,
   [  --enable-debug          enable some debuging informations],[enable_debug=yes])
 
 AC_SUBST(DEBUG)
-if test "$enable_debug" == "yes" ; then
+if test "$enable_debug" = "yes" ; then
     DEBUG="yes"
 else
     DEBUG="no"
@@ -32,7 +32,7 @@ AC_ARG_ENABLE(static,
   [  --enable-static         enable static link of libstdc++],[enable_static=yes])
 
 AC_SUBST(STATIC)
-if test "$enable_static" == "yes" ; then
+if test "$enable_static" = "yes" ; then
     STATIC="yes"
 else
     STATIC="no"
@@ -89,7 +89,7 @@ AC_ARG_ENABLE(version-check, [  --disabl
 
 OLDV=`expr $VERSION \< 8.4`
 
-if test "x${version_ok}" == "xyes" -a $OLDV == 1; then
+if test "x${version_ok}" = "xyes" -a $OLDV = 1; then
     AC_MSG_ERROR(Your current Tcl/Tk installation has a version number of $VERSION. The minimal version required for aMSN to run is Tcl/Tk 8.4)
 fi
 
@@ -101,14 +101,14 @@ dnl Checks for programs.
 AC_PROG_CC
 
 CC_INSTALLED=`which $CC`
-if test "x${CC_INSTALLED}" == "x"; then
+if test "x${CC_INSTALLED}" = "x"; then
     AC_MSG_ERROR(You need a C compiler (gcc) to compiler aMSN. Please install gcc and try again) 
 fi
 
 AC_PROG_CXX
 
 CXX_INSTALLED=`which $CXX`
-if test "x${CXX_INSTALLED}" == "x"; then
+if test "x${CXX_INSTALLED}" = "x"; then
      AC_MSG_ERROR(You need a C++ compiler (g++) to compiler aMSN. Please install g++ and try again) 
 fi
 
@@ -184,7 +184,7 @@ if test $FOUND_OS != "mac"; then
 		
 				if  test "x${TCL_INC_DIR}" != "x" -o "x${TCL_INC_SPEC}" != "x" \
 					-o "x${TCL_INCLUDE_DIR}" != "x" -o "x${TCL_INCLUDE_SPEC}" != "x"; then
-				if test "x${TCL_VERSION}" == "x${VERSION}" ; then
+				if test "x${TCL_VERSION}" = "x${VERSION}" ; then
 				TCL_LIB_DIR=`cd $i; pwd`
 				break;
 				fi
@@ -233,15 +233,15 @@ if test $FOUND_OS != "mac"; then
 	TCL_INC_DIR=$TCL_INCLUDE_SPEC
 	fi
 	
-	if test "x${TCL_INC_DIR}" == "x"; then
+	if test "x${TCL_INC_DIR}" = "x"; then
 	TCL_INC_DIR=$TCL_INCLUDE_DIR
 	fi
 	
-	if test "x${TCL_INC_DIR}" == "x" -a -f ${TCL_PREFIX}/include/tcl.h; then
+	if test "x${TCL_INC_DIR}" = "x" -a -f ${TCL_PREFIX}/include/tcl.h; then
 	TCL_INC_DIR=${TCL_PREFIX}/include
 	fi
 	
-	if test "x${TCL_INC_DIR}" == "x"; then
+	if test "x${TCL_INC_DIR}" = "x"; then
 	AC_MSG_ERROR(You dot not have a devel package of Tcl)
 	fi
 	
@@ -253,7 +253,7 @@ if test $FOUND_OS != "mac"; then
 	TCL_INC_SPEC=$TCL_INC_DIR
 	
 	framework=`echo "${TCL_BASE}" | grep -- "-framework"`
-	if test "x${framework}" == "x"; then
+	if test "x${framework}" = "x"; then
 	TCL_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_BASE}"
 	fi
 	TCL_STUB_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_STUB_BASE}"
@@ -322,7 +322,7 @@ if test $FOUND_OS != "mac"; then
 	
 		if  test "x${TK_INC_DIR}" != "x" -o "x${TK_INC_SPEC}" != "x" \
 				-o "x${TK_INCLUDE_DIR}" != "x" -o "x${TK_INCLUDE_SPEC}" != "x"; then
-				if test "x${TK_VERSION}" == "x${VERSION}"; then
+				if test "x${TK_VERSION}" = "x${VERSION}"; then
 			TK_LIB_DIR=`cd $i; pwd`
 			break;
 			fi
@@ -362,15 +362,15 @@ if test $FOUND_OS != "mac"; then
 	TK_INC_DIR=$TK_INCLUDE_SPEC
 	fi
 	
-	if test "x${TK_INC_DIR}" == "x"; then
+	if test "x${TK_INC_DIR}" = "x"; then
 	TK_INC_DIR=$TK_INCLUDE_DIR
 	fi
 	
-	if test "x${TK_INC_DIR}" == "x" -a -f ${TK_PREFIX}/include/tk.h; then
+	if test "x${TK_INC_DIR}" = "x" -a -f ${TK_PREFIX}/include/tk.h; then
 	TK_INC_DIR=${TK_PREFIX}/include
 	fi
 	
-	if test "x${TK_INC_DIR}" == "x"; then
+	if test "x${TK_INC_DIR}" = "x"; then
 	AC_MSG_ERROR(You dot not have a devel package of Tk)
 	fi
 	
@@ -392,8 +392,7 @@ AC_SUBST(TK_STUB_LIB_SPEC)
 dnl ---------------------------------------------------------------------
 dnl do some OS specific stuff here
 
-dnl Check for libstdc++
-AC_CHECK_LIB(stdc++,main,CXX_LIB="-lstdc++", AC_MSG_ERROR(stdc++ library not found) )
+CXX_LIB=""
 AC_SUBST(CXX_LIB)
 
 AC_SUBST(LDLIBS)
@@ -412,7 +411,7 @@ else
    AC_MSG_RESULT("Could not find X11 devel package, traydock will not be compiled")
 fi
 
-if test "$FOUND_OS" == "solaris"; then
+if test "$FOUND_OS" = "solaris"; then
 	# If possible, build webcam support.  Otherwise, default to
 	# Linux for other goodies.
 	AC_CHECK_HEADERS(sys/videodev2.h,FOUND_OS=solaris,FOUND_OS=linux)