280 |
def_locbfd="no" |
def_locbfd="no" |
281 |
def_pic="no"; |
def_pic="no"; |
282 |
def_static="no"; |
def_static="no"; |
|
def_static="debug"; |
|
283 |
case $use in |
case $use in |
284 |
*linux) |
*linux) |
285 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
292 |
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
# def_static -- Function descriptors are currently realized at runtime in a non-reproducible fashion |
293 |
# on these architectures -- CM |
# on these architectures -- CM |
294 |
ia64*) |
ia64*) |
295 |
def_dlopen="yes" ; def_statsysbfd="no" ; def_static="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
296 |
hppa*) |
hppa*) |
297 |
def_dlopen="yes" ; def_statsysbfd="no" ; def_pic="yes" ; def_debug="yes" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ; def_pic="yes" ; def_debug="yes" ;; |
298 |
esac;; |
esac;; |
375 |
|
|
376 |
TLIBS="" |
TLIBS="" |
377 |
if test "$enable_static" = "yes" ; then |
if test "$enable_static" = "yes" ; then |
378 |
TLIBS="-static $TLIBS"; |
TLIBS="-static -Wl,-zmuldefs $TLIBS"; |
379 |
|
AC_DEFINE(STATIC_LINKING) |
380 |
fi |
fi |
381 |
|
|
382 |
## finally warn if we did not find a recognized machine.s |
## finally warn if we did not find a recognized machine.s |
1248 |
if test "$use" = "mingw" ; then |
if test "$use" = "mingw" ; then |
1249 |
heap_ceiling=2000000000 |
heap_ceiling=2000000000 |
1250 |
else |
else |
1251 |
|
if test "$enable_static" = "yes" ; then |
1252 |
|
heap_ceiling=0x0 |
1253 |
|
else |
1254 |
echo "int main() {return 0;}" >foo.c |
echo "int main() {return 0;}" >foo.c |
1255 |
$CC foo.c -o foo |
$CC foo.c -o foo |
1256 |
heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'` |
heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'` |
1263 |
fprintf(fp,"0x%lx",h); |
fprintf(fp,"0x%lx",h); |
1264 |
return 0;}],heap_ceiling=`cat conftest1`,echo failed;exit 1,echo failed;exit 1) |
return 0;}],heap_ceiling=`cat conftest1`,echo failed;exit 1,echo failed;exit 1) |
1265 |
fi |
fi |
1266 |
|
fi |
1267 |
AC_MSG_RESULT($heap_ceiling) |
AC_MSG_RESULT($heap_ceiling) |
1268 |
AC_DEFINE_UNQUOTED(SHARED_LIB_HEAP_CEILING,$heap_ceiling) |
AC_DEFINE_UNQUOTED(SHARED_LIB_HEAP_CEILING,$heap_ceiling) |
1269 |
|
|