diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-05-10 10:34:44 -0400 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-05-10 10:34:44 -0400 |
commit | 78c22260dd0d139870c3a7d36cbbe23afdbb29f8 (patch) | |
tree | 60ea3e662748a301daa5a1281e5154e339efd320 /build | |
parent | 24f425153f4a5ae23cc40e5faa02a80d11e3ab0b (diff) | |
download | libarchive-78c22260dd0d139870c3a7d36cbbe23afdbb29f8.tar.gz |
Properly detect iconv with cmake on linux.
SVN-Revision: 3292
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/config.h.in | 24 |
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}" |