2002-09-19 01:55:51 +02:00
|
|
|
$NetBSD: patch-ab,v 1.2 2002/09/18 23:55:52 jlam Exp $
|
2001-05-26 09:16:16 +02:00
|
|
|
|
2002-09-19 01:55:51 +02:00
|
|
|
--- configure.orig Wed Jan 9 06:31:49 2002
|
2001-05-26 09:16:16 +02:00
|
|
|
+++ configure
|
2002-09-19 01:55:51 +02:00
|
|
|
@@ -2084,8 +2084,51 @@ else
|
2001-05-26 09:16:16 +02:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
+echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
2002-09-19 01:55:51 +02:00
|
|
|
+echo "configure:2089: checking for main in -lm" >&5
|
2001-05-26 09:16:16 +02:00
|
|
|
+ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
+else
|
|
|
|
+ ac_save_LIBS="$LIBS"
|
|
|
|
+LIBS="-lm $LIBS"
|
|
|
|
+cat > conftest.$ac_ext <<EOF
|
2002-09-19 01:55:51 +02:00
|
|
|
+#line 2097 "configure"
|
2001-05-26 09:16:16 +02:00
|
|
|
+#include "confdefs.h"
|
|
|
|
+
|
|
|
|
+int main() {
|
|
|
|
+main()
|
|
|
|
+; return 0; }
|
|
|
|
+EOF
|
2002-09-19 01:55:51 +02:00
|
|
|
+if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-05-26 09:16:16 +02:00
|
|
|
+ rm -rf conftest*
|
|
|
|
+ eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
+else
|
|
|
|
+ echo "configure: failed program was:" >&5
|
|
|
|
+ cat conftest.$ac_ext >&5
|
|
|
|
+ rm -rf conftest*
|
|
|
|
+ eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
+fi
|
|
|
|
+rm -f conftest*
|
|
|
|
+LIBS="$ac_save_LIBS"
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
+ echo "$ac_t""yes" 1>&6
|
|
|
|
+ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
+ cat >> confdefs.h <<EOF
|
|
|
|
+#define $ac_tr_lib 1
|
|
|
|
+EOF
|
|
|
|
+
|
|
|
|
+ LIBS="-lm $LIBS"
|
|
|
|
+
|
|
|
|
+else
|
|
|
|
+ echo "$ac_t""no" 1>&6
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
|
2002-09-19 01:55:51 +02:00
|
|
|
-echo "configure:2089: checking for main in -lGL" >&5
|
|
|
|
+echo "configure:2132: checking for main in -lGL" >&5
|
2001-05-26 09:16:16 +02:00
|
|
|
ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2002-09-19 01:55:51 +02:00
|
|
|
@@ -2238,49 +2281,6 @@ fi
|
2001-05-26 09:16:16 +02:00
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
LIBS="$LIBFLTKA $LIBS"
|
|
|
|
-else
|
|
|
|
- echo "$ac_t""no" 1>&6
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
2002-09-19 01:55:51 +02:00
|
|
|
-echo "configure:2247: checking for main in -lm" >&5
|
2001-05-26 09:16:16 +02:00
|
|
|
-ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
-else
|
|
|
|
- ac_save_LIBS="$LIBS"
|
|
|
|
-LIBS="-lm $LIBS"
|
|
|
|
-cat > conftest.$ac_ext <<EOF
|
2002-09-19 01:55:51 +02:00
|
|
|
-#line 2255 "configure"
|
2001-05-26 09:16:16 +02:00
|
|
|
-#include "confdefs.h"
|
|
|
|
-
|
|
|
|
-int main() {
|
|
|
|
-main()
|
|
|
|
-; return 0; }
|
|
|
|
-EOF
|
2002-09-19 01:55:51 +02:00
|
|
|
-if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-05-26 09:16:16 +02:00
|
|
|
- rm -rf conftest*
|
|
|
|
- eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
-else
|
|
|
|
- echo "configure: failed program was:" >&5
|
|
|
|
- cat conftest.$ac_ext >&5
|
|
|
|
- rm -rf conftest*
|
|
|
|
- eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
-fi
|
|
|
|
-rm -f conftest*
|
|
|
|
-LIBS="$ac_save_LIBS"
|
|
|
|
-
|
|
|
|
-fi
|
|
|
|
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
- echo "$ac_t""yes" 1>&6
|
|
|
|
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
- cat >> confdefs.h <<EOF
|
|
|
|
-#define $ac_tr_lib 1
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
- LIBS="-lm $LIBS"
|
|
|
|
-
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|