• Oron Peled's avatar
    link libtonezone directly to libm · e1da7b52
    Oron Peled authored
    * Now we properly '-lm' to libtonezone itself.
      Tools that link with libtonezone get it automatically without having
      to individually link it.
      - dahdi_cfg historically needed -lm, but no longer does.
    * Also use "autoscan" to refresh "configure.ac":
      - Added missing tests
      - Move AC_CHECK_HEADERS() to their correct location (before testing
    * Fixes the following (on Ubuntu-14.04):
          CCLD     dahdi_cfg
        ./.libs/libtonezone.so: undefined reference to `sin'
        ./.libs/libtonezone.so: undefined reference to `cos'
        ./.libs/libtonezone.so: undefined reference to `pow'
        collect2: error: ld returned 1 exit status
        make[2]: *** [dahdi_cfg] Error 1
    Signed-off-by: 's avatarTzafrir Cohen <tzafrir.cohen@xorcom.com>
configure.ac 11 KB