summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-05-10 10:34:44 -0400
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-05-10 10:34:44 -0400
commit78c22260dd0d139870c3a7d36cbbe23afdbb29f8 (patch)
tree60ea3e662748a301daa5a1281e5154e339efd320 /build
parent24f425153f4a5ae23cc40e5faa02a80d11e3ab0b (diff)
downloadlibarchive-78c22260dd0d139870c3a7d36cbbe23afdbb29f8.tar.gz
Properly detect iconv with cmake on linux.
SVN-Revision: 3292
Diffstat (limited to 'build')
-rw-r--r--build/cmake/config.h.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in
index c8dc0359..f9055247 100644
--- a/build/cmake/config.h.in
+++ b/build/cmake/config.h.in
@@ -982,6 +982,30 @@ typedef uint64_t uintmax_t;
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#cmakedefine TIME_WITH_SYS_TIME 1
+#cmakedefine SAFE_TO_DEFINE_EXTENSIONS 1
+#ifdef SAFE_TO_DEFINE_EXTENSIONS
+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# define _ALL_SOURCE 1
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# define _POSIX_PTHREAD_SEMANTICS 1
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# define _TANDEM_SOURCE 1
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
+#endif /* SAFE_TO_DEFINE_EXTENSIONS */
+
/* Version number of package */
#cmakedefine VERSION "${VERSION}"