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

Merge branch 'master' of gitlab.eps.surrey.ac.uk:ri0005/binary_c

parents 3c4f47fa 2c79feea
No related branches found
No related tags found
No related merge requests found
...@@ -565,18 +565,19 @@ endif ...@@ -565,18 +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).found()
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))
else # Debian and derivatives e.g. Ubuntu
error('cannot find libiberty.h at either <libiberty.h> or <libiberty/libiberty.h>') 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