$NetBSD: patch-ac,v 1.8 2011/01/25 22:22:15 shattered Exp $ --- configure.orig 2006-04-20 17:17:03.000000000 +0900 +++ configure @@ -3294,8 +3294,33 @@ echo "${ECHO_T}$scsh_cv_elf" >&6 ;; - ## NetBSD and FreeBSD ( and maybe 386BSD also) - *-*-*bsd*|*-*-darwin* ) + ## NetBSD, FreeBSD and DragonFly ( and maybe 386BSD also) + *-*-*bsd*|*-*-dragonfly* ) + LDFLAGS="-Wl,--export-dynamic" + dir=bsd + + echo "$as_me:$LINENO: checking for ELF" >&5 +echo $ECHO_N "checking for ELF... $ECHO_C" >&6 + if test "${scsh_cv_elf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + touch conftest.c + if ${CC} -v -o a.out conftest.c 2>&1 | grep -q __ELF__ ; then + scsh_cv_elf=yes + else + scsh_cv_elf=no + fi +fi + + echo "$as_me:$LINENO: result: $scsh_cv_elf" >&5 +echo "${ECHO_T}$scsh_cv_elf" >&6 + rm -f conftest.c a.out + + ;; + + ## Mac OS X and Darwin + *-*-darwin* ) dir=bsd echo "$as_me:$LINENO: checking for ELF" >&5