Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 10d4faa

Browse files
committed
Autoconf.
1 parent ea436f9 commit 10d4faa

File tree

1 file changed

+172
-12
lines changed

1 file changed

+172
-12
lines changed

configure

+172-12
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ else
14811481
if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
14821482
for file in conftest.*; do
14831483
case $file in
1484-
*.c | *.C | *.o | *.obj) ;;
1484+
*.c | *.o | *.obj) ;;
14851485
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
14861486
esac
14871487
done
@@ -8279,13 +8279,173 @@ cat >> confdefs.h <<EOF
82798279
EOF
82808280

82818281

8282+
# Some platforms predefine the types int8, int16, etc. Only check
8283+
# a (hopefully) representative subset. Don't use AC_CHECK_TYPE, which
8284+
# doesn't work the way we want to.
8285+
echo $ac_n "checking size of int8""... $ac_c" 1>&6
8286+
echo "configure:8287: checking size of int8" >&5
8287+
if eval "test \"`echo '$''{'ac_cv_sizeof_int8'+set}'`\" = set"; then
8288+
echo $ac_n "(cached) $ac_c" 1>&6
8289+
else
8290+
if test "$cross_compiling" = yes; then
8291+
ac_cv_sizeof_int8=0
8292+
else
8293+
cat > conftest.$ac_ext <<EOF
8294+
#line 8295 "configure"
8295+
#include "confdefs.h"
8296+
#include <stdio.h>
8297+
main()
8298+
{
8299+
FILE *f=fopen("conftestval", "w");
8300+
if (!f) exit(1);
8301+
fprintf(f, "%d\n", sizeof(int8));
8302+
exit(0);
8303+
}
8304+
EOF
8305+
if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8306+
then
8307+
ac_cv_sizeof_int8=`cat conftestval`
8308+
else
8309+
echo "configure: failed program was:" >&5
8310+
cat conftest.$ac_ext >&5
8311+
rm -fr conftest*
8312+
ac_cv_sizeof_int8=0
8313+
fi
8314+
rm -fr conftest*
8315+
fi
8316+
8317+
fi
8318+
echo "$ac_t""$ac_cv_sizeof_int8" 1>&6
8319+
cat >> confdefs.h <<EOF
8320+
#define SIZEOF_INT8 $ac_cv_sizeof_int8
8321+
EOF
8322+
8323+
8324+
echo $ac_n "checking size of uint8""... $ac_c" 1>&6
8325+
echo "configure:8326: checking size of uint8" >&5
8326+
if eval "test \"`echo '$''{'ac_cv_sizeof_uint8'+set}'`\" = set"; then
8327+
echo $ac_n "(cached) $ac_c" 1>&6
8328+
else
8329+
if test "$cross_compiling" = yes; then
8330+
ac_cv_sizeof_uint8=0
8331+
else
8332+
cat > conftest.$ac_ext <<EOF
8333+
#line 8334 "configure"
8334+
#include "confdefs.h"
8335+
#include <stdio.h>
8336+
main()
8337+
{
8338+
FILE *f=fopen("conftestval", "w");
8339+
if (!f) exit(1);
8340+
fprintf(f, "%d\n", sizeof(uint8));
8341+
exit(0);
8342+
}
8343+
EOF
8344+
if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8345+
then
8346+
ac_cv_sizeof_uint8=`cat conftestval`
8347+
else
8348+
echo "configure: failed program was:" >&5
8349+
cat conftest.$ac_ext >&5
8350+
rm -fr conftest*
8351+
ac_cv_sizeof_uint8=0
8352+
fi
8353+
rm -fr conftest*
8354+
fi
8355+
8356+
fi
8357+
echo "$ac_t""$ac_cv_sizeof_uint8" 1>&6
8358+
cat >> confdefs.h <<EOF
8359+
#define SIZEOF_UINT8 $ac_cv_sizeof_uint8
8360+
EOF
8361+
8362+
8363+
echo $ac_n "checking size of int64""... $ac_c" 1>&6
8364+
echo "configure:8365: checking size of int64" >&5
8365+
if eval "test \"`echo '$''{'ac_cv_sizeof_int64'+set}'`\" = set"; then
8366+
echo $ac_n "(cached) $ac_c" 1>&6
8367+
else
8368+
if test "$cross_compiling" = yes; then
8369+
ac_cv_sizeof_int64=0
8370+
else
8371+
cat > conftest.$ac_ext <<EOF
8372+
#line 8373 "configure"
8373+
#include "confdefs.h"
8374+
#include <stdio.h>
8375+
main()
8376+
{
8377+
FILE *f=fopen("conftestval", "w");
8378+
if (!f) exit(1);
8379+
fprintf(f, "%d\n", sizeof(int64));
8380+
exit(0);
8381+
}
8382+
EOF
8383+
if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8384+
then
8385+
ac_cv_sizeof_int64=`cat conftestval`
8386+
else
8387+
echo "configure: failed program was:" >&5
8388+
cat conftest.$ac_ext >&5
8389+
rm -fr conftest*
8390+
ac_cv_sizeof_int64=0
8391+
fi
8392+
rm -fr conftest*
8393+
fi
8394+
8395+
fi
8396+
echo "$ac_t""$ac_cv_sizeof_int64" 1>&6
8397+
cat >> confdefs.h <<EOF
8398+
#define SIZEOF_INT64 $ac_cv_sizeof_int64
8399+
EOF
8400+
8401+
8402+
echo $ac_n "checking size of uint64""... $ac_c" 1>&6
8403+
echo "configure:8404: checking size of uint64" >&5
8404+
if eval "test \"`echo '$''{'ac_cv_sizeof_uint64'+set}'`\" = set"; then
8405+
echo $ac_n "(cached) $ac_c" 1>&6
8406+
else
8407+
if test "$cross_compiling" = yes; then
8408+
ac_cv_sizeof_uint64=0
8409+
else
8410+
cat > conftest.$ac_ext <<EOF
8411+
#line 8412 "configure"
8412+
#include "confdefs.h"
8413+
#include <stdio.h>
8414+
main()
8415+
{
8416+
FILE *f=fopen("conftestval", "w");
8417+
if (!f) exit(1);
8418+
fprintf(f, "%d\n", sizeof(uint64));
8419+
exit(0);
8420+
}
8421+
EOF
8422+
if { (eval echo configure:8423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8423+
then
8424+
ac_cv_sizeof_uint64=`cat conftestval`
8425+
else
8426+
echo "configure: failed program was:" >&5
8427+
cat conftest.$ac_ext >&5
8428+
rm -fr conftest*
8429+
ac_cv_sizeof_uint64=0
8430+
fi
8431+
rm -fr conftest*
8432+
fi
8433+
8434+
fi
8435+
echo "$ac_t""$ac_cv_sizeof_uint64" 1>&6
8436+
cat >> confdefs.h <<EOF
8437+
#define SIZEOF_UINT64 $ac_cv_sizeof_uint64
8438+
EOF
8439+
8440+
8441+
82828442
echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
8283-
echo "configure:8284: checking for POSIX signal interface" >&5
8443+
echo "configure:8444: checking for POSIX signal interface" >&5
82848444
if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
82858445
echo $ac_n "(cached) $ac_c" 1>&6
82868446
else
82878447
cat > conftest.$ac_ext <<EOF
8288-
#line 8289 "configure"
8448+
#line 8449 "configure"
82898449
#include "confdefs.h"
82908450
#include <signal.h>
82918451
@@ -8296,7 +8456,7 @@ act.sa_flags = SA_RESTART;
82968456
sigaction(0, &act, &oact);
82978457
; return 0; }
82988458
EOF
8299-
if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8459+
if { (eval echo configure:8460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83008460
rm -rf conftest*
83018461
pgac_cv_func_posix_signals=yes
83028462
else
@@ -8326,7 +8486,7 @@ do
83268486
# Extract the first word of "$ac_prog", so it can be a program name with args.
83278487
set dummy $ac_prog; ac_word=$2
83288488
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8329-
echo "configure:8330: checking for $ac_word" >&5
8489+
echo "configure:8490: checking for $ac_word" >&5
83308490
if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
83318491
echo $ac_n "(cached) $ac_c" 1>&6
83328492
else
@@ -8362,7 +8522,7 @@ test -n "$TCLSH" && break
83628522
done
83638523

83648524
echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8365-
echo "configure:8366: checking for tclConfig.sh" >&5
8525+
echo "configure:8526: checking for tclConfig.sh" >&5
83668526
# Let user override test
83678527
if test -z "$TCL_CONFIG_SH"; then
83688528
pgac_test_dirs="$with_tclconfig"
@@ -8395,7 +8555,7 @@ fi
83958555
# Check for Tk configuration script tkConfig.sh
83968556
if test "$with_tk" = yes; then
83978557
echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8398-
echo "configure:8399: checking for tkConfig.sh" >&5
8558+
echo "configure:8559: checking for tkConfig.sh" >&5
83998559
# Let user override test
84008560
if test -z "$TK_CONFIG_SH"; then
84018561
pgac_test_dirs="$with_tkconfig $with_tclconfig"
@@ -8434,7 +8594,7 @@ do
84348594
# Extract the first word of "$ac_prog", so it can be a program name with args.
84358595
set dummy $ac_prog; ac_word=$2
84368596
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8437-
echo "configure:8438: checking for $ac_word" >&5
8597+
echo "configure:8598: checking for $ac_word" >&5
84388598
if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
84398599
echo $ac_n "(cached) $ac_c" 1>&6
84408600
else
@@ -8470,7 +8630,7 @@ do
84708630
# Extract the first word of "$ac_prog", so it can be a program name with args.
84718631
set dummy $ac_prog; ac_word=$2
84728632
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8473-
echo "configure:8474: checking for $ac_word" >&5
8633+
echo "configure:8634: checking for $ac_word" >&5
84748634
if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
84758635
echo $ac_n "(cached) $ac_c" 1>&6
84768636
else
@@ -8501,7 +8661,7 @@ done
85018661

85028662

85038663
echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8504-
echo "configure:8505: checking for DocBook V3.1" >&5
8664+
echo "configure:8665: checking for DocBook V3.1" >&5
85058665
if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
85068666
echo $ac_n "(cached) $ac_c" 1>&6
85078667
else
@@ -8534,7 +8694,7 @@ have_docbook=$pgac_cv_check_docbook
85348694

85358695

85368696
echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8537-
echo "configure:8538: checking for DocBook stylesheets" >&5
8697+
echo "configure:8698: checking for DocBook stylesheets" >&5
85388698
if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
85398699
echo $ac_n "(cached) $ac_c" 1>&6
85408700
else
@@ -8573,7 +8733,7 @@ do
85738733
# Extract the first word of "$ac_prog", so it can be a program name with args.
85748734
set dummy $ac_prog; ac_word=$2
85758735
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8576-
echo "configure:8577: checking for $ac_word" >&5
8736+
echo "configure:8737: checking for $ac_word" >&5
85778737
if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
85788738
echo $ac_n "(cached) $ac_c" 1>&6
85798739
else

0 commit comments

Comments
 (0)