dist-svn Mailing List for dist
Brought to you by:
rmanfredi
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
|
Oct
|
Nov
(2) |
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(17) |
Dec
(13) |
| 2011 |
Jan
(28) |
Feb
(3) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
(9) |
Dec
(4) |
| 2012 |
Jan
(7) |
Feb
(20) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(8) |
Dec
(3) |
| 2013 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
(13) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
(1) |
|
From: <rma...@us...> - 2015-12-03 22:16:09
|
Revision: 200
http://sourceforge.net/p/dist/code/200
Author: rmanfredi
Date: 2015-12-03 22:16:07 +0000 (Thu, 03 Dec 2015)
Log Message:
-----------
Added check for bsearch().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_bsearch.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-11-27 23:00:07 UTC (rev 199)
+++ trunk/dist/MANIFEST 2015-12-03 22:16:07 UTC (rev 200)
@@ -173,6 +173,7 @@
mcon/U/d_bindtxtcode.U Do we have bind_textdomain_codeset()?
mcon/U/d_brokstat.U Check whether stat() macros are broken
mcon/U/d_bsdjmp.U Do we have BSD _setjmp() and _longjmp()?
+mcon/U/d_bsearch.U Do we have bsearch()?
mcon/U/d_built_bswap32.U Is __builtin_bswap32() available?
mcon/U/d_built_bswap64.U Is __builtin_bswap64() available?
mcon/U/d_built_clz.U Is __builtin_clz() available?
Added: trunk/dist/mcon/U/d_bsearch.U
===================================================================
--- trunk/dist/mcon/U/d_bsearch.U (rev 0)
+++ trunk/dist/mcon/U/d_bsearch.U 2015-12-03 22:16:07 UTC (rev 200)
@@ -0,0 +1,39 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_bsearch: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_bsearch:
+?S: This variable conditionally defines the HAS_BSEARCH symbol, which
+?S: indicates to the C program that it can use the bsearch() routine
+?S: to perform a binary search on a sorted array.
+?S:.
+?C:HAS_BSEARCH:
+?C: This symbol, if defined, indicates that the bsearch() routine
+?C: is available to perform a binary search on a sorted array.
+?C:.
+?H:#$d_bsearch HAS_BSEARCH /**/
+?H:.
+?LINT:set d_bsearch
+: see if there is a bsearch
+$cat >try.c <<EOC
+#include <stdlib.h>
+int mycmp(const void *a, const void *b)
+{
+ return (char *) a - (char *) b;
+}
+int main(int argc, char **argv)
+{
+ return NULL == bsearch("foo", argv, argc, sizeof argv[0], mycmp);
+}
+EOC
+cyn=bsearch
+set d_bsearch
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_bsearch.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-11-27 23:00:09
|
Revision: 199
http://sourceforge.net/p/dist/code/199
Author: rmanfredi
Date: 2015-11-27 23:00:07 +0000 (Fri, 27 Nov 2015)
Log Message:
-----------
Added checks for getpwnam() and getpwuid().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_getpwnam.U
trunk/dist/mcon/U/d_getpwuid.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-11-14 15:06:46 UTC (rev 198)
+++ trunk/dist/MANIFEST 2015-11-27 23:00:07 UTC (rev 199)
@@ -261,6 +261,8 @@
mcon/U/d_getprior.U Do we have getpriority()?
mcon/U/d_getprogname.U Do we have getprogname()?
mcon/U/d_getpwent.U How is passwd info gotten?
+mcon/U/d_getpwnam.U Do we have getpwnam()?
+mcon/U/d_getpwuid.U Do we have getpwuid()?
mcon/U/d_getrlimit.U Do we have getrlimit()?
mcon/U/d_gettext.U Checks whether gettext() is available
mcon/U/d_gettext.U Do we have gettext()?
Added: trunk/dist/mcon/U/d_getpwnam.U
===================================================================
--- trunk/dist/mcon/U/d_getpwnam.U (rev 0)
+++ trunk/dist/mcon/U/d_getpwnam.U 2015-11-27 23:00:07 UTC (rev 199)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_getpwnam: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_getpwnam:
+?S: This variable conditionally defines the HAS_GETPWNAM symbol, which
+?S: indicates to the C program that it can use the getpwnam() routine
+?S: to get the /etc/passwd structure entries for given user name.
+?S:.
+?C:HAS_GETPWNAM:
+?C: This symbol, if defined, indicates that the getpwnam() routine
+?C: is available to get the /etc/passwd structure entries for given
+?C: user name.
+?C:.
+?H:#$d_getpwnam HAS_GETPWNAM /**/
+?H:.
+?LINT:set d_getpwnam
+: see if there is a getpwnam
+$cat >try.c <<EOC
+#include <pwd.h>
+int main(void)
+{
+ struct passwd pw;
+ pw = *getpwnam("foo");
+ return pw.pw_name ? 0 : 1;
+}
+EOC
+cyn=getpwnam
+set d_getpwnam
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_getpwnam.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_getpwuid.U
===================================================================
--- trunk/dist/mcon/U/d_getpwuid.U (rev 0)
+++ trunk/dist/mcon/U/d_getpwuid.U 2015-11-27 23:00:07 UTC (rev 199)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_getpwuid: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_getpwuid:
+?S: This variable conditionally defines the HAS_GETPWUID symbol, which
+?S: indicates to the C program that it can use the getpwuid() routine
+?S: to get the /etc/passwd structure entries for given user ID.
+?S:.
+?C:HAS_GETPWUID:
+?C: This symbol, if defined, indicates that the getpwuid() routine
+?C: is available to get the /etc/passwd structure entries for given
+?C: user ID.
+?C:.
+?H:#$d_getpwuid HAS_GETPWUID /**/
+?H:.
+?LINT:set d_getpwuid
+: see if there is a getpwuid
+$cat >try.c <<EOC
+#include <pwd.h>
+int main(void)
+{
+ struct passwd pw;
+ pw = *getpwuid(0);
+ return pw.pw_name ? 0 : 1;
+}
+EOC
+cyn=getpwuid
+set d_getpwuid
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_getpwuid.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-11-14 15:06:48
|
Revision: 198
http://sourceforge.net/p/dist/code/198
Author: rmanfredi
Date: 2015-11-14 15:06:46 +0000 (Sat, 14 Nov 2015)
Log Message:
-----------
Regenarated Configure with the newest units.
Modified Paths:
--------------
trunk/dist/Configure
Modified: trunk/dist/Configure
===================================================================
--- trunk/dist/Configure 2015-11-14 15:04:42 UTC (rev 197)
+++ trunk/dist/Configure 2015-11-14 15:06:46 UTC (rev 198)
@@ -14,11 +14,11 @@
# Note: this Configure script was generated automatically. Rather than
# working with this copy of Configure, you may wish to get metaconfig.
# The dist package (which contains metaconfig) is available via SVN:
-# svn co https://svn.sourceforge.net/svnroot/dist/trunk/dist
+# svn co https://svn.code.sf.net/p/dist/code/trunk/dist
-# $Id: Head.U 41 2010-11-28 00:21:26Z rmanfredi $
+# $Id: Head.U 167 2013-05-08 17:58:00Z rmanfredi $
#
-# Generated on Tue Feb 7 19:02:16 RST 2012 [metaconfig 3.5-123]
+# Generated on Sat Nov 14 16:05:58 CET 2015 [metaconfig 3.5-197]
cat >c1$$ <<EOF
ARGGGHHHH!!!!!
@@ -283,6 +283,7 @@
lkflags=''
locincpth=''
optimize=''
+pthread=''
cf_email=''
cf_by=''
cf_time=''
@@ -721,7 +722,7 @@
esac
shift
;;
- -V) echo "$me generated by metaconfig 3.5-123." >&2
+ -V) echo "$me generated by metaconfig 3.5-197." >&2
exit 0;;
--) break;;
-*) echo "$me: unknown option $1" >&2; shift; error=true;;
@@ -787,8 +788,13 @@
true) exec 1>/dev/null;;
esac
+touch optdef.sh
+if grep -q '\\' optdef.sh >/dev/null 2>&1; then
+ echo "Configure does not support \\ in -D or -U arguments" >&2
+ exit 1
+fi
+
: run the defines and the undefines, if any, but leave the file out there...
-touch optdef.sh
. ./optdef.sh
: create the posthint manipulation script and leave the file out there...
touch posthint.sh
@@ -1620,6 +1626,7 @@
: determine whether symbolic links are supported
echo " "
$rm -f blurfl sym
+$touch blurfl
if $ln -s blurfl sym > /dev/null 2>&1 && $test -f sym; then
echo "Symbolic links are supported." >&4
lns="$ln -s"
@@ -2136,6 +2143,7 @@
saved_osname="$osname"
saved_osvers="$osvers"
+saved_libswanted="$libswanted"
tmp_n="$n"
tmp_c="$c"
tmp_sh="$sh"
@@ -2196,6 +2204,12 @@
n="$tmp_n"
c="$tmp_c"
+case "$libswanted" in
+"$saved_libswanted") ;;
+*) libs='';;
+esac
+libswanted="$saved_libswanted"
+
. ./checkcc
case "$targetarch" in
'') ;;
@@ -3314,9 +3328,19 @@
EOM
cont=x
while test "$cont"; do
+ case "$MAILDOMAIN" in
+ '')
+ if $test -s /etc/mailname; then
+ maildomain=`$cat /etc/mailname`
+ else
+ maildomain="$myhostname$mydomain"
+ fi
+ ;;
+ *) maildomain="$MAILDOMAIN";;
+ esac
case "$cf_email" in
- '') dflt="$cf_by@$myhostname$mydomain";;
- *) dflt="$cf_email";;
+ '') dflt="$cf_by@$maildomain";;
+ *) dflt="$cf_email";;
esac
rp='What is your e-mail address?'
. ./myread
@@ -3675,6 +3699,7 @@
'none') optimize=" ";;
esac
+
dflt=''
: We will not override a previous value, but we might want to
: augment a hint file
@@ -3868,7 +3893,7 @@
: coherency check
echo " "
echo "Checking your choice of C compiler and flags for coherency..." >&4
-set X $cc $optimize $ccflags $ldflags -o try try.c
+set X $cc $optimize $pthread $ccflags $ldflags -o try try.c
shift
$cat >try.msg <<EOM
I've tried to compile and run a simple program with:
@@ -4544,6 +4569,7 @@
prefixexp='$prefixexp'
privlib='$privlib'
privlibexp='$privlibexp'
+pthread='$pthread'
revision='$revision'
rm='$rm'
rmail='$rmail'
@@ -4626,8 +4652,7 @@
: Finish up by extracting the .SH files
case "$alldone" in
exit)
- $rm -rf UU
- echo "Extraction done."
+ echo "Stopping at your request, leaving temporary files around."
exit 0
;;
cont)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-11-14 15:04:45
|
Revision: 197
http://sourceforge.net/p/dist/code/197
Author: rmanfredi
Date: 2015-11-14 15:04:42 +0000 (Sat, 14 Nov 2015)
Log Message:
-----------
Added 6 new units.
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_clearenv.U
trunk/dist/mcon/U/d_getprogname.U
trunk/dist/mcon/U/d_proginvocname.U
trunk/dist/mcon/U/d_setenv.U
trunk/dist/mcon/U/d_setprogname.U
trunk/dist/mcon/U/d_unsetenv.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-11-01 14:35:37 UTC (rev 196)
+++ trunk/dist/MANIFEST 2015-11-14 15:04:42 UTC (rev 197)
@@ -189,6 +189,7 @@
mcon/U/d_chroot.U Do we have chroot()?
mcon/U/d_chsize.U Size of a char
mcon/U/d_ckeypad.U Do we have the curses keypad()?
+mcon/U/d_clearenv.U Do we have clearenv()?
mcon/U/d_clock_getres.U Do we have clock_getres()?
mcon/U/d_clock_gettime.U Do we have clock_gettime()?
mcon/U/d_closedir.U Do we have closedir()?
@@ -258,6 +259,7 @@
mcon/U/d_getpgrp2.U Do we have getpgrp2()? (DG/UX)
mcon/U/d_getppid.U Do we have getppid()?
mcon/U/d_getprior.U Do we have getpriority()?
+mcon/U/d_getprogname.U Do we have getprogname()?
mcon/U/d_getpwent.U How is passwd info gotten?
mcon/U/d_getrlimit.U Do we have getrlimit()?
mcon/U/d_gettext.U Checks whether gettext() is available
@@ -340,6 +342,7 @@
mcon/U/d_posix_memalign.U Do we have posix_memalign()?
mcon/U/d_pread.U Do we have pread()?
mcon/U/d_preadv.U Do we have preadv()?
+mcon/U/d_proginvocname.U Do we have program_invocation_name variables?
mcon/U/d_psignal.U Do we have psignal()?
mcon/U/d_ptattr_setstack.U Do we have pthread_attr_setstack()?
mcon/U/d_pwrite.U Do we have pwrite()?
@@ -373,6 +376,7 @@
mcon/U/d_sendfile.U Do we have sendfile()?
mcon/U/d_sendmsg.U Do we have sendmsg()?
mcon/U/d_setegid.U Do we have setegid()?
+mcon/U/d_setenv.U Do we have setenv()?
mcon/U/d_seteuid.U Do we have seteuid()?
mcon/U/d_setgrps.U Do we have setgroups()?
mcon/U/d_setlnbuf.U Do we have setlinebuf()?
@@ -382,6 +386,7 @@
mcon/U/d_setpgrp2.U Do we have setpgrp2()? (DG/UX)
mcon/U/d_setprior.U Do we have setpriority()?
mcon/U/d_setproctitle.U Do we have setproctitle()?
+mcon/U/d_setprogname.U Do we have setprogname()?
mcon/U/d_setregid.U Do we have setregid()?
mcon/U/d_setreuid.U Do we have setreuid()?
mcon/U/d_setrgid.U Do we have setrgid()?
@@ -453,6 +458,7 @@
mcon/U/d_uctx_mctx_gregs.U Do we have uc_mcontext.gregs[] in struct ucontext?
mcon/U/d_ulimit.U Do we have ulimit()?
mcon/U/d_umask.U Do we have umask()?
+mcon/U/d_unsetenv.U Do we have unsetenv()?
mcon/U/d_usendir.U Use our own ndir routines?
mcon/U/d_usleep.U Do we have usleep()?
mcon/U/d_uwait.U Is there a 'union wait' declaration around here?
Added: trunk/dist/mcon/U/d_clearenv.U
===================================================================
--- trunk/dist/mcon/U/d_clearenv.U (rev 0)
+++ trunk/dist/mcon/U/d_clearenv.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_clearenv: Trylink cat i_stdlib
+?MAKE: -pick add $@ %<
+?S:d_clearenv:
+?S: This variable conditionally defines the HAS_CLEARENV
+?S: symbol, which indicates to the C program that clearenv()
+?S: is available to clear the environment.
+?S:.
+?C:HAS_CLEARENV:
+?C: This symbol is defined when clearenv() is there to clear the
+?C: environment.
+?C:.
+?H:#$d_clearenv HAS_CLEARENV
+?H:.
+?LINT: set d_clearenv
+: do we have clearenv?
+$cat >try.c <<EOC
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main(void)
+{
+ return clearenv();
+}
+EOC
+cyn=clearenv
+set d_clearenv
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_clearenv.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_getprogname.U
===================================================================
--- trunk/dist/mcon/U/d_getprogname.U (rev 0)
+++ trunk/dist/mcon/U/d_getprogname.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,40 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_getprogname: Trylink cat i_stdlib
+?MAKE: -pick add $@ %<
+?S:d_getprogname:
+?S: This variable conditionally defines the HAS_GETPROGNAME
+?S: symbol, which indicates to the C program that getprogname()
+?S: is available to get the program name.
+?S:.
+?C:HAS_GETPROGNAME:
+?C: This symbol is defined when getprogname() is there to get the
+?C: program name.
+?C:.
+?H:#$d_getprogname HAS_GETPROGNAME
+?H:.
+?LINT: set d_getprogname
+: can we use getprogname?
+$cat >try.c <<EOC
+#include <stdio.h>
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main(void)
+{
+ printf("%s\n", getprogname());
+ return 0;
+}
+EOC
+cyn=getprogname
+set d_getprogname
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_getprogname.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_proginvocname.U
===================================================================
--- trunk/dist/mcon/U/d_proginvocname.U (rev 0)
+++ trunk/dist/mcon/U/d_proginvocname.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,40 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_proginvocname: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_proginvocname:
+?S: This variable conditionally defines the HAS_PROGRAM_INVOCATION_NAME
+?S: symbol, which indicates to the C program that the two variables
+?S: program_invocation_name and program_invocation_short_name are set
+?S: at startup time.
+?S:.
+?C:HAS_PROGRAM_INVOCATION_NAME:
+?C: This symbol is defined when the C startup sets the two variables
+?C: program_invocation_name and program_invocation_short_name. To get
+?C: these definitions, <errno.h> must be included with __USE_GNU defined.
+?C:.
+?H:#$d_proginvocname HAS_PROGRAM_INVOCATION_NAME
+?H:.
+?LINT: set d_proginvocname
+: do we have the program_invocation_name variable?
+$cat >try.c <<EOC
+#include <stdio.h>
+#define __USE_GNU
+#include <errno.h>
+int main(void)
+{
+ printf("%s\n%s\n", program_invocation_name, program_invocation_short_name);
+ return 0;
+}
+EOC
+cyn="whether C startup sets program_invocation_name"
+set d_proginvocname
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_proginvocname.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_setenv.U
===================================================================
--- trunk/dist/mcon/U/d_setenv.U (rev 0)
+++ trunk/dist/mcon/U/d_setenv.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_setenv: Trylink cat i_stdlib
+?MAKE: -pick add $@ %<
+?S:d_setenv:
+?S: This variable conditionally defines the HAS_SETENV
+?S: symbol, which indicates to the C program that setenv()
+?S: is available to change or add an environment variable.
+?S:.
+?C:HAS_SETENV:
+?C: This symbol is defined when setenv() is available to change or
+?C: add an environment variable.
+?C:.
+?H:#$d_setenv HAS_SETENV
+?H:.
+?LINT: set d_setenv
+: do we have setenv?
+$cat >try.c <<EOC
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main(void)
+{
+ return setenv("foo", "bar", 1);
+}
+EOC
+cyn=setenv
+set d_setenv
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_setenv.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_setprogname.U
===================================================================
--- trunk/dist/mcon/U/d_setprogname.U (rev 0)
+++ trunk/dist/mcon/U/d_setprogname.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,40 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_setprogname: Trylink cat i_stdlib
+?MAKE: -pick add $@ %<
+?S:d_setprogname:
+?S: This variable conditionally defines the HAS_SETPROGNAME
+?S: symbol, which indicates to the C program that setprogname()
+?S: is available to set the program name.
+?S:.
+?C:HAS_SETPROGNAME:
+?C: This symbol is defined when setprogname() is there to set the
+?C: program name.
+?C:.
+?H:#$d_setprogname HAS_SETPROGNAME
+?H:.
+?LINT: set d_setprogname
+: can we use setprogname?
+$cat >try.c <<EOC
+#include <sys/types.h>
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main(void)
+{
+ setprogname("test");
+ return 0;
+}
+EOC
+cyn=setprogname
+set d_setprogname
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_setprogname.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_unsetenv.U
===================================================================
--- trunk/dist/mcon/U/d_unsetenv.U (rev 0)
+++ trunk/dist/mcon/U/d_unsetenv.U 2015-11-14 15:04:42 UTC (rev 197)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_unsetenv: Trylink cat i_stdlib
+?MAKE: -pick add $@ %<
+?S:d_unsetenv:
+?S: This variable conditionally defines the HAS_UNSETENV
+?S: symbol, which indicates to the C program that unsetenv()
+?S: is available to delete an environment variable.
+?S:.
+?C:HAS_UNSETENV:
+?C: This symbol is defined when unsetenv() is available to delete
+?C: an environment variable.
+?C:.
+?H:#$d_unsetenv HAS_UNSETENV
+?H:.
+?LINT: set d_unsetenv
+: do we have unsetenv?
+$cat >try.c <<EOC
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+int main(void)
+{
+ return unsetenv("foo");
+}
+EOC
+cyn=unsetenv
+set d_unsetenv
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_unsetenv.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-11-01 14:35:40
|
Revision: 196
http://sourceforge.net/p/dist/code/196
Author: rmanfredi
Date: 2015-11-01 14:35:37 +0000 (Sun, 01 Nov 2015)
Log Message:
-----------
Added metaconfig test for pipe2().
Modified Paths:
--------------
trunk/dist/MANIFEST
trunk/dist/mcon/U/d_pipe.U
Added Paths:
-----------
trunk/dist/mcon/U/d_pipe2.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-27 21:30:17 UTC (rev 195)
+++ trunk/dist/MANIFEST 2015-11-01 14:35:37 UTC (rev 196)
@@ -332,6 +332,7 @@
mcon/U/d_perror.U Do we have perror()?
mcon/U/d_pidcheck.U Is kill(pid, 0) allowed for PID checks?
mcon/U/d_pipe.U Do we have pipe()?
+mcon/U/d_pipe2.U Do we have pipe2()?
mcon/U/d_poll.U Do we have poll()?
mcon/U/d_popen.U Do we have popen()?
mcon/U/d_portable.U How portable do we want to be?
Modified: trunk/dist/mcon/U/d_pipe.U
===================================================================
--- trunk/dist/mcon/U/d_pipe.U 2015-04-27 21:30:17 UTC (rev 195)
+++ trunk/dist/mcon/U/d_pipe.U 2015-11-01 14:35:37 UTC (rev 196)
@@ -21,7 +21,7 @@
?S: indicates to the C program that the pipe() routine is available
?S: to create an inter-process channel.
?S:.
-?C:HAS_PIPE :
+?C:HAS_PIPE:
?C: This symbol, if defined, indicates that the pipe routine is
?C: available to create an inter-process channel.
?C:.
Added: trunk/dist/mcon/U/d_pipe2.U
===================================================================
--- trunk/dist/mcon/U/d_pipe2.U (rev 0)
+++ trunk/dist/mcon/U/d_pipe2.U 2015-11-01 14:35:37 UTC (rev 196)
@@ -0,0 +1,46 @@
+?RCS:
+?RCS: Copyright (c) 2015, Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_pipe2: Trylink cat i_unistd i_sysfile
+?MAKE: -pick add $@ %<
+?S:d_pipe2:
+?S: This variable conditionally defines the HAS_PIPE2 symbol, which
+?S: indicates to the C program that the pipe2() routine is available
+?S: to create an inter-process channel with some flags.
+?S:.
+?C:HAS_PIPE2:
+?C: This symbol, if defined, indicates that the pipe routine is
+?C: available to create an inter-process channel with O_CLOEXEC or
+?C: O_NONBLOCK flags.
+?C:.
+?H:#$d_pipe2 HAS_PIPE2 /**/
+?H:.
+?LINT:set d_pipe2
+: see if pipe2 exists
+$cat >try.c <<EOC
+#$i_unistd I_UNISTD
+#$i_sysfile I_SYS_FILE
+#ifdef I_UNISTD
+#include <unistd.h>
+#endif
+#ifdef I_SYS_FILE
+#include <sys/file.h> /* For O_* constants */
+#endif
+#include <fcntl.h> /* For O_* constants */
+int main(void)
+{
+ static int fds[2], ret;
+ ret |= pipe2(fds, O_CLOEXEC | O_NONBLOCK);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=pipe2
+set d_pipe2
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_pipe2.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-27 21:30:20
|
Revision: 195
http://sourceforge.net/p/dist/code/195
Author: rmanfredi
Date: 2015-04-27 21:30:17 +0000 (Mon, 27 Apr 2015)
Log Message:
-----------
Fixed CommonSubdirsRule() to extend double quotes surrounding $(VERB).
This is necessary for the new install-strip target which sets VERB to a
string containing parentheses, and we do not want the shell to choke on them.
Modified Paths:
--------------
trunk/dist/jmake/files/Jmake.rules
Modified: trunk/dist/jmake/files/Jmake.rules
===================================================================
--- trunk/dist/jmake/files/Jmake.rules 2015-04-24 13:02:27 UTC (rev 194)
+++ trunk/dist/jmake/files/Jmake.rules 2015-04-27 21:30:17 UTC (rev 195)
@@ -1206,7 +1206,7 @@
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \ @@\
for i in dirs ;\ @@\
do \ @@\
- (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \ @@\
+ (cd $$i ; echo "$(VERB) in $(DIR)$$i..."; \ @@\
$(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)) || exit 1; \ @@\
done
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-24 13:02:35
|
Revision: 194
http://sourceforge.net/p/dist/code/194
Author: rmanfredi
Date: 2015-04-24 13:02:27 +0000 (Fri, 24 Apr 2015)
Log Message:
-----------
Fixed compilation unit for fdopendir() test.
Modified Paths:
--------------
trunk/dist/mcon/U/d_fdopendir.U
Modified: trunk/dist/mcon/U/d_fdopendir.U
===================================================================
--- trunk/dist/mcon/U/d_fdopendir.U 2015-04-19 14:41:31 UTC (rev 193)
+++ trunk/dist/mcon/U/d_fdopendir.U 2015-04-24 13:02:27 UTC (rev 194)
@@ -33,7 +33,7 @@
{
static DIR *d;
d = fdopendir(0);
- return NULL == d;
+ return (DIR *) 0 == d;
}
EOC
cyn=fdopendir
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-19 14:41:38
|
Revision: 193
http://sourceforge.net/p/dist/code/193
Author: rmanfredi
Date: 2015-04-19 14:41:31 +0000 (Sun, 19 Apr 2015)
Log Message:
-----------
Unfortunately, the name length field in dirent is d_namlen, not d_namelen.
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_dirent_d_namlen.U
Removed Paths:
-------------
trunk/dist/mcon/U/d_dirent_d_namelen.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-19 14:26:42 UTC (rev 192)
+++ trunk/dist/MANIFEST 2015-04-19 14:41:31 UTC (rev 193)
@@ -204,7 +204,7 @@
mcon/U/d_deflate.U Do we have zlib's deflate()?
mcon/U/d_devpoll.U Can we use /dev/poll?
mcon/U/d_difftime.U Do we have difftime()?
-mcon/U/d_dirent_d_namelen.U Does struct dirent has a member d_namelen?
+mcon/U/d_dirent_d_namlen.U Does struct dirent has a member d_namlen?
mcon/U/d_dirent_d_type.U Does struct dirent has a member d_type?
mcon/U/d_dirfd.U Do we have dirfd()?
mcon/U/d_dladdr.U Do we have dladdr()?
Deleted: trunk/dist/mcon/U/d_dirent_d_namelen.U
===================================================================
--- trunk/dist/mcon/U/d_dirent_d_namelen.U 2015-04-19 14:26:42 UTC (rev 192)
+++ trunk/dist/mcon/U/d_dirent_d_namelen.U 2015-04-19 14:41:31 UTC (rev 193)
@@ -1,42 +0,0 @@
-?RCS:
-?RCS: Copyright (c) 2015 Raphael Manfredi
-?RCS:
-?RCS: You may redistribute only under the terms of the Artistic License,
-?RCS: as specified in the README file that comes with the distribution.
-?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic License; a copy of which may be found at the root
-?RCS: of the source tree for dist 4.0.
-?RCS:
-?MAKE:d_dirent_d_namelen: Trylink cat i_dirent
-?MAKE: -pick add $@ %<
-?S:d_dirent_d_namelen:
-?S: This variable conditionally defines the HAS_DIRENT_D_NAMELEN symbol,
-?S: which indicates to the C program that struct dirent has an
-?S: integer member d_namelen. Better check for HAS_DIRENT_D_NAMELEN than
-?S: DIRNAMLEN since the latter has a weaker test not involving compilation.
-?S:.
-?C:HAS_DIRENT_D_NAMELEN:
-?C: This symbol, if defined, indicates that struct dirent has an
-?C: integer member d_namelen to hold the actual string length of d_name.
-?C:.
-?H:#$d_dirent_d_namelen HAS_DIRENT_D_NAMELEN /**/
-?H:.
-?LINT:set d_dirent_d_namelen
-: check whether struct dirent has a member d_namelen.
-$cat >try.c <<EOC
-#include <sys/types.h>
-#$i_dirent I_DIRENT
-#ifdef I_DIRENT
-#include <dirent.h>
-#endif
-int main(void)
-{
- static struct dirent dir_entry;
- dir_entry.d_namelen |= 1;
- return 0;
-}
-EOC
-cyn="whether struct dirent has a d_namelen member"
-set d_dirent_d_namelen
-eval $trylink
-
Copied: trunk/dist/mcon/U/d_dirent_d_namlen.U (from rev 192, trunk/dist/mcon/U/d_dirent_d_namelen.U)
===================================================================
--- trunk/dist/mcon/U/d_dirent_d_namlen.U (rev 0)
+++ trunk/dist/mcon/U/d_dirent_d_namlen.U 2015-04-19 14:41:31 UTC (rev 193)
@@ -0,0 +1,42 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_dirent_d_namlen: Trylink cat i_dirent
+?MAKE: -pick add $@ %<
+?S:d_dirent_d_namlen:
+?S: This variable conditionally defines the HAS_DIRENT_D_NAMLEN symbol,
+?S: which indicates to the C program that struct dirent has an
+?S: integer member d_namlen. Better check for HAS_DIRENT_D_NAMLEN than
+?S: DIRNAMLEN since the latter has a weaker test not involving compilation.
+?S:.
+?C:HAS_DIRENT_D_NAMLEN:
+?C: This symbol, if defined, indicates that struct dirent has an
+?C: integer member d_namlen to hold the actual string length of d_name.
+?C:.
+?H:#$d_dirent_d_namlen HAS_DIRENT_D_NAMLEN /**/
+?H:.
+?LINT:set d_dirent_d_namlen
+: check whether struct dirent has a member d_namlen.
+$cat >try.c <<EOC
+#include <sys/types.h>
+#$i_dirent I_DIRENT
+#ifdef I_DIRENT
+#include <dirent.h>
+#endif
+int main(void)
+{
+ static struct dirent dir_entry;
+ dir_entry.d_namlen |= 1;
+ return 0;
+}
+EOC
+cyn="whether struct dirent has a d_namlen member"
+set d_dirent_d_namlen
+eval $trylink
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-19 14:26:44
|
Revision: 192
http://sourceforge.net/p/dist/code/192
Author: rmanfredi
Date: 2015-04-19 14:26:42 +0000 (Sun, 19 Apr 2015)
Log Message:
-----------
Blindly include <fcntl.h> for openat() and fstatat() tests.
Modified Paths:
--------------
trunk/dist/mcon/U/d_fstatat.U
trunk/dist/mcon/U/d_openat.U
Modified: trunk/dist/mcon/U/d_fstatat.U
===================================================================
--- trunk/dist/mcon/U/d_fstatat.U 2015-04-19 10:04:17 UTC (rev 191)
+++ trunk/dist/mcon/U/d_fstatat.U 2015-04-19 14:26:42 UTC (rev 192)
@@ -7,7 +7,7 @@
?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
-?MAKE:d_fstatat: Trylink cat i_fcntl i_sysstat
+?MAKE:d_fstatat: Trylink cat i_sysstat
?MAKE: -pick add $@ %<
?S:d_fstatat:
?S: This variable conditionally defines HAS_FSTATAT if fstatat() is
@@ -25,10 +25,7 @@
: see if fstatat exists
$cat >try.c <<EOC
#$i_sysstat I_SYS_STAT
-#$i_fcntl I_FCNTL
-#ifdef I_FCNTL
#include <fcntl.h> /* AT_* constants */
-#endif
#ifdef I_SYS_STAT
#include <sys/stat.h>
#endif
Modified: trunk/dist/mcon/U/d_openat.U
===================================================================
--- trunk/dist/mcon/U/d_openat.U 2015-04-19 10:04:17 UTC (rev 191)
+++ trunk/dist/mcon/U/d_openat.U 2015-04-19 14:26:42 UTC (rev 192)
@@ -7,7 +7,7 @@
?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
-?MAKE:d_openat: Trylink cat i_fcntl
+?MAKE:d_openat: Trylink cat
?MAKE: -pick add $@ %<
?S:d_openat:
?S: This variable conditionally defines HAS_OPENAT if openat() is
@@ -24,10 +24,7 @@
?LINT:set d_openat
: see if openat exists
$cat >try.c <<EOC
-#$i_fcntl I_FCNTL
-#ifdef I_FCNTL
#include <fcntl.h> /* AT_* constants */
-#endif
int main(void)
{
static int ret;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-19 10:04:20
|
Revision: 191
http://sourceforge.net/p/dist/code/191
Author: rmanfredi
Date: 2015-04-19 10:04:17 +0000 (Sun, 19 Apr 2015)
Log Message:
-----------
Patch from H.Merijn Brand to disable backslashes in -D and -U arguments.
Modified Paths:
--------------
trunk/dist/mcon/U/Options.U
Modified: trunk/dist/mcon/U/Options.U
===================================================================
--- trunk/dist/mcon/U/Options.U 2015-04-18 12:21:41 UTC (rev 190)
+++ trunk/dist/mcon/U/Options.U 2015-04-19 10:04:17 UTC (rev 191)
@@ -354,8 +354,19 @@
true) exec 1>/dev/null;;
esac
+?X: Patch from H.Merijn Brand -- 2015-04-19
+?X: The reasoning behind this change is that optdef.sh gets sourced and the
+?X: arguments, like prefix, are passed around in different quotation styles
+?X: and subshells all around, and the (unescaped) backslash will not be
+?X: pertained in the final config.sh
+?X: Note that -q is POSIX but to be sure, we also silence all output --RAM
+touch optdef.sh
+if grep -q '\\' optdef.sh >/dev/null 2>&1; then
+ echo "Configure does not support \\ in -D or -U arguments" >&2
+ exit 1
+fi
+
: run the defines and the undefines, if any, but leave the file out there...
-touch optdef.sh
. ./optdef.sh
: create the posthint manipulation script and leave the file out there...
?X: this file will be perused by Oldconfig.U
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-18 12:21:44
|
Revision: 190
http://sourceforge.net/p/dist/code/190
Author: rmanfredi
Date: 2015-04-18 12:21:41 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
Added check for fdopendir().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_fdopendir.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-18 12:14:30 UTC (rev 189)
+++ trunk/dist/MANIFEST 2015-04-18 12:21:41 UTC (rev 190)
@@ -226,6 +226,7 @@
mcon/U/d_fcntl.U Do we have fcntl()?
mcon/U/d_fd_set.U Do we have the fd set manipulation macros?
mcon/U/d_fdatasync.U Do we have fdatasync()?
+mcon/U/d_fdopendir.U Do we have fdopendir()?
mcon/U/d_ffs.U Do we have ffs()?
mcon/U/d_fgetpos.U Do we have fgetpos()?
mcon/U/d_flexfnam.U Long filenames?
Added: trunk/dist/mcon/U/d_fdopendir.U
===================================================================
--- trunk/dist/mcon/U/d_fdopendir.U (rev 0)
+++ trunk/dist/mcon/U/d_fdopendir.U 2015-04-18 12:21:41 UTC (rev 190)
@@ -0,0 +1,42 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_fdopendir: Trylink cat i_dirent
+?MAKE: -pick add $@ %<
+?S:d_fdopendir:
+?S: This variable conditionally defines HAS_FDOPENDIR if fdopendir() is
+?S: available to open a directory using an opened file descriptor already
+?S: referring to that directory.
+?S:.
+?C:HAS_FDOPENDIR:
+?C: This symbol, if defined, indicates that the fdopendir() routine is
+?C: available to open directories using an opened file descriptor already
+?C: referring to that directory.
+?C:.
+?H:#$d_fdopendir HAS_FDOPENDIR /**/
+?H:.
+?LINT:set d_fdopendir
+: see if fdopendir exists
+$cat >try.c <<EOC
+#$i_dirent I_DIRENT
+#include <sys/types.h>
+#ifdef I_DIRENT
+#include <dirent.h>
+#endif
+int main(void)
+{
+ static DIR *d;
+ d = fdopendir(0);
+ return NULL == d;
+}
+EOC
+cyn=fdopendir
+set d_fdopendir
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_fdopendir.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-18 12:14:37
|
Revision: 189
http://sourceforge.net/p/dist/code/189
Author: rmanfredi
Date: 2015-04-18 12:14:30 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
Added check for openat().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_openat.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-18 10:46:24 UTC (rev 188)
+++ trunk/dist/MANIFEST 2015-04-18 12:14:30 UTC (rev 189)
@@ -324,6 +324,7 @@
mcon/U/d_nolnbuf.U Is stdout line buffered?
mcon/U/d_normsig.U signal() vs sigset()
mcon/U/d_open3.U Do we have the 3 arguments form for open()?
+mcon/U/d_openat.U Do we have openat()?
mcon/U/d_passwd.U Do we have passwd()?
mcon/U/d_pathconf.U Do we have pathconf()?
mcon/U/d_pause.U Do we have pause()?
Added: trunk/dist/mcon/U/d_openat.U
===================================================================
--- trunk/dist/mcon/U/d_openat.U (rev 0)
+++ trunk/dist/mcon/U/d_openat.U 2015-04-18 12:14:30 UTC (rev 189)
@@ -0,0 +1,41 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_openat: Trylink cat i_fcntl
+?MAKE: -pick add $@ %<
+?S:d_openat:
+?S: This variable conditionally defines HAS_OPENAT if openat() is
+?S: available to open files with a relative path interepreted in
+?S: the context of an opened directory.
+?S:.
+?C:HAS_OPENAT:
+?C: This symbol, if defined, indicates that the openat() routine is
+?C: available to open files with a relative path interepreted in
+?C: the context of an opened directory.
+?C:.
+?H:#$d_openat HAS_OPENAT /**/
+?H:.
+?LINT:set d_openat
+: see if openat exists
+$cat >try.c <<EOC
+#$i_fcntl I_FCNTL
+#ifdef I_FCNTL
+#include <fcntl.h> /* AT_* constants */
+#endif
+int main(void)
+{
+ static int ret;
+ ret |= openat(AT_FDCWD, "path", /* flags */ 0, /* mode */ 0);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=openat
+set d_openat
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_openat.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-18 10:46:26
|
Revision: 188
http://sourceforge.net/p/dist/code/188
Author: rmanfredi
Date: 2015-04-18 10:46:24 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
Added check for fstatat().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_fstatat.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-18 09:10:52 UTC (rev 187)
+++ trunk/dist/MANIFEST 2015-04-18 10:46:24 UTC (rev 188)
@@ -233,6 +233,7 @@
mcon/U/d_fmod.U Do we have fmod()?
mcon/U/d_fork.U Do we have fork()?
mcon/U/d_fsetpos.U Do we have fsetpos()?
+mcon/U/d_fstatat.U Do we have fstatat()?
mcon/U/d_fsync.U Do we have fsync()?
mcon/U/d_ftime.U Do we have ftime()?
mcon/U/d_ftrncate.U Do we have ftruncate()?
Added: trunk/dist/mcon/U/d_fstatat.U
===================================================================
--- trunk/dist/mcon/U/d_fstatat.U (rev 0)
+++ trunk/dist/mcon/U/d_fstatat.U 2015-04-18 10:46:24 UTC (rev 188)
@@ -0,0 +1,46 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_fstatat: Trylink cat i_fcntl i_sysstat
+?MAKE: -pick add $@ %<
+?S:d_fstatat:
+?S: This variable conditionally defines HAS_FSTATAT if fstatat() is
+?S: available to do file stats with a relative path interepreted in
+?S: the context of an opened directory.
+?S:.
+?C:HAS_FSTATAT:
+?C: This symbol, if defined, indicates that the fstatat() routine is
+?C: available to do file stats with a relative path interepreted in
+?C: the context of an opened directory.
+?C:.
+?H:#$d_fstatat HAS_FSTATAT /**/
+?H:.
+?LINT:set d_fstatat
+: see if fstatat exists
+$cat >try.c <<EOC
+#$i_sysstat I_SYS_STAT
+#$i_fcntl I_FCNTL
+#ifdef I_FCNTL
+#include <fcntl.h> /* AT_* constants */
+#endif
+#ifdef I_SYS_STAT
+#include <sys/stat.h>
+#endif
+int main(void)
+{
+ static int ret;
+ struct stat sb;
+ ret |= fstatat(AT_FDCWD, "path", &sb, 0);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=fstatat
+set d_fstatat
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_fstatat.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-18 09:11:00
|
Revision: 187
http://sourceforge.net/p/dist/code/187
Author: rmanfredi
Date: 2015-04-18 09:10:52 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
Added HAS_DIRENT_D_NAMELEN for a compile check of d_namelen.
The legacy symbol DIRNAMELEN uses a weaker grep-based test, hence it should
no longer be used.
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_dirent_d_namelen.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-17 11:21:22 UTC (rev 186)
+++ trunk/dist/MANIFEST 2015-04-18 09:10:52 UTC (rev 187)
@@ -204,6 +204,7 @@
mcon/U/d_deflate.U Do we have zlib's deflate()?
mcon/U/d_devpoll.U Can we use /dev/poll?
mcon/U/d_difftime.U Do we have difftime()?
+mcon/U/d_dirent_d_namelen.U Does struct dirent has a member d_namelen?
mcon/U/d_dirent_d_type.U Does struct dirent has a member d_type?
mcon/U/d_dirfd.U Do we have dirfd()?
mcon/U/d_dladdr.U Do we have dladdr()?
Added: trunk/dist/mcon/U/d_dirent_d_namelen.U
===================================================================
--- trunk/dist/mcon/U/d_dirent_d_namelen.U (rev 0)
+++ trunk/dist/mcon/U/d_dirent_d_namelen.U 2015-04-18 09:10:52 UTC (rev 187)
@@ -0,0 +1,42 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_dirent_d_namelen: Trylink cat i_dirent
+?MAKE: -pick add $@ %<
+?S:d_dirent_d_namelen:
+?S: This variable conditionally defines the HAS_DIRENT_D_NAMELEN symbol,
+?S: which indicates to the C program that struct dirent has an
+?S: integer member d_namelen. Better check for HAS_DIRENT_D_NAMELEN than
+?S: DIRNAMLEN since the latter has a weaker test not involving compilation.
+?S:.
+?C:HAS_DIRENT_D_NAMELEN:
+?C: This symbol, if defined, indicates that struct dirent has an
+?C: integer member d_namelen to hold the actual string length of d_name.
+?C:.
+?H:#$d_dirent_d_namelen HAS_DIRENT_D_NAMELEN /**/
+?H:.
+?LINT:set d_dirent_d_namelen
+: check whether struct dirent has a member d_namelen.
+$cat >try.c <<EOC
+#include <sys/types.h>
+#$i_dirent I_DIRENT
+#ifdef I_DIRENT
+#include <dirent.h>
+#endif
+int main(void)
+{
+ static struct dirent dir_entry;
+ dir_entry.d_namelen |= 1;
+ return 0;
+}
+EOC
+cyn="whether struct dirent has a d_namelen member"
+set d_dirent_d_namelen
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_dirent_d_namelen.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-17 11:21:25
|
Revision: 186
http://sourceforge.net/p/dist/code/186
Author: rmanfredi
Date: 2015-04-17 11:21:22 +0000 (Fri, 17 Apr 2015)
Log Message:
-----------
Added check for dirfd().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_dirfd.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-17 07:20:44 UTC (rev 185)
+++ trunk/dist/MANIFEST 2015-04-17 11:21:22 UTC (rev 186)
@@ -205,6 +205,7 @@
mcon/U/d_devpoll.U Can we use /dev/poll?
mcon/U/d_difftime.U Do we have difftime()?
mcon/U/d_dirent_d_type.U Does struct dirent has a member d_type?
+mcon/U/d_dirfd.U Do we have dirfd()?
mcon/U/d_dladdr.U Do we have dladdr()?
mcon/U/d_dlerror.U Do we have dlerror()?
mcon/U/d_dliterphdr.U Do we have dl_iterate_phdr()?
@@ -218,6 +219,7 @@
mcon/U/d_etext_symbol.U Whether linker defines the "etext" symbol
mcon/U/d_euc2jis.U Do we have euc2jis()?
mcon/U/d_fast_assert.U Can we use fast assertions?
+mcon/U/d_fchdir.U Do we have fchdir()?
mcon/U/d_fchmod.U Do we have fchmod()?
mcon/U/d_fchown.U Do we have fchown()?
mcon/U/d_fcntl.U Do we have fcntl()?
@@ -278,7 +280,6 @@
mcon/U/d_ipv6.U Do we have IPv6 support?
mcon/U/d_isascii.U Do we have isascii()?
mcon/U/d_itimer.U Do we have setitimer()?
-mcon/U/d_fchdir.U Do we have fchdir()?
mcon/U/d_keepsig.U Will signal handlers need to be rearmed?
mcon/U/d_kevent_udata.U Is udata within struct kevent an integer?
mcon/U/d_killpg.U Do we have killpg()?
Added: trunk/dist/mcon/U/d_dirfd.U
===================================================================
--- trunk/dist/mcon/U/d_dirfd.U (rev 0)
+++ trunk/dist/mcon/U/d_dirfd.U 2015-04-17 11:21:22 UTC (rev 186)
@@ -0,0 +1,42 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_dirfd: Trylink cat i_dirent
+?MAKE: -pick add $@ %<
+?S:d_dirfd:
+?S: This variable conditionally defines HAS_DIRFD when dirfd() is
+?S: available to get the underlying file descriptor from opendir().
+?S:.
+?C:HAS_DIRFD:
+?C: This symbol, if defined, indicates that the dirfd() routine is
+?C: available to get the underlying file descriptor from a DIR *
+?C: opened by opendir().
+?C:.
+?H:#$d_dirfd HAS_DIRFD /**/
+?H:.
+?LINT:set d_dirfd
+: see if dirfd exists
+$cat >try.c <<EOC
+#include <sys/types.h>
+#$i_dirent I_DIRENT
+#ifdef I_DIRENT
+#include <dirent.h>
+#endif
+int main(void)
+{
+ static DIR *dir;
+ static int ret;
+ ret = dirfd(dir);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=dirfd
+set d_dirfd
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_dirfd.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-17 07:20:47
|
Revision: 185
http://sourceforge.net/p/dist/code/185
Author: rmanfredi
Date: 2015-04-17 07:20:44 +0000 (Fri, 17 Apr 2015)
Log Message:
-----------
Removed BSD-specific DT_WHT from the struct dirent check for a d_type field.
Modified Paths:
--------------
trunk/dist/mcon/U/d_dirent_d_type.U
Modified: trunk/dist/mcon/U/d_dirent_d_type.U
===================================================================
--- trunk/dist/mcon/U/d_dirent_d_type.U 2015-04-16 22:57:50 UTC (rev 184)
+++ trunk/dist/mcon/U/d_dirent_d_type.U 2015-04-17 07:20:44 UTC (rev 185)
@@ -13,11 +13,13 @@
?S:d_dirent_d_type:
?S: This variable conditionally defines the HAS_DIRENT_D_TYPE symbol,
?S: which indicates to the C program that struct dirent has an
-?S: integer member d_type.
+?S: integer member d_type.
?S:.
?C:HAS_DIRENT_D_TYPE:
?C: This symbol, if defined, indicates that struct dirent has an
-?C: integer member d_type.
+?C: integer member d_type. Note that DT_WHT is BSD-specific and may
+?C: not be available. If DT_UNKNOWN is returned, the filesystem does
+?C: not fill d_type even though it is present in the dir entry.
?C:.
?H:#$d_dirent_d_type HAS_DIRENT_D_TYPE /**/
?H:.
@@ -40,8 +42,7 @@
| DT_BLK
| DT_REG
| DT_LNK
- | DT_SOCK
- | DT_WHT;
+ | DT_SOCK;
return 0;
}
EOC
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-16 22:57:58
|
Revision: 184
http://sourceforge.net/p/dist/code/184
Author: rmanfredi
Date: 2015-04-16 22:57:50 +0000 (Thu, 16 Apr 2015)
Log Message:
-----------
Added test for fchdir().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_fchdir.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2015-04-12 09:48:11 UTC (rev 183)
+++ trunk/dist/MANIFEST 2015-04-16 22:57:50 UTC (rev 184)
@@ -278,6 +278,7 @@
mcon/U/d_ipv6.U Do we have IPv6 support?
mcon/U/d_isascii.U Do we have isascii()?
mcon/U/d_itimer.U Do we have setitimer()?
+mcon/U/d_fchdir.U Do we have fchdir()?
mcon/U/d_keepsig.U Will signal handlers need to be rearmed?
mcon/U/d_kevent_udata.U Is udata within struct kevent an integer?
mcon/U/d_killpg.U Do we have killpg()?
Added: trunk/dist/mcon/U/d_fchdir.U
===================================================================
--- trunk/dist/mcon/U/d_fchdir.U (rev 0)
+++ trunk/dist/mcon/U/d_fchdir.U 2015-04-16 22:57:50 UTC (rev 184)
@@ -0,0 +1,40 @@
+?RCS:
+?RCS: Copyright (c) 2015 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_fchdir: Trylink cat i_unistd
+?MAKE: -pick add $@ %<
+?S:d_fchdir:
+?S: This variable conditionally defines HAS_FCHDIR if fchdir() is
+?S: available to change the directory to that of an opened directory.
+?S:.
+?C:HAS_FCHDIR:
+?C: This symbol, if defined, indicates that the fchdir routine is
+?C: available to change the working directory to that of the opened
+?C: directory whose file descriptor is given.
+?C:.
+?H:#$d_fchdir HAS_FCHDIR /**/
+?H:.
+?LINT:set d_fchdir
+: see if fchdir exists
+$cat >try.c <<EOC
+#$i_unistd I_UNISTD
+#ifdef I_UNISTD
+#include <unistd.h>
+#endif
+int main(void)
+{
+ static int fd, ret;
+ ret |= fchdir(fd);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=fchdir
+set d_fchdir
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_fchdir.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2015-04-12 09:48:19
|
Revision: 183
http://sourceforge.net/p/dist/code/183
Author: rmanfredi
Date: 2015-04-12 09:48:11 +0000 (Sun, 12 Apr 2015)
Log Message:
-----------
Added an "install-strip" target to install programs with stripping.
Modified Paths:
--------------
trunk/dist/jmake/files/Jmake.rules
trunk/dist/jmake/files/Jmake.tmpl
Modified: trunk/dist/jmake/files/Jmake.rules
===================================================================
--- trunk/dist/jmake/files/Jmake.rules 2014-11-23 16:40:05 UTC (rev 182)
+++ trunk/dist/jmake/files/Jmake.rules 2015-04-12 09:48:11 UTC (rev 183)
@@ -282,7 +282,7 @@
* Generate rules to install the indicated library.
*/
#define InstallLibrary(libname,dest) @!\
-local_install:: lib^^libname.a @@\
+local_install local_install-strip:: lib^^libname.a @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 644 lib^^libname.a $(INSTALL_PREFIX)^^^dest @@\
$(RANLIB) dest/lib^^libname.a @@\
@@ -297,7 +297,7 @@
* Generate rules to install the shared library.
*/
#define InstallSharedLibrary(libname,rev,dest) @!\
-local_install:: lib^^libname.so.rev @@\
+local_install local_install-strip:: lib^^libname.so.rev @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 444 lib^^libname.so.rev $(INSTALL_PREFIX)^^^dest @!\
@!\
@@ -310,7 +310,7 @@
* Generate rules to install the shared library data
*/
#define InstallSharedLibraryData(libname,rev,dest) @!\
-local_install:: lib^^libname.sa.rev @@\
+local_install local_install-strip:: lib^^libname.sa.rev @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 444 lib^^libname.sa.rev $(INSTALL_PREFIX)^^^dest @!\
@!\
@@ -324,7 +324,7 @@
* for the purposes of aliasing.
*/
#define InstallLibraryAlias(libname,alias,dest) @!\
-local_install:: lib^^libname.a @@\
+local_install local_install-strip:: lib^^libname.a @@\
$(RM) lib^^alias.a @@\
-(cd dest; $(LN) lib^^libname.a lib^^alias.a) @!\
@!\
@@ -376,7 +376,7 @@
* install flags.
*/
#define InstallNonExec(file,dest) @!\
-local_install:: file @@\
+local_install local_install-strip:: file @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 444 file $(INSTALL_PREFIX)^^^dest @!\
@!\
@@ -388,10 +388,16 @@
* InstallProgramWithFlags:
* Generate rules to install an executable program using given
* install flags.
+ * By default, program is not stripped, but the install-strip target
+ * will force stripping.
*/
#define InstallProgramWithFlags(program,dest,flags) @!\
local_install:: program @@\
_MakeInstallDirIgnore(dest) \ @@\
+ $(INSTALL) -c -m 555 flags program^^^$(_EXE) $(INSTALL_PREFIX)^^^dest @!\
+ @!\
+local_install-strip:: program @@\
+ _MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -s -m 555 flags program^^^$(_EXE) $(INSTALL_PREFIX)^^^dest @!\
@!\
local_deinstall:: @@\
@@ -401,10 +407,10 @@
/*
* InstallProgramNoStripWithFlags:
* Generate rules to install an executable program using given
- * install flags.
+ * install flags. The program is never stripped.
*/
#define InstallProgramNoStripWithFlags(program,dest,flags) @!\
-local_install:: program @@\
+local_install local_install-strip:: program @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 555 flags program^^^$(_EXE) $(INSTALL_PREFIX)^^^dest @!\
@!\
@@ -416,6 +422,8 @@
* InstallProgram:
* Generate rules to install an executable program using any special
* install flags set in $(INSTALLFLAGS).
+ * By default, program is not stripped, but the install-strip target
+ * will force stripping.
*/
#define InstallProgram(program,dest) @!\
InstallProgramWithFlags(program,dest,^^)
@@ -437,7 +445,7 @@
* install flags.
*/
#define InstallScriptWithFlags(script,dest,flags) @!\
-local_install:: script @@\
+local_install local_install-strip:: script @@\
_MakeInstallDirIgnore(dest) \ @@\
$(INSTALL) -c -m 555 flags script $(INSTALL_PREFIX)^^^dest @!\
@!\
@@ -461,7 +469,7 @@
*/
#define InstallScripts() @!\
|once _InstallScripts_ @!\
-local_install:: $(SCRIPTS) $(LSCRIPTS) @@\
+local_install local_install-strip:: $(SCRIPTS) $(LSCRIPTS) @@\
_MakeInstallDirIgnore($(SCRIPTDIR)) \ @@\
for file in $(SCRIPTS) $(LSCRIPTS); do \ @@\
(set -x; \ @@\
@@ -644,6 +652,10 @@
%SUBDIRS:install:: local_install @@\
@exit 0 @!\
@!\
+?SUBDIRS:install-strip:: local_install-strip sub_install-strip @!\
+%SUBDIRS:install-strip:: local_install-strip @@\
+ @exit 0 @!\
+ @!\
?SUBDIRS:install.man:: maybe_install.man sub_install.man @!\
%SUBDIRS:install.man:: maybe_install.man @!\
?SUBDIRS:deinstall:: sub_deinstall local_deinstall @!\
@@ -1292,7 +1304,8 @@
* files.
*/
#define InstallSubdirs() \
-NamedSubTargetSubdirs(install,"Installing",^^) @!\
+NamedSubTargetSubdirs(install,"Installing",^^) @!\
+NamedSubTargetSubdirs(install-strip,"Installing (strip)",^^) @!\
NamedDepthTargetSubdirs(deinstall,"Deinstalling",^^)
@@ -1425,7 +1438,7 @@
* time (removed by deinstall).
*/
#define MakeInstallDirectories(dirs) @!\
-local_install:: @@\
+local_install local_install-strip:: @@\
_MakeInstallDirs(dirs) @!\
@!\
local_deinstall:: @@\
Modified: trunk/dist/jmake/files/Jmake.tmpl
===================================================================
--- trunk/dist/jmake/files/Jmake.tmpl 2014-11-23 16:40:05 UTC (rev 182)
+++ trunk/dist/jmake/files/Jmake.tmpl 2015-04-12 09:48:11 UTC (rev 183)
@@ -217,6 +217,7 @@
* in this directory.
*/
local_install::
+local_install-strip::
local_deinstall::
local_install.man::
local_deinstall.man::
@@ -229,6 +230,9 @@
local_install::
@echo "install in $(CURRENT) done."
+local_install-strip::
+ @echo "install (strip) in $(CURRENT) done."
+
local_deinstall::
@echo "deinstall in $(CURRENT) done."
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-11-23 16:40:13
|
Revision: 182
http://sourceforge.net/p/dist/code/182
Author: rmanfredi
Date: 2014-11-23 16:40:05 +0000 (Sun, 23 Nov 2014)
Log Message:
-----------
Fixed typo in ?S comment.
Modified Paths:
--------------
trunk/dist/mcon/U/d_cbrt.U
Modified: trunk/dist/mcon/U/d_cbrt.U
===================================================================
--- trunk/dist/mcon/U/d_cbrt.U 2014-07-22 09:28:59 UTC (rev 181)
+++ trunk/dist/mcon/U/d_cbrt.U 2014-11-23 16:40:05 UTC (rev 182)
@@ -15,7 +15,7 @@
?MAKE:d_cbrt: Trylink cat
?MAKE: -pick add $@ %<
?S:d_cbrt:
-?S: This variable conditionally defines the CBRT symbol, which
+?S: This variable conditionally defines the HAS_CBRT symbol, which
?S: indicates to the C program that the cbrt() (cube root) function
?S: is available.
?S:.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-07-22 09:29:04
|
Revision: 181
http://sourceforge.net/p/dist/code/181
Author: rmanfredi
Date: 2014-07-22 09:28:59 +0000 (Tue, 22 Jul 2014)
Log Message:
-----------
Also try to link with -ldl for the BFD library check, to cope with new versions.
Modified Paths:
--------------
trunk/dist/mcon/U/d_bfd_lib.U
Modified: trunk/dist/mcon/U/d_bfd_lib.U
===================================================================
--- trunk/dist/mcon/U/d_bfd_lib.U 2014-04-17 15:47:46 UTC (rev 180)
+++ trunk/dist/mcon/U/d_bfd_lib.U 2014-07-22 09:28:59 UTC (rev 181)
@@ -42,7 +42,10 @@
}
EOC
cyn="whether the BFD library is available"
+?X: Modern BFD library versions no longer require -lintl and -liberty but do
+?X: require -ldl, on Linux at least. -- RAM, 2014-07-22
set d_bfd_lib '-lbfd -lintl -liberty' '-lbfd -liberty' '-lbfd -liberty -lz' \
- '-lbfd -lintl -liberty -lz' '-lbfd -lz' '-lbfd -lintl -lz'
+ '-lbfd -lintl -liberty -lz' '-lbfd -lz' '-lbfd -lintl -lz' \
+ '-lbfd -lz -ldl'
eval $trylink
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-04-17 15:47:51
|
Revision: 180
http://sourceforge.net/p/dist/code/180
Author: rmanfredi
Date: 2014-04-17 15:47:46 +0000 (Thu, 17 Apr 2014)
Log Message:
-----------
Recent versions of the BFD library no longer require linking with -liberty.
Modified Paths:
--------------
trunk/dist/mcon/U/d_bfd_lib.U
Modified: trunk/dist/mcon/U/d_bfd_lib.U
===================================================================
--- trunk/dist/mcon/U/d_bfd_lib.U 2014-04-17 15:45:22 UTC (rev 179)
+++ trunk/dist/mcon/U/d_bfd_lib.U 2014-04-17 15:47:46 UTC (rev 180)
@@ -43,6 +43,6 @@
EOC
cyn="whether the BFD library is available"
set d_bfd_lib '-lbfd -lintl -liberty' '-lbfd -liberty' '-lbfd -liberty -lz' \
- '-lbfd -lintl -liberty -lz'
+ '-lbfd -lintl -liberty -lz' '-lbfd -lz' '-lbfd -lintl -lz'
eval $trylink
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-04-17 15:45:28
|
Revision: 179
http://sourceforge.net/p/dist/code/179
Author: rmanfredi
Date: 2014-04-17 15:45:22 +0000 (Thu, 17 Apr 2014)
Log Message:
-----------
Added checks for clock_gettime() and clock_getres().
Modified Paths:
--------------
trunk/dist/MANIFEST
trunk/dist/mcon/Makefile.SH
Added Paths:
-----------
trunk/dist/mcon/U/d_clock_getres.U
trunk/dist/mcon/U/d_clock_gettime.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2014-04-08 10:42:58 UTC (rev 178)
+++ trunk/dist/MANIFEST 2014-04-17 15:45:22 UTC (rev 179)
@@ -189,6 +189,8 @@
mcon/U/d_chroot.U Do we have chroot()?
mcon/U/d_chsize.U Size of a char
mcon/U/d_ckeypad.U Do we have the curses keypad()?
+mcon/U/d_clock_getres.U Do we have clock_getres()?
+mcon/U/d_clock_gettime.U Do we have clock_gettime()?
mcon/U/d_closedir.U Do we have closedir()?
mcon/U/d_closefrom.U Do we have closefrom()?
mcon/U/d_const.U Can cc grok the const keyword?
Modified: trunk/dist/mcon/Makefile.SH
===================================================================
--- trunk/dist/mcon/Makefile.SH 2014-04-08 10:42:58 UTC (rev 178)
+++ trunk/dist/mcon/Makefile.SH 2014-04-17 15:45:22 UTC (rev 179)
@@ -63,7 +63,7 @@
########################################################################
# Start of Jmakefile
-# $X-Id: Jmakefile 48 2010-11-28 23:05:09Z rmanfredi $
+# $X-Id: Jmakefile 177 2014-04-08 10:42:18Z rmanfredi $
#
# Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
#
Added: trunk/dist/mcon/U/d_clock_getres.U
===================================================================
--- trunk/dist/mcon/U/d_clock_getres.U (rev 0)
+++ trunk/dist/mcon/U/d_clock_getres.U 2014-04-17 15:45:22 UTC (rev 179)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2014 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_clock_getres: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_clock_getres:
+?S: This variable conditionally defines HAS_CLOCK_GETRES when clock_getres() is
+?S: available to fetch the granularity of the available clock.
+?S:.
+?C:HAS_CLOCK_GETRES:
+?C: This symbol, if defined, indicates that the clock_getres() system call is
+?C: available to fetch the granularity of available clock (CLOCK_REALTIME is
+?C: a valid clock when the symbol is defined).
+?C:.
+?H:#$d_clock_getres HAS_CLOCK_GETRES /**/
+?H:.
+?LINT:set d_clock_getres
+: see whether clock_getres exists
+$cat >try.c <<EOC
+#include <time.h>
+int main(void)
+{
+ int ret;
+ struct timespec res;
+ ret = clock_getres(CLOCK_REALTIME, &res);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=clock_getres
+set d_clock_getres
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_clock_getres.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/dist/mcon/U/d_clock_gettime.U
===================================================================
--- trunk/dist/mcon/U/d_clock_gettime.U (rev 0)
+++ trunk/dist/mcon/U/d_clock_gettime.U 2014-04-17 15:45:22 UTC (rev 179)
@@ -0,0 +1,38 @@
+?RCS:
+?RCS: Copyright (c) 2014 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_clock_gettime: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_clock_gettime:
+?S: This variable conditionally defines HAS_CLOCK_GETTIME when clock_gettime()
+?S: is available to fetch the clock.
+?S:.
+?C:HAS_CLOCK_GETTIME:
+?C: This symbol, if defined, indicates that the clock_gettime() system call is
+?C: available to fetch the clock (CLOCK_REALTIME is a valid clock when the
+?C: symbol is defined).
+?C:.
+?H:#$d_clock_gettime HAS_CLOCK_GETTIME /**/
+?H:.
+?LINT:set d_clock_gettime
+: see whether clock_gettime exists
+$cat >try.c <<EOC
+#include <time.h>
+int main(void)
+{
+ int ret;
+ struct timespec tp;
+ ret = clock_gettime(CLOCK_REALTIME, &tp);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=clock_gettime
+set d_clock_gettime
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_clock_gettime.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-04-08 10:43:03
|
Revision: 178
http://sourceforge.net/p/dist/code/178
Author: rmanfredi
Date: 2014-04-08 10:42:58 +0000 (Tue, 08 Apr 2014)
Log Message:
-----------
Fixed detection of IEEE-754 floating point byte ordering for Solaris.
Modified Paths:
--------------
trunk/dist/mcon/U/d_ieee754.U
Modified: trunk/dist/mcon/U/d_ieee754.U
===================================================================
--- trunk/dist/mcon/U/d_ieee754.U 2014-04-08 10:42:18 UTC (rev 177)
+++ trunk/dist/mcon/U/d_ieee754.U 2014-04-08 10:42:58 UTC (rev 178)
@@ -35,6 +35,7 @@
?H:#define IEEE754_BYTEORDER 0x$ieee754_byteorder /* large digits for MSB */
?H:.
?T:order
+?F:!str !try.c
?LINT:set d_ieee754
: check for ieee754 float and their endianness
?X:
@@ -58,8 +59,21 @@
elif $contains isIEEE754Sys try$_o >/dev/null 2>&1; then
val=$define
order=1234
+?X:
+?X: On Solaris, "grep" does not work on binary files -- use strings.
+?X:
else
- val=$undef
+ strings try$_o >str 2>/dev/null
+ if $contains ISieee754Sys str >/dev/null 2>&1; then
+ val=$define
+ order=4321
+ elif $contains isIEEE754Sys str >/dev/null 2>&1; then
+ val=$define
+ order=1234
+ else
+ val=$undef
+ fi
+ $rm -f str
fi
fi
set d_ieee754
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-04-08 10:42:24
|
Revision: 177
http://sourceforge.net/p/dist/code/177
Author: rmanfredi
Date: 2014-04-08 10:42:18 +0000 (Tue, 08 Apr 2014)
Log Message:
-----------
Always regenerate the Glossary file.
Modified Paths:
--------------
trunk/dist/mcon/Jmakefile
trunk/dist/mcon/Makefile.SH
Modified: trunk/dist/mcon/Jmakefile
===================================================================
--- trunk/dist/mcon/Jmakefile 2014-04-08 10:39:13 UTC (rev 176)
+++ trunk/dist/mcon/Jmakefile 2014-04-08 10:42:18 UTC (rev 177)
@@ -32,7 +32,9 @@
SetSubdirs(man)
AllTarget(Glossary)
-Glossary: makegloss
+.FORCE:
+
+Glossary: .FORCE
chmod +x makegloss
./makegloss
Modified: trunk/dist/mcon/Makefile.SH
===================================================================
--- trunk/dist/mcon/Makefile.SH 2014-04-08 10:39:13 UTC (rev 176)
+++ trunk/dist/mcon/Makefile.SH 2014-04-08 10:42:18 UTC (rev 177)
@@ -1,5 +1,5 @@
-: Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.5-43]
-: $X-Id: Jmake.tmpl 47 2010-11-28 22:23:13Z rmanfredi $
+: Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.5-174]
+: $X-Id: Jmake.tmpl 156 2012-12-19 16:44:39Z rmanfredi $
case $CONFIG in
'')
@@ -58,7 +58,7 @@
$spitshell >>Makefile <<'!NO!SUBS!'
########################################################################
# Jmake rules for building libraries, programs, scripts, and data files
-# $X-Id: Jmake.rules 18 2006-12-27 10:35:09Z rmanfredi $
+# $X-Id: Jmake.rules 174 2014-04-05 08:19:48Z rmanfredi $
########################################################################
# Start of Jmakefile
@@ -95,7 +95,9 @@
local_realclean::
$(RM) Glossary
-Glossary: makegloss
+.FORCE:
+
+Glossary: .FORCE
chmod +x makegloss
./makegloss
@@ -297,6 +299,8 @@
$(RM) Makefile config.sh
install:: local_install sub_install
+ @exit 0
+
install.man:: maybe_install.man sub_install.man
deinstall:: sub_deinstall local_deinstall
deinstall.man:: sub_deinstall.man maybe_deinstall.man
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rma...@us...> - 2014-04-08 10:39:17
|
Revision: 176
http://sourceforge.net/p/dist/code/176
Author: rmanfredi
Date: 2014-04-08 10:39:13 +0000 (Tue, 08 Apr 2014)
Log Message:
-----------
Added check for __builtin_bswap64().
Modified Paths:
--------------
trunk/dist/MANIFEST
Added Paths:
-----------
trunk/dist/mcon/U/d_built_bswap64.U
Modified: trunk/dist/MANIFEST
===================================================================
--- trunk/dist/MANIFEST 2014-04-07 07:14:41 UTC (rev 175)
+++ trunk/dist/MANIFEST 2014-04-08 10:39:13 UTC (rev 176)
@@ -174,6 +174,7 @@
mcon/U/d_brokstat.U Check whether stat() macros are broken
mcon/U/d_bsdjmp.U Do we have BSD _setjmp() and _longjmp()?
mcon/U/d_built_bswap32.U Is __builtin_bswap32() available?
+mcon/U/d_built_bswap64.U Is __builtin_bswap64() available?
mcon/U/d_built_clz.U Is __builtin_clz() available?
mcon/U/d_built_ctz.U Is __builtin_ctz() available?
mcon/U/d_built_memcmp.U Is __builtin_memcmp() available?
Added: trunk/dist/mcon/U/d_built_bswap64.U
===================================================================
--- trunk/dist/mcon/U/d_built_bswap64.U (rev 0)
+++ trunk/dist/mcon/U/d_built_bswap64.U 2014-04-08 10:39:13 UTC (rev 176)
@@ -0,0 +1,35 @@
+?RCS:
+?RCS: Copyright (c) 2013 Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:d_built_bswap64: Trylink cat
+?MAKE: -pick add $@ %<
+?S:d_built_bswap64:
+?S: This variable conditionally defines the HAS_BUILTIN_BSWAP64 symbol, which
+?S: indicates to the C program that __builtin_bswap64 is available.
+?S:.
+?C:HAS_BUILTIN_BSWAP64:
+?C: This symbol, if defined, indicates that __builtin_bswap64 routine is
+?C: available to byte-swap a 64-bit value (little <-> big endian).
+?C:.
+?H:#$d_built_bswap64 HAS_BUILTIN_BSWAP64 /**/
+?H:.
+?LINT:set d_built_bswap64
+: check for __builtin_bswap64
+$cat >try.c <<EOC
+int main(void)
+{
+ static int ret;
+ ret |= __builtin_bswap64(127);
+ return ret ? 0 : 1;
+}
+EOC
+cyn=__builtin_bswap64
+set d_built_bswap64
+eval $trylink
+
Property changes on: trunk/dist/mcon/U/d_built_bswap64.U
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|