Commit Graph

330 Commits

Author SHA1 Message Date
orbea
a37d624967 qb: Improve the check_val function.
This accomplishes two things for the fallback path without pkg-config.

1. If --disable-foo is passed to configure it will explicitly skip
   check_val. This has the benefit of reducing checks in
   qb/config.libs.sh which are easy to break due to human error.

2. When a fallback path exists and --enable-foo is passed to configure,
   but fails due to the missing -lfoo check_val will now bail and print
   a configure error. However --enable-foo will still be ignored if
   there is no fallback path and pkg-config is not installed.

One issue with this is that if pkg-config is installed and the package
foo is not, it will still check if -lfoo works. As not all pkg-config
implemenations can be trusted to work even if they exist this seems
unavoidable.
2017-12-30 20:56:40 -08:00
orbea
7ab2254fc4 qb: Fix --disable-oss for openbsd.
If --disable-oss is passed to configure we should not check for any oss support.
2017-12-30 15:45:19 -08:00
orbea
1b404afc86 qb: Include /usr/local/lib for *bsd too 2017-12-29 16:06:04 -08:00
Twinaphex
22062fdf91
Merge pull request #5991 from orbea/gl
qb: Include /usr/local/include for bsd based systems.
2017-12-29 21:08:41 +01:00
orbea
6ab2244a43 qb: Do not check for x11 when using --disable-x11. 2017-12-29 11:25:35 -08:00
orbea
a34555c9a9 qb: Include /usr/local/include for bsd based systems.
This resolves an issue where the default freebsd compiler does not
include /usr/local/include which contains important headers such as
GL/gl.h and results in the check_header function failing to find them.

Unfortunately pkg-config/pkgconf will not work here for two reasons.
1. It does not seem able to actually check for gl.h which RetroArch
explicitly needs.

2. Not all systems have a pkg-config implementation so we will still
have to fall back to checking for gl.h...

Fixes https://github.com/libretro/RetroArch/issues/5958
2017-12-29 10:23:14 -08:00
orbea
eaccab5237
Revert "config.libs.sh: reintroduce HAVE_X11 check" 2017-12-29 18:04:07 +00:00
Conn O'Griofa
010aa8061f config.libs.sh: reintroduce HAVE_X11 check
Current behaviour would force check_val to check for X11 even if explicitly disabled.

Fixes Raspberry Pi build (which requires --disable-x11).
2017-12-29 02:10:19 +00:00
orbea
a2032a56a0 qb: Allow using the system flac. 2017-12-27 09:51:19 -08:00
Twinaphex
61b7b2e590
Merge pull request #5968 from pattheaux/leds
Leds
2017-12-27 18:01:33 +01:00
orbea
e07ce68e7f Makefile.common: Clean up zlib check. 2017-12-27 08:38:47 -08:00
Ian House
8178e21cda Merge branch 'master' of https://github.com/libretro/RetroArch into leds 2017-12-27 11:14:35 -05:00
Ian House
aa7c289708 Added an LED interface and a Raspberry Pi GPIO implementation 2017-12-27 11:11:08 -05:00
orbea
c63011db71 qb: Disable all miniupnpc support with --disable-miniupnpc. 2017-12-26 16:18:47 -08:00
orbea
ac044c47ee qb: HAVE_MINIUPNPC is needed for builtin miniupnpc 2017-12-26 00:52:04 -08:00
orbea
9e7882ec96 Makefile.common: Clean up the miniupnpc check 2017-12-26 00:15:54 -08:00
Zoltán Mizsei
4f46402afb Haiku build fix 2017-11-27 22:33:58 +01:00
Brad Parker
28c6237b47 FreeBSD: support libusb hid input driver 2017-11-27 11:30:29 -05:00
orbea
fec63ae8ed qb: Set configure paths without unset variables. 2017-11-26 12:26:33 -08:00
orbea
631f0c4a8b qb: Create a check_val function for the no pkg-config fallback path. 2017-11-25 17:42:41 -08:00
orbea
fc5f04a762 qb: Define $2_LIBS in the check_lib function. 2017-11-25 15:27:01 -08:00
orbea
e0eb2b8a31 qb: Add $PKG_CONF_USED to the check_lib function to help avoid undefined referenecs. 2017-11-25 13:52:52 -08:00
orbea
82db21ed0b qb: Fix undefined references to EGL without pkg-config. 2017-11-25 11:05:40 -08:00
orbea
892c6b864a qb: Combine the add_include_dirs and add_library_dirs functions 2017-11-24 10:22:57 -08:00
orbea
cf45945aa8 qb: Combine the check_switch_c and check_switch_cxx functions. 2017-11-24 08:21:38 -08:00
orbea
1ca43bd819 qb: Combine the add_define_header and add_define_make functions. 2017-11-23 18:36:19 -08:00
orbea
c4dd3bbdce qb: Fix undefined udev references without pkg-config 2017-11-23 07:18:33 -08:00
orbea
bf8863d360 qb: Add a function to print warning or exit messages. 2017-11-18 02:54:58 -08:00
orbea
84f61a8b46 qb: Remove old submodule tests.
RetroArch no longer uses submodules for various good reasons and now uses git subtrees instead.
    As a result these files will always exist and these tests will always be true.
