Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas However
OpenLDAP
Commits
2967e3c9
Commit
2967e3c9
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Relocate headers checks to above libraries such that their results can
be used during library and function checks.
parent
79e28bda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure
+1342
-1339
1342 additions, 1339 deletions
configure
configure.in
+83
-80
83 additions, 80 deletions
configure.in
include/portable.h.in
+9
-9
9 additions, 9 deletions
include/portable.h.in
with
1434 additions
and
1428 deletions
configure
+
1342
−
1339
View file @
2967e3c9
This diff is collapsed.
Click to expand it.
configure.in
+
83
−
80
View file @
2967e3c9
...
...
@@ -527,6 +527,64 @@ else
ol_with_tcl_module=static
fi
dnl ----------------------------------------------------------------
dnl Checks for header files.
OL_HEADER_STDC
if test $ol_cv_header_stdc != yes; then
AC_MSG_WARN([could not locate Standard C compliant headers])
fi
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
if test $am_cv_sys_posix_termios = yes ; then
AC_DEFINE(HAVE_POSIX_TERMIOS,1,
[define if you have POSIX termios])
fi
AC_CHECK_HEADERS( \
arpa/inet.h \
arpa/nameser.h \
assert.h \
crypt.h \
errno.h \
fcntl.h \
filio.h \
getopt.h \
grp.h \
libutil.h \
limits.h \
locale.h \
netinet/tcp.h \
malloc.h \
memory.h \
psap.h \
pwd.h \
resolv.h \
sgtty.h \
shadow.h \
stdarg.h \
stddef.h \
string.h \
strings.h \
sysexits.h \
sys/file.h \
sys/filio.h \
sys/errno.h \
sys/ioctl.h \
sys/param.h \
sys/resource.h \
sys/select.h \
sys/socket.h \
sys/syslog.h \
sys/time.h \
sys/types.h \
syslog.h \
termios.h \
unistd.h \
)
dnl ----------------------------------------------------------------
dnl Checks for libraries
...
...
@@ -548,6 +606,31 @@ dnl
AC_CHECK_LIB(gen, main)
])
AC_CHECK_FUNC(select, :, AC_MSG_ERROR([select() required.]))
dnl Select arg types
dnl (if this detection becomes permenent, it and the select() detection
dnl should be done before the yielding select test)
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_HEADERS( regex.h )
if test "$ac_cv_header_regex_h" != yes ; then
AC_MSG_ERROR([POSIX regex.h required.])
fi
AC_CHECK_FUNC(regfree, :, AC_MSG_ERROR([POSIX regex required.]))
OL_POSIX_REGEX
if test "$ol_cv_c_posix_regex" = no ; then
AC_MSG_ERROR([broken POSIX regex!])
fi
dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset)
# find res_search
if test $ol_enable_dns != no ; then
dnl Check for resolver routines
AC_CHECK_FUNC(res_search,:)
...
...
@@ -570,26 +653,6 @@ if test $ol_enable_dns != no ; then
fi
fi
dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset)
AC_CHECK_HEADERS( regex.h )
if test "$ac_cv_header_regex_h" != yes ; then
AC_MSG_ERROR([POSIX regex.h required.])
fi
AC_CHECK_FUNC(regfree, :, AC_MSG_ERROR([POSIX regex required.]))
OL_POSIX_REGEX
if test "$ol_cv_c_posix_regex" = no ; then
AC_MSG_ERROR([broken POSIX regex!])
fi
AC_CHECK_FUNC(select, :, AC_MSG_ERROR([select() required.]))
dnl Select arg types
dnl (if this detection becomes permenent, it and the select() detection
dnl should be done before the yielding select test)
AC_FUNC_SELECT_ARGTYPES
# ISODE tests
ol_link_isode=no
...
...
@@ -875,8 +938,6 @@ int main(argc, argv)
status = pthread_detach( t );
#endif
if( status ) return status;
return status;
}
],
...
...
@@ -1635,64 +1696,6 @@ if test $ol_enable_proctitle != no ; then
fi
fi
dnl ----------------------------------------------------------------
dnl Checks for header files.
OL_HEADER_STDC
if test $ol_cv_header_stdc != yes; then
AC_MSG_WARN([could not locate Standard C compliant headers])
fi
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
if test $am_cv_sys_posix_termios = yes ; then
AC_DEFINE(HAVE_POSIX_TERMIOS,1,
[define if you have POSIX termios])
fi
AC_CHECK_HEADERS( \
arpa/inet.h \
arpa/nameser.h \
assert.h \
crypt.h \
errno.h \
fcntl.h \
filio.h \
getopt.h \
grp.h \
libutil.h \
limits.h \
locale.h \
netinet/tcp.h \
malloc.h \
memory.h \
psap.h \
pwd.h \
resolv.h \
sgtty.h \
shadow.h \
stdarg.h \
stddef.h \
string.h \
strings.h \
sysexits.h \
sys/file.h \
sys/filio.h \
sys/errno.h \
sys/ioctl.h \
sys/param.h \
sys/resource.h \
sys/select.h \
sys/socket.h \
sys/syslog.h \
sys/time.h \
sys/types.h \
syslog.h \
termios.h \
unistd.h \
)
dnl ----------------------------------------------------------------
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_GETGROUPS dnl requires AC_TYPE_UID_T
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
9
−
9
View file @
2967e3c9
...
...
@@ -576,6 +576,15 @@
/* defined to be the EXE extension */
#undef EXEEXT
/* define if system uses EBCDIC instead of ASCII */
#undef HAVE_EBCDIC
/* Define if TIOCGWINSZ requires sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL
/* define if you have POSIX termios */
#undef HAVE_POSIX_TERMIOS
/* define if you have res_search() */
#undef HAVE_RES_SEARCH
...
...
@@ -699,15 +708,6 @@
/* define if setproctitle(3) is available */
#undef HAVE_SETPROCTITLE
/* define if system uses EBCDIC instead of ASCII */
#undef HAVE_EBCDIC
/* Define if TIOCGWINSZ requires sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL
/* define if you have POSIX termios */
#undef HAVE_POSIX_TERMIOS
/* Define if system has ptrdiff_t type */
#undef HAVE_PTRDIFF_T
...
...
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