Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dbus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
240
Issues
240
List
Boards
Labels
Service Desk
Milestones
Merge Requests
28
Merge Requests
28
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dbus
dbus
Commits
fa381508
Commit
fa381508
authored
Oct 18, 2006
by
John Palmieri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.in: More fixups for cross compile (Patch from
Marco Pracucci <development at pracucci dot com>)
parent
89d97b47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
16 deletions
+36
-16
ChangeLog
ChangeLog
+5
-0
configure.in
configure.in
+31
-16
No files found.
ChangeLog
View file @
fa381508
2006
-
10
-
18
John
(
J5
)
Palmieri
<
johnp
@
redhat
.
com
>
*
configure
.
in
:
More
fixups
for
cross
compile
(
Patch
from
Marco
Pracucci
<
development
at
pracucci
dot
com
>)
2006
-
10
-
17
Havoc
Pennington
<
hp
@
redhat
.
com
>
*
tools
/
dbus
-
send
.
c
(
main
):
don
't close shared connection, fix
...
...
configure.in
View file @
fa381508
...
...
@@ -437,8 +437,14 @@ if test -n "$dbus_va_copy_func"; then
AC_DEFINE_UNQUOTED(DBUS_VA_COPY,$dbus_va_copy_func,[A 'va_copy' style function])
fi
AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
AC_TRY_RUN([#include <stdarg.h>
AC_LANG_PUSH(C)
AC_CACHE_CHECK([whether va_lists can be copied by value],
dbus_cv_va_val_copy,
[AC_RUN_IFELSE([AC_LANG_PROGRAM(
[[
#include <stdarg.h>
]],
[[
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
...
...
@@ -450,11 +456,13 @@ AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
int main() {
f (0, 42);
return 0;
}],
}
]])],
[dbus_cv_va_val_copy=yes],
[dbus_cv_va_val_copy=no],
[dbus_cv_va_val_copy=yes])
])
AC_LANG_POP(C)
if test "x$dbus_cv_va_val_copy" = "xno"; then
AC_DEFINE(DBUS_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
...
...
@@ -543,12 +551,15 @@ AC_CHECK_HEADERS(errno.h)
# assume getpwnam_r is the posix version
# it is up to the person cross compiling to change
# this behavior if desired
AC_LANG_PUSH(C)
AC_CACHE_CHECK([for posix getpwnam_r],
ac_cv_func_posix_getpwnam_r,
[AC_TRY_RUN([
[AC_RUN_IFELSE([AC_LANG_PROGRAM(
[[
#include <errno.h>
#include <pwd.h>
int main () {
]],
[[
char buffer[10000];
struct passwd pwd, *pwptr = &pwd;
int error;
...
...
@@ -557,10 +568,13 @@ int main () {
sizeof (buffer), &pwptr);
return (error < 0 && errno == ENOSYS)
|| error == ENOSYS;
}
],
]])
],
[ac_cv_func_posix_getpwnam_r=yes],
[ac_cv_func_posix_getpwnam_r=no],
[ac_cv_func_posix_getpwnam_r=yes])])
[ac_cv_func_posix_getpwnam_r=yes]
)])
AC_LANG_POP(C)
if test "$ac_cv_func_posix_getpwnam_r" = yes; then
AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
[Have POSIX function getpwnam_r])
...
...
@@ -648,9 +662,10 @@ AC_CHECK_FUNCS(getpeerucred getpeereid)
#### Abstract sockets
AC_MSG_CHECKING(abstract socket namespace)
AC_LANG_PUSH(C)
AC_RUN_IFELSE([AC_LANG_PROGRAM(
AC_CACHE_CHECK([abstract socket namespace],
ac_cv_have_abstract_sockets,
[AC_RUN_IFELSE([AC_LANG_PROGRAM(
[[
#include <sys/types.h>
#include <stdlib.h>
...
...
@@ -686,22 +701,22 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM(
else
exit (0);
]])],
[have_abstract_sockets=yes],
[have_abstract_sockets=no])
[ac_cv_have_abstract_sockets=yes],
[ac_cv_have_abstract_sockets=no]
)])
AC_LANG_POP(C)
AC_MSG_RESULT($have_abstract_sockets)
if test x$enable_abstract_sockets = xyes; then
if test x$have_abstract_sockets = xno; then
if test x$
ac_cv_
have_abstract_sockets = xno; then
AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
fi
fi
if test x$enable_abstract_sockets = xno; then
have_abstract_sockets=no;
ac_cv_
have_abstract_sockets=no;
fi
if test x$have_abstract_sockets = xyes ; then
if test x$
ac_cv_
have_abstract_sockets = xyes ; then
DBUS_PATH_OR_ABSTRACT=abstract
AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
else
...
...
@@ -1212,7 +1227,7 @@ echo "
Gettext libs (empty OK): ${INTLLIBS}
Using XML parser: ${with_xml}
Init scripts style: ${with_init_scripts}
Abstract socket names: ${have_abstract_sockets}
Abstract socket names: ${
ac_cv_
have_abstract_sockets}
System bus socket: ${DBUS_SYSTEM_SOCKET}
System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
System bus PID file: ${DBUS_SYSTEM_PID_FILE}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment