ObjFW  Check-in [f59ef88b32]

Overview
Comment:configure: Link tests with -lcomplex if available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f59ef88b32ac9c7e6da95bf8d1fe9a26a11b63dbee09a49cf55d0d5dcac67f52
User & Date: js on 2018-05-21 15:54:47
Other Links: manifest | tags
Context
2018-05-21
16:09
configure: Add -fexceptions to LDFLAGS check-in: 30d85dc3fc user: js tags: trunk
15:54
configure: Link tests with -lcomplex if available check-in: f59ef88b32 user: js tags: trunk
12:10
ofzip: Refactor safe path checking check-in: f29afa4a27 user: js tags: trunk
Changes

Modified configure.ac from [f664fa3121] to [be966e66b2].

740
741
742
743
744
745
746

747
748
749
750
751
752
753
		])
		;;
esac

AC_CHECK_FUNCS(strerror_r)

AC_CHECK_LIB(m, fmod, LIBS="$LIBS -lm")


AC_CHECK_FUNC(asprintf, [
	case "$host" in
		*-psp-*)
			dnl asprintf is broken on the PSP, but snprintf works.
			have_asprintf="no"
			ac_cv_snprintf_useful_ret="yes"







>







740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
		])
		;;
esac

AC_CHECK_FUNCS(strerror_r)

AC_CHECK_LIB(m, fmod, LIBS="$LIBS -lm")
AC_CHECK_LIB(complex, creal, TESTS_LIBS="$TESTS_LIBS -lcomplex")

AC_CHECK_FUNC(asprintf, [
	case "$host" in
		*-psp-*)
			dnl asprintf is broken on the PSP, but snprintf works.
			have_asprintf="no"
			ac_cv_snprintf_useful_ret="yes"