ObjFW  Check-in [e31d209120]

Overview
Comment:Only install atomic.h if atomic ops are available.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e31d209120fab4a5e731e6630bd3f0ff56eb36ef0626be4896ef93f846bdf233
User & Date: js on 2010-01-30 12:00:12
Other Links: manifest | tags
Context
2010-01-30
12:33
Convert more macros to OF_INLINE functions. check-in: 8acda3b3fd user: js tags: trunk
12:00
Only install atomic.h if atomic ops are available. check-in: e31d209120 user: js tags: trunk
11:58
Add -march=i486 to OBJCFLAGS in objfw-config if required. check-in: 0ec98003aa user: js tags: trunk
Changes

Modified configure.ac from [1ffe9fea5d] to [3e5258149c].

224
225
226
227
228
229
230

231
232
233
234
235
236
237
	dnl We can only have one thread - therefore everything is atomic
	atomic_ops="not needed"
fi

AC_MSG_CHECKING(for atomic operations)
if test x"$atomic_ops" != x"none"; then
	AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations])

fi
AC_MSG_RESULT($atomic_ops)

AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")

AC_MSG_CHECKING(for getaddrinfo)







>







224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
	dnl We can only have one thread - therefore everything is atomic
	atomic_ops="not needed"
fi

AC_MSG_CHECKING(for atomic operations)
if test x"$atomic_ops" != x"none"; then
	AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations])
	AC_SUBST(ATOMIC_H, "atomic.h")
fi
AC_MSG_RESULT($atomic_ops)

AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")

AC_MSG_CHECKING(for getaddrinfo)

Modified extra.mk.in from [8ecacc23d3] to [f7d6b1cce7].

1

2
3
4
5
6
7
8
9
10
ASPRINTF_M = @ASPRINTF_M@

OBJC_PROPERTIES_M = @OBJC_PROPERTIES_M@
OBJC_SYNC_M = @OBJC_SYNC_M@
OFPLUGIN_M = @OFPLUGIN_M@
OFTHREAD_M = @OFTHREAD_M@
PROPERTIES_M = @PROPERTIES_M@
TESTPLUGIN = @TESTPLUGIN@
TESTS = @TESTS@
TEST_LAUNCHER = @TEST_LAUNCHER@
THREADING_H = @THREADING_H@

>









1
2
3
4
5
6
7
8
9
10
11
ASPRINTF_M = @ASPRINTF_M@
ATOMIC_H = @ATOMIC_H@
OBJC_PROPERTIES_M = @OBJC_PROPERTIES_M@
OBJC_SYNC_M = @OBJC_SYNC_M@
OFPLUGIN_M = @OFPLUGIN_M@
OFTHREAD_M = @OFTHREAD_M@
PROPERTIES_M = @PROPERTIES_M@
TESTPLUGIN = @TESTPLUGIN@
TESTS = @TESTS@
TEST_LAUNCHER = @TEST_LAUNCHER@
THREADING_H = @THREADING_H@

Modified src/Makefile from [45d69f835a] to [bac1f4e24e].

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
       unicode.m

INCLUDES := ${SRCS:.m=.h}	\
	    OFFastEnumeration.h	\
	    OFMacros.h		\
	    ObjFW.h		\
	    asprintf.h		\
	    atomic.h		\
	    objfw-defs.h	\
	    ${THREADING_H}

SRCS += ${AS_PRINTF_M} 		\
	iso_8859_15.m		\
	windows_1252.m		\
	${OBJC_PROPERTIES_M}	\







|







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
       unicode.m

INCLUDES := ${SRCS:.m=.h}	\
	    OFFastEnumeration.h	\
	    OFMacros.h		\
	    ObjFW.h		\
	    asprintf.h		\
	    ${ATOMIC_H}		\
	    objfw-defs.h	\
	    ${THREADING_H}

SRCS += ${AS_PRINTF_M} 		\
	iso_8859_15.m		\
	windows_1252.m		\
	${OBJC_PROPERTIES_M}	\