Lines 1-49
Link Here
|
1 |
--- configure.orig Wed Aug 30 19:43:10 2000 |
1 |
--- configure.orig Sun Feb 10 16:39:19 2002 |
2 |
+++ configure Fri Sep 1 05:05:16 2000 |
2 |
+++ configure Mon Feb 25 01:10:52 2002 |
3 |
@@ -1760,7 +1760,7 @@ |
3 |
@@ -2032,6 +2032,26 @@ |
4 |
echo $ac_n "(cached) $ac_c" 1>&6 |
4 |
ELFLIB_MAJOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).dylib" |
5 |
else |
5 |
ELFLIB_MAJOR_MINOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).$(ELF_MINOR_VERSION).dylib" |
6 |
ac_save_LIBS="$LIBS" |
|
|
7 |
-LIBS="-ldl $LIBS" |
8 |
+ |
9 |
cat > conftest.$ac_ext <<EOF |
10 |
#line 1766 "configure" |
11 |
#include "confdefs.h" |
12 |
@@ -1818,7 +1818,7 @@ |
13 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14 |
echo "$ac_t""yes" 1>&6 |
15 |
|
16 |
- DYNAMIC_LINK_LIB="-ldl" |
17 |
+ DYNAMIC_LINK_LIB="" |
18 |
cat >> confdefs.h <<\EOF |
19 |
#define HAVE_DLFCN_H 1 |
20 |
EOF |
21 |
@@ -1887,6 +1887,21 @@ |
22 |
ELF_DEP_LIBS= |
23 |
fi |
24 |
;; |
6 |
;; |
25 |
+ *freebsd* ) |
7 |
+ *freebsd* ) |
26 |
+ if [ "$PORTOBJFORMAT" = elf ]; then |
8 |
+ if [ "$PORTOBJFORMAT" = elf ]; then |
27 |
+ DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic" |
9 |
+ DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic" |
28 |
+ ELF_CC="\$(CC)" |
10 |
+ ELF_CC="\$(CC)" |
29 |
+ ELF_CFLAGS="\$(CFLAGS) -fPIC" |
11 |
+ ELF_CFLAGS="\$(CFLAGS) -fPIC" |
30 |
+ ELF_LINK="\$(CC) -shared -Wl,-soname#" |
12 |
+ ELF_LINK="\$(CC) -shared -Wl,-soname#" |
31 |
+ ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" |
13 |
+ ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" |
32 |
+ else |
14 |
+ ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" |
33 |
+ DYNAMIC_LINK_FLAGS="" |
15 |
+ CC_SHARED="\$(CC) \$(CFLAGS) -shared -fPIC" |
34 |
+ ELF_CC="\$(CC)" |
16 |
+ else |
35 |
+ ELF_CFLAGS="\$(CFLAGS) -fPIC" |
17 |
+ # aout format is not tested |
36 |
+ ELF_LINK="ld -Bshareable -x" |
18 |
+ DYNAMIC_LINK_FLAGS="" |
37 |
+ ELF_LINK_CMD="\$(ELF_LINK)" |
19 |
+ ELF_CC="\$(CC)" |
38 |
+ fi |
20 |
+ ELF_CFLAGS="\$(CFLAGS) -fpic -DPIC" |
39 |
+ ;; |
21 |
+ ELF_LINK="ld -Bshareable -x" |
|
|
22 |
+ ELF_LINK_CMD="\$(ELF_LINK)" |
23 |
+ ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" |
24 |
+ CC_SHARED="\$(CC) \$(CFLAGS) -fpic -DPIC" |
25 |
+ fi |
26 |
+ ;; |
40 |
* ) |
27 |
* ) |
41 |
echo "Note: ELF compiler for host_os=$host_os may be wrong" |
28 |
echo "Note: ELF compiler for host_os=$host_os may be wrong" |
42 |
ELF_CC="\$(CC)" |
29 |
ELF_CC="$CC" |
43 |
@@ -2233,14 +2248,8 @@ |
30 |
@@ -2432,16 +2452,16 @@ |
44 |
echo "configure:2234: checking SLANG_VERSION" >&5 |
31 |
|
45 |
slang_version=`grep "^#define *SLANG_VERSION " $srcdir/src/slang.h | |
32 |
echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6 |
46 |
awk '{ print $3 }'` |
33 |
echo "configure:2435: checking SLANG_VERSION" >&5 |
|
|
34 |
-slang_version=`grep "^#define *SLANG_VERSION " $srcdir/src/slang.h | |
35 |
- awk '{ print $3 }'` |
47 |
-slang_major_version=`echo $slang_version | |
36 |
-slang_major_version=`echo $slang_version | |
48 |
- awk '{ print int($1/10000) }'` |
37 |
- awk '{ print int($1/10000) }'` |
49 |
-slang_minor_version=`echo $slang_version $slang_major_version | |
38 |
-slang_minor_version=`echo $slang_version $slang_major_version | |
Lines 52-63
Link Here
|
52 |
- awk '{ print ($1 - $2*10000 - $3*100) }'` |
41 |
- awk '{ print ($1 - $2*10000 - $3*100) }'` |
53 |
- |
42 |
- |
54 |
-slang_minor_version="$slang_minor_version.$slang_mminor_version" |
43 |
-slang_minor_version="$slang_minor_version.$slang_mminor_version" |
|
|
44 |
+#slang_version=`grep "^#define *SLANG_VERSION " $srcdir/src/slang.h | |
45 |
+# awk '{ print $3 }'` |
46 |
+#slang_major_version=`echo $slang_version | |
47 |
+# awk '{ print int($1/10000) }'` |
48 |
+#slang_minor_version=`echo $slang_version $slang_major_version | |
49 |
+# awk '{ print int(($1 - $2*10000)/100) }'` |
50 |
+#slang_mminor_version=`echo $slang_version $slang_major_version $slang_minor_version | |
51 |
+# awk '{ print ($1 - $2*10000 - $3*100) }'` |
55 |
+slang_major_version=2 |
52 |
+slang_major_version=2 |
56 |
+slang_minor_version=4 |
53 |
+slang_minor_version=5 |
57 |
slang_version="$slang_major_version.$slang_minor_version" |
54 |
slang_version="$slang_major_version.$slang_minor_version" |
58 |
echo "$ac_t""$slang_version" 1>&6 |
55 |
echo "$ac_t""$slang_version" 1>&6 |
59 |
|
56 |
|
60 |
@@ -2765,18 +2774,5 @@ |
57 |
@@ -2970,21 +2990,3 @@ |
61 |
|
58 |
|
62 |
|
59 |
|
63 |
echo "" |
60 |
echo "" |
Lines 71-78
Link Here
|
71 |
-echo " ELF_LINK =" "$ELF_LINK" |
68 |
-echo " ELF_LINK =" "$ELF_LINK" |
72 |
-echo "ELF_CFLAGS=" "$ELF_CFLAGS" |
69 |
-echo "ELF_CFLAGS=" "$ELF_CFLAGS" |
73 |
-echo "" |
70 |
-echo "" |
74 |
echo "Installation Prefix:" "$prefix" |
71 |
-echo " prefix:" "$prefix" |
75 |
echo "" |
72 |
-echo " exec_prefix:" "$exec_prefix" |
|
|
73 |
-echo " Installation Lib Dir:" "$libdir" |
74 |
-echo "Installation Include Dir:" "$includedir" |
75 |
-echo "" |
76 |
-echo "See also src/sl-feat.h for various features." |
76 |
-echo "See also src/sl-feat.h for various features." |
77 |
-echo "Type 'make' to build normal library." |
77 |
-echo "Type 'make' to build normal library." |
78 |
-echo "On ELF systems, type 'make elf' to create ELF shared library." |
78 |
-echo "On ELF systems, type 'make elf' to create ELF shared library." |