 #
# Local configure fragment for sysdeps/unix/bsd/bsd4.4/freebsd.
# Process this file with "autoconf-2.13 -l ../../../../..".
#

# Don't bother checking for the prerequisites of the ctype glue code,
# since we don't use this glue code.
inhibit_glue=yes

# Put exception handling support into libc, so that not every shared
# library needs to include it.
# FIXME: Does not work yet.
#libc_cv_gcc_unwind_find_fde=yes

# Under FreeBSD the LinuxThreads add-on should be available.
case $add_ons in
  # It is available.  Good.
  *linuxthreads*)
    linuxthreads_missing=
    ;;
  *)
    linuxthreads_missing=yes
    ;;
esac

if test "$linuxthreads_missing"; then
  if test $enable_sanity = yes; then
    echo "\
*** On GNU/FreeBSD systems it is normal to compile GNU libc with the
*** 'linuxthreads' add-on.  Without that, the library will be
*** incompatible with normal GNU/FreeBSD systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter '--disable-sanity-checks'."
    exit 1
  else
    echo "\
*** WARNING: Are you sure you do not want to use the 'linuxthreads'
*** add-on?"
  fi
fi

# On FreeBSD we use ldconfig.
use_ldconfig=yes
