configure.ac 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.57)
  4. AC_INIT([sshpass], [1.06])
  5. AM_INIT_AUTOMAKE
  6. AC_COPYRIGHT([Copyright (C) 2006,2008,2011,2016 Shachar Shemesh])
  7. AC_CONFIG_SRCDIR([main.c])
  8. AC_USE_SYSTEM_EXTENSIONS
  9. # Checks for programs.
  10. AC_PROG_CC
  11. # Checks for libraries.
  12. # Checks for header files.
  13. AC_HEADER_STDC
  14. AC_HEADER_SYS_WAIT
  15. AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h termios.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. AC_C_CONST
  18. AC_TYPE_PID_T
  19. AC_TYPE_SSIZE_T
  20. # Checks for library functions.
  21. AC_FUNC_FORK
  22. AC_PROG_GCC_TRADITIONAL
  23. AC_FUNC_MALLOC
  24. AC_FUNC_SELECT_ARGTYPES
  25. AC_TYPE_SIGNAL
  26. AC_CHECK_FUNCS([select posix_openpt strdup])
  27. AC_ARG_ENABLE([password-prompt],
  28. [AS_HELP_STRING([--enable-password-prompt=prompt], [Provide alternative ssh password prompt to look for.])],
  29. [AC_DEFINE_UNQUOTED([PASSWORD_PROMPT], ["$enable_password_prompt"], [Password prompt to use])],
  30. [AC_DEFINE([PASSWORD_PROMPT], ["assword"])])
  31. AC_CONFIG_FILES([Makefile])
  32. AM_CONFIG_HEADER(config.h)
  33. AC_OUTPUT