diff -ur poslib-1.0.2/configure poslib-1.0.2-patched/configure --- poslib-1.0.2/configure 2003-11-05 16:01:04.000000000 +0000 +++ poslib-1.0.2-patched/configure 2003-11-12 22:30:27.000000000 +0000 @@ -5600,6 +5600,113 @@ + echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +echo "configure:5605: checking for ANSI C header files" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +#include +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ac_cv_header_stdc=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +if test "$cross_compiling" = yes; then + : +else + cat > conftest.$ac_ext < +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int main () { int i; for (i = 0; i < 256; i++) +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +exit (0); } + +EOF +if { (eval echo configure:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_header_stdc=no +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 +if test $ac_cv_header_stdc = yes; then + cat >> confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + +fi + # Check whether --with-cxxflags or --without-cxxflags was given. @@ -5713,17 +5820,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5717: checking for $ac_hdr" >&5 +echo "configure:5824: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5753,17 +5860,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5757: checking for $ac_hdr" >&5 +echo "configure:5864: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5793,17 +5900,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5797: checking for $ac_hdr" >&5 +echo "configure:5904: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5841,12 +5948,12 @@ for ac_func in select socket inet_aton gethostname gethostbyname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5845: checking for $ac_func" >&5 +echo "configure:5952: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5900,7 +6007,7 @@ if test $ac_cv_func_socket = no; then # socket is not in the default libraries. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:5904: checking for socket in -lsocket" >&5 +echo "configure:6011: checking for socket in -lsocket" >&5 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5908,7 +6015,7 @@ ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5945,9 +6052,9 @@ fi echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 -echo "configure:5949: checking for vsnprintf" >&5 +echo "configure:6056: checking for vsnprintf" >&5 cat > conftest.$ac_ext < #include @@ -5956,7 +6063,7 @@ char buff[1]; va_list valist; vsnprintf(buff, 1, "", valist); ; return 0; } EOF -if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -5974,9 +6081,9 @@ echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 -echo "configure:5978: checking for gettimeofday" >&5 +echo "configure:6085: checking for gettimeofday" >&5 cat > conftest.$ac_ext < @@ -5986,7 +6093,7 @@ int ret = gettimeofday(&tp, &zn); ; return 0; } EOF -if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6005,7 +6112,7 @@ if test $ac_cv_func_inet_aton = no; then # inet_aton is not in the default libraries. echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:6009: checking for inet_aton in -lresolv" >&5 +echo "configure:6116: checking for inet_aton in -lresolv" >&5 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6013,7 +6120,7 @@ ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6051,7 +6158,7 @@ if test $ac_cv_func_gethostname = no; then echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 -echo "configure:6055: checking for gethostname in -lnsl" >&5 +echo "configure:6162: checking for gethostname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6059,7 +6166,7 @@ ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6097,7 +6204,7 @@ if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:6101: checking for gethostbyname in -lnsl" >&5 +echo "configure:6208: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6105,7 +6212,7 @@ ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6148,9 +6255,9 @@ if test x$want_ipv6 = x1; then echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6 -echo "configure:6152: checking for struct sockaddr_in6" >&5 +echo "configure:6259: checking for struct sockaddr_in6" >&5 cat > conftest.$ac_ext < #include @@ -6160,7 +6267,7 @@ static struct sockaddr_in6 ac_i; ; return 0; } EOF -if { (eval echo configure:6164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6170,9 +6277,9 @@ echo $ac_n "checking whether struct sockaddr_in6 has a sin6_len field""... $ac_c" 1>&6 -echo "configure:6174: checking whether struct sockaddr_in6 has a sin6_len field" >&5 +echo "configure:6281: checking whether struct sockaddr_in6 has a sin6_len field" >&5 cat > conftest.$ac_ext < #include @@ -6182,7 +6289,7 @@ static struct sockaddr_in6 ac_i;int ac_j = sizeof(ac_i.sin6_len); ; return 0; } EOF -if { (eval echo configure:6186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6199,9 +6306,9 @@ echo $ac_n "checking whether struct sockaddr_storage has a __ss_family field""... $ac_c" 1>&6 -echo "configure:6203: checking whether struct sockaddr_storage has a __ss_family field" >&5 +echo "configure:6310: checking whether struct sockaddr_storage has a __ss_family field" >&5 cat > conftest.$ac_ext < #include @@ -6211,7 +6318,7 @@ static struct sockaddr_storage ac_i;int ac_j = sizeof(ac_i.__ss_family); ; return 0; } EOF -if { (eval echo configure:6215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6235,9 +6342,9 @@ rm -f conftest* echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6 -echo "configure:6239: checking for struct sockaddr_storage" >&5 +echo "configure:6346: checking for struct sockaddr_storage" >&5 cat > conftest.$ac_ext < #include @@ -6247,7 +6354,7 @@ static struct sockaddr_storage ac_i; ; return 0; } EOF -if { (eval echo configure:6251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6264,13 +6371,11 @@ rm -f conftest* fi - - echo $ac_n "checking whether struct sockaddr_in has a sin_len field""... $ac_c" 1>&6 -echo "configure:6272: checking whether struct sockaddr_in has a sin_len field" >&5 +echo "configure:6377: checking whether struct sockaddr_in has a sin_len field" >&5 cat > conftest.$ac_ext < #include @@ -6279,7 +6384,7 @@ static struct sockaddr_in ac_i;int ac_j = sizeof(ac_i.sin_len); ; return 0; } EOF -if { (eval echo configure:6283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -6296,9 +6401,9 @@ echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:6300: checking for socklen_t" >&5 +echo "configure:6405: checking for socklen_t" >&5 cat > conftest.$ac_ext < EOF @@ -6317,11 +6422,36 @@ rm -f conftest* + +ORIG_LIBS=$LIBS +LIBS="$LIBS -lstdc++" + +echo $ac_n "checking "for -lstdc++"""... $ac_c" 1>&6 +echo "configure:6431: checking "for -lstdc++"" >&5 +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + echo "$ac_t""no" 1>&6; LIBS=$ORIG_LIBS +fi +rm -f conftest*; + system=`uname -s` case $system in Linux|SunOS) echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:6325: checking for pthread_create in -lpthread" >&5 +echo "configure:6455: checking for pthread_create in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6329,7 +6459,7 @@ ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6367,25 +6497,26 @@ OSF1) echo $ac_n "checking whether pthreads work""... $ac_c" 1>&6 -echo "configure:6371: checking whether pthreads work" >&5 +echo "configure:6501: checking whether pthreads work" >&5 LDFLAGS="$LDFLAGS -lpthread -lexc -ldb" + THREAD_LIBS="-lpthread -lexc -ldb" echo "configure: warning: *** _Untested pthreads_ try setting LDFLAGS manually if it doesn't work ***" 1>&2 ;; *) echo $ac_n "checking whether threads work with -pthread""... $ac_c" 1>&6 -echo "configure:6378: checking whether threads work with -pthread" >&5 +echo "configure:6509: checking whether threads work with -pthread" >&5 LDSAVEFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -pthread" cat > conftest.$ac_ext < int main() { pthread_t tr; pthread_create(&tr, NULL, NULL, NULL); ; return 0; } EOF -if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* pthread_ok=yes else @@ -6402,7 +6533,7 @@ echo "$ac_t""no. Now we will try some libraries." 1>&6 LDFLAGS=$LDSAVEFLAGS echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:6406: checking for pthread_create in -lpthread" >&5 +echo "configure:6537: checking for pthread_create in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6410,7 +6541,7 @@ ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6443,7 +6574,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:6447: checking for pthread_create in -lc_r" >&5 +echo "configure:6578: checking for pthread_create in -lc_r" >&5 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6451,7 +6582,7 @@ ac_save_LIBS="$LIBS" LIBS="-lc_r $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6493,6 +6624,7 @@ esac THREAD_CFLAGS="-D_THREAD_SAFE" +THREAD_LIBS=$LDFLAGS diff -ur poslib-1.0.2/configure.in poslib-1.0.2-patched/configure.in --- poslib-1.0.2/configure.in 2003-11-05 15:59:22.000000000 +0000 +++ poslib-1.0.2-patched/configure.in 2003-11-12 22:30:22.000000000 +0000 @@ -7,7 +7,6 @@ dnl dnl Portions from this file were taken from the Xine-lib configure script. - dnl -------------------- dnl AC/AM Initialization dnl -------------------- @@ -33,6 +32,7 @@ AC_PROG_RANLIB AM_PROG_LIBTOOL AC_CHECK_TOOL([STRIP],[strip]) + AC_HEADER_STDC dnl ----------------------------- dnl Debug builds & compiler flags @@ -210,8 +210,6 @@ ) fi - - dnl -------------------------------- dnl Check for sin_len in sockaddr_in dnl -------------------------------- @@ -234,6 +232,16 @@ AC_DEFINE(HAVE_SOCKLEN_T, 1, [Defines whether we have the socklen_t field]), AC_MSG_RESULT(no)) +dnl --------------------------------- +dnl Check whether to link to -lstdc++ +dnl --------------------------------- + +ORIG_LIBS=$LIBS +LIBS="$LIBS -lstdc++" + +AC_MSG_CHECKING("for -lstdc++") +AC_TRY_LINK([], [], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); LIBS=$ORIG_LIBS]); + dnl ------------------------------------- dnl Check for Pthreads (taken from Dillo) dnl ------------------------------------- @@ -246,6 +254,7 @@ OSF1) AC_MSG_CHECKING(whether pthreads work) LDFLAGS="$LDFLAGS -lpthread -lexc -ldb" + THREAD_LIBS="-lpthread -lexc -ldb" AC_MSG_WARN(*** _Untested pthreads_ try setting LDFLAGS manually if it doesn't work ***) ;; @@ -272,6 +281,7 @@ esac THREAD_CFLAGS="-D_THREAD_SAFE" +THREAD_LIBS=$LDFLAGS AC_SUBST(THREAD_LIBS) AC_SUBST(THREAD_CFLAGS) diff -ur poslib-1.0.2/poslib-config.h.in poslib-1.0.2-patched/poslib-config.h.in --- poslib-1.0.2/poslib-config.h.in 2003-09-23 21:18:04.000000000 +0000 +++ poslib-1.0.2-patched/poslib-config.h.in 2003-11-12 22:29:21.000000000 +0000 @@ -1,5 +1,8 @@ /* poslib-config.h.in. Generated automatically from configure.in by autoheader. */ +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + /* Define if you have the gethostbyname function. */ #undef HAVE_GETHOSTBYNAME diff -ur poslib-1.0.2/tools/Makefile.in poslib-1.0.2-patched/tools/Makefile.in --- poslib-1.0.2/tools/Makefile.in 2003-11-05 16:01:03.000000000 +0000 +++ poslib-1.0.2-patched/tools/Makefile.in 2003-11-12 22:30:26.000000000 +0000 @@ -113,30 +113,30 @@ LIBS = @LIBS@ posask_OBJECTS = posask.$(OBJEXT) posask_LDADD = $(LDADD) -@DEBUG_FALSE@posask_DEPENDENCIES = ../poslib/libposlib.la @DEBUG_TRUE@posask_DEPENDENCIES = ../poslib/libposlib.a +@DEBUG_FALSE@posask_DEPENDENCIES = ../poslib/libposlib.la posask_LDFLAGS = nslist_OBJECTS = nslist.$(OBJEXT) nslist_LDADD = $(LDADD) -@DEBUG_FALSE@nslist_DEPENDENCIES = ../poslib/libposlib.la @DEBUG_TRUE@nslist_DEPENDENCIES = ../poslib/libposlib.a +@DEBUG_FALSE@nslist_DEPENDENCIES = ../poslib/libposlib.la nslist_LDFLAGS = fileserver_OBJECTS = fileserver.$(OBJEXT) -@DEBUG_FALSE@fileserver_DEPENDENCIES = ../poslib/server/libposserver.la \ -@DEBUG_FALSE@../poslib/libposlib.la @DEBUG_TRUE@fileserver_DEPENDENCIES = ../poslib/server/libposserver.a \ @DEBUG_TRUE@../poslib/libposlib.a +@DEBUG_FALSE@fileserver_DEPENDENCIES = ../poslib/server/libposserver.la \ +@DEBUG_FALSE@../poslib/libposlib.la fileserver_LDFLAGS = fileclient_OBJECTS = fileclient.$(OBJEXT) fileclient_LDADD = $(LDADD) -@DEBUG_FALSE@fileclient_DEPENDENCIES = ../poslib/libposlib.la @DEBUG_TRUE@fileclient_DEPENDENCIES = ../poslib/libposlib.a +@DEBUG_FALSE@fileclient_DEPENDENCIES = ../poslib/libposlib.la fileclient_LDFLAGS = tunneld_OBJECTS = tunneld.$(OBJEXT) -@DEBUG_FALSE@tunneld_DEPENDENCIES = ../poslib/server/libposserver.la \ -@DEBUG_FALSE@../poslib/libposlib.la @DEBUG_TRUE@tunneld_DEPENDENCIES = ../poslib/server/libposserver.a \ @DEBUG_TRUE@../poslib/libposlib.a +@DEBUG_FALSE@tunneld_DEPENDENCIES = ../poslib/server/libposserver.la \ +@DEBUG_FALSE@../poslib/libposlib.la tunneld_LDFLAGS = CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) diff -ur poslib-1.0.2/tools/sqldns/Makefile.in poslib-1.0.2-patched/tools/sqldns/Makefile.in --- poslib-1.0.2/tools/sqldns/Makefile.in 2003-11-05 16:01:03.000000000 +0000 +++ poslib-1.0.2-patched/tools/sqldns/Makefile.in 2003-11-12 22:30:26.000000000 +0000 @@ -104,10 +104,10 @@ LIBS = @LIBS@ sqldns_OBJECTS = sqldns.$(OBJEXT) sqldns_LDADD = $(LDADD) -@DEBUG_FALSE@sqldns_DEPENDENCIES = ../../poslib/server/libposserver.la \ -@DEBUG_FALSE@../../poslib/libposlib.la @DEBUG_TRUE@sqldns_DEPENDENCIES = ../../poslib/server/libposserver.a \ @DEBUG_TRUE@../../poslib/libposlib.a +@DEBUG_FALSE@sqldns_DEPENDENCIES = ../../poslib/server/libposserver.la \ +@DEBUG_FALSE@../../poslib/libposlib.la sqldns_LDFLAGS = CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)