$NetBSD: patch-ag,v 1.1 2004/11/30 05:58:04 taca Exp $

--- configure.orig	2002-11-04 23:21:09.000000000 +0900
+++ configure
@@ -659,6 +659,24 @@ EOF
 #define UC_LOCAL_JCODE 3
 EOF
  ;;
+ netbsd*)
+	cat >> confdefs.h <<\EOF
+#define __BSD__ 1
+EOF
+
+	cat >> confdefs.h <<\EOF
+#define UC_LOCAL_JCODE 3
+EOF
+ ;;
+ openbsd*)
+	cat >> confdefs.h <<\EOF
+#define __BSD__ 1
+EOF
+
+	cat >> confdefs.h <<\EOF
+#define UC_LOCAL_JCODE 3
+EOF
+ ;;
     bsdi*)
 	cat >> confdefs.h <<\EOF
 #define __BSD__ 1
@@ -1434,6 +1452,9 @@ else
 fi
 done
 
+if test -z "${PKG_SYSCONFDIR}"; then
+  PKG_SYSCONFDIR="`eval echo \`echo ${sysconfdir}\``/AiCA"
+fi
 
 trap '' 1 2 15
 cat > confcache <<\EOF
@@ -1569,6 +1590,7 @@ s%@sbindir@%$sbindir%g
 s%@libexecdir@%$libexecdir%g
 s%@datadir@%$datadir%g
 s%@sysconfdir@%$sysconfdir%g
+s%@PKG_SYSCONFDIR@%$PKG_SYSCONFDIR%g
 s%@sharedstatedir@%$sharedstatedir%g
 s%@localstatedir@%$localstatedir%g
 s%@libdir@%$libdir%g
@@ -1635,7 +1657,7 @@ aicrypto/lnm/Makefile aicrypto/pkcs/Make
 aicrypto/asn1/Makefile aicrypto/x509/Makefile aicrypto/utf8/Makefile
 aicrypto/tool/Makefile aicrypto/cmp/Makefile aicrypto/store/Makefile
 aicrypto/smime/Makefile aicrypto/ssl/Makefile aicrypto/lib/Makefile
-aicrypto/Makefile ca/Makefile apps/Makefile aica/Makefile lib/aica.cnf Makefile"}
+aicrypto/Makefile ca/Makefile apps/Makefile aica/Makefile lib/aica.cnf Makefile" README README.j}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
