Fix regression in qsort_r BSD detection
authorChristophe Fergeau <cfergeau@redhat.com>
Thu, 9 Jun 2011 11:36:19 +0000 (13:36 +0200)
committerChristophe Fergeau <cfergeau@redhat.com>
Fri, 10 Jun 2011 13:18:58 +0000 (15:18 +0200)
commit28a9e91b136be5dc133651ae0ea2e70be3d99ba5
tree7e3ebc6f06c623e6cf9dce1a57f853ae87972277
parent73905434a4c32fc0c1a1024a66856cddc77b18db
Fix regression in qsort_r BSD detection

We can use AC_CHECK_FUNCS to detect if qsort_r is available on
the system or not since it will unconditionnally define
HAVE_QSORT_R, which we don't want since on BSD, qsort_r isn't usable
for us, so we don't want to have HAVE_QSORT_R defined on such platforms.
By using AC_CHECK_FUNC instead, we can defer defining HAVE_QSORT_R until
we have actually tested it's usable.

https://bugzilla.gnome.org/show_bug.cgi?id=651920
configure.ac