$NetBSD: patch-ab,v 1.3 1999/04/09 09:39:20 agc Exp $ Make this work on NetBSD. For Solaris, make the DATADIRNAME share. --- configure.orig Sat Mar 20 09:34:01 1999 +++ configure Fri Apr 9 10:28:33 1999 @@ -1596,6 +1596,13 @@ ;; esac +case "$target" in +i[3456]86*-*-netbsd* | pentium-*-netbsd* | pentiumpro-*-netbsd*) + ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)' + ac_symxfrm='_\1 \1' + ;; +esac + # If we're using GNU nm, then use its standard symbol codes. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then ac_symcode='[ABCDGISTUW]' @@ -1840,7 +1847,7 @@ CFLAGS_RDYNAMIC="-Wl,-dy" ;; - freebsd2* | osf4* ) + freebsd2* | osf4* | netbsd*) CFLAGS_RDYNAMIC="" ;; * ) @@ -1880,6 +1887,9 @@ NAME_OF_DEV_URANDOM="/dev/urandom" DYNLINK_MOD_CFLAGS="-shared -rdynamic -fpic -Wl,-Bshareable -Wl,-x" ;; + *-netbsd*) + DYNLINK_MOD_CFLAGS="-shared -rdynamic -fpic -Wl,-Bshareable -Wl,-x" + ;; *) NAME_OF_DEV_RANDOM="/dev/random" NAME_OF_DEV_URANDOM="/dev/urandom" @@ -3248,7 +3258,7 @@ cat conftest.$ac_ext >&5 rm -rf conftest* CATOBJEXT=.mo - DATADIRNAME=lib + DATADIRNAME=share fi rm -f conftest* INSTOBJEXT=.mo