Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
c97cd85a
Commit
c97cd85a
authored
19 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Added detection of compiler default ABI.
Rev: src/configure.in:1.908
parent
029b4528
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/configure.in
+53
-4
53 additions, 4 deletions
src/configure.in
with
53 additions
and
4 deletions
src/configure.in
+
53
−
4
View file @
c97cd85a
AC_REVISION("$Id: configure.in,v 1.90
7
2005/0
6/23
1
8
:2
1:21
grubba Exp $")
AC_REVISION("$Id: configure.in,v 1.90
8
2005/0
7/08
1
2
:2
2:15
grubba Exp $")
AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h)
...
...
@@ -414,6 +414,37 @@ define([DO_IF_OS],
AC_ARG_WITH(abi, MY_DESCR([--with-abi=32/64],
[specify ABI to use in case there are multiple]))
AC_MSG_CHECKING([default compiler ABI])
AC_CACHE_VAL(pike_cv_default_compiler_abi, [
cat >"conftest.$ac_ext" <<\EOF
int main(int argc, char **argv)
{
return 0;
}
EOF
pike_cv_default_compiler_abi="unknown"
if (eval $ac_compile) 2>&5; then
filetype=`file "conftest.$ac_cv_objext" 2>/dev/null | sed -e 's/.*://'`
case "$filetype" in
*64-bit*)
pike_cv_default_compiler_abi=64
;;
*32-bit*)
pike_cv_default_compiler_abi=32
;;
*64*)
pike_cv_default_compiler_abi=64
;;
*32*)
pike_cv_default_compiler_abi=32
;;
esac
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
])
AC_MSG_RESULT($pike_cv_default_compiler_abi)
AC_MSG_CHECKING([which ABI to use])
case "x$with_abi" in
*32)
...
...
@@ -468,6 +499,15 @@ if test "x$with_abi" = "x64"; then
AC_SYS_COMPILER_FLAG(-xarch=generic32, xarch_generic32, CC)
if test "$pike_cv_option_q32:$pike_cv_option_m32:$pike_cv_option_xtarget_generic32:$pike_cv_option_xarch_generic32" = "no:no:no:no"; then
PIKE_MSG_WARN([Found no option to force 64 bit ABI.])
if test "x$pike_cv_default_compiler_abi" = "xunknown"; then :; else
if test "x$pike_cv_default_compiler_abi" = "x$with_abi"; then
:
else
PIKE_MSG_WARN([Using compiler default ABI: $pike_cv_default_compiler_abi])
with_abi="$pike_cv_default_compiler_abi"
fi
fi
else
PIKE_MSG_WARN([$CC does not support 64 bit ABI.])
with_abi=32
...
...
@@ -488,6 +528,15 @@ else
AC_SYS_COMPILER_FLAG(-xarch=generic64, arch_generic64, CC)
if test "$pike_cv_option_q64:$pike_cv_option_m64:$pike_cv_option_xtarget_generic64:$pike_cv_option_xarch_generic64" = "no:no:no:no"; then
PIKE_MSG_WARN([Found no option to force 32 bit ABI.])
if test "x$pike_cv_default_compiler_abi" = "xunknown"; then :; else
if test "x$pike_cv_default_compiler_abi" = "x$with_abi"; then
:
else
PIKE_MSG_WARN([Using compiler default ABI: $pike_cv_default_compiler_abi])
with_abi="$pike_cv_default_compiler_abi"
fi
fi
else
PIKE_MSG_WARN([$CC does not support 32 bit ABI.])
with_abi=64
...
...
@@ -2389,7 +2438,7 @@ if test "x$PIKE_PATH_TRANSLATE" = "x"; then
# MinGW system.
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.90
7
2005/0
6/23
1
8
:2
1:21
grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.90
8
2005/0
7/08
1
2
:2
2:15
grubba Exp $.
# MinGW-version. Do NOT edit.
posix_name="`cat`"
posix_prefix="/"
...
...
@@ -2427,7 +2476,7 @@ EOF
# Native POSIX system.
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.90
7
2005/0
6/23
1
8
:2
1:21
grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.90
8
2005/0
7/08
1
2
:2
2:15
grubba Exp $.
# POSIX-version. Do NOT edit.
cat
EOF
...
...
@@ -2436,7 +2485,7 @@ else
# rntcl-style
cat <<\EOF
#!/bin/sh
# Automatically generated by $Id: configure.in,v 1.90
7
2005/0
6/23
1
8
:2
1:21
grubba Exp $.
# Automatically generated by $Id: configure.in,v 1.90
8
2005/0
7/08
1
2
:2
2:15
grubba Exp $.
# RNTCL-version. Do NOT edit.
sed -e "$PIKE_PATH_TRANSLATE"
EOF
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment