-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
471 lines (453 loc) · 18.3 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
dnl# -*- Autoconf -*-
dnl# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])dnl
AC_INIT([libUnixToOSX],[0.0.1],[/dev/null])dnl
AC_CONFIG_SRCDIR([alloc.h])dnl
AC_CONFIG_HEADERS([config.h])dnl
AC_CONFIG_AUX_DIR([build-aux])dnl
AC_CONFIG_MACRO_DIR([m4])dnl
AC_CONFIG_LIBOBJ_DIR([.])dnl
AC_SUBST([top_srcdir])dnl
dnl# force some aux files to be present:
AC_REQUIRE_AUX_FILE([mkinstalldirs])dnl
AC_REQUIRE_AUX_FILE([config.libpath])dnl
AC_REQUIRE_AUX_FILE([git-version-gen])dnl
AC_REQUIRE_AUX_FILE([gitlog-to-changelog])dnl
AC_REQUIRE_AUX_FILE([install-reloc])dnl
AC_REQUIRE_AUX_FILE([reloc-ldflags])dnl
AC_REQUIRE_AUX_FILE([depcomp])dnl
# Check system characteristics.
AC_MSG_CHECKING([the characteristics of your system])
AC_MSG_RESULT([... .. . ])
AC_CANONICAL_TARGET
gl_SYSTEM_SPECIFIC_MACROS
AN_OSX_WARNINGS_DUMMY_MACRO
AC_CHECK_FILE([/etc/fstab])dnl
building_on_mac=""
AS_CASE([${build}],
[*apple-darwin*],[building_on_mac="yes"],
[*],[building_on_mac="no"])dnl
AM_CONDITIONAL([BUILDING_ON_MAC],[test "x${building_on_mac}" = "xyes"])dnl
# automake:
AC_MSG_CHECKING([for some automake things...])
AC_MSG_RESULT([... .. . ])
dnl#TODO: eventually switch to gnits strictness:
AM_INIT_AUTOMAKE([1.6 foreign no-dependencies subdir-objects])dnl
AM_MAINTAINER_MODE
AM_PROG_AR
if test "x${AR}" = "x"; then
test -z "${AR}" || unset AR
AC_CHECK_TOOLS([AR],[ar gar])dnl
## might want to switch around these checks...
if test "x${ac_cv_prog_AR}" = "x"; then
test -z "${ac_cv_prog_AR}" || unset ac_cv_prog_AR
m4_ifdef([AC_PROG_AR],[
AC_PROG_AR
],[
test -x "`which ar`" && echo "first usable ar in path is `which ar`"
])
fi
else
test -n "${AR}" && export AR
fi
gl_COMMON_SEMI_UMBRELLA
gl_CONFIGMAKE_PREP
gl_RELOCATABILITY_UMBRELLA
AH_TOP([
#ifndef __CONFIG_H__
#define __CONFIG_H__ 1
])dnl
AH_BOTTOM([
#endif /* !__CONFIG_H__ */
/* EOF */
])dnl
# libtool
AC_MSG_CHECKING([for some libtool things...])
AC_MSG_RESULT([... .. . ])
LT_REQUIRE_PREREQS
LT_INIT([dlopen])dnl
LT_LANG([C])dnl
LT_PREREQ([2.4.2])dnl
# Checks for programs.
AC_MSG_CHECKING([for some programs...])
AC_MSG_RESULT([... .. . ])
AC_REQUIRE_COMPILER
AC_FILESYSTEM_OPERATION_PROGS
unset ac_cv_prog_ac_ct_RANLIB
AC_REQUIRE_RANLIB_ONCE
AC_TEXT_FILTER_PROGS
AC_REQUIRE_LINKER
AC_PROG_KERNEL_TOOLS
AC_REQUIRE_LINT
# Compiler warnings:
AC_MSG_CHECKING([which compiler warnings are supported...])
AC_MSG_RESULT([... .. . ])
gl_UNKNOWN_WARNINGS_ARE_ERRORS
dnl#TODO: add a configure flag to enable the warnings conditionally:
gl_MANYWARN_ALL_GCC([warnings_to_check])
warnings_to_skip=""
warnings_to_skip="${warnings_to_skip} -W" # redundant with -Wextra
warnings_to_skip="${warnings_to_skip} -Wabi" # need numerical arg w/new GCC
warnings_to_skip="${warnings_to_skip} -Wsystem-headers" # unfixable
warnings_to_skip="${warnings_to_skip} -Wvla" # warnings in gettext.h
warnings_to_skip="${warnings_to_skip} -Wsuggest-attribute=const" # ???
warnings_to_skip="${warnings_to_skip} -Wsuggest-attribute=format" # ???
warnings_to_skip="${warnings_to_skip} -Wsuggest-attribute=noreturn" # ???
warnings_to_skip="${warnings_to_skip} -Wsuggest-attribute=pure" # ???
warnings_to_skip="${warnings_to_skip} -Wmissing-format-attribute" # ???
warnings_to_skip="${warnings_to_skip} -Wtraditional" # not for new code
warnings_to_skip="${warnings_to_skip} -Wcast-qual" # I use casts a lot
warnings_to_skip="${warnings_to_skip} -Wcast-align" # likewise
warnings_to_skip="${warnings_to_skip} -Wredundant-decls" # redundancy=good
warnings_to_skip="${warnings_to_skip} -Wpedantic" # too many for now
if test "x${GCC}" = "xyes"; then
warnings_to_skip="${warnings_to_skip} -Wpadded" # no idea how to fix w/gcc
fi
warnings_to_skip="${warnings_to_skip} -Wcomments" # redundant w/-Wcomment
warnings_to_skip="${warnings_to_skip} -Wmudflap" # no longer supported
warnings_to_skip="${warnings_to_skip} -Wconditionally-supported" # C++ only
warnings_to_skip="${warnings_to_skip} -Wdelete-incomplete" # C++ only
warnings_to_skip="${warnings_to_skip} -Wnarrowing" # C++ only
warnings_to_skip="${warnings_to_skip} -Wshadow-ivar" # ObjC/ObjC++ only
warnings_to_skip="${warnings_to_skip} -Wimplicit" # default lately anyways
warnings_to_skip="${warnings_to_skip} -Wimplicit-function-declaration" # ""
warnings_to_skip="${warnings_to_skip} -Wformat=2" # we specify all subflags
if test -z "`ls | grep pch`"; then
warnings_to_skip="${warnings_to_skip} -Winvalid-pch"
fi
case ${host_cpu} in
aarch64 | powerpc64 | x86_64)
warnings_to_skip="${warnings_to_skip} -Wlong-long" # "long long"=64bit
warnings_to_skip="${warnings_to_skip} -Wdouble-promotion" # only for 32
;;
esac
# skip when optimization has not been explicitly requested:
if test x${CFLAGS+set} = xset; then
case "${CFLAGS}" in
*"-O0"* )
warnings_to_skip="${warnings_to_skip} -Wunsafe-loop-optimizations"
warnings_to_skip="${warnings_to_skip} -Waggressive-loop-optimizations"
warnings_to_skip="${warnings_to_skip} -Wdisabled-optimization"
warnings_to_skip="${warnings_to_skip} -Wvector-operation-performance"
warnings_to_skip="${warnings_to_skip} -Winline"
;;
*"-O"* )
if test -r careadlinkat.c; then
warnings_to_skip="${warnings_to_skip} -Wreturn-local-addr"
fi
;;
esac
case "${CFLAGS}" in
*"-p"*|*"profile"*|*"coverage"*)
;;
*)
warnings_to_skip="${warnings_to_skip} -Wcoverage-mismatch"
;;
esac
case "${CFLAGS}" in
*"-fstack-protector"*)
;;
*)
warnings_to_skip="${warnings_to_skip} -Wstack-protector"
;;
esac
else
warnings_to_skip="${warnings_to_skip} -Wunsafe-loop-optimizations"
warnings_to_skip="${warnings_to_skip} -Waggressive-loop-optimizations"
warnings_to_skip="${warnings_to_skip} -Wdisabled-optimization"
warnings_to_skip="${warnings_to_skip} -Wvector-operation-performance"
warnings_to_skip="${warnings_to_skip} -Winline"
warnings_to_skip="${warnings_to_skip} -Wcoverage-mismatch"
warnings_to_skip="${warnings_to_skip} -Wstack-protector"
if test -r careadlinkat.c; then
warnings_to_skip="${warnings_to_skip} -Wreturn-local-addr"
fi
fi
gl_MANYWARN_COMPLEMENT([actual_warnings_to_check],
[${warnings_to_check}],
[${warnings_to_skip}])dnl
## loop through all of them:
for fsf_gcc_warnflag in ${actual_warnings_to_check}; do
gl_WARN_ADD([${fsf_gcc_warnflag}])
done
case ${host_vendor} in
apple)
# manywarnings.m4 is missing these Apple-gcc-specific flags:
for apple_gcc_warnflag in \
-Wmost \
-Wfour-char-constants \
-Wnewline-eof \
-Wshorten-64-to-32 \
-Wextra-tokens \
-Waltivec-long-deprecated \
-Wnonportable-cfstrings \
\
; do
dnl# (was actually just a typo)
gl_WARN_ADD([${apple_gcc_warnflag}])
done
;;
esac
dnl# These next ones are linker warnings, which we do need to keep
dnl# conditionalized on the vendor, because preprocessor macro
dnl# declarations tell us nothing about what the linker accepts.
dnl# Before we can check them, though, we need to make sure that this
dnl# variable is defined first, to prevent aclocal/autoconf/autom4te/gm4
dnl# from choking on the comma when it is used in arguments to the macro
dnl# that we use:
if test "x${acl_cv_wl}" = "x"; then
test -z "${acl_cv_wl}" && export acl_cv_wl='-Wl,'
fi
AC_SUBST([acl_cv_wl])
WARN_LDFLAGS=""
dnl# ok, now that set of vendor cases I was mentioning:
case ${host_vendor} in
apple*)
dnl#FIXME: make sure these flags are actually used properly
dnl# everywhere:
test -n "${LD_WARN_FILE}"
gl_WARN_ADD([${acl_cv_wl}-warn_compact_unwind],[WARN_LDFLAGS])
gl_WARN_ADD([${acl_cv_wl}-warn_weak_exports],[WARN_LDFLAGS])
gl_WARN_ADD([${acl_cv_wl}-warn_stabs],[WARN_LDFLAGS])
gl_WARN_ADD([${acl_cv_wl}-warn_commons],[WARN_LDFLAGS])
test -n "${LD_WARN_COMMONS}"
;;
esac
AC_SUBST([WARN_LDFLAGS])dnl
# Checks for libraries.
AC_MSG_CHECKING([for some libraries...])
AC_MSG_RESULT([... .. . ])
LT_LIB_M
gl_PTY_LIB
AC_LIB_CRYPT
# FIXME: these may require some additional flags:
AC_SEARCH_LIBS([CFLocaleCopyCurrent],
[c System CoreFoundation CFLite OpenCFLite opencflite-code])
if test "x${ac_cv_search_CFLocaleCopyCurrent}y" != "xnoy"; then
AC_DEFINE([CFLOCALECOPYCURRENT_OK_TO_LINK],[1],
[Define to 1 if we are ok to link with a library for CFLocaleCopyCurrent])
fi
AC_SEARCH_LIBS([CFPreferencesCopyAppValue],
[c System CoreFoundation CFLite OpenCFLite opencflite-code])
if test "x${ac_cv_search_CFPreferencesCopyAppValue}y" != "xnoy"; then
AC_DEFINE([CFPREFERENCESCOPYAPPVALUE_OK_TO_LINK],[1],
[Define to 1 if we are ok to link w/a library for CFPreferencesCopyAppValue])
fi
AC_SEARCH_LIBS([__fpending],[c System magic pub gnu iberty fpending])
AC_SEARCH_LIBS([chdir_long],[c System magic pub gnu iberty chdir])
AC_SEARCH_LIBS([dupfd],[c System magic pub gnu iberty dup dupfd])
AC_SEARCH_LIBS([fd_safer_flag],[c System magic pub gnu iberty fd])dnl
# Threading.
AC_MSG_CHECKING([for threading library characteristics...])
AC_MSG_RESULT([... .. . ])
gl_THREAD_UMBRELLA
# Checks for header files.
AC_MSG_CHECKING([for headers for which predefined checks exist...])
AC_MSG_RESULT([... .. . ])
AC_HEADER_UMBRELLA
gl_HEADER_UMBRELLA
AC_MSG_CHECKING([for miscellaneous other headers...])
AC_MSG_RESULT([... .. . ])
AC_CHECK_HEADERS_IF_NOT_CACHED([bp-sym.h errno.h fcntl.h features.h \
getopt.h inttypes.h langinfo.h mach-o/dyld.h \
math.h poll.h search.h stdio.h stdio_ext.h \
sys/fs_types.h sys/ioctl.h sys/param.h \
sys/socket.h sys/statvfs.h sys/time.h \
sys/vfs.h termios.h unistd.h xlocale.h \
wchar.h])dnl
## now regular header checks:
AC_CHECK_HEADERS([_types/_nl_item.h \
OS.h alloc.h assert.h bits/libc-lock.h cdefs.h \
float.h fshelp.h fstab.h \
fts.h ftw.h gnu-versions.h iconv.h io.h iostream.h \
lcrypt.h libcharset.h libintl.h libio/iolibio.h \
libio/libioP.h libkern/OSByteOrder.h limits.h locale.h \
mach/mach.h machine/endian.h malloc.h malloc/malloc.h \
memcopy.h memrchr.h mm.h mntent.h mnttab.h module.h \
netdb.h nl_types.h os2.h process.h ptms.h publib.h \
publib/strutil.h shlib-compat.h stdarg.h stddef.h \
stream.h stropts.h strutil.h swapctl.h swap.h \
sys/_types/_ct_rune_t.h sys/_types/_mbstate_t.h \
sys/_types/_null.h sys/_types/_rune_t.h \
sys/_types/_size_t.h sys/_types/_time_t.h \
sys/_types/_wchar_t.h sys/cdefs.h sys/event.h \
sys/fcntl.h sys/fstyp.h sys/ipc.h sys/mntent.h \
sys/mnttab.h sys/mount.h sys/shm.h sys/statfs.h \
termio.h time.h utmp.h utmpx.h values.h \
wctype.h winbase.h windows.h])dnl
## CoreFoundation headers:
AC_CHECK_HEADERS([CoreFoundation/CFString.h CoreFoundation/CFLocale.h \
CoreFoundation/CFPreferences.h \
CoreFoundation/CoreFoundation.h])
dnl# keep autoscan happy:
if test "x" = "Y0"; then
test -x "`which autoscan`" || echo "no autoscan!" >&2
AC_CHECK_HEADERS([bp-sym.h fcntl.h inttypes.h langinfo.h stdio_ext.h \
sys/ioctl.h sys/param.h sys/socket.h sys/statvfs.h \
sys/time.h sys/vfs.h unistd.h wchar.h])dnl
## should never actually get here though...
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_MSG_CHECKING([into the characteristics of your C compiler...])
AC_MSG_RESULT([... .. . ])
AC_C_CHARACTERISTICS_UMBRELLA
gl_C_MISC
AC_MSG_CHECKING([for some declarations...])
AC_MSG_RESULT([... .. . ])
dnl# might have to get rid of the "_ONCE"s if they jump elsewehere...
AC_CHECK_DECLS_ONCE([__fpending])dnl
AC_CHECK_DECLS_ONCE([cuserid])dnl
AC_CHECK_DECLS_ONCE([exit_failure])dnl
AC_CHECK_DECLS_ONCE([memrchr],[],[],
[#include <string.h>])dnl
AC_CHECK_DECLS_ONCE([program_invocation_name],[],[],
[#include <errno.h>])dnl
AC_CHECK_DECLS_ONCE([program_invocation_short_name],[],[],
[#include <errno.h>])dnl
AC_CHECK_DECLS_ONCE([kCFStringEncodingASCII])dnl
AC_CHECK_DECLS_ONCE([kCFPreferencesCurrentApplication])dnl
AC_CHECK_DECLS_ONCE([_STAT_VER])dnl
AC_MSG_CHECKING([for some types...])
AC_MSG_RESULT([... .. . ])
AC_CHECK_SIZEOF([char])dnl
AC_CHECK_ALIGNOF([char])dnl
AC_CHECK_SIZEOF([short])dnl
AC_CHECK_ALIGNOF([short])dnl
AC_CHECK_SIZEOF([int])dnl
AC_CHECK_ALIGNOF([int])dnl
AC_CHECK_SIZEOF([long])dnl
AC_CHECK_ALIGNOF([long])dnl
AC_CHECK_TYPES([ptrdiff_t])dnl
AC_TYPES_UMBRELLA
dnl#TODO: check to see if we need CoreFoundation for these next 3:
AC_CHECK_TYPES([CFLocaleRef])dnl
AC_CHECK_TYPES([CFStringRef])dnl
AC_CHECK_TYPES([CFTypeRef])dnl
AC_CHECK_TYPES([__darwin_mbstate_t])dnl
dnl#TODO: check where this comes from:
AC_CHECK_TYPES([locale_t])dnl
AC_CHECK_TYPES([dev_t])dnl
AC_CHECK_TYPES([ino_t])dnl
AC_CHECK_TYPES([key_t])dnl
AC_CHECK_TYPES([nfds_t])dnl
AC_CHECK_TYPES([nl_catd])dnl
AC_CHECK_TYPES([nl_item])dnl
## TODO: macro-ize:
if test "x${ac_cv_type_nlink_t}" = "x"; then
test -z "${ac_cv_type_nlink_t}"
AC_CHECK_TYPES([nlink_t])dnl
## ok
fi
if test "x${ac_cv_type_off_t}" = "xyes"; then
AC_CHECK_SIZEOF([off_t])dnl
AC_CHECK_ALIGNOF([off_t])dnl
## might be bigger than expected...
fi
AC_CHECK_TYPES([off64_t],[
AC_CHECK_SIZEOF([off64_t])dnl
AC_CHECK_ALIGNOF([off64_t])dnl
],[
if test "x${ac_cv_type_off64_t}" != "x"; then
test -n "${ac_cv_type_off64_t}" && unset ac_cv_type_off64_t
fi
if test "x${ac_cv_type_off_t}" = "xyes"; then
_AC_CHECK_TYPE_OLD([off64_t],[off_t])
elif test "x${ac_cv_type_long_long_int}" = "xyes"; then
_AC_CHECK_TYPE_OLD([off64_t],[long long int])
else
_AC_CHECK_TYPE_OLD([off64_t],[long int])
fi
])dnl
dnl#TODO: check to see if _DARWIN_C_SOURCE needs to be defined for this:
AC_CHECK_TYPES([Dl_info])dnl
AC_MSG_CHECKING([for some structs and struct members...])
AC_MSG_RESULT([... .. . ])
AC_STRUCTS_UMBRELLA
AC_CHECK_MEMBERS([struct stat.st_blksize])dnl
AC_CHECK_MEMBERS([struct statvfs.f_mntfromname])dnl
AC_CHECK_MEMBERS([struct statvfs.f_mntonname])dnl
AC_CHECK_MEMBERS([struct statvfs.f_fstypename])dnl
# Checks for library functions.
AC_MSG_CHECKING([for functions for which predefined checks exist...])
AC_MSG_RESULT([... .. . ])
gl_ALL_FUNC_UMBRELLAS_META_UMBRELLA
AC_MSG_CHECKING([for miscellaneous other functions...])
AC_MSG_RESULT([... .. . ])
AC_CHECK_FUNCS([GetDriveType])dnl
## avoid printing "(cached)" a bunch of times:
AC_CHECK_FUNCS_IF_NOT_CACHED([__fpending __freadptrinc _NSGetExecutablePath \
abort btowc close dup2 fchdir fstatfs ftruncate \
getcwd getdelim getmnt getmntinfo getpagesize \
ioctl listmntent memchr mempcpy pipe2 pathconf \
setenv setlocale snprintf strndup])
AC_CHECK_FUNCS_ONCE([readlinkat])dnl
## now regular function checks:
AC_CHECK_FUNCS([accept assert atexit atoi chdir chdir_long chsize \
clearenv connect dladdr dupfd end execve fflush fgets \
fpurge freemntlist fstatfs64 fstat64 ftok ftruncate64 \
fxstat64 gencat getrlimit gettext getvfsbytype iswprint \
kevent kevent64 kqueue localeconv lseek mblen mbrlen \
mbtowc memmove memset mntctl posix_fallocate \
pread64 pwrite64 printf read recv select send \
shm_open shmat shmctl shmdt sprintf statfs statfs64 \
strcasecmp strchr strdup strerror strncasecmp strrchr \
strsep strspn strstr strtod strtoul system sysconf \
vasprintf wctomb wcwidth write])dnl
## endianness functions:
AC_CHECK_FUNCS([htonl htons ntohl ntohs])dnl
## fstab-related functions:
AC_CHECK_FUNCS([getfsent getfsspec getfsfile setfsent endfsent])dnl
## ftw-related functions:
unset ac_cv_func_fts_open
AC_CHECK_FUNCS([fts_open fts_children fts_close fts_read])dnl
## alternative ftw-related functions:
AC_CHECK_FUNCS([opendir readdir closedir])dnl
## IOKit/Kext function(s) (might need some special flags):
AC_CHECK_FUNCS([KextManagerLoadKextWithURL])dnl
## CoreFoundation functions (might need some special flags):
AC_CHECK_FUNCS([CFBundleCopyLocalizedString CFGetTypeID \
CFLocaleGetIdentifier CFRelease CFStringCreateCopy \
CFStringCreateMutable CFStringGetCString \
CFStringGetSystemEncoding CFStringGetTypeID \
CFStringRef])dnl
AC_CHECK_FUNCS_IF_NOT_CACHED([CFLocaleCopyCurrent \
CFPreferencesCopyAppValue])dnl
## functions that we might want replacements for, but do not have the
## source files to replace them yet:
dnl# (move from "_CHECK" to "_REPLACE" once we do have source files)
unset ac_cv_func_catgets
AC_CHECK_FUNCS([catopen catgets catclose fcvt setmntent addmntent \
endmntent hasmntopt sbrk shmget swapon swapoff])
## functions that we might want replacements for, and have source files for:
unset ac_cv_func_btowc
unset ac_cv_func_wctob
unset ac_cv_func_getmntent
unset ac_cv_func_poll
AC_REPLACE_FUNCS([btowc wctob dysize fclose fcloseall getmntent poll \
cuserid brk crypt fpending msgcat ecvt gcvt])dnl
## keep autoscan happy:
if test "x" = "Y0"; then
test -x "`which autoscan`" || echo "no autoscan!" >&2
AC_CHECK_FUNCS([__fpending btowc dup2 fchdir ftruncate getcwd getdelim \
getpagesize memchr mempcpy pathconf setenv stpcpy strndup])dnl
## should never actually get here though...
fi
# One last thing:
if test "x${SOEXT}" = "x"; then
if test "x${acl_cv_shlibext}" != "x"; then
test -z "${SOEXT}" && test -n "${acl_cv_shlibext}" && export SOEXT="${acl_cv_shlibext}"
test -n "${SOEXT}" && echo "using acl_cv_slibext as SOEXT: ${SOEXT}"
else
test -z "${SOEXT}" && export SOEXT="dylib"
test -n "${SOEXT}" && echo "defaulting SOEXT to dylib"
fi
fi
AC_SUBST([SOEXT])dnl
# Output:
AC_CONFIG_FILES([Makefile \
autoscan/Makefile \
libftw0/Makefile \
poll/poll-emulator/Makefile
poll/poll-emulator/Makefile_nonAutomake])dnl
AC_CONFIG_SUBDIRS([argp/argp-standalone-1.3])dnl
AC_OUTPUT