Skip to content
Snippets Groups Projects
Commit 8e6645ed authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add secondary check for libiberty

parent 0c3857e1
No related branches found
No related tags found
No related merge requests found
...@@ -565,16 +565,19 @@ endif ...@@ -565,16 +565,19 @@ endif
########################## ##########################
# location of libiberty.h # location of libiberty.h
# #
if compiler.has_header('libiberty.h', if compiler.find_library('iberty',
args: cflags, required:false)
include_directories: include_directories(incdirs)) if compiler.has_header('libiberty.h',
# Fedora args: cflags,
cflags += '-D__HAVE_LIBIBERTYH__' include_directories: include_directories(incdirs))
elif compiler.has_header('libiberty/libiberty.h', # Fedora
args: cflags, cflags += '-D__HAVE_LIBIBERTYH__'
include_directories: include_directories(incdirs)) elif compiler.has_header('libiberty/libiberty.h',
# Debian and derivatives e.g. Ubuntu args: cflags,
cflags += '-D__HAVE_LIBIBERTY_LIBIBERTYH__' include_directories: include_directories(incdirs))
# Debian and derivatives e.g. Ubuntu
cflags += '-D__HAVE_LIBIBERTY_LIBIBERTYH__'
endif
endif endif
############################################################ ############################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment