+2022-01-09 Bruno Haible <bruno@clisp.org>
+
+ Use the GL_CFLAG_GNULIB_WARNINGS for most AC_LIBOBJ compilation units.
+ * modules/_Exit (configure.ac): Define an Automake conditional. Remove
+ the AC_LIBOBJ invocation.
+ (Makefile.am): Augment lib_SOURCES, guarded by that Automake
+ conditional.
+ * modules/accept: Likewise.
+ * modules/access: Likewise.
+ * modules/acosf: Likewise.
+ * modules/acosl: Likewise.
+ * modules/aligned_alloc: Likewise.
+ * modules/alphasort: Likewise.
+ * modules/argz: Likewise.
+ * modules/asinf: Likewise.
+ * modules/asinl: Likewise.
+ * modules/atan2f: Likewise.
+ * modules/atanf: Likewise.
+ * modules/atanl: Likewise.
+ * modules/atexit: Likewise.
+ * modules/atoll: Likewise.
+ * modules/bind: Likewise.
+ * modules/btowc: Likewise.
+ * modules/c32rtomb: Likewise.
+ * modules/canonicalize-lgpl: Likewise.
+ * modules/cbrt: Likewise.
+ * modules/cbrtf: Likewise.
+ * modules/cbrtl: Likewise.
+ * modules/ceil: Likewise.
+ * modules/ceilf: Likewise.
+ * modules/ceill: Likewise.
+ * modules/chdir-long: Likewise.
+ * modules/chown: Likewise.
+ * modules/close: Likewise.
+ * modules/closedir: Likewise.
+ * modules/cnd: Likewise.
+ * modules/connect: Likewise.
+ * modules/copy-file-range: Likewise.
+ * modules/copysign: Likewise.
+ * modules/copysignf: Likewise.
+ * modules/copysignl: Likewise.
+ * modules/cosf: Likewise.
+ * modules/coshf: Likewise.
+ * modules/cosl: Likewise.
+ * modules/creat: Likewise.
+ * modules/crypto/gc: Likewise.
+ * modules/ctime: Likewise.
+ * modules/dirfd: Likewise.
+ * modules/dup: Likewise.
+ * modules/dup2: Likewise.
+ * modules/duplocale: Likewise.
+ * modules/error: Likewise.
+ * modules/euidaccess: Likewise.
+ * modules/execinfo: Likewise.
+ * modules/execl: Likewise.
+ * modules/execle: Likewise.
+ * modules/execlp: Likewise.
+ * modules/execv: Likewise.
+ * modules/execve: Likewise.
+ * modules/execvp: Likewise.
+ * modules/execvpe: Likewise.
+ * modules/exp2: Likewise.
+ * modules/exp2f: Likewise.
+ * modules/exp2l: Likewise.
+ * modules/expf: Likewise.
+ * modules/expl: Likewise.
+ * modules/explicit_bzero: Likewise.
+ * modules/expm1: Likewise.
+ * modules/expm1f: Likewise.
+ * modules/expm1l: Likewise.
+ * modules/fabsf: Likewise.
+ * modules/fabsl: Likewise.
+ * modules/faccessat: Likewise.
+ * modules/fchdir: Likewise.
+ * modules/fchmodat: Likewise.
+ * modules/fchownat: Likewise.
+ * modules/fclose: Likewise.
+ * modules/fcntl: Likewise.
+ * modules/fdatasync: Likewise.
+ * modules/fdopen: Likewise.
+ * modules/fdopendir: Likewise.
+ * modules/fflush: Likewise.
+ * modules/ffs: Likewise.
+ * modules/ffsl: Likewise.
+ * modules/ffsll: Likewise.
+ * modules/fileblocks: Likewise.
+ * modules/float: Likewise.
+ * modules/flock: Likewise.
+ * modules/floor: Likewise.
+ * modules/floorf: Likewise.
+ * modules/floorl: Likewise.
+ * modules/fma: Likewise.
+ * modules/fmaf: Likewise.
+ * modules/fmal: Likewise.
+ * modules/fmod: Likewise.
+ * modules/fmodf: Likewise.
+ * modules/fmodl: Likewise.
+ * modules/forkpty: Likewise.
+ * modules/fpending: Likewise.
+ * modules/fpurge: Likewise.
+ * modules/freadable: Likewise.
+ * modules/freadahead: Likewise.
+ * modules/freadptr: Likewise.
+ * modules/free-posix: Likewise.
+ * modules/freopen: Likewise.
+ * modules/frexpf: Likewise.
+ * modules/fseek: Likewise.
+ * modules/fseeko: Likewise.
+ * modules/fseterr: Likewise.
+ * modules/fstat: Likewise.
+ * modules/fstatat: Likewise.
+ * modules/fsusage: Likewise.
+ * modules/fsync: Likewise.
+ * modules/ftell: Likewise.
+ * modules/ftello: Likewise.
+ * modules/ftruncate: Likewise.
+ * modules/fts: Likewise.
+ * modules/futimens: Likewise.
+ * modules/fwritable: Likewise.
+ * modules/fwriting: Likewise.
+ * modules/getaddrinfo: Likewise.
+ * modules/getcwd: Likewise.
+ * modules/getcwd-lgpl: Likewise.
+ * modules/getdelim: Likewise.
+ * modules/getdomainname: Likewise.
+ * modules/getdtablesize: Likewise.
+ * modules/getentropy: Likewise.
+ * modules/getgroups: Likewise.
+ * modules/gethostname: Likewise.
+ * modules/getline: Likewise.
+ * modules/getloadavg: Likewise.
+ * modules/getlogin: Likewise.
+ * modules/getlogin_r: Likewise.
+ * modules/getopt-posix: Likewise.
+ * modules/getpagesize: Likewise.
+ * modules/getpeername: Likewise.
+ * modules/getrandom: Likewise.
+ * modules/getrusage: Likewise.
+ * modules/getsockname: Likewise.
+ * modules/getsockopt: Likewise.
+ * modules/getsubopt: Likewise.
+ * modules/gettimeofday: Likewise.
+ * modules/getumask: Likewise.
+ * modules/getusershell: Likewise.
+ * modules/glob: Likewise.
+ * modules/grantpt: Likewise.
+ * modules/group-member: Likewise.
+ * modules/hypot: Likewise.
+ * modules/hypotf: Likewise.
+ * modules/hypotl: Likewise.
+ * modules/iconv_open: Likewise.
+ * modules/ilogb: Likewise.
+ * modules/ilogbf: Likewise.
+ * modules/ilogbl: Likewise.
+ * modules/imaxabs: Likewise.
+ * modules/imaxdiv: Likewise.
+ * modules/inet_ntop: Likewise.
+ * modules/inet_pton: Likewise.
+ * modules/ioctl: Likewise.
+ * modules/isapipe: Likewise.
+ * modules/isatty: Likewise.
+ * modules/isblank: Likewise.
+ * modules/isfinite: Likewise.
+ * modules/isinf: Likewise.
+ * modules/iswblank: Likewise.
+ * modules/iswctype: Likewise.
+ * modules/iswdigit: Likewise.
+ * modules/iswxdigit: Likewise.
+ * modules/lchmod: Likewise.
+ * modules/lchown: Likewise.
+ * modules/ldexpf: Likewise.
+ * modules/ldexpl: Likewise.
+ * modules/libgmp: Likewise.
+ * modules/link: Likewise.
+ * modules/linkat: Likewise.
+ * modules/listen: Likewise.
+ * modules/localeconv: Likewise.
+ * modules/localtime: Likewise.
+ * modules/log: Likewise.
+ * modules/log10: Likewise.
+ * modules/log10f: Likewise.
+ * modules/log10l: Likewise.
+ * modules/log1p: Likewise.
+ * modules/log1pf: Likewise.
+ * modules/log1pl: Likewise.
+ * modules/log2: Likewise.
+ * modules/log2f: Likewise.
+ * modules/log2l: Likewise.
+ * modules/logb: Likewise.
+ * modules/logbf: Likewise.
+ * modules/logbl: Likewise.
+ * modules/logf: Likewise.
+ * modules/login_tty: Likewise.
+ * modules/logl: Likewise.
+ * modules/lseek: Likewise.
+ * modules/lstat: Likewise.
+ * modules/mbrlen: Likewise.
+ * modules/mbrtoc32: Likewise.
+ * modules/mbrtowc: Likewise.
+ * modules/mbsinit: Likewise.
+ * modules/mbsnrtowcs: Likewise.
+ * modules/mbsrtowcs: Likewise.
+ * modules/mbtowc: Likewise.
+ * modules/memalign: Likewise.
+ * modules/memchr: Likewise.
+ * modules/memcmp: Likewise.
+ * modules/memcpy: Likewise.
+ * modules/memmove: Likewise.
+ * modules/mempcpy: Likewise.
+ * modules/memrchr: Likewise.
+ * modules/memset: Likewise.
+ * modules/mkdir: Likewise.
+ * modules/mkdirat: Likewise.
+ * modules/mkdtemp: Likewise.
+ * modules/mkfifo: Likewise.
+ * modules/mkfifoat: Likewise.
+ * modules/mknod: Likewise.
+ * modules/mkostemp: Likewise.
+ * modules/mkostemps: Likewise.
+ * modules/mkstemp: Likewise.
+ * modules/mkstemps: Likewise.
+ * modules/modf: Likewise.
+ * modules/modff: Likewise.
+ * modules/modfl: Likewise.
+ * modules/mountlist: Likewise.
+ * modules/msvc-inval: Likewise.
+ * modules/msvc-nothrow: Likewise.
+ * modules/mtx: Likewise.
+ * modules/nanosleep: Likewise.
+ * modules/nl_langinfo: Likewise.
+ * modules/obstack: Likewise.
+ * modules/open: Likewise.
+ * modules/openat: Likewise.
+ * modules/opendir: Likewise.
+ * modules/openpty: Likewise.
+ * modules/pclose: Likewise.
+ * modules/perror: Likewise.
+ * modules/pipe-posix: Likewise.
+ * modules/poll: Likewise.
+ * modules/popen: Likewise.
+ * modules/posix_memalign: Likewise.
+ * modules/posix_openpt: Likewise.
+ * modules/posix_spawn: Likewise.
+ * modules/posix_spawn-internal: Likewise.
+ * modules/posix_spawn_file_actions_addchdir: Likewise.
+ * modules/posix_spawn_file_actions_addclose: Likewise.
+ * modules/posix_spawn_file_actions_adddup2: Likewise.
+ * modules/posix_spawn_file_actions_addfchdir: Likewise.
+ * modules/posix_spawn_file_actions_addopen: Likewise.
+ * modules/posix_spawn_file_actions_destroy: Likewise.
+ * modules/posix_spawn_file_actions_init: Likewise.
+ * modules/posix_spawnattr_destroy: Likewise.
+ * modules/posix_spawnattr_getflags: Likewise.
+ * modules/posix_spawnattr_getpgroup: Likewise.
+ * modules/posix_spawnattr_getschedparam: Likewise.
+ * modules/posix_spawnattr_getschedpolicy: Likewise.
+ * modules/posix_spawnattr_getsigdefault: Likewise.
+ * modules/posix_spawnattr_getsigmask: Likewise.
+ * modules/posix_spawnattr_init: Likewise.
+ * modules/posix_spawnattr_setflags: Likewise.
+ * modules/posix_spawnattr_setpgroup: Likewise.
+ * modules/posix_spawnattr_setschedparam: Likewise.
+ * modules/posix_spawnattr_setschedpolicy: Likewise.
+ * modules/posix_spawnattr_setsigdefault: Likewise.
+ * modules/posix_spawnattr_setsigmask: Likewise.
+ * modules/posix_spawnp: Likewise.
+ * modules/powf: Likewise.
+ * modules/pread: Likewise.
+ * modules/pselect: Likewise.
+ * modules/pthread-cond: Likewise.
+ * modules/pthread-mutex: Likewise.
+ * modules/pthread-once: Likewise.
+ * modules/pthread-rwlock: Likewise.
+ * modules/pthread-spin: Likewise.
+ * modules/pthread-thread: Likewise.
+ * modules/pthread-tss: Likewise.
+ * modules/pthread_mutex_timedlock: Likewise.
+ * modules/pthread_sigmask: Likewise.
+ * modules/ptsname: Likewise.
+ * modules/ptsname_r: Likewise.
+ * modules/putenv: Likewise.
+ * modules/pwrite: Likewise.
+ * modules/qsort_r: Likewise.
+ * modules/raise: Likewise.
+ * modules/random: Likewise.
+ * modules/random_r: Likewise.
+ * modules/rawmemchr: Likewise.
+ * modules/read: Likewise.
+ * modules/readdir: Likewise.
+ * modules/readline: Likewise.
+ * modules/readlink: Likewise.
+ * modules/readlinkat: Likewise.
+ * modules/readutmp: Likewise.
+ * modules/reallocarray: Likewise.
+ * modules/recv: Likewise.
+ * modules/recvfrom: Likewise.
+ * modules/regex: Likewise.
+ * modules/relocatable-prog: Likewise.
+ * modules/remainder: Likewise.
+ * modules/remainderf: Likewise.
+ * modules/remainderl: Likewise.
+ * modules/remove: Likewise.
+ * modules/rename: Likewise.
+ * modules/renameat: Likewise.
+ * modules/rewinddir: Likewise.
+ * modules/rint: Likewise.
+ * modules/rintf: Likewise.
+ * modules/rintl: Likewise.
+ * modules/rmdir: Likewise.
+ * modules/round: Likewise.
+ * modules/roundf: Likewise.
+ * modules/roundl: Likewise.
+ * modules/rpmatch: Likewise.
+ * modules/scandir: Likewise.
+ * modules/sched_yield: Likewise.
+ * modules/secure_getenv: Likewise.
+ * modules/select: Likewise.
+ * modules/selinux-h: Likewise.
+ * modules/send: Likewise.
+ * modules/sendto: Likewise.
+ * modules/setenv: Likewise.
+ * modules/sethostname: Likewise.
+ * modules/setlocale: Likewise.
+ * modules/setlocale-null: Likewise.
+ * modules/setsockopt: Likewise.
+ * modules/shutdown: Likewise.
+ * modules/sig2str: Likewise.
+ * modules/sigabbrev_np: Likewise.
+ * modules/sigaction: Likewise.
+ * modules/sigdescr_np: Likewise.
+ * modules/signbit: Likewise.
+ * modules/sigprocmask: Likewise.
+ * modules/sinf: Likewise.
+ * modules/sinhf: Likewise.
+ * modules/sinl: Likewise.
+ * modules/sleep: Likewise.
+ * modules/socket: Likewise.
+ * modules/spawn-pipe: Likewise.
+ * modules/sqrtf: Likewise.
+ * modules/sqrtl: Likewise.
+ * modules/stat: Likewise.
+ * modules/stdio: Likewise.
+ * modules/stpcpy: Likewise.
+ * modules/stpncpy: Likewise.
+ * modules/strcase: Likewise.
+ * modules/strchrnul: Likewise.
+ * modules/strcspn: Likewise.
+ * modules/strdup-posix: Likewise.
+ * modules/strerror: Likewise.
+ * modules/strerror-override: Likewise.
+ * modules/strerrorname_np: Likewise.
+ * modules/strfmon_l: Likewise.
+ * modules/strftime-fixes: Likewise.
+ * modules/strncat: Likewise.
+ * modules/strndup: Likewise.
+ * modules/strnlen: Likewise.
+ * modules/strpbrk: Likewise.
+ * modules/strptime: Likewise.
+ * modules/strsep: Likewise.
+ * modules/strsignal: Likewise.
+ * modules/strtod: Likewise.
+ * modules/strtoimax: Likewise.
+ * modules/strtok_r: Likewise.
+ * modules/strtol: Likewise.
+ * modules/strtold: Likewise.
+ * modules/strtoll: Likewise.
+ * modules/strtoul: Likewise.
+ * modules/strtoull: Likewise.
+ * modules/strtoumax: Likewise.
+ * modules/strverscmp: Likewise.
+ * modules/symlink: Likewise.
+ * modules/symlinkat: Likewise.
+ * modules/tanf: Likewise.
+ * modules/tanhf: Likewise.
+ * modules/tanl: Likewise.
+ * modules/tcgetsid: Likewise.
+ * modules/thrd: Likewise.
+ * modules/time_r: Likewise.
+ * modules/time_rz: Likewise.
+ * modules/timegm: Likewise.
+ * modules/times: Likewise.
+ * modules/timespec_get: Likewise.
+ * modules/timespec_getres: Likewise.
+ * modules/tmpfile: Likewise.
+ * modules/towctrans: Likewise.
+ * modules/trunc: Likewise.
+ * modules/truncate: Likewise.
+ * modules/truncf: Likewise.
+ * modules/truncl: Likewise.
+ * modules/tsearch: Likewise.
+ * modules/tss: Likewise.
+ * modules/ttyname_r: Likewise.
+ * modules/tzset: Likewise.
+ * modules/uname: Likewise.
+ * modules/unlink: Likewise.
+ * modules/unlinkat: Likewise.
+ * modules/unlockpt: Likewise.
+ * modules/unsetenv: Likewise.
+ * modules/usleep: Likewise.
+ * modules/utime: Likewise.
+ * modules/utimensat: Likewise.
+ * modules/waitpid: Likewise.
+ * modules/wcpcpy: Likewise.
+ * modules/wcpncpy: Likewise.
+ * modules/wcrtomb: Likewise.
+ * modules/wcscasecmp: Likewise.
+ * modules/wcscat: Likewise.
+ * modules/wcschr: Likewise.
+ * modules/wcscmp: Likewise.
+ * modules/wcscoll: Likewise.
+ * modules/wcscpy: Likewise.
+ * modules/wcscspn: Likewise.
+ * modules/wcsdup: Likewise.
+ * modules/wcsftime: Likewise.
+ * modules/wcslen: Likewise.
+ * modules/wcsncasecmp: Likewise.
+ * modules/wcsncat: Likewise.
+ * modules/wcsncmp: Likewise.
+ * modules/wcsncpy: Likewise.
+ * modules/wcsnlen: Likewise.
+ * modules/wcsnrtombs: Likewise.
+ * modules/wcspbrk: Likewise.
+ * modules/wcsrchr: Likewise.
+ * modules/wcsrtombs: Likewise.
+ * modules/wcsspn: Likewise.
+ * modules/wcsstr: Likewise.
+ * modules/wcstok: Likewise.
+ * modules/wcswidth: Likewise.
+ * modules/wcsxfrm: Likewise.
+ * modules/wctob: Likewise.
+ * modules/wctomb: Likewise.
+ * modules/wctrans: Likewise.
+ * modules/wctype: Likewise.
+ * modules/wcwidth: Likewise.
+ * modules/windows-cond: Likewise.
+ * modules/windows-mutex: Likewise.
+ * modules/windows-once: Likewise.
+ * modules/windows-recmutex: Likewise.
+ * modules/windows-rwlock: Likewise.
+ * modules/windows-spawn: Likewise.
+ * modules/windows-spin: Likewise.
+ * modules/windows-thread: Likewise.
+ * modules/windows-timedmutex: Likewise.
+ * modules/windows-timedrecmutex: Likewise.
+ * modules/windows-timedrwlock: Likewise.
+ * modules/windows-tls: Likewise.
+ * modules/wmemchr: Likewise.
+ * modules/wmemcmp: Likewise.
+ * modules/wmemcpy: Likewise.
+ * modules/wmemmove: Likewise.
+ * modules/wmempcpy: Likewise.
+ * modules/wmemset: Likewise.
+ * modules/write: Likewise.
+
2022-01-09 Bruno Haible <bruno@clisp.org>
obstack: Move AC_LIBOBJ invocation to the module description.
configure.ac:
gl_FUNC__EXIT
-if test $HAVE__EXIT = 0; then
- AC_LIBOBJ([_Exit])
+gl_CONDITIONAL([GL_COND_OBJ__EXIT], [test $HAVE__EXIT = 0])
+AM_COND_IF([GL_COND_OBJ__EXIT], [
gl_PREREQ__EXIT
-fi
+])
gl_STDLIB_MODULE_INDICATOR([_Exit])
Makefile.am:
+if GL_COND_OBJ__EXIT
+lib_SOURCES += _Exit.c
+endif
Include:
<stdlib.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([accept])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ACCEPT], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([accept])
Makefile.am:
+if GL_COND_OBJ_ACCEPT
+lib_SOURCES += accept.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_ACCESS
-if test $REPLACE_ACCESS = 1; then
- AC_LIBOBJ([access])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ACCESS], [test $REPLACE_ACCESS = 1])
gl_UNISTD_MODULE_INDICATOR([access])
Makefile.am:
+if GL_COND_OBJ_ACCESS
+lib_SOURCES += access.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_ACOSF
-if test $HAVE_ACOSF = 0; then
- AC_LIBOBJ([acosf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ACOSF], [test $HAVE_ACOSF = 0])
gl_MATH_MODULE_INDICATOR([acosf])
Makefile.am:
+if GL_COND_OBJ_ACOSF
+lib_SOURCES += acosf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ACOSL
-if test $HAVE_ACOSL = 0; then
- AC_LIBOBJ([acosl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ACOSL], [test $HAVE_ACOSL = 0])
gl_MATH_MODULE_INDICATOR([acosl])
Makefile.am:
+if GL_COND_OBJ_ACOSL
+lib_SOURCES += acosl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ALIGNED_ALLOC
-if test $REPLACE_ALIGNED_ALLOC = 1; then
- AC_LIBOBJ([aligned_alloc])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ALIGNED_ALLOC], [test $REPLACE_ALIGNED_ALLOC = 1])
gl_STDLIB_MODULE_INDICATOR([aligned_alloc])
Makefile.am:
+if GL_COND_OBJ_ALIGNED_ALLOC
+lib_SOURCES += aligned_alloc.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_ALPHASORT
-if test $HAVE_ALPHASORT = 0; then
- AC_LIBOBJ([alphasort])
+gl_CONDITIONAL([GL_COND_OBJ_ALPHASORT], [test $HAVE_ALPHASORT = 0])
+AM_COND_IF([GL_COND_OBJ_ALPHASORT], [
gl_PREREQ_ALPHASORT
-fi
+])
gl_DIRENT_MODULE_INDICATOR([alphasort])
Makefile.am:
+if GL_COND_OBJ_ALPHASORT
+lib_SOURCES += alphasort.c
+endif
Include:
<dirent.h>
gl_FUNC_ARGZ
gl_CONDITIONAL_HEADER([argz.h])
AC_PROG_MKDIR_P
-if test -n "$ARGZ_H"; then
- AC_LIBOBJ([argz])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ARGZ], [test -n "$ARGZ_H"])
Makefile.am:
BUILT_SOURCES += $(ARGZ_H)
endif
MOSTLYCLEANFILES += argz.h argz.h-t
+if GL_COND_OBJ_ARGZ
+lib_SOURCES += argz.c
+endif
+
Include:
<argz.h>
configure.ac:
gl_FUNC_ASINF
-if test $HAVE_ASINF = 0; then
- AC_LIBOBJ([asinf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ASINF], [test $HAVE_ASINF = 0])
gl_MATH_MODULE_INDICATOR([asinf])
Makefile.am:
+if GL_COND_OBJ_ASINF
+lib_SOURCES += asinf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ASINL
-if test $HAVE_ASINL = 0; then
- AC_LIBOBJ([asinl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ASINL], [test $HAVE_ASINL = 0])
gl_MATH_MODULE_INDICATOR([asinl])
Makefile.am:
+if GL_COND_OBJ_ASINL
+lib_SOURCES += asinl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ATAN2F
-if test $HAVE_ATAN2F = 0; then
- AC_LIBOBJ([atan2f])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ATAN2F], [test $HAVE_ATAN2F = 0])
gl_MATH_MODULE_INDICATOR([atan2f])
Makefile.am:
+if GL_COND_OBJ_ATAN2F
+lib_SOURCES += atan2f.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ATANF
-if test $HAVE_ATANF = 0; then
- AC_LIBOBJ([atanf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ATANF], [test $HAVE_ATANF = 0])
gl_MATH_MODULE_INDICATOR([atanf])
Makefile.am:
+if GL_COND_OBJ_ATANF
+lib_SOURCES += atanf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ATANL
-if test $HAVE_ATANL = 0; then
- AC_LIBOBJ([atanl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ATANL], [test $HAVE_ATANL = 0])
gl_MATH_MODULE_INDICATOR([atanl])
Makefile.am:
+if GL_COND_OBJ_ATANL
+lib_SOURCES += atanl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ATEXIT
-if test $ac_cv_func_atexit = no; then
- AC_LIBOBJ([atexit])
+gl_CONDITIONAL([GL_COND_OBJ_ATEXIT], [test $ac_cv_func_atexit = no])
+AM_COND_IF([GL_COND_OBJ_ATEXIT], [
gl_PREREQ_ATEXIT
-fi
+])
Makefile.am:
+if GL_COND_OBJ_ATEXIT
+lib_SOURCES += atexit.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_ATOLL
-if test $HAVE_ATOLL = 0; then
- AC_LIBOBJ([atoll])
+gl_CONDITIONAL([GL_COND_OBJ_ATOLL], [test $HAVE_ATOLL = 0])
+AM_COND_IF([GL_COND_OBJ_ATOLL], [
gl_PREREQ_ATOLL
-fi
+])
gl_STDLIB_MODULE_INDICATOR([atoll])
Makefile.am:
+if GL_COND_OBJ_ATOLL
+lib_SOURCES += atoll.c
+endif
Include:
<stdlib.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([bind])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_BIND], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([bind])
Makefile.am:
+if GL_COND_OBJ_BIND
+lib_SOURCES += bind.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_BTOWC
-if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
- AC_LIBOBJ([btowc])
+gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
+ [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
+AM_COND_IF([GL_COND_OBJ_BTOWC], [
gl_PREREQ_BTOWC
-fi
+])
gl_WCHAR_MODULE_INDICATOR([btowc])
Makefile.am:
+if GL_COND_OBJ_BTOWC
+lib_SOURCES += btowc.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_C32RTOMB
-if test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; then
- AC_LIBOBJ([c32rtomb])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_C32RTOMB],
+ [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1])
gl_UCHAR_MODULE_INDICATOR([c32rtomb])
Makefile.am:
+if GL_COND_OBJ_C32RTOMB
+lib_SOURCES += c32rtomb.c
+endif
Include:
<uchar.h>
configure.ac:
gl_CANONICALIZE_LGPL
-if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
- AC_LIBOBJ([canonicalize-lgpl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CANONICALIZE_LGPL],
+ [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1])
gl_MODULE_INDICATOR([canonicalize-lgpl])
gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
gl_STDLIB_MODULE_INDICATOR([realpath])
Makefile.am:
+if GL_COND_OBJ_CANONICALIZE_LGPL
+lib_SOURCES += canonicalize-lgpl.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_CBRT
-if test $HAVE_CBRT = 0; then
- AC_LIBOBJ([cbrt])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CBRT], [test $HAVE_CBRT = 0])
gl_MATH_MODULE_INDICATOR([cbrt])
Makefile.am:
+if GL_COND_OBJ_CBRT
+lib_SOURCES += cbrt.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CBRTF
-if test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1; then
- AC_LIBOBJ([cbrtf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CBRTF],
+ [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1])
gl_MATH_MODULE_INDICATOR([cbrtf])
Makefile.am:
+if GL_COND_OBJ_CBRTF
+lib_SOURCES += cbrtf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CBRTL
-if test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; then
- AC_LIBOBJ([cbrtl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CBRTL],
+ [test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1])
gl_MATH_MODULE_INDICATOR([cbrtl])
Makefile.am:
+if GL_COND_OBJ_CBRTL
+lib_SOURCES += cbrtl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CEIL
-if test $REPLACE_CEIL = 1; then
- AC_LIBOBJ([ceil])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CEIL], [test $REPLACE_CEIL = 1])
gl_MATH_MODULE_INDICATOR([ceil])
Makefile.am:
+if GL_COND_OBJ_CEIL
+lib_SOURCES += ceil.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CEILF
-if test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1; then
- AC_LIBOBJ([ceilf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CEILF],
+ [test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1])
gl_MATH_MODULE_INDICATOR([ceilf])
Makefile.am:
+if GL_COND_OBJ_CEILF
+lib_SOURCES += ceilf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CEILL
-if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then
- AC_LIBOBJ([ceill])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CEILL],
+ [test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1])
gl_MATH_MODULE_INDICATOR([ceill])
Makefile.am:
+if GL_COND_OBJ_CEILL
+lib_SOURCES += ceill.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CHDIR_LONG
-if test $gl_cv_have_unlimited_file_name_length = no; then
- AC_LIBOBJ([chdir-long])
+gl_CONDITIONAL([GL_COND_OBJ_CHDIR_LONG],
+ [test $gl_cv_have_unlimited_file_name_length = no])
+AM_COND_IF([GL_COND_OBJ_CHDIR_LONG], [
gl_PREREQ_CHDIR_LONG
-fi
+])
Makefile.am:
+if GL_COND_OBJ_CHDIR_LONG
+lib_SOURCES += chdir-long.c
+endif
Include:
"chdir-long.h"
configure.ac:
gl_FUNC_CHOWN
-if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
- AC_LIBOBJ([chown])
-fi
-if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
- AC_LIBOBJ([fchown-stub])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CHOWN],
+ [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1])
+gl_CONDITIONAL([GL_COND_OBJ_FCHOWN_STUB],
+ [test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no])
gl_UNISTD_MODULE_INDICATOR([chown])
Makefile.am:
+if GL_COND_OBJ_CHOWN
+lib_SOURCES += chown.c
+endif
+if GL_COND_OBJ_FCHOWN_STUB
+lib_SOURCES += fchown-stub.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_CLOSE
-if test $REPLACE_CLOSE = 1; then
- AC_LIBOBJ([close])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
gl_UNISTD_MODULE_INDICATOR([close])
Makefile.am:
+if GL_COND_OBJ_CLOSE
+lib_SOURCES += close.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_CLOSEDIR
-if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
- AC_LIBOBJ([closedir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CLOSEDIR],
+ [test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1])
gl_DIRENT_MODULE_INDICATOR([closedir])
Makefile.am:
+if GL_COND_OBJ_CLOSEDIR
+lib_SOURCES += closedir.c
+endif
Include:
<dirent.h>
configure.ac:
AC_REQUIRE([gl_THREADS_H])
-if test $HAVE_THREADS_H = 0; then
- AC_LIBOBJ([cnd])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CND], [test $HAVE_THREADS_H = 0])
gl_THREADS_MODULE_INDICATOR([cnd])
Makefile.am:
+if GL_COND_OBJ_CND
+lib_SOURCES += cnd.c
+endif
Include:
<threads.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([connect])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CONNECT], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([connect])
Makefile.am:
+if GL_COND_OBJ_CONNECT
+lib_SOURCES += connect.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_COPY_FILE_RANGE
-if test $HAVE_COPY_FILE_RANGE = 0; then
- AC_LIBOBJ([copy-file-range])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COPY_FILE_RANGE], [test $HAVE_COPY_FILE_RANGE = 0])
gl_UNISTD_MODULE_INDICATOR([copy-file-range])
Makefile.am:
+if GL_COND_OBJ_COPY_FILE_RANGE
+lib_SOURCES += copy-file-range.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_COPYSIGN
-if test $HAVE_COPYSIGN = 0; then
- AC_LIBOBJ([copysign])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COPYSIGN], [test $HAVE_COPYSIGN = 0])
gl_MATH_MODULE_INDICATOR([copysign])
Makefile.am:
+if GL_COND_OBJ_COPYSIGN
+lib_SOURCES += copysign.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_COPYSIGNF
-if test $HAVE_COPYSIGNF = 0; then
- AC_LIBOBJ([copysignf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COPYSIGNF], [test $HAVE_COPYSIGNF = 0])
gl_MATH_MODULE_INDICATOR([copysignf])
Makefile.am:
+if GL_COND_OBJ_COPYSIGNF
+lib_SOURCES += copysignf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_COPYSIGNL
-if test $HAVE_COPYSIGNL = 0; then
- AC_LIBOBJ([copysignl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COPYSIGNL], [test $HAVE_COPYSIGNL = 0])
gl_MATH_MODULE_INDICATOR([copysignl])
Makefile.am:
+if GL_COND_OBJ_COPYSIGNL
+lib_SOURCES += copysignl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_COSF
-if test $HAVE_COSF = 0; then
- AC_LIBOBJ([cosf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COSF], [test $HAVE_COSF = 0])
gl_MATH_MODULE_INDICATOR([cosf])
Makefile.am:
+if GL_COND_OBJ_COSF
+lib_SOURCES += cosf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_COSHF
-if test $HAVE_COSHF = 0; then
- AC_LIBOBJ([coshf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_COSHF], [test $HAVE_COSHF = 0])
gl_MATH_MODULE_INDICATOR([coshf])
Makefile.am:
+if GL_COND_OBJ_COSHF
+lib_SOURCES += coshf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_COSL
-if test $HAVE_COSL = 0; then
- AC_LIBOBJ([cosl])
+gl_CONDITIONAL([GL_COND_OBJ_COSL], [test $HAVE_COSL = 0])
+AM_COND_IF([GL_COND_OBJ_COSL], [
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then
AC_LIBOBJ([sincosl])
AC_LIBOBJ([trigl])
fi
-fi
+])
gl_MATH_MODULE_INDICATOR([cosl])
Makefile.am:
+if GL_COND_OBJ_COSL
+lib_SOURCES += cosl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_CREAT
-if test $REPLACE_CREAT = 1; then
- AC_LIBOBJ([creat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CREAT], [test $REPLACE_CREAT = 1])
gl_FCNTL_MODULE_INDICATOR([creat])
Makefile.am:
+if GL_COND_OBJ_CREAT
+lib_SOURCES += creat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_GC
-if test "$ac_cv_libgcrypt" = yes; then
- AC_LIBOBJ([gc-libgcrypt])
-else
- AC_LIBOBJ([gc-gnulib])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GC_LIBGCRYPT], [test "$ac_cv_libgcrypt" = yes])
if test $gl_cond_libtool = false; then
gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
gl_libdeps="$gl_libdeps $LIBGCRYPT"
fi
Makefile.am:
+if GL_COND_OBJ_GC_LIBGCRYPT
+lib_SOURCES += gc-libgcrypt.c
+else
+lib_SOURCES += gc-gnulib.c
+endif
if GL_COND_LIBTOOL
lib_LDFLAGS += $(LTLIBGCRYPT)
endif
configure.ac:
gl_FUNC_CTIME
-if test $REPLACE_CTIME = 1; then
- AC_LIBOBJ([ctime])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_CTIME], [test $REPLACE_CTIME = 1])
gl_TIME_MODULE_INDICATOR([ctime])
Makefile.am:
+if GL_COND_OBJ_CTIME
+lib_SOURCES += ctime.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_DIRFD
-if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
- || test $REPLACE_DIRFD = 1; then
- AC_LIBOBJ([dirfd])
+gl_CONDITIONAL([GL_COND_OBJ_DIRFD],
+ [test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1])
+AM_COND_IF([GL_COND_OBJ_DIRFD], [
gl_PREREQ_DIRFD
-fi
+])
gl_DIRENT_MODULE_INDICATOR([dirfd])
Makefile.am:
+if GL_COND_OBJ_DIRFD
+lib_SOURCES += dirfd.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_DUP
-if test $REPLACE_DUP = 1; then
- AC_LIBOBJ([dup])
+gl_CONDITIONAL([GL_COND_OBJ_DUP], [test $REPLACE_DUP = 1])
+AM_COND_IF([GL_COND_OBJ_DUP], [
gl_PREREQ_DUP
-fi
+])
gl_UNISTD_MODULE_INDICATOR([dup])
Makefile.am:
+if GL_COND_OBJ_DUP
+lib_SOURCES += dup.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_DUP2
-if test $REPLACE_DUP2 = 1; then
- AC_LIBOBJ([dup2])
+gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
+AM_COND_IF([GL_COND_OBJ_DUP2], [
gl_PREREQ_DUP2
-fi
+])
gl_UNISTD_MODULE_INDICATOR([dup2])
Makefile.am:
+if GL_COND_OBJ_DUP2
+lib_SOURCES += dup2.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_DUPLOCALE
-if test $REPLACE_DUPLOCALE = 1; then
- AC_LIBOBJ([duplocale])
+gl_CONDITIONAL([GL_COND_OBJ_DUPLOCALE], [test $REPLACE_DUPLOCALE = 1])
+AM_COND_IF([GL_COND_OBJ_DUPLOCALE], [
gl_PREREQ_DUPLOCALE
-fi
+])
gl_LOCALE_MODULE_INDICATOR([duplocale])
Makefile.am:
+if GL_COND_OBJ_DUPLOCALE
+lib_SOURCES += duplocale.c
+endif
Include:
<locale.h>
configure.ac:
gl_ERROR
-AS_IF([test "$ac_cv_lib_error_at_line" = no], [
- AC_LIBOBJ([error])
+gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no])
+AM_COND_IF([GL_COND_OBJ_ERROR], [
gl_PREREQ_ERROR
])
m4_ifdef([AM_XGETTEXT_OPTION],
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
Makefile.am:
+if GL_COND_OBJ_ERROR
+lib_SOURCES += error.c
+endif
Include:
"error.h"
configure.ac:
gl_FUNC_EUIDACCESS
-if test $HAVE_EUIDACCESS = 0; then
- AC_LIBOBJ([euidaccess])
+gl_CONDITIONAL([GL_COND_OBJ_EUIDACCESS], [test $HAVE_EUIDACCESS = 0])
+AM_COND_IF([GL_COND_OBJ_EUIDACCESS], [
gl_PREREQ_EUIDACCESS
-fi
+])
gl_UNISTD_MODULE_INDICATOR([euidaccess])
Makefile.am:
+if GL_COND_OBJ_EUIDACCESS
+lib_SOURCES += euidaccess.c
+endif
Include:
<unistd.h>
gl_EXECINFO_H
gl_CONDITIONAL_HEADER([execinfo.h])
AC_PROG_MKDIR_P
-if $GL_GENERATE_EXECINFO_H; then
- AC_LIBOBJ([execinfo])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECINFO], [$GL_GENERATE_EXECINFO_H])
Makefile.am:
BUILT_SOURCES += $(EXECINFO_H)
endif
MOSTLYCLEANFILES += execinfo.h execinfo.h-t
+if GL_COND_OBJ_EXECINFO
+lib_SOURCES += execinfo.c
+endif
+
Include:
<execinfo.h>
configure.ac:
gl_FUNC_EXECL
-if test $REPLACE_EXECL = 1; then
- AC_LIBOBJ([execl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECL], [test $REPLACE_EXECL = 1])
gl_UNISTD_MODULE_INDICATOR([execl])
Makefile.am:
+if GL_COND_OBJ_EXECL
+lib_SOURCES += execl.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECLE
-if test $REPLACE_EXECLE = 1; then
- AC_LIBOBJ([execle])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECLE], [test $REPLACE_EXECLE = 1])
gl_UNISTD_MODULE_INDICATOR([execle])
Makefile.am:
+if GL_COND_OBJ_EXECLE
+lib_SOURCES += execle.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECLP
-if test $REPLACE_EXECLP = 1; then
- AC_LIBOBJ([execlp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECLP], [test $REPLACE_EXECLP = 1])
gl_UNISTD_MODULE_INDICATOR([execlp])
Makefile.am:
+if GL_COND_OBJ_EXECLP
+lib_SOURCES += execlp.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECV
-if test $REPLACE_EXECV = 1; then
- AC_LIBOBJ([execv])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECV], [test $REPLACE_EXECV = 1])
gl_UNISTD_MODULE_INDICATOR([execv])
Makefile.am:
+if GL_COND_OBJ_EXECV
+lib_SOURCES += execv.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECVE
-if test $REPLACE_EXECVE = 1; then
- AC_LIBOBJ([execve])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECVE], [test $REPLACE_EXECVE = 1])
gl_UNISTD_MODULE_INDICATOR([execve])
Makefile.am:
+if GL_COND_OBJ_EXECVE
+lib_SOURCES += execve.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECVP
-if test $REPLACE_EXECVP = 1; then
- AC_LIBOBJ([execvp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECVP], [test $REPLACE_EXECVP = 1])
gl_UNISTD_MODULE_INDICATOR([execvp])
Makefile.am:
+if GL_COND_OBJ_EXECVP
+lib_SOURCES += execvp.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXECVPE
-if test $HAVE_EXECVPE = 0 || test $REPLACE_EXECVPE = 1; then
- AC_LIBOBJ([execvpe])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXECVPE],
+ [test $HAVE_EXECVPE = 0 || test $REPLACE_EXECVPE = 1])
gl_UNISTD_MODULE_INDICATOR([execvpe])
Makefile.am:
+if GL_COND_OBJ_EXECVPE
+lib_SOURCES += execvpe.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_EXP2
-if test $HAVE_EXP2 = 0 || test $REPLACE_EXP2 = 1; then
- AC_LIBOBJ([exp2])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXP2],
+ [test $HAVE_EXP2 = 0 || test $REPLACE_EXP2 = 1])
gl_MATH_MODULE_INDICATOR([exp2])
Makefile.am:
+if GL_COND_OBJ_EXP2
+lib_SOURCES += exp2.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXP2F
-if test $HAVE_EXP2F = 0; then
- AC_LIBOBJ([exp2f])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXP2F], [test $HAVE_EXP2F = 0])
gl_MATH_MODULE_INDICATOR([exp2f])
Makefile.am:
+if GL_COND_OBJ_EXP2F
+lib_SOURCES += exp2f.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXP2L
-if test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; then
- AC_LIBOBJ([exp2l])
+gl_CONDITIONAL([GL_COND_OBJ_EXP2L],
+ [test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1])
+AM_COND_IF([GL_COND_OBJ_EXP2L], [
AC_LIBOBJ([expl-table])
-fi
+])
gl_MATH_MODULE_INDICATOR([exp2l])
Makefile.am:
+if GL_COND_OBJ_EXP2L
+lib_SOURCES += exp2l.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXPF
-if test $HAVE_EXPF = 0; then
- AC_LIBOBJ([expf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXPF], [test $HAVE_EXPF = 0])
gl_MATH_MODULE_INDICATOR([expf])
Makefile.am:
+if GL_COND_OBJ_EXPF
+lib_SOURCES += expf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXPL
-if test $HAVE_EXPL = 0 || test $REPLACE_EXPL = 1; then
- AC_LIBOBJ([expl])
+gl_CONDITIONAL([GL_COND_OBJ_EXPL],
+ [test $HAVE_EXPL = 0 || test $REPLACE_EXPL = 1])
+AM_COND_IF([GL_COND_OBJ_EXPL], [
AC_LIBOBJ([expl-table])
-fi
+])
gl_MATH_MODULE_INDICATOR([expl])
Makefile.am:
+if GL_COND_OBJ_EXPL
+lib_SOURCES += expl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXPLICIT_BZERO
-if test $HAVE_EXPLICIT_BZERO = 0; then
- AC_LIBOBJ([explicit_bzero])
+gl_CONDITIONAL([GL_COND_OBJ_EXPLICIT_BZERO], [test $HAVE_EXPLICIT_BZERO = 0])
+AM_COND_IF([GL_COND_OBJ_EXPLICIT_BZERO], [
gl_PREREQ_EXPLICIT_BZERO
-fi
+])
gl_STRING_MODULE_INDICATOR([explicit_bzero])
Makefile.am:
+if GL_COND_OBJ_EXPLICIT_BZERO
+lib_SOURCES += explicit_bzero.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_EXPM1
-if test $HAVE_EXPM1 = 0 || test $REPLACE_EXPM1 = 1; then
- AC_LIBOBJ([expm1])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXPM1],
+ [test $HAVE_EXPM1 = 0 || test $REPLACE_EXPM1 = 1])
gl_MATH_MODULE_INDICATOR([expm1])
Makefile.am:
+if GL_COND_OBJ_EXPM1
+lib_SOURCES += expm1.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXPM1F
-if test $HAVE_EXPM1F = 0 || test $REPLACE_EXPM1F = 1; then
- AC_LIBOBJ([expm1f])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXPM1F],
+ [test $HAVE_EXPM1F = 0 || test $REPLACE_EXPM1F = 1])
gl_MATH_MODULE_INDICATOR([expm1f])
Makefile.am:
+if GL_COND_OBJ_EXPM1F
+lib_SOURCES += expm1f.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_EXPM1L
-if test $HAVE_EXPM1L = 0 || test $REPLACE_EXPM1L = 1; then
- AC_LIBOBJ([expm1l])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_EXPM1L],
+ [test $HAVE_EXPM1L = 0 || test $REPLACE_EXPM1L = 1])
gl_MATH_MODULE_INDICATOR([expm1l])
Makefile.am:
+if GL_COND_OBJ_EXPM1L
+lib_SOURCES += expm1l.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FABSF
-if test $HAVE_FABSF = 0; then
- AC_LIBOBJ([fabsf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FABSF], [test $HAVE_FABSF = 0])
gl_MATH_MODULE_INDICATOR([fabsf])
Makefile.am:
+if GL_COND_OBJ_FABSF
+lib_SOURCES += fabsf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FABSL
-if test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1; then
- AC_LIBOBJ([fabsl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FABSL],
+ [test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1])
gl_MATH_MODULE_INDICATOR([fabsl])
Makefile.am:
+if GL_COND_OBJ_FABSL
+lib_SOURCES += fabsl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FACCESSAT
-if test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1; then
- AC_LIBOBJ([faccessat])
+gl_CONDITIONAL([GL_COND_OBJ_FACCESSAT],
+ [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1])
+AM_COND_IF([GL_COND_OBJ_FACCESSAT], [
gl_PREREQ_FACCESSAT
-fi
+])
gl_MODULE_INDICATOR([faccessat])
gl_UNISTD_MODULE_INDICATOR([faccessat])
Makefile.am:
+if GL_COND_OBJ_FACCESSAT
+lib_SOURCES += faccessat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_FCHDIR
-if test $HAVE_FCHDIR = 0; then
- AC_LIBOBJ([fchdir])
+gl_CONDITIONAL([GL_COND_OBJ_FCHDIR], [test $HAVE_FCHDIR = 0])
+AM_COND_IF([GL_COND_OBJ_FCHDIR], [
gl_PREREQ_FCHDIR
-fi
+])
gl_UNISTD_MODULE_INDICATOR([fchdir])
Makefile.am:
+if GL_COND_OBJ_FCHDIR
+lib_SOURCES += fchdir.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_FCHMODAT
-if test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1; then
- AC_LIBOBJ([fchmodat])
+gl_CONDITIONAL([GL_COND_OBJ_FCHMODAT],
+ [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1])
+AM_COND_IF([GL_COND_OBJ_FCHMODAT], [
gl_PREREQ_FCHMODAT
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([fchmodat])
Makefile.am:
+if GL_COND_OBJ_FCHMODAT
+lib_SOURCES += fchmodat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_FCHOWNAT
-if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
- AC_LIBOBJ([fchownat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FCHOWNAT],
+ [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1])
gl_UNISTD_MODULE_INDICATOR([fchownat])
Makefile.am:
+if GL_COND_OBJ_FCHOWNAT
+lib_SOURCES += fchownat.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_FCLOSE
-if test $REPLACE_FCLOSE = 1; then
- AC_LIBOBJ([fclose])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FCLOSE], [test $REPLACE_FCLOSE = 1])
gl_STDIO_MODULE_INDICATOR([fclose])
Makefile.am:
+if GL_COND_OBJ_FCLOSE
+lib_SOURCES += fclose.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FCNTL
-if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
- AC_LIBOBJ([fcntl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
+ [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
gl_FCNTL_MODULE_INDICATOR([fcntl])
Makefile.am:
+if GL_COND_OBJ_FCNTL
+lib_SOURCES += fcntl.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_FDATASYNC
-if test $HAVE_FDATASYNC = 0; then
- AC_LIBOBJ([fdatasync])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FDATASYNC], [test $HAVE_FDATASYNC = 0])
gl_UNISTD_MODULE_INDICATOR([fdatasync])
Makefile.am:
+if GL_COND_OBJ_FDATASYNC
+lib_SOURCES += fdatasync.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_FDOPEN
-if test $REPLACE_FDOPEN = 1; then
- AC_LIBOBJ([fdopen])
+gl_CONDITIONAL([GL_COND_OBJ_FDOPEN], [test $REPLACE_FDOPEN = 1])
+AM_COND_IF([GL_COND_OBJ_FDOPEN], [
gl_PREREQ_FDOPEN
-fi
+])
gl_STDIO_MODULE_INDICATOR([fdopen])
Makefile.am:
+if GL_COND_OBJ_FDOPEN
+lib_SOURCES += fdopen.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FDOPENDIR
-if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
- AC_LIBOBJ([fdopendir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FDOPENDIR],
+ [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1])
gl_DIRENT_MODULE_INDICATOR([fdopendir])
gl_MODULE_INDICATOR([fdopendir])
Makefile.am:
+if GL_COND_OBJ_FDOPENDIR
+lib_SOURCES += fdopendir.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_FFLUSH
-if test $REPLACE_FFLUSH = 1; then
- AC_LIBOBJ([fflush])
+gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1])
+AM_COND_IF([GL_COND_OBJ_FFLUSH], [
gl_PREREQ_FFLUSH
-fi
+])
gl_MODULE_INDICATOR([fflush])
gl_STDIO_MODULE_INDICATOR([fflush])
Makefile.am:
+if GL_COND_OBJ_FFLUSH
+lib_SOURCES += fflush.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FFS
-if test $HAVE_FFS = 0; then
- AC_LIBOBJ([ffs])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FFS], [test $HAVE_FFS = 0])
gl_STRINGS_MODULE_INDICATOR([ffs])
Makefile.am:
+if GL_COND_OBJ_FFS
+lib_SOURCES += ffs.c
+endif
Include:
<strings.h>
configure.ac:
gl_FUNC_FFSL
-if test $HAVE_FFSL = 0; then
- AC_LIBOBJ([ffsl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FFSL], [test $HAVE_FFSL = 0])
gl_STRING_MODULE_INDICATOR([ffsl])
Makefile.am:
+if GL_COND_OBJ_FFSL
+lib_SOURCES += ffsl.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_FFSLL
-if test $HAVE_FFSLL = 0 || test $REPLACE_FFSLL = 1; then
- AC_LIBOBJ([ffsll])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FFSLL],
+ [test $HAVE_FFSLL = 0 || test $REPLACE_FFSLL = 1])
gl_STRING_MODULE_INDICATOR([ffsll])
Makefile.am:
+if GL_COND_OBJ_FFSLL
+lib_SOURCES += ffsll.c
+endif
Include:
<string.h>
configure.ac:
gl_FILEBLOCKS
-if test $ac_cv_member_struct_stat_st_blocks = no; then
- AC_LIBOBJ([fileblocks])
+gl_CONDITIONAL([GL_COND_OBJ_FILEBLOCKS],
+ [test $ac_cv_member_struct_stat_st_blocks = no])
+AM_COND_IF([GL_COND_OBJ_FILEBLOCKS], [
gl_PREREQ_FILEBLOCKS
-fi
+])
Makefile.am:
+if GL_COND_OBJ_FILEBLOCKS
+lib_SOURCES += fileblocks.c
+endif
Include:
gl_FLOAT_H
gl_CONDITIONAL_HEADER([float.h])
AC_PROG_MKDIR_P
-if test $REPLACE_FLOAT_LDBL = 1; then
- AC_LIBOBJ([float])
-fi
-if test $REPLACE_ITOLD = 1; then
- AC_LIBOBJ([itold])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
+gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
Makefile.am:
BUILT_SOURCES += $(FLOAT_H)
endif
MOSTLYCLEANFILES += float.h float.h-t
+if GL_COND_OBJ_FLOAT
+lib_SOURCES += float.c
+endif
+if GL_COND_OBJ_ITOLD
+lib_SOURCES += itold.c
+endif
+
Include:
<float.h>
configure.ac:
gl_FUNC_FLOCK
-if test $HAVE_FLOCK = 0; then
- AC_LIBOBJ([flock])
+gl_CONDITIONAL([GL_COND_OBJ_FLOCK], [test $HAVE_FLOCK = 0])
+AM_COND_IF([GL_COND_OBJ_FLOCK], [
gl_PREREQ_FLOCK
-fi
+])
gl_SYS_FILE_MODULE_INDICATOR([flock])
Makefile.am:
+if GL_COND_OBJ_FLOCK
+lib_SOURCES += flock.c
+endif
Include:
<sys/file.h>
configure.ac:
AC_REQUIRE([gl_FUNC_FLOOR])
-if test $REPLACE_FLOOR = 1; then
- AC_LIBOBJ([floor])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FLOOR], [test $REPLACE_FLOOR = 1])
gl_MATH_MODULE_INDICATOR([floor])
Makefile.am:
+if GL_COND_OBJ_FLOOR
+lib_SOURCES += floor.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FLOORF
-if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then
- AC_LIBOBJ([floorf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FLOORF],
+ [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1])
gl_MATH_MODULE_INDICATOR([floorf])
Makefile.am:
+if GL_COND_OBJ_FLOORF
+lib_SOURCES += floorf.c
+endif
Include:
<math.h>
configure.ac:
AC_REQUIRE([gl_FUNC_FLOORL])
-if test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1; then
- AC_LIBOBJ([floorl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FLOORL],
+ [test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1])
gl_MATH_MODULE_INDICATOR([floorl])
Makefile.am:
+if GL_COND_OBJ_FLOORL
+lib_SOURCES += floorl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMA
-if test $HAVE_FMA = 0 || test $REPLACE_FMA = 1; then
- AC_LIBOBJ([fma])
+gl_CONDITIONAL([GL_COND_OBJ_FMA], [test $HAVE_FMA = 0 || test $REPLACE_FMA = 1])
+AM_COND_IF([GL_COND_OBJ_FMA], [
gl_PREREQ_FMA
-fi
+])
gl_MATH_MODULE_INDICATOR([fma])
Makefile.am:
+if GL_COND_OBJ_FMA
+lib_SOURCES += fma.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMAF
-if test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1; then
- AC_LIBOBJ([fmaf])
+gl_CONDITIONAL([GL_COND_OBJ_FMAF],
+ [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1])
+AM_COND_IF([GL_COND_OBJ_FMAF], [
gl_PREREQ_FMAF
-fi
+])
gl_MATH_MODULE_INDICATOR([fmaf])
Makefile.am:
+if GL_COND_OBJ_FMAF
+lib_SOURCES += fmaf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMAL
-if test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; then
- AC_LIBOBJ([fmal])
+gl_CONDITIONAL([GL_COND_OBJ_FMAL],
+ [test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1])
+AM_COND_IF([GL_COND_OBJ_FMAL], [
gl_PREREQ_FMAL
-fi
+])
gl_MATH_MODULE_INDICATOR([fmal])
Makefile.am:
+if GL_COND_OBJ_FMAL
+lib_SOURCES += fmal.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMOD
-if test $REPLACE_FMOD = 1; then
- AC_LIBOBJ([fmod])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FMOD], [test $REPLACE_FMOD = 1])
gl_MATH_MODULE_INDICATOR([fmod])
Makefile.am:
+if GL_COND_OBJ_FMOD
+lib_SOURCES += fmod.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMODF
-if test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1; then
- AC_LIBOBJ([fmodf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FMODF],
+ [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1])
gl_MATH_MODULE_INDICATOR([fmodf])
Makefile.am:
+if GL_COND_OBJ_FMODF
+lib_SOURCES += fmodf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FMODL
-if test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; then
- AC_LIBOBJ([fmodl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FMODL],
+ [test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1])
gl_MATH_MODULE_INDICATOR([fmodl])
Makefile.am:
+if GL_COND_OBJ_FMODL
+lib_SOURCES += fmodl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FORKPTY
-if test $HAVE_FORKPTY = 0 || test $REPLACE_FORKPTY = 1; then
- AC_LIBOBJ([forkpty])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FORKPTY],
+ [test $HAVE_FORKPTY = 0 || test $REPLACE_FORKPTY = 1])
gl_PTY_MODULE_INDICATOR([forkpty])
Makefile.am:
+if GL_COND_OBJ_FORKPTY
+lib_SOURCES += forkpty.c
+endif
Include:
<pty.h>
configure.ac:
gl_FUNC_FPENDING
-if test $gl_cv_func___fpending = no; then
- AC_LIBOBJ([fpending])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FPENDING], [test $gl_cv_func___fpending = no])
Makefile.am:
+if GL_COND_OBJ_FPENDING
+lib_SOURCES += fpending.c
+endif
Include:
"fpending.h"
configure.ac:
gl_FUNC_FPURGE
-if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
- AC_LIBOBJ([fpurge])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FPURGE],
+ [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1])
gl_STDIO_MODULE_INDICATOR([fpurge])
Makefile.am:
+if GL_COND_OBJ_FPURGE
+lib_SOURCES += fpurge.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FREADABLE
-if test $ac_cv_func___freadable = no; then
- AC_LIBOBJ([freadable])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FREADABLE], [test $ac_cv_func___freadable = no])
Makefile.am:
+if GL_COND_OBJ_FREADABLE
+lib_SOURCES += freadable.c
+endif
Include:
"freadable.h"
configure.ac:
gl_FUNC_FREADAHEAD
-if test $ac_cv_func___freadahead = no; then
- AC_LIBOBJ([freadahead])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FREADAHEAD], [test $ac_cv_func___freadahead = no])
Makefile.am:
+if GL_COND_OBJ_FREADAHEAD
+lib_SOURCES += freadahead.c
+endif
Include:
"freadahead.h"
configure.ac:
gl_FUNC_FREADPTR
-if test $ac_cv_func___freadptr = no; then
- AC_LIBOBJ([freadptr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FREADPTR], [test $ac_cv_func___freadptr = no])
Makefile.am:
+if GL_COND_OBJ_FREADPTR
+lib_SOURCES += freadptr.c
+endif
Include:
"freadptr.h"
configure.ac:
gl_FUNC_FREE
-if test $REPLACE_FREE = 1; then
- AC_LIBOBJ([free])
+gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
+AM_COND_IF([GL_COND_OBJ_FREE], [
gl_PREREQ_FREE
-fi
+])
gl_STDLIB_MODULE_INDICATOR([free-posix])
Makefile.am:
+if GL_COND_OBJ_FREE
+lib_SOURCES += free.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_FREOPEN
-if test $REPLACE_FREOPEN = 1; then
- AC_LIBOBJ([freopen])
+gl_CONDITIONAL([GL_COND_OBJ_FREOPEN], [test $REPLACE_FREOPEN = 1])
+AM_COND_IF([GL_COND_OBJ_FREOPEN], [
gl_PREREQ_FREOPEN
-fi
+])
gl_STDIO_MODULE_INDICATOR([freopen])
Makefile.am:
+if GL_COND_OBJ_FREOPEN
+lib_SOURCES += freopen.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FREXPF
-if test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1; then
- AC_LIBOBJ([frexpf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FREXPF],
+ [test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1])
gl_MATH_MODULE_INDICATOR([frexpf])
Makefile.am:
+if GL_COND_OBJ_FREXPF
+lib_SOURCES += frexpf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_FSEEK
-if test $REPLACE_FSEEK = 1; then
- AC_LIBOBJ([fseek])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1])
gl_STDIO_MODULE_INDICATOR([fseek])
Makefile.am:
+if GL_COND_OBJ_FSEEK
+lib_SOURCES += fseek.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FSEEKO
-if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
- AC_LIBOBJ([fseeko])
+gl_CONDITIONAL([GL_COND_OBJ_FSEEKO],
+ [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1])
+AM_COND_IF([GL_COND_OBJ_FSEEKO], [
gl_PREREQ_FSEEKO
-fi
+])
gl_STDIO_MODULE_INDICATOR([fseeko])
Makefile.am:
+if GL_COND_OBJ_FSEEKO
+lib_SOURCES += fseeko.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FSETERR
-if test $ac_cv_func___fseterr = no; then
- AC_LIBOBJ([fseterr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FSETERR], [test $ac_cv_func___fseterr = no])
Makefile.am:
+if GL_COND_OBJ_FSETERR
+lib_SOURCES += fseterr.c
+endif
Include:
"fseterr.h"
configure.ac:
gl_FUNC_FSTAT
-if test $REPLACE_FSTAT = 1; then
- AC_LIBOBJ([fstat])
+gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
+AM_COND_IF([GL_COND_OBJ_FSTAT], [
case "$host_os" in
mingw*)
AC_LIBOBJ([stat-w32])
;;
esac
gl_PREREQ_FSTAT
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([fstat])
Makefile.am:
+if GL_COND_OBJ_FSTAT
+lib_SOURCES += fstat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_FSTATAT
-if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
- AC_LIBOBJ([fstatat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FSTATAT],
+ [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1])
gl_SYS_STAT_MODULE_INDICATOR([fstatat])
Makefile.am:
+if GL_COND_OBJ_FSTATAT
+lib_SOURCES += fstatat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FSUSAGE
-if test $gl_cv_fs_space = yes; then
- AC_LIBOBJ([fsusage])
+gl_CONDITIONAL([GL_COND_OBJ_FSUSAGE], [test $gl_cv_fs_space = yes])
+AM_COND_IF([GL_COND_OBJ_FSUSAGE], [
gl_PREREQ_FSUSAGE_EXTRA
-fi
+])
Makefile.am:
+if GL_COND_OBJ_FSUSAGE
+lib_SOURCES += fsusage.c
+endif
Include:
"fsusage.h"
configure.ac:
gl_FUNC_FSYNC
-if test $HAVE_FSYNC = 0; then
- AC_LIBOBJ([fsync])
+gl_CONDITIONAL([GL_COND_OBJ_FSYNC], [test $HAVE_FSYNC = 0])
+AM_COND_IF([GL_COND_OBJ_FSYNC], [
gl_PREREQ_FSYNC
-fi
+])
gl_UNISTD_MODULE_INDICATOR([fsync])
Makefile.am:
+if GL_COND_OBJ_FSYNC
+lib_SOURCES += fsync.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_FTELL
-if test $REPLACE_FTELL = 1; then
- AC_LIBOBJ([ftell])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1])
gl_STDIO_MODULE_INDICATOR([ftell])
Makefile.am:
+if GL_COND_OBJ_FTELL
+lib_SOURCES += ftell.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FTELLO
-if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
- AC_LIBOBJ([ftello])
+gl_CONDITIONAL([GL_COND_OBJ_FTELLO],
+ [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1])
+AM_COND_IF([GL_COND_OBJ_FTELLO], [
gl_PREREQ_FTELLO
-fi
+])
gl_STDIO_MODULE_INDICATOR([ftello])
Makefile.am:
+if GL_COND_OBJ_FTELLO
+lib_SOURCES += ftello.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_FTRUNCATE
-if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
- AC_LIBOBJ([ftruncate])
+gl_CONDITIONAL([GL_COND_OBJ_FTRUNCATE],
+ [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1])
+AM_COND_IF([GL_COND_OBJ_FTRUNCATE], [
gl_PREREQ_FTRUNCATE
-fi
+])
gl_UNISTD_MODULE_INDICATOR([ftruncate])
Makefile.am:
+if GL_COND_OBJ_FTRUNCATE
+lib_SOURCES += ftruncate.c
+endif
Include:
<unistd.h>
gl_FUNC_FTS
dnl Use this version of fts unconditionally, since the GNU libc and
dnl NetBSD versions have bugs and/or unnecessary limitations.
-AC_LIBOBJ([fts])
+gl_CONDITIONAL([GL_COND_OBJ_FTS], [true])
Makefile.am:
+if GL_COND_OBJ_FTS
+lib_SOURCES += fts.c
+endif
Include:
"fts_.h"
configure.ac:
gl_FUNC_FUTIMENS
-if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
- AC_LIBOBJ([futimens])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FUTIMENS],
+ [test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1])
gl_SYS_STAT_MODULE_INDICATOR([futimens])
Makefile.am:
+if GL_COND_OBJ_FUTIMENS
+lib_SOURCES += futimens.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_FWRITABLE
-if test $ac_cv_func___fwritable = no; then
- AC_LIBOBJ([fwritable])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FWRITABLE], [test $ac_cv_func___fwritable = no])
Makefile.am:
+if GL_COND_OBJ_FWRITABLE
+lib_SOURCES += fwritable.c
+endif
Include:
"fwritable.h"
configure.ac:
gl_FUNC_FWRITING
-if test $ac_cv_func___fwriting = no; then
- AC_LIBOBJ([fwriting])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_FWRITING], [test $ac_cv_func___fwriting = no])
Makefile.am:
+if GL_COND_OBJ_FWRITING
+lib_SOURCES += fwriting.c
+endif
Include:
"fwriting.h"
configure.ac:
gl_GETADDRINFO
-if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
- AC_LIBOBJ([getaddrinfo])
-fi
-if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
- AC_LIBOBJ([gai_strerror])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
+ [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
+gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
+ [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
gl_NETDB_MODULE_INDICATOR([getaddrinfo])
Makefile.am:
+if GL_COND_OBJ_GETADDRINFO
+lib_SOURCES += getaddrinfo.c
+endif
+if GL_COND_OBJ_GAI_STRERROR
+lib_SOURCES += gai_strerror.c
+endif
Include:
<netdb.h>
configure.ac:
gl_FUNC_GETCWD
-if test $REPLACE_GETCWD = 1; then
- AC_LIBOBJ([getcwd])
+gl_CONDITIONAL([GL_COND_OBJ_GETCWD], [test $REPLACE_GETCWD = 1])
+AM_COND_IF([GL_COND_OBJ_GETCWD], [
gl_PREREQ_GETCWD
-fi
+])
gl_MODULE_INDICATOR([getcwd])
gl_UNISTD_MODULE_INDICATOR([getcwd])
Makefile.am:
+if GL_COND_OBJ_GETCWD
+lib_SOURCES += getcwd.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETCWD_LGPL
-if test $REPLACE_GETCWD = 1; then
- AC_LIBOBJ([getcwd-lgpl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETCWD_LGPL], [test $REPLACE_GETCWD = 1])
gl_UNISTD_MODULE_INDICATOR([getcwd])
Makefile.am:
+if GL_COND_OBJ_GETCWD_LGPL
+lib_SOURCES += getcwd-lgpl.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETDELIM
-if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
- AC_LIBOBJ([getdelim])
+gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
+ [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
+AM_COND_IF([GL_COND_OBJ_GETDELIM], [
gl_PREREQ_GETDELIM
-fi
+])
gl_STDIO_MODULE_INDICATOR([getdelim])
Makefile.am:
+if GL_COND_OBJ_GETDELIM
+lib_SOURCES += getdelim.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_GETDOMAINNAME
-if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then
- AC_LIBOBJ([getdomainname])
+gl_CONDITIONAL([GL_COND_OBJ_GETDOMAINNAME],
+ [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1])
+AM_COND_IF([GL_COND_OBJ_GETDOMAINNAME], [
gl_PREREQ_GETDOMAINNAME
-fi
+])
gl_UNISTD_MODULE_INDICATOR([getdomainname])
Makefile.am:
+if GL_COND_OBJ_GETDOMAINNAME
+lib_SOURCES += getdomainname.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETDTABLESIZE
-if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
- AC_LIBOBJ([getdtablesize])
+gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
+ [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
+AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
gl_PREREQ_GETDTABLESIZE
-fi
+])
gl_UNISTD_MODULE_INDICATOR([getdtablesize])
Makefile.am:
+if GL_COND_OBJ_GETDTABLESIZE
+lib_SOURCES += getdtablesize.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETENTROPY
-if test $HAVE_GETENTROPY = 0; then
- AC_LIBOBJ([getentropy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETENTROPY], [test $HAVE_GETENTROPY = 0])
gl_UNISTD_MODULE_INDICATOR([getentropy])
Makefile.am:
+if GL_COND_OBJ_GETENTROPY
+lib_SOURCES += getentropy.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETGROUPS
-if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
- AC_LIBOBJ([getgroups])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETGROUPS],
+ [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1])
gl_UNISTD_MODULE_INDICATOR([getgroups])
Makefile.am:
+if GL_COND_OBJ_GETGROUPS
+lib_SOURCES += getgroups.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETHOSTNAME
-if test $HAVE_GETHOSTNAME = 0; then
- AC_LIBOBJ([gethostname])
+gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
+AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
gl_PREREQ_GETHOSTNAME
-fi
+])
gl_UNISTD_MODULE_INDICATOR([gethostname])
Makefile.am:
+if GL_COND_OBJ_GETHOSTNAME
+lib_SOURCES += gethostname.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETLINE
-if test $REPLACE_GETLINE = 1; then
- AC_LIBOBJ([getline])
+gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
+AM_COND_IF([GL_COND_OBJ_GETLINE], [
gl_PREREQ_GETLINE
-fi
+])
gl_STDIO_MODULE_INDICATOR([getline])
Makefile.am:
+if GL_COND_OBJ_GETLINE
+lib_SOURCES += getline.c
+endif
Include:
<stdio.h>
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
gl_GETLOADAVG
-if test $HAVE_GETLOADAVG = 0; then
- AC_LIBOBJ([getloadavg])
+gl_CONDITIONAL([GL_COND_OBJ_GETLOADAVG], [test $HAVE_GETLOADAVG = 0])
+AM_COND_IF([GL_COND_OBJ_GETLOADAVG], [
gl_PREREQ_GETLOADAVG
-fi
+])
gl_STDLIB_MODULE_INDICATOR([getloadavg])
Makefile.am:
+if GL_COND_OBJ_GETLOADAVG
+lib_SOURCES += getloadavg.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_GETLOGIN
-if test $HAVE_GETLOGIN = 0; then
- AC_LIBOBJ([getlogin])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETLOGIN], [test $HAVE_GETLOGIN = 0])
gl_UNISTD_MODULE_INDICATOR([getlogin])
AC_REQUIRE([gl_LIB_GETLOGIN])
Makefile.am:
+if GL_COND_OBJ_GETLOGIN
+lib_SOURCES += getlogin.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETLOGIN_R
-if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
- AC_LIBOBJ([getlogin_r])
+gl_CONDITIONAL([GL_COND_OBJ_GETLOGIN_R],
+ [test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1])
+AM_COND_IF([GL_COND_OBJ_GETLOGIN_R], [
gl_PREREQ_GETLOGIN_R
-fi
+])
gl_UNISTD_MODULE_INDICATOR([getlogin_r])
AC_REQUIRE([gl_LIB_GETLOGIN])
Makefile.am:
+if GL_COND_OBJ_GETLOGIN_R
+lib_SOURCES += getlogin_r.c
+endif
Include:
<unistd.h>
gl_CONDITIONAL_HEADER([getopt.h])
gl_CONDITIONAL_HEADER([getopt-cdefs.h])
AC_PROG_MKDIR_P
-if test $REPLACE_GETOPT = 1; then
- AC_LIBOBJ([getopt])
- AC_LIBOBJ([getopt1])
+gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
+AM_COND_IF([GL_COND_OBJ_GETOPT], [
dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
gl_UNISTD_H_REQUIRE_DEFAULTS
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
-fi
+])
gl_UNISTD_MODULE_INDICATOR([getopt-posix])
Makefile.am:
MOSTLYCLEANFILES += getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t
+if GL_COND_OBJ_GETOPT
+lib_SOURCES += getopt.c getopt1.c
+endif
+
Include:
<unistd.h>
configure.ac:
gl_FUNC_GETPAGESIZE
-if test $REPLACE_GETPAGESIZE = 1; then
- AC_LIBOBJ([getpagesize])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETPAGESIZE], [test $REPLACE_GETPAGESIZE = 1])
gl_UNISTD_MODULE_INDICATOR([getpagesize])
Makefile.am:
+if GL_COND_OBJ_GETPAGESIZE
+lib_SOURCES += getpagesize.c
+endif
Include:
<unistd.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([getpeername])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETPEERNAME],
+ [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
Makefile.am:
+if GL_COND_OBJ_GETPEERNAME
+lib_SOURCES += getpeername.c
+endif
Include:
<sys/socket.h>
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
gl_FUNC_GETRANDOM
-if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
- AC_LIBOBJ([getrandom])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETRANDOM],
+ [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1])
gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
Makefile.am:
+if GL_COND_OBJ_GETRANDOM
+lib_SOURCES += getrandom.c
+endif
Include:
<sys/random.h>
configure.ac:
gl_FUNC_GETRUSAGE
-if test $HAVE_GETRUSAGE = 0; then
- AC_LIBOBJ([getrusage])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETRUSAGE], [test $HAVE_GETRUSAGE = 0])
gl_SYS_RESOURCE_MODULE_INDICATOR([getrusage])
Makefile.am:
+if GL_COND_OBJ_GETRUSAGE
+lib_SOURCES += getrusage.c
+endif
Include:
<sys/resource.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([getsockname])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETSOCKNAME],
+ [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
Makefile.am:
+if GL_COND_OBJ_GETSOCKNAME
+lib_SOURCES += getsockname.c
+endif
Include:
<sys/socket.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([getsockopt])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETSOCKOPT],
+ [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
Makefile.am:
+if GL_COND_OBJ_GETSOCKOPT
+lib_SOURCES += getsockopt.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_GETSUBOPT
-if test $HAVE_GETSUBOPT = 0; then
- AC_LIBOBJ([getsubopt])
+gl_CONDITIONAL([GL_COND_OBJ_GETSUBOPT], [test $HAVE_GETSUBOPT = 0])
+AM_COND_IF([GL_COND_OBJ_GETSUBOPT], [
gl_PREREQ_GETSUBOPT
-fi
+])
gl_STDLIB_MODULE_INDICATOR([getsubopt])
Makefile.am:
+if GL_COND_OBJ_GETSUBOPT
+lib_SOURCES += getsubopt.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_GETTIMEOFDAY
-if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
- AC_LIBOBJ([gettimeofday])
+gl_CONDITIONAL([GL_COND_OBJ_GETTIMEOFDAY],
+ [test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1])
+AM_COND_IF([GL_COND_OBJ_GETTIMEOFDAY], [
gl_PREREQ_GETTIMEOFDAY
-fi
+])
gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
Makefile.am:
+if GL_COND_OBJ_GETTIMEOFDAY
+lib_SOURCES += gettimeofday.c
+endif
Include:
<sys/time.h>
configure.ac:
gl_FUNC_GETUMASK
-if test $HAVE_GETUMASK = 0; then
- AC_LIBOBJ([getumask])
+gl_CONDITIONAL([GL_COND_OBJ_GETUMASK], [test $HAVE_GETUMASK = 0])
+AM_COND_IF([GL_COND_OBJ_GETUMASK], [
gl_PREREQ_GETUMASK
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([getumask])
Makefile.am:
+if GL_COND_OBJ_GETUMASK
+lib_SOURCES += getumask.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_GETUSERSHELL
-if test $HAVE_GETUSERSHELL = 0; then
- AC_LIBOBJ([getusershell])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETUSERSHELL], [test $HAVE_GETUSERSHELL = 0])
gl_UNISTD_MODULE_INDICATOR([getusershell])
Makefile.am:
+if GL_COND_OBJ_GETUSERSHELL
+lib_SOURCES += getusershell.c
+endif
Include:
<unistd.h>
gl_GLOB
dnl Because of gl_REPLACE_GLOB_H:
gl_CONDITIONAL_HEADER([glob.h])
-if test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1; then
- AC_LIBOBJ([glob])
- AC_LIBOBJ([globfree])
+gl_CONDITIONAL([GL_COND_OBJ_GLOB],
+ [test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1])
+AM_COND_IF([GL_COND_OBJ_GLOB], [
gl_PREREQ_GLOB
-fi
-if test $HAVE_GLOB_PATTERN_P = 0 || test $REPLACE_GLOB_PATTERN_P = 1; then
- AC_LIBOBJ([glob_pattern_p])
-fi
+])
+gl_CONDITIONAL([GL_COND_OBJ_GLOB_PATTERN_P],
+ [test $HAVE_GLOB_PATTERN_P = 0 || test $REPLACE_GLOB_PATTERN_P = 1])
gl_GLOB_MODULE_INDICATOR([glob])
Makefile.am:
+if GL_COND_OBJ_GLOB
+lib_SOURCES += glob.c globfree.c
+endif
+if GL_COND_OBJ_GLOB_PATTERN_P
+lib_SOURCES += glob_pattern_p.c
+endif
Include:
<glob.h>
configure.ac:
gl_FUNC_GRANTPT
-if test $HAVE_GRANTPT = 0; then
- AC_LIBOBJ([grantpt])
+gl_CONDITIONAL([GL_COND_OBJ_GRANTPT], [test $HAVE_GRANTPT = 0])
+AM_COND_IF([GL_COND_OBJ_GRANTPT], [
gl_PREREQ_GRANTPT
-fi
+])
gl_STDLIB_MODULE_INDICATOR([grantpt])
Makefile.am:
+if GL_COND_OBJ_GRANTPT
+lib_SOURCES += grantpt.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_GROUP_MEMBER
-if test $HAVE_GROUP_MEMBER = 0; then
- AC_LIBOBJ([group-member])
+gl_CONDITIONAL([GL_COND_OBJ_GROUP_MEMBER], [test $HAVE_GROUP_MEMBER = 0])
+AM_COND_IF([GL_COND_OBJ_GROUP_MEMBER], [
gl_PREREQ_GROUP_MEMBER
-fi
+])
gl_UNISTD_MODULE_INDICATOR([group-member])
Makefile.am:
+if GL_COND_OBJ_GROUP_MEMBER
+lib_SOURCES += group-member.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_HYPOT
-if test $REPLACE_HYPOT = 1; then
- AC_LIBOBJ([hypot])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_HYPOT], [test $REPLACE_HYPOT = 1])
gl_MATH_MODULE_INDICATOR([hypot])
Makefile.am:
+if GL_COND_OBJ_HYPOT
+lib_SOURCES += hypot.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_HYPOTF
-if test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1; then
- AC_LIBOBJ([hypotf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_HYPOTF],
+ [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1])
gl_MATH_MODULE_INDICATOR([hypotf])
Makefile.am:
+if GL_COND_OBJ_HYPOTF
+lib_SOURCES += hypotf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_HYPOTL
-if test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; then
- AC_LIBOBJ([hypotl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_HYPOTL],
+ [test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1])
gl_MATH_MODULE_INDICATOR([hypotl])
Makefile.am:
+if GL_COND_OBJ_HYPOTL
+lib_SOURCES += hypotl.c
+endif
Include:
<math.h>
gl_FUNC_ICONV_OPEN
dnl Because of gl_REPLACE_ICONV_H:
gl_CONDITIONAL_HEADER([iconv.h])
-if test $REPLACE_ICONV_OPEN = 1; then
- AC_LIBOBJ([iconv_open])
-fi
-if test $REPLACE_ICONV = 1; then
- AC_LIBOBJ([iconv])
- AC_LIBOBJ([iconv_close])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ICONV_OPEN], [test $REPLACE_ICONV_OPEN = 1])
+gl_CONDITIONAL([GL_COND_OBJ_ICONV], [test $REPLACE_ICONV = 1])
Makefile.am:
+if GL_COND_OBJ_ICONV_OPEN
+lib_SOURCES += iconv_open.c
+endif
+if GL_COND_OBJ_ICONV
+lib_SOURCES += iconv.c iconv_close.c
+endif
+
$(srcdir)/iconv_open-aix.h: $(srcdir)/iconv_open-aix.gperf
$(V_GPERF)$(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t && \
mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h
configure.ac:
gl_FUNC_ILOGB
-if test $HAVE_ILOGB = 0 || test $REPLACE_ILOGB = 1; then
- AC_LIBOBJ([ilogb])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ILOGB],
+ [test $HAVE_ILOGB = 0 || test $REPLACE_ILOGB = 1])
gl_MATH_MODULE_INDICATOR([ilogb])
Makefile.am:
+if GL_COND_OBJ_ILOGB
+lib_SOURCES += ilogb.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ILOGBF
-if test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1; then
- AC_LIBOBJ([ilogbf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ILOGBF],
+ [test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1])
gl_MATH_MODULE_INDICATOR([ilogbf])
Makefile.am:
+if GL_COND_OBJ_ILOGBF
+lib_SOURCES += ilogbf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ILOGBL
-if test $HAVE_ILOGBL = 0 || test $REPLACE_ILOGBL = 1; then
- AC_LIBOBJ([ilogbl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ILOGBL],
+ [test $HAVE_ILOGBL = 0 || test $REPLACE_ILOGBL = 1])
gl_MATH_MODULE_INDICATOR([ilogbl])
Makefile.am:
+if GL_COND_OBJ_ILOGBL
+lib_SOURCES += ilogbl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_IMAXABS
-if test $ac_cv_func_imaxabs = no; then
- AC_LIBOBJ([imaxabs])
+gl_CONDITIONAL([GL_COND_OBJ_IMAXABS], [test $ac_cv_func_imaxabs = no])
+AM_COND_IF([GL_COND_OBJ_IMAXABS], [
gl_PREREQ_IMAXABS
-fi
+])
gl_INTTYPES_MODULE_INDICATOR([imaxabs])
Makefile.am:
+if GL_COND_OBJ_IMAXABS
+lib_SOURCES += imaxabs.c
+endif
Include:
<inttypes.h>
configure.ac:
gl_FUNC_IMAXDIV
-if test $ac_cv_func_imaxdiv = no; then
- AC_LIBOBJ([imaxdiv])
+gl_CONDITIONAL([GL_COND_OBJ_IMAXDIV], [test $ac_cv_func_imaxdiv = no])
+AM_COND_IF([GL_COND_OBJ_IMAXDIV], [
gl_PREREQ_IMAXDIV
-fi
+])
gl_INTTYPES_MODULE_INDICATOR([imaxdiv])
Makefile.am:
+if GL_COND_OBJ_IMAXDIV
+lib_SOURCES += imaxdiv.c
+endif
Include:
<inttypes.h>
configure.ac:
gl_FUNC_INET_NTOP
-if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
- AC_LIBOBJ([inet_ntop])
+gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
+ [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
+AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
gl_PREREQ_INET_NTOP
-fi
+])
gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
Makefile.am:
+if GL_COND_OBJ_INET_NTOP
+lib_SOURCES += inet_ntop.c
+endif
License:
LGPLv2+
configure.ac:
gl_FUNC_INET_PTON
-if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
- AC_LIBOBJ([inet_pton])
+gl_CONDITIONAL([GL_COND_OBJ_INET_PTON],
+ [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1])
+AM_COND_IF([GL_COND_OBJ_INET_PTON], [
gl_PREREQ_INET_PTON
-fi
+])
gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
Makefile.am:
+if GL_COND_OBJ_INET_PTON
+lib_SOURCES += inet_pton.c
+endif
License:
LGPLv2+
configure.ac:
gl_FUNC_IOCTL
-if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
- AC_LIBOBJ([ioctl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_IOCTL],
+ [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1])
gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
Makefile.am:
+if GL_COND_OBJ_IOCTL
+lib_SOURCES += ioctl.c
+endif
Include:
<sys/ioctl.h>
configure.ac:
gl_ISAPIPE
-if test $HAVE_ISAPIPE = 0; then
- AC_LIBOBJ([isapipe])
+gl_CONDITIONAL([GL_COND_OBJ_ISAPIPE], [test $HAVE_ISAPIPE = 0])
+AM_COND_IF([GL_COND_OBJ_ISAPIPE], [
gl_PREREQ_ISAPIPE
-fi
+])
Makefile.am:
+if GL_COND_OBJ_ISAPIPE
+lib_SOURCES += isapipe.c
+endif
Include:
"isapipe.h"
configure.ac:
gl_FUNC_ISATTY
-if test $REPLACE_ISATTY = 1; then
- AC_LIBOBJ([isatty])
+gl_CONDITIONAL([GL_COND_OBJ_ISATTY], [test $REPLACE_ISATTY = 1])
+AM_COND_IF([GL_COND_OBJ_ISATTY], [
gl_PREREQ_ISATTY
-fi
+])
gl_UNISTD_MODULE_INDICATOR([isatty])
Makefile.am:
+if GL_COND_OBJ_ISATTY
+lib_SOURCES += isatty.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_ISBLANK
-if test $HAVE_ISBLANK = 0; then
- AC_LIBOBJ([isblank])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISBLANK], [test $HAVE_ISBLANK = 0])
gl_MODULE_INDICATOR([isblank])
gl_CTYPE_MODULE_INDICATOR([isblank])
Makefile.am:
+if GL_COND_OBJ_ISBLANK
+lib_SOURCES += isblank.c
+endif
Include:
<ctype.h>
configure.ac:
gl_ISFINITE
-if test $REPLACE_ISFINITE = 1; then
- AC_LIBOBJ([isfinite])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISFINITE], [test $REPLACE_ISFINITE = 1])
gl_MATH_MODULE_INDICATOR([isfinite])
Makefile.am:
+if GL_COND_OBJ_ISFINITE
+lib_SOURCES += isfinite.c
+endif
Include:
<math.h>
configure.ac:
gl_ISINF
-if test $REPLACE_ISINF = 1; then
- AC_LIBOBJ([isinf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISINF], [test $REPLACE_ISINF = 1])
gl_MATH_MODULE_INDICATOR([isinf])
Makefile.am:
+if GL_COND_OBJ_ISINF
+lib_SOURCES += isinf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ISWBLANK
-if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
- :
-else
- if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
- AC_LIBOBJ([iswblank])
- fi
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISWBLANK],
+ [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && { test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; }])
gl_WCTYPE_MODULE_INDICATOR([iswblank])
Makefile.am:
+if GL_COND_OBJ_ISWBLANK
+lib_SOURCES += iswblank.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_ISWCTYPE
-if test $HAVE_WCTYPE_T = 0 || test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
- AC_LIBOBJ([iswctype])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISWCTYPE],
+ [test $HAVE_WCTYPE_T = 0 || test $GNULIBHEADERS_OVERRIDE_WINT_T = 1])
gl_WCTYPE_MODULE_INDICATOR([iswctype])
Makefile.am:
+if GL_COND_OBJ_ISWCTYPE
+lib_SOURCES += iswctype.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_ISWDIGIT
-if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
- :
-else
- if test $REPLACE_ISWDIGIT = 1; then
- AC_LIBOBJ([iswdigit])
- fi
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISWDIGIT],
+ [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && test $REPLACE_ISWDIGIT = 1])
gl_WCTYPE_MODULE_INDICATOR([iswdigit])
Makefile.am:
+if GL_COND_OBJ_ISWDIGIT
+lib_SOURCES += iswdigit.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_ISWXDIGIT
-if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
- :
-else
- if test $REPLACE_ISWXDIGIT = 1; then
- AC_LIBOBJ([iswxdigit])
- fi
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ISWXDIGIT],
+ [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && test $REPLACE_ISWXDIGIT = 1])
gl_WCTYPE_MODULE_INDICATOR([iswxdigit])
Makefile.am:
+if GL_COND_OBJ_ISWXDIGIT
+lib_SOURCES += iswxdigit.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_LCHMOD
-if test $HAVE_LCHMOD = 0; then
- AC_LIBOBJ([lchmod])
+gl_CONDITIONAL([GL_COND_OBJ_LCHMOD], [test $HAVE_LCHMOD = 0])
+AM_COND_IF([GL_COND_OBJ_LCHMOD], [
gl_PREREQ_LCHMOD
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([lchmod])
Makefile.am:
+if GL_COND_OBJ_LCHMOD
+lib_SOURCES += lchmod.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_LCHOWN
-if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
- AC_LIBOBJ([lchown])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LCHOWN],
+ [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1])
gl_UNISTD_MODULE_INDICATOR([lchown])
Makefile.am:
+if GL_COND_OBJ_LCHOWN
+lib_SOURCES += lchown.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_LDEXPF
-if test $HAVE_LDEXPF = 0; then
- AC_LIBOBJ([ldexpf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LDEXPF], [test $HAVE_LDEXPF = 0])
gl_MATH_MODULE_INDICATOR([ldexpf])
Makefile.am:
+if GL_COND_OBJ_LDEXPF
+lib_SOURCES += ldexpf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LDEXPL
-if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
- AC_LIBOBJ([ldexpl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LDEXPL],
+ [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no])
gl_MATH_MODULE_INDICATOR([ldexpl])
Makefile.am:
+if GL_COND_OBJ_LDEXPL
+lib_SOURCES += ldexpl.c
+endif
Include:
<math.h>
gl_LIBGMP
gl_CONDITIONAL_HEADER([gmp.h])
AC_PROG_MKDIR_P
-if test $HAVE_LIBGMP != yes; then
- AC_LIBOBJ([mini-gmp-gnulib])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MINI_GMP_GNULIB], [test $HAVE_LIBGMP != yes])
Makefile.am:
BUILT_SOURCES += $(GMP_H)
endif
MOSTLYCLEANFILES += gmp.h gmp.h-t
+if GL_COND_OBJ_MINI_GMP_GNULIB
+lib_SOURCES += mini-gmp-gnulib.c
+endif
+
Include:
<gmp.h>
configure.ac:
gl_FUNC_LINK
-if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
- AC_LIBOBJ([link])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LINK],
+ [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1])
gl_UNISTD_MODULE_INDICATOR([link])
Makefile.am:
+if GL_COND_OBJ_LINK
+lib_SOURCES += link.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_LINKAT
-if test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1; then
- AC_LIBOBJ([linkat])
+gl_CONDITIONAL([GL_COND_OBJ_LINKAT],
+ [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1])
+AM_COND_IF([GL_COND_OBJ_LINKAT], [
AC_LIBOBJ([at-func2])
-fi
+])
gl_UNISTD_MODULE_INDICATOR([linkat])
Makefile.am:
+if GL_COND_OBJ_LINKAT
+lib_SOURCES += linkat.c
+endif
Include:
<fcntl.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([listen])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LISTEN], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([listen])
Makefile.am:
+if GL_COND_OBJ_LISTEN
+lib_SOURCES += listen.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_LOCALECONV
-if test $REPLACE_LOCALECONV = 1; then
- AC_LIBOBJ([localeconv])
+gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
+AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
gl_PREREQ_LOCALECONV
-fi
+])
gl_LOCALE_MODULE_INDICATOR([localeconv])
Makefile.am:
+if GL_COND_OBJ_LOCALECONV
+lib_SOURCES += localeconv.c
+endif
Include:
<locale.h>
configure.ac:
gl_FUNC_LOCALTIME
-if test $REPLACE_LOCALTIME = 1; then
- AC_LIBOBJ([localtime])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOCALTIME], [test $REPLACE_LOCALTIME = 1])
gl_TIME_MODULE_INDICATOR([localtime])
Makefile.am:
+if GL_COND_OBJ_LOCALTIME
+lib_SOURCES += localtime.c
+endif
Include:
<time.h>
configure.ac:
AC_REQUIRE([gl_FUNC_LOG])
-if test $REPLACE_LOG = 1; then
- AC_LIBOBJ([log])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG], [test $REPLACE_LOG = 1])
gl_MATH_MODULE_INDICATOR([log])
Makefile.am:
+if GL_COND_OBJ_LOG
+lib_SOURCES += log.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG10
-if test $REPLACE_LOG10 = 1; then
- AC_LIBOBJ([log10])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG10], [test $REPLACE_LOG10 = 1])
gl_MATH_MODULE_INDICATOR([log10])
Makefile.am:
+if GL_COND_OBJ_LOG10
+lib_SOURCES += log10.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG10F
-if test $HAVE_LOG10F = 0 || test $REPLACE_LOG10F = 1; then
- AC_LIBOBJ([log10f])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG10F],
+ [test $HAVE_LOG10F = 0 || test $REPLACE_LOG10F = 1])
gl_MATH_MODULE_INDICATOR([log10f])
Makefile.am:
+if GL_COND_OBJ_LOG10F
+lib_SOURCES += log10f.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG10L
-if test $HAVE_LOG10L = 0 || test $REPLACE_LOG10L = 1; then
- AC_LIBOBJ([log10l])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG10L],
+ [test $HAVE_LOG10L = 0 || test $REPLACE_LOG10L = 1])
gl_MATH_MODULE_INDICATOR([log10l])
Makefile.am:
+if GL_COND_OBJ_LOG10L
+lib_SOURCES += log10l.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG1P
-if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
- AC_LIBOBJ([log1p])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG1P],
+ [test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1])
gl_MATH_MODULE_INDICATOR([log1p])
Makefile.am:
+if GL_COND_OBJ_LOG1P
+lib_SOURCES += log1p.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG1PF
-if test $HAVE_LOG1PF = 0 || test $REPLACE_LOG1PF = 1; then
- AC_LIBOBJ([log1pf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG1PF],
+ [test $HAVE_LOG1PF = 0 || test $REPLACE_LOG1PF = 1])
gl_MATH_MODULE_INDICATOR([log1pf])
Makefile.am:
+if GL_COND_OBJ_LOG1PF
+lib_SOURCES += log1pf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG1PL
-if test $HAVE_LOG1PL = 0 || test $REPLACE_LOG1PL = 1; then
- AC_LIBOBJ([log1pl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG1PL],
+ [test $HAVE_LOG1PL = 0 || test $REPLACE_LOG1PL = 1])
gl_MATH_MODULE_INDICATOR([log1pl])
Makefile.am:
+if GL_COND_OBJ_LOG1PL
+lib_SOURCES += log1pl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG2
-if test $HAVE_LOG2 = 0 || test $REPLACE_LOG2 = 1; then
- AC_LIBOBJ([log2])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG2],
+ [test $HAVE_LOG2 = 0 || test $REPLACE_LOG2 = 1])
gl_MATH_MODULE_INDICATOR([log2])
Makefile.am:
+if GL_COND_OBJ_LOG2
+lib_SOURCES += log2.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG2F
-if test $HAVE_LOG2F = 0 || test $REPLACE_LOG2F = 1; then
- AC_LIBOBJ([log2f])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG2F],
+ [test $HAVE_LOG2F = 0 || test $REPLACE_LOG2F = 1])
gl_MATH_MODULE_INDICATOR([log2f])
Makefile.am:
+if GL_COND_OBJ_LOG2F
+lib_SOURCES += log2f.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOG2L
-if test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; then
- AC_LIBOBJ([log2l])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOG2L],
+ [test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1])
gl_MATH_MODULE_INDICATOR([log2l])
Makefile.am:
+if GL_COND_OBJ_LOG2L
+lib_SOURCES += log2l.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOGB
-if test $HAVE_LOGB = 0 || test $REPLACE_LOGB = 1; then
- AC_LIBOBJ([logb])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGB],
+ [test $HAVE_LOGB = 0 || test $REPLACE_LOGB = 1])
gl_MATH_MODULE_INDICATOR([logb])
Makefile.am:
+if GL_COND_OBJ_LOGB
+lib_SOURCES += logb.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOGBF
-if test $HAVE_LOGBF = 0 || test $REPLACE_LOGBF = 1; then
- AC_LIBOBJ([logbf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGBF],
+ [test $HAVE_LOGBF = 0 || test $REPLACE_LOGBF = 1])
gl_MATH_MODULE_INDICATOR([logbf])
Makefile.am:
+if GL_COND_OBJ_LOGBF
+lib_SOURCES += logbf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOGBL
-if test $HAVE_LOGBL = 0 || test $REPLACE_LOGBL = 1; then
- AC_LIBOBJ([logbl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGBL],
+ [test $HAVE_LOGBL = 0 || test $REPLACE_LOGBL = 1])
gl_MATH_MODULE_INDICATOR([logbl])
Makefile.am:
+if GL_COND_OBJ_LOGBL
+lib_SOURCES += logbl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOGF
-if test $HAVE_LOGF = 0 || test $REPLACE_LOGF = 1; then
- AC_LIBOBJ([logf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGF],
+ [test $HAVE_LOGF = 0 || test $REPLACE_LOGF = 1])
gl_MATH_MODULE_INDICATOR([logf])
Makefile.am:
+if GL_COND_OBJ_LOGF
+lib_SOURCES += logf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LOGIN_TTY
-if test $ac_cv_func_login_tty = no; then
- AC_LIBOBJ([login_tty])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGIN_TTY], [test $ac_cv_func_login_tty = no])
gl_PTY_MODULE_INDICATOR([login_tty])
Makefile.am:
+if GL_COND_OBJ_LOGIN_TTY
+lib_SOURCES += login_tty.c
+endif
Include:
extern int login_tty (int);
configure.ac:
gl_FUNC_LOGL
-if test $HAVE_LOGL = 0 || test $REPLACE_LOGL = 1; then
- AC_LIBOBJ([logl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOGL],
+ [test $HAVE_LOGL = 0 || test $REPLACE_LOGL = 1])
gl_MATH_MODULE_INDICATOR([logl])
Makefile.am:
+if GL_COND_OBJ_LOGL
+lib_SOURCES += logl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_LSEEK
-if test $REPLACE_LSEEK = 1; then
- AC_LIBOBJ([lseek])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1])
gl_UNISTD_MODULE_INDICATOR([lseek])
Makefile.am:
+if GL_COND_OBJ_LSEEK
+lib_SOURCES += lseek.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_LSTAT
-if test $REPLACE_LSTAT = 1; then
- AC_LIBOBJ([lstat])
+gl_CONDITIONAL([GL_COND_OBJ_LSTAT], [test $REPLACE_LSTAT = 1])
+AM_COND_IF([GL_COND_OBJ_LSTAT], [
gl_PREREQ_LSTAT
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([lstat])
Makefile.am:
+if GL_COND_OBJ_LSTAT
+lib_SOURCES += lstat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_MBRLEN
-if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
- AC_LIBOBJ([mbrlen])
+gl_CONDITIONAL([GL_COND_OBJ_MBRLEN],
+ [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1])
+AM_COND_IF([GL_COND_OBJ_MBRLEN], [
gl_PREREQ_MBRLEN
-fi
+])
gl_WCHAR_MODULE_INDICATOR([mbrlen])
Makefile.am:
+if GL_COND_OBJ_MBRLEN
+lib_SOURCES += mbrlen.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_MBRTOC32
-if test $HAVE_MBRTOC32 = 0 || test $REPLACE_MBRTOC32 = 1; then
- AC_LIBOBJ([mbrtoc32])
+gl_CONDITIONAL([GL_COND_OBJ_MBRTOC32],
+ [test $HAVE_MBRTOC32 = 0 || test $REPLACE_MBRTOC32 = 1])
+AM_COND_IF([GL_COND_OBJ_MBRTOC32], [
if test $REPLACE_MBSTATE_T = 1; then
AC_LIBOBJ([lc-charset-dispatch])
AC_LIBOBJ([mbtowc-lock])
gl_PREREQ_MBTOWC_LOCK
fi
gl_PREREQ_MBRTOC32
-fi
+])
gl_UCHAR_MODULE_INDICATOR([mbrtoc32])
Makefile.am:
+if GL_COND_OBJ_MBRTOC32
+lib_SOURCES += mbrtoc32.c
+endif
Include:
<uchar.h>
configure.ac:
gl_FUNC_MBRTOWC
-if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
- AC_LIBOBJ([mbrtowc])
+gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
+ [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
+AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
if test $REPLACE_MBSTATE_T = 1; then
AC_LIBOBJ([lc-charset-dispatch])
AC_LIBOBJ([mbtowc-lock])
gl_PREREQ_MBTOWC_LOCK
fi
gl_PREREQ_MBRTOWC
-fi
+])
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
Makefile.am:
+if GL_COND_OBJ_MBRTOWC
+lib_SOURCES += mbrtowc.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_MBSINIT
-if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
- AC_LIBOBJ([mbsinit])
+gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
+ [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
+AM_COND_IF([GL_COND_OBJ_MBSINIT], [
gl_PREREQ_MBSINIT
-fi
+])
gl_WCHAR_MODULE_INDICATOR([mbsinit])
Makefile.am:
+if GL_COND_OBJ_MBSINIT
+lib_SOURCES += mbsinit.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_MBSNRTOWCS
-if test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1; then
- AC_LIBOBJ([mbsnrtowcs])
+gl_CONDITIONAL([GL_COND_OBJ_MBSNRTOWCS],
+ [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1])
+AM_COND_IF([GL_COND_OBJ_MBSNRTOWCS], [
AC_LIBOBJ([mbsrtowcs-state])
gl_PREREQ_MBSNRTOWCS
-fi
+])
gl_WCHAR_MODULE_INDICATOR([mbsnrtowcs])
Makefile.am:
+if GL_COND_OBJ_MBSNRTOWCS
+lib_SOURCES += mbsnrtowcs.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_MBSRTOWCS
-if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
- AC_LIBOBJ([mbsrtowcs])
+gl_CONDITIONAL([GL_COND_OBJ_MBSRTOWCS],
+ [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1])
+AM_COND_IF([GL_COND_OBJ_MBSRTOWCS], [
AC_LIBOBJ([mbsrtowcs-state])
gl_PREREQ_MBSRTOWCS
-fi
+])
gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
Makefile.am:
+if GL_COND_OBJ_MBSRTOWCS
+lib_SOURCES += mbsrtowcs.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_MBTOWC
-if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
- AC_LIBOBJ([mbtowc])
+gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
+ [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
+AM_COND_IF([GL_COND_OBJ_MBTOWC], [
gl_PREREQ_MBTOWC
-fi
+])
gl_STDLIB_MODULE_INDICATOR([mbtowc])
Makefile.am:
+if GL_COND_OBJ_MBTOWC
+lib_SOURCES += mbtowc.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MEMALIGN
-if test $REPLACE_MEMALIGN = 1; then
- AC_LIBOBJ([memalign])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MEMALIGN], [test $REPLACE_MEMALIGN = 1])
gl_MALLOC_MODULE_INDICATOR([memalign])
Makefile.am:
+if GL_COND_OBJ_MEMALIGN
+lib_SOURCES += memalign.c
+endif
Include:
#include <malloc.h>
configure.ac:
gl_FUNC_MEMCHR
-if test $REPLACE_MEMCHR = 1; then
- AC_LIBOBJ([memchr])
+gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
+AM_COND_IF([GL_COND_OBJ_MEMCHR], [
gl_PREREQ_MEMCHR
-fi
+])
gl_STRING_MODULE_INDICATOR([memchr])
Makefile.am:
+if GL_COND_OBJ_MEMCHR
+lib_SOURCES += memchr.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMCMP
-if test $gl_func_memcmp = no; then
- AC_LIBOBJ([memcmp])
+gl_CONDITIONAL([GL_COND_OBJ_MEMCMP], [test $gl_func_memcmp = no])
+AM_COND_IF([GL_COND_OBJ_MEMCMP], [
gl_PREREQ_MEMCMP
-fi
+])
Makefile.am:
+if GL_COND_OBJ_MEMCMP
+lib_SOURCES += memcmp.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMCPY
-if test $ac_cv_func_memcpy = no; then
- AC_LIBOBJ([memcpy])
+gl_CONDITIONAL([GL_COND_OBJ_MEMCPY], [test $ac_cv_func_memcpy = no])
+AM_COND_IF([GL_COND_OBJ_MEMCPY], [
gl_PREREQ_MEMCPY
-fi
+])
Makefile.am:
+if GL_COND_OBJ_MEMCPY
+lib_SOURCES += memcpy.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMMOVE
-if test $ac_cv_func_memmove = no; then
- AC_LIBOBJ([memmove])
+gl_CONDITIONAL([GL_COND_OBJ_MEMMOVE], [test $ac_cv_func_memmove = no])
+AM_COND_IF([GL_COND_OBJ_MEMMOVE], [
gl_PREREQ_MEMMOVE
-fi
+])
Makefile.am:
+if GL_COND_OBJ_MEMMOVE
+lib_SOURCES += memmove.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMPCPY
-if test $HAVE_MEMPCPY = 0; then
- AC_LIBOBJ([mempcpy])
+gl_CONDITIONAL([GL_COND_OBJ_MEMPCPY], [test $HAVE_MEMPCPY = 0])
+AM_COND_IF([GL_COND_OBJ_MEMPCPY], [
gl_PREREQ_MEMPCPY
-fi
+])
gl_STRING_MODULE_INDICATOR([mempcpy])
Makefile.am:
+if GL_COND_OBJ_MEMPCPY
+lib_SOURCES += mempcpy.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMRCHR
-if test $ac_cv_func_memrchr = no; then
- AC_LIBOBJ([memrchr])
+gl_CONDITIONAL([GL_COND_OBJ_MEMRCHR], [test $ac_cv_func_memrchr = no])
+AM_COND_IF([GL_COND_OBJ_MEMRCHR], [
gl_PREREQ_MEMRCHR
-fi
+])
gl_STRING_MODULE_INDICATOR([memrchr])
Makefile.am:
+if GL_COND_OBJ_MEMRCHR
+lib_SOURCES += memrchr.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MEMSET
-if test $ac_cv_func_memset = no; then
- AC_LIBOBJ([memset])
+gl_CONDITIONAL([GL_COND_OBJ_MEMSET], [test $ac_cv_func_memset = no])
+AM_COND_IF([GL_COND_OBJ_MEMSET], [
gl_PREREQ_MEMSET
-fi
+])
Makefile.am:
+if GL_COND_OBJ_MEMSET
+lib_SOURCES += memset.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_MKDIR
-if test $REPLACE_MKDIR = 1; then
- AC_LIBOBJ([mkdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKDIR], [test $REPLACE_MKDIR = 1])
gl_SYS_STAT_MODULE_INDICATOR([mkdir])
Makefile.am:
+if GL_COND_OBJ_MKDIR
+lib_SOURCES += mkdir.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_MKDIRAT
-if test $HAVE_MKDIRAT = 0; then
- AC_LIBOBJ([mkdirat])
+gl_CONDITIONAL([GL_COND_OBJ_MKDIRAT], [test $HAVE_MKDIRAT = 0])
+AM_COND_IF([GL_COND_OBJ_MKDIRAT], [
gl_PREREQ_MKDIRAT
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([mkdirat])
Makefile.am:
+if GL_COND_OBJ_MKDIRAT
+lib_SOURCES += mkdirat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_MKDTEMP
-if test $HAVE_MKDTEMP = 0; then
- AC_LIBOBJ([mkdtemp])
+gl_CONDITIONAL([GL_COND_OBJ_MKDTEMP], [test $HAVE_MKDTEMP = 0])
+AM_COND_IF([GL_COND_OBJ_MKDTEMP], [
gl_PREREQ_MKDTEMP
-fi
+])
gl_STDLIB_MODULE_INDICATOR([mkdtemp])
Makefile.am:
+if GL_COND_OBJ_MKDTEMP
+lib_SOURCES += mkdtemp.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MKFIFO
-if test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1; then
- AC_LIBOBJ([mkfifo])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKFIFO],
+ [test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1])
gl_UNISTD_MODULE_INDICATOR([mkfifo])
Makefile.am:
+if GL_COND_OBJ_MKFIFO
+lib_SOURCES += mkfifo.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_MKFIFOAT
-if test $HAVE_MKFIFOAT = 0 || test $REPLACE_MKFIFOAT = 1; then
- AC_LIBOBJ([mkfifoat])
-fi
-if test $HAVE_MKNODAT = 0 || test $REPLACE_MKNODAT = 1; then
- AC_LIBOBJ([mknodat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKFIFOAT],
+ [test $HAVE_MKFIFOAT = 0 || test $REPLACE_MKFIFOAT = 1])
+gl_CONDITIONAL([GL_COND_OBJ_MKNODAT],
+ [test $HAVE_MKNODAT = 0 || test $REPLACE_MKNODAT = 1])
gl_SYS_STAT_MODULE_INDICATOR([mkfifoat])
gl_SYS_STAT_MODULE_INDICATOR([mknodat])
Makefile.am:
+if GL_COND_OBJ_MKFIFOAT
+lib_SOURCES += mkfifoat.c
+endif
+if GL_COND_OBJ_MKNODAT
+lib_SOURCES += mknodat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_MKNOD
-if test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1; then
- AC_LIBOBJ([mknod])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKNOD],
+ [test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1])
gl_UNISTD_MODULE_INDICATOR([mknod])
Makefile.am:
+if GL_COND_OBJ_MKNOD
+lib_SOURCES += mknod.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_MKOSTEMP
-if test $HAVE_MKOSTEMP = 0; then
- AC_LIBOBJ([mkostemp])
+gl_CONDITIONAL([GL_COND_OBJ_MKOSTEMP], [test $HAVE_MKOSTEMP = 0])
+AM_COND_IF([GL_COND_OBJ_MKOSTEMP], [
gl_PREREQ_MKOSTEMP
-fi
+])
gl_MODULE_INDICATOR([mkostemp])
gl_STDLIB_MODULE_INDICATOR([mkostemp])
Makefile.am:
+if GL_COND_OBJ_MKOSTEMP
+lib_SOURCES += mkostemp.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MKOSTEMPS
-if test $HAVE_MKOSTEMPS = 0; then
- AC_LIBOBJ([mkostemps])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKOSTEMPS], [test $HAVE_MKOSTEMPS = 0])
gl_MODULE_INDICATOR([mkostemps])
gl_STDLIB_MODULE_INDICATOR([mkostemps])
Makefile.am:
+if GL_COND_OBJ_MKOSTEMPS
+lib_SOURCES += mkostemps.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MKSTEMP
-if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
- AC_LIBOBJ([mkstemp])
+gl_CONDITIONAL([GL_COND_OBJ_MKSTEMP],
+ [test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1])
+AM_COND_IF([GL_COND_OBJ_MKSTEMP], [
gl_PREREQ_MKSTEMP
-fi
+])
gl_STDLIB_MODULE_INDICATOR([mkstemp])
Makefile.am:
+if GL_COND_OBJ_MKSTEMP
+lib_SOURCES += mkstemp.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MKSTEMPS
-if test $HAVE_MKSTEMPS = 0; then
- AC_LIBOBJ([mkstemps])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MKSTEMPS], [test $HAVE_MKSTEMPS = 0])
gl_MODULE_INDICATOR([mkstemps])
gl_STDLIB_MODULE_INDICATOR([mkstemps])
Makefile.am:
+if GL_COND_OBJ_MKSTEMPS
+lib_SOURCES += mkstemps.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_MODF
-if test $REPLACE_MODF = 1; then
- AC_LIBOBJ([modf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MODF], [test $REPLACE_MODF = 1])
gl_MATH_MODULE_INDICATOR([modf])
Makefile.am:
+if GL_COND_OBJ_MODF
+lib_SOURCES += modf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_MODFF
-if test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1; then
- AC_LIBOBJ([modff])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MODFF],
+ [test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1])
gl_MATH_MODULE_INDICATOR([modff])
Makefile.am:
+if GL_COND_OBJ_MODFF
+lib_SOURCES += modff.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_MODFL
-if test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; then
- AC_LIBOBJ([modfl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MODFL],
+ [test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1])
gl_MATH_MODULE_INDICATOR([modfl])
Makefile.am:
+if GL_COND_OBJ_MODFL
+lib_SOURCES += modfl.c
+endif
Include:
<math.h>
configure.ac:
gl_MOUNTLIST
-if test $gl_cv_list_mounted_fs = yes; then
- AC_LIBOBJ([mountlist])
+gl_CONDITIONAL([GL_COND_OBJ_MOUNTLIST], [test $gl_cv_list_mounted_fs = yes])
+AM_COND_IF([GL_COND_OBJ_MOUNTLIST], [
gl_PREREQ_MOUNTLIST_EXTRA
-fi
+])
Makefile.am:
+if GL_COND_OBJ_MOUNTLIST
+lib_SOURCES += mountlist.c
+endif
Include:
"mountlist.h"
configure.ac:
AC_REQUIRE([gl_MSVC_INVAL])
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
- AC_LIBOBJ([msvc-inval])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
+ [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
Makefile.am:
+if GL_COND_OBJ_MSVC_INVAL
+lib_SOURCES += msvc-inval.c
+endif
Include:
#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
configure.ac:
AC_REQUIRE([gl_MSVC_NOTHROW])
-if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
- AC_LIBOBJ([msvc-nothrow])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
+ [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
gl_MODULE_INDICATOR([msvc-nothrow])
Makefile.am:
+if GL_COND_OBJ_MSVC_NOTHROW
+lib_SOURCES += msvc-nothrow.c
+endif
Include:
#if GNULIB_MSVC_NOTHROW
configure.ac:
AC_REQUIRE([gl_THREADS_H])
-if test $HAVE_THREADS_H = 0; then
- AC_LIBOBJ([mtx])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_MTX], [test $HAVE_THREADS_H = 0])
gl_THREADS_MODULE_INDICATOR([mtx])
Makefile.am:
+if GL_COND_OBJ_MTX
+lib_SOURCES += mtx.c
+endif
Include:
<threads.h>
configure.ac:
gl_FUNC_NANOSLEEP
-if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
- AC_LIBOBJ([nanosleep])
+gl_CONDITIONAL([GL_COND_OBJ_NANOSLEEP],
+ [test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1])
+AM_COND_IF([GL_COND_OBJ_NANOSLEEP], [
gl_PREREQ_NANOSLEEP
-fi
+])
gl_TIME_MODULE_INDICATOR([nanosleep])
Makefile.am:
+if GL_COND_OBJ_NANOSLEEP
+lib_SOURCES += nanosleep.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_NL_LANGINFO
-if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
- AC_LIBOBJ([nl_langinfo])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
+ [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
+gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
+ [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
- AC_LIBOBJ([nl_langinfo-lock])
gl_PREREQ_NL_LANGINFO_LOCK
fi
gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
Makefile.am:
+if GL_COND_OBJ_NL_LANGINFO
+lib_SOURCES += nl_langinfo.c
+endif
+if GL_COND_OBJ_NL_LANGINFO_LOCK
+lib_SOURCES += nl_langinfo-lock.c
+endif
Include:
<langinfo.h>
configure.ac:
gl_FUNC_OBSTACK
-if test "$gl_cv_func_obstack" != yes; then
- AC_LIBOBJ([obstack])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_OBSTACK], [test "$gl_cv_func_obstack" != yes])
Makefile.am:
+if GL_COND_OBJ_OBSTACK
+lib_SOURCES += obstack.c
+endif
Include:
"obstack.h"
configure.ac:
gl_FUNC_OPEN
-if test $REPLACE_OPEN = 1; then
- AC_LIBOBJ([open])
+gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
+AM_COND_IF([GL_COND_OBJ_OPEN], [
gl_PREREQ_OPEN
-fi
+])
gl_FCNTL_MODULE_INDICATOR([open])
Makefile.am:
+if GL_COND_OBJ_OPEN
+lib_SOURCES += open.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_OPENAT
-if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
- AC_LIBOBJ([openat])
+gl_CONDITIONAL([GL_COND_OBJ_OPENAT],
+ [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1])
+AM_COND_IF([GL_COND_OBJ_OPENAT], [
gl_PREREQ_OPENAT
-fi
+])
gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
gl_FCNTL_MODULE_INDICATOR([openat])
Makefile.am:
+if GL_COND_OBJ_OPENAT
+lib_SOURCES += openat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_OPENDIR
-if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
- AC_LIBOBJ([opendir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_OPENDIR],
+ [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1])
gl_DIRENT_MODULE_INDICATOR([opendir])
Makefile.am:
+if GL_COND_OBJ_OPENDIR
+lib_SOURCES += opendir.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_OPENPTY
-if test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1; then
- AC_LIBOBJ([openpty])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_OPENPTY],
+ [test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1])
gl_PTY_MODULE_INDICATOR([openpty])
Makefile.am:
+if GL_COND_OBJ_OPENPTY
+lib_SOURCES += openpty.c
+endif
Include:
<pty.h>
configure.ac:
gl_FUNC_PCLOSE
-if test $HAVE_PCLOSE = 0; then
- AC_LIBOBJ([pclose])
+gl_CONDITIONAL([GL_COND_OBJ_PCLOSE], [test $HAVE_PCLOSE = 0])
+AM_COND_IF([GL_COND_OBJ_PCLOSE], [
gl_PREREQ_PCLOSE
-fi
+])
gl_STDIO_MODULE_INDICATOR([pclose])
Makefile.am:
+if GL_COND_OBJ_PCLOSE
+lib_SOURCES += pclose.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_PERROR
-if test $REPLACE_PERROR = 1; then
- AC_LIBOBJ([perror])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PERROR], [test $REPLACE_PERROR = 1])
gl_STRING_MODULE_INDICATOR([perror])
Makefile.am:
+if GL_COND_OBJ_PERROR
+lib_SOURCES += perror.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_PIPE
-if test $HAVE_PIPE = 0; then
- AC_LIBOBJ([pipe])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PIPE], [test $HAVE_PIPE = 0])
gl_UNISTD_MODULE_INDICATOR([pipe])
Makefile.am:
+if GL_COND_OBJ_PIPE
+lib_SOURCES += pipe.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_POLL
-if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
- AC_LIBOBJ([poll])
+gl_CONDITIONAL([GL_COND_OBJ_POLL],
+ [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1])
+AM_COND_IF([GL_COND_OBJ_POLL], [
gl_PREREQ_POLL
-fi
+])
gl_POLL_MODULE_INDICATOR([poll])
Makefile.am:
+if GL_COND_OBJ_POLL
+lib_SOURCES += poll.c
+endif
Include:
<poll.h>
configure.ac:
gl_FUNC_POPEN
-if test $HAVE_POPEN = 0 || test $REPLACE_POPEN = 1; then
- AC_LIBOBJ([popen])
+gl_CONDITIONAL([GL_COND_OBJ_POPEN],
+ [test $HAVE_POPEN = 0 || test $REPLACE_POPEN = 1])
+AM_COND_IF([GL_COND_OBJ_POPEN], [
gl_PREREQ_POPEN
-fi
+])
gl_STDIO_MODULE_INDICATOR([popen])
Makefile.am:
+if GL_COND_OBJ_POPEN
+lib_SOURCES += popen.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_POSIX_MEMALIGN
-if test $REPLACE_POSIX_MEMALIGN = 1; then
- AC_LIBOBJ([posix_memalign])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_POSIX_MEMALIGN], [test $REPLACE_POSIX_MEMALIGN = 1])
gl_STDLIB_MODULE_INDICATOR([posix_memalign])
Makefile.am:
+if GL_COND_OBJ_POSIX_MEMALIGN
+lib_SOURCES += posix_memalign.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_POSIX_OPENPT
-if test $HAVE_POSIX_OPENPT = 0; then
- AC_LIBOBJ([posix_openpt])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_POSIX_OPENPT], [test $HAVE_POSIX_OPENPT = 0])
gl_STDLIB_MODULE_INDICATOR([posix_openpt])
Makefile.am:
+if GL_COND_OBJ_POSIX_OPENPT
+lib_SOURCES += posix_openpt.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawn])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn])
Makefile.am:
+if GL_COND_OBJ_SPAWN
+lib_SOURCES += spawn.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawni])
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNI],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
+AM_COND_IF([GL_COND_OBJ_SPAWNI], [
gl_PREREQ_POSIX_SPAWN_INTERNAL
-fi
+])
Makefile.am:
+if GL_COND_OBJ_SPAWNI
+lib_SOURCES += spawni.c
+endif
Include:
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR = 1; then
- AC_LIBOBJ([spawn_faction_addchdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDCHDIR],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addchdir])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDCHDIR
+lib_SOURCES += spawn_faction_addchdir.c
+endif
Include:
<spawn.h>
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
- AC_LIBOBJ([spawn_faction_addclose])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDCLOSE],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDCLOSE
+lib_SOURCES += spawn_faction_addclose.c
+endif
Include:
<spawn.h>
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
- AC_LIBOBJ([spawn_faction_adddup2])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDDUP2],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDDUP2
+lib_SOURCES += spawn_faction_adddup2.c
+endif
Include:
<spawn.h>
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 1; then
- AC_LIBOBJ([spawn_faction_addfchdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDFCHDIR],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addfchdir])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDFCHDIR
+lib_SOURCES += spawn_faction_addfchdir.c
+endif
Include:
<spawn.h>
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
- AC_LIBOBJ([spawn_faction_addopen])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDOPEN],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDOPEN
+lib_SOURCES += spawn_faction_addopen.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawn_faction_destroy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_DESTROY],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_destroy])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_DESTROY
+lib_SOURCES += spawn_faction_destroy.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawn_faction_init])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_INIT],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_INIT
+lib_SOURCES += spawn_faction_init.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_destroy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_DESTROY],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_DESTROY
+lib_SOURCES += spawnattr_destroy.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_getflags])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETFLAGS],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getflags])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETFLAGS
+lib_SOURCES += spawnattr_getflags.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_getpgroup])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETPGROUP],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getpgroup])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETPGROUP
+lib_SOURCES += spawnattr_getpgroup.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 \
- || test $REPLACE_POSIX_SPAWN = 1 \
- || test $gl_cv_func_spawnattr_setschedparam = no; then
- AC_LIBOBJ([spawnattr_getschedparam])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETSCHEDPARAM],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $gl_cv_func_spawnattr_setschedparam = no])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getschedparam])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETSCHEDPARAM
+lib_SOURCES += spawnattr_getschedparam.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 \
- || test $REPLACE_POSIX_SPAWN = 1 \
- || test $gl_cv_func_spawnattr_setschedpolicy = no; then
- AC_LIBOBJ([spawnattr_getschedpolicy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETSCHEDPOLICY],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $gl_cv_func_spawnattr_setschedpolicy = no])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getschedpolicy])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETSCHEDPOLICY
+lib_SOURCES += spawnattr_getschedpolicy.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_getdefault])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETDEFAULT],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getsigdefault])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETDEFAULT
+lib_SOURCES += spawnattr_getdefault.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_getsigmask])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_GETSIGMASK],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_getsigmask])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_GETSIGMASK
+lib_SOURCES += spawnattr_getsigmask.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_init])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_INIT],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_init])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_INIT
+lib_SOURCES += spawnattr_init.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_setflags])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETFLAGS],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setflags])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETFLAGS
+lib_SOURCES += spawnattr_setflags.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_setpgroup])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETPGROUP],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setpgroup])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETPGROUP
+lib_SOURCES += spawnattr_setpgroup.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 \
- || test $REPLACE_POSIX_SPAWN = 1 \
- || test $gl_cv_func_spawnattr_setschedparam = no; then
- AC_LIBOBJ([spawnattr_setschedparam])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETSCHEDPARAM],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $gl_cv_func_spawnattr_setschedparam = no])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setschedparam])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETSCHEDPARAM
+lib_SOURCES += spawnattr_setschedparam.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 \
- || test $REPLACE_POSIX_SPAWN = 1 \
- || test $gl_cv_func_spawnattr_setschedpolicy = no; then
- AC_LIBOBJ([spawnattr_setschedpolicy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETSCHEDPOLICY],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $gl_cv_func_spawnattr_setschedpolicy = no])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setschedpolicy])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETSCHEDPOLICY
+lib_SOURCES += spawnattr_setschedpolicy.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_setdefault])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETDEFAULT],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigdefault])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETDEFAULT
+lib_SOURCES += spawnattr_setdefault.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnattr_setsigmask])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNATTR_SETSIGMASK],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigmask])
Makefile.am:
+if GL_COND_OBJ_SPAWNATTR_SETSIGMASK
+lib_SOURCES += spawnattr_setsigmask.c
+endif
Include:
<spawn.h>
configure.ac:
gl_POSIX_SPAWN
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
- AC_LIBOBJ([spawnp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWNP],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
Makefile.am:
+if GL_COND_OBJ_SPAWNP
+lib_SOURCES += spawnp.c
+endif
Include:
<spawn.h>
configure.ac:
gl_FUNC_POWF
-if test $HAVE_POWF = 0; then
- AC_LIBOBJ([powf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_POWF], [test $HAVE_POWF = 0])
gl_MATH_MODULE_INDICATOR([powf])
Makefile.am:
+if GL_COND_OBJ_POWF
+lib_SOURCES += powf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_PREAD
-if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then
- AC_LIBOBJ([pread])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PREAD],
+ [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1])
gl_UNISTD_MODULE_INDICATOR([pread])
Makefile.am:
+if GL_COND_OBJ_PREAD
+lib_SOURCES += pread.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_PSELECT
-if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
- AC_LIBOBJ([pselect])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PSELECT],
+ [test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1])
gl_SYS_SELECT_MODULE_INDICATOR([pselect])
Makefile.am:
+if GL_COND_OBJ_PSELECT
+lib_SOURCES += pselect.c
+endif
Include:
<sys/select.h>
configure.ac:
gl_PTHREAD_COND
-if test $HAVE_PTHREAD_COND_INIT = 0 || test $REPLACE_PTHREAD_COND_INIT = 1; then
- AC_LIBOBJ([pthread-cond])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_COND],
+ [test $HAVE_PTHREAD_COND_INIT = 0 || test $REPLACE_PTHREAD_COND_INIT = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-cond])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_COND
+lib_SOURCES += pthread-cond.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_MUTEX
-if test $HAVE_PTHREAD_MUTEX_INIT = 0 || test $REPLACE_PTHREAD_MUTEX_INIT = 1 \
- || test $HAVE_PTHREAD_MUTEXATTR_GETROBUST = 0 || test $REPLACE_PTHREAD_MUTEXATTR_GETROBUST = 1; then
- AC_LIBOBJ([pthread-mutex])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_MUTEX],
+ [test $HAVE_PTHREAD_MUTEX_INIT = 0 || test $REPLACE_PTHREAD_MUTEX_INIT = 1 || test $HAVE_PTHREAD_MUTEXATTR_GETROBUST = 0 || test $REPLACE_PTHREAD_MUTEXATTR_GETROBUST = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-mutex])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_MUTEX
+lib_SOURCES += pthread-mutex.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_ONCE
-if test $HAVE_PTHREAD_ONCE = 0 || test $REPLACE_PTHREAD_ONCE = 1; then
- AC_LIBOBJ([pthread-once])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_ONCE],
+ [test $HAVE_PTHREAD_ONCE = 0 || test $REPLACE_PTHREAD_ONCE = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-once])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_ONCE
+lib_SOURCES += pthread-once.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_RWLOCK
-if test $HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK = 0 || test $REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK = 1; then
- AC_LIBOBJ([pthread-rwlock])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_RWLOCK],
+ [test $HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK = 0 || test $REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-rwlock])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_RWLOCK
+lib_SOURCES += pthread-rwlock.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_SPIN
-if test $HAVE_PTHREAD_SPIN_INIT = 0 || test $REPLACE_PTHREAD_SPIN_INIT = 1; then
- AC_LIBOBJ([pthread-spin])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_SPIN],
+ [test $HAVE_PTHREAD_SPIN_INIT = 0 || test $REPLACE_PTHREAD_SPIN_INIT = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-spin])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_SPIN
+lib_SOURCES += pthread-spin.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_THREAD
-if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
- AC_LIBOBJ([pthread-thread])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_THREAD],
+ [test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-thread])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_THREAD
+lib_SOURCES += pthread-thread.c
+endif
Include:
<pthread.h>
configure.ac:
gl_PTHREAD_TSS
-if test $HAVE_PTHREAD_KEY_CREATE = 0 || test $REPLACE_PTHREAD_KEY_CREATE = 1; then
- AC_LIBOBJ([pthread-tss])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_TSS],
+ [test $HAVE_PTHREAD_KEY_CREATE = 0 || test $REPLACE_PTHREAD_KEY_CREATE = 1])
gl_PTHREAD_MODULE_INDICATOR([pthread-tss])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_TSS
+lib_SOURCES += pthread-tss.c
+endif
Include:
<pthread.h>
configure.ac:
gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK
-if test $HAVE_PTHREAD_T = 1 && test $HAVE_PTHREAD_MUTEX_TIMEDLOCK = 0; then
- AC_LIBOBJ([pthread_mutex_timedlock])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_MUTEX_TIMEDLOCK],
+ [test $HAVE_PTHREAD_T = 1 && test $HAVE_PTHREAD_MUTEX_TIMEDLOCK = 0])
gl_PTHREAD_MODULE_INDICATOR([pthread_mutex_timedlock])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_MUTEX_TIMEDLOCK
+lib_SOURCES += pthread_mutex_timedlock.c
+endif
Include:
<pthread.h>
configure.ac:
gl_FUNC_PTHREAD_SIGMASK
-if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
- AC_LIBOBJ([pthread_sigmask])
+gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_SIGMASK],
+ [test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1])
+AM_COND_IF([GL_COND_OBJ_PTHREAD_SIGMASK], [
gl_PREREQ_PTHREAD_SIGMASK
-fi
+])
gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
Makefile.am:
+if GL_COND_OBJ_PTHREAD_SIGMASK
+lib_SOURCES += pthread_sigmask.c
+endif
Include:
<signal.h>
configure.ac:
gl_FUNC_PTSNAME
-if test $HAVE_PTSNAME = 0 || test $REPLACE_PTSNAME = 1; then
- AC_LIBOBJ([ptsname])
+gl_CONDITIONAL([GL_COND_OBJ_PTSNAME],
+ [test $HAVE_PTSNAME = 0 || test $REPLACE_PTSNAME = 1])
+AM_COND_IF([GL_COND_OBJ_PTSNAME], [
gl_PREREQ_PTSNAME
-fi
+])
gl_STDLIB_MODULE_INDICATOR([ptsname])
Makefile.am:
+if GL_COND_OBJ_PTSNAME
+lib_SOURCES += ptsname.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_PTSNAME_R
-if test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1; then
- AC_LIBOBJ([ptsname_r])
+gl_CONDITIONAL([GL_COND_OBJ_PTSNAME_R],
+ [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1])
+AM_COND_IF([GL_COND_OBJ_PTSNAME_R], [
gl_PREREQ_PTSNAME_R
-fi
+])
gl_STDLIB_MODULE_INDICATOR([ptsname_r])
Makefile.am:
+if GL_COND_OBJ_PTSNAME_R
+lib_SOURCES += ptsname_r.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_PUTENV
-if test $REPLACE_PUTENV = 1; then
- AC_LIBOBJ([putenv])
+gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
+AM_COND_IF([GL_COND_OBJ_PUTENV], [
gl_PREREQ_PUTENV
-fi
+])
gl_STDLIB_MODULE_INDICATOR([putenv])
Makefile.am:
+if GL_COND_OBJ_PUTENV
+lib_SOURCES += putenv.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_PWRITE
-if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then
- AC_LIBOBJ([pwrite])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_PWRITE],
+ [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1])
gl_UNISTD_MODULE_INDICATOR([pwrite])
Makefile.am:
+if GL_COND_OBJ_PWRITE
+lib_SOURCES += pwrite.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_QSORT_R
-if test $HAVE_QSORT_R = 0; then
- # The function is missing from the system or has an unknown signature.
- AC_LIBOBJ([qsort])
-elif test $REPLACE_QSORT_R = 1; then
- # The function exists, but it has the BSD signature.
- AC_LIBOBJ([qsort_r])
-fi
+dnl If the function is missing from the system or has an unknown signature:
+gl_CONDITIONAL([GL_COND_OBJ_QSORT], [test $HAVE_QSORT_R = 0])
+dnl If the function exists, but it has the BSD signature:
+gl_CONDITIONAL([GL_COND_OBJ_QSORT_R],
+ [test $HAVE_QSORT_R = 1 && test $REPLACE_QSORT_R = 1])
gl_STDLIB_MODULE_INDICATOR([qsort_r])
Makefile.am:
+if GL_COND_OBJ_QSORT
+lib_SOURCES += qsort.c
+endif
+if GL_COND_OBJ_QSORT_R
+lib_SOURCES += qsort_r.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_RAISE
-if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
- AC_LIBOBJ([raise])
+gl_CONDITIONAL([GL_COND_OBJ_RAISE],
+ [test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1])
+AM_COND_IF([GL_COND_OBJ_RAISE], [
gl_PREREQ_RAISE
-fi
+])
gl_SIGNAL_MODULE_INDICATOR([raise])
Makefile.am:
+if GL_COND_OBJ_RAISE
+lib_SOURCES += raise.c
+endif
Include:
<signal.h>
configure.ac:
gl_FUNC_RANDOM
-if test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1; then
- AC_LIBOBJ([random])
+gl_CONDITIONAL([GL_COND_OBJ_RANDOM],
+ [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1])
+AM_COND_IF([GL_COND_OBJ_RANDOM], [
gl_PREREQ_RANDOM
-fi
+])
gl_STDLIB_MODULE_INDICATOR([random])
Makefile.am:
+if GL_COND_OBJ_RANDOM
+lib_SOURCES += random.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_RANDOM_R
-if test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1; then
- AC_LIBOBJ([random_r])
+gl_CONDITIONAL([GL_COND_OBJ_RANDOM_R],
+ [test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1])
+AM_COND_IF([GL_COND_OBJ_RANDOM_R], [
gl_PREREQ_RANDOM_R
-fi
+])
gl_STDLIB_MODULE_INDICATOR([random_r])
Makefile.am:
+if GL_COND_OBJ_RANDOM_R
+lib_SOURCES += random_r.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_RAWMEMCHR
-if test $HAVE_RAWMEMCHR = 0; then
- AC_LIBOBJ([rawmemchr])
+gl_CONDITIONAL([GL_COND_OBJ_RAWMEMCHR], [test $HAVE_RAWMEMCHR = 0])
+AM_COND_IF([GL_COND_OBJ_RAWMEMCHR], [
gl_PREREQ_RAWMEMCHR
-fi
+])
gl_STRING_MODULE_INDICATOR([rawmemchr])
Makefile.am:
+if GL_COND_OBJ_RAWMEMCHR
+lib_SOURCES += rawmemchr.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_READ
-if test $REPLACE_READ = 1; then
- AC_LIBOBJ([read])
+gl_CONDITIONAL([GL_COND_OBJ_READ], [test $REPLACE_READ = 1])
+AM_COND_IF([GL_COND_OBJ_READ], [
gl_PREREQ_READ
-fi
+])
gl_UNISTD_MODULE_INDICATOR([read])
Makefile.am:
+if GL_COND_OBJ_READ
+lib_SOURCES += read.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_READDIR
-if test $HAVE_READDIR = 0; then
- AC_LIBOBJ([readdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_READDIR], [test $HAVE_READDIR = 0])
gl_DIRENT_MODULE_INDICATOR([readdir])
Makefile.am:
+if GL_COND_OBJ_READDIR
+lib_SOURCES += readdir.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_READLINE
-if test "$gl_cv_lib_readline" = no; then
- AC_LIBOBJ([readline])
+gl_CONDITIONAL([GL_COND_OBJ_READLINE], [test "$gl_cv_lib_readline" = no])
+AM_COND_IF([GL_COND_OBJ_READLINE], [
gl_PREREQ_READLINE
-fi
+])
Makefile.am:
+if GL_COND_OBJ_READLINE
+lib_SOURCES += readline.c
+endif
Include:
"readline.h"
configure.ac:
gl_FUNC_READLINK
-if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
- AC_LIBOBJ([readlink])
+gl_CONDITIONAL([GL_COND_OBJ_READLINK],
+ [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1])
+AM_COND_IF([GL_COND_OBJ_READLINK], [
gl_PREREQ_READLINK
-fi
+])
gl_UNISTD_MODULE_INDICATOR([readlink])
Makefile.am:
+if GL_COND_OBJ_READLINK
+lib_SOURCES += readlink.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_READLINKAT
-if test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1; then
- AC_LIBOBJ([readlinkat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_READLINKAT],
+ [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1])
gl_UNISTD_MODULE_INDICATOR([readlinkat])
Makefile.am:
+if GL_COND_OBJ_READLINKAT
+lib_SOURCES += readlinkat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_READUTMP
-if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
- AC_LIBOBJ([readutmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_READUTMP],
+ [test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes])
Makefile.am:
+if GL_COND_OBJ_READUTMP
+lib_SOURCES += readutmp.c
+endif
Include:
"readutmp.h"
configure.ac:
gl_FUNC_REALLOCARRAY
-if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
- AC_LIBOBJ([reallocarray])
+gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
+ [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
+AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
gl_PREREQ_REALLOCARRAY
-fi
+])
gl_MODULE_INDICATOR([reallocarray])
gl_STDLIB_MODULE_INDICATOR([reallocarray])
Makefile.am:
+if GL_COND_OBJ_REALLOCARRAY
+lib_SOURCES += reallocarray.c
+endif
Include:
<stdlib.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([recv])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RECV], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([recv])
Makefile.am:
+if GL_COND_OBJ_RECV
+lib_SOURCES += recv.c
+endif
Include:
<sys/socket.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([recvfrom])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RECVFROM], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
Makefile.am:
+if GL_COND_OBJ_RECVFROM
+lib_SOURCES += recvfrom.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_REGEX
-if test $ac_use_included_regex = yes; then
- AC_LIBOBJ([regex])
+gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
+AM_COND_IF([GL_COND_OBJ_REGEX], [
gl_PREREQ_REGEX
-fi
+])
Makefile.am:
+if GL_COND_OBJ_REGEX
+lib_SOURCES += regex.c
+endif
Include:
<regex.h>
configure.ac:
gl_RELOCATABLE([$gl_source_base])
-if test $RELOCATABLE = yes; then
- AC_LIBOBJ([progreloc])
+gl_CONDITIONAL([GL_COND_OBJ_PROGRELOC], [test $RELOCATABLE = yes])
+AM_COND_IF([GL_COND_OBJ_PROGRELOC], [
AC_LIBOBJ([relocatable])
-fi
+])
Makefile.am:
+if GL_COND_OBJ_PROGRELOC
+lib_SOURCES += progreloc.c
+endif
DEFS += -DEXEEXT=\"@EXEEXT@\"
if RELOCATABLE_VIA_WRAPPER
uninstall-hook: uninstall-relocwrapper
configure.ac:
gl_FUNC_REMAINDER
-if test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1; then
- AC_LIBOBJ([remainder])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_REMAINDER],
+ [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1])
gl_MATH_MODULE_INDICATOR([remainder])
Makefile.am:
+if GL_COND_OBJ_REMAINDER
+lib_SOURCES += remainder.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_REMAINDERF
-if test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1; then
- AC_LIBOBJ([remainderf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_REMAINDERF],
+ [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1])
gl_MATH_MODULE_INDICATOR([remainderf])
Makefile.am:
+if GL_COND_OBJ_REMAINDERF
+lib_SOURCES += remainderf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_REMAINDERL
-if test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; then
- AC_LIBOBJ([remainderl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_REMAINDERL],
+ [test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1])
gl_MATH_MODULE_INDICATOR([remainderl])
Makefile.am:
+if GL_COND_OBJ_REMAINDERL
+lib_SOURCES += remainderl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_REMOVE
-if test $REPLACE_REMOVE = 1; then
- AC_LIBOBJ([remove])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_REMOVE], [test $REPLACE_REMOVE = 1])
gl_STDIO_MODULE_INDICATOR([remove])
Makefile.am:
+if GL_COND_OBJ_REMOVE
+lib_SOURCES += remove.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_RENAME
-if test $REPLACE_RENAME = 1; then
- AC_LIBOBJ([rename])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RENAME], [test $REPLACE_RENAME = 1])
gl_STDIO_MODULE_INDICATOR([rename])
Makefile.am:
+if GL_COND_OBJ_RENAME
+lib_SOURCES += rename.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_RENAMEAT
-if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
- AC_LIBOBJ([renameat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RENAMEAT],
+ [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1])
if test $HAVE_RENAMEAT = 0; then
AC_LIBOBJ([at-func2])
fi
gl_STDIO_MODULE_INDICATOR([renameat])
Makefile.am:
+if GL_COND_OBJ_RENAMEAT
+lib_SOURCES += renameat.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_REWINDDIR
-if test $HAVE_REWINDDIR = 0; then
- AC_LIBOBJ([rewinddir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_REWINDDIR], [test $HAVE_REWINDDIR = 0])
gl_DIRENT_MODULE_INDICATOR([rewinddir])
Makefile.am:
+if GL_COND_OBJ_REWINDDIR
+lib_SOURCES += rewinddir.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_RINT
-if test $HAVE_RINT = 0; then
- AC_LIBOBJ([rint])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RINT], [test $HAVE_RINT = 0])
gl_MATH_MODULE_INDICATOR([rint])
Makefile.am:
+if GL_COND_OBJ_RINT
+lib_SOURCES += rint.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_RINTF
-if test $HAVE_RINTF = 0; then
- AC_LIBOBJ([rintf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RINTF], [test $HAVE_RINTF = 0])
gl_MATH_MODULE_INDICATOR([rintf])
Makefile.am:
+if GL_COND_OBJ_RINTF
+lib_SOURCES += rintf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_RINTL
-if test $HAVE_RINTL = 0 || test $REPLACE_RINTL = 1; then
- AC_LIBOBJ([rintl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RINTL],
+ [test $HAVE_RINTL = 0 || test $REPLACE_RINTL = 1])
gl_MATH_MODULE_INDICATOR([rintl])
Makefile.am:
+if GL_COND_OBJ_RINTL
+lib_SOURCES += rintl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_RMDIR
-if test $REPLACE_RMDIR = 1; then
- AC_LIBOBJ([rmdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_RMDIR], [test $REPLACE_RMDIR = 1])
gl_UNISTD_MODULE_INDICATOR([rmdir])
Makefile.am:
+if GL_COND_OBJ_RMDIR
+lib_SOURCES += rmdir.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_ROUND
-if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
- AC_LIBOBJ([round])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ROUND],
+ [test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1])
gl_MATH_MODULE_INDICATOR([round])
Makefile.am:
+if GL_COND_OBJ_ROUND
+lib_SOURCES += round.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ROUNDF
-if test $HAVE_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
- AC_LIBOBJ([roundf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ROUNDF],
+ [test $HAVE_ROUNDF = 0 || test $REPLACE_ROUNDF = 1])
gl_MATH_MODULE_INDICATOR([roundf])
Makefile.am:
+if GL_COND_OBJ_ROUNDF
+lib_SOURCES += roundf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_ROUNDL
-if test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
- AC_LIBOBJ([roundl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_ROUNDL],
+ [test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1])
gl_MATH_MODULE_INDICATOR([roundl])
Makefile.am:
+if GL_COND_OBJ_ROUNDL
+lib_SOURCES += roundl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_RPMATCH
-if test $HAVE_RPMATCH = 0; then
- AC_LIBOBJ([rpmatch])
+gl_CONDITIONAL([GL_COND_OBJ_RPMATCH], [test $HAVE_RPMATCH = 0])
+AM_COND_IF([GL_COND_OBJ_RPMATCH], [
gl_PREREQ_RPMATCH
-fi
+])
gl_STDLIB_MODULE_INDICATOR([rpmatch])
Makefile.am:
+if GL_COND_OBJ_RPMATCH
+lib_SOURCES += rpmatch.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_SCANDIR
-if test $HAVE_SCANDIR = 0; then
- AC_LIBOBJ([scandir])
+gl_CONDITIONAL([GL_COND_OBJ_SCANDIR], [test $HAVE_SCANDIR = 0])
+AM_COND_IF([GL_COND_OBJ_SCANDIR], [
gl_PREREQ_SCANDIR
-fi
+])
gl_DIRENT_MODULE_INDICATOR([scandir])
Makefile.am:
+if GL_COND_OBJ_SCANDIR
+lib_SOURCES += scandir.c
+endif
Include:
<dirent.h>
configure.ac:
gl_FUNC_SCHED_YIELD
-if test $HAVE_SCHED_YIELD = 0 || test $REPLACE_SCHED_YIELD = 1; then
- AC_LIBOBJ([sched_yield])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SCHED_YIELD],
+ [test $HAVE_SCHED_YIELD = 0 || test $REPLACE_SCHED_YIELD = 1])
gl_SCHED_MODULE_INDICATOR([sched_yield])
Makefile.am:
+if GL_COND_OBJ_SCHED_YIELD
+lib_SOURCES += sched_yield.c
+endif
Include:
<sched.h>
configure.ac:
gl_FUNC_SECURE_GETENV
-if test $HAVE_SECURE_GETENV = 0; then
- AC_LIBOBJ([secure_getenv])
+gl_CONDITIONAL([GL_COND_OBJ_SECURE_GETENV], [test $HAVE_SECURE_GETENV = 0])
+AM_COND_IF([GL_COND_OBJ_SECURE_GETENV], [
gl_PREREQ_SECURE_GETENV
-fi
+])
gl_STDLIB_MODULE_INDICATOR([secure_getenv])
Makefile.am:
+if GL_COND_OBJ_SECURE_GETENV
+lib_SOURCES += secure_getenv.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_SELECT
-if test $REPLACE_SELECT = 1; then
- AC_LIBOBJ([select])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SELECT], [test $REPLACE_SELECT = 1])
gl_SYS_SELECT_MODULE_INDICATOR([select])
Makefile.am:
+if GL_COND_OBJ_SELECT
+lib_SOURCES += select.c
+endif
Include:
<sys/select.h>
gl_CONDITIONAL_HEADER([selinux/context.h])
gl_CONDITIONAL_HEADER([selinux/label.h])
AC_PROG_MKDIR_P
-if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
- AC_LIBOBJ([getfilecon])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_GETFILECON],
+ [test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes])
Makefile.am:
-lib_SOURCES += se-context.in.h se-label.in.h se-selinux.in.h \
- se-context.c se-label.c se-selinux.c
-
BUILT_SOURCES += selinux/selinux.h
selinux/selinux.h: se-selinux.in.h $(top_builddir)/config.status
$(AM_V_GEN)$(MKDIR_P) '%reldir%/selinux'
MOSTLYCLEANDIRS += selinux
+if GL_COND_OBJ_GETFILECON
+lib_SOURCES += getfilecon.c
+endif
+lib_SOURCES += se-context.in.h se-label.in.h se-selinux.in.h \
+ se-context.c se-label.c se-selinux.c
+
Include:
<selinux/selinux.h>
<selinux/context.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([send])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SEND], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([send])
Makefile.am:
+if GL_COND_OBJ_SEND
+lib_SOURCES += send.c
+endif
Include:
<sys/socket.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([sendto])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SENDTO], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
Makefile.am:
+if GL_COND_OBJ_SENDTO
+lib_SOURCES += sendto.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_SETENV
-if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
- AC_LIBOBJ([setenv])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SETENV],
+ [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
gl_STDLIB_MODULE_INDICATOR([setenv])
Makefile.am:
+if GL_COND_OBJ_SETENV
+lib_SOURCES += setenv.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_SETHOSTNAME
-if test $HAVE_SETHOSTNAME = 0; then
- AC_LIBOBJ([sethostname])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SETHOSTNAME], [test $HAVE_SETHOSTNAME = 0])
gl_UNISTD_MODULE_INDICATOR([sethostname])
Makefile.am:
+if GL_COND_OBJ_SETHOSTNAME
+lib_SOURCES += sethostname.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_SETLOCALE
-if test $REPLACE_SETLOCALE = 1; then
- AC_LIBOBJ([setlocale])
+gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE], [test $REPLACE_SETLOCALE = 1])
+AM_COND_IF([GL_COND_OBJ_SETLOCALE], [
gl_PREREQ_SETLOCALE
-fi
+])
gl_LOCALE_MODULE_INDICATOR([setlocale])
Makefile.am:
+if GL_COND_OBJ_SETLOCALE
+lib_SOURCES += setlocale.c
+endif
Include:
<locale.h>
configure.ac:
gl_FUNC_SETLOCALE_NULL
-if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
- AC_LIBOBJ([setlocale-lock])
+gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
+ [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
+AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
gl_PREREQ_SETLOCALE_LOCK
-fi
+])
gl_LOCALE_MODULE_INDICATOR([setlocale_null])
Makefile.am:
lib_SOURCES += setlocale_null.c
+if GL_COND_OBJ_SETLOCALE_LOCK
+lib_SOURCES += setlocale-lock.c
+endif
Include:
#include "setlocale_null.h" or #include <locale.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([setsockopt])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SETSOCKOPT],
+ [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
Makefile.am:
+if GL_COND_OBJ_SETSOCKOPT
+lib_SOURCES += setsockopt.c
+endif
Include:
<sys/socket.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([shutdown])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SHUTDOWN], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
Makefile.am:
+if GL_COND_OBJ_SHUTDOWN
+lib_SOURCES += shutdown.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_FUNC_SIG2STR
-if test $ac_cv_func_sig2str = no; then
- AC_LIBOBJ([sig2str])
+gl_CONDITIONAL([GL_COND_OBJ_SIG2STR], [test $ac_cv_func_sig2str = no])
+AM_COND_IF([GL_COND_OBJ_SIG2STR], [
gl_PREREQ_SIG2STR
-fi
+])
Makefile.am:
+if GL_COND_OBJ_SIG2STR
+lib_SOURCES += sig2str.c
+endif
Include:
"sig2str.h"
configure.ac:
gl_FUNC_SIGABBREV_NP
-if test $HAVE_SIGABBREV_NP = 0; then
- AC_LIBOBJ([sigabbrev_np])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SIGABBREV_NP], [test $HAVE_SIGABBREV_NP = 0])
gl_STRING_MODULE_INDICATOR([sigabbrev_np])
Makefile.am:
+if GL_COND_OBJ_SIGABBREV_NP
+lib_SOURCES += sigabbrev_np.c
+endif
Include:
<string.h>
configure.ac:
gl_SIGACTION
-if test $HAVE_SIGACTION = 0; then
- AC_LIBOBJ([sigaction])
+gl_CONDITIONAL([GL_COND_OBJ_SIGACTION], [test $HAVE_SIGACTION = 0])
+AM_COND_IF([GL_COND_OBJ_SIGACTION], [
gl_PREREQ_SIGACTION
-fi
+])
gl_SIGNAL_MODULE_INDICATOR([sigaction])
Makefile.am:
+if GL_COND_OBJ_SIGACTION
+lib_SOURCES += sigaction.c
+endif
lib_SOURCES += sig-handler.c
Include:
configure.ac:
gl_FUNC_SIGDESCR_NP
-if test $HAVE_SIGDESCR_NP = 0; then
- AC_LIBOBJ([sigdescr_np])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SIGDESCR_NP], [test $HAVE_SIGDESCR_NP = 0])
gl_STRING_MODULE_INDICATOR([sigdescr_np])
Makefile.am:
+if GL_COND_OBJ_SIGDESCR_NP
+lib_SOURCES += sigdescr_np.c
+endif
Include:
<string.h>
configure.ac:
gl_SIGNBIT
-if test $REPLACE_SIGNBIT = 1; then
- AC_LIBOBJ([signbitf])
- AC_LIBOBJ([signbitd])
- AC_LIBOBJ([signbitl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SIGNBIT3], [test $REPLACE_SIGNBIT = 1])
gl_MATH_MODULE_INDICATOR([signbit])
Makefile.am:
+if GL_COND_OBJ_SIGNBIT3
+lib_SOURCES += signbitf.c signbitd.c signbitl.c
+endif
Include:
<math.h>
configure.ac:
gl_SIGNALBLOCKING
-if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
- AC_LIBOBJ([sigprocmask])
+gl_CONDITIONAL([GL_COND_OBJ_SIGPROCMASK], [test $HAVE_POSIX_SIGNALBLOCKING = 0])
+AM_COND_IF([GL_COND_OBJ_SIGPROCMASK], [
gl_PREREQ_SIGPROCMASK
-fi
+])
gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
Makefile.am:
+if GL_COND_OBJ_SIGPROCMASK
+lib_SOURCES += sigprocmask.c
+endif
Include:
<signal.h>
configure.ac:
gl_FUNC_SINF
-if test $HAVE_SINF = 0; then
- AC_LIBOBJ([sinf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SINF], [test $HAVE_SINF = 0])
gl_MATH_MODULE_INDICATOR([sinf])
Makefile.am:
+if GL_COND_OBJ_SINF
+lib_SOURCES += sinf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_SINHF
-if test $HAVE_SINHF = 0; then
- AC_LIBOBJ([sinhf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SINHF], [test $HAVE_SINHF = 0])
gl_MATH_MODULE_INDICATOR([sinhf])
Makefile.am:
+if GL_COND_OBJ_SINHF
+lib_SOURCES += sinhf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_SINL
-if test $HAVE_SINL = 0; then
- AC_LIBOBJ([sinl])
+gl_CONDITIONAL([GL_COND_OBJ_SINL], [test $HAVE_SINL = 0])
+AM_COND_IF([GL_COND_OBJ_SINL], [
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then
AC_LIBOBJ([sincosl])
AC_LIBOBJ([trigl])
fi
-fi
+])
gl_MATH_MODULE_INDICATOR([sinl])
Makefile.am:
+if GL_COND_OBJ_SINL
+lib_SOURCES += sinl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_SLEEP
-if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
- AC_LIBOBJ([sleep])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SLEEP],
+ [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1])
gl_UNISTD_MODULE_INDICATOR([sleep])
Makefile.am:
+if GL_COND_OBJ_SLEEP
+lib_SOURCES += sleep.c
+endif
Include:
<unistd.h>
configure.ac:
AC_REQUIRE([gl_SYS_SOCKET_H])
-if test "$ac_cv_header_winsock2_h" = yes; then
- AC_LIBOBJ([socket])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SOCKET], [test "$ac_cv_header_winsock2_h" = yes])
# When this module is used, sockets may actually occur as file descriptors,
# hence it is worth warning if the modules 'close' and 'ioctl' are not used.
m4_ifdef([gl_UNISTD_H_DEFAULTS], [gl_UNISTD_H_REQUIRE_DEFAULTS])
gl_SYS_SOCKET_MODULE_INDICATOR([socket])
Makefile.am:
+if GL_COND_OBJ_SOCKET
+lib_SOURCES += socket.c
+endif
Include:
<sys/socket.h>
configure.ac:
gl_SPAWN_PIPE
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- os2*)
- AC_LIBOBJ([os2-spawn])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_OS2_SPAWN],
+ [case "$host_os" in os2*) true;; *) false;; esac])
Makefile.am:
lib_SOURCES += spawn-pipe.h spawn-pipe.c
+if GL_COND_OBJ_OS2_SPAWN
+lib_SOURCES += os2-spawn.c
+endif
Include:
"spawn-pipe.h"
configure.ac:
gl_FUNC_SQRTF
-if test $HAVE_SQRTF = 0; then
- AC_LIBOBJ([sqrtf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SQRTF], [test $HAVE_SQRTF = 0])
gl_MATH_MODULE_INDICATOR([sqrtf])
Makefile.am:
+if GL_COND_OBJ_SQRTF
+lib_SOURCES += sqrtf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_SQRTL
-if test $HAVE_SQRTL = 0 || test $REPLACE_SQRTL = 1; then
- AC_LIBOBJ([sqrtl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SQRTL],
+ [test $HAVE_SQRTL = 0 || test $REPLACE_SQRTL = 1])
gl_MATH_MODULE_INDICATOR([sqrtl])
Makefile.am:
+if GL_COND_OBJ_SQRTL
+lib_SOURCES += sqrtl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_STAT
-if test $REPLACE_STAT = 1; then
- AC_LIBOBJ([stat])
+gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
+AM_COND_IF([GL_COND_OBJ_STAT], [
case "$host_os" in
mingw*)
AC_LIBOBJ([stat-w32])
;;
esac
gl_PREREQ_STAT
-fi
+])
gl_SYS_STAT_MODULE_INDICATOR([stat])
Makefile.am:
+if GL_COND_OBJ_STAT
+lib_SOURCES += stat.c
+endif
Include:
<sys/stat.h>
gl_STDIO_H
gl_STDIO_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
-if test $REPLACE_STDIO_READ_FUNCS = 1; then
- AC_LIBOBJ([stdio-read])
-fi
-if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
- AC_LIBOBJ([stdio-write])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
+gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
dnl No need to create extra modules for these functions. Everyone who uses
dnl <stdio.h> likely needs them.
$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += stdio.h stdio.h-t
+if GL_COND_OBJ_STDIO_READ
+lib_SOURCES += stdio-read.c
+endif
+if GL_COND_OBJ_STDIO_WRITE
+lib_SOURCES += stdio-write.c
+endif
+
Include:
<stdio.h>
configure.ac:
gl_FUNC_STPCPY
-if test $HAVE_STPCPY = 0; then
- AC_LIBOBJ([stpcpy])
+gl_CONDITIONAL([GL_COND_OBJ_STPCPY], [test $HAVE_STPCPY = 0])
+AM_COND_IF([GL_COND_OBJ_STPCPY], [
gl_PREREQ_STPCPY
-fi
+])
gl_STRING_MODULE_INDICATOR([stpcpy])
Makefile.am:
+if GL_COND_OBJ_STPCPY
+lib_SOURCES += stpcpy.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STPNCPY
-if test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1; then
- AC_LIBOBJ([stpncpy])
+gl_CONDITIONAL([GL_COND_OBJ_STPNCPY],
+ [test $HAVE_STPNCPY = 0 || test $REPLACE_STPNCPY = 1])
+AM_COND_IF([GL_COND_OBJ_STPNCPY], [
gl_PREREQ_STPNCPY
-fi
+])
gl_STRING_MODULE_INDICATOR([stpncpy])
Makefile.am:
+if GL_COND_OBJ_STPNCPY
+lib_SOURCES += stpncpy.c
+endif
Include:
<string.h>
configure.ac:
gl_STRCASE
-if test $HAVE_STRCASECMP = 0; then
- AC_LIBOBJ([strcasecmp])
+gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
+AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
gl_PREREQ_STRCASECMP
-fi
-if test $HAVE_STRNCASECMP = 0; then
- AC_LIBOBJ([strncasecmp])
+])
+gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
+AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
gl_PREREQ_STRNCASECMP
-fi
+])
Makefile.am:
+if GL_COND_OBJ_STRCASECMP
+lib_SOURCES += strcasecmp.c
+endif
+if GL_COND_OBJ_STRNCASECMP
+lib_SOURCES += strncasecmp.c
+endif
Include:
<strings.h>
configure.ac:
gl_FUNC_STRCHRNUL
-if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
- AC_LIBOBJ([strchrnul])
+gl_CONDITIONAL([GL_COND_OBJ_STRCHRNUL],
+ [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1])
+AM_COND_IF([GL_COND_OBJ_STRCHRNUL], [
gl_PREREQ_STRCHRNUL
-fi
+])
gl_STRING_MODULE_INDICATOR([strchrnul])
Makefile.am:
+if GL_COND_OBJ_STRCHRNUL
+lib_SOURCES += strchrnul.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRCSPN
-if test $ac_cv_func_strcspn = no; then
- AC_LIBOBJ([strcspn])
+gl_CONDITIONAL([GL_COND_OBJ_STRCSPN], [test $ac_cv_func_strcspn = no])
+AM_COND_IF([GL_COND_OBJ_STRCSPN], [
gl_PREREQ_STRCSPN
-fi
+])
Makefile.am:
+if GL_COND_OBJ_STRCSPN
+lib_SOURCES += strcspn.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRDUP_POSIX
-if test $REPLACE_STRDUP = 1; then
- AC_LIBOBJ([strdup])
+gl_CONDITIONAL([GL_COND_OBJ_STRDUP], [test $REPLACE_STRDUP = 1])
+AM_COND_IF([GL_COND_OBJ_STRDUP], [
gl_PREREQ_STRDUP
-fi
+])
gl_STRING_MODULE_INDICATOR([strdup])
Makefile.am:
+if GL_COND_OBJ_STRDUP
+lib_SOURCES += strdup.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRERROR
-if test $REPLACE_STRERROR = 1; then
- AC_LIBOBJ([strerror])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
gl_MODULE_INDICATOR([strerror])
gl_STRING_MODULE_INDICATOR([strerror])
Makefile.am:
+if GL_COND_OBJ_STRERROR
+lib_SOURCES += strerror.c
+endif
Include:
<string.h>
configure.ac:
AC_REQUIRE([gl_HEADER_ERRNO_H])
AC_REQUIRE([gl_FUNC_STRERROR_0])
-if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
- AC_LIBOBJ([strerror-override])
+gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
+ [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
+AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
gl_PREREQ_SYS_H_WINSOCK2
-fi
+])
Makefile.am:
+if GL_COND_OBJ_STRERROR_OVERRIDE
+lib_SOURCES += strerror-override.c
+endif
Include:
"strerror-override.h"
configure.ac:
gl_FUNC_STRERRORNAME_NP
-if test $HAVE_STRERRORNAME_NP = 0 || test $REPLACE_STRERRORNAME_NP = 1; then
- AC_LIBOBJ([strerrorname_np])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRERRORNAME_NP],
+ [test $HAVE_STRERRORNAME_NP = 0 || test $REPLACE_STRERRORNAME_NP = 1])
gl_STRING_MODULE_INDICATOR([strerrorname_np])
Makefile.am:
+if GL_COND_OBJ_STRERRORNAME_NP
+lib_SOURCES += strerrorname_np.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRFMON_L
-if test $REPLACE_STRFMON_L = 1; then
- AC_LIBOBJ([strfmon_l])
+gl_CONDITIONAL([GL_COND_OBJ_STRFMON_L], [test $REPLACE_STRFMON_L = 1])
+AM_COND_IF([GL_COND_OBJ_STRFMON_L], [
gl_PREREQ_STRFMON_L
-fi
+])
gl_MONETARY_MODULE_INDICATOR([strfmon_l])
Makefile.am:
+if GL_COND_OBJ_STRFMON_L
+lib_SOURCES += strfmon_l.c
+endif
Include:
#if HAVE_MONETARY_H
configure.ac:
gl_FUNC_STRFTIME
-if test $REPLACE_STRFTIME = 1; then
- AC_LIBOBJ([strftime-fixes])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRFTIME_FIXES], [test $REPLACE_STRFTIME = 1])
gl_TIME_MODULE_INDICATOR([strftime])
Makefile.am:
+if GL_COND_OBJ_STRFTIME_FIXES
+lib_SOURCES += strftime-fixes.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_STRNCAT
-if test $REPLACE_STRNCAT = 1; then
- AC_LIBOBJ([strncat])
+gl_CONDITIONAL([GL_COND_OBJ_STRNCAT], [test $REPLACE_STRNCAT = 1])
+AM_COND_IF([GL_COND_OBJ_STRNCAT], [
gl_PREREQ_STRNCAT
-fi
+])
gl_STRING_MODULE_INDICATOR([strncat])
Makefile.am:
+if GL_COND_OBJ_STRNCAT
+lib_SOURCES += strncat.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRNDUP
-if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
- AC_LIBOBJ([strndup])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRNDUP],
+ [test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1])
gl_STRING_MODULE_INDICATOR([strndup])
Makefile.am:
+if GL_COND_OBJ_STRNDUP
+lib_SOURCES += strndup.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRNLEN
-if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
- AC_LIBOBJ([strnlen])
+gl_CONDITIONAL([GL_COND_OBJ_STRNLEN],
+ [test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1])
+AM_COND_IF([GL_COND_OBJ_STRNLEN], [
gl_PREREQ_STRNLEN
-fi
+])
gl_STRING_MODULE_INDICATOR([strnlen])
Makefile.am:
+if GL_COND_OBJ_STRNLEN
+lib_SOURCES += strnlen.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRPBRK
-if test $HAVE_STRPBRK = 0; then
- AC_LIBOBJ([strpbrk])
+gl_CONDITIONAL([GL_COND_OBJ_STRPBRK], [test $HAVE_STRPBRK = 0])
+AM_COND_IF([GL_COND_OBJ_STRPBRK], [
gl_PREREQ_STRPBRK
-fi
+])
gl_STRING_MODULE_INDICATOR([strpbrk])
Makefile.am:
+if GL_COND_OBJ_STRPBRK
+lib_SOURCES += strpbrk.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRPTIME
-if test $HAVE_STRPTIME = 0; then
- AC_LIBOBJ([strptime])
+gl_CONDITIONAL([GL_COND_OBJ_STRPTIME], [test $HAVE_STRPTIME = 0])
+AM_COND_IF([GL_COND_OBJ_STRPTIME], [
gl_PREREQ_STRPTIME
-fi
+])
gl_TIME_MODULE_INDICATOR([strptime])
Makefile.am:
+if GL_COND_OBJ_STRPTIME
+lib_SOURCES += strptime.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_STRSEP
-if test $HAVE_STRSEP = 0; then
- AC_LIBOBJ([strsep])
+gl_CONDITIONAL([GL_COND_OBJ_STRSEP], [test $HAVE_STRSEP = 0])
+AM_COND_IF([GL_COND_OBJ_STRSEP], [
gl_PREREQ_STRSEP
-fi
+])
gl_STRING_MODULE_INDICATOR([strsep])
Makefile.am:
+if GL_COND_OBJ_STRSEP
+lib_SOURCES += strsep.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRSIGNAL
-if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
- AC_LIBOBJ([strsignal])
+gl_CONDITIONAL([GL_COND_OBJ_STRSIGNAL],
+ [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1])
+AM_COND_IF([GL_COND_OBJ_STRSIGNAL], [
gl_PREREQ_STRSIGNAL
-fi
+])
gl_STRING_MODULE_INDICATOR([strsignal])
Makefile.am:
+if GL_COND_OBJ_STRSIGNAL
+lib_SOURCES += strsignal.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRTOD
-if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then
- AC_LIBOBJ([strtod])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOD],
+ [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOD], [
gl_PREREQ_STRTOD
-fi
+])
gl_STDLIB_MODULE_INDICATOR([strtod])
Makefile.am:
+if GL_COND_OBJ_STRTOD
+lib_SOURCES += strtod.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOIMAX
-if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
- AC_LIBOBJ([strtoimax])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOIMAX],
+ [test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOIMAX], [
gl_PREREQ_STRTOIMAX
-fi
+])
gl_INTTYPES_MODULE_INDICATOR([strtoimax])
Makefile.am:
+if GL_COND_OBJ_STRTOIMAX
+lib_SOURCES += strtoimax.c
+endif
Include:
<inttypes.h>
configure.ac:
gl_FUNC_STRTOK_R
-if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
- AC_LIBOBJ([strtok_r])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOK_R],
+ [test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOK_R], [
gl_PREREQ_STRTOK_R
-fi
+])
gl_STRING_MODULE_INDICATOR([strtok_r])
Makefile.am:
+if GL_COND_OBJ_STRTOK_R
+lib_SOURCES += strtok_r.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_STRTOL
-if test $HAVE_STRTOL = 0 || test $REPLACE_STRTOL = 1; then
- AC_LIBOBJ([strtol])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRTOL],
+ [test $HAVE_STRTOL = 0 || test $REPLACE_STRTOL = 1])
gl_STDLIB_MODULE_INDICATOR([strtol])
Makefile.am:
+if GL_COND_OBJ_STRTOL
+lib_SOURCES += strtol.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOLD
-if test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1; then
- AC_LIBOBJ([strtold])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOLD],
+ [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOLD], [
gl_PREREQ_STRTOLD
-fi
+])
gl_STDLIB_MODULE_INDICATOR([strtold])
Makefile.am:
+if GL_COND_OBJ_STRTOLD
+lib_SOURCES += strtold.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOLL
-if test $HAVE_STRTOLL = 0 || test $REPLACE_STRTOLL = 1; then
- AC_LIBOBJ([strtoll])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOLL],
+ [test $HAVE_STRTOLL = 0 || test $REPLACE_STRTOLL = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOLL], [
gl_PREREQ_STRTOLL
-fi
+])
gl_STDLIB_MODULE_INDICATOR([strtoll])
Makefile.am:
+if GL_COND_OBJ_STRTOLL
+lib_SOURCES += strtoll.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOUL
-if test $HAVE_STRTOUL = 0 || test $REPLACE_STRTOUL = 1; then
- AC_LIBOBJ([strtoul])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRTOUL],
+ [test $HAVE_STRTOUL = 0 || test $REPLACE_STRTOUL = 1])
gl_STDLIB_MODULE_INDICATOR([strtoul])
Makefile.am:
+if GL_COND_OBJ_STRTOUL
+lib_SOURCES += strtoul.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOULL
-if test $HAVE_STRTOULL = 0 || test $REPLACE_STRTOULL = 1; then
- AC_LIBOBJ([strtoull])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOULL],
+ [test $HAVE_STRTOULL = 0 || test $REPLACE_STRTOULL = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOULL], [
gl_PREREQ_STRTOULL
-fi
+])
gl_STDLIB_MODULE_INDICATOR([strtoull])
Makefile.am:
+if GL_COND_OBJ_STRTOULL
+lib_SOURCES += strtoull.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_STRTOUMAX
-if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
- AC_LIBOBJ([strtoumax])
+gl_CONDITIONAL([GL_COND_OBJ_STRTOUMAX],
+ [test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1])
+AM_COND_IF([GL_COND_OBJ_STRTOUMAX], [
gl_PREREQ_STRTOUMAX
-fi
+])
gl_INTTYPES_MODULE_INDICATOR([strtoumax])
Makefile.am:
+if GL_COND_OBJ_STRTOUMAX
+lib_SOURCES += strtoumax.c
+endif
Include:
<inttypes.h>
configure.ac:
gl_FUNC_STRVERSCMP
-if test $HAVE_STRVERSCMP = 0; then
- AC_LIBOBJ([strverscmp])
+gl_CONDITIONAL([GL_COND_OBJ_STRVERSCMP], [test $HAVE_STRVERSCMP = 0])
+AM_COND_IF([GL_COND_OBJ_STRVERSCMP], [
gl_PREREQ_STRVERSCMP
-fi
+])
gl_STRING_MODULE_INDICATOR([strverscmp])
Makefile.am:
+if GL_COND_OBJ_STRVERSCMP
+lib_SOURCES += strverscmp.c
+endif
Include:
<string.h>
configure.ac:
gl_FUNC_SYMLINK
-if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
- AC_LIBOBJ([symlink])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SYMLINK],
+ [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1])
gl_UNISTD_MODULE_INDICATOR([symlink])
Makefile.am:
+if GL_COND_OBJ_SYMLINK
+lib_SOURCES += symlink.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_SYMLINKAT
-if test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1; then
- AC_LIBOBJ([symlinkat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SYMLINKAT],
+ [test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1])
gl_UNISTD_MODULE_INDICATOR([symlinkat])
Makefile.am:
+if GL_COND_OBJ_SYMLINKAT
+lib_SOURCES += symlinkat.c
+endif
Include:
<fcntl.h>
configure.ac:
gl_FUNC_TANF
-if test $HAVE_TANF = 0; then
- AC_LIBOBJ([tanf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TANF], [test $HAVE_TANF = 0])
gl_MATH_MODULE_INDICATOR([tanf])
Makefile.am:
+if GL_COND_OBJ_TANF
+lib_SOURCES += tanf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TANHF
-if test $HAVE_TANHF = 0; then
- AC_LIBOBJ([tanhf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TANHF], [test $HAVE_TANHF = 0])
gl_MATH_MODULE_INDICATOR([tanhf])
Makefile.am:
+if GL_COND_OBJ_TANHF
+lib_SOURCES += tanhf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TANL
-if test $HAVE_TANL = 0; then
- AC_LIBOBJ([tanl])
+gl_CONDITIONAL([GL_COND_OBJ_TANL], [test $HAVE_TANL = 0])
+AM_COND_IF([GL_COND_OBJ_TANL], [
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then
AC_LIBOBJ([trigl])
fi
-fi
+])
gl_MATH_MODULE_INDICATOR([tanl])
Makefile.am:
+if GL_COND_OBJ_TANL
+lib_SOURCES += tanl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TCGETSID
-if test $HAVE_TCGETSID = 0; then
- AC_LIBOBJ([tcgetsid])
+gl_CONDITIONAL([GL_COND_OBJ_TCGETSID], [test $HAVE_TCGETSID = 0])
+AM_COND_IF([GL_COND_OBJ_TCGETSID], [
gl_PREREQ_TCGETSID
-fi
+])
gl_TERMIOS_MODULE_INDICATOR([tcgetsid])
Makefile.am:
+if GL_COND_OBJ_TCGETSID
+lib_SOURCES += tcgetsid.c
+endif
Include:
<termios.h>
configure.ac:
AC_REQUIRE([gl_THREADS_H])
gl_FUNC_THRD_JOIN
-if test $HAVE_THREADS_H = 0 || test $REPLACE_THRD_CREATE = 1 || test $REPLACE_THRD_JOIN = 1; then
- AC_LIBOBJ([thrd])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_THRD],
+ [test $HAVE_THREADS_H = 0 || test $REPLACE_THRD_CREATE = 1 || test $REPLACE_THRD_JOIN = 1])
gl_THREADS_MODULE_INDICATOR([thrd])
Makefile.am:
+if GL_COND_OBJ_THRD
+lib_SOURCES += thrd.c
+endif
Include:
<threads.h>
configure.ac:
gl_TIME_R
-if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
- AC_LIBOBJ([time_r])
+gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
+ [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
+AM_COND_IF([GL_COND_OBJ_TIME_R], [
gl_PREREQ_TIME_R
-fi
+])
gl_TIME_MODULE_INDICATOR([time_r])
Makefile.am:
+if GL_COND_OBJ_TIME_R
+lib_SOURCES += time_r.c
+endif
Include:
<time.h>
configure.ac:
gl_TIME_RZ
-if test $HAVE_TIMEZONE_T = 0; then
- AC_LIBOBJ([time_rz])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TIME_RZ], [test $HAVE_TIMEZONE_T = 0])
gl_TIME_MODULE_INDICATOR([time_rz])
Makefile.am:
+if GL_COND_OBJ_TIME_RZ
+lib_SOURCES += time_rz.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_TIMEGM
-if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
- AC_LIBOBJ([timegm])
+gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
+ [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
+AM_COND_IF([GL_COND_OBJ_TIMEGM], [
gl_PREREQ_TIMEGM
-fi
+])
gl_TIME_MODULE_INDICATOR([timegm])
Makefile.am:
+if GL_COND_OBJ_TIMEGM
+lib_SOURCES += timegm.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_TIMES
-if test $HAVE_TIMES = 0; then
- AC_LIBOBJ([times])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TIMES], [test $HAVE_TIMES = 0])
gl_SYS_TIMES_MODULE_INDICATOR([times])
Makefile.am:
+if GL_COND_OBJ_TIMES
+lib_SOURCES += times.c
+endif
Include:
<sys/times.h>
configure.ac:
gl_FUNC_TIMESPEC_GET
-if test $HAVE_TIMESPEC_GET = 0; then
- AC_LIBOBJ([timespec_get])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TIMESPEC_GET], [test $HAVE_TIMESPEC_GET = 0])
gl_TIME_MODULE_INDICATOR([timespec_get])
Makefile.am:
+if GL_COND_OBJ_TIMESPEC_GET
+lib_SOURCES += timespec_get.c
+endif
Include:
<time.h>
configure.ac:
AC_REQUIRE([gl_FUNC_TIMESPEC_GETRES])
-if test $HAVE_TIMESPEC_GETRES = 0; then
- AC_LIBOBJ([timespec_getres])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TIMESPEC_GETRES], [test $HAVE_TIMESPEC_GETRES = 0])
gl_TIME_MODULE_INDICATOR([timespec_getres])
Makefile.am:
+if GL_COND_OBJ_TIMESPEC_GETRES
+lib_SOURCES += timespec_getres.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_TMPFILE
-if test $REPLACE_TMPFILE = 1; then
- AC_LIBOBJ([tmpfile])
+gl_CONDITIONAL([GL_COND_OBJ_TMPFILE], [test $REPLACE_TMPFILE = 1])
+AM_COND_IF([GL_COND_OBJ_TMPFILE], [
gl_PREREQ_TMPFILE
-fi
+])
gl_STDIO_MODULE_INDICATOR([tmpfile])
Makefile.am:
+if GL_COND_OBJ_TMPFILE
+lib_SOURCES += tmpfile.c
+endif
Include:
<stdio.h>
configure.ac:
gl_FUNC_TOWCTRANS
-if test $HAVE_TOWCTRANS = 0; then
- AC_LIBOBJ([towctrans])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TOWCTRANS], [test $HAVE_TOWCTRANS = 0])
gl_WCTYPE_MODULE_INDICATOR([towctrans])
Makefile.am:
+if GL_COND_OBJ_TOWCTRANS
+lib_SOURCES += towctrans.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_TRUNC
-if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
- AC_LIBOBJ([trunc])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TRUNC],
+ [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1])
gl_MATH_MODULE_INDICATOR([trunc])
Makefile.am:
+if GL_COND_OBJ_TRUNC
+lib_SOURCES += trunc.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TRUNCATE
-if test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1; then
- AC_LIBOBJ([truncate])
+gl_CONDITIONAL([GL_COND_OBJ_TRUNCATE],
+ [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1])
+AM_COND_IF([GL_COND_OBJ_TRUNCATE], [
gl_PREREQ_TRUNCATE
-fi
+])
gl_UNISTD_MODULE_INDICATOR([truncate])
Makefile.am:
+if GL_COND_OBJ_TRUNCATE
+lib_SOURCES += truncate.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_TRUNCF
-if test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1; then
- AC_LIBOBJ([truncf])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TRUNCF],
+ [test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1])
gl_MATH_MODULE_INDICATOR([truncf])
Makefile.am:
+if GL_COND_OBJ_TRUNCF
+lib_SOURCES += truncf.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TRUNCL
-if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
- AC_LIBOBJ([truncl])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TRUNCL],
+ [test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1])
gl_MATH_MODULE_INDICATOR([truncl])
Makefile.am:
+if GL_COND_OBJ_TRUNCL
+lib_SOURCES += truncl.c
+endif
Include:
<math.h>
configure.ac:
gl_FUNC_TSEARCH
-if test $HAVE_TSEARCH = 0 || test $HAVE_TWALK = 0 || test $REPLACE_TSEARCH = 1; then
- AC_LIBOBJ([tsearch])
+gl_CONDITIONAL([GL_COND_OBJ_TSEARCH],
+ [test $HAVE_TSEARCH = 0 || test $HAVE_TWALK = 0 || test $REPLACE_TSEARCH = 1])
+AM_COND_IF([GL_COND_OBJ_TSEARCH], [
gl_PREREQ_TSEARCH
-fi
+])
gl_SEARCH_MODULE_INDICATOR([tsearch])
Makefile.am:
+if GL_COND_OBJ_TSEARCH
+lib_SOURCES += tsearch.c
+endif
Include:
<search.h>
configure.ac:
AC_REQUIRE([gl_THREADS_H])
-if test $HAVE_THREADS_H = 0; then
- AC_LIBOBJ([tss])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TSS], [test $HAVE_THREADS_H = 0])
gl_THREADS_MODULE_INDICATOR([tss])
Makefile.am:
+if GL_COND_OBJ_TSS
+lib_SOURCES += tss.c
+endif
Include:
<threads.h>
configure.ac:
gl_FUNC_TTYNAME_R
-if test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1; then
- AC_LIBOBJ([ttyname_r])
+gl_CONDITIONAL([GL_COND_OBJ_TTYNAME_R],
+ [test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1])
+AM_COND_IF([GL_COND_OBJ_TTYNAME_R], [
gl_PREREQ_TTYNAME_R
-fi
+])
gl_UNISTD_MODULE_INDICATOR([ttyname_r])
Makefile.am:
+if GL_COND_OBJ_TTYNAME_R
+lib_SOURCES += ttyname_r.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_TZSET
-if test $REPLACE_TZSET = 1; then
- AC_LIBOBJ([tzset])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_TZSET], [test $REPLACE_TZSET = 1])
gl_TIME_MODULE_INDICATOR([tzset])
Makefile.am:
+if GL_COND_OBJ_TZSET
+lib_SOURCES += tzset.c
+endif
Include:
<time.h>
configure.ac:
gl_FUNC_UNAME
-if test $HAVE_UNAME = 0; then
- AC_LIBOBJ([uname])
+gl_CONDITIONAL([GL_COND_OBJ_UNAME], [test $HAVE_UNAME = 0])
+AM_COND_IF([GL_COND_OBJ_UNAME], [
gl_PREREQ_UNAME
-fi
+])
gl_SYS_UTSNAME_MODULE_INDICATOR([uname])
Makefile.am:
+if GL_COND_OBJ_UNAME
+lib_SOURCES += uname.c
+endif
Include:
<sys/utsname.h>
configure.ac:
gl_FUNC_UNLINK
-if test $REPLACE_UNLINK = 1; then
- AC_LIBOBJ([unlink])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_UNLINK], [test $REPLACE_UNLINK = 1])
gl_UNISTD_MODULE_INDICATOR([unlink])
Makefile.am:
+if GL_COND_OBJ_UNLINK
+lib_SOURCES += unlink.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_UNLINKAT
-if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
- AC_LIBOBJ([unlinkat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_UNLINKAT],
+ [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1])
gl_UNISTD_MODULE_INDICATOR([unlinkat])
Makefile.am:
+if GL_COND_OBJ_UNLINKAT
+lib_SOURCES += unlinkat.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_UNLOCKPT
-if test $HAVE_UNLOCKPT = 0; then
- AC_LIBOBJ([unlockpt])
+gl_CONDITIONAL([GL_COND_OBJ_UNLOCKPT], [test $HAVE_UNLOCKPT = 0])
+AM_COND_IF([GL_COND_OBJ_UNLOCKPT], [
gl_PREREQ_UNLOCKPT
-fi
+])
gl_STDLIB_MODULE_INDICATOR([unlockpt])
Makefile.am:
+if GL_COND_OBJ_UNLOCKPT
+lib_SOURCES += unlockpt.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_UNSETENV
-if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
- AC_LIBOBJ([unsetenv])
+gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
+ [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
+AM_COND_IF([GL_COND_OBJ_UNSETENV], [
gl_PREREQ_UNSETENV
-fi
+])
gl_STDLIB_MODULE_INDICATOR([unsetenv])
Makefile.am:
+if GL_COND_OBJ_UNSETENV
+lib_SOURCES += unsetenv.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_USLEEP
-if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
- AC_LIBOBJ([usleep])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_USLEEP],
+ [test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1])
gl_UNISTD_MODULE_INDICATOR([usleep])
Makefile.am:
+if GL_COND_OBJ_USLEEP
+lib_SOURCES += usleep.c
+endif
Include:
<unistd.h>
configure.ac:
gl_FUNC_UTIME
-if test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1; then
- AC_LIBOBJ([utime])
+gl_CONDITIONAL([GL_COND_OBJ_UTIME],
+ [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1])
+AM_COND_IF([GL_COND_OBJ_UTIME], [
gl_PREREQ_UTIME
-fi
+])
gl_UTIME_MODULE_INDICATOR([utime])
Makefile.am:
+if GL_COND_OBJ_UTIME
+lib_SOURCES += utime.c
+endif
Include:
<utime.h>
configure.ac:
gl_FUNC_UTIMENSAT
-if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then
- AC_LIBOBJ([utimensat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_UTIMENSAT],
+ [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1])
gl_SYS_STAT_MODULE_INDICATOR([utimensat])
Makefile.am:
+if GL_COND_OBJ_UTIMENSAT
+lib_SOURCES += utimensat.c
+endif
Include:
<sys/stat.h>
configure.ac:
gl_FUNC_WAITPID
-if test $HAVE_WAITPID = 0; then
- AC_LIBOBJ([waitpid])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WAITPID], [test $HAVE_WAITPID = 0])
gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
Makefile.am:
+if GL_COND_OBJ_WAITPID
+lib_SOURCES += waitpid.c
+endif
Include:
<sys/wait.h>
configure.ac:
gl_FUNC_WCPCPY
-if test $HAVE_WCPCPY = 0; then
- AC_LIBOBJ([wcpcpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCPCPY], [test $HAVE_WCPCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wcpcpy])
Makefile.am:
+if GL_COND_OBJ_WCPCPY
+lib_SOURCES += wcpcpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCPNCPY
-if test $HAVE_WCPNCPY = 0; then
- AC_LIBOBJ([wcpncpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCPNCPY], [test $HAVE_WCPNCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wcpncpy])
Makefile.am:
+if GL_COND_OBJ_WCPNCPY
+lib_SOURCES += wcpncpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCRTOMB
-if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
- AC_LIBOBJ([wcrtomb])
+gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
+ [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
+AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
gl_PREREQ_WCRTOMB
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wcrtomb])
Makefile.am:
+if GL_COND_OBJ_WCRTOMB
+lib_SOURCES += wcrtomb.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCASECMP
-if test $HAVE_WCSCASECMP = 0; then
- AC_LIBOBJ([wcscasecmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCASECMP], [test $HAVE_WCSCASECMP = 0])
gl_WCHAR_MODULE_INDICATOR([wcscasecmp])
Makefile.am:
+if GL_COND_OBJ_WCSCASECMP
+lib_SOURCES += wcscasecmp.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCAT
-if test $HAVE_WCSCAT = 0; then
- AC_LIBOBJ([wcscat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCAT], [test $HAVE_WCSCAT = 0])
gl_WCHAR_MODULE_INDICATOR([wcscat])
Makefile.am:
+if GL_COND_OBJ_WCSCAT
+lib_SOURCES += wcscat.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCHR
-if test $HAVE_WCSCHR = 0; then
- AC_LIBOBJ([wcschr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCHR], [test $HAVE_WCSCHR = 0])
gl_WCHAR_MODULE_INDICATOR([wcschr])
Makefile.am:
+if GL_COND_OBJ_WCSCHR
+lib_SOURCES += wcschr.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCMP
-if test $HAVE_WCSCMP = 0; then
- AC_LIBOBJ([wcscmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCMP], [test $HAVE_WCSCMP = 0])
gl_WCHAR_MODULE_INDICATOR([wcscmp])
Makefile.am:
+if GL_COND_OBJ_WCSCMP
+lib_SOURCES += wcscmp.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCOLL
-if test $HAVE_WCSCOLL = 0; then
- AC_LIBOBJ([wcscoll])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCOLL], [test $HAVE_WCSCOLL = 0])
gl_WCHAR_MODULE_INDICATOR([wcscoll])
Makefile.am:
+if GL_COND_OBJ_WCSCOLL
+lib_SOURCES += wcscoll.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCPY
-if test $HAVE_WCSCPY = 0; then
- AC_LIBOBJ([wcscpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCPY], [test $HAVE_WCSCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wcscpy])
Makefile.am:
+if GL_COND_OBJ_WCSCPY
+lib_SOURCES += wcscpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSCSPN
-if test $HAVE_WCSCSPN = 0; then
- AC_LIBOBJ([wcscspn])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSCSPN], [test $HAVE_WCSCSPN = 0])
gl_WCHAR_MODULE_INDICATOR([wcscspn])
Makefile.am:
+if GL_COND_OBJ_WCSCSPN
+lib_SOURCES += wcscspn.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSDUP
-if test $HAVE_WCSDUP = 0; then
- AC_LIBOBJ([wcsdup])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSDUP], [test $HAVE_WCSDUP = 0])
gl_WCHAR_MODULE_INDICATOR([wcsdup])
Makefile.am:
+if GL_COND_OBJ_WCSDUP
+lib_SOURCES += wcsdup.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSFTIME
-if test $REPLACE_WCSFTIME = 1; then
- AC_LIBOBJ([wcsftime])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSFTIME], [test $REPLACE_WCSFTIME = 1])
gl_WCHAR_MODULE_INDICATOR([wcsftime])
Makefile.am:
+if GL_COND_OBJ_WCSFTIME
+lib_SOURCES += wcsftime.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSLEN
-if test $HAVE_WCSLEN = 0; then
- AC_LIBOBJ([wcslen])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSLEN], [test $HAVE_WCSLEN = 0])
gl_WCHAR_MODULE_INDICATOR([wcslen])
Makefile.am:
+if GL_COND_OBJ_WCSLEN
+lib_SOURCES += wcslen.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNCASECMP
-if test $HAVE_WCSNCASECMP = 0; then
- AC_LIBOBJ([wcsncasecmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSNCASECMP], [test $HAVE_WCSNCASECMP = 0])
gl_WCHAR_MODULE_INDICATOR([wcsncasecmp])
Makefile.am:
+if GL_COND_OBJ_WCSNCASECMP
+lib_SOURCES += wcsncasecmp.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNCAT
-if test $HAVE_WCSNCAT = 0; then
- AC_LIBOBJ([wcsncat])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSNCAT], [test $HAVE_WCSNCAT = 0])
gl_WCHAR_MODULE_INDICATOR([wcsncat])
Makefile.am:
+if GL_COND_OBJ_WCSNCAT
+lib_SOURCES += wcsncat.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNCMP
-if test $HAVE_WCSNCMP = 0; then
- AC_LIBOBJ([wcsncmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSNCMP], [test $HAVE_WCSNCMP = 0])
gl_WCHAR_MODULE_INDICATOR([wcsncmp])
Makefile.am:
+if GL_COND_OBJ_WCSNCMP
+lib_SOURCES += wcsncmp.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNCPY
-if test $HAVE_WCSNCPY = 0; then
- AC_LIBOBJ([wcsncpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSNCPY], [test $HAVE_WCSNCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wcsncpy])
Makefile.am:
+if GL_COND_OBJ_WCSNCPY
+lib_SOURCES += wcsncpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNLEN
-if test $HAVE_WCSNLEN = 0; then
- AC_LIBOBJ([wcsnlen])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSNLEN], [test $HAVE_WCSNLEN = 0])
gl_WCHAR_MODULE_INDICATOR([wcsnlen])
Makefile.am:
+if GL_COND_OBJ_WCSNLEN
+lib_SOURCES += wcsnlen.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSNRTOMBS
-if test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1; then
- AC_LIBOBJ([wcsnrtombs])
+gl_CONDITIONAL([GL_COND_OBJ_WCSNRTOMBS],
+ [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1])
+AM_COND_IF([GL_COND_OBJ_WCSNRTOMBS], [
AC_LIBOBJ([wcsrtombs-state])
gl_PREREQ_WCSNRTOMBS
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wcsnrtombs])
Makefile.am:
+if GL_COND_OBJ_WCSNRTOMBS
+lib_SOURCES += wcsnrtombs.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSPBRK
-if test $HAVE_WCSPBRK = 0; then
- AC_LIBOBJ([wcspbrk])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSPBRK], [test $HAVE_WCSPBRK = 0])
gl_WCHAR_MODULE_INDICATOR([wcspbrk])
Makefile.am:
+if GL_COND_OBJ_WCSPBRK
+lib_SOURCES += wcspbrk.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSRCHR
-if test $HAVE_WCSRCHR = 0; then
- AC_LIBOBJ([wcsrchr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSRCHR], [test $HAVE_WCSRCHR = 0])
gl_WCHAR_MODULE_INDICATOR([wcsrchr])
Makefile.am:
+if GL_COND_OBJ_WCSRCHR
+lib_SOURCES += wcsrchr.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSRTOMBS
-if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
- AC_LIBOBJ([wcsrtombs])
+gl_CONDITIONAL([GL_COND_OBJ_WCSRTOMBS],
+ [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1])
+AM_COND_IF([GL_COND_OBJ_WCSRTOMBS], [
AC_LIBOBJ([wcsrtombs-state])
gl_PREREQ_WCSRTOMBS
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wcsrtombs])
Makefile.am:
+if GL_COND_OBJ_WCSRTOMBS
+lib_SOURCES += wcsrtombs.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSSPN
-if test $HAVE_WCSSPN = 0; then
- AC_LIBOBJ([wcsspn])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSSPN], [test $HAVE_WCSSPN = 0])
gl_WCHAR_MODULE_INDICATOR([wcsspn])
Makefile.am:
+if GL_COND_OBJ_WCSSPN
+lib_SOURCES += wcsspn.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSSTR
-if test $HAVE_WCSSTR = 0; then
- AC_LIBOBJ([wcsstr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSSTR], [test $HAVE_WCSSTR = 0])
gl_WCHAR_MODULE_INDICATOR([wcsstr])
Makefile.am:
+if GL_COND_OBJ_WCSSTR
+lib_SOURCES += wcsstr.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSTOK
-if test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1; then
- AC_LIBOBJ([wcstok])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSTOK],
+ [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1])
gl_WCHAR_MODULE_INDICATOR([wcstok])
Makefile.am:
+if GL_COND_OBJ_WCSTOK
+lib_SOURCES += wcstok.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSWIDTH
-if test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1; then
- AC_LIBOBJ([wcswidth])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSWIDTH],
+ [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1])
gl_WCHAR_MODULE_INDICATOR([wcswidth])
Makefile.am:
+if GL_COND_OBJ_WCSWIDTH
+lib_SOURCES += wcswidth.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCSXFRM
-if test $HAVE_WCSXFRM = 0; then
- AC_LIBOBJ([wcsxfrm])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCSXFRM], [test $HAVE_WCSXFRM = 0])
gl_WCHAR_MODULE_INDICATOR([wcsxfrm])
Makefile.am:
+if GL_COND_OBJ_WCSXFRM
+lib_SOURCES += wcsxfrm.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCTOB
-if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
- AC_LIBOBJ([wctob])
+gl_CONDITIONAL([GL_COND_OBJ_WCTOB],
+ [test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1])
+AM_COND_IF([GL_COND_OBJ_WCTOB], [
gl_PREREQ_WCTOB
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wctob])
Makefile.am:
+if GL_COND_OBJ_WCTOB
+lib_SOURCES += wctob.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WCTOMB
-if test $REPLACE_WCTOMB = 1; then
- AC_LIBOBJ([wctomb])
+gl_CONDITIONAL([GL_COND_OBJ_WCTOMB], [test $REPLACE_WCTOMB = 1])
+AM_COND_IF([GL_COND_OBJ_WCTOMB], [
gl_PREREQ_WCTOMB
-fi
+])
gl_STDLIB_MODULE_INDICATOR([wctomb])
Makefile.am:
+if GL_COND_OBJ_WCTOMB
+lib_SOURCES += wctomb.c
+endif
Include:
<stdlib.h>
configure.ac:
gl_FUNC_WCTRANS
-if test $HAVE_WCTRANS = 0; then
- AC_LIBOBJ([wctrans])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCTRANS], [test $HAVE_WCTRANS = 0])
gl_WCTYPE_MODULE_INDICATOR([wctrans])
Makefile.am:
+if GL_COND_OBJ_WCTRANS
+lib_SOURCES += wctrans.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_WCTYPE
-if test $HAVE_WCTYPE = 0; then
- AC_LIBOBJ([wctype])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WCTYPE], [test $HAVE_WCTYPE = 0])
gl_WCTYPE_MODULE_INDICATOR([wctype])
Makefile.am:
+if GL_COND_OBJ_WCTYPE
+lib_SOURCES += wctype.c
+endif
Include:
<wctype.h>
configure.ac:
gl_FUNC_WCWIDTH
-if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
- AC_LIBOBJ([wcwidth])
+gl_CONDITIONAL([GL_COND_OBJ_WCWIDTH],
+ [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1])
+AM_COND_IF([GL_COND_OBJ_WCWIDTH], [
gl_PREREQ_WCWIDTH
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wcwidth])
Makefile.am:
+if GL_COND_OBJ_WCWIDTH
+lib_SOURCES += wcwidth.c
+endif
Include:
<wchar.h>
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-cond])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_COND],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_COND
+lib_SOURCES += windows-cond.c
+endif
Include:
"windows-cond.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-mutex])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_MUTEX],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_MUTEX
+lib_SOURCES += windows-mutex.c
+endif
Include:
"windows-mutex.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-once])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_ONCE],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_ONCE
+lib_SOURCES += windows-once.c
+endif
Include:
"windows-once.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-recmutex])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RECMUTEX],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_RECMUTEX
+lib_SOURCES += windows-recmutex.c
+endif
Include:
"windows-recmutex.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-rwlock])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RWLOCK],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_RWLOCK
+lib_SOURCES += windows-rwlock.c
+endif
Include:
"windows-rwlock.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-spawn])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_SPAWN],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_SPAWN
+lib_SOURCES += windows-spawn.c
+endif
Include:
"windows-spawn.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-spin])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_SPIN],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_SPIN
+lib_SOURCES += windows-spin.c
+endif
Include:
"windows-spin.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-thread])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_THREAD],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_THREAD
+lib_SOURCES += windows-thread.c
+endif
Include:
"windows-thread.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-timedmutex])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_TIMEDMUTEX],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_TIMEDMUTEX
+lib_SOURCES += windows-timedmutex.c
+endif
Include:
"windows-timedmutex.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-timedrecmutex])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_TIMEDRECMUTEX],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_TIMEDRECMUTEX
+lib_SOURCES += windows-timedrecmutex.c
+endif
Include:
"windows-timedrecmutex.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-timedrwlock])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_TIMEDRWLOCK],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_TIMEDRWLOCK
+lib_SOURCES += windows-timedrwlock.c
+endif
Include:
"windows-timedrwlock.h"
configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
-case "$host_os" in
- mingw*)
- AC_LIBOBJ([windows-tls])
- ;;
-esac
+gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_TLS],
+ [case "$host_os" in mingw*) true;; *) false;; esac])
Makefile.am:
+if GL_COND_OBJ_WINDOWS_TLS
+lib_SOURCES += windows-tls.c
+endif
Include:
"windows-tls.h"
configure.ac:
gl_FUNC_WMEMCHR
-if test $HAVE_WMEMCHR = 0; then
- AC_LIBOBJ([wmemchr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMCHR], [test $HAVE_WMEMCHR = 0])
gl_WCHAR_MODULE_INDICATOR([wmemchr])
Makefile.am:
+if GL_COND_OBJ_WMEMCHR
+lib_SOURCES += wmemchr.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WMEMCMP
-if test $HAVE_WMEMCMP = 0; then
- AC_LIBOBJ([wmemcmp])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMCMP], [test $HAVE_WMEMCMP = 0])
gl_WCHAR_MODULE_INDICATOR([wmemcmp])
Makefile.am:
+if GL_COND_OBJ_WMEMCMP
+lib_SOURCES += wmemcmp.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WMEMCPY
-if test $HAVE_WMEMCPY = 0; then
- AC_LIBOBJ([wmemcpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMCPY], [test $HAVE_WMEMCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wmemcpy])
Makefile.am:
+if GL_COND_OBJ_WMEMCPY
+lib_SOURCES += wmemcpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WMEMMOVE
-if test $HAVE_WMEMMOVE = 0; then
- AC_LIBOBJ([wmemmove])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMMOVE], [test $HAVE_WMEMMOVE = 0])
gl_WCHAR_MODULE_INDICATOR([wmemmove])
Makefile.am:
+if GL_COND_OBJ_WMEMMOVE
+lib_SOURCES += wmemmove.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WMEMPCPY
-if test $HAVE_WMEMPCPY = 0; then
- AC_LIBOBJ([wmempcpy])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMPCPY], [test $HAVE_WMEMPCPY = 0])
gl_WCHAR_MODULE_INDICATOR([wmempcpy])
Makefile.am:
+if GL_COND_OBJ_WMEMPCPY
+lib_SOURCES += wmempcpy.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WMEMSET
-if test $HAVE_WMEMSET = 0; then
- AC_LIBOBJ([wmemset])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMSET], [test $HAVE_WMEMSET = 0])
gl_WCHAR_MODULE_INDICATOR([wmemset])
Makefile.am:
+if GL_COND_OBJ_WMEMSET
+lib_SOURCES += wmemset.c
+endif
Include:
<wchar.h>
configure.ac:
gl_FUNC_WRITE
-if test $REPLACE_WRITE = 1; then
- AC_LIBOBJ([write])
+gl_CONDITIONAL([GL_COND_OBJ_WRITE], [test $REPLACE_WRITE = 1])
+AM_COND_IF([GL_COND_OBJ_WRITE], [
gl_PREREQ_WRITE
-fi
+])
gl_UNISTD_MODULE_INDICATOR([write])
Makefile.am:
+if GL_COND_OBJ_WRITE
+lib_SOURCES += write.c
+endif
Include:
<unistd.h>