diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:46 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:46 +0100 |
commit | c07ebfa1e02d208ab12430e6791ea147bcfaf9c0 (patch) | |
tree | d44a755098286f5d553c7aea1a73d98c2995d6ec /configure | |
parent | 66ee8158b69525e12060ef558cb5d77feadab1dc (diff) | |
download | util-linux-old-c07ebfa1e02d208ab12430e6791ea147bcfaf9c0.tar.gz |
Imported from util-linux-2.11b tarball.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 30 insertions, 4 deletions
@@ -9,7 +9,7 @@ # H3. For kbd_rate.c: does <linux/kd.h> exist? # H4. For nls.h: do we have <locale.h>? # H5. For cal.c: do we have <langinfo.h>? -# H6. For mkswap.c: do we have <asm/page.h>? +# H6. For mkswap.c: do we have <sys/user.h> or <asm/page.h>? # H7. For nfsmount.h (nfsmount_xdr.c: int32_t): do we have <asm/types.h>? # # Existence of functions: @@ -18,6 +18,7 @@ # F3. For agetty.c: is getdomainname() available? # F4. For hwclock/kd.c: do we have nanosleep()? # F5. For mkswap.c: do we have personality()? +# F6. For agetty.c: is updwtmp() available? # # 1. For sys-utils/cytune.c: do we need <linux/tqueue.h>? # 2. For cfdisk, setterm, more, ul: do we have ncurses? How installed? @@ -114,11 +115,13 @@ if ./testincl "langinfo.h"; then fi # -# H6. For mkswap.c: do we have <asm/page.h>? +# H6. For mkswap.c: do we have <sys/user.h> or <asm/page.h>? # -if ./testincl "asm/page.h"; then +if ./testincl "sys/user.h"; then + echo "#define HAVE_sys_user_h" >> defines.h +else if ./testincl "asm/page.h"; then echo "#define HAVE_asm_page_h" >> defines.h -fi +fi fi # # H7. For nfsmount.h: do we have <asm/types.h>? @@ -234,6 +237,29 @@ else fi rm -f conftest conftest.c +# +# F6. For agetty.c: is updwtmp() available? +# +echo ' +#include <string.h> +#include <utmp.h> +main(int a, char **v){ + struct utmp ut; + memset (&ut, 0, sizeof(ut)); + if (a == -1) /* false */ + updwtmp("/nowhere/wtmp", &ut); + exit(0); +} +' > conftest.c +eval $compile +if test -s conftest && ./conftest 2>/dev/null; then + echo "#define HAVE_updwtmp" >> defines.h + echo "You have updwtmp()" +else + echo "You don't have updwtmp()" +fi +rm -f conftest conftest.c + # # 1. cytune.c may need struct tq_struct |