summaryrefslogtreecommitdiff
path: root/util
AgeCommit message (Collapse)Author
2015-01-25makestrs: Use asprintf() if availableAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: Replace strcpy()+strcat() calls with snprintf() callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: Replace malloc()+strcpy() calls with strdup() callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: use strchr() instead of index()Alan Coopersmith
Besides being supported by more standards, strchr() has the important characteristic of having a prototype included in <string.h> on Solaris so that 64-bit compiles know it returns a pointer, not an integer. (On Solaris, index() is only found in <strings.h>, for SunOS compatibility.) Without this fix, makestrs segfaulted in 64-bit builds on Solaris after commit f9baaf55ff8cbd4bf018a34f181eda30d03b20dc switched to <string.h>. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-08Use string.h instead of X11/Xos.h.Thomas Klausner
Long long ago, Xos.h was needed to choose between <string.h> & <strings.h> depending on the OS in use. Today we can rely on C89 & later providing <string.h> everywhere for us. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-07Fix cross-compilationThierry Reding
When cross-compiling against a sysroot for instance, a --sysroot option is typically passed via the CPPFLAGS variable. This can cause the build to break in the util subdirectory which requires the CPPFLAGS to be set for the build system. Solve this by using the value of CPPFLAGS_FOR_BUILD for CPPFLAGS in the util subdirectory. Cross-compile setups can override the variable when calling the configure script. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03makestrs: Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Strip trailing whitespaceAlan Coopersmith
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-06Don't need to use target-specific CFLAGS for makestrsAlan Coopersmith
It's the only thing built in that directory, so we can use AM_CFLAGS and drop the requirement for AM_PROG_CC_C_O in configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-05Remove ancient #if defined(macII) hack for A/UX from makestrs.cAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-05makestrs: Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONSGaetan Nadon
The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: Use $(SED) from AC_PROG_SED supplied by XORG_DEFAULT_OPTIONSGaetan Nadon
Use the appropriate platform version of sed Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: remove unsed $(appman_DATA)Gaetan Nadon
Man page is not installed, this variable is not defined. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-07Fix make distcheck (./util/makestrs.1 left after distclean)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-12-07Don't install makestrs on the systemRémi Cardona
It has no known outside-libXt users. Let's not install it and its man page. Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-06Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith
Includes adding many $(AM_V_GEN) calls for the AM_SILENT_RULES included by XORG_DEFAULT_OPTIONS when automake-1.11 or newer is used Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-03Fix compilation of host tools in cross-compilation caseThomas Petazzoni
At 36e9f0d351afbf7fd2595990b2d39e7c551f6420, a fix was added to use the host gcc instead of the target gcc when cross-compiling libXt. This fix works, but is not solve the whole problem: the CFLAGS and LDFLAGS used with the host compilers are the one defined for the target compiler (and the flags for both compilers might be very different). This new fix let libXt obey to CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD environment variables, and use them to compile the host tools in util/. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-01-30Janitor: ansification, make distcheck, compiler warnings, .gitignore.Paulo Cesar Pereira de Andrade
Most "compiler" warnings were actually sparse warnings, due to assigning a integer to a pointer, or an external symbol without a previous declaration.
2008-10-20X.Org Bug 17942: libXt manpage formattingPeter Breitenlohner
<http://bugs.freedesktop.org/show_bug.cgi?id=17942>
2008-09-23configure.ac: Use native compiler for build toolsJohn Tapsell
makestrs is used during the build, so use the native compiler (either gcc or cc in $PATH, can be overridden as $CC_FOR_BUILD) instead of the (possibly cross-) compiler.
2007-01-02Bug 9514: Markup error in makestrs.1x man pageEric S. Raymond
<https://bugs.freedesktop.org/show_bug.cgi?id=9514>
2006-10-27Add more generated files to ignore.Eric Anholt
2006-07-13renamed: .cvsignore -> .gitignoreAlan Coopersmith
2005-12-10Add configure option to install makestrs and its manpage.MODULAR_COPYKevin E Martin
Add makestrs man page.
2005-07-09Add .cvsignore filesKeith Packard
2005-05-24Make source directory for templates configurableXORG-6_8_99_9XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Alexander Gottwald
2005-05-18- conditionally include config.h in xc/lib/Xt sourcesXORG-6_8_99_8Søren Sandmann Pedersen
- add build system for lib/Xt
2005-05-15Add settings to bring Solaris builds closer to the ones Sun packages inAlan Coopersmith
Solaris. Adds "BuildLikeSun" options for areas Sun deviates from the way Xorg is packaged on other platforms. See comment in sun.cf for details. Also, use system-provided Expat on Solaris 10 and other cleanups. Set shared library versions for Solaris builds to match versions used in Solaris. Add missing SharedXfixesReqs and SharedXdamageReqs. Add -solarisabi option to create XtStrings code compatibile with existing Solaris binaries. (Off by default, on if "BuildLikeSun" is set in sun.cf)
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16Kaleb Keithley
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley