FR_SMART_CHECK_INCLUDE prefixes

Aaron Hurt ahurt at ena.com
Mon Sep 15 18:59:46 CEST 2014


The newish smart_prefix parts in FR_SMART_CHECK_INCLUDE don’t seem to be working as intended in testing on my OSX and Linux systems.

Example:

$smart_prefix = "json json-c”

The code checks with: "-isystem json/" and "-isystem json-c/“ but does not succeed when json.h is present under /usr/include/json-c/json.h

The intent appears to be that the compiler (clang / gcc) will prepend the system default search paths but this doesn’t seem to be the case.

Under OSX the overall function works when it falls through to the ‘guessing’ section when the file is present under /usr/local/include/json-c/json.h

This could possibly be fixed by simply adding "/usr/include" to the start of _smart_include_dir and doing away with the previous check that was attempting to use the default search paths with prefixes.

Anyone have any other thoughts?

— Aaron



More information about the Freeradius-Devel mailing list