The problem appears to be these X11 errors in the config.log:
configure:26359: checking for xReply
configure:26359: /usr/bin/clang -arch x86_64 -c -pipe -Os -fstrict-aliasing -arch x86_64 -Wall -I/opt/local/include -DX_LOCALE conftest.c >&5
In file included from conftest.c:63:
/opt/local/include/X11/Xlibint.h:68:8: error: redefinition of '_XDisplay'
struct _XDisplay
^
/opt/local/include/X11/Xlib.h:448:16: note: previous definition is here
typedef struct _XDisplay {
^
In file included from conftest.c:63:
/opt/local/include/X11/Xlibint.h:193:3: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie * /* Xlib event */,
^
/opt/local/include/X11/Xlibint.h:198:3: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie * /* in */,
^
/opt/local/include/X11/Xlibint.h:199:3: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie * /* out*/);
^
/opt/local/include/X11/Xlibint.h:938:3: error: expected function body after function declarator
) _X_NORETURN;
^
/opt/local/include/X11/Xlibint.h:1060:5: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* re */,
^
/opt/local/include/X11/Xlibint.h:1066:5: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* in */,
^
/opt/local/include/X11/Xlibint.h:1067:5: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* out */
^
/opt/local/include/X11/Xlibint.h:1227:16: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* re */,
^
/opt/local/include/X11/Xlibint.h:1231:15: error: unknown type name 'XGenericEventCookie'
Display*, XGenericEventCookie*, xEvent*
^
/opt/local/include/X11/Xlibint.h:1239:16: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* in */,
^
/opt/local/include/X11/Xlibint.h:1240:16: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie* /* out */
^
/opt/local/include/X11/Xlibint.h:1243:15: error: unknown type name 'XGenericEventCookie'
Display*, XGenericEventCookie*, XGenericEventCookie*
^
/opt/local/include/X11/Xlibint.h:1243:37: error: unknown type name 'XGenericEventCookie'
Display*, XGenericEventCookie*, XGenericEventCookie*
^
/opt/local/include/X11/Xlibint.h:1321:5: error: unknown type name 'XConnectionWatchProc'
XConnectionWatchProc fn;
^
/opt/local/include/X11/Xlibint.h:1424:9: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie *ev);
^
/opt/local/include/X11/Xlibint.h:1428:9: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie *in,
^
/opt/local/include/X11/Xlibint.h:1429:9: error: unknown type name 'XGenericEventCookie'
XGenericEventCookie *out);
^
18 errors generated.
configure:26359: $? = 1
Are your X11-related dependencies up to date? (Check port outdated
for anything starting with "xorg".)