make_defaults_h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. cat << END
  3. /*
  4. * defaults.h
  5. * Automatically generated from build options,
  6. * only used in main/asterisk.c
  7. */
  8. #define DEFAULT_CONFIG_FILE "${INSTALL_PATH}${ASTCONFPATH}"
  9. #define DEFAULT_CONFIG_DIR "${INSTALL_PATH}${ASTETCDIR}"
  10. #define DEFAULT_MODULE_DIR "${INSTALL_PATH}${ASTMODDIR}"
  11. #define DEFAULT_AGI_DIR "${INSTALL_PATH}${AGI_DIR}"
  12. #define DEFAULT_LOG_DIR "${INSTALL_PATH}${ASTLOGDIR}"
  13. #define DEFAULT_RUN_DIR "${INSTALL_PATH}${ASTVARRUNDIR}"
  14. #define DEFAULT_SOCKET "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.ctl"
  15. #define DEFAULT_PID "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.pid"
  16. #define DEFAULT_VAR_DIR "${INSTALL_PATH}${ASTVARLIBDIR}"
  17. #define DEFAULT_DB "${INSTALL_PATH}${ASTDBDIR}/astdb"
  18. #define DEFAULT_DATA_DIR "${INSTALL_PATH}${ASTDATADIR}"
  19. #define DEFAULT_KEY_DIR "${INSTALL_PATH}${ASTDATADIR}/keys"
  20. #define DEFAULT_SPOOL_DIR "${INSTALL_PATH}${ASTSPOOLDIR}"
  21. #define DEFAULT_TMP_DIR "${INSTALL_PATH}${ASTSPOOLDIR}/tmp"
  22. #define DEFAULT_SBIN_DIR "${INSTALL_PATH}${ASTSBINDIR}"
  23. END