Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions Configure
Original file line number Diff line number Diff line change
Expand Up @@ -21657,45 +21657,45 @@ EOCP
fi
fi

if $test X"$sPRId64" = X -a X"$quadtype" != X; then
$cat >try.c <<EOCP
if $test X"$sPRId64" = X -a X"$quadtype" = X"long long"; then
$cat >try.c <<'EOCP'
#include <sys/types.h>
#include <stdio.h>
int main() {
$quadtype q = 12345678901;
printf("%Ld\n", q);
long long q = 12345678901LL; /* AIX cc requires the LL suffix. */
printf("%lld\n", q);
}
EOCP
set try
if eval $compile; then
yyy=`$run ./try`
case "$yyy" in
12345678901)
sPRId64='"Ld"'; sPRIi64='"Li"'; sPRIu64='"Lu"';
sPRIo64='"Lo"'; sPRIx64='"Lx"'; sPRIXU64='"LX"';
echo "We will use %Ld."
sPRId64='"lld"'; sPRIi64='"lli"'; sPRIu64='"llu"';
sPRIo64='"llo"'; sPRIx64='"llx"'; sPRIXU64='"llX"';
echo "We will use the %lld style."
;;
esac
fi
fi

if $test X"$sPRId64" = X -a X"$quadtype" = X"long long"; then
$cat >try.c <<'EOCP'
if $test X"$sPRId64" = X -a X"$quadtype" != X; then
$cat >try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
long long q = 12345678901LL; /* AIX cc requires the LL suffix. */
printf("%lld\n", q);
$quadtype q = 12345678901;
printf("%qd\n", q);
}
EOCP
set try
if eval $compile; then
yyy=`$run ./try`
case "$yyy" in
12345678901)
sPRId64='"lld"'; sPRIi64='"lli"'; sPRIu64='"llu"';
sPRIo64='"llo"'; sPRIx64='"llx"'; sPRIXU64='"llX"';
echo "We will use the %lld style."
sPRId64='"qd"'; sPRIi64='"qi"'; sPRIu64='"qu"';
sPRIo64='"qo"'; sPRIx64='"qx"'; sPRIXU64='"qX"';
echo "We will use %qd."
;;
esac
fi
Expand All @@ -21707,17 +21707,17 @@ if $test X"$sPRId64" = X -a X"$quadtype" != X; then
#include <stdio.h>
int main() {
$quadtype q = 12345678901;
printf("%qd\n", q);
printf("%Ld\n", q);
}
EOCP
set try
if eval $compile; then
yyy=`$run ./try`
case "$yyy" in
12345678901)
sPRId64='"qd"'; sPRIi64='"qi"'; sPRIu64='"qu"';
sPRIo64='"qo"'; sPRIx64='"qx"'; sPRIXU64='"qX"';
echo "We will use %qd."
sPRId64='"Ld"'; sPRIi64='"Li"'; sPRIu64='"Lu"';
sPRIo64='"Lo"'; sPRIx64='"Lx"'; sPRIXU64='"LX"';
echo "We will use %Ld."
;;
esac
fi
Expand Down