DELTA 28506 0 1308 SVN§&šL ‚7€‚7XKˆ=ži# Detect Qt5 headers and libraries and set flag variables AC_ARG_VAR([MOCCMD], [QT 5 moc command (autodetected it if not set)]) AC_DEFUN([FC_QT5], [ if test "x$fc_qt5_usable" = "x" ; then case $host_os in darwin*) FC_QT5_DARWIN;; *) FC_QT5_GENERIC;; esac fi ]) AC_DEFUN([FC_QT5_GENERICENDREP DELTA 28500 1706 78 SVNOe Šv‹…dŠk5-darwin.m4ENDREP DELTA SVN”Y”Y€”Y# Detect Qt5 headers and libraries and set flag variables for Mac OS X 10.10+ AC_DEFUN([FC_QT5_DARWIN], [ AC_MSG_CHECKING([Qt5 framework]) AC_ARG_WITH([qt5_framework_bin], AS_HELP_STRING([--with-qt5-framework-bin], [path to binares of Qt5 framework (MacOS X, autodetected if wasn't specified)])) if test "x$qt5_framework_bin" = "x" ; then qt5_framework_bin="$(qtpaths --binaries-dir)" fi qt5_path="$(qtpaths --install-prefix)" if test "x$qt5_path" != "x" ; then AC_LANG_PUSH([C++]) FC_QT5_DARWIN_COMPILETEST([$qt5_path]) if test "x$qt5_headers" = "xyes" ; then FC_QT5_DARWIN_LINKTEST([$qt5_path]) else fc_qt5_usable=false fi AC_LANG_POP([C++]) if test "x$qt5_libs" = "xyes" ; then MOCCMD="$qt5_framework_bin/moc" AS_IF([test -x $MOCCMD], [fc_qt5_usable=true], [fc_qt5_usable=false]) else fc_qt5_usable=false fi fi if test "x$fc_qt5_usable" = "xtrue" ; then AC_MSG_RESULT([found]) else AC_MSG_RESULT([not found]) fi ]) dnl Test if Qt headers are found from given path AC_DEFUN([FC_QT5_DARWIN_COMPILETEST], [ CPPFADD=" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I$1/lib/QtWidgets.framework/Versions/5/Headers -I$1/lib/QtGui.framework/Versions/5/Headers -I$1/lib/QtCore.framework/Versions/5/Headers -I. -I$1/mkspecs/macx-clang -F$1/lib " CPPFLAGS_SAVE="$CPPFLAGS" CPPFLAGS="${CPPFLAGS}${CPPFADD}" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a; QApplication app(a, 0);]])], [qt5_headers=yes FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}"], [CXXFLAGS_SAVE="${CXXFLAGS}" CXXFLAGS="${CXXFLAGS} -fPIC" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a; QApplication app(a, 0);]])], [qt5_headers=yes FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC"]) CXXFLAGS="${CXXFLAGS_SAVE}"]) CPPFLAGS="$CPPFLAGS_SAVE" ]) dnl Test Qt application linking with current flags AC_DEFUN([FC_QT5_DARWIN_LINKTEST], [ LIBSADD=" -F$1/lib -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL" CPPFLAGS_SAVE="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" CXXFLAGS_SAVE="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" LIBS_SAVE="$LIBS" LIBS="${LIBS}${LIBSADD}" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int a; QApplication app(a, 0);]])], [qt5_libs=yes FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}"]) LIBS="$LIBS_SAVE" CPPFLAGS="${CPPFLAGS_SAVE}" CXXFLAGS="${CXXFLAGS_SAVE}" ]) ENDREP id: 59.5ck.r29104/3096 type: file pred: 59.5ck.r28500/4398 count: 123 text: 29104 361 32 2149 7081d10b8162ba45a11f736a9be48030 props: 10336 4357 111 0 910e8d1010fade384d0a5659f339617e cpath: /trunk/Makefile.am copyroot: 15280 /trunk id: 1toz.5ck.r29104/3330 type: file count: 0 text: 29104 420 2663 2649 ad1b5b7c3ea414c76dd223d7c6d8606a cpath: /trunk/m4/qt5-darwin.m4 copyroot: 15280 /trunk id: tqz.5ck.r29104/3489 type: file pred: tqz.5ck.r28506/1334 count: 7 text: 29104 0 335 5196 e5bd86aaf4426448848f887beaa54861 cpath: /trunk/m4/qt5.m4 copyroot: 15280 /trunk PLAIN K 8 c++11.m4 V 24 file 18ql.5ck.r28662/655 K 6 c11.m4 V 26 file 17mb.5ck.r25768/35598 K 6 c99.m4 V 24 file 2ez.5ck.r28882/2757 K 10 codeset.m4 V 25 file 4es.5ck.r25335/14690 K 11 compiler.m4 V 23 file 4dr.5ck.r20699/340 K 8 debug.m4 V 24 file 158.5ck.r28226/1170 K 13 fcdb-mysql.m4 V 25 file 6kl.5ck.r25193/13434 K 16 fcdb-postgres.m4 V 23 file 6km.5ck.r29035/112 K 15 fcdb-sqlite3.m4 V 25 file 6kn.5ck.r25193/14225 K 11 features.m4 V 23 file ug2.5ck.r26253/259 K 12 freetype2.m4 V 22 file 2e2.5ck.r27413/71 K 10 gettext.m4 V 26 file 19jq.5ck.r25866/39558 K 15 gettimeofday.m4 V 25 file 16o.5ck.r19659/29370 K 8 gprof.m4 V 25 file 4jy.5ck.r24590/11309 K 10 gtk-2.0.m4 V 23 file 12w.5ck.r28226/755 K 10 gtk-3.0.m4 V 24 file 6zi.5ck.r28754/1089 K 14 gtk2-client.m4 V 25 file 19f.5ck.r25193/12590 K 14 gtk3-client.m4 V 24 file 6zj.5ck.r28754/1266 K 8 iconv.m4 V 24 file 12y.5ck.r28824/9665 K 9 lib-ld.m4 V 25 file 4e4.5ck.r25335/15243 K 11 lib-link.m4 V 25 file 4e5.5ck.r25335/14871 K 13 lib-prefix.m4 V 25 file 4e6.5ck.r25335/15056 K 9 locale.m4 V 23 file 2cp.5ck.r25389/467 K 13 magickwand.m4 V 24 file 6nb.5ck.r24590/8866 K 20 mapimg-magickwand.m4 V 23 file 6nc.5ck.r25643/168 K 8 mysql.m4 V 23 file 6ko.5ck.r25662/384 K 6 nls.m4 V 26 file 19js.5ck.r25866/39403 K 12 no-client.m4 V 25 file 2cq.5ck.r15640/16763 K 6 pkg.m4 V 24 file 45j.5ck.r22101/3167 K 5 po.m4 V 25 file 19jt.5ck.r28824/9899 K 11 postgres.m4 V 25 file 6kp.5ck.r25193/14829 K 11 progtest.m4 V 26 file 19ju.5ck.r25866/39091 K 12 qt-client.m4 V 23 file 6k7.5ck.r26897/857 K 13 qt5-darwin.m4 V 25 file 1toz.5ck.r29104/3330 K 6 qt5.m4 V 24 file tqz.5ck.r29104/3489 K 11 readline.m4 V 23 file 133.5ck.r25028/237 K 13 sdl-client.m4 V 23 file 16v.5ck.r26932/591 K 6 sdl.m4 V 24 file 13j.5ck.r24590/9049 K 14 sdl2-client.m4 V 23 file qkc.5ck.r26993/206 K 7 sdl2.m4 V 23 file qwv.5ck.r26294/661 K 8 sound.m4 V 23 file 14o.5ck.r26911/421 K 10 sqlite3.m4 V 23 file 6kq.5ck.r25662/794 K 12 vsnprintf.m4 V 25 file 134.5ck.r21754/19854 K 13 web-client.m4 V 23 file n5w.5ck.r29083/641 K 4 x.m4 V 23 file 14b.59m.r25662/558 K 13 xaw-client.m4 V 25 file 2j4.5ck.r25193/13798 END ENDREP id: 12p.5ck.r29104/5805 type: dir pred: 12p.5ck.r29083/2913 count: 253 text: 29104 3663 2129 2129 12f53e73d14303c2809b68b918319ba7 props: 17175 0 94 0 b7d1f67a2107948335edc0c95b3e2bf5 cpath: /trunk/m4 copyroot: 15280 /trunk PLAIN K 9 ABOUT-NLS V 24 file fu.5ck.r27270/69307 K 7 AUTHORS V 24 file 5u.5ck.r22143/14016 K 7 COPYING V 19 file 1h.0.r9643/400 K 9 ChangeLog V 26 file 6l.5ck.r27473/7455495 K 7 INSTALL V 22 file 6.5ck.r29071/2530 K 11 Makefile.am V 23 file 59.5ck.r29104/3096 K 4 NEWS V 24 file 6m.5ck.r25634/30702 K 6 README V 20 file 7.0.r4421/96382 K 2 ai V 22 dir 8.5ck.r29055/47184 K 10 autogen.sh V 24 file 12o.5ck.r29071/2757 K 9 bootstrap V 23 dir 2p5.5ck.r29041/3417 K 6 client V 21 dir d.5ck.r29080/7953 K 6 common V 21 dir p.5ck.r29097/6380 K 12 configure.ac V 25 file 149.5ck.r29096/15036 K 4 data V 22 dir w.5ck.r29103/11161 K 12 dependencies V 23 dir 2yu.5ck.r28829/5968 K 3 doc V 22 dir k7.5ck.r29079/4409 K 10 fc_version V 25 file 2lo.5en.r29079/26188 K 11 gen_headers V 24 dir 1hsw.5ck.r28586/5208 K 2 m4 V 23 dir 12p.5ck.r29104/5805 K 7 scripts V 23 dir 2yo.5ck.r28716/5421 K 6 server V 21 dir z.5ck.r29100/4563 K 5 tests V 23 dir 2g9.5ck.r27783/1363 K 5 tools V 23 dir 4pj.5js.r29028/2308 K 12 translations V 23 dir t0a.5ck.r28955/2265 K 7 utility V 23 dir 1c.5ck.r29096/14803 K 5 win32 V 23 dir 2eu.5ck.r28347/2148 END ENDREP id: 3.5ck.r29104/7161 type: dir pred: 3.5ck.r29103/12523 count: 19566 text: 29104 6030 1118 1118 5eadb155bcadb8c819c928f7b3fadc99 props: 28036 14655 292 0 9e1d5de0253c723466868990c52c129f cpath: /trunk copyroot: 15280 /trunk PLAIN K 8 branches V 19 dir 1.0.r29102/6207 K 4 tags V 19 dir 2.0.r28528/6475 K 5 trunk V 21 dir 3.5ck.r29104/7161 K 7 website V 21 dir 3ge.0.r22980/2263 END ENDREP id: 0.0.r29104/7552 type: dir pred: 0.0.r29103/12916 count: 29104 text: 29104 7387 152 152 d9fe7db57c2108cdc5ebdc4b278fcdd3 cpath: / copyroot: 0 / tqz.5ck.t29103-1 modify true false /trunk/m4/qt5.m4 59.5ck.t29103-1 modify true false /trunk/Makefile.am _2.5ck.t29103-1 add true false /trunk/m4/qt5-darwin.m4 7552 7700