summaryrefslogtreecommitdiff
path: root/math/xlispstat/files/patch-ac
blob: 88d62d3c3e1e5e98b3129a0a5c397e1e51820866 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- configure.orig	Wed Dec 17 06:12:43 1997
+++ configure	Thu Dec 23 16:38:07 1999
@@ -521,6 +521,23 @@
   ac_n= ac_c='\c' ac_t=
 fi
 
+echo checking for FreeBSD
+cat > conftest.${ac_ext} <<EOF
+#include "confdefs.h"
+#ifdef __FreeBSD__
+  yes
+#endif
+
+EOF
+eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
+if egrep "yes" conftest.out >/dev/null 2>&1; then
+  rm -rf conftest*
+  bsd=1
+  freebsd=1
+
+fi
+rm -f conftest*
+
 
 
 ac_aux_dir=
@@ -1304,7 +1321,7 @@
 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
   echo "$ac_t""yes" 1>&6
   
-  FOREIGN_FILE="sysvr4-foreign.h"
+  FOREIGN_FILE="bsd-foreign.h"
   foreign=1
   cat >> confdefs.h <<\EOF
 #define HAVE_DLOPEN 1