pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-02-14
2001-02-14 14:56:56 by Mirar (Pontus Hagland) <pike@sort.mirar.org>
6844358b83882b36dc5fe74e26b938190bb0a55f (
59
lines) (+
58
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
more info on sizes and types in configure summary
Rev: src/configure.in:1.477
1:
-
AC_REVISION("$Id: configure.in,v 1.
476
2001/02/
13
15
:
51
:
00
mirar Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
477
2001/02/
14
14
:
56
:
56
mirar Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
5115:
PIKE_VERSION="$(sed -n -e 's/^.*PIKE_MAJOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h).$(sed -n -e 's/^.*PIKE_MINOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h).$(sed -n -e 's/^.*PIKE_BUILD_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h)" PIKE_VERSION_LONG="Pike v$(sed -n -e 's/^.*PIKE_MAJOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h).$(sed -n -e 's/^.*PIKE_MINOR_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h) release $(sed -n -e 's/^.*PIKE_BUILD_VERSION[[ \t]]*\([[^ \t]]*\)/\1/p' <$srcdir/version.h)"
+
+
cat >conftest.c <<EOF
+
#include "global.h"
+
--
+
FLOAT_TYPE
+
INT_TYPE
+
EOF
+
+
$CPP -I. -I$srcdir conftest.c -o conftest.cpp
+
sed <conftest.cpp >conftypes.txt '1,/^--$/d'
+
rm config.info 2>/dev/null echo "=========================================================" >>config.info
5135:
echo "ld............ $LD" >>config.info echo "pike.......... $PIKE" >>config.info echo "install....... $INSTALL" >>config.info
+
echo "shared object. .$SO"
+
echo "libs.......... $LIBS"
+
echo "optimize...... $OPTIMIZE"
echo >>config.info echo "features:" >>config.info echo "PAD_FEATURE([dynamic loading])$pike_cv_sys_dynamic_loading" >>config.info
-
+
AC_TRY_RUN([
+
#include "global.h"
+
#include "svalue.h"
+
+
int main()
+
{
+
FILE *fp,*out;
+
char float_type[80]="?";
+
char int_type[80]="?";
+
char *s;
+
struct svalue sval;
+
+
fp=fopen("conftypes.txt","r");
+
if (!fp) return 1;
+
out=fopen("config.info","a");
+
if (!out) return 1;
+
+
fgets(float_type,79,fp);
+
fgets(int_type,79,fp);
+
s=float_type; while (*s && *s!='\n' && *s!='\r') s++; *s=0;
+
s=int_type; while (*s && *s!='\n' && *s!='\r') s++; *s=0;
+
+
fprintf(out,"float type............%s (%d bytes)\n",
+
float_type,sizeof(FLOAT_TYPE));
+
fprintf(out,"int type..............%s (%d bytes)\n",
+
int_type,sizeof(INT_TYPE));
+
fprintf(out,"pointer size..........%d bytes\n",
+
sizeof(void*));
+
fprintf(out,"svalue size...........%d bytes (%d+%d+%d)\n",
+
sizeof(sval),
+
sizeof(sval.type),
+
sizeof(sval.subtype),
+
sizeof(sval.u));
+
+
fclose(out);
+
fclose(fp);
+
+
return 0;
+
}
+
],[],[],[])
+
rm conftypes.txt 2>/dev/null
+
ls -1 pike_*.feature 2>/dev/null | xargs cat | sort >>config.info ls -1 post_modules/*/pike_*.feature modules/*/pike_*.feature 2>/dev/null | xargs cat | sort >>config.info