xref: /rkdeveloptool/configure.ac (revision a39ebdde055e1fe976ed91a08b7f49887c4e90c3)
15b7562f2STrevor Woernerdnl Copyright (C) 2017  Trevor Woerner <twoerner@gmail.com>
25b7562f2STrevor Woerner
3c30d921cSKever YangAC_INIT([Rockchip rkdeveloptool], 1.2, [Eddie Cai <eddie.cai.linux@gmail.com>], rkdeveloptool)
45b7562f2STrevor WoernerAC_PREREQ([2.68])
55b7562f2STrevor WoernerAC_CONFIG_SRCDIR(main.cpp)
65b7562f2STrevor WoernerAC_CONFIG_AUX_DIR(cfg)
75b7562f2STrevor WoernerAM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2 1.9])
85b7562f2STrevor WoernerAM_CONFIG_HEADER(cfg/config.h)
95b7562f2STrevor Woerner
105b7562f2STrevor WoernerSUBDIRS=""
115b7562f2STrevor Woerner
125b7562f2STrevor WoernerAC_PROG_CPP
135b7562f2STrevor WoernerAC_PROG_CXX
145b7562f2STrevor WoernerAC_PROG_CXXCPP
155b7562f2STrevor WoernerAC_PROG_MAKE_SET
165b7562f2STrevor WoernerAC_PROG_INSTALL
175b7562f2STrevor WoernerAC_PROG_LN_S
185b7562f2STrevor Woerner
19*a39ebddeSKlaus GogerAC_CANONICAL_HOST
20*a39ebddeSKlaus Gogercase "$host_os" in
21*a39ebddeSKlaus Goger	openbsd*)
22*a39ebddeSKlaus Goger		CPPFLAGS="$CFLAGS -I/usr/local/include"
23*a39ebddeSKlaus Goger		LDFLAGS="$LDFLAGS -L/usr/local/lib"
24*a39ebddeSKlaus Goger		;;
25*a39ebddeSKlaus Goger	*)
26*a39ebddeSKlaus Goger		;;
27*a39ebddeSKlaus Gogeresac
28*a39ebddeSKlaus Goger
29288c61aaSKlaus GogerAC_SEARCH_LIBS(iconv, iconv)
30288c61aaSKlaus Goger
315b7562f2STrevor WoernerPKG_CHECK_MODULES(LIBUSB1,libusb-1.0)
325b7562f2STrevor Woerner
335b7562f2STrevor WoernerAC_CONFIG_FILES([Makefile])
345b7562f2STrevor WoernerAC_CONFIG_FILES([cfg/Makefile])
355b7562f2STrevor Woerner
365b7562f2STrevor WoernerAC_OUTPUT
37