2017-11-18 02:31:47 -08:00
twinaphex
67fea30406 Remove remaining references to HAVE_FBO 2017-11-13 08:55:41 +01:00
orbea
48db41a112 qb: Combine the check_lib and check_lib_cxx functions. 2017-10-27 14:53:24 -07:00
orbea
b0d9a5c539 qb: Don't check for strlcpy on linux. 2017-10-27 11:23:55 -07:00
Twinaphex
4f58c1a77b Merge pull request #5612 from orbea/quotes
qb: Replace extra quotes with braces.
2017-10-26 14:14:10 +02:00
orbea
0d43f9f8c7 qb: Replace extra quotes with braces. 2017-10-25 23:16:09 -07:00
orbea
91f6218913 qb: Sort set variables. 2017-10-25 22:07:50 -07:00
orbea
e13837fc18 qb: Don't use sed. 2017-10-25 17:32:29 -07:00
orbea
b9a866326a qb: Remove poorly defined test behavior. 2017-10-24 19:01:36 -07:00
orbea
6ead9a09a1 qb: Explicitly set variables as a single command. 2017-10-23 16:19:16 -07:00
orbea
008a87c1ae qb: Clean up. 2017-10-22 07:44:14 -07:00
Twinaphex
3427c03aba Merge pull request #5578 from orbea/cleanup
qb: Clean up.
2017-10-22 16:00:41 +02:00
orbea
7c6dc0c8a7 qb: Clean up Darwin tests. 2017-10-21 22:58:15 -07:00
orbea
72d189da96 qb: Clean up. 2017-10-21 22:11:15 -07:00
orbea
5438eb1c6e If the --global-config-dir is not defined and --prefix is not set to /usr* add it to the --global-config-dir. 2017-10-21 21:33:18 -07:00
orbea
f1192ca8ac Fix --disable-networking.
Fixes https://github.com/libretro/RetroArch/issues/2663.
2017-10-21 19:22:14 -07:00
orbea
a943fabe1e qb: Fix $VARS for zsh. 2017-10-21 14:49:26 -07:00
orbea
6733c37805 qb: Fix constant expressions. 2017-10-18 15:23:31 -07:00
Conn O'Griofa
b67e6dc1ee config: Raspberry Pi: use videocore pkgconfig & fix fallback detection
Recent Raspberry Pi firmware images have renamed the vendor graphics
libraries (brcmEGL, brcmGLESv2, brcmOpenVG) to distinguish from the
standard VC4 Mesa driver.

* When videocore is selected, first try to use pkgconfig for the
new library names (brcmEGL, brcmGLESv2, brcmOpenVG).
* Ensure that non-pkgconfig fallback detection also checks the new
library names.

This should resolve compile issues in stretch whilst maintaining
compatibility with jessie firmwares later than 1.20160921-1 (the
first package that includes the renamed libraries).

The PKG_CONFIG_PATH must be set in your build environment in order
for the pkgconfig to be utilized, which will be included in
the next firmware (1.20170811-2 or later).
2017-10-06 04:03:29 +00:00
Andre Leiradella
cfd4a4bdf4 Remove threads as a prerequisite for cheevos 2017-10-03 21:05:23 +01:00
Rob Loach
c61f163454 Fix 7zip dependency include directory
Found `./decompress/7zip/`, which doesn't exist. It may be at [`deps/7zip`](https://github.com/libretro/RetroArch/tree/master/deps/7zip) instead.
2017-09-10 11:06:48 -04:00
Conn O'Griofa
87b743969d Revert "config.lib.sh: use brcm vg/egl/glesv2 packages on RPI" 2017-08-21 04:20:40 +01:00