summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-06-25 12:41:56 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-06-25 12:41:56 +0000
commite7b45c45db7a787d06ffecc41a20facb23d96bf4 (patch)
treea1432823aaef6e3708a1c0d9b64fc36a0a1d62e3 /configure
parent63ba4fa31b01507a07f0726f73ca5135af0e09e1 (diff)
downloadocaml-e7b45c45db7a787d06ffecc41a20facb23d96bf4.tar.gz
Ajout _POSIX_SOURCE pour NextStep
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@908 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure b/configure
index d8524c29b3..cc16d6bec5 100755
--- a/configure
+++ b/configure
@@ -159,8 +159,10 @@ bytecclinkopts=""
if test $gcc = yes; then
bytecccompopts="-fno-defer-pop -Wall"
case "$host" in
- *-*-nextstep*) bytecccompopts="$bytecccompopts -U__GNUC__";;
- alpha-*-osf*) bytecclinkopts="-Xlinker -taso";;
+ *-*-nextstep*)
+ bytecccompopts="$bytecccompopts -U__GNUC__ -D_POSIX_SOURCE";;
+ alpha-*-osf*)
+ bytecclinkopts="-Xlinker -taso";;
esac
else
$bytecc=cc
@@ -198,11 +200,12 @@ case "$arch" in
*) nativecc="$bytecc";;
esac
-case "$arch,$nativecc" in
- alpha,cc) nativecccompopts=-std1;;
- mips,cc) nativecccompopts=-std;;
- *,gcc) nativecccompopts=-Wall;;
- *) nativecccompopts='';;
+case "$arch,$nativecc,$system" in
+ alpha,cc,*) nativecccompopts=-std1;;
+ mips,cc,*) nativecccompopts=-std;;
+ *,*,nextstep) nativecccompopts="-Wall -D_POSIX_SOURCE";;
+ *,gcc,*) nativecccompopts=-Wall;;
+ *) nativecccompopts='';;
esac
nativecclinkopts=''