aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/udns/files/fix-cc-check.patch
blob: 0811849d0a92d2817a4de7d35f011cc4b0858e63 (plain)
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
36
--- a/configure.lib	2007-01-07 21:59:09.000000000 +0100
+++ b/configure.lib	2010-03-04 11:38:32.000000000 +0100
@@ -125,7 +125,7 @@
   echo 'int main(int argc, char **argv) { return 0; }' >conftest.c
 
   if [ -n "$CC" ]; then
-    if ac_run $CC -o conftest conftest.c && ac_run ./conftest; then
+    if ac_run $CC -o conftest conftest.c; then
       ac_result "\$CC ($CC)"
     else
       ac_result no
@@ -133,7 +133,7 @@
     fi
   else
     for cc in gcc cc ; do
-      if ac_run $cc -o conftest conftest.c && ac_run ./conftest; then
+      if ac_run $cc -o conftest conftest.c; then
         ac_result "$cc"
         CC=$cc
         break
@@ -161,15 +161,6 @@
   ccld="$cc"
   if [ -n "$LDFLAGS" ]; then ccld="$ccld $LDFLAGS"; fi
   if [ -n "$LIBS" ]; then ccld="$ccld $LIBS"; fi
-  if ac_yesno "whenever the C compiler ($ccld)
-           can produce executables" \
-     ac_compile_run <<EOF
-int main() { return 0; }
-EOF
-  then :
-  else
-    ac_fatal "no working C compiler found"
-  fi
   LD='$(CC)'
   [ -n "$AR" ] || AR=ar
   [ -n "$ARFLAGS" ] || ARFLAGS=rv