pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2006-01-09
2006-01-09 19:21:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>
1d9406ab88f9dbf23d004123e04d7d967ad1c078 (
169
lines) (+
12
/-
157
)
[
Show
|
Annotate
]
Branch:
7.9
Now uses PIKE_CHECK_ABI_LIB_DIR.
Rev: src/configure.in:1.936
1:
-
AC_REVISION("$Id: configure.in,v 1.
935
2006/01/
06
08
:
29
:
34
peter
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
936
2006/01/
09
19
:
21
:
55
grubba
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
2166:
# MinGW system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
935
2006/01/
06
08
:
29
:
34
peter
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
936
2006/01/
09
19
:
21
:
55
grubba
Exp $.
# MinGW-version. Do NOT edit. posix_name="`cat`" posix_prefix="/"
2204:
# Native POSIX system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
935
2006/01/
06
08
:
29
:
34
peter
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
936
2006/01/
09
19
:
21
:
55
grubba
Exp $.
# POSIX-version. Do NOT edit. cat EOF
2213:
# rntcl-style cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
935
2006/01/
06
08
:
29
:
34
peter
Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
936
2006/01/
09
19
:
21
:
55
grubba
Exp $.
# RNTCL-version. Do NOT edit. sed -e "$PIKE_PATH_TRANSLATE" EOF
2245:
ac_c_preproc_warn_flag="$OLD_ac_c_preproc_warn_flag" ])
-
real
_
dirs='/ /usr'
-
real
_
libs='/lib /usr/lib'
-
real
_
incs='/include /usr/include'
+
PIKE
_
INIT
_
REAL
_
DIRS
if test "x$with_lib_path" = "x"; then :; else for dd in `echo $with_lib_path | sed -e 's/:/ /g'`; do
2255:
if test "$dd" = "/usr/lib"; then continue; fi for suff in $pike_cv_abi_suffixes; do d="$dd$suff"
-
AC
_
MSG
_
CHECKING($d)
-
if test -d "$d/." ; then
-
real
_
dir=`cd "$d/." && /bin/pwd 2>/dev/null`
-
if test "x$real
_
dir" = "x"; then :; else
-
case " $real_libs " in
-
*\ $real_dir\ *)
-
AC_MSG_RESULT
(
already checked)
-
continue
-
;;
-
esac
-
real_libs="$real_libs $real_dir"
-
-
fi
-
-
if echo " $pike_cv_32bit_libs " | grep " $real_dir " >/dev/null; then
-
abi_32=yes
-
else
-
abi_32=no
-
fi
-
if echo " $pike_cv_64bit_libs " | grep " $real_dir " >/dev/null; then
-
abi_64=yes
-
else
-
abi_64=no
-
fi
-
bad_abi=""
-
for f in "
$d
"/* no; do
-
if test -f "$f"; then
-
filetype=`file "$f" 2>/dev/null | sed -e 's/.*://'`
-
if echo "$filetype" | grep "$with_abi-bit" >/dev/null; then
-
bad_abi=""
-
break;
-
elif echo "$filetype" | grep "32-bit" >/dev/null; then
-
bad_abi=32;
-
elif echo "$filetype" | grep "64-bit" >/dev/null; then
-
bad_abi=64;
-
fi
-
fi
+
PIKE
_
CHECK
_
ABI
_
LIB
_
DIR
(
$d
)
done
-
if test "x$bad_abi" = "x"; then :; else
-
AC_MSG_RESULT([no, contains only $bad_abi-bit ABI files])
-
pike_cv_bad_abi_libs="$pike_cv_bad_abi_libs $real_dir"
-
continue;
-
fi
-
case " $LDFLAGS " in
-
*\ -L$d\ -R$d\ * | *\ -R$d\ -L$d\ *)
-
AC_MSG_RESULT(already added)
-
libs_found="yes"
-
;;
-
*)
-
OLD_LDFLAGS="${LDFLAGS}"
-
LDFLAGS="${LDFLAGS} -R$d -L$d -lm"
-
AC_TRY_RUN([
-
#include <stdio.h>
-
#include <math.h>
-
int main(int argc, char **argv)
-
{
-
double (*foo)(double) = ceil;
-
exit(0);
-
}
-
],[ LDFLAGS="$OLD_LDFLAGS -R$d -L$d"
-
AC_MSG_RESULT(yes)
-
libs_found="yes"
-
],[ LDFLAGS="$OLD_LDFLAGS"
-
AC_MSG_RESULT(no)
-
],[AC_TRY_LINK([
-
#include <stdio.h>
-
#include <math.h>
-
],[
-
double (*foo)(double) = ceil;
-
exit(0);
-
],[ LDFLAGS="$OLD_LDFLAGS -R$d -L$d"
-
AC_MSG_RESULT(probably)
-
libs_found="yes"
-
],[ LDFLAGS="$OLD_LDFLAGS"
-
AC_MSG_RESULT(no)
-
])])
-
;;
-
esac
-
else
-
AC_MSG_RESULT(no)
-
fi
+
done
-
done
+
fi if test "x$with_include_path" = "x"; then :; else
2418:
for suff in "$with_abi" "/$with_abi" $extra_abi_dirs ""; do d="$dd/lib$suff" AC_MSG_CHECKING($d)
-
if test -d "$d/." ; then
-
real
_
dir=`cd "$d/." && /bin/pwd 2>/dev/null`
-
if test "x$real
_
dir" = "x"; then :; else
-
case " $real
_
libs " in
-
*\ $real
_
dir\ *)
-
AC_MSG_RESULT
(
already
checked)
-
continue
-
;;
-
esac
-
real_
libs
="$real
_
libs $real_dir"
-
fi
-
bad_abi
=""
-
for f in "$d"/* no; do
-
if test -f "$f"; then
-
filetype=`file "$f" 2>/dev/null | sed -e 's/.*://'`
-
if echo "$filetype" | grep "$with_abi-bit" >/dev/null; then
-
bad_abi=""
-
break;
-
elif echo "$filetype" | grep "32-bit" >/dev/null; then
-
bad_abi=32;
-
elif echo "$filetype" | grep "64-bit" >/dev/null; then
-
bad_abi=64;
-
fi
-
fi
-
done
-
if test "x$bad_abi" = "x"; then :; else
-
AC_MSG_RESULT([no
,
contains only $bad_abi-bit ABI files])
+
PIKE
_
CHECK
_
ABI
_
LIB
_
DIR
(
$d,
[
libs_
found
="
yes
"
],
[
if test "x$libs_found" = "x"; then libs_found="no" fi continue;
-
fi
-
case " $LDFLAGS " in
-
*\ -L$d\ -R$d\ * | *\ -R$d\ -L$d\ *)
-
AC_MSG_RESULT(already added)
-
libs_found="yes"
-
;;
-
*)
-
OLD_LDFLAGS="${LDFLAGS}"
-
LDFLAGS="${LDFLAGS} -R$d -L$d -lm"
-
AC_TRY_RUN([
-
#include <stdio.h>
-
#include <math.h>
-
int main(int argc, char **argv)
-
{
-
double (*foo)(double) = ceil;
-
exit(0);
-
}
-
],
[
LDFLAGS="$OLD_LDFLAGS -R$d -L$d"
-
AC_MSG_RESULT(yes)
-
libs_found="yes"
-
],
[
LDFLAGS="$OLD_LDFLAGS"
-
AC_MSG_RESULT(no)
-
],[AC_TRY_LINK([
-
#include <stdio.h>
-
#include <math.h>
-
],[
-
double (*foo)(double) = ceil;
-
exit(0);
-
],[ LDFLAGS="$OLD_LDFLAGS -R$d -L$d"
-
AC_MSG_RESULT(probably)
-
libs_found="yes"
-
]
,[ LDFLAGS="$OLD_LDFLAGS"
-
AC_MSG_RESULT(no
)
-
])])
-
;;
-
esac
-
else
-
AC_MSG_RESULT(no)
-
fi
+
], [libs_found="yes"])
done fi AC_MSG_CHECKING($dd/bin)