Skip to content

Commit eee1ad8

Browse files
committed
1. Force libuuid usage for IBM i (os400). uuid functions from libc do not work on this platform (IBM/ibmi-oss-issues#82)
2. Added additional compilation parameters for building on IBM i
1 parent 5a6d517 commit eee1ad8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

build/apr_hints.m4

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,19 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
427427
AC_DEFINE(HAVE_ZOS_PTHREADS, 1, [Define for z/OS pthread API nuances])
428428
APR_ADDTO(CPPFLAGS, [-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1])
429429
;;
430-
*-ibm-as400)
430+
*-ibm-as400 | *-ibm-os400)
431431
APR_SETIFNULL(apr_lock_method, [USE_SYSVSEM_SERIALIZE])
432432
APR_SETIFNULL(apr_process_lock_is_global, [yes])
433433
APR_SETIFNULL(apr_gethostbyname_is_thread_safe, [yes])
434434
APR_SETIFNULL(apr_gethostbyaddr_is_thread_safe, [yes])
435435
APR_SETIFNULL(apr_getservbyname_is_thread_safe, [yes])
436+
APR_SETIFNULL(ac_cv_func_uuid_create, [no])
437+
APR_SETIFNULL(ac_cv_func_uuid_generate, [yes])
438+
APR_SETIFNULL(ac_cv_search_uuid_create, [no])
439+
APR_SETIFNULL(ac_cv_search_uuid_generate, [yes])
440+
APR_ADDTO(CFLAGS, [-D_THREAD_SAFE -D_LINUX_SOURCE_COMPAT -pthread])
441+
APR_SETVAR(SHELL, [/qopensys/bin/sh])
442+
APR_SETVAR(CONFIG_SHELL, [/qopensys/bin/sh])
436443
;;
437444
*mingw*)
438445
APR_ADDTO(INTERNAL_CPPFLAGS, -DBINPATH=$apr_builddir/test/.libs)

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ case $host in
14761476
USE_SHMEM_SHMGET)
14771477
fi
14781478
;;
1479-
*aix* )
1479+
*aix* | *os400 )
14801480
# AIX cannot lseek() shared memory, and we always truncate/lseek together
14811481
APR_DECISION_OVERRIDE(USE_SHMEM_SHMGET)
14821482
;;

0 commit comments

Comments
 (0)