Author: stefanbidi
Date: Thu Nov 13 17:21:41 2014
New Revision: 38172
URL: http://svn.gna.org/viewcvs/gnustep?rev=38172&view=rev
Log:
* configure,
* configure.ac: Use '--without-' to compile without a specific library.
* Source/config.h.in: Define sizeof double and long double.
Modified:
libs/corebase/trunk/ChangeLog
libs/corebase/trunk/Source/config.h.in
libs/corebase/trunk/configure
libs/corebase/trunk/configure.ac
Modified: libs/corebase/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/ChangeLog?rev=38172&r1=38171&r2=38172&view=diff
==============================================================================
--- libs/corebase/trunk/ChangeLog (original)
+++ libs/corebase/trunk/ChangeLog Thu Nov 13 17:21:41 2014
@@ -1,3 +1,12 @@
+2014-11-13 Stefan Bidigaray <[email protected]>
+ * configure,
+ * configure.ac: Use '--without-' to compile without a specific library.
+ * Source/config.h.in: Define sizeof double and long double.
+
+2014-11-12 Stefan Bidigaray <[email protected]>
+ * Headers/CoreFoundation/GSCharUtilities.c: Add new public character
+ utilities API.
+
2014-10-17 Stefan Bidigaray <[email protected]>
* Source/GSUnicode.c: Rework some of the string formatting code.
Modified: libs/corebase/trunk/Source/config.h.in
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/Source/config.h.in?rev=38172&r1=38171&r2=38172&view=diff
==============================================================================
--- libs/corebase/trunk/Source/config.h.in (original)
+++ libs/corebase/trunk/Source/config.h.in Thu Nov 13 17:21:41 2014
@@ -141,11 +141,17 @@
/* The size of `char', as computed by sizeof. */
#undef SIZEOF_CHAR
+/* The size of `double', as computed by sizeof. */
+#undef SIZEOF_DOUBLE
+
/* The size of `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of `long', as computed by sizeof. */
#undef SIZEOF_LONG
+
+/* The size of `long double', as computed by sizeof. */
+#undef SIZEOF_LONG_DOUBLE
/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
Modified: libs/corebase/trunk/configure
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/configure?rev=38172&r1=38171&r2=38172&view=diff
==============================================================================
--- libs/corebase/trunk/configure (original)
+++ libs/corebase/trunk/configure Thu Nov 13 17:21:41 2014
@@ -688,8 +688,8 @@
ac_subst_files=''
ac_user_opts='
enable_option_checking
-enable_gcd
-enable_objc_bridge
+with_gcd
+with_objc_bridge
with_zoneinfo_dir
'
ac_precious_vars='build_alias
@@ -1307,17 +1307,13 @@
esac
cat <<\_ACEOF
-Optional Features:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --disable-gcd Disables Grand Central Dispatch support. Leads to a
- loss of functionality.
- --disable-objc-bridge Disables the Objective-C toll-free bridge mechanism.
-
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --without-gcd Compiles without Grand Central Dispatch support.
+ This option leads to a loss of functionality.
+ --without-objc-bridge Does not compile the Objective-C toll-free bridge
+ mechanism.
--with-zoneinfo-dir=DIR Directory of the Time zone object files.
Some influential environment variables:
@@ -4025,6 +4021,73 @@
as_fn_error $? "Could not identify the architecture's data model."
"$LINENO" 5 ;;
esac
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
+$as_echo_n "checking size of double... " >&6; }
+if ${ac_cv_sizeof_double+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))"
"ac_cv_sizeof_double" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_double" = yes; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (double)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_double=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
+$as_echo "$ac_cv_sizeof_double" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_DOUBLE $ac_cv_sizeof_double
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
+$as_echo_n "checking size of long double... " >&6; }
+if ${ac_cv_sizeof_long_double+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))"
"ac_cv_sizeof_long_double" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_long_double" = yes; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (long double)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_long_double=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
+$as_echo "$ac_cv_sizeof_long_double" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
+_ACEOF
+
+
+
#---
# Check for ICU
#---
@@ -4163,14 +4226,15 @@
#---
# Check for Grand Central Dispatch (libdispatch)
#---
-# Check whether --enable-gcd was given.
-if test "${enable_gcd+set}" = set; then :
- enableval=$enable_gcd; enable_gcd=$enableval
-else
- enable_gcd=yes
-fi
-
-if test "$enable_gcd" = "yes"; then :
+
+# Check whether --with-gcd was given.
+if test "${with_gcd+set}" = set; then :
+ withval=$with_gcd; with_gcd=$enableval
+else
+ with_gcd=yes
+fi
+
+if test "$with_gcd" = "yes"; then :
LIBS="$LIBS -ldispatch"
$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
@@ -4237,14 +4301,15 @@
#---
# Check for the Objective-C runtime
#---
-# Check whether --enable-objc-bridge was given.
-if test "${enable_objc_bridge+set}" = set; then :
- enableval=$enable_objc_bridge; enable_objc_bridge=$enableval
-else
- enable_objc_bridge=yes
-fi
-
-if test "$enable_objc_bridge" = "yes"; then :
+
+# Check whether --with-objc-bridge was given.
+if test "${with_objc_bridge+set}" = set; then :
+ withval=$with_objc_bridge; with_objc_bridge=$enableval
+else
+ with_objc_bridge=yes
+fi
+
+if test "$with_objc_bridge" = "yes"; then :
# Extract the first word of "gnustep-config", so it can be a program name
with args.
set dummy gnustep-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Modified: libs/corebase/trunk/configure.ac
URL:
http://svn.gna.org/viewcvs/gnustep/libs/corebase/trunk/configure.ac?rev=38172&r1=38171&r2=38172&view=diff
==============================================================================
--- libs/corebase/trunk/configure.ac (original)
+++ libs/corebase/trunk/configure.ac Thu Nov 13 17:21:41 2014
@@ -71,6 +71,9 @@
AC_SUBST([GS_UINTPTR_T], ["unsigned long"])],
[AC_MSG_ERROR([Could not identify the architecture's data model.])])
+AC_CHECK_SIZEOF([double])
+AC_CHECK_SIZEOF([long double])
+
#---
# Check for ICU
#---
@@ -104,11 +107,11 @@
#---
# Check for Grand Central Dispatch (libdispatch)
#---
-AC_ARG_ENABLE([gcd],
- [AS_HELP_STRING([--disable-gcd],
- [Disables Grand Central Dispatch support. Leads to a loss of
functionality.])],
- [enable_gcd=$enableval], [enable_gcd=yes])
-AS_IF([test "$enable_gcd" = "yes"],
+AC_ARG_WITH([gcd],
+ [AS_HELP_STRING([--without-gcd],
+ [Compiles without Grand Central Dispatch support. This option leads to a
loss of functionality.])],
+ [with_gcd=$enableval], [with_gcd=yes])
+AS_IF([test "$with_gcd" = "yes"],
[LIBS="$LIBS -ldispatch"
AC_DEFINE(HAVE_LIBDISPATCH, 1)]
[AC_CHECK_HEADER(dispatch/dispatch.h)
@@ -122,11 +125,11 @@
#---
# Check for the Objective-C runtime
#---
-AC_ARG_ENABLE([objc-bridge],
- [AS_HELP_STRING([--disable-objc-bridge],
- [Disables the Objective-C toll-free bridge mechanism.])],
- [enable_objc_bridge=$enableval], [enable_objc_bridge=yes])
-AS_IF([test "$enable_objc_bridge" = "yes"],
+AC_ARG_WITH([objc-bridge],
+ [AS_HELP_STRING([--without-objc-bridge],
+ [Does not compile the Objective-C toll-free bridge mechanism.])],
+ [with_objc_bridge=$enableval], [with_objc_bridge=yes])
+AS_IF([test "$with_objc_bridge" = "yes"],
[AC_PATH_PROG(GNUSTEP_CONFIG, [gnustep-config], [no])
AS_IF([test "$GNUSTEP_CONFIG" != "no"],
[OBJC_LIBS=`$GNUSTEP_CONFIG --base-libs`
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs