Picon

BSDBuild: r1038 - trunk/BSDBuild

Author: vedge
Date: 2015-05-04 02:28:45 -0400 (Mon, 04 May 2015)
New Revision: 1038

Modified:
   trunk/BSDBuild/cc.pm
Log:
#include <stdio.h>, not <string.h> in long double test

Modified: trunk/BSDBuild/cc.pm
===================================================================
--- trunk/BSDBuild/cc.pm	2015-05-04 06:20:49 UTC (rev 1037)
+++ trunk/BSDBuild/cc.pm	2015-05-04 06:28:45 UTC (rev 1038)
 <at>  <at>  -129,7 +129,7  <at>  <at> 
 		# XXX: should rename to HAVE_CC_LONG_DOUBLE
 		MkPrintN('cc: checking for long double...');
 		TryCompile('HAVE_LONG_DOUBLE', << 'EOF');
-#include <string.h>
+#include <stdio.h>
 int
 main(int argc, char *argv[])
 {
Picon

BSDBuild: r1036 - trunk/BSDBuild

Author: vedge
Date: 2015-03-01 23:54:56 -0500 (Sun, 01 Mar 2015)
New Revision: 1036

Modified:
   trunk/BSDBuild/x11.pm
Log:
improve the -lX11 autodetection where the pkg-config "x11" module is missing.

Modified: trunk/BSDBuild/x11.pm
===================================================================
--- trunk/BSDBuild/x11.pm	2015-03-02 04:54:07 UTC (rev 1035)
+++ trunk/BSDBuild/x11.pm	2015-03-02 04:54:56 UTC (rev 1036)
 <at>  <at>  -24,6 +24,8  <at>  <at> 
 # USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE..

 my  <at> autoIncludeDirs = (
+	'/usr/local/include',
+	'/usr/include',
 	'/usr/include/X11',
 	'/usr/include/X11R6',
 	'/usr/include/X11R7',
 <at>  <at>  -39,6 +41,8  <at>  <at> 
 );

 my  <at> autoLibDirs = (
+	'/usr/local/lib',
+	'/usr/lib',
 	'/usr/local/X11/lib',
 	'/usr/local/X11R6/lib',
(Continue reading)

Picon

BSDBuild: r1035 - trunk/BSDBuild

Author: vedge
Date: 2015-03-01 23:54:07 -0500 (Sun, 01 Mar 2015)
New Revision: 1035

Modified:
   trunk/BSDBuild/Core.pm
Log:
have MkIfPkgConfig() return true if pkg-config is available, and the
specified module available as well

Modified: trunk/BSDBuild/Core.pm
===================================================================
--- trunk/BSDBuild/Core.pm	2015-02-19 15:24:19 UTC (rev 1034)
+++ trunk/BSDBuild/Core.pm	2015-03-02 04:54:07 UTC (rev 1035)
 <at>  <at>  -246,7 +246,11  <at>  <at> 

 sub MkIfPkgConfig
 {
-	print 'if [ "${PKGCONFIG}" != "" ]; then', "\n";
+	my ($pkg) =  <at> _;
+
+	print << "EOF";
+if [ "\${PKGCONFIG}" != "" -a "`\${PKGCONFIG} --variable=prefix $pkg 2>/dev/null`" != "" ]; then
+EOF
 }

 # Variant of MkExecOutputPfx() for pkg-config.
Picon

BSDBuild: r1034 - trunk/BSDBuild

Author: vedge
Date: 2015-02-19 10:24:19 -0500 (Thu, 19 Feb 2015)
New Revision: 1034

Modified:
   trunk/BSDBuild/math_c99.pm
Log:
add special case for *-pc-mingw32, to work around libmingwex link error with
single-precision variants of math routines.

Modified: trunk/BSDBuild/math_c99.pm
===================================================================
--- trunk/BSDBuild/math_c99.pm	2015-02-19 15:22:00 UTC (rev 1033)
+++ trunk/BSDBuild/math_c99.pm	2015-02-19 15:24:19 UTC (rev 1034)
 <at>  <at>  -34,8 +34,15  <at>  <at> 
 		MkDefine('MATH_C99_CFLAGS', '');
 		MkDefine('MATH_C99_LIBS', '-lm');
 	MkEndif;
-
-	MkCompileC('HAVE_MATH_C99', '${CFLAGS} ${MATH_C99_CFLAGS}', '${MATH_C99_LIBS}', << 'EOF');
+		
+	MkCaseIn('${host}');
+	MkCaseBegin('*-pc-mingw32*');
+		MkPrint('skipping (libmingwex linker errors)');
+		MkDefine('HAVE_MATH_C99', 'no');
+		MkSaveUndef('HAVE_MATH_C99');
+		MkCaseEnd;
+	MkCaseBegin('*');
+		MkCompileC('HAVE_MATH_C99', '${CFLAGS} ${MATH_C99_CFLAGS}', '${MATH_C99_LIBS}', << 'EOF');
 #include <math.h>
(Continue reading)

Picon

BSDBuild: r1033 - trunk/BSDBuild

Author: vedge
Date: 2015-02-19 10:22:00 -0500 (Thu, 19 Feb 2015)
New Revision: 1033

Modified:
   trunk/BSDBuild/cc.pm
   trunk/BSDBuild/sys_types.pm
Log:
test printf for 64-bit types

Modified: trunk/BSDBuild/cc.pm
===================================================================
--- trunk/BSDBuild/cc.pm	2014-11-21 06:04:11 UTC (rev 1032)
+++ trunk/BSDBuild/cc.pm	2015-02-19 15:22:00 UTC (rev 1033)
 <at>  <at>  -129,11 +129,13  <at>  <at> 
 		# XXX: should rename to HAVE_CC_LONG_DOUBLE
 		MkPrintN('cc: checking for long double...');
 		TryCompile('HAVE_LONG_DOUBLE', << 'EOF');
+#include <string.h>
 int
 main(int argc, char *argv[])
 {
 	long double ld = 0.1;

+	printf("%Lf", ld);
 	return (ld == 1.0);
 }
 EOF

Modified: trunk/BSDBuild/sys_types.pm
(Continue reading)

Picon

BSDBuild: r1032 - trunk/BSDBuild

Author: vedge
Date: 2014-11-21 01:04:11 -0500 (Fri, 21 Nov 2014)
New Revision: 1032

Modified:
   trunk/BSDBuild/pthreads.pm
Log:
dragonfly doesn't require extra PTHREADS_XOPEN_CFLAGS; thanks varialus!

Modified: trunk/BSDBuild/pthreads.pm
===================================================================
--- trunk/BSDBuild/pthreads.pm	2014-07-27 23:45:14 UTC (rev 1031)
+++ trunk/BSDBuild/pthreads.pm	2014-11-21 06:04:11 UTC (rev 1032)
 <at>  <at>  -208,7 +208,7  <at>  <at> 
 	MkPrintN('checking for the X/Open Threads Extension...');

 	MkCaseIn('${host}');
-	MkCaseBegin('*-*-freebsd*');
+	MkCaseBegin('*-*-freebsd* | *-*-dragonfly*');
 		MkDefine('PTHREADS_XOPEN_CFLAGS', '');
 		MkCaseEnd;
 	MkCaseBegin('*');
Picon

BSDBuild: r1031 - trunk

Author: vedge
Date: 2014-07-27 19:45:14 -0400 (Sun, 27 Jul 2014)
New Revision: 1031

Modified:
   trunk/build.lib.mk
Log:
include libtool configuration in "depend" target

Modified: trunk/build.lib.mk
===================================================================
--- trunk/build.lib.mk	2014-07-22 10:41:40 UTC (rev 1030)
+++ trunk/build.lib.mk	2014-07-27 23:45:14 UTC (rev 1031)
 <at>  <at>  -97,7 +97,7  <at>  <at> 
 clean: clean-lib clean-subdir
 cleandir: clean-lib clean-subdir cleandir-lib cleandir-subdir
 regress: regress-subdir
-depend: depend-subdir
+depend: depend-subdir ${LIBTOOL_COOKIE}

 .SUFFIXES: .o .po .lo .c .cc .cpp .asm .l .y .m
Picon

BSDBuild: r1030 - trunk/BSDBuild

Author: vedge
Date: 2014-07-22 06:41:40 -0400 (Tue, 22 Jul 2014)
New Revision: 1030

Modified:
   trunk/BSDBuild/kqueue.pm
Log:
cast to uintptr_t/intptr_t on NetBSD

Modified: trunk/BSDBuild/kqueue.pm
===================================================================
--- trunk/BSDBuild/kqueue.pm	2014-07-22 09:55:10 UTC (rev 1029)
+++ trunk/BSDBuild/kqueue.pm	2014-07-22 10:41:40 UTC (rev 1030)
 <at>  <at>  -39,8 +39,13  <at>  <at> 
 	int kq, fd = -1, nev;

 	if ((kq = kqueue()) == -1) { return (1); }
+#if defined(__NetBSD__)
+	EV_SET(&kev, (uintptr_t)fd, EVFILT_READ, EV_ADD|EV_ENABLE|EV_ONESHOT, 0, 0, (intptr_t)NULL);
+	EV_SET(&kev, (uintptr_t)1, EVFILT_TIMER, EV_ADD|EV_ENABLE, 0, 0, (intptr_t)NULL);
+#else
 	EV_SET(&kev, fd, EVFILT_READ, EV_ADD|EV_ENABLE|EV_ONESHOT, 0, 0, NULL);
-	EV_SET(&kev, 1, EVFILT_TIMER, EV_ADD|EV_ENABLE, 0, 1000, 0);
+	EV_SET(&kev, 1, EVFILT_TIMER, EV_ADD|EV_ENABLE, 0, 0, NULL);
+#endif
 	nev = kevent(kq, &kev, 1, &chg, 1, NULL);
 	return (chg.flags & EV_ERROR);
 }
Picon

BSDBuild: r1029 - trunk/BSDBuild

Author: vedge
Date: 2014-07-22 05:55:10 -0400 (Tue, 22 Jul 2014)
New Revision: 1029

Modified:
   trunk/BSDBuild/strtold.pm
Log:
avoid a compiler warning on NetBSD

Modified: trunk/BSDBuild/strtold.pm
===================================================================
--- trunk/BSDBuild/strtold.pm	2014-07-16 02:17:37 UTC (rev 1028)
+++ trunk/BSDBuild/strtold.pm	2014-07-22 09:55:10 UTC (rev 1029)
 <at>  <at>  -24,7 +24,9  <at>  <at> 
 # USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE..

 my $testCode = << 'EOF';
-#define _XOPEN_SOURCE 600
+#ifndef __NetBSD__
+# define _XOPEN_SOURCE 600
+#endif
 #include <stdlib.h>
 int
 main(int argc, char *argv[])
Picon

BSDBuild: r1028 - trunk

Author: vedge
Date: 2014-07-15 22:17:37 -0400 (Tue, 15 Jul 2014)
New Revision: 1028

Modified:
   trunk/mkconcurrent.pl
Log:
sync with libtool update

Modified: trunk/mkconcurrent.pl
===================================================================
--- trunk/mkconcurrent.pl	2014-07-13 09:38:17 UTC (rev 1027)
+++ trunk/mkconcurrent.pl	2014-07-16 02:17:37 UTC (rev 1028)
 <at>  <at>  -1,6 +1,6  <at>  <at> 
 #!/usr/bin/perl
 #
-# Copyright (c) 2003-2012 Hypertriton, Inc. <http://hypertriton.com/>
+# Copyright (c) 2003-2014 Hypertriton, Inc. <http://hypertriton.com/>
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 <at>  <at>  -31,12 +31,14  <at>  <at> 
  <at> DIRS = ();
 $BUILD = '';
  <at> MKFILES = (
-	'Makefile.proj',
-	'Makefile.prog',
+	'Makefile\.(prog|proj|in)',
 	'\.mk$',
 	'\.inc$',
(Continue reading)

Picon

BSDBuild: r1027 - trunk/BSDBuild

Author: vedge
Date: 2014-07-13 05:38:17 -0400 (Sun, 13 Jul 2014)
New Revision: 1027

Modified:
   trunk/BSDBuild/iconv.pm
Log:
remove the errno line, it causes warnings on some platforms.

Modified: trunk/BSDBuild/iconv.pm
===================================================================
--- trunk/BSDBuild/iconv.pm	2014-07-13 05:17:41 UTC (rev 1026)
+++ trunk/BSDBuild/iconv.pm	2014-07-13 09:38:17 UTC (rev 1027)
 <at>  <at>  -35,7 +35,6  <at>  <at> 
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <errno.h>
 #include <iconv.h>

 int main(int argc, char *argv[])
 <at>  <at>  -48,10 +47,8  <at>  <at> 

 	cd = iconv_open("ISO-8859-1", "UTF-8");
 	rv = iconv(cd, &inbuf, &inlen, &outbuf, &outbuflen);
-	if (rv == (size_t)-1 && errno == E2BIG) {
-	}
 	iconv_close(cd);
-	return (0);
+	return ((rv == (size_t)-1));
(Continue reading)


Gmane