When I started to to fix double arch, i tried to configure cvs. Got
lots of these:
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h: check for missing prerequisite
headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h: section "Present But Cannot Be
Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take
precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for pthread.h... yes
This happens with about every system file. In tests, includes do not
work properly.
Change I posted does fix this.
Aarno
PS. And this is not just about looking definitely unpretty. CVS does
not compile
properly either, because HAVE_SOMETHING definitions do not have right
values.
On 13 Jan 2006, at 02:44, Stipe Tolj wrote:
Aarno Syvänen wrote:
Hi List,
Current configure does *not* work with Mac at all. So i use
following instead:
Index: configure.in
===================================================================
RCS file: /home/cvs/gateway/configure.in,v
retrieving revision 1.155
diff -r1.155 configure.in
157,158d156
< AC_CHECK_LIB(c_r, pthread_exit, [LIBS="$LIBS -lc_r";
pthread="yes"])
< AC_CHECK_LIB(kse, pthread_exit, [LIBS="$LIBS -lkse";
pthread="yes"])
203a202,203
> AC_SEARCH_LIBS([pthread_exit], [c_r], [pthread="yes"])
> AC_SEARCH_LIBS([pthread_exit], [kse], [pthread="yes"])
214c214,229
< AC_CHECK_HEADERS(sys/socket.h sys/sockio.h net/if.h netinet/in.h)
---
> AC_CHECK_HEADERS([sys/socket.h])
> AC_CHECK_HEADERS([net/if.h], [], [],
> [#include <stdio.h>
> #if STDC_HEADERS
> # include <stdlib.h>
> # include <stddef.h>
> #else
> # if HAVE_STDLIB_H
> # include <stdlib.h>
> # endif
> #endif
> #if HAVE_SYS_SOCKET_H
> # include <sys/socket.h>
> #endif
> ])
> AC_CHECK_HEADERS(sys/sockio.h netinet/in.h)
Does anybody object me committing this change. It is, does break
some other os.
Hi Aarno,
now I commited a revert from Andreas changes regarding the usage of
the SDK location rather then /usr based libs and includes for darwin.
Why are these changes from your side required?
I don't see the "connection point" to the multiple -arch flags
thing Cesar reported.
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------