ObjFW  Check-in [cc681ad9ec]

Overview
Comment:Add -latomic on HP-UX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cc681ad9ecd552e1e6ed0d4eefd0b267084263c8b470c3ce162060773565dc9a
User & Date: js on 2020-12-31 17:31:12
Other Links: manifest | tags
Context
2021-01-01
14:18
Update buildsys check-in: 5595245c5a user: js tags: trunk
2020-12-31
17:31
Add -latomic on HP-UX check-in: cc681ad9ec user: js tags: trunk
17:28
Use strtod() if we have no strtof() check-in: aceaca225d user: js tags: trunk
Changes

Modified configure.ac from [75b318c318] to [e6d54a4062].

125
126
127
128
129
130
131


132
133
134
135
136
137
138
	dnl HP-UX 11.11's inttypes.h defines UINTPTR_MAX etc. to nothing. GCC's
	dnl stdint.h defines those correctly, but if inttypes.h gets included
	dnl after something included stdint.h, it gets broken again. Therefore,
	dnl always include inttypes.h as the very first thing.
	dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
	dnl also used for .S files.
	OBJCFLAGS="$OBJCFLAGS -include inttypes.h"


	;;
esac

AS_IF([test x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"], [
	dnl Hack to make configure find these on DOS.
	: ${AR:=ar.exe}
	: ${GREP:=grep.exe}







>
>







125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
	dnl HP-UX 11.11's inttypes.h defines UINTPTR_MAX etc. to nothing. GCC's
	dnl stdint.h defines those correctly, but if inttypes.h gets included
	dnl after something included stdint.h, it gets broken again. Therefore,
	dnl always include inttypes.h as the very first thing.
	dnl We need to put this into OBJCFLAGS and not CPPFLAGS as CPPFLAGS are
	dnl also used for .S files.
	OBJCFLAGS="$OBJCFLAGS -include inttypes.h"
	dnl We need -latomic for GCC's atomics to work.
	LIBS="$LIBS -latomic"
	;;
esac

AS_IF([test x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"], [
	dnl Hack to make configure find these on DOS.
	: ${AR:=ar.exe}
	: ${GREP:=grep.exe}