2000-02-10 06:56:13 +00:00
|
|
|
--- configure.orig Sun Jan 9 20:38:14 2000
|
|
|
|
+++ configure Wed Feb 9 16:18:35 2000
|
|
|
|
@@ -1865,6 +1865,19 @@
|
|
|
|
ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
+ *freebsd* )
|
|
|
|
+ if [ $PORTOBJFORMAT = elf ]; then
|
|
|
|
+ ELF_CC="\$(CC)"
|
|
|
|
+ ELF_CFLAGS="\$(CFLAGS) -fPIC"
|
|
|
|
+ ELF_LINK="\$(CC) -shared -Wl,-soname,\$(ELFLIB_MAJOR)"
|
|
|
|
+ ELF_LINK_CMD="\$(ELF_LINK)"
|
|
|
|
+ else
|
|
|
|
+ ELF_CC="\$(CC)"
|
|
|
|
+ ELF_CFLAGS="\$(CFLAGS) -fPIC"
|
|
|
|
+ ELF_LINK="ld -Bshareable -x"
|
|
|
|
+ ELF_LINK_CMD="\$(ELF_LINK)"
|
|
|
|
+ fi
|
|
|
|
+ ;;
|
|
|
|
* )
|
|
|
|
echo "Note: ELF compiler for host_os=$host_os may be wrong"
|
|
|
|
ELF_CC="\$(CC)"
|
|
|
|
@@ -2181,16 +2194,8 @@
|
1999-12-29 21:35:49 +00:00
|
|
|
|
|
|
|
echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6
|
2000-02-10 06:56:13 +00:00
|
|
|
echo "configure:2184: checking SLANG_VERSION" >&5
|
1999-12-29 21:35:49 +00:00
|
|
|
-slang_version=`grep "^#define *SLANG_VERSION " $srcdir/src/slang.h |
|
|
|
|
- awk '{ print $3 }'`
|
|
|
|
-slang_major_version=`echo $slang_version |
|
|
|
|
- awk '{ print int($1/10000) }'`
|
|
|
|
-slang_minor_version=`echo $slang_version $slang_major_version |
|
|
|
|
- awk '{ print int(($1 - $2*10000)/100) }'`
|
|
|
|
-slang_mminor_version=`echo $slang_version $slang_major_version $slang_minor_version |
|
|
|
|
- awk '{ print ($1 - $2*10000 - $3*100) }'`
|
|
|
|
-
|
|
|
|
-slang_minor_version="$slang_minor_version.$slang_mminor_version"
|
|
|
|
+slang_major_version=1
|
2000-02-10 06:56:13 +00:00
|
|
|
+slang_minor_version=4
|
|
|
|
slang_version="$slang_major_version.$slang_minor_version"
|
1999-12-29 21:35:49 +00:00
|
|
|
echo "$ac_t""$slang_version" 1>&6
|
|
|
|
|