Skip to Content.
Sympa Menu

freetds - Re: pre2?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: pre2?
  • Date: Tue, 9 Jul 2002 09:54:09 +0200


>
> I have all the autoconf, _REENTRANT, three different call
> signature _r()
> functions just about ready to go in...maybe tonight if I can
> fix the !@#$
> autoconf macro to stop finding Linux as having the wrong
> getservbyname_r
> signature.
>
Some compiler require also a -mthreads or a -pthread

An autoconf code for this should be (taken and modified from CommonC++
library)

AC_CACHE_CHECK(whether ${CC-cc} accepts -pthread,
ftds_cv_prog_cc_pthread,
[echo 'void f(){}' >conftest.c
if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
ftds_cv_prog_cc_pthread=yes
else
ftds_cv_prog_cc_pthread=no
fi
rm -f conftest*
])
if test "$ftds_cv_prog_cc_pthread" = "no" ; then
AC_CACHE_CHECK(whether ${CC-cc} accepts -mthreads,
ftds_cv_prog_cc_mthreads,
[echo 'void f(){}' >conftest.c
if test -z "`${CC-cc} -mthreads -c conftest.c 2>&1`"; then
ftds_cv_prog_cc_mthreads=yes
else
ftds_cv_prog_cc_mthreads=no
fi
rm -f conftest*
])
fi
if test $ftds_cv_prog_cc_pthread = yes ; then
CFLAGS="$CFLAGS -pthread"
elif test $ftds_cv_prog_cc_mthreads = yes ; then
CFLAGS="$CFLAGS -mthreads"
fi

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page