head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2011.07.25.19.40.47;	author johans;	state Exp;
branches;
next	;


desc
@@


1.1
log
@- Respect $CC
- Fix build with clang
@
text
@--- config/auto-aux/hasgot.orig	2011-07-25 21:36:30.000000000 +0200
+++ config/auto-aux/hasgot	2011-07-25 21:36:36.000000000 +0200
@@@@ -1,5 +1,7 @@@@
 #!/bin/sh
-(echo "main() {"
+(
+ for f in $*; do echo "extern void $f(void);"; done
+ echo "int main() {"
  for f in $*; do echo "  $f();"; done
- echo "}") > hasgot.c
-exec $cc -o tst hasgot.c > /dev/null 2>/dev/null
+ echo "return 0; }") > hasgot.c
+exec $cc -o tst hasgot.c
@
