configure.ac 138 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581
  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl Original author: Michael Patra
  3. dnl For detailed change history, see the git commit logs.
  4. m4_define(WINE_VERSION,regexp(m4_include(VERSION),[version \([-.0-9A-Za-z]+\)],[\1]))
  5. dnl autoconf versions before 2.63b don't have AS_VAR_APPEND or AS_VAR_IF
  6. AC_PREREQ(2.63b)
  7. AC_INIT([Wine],[WINE_VERSION],[wine-devel@winehq.org],[wine],[https://www.winehq.org])
  8. AC_CONFIG_SRCDIR(server/atom.c)
  9. AC_CONFIG_HEADERS(include/config.h)
  10. AC_CONFIG_AUX_DIR(tools)
  11. libwine_version="1.0"
  12. dnl **** Command-line arguments ****
  13. AC_ARG_ENABLE(win16, AS_HELP_STRING([--disable-win16],[do not include Win16 support]))
  14. AC_ARG_ENABLE(win64, AS_HELP_STRING([--enable-win64],[build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
  15. AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests],[do not build the regression tests]))
  16. AC_ARG_ENABLE(build-id, AS_HELP_STRING([--enable-build-id],[include .buildid section in output objects]))
  17. AC_ARG_ENABLE(maintainer-mode, AS_HELP_STRING([--enable-maintainer-mode],[enable maintainer-specific build rules]))
  18. AC_ARG_ENABLE(silent-rules, AS_HELP_STRING([--enable-silent-rules],[use silent build rules (override: "make V=1")]))
  19. AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror],[treat compilation warnings as errors]))
  20. AC_ARG_WITH(alsa, AS_HELP_STRING([--without-alsa],[do not use the Alsa sound support]))
  21. AC_ARG_WITH(capi, AS_HELP_STRING([--without-capi],[do not use CAPI (ISDN support)]))
  22. AC_ARG_WITH(coreaudio, AS_HELP_STRING([--without-coreaudio],[do not use the CoreAudio sound support]),
  23. [if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi])
  24. AC_ARG_WITH(cups, AS_HELP_STRING([--without-cups],[do not use CUPS]))
  25. AC_ARG_WITH(dbus, AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)]))
  26. AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms]))
  27. AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]))
  28. AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
  29. AC_ARG_WITH(gettext, AS_HELP_STRING([--without-gettext],[do not use gettext]))
  30. AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]),
  31. [if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
  32. AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
  33. AC_ARG_WITH(gnutls, AS_HELP_STRING([--without-gnutls],[do not use GnuTLS (schannel support)]))
  34. AC_ARG_WITH(gssapi, AS_HELP_STRING([--without-gssapi],[do not use GSSAPI (Kerberos SSP support)]))
  35. AC_ARG_WITH(gstreamer, AS_HELP_STRING([--without-gstreamer],[do not use GStreamer (codecs support)]))
  36. AC_ARG_WITH(inotify, AS_HELP_STRING([--without-inotify],[do not use inotify (filesystem change notifications)]))
  37. AC_ARG_WITH(krb5, AS_HELP_STRING([--without-krb5],[do not use krb5 (Kerberos)]))
  38. AC_ARG_WITH(ldap, AS_HELP_STRING([--without-ldap],[do not use LDAP]),
  39. [if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi])
  40. AC_ARG_WITH(mingw, AS_HELP_STRING([--without-mingw],[do not use the MinGW cross-compiler]))
  41. AC_ARG_WITH(netapi, AS_HELP_STRING([--without-netapi],[do not use the Samba NetAPI library]))
  42. AC_ARG_WITH(openal, AS_HELP_STRING([--without-openal],[do not use OpenAL]),
  43. [if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi])
  44. AC_ARG_WITH(opencl, AS_HELP_STRING([--without-opencl],[do not use OpenCL]),
  45. [if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi])
  46. AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL]))
  47. AC_ARG_WITH(osmesa, AS_HELP_STRING([--without-osmesa],[do not use the OSMesa library]))
  48. AC_ARG_WITH(oss, AS_HELP_STRING([--without-oss],[do not use the OSS sound support]))
  49. AC_ARG_WITH(pcap, AS_HELP_STRING([--without-pcap],[do not use the Packet Capture library]),
  50. [if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi])
  51. AC_ARG_WITH(pthread, AS_HELP_STRING([--without-pthread],[do not use the pthread library]),
  52. [if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi])
  53. AC_ARG_WITH(pulse, AS_HELP_STRING([--without-pulse],[do not use PulseAudio sound support]))
  54. AC_ARG_WITH(sane, AS_HELP_STRING([--without-sane],[do not use SANE (scanner support)]))
  55. AC_ARG_WITH(sdl, AS_HELP_STRING([--without-sdl],[do not use SDL]))
  56. AC_ARG_WITH(udev, AS_HELP_STRING([--without-udev],[do not use udev (plug and play support)]))
  57. AC_ARG_WITH(unwind, AS_HELP_STRING([--without-unwind],[do not use the libunwind library (exception handling)]))
  58. AC_ARG_WITH(usb, AS_HELP_STRING([--without-usb],[do not use the libusb library]))
  59. AC_ARG_WITH(v4l2, AS_HELP_STRING([--without-v4l2],[do not use v4l2 (video capture)]))
  60. AC_ARG_WITH(vulkan, AS_HELP_STRING([--without-vulkan],[do not use Vulkan]))
  61. AC_ARG_WITH(xcomposite,AS_HELP_STRING([--without-xcomposite],[do not use the Xcomposite extension]),
  62. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi])
  63. AC_ARG_WITH(xcursor, AS_HELP_STRING([--without-xcursor],[do not use the Xcursor extension]),
  64. [if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi])
  65. AC_ARG_WITH(xfixes, AS_HELP_STRING([--without-xfixes],[do not use Xfixes for clipboard change notifications]),
  66. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xfixes_h=no; fi])
  67. AC_ARG_WITH(xinerama, AS_HELP_STRING([--without-xinerama],[do not use Xinerama (legacy multi-monitor support)]),
  68. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi])
  69. AC_ARG_WITH(xinput, AS_HELP_STRING([--without-xinput],[do not use the Xinput extension]),
  70. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi])
  71. AC_ARG_WITH(xinput2, AS_HELP_STRING([--without-xinput2],[do not use the Xinput 2 extension]),
  72. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi])
  73. AC_ARG_WITH(xrandr, AS_HELP_STRING([--without-xrandr],[do not use Xrandr (multi-monitor support)]),
  74. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi])
  75. AC_ARG_WITH(xrender, AS_HELP_STRING([--without-xrender],[do not use the Xrender extension]),
  76. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi])
  77. AC_ARG_WITH(xshape, AS_HELP_STRING([--without-xshape],[do not use the Xshape extension]),
  78. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi])
  79. AC_ARG_WITH(xshm, AS_HELP_STRING([--without-xshm],[do not use XShm (shared memory extension)]),
  80. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi])
  81. AC_ARG_WITH(xxf86vm, AS_HELP_STRING([--without-xxf86vm],[do not use XFree video mode extension]),
  82. [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi])
  83. AC_ARG_WITH(system-dllpath,AS_HELP_STRING([--with-system-dllpath=PATH],[load external PE dependencies from colon-separated path PATH]),
  84. AC_SUBST(system_dllpath,[$withval]))
  85. AC_ARG_WITH(wine-tools,AS_HELP_STRING([--with-wine-tools=DIR],[use Wine tools from directory DIR]))
  86. AC_ARG_WITH(wine64, AS_HELP_STRING([--with-wine64=DIR],[use the 64-bit Wine in DIR for a Wow64 build]))
  87. AC_CANONICAL_HOST
  88. AC_SUBST(dlldir,[\${libdir}/wine])
  89. AC_SUBST(fontdir,[\${datadir}/wine/fonts])
  90. AC_SUBST(nlsdir,[\${datadir}/wine/nls])
  91. AC_SUBST(srcdir)
  92. dnl **** Check for some programs ****
  93. AC_PROG_MAKE_SET
  94. AC_PROG_CC
  95. AC_PROG_CXX
  96. dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
  97. AC_CHECK_TOOL(CPPBIN,cpp,cpp)
  98. AC_DEFINE_UNQUOTED(EXEEXT,["$ac_exeext"],[Define to the file extension for executables.])
  99. AC_CHECK_TOOL(LD,ld)
  100. case $host in
  101. *-darwin*)
  102. with_fontconfig=${with_fontconfig:-no}
  103. ;;
  104. *-mingw32*|*-cygwin*)
  105. enable_win16=${enable_win16:-no}
  106. with_mingw=${with_mingw:-no}
  107. ;;
  108. esac
  109. AC_SUBST(TARGETFLAGS)
  110. case $host in
  111. x86_64*|amd64*)
  112. if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
  113. then
  114. CC="$CC -m32"
  115. CXX="$CXX -m32"
  116. AC_CACHE_CHECK([whether $CC works], wine_cv_cc_m32,
  117. [AC_LINK_IFELSE([AC_LANG_PROGRAM()],[wine_cv_cc_m32=yes],[wine_cv_cc_m32=no])])
  118. test $wine_cv_cc_m32 != no || AC_MSG_ERROR([Cannot build a 32-bit program, you need to install 32-bit development libraries.])
  119. host_cpu="i386"
  120. notice_platform="32-bit "
  121. TARGETFLAGS="$TARGETFLAGS -m32"
  122. PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
  123. export PKG_CONFIG_PATH
  124. enable_win16=${enable_win16:-yes}
  125. with_unwind=${with_unwind:-no}
  126. else
  127. if test "x${GCC}" = "xyes"
  128. then
  129. AC_CACHE_CHECK([whether $CC supports __builtin_ms_va_list],wine_cv_builtin_ms_va_list,
  130. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[void func(__builtin_ms_va_list *args);]])],
  131. [wine_cv_builtin_ms_va_list=yes],[wine_cv_builtin_ms_va_list=no])])
  132. test $wine_cv_builtin_ms_va_list != no || AC_MSG_ERROR([You need gcc >= 4.4 or clang >= 3.8 to build Wine as 64-bit.])
  133. fi
  134. CC="$CC -m64"
  135. CXX="$CXX -m64"
  136. host_cpu="x86_64"
  137. notice_platform="64-bit "
  138. TARGETFLAGS="$TARGETFLAGS -m64"
  139. enable_wow64=${enable_wow64:-yes}
  140. enable_wow64win=${enable_wow64win:-yes}
  141. enable_wow64cpu=${enable_wow64cpu:-yes}
  142. fi
  143. ;;
  144. arm*)
  145. AC_CACHE_CHECK([whether $CC supports Thumb-2],wine_cv_thumb2,
  146. [WINE_TRY_ASM_LINK([".syntax unified\n\t.thumb\n\tldm r0,{r0-r8}"],,,
  147. [wine_cv_thumb2=yes],[wine_cv_thumb2=no])])
  148. if test x"$wine_cv_thumb2" = xyes
  149. then
  150. CFLAGS="$CFLAGS -mthumb"
  151. TARGETFLAGS="$TARGETFLAGS -mthumb"
  152. else
  153. CFLAGS="$CFLAGS -marm"
  154. TARGETFLAGS="$TARGETFLAGS -marm"
  155. fi
  156. case $with_float_abi in
  157. soft|softfp|hard)
  158. float_abi=$with_float_abi ;;
  159. *)
  160. case $host_os in
  161. *eabihf)
  162. float_abi=hard ;;
  163. *)
  164. float_abi=softfp
  165. saved_CFLAGS=$CFLAGS
  166. CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
  167. AC_CACHE_CHECK([whether $CC supports -mfloat-abi=$float_abi],wine_cv_float_abi,
  168. [WINE_TRY_ASM_LINK(["vmrs r2,fpscr"],,,[wine_cv_float_abi=yes],[wine_cv_float_abi=no])])
  169. if test $wine_cv_float_abi = no
  170. then
  171. float_abi=soft
  172. WINE_WARNING([Floating point is not supported for this target. The resulting build won't be compatible with Windows ARM binaries.])
  173. fi
  174. CFLAGS=$saved_CFLAGS
  175. esac
  176. ;;
  177. esac
  178. CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
  179. TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
  180. ;;
  181. aarch64*)
  182. enable_wow64=${enable_wow64:-yes}
  183. enable_wow64win=${enable_wow64win:-yes}
  184. ;;
  185. i[[3456789]]86*)
  186. enable_win16=${enable_win16:-yes}
  187. with_unwind=${with_unwind:-no}
  188. ;;
  189. esac
  190. dnl enable_win16 defaults to yes on x86, to no on other CPUs
  191. enable_win16=${enable_win16:-no}
  192. enable_win64=${enable_win64:-no}
  193. enable_wow64=${enable_wow64:-no}
  194. enable_wow64win=${enable_wow64win:-no}
  195. enable_wow64cpu=${enable_wow64cpu:-no}
  196. dnl Disable winetest too if tests are disabled
  197. enable_winetest=${enable_winetest:-$enable_tests}
  198. dnl Some special cases for the 64-bit build
  199. if test "x$enable_win64" = "xyes"
  200. then
  201. test -z "$with_wine64" || AC_MSG_ERROR([--enable-win64 and --with-wine64 are mutually exclusive.
  202. --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree.])
  203. fi
  204. case $build_os in
  205. cygwin*|mingw32*) AC_SUBST(toolsext,".exe") ;;
  206. *) AC_SUBST(toolsext,"") ;;
  207. esac
  208. AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
  209. [wine_cv_toolsdir="$with_wine_tools"
  210. if test -z "$with_wine_tools"; then
  211. if test "$cross_compiling" = "yes"; then
  212. AC_MSG_ERROR([you must use the --with-wine-tools option when cross-compiling.])
  213. elif test -n "$with_wine64"; then
  214. wine_cv_toolsdir="$with_wine64"
  215. fi
  216. fi])
  217. if test -z "$wine_cv_toolsdir"; then
  218. wine_makedep=tools/makedep$toolsext
  219. elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
  220. wine_makedep=$wine_cv_toolsdir/tools/makedep$toolsext
  221. enable_tools=${enable_tools:-no}
  222. test -f "$wine_makedep" || AC_MSG_ERROR([the Wine tools have not yet been built in $wine_cv_toolsdir])
  223. else
  224. AC_MSG_ERROR([could not find Wine tools in $wine_cv_toolsdir])
  225. fi
  226. AC_SUBST(toolsdir,[$wine_cv_toolsdir])
  227. AC_SUBST(MAKEDEP,[$wine_makedep])
  228. AC_SUBST(RUNTESTFLAGS,["-q -P wine"])
  229. AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
  230. if test -n "$host_alias" -a "$host_alias" != "$build_alias"
  231. then
  232. TARGETFLAGS="-b $host_alias $TARGETFLAGS"
  233. fi
  234. dnl Check for flex
  235. AC_CHECK_PROGS(FLEX,flex,none)
  236. if test "$FLEX" = "none"
  237. then
  238. AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.])
  239. fi
  240. AC_CACHE_CHECK([whether flex is recent enough],wine_cv_recent_flex,
  241. [cat >conftest.l <<EOF
  242. %top{
  243. #include "prediluvian.h"
  244. }
  245. %%
  246. EOF
  247. if $FLEX -t conftest.l >/dev/null 2>&AS_MESSAGE_LOG_FD
  248. then
  249. wine_cv_recent_flex=yes
  250. else
  251. wine_cv_recent_flex=no
  252. fi])
  253. test $wine_cv_recent_flex != no || AC_MSG_ERROR([Your flex version is too old. Please install flex version 2.5.33 or newer.])
  254. dnl Check for bison
  255. AC_CHECK_PROGS(BISON,bison,none)
  256. if test "$BISON" = "none"
  257. then
  258. AC_MSG_ERROR([no suitable bison found. Please install the 'bison' package.])
  259. fi
  260. AC_CACHE_CHECK([whether bison is recent enough],wine_cv_recent_bison,
  261. [cat >conftest.y <<EOF
  262. %define parse.error verbose
  263. %%
  264. empty: ;
  265. EOF
  266. if $BISON conftest.y >/dev/null 2>&AS_MESSAGE_LOG_FD
  267. then
  268. wine_cv_recent_bison=yes
  269. else
  270. wine_cv_recent_bison=no
  271. fi])
  272. test $wine_cv_recent_bison != no || AC_MSG_ERROR([Your bison version is too old. Please install bison version 3.0 or newer.])
  273. AC_CHECK_TOOLS(AR,[ar gar],ar)
  274. AC_CHECK_TOOL(STRIP,strip,strip)
  275. AC_PROG_RANLIB
  276. AC_PROG_LN_S
  277. AC_PROG_EGREP
  278. AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
  279. AC_CHECK_PROGS(MSGFMT, msgfmt, false)
  280. WINE_PATH_PKG_CONFIG
  281. if test "x$enable_maintainer_mode" != "xyes"
  282. then
  283. FONTFORGE=""
  284. RSVG=""
  285. CONVERT=""
  286. ICOTOOL=""
  287. else
  288. test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
  289. AC_CHECK_PROGS(FONTFORGE, fontforge, false)
  290. AC_CHECK_PROGS(RSVG, rsvg-convert rsvg, false)
  291. AC_CHECK_PROGS(CONVERT, convert, false)
  292. AC_CHECK_PROGS(ICOTOOL, icotool, false)
  293. test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
  294. test "$RSVG" != "false" || AC_MSG_ERROR([You need rsvg to rebuild icons in maintainer mode.])
  295. dnl Check the imagemagick version
  296. if test "$CONVERT" = false
  297. then
  298. AC_MSG_ERROR([You need imagemagick to rebuild icons in maintainer mode.])
  299. else
  300. AC_MSG_CHECKING([for recent enough imagemagick])
  301. convert_version=`convert --version | head -n1`
  302. if test "x$convert_version" != "x"
  303. then
  304. convert_version_major=`expr "$convert_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
  305. convert_version_minor=`expr "$convert_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
  306. if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
  307. then
  308. CONVERT=false
  309. fi
  310. fi
  311. if test "$CONVERT" = false
  312. then
  313. AC_MSG_RESULT([no ($convert_version_major.$convert_version_minor)])
  314. AC_MSG_ERROR([You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode.])
  315. else
  316. AC_MSG_RESULT([yes ($convert_version_major.$convert_version_minor)])
  317. fi
  318. fi
  319. dnl Check the icotool version
  320. if test "$ICOTOOL" = false
  321. then
  322. AC_MSG_ERROR([You need icotool to rebuild icons in maintainer mode.])
  323. else
  324. AC_MSG_CHECKING([for recent enough icotool])
  325. icotool_version=`icotool --version | head -n1`
  326. if test "x$icotool_version" != "x"
  327. then
  328. icotool_version_major=`expr "$icotool_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
  329. icotool_version_minor=`expr "$icotool_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
  330. if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
  331. then
  332. ICOTOOL=false
  333. WINE_WARNING([icotool version 0.29.0 or newer is needed to rebuild icons.])
  334. fi
  335. fi
  336. if test "$ICOTOOL" = false
  337. then
  338. AC_MSG_RESULT([no ($icotool_version_major.$icotool_version_minor)])
  339. AC_MSG_ERROR([You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode.])
  340. else
  341. AC_MSG_RESULT([yes ($icotool_version_major.$icotool_version_minor)])
  342. fi
  343. fi
  344. dnl Maintainer mode requires gettext
  345. with_gettext=yes
  346. with_gettextpo=yes
  347. dnl Maintainer mode wants -Werror
  348. enable_werror=yes
  349. fi
  350. test "x$with_gettext" != xno || MSGFMT=false
  351. if test "$MSGFMT" != "false"
  352. then
  353. AC_CACHE_CHECK([whether msgfmt supports contexts],wine_cv_msgfmt_contexts,
  354. [cat >conftest.po <<EOF
  355. # comment
  356. msgctxt "ctxt"
  357. msgid "id"
  358. msgstr "str"
  359. EOF
  360. if $MSGFMT -o /dev/null conftest.po 2>&AS_MESSAGE_LOG_FD
  361. then
  362. wine_cv_msgfmt_contexts=yes
  363. else
  364. wine_cv_msgfmt_contexts=no
  365. fi])
  366. test $wine_cv_msgfmt_contexts != no || MSGFMT=false
  367. fi
  368. WINE_WARNING_WITH(gettext,[test "$MSGFMT" = false],
  369. [gettext tools not found (or too old), translations won't be built.],
  370. [enable_po])
  371. dnl **** Check for some libraries ****
  372. dnl Check for -li386 for NetBSD and OpenBSD
  373. AC_CHECK_LIB(i386,i386_set_ldt,[AC_SUBST(I386_LIBS, "-li386")])
  374. AC_SUBST(OPENGL_LIBS,"")
  375. dnl **** Check for header files ****
  376. AC_SYS_LARGEFILE()
  377. AC_CHECK_HEADERS(\
  378. AL/al.h \
  379. ApplicationServices/ApplicationServices.h \
  380. CL/cl.h \
  381. Carbon/Carbon.h \
  382. CoreAudio/CoreAudio.h \
  383. DiskArbitration/DiskArbitration.h \
  384. EGL/egl.h \
  385. IOKit/IOKitLib.h \
  386. IOKit/hid/IOHIDLib.h \
  387. OpenAL/al.h \
  388. OpenCL/opencl.h \
  389. Security/Security.h \
  390. SystemConfiguration/SCDynamicStoreCopyDHCPInfo.h \
  391. SystemConfiguration/SCNetworkConfiguration.h \
  392. arpa/inet.h \
  393. arpa/nameser.h \
  394. asm/types.h \
  395. asm/user.h \
  396. elf.h \
  397. float.h \
  398. gettext-po.h \
  399. libproc.h \
  400. link.h \
  401. linux/cdrom.h \
  402. linux/filter.h \
  403. linux/hdreg.h \
  404. linux/hidraw.h \
  405. linux/input.h \
  406. linux/ioctl.h \
  407. linux/major.h \
  408. linux/param.h \
  409. linux/serial.h \
  410. linux/types.h \
  411. linux/ucdrom.h \
  412. lwp.h \
  413. mach-o/loader.h \
  414. mach/mach.h \
  415. machine/cpu.h \
  416. machine/sysarch.h \
  417. mntent.h \
  418. netdb.h \
  419. netinet/in.h \
  420. netinet/in_systm.h \
  421. netinet/tcp.h \
  422. netinet/tcp_fsm.h \
  423. pcap/pcap.h \
  424. port.h \
  425. pthread.h \
  426. pwd.h \
  427. sasl/sasl.h \
  428. sched.h \
  429. scsi/scsi.h \
  430. scsi/scsi_ioctl.h \
  431. scsi/sg.h \
  432. stdint.h \
  433. sys/attr.h \
  434. sys/auxv.h \
  435. sys/cdio.h \
  436. sys/epoll.h \
  437. sys/event.h \
  438. sys/filio.h \
  439. sys/ipc.h \
  440. sys/link.h \
  441. sys/modem.h \
  442. sys/mtio.h \
  443. sys/param.h \
  444. sys/prctl.h \
  445. sys/ptrace.h \
  446. sys/queue.h \
  447. sys/random.h \
  448. sys/resource.h \
  449. sys/scsiio.h \
  450. sys/shm.h \
  451. sys/signal.h \
  452. sys/socketvar.h \
  453. sys/sockio.h \
  454. sys/statvfs.h \
  455. sys/strtio.h \
  456. sys/syscall.h \
  457. sys/sysinfo.h \
  458. sys/times.h \
  459. sys/uio.h \
  460. sys/user.h \
  461. sys/utsname.h \
  462. sys/vnode.h \
  463. syscall.h \
  464. utime.h \
  465. valgrind/memcheck.h \
  466. valgrind/valgrind.h
  467. )
  468. WINE_HEADER_MAJOR()
  469. AC_HEADER_STAT()
  470. dnl **** Checks for headers that depend on other ones ****
  471. AC_CHECK_HEADERS([sys/conf.h sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
  472. [#include <sys/types.h>
  473. #ifdef HAVE_SYS_PARAM_H
  474. # include <sys/param.h>
  475. #endif])
  476. dnl check for broken Linux sysctl.h that causes deprecation warnings
  477. saved_sysctl_h_CFLAGS=$CFLAGS
  478. test "x${GCC}" != xyes || CFLAGS="$CFLAGS -Werror"
  479. AC_CHECK_HEADERS([sys/sysctl.h],,,
  480. [#include <sys/types.h>
  481. #ifdef HAVE_SYS_PARAM_H
  482. # include <sys/param.h>
  483. #endif])
  484. CFLAGS=$saved_sysctl_h_CFLAGS
  485. AC_CHECK_HEADERS(\
  486. netinet/ip.h \
  487. net/if.h \
  488. net/if_arp.h \
  489. net/if_dl.h \
  490. net/if_types.h \
  491. net/route.h \
  492. netinet/if_ether.h \
  493. netinet/in_pcb.h \
  494. netinet/ip_icmp.h \
  495. netinet/ip_var.h \
  496. netinet/udp.h \
  497. netipx/ipx.h \
  498. sys/un.h \
  499. ,,,[#include <sys/types.h>
  500. #include <sys/socket.h>
  501. #ifdef HAVE_SYS_SOCKETVAR_H
  502. # include <sys/socketvar.h>
  503. #endif
  504. #ifdef HAVE_NET_ROUTE_H
  505. # include <net/route.h>
  506. #endif
  507. #ifdef HAVE_NETINET_IN_H
  508. # include <netinet/in.h>
  509. #endif
  510. #ifdef HAVE_NETINET_IN_SYSTM_H
  511. # include <netinet/in_systm.h>
  512. #endif
  513. #ifdef HAVE_NET_IF_H
  514. # include <net/if.h>
  515. #endif
  516. #ifdef HAVE_NETINET_IP_H
  517. # include <netinet/ip.h>
  518. #endif])
  519. AC_CHECK_HEADERS([netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h ],,,
  520. [#include <sys/types.h>
  521. #include <sys/socket.h>
  522. #ifdef HAVE_SYS_SOCKETVAR_H
  523. # include <sys/socketvar.h>
  524. #endif
  525. #ifdef HAVE_NETINET_IN_H
  526. # include <netinet/in.h>
  527. #endif
  528. #ifdef HAVE_NETINET_IN_SYSTM_H
  529. # include <netinet/in_systm.h>
  530. #endif
  531. #ifdef HAVE_NETINET_IP_H
  532. # include <netinet/ip.h>
  533. #endif
  534. #ifdef HAVE_NETINET_IP_VAR_H
  535. # include <netinet/ip_var.h>
  536. #endif
  537. #ifdef HAVE_NETINET_IP_ICMP_H
  538. # include <netinet/ip_icmp.h>
  539. #endif
  540. #ifdef HAVE_NETINET_UDP_H
  541. # include <netinet/udp.h>
  542. #endif
  543. #ifdef HAVE_NETINET_TCP_H
  544. # include <netinet/tcp.h>
  545. #endif])
  546. AC_CHECK_HEADERS([linux/ipx.h linux/irda.h linux/rtnetlink.h],,,
  547. [#include <sys/types.h>
  548. #include <sys/socket.h>
  549. #ifdef HAVE_ASM_TYPES_H
  550. # include <asm/types.h>
  551. #endif
  552. #ifdef HAVE_LINUX_TYPES_H
  553. # include <linux/types.h>
  554. #endif])
  555. AC_CHECK_HEADERS([resolv.h],,,
  556. [#include <sys/types.h>
  557. #include <sys/socket.h>
  558. #ifdef HAVE_NETINET_IN_H
  559. # include <netinet/in.h>
  560. #endif
  561. #ifdef HAVE_ARPA_NAMESER_H
  562. # include <arpa/nameser.h>
  563. #endif])
  564. AC_CHECK_HEADERS([ifaddrs.h],,,[#include <sys/types.h>])
  565. AC_CHECK_HEADERS(sys/ucontext.h,,,[#include <signal.h>])
  566. AC_CHECK_HEADERS([sys/thr.h],,,
  567. [#include <sys/types.h>
  568. #ifdef HAVE_SYS_UCONTEXT_H
  569. #include <sys/ucontext.h>
  570. #endif])
  571. AC_CHECK_HEADERS([pthread_np.h],,,
  572. [#ifdef HAVE_PTHREAD_H
  573. #include <pthread.h>
  574. #endif])
  575. AC_CHECK_HEADERS([linux/videodev2.h],,,
  576. [#include <sys/time.h>
  577. #include <sys/types.h>
  578. #ifdef HAVE_ASM_TYPES_H
  579. #include <asm/types.h>
  580. #endif])
  581. AC_CHECK_HEADERS([libprocstat.h],,,
  582. [#ifdef HAVE_SYS_PARAM_H
  583. #include <sys/param.h>
  584. #endif
  585. #include <sys/socket.h>
  586. #ifdef HAVE_SYS_QUEUE_H
  587. #include <sys/queue.h>
  588. #endif])
  589. dnl **** Check for working dll ****
  590. AC_SUBST(DLLFLAGS,"")
  591. AC_SUBST(LDDLLFLAGS,"")
  592. AC_SUBST(LDEXECFLAGS,"")
  593. AC_SUBST(EXTRACFLAGS,"")
  594. AC_SUBST(UNIXDLLFLAGS,"-fPIC")
  595. AC_SUBST(UNIXLDFLAGS,["-shared -Wl,-Bsymbolic -Wl,-soname,\$(UNIXLIB)"])
  596. AC_SUBST(TOP_INSTALL_LIB,"")
  597. AC_SUBST(TOP_INSTALL_DEV,"")
  598. AC_SUBST(WINELOADER_LDFLAGS,"")
  599. AC_SUBST(WINEPRELOADER_LDFLAGS,"")
  600. LIBEXT="so"
  601. WINE_PATH_SONAME_TOOLS
  602. WINE_CONFIG_HELPERS
  603. wine_binary="wine"
  604. test "x$enable_win64" != "xyes" || wine_binary="wine64"
  605. AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
  606. libwine_soversion=`expr $libwine_version : '\([[0-9]]*\)\..*'`
  607. case $host_os in
  608. cygwin*|mingw32*)
  609. AC_CHECK_TOOL(DLLTOOL,dlltool,false)
  610. LIBEXT="dll"
  611. EXTRACFLAGS="-D__WINE_PE_BUILD"
  612. dnl Disable stdcall fixups to catch prototype mismatches
  613. case $host_cpu in
  614. *i[[3456]]86*) WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
  615. [LDDLLFLAGS="-Wl,--disable-stdcall-fixup"]) ;;
  616. esac
  617. dnl Disable modules that can't be used on Windows
  618. enable_loader=${enable_loader:-no}
  619. enable_server=${enable_server:-no}
  620. dnl Disable dependencies that are not useful on Windows
  621. with_x=${with_x:-no}
  622. with_pthread=${with_pthread:-no}
  623. ;;
  624. darwin*|macosx*)
  625. AC_LANG_PUSH([Objective C])
  626. AC_CHECK_HEADERS(Metal/Metal.h)
  627. AC_LANG_POP([Objective C])
  628. LIBEXT="dylib"
  629. DLLFLAGS="$DLLFLAGS -fPIC"
  630. LDDLLFLAGS="-fPIC"
  631. dnl declare needed frameworks
  632. AC_SUBST(COREFOUNDATION_LIBS,"-framework CoreFoundation")
  633. AC_SUBST(IOKIT_LIBS,"-framework IOKit -framework CoreFoundation")
  634. AC_SUBST(APPLICATIONSERVICES_LIBS,"-framework ApplicationServices")
  635. AC_SUBST(CORESERVICES_LIBS,"-framework CoreServices")
  636. AC_SUBST(APPKIT_LIBS,"-framework AppKit")
  637. AC_SUBST(SYSTEMCONFIGURATION_LIBS,"-framework SystemConfiguration")
  638. WINELOADER_LDFLAGS="-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
  639. wine_can_build_preloader=yes
  640. WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs -e _start -ldylib1.o -Wl,-image_base,0x7d400000,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist,-segaddr,WINE_4GB_RESERVE,0x100000000"
  641. WINE_TRY_CFLAGS([-Wl,-no_new_main -e _main],
  642. [WINEPRELOADER_LDFLAGS="-Wl,-no_new_main $WINEPRELOADER_LDFLAGS"
  643. WINE_TRY_CFLAGS([-Wl,-no_new_main -e _main -mmacosx-version-min=10.7 -nostartfiles -nodefaultlibs],
  644. [WINEPRELOADER_LDFLAGS="-mmacosx-version-min=10.7 $WINEPRELOADER_LDFLAGS"],
  645. [wine_can_build_preloader=no])],
  646. [WINE_TRY_CFLAGS([-mmacosx-version-min=10.7 -nostartfiles -nodefaultlibs],
  647. [WINEPRELOADER_LDFLAGS="-mmacosx-version-min=10.7 $WINEPRELOADER_LDFLAGS"],
  648. [wine_can_build_preloader=no])])
  649. if test "$wine_can_build_preloader" = "yes"
  650. then
  651. WINE_TRY_CFLAGS([-Wl,-no_pie],
  652. [WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
  653. test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine-preloader")
  654. WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
  655. else
  656. WINE_WARNING([can't build Wine preloader; many programs won't work])
  657. fi
  658. if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
  659. then
  660. dnl DiskArbitration API is not public on Darwin < 8.0, use it only if header found
  661. AC_SUBST(DISKARBITRATION_LIBS,"-framework DiskArbitration -framework CoreFoundation")
  662. fi
  663. if test "$ac_cv_header_Security_Security_h" = "yes"
  664. then
  665. AC_SUBST(SECURITY_LIBS,"-framework Security -framework CoreFoundation")
  666. fi
  667. if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes"
  668. then
  669. AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
  670. enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
  671. fi
  672. if test "$ac_cv_header_OpenAL_al_h" = "yes"
  673. then
  674. AC_SUBST(OPENAL_LIBS,"-framework OpenAL")
  675. AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])
  676. ac_cv_lib_openal=yes
  677. fi
  678. if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
  679. then
  680. AC_SUBST(OPENCL_LIBS,"-framework OpenCL")
  681. ac_cv_lib_OpenCL_clGetPlatformInfo=yes
  682. fi
  683. if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
  684. then
  685. ac_save_LIBS="$LIBS"
  686. LIBS="$LIBS $IOKIT_LIBS"
  687. AC_CHECK_FUNCS(IOHIDManagerCreate)
  688. LIBS="$ac_save_LIBS"
  689. fi
  690. if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
  691. then
  692. AC_SUBST(CARBON_LIBS,"-framework Carbon")
  693. fi
  694. if test "$ac_cv_header_Metal_Metal_h" = "yes"
  695. then
  696. AC_SUBST(METAL_LIBS,"-framework Metal")
  697. fi
  698. dnl Check for MTLDevice registryID property
  699. if test "$ac_cv_header_Metal_Metal_h" = "yes"
  700. then
  701. AC_MSG_CHECKING([whether MTLDevice protocol supports registryID property])
  702. AC_LANG_PUSH([Objective C])
  703. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Metal/Metal.h>]], [[id<MTLDevice> device; device.registryID;]])],
  704. [AC_MSG_RESULT(yes)
  705. AC_DEFINE(HAVE_MTLDEVICE_REGISTRYID, 1, [Define if MTLDevice protocol has registryID property.])],
  706. [AC_MSG_RESULT(no)])
  707. AC_LANG_POP([Objective C])
  708. fi
  709. dnl Enable Mac driver on Mac OS X 10.6 or later
  710. if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
  711. then
  712. ac_save_LIBS="$LIBS"
  713. LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
  714. AC_CHECK_FUNC(CGDisplayModeGetWidth,enable_winemac_drv=${enable_winemac_drv:-yes})
  715. LIBS="$ac_save_LIBS"
  716. fi
  717. UNIXLDFLAGS="-dynamiclib -install_name @rpath/\$(UNIXLIB) -Wl,-rpath,@loader_path\/"
  718. AC_SUBST(LIBWINE_SHAREDLIB,"libwine.$libwine_version.dylib")
  719. AC_SUBST(LIBWINE_LDFLAGS,["-dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version"])
  720. AC_SUBST(WINELOADER_DEPENDS,"wine_info.plist")
  721. TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.$libwine_version.dylib libs/wine/libwine.$libwine_soversion.dylib"
  722. ;;
  723. linux-android*)
  724. AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
  725. DLLFLAGS="$DLLFLAGS -fPIC"
  726. LDDLLFLAGS="-fPIC"
  727. LDEXECFLAGS="-Wl,-pie"
  728. enable_wineandroid_drv=${enable_wineandroid_drv:-yes}
  729. WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"])
  730. WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
  731. WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
  732. WINE_CHECK_SONAME(EGL,eglGetProcAddress)
  733. WINE_CHECK_SONAME(GLESv2,glFlush)
  734. if test "x$exec_prefix" = xNONE
  735. then
  736. case $host_cpu in
  737. *i[[3456]]86*) exec_prefix='${prefix}/x86' ;;
  738. *x86_64*) exec_prefix='${prefix}/x86_64' ;;
  739. *arm*) exec_prefix='${prefix}/armeabi-v7a' ;;
  740. *aarch64*) exec_prefix='${prefix}/arm64-v8a' ;;
  741. esac
  742. fi
  743. ;;
  744. *)
  745. AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
  746. test "$ac_cv_sys_file_offset_bits" = 64 && AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux])
  747. case $host_cpu in
  748. *i[[3456789]]86*)
  749. DLLFLAGS="$DLLFLAGS -fno-PIC"
  750. LDDLLFLAGS="-fno-PIC"
  751. WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
  752. ;;
  753. *)
  754. DLLFLAGS="$DLLFLAGS -fPIC"
  755. LDDLLFLAGS="-fPIC" ;;
  756. esac
  757. LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"
  758. echo '{ global: *; };' >conftest.map
  759. WINE_TRY_CFLAGS([-shared -Wl,--version-script=conftest.map],
  760. [LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"])
  761. rm -f conftest.map
  762. WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"])
  763. WINE_TRY_CFLAGS([-Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
  764. WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
  765. case $host_cpu in
  766. *i[[3456789]]86* | x86_64 | *aarch64* | arm*)
  767. WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],
  768. [case $host_os in
  769. freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
  770. *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
  771. esac],
  772. [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7d000400],
  773. [case $host_os in
  774. freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
  775. *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
  776. esac])
  777. AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
  778. if test "x$PRELINK" = xfalse
  779. then
  780. WINE_WARNING([prelink not found and linker does not support relocation, base address of core dlls won't be set correctly.])
  781. fi])
  782. WINE_TRY_CFLAGS([-Wl,-z,max-page-size=0x1000],
  783. [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"])
  784. ;;
  785. esac
  786. AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so.$libwine_version")
  787. AC_SUBST(LIBWINE_DEPENDS,"wine.map")
  788. TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.so.$libwine_version libs/wine/libwine.so.$libwine_soversion"
  789. ;;
  790. esac
  791. enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
  792. enable_wineandroid_drv=${enable_wineandroid_drv:-no}
  793. enable_winemac_drv=${enable_winemac_drv:-no}
  794. dnl Check for cross compiler to build test programs
  795. AC_SUBST(CROSSTARGET)
  796. if test "x$with_mingw" != xno
  797. then
  798. case "x$with_mingw" in
  799. x|xyes) WINE_CHECK_MINGW_PROG(CROSSCC,false) ;;
  800. *) CROSSCC=$with_mingw ;;
  801. esac
  802. if test "$CROSSCC" != "false"
  803. then
  804. ac_save_CC="$CC"
  805. saved_CFLAGS=$CFLAGS
  806. saved_LDFLAGS=$LDFLAGS
  807. AC_SUBST(CROSSCFLAGS,${CROSSCFLAGS:-"-g -O2"})
  808. AC_SUBST(EXTRACROSSCFLAGS,"-D__WINE_PE_BUILD -Wall")
  809. AC_SUBST(CROSSLDFLAGS)
  810. CC="$CROSSCC"
  811. CFLAGS=$CROSSCFLAGS
  812. LDFLAGS=$CROSSLDFLAGS
  813. AC_CACHE_CHECK([whether $CROSSCC works], wine_cv_crosscc,
  814. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[wine_cv_crosscc=yes],[wine_cv_crosscc=no])])
  815. if test $wine_cv_crosscc = yes
  816. then
  817. set x $CROSSCC
  818. shift
  819. while test $# -ge 1
  820. do
  821. case "$1" in
  822. *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
  823. *-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;;
  824. esac
  825. shift
  826. done
  827. dnl Check if cross compiler supports -target argument
  828. llvm_target=$CROSSTARGET
  829. llvm_cflags="-fuse-ld=lld"
  830. if test -z "$llvm_target"
  831. then
  832. case $host_cpu in
  833. *i[[3456789]]86*) llvm_target=i686-windows ;;
  834. *) llvm_target=$host_cpu-windows ;;
  835. esac
  836. fi
  837. case $llvm_target in
  838. *windows) llvm_cflags="$llvm_cflags -Wl,-subsystem:console" ;;
  839. esac
  840. WINE_TRY_CROSSCFLAGS([-target $llvm_target $llvm_cflags],
  841. [CROSSTARGET=$llvm_target
  842. EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -target $CROSSTARGET"
  843. AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])
  844. CFLAGS="$CFLAGS $llvm_cflags"])
  845. fi
  846. AC_MSG_CHECKING([for $CROSSCC option to enable C99 features])
  847. AC_CACHE_VAL([wine_cv_crosscc_c99],
  848. [wine_cv_crosscc_c99=no
  849. for arg in '' '-std=gnu99'
  850. do
  851. CC="$CROSSCC $arg"
  852. AC_COMPILE_IFELSE([AC_LANG_SOURCE([$ac_c_conftest_c99_program])],
  853. [wine_cv_crosscc_c99=$arg],[wine_cv_crosscc_c99=no])
  854. test "x$wine_cv_crosscc_c99" != xno && break
  855. done])
  856. case "x$wine_cv_crosscc_c99" in
  857. x) AC_MSG_RESULT([none needed]) ;;
  858. xno) AC_MSG_RESULT([unsupported]) ;;
  859. x*) AC_MSG_RESULT([$wine_cv_crosscc_c99])
  860. CROSSCC="$CROSSCC $wine_cv_crosscc_c99" ;;
  861. esac
  862. WINE_TRY_CROSSCFLAGS([-fno-strict-aliasing])
  863. dnl clang needs to be told to fail on unknown options
  864. WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
  865. WINE_TRY_CROSSCFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
  866. WINE_TRY_CROSSCFLAGS([-Wdeclaration-after-statement])
  867. WINE_TRY_CROSSCFLAGS([-Wempty-body])
  868. WINE_TRY_CROSSCFLAGS([-Wignored-qualifiers])
  869. WINE_TRY_CROSSCFLAGS([-Winit-self])
  870. WINE_TRY_CROSSCFLAGS([-Wpacked-not-aligned],[EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -Wno-packed-not-aligned"])
  871. WINE_TRY_CROSSCFLAGS([-Wpragma-pack],[EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -Wno-pragma-pack"])
  872. WINE_TRY_CROSSCFLAGS([-Wshift-overflow=2])
  873. WINE_TRY_CROSSCFLAGS([-Wstrict-prototypes])
  874. WINE_TRY_CROSSCFLAGS([-Wtype-limits])
  875. WINE_TRY_CROSSCFLAGS([-Wunused-but-set-parameter])
  876. WINE_TRY_CROSSCFLAGS([-Wvla])
  877. WINE_TRY_CROSSCFLAGS([-Wwrite-strings])
  878. WINE_TRY_CROSSCFLAGS([-Wpointer-arith])
  879. WINE_TRY_CROSSCFLAGS([-Wlogical-op])
  880. WINE_TRY_CROSSCFLAGS([-Wabsolute-value])
  881. case $host_cpu in
  882. *i[[3456789]]86*) WINE_TRY_CROSSCFLAGS([-fno-omit-frame-pointer]) ;;
  883. x86_64) WINE_TRY_CROSSCFLAGS([-Wno-format])
  884. WINE_TRY_CROSSCFLAGS([-Wformat-overflow])
  885. WINE_TRY_CROSSCFLAGS([-Wnonnull])
  886. WINE_TRY_CROSSCFLAGS([-mcx16]) ;;
  887. aarch64) WINE_TRY_CROSSCFLAGS([-Wno-format]) ;;
  888. esac
  889. dnl Determine debug info format
  890. AC_SUBST(CROSSDEBUG)
  891. if test -z "$CROSSDEBUG"
  892. then
  893. for ac_flag in $CROSSCFLAGS; do
  894. case $ac_flag in
  895. -gdwarf*) CROSSDEBUG=dwarf ;;
  896. -gcodeview) CROSSDEBUG=pdb ;;
  897. -g) CROSSDEBUG=${CROSSDEBUG:-dwarf} ;;
  898. esac
  899. done
  900. fi
  901. ac_debug_format_seen=""
  902. for ac_flag in $CROSSCFLAGS; do
  903. case $ac_flag in
  904. -gdwarf*|-gcodeview) ac_debug_format_seen=$ac_flag ;;
  905. esac
  906. done
  907. if test "x$ac_debug_format_seen" = x
  908. then
  909. case $CROSSDEBUG in
  910. *dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-4]) ;;
  911. pdb) WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
  912. esac
  913. fi
  914. WINE_TRY_CROSSCFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
  915. if test "x$enable_werror" = "xyes"
  916. then
  917. WINE_TRY_CROSSCFLAGS([-Werror])
  918. fi
  919. if test "x$enable_build_id" = "xyes"
  920. then
  921. WINE_TRY_CROSSCFLAGS([-Wl,--build-id], [CROSSCFLAGS="$CROSSCFLAGS -Wl,--build-id"
  922. CROSSLDFLAGS="$CROSSLDFLAGS -Wl,--build-id"])
  923. fi
  924. CFLAGS=$saved_CFLAGS
  925. LDFLAGS=$saved_LDFLAGS
  926. CC="$ac_save_CC"
  927. fi
  928. fi
  929. WINE_NOTICE_WITH(mingw,[test "x$CROSSTARGET" = "x"],
  930. [MinGW compiler not found, cross-compiling PE files won't be supported.])
  931. case $host_cpu in
  932. aarch64*) test "x$CROSSTARGET" != x || AC_MSG_ERROR([PE cross-compilation is required for ARM64, please install clang/llvm-dlltool/lld, or llvm-mingw.]) ;;
  933. esac
  934. dnl **** External libraries ****
  935. if test "x$with_system_dllpath" != "x" -a "$CROSSCC" != "false"
  936. then
  937. WINE_MINGW_PACKAGE_FLAGS(FAUDIO,[FAudio],[-lFAudio],
  938. [WINE_CHECK_MINGW_HEADER(FAudio.h,
  939. [WINE_CHECK_MINGW_LIB(FAudio,FAudio_CommitOperationSet,[:],[FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""],[$FAUDIO_PE_LIBS])],
  940. [FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""])])
  941. if test "x$FAUDIO_PE_LIBS" = "x"
  942. then
  943. WINE_NOTICE([FAudio ${notice_platform}MinGW development files not found (or too old); using bundled version.])
  944. fi
  945. WINE_MINGW_PACKAGE_FLAGS(JPEG,[libjpeg],,
  946. [WINE_CHECK_MINGW_HEADER(jpeglib.h,
  947. [WINE_CHECK_MINGW_LIB(jpeg,jpeg_start_decompress,[:],[JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],[$JPEG_PE_LIBS])],
  948. [JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],
  949. [#include <stddef.h>
  950. #include <stdio.h>])])
  951. if test "x$JPEG_PE_LIBS" = "x"
  952. then
  953. WINE_NOTICE([libjpeg ${notice_platform}MinGW development files not found; using bundled version.])
  954. fi
  955. WINE_MINGW_PACKAGE_FLAGS(LCMS2,[lcms2],[-llcms2],
  956. [WINE_CHECK_MINGW_HEADER(lcms2.h,
  957. [WINE_CHECK_MINGW_LIB(lcms2,cmsOpenProfileFromFile,[:],[LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""],[$LCMS2_PE_LIBS])],
  958. [LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""])])
  959. if test "x$LCMS2_PE_LIBS" = "x"
  960. then
  961. WINE_NOTICE([liblcms2 ${notice_platform}MinGW development files not found; using bundled version.])
  962. fi
  963. WINE_MINGW_PACKAGE_FLAGS(MPG123,[libmpg123],[-lmpg123],
  964. [WINE_CHECK_MINGW_HEADER(mpg123.h,
  965. [WINE_CHECK_MINGW_LIB(mpg123,mpg123_feed,[:],[MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""],[$MPG123_PE_LIBS])],
  966. [MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""])])
  967. if test "x$MPG123_PE_LIBS" = "x"
  968. then
  969. WINE_NOTICE([libmpg123 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
  970. fi
  971. WINE_MINGW_PACKAGE_FLAGS(PNG,[libpng],,
  972. [WINE_CHECK_MINGW_HEADER(png.h,
  973. [WINE_CHECK_MINGW_LIB(png,png_create_read_struct,[:],[PNG_PE_CFLAGS=""; PNG_PE_LIBS=""],[$PNG_PE_LIBS])],
  974. [PNG_PE_CFLAGS=""; PNG_PE_LIBS=""])])
  975. if test "x$PNG_PE_LIBS" = "x"
  976. then
  977. WINE_NOTICE([libpng ${notice_platform}MinGW development files not found; using bundled version.])
  978. fi
  979. WINE_MINGW_PACKAGE_FLAGS(TIFF,[libtiff-4],,
  980. [WINE_CHECK_MINGW_HEADER(tiffio.h,
  981. [WINE_CHECK_MINGW_LIB(tiff,TIFFClientOpen,[:],[TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""],[$TIFF_PE_LIBS])],
  982. [TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""])])
  983. if test "x$TIFF_PE_LIBS" = "x"
  984. then
  985. WINE_NOTICE([libtiff ${notice_platform}MinGW development files not found; using bundled version.])
  986. fi
  987. WINE_MINGW_PACKAGE_FLAGS(XML2,[libxml-2.0],[-lxml2],
  988. [WINE_CHECK_MINGW_HEADER(libxml/parser.h)
  989. WINE_CHECK_MINGW_HEADER(libxml/xmlsave.h)
  990. WINE_CHECK_MINGW_HEADER(libxml/SAX2.h)
  991. if test "$ac_cv_mingw_header_libxml_parser_h" = "yes" -a "$ac_cv_mingw_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_mingw_header_libxml_SAX2_h" = "yes"
  992. then
  993. WINE_CHECK_MINGW_LIB(xml2,xmlFirstElementChild,[:],[XML2_PE_CFLAGS=""; XML2_PE_LIBS=""],[$XML2_PE_LIBS])
  994. else
  995. XML2_PE_CFLAGS=""
  996. XML2_PE_LIBS=""
  997. fi])
  998. if test "x$XML2_PE_LIBS" = "x"
  999. then
  1000. WINE_NOTICE([libxml2 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
  1001. fi
  1002. WINE_MINGW_PACKAGE_FLAGS(XSLT,[libxslt],[-lxslt],
  1003. [WINE_CHECK_MINGW_HEADER(libxslt/pattern.h)
  1004. WINE_CHECK_MINGW_HEADER(libxslt/transform.h)
  1005. if test "$ac_cv_mingw_header_libxslt_pattern_h" = "yes" -a "$ac_cv_mingw_header_libxslt_transform_h" = "yes"
  1006. then
  1007. WINE_CHECK_MINGW_LIB(xslt,xsltCompilePattern,[:],[XSLT_PE_CFLAGS=""; XSLT_PE_LIBS=""],[$XSLT_PE_LIBS])
  1008. else
  1009. XSLT_PE_CFLAGS=""
  1010. XSLT_PE_LIBS=""
  1011. fi])
  1012. if test "x$XSLT_PE_LIBS" = "x"
  1013. then
  1014. WINE_NOTICE([libxslt ${notice_platform}MinGW development files not found; using bundled version.])
  1015. fi
  1016. WINE_MINGW_PACKAGE_FLAGS(VKD3D,[libvkd3d libvkd3d-shader],[-lvkd3d -lvkd3d-shader],
  1017. [WINE_CHECK_MINGW_HEADER(vkd3d.h)
  1018. WINE_CHECK_MINGW_HEADER(vkd3d_shader.h)
  1019. if test "$ac_cv_mingw_header_vkd3d_h" = "yes" -a "$ac_cv_mingw_header_vkd3d_shader_h" = "yes"
  1020. then
  1021. WINE_CHECK_MINGW_LIB(vkd3d,vkd3d_serialize_versioned_root_signature,[:],[:],[$VKD3D_PE_LIBS])
  1022. WINE_CHECK_MINGW_LIB(vkd3d-shader,vkd3d_shader_compile,[:],[:],[$VKD3D_PE_LIBS])
  1023. if test "$ac_cv_mingw_lib_vkd3d" = "no" -o "$ac_cv_mingw_lib_vkd3d_shader" = "no"
  1024. then
  1025. VKD3D_PE_CFLAGS=""
  1026. VKD3D_PE_LIBS=""
  1027. fi
  1028. else
  1029. VKD3D_PE_CFLAGS=""
  1030. VKD3D_PE_LIBS=""
  1031. fi])
  1032. if test "x$VKD3D_PE_LIBS" = "x"
  1033. then
  1034. WINE_NOTICE([libvkd3d ${notice_platform}MinGW development files not found; using bundled version.])
  1035. fi
  1036. WINE_MINGW_PACKAGE_FLAGS(ZLIB,[zlib],[-lz],
  1037. [WINE_CHECK_MINGW_HEADER(zlib.h,
  1038. [WINE_CHECK_MINGW_LIB(z,inflate,[:],[ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""],[$ZLIB_PE_LIBS])],
  1039. [ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""])])
  1040. if test "x$ZLIB_PE_LIBS" = "x"
  1041. then
  1042. WINE_NOTICE([zlib ${notice_platform}MinGW development files not found; using bundled version.])
  1043. fi
  1044. fi
  1045. WINE_EXTLIB_FLAGS(FAUDIO, faudio, "faudio mfplat mfreadwrite mfuuid propsys", "-I\$(top_srcdir)/libs/faudio/include")
  1046. WINE_EXTLIB_FLAGS(GSM, gsm, gsm, "-I\$(top_srcdir)/libs/gsm/inc")
  1047. WINE_EXTLIB_FLAGS(JPEG, jpeg, jpeg, "-I\$(top_srcdir)/libs/jpeg")
  1048. WINE_EXTLIB_FLAGS(JXR, jxr, jxr, "-I\$(top_srcdir)/libs/jxr/jxrgluelib -I\$(top_srcdir)/libs/jxr/image/sys")
  1049. WINE_EXTLIB_FLAGS(LCMS2, lcms2, lcms2, "-I\$(top_srcdir)/libs/lcms2/include")
  1050. WINE_EXTLIB_FLAGS(MPG123, mpg123, mpg123, "-I\$(top_srcdir)/libs/mpg123/src/libmpg123")
  1051. WINE_EXTLIB_FLAGS(PNG, png, "png \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/png")
  1052. WINE_EXTLIB_FLAGS(TIFF, tiff, "tiff \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/tiff/libtiff")
  1053. WINE_EXTLIB_FLAGS(VKD3D, vkd3d, vkd3d, "-I\$(top_srcdir)/libs/vkd3d/include")
  1054. WINE_EXTLIB_FLAGS(XML2, xml2, xml2, "-I\$(top_srcdir)/libs/xml2/include -DLIBXML_STATIC")
  1055. WINE_EXTLIB_FLAGS(XSLT, xslt, xslt, "-I\$(top_srcdir)/libs/xslt -DLIBXSLT_STATIC")
  1056. WINE_EXTLIB_FLAGS(ZLIB, zlib, z, "-I\$(top_srcdir)/libs/zlib -DFAR= -DZ_SOLO")
  1057. dnl **** Check for pthread ****
  1058. if test "$ac_cv_header_pthread_h" = "yes"
  1059. then
  1060. AC_CHECK_FUNC(pthread_create,,[AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(PTHREAD_LIBS,"-lpthread")])])
  1061. fi
  1062. WINE_ERROR_WITH(pthread,[test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x],
  1063. [pthread ${notice_platform}development files not found.
  1064. Wine cannot support threads without libpthread.])
  1065. dnl **** Check for X11 ****
  1066. AC_PATH_XTRA
  1067. if test "$have_x" = "yes"
  1068. then
  1069. ac_save_CPPFLAGS="$CPPFLAGS"
  1070. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  1071. WINE_CHECK_SONAME(X11,XCreateWindow,,,[$X_LIBS $X_EXTRA_LIBS])
  1072. WINE_CHECK_SONAME(Xext,XextCreateExtension,[X_LIBS="$X_LIBS -lXext"],,[$X_LIBS -lX11 $X_EXTRA_LIBS])
  1073. X_LIBS="$X_LIBS -lX11"
  1074. dnl *** All of the following tests require X11/Xlib.h
  1075. AC_CHECK_HEADERS([X11/Xlib.h \
  1076. X11/XKBlib.h \
  1077. X11/Xutil.h \
  1078. X11/Xcursor/Xcursor.h \
  1079. X11/extensions/shape.h \
  1080. X11/extensions/XInput.h \
  1081. X11/extensions/XInput2.h \
  1082. X11/extensions/XShm.h \
  1083. X11/extensions/Xcomposite.h \
  1084. X11/extensions/Xfixes.h \
  1085. X11/extensions/Xinerama.h \
  1086. X11/extensions/Xrandr.h \
  1087. X11/extensions/Xrender.h \
  1088. X11/extensions/xf86vmode.h \
  1089. X11/extensions/xf86vmproto.h],,,
  1090. [#ifdef HAVE_X11_XLIB_H
  1091. # include <X11/Xlib.h>
  1092. #endif
  1093. #ifdef HAVE_X11_XUTIL_H
  1094. # include <X11/Xutil.h>
  1095. #endif])
  1096. dnl *** Check for X keyboard extension
  1097. if test "$ac_cv_header_X11_XKBlib_h" = "yes"
  1098. then
  1099. AC_CHECK_LIB(X11, XkbQueryExtension,
  1100. AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension]),,[$X_LIBS $X_EXTRA_LIBS])
  1101. fi
  1102. dnl *** Check for X cursor
  1103. if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
  1104. then
  1105. WINE_CHECK_SONAME(Xcursor,XcursorImageLoadCursor,,,[$X_LIBS $X_EXTRA_LIBS])
  1106. fi
  1107. WINE_NOTICE_WITH(xcursor,[test "x$ac_cv_lib_soname_Xcursor" = "x"],
  1108. [libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.])
  1109. dnl *** Check for X input extension
  1110. if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
  1111. then
  1112. WINE_CHECK_SONAME(Xi,XOpenDevice,,,[$X_LIBS $X_EXTRA_LIBS])
  1113. fi
  1114. WINE_NOTICE_WITH(xinput,[test "x$ac_cv_lib_soname_Xi" = "x"],
  1115. [libxi ${notice_platform}development files not found, the Xinput extension won't be supported.])
  1116. dnl *** Check for X input 2 extension
  1117. if test "x$ac_cv_lib_soname_Xi" != x
  1118. then
  1119. WINE_NOTICE_WITH(xinput2,[test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"],
  1120. [XInput2 headers not found, the XInput 2 extension won't be supported.])
  1121. fi
  1122. dnl *** Check for X Shm extension
  1123. if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
  1124. then
  1125. AC_CHECK_LIB(Xext, XShmQueryExtension,
  1126. AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,[$X_LIBS $X_EXTRA_LIBS])
  1127. fi
  1128. WINE_NOTICE_WITH(xshm,[test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"],
  1129. [XShm ${notice_platform}development files not found, X Shared Memory won't be supported.])
  1130. dnl *** Check for X shape extension
  1131. if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
  1132. then
  1133. AC_CHECK_LIB(Xext,XShapeQueryExtension,
  1134. AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),,[$X_LIBS $X_EXTRA_LIBS])
  1135. fi
  1136. WINE_NOTICE_WITH(xshape,[test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"],
  1137. [XShape ${notice_platform}development files not found, XShape won't be supported.])
  1138. dnl *** Check for XFree86 VMODE extension
  1139. if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
  1140. then
  1141. WINE_CHECK_SONAME(Xxf86vm,XF86VidModeQueryExtension,,,[$X_LIBS $X_EXTRA_LIBS])
  1142. fi
  1143. WINE_NOTICE_WITH(xxf86vm,[test "x$ac_cv_lib_soname_Xxf86vm" = "x"],
  1144. [libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.])
  1145. dnl *** Check for Transform functions in Xrender
  1146. if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
  1147. then
  1148. WINE_CHECK_SONAME(Xrender,XRenderQueryExtension,
  1149. [AC_CHECK_LIB(Xrender,XRenderSetPictureTransform,
  1150. [AC_DEFINE(HAVE_XRENDERSETPICTURETRANSFORM, 1,
  1151. [Define if Xrender has the XRenderSetPictureTransform function])],,[$X_LIBS $X_EXTRA_LIBS])
  1152. AC_CHECK_LIB(Xrender,XRenderCreateLinearGradient,
  1153. [AC_DEFINE(HAVE_XRENDERCREATELINEARGRADIENT, 1,
  1154. [Define if Xrender has the XRenderCreateLinearGradient function])],,[$X_LIBS $X_EXTRA_LIBS])],,[$X_LIBS $X_EXTRA_LIBS])
  1155. fi
  1156. WINE_WARNING_WITH(xrender,[test "x$ac_cv_lib_soname_Xrender" = "x"],
  1157. [libxrender ${notice_platform}development files not found, XRender won't be supported.])
  1158. dnl *** Check for X RandR extension
  1159. if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
  1160. then
  1161. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
  1162. #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
  1163. [WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
  1164. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
  1165. #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRGetProviderResources) *f; if (f) return 0;]])],
  1166. [AC_DEFINE(HAVE_XRRGETPROVIDERRESOURCES, 1,
  1167. [Define if Xrandr has the XRRGetProviderResources function])],
  1168. [WINE_NOTICE([libxrandr ${notice_platform}development files too old, XRandR display device handler won't be supported.])])],,[$X_LIBS $X_EXTRA_LIBS])])
  1169. fi
  1170. WINE_NOTICE_WITH(xrandr,[test "x$ac_cv_lib_soname_Xrandr" = "x"],
  1171. [libxrandr ${notice_platform}development files not found, XRandr won't be supported.])
  1172. dnl *** Check for Xfixes extension
  1173. if test "$ac_cv_header_X11_extensions_Xfixes_h" = "yes"
  1174. then
  1175. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
  1176. #include <X11/extensions/Xfixes.h>]], [[static typeof(XFixesQueryVersion) * func; if (func) return 0;]])],
  1177. [WINE_CHECK_SONAME(Xfixes,XFixesQueryVersion,,,[$X_LIBS $X_EXTRA_LIBS])])
  1178. fi
  1179. WINE_NOTICE_WITH(xfixes,[test "x$ac_cv_lib_soname_Xfixes" = "x"],
  1180. [libxfixes ${notice_platform}development files not found, Xfixes won't be supported.])
  1181. dnl *** Check for Xinerama extension
  1182. if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
  1183. then
  1184. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
  1185. #include <X11/extensions/Xinerama.h>]], [[static typeof(XineramaQueryScreens) * func; if (func) return 0;]])],
  1186. [WINE_CHECK_SONAME(Xinerama,XineramaQueryScreens,,,[$X_LIBS $X_EXTRA_LIBS])])
  1187. fi
  1188. WINE_NOTICE_WITH(xinerama,[test "x$ac_cv_lib_soname_Xinerama" = "x"],
  1189. [libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.])
  1190. dnl *** Check for X Composite extension
  1191. if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
  1192. then
  1193. WINE_CHECK_SONAME(Xcomposite,XCompositeRedirectWindow,,,[$X_LIBS $X_EXTRA_LIBS])
  1194. fi
  1195. WINE_NOTICE_WITH(xcomposite,[test "x$ac_cv_lib_soname_Xcomposite" = "x"],
  1196. [libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.])
  1197. dnl *** Check for XICCallback struct
  1198. AC_CHECK_MEMBERS([XICCallback.callback, XEvent.xcookie],,,
  1199. [#ifdef HAVE_X11_XLIB_H
  1200. #include <X11/Xlib.h>
  1201. #endif])
  1202. dnl *** End of X11/Xlib.h check
  1203. dnl Check for the presence of OpenGL
  1204. opengl_msg=""
  1205. if test "x$with_opengl" != "xno"
  1206. then
  1207. WINE_CHECK_SONAME(GL,glXCreateContext,
  1208. [OPENGL_LIBS="-lGL"],
  1209. [WINE_CHECK_SONAME(GL,glXCreateContext,
  1210. [OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"],
  1211. [if test -f /usr/X11R6/lib/libGL.a
  1212. then
  1213. opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
  1214. This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
  1215. else
  1216. opengl_msg="No OpenGL library found on this system."
  1217. fi],
  1218. $X_LIBS -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib)],
  1219. $X_LIBS -lm $X_EXTRA_LIBS)
  1220. if test "x$with_osmesa" != "xno"
  1221. then
  1222. WINE_CHECK_SONAME(OSMesa,OSMesaGetProcAddress,,,[$X_LIBS -lm $X_EXTRA_LIBS])
  1223. WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
  1224. [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
  1225. fi
  1226. fi
  1227. WINE_WARNING_WITH(opengl,[test -n "$opengl_msg"],[$opengl_msg
  1228. OpenGL and Direct3D won't be supported.])
  1229. CPPFLAGS="$ac_save_CPPFLAGS"
  1230. else
  1231. X_CFLAGS=""
  1232. X_LIBS=""
  1233. fi
  1234. if test "$enable_wineandroid_drv$enable_winemac_drv" = "nono"
  1235. then
  1236. WINE_ERROR_WITH(x,[test "x$X_LIBS" = "x"],
  1237. [X ${notice_platform}development files not found. Wine will be built
  1238. without X support, which probably isn't what you want. You will need
  1239. to install ${notice_platform}development packages of Xlib at the very least.],
  1240. [enable_winex11_drv])
  1241. else
  1242. WINE_NOTICE_WITH(x,[test "x$X_LIBS" = "x"],
  1243. [X ${notice_platform}development files not found, the X11 driver won't be supported.],
  1244. [enable_winex11_drv])
  1245. fi
  1246. dnl **** Check for OpenCL ****
  1247. if test "$ac_cv_header_CL_cl_h" = "yes"
  1248. then
  1249. AC_CHECK_LIB(OpenCL,clGetPlatformInfo,[AC_SUBST(OPENCL_LIBS,["-lOpenCL"])])
  1250. fi
  1251. WINE_NOTICE_WITH(opencl,[test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes],
  1252. [OpenCL ${notice_platform}development files not found, OpenCL won't be supported.],
  1253. [enable_opencl])
  1254. dnl **** Check for libpcap ****
  1255. if test "$ac_cv_header_pcap_pcap_h" = "yes"
  1256. then
  1257. AC_CHECK_LIB(pcap,pcap_create,[AC_SUBST(PCAP_LIBS,["-lpcap"])])
  1258. fi
  1259. WINE_NOTICE_WITH(pcap,[test "x$ac_cv_lib_pcap_pcap_create" != xyes],
  1260. [pcap ${notice_platform}development files not found, wpcap won't be supported.],
  1261. [enable_wpcap])
  1262. dnl **** Check for inotify ****
  1263. if test "x$with_inotify" != "xno"
  1264. then
  1265. WINE_PACKAGE_FLAGS(INOTIFY,[libinotify],,,,
  1266. [AC_CHECK_HEADERS([sys/inotify.h])
  1267. AC_CHECK_LIB(inotify,inotify_add_watch,[:],[INOTIFY_LIBS=""],[$INOTIFY_LIBS])])
  1268. fi
  1269. WINE_NOTICE_WITH(inotify,[test "$ac_cv_header_sys_inotify_h" != "yes"],
  1270. [libinotify ${notice_platform}development files not found (or too old), filesystem change notifications won't be supported.])
  1271. dnl **** Check for libdbus ****
  1272. if test "x$with_dbus" != "xno"
  1273. then
  1274. WINE_PACKAGE_FLAGS(DBUS,[dbus-1],,,,
  1275. [AC_CHECK_HEADER([dbus/dbus.h],
  1276. [WINE_CHECK_SONAME(dbus-1, dbus_connection_close,,[DBUS_CFLAGS=""],[$DBUS_LIBS])],
  1277. [DBUS_CFLAGS=""])])
  1278. fi
  1279. WINE_NOTICE_WITH(dbus,[test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
  1280. "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"],
  1281. [libdbus ${notice_platform}development files not found, no dynamic device support.])
  1282. dnl **** Check for libgnutls ****
  1283. if test "x$with_gnutls" != "xno"
  1284. then
  1285. WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],[-lgnutls],,,
  1286. [AC_CHECK_HEADER(gnutls/gnutls.h,
  1287. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
  1288. #include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
  1289. [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS],[[libgnutls\\(-deb0\\)\\{0,1\\}]])
  1290. WINE_CHECK_LIB_FUNCS(gnutls_cipher_init,[$GNUTLS_LIBS],,
  1291. [WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported.])])])],
  1292. [GNUTLS_CFLAGS=""])])
  1293. fi
  1294. WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"],
  1295. [libgnutls ${notice_platform}development files not found, no schannel support.])
  1296. dnl **** Check for SANE ****
  1297. if test "x$with_sane" != "xno"
  1298. then
  1299. WINE_PACKAGE_FLAGS(SANE,[sane-backends],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`],
  1300. [AC_CHECK_HEADER(sane/sane.h,
  1301. [AC_CHECK_LIB(sane,sane_init,[:],,[$SANE_LIBS])])])
  1302. fi
  1303. WINE_NOTICE_WITH(sane,[test "$ac_cv_lib_sane_sane_init" != "yes"],
  1304. [libsane ${notice_platform}development files not found, scanners won't be supported.],
  1305. [enable_sane_ds])
  1306. dnl **** Check for libusb ****
  1307. if test "x$with_usb" != "xno"
  1308. then
  1309. WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],,,
  1310. [AC_CHECK_HEADER([libusb.h],
  1311. [AC_CHECK_LIB(usb-1.0,libusb_interrupt_event_handler,[:],[USB_LIBS=""],[$USB_LIBS])],
  1312. [USB_LIBS=""])])
  1313. fi
  1314. WINE_NOTICE_WITH(usb,[test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes"],
  1315. [libusb-1.0 ${notice_platform}development files not found (or too old), USB devices won't be supported.],
  1316. [enable_wineusb_sys])
  1317. dnl **** Check for libv4l2 ****
  1318. if test "x$with_v4l2" != "xno"
  1319. then
  1320. WINE_CHECK_SONAME(v4l2,v4l2_open)
  1321. fi
  1322. WINE_NOTICE_WITH(v4l2,[test "x$ac_cv_lib_soname_v4l2" = "x"],
  1323. [libv4l2 ${notice_platform}development files not found.])
  1324. dnl **** Check for libgphoto2 ****
  1325. if test "x$with_gphoto" != "xno"
  1326. then
  1327. WINE_PACKAGE_FLAGS(GPHOTO2,[libgphoto2],[-lgphoto2],
  1328. [`${GPHOTO2_CONFIG:-gphoto2-config} --cflags 2>/dev/null`],[`${GPHOTO2_CONFIG:-gphoto2-config} --libs 2>/dev/null`],
  1329. [AC_CHECK_HEADER(gphoto2-camera.h,
  1330. [AC_CHECK_LIB(gphoto2,gp_camera_new,[:],,[$GPHOTO2_LIBS])])])
  1331. WINE_PACKAGE_FLAGS(GPHOTO2_PORT,[libgphoto2_port],[-lgphoto2_port],
  1332. [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --cflags 2>/dev/null`],
  1333. [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --libs 2>/dev/null`],
  1334. [AC_CHECK_HEADER(gphoto2-port.h,
  1335. [AC_CHECK_LIB(gphoto2_port,gp_port_info_list_new,
  1336. [AC_DEFINE(HAVE_GPHOTO2_PORT, 1, [Define if we have the libgphoto2_port development environment])],
  1337. [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""],
  1338. [$GPHOTO2_PORT_LIBS])],
  1339. [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""])])
  1340. fi
  1341. WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"],
  1342. [libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.],
  1343. [enable_gphoto2_ds])
  1344. WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"],
  1345. [libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.])
  1346. dnl **** Check for resolver library ***
  1347. if test "$ac_cv_header_resolv_h" = "yes"
  1348. then
  1349. AC_CACHE_CHECK([for resolver library], ac_cv_have_resolv,
  1350. [ac_save_LIBS="$LIBS"
  1351. for lib in '' -lresolv
  1352. do
  1353. LIBS="$lib $ac_save_LIBS"
  1354. AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
  1355. #include <netinet/in.h>
  1356. #endif
  1357. #include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)]])],
  1358. [ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
  1359. test "x$ac_cv_have_resolv" = "xnot found" || break
  1360. done
  1361. LIBS="$ac_save_LIBS"])
  1362. case "$ac_cv_have_resolv" in
  1363. "not found") ;;
  1364. "none required")
  1365. AC_DEFINE(HAVE_RESOLV, 1, [Define if you have the resolver library and header]) ;;
  1366. *)
  1367. AC_DEFINE(HAVE_RESOLV, 1)
  1368. AC_SUBST(RESOLV_LIBS,$ac_cv_have_resolv) ;;
  1369. esac
  1370. if test "x$ac_cv_have_resolv" != "xnot found"
  1371. then
  1372. AC_CACHE_CHECK([for res_getservers], ac_cv_have_res_getservers,
  1373. [ac_save_LIBS="$LIBS"
  1374. LIBS="$RESOLV_LIBS $LIBS"
  1375. AC_LINK_IFELSE([AC_LANG_PROGRAM(
  1376. [[#include <resolv.h>]],[[res_getservers(NULL, NULL, 0);]])],[ac_cv_have_res_getservers=yes],[ac_cv_have_res_getservers=no])
  1377. LIBS="$ac_save_LIBS"])
  1378. if test "$ac_cv_have_res_getservers" = "yes"
  1379. then
  1380. AC_DEFINE(HAVE_RES_GETSERVERS, 1, [Define to 1 if you have the `res_getservers' function.])
  1381. fi
  1382. fi
  1383. fi
  1384. dnl **** Check for FreeType 2 ****
  1385. if test "x$with_freetype" != "xno"
  1386. then
  1387. WINE_PACKAGE_FLAGS(FREETYPE,[freetype2],[-lfreetype],
  1388. [`(${FREETYPE_CONFIG:-freetype-config} --cflags || ${FREETYPE2_CONFIG:-freetype2-config} --cflags) 2>/dev/null`],
  1389. [`(${FREETYPE_CONFIG:-freetype-config} --libs || ${FREETYPE2_CONFIG:-freetype2-config} --libs) 2>/dev/null`],
  1390. [AC_CHECK_HEADERS([ft2build.h])
  1391. if test "$ac_cv_header_ft2build_h" = "yes"
  1392. then
  1393. WINE_CHECK_SONAME(freetype,FT_Init_FreeType,
  1394. [AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
  1395. AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <ft2build.h>
  1396. #include FT_MODULE_H])],
  1397. [FREETYPE_LIBS=""],[$FREETYPE_LIBS])
  1398. else
  1399. FREETYPE_CFLAGS=""
  1400. FREETYPE_LIBS=""
  1401. fi])
  1402. fi
  1403. WINE_ERROR_WITH(freetype,[test "x$ac_cv_lib_soname_freetype" = x],
  1404. [FreeType ${notice_platform}development files not found. Fonts will not be built.],
  1405. [enable_fonts])
  1406. dnl **** Check for pthread functions ****
  1407. WINE_CHECK_LIB_FUNCS(\
  1408. pthread_getthreadid_np,
  1409. [$PTHREAD_LIBS])
  1410. dnl **** Check for gettextpo ****
  1411. if test "x$enable_tools" != xno -a "x$with_gettextpo" = xyes
  1412. then
  1413. if test "$ac_cv_header_gettext_po_h" = "yes"
  1414. then
  1415. AC_CHECK_LIB(gettextpo,po_message_msgctxt,
  1416. [AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
  1417. AC_SUBST(GETTEXTPO_LIBS,"-lgettextpo")])
  1418. fi
  1419. WINE_NOTICE_WITH(gettextpo,[test "x$GETTEXTPO_LIBS" = "x"],
  1420. [GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.])
  1421. WINE_NOTICE_WITH(gettextpo,[test "$srcdir" != .],
  1422. [Rebuilding po files is not supported for out of tree builds.])
  1423. fi
  1424. dnl **** Check for PulseAudio ****
  1425. if test "x$with_pulse" != "xno";
  1426. then
  1427. WINE_PACKAGE_FLAGS(PULSE,[libpulse],,,,
  1428. [AC_CHECK_HEADERS(pulse/pulseaudio.h,
  1429. [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],[PULSE_LIBS=""],[$PULSE_LIBS])],
  1430. [PULSE_LIBS=""])])
  1431. fi
  1432. WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"],
  1433. [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.],
  1434. [enable_winepulse_drv])
  1435. dnl **** Check for gstreamer ****
  1436. if test "x$with_gstreamer" != "xno"
  1437. then
  1438. WINE_PACKAGE_FLAGS(GSTREAMER,[gstreamer-1.0 gstreamer-video-1.0 gstreamer-audio-1.0],,,,
  1439. [AC_CHECK_HEADER([gst/gst.h],
  1440. [AC_MSG_CHECKING([whether gint64 defined by gst/gst.h is indeed 64-bit])
  1441. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gst/gst.h>]],
  1442. [[static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;]])],
  1443. [AC_MSG_RESULT([yes])
  1444. AC_CHECK_LIB(gstreamer-1.0,gst_pad_new,[:],,[$GSTREAMER_LIBS])],
  1445. [AC_MSG_RESULT([no])
  1446. ac_glib2_broken=yes
  1447. WINE_NOTICE([glib-2.0 pkgconfig configuration is for the wrong architecture, winegstreamer won't be built.])])])])
  1448. fi
  1449. WINE_NOTICE_WITH(gstreamer,[test "x$ac_glib2_broken" != xyes -a "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" != xyes],
  1450. [gstreamer-1.0 base plugins ${notice_platform}development files not found, GStreamer won't be supported.],
  1451. [enable_winegstreamer])
  1452. dnl **** Check for ALSA 1.x ****
  1453. AC_SUBST(ALSA_LIBS,"")
  1454. if test "x$with_alsa" != "xno"
  1455. then
  1456. AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access_mask,
  1457. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <alsa/asoundlib.h>]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
  1458. [ALSA_LIBS="-lasound"])])
  1459. fi
  1460. test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
  1461. dnl **** Check for OSSv4 ****
  1462. if test "x$with_oss" != xno
  1463. then
  1464. ac_save_CPPFLAGS="$CPPFLAGS"
  1465. if test -f /etc/oss.conf
  1466. then
  1467. . /etc/oss.conf
  1468. fi
  1469. ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
  1470. CPPFLAGS="$CPPFLAGS $ac_oss_incl"
  1471. AC_CHECK_HEADER([sys/soundcard.h],
  1472. [AC_CHECK_MEMBERS([oss_sysinfo.numaudioengines],
  1473. [AC_SUBST(OSS4_CFLAGS,"$ac_oss_incl")
  1474. AC_CHECK_LIB(ossaudio,_oss_ioctl,
  1475. [AC_SUBST(OSS4_LIBS,"-lossaudio")])],,
  1476. [#include <sys/soundcard.h>])])
  1477. CPPFLAGS="$ac_save_CPPFLAGS"
  1478. fi
  1479. WINE_NOTICE_WITH(oss,[test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes],
  1480. [OSS sound system found but too old (OSSv4 needed), OSS won't be supported.],
  1481. [enable_wineoss_drv])
  1482. dnl **** Check for libudev ****
  1483. if test "x$with_udev" != "xno"
  1484. then
  1485. WINE_PACKAGE_FLAGS(UDEV,[libudev],[-ludev],,,
  1486. [AC_CHECK_HEADERS(libudev.h,
  1487. [AC_CHECK_LIB(udev,udev_new,
  1488. AC_DEFINE(HAVE_UDEV,1,[Define to 1 if you have the `udev' library (-ludev).]),
  1489. [UDEV_LIBS=""],[$UDEV_LIBS])],
  1490. [UDEV_LIBS=""])])
  1491. fi
  1492. WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"],
  1493. [libudev ${notice_platform}development files not found, plug and play won't be supported.])
  1494. dnl **** Check for libunwind ****
  1495. if test "x$with_unwind" != xno
  1496. then
  1497. WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
  1498. [AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step,
  1499. [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
  1500. #include <libunwind.h>]],
  1501. [[unw_cursor_t cursor; unw_step( &cursor );]])],
  1502. [wine_cv_have_unw_step="yes"],[wine_cv_have_unw_step="no"])])
  1503. if test "$wine_cv_have_unw_step" = no -a -n "$UNWIND_LIBS"
  1504. then
  1505. save_libs=$LIBS
  1506. dnl Force static libgcc, libunwind breaks libgcc_s unwinding
  1507. UNWIND_LIBS="-static-libgcc $UNWIND_LIBS"
  1508. LIBS="$UNWIND_LIBS $LIBS"
  1509. AC_CACHE_CHECK([for unw_step in libunwind],wine_cv_have_libunwind_unw_step,
  1510. [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
  1511. #include <libunwind.h>]],
  1512. [[unw_cursor_t cursor; unw_step( &cursor );]])],
  1513. [wine_cv_have_libunwind_unw_step="yes"],
  1514. [wine_cv_have_libunwind_unw_step="no"])])
  1515. LIBS=$save_libs
  1516. fi
  1517. test "$wine_cv_have_libunwind_unw_step" = yes || UNWIND_LIBS=""
  1518. if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" != xnono
  1519. then
  1520. AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
  1521. fi])
  1522. fi
  1523. case $host in
  1524. aarch64*|*-darwin*)
  1525. WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono],
  1526. [libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
  1527. esac
  1528. dnl **** Check for libSDL2 ****
  1529. if test "x$with_sdl" != "xno"
  1530. then
  1531. WINE_PACKAGE_FLAGS(SDL2,[sdl2],[-lSDL2],,,
  1532. [AC_CHECK_HEADERS([SDL.h],
  1533. [WINE_CHECK_SONAME(SDL2,SDL_Init,,,[$SDL2_LIBS],[[libSDL2-2.0*]])])])
  1534. fi
  1535. WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
  1536. [libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.])
  1537. dnl **** Check for capi4linux ****
  1538. if test "x$with_capi" != "xno"
  1539. then
  1540. WINE_PACKAGE_FLAGS(CAPI20,[capi20],,,,
  1541. dnl Check for broken kernel header that doesn't define __user
  1542. [AC_CHECK_HEADERS([capi20.h linux/capi.h],,,[#define __user])
  1543. if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
  1544. then
  1545. AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS])
  1546. fi])
  1547. fi
  1548. WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes],
  1549. [libcapi20 ${notice_platform}development files not found, ISDN won't be supported.],
  1550. [enable_capi2032])
  1551. dnl **** Check for cups ****
  1552. if test "x$with_cups" != "xno"
  1553. then
  1554. WINE_PACKAGE_FLAGS(CUPS,[cups],[-lcups],
  1555. [`${CUPS_CONFIG:-cups-config} --cflags 2>/dev/null`],
  1556. [`${CUPS_CONFIG:-cups-config} --libs 2>/dev/null`],
  1557. [AC_CHECK_HEADERS(cups/cups.h cups/ppd.h)
  1558. if test "$ac_cv_header_cups_cups_h" = "yes"
  1559. then
  1560. WINE_CHECK_SONAME(cups,cupsGetDefault,,[CUPS_LIBS=""],[$CUPS_LIBS])
  1561. else
  1562. CUPS_CFLAGS=""
  1563. CUPS_LIBS=""
  1564. fi])
  1565. fi
  1566. WINE_NOTICE_WITH(cups,[test "x$ac_cv_lib_soname_cups" = "x"],
  1567. [libcups ${notice_platform}development files not found, CUPS won't be supported.])
  1568. dnl **** Check for fontconfig ****
  1569. if test "x$with_fontconfig" != "xno"
  1570. then
  1571. WINE_PACKAGE_FLAGS(FONTCONFIG,[fontconfig],,[$X_CFLAGS],[$X_LIBS],
  1572. [AC_CHECK_HEADERS([fontconfig/fontconfig.h])
  1573. if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
  1574. then
  1575. WINE_CHECK_SONAME(fontconfig,FcInit,,[FONTCONFIG_CFLAGS=""],[$FONTCONFIG_LIBS])
  1576. else
  1577. FONTCONFIG_CFLAGS=""
  1578. fi])
  1579. fi
  1580. WINE_NOTICE_WITH(fontconfig,[test "x$ac_cv_lib_soname_fontconfig" = "x"],
  1581. [fontconfig ${notice_platform}development files not found, fontconfig won't be supported.])
  1582. dnl **** Check for krb5 ****
  1583. if test "x$with_krb5" != "xno"
  1584. then
  1585. WINE_PACKAGE_FLAGS(KRB5,[krb5],,
  1586. [`${KRB5_CONFIG:-krb5-config} --cflags 2>/dev/null`],
  1587. [`${KRB5_CONFIG:-krb5-config} --libs 2>/dev/null`],
  1588. [AC_CHECK_HEADERS([krb5/krb5.h])
  1589. if test "$ac_cv_header_krb5_krb5_h" = "yes"
  1590. then
  1591. WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""],[$KRB5_LIBS])
  1592. else
  1593. KRB5_CFLAGS=""
  1594. fi])
  1595. fi
  1596. WINE_NOTICE_WITH(krb5,[test "x$ac_cv_lib_soname_krb5" = "x"],
  1597. [libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported.])
  1598. test "x$ac_cv_lib_soname_krb5" != "x" || with_gssapi=${with_gssapi:-no}
  1599. dnl **** Check for gssapi ****
  1600. if test "x$with_gssapi" != "xno"
  1601. then
  1602. WINE_PACKAGE_FLAGS(GSSAPI,[krb5-gssapi],,
  1603. [`${KRB5_CONFIG:-krb5-config} --cflags gssapi 2>/dev/null`],
  1604. [`${KRB5_CONFIG:-krb5-config} --libs gssapi 2>/dev/null`],
  1605. [AC_CHECK_HEADERS([gssapi/gssapi.h gssapi/gssapi_ext.h])
  1606. if test "$ac_cv_header_gssapi_gssapi_h" = "yes" -a "$ac_cv_header_gssapi_gssapi_ext_h" = "yes"
  1607. then
  1608. WINE_CHECK_SONAME(gssapi_krb5, gss_init_sec_context,,[GSSAPI_CFLAGS=""],[$GSSAPI_LIBS])
  1609. else
  1610. GSSAPI_CFLAGS=""
  1611. fi])
  1612. fi
  1613. WINE_NOTICE_WITH(gssapi,[test "x$ac_cv_lib_soname_gssapi_krb5" = "x"],
  1614. [libgssapi_krb5 ${notice_platform}development files not found (or too old), no Kerberos SSP support.])
  1615. dnl **** Check for OpenAL 1.1 ****
  1616. if test "$ac_cv_header_AL_al_h" = "yes"
  1617. then
  1618. WINE_CHECK_SONAME(openal,alGetSource3i,[AC_SUBST(OPENAL_LIBS,"-lopenal")
  1619. ac_cv_lib_openal=yes
  1620. AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])],,)
  1621. fi
  1622. WINE_NOTICE_WITH(openal,[test "x$ac_cv_lib_openal" != xyes],
  1623. [libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.],
  1624. [enable_openal32])
  1625. dnl **** Check for libprocstat ****
  1626. if test "$ac_cv_header_libprocstat_h" = "yes"
  1627. then
  1628. AC_CHECK_LIB(procstat,procstat_open_sysctl,
  1629. [AC_DEFINE(HAVE_LIBPROCSTAT, 1, [Define to 1 if you have the `procstat' library (-lprocstat).])
  1630. AC_SUBST(PROCSTAT_LIBS,"-lprocstat")])
  1631. fi
  1632. dnl **** Check for libodbc ****
  1633. WINE_CHECK_SONAME(odbc,SQLConnect,,[AC_DEFINE_UNQUOTED(SONAME_LIBODBC,["libodbc.$LIBEXT"])])
  1634. dnl **** Check for libnetapi ****
  1635. if test "x$with_netapi" != "xno"
  1636. then
  1637. WINE_PACKAGE_FLAGS(NETAPI,[netapi],,,,
  1638. [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])],[$NETAPI_LIBS])])
  1639. fi
  1640. WINE_NOTICE_WITH(netapi,[test "x$ac_cv_lib_soname_netapi" = "x"],
  1641. [libnetapi not found, Samba NetAPI won't be supported.],
  1642. [enable_netapi])
  1643. dnl **** Check for any sound system ****
  1644. if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv$enable_wineandroid_drv" = xnonononono -a \
  1645. "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
  1646. then
  1647. WINE_WARNING([No sound system was found. Windows applications will be silent.])
  1648. fi
  1649. dnl *** Check for Vulkan ***
  1650. if test "x$with_vulkan" != "xno"
  1651. then
  1652. WINE_CHECK_SONAME(vulkan, vkGetInstanceProcAddr)
  1653. if test "x$ac_cv_lib_soname_vulkan" = "x"
  1654. then
  1655. WINE_CHECK_SONAME(MoltenVK, vkGetInstanceProcAddr)
  1656. fi
  1657. fi
  1658. WINE_NOTICE_WITH(vulkan,[test "x$ac_cv_lib_soname_vulkan" = "x" -a "x$ac_cv_lib_soname_MoltenVK" = "x"],
  1659. [libvulkan and libMoltenVK ${notice_platform}development files not found, Vulkan won't be supported.])
  1660. dnl **** Check for gcc specific options ****
  1661. if test "x${GCC}" = "xyes"
  1662. then
  1663. EXTRACFLAGS="$EXTRACFLAGS -Wall -pipe"
  1664. dnl Check for some compiler flags
  1665. dnl clang needs to be told to fail on unknown options
  1666. saved_CFLAGS=$CFLAGS
  1667. WINE_TRY_CFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
  1668. WINE_TRY_CFLAGS([-Werror=unused-command-line-argument],[CFLAGS="$CFLAGS -Werror=unused-command-line-argument"])
  1669. WINE_TRY_CFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
  1670. WINE_TRY_CFLAGS([-fcf-protection=none])
  1671. WINE_TRY_CFLAGS([-fno-stack-protector])
  1672. WINE_TRY_CFLAGS([-fno-strict-aliasing])
  1673. WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
  1674. WINE_TRY_CFLAGS([-Wempty-body])
  1675. WINE_TRY_CFLAGS([-Wignored-qualifiers])
  1676. WINE_TRY_CFLAGS([-Winit-self])
  1677. WINE_TRY_CFLAGS([-Wpacked-not-aligned],[EXTRACFLAGS="$EXTRACFLAGS -Wno-packed-not-aligned"])
  1678. WINE_TRY_CFLAGS([-Wpragma-pack],[EXTRACFLAGS="$EXTRACFLAGS -Wno-pragma-pack"])
  1679. WINE_TRY_CFLAGS([-Wshift-overflow=2])
  1680. WINE_TRY_CFLAGS([-Wstrict-prototypes])
  1681. WINE_TRY_CFLAGS([-Wtype-limits])
  1682. WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
  1683. WINE_TRY_CFLAGS([-Wvla])
  1684. WINE_TRY_CFLAGS([-Wwrite-strings])
  1685. if test -z "$CROSSTARGET"
  1686. then
  1687. WINE_TRY_CFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
  1688. fi
  1689. dnl Check for noisy string.h
  1690. WINE_TRY_CFLAGS([-Wpointer-arith],
  1691. [saved_string_h_CFLAGS=$CFLAGS
  1692. CFLAGS="$CFLAGS -Wpointer-arith -Werror"
  1693. AC_CACHE_CHECK([for broken string.h that generates warnings with -Wpointer-arith], ac_cv_c_string_h_warnings,
  1694. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]])],[ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
  1695. test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
  1696. CFLAGS=$saved_string_h_CFLAGS])
  1697. dnl Check for noisy string.h on logical ops
  1698. WINE_TRY_CFLAGS([-Wlogical-op],
  1699. [saved_string_h_CFLAGS=$CFLAGS
  1700. CFLAGS="$CFLAGS -Wlogical-op -Werror"
  1701. AC_CACHE_CHECK([for broken string.h that generates warnings with -Wlogical-op], ac_cv_c_logicalop_noisy,
  1702. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>
  1703. char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=no],[ac_cv_c_logicalop_noisy=yes]))
  1704. CFLAGS=$saved_string_h_CFLAGS
  1705. test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"])
  1706. dnl Check for 64-bit compare-and-swap
  1707. AC_CACHE_CHECK([for flags needed for 64-bit compare-and-swap support], wine_cv_64bit_compare_swap,
  1708. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
  1709. #error no
  1710. #endif]])],
  1711. [wine_cv_64bit_compare_swap="none needed"],
  1712. [case $host_cpu in
  1713. *i[[3456]]86*) wine_cv_64bit_compare_swap="-march=i586" ;;
  1714. *arm*) wine_cv_64bit_compare_swap="-march=armv7-a" ;;
  1715. *) wine_cv_64bit_compare_swap="unknown" ;;
  1716. esac
  1717. if test "x$wine_cv_64bit_compare_swap" != xunknown
  1718. then
  1719. dnl try with the new flags
  1720. CFLAGS="$CFLAGS $wine_cv_64bit_compare_swap"
  1721. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
  1722. #error no
  1723. #endif]])],,[wine_cv_64bit_compare_swap="unknown"])
  1724. CFLAGS=$saved_CFLAGS
  1725. fi])])
  1726. case "$wine_cv_64bit_compare_swap" in
  1727. unknown) AC_MSG_ERROR([gcc doesn't support 64-bit compare-and-swap on this platform]) ;;
  1728. "none needed") ;;
  1729. *) EXTRACFLAGS="$EXTRACFLAGS $wine_cv_64bit_compare_swap" ;;
  1730. esac
  1731. dnl Determine debug info format
  1732. ac_debug_format_seen=""
  1733. for ac_flag in $CFLAGS; do
  1734. case $ac_flag in
  1735. -gdwarf*) ac_debug_format_seen=yes ;;
  1736. -g) ac_debug_format_seen=${ac_debug_format_seen:-default} ;;
  1737. esac
  1738. done
  1739. if test "x$ac_debug_format_seen" = xdefault
  1740. then
  1741. WINE_TRY_CFLAGS([-gdwarf-4])
  1742. fi
  1743. dnl Disable gcc builtins except for Mingw
  1744. AC_SUBST(MSVCRTFLAGS,"")
  1745. case $host_os in
  1746. mingw32*) dnl Check for delayload linker support
  1747. WINE_TRY_CFLAGS([-Wl,-delayload,autoconftest.dll],[AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])]) ;;
  1748. *) MSVCRTFLAGS="-D_WIN32"
  1749. WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"])
  1750. WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"])
  1751. WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
  1752. esac
  1753. case $host_cpu in
  1754. dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
  1755. *i[[3456789]]86*) WINE_TRY_CFLAGS([-fno-omit-frame-pointer]) ;;
  1756. *x86_64*)
  1757. case $host_os in
  1758. dnl Mingw uses Windows 64-bit types, not Unix ones
  1759. cygwin*|mingw32*) WINE_TRY_CFLAGS([-Wno-format]) ;;
  1760. dnl Default to ms_abi on 64-bit
  1761. *) if test -z "$CROSSTARGET"
  1762. then
  1763. AC_CACHE_CHECK([for working -mabi=ms], ac_cv_mabi_ms,
  1764. [CFLAGS="$CFLAGS -mabi=ms"
  1765. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
  1766. int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }]])],
  1767. [ac_cv_mabi_ms=yes],[ac_cv_mabi_ms=no])
  1768. CFLAGS=$saved_CFLAGS])
  1769. test $ac_cv_mabi_ms = yes || AC_MSG_ERROR([The compiler doesn't support -mabi=ms. Use gcc instead of clang, or install mingw-w64.])
  1770. fi
  1771. MSVCRTFLAGS="$MSVCRTFLAGS -mabi=ms" ;;
  1772. esac ;;
  1773. esac
  1774. CFLAGS=$saved_CFLAGS
  1775. dnl Enable -Werror
  1776. if test "x$enable_werror" = "xyes"
  1777. then
  1778. WINE_TRY_CFLAGS([-Werror])
  1779. fi
  1780. if test "x$enable_build_id" = "xyes"
  1781. then
  1782. WINE_TRY_CFLAGS([-Wl,--build-id], [CFLAGS="$CFLAGS -Wl,--build-id"
  1783. LDFLAGS="$LDFLAGS -Wl,--build-id"])
  1784. fi
  1785. fi
  1786. dnl **** Disable Fortify, it has too many false positives
  1787. AC_CACHE_CHECK([for the need to disable Fortify], ac_cv_c_fortify_enabled,
  1788. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],
  1789. [[#if (defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0) || (defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0)
  1790. #error Fortify enabled
  1791. #endif]])],
  1792. [ac_cv_c_fortify_enabled=no],[ac_cv_c_fortify_enabled=yes]))
  1793. if test "$ac_cv_c_fortify_enabled" = yes
  1794. then
  1795. CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
  1796. fi
  1797. dnl **** Check for CFI directives support ****
  1798. AC_CACHE_CHECK([whether CFI directives are supported in assembly code], ac_cv_c_cfi_support,
  1799. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");]])],
  1800. ac_cv_c_cfi_support="yes",ac_cv_c_cfi_support="no"))
  1801. if test "$ac_cv_c_cfi_support" = "yes"
  1802. then
  1803. DLLFLAGS="$DLLFLAGS -fasynchronous-unwind-tables"
  1804. LDDLLFLAGS="$LDDLLFLAGS -fasynchronous-unwind-tables"
  1805. UNIXDLLFLAGS="$UNIXDLLFLAGS -fasynchronous-unwind-tables"
  1806. else
  1807. if test "x$enable_win64" = "xyes"
  1808. then
  1809. WINE_WARNING([building 64-bit Wine without support for CFI directives; exception handling will not work properly.])
  1810. fi
  1811. fi
  1812. dnl **** Platform-specific checks ****
  1813. case $host_os in
  1814. linux*)
  1815. case $host_cpu in
  1816. *i[[3456789]]86*|x86_64*|*aarch64*|arm*)
  1817. test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine-preloader")
  1818. WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
  1819. ;;
  1820. esac
  1821. ;;
  1822. esac
  1823. dnl **** Check for functions ****
  1824. ac_save_CFLAGS="$CFLAGS"
  1825. CFLAGS="$CFLAGS $BUILTINFLAG"
  1826. AC_CHECK_FUNCS(\
  1827. epoll_create \
  1828. fstatfs \
  1829. futimens \
  1830. futimes \
  1831. futimesat \
  1832. getattrlist \
  1833. getauxval \
  1834. getifaddrs \
  1835. getrandom \
  1836. kqueue \
  1837. mach_continuous_time \
  1838. pipe2 \
  1839. port_create \
  1840. posix_fadvise \
  1841. posix_fallocate \
  1842. prctl \
  1843. proc_pidinfo \
  1844. sched_yield \
  1845. setproctitle \
  1846. setprogname \
  1847. sigprocmask \
  1848. sysinfo \
  1849. tcdrain \
  1850. thr_kill2
  1851. )
  1852. CFLAGS="$ac_save_CFLAGS"
  1853. dnl Check for -ldl
  1854. AC_SEARCH_LIBS(dlopen, dl)
  1855. WINE_CHECK_LIB_FUNCS(dlinfo,[$DL_LIBS])
  1856. dnl Check for -lnsl for Solaris
  1857. AC_SEARCH_LIBS(gethostbyname, nsl)
  1858. dnl Check for -lsocket for Solaris
  1859. AC_SEARCH_LIBS(connect, socket)
  1860. dnl Check for -lresolv for Solaris
  1861. AC_SEARCH_LIBS(inet_aton, resolv)
  1862. dnl **** Check for functions which may rely on -lsocket on Solaris.
  1863. AC_CHECK_FUNCS(getaddrinfo)
  1864. dnl Check for clock_gettime which may be in -lrt
  1865. case $host_os in
  1866. darwin*|macosx*) ;;
  1867. *) ac_save_LIBS=$LIBS
  1868. AC_SEARCH_LIBS(clock_gettime, rt,
  1869. [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.])
  1870. test "$ac_res" = "none required" || AC_SUBST(RT_LIBS,"$ac_res")])
  1871. LIBS=$ac_save_LIBS
  1872. ;;
  1873. esac
  1874. dnl **** Check for OpenLDAP ***
  1875. if test "x$with_ldap" != "xno"
  1876. then
  1877. dnl Actually there's no pkg-config support for ldap, but this way we can still override the flags
  1878. WINE_PACKAGE_FLAGS(LDAP,[openldap],[-lldap -llber],,,
  1879. [AC_CHECK_HEADERS([ldap.h lber.h])
  1880. if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
  1881. then
  1882. AC_CHECK_TYPE(LDAPSortKey,
  1883. [AC_CHECK_LIB(ldap, ldap_initialize,
  1884. [AC_CHECK_LIB(lber, ber_init,
  1885. [AC_DEFINE(HAVE_LDAP, 1, [Define if you have the OpenLDAP development environment])],
  1886. [LDAP_LIBS=""],
  1887. [$PTHREAD_LIBS $LDAP_LIBS])],
  1888. [LDAP_LIBS=""],
  1889. [$PTHREAD_LIBS $LDAP_LIBS])],
  1890. [LDAP_LIBS=""],
  1891. [#include <ldap.h>])
  1892. else
  1893. LDAP_LIBS=""
  1894. fi])
  1895. fi
  1896. WINE_NOTICE_WITH(ldap,[test "x$LDAP_LIBS" = "x"],
  1897. [libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.])
  1898. AC_CACHE_CHECK([for sched_setaffinity],wine_cv_have_sched_setaffinity,
  1899. AC_LINK_IFELSE([AC_LANG_PROGRAM(
  1900. [[#include <sched.h>]], [[sched_setaffinity(0, 0, 0);]])],[wine_cv_have_sched_setaffinity=yes],[wine_cv_have_sched_setaffinity=no]))
  1901. if test "$wine_cv_have_sched_setaffinity" = "yes"
  1902. then
  1903. AC_DEFINE(HAVE_SCHED_SETAFFINITY, 1, [Define to 1 if you have the `sched_setaffinity' function.])
  1904. fi
  1905. dnl **** Check for types ****
  1906. AC_C_INLINE
  1907. AC_CHECK_TYPES([sigset_t],,,[#include <sys/types.h>
  1908. #include <signal.h>])
  1909. AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
  1910. AC_CHECK_TYPES([struct xinpgen],,,
  1911. [#include <sys/types.h>
  1912. #include <sys/socket.h>
  1913. #ifdef HAVE_SYS_SOCKETVAR_H
  1914. #include <sys/socketvar.h>
  1915. #endif
  1916. #ifdef HAVE_NET_ROUTE_H
  1917. #include <net/route.h>
  1918. #endif
  1919. #ifdef HAVE_NETINET_IN_H
  1920. #include <netinet/in.h>
  1921. #endif
  1922. #ifdef HAVE_NETINET_IN_SYSTM_H
  1923. #include <netinet/in_systm.h>
  1924. #endif
  1925. #ifdef HAVE_NETINET_IP_H
  1926. #include <netinet/ip.h>
  1927. #endif
  1928. #ifdef HAVE_NETINET_IN_PCB_H
  1929. #include <netinet/in_pcb.h>
  1930. #endif])
  1931. AC_CACHE_CHECK([for sigaddset],wine_cv_have_sigaddset,
  1932. AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], [[sigset_t set; sigaddset(&set,SIGTERM);]])],[wine_cv_have_sigaddset=yes],[wine_cv_have_sigaddset=no]))
  1933. if test "$wine_cv_have_sigaddset" = "yes"
  1934. then
  1935. AC_DEFINE(HAVE_SIGADDSET, 1, [Define if sigaddset is supported])
  1936. fi
  1937. AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
  1938. wine_cv_linux_gethostbyname_r_6,
  1939. AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]],[[
  1940. char *name=0;
  1941. struct hostent he;
  1942. struct hostent *result;
  1943. char *buf=0;
  1944. int bufsize=0;
  1945. int errnr;
  1946. char *addr=0;
  1947. int addrlen=0;
  1948. int addrtype=0;
  1949. gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
  1950. gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
  1951. ]])],[wine_cv_linux_gethostbyname_r_6=yes],[wine_cv_linux_gethostbyname_r_6=no
  1952. ])
  1953. )
  1954. if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
  1955. then
  1956. AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1,
  1957. [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available])
  1958. fi
  1959. dnl Check for socket structure members
  1960. AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr_un.sun_len],,,
  1961. [#include <sys/types.h>
  1962. #include <sys/socket.h>
  1963. #ifdef HAVE_SYS_UN_H
  1964. # include <sys/un.h>
  1965. #endif])
  1966. dnl Check for scsireq_t and sg_io_hdr_t members
  1967. AC_CHECK_MEMBERS([scsireq_t.cmd, sg_io_hdr_t.interface_id],,,
  1968. [#include <sys/types.h>
  1969. #ifdef HAVE_SCSI_SG_H
  1970. #include <scsi/sg.h>
  1971. #endif])
  1972. dnl Check for siginfo_t members
  1973. AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
  1974. dnl Check for struct mtget members
  1975. AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt_blkno],,,
  1976. [#include <sys/types.h>
  1977. #ifdef HAVE_SYS_MTIO_H
  1978. #include <sys/mtio.h>
  1979. #endif])
  1980. dnl Check for stat.st_blocks and ns-resolved times
  1981. AC_CHECK_MEMBERS([
  1982. struct stat.st_mtim,
  1983. struct stat.st_mtimespec,
  1984. struct stat.st_ctim,
  1985. struct stat.st_ctimespec,
  1986. struct stat.st_atim,
  1987. struct stat.st_atimespec,
  1988. struct stat.st_birthtime,
  1989. struct stat.st_birthtim,
  1990. struct stat.st_birthtimespec,
  1991. struct stat.__st_birthtime,
  1992. struct stat.__st_birthtim])
  1993. dnl Check for sin6_scope_id
  1994. AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
  1995. [#include <sys/types.h>
  1996. #ifdef HAVE_NETINET_IN_H
  1997. #include <netinet/in.h>
  1998. #endif])
  1999. dnl Check for struct __res_state._u._ext.nscount6
  2000. AC_CHECK_MEMBERS([struct __res_state._u._ext.nscount6],,,
  2001. [#ifdef HAVE_RESOLV_H
  2002. #include <resolv.h>
  2003. #endif])
  2004. dnl Check for struct in6_pktinfo
  2005. AC_CHECK_MEMBERS([struct in6_pktinfo.ipi6_addr],,,
  2006. [#ifdef HAVE_NETINET_IN_H
  2007. #include <netinet/in.h>
  2008. #endif])
  2009. dnl Check for struct ipstat
  2010. AC_CHECK_MEMBERS([struct ipstat.ips_total],,,
  2011. [#include <sys/types.h>
  2012. #ifdef HAVE_SYS_SOCKETVAR_H
  2013. #include <sys/socketvar.h>
  2014. #endif
  2015. #ifdef HAVE_NETINET_IN_H
  2016. #include <netinet/in.h>
  2017. #endif
  2018. #ifdef HAVE_NETINET_IP_VAR_H
  2019. #include <netinet/ip_var.h>
  2020. #endif])
  2021. dnl Check for struct ip_stats
  2022. AC_CHECK_MEMBERS([struct ip_stats.ips_total],,,
  2023. [#ifdef HAVE_NETINET_IP_VAR_H
  2024. #include <netinet/ip_var.h>
  2025. #endif])
  2026. dnl Check for struct tcpstat
  2027. AC_CHECK_MEMBERS([struct tcpstat.tcps_connattempt],,,
  2028. [#include <sys/types.h>
  2029. #ifdef HAVE_SYS_SOCKETVAR_H
  2030. #include <sys/socketvar.h>
  2031. #endif
  2032. #ifdef HAVE_NETINET_IN_H
  2033. #include <netinet/in.h>
  2034. #endif
  2035. #ifdef HAVE_NETINET_TCP_H
  2036. #include <netinet/tcp.h>
  2037. #endif
  2038. #ifdef HAVE_NETINET_TCP_VAR_H
  2039. #include <netinet/tcp_var.h>
  2040. #endif])
  2041. dnl Check for struct tcp_stats
  2042. AC_CHECK_MEMBERS([struct tcp_stats.tcps_connattempt],,,
  2043. [#ifdef HAVE_NETINET_TCP_VAR_H
  2044. #include <netinet/tcp_var.h>
  2045. #endif])
  2046. dnl Check for struct udpstat
  2047. AC_CHECK_MEMBERS([struct udpstat.udps_ipackets],,,
  2048. [#include <sys/types.h>
  2049. #ifdef HAVE_NETINET_IN_H
  2050. #include <netinet/in.h>
  2051. #endif
  2052. #ifdef HAVE_NETINET_IP_VAR_H
  2053. #include <netinet/ip_var.h>
  2054. #endif
  2055. #ifdef HAVE_NETINET_UDP_H
  2056. #include <netinet/udp.h>
  2057. #endif
  2058. #ifdef HAVE_NETINET_UDP_VAR_H
  2059. #include <netinet/udp_var.h>
  2060. #endif])
  2061. dnl Check for struct ifreq.ifr_hwaddr
  2062. AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
  2063. [#include <sys/types.h>
  2064. #ifdef HAVE_NET_IF_H
  2065. # include <net/if.h>
  2066. #endif])
  2067. dnl Check for struct sysinfo members totalram and mem_unit
  2068. AC_CHECK_MEMBERS([struct sysinfo.totalram, struct sysinfo.mem_unit],,,
  2069. [#ifdef HAVE_SYS_SYSINFO_H
  2070. # include <sys/sysinfo.h>
  2071. #endif])
  2072. LIBS="$ac_save_LIBS"
  2073. dnl Check for __builtin_popcount
  2074. AC_CACHE_CHECK([for __builtin_popcount], ac_cv_have___builtin_popcount,
  2075. AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[return __builtin_popcount(1)]])],
  2076. [ac_cv_have___builtin_popcount="yes"], [ac_cv_have___builtin_popcount="no"]))
  2077. if test "$ac_cv_have___builtin_popcount" = "yes"
  2078. then
  2079. AC_DEFINE(HAVE___BUILTIN_POPCOUNT, 1, [Define to 1 if you have the `__builtin_popcount' built-in function.])
  2080. fi
  2081. AC_CACHE_CHECK([for __clear_cache], ac_cv_have___clear_cache,
  2082. AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[__clear_cache((void*)0, (void*)0); return 0;]])],
  2083. [ac_cv_have___clear_cache="yes"], [ac_cv_have___clear_cache="no"]))
  2084. if test "$ac_cv_have___clear_cache" = "yes"
  2085. then
  2086. AC_DEFINE(HAVE___CLEAR_CACHE, 1, [Define to 1 if you have the `__clear_cache' (potentially built-in) function.])
  2087. fi
  2088. dnl *** check for the need to define platform-specific symbols
  2089. case $host_cpu in
  2090. *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
  2091. *x86_64*) WINE_CHECK_DEFINE([__x86_64__]) ;;
  2092. *sparc64*) WINE_CHECK_DEFINE([__sparc64__]) ;;
  2093. *sparc*) WINE_CHECK_DEFINE([__sparc__]) ;;
  2094. *powerpc64*) WINE_CHECK_DEFINE([__powerpc64__]) ;;
  2095. *powerpc*) WINE_CHECK_DEFINE([__powerpc__]) ;;
  2096. *aarch64*) WINE_CHECK_DEFINE([__aarch64__]) ;;
  2097. *arm*) WINE_CHECK_DEFINE([__arm__]) ;;
  2098. esac
  2099. case $host_vendor in
  2100. *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
  2101. esac
  2102. dnl **** Generate output files ****
  2103. AH_TOP([#ifndef __WINE_CONFIG_H
  2104. #define __WINE_CONFIG_H])
  2105. AH_BOTTOM([#endif /* __WINE_CONFIG_H */])
  2106. AC_CONFIG_COMMANDS([include/stamp-h], [echo timestamp > include/stamp-h])
  2107. AS_ECHO_N("creating Makefile rules...") >&AS_MESSAGE_FD
  2108. makedep_flags=""
  2109. test "x$enable_silent_rules" = xyes && makedep_flags="$makedep_flags -S"
  2110. wine_srcdir=
  2111. test "$srcdir" = . || wine_srcdir="$srcdir/"
  2112. WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
  2113. WINE_CONFIG_SYMLINK(wine64,tools/winewrapper,["x$enable_win64" != xno -o -n "$with_wine64"])
  2114. WINE_CONFIG_MAKEFILE(dlls/acledit)
  2115. WINE_CONFIG_MAKEFILE(dlls/aclui)
  2116. WINE_CONFIG_MAKEFILE(dlls/activeds.tlb)
  2117. WINE_CONFIG_MAKEFILE(dlls/activeds)
  2118. WINE_CONFIG_MAKEFILE(dlls/activeds/tests)
  2119. WINE_CONFIG_MAKEFILE(dlls/actxprxy)
  2120. WINE_CONFIG_MAKEFILE(dlls/adsldp)
  2121. WINE_CONFIG_MAKEFILE(dlls/adsldp/tests)
  2122. WINE_CONFIG_MAKEFILE(dlls/adsldpc)
  2123. WINE_CONFIG_MAKEFILE(dlls/advapi32)
  2124. WINE_CONFIG_MAKEFILE(dlls/advapi32/tests)
  2125. WINE_CONFIG_MAKEFILE(dlls/advpack)
  2126. WINE_CONFIG_MAKEFILE(dlls/advpack/tests)
  2127. WINE_CONFIG_MAKEFILE(dlls/amsi)
  2128. WINE_CONFIG_MAKEFILE(dlls/amstream)
  2129. WINE_CONFIG_MAKEFILE(dlls/amstream/tests)
  2130. WINE_CONFIG_MAKEFILE(dlls/apisetschema)
  2131. WINE_CONFIG_MAKEFILE(dlls/apphelp)
  2132. WINE_CONFIG_MAKEFILE(dlls/apphelp/tests)
  2133. WINE_CONFIG_MAKEFILE(dlls/appwiz.cpl)
  2134. WINE_CONFIG_MAKEFILE(dlls/atl)
  2135. WINE_CONFIG_MAKEFILE(dlls/atl/tests)
  2136. WINE_CONFIG_MAKEFILE(dlls/atl100)
  2137. WINE_CONFIG_MAKEFILE(dlls/atl100/tests)
  2138. WINE_CONFIG_MAKEFILE(dlls/atl110)
  2139. WINE_CONFIG_MAKEFILE(dlls/atl80)
  2140. WINE_CONFIG_MAKEFILE(dlls/atl80/tests)
  2141. WINE_CONFIG_MAKEFILE(dlls/atl90)
  2142. WINE_CONFIG_MAKEFILE(dlls/atlthunk)
  2143. WINE_CONFIG_MAKEFILE(dlls/atlthunk/tests)
  2144. WINE_CONFIG_MAKEFILE(dlls/atmlib)
  2145. WINE_CONFIG_MAKEFILE(dlls/authz)
  2146. WINE_CONFIG_MAKEFILE(dlls/avicap32)
  2147. WINE_CONFIG_MAKEFILE(dlls/avifil32)
  2148. WINE_CONFIG_MAKEFILE(dlls/avifil32/tests)
  2149. WINE_CONFIG_MAKEFILE(dlls/avifile.dll16,enable_win16)
  2150. WINE_CONFIG_MAKEFILE(dlls/avrt)
  2151. WINE_CONFIG_MAKEFILE(dlls/bcrypt)
  2152. WINE_CONFIG_MAKEFILE(dlls/bcrypt/tests)
  2153. WINE_CONFIG_MAKEFILE(dlls/bluetoothapis)
  2154. WINE_CONFIG_MAKEFILE(dlls/browseui)
  2155. WINE_CONFIG_MAKEFILE(dlls/browseui/tests)
  2156. WINE_CONFIG_MAKEFILE(dlls/bthprops.cpl)
  2157. WINE_CONFIG_MAKEFILE(dlls/cabinet)
  2158. WINE_CONFIG_MAKEFILE(dlls/cabinet/tests)
  2159. WINE_CONFIG_MAKEFILE(dlls/capi2032)
  2160. WINE_CONFIG_MAKEFILE(dlls/cards)
  2161. WINE_CONFIG_MAKEFILE(dlls/cdosys)
  2162. WINE_CONFIG_MAKEFILE(dlls/cfgmgr32)
  2163. WINE_CONFIG_MAKEFILE(dlls/clusapi)
  2164. WINE_CONFIG_MAKEFILE(dlls/cng.sys)
  2165. WINE_CONFIG_MAKEFILE(dlls/combase)
  2166. WINE_CONFIG_MAKEFILE(dlls/combase/tests)
  2167. WINE_CONFIG_MAKEFILE(dlls/comcat)
  2168. WINE_CONFIG_MAKEFILE(dlls/comcat/tests)
  2169. WINE_CONFIG_MAKEFILE(dlls/comctl32)
  2170. WINE_CONFIG_MAKEFILE(dlls/comctl32/tests)
  2171. WINE_CONFIG_MAKEFILE(dlls/comdlg32)
  2172. WINE_CONFIG_MAKEFILE(dlls/comdlg32/tests)
  2173. WINE_CONFIG_MAKEFILE(dlls/comm.drv16,enable_win16)
  2174. WINE_CONFIG_MAKEFILE(dlls/commdlg.dll16,enable_win16)
  2175. WINE_CONFIG_MAKEFILE(dlls/compobj.dll16,enable_win16)
  2176. WINE_CONFIG_MAKEFILE(dlls/compstui)
  2177. WINE_CONFIG_MAKEFILE(dlls/comsvcs)
  2178. WINE_CONFIG_MAKEFILE(dlls/comsvcs/tests)
  2179. WINE_CONFIG_MAKEFILE(dlls/concrt140)
  2180. WINE_CONFIG_MAKEFILE(dlls/concrt140/tests)
  2181. WINE_CONFIG_MAKEFILE(dlls/connect)
  2182. WINE_CONFIG_MAKEFILE(dlls/credui)
  2183. WINE_CONFIG_MAKEFILE(dlls/credui/tests)
  2184. WINE_CONFIG_MAKEFILE(dlls/crtdll)
  2185. WINE_CONFIG_MAKEFILE(dlls/crypt32)
  2186. WINE_CONFIG_MAKEFILE(dlls/crypt32/tests)
  2187. WINE_CONFIG_MAKEFILE(dlls/cryptbase)
  2188. WINE_CONFIG_MAKEFILE(dlls/cryptdlg)
  2189. WINE_CONFIG_MAKEFILE(dlls/cryptdll)
  2190. WINE_CONFIG_MAKEFILE(dlls/cryptext)
  2191. WINE_CONFIG_MAKEFILE(dlls/cryptnet)
  2192. WINE_CONFIG_MAKEFILE(dlls/cryptnet/tests)
  2193. WINE_CONFIG_MAKEFILE(dlls/cryptsp)
  2194. WINE_CONFIG_MAKEFILE(dlls/cryptui)
  2195. WINE_CONFIG_MAKEFILE(dlls/cryptui/tests)
  2196. WINE_CONFIG_MAKEFILE(dlls/ctapi32)
  2197. WINE_CONFIG_MAKEFILE(dlls/ctl3d.dll16,enable_win16)
  2198. WINE_CONFIG_MAKEFILE(dlls/ctl3d32)
  2199. WINE_CONFIG_MAKEFILE(dlls/ctl3dv2.dll16,enable_win16)
  2200. WINE_CONFIG_MAKEFILE(dlls/d2d1)
  2201. WINE_CONFIG_MAKEFILE(dlls/d2d1/tests)
  2202. WINE_CONFIG_MAKEFILE(dlls/d3d10)
  2203. WINE_CONFIG_MAKEFILE(dlls/d3d10/tests)
  2204. WINE_CONFIG_MAKEFILE(dlls/d3d10_1)
  2205. WINE_CONFIG_MAKEFILE(dlls/d3d10_1/tests)
  2206. WINE_CONFIG_MAKEFILE(dlls/d3d10core)
  2207. WINE_CONFIG_MAKEFILE(dlls/d3d10core/tests)
  2208. WINE_CONFIG_MAKEFILE(dlls/d3d11)
  2209. WINE_CONFIG_MAKEFILE(dlls/d3d11/tests)
  2210. WINE_CONFIG_MAKEFILE(dlls/d3d12)
  2211. WINE_CONFIG_MAKEFILE(dlls/d3d12/tests)
  2212. WINE_CONFIG_MAKEFILE(dlls/d3d8)
  2213. WINE_CONFIG_MAKEFILE(dlls/d3d8/tests)
  2214. WINE_CONFIG_MAKEFILE(dlls/d3d8thk)
  2215. WINE_CONFIG_MAKEFILE(dlls/d3d9)
  2216. WINE_CONFIG_MAKEFILE(dlls/d3d9/tests)
  2217. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33)
  2218. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_34)
  2219. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_35)
  2220. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_36)
  2221. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_37)
  2222. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_38)
  2223. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_39)
  2224. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_40)
  2225. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_41)
  2226. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_42)
  2227. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43)
  2228. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43/tests)
  2229. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46)
  2230. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46/tests)
  2231. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47)
  2232. WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47/tests)
  2233. WINE_CONFIG_MAKEFILE(dlls/d3dim)
  2234. WINE_CONFIG_MAKEFILE(dlls/d3dim700)
  2235. WINE_CONFIG_MAKEFILE(dlls/d3drm)
  2236. WINE_CONFIG_MAKEFILE(dlls/d3drm/tests)
  2237. WINE_CONFIG_MAKEFILE(dlls/d3dx10_33)
  2238. WINE_CONFIG_MAKEFILE(dlls/d3dx10_34)
  2239. WINE_CONFIG_MAKEFILE(dlls/d3dx10_34/tests)
  2240. WINE_CONFIG_MAKEFILE(dlls/d3dx10_35)
  2241. WINE_CONFIG_MAKEFILE(dlls/d3dx10_35/tests)
  2242. WINE_CONFIG_MAKEFILE(dlls/d3dx10_36)
  2243. WINE_CONFIG_MAKEFILE(dlls/d3dx10_36/tests)
  2244. WINE_CONFIG_MAKEFILE(dlls/d3dx10_37)
  2245. WINE_CONFIG_MAKEFILE(dlls/d3dx10_37/tests)
  2246. WINE_CONFIG_MAKEFILE(dlls/d3dx10_38)
  2247. WINE_CONFIG_MAKEFILE(dlls/d3dx10_38/tests)
  2248. WINE_CONFIG_MAKEFILE(dlls/d3dx10_39)
  2249. WINE_CONFIG_MAKEFILE(dlls/d3dx10_39/tests)
  2250. WINE_CONFIG_MAKEFILE(dlls/d3dx10_40)
  2251. WINE_CONFIG_MAKEFILE(dlls/d3dx10_40/tests)
  2252. WINE_CONFIG_MAKEFILE(dlls/d3dx10_41)
  2253. WINE_CONFIG_MAKEFILE(dlls/d3dx10_41/tests)
  2254. WINE_CONFIG_MAKEFILE(dlls/d3dx10_42)
  2255. WINE_CONFIG_MAKEFILE(dlls/d3dx10_42/tests)
  2256. WINE_CONFIG_MAKEFILE(dlls/d3dx10_43)
  2257. WINE_CONFIG_MAKEFILE(dlls/d3dx10_43/tests)
  2258. WINE_CONFIG_MAKEFILE(dlls/d3dx11_42)
  2259. WINE_CONFIG_MAKEFILE(dlls/d3dx11_42/tests)
  2260. WINE_CONFIG_MAKEFILE(dlls/d3dx11_43)
  2261. WINE_CONFIG_MAKEFILE(dlls/d3dx11_43/tests)
  2262. WINE_CONFIG_MAKEFILE(dlls/d3dx9_24)
  2263. WINE_CONFIG_MAKEFILE(dlls/d3dx9_25)
  2264. WINE_CONFIG_MAKEFILE(dlls/d3dx9_26)
  2265. WINE_CONFIG_MAKEFILE(dlls/d3dx9_27)
  2266. WINE_CONFIG_MAKEFILE(dlls/d3dx9_28)
  2267. WINE_CONFIG_MAKEFILE(dlls/d3dx9_29)
  2268. WINE_CONFIG_MAKEFILE(dlls/d3dx9_30)
  2269. WINE_CONFIG_MAKEFILE(dlls/d3dx9_31)
  2270. WINE_CONFIG_MAKEFILE(dlls/d3dx9_32)
  2271. WINE_CONFIG_MAKEFILE(dlls/d3dx9_33)
  2272. WINE_CONFIG_MAKEFILE(dlls/d3dx9_34)
  2273. WINE_CONFIG_MAKEFILE(dlls/d3dx9_35)
  2274. WINE_CONFIG_MAKEFILE(dlls/d3dx9_36)
  2275. WINE_CONFIG_MAKEFILE(dlls/d3dx9_36/tests)
  2276. WINE_CONFIG_MAKEFILE(dlls/d3dx9_37)
  2277. WINE_CONFIG_MAKEFILE(dlls/d3dx9_38)
  2278. WINE_CONFIG_MAKEFILE(dlls/d3dx9_39)
  2279. WINE_CONFIG_MAKEFILE(dlls/d3dx9_40)
  2280. WINE_CONFIG_MAKEFILE(dlls/d3dx9_41)
  2281. WINE_CONFIG_MAKEFILE(dlls/d3dx9_42)
  2282. WINE_CONFIG_MAKEFILE(dlls/d3dx9_43)
  2283. WINE_CONFIG_MAKEFILE(dlls/d3dxof)
  2284. WINE_CONFIG_MAKEFILE(dlls/d3dxof/tests)
  2285. WINE_CONFIG_MAKEFILE(dlls/davclnt)
  2286. WINE_CONFIG_MAKEFILE(dlls/dbgeng)
  2287. WINE_CONFIG_MAKEFILE(dlls/dbgeng/tests)
  2288. WINE_CONFIG_MAKEFILE(dlls/dbghelp)
  2289. WINE_CONFIG_MAKEFILE(dlls/dbghelp/tests)
  2290. WINE_CONFIG_MAKEFILE(dlls/dciman32)
  2291. WINE_CONFIG_MAKEFILE(dlls/dcomp)
  2292. WINE_CONFIG_MAKEFILE(dlls/ddeml.dll16,enable_win16)
  2293. WINE_CONFIG_MAKEFILE(dlls/ddraw)
  2294. WINE_CONFIG_MAKEFILE(dlls/ddraw/tests)
  2295. WINE_CONFIG_MAKEFILE(dlls/ddrawex)
  2296. WINE_CONFIG_MAKEFILE(dlls/ddrawex/tests)
  2297. WINE_CONFIG_MAKEFILE(dlls/devenum)
  2298. WINE_CONFIG_MAKEFILE(dlls/devenum/tests)
  2299. WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc)
  2300. WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc/tests)
  2301. WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc6)
  2302. WINE_CONFIG_MAKEFILE(dlls/dhtmled.ocx)
  2303. WINE_CONFIG_MAKEFILE(dlls/diasymreader)
  2304. WINE_CONFIG_MAKEFILE(dlls/difxapi)
  2305. WINE_CONFIG_MAKEFILE(dlls/dinput)
  2306. WINE_CONFIG_MAKEFILE(dlls/dinput/tests)
  2307. WINE_CONFIG_MAKEFILE(dlls/dinput8)
  2308. WINE_CONFIG_MAKEFILE(dlls/directmanipulation)
  2309. WINE_CONFIG_MAKEFILE(dlls/directmanipulation/tests)
  2310. WINE_CONFIG_MAKEFILE(dlls/dispdib.dll16,enable_win16)
  2311. WINE_CONFIG_MAKEFILE(dlls/dispex)
  2312. WINE_CONFIG_MAKEFILE(dlls/dispex/tests)
  2313. WINE_CONFIG_MAKEFILE(dlls/display.drv16,enable_win16)
  2314. WINE_CONFIG_MAKEFILE(dlls/dmband)
  2315. WINE_CONFIG_MAKEFILE(dlls/dmband/tests)
  2316. WINE_CONFIG_MAKEFILE(dlls/dmcompos)
  2317. WINE_CONFIG_MAKEFILE(dlls/dmcompos/tests)
  2318. WINE_CONFIG_MAKEFILE(dlls/dmime)
  2319. WINE_CONFIG_MAKEFILE(dlls/dmime/tests)
  2320. WINE_CONFIG_MAKEFILE(dlls/dmloader)
  2321. WINE_CONFIG_MAKEFILE(dlls/dmloader/tests)
  2322. WINE_CONFIG_MAKEFILE(dlls/dmscript)
  2323. WINE_CONFIG_MAKEFILE(dlls/dmscript/tests)
  2324. WINE_CONFIG_MAKEFILE(dlls/dmstyle)
  2325. WINE_CONFIG_MAKEFILE(dlls/dmstyle/tests)
  2326. WINE_CONFIG_MAKEFILE(dlls/dmsynth)
  2327. WINE_CONFIG_MAKEFILE(dlls/dmsynth/tests)
  2328. WINE_CONFIG_MAKEFILE(dlls/dmusic)
  2329. WINE_CONFIG_MAKEFILE(dlls/dmusic/tests)
  2330. WINE_CONFIG_MAKEFILE(dlls/dmusic32)
  2331. WINE_CONFIG_MAKEFILE(dlls/dnsapi)
  2332. WINE_CONFIG_MAKEFILE(dlls/dnsapi/tests)
  2333. WINE_CONFIG_MAKEFILE(dlls/dplay)
  2334. WINE_CONFIG_MAKEFILE(dlls/dplayx)
  2335. WINE_CONFIG_MAKEFILE(dlls/dplayx/tests)
  2336. WINE_CONFIG_MAKEFILE(dlls/dpnaddr)
  2337. WINE_CONFIG_MAKEFILE(dlls/dpnet)
  2338. WINE_CONFIG_MAKEFILE(dlls/dpnet/tests)
  2339. WINE_CONFIG_MAKEFILE(dlls/dpnhpast)
  2340. WINE_CONFIG_MAKEFILE(dlls/dpnhupnp)
  2341. WINE_CONFIG_MAKEFILE(dlls/dpnlobby)
  2342. WINE_CONFIG_MAKEFILE(dlls/dpvoice)
  2343. WINE_CONFIG_MAKEFILE(dlls/dpvoice/tests)
  2344. WINE_CONFIG_MAKEFILE(dlls/dpwsockx)
  2345. WINE_CONFIG_MAKEFILE(dlls/drmclien)
  2346. WINE_CONFIG_MAKEFILE(dlls/dsdmo)
  2347. WINE_CONFIG_MAKEFILE(dlls/dsdmo/tests)
  2348. WINE_CONFIG_MAKEFILE(dlls/dsound)
  2349. WINE_CONFIG_MAKEFILE(dlls/dsound/tests)
  2350. WINE_CONFIG_MAKEFILE(dlls/dsquery)
  2351. WINE_CONFIG_MAKEFILE(dlls/dssenh)
  2352. WINE_CONFIG_MAKEFILE(dlls/dssenh/tests)
  2353. WINE_CONFIG_MAKEFILE(dlls/dsuiext)
  2354. WINE_CONFIG_MAKEFILE(dlls/dswave)
  2355. WINE_CONFIG_MAKEFILE(dlls/dswave/tests)
  2356. WINE_CONFIG_MAKEFILE(dlls/dwmapi)
  2357. WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests)
  2358. WINE_CONFIG_MAKEFILE(dlls/dwrite)
  2359. WINE_CONFIG_MAKEFILE(dlls/dwrite/tests)
  2360. WINE_CONFIG_MAKEFILE(dlls/dx8vb)
  2361. WINE_CONFIG_MAKEFILE(dlls/dxdiagn)
  2362. WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests)
  2363. WINE_CONFIG_MAKEFILE(dlls/dxgi)
  2364. WINE_CONFIG_MAKEFILE(dlls/dxgi/tests)
  2365. WINE_CONFIG_MAKEFILE(dlls/dxtrans)
  2366. WINE_CONFIG_MAKEFILE(dlls/dxva2)
  2367. WINE_CONFIG_MAKEFILE(dlls/dxva2/tests)
  2368. WINE_CONFIG_MAKEFILE(dlls/esent)
  2369. WINE_CONFIG_MAKEFILE(dlls/evr)
  2370. WINE_CONFIG_MAKEFILE(dlls/evr/tests)
  2371. WINE_CONFIG_MAKEFILE(dlls/explorerframe)
  2372. WINE_CONFIG_MAKEFILE(dlls/explorerframe/tests)
  2373. WINE_CONFIG_MAKEFILE(dlls/faultrep)
  2374. WINE_CONFIG_MAKEFILE(dlls/faultrep/tests)
  2375. WINE_CONFIG_MAKEFILE(dlls/feclient)
  2376. WINE_CONFIG_MAKEFILE(dlls/fltlib)
  2377. WINE_CONFIG_MAKEFILE(dlls/fltmgr.sys)
  2378. WINE_CONFIG_MAKEFILE(dlls/fntcache)
  2379. WINE_CONFIG_MAKEFILE(dlls/fontsub)
  2380. WINE_CONFIG_MAKEFILE(dlls/fusion)
  2381. WINE_CONFIG_MAKEFILE(dlls/fusion/tests)
  2382. WINE_CONFIG_MAKEFILE(dlls/fwpuclnt)
  2383. WINE_CONFIG_MAKEFILE(dlls/gameux)
  2384. WINE_CONFIG_MAKEFILE(dlls/gameux/tests)
  2385. WINE_CONFIG_MAKEFILE(dlls/gamingtcui)
  2386. WINE_CONFIG_MAKEFILE(dlls/gdi.exe16,enable_win16)
  2387. WINE_CONFIG_MAKEFILE(dlls/gdi32)
  2388. WINE_CONFIG_MAKEFILE(dlls/gdi32/tests)
  2389. WINE_CONFIG_MAKEFILE(dlls/gdiplus)
  2390. WINE_CONFIG_MAKEFILE(dlls/gdiplus/tests)
  2391. WINE_CONFIG_MAKEFILE(dlls/glu32)
  2392. WINE_CONFIG_MAKEFILE(dlls/gphoto2.ds)
  2393. WINE_CONFIG_MAKEFILE(dlls/gpkcsp)
  2394. WINE_CONFIG_MAKEFILE(dlls/hal)
  2395. WINE_CONFIG_MAKEFILE(dlls/hhctrl.ocx)
  2396. WINE_CONFIG_MAKEFILE(dlls/hid)
  2397. WINE_CONFIG_MAKEFILE(dlls/hid/tests)
  2398. WINE_CONFIG_MAKEFILE(dlls/hidclass.sys)
  2399. WINE_CONFIG_MAKEFILE(dlls/hidparse.sys)
  2400. WINE_CONFIG_MAKEFILE(dlls/hlink)
  2401. WINE_CONFIG_MAKEFILE(dlls/hlink/tests)
  2402. WINE_CONFIG_MAKEFILE(dlls/hnetcfg)
  2403. WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests)
  2404. WINE_CONFIG_MAKEFILE(dlls/http.sys)
  2405. WINE_CONFIG_MAKEFILE(dlls/httpapi)
  2406. WINE_CONFIG_MAKEFILE(dlls/httpapi/tests)
  2407. WINE_CONFIG_MAKEFILE(dlls/iccvid)
  2408. WINE_CONFIG_MAKEFILE(dlls/icmp)
  2409. WINE_CONFIG_MAKEFILE(dlls/ieframe)
  2410. WINE_CONFIG_MAKEFILE(dlls/ieframe/tests)
  2411. WINE_CONFIG_MAKEFILE(dlls/ieproxy)
  2412. WINE_CONFIG_MAKEFILE(dlls/ifsmgr.vxd,enable_win16)
  2413. WINE_CONFIG_MAKEFILE(dlls/imaadp32.acm)
  2414. WINE_CONFIG_MAKEFILE(dlls/imagehlp)
  2415. WINE_CONFIG_MAKEFILE(dlls/imagehlp/tests)
  2416. WINE_CONFIG_MAKEFILE(dlls/imm.dll16,enable_win16)
  2417. WINE_CONFIG_MAKEFILE(dlls/imm32)
  2418. WINE_CONFIG_MAKEFILE(dlls/imm32/tests)
  2419. WINE_CONFIG_MAKEFILE(dlls/inetcomm)
  2420. WINE_CONFIG_MAKEFILE(dlls/inetcomm/tests)
  2421. WINE_CONFIG_MAKEFILE(dlls/inetcpl.cpl)
  2422. WINE_CONFIG_MAKEFILE(dlls/inetmib1)
  2423. WINE_CONFIG_MAKEFILE(dlls/inetmib1/tests)
  2424. WINE_CONFIG_MAKEFILE(dlls/infosoft)
  2425. WINE_CONFIG_MAKEFILE(dlls/infosoft/tests)
  2426. WINE_CONFIG_MAKEFILE(dlls/initpki)
  2427. WINE_CONFIG_MAKEFILE(dlls/inkobj)
  2428. WINE_CONFIG_MAKEFILE(dlls/inseng)
  2429. WINE_CONFIG_MAKEFILE(dlls/iphlpapi)
  2430. WINE_CONFIG_MAKEFILE(dlls/iphlpapi/tests)
  2431. WINE_CONFIG_MAKEFILE(dlls/iprop)
  2432. WINE_CONFIG_MAKEFILE(dlls/irprops.cpl)
  2433. WINE_CONFIG_MAKEFILE(dlls/itircl)
  2434. WINE_CONFIG_MAKEFILE(dlls/itss)
  2435. WINE_CONFIG_MAKEFILE(dlls/itss/tests)
  2436. WINE_CONFIG_MAKEFILE(dlls/joy.cpl)
  2437. WINE_CONFIG_MAKEFILE(dlls/jscript)
  2438. WINE_CONFIG_MAKEFILE(dlls/jscript/tests)
  2439. WINE_CONFIG_MAKEFILE(dlls/jsproxy)
  2440. WINE_CONFIG_MAKEFILE(dlls/jsproxy/tests)
  2441. WINE_CONFIG_MAKEFILE(dlls/kerberos)
  2442. WINE_CONFIG_MAKEFILE(dlls/kernel32)
  2443. WINE_CONFIG_MAKEFILE(dlls/kernel32/tests)
  2444. WINE_CONFIG_MAKEFILE(dlls/kernelbase)
  2445. WINE_CONFIG_MAKEFILE(dlls/kernelbase/tests)
  2446. WINE_CONFIG_MAKEFILE(dlls/keyboard.drv16,enable_win16)
  2447. WINE_CONFIG_MAKEFILE(dlls/krnl386.exe16,enable_win16)
  2448. WINE_CONFIG_MAKEFILE(dlls/ksecdd.sys)
  2449. WINE_CONFIG_MAKEFILE(dlls/ksproxy.ax)
  2450. WINE_CONFIG_MAKEFILE(dlls/ksuser)
  2451. WINE_CONFIG_MAKEFILE(dlls/ktmw32)
  2452. WINE_CONFIG_MAKEFILE(dlls/l3codeca.acm)
  2453. WINE_CONFIG_MAKEFILE(dlls/light.msstyles)
  2454. WINE_CONFIG_MAKEFILE(dlls/loadperf)
  2455. WINE_CONFIG_MAKEFILE(dlls/localspl)
  2456. WINE_CONFIG_MAKEFILE(dlls/localspl/tests)
  2457. WINE_CONFIG_MAKEFILE(dlls/localui)
  2458. WINE_CONFIG_MAKEFILE(dlls/localui/tests)
  2459. WINE_CONFIG_MAKEFILE(dlls/lz32)
  2460. WINE_CONFIG_MAKEFILE(dlls/lz32/tests)
  2461. WINE_CONFIG_MAKEFILE(dlls/lzexpand.dll16,enable_win16)
  2462. WINE_CONFIG_MAKEFILE(dlls/mapi32)
  2463. WINE_CONFIG_MAKEFILE(dlls/mapi32/tests)
  2464. WINE_CONFIG_MAKEFILE(dlls/mapistub)
  2465. WINE_CONFIG_MAKEFILE(dlls/mciavi32)
  2466. WINE_CONFIG_MAKEFILE(dlls/mcicda)
  2467. WINE_CONFIG_MAKEFILE(dlls/mciqtz32)
  2468. WINE_CONFIG_MAKEFILE(dlls/mciseq)
  2469. WINE_CONFIG_MAKEFILE(dlls/mciwave)
  2470. WINE_CONFIG_MAKEFILE(dlls/mf)
  2471. WINE_CONFIG_MAKEFILE(dlls/mf/tests)
  2472. WINE_CONFIG_MAKEFILE(dlls/mf3216)
  2473. WINE_CONFIG_MAKEFILE(dlls/mferror)
  2474. WINE_CONFIG_MAKEFILE(dlls/mfmediaengine)
  2475. WINE_CONFIG_MAKEFILE(dlls/mfmediaengine/tests)
  2476. WINE_CONFIG_MAKEFILE(dlls/mfplat)
  2477. WINE_CONFIG_MAKEFILE(dlls/mfplat/tests)
  2478. WINE_CONFIG_MAKEFILE(dlls/mfplay)
  2479. WINE_CONFIG_MAKEFILE(dlls/mfplay/tests)
  2480. WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
  2481. WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
  2482. WINE_CONFIG_MAKEFILE(dlls/mgmtapi)
  2483. WINE_CONFIG_MAKEFILE(dlls/midimap)
  2484. WINE_CONFIG_MAKEFILE(dlls/mlang)
  2485. WINE_CONFIG_MAKEFILE(dlls/mlang/tests)
  2486. WINE_CONFIG_MAKEFILE(dlls/mmcndmgr)
  2487. WINE_CONFIG_MAKEFILE(dlls/mmcndmgr/tests)
  2488. WINE_CONFIG_MAKEFILE(dlls/mmdevapi)
  2489. WINE_CONFIG_MAKEFILE(dlls/mmdevapi/tests)
  2490. WINE_CONFIG_MAKEFILE(dlls/mmdevldr.vxd,enable_win16)
  2491. WINE_CONFIG_MAKEFILE(dlls/mmsystem.dll16,enable_win16)
  2492. WINE_CONFIG_MAKEFILE(dlls/monodebg.vxd,enable_win16)
  2493. WINE_CONFIG_MAKEFILE(dlls/mountmgr.sys)
  2494. WINE_CONFIG_MAKEFILE(dlls/mouse.drv16,enable_win16)
  2495. WINE_CONFIG_MAKEFILE(dlls/mp3dmod)
  2496. WINE_CONFIG_MAKEFILE(dlls/mp3dmod/tests)
  2497. WINE_CONFIG_MAKEFILE(dlls/mpr)
  2498. WINE_CONFIG_MAKEFILE(dlls/mpr/tests)
  2499. WINE_CONFIG_MAKEFILE(dlls/mprapi)
  2500. WINE_CONFIG_MAKEFILE(dlls/msacm.dll16,enable_win16)
  2501. WINE_CONFIG_MAKEFILE(dlls/msacm32.drv)
  2502. WINE_CONFIG_MAKEFILE(dlls/msacm32)
  2503. WINE_CONFIG_MAKEFILE(dlls/msacm32/tests)
  2504. WINE_CONFIG_MAKEFILE(dlls/msado15)
  2505. WINE_CONFIG_MAKEFILE(dlls/msado15/tests)
  2506. WINE_CONFIG_MAKEFILE(dlls/msadp32.acm)
  2507. WINE_CONFIG_MAKEFILE(dlls/msasn1)
  2508. WINE_CONFIG_MAKEFILE(dlls/msasn1/tests)
  2509. WINE_CONFIG_MAKEFILE(dlls/mscat32)
  2510. WINE_CONFIG_MAKEFILE(dlls/mscms)
  2511. WINE_CONFIG_MAKEFILE(dlls/mscms/tests)
  2512. WINE_CONFIG_MAKEFILE(dlls/mscoree)
  2513. WINE_CONFIG_MAKEFILE(dlls/mscoree/tests)
  2514. WINE_CONFIG_MAKEFILE(dlls/mscorwks)
  2515. WINE_CONFIG_MAKEFILE(dlls/msctf)
  2516. WINE_CONFIG_MAKEFILE(dlls/msctf/tests)
  2517. WINE_CONFIG_MAKEFILE(dlls/msctfmonitor)
  2518. WINE_CONFIG_MAKEFILE(dlls/msctfp)
  2519. WINE_CONFIG_MAKEFILE(dlls/msdaps)
  2520. WINE_CONFIG_MAKEFILE(dlls/msdasql)
  2521. WINE_CONFIG_MAKEFILE(dlls/msdasql/tests)
  2522. WINE_CONFIG_MAKEFILE(dlls/msdelta)
  2523. WINE_CONFIG_MAKEFILE(dlls/msdmo)
  2524. WINE_CONFIG_MAKEFILE(dlls/msdmo/tests)
  2525. WINE_CONFIG_MAKEFILE(dlls/msdrm)
  2526. WINE_CONFIG_MAKEFILE(dlls/msftedit)
  2527. WINE_CONFIG_MAKEFILE(dlls/msftedit/tests)
  2528. WINE_CONFIG_MAKEFILE(dlls/msg711.acm)
  2529. WINE_CONFIG_MAKEFILE(dlls/msgsm32.acm)
  2530. WINE_CONFIG_MAKEFILE(dlls/mshtml.tlb)
  2531. WINE_CONFIG_MAKEFILE(dlls/mshtml)
  2532. WINE_CONFIG_MAKEFILE(dlls/mshtml/tests)
  2533. WINE_CONFIG_MAKEFILE(dlls/msi)
  2534. WINE_CONFIG_MAKEFILE(dlls/msi/tests)
  2535. WINE_CONFIG_MAKEFILE(dlls/msident)
  2536. WINE_CONFIG_MAKEFILE(dlls/msimg32)
  2537. WINE_CONFIG_MAKEFILE(dlls/msimsg)
  2538. WINE_CONFIG_MAKEFILE(dlls/msimtf)
  2539. WINE_CONFIG_MAKEFILE(dlls/msisip)
  2540. WINE_CONFIG_MAKEFILE(dlls/msisys.ocx)
  2541. WINE_CONFIG_MAKEFILE(dlls/msls31)
  2542. WINE_CONFIG_MAKEFILE(dlls/msnet32)
  2543. WINE_CONFIG_MAKEFILE(dlls/mspatcha)
  2544. WINE_CONFIG_MAKEFILE(dlls/mspatcha/tests)
  2545. WINE_CONFIG_MAKEFILE(dlls/msports)
  2546. WINE_CONFIG_MAKEFILE(dlls/msrle32)
  2547. WINE_CONFIG_MAKEFILE(dlls/msrle32/tests)
  2548. WINE_CONFIG_MAKEFILE(dlls/msscript.ocx)
  2549. WINE_CONFIG_MAKEFILE(dlls/msscript.ocx/tests)
  2550. WINE_CONFIG_MAKEFILE(dlls/mssign32)
  2551. WINE_CONFIG_MAKEFILE(dlls/mssip32)
  2552. WINE_CONFIG_MAKEFILE(dlls/mstask)
  2553. WINE_CONFIG_MAKEFILE(dlls/mstask/tests)
  2554. WINE_CONFIG_MAKEFILE(dlls/msv1_0)
  2555. WINE_CONFIG_MAKEFILE(dlls/msvcirt)
  2556. WINE_CONFIG_MAKEFILE(dlls/msvcirt/tests)
  2557. WINE_CONFIG_MAKEFILE(dlls/msvcm80)
  2558. WINE_CONFIG_MAKEFILE(dlls/msvcm90)
  2559. WINE_CONFIG_MAKEFILE(dlls/msvcp100)
  2560. WINE_CONFIG_MAKEFILE(dlls/msvcp100/tests)
  2561. WINE_CONFIG_MAKEFILE(dlls/msvcp110)
  2562. WINE_CONFIG_MAKEFILE(dlls/msvcp110/tests)
  2563. WINE_CONFIG_MAKEFILE(dlls/msvcp120)
  2564. WINE_CONFIG_MAKEFILE(dlls/msvcp120/tests)
  2565. WINE_CONFIG_MAKEFILE(dlls/msvcp120_app)
  2566. WINE_CONFIG_MAKEFILE(dlls/msvcp140)
  2567. WINE_CONFIG_MAKEFILE(dlls/msvcp140/tests)
  2568. WINE_CONFIG_MAKEFILE(dlls/msvcp140_1)
  2569. WINE_CONFIG_MAKEFILE(dlls/msvcp140_1/tests)
  2570. WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait)
  2571. WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait/tests)
  2572. WINE_CONFIG_MAKEFILE(dlls/msvcp60)
  2573. WINE_CONFIG_MAKEFILE(dlls/msvcp60/tests)
  2574. WINE_CONFIG_MAKEFILE(dlls/msvcp70)
  2575. WINE_CONFIG_MAKEFILE(dlls/msvcp71)
  2576. WINE_CONFIG_MAKEFILE(dlls/msvcp80)
  2577. WINE_CONFIG_MAKEFILE(dlls/msvcp90)
  2578. WINE_CONFIG_MAKEFILE(dlls/msvcp90/tests)
  2579. WINE_CONFIG_MAKEFILE(dlls/msvcp_win)
  2580. WINE_CONFIG_MAKEFILE(dlls/msvcr100)
  2581. WINE_CONFIG_MAKEFILE(dlls/msvcr100/tests)
  2582. WINE_CONFIG_MAKEFILE(dlls/msvcr110)
  2583. WINE_CONFIG_MAKEFILE(dlls/msvcr110/tests)
  2584. WINE_CONFIG_MAKEFILE(dlls/msvcr120)
  2585. WINE_CONFIG_MAKEFILE(dlls/msvcr120/tests)
  2586. WINE_CONFIG_MAKEFILE(dlls/msvcr120_app)
  2587. WINE_CONFIG_MAKEFILE(dlls/msvcr70)
  2588. WINE_CONFIG_MAKEFILE(dlls/msvcr71)
  2589. WINE_CONFIG_MAKEFILE(dlls/msvcr80)
  2590. WINE_CONFIG_MAKEFILE(dlls/msvcr80/tests)
  2591. WINE_CONFIG_MAKEFILE(dlls/msvcr90)
  2592. WINE_CONFIG_MAKEFILE(dlls/msvcr90/tests)
  2593. WINE_CONFIG_MAKEFILE(dlls/msvcrt)
  2594. WINE_CONFIG_MAKEFILE(dlls/msvcrt/tests)
  2595. WINE_CONFIG_MAKEFILE(dlls/msvcrt20)
  2596. WINE_CONFIG_MAKEFILE(dlls/msvcrt40)
  2597. WINE_CONFIG_MAKEFILE(dlls/msvcrtd)
  2598. WINE_CONFIG_MAKEFILE(dlls/msvcrtd/tests)
  2599. WINE_CONFIG_MAKEFILE(dlls/msvfw32)
  2600. WINE_CONFIG_MAKEFILE(dlls/msvfw32/tests)
  2601. WINE_CONFIG_MAKEFILE(dlls/msvidc32)
  2602. WINE_CONFIG_MAKEFILE(dlls/msvideo.dll16,enable_win16)
  2603. WINE_CONFIG_MAKEFILE(dlls/mswsock)
  2604. WINE_CONFIG_MAKEFILE(dlls/msxml)
  2605. WINE_CONFIG_MAKEFILE(dlls/msxml2)
  2606. WINE_CONFIG_MAKEFILE(dlls/msxml3)
  2607. WINE_CONFIG_MAKEFILE(dlls/msxml3/tests)
  2608. WINE_CONFIG_MAKEFILE(dlls/msxml4)
  2609. WINE_CONFIG_MAKEFILE(dlls/msxml6)
  2610. WINE_CONFIG_MAKEFILE(dlls/mtxdm)
  2611. WINE_CONFIG_MAKEFILE(dlls/ncrypt)
  2612. WINE_CONFIG_MAKEFILE(dlls/ncrypt/tests)
  2613. WINE_CONFIG_MAKEFILE(dlls/nddeapi)
  2614. WINE_CONFIG_MAKEFILE(dlls/ndis.sys)
  2615. WINE_CONFIG_MAKEFILE(dlls/ndis.sys/tests)
  2616. WINE_CONFIG_MAKEFILE(dlls/netapi32)
  2617. WINE_CONFIG_MAKEFILE(dlls/netapi32/tests)
  2618. WINE_CONFIG_MAKEFILE(dlls/netcfgx)
  2619. WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
  2620. WINE_CONFIG_MAKEFILE(dlls/netio.sys)
  2621. WINE_CONFIG_MAKEFILE(dlls/netprofm)
  2622. WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
  2623. WINE_CONFIG_MAKEFILE(dlls/netutils)
  2624. WINE_CONFIG_MAKEFILE(dlls/newdev)
  2625. WINE_CONFIG_MAKEFILE(dlls/ninput)
  2626. WINE_CONFIG_MAKEFILE(dlls/ninput/tests)
  2627. WINE_CONFIG_MAKEFILE(dlls/normaliz)
  2628. WINE_CONFIG_MAKEFILE(dlls/npmshtml)
  2629. WINE_CONFIG_MAKEFILE(dlls/npptools)
  2630. WINE_CONFIG_MAKEFILE(dlls/nsi)
  2631. WINE_CONFIG_MAKEFILE(dlls/nsi/tests)
  2632. WINE_CONFIG_MAKEFILE(dlls/nsiproxy.sys)
  2633. WINE_CONFIG_MAKEFILE(dlls/ntdll)
  2634. WINE_CONFIG_MAKEFILE(dlls/ntdll/tests)
  2635. WINE_CONFIG_MAKEFILE(dlls/ntdsapi)
  2636. WINE_CONFIG_MAKEFILE(dlls/ntdsapi/tests)
  2637. WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe)
  2638. WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe/tests)
  2639. WINE_CONFIG_MAKEFILE(dlls/ntprint)
  2640. WINE_CONFIG_MAKEFILE(dlls/ntprint/tests)
  2641. WINE_CONFIG_MAKEFILE(dlls/objsel)
  2642. WINE_CONFIG_MAKEFILE(dlls/odbc32)
  2643. WINE_CONFIG_MAKEFILE(dlls/odbcbcp)
  2644. WINE_CONFIG_MAKEFILE(dlls/odbccp32)
  2645. WINE_CONFIG_MAKEFILE(dlls/odbccp32/tests)
  2646. WINE_CONFIG_MAKEFILE(dlls/odbccu32)
  2647. WINE_CONFIG_MAKEFILE(dlls/ole2.dll16,enable_win16)
  2648. WINE_CONFIG_MAKEFILE(dlls/ole2conv.dll16,enable_win16)
  2649. WINE_CONFIG_MAKEFILE(dlls/ole2disp.dll16,enable_win16)
  2650. WINE_CONFIG_MAKEFILE(dlls/ole2nls.dll16,enable_win16)
  2651. WINE_CONFIG_MAKEFILE(dlls/ole2prox.dll16,enable_win16)
  2652. WINE_CONFIG_MAKEFILE(dlls/ole2thk.dll16,enable_win16)
  2653. WINE_CONFIG_MAKEFILE(dlls/ole32)
  2654. WINE_CONFIG_MAKEFILE(dlls/ole32/tests)
  2655. WINE_CONFIG_MAKEFILE(dlls/oleacc)
  2656. WINE_CONFIG_MAKEFILE(dlls/oleacc/tests)
  2657. WINE_CONFIG_MAKEFILE(dlls/oleaut32)
  2658. WINE_CONFIG_MAKEFILE(dlls/oleaut32/tests)
  2659. WINE_CONFIG_MAKEFILE(dlls/olecli.dll16,enable_win16)
  2660. WINE_CONFIG_MAKEFILE(dlls/olecli32)
  2661. WINE_CONFIG_MAKEFILE(dlls/oledb32)
  2662. WINE_CONFIG_MAKEFILE(dlls/oledb32/tests)
  2663. WINE_CONFIG_MAKEFILE(dlls/oledlg)
  2664. WINE_CONFIG_MAKEFILE(dlls/oledlg/tests)
  2665. WINE_CONFIG_MAKEFILE(dlls/olepro32)
  2666. WINE_CONFIG_MAKEFILE(dlls/olesvr.dll16,enable_win16)
  2667. WINE_CONFIG_MAKEFILE(dlls/olesvr32)
  2668. WINE_CONFIG_MAKEFILE(dlls/olethk32)
  2669. WINE_CONFIG_MAKEFILE(dlls/opcservices)
  2670. WINE_CONFIG_MAKEFILE(dlls/opcservices/tests)
  2671. WINE_CONFIG_MAKEFILE(dlls/openal32)
  2672. WINE_CONFIG_MAKEFILE(dlls/opencl)
  2673. WINE_CONFIG_MAKEFILE(dlls/opengl32)
  2674. WINE_CONFIG_MAKEFILE(dlls/opengl32/tests)
  2675. WINE_CONFIG_MAKEFILE(dlls/packager)
  2676. WINE_CONFIG_MAKEFILE(dlls/packager/tests)
  2677. WINE_CONFIG_MAKEFILE(dlls/pdh)
  2678. WINE_CONFIG_MAKEFILE(dlls/pdh/tests)
  2679. WINE_CONFIG_MAKEFILE(dlls/photometadatahandler)
  2680. WINE_CONFIG_MAKEFILE(dlls/pidgen)
  2681. WINE_CONFIG_MAKEFILE(dlls/powrprof)
  2682. WINE_CONFIG_MAKEFILE(dlls/printui)
  2683. WINE_CONFIG_MAKEFILE(dlls/prntvpt)
  2684. WINE_CONFIG_MAKEFILE(dlls/prntvpt/tests)
  2685. WINE_CONFIG_MAKEFILE(dlls/propsys)
  2686. WINE_CONFIG_MAKEFILE(dlls/propsys/tests)
  2687. WINE_CONFIG_MAKEFILE(dlls/psapi)
  2688. WINE_CONFIG_MAKEFILE(dlls/psapi/tests)
  2689. WINE_CONFIG_MAKEFILE(dlls/pstorec)
  2690. WINE_CONFIG_MAKEFILE(dlls/pstorec/tests)
  2691. WINE_CONFIG_MAKEFILE(dlls/pwrshplugin)
  2692. WINE_CONFIG_MAKEFILE(dlls/qasf)
  2693. WINE_CONFIG_MAKEFILE(dlls/qasf/tests)
  2694. WINE_CONFIG_MAKEFILE(dlls/qcap)
  2695. WINE_CONFIG_MAKEFILE(dlls/qcap/tests)
  2696. WINE_CONFIG_MAKEFILE(dlls/qdvd)
  2697. WINE_CONFIG_MAKEFILE(dlls/qdvd/tests)
  2698. WINE_CONFIG_MAKEFILE(dlls/qedit)
  2699. WINE_CONFIG_MAKEFILE(dlls/qedit/tests)
  2700. WINE_CONFIG_MAKEFILE(dlls/qmgr)
  2701. WINE_CONFIG_MAKEFILE(dlls/qmgr/tests)
  2702. WINE_CONFIG_MAKEFILE(dlls/qmgrprxy)
  2703. WINE_CONFIG_MAKEFILE(dlls/quartz)
  2704. WINE_CONFIG_MAKEFILE(dlls/quartz/tests)
  2705. WINE_CONFIG_MAKEFILE(dlls/query)
  2706. WINE_CONFIG_MAKEFILE(dlls/qwave)
  2707. WINE_CONFIG_MAKEFILE(dlls/qwave/tests)
  2708. WINE_CONFIG_MAKEFILE(dlls/rasapi16.dll16,enable_win16)
  2709. WINE_CONFIG_MAKEFILE(dlls/rasapi32)
  2710. WINE_CONFIG_MAKEFILE(dlls/rasapi32/tests)
  2711. WINE_CONFIG_MAKEFILE(dlls/rasdlg)
  2712. WINE_CONFIG_MAKEFILE(dlls/regapi)
  2713. WINE_CONFIG_MAKEFILE(dlls/resutils)
  2714. WINE_CONFIG_MAKEFILE(dlls/riched20)
  2715. WINE_CONFIG_MAKEFILE(dlls/riched20/tests)
  2716. WINE_CONFIG_MAKEFILE(dlls/riched32)
  2717. WINE_CONFIG_MAKEFILE(dlls/riched32/tests)
  2718. WINE_CONFIG_MAKEFILE(dlls/rpcrt4)
  2719. WINE_CONFIG_MAKEFILE(dlls/rpcrt4/tests)
  2720. WINE_CONFIG_MAKEFILE(dlls/rsabase)
  2721. WINE_CONFIG_MAKEFILE(dlls/rsaenh)
  2722. WINE_CONFIG_MAKEFILE(dlls/rsaenh/tests)
  2723. WINE_CONFIG_MAKEFILE(dlls/rstrtmgr)
  2724. WINE_CONFIG_MAKEFILE(dlls/rtutils)
  2725. WINE_CONFIG_MAKEFILE(dlls/rtworkq)
  2726. WINE_CONFIG_MAKEFILE(dlls/rtworkq/tests)
  2727. WINE_CONFIG_MAKEFILE(dlls/samlib)
  2728. WINE_CONFIG_MAKEFILE(dlls/sane.ds)
  2729. WINE_CONFIG_MAKEFILE(dlls/sapi)
  2730. WINE_CONFIG_MAKEFILE(dlls/sapi/tests)
  2731. WINE_CONFIG_MAKEFILE(dlls/sas)
  2732. WINE_CONFIG_MAKEFILE(dlls/scarddlg)
  2733. WINE_CONFIG_MAKEFILE(dlls/sccbase)
  2734. WINE_CONFIG_MAKEFILE(dlls/schannel)
  2735. WINE_CONFIG_MAKEFILE(dlls/schannel/tests)
  2736. WINE_CONFIG_MAKEFILE(dlls/schedsvc)
  2737. WINE_CONFIG_MAKEFILE(dlls/schedsvc/tests)
  2738. WINE_CONFIG_MAKEFILE(dlls/scrobj)
  2739. WINE_CONFIG_MAKEFILE(dlls/scrobj/tests)
  2740. WINE_CONFIG_MAKEFILE(dlls/scrrun)
  2741. WINE_CONFIG_MAKEFILE(dlls/scrrun/tests)
  2742. WINE_CONFIG_MAKEFILE(dlls/scsiport.sys)
  2743. WINE_CONFIG_MAKEFILE(dlls/sechost)
  2744. WINE_CONFIG_MAKEFILE(dlls/secur32)
  2745. WINE_CONFIG_MAKEFILE(dlls/secur32/tests)
  2746. WINE_CONFIG_MAKEFILE(dlls/security)
  2747. WINE_CONFIG_MAKEFILE(dlls/sensapi)
  2748. WINE_CONFIG_MAKEFILE(dlls/serialui)
  2749. WINE_CONFIG_MAKEFILE(dlls/serialui/tests)
  2750. WINE_CONFIG_MAKEFILE(dlls/setupapi)
  2751. WINE_CONFIG_MAKEFILE(dlls/setupapi/tests)
  2752. WINE_CONFIG_MAKEFILE(dlls/setupx.dll16,enable_win16)
  2753. WINE_CONFIG_MAKEFILE(dlls/sfc)
  2754. WINE_CONFIG_MAKEFILE(dlls/sfc_os)
  2755. WINE_CONFIG_MAKEFILE(dlls/shcore)
  2756. WINE_CONFIG_MAKEFILE(dlls/shcore/tests)
  2757. WINE_CONFIG_MAKEFILE(dlls/shdoclc)
  2758. WINE_CONFIG_MAKEFILE(dlls/shdocvw)
  2759. WINE_CONFIG_MAKEFILE(dlls/shdocvw/tests)
  2760. WINE_CONFIG_MAKEFILE(dlls/shell.dll16,enable_win16)
  2761. WINE_CONFIG_MAKEFILE(dlls/shell32)
  2762. WINE_CONFIG_MAKEFILE(dlls/shell32/tests)
  2763. WINE_CONFIG_MAKEFILE(dlls/shfolder)
  2764. WINE_CONFIG_MAKEFILE(dlls/shlwapi)
  2765. WINE_CONFIG_MAKEFILE(dlls/shlwapi/tests)
  2766. WINE_CONFIG_MAKEFILE(dlls/slbcsp)
  2767. WINE_CONFIG_MAKEFILE(dlls/slc)
  2768. WINE_CONFIG_MAKEFILE(dlls/slc/tests)
  2769. WINE_CONFIG_MAKEFILE(dlls/snmpapi)
  2770. WINE_CONFIG_MAKEFILE(dlls/snmpapi/tests)
  2771. WINE_CONFIG_MAKEFILE(dlls/softpub)
  2772. WINE_CONFIG_MAKEFILE(dlls/sound.drv16,enable_win16)
  2773. WINE_CONFIG_MAKEFILE(dlls/spoolss)
  2774. WINE_CONFIG_MAKEFILE(dlls/spoolss/tests)
  2775. WINE_CONFIG_MAKEFILE(dlls/sppc)
  2776. WINE_CONFIG_MAKEFILE(dlls/srclient)
  2777. WINE_CONFIG_MAKEFILE(dlls/srvcli)
  2778. WINE_CONFIG_MAKEFILE(dlls/sspicli)
  2779. WINE_CONFIG_MAKEFILE(dlls/stdole2.tlb)
  2780. WINE_CONFIG_MAKEFILE(dlls/stdole32.tlb)
  2781. WINE_CONFIG_MAKEFILE(dlls/sti)
  2782. WINE_CONFIG_MAKEFILE(dlls/sti/tests)
  2783. WINE_CONFIG_MAKEFILE(dlls/storage.dll16,enable_win16)
  2784. WINE_CONFIG_MAKEFILE(dlls/stress.dll16,enable_win16)
  2785. WINE_CONFIG_MAKEFILE(dlls/strmdll)
  2786. WINE_CONFIG_MAKEFILE(dlls/svrapi)
  2787. WINE_CONFIG_MAKEFILE(dlls/sxs)
  2788. WINE_CONFIG_MAKEFILE(dlls/sxs/tests)
  2789. WINE_CONFIG_MAKEFILE(dlls/system.drv16,enable_win16)
  2790. WINE_CONFIG_MAKEFILE(dlls/t2embed)
  2791. WINE_CONFIG_MAKEFILE(dlls/t2embed/tests)
  2792. WINE_CONFIG_MAKEFILE(dlls/tapi32)
  2793. WINE_CONFIG_MAKEFILE(dlls/tapi32/tests)
  2794. WINE_CONFIG_MAKEFILE(dlls/taskschd)
  2795. WINE_CONFIG_MAKEFILE(dlls/taskschd/tests)
  2796. WINE_CONFIG_MAKEFILE(dlls/tbs)
  2797. WINE_CONFIG_MAKEFILE(dlls/tdh)
  2798. WINE_CONFIG_MAKEFILE(dlls/tdi.sys)
  2799. WINE_CONFIG_MAKEFILE(dlls/toolhelp.dll16,enable_win16)
  2800. WINE_CONFIG_MAKEFILE(dlls/traffic)
  2801. WINE_CONFIG_MAKEFILE(dlls/twain.dll16,enable_win16)
  2802. WINE_CONFIG_MAKEFILE(dlls/twain_32)
  2803. WINE_CONFIG_MAKEFILE(dlls/twain_32/tests)
  2804. WINE_CONFIG_MAKEFILE(dlls/typelib.dll16,enable_win16)
  2805. WINE_CONFIG_MAKEFILE(dlls/tzres)
  2806. WINE_CONFIG_MAKEFILE(dlls/ucrtbase)
  2807. WINE_CONFIG_MAKEFILE(dlls/ucrtbase/tests)
  2808. WINE_CONFIG_MAKEFILE(dlls/uianimation)
  2809. WINE_CONFIG_MAKEFILE(dlls/uianimation/tests)
  2810. WINE_CONFIG_MAKEFILE(dlls/uiautomationcore)
  2811. WINE_CONFIG_MAKEFILE(dlls/uiautomationcore/tests)
  2812. WINE_CONFIG_MAKEFILE(dlls/uiribbon)
  2813. WINE_CONFIG_MAKEFILE(dlls/unicows)
  2814. WINE_CONFIG_MAKEFILE(dlls/updspapi)
  2815. WINE_CONFIG_MAKEFILE(dlls/url)
  2816. WINE_CONFIG_MAKEFILE(dlls/urlmon)
  2817. WINE_CONFIG_MAKEFILE(dlls/urlmon/tests)
  2818. WINE_CONFIG_MAKEFILE(dlls/usbd.sys)
  2819. WINE_CONFIG_MAKEFILE(dlls/user.exe16,enable_win16)
  2820. WINE_CONFIG_MAKEFILE(dlls/user32)
  2821. WINE_CONFIG_MAKEFILE(dlls/user32/tests)
  2822. WINE_CONFIG_MAKEFILE(dlls/userenv)
  2823. WINE_CONFIG_MAKEFILE(dlls/userenv/tests)
  2824. WINE_CONFIG_MAKEFILE(dlls/usp10)
  2825. WINE_CONFIG_MAKEFILE(dlls/usp10/tests)
  2826. WINE_CONFIG_MAKEFILE(dlls/utildll)
  2827. WINE_CONFIG_MAKEFILE(dlls/uxtheme)
  2828. WINE_CONFIG_MAKEFILE(dlls/uxtheme/tests)
  2829. WINE_CONFIG_MAKEFILE(dlls/vbscript)
  2830. WINE_CONFIG_MAKEFILE(dlls/vbscript/tests)
  2831. WINE_CONFIG_MAKEFILE(dlls/vcomp)
  2832. WINE_CONFIG_MAKEFILE(dlls/vcomp/tests)
  2833. WINE_CONFIG_MAKEFILE(dlls/vcomp100)
  2834. WINE_CONFIG_MAKEFILE(dlls/vcomp110)
  2835. WINE_CONFIG_MAKEFILE(dlls/vcomp110/tests)
  2836. WINE_CONFIG_MAKEFILE(dlls/vcomp120)
  2837. WINE_CONFIG_MAKEFILE(dlls/vcomp140)
  2838. WINE_CONFIG_MAKEFILE(dlls/vcomp90)
  2839. WINE_CONFIG_MAKEFILE(dlls/vcruntime140)
  2840. WINE_CONFIG_MAKEFILE(dlls/vcruntime140_1)
  2841. WINE_CONFIG_MAKEFILE(dlls/vdhcp.vxd,enable_win16)
  2842. WINE_CONFIG_MAKEFILE(dlls/vdmdbg)
  2843. WINE_CONFIG_MAKEFILE(dlls/ver.dll16,enable_win16)
  2844. WINE_CONFIG_MAKEFILE(dlls/version)
  2845. WINE_CONFIG_MAKEFILE(dlls/version/tests)
  2846. WINE_CONFIG_MAKEFILE(dlls/vga)
  2847. WINE_CONFIG_MAKEFILE(dlls/virtdisk)
  2848. WINE_CONFIG_MAKEFILE(dlls/virtdisk/tests)
  2849. WINE_CONFIG_MAKEFILE(dlls/vmm.vxd,enable_win16)
  2850. WINE_CONFIG_MAKEFILE(dlls/vnbt.vxd,enable_win16)
  2851. WINE_CONFIG_MAKEFILE(dlls/vnetbios.vxd,enable_win16)
  2852. WINE_CONFIG_MAKEFILE(dlls/vssapi)
  2853. WINE_CONFIG_MAKEFILE(dlls/vtdapi.vxd,enable_win16)
  2854. WINE_CONFIG_MAKEFILE(dlls/vulkan-1)
  2855. WINE_CONFIG_MAKEFILE(dlls/vulkan-1/tests)
  2856. WINE_CONFIG_MAKEFILE(dlls/vwin32.vxd,enable_win16)
  2857. WINE_CONFIG_MAKEFILE(dlls/w32skrnl,enable_win16)
  2858. WINE_CONFIG_MAKEFILE(dlls/w32sys.dll16,enable_win16)
  2859. WINE_CONFIG_MAKEFILE(dlls/wbemdisp)
  2860. WINE_CONFIG_MAKEFILE(dlls/wbemdisp/tests)
  2861. WINE_CONFIG_MAKEFILE(dlls/wbemprox)
  2862. WINE_CONFIG_MAKEFILE(dlls/wbemprox/tests)
  2863. WINE_CONFIG_MAKEFILE(dlls/wdscore)
  2864. WINE_CONFIG_MAKEFILE(dlls/webservices)
  2865. WINE_CONFIG_MAKEFILE(dlls/webservices/tests)
  2866. WINE_CONFIG_MAKEFILE(dlls/websocket)
  2867. WINE_CONFIG_MAKEFILE(dlls/wer)
  2868. WINE_CONFIG_MAKEFILE(dlls/wer/tests)
  2869. WINE_CONFIG_MAKEFILE(dlls/wevtapi)
  2870. WINE_CONFIG_MAKEFILE(dlls/wevtapi/tests)
  2871. WINE_CONFIG_MAKEFILE(dlls/wevtsvc)
  2872. WINE_CONFIG_MAKEFILE(dlls/wiaservc)
  2873. WINE_CONFIG_MAKEFILE(dlls/wiaservc/tests)
  2874. WINE_CONFIG_MAKEFILE(dlls/wimgapi)
  2875. WINE_CONFIG_MAKEFILE(dlls/win32s16.dll16,enable_win16)
  2876. WINE_CONFIG_MAKEFILE(dlls/win32u)
  2877. WINE_CONFIG_MAKEFILE(dlls/win32u/tests)
  2878. WINE_CONFIG_MAKEFILE(dlls/win87em.dll16,enable_win16)
  2879. WINE_CONFIG_MAKEFILE(dlls/winaspi.dll16,enable_win16)
  2880. WINE_CONFIG_MAKEFILE(dlls/windebug.dll16,enable_win16)
  2881. WINE_CONFIG_MAKEFILE(dlls/windows.devices.enumeration)
  2882. WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input)
  2883. WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input/tests)
  2884. WINE_CONFIG_MAKEFILE(dlls/windows.globalization)
  2885. WINE_CONFIG_MAKEFILE(dlls/windows.globalization/tests)
  2886. WINE_CONFIG_MAKEFILE(dlls/windows.media.devices)
  2887. WINE_CONFIG_MAKEFILE(dlls/windows.media.devices/tests)
  2888. WINE_CONFIG_MAKEFILE(dlls/windows.media.speech)
  2889. WINE_CONFIG_MAKEFILE(dlls/windows.media.speech/tests)
  2890. WINE_CONFIG_MAKEFILE(dlls/windowscodecs)
  2891. WINE_CONFIG_MAKEFILE(dlls/windowscodecs/tests)
  2892. WINE_CONFIG_MAKEFILE(dlls/windowscodecsext)
  2893. WINE_CONFIG_MAKEFILE(dlls/windowscodecsext/tests)
  2894. WINE_CONFIG_MAKEFILE(dlls/winealsa.drv)
  2895. WINE_CONFIG_MAKEFILE(dlls/wineandroid.drv)
  2896. WINE_CONFIG_MAKEFILE(dlls/winebus.sys)
  2897. WINE_CONFIG_MAKEFILE(dlls/winecoreaudio.drv)
  2898. WINE_CONFIG_MAKEFILE(dlls/winecrt0)
  2899. WINE_CONFIG_MAKEFILE(dlls/wined3d)
  2900. WINE_CONFIG_MAKEFILE(dlls/winegstreamer)
  2901. WINE_CONFIG_MAKEFILE(dlls/winehid.sys)
  2902. WINE_CONFIG_MAKEFILE(dlls/winemac.drv)
  2903. WINE_CONFIG_MAKEFILE(dlls/winemapi)
  2904. WINE_CONFIG_MAKEFILE(dlls/wineoss.drv)
  2905. WINE_CONFIG_MAKEFILE(dlls/wineps.drv)
  2906. WINE_CONFIG_MAKEFILE(dlls/wineps16.drv16,enable_win16)
  2907. WINE_CONFIG_MAKEFILE(dlls/winepulse.drv)
  2908. WINE_CONFIG_MAKEFILE(dlls/wineusb.sys)
  2909. WINE_CONFIG_MAKEFILE(dlls/winevulkan)
  2910. WINE_CONFIG_MAKEFILE(dlls/winex11.drv)
  2911. WINE_CONFIG_MAKEFILE(dlls/winexinput.sys)
  2912. WINE_CONFIG_MAKEFILE(dlls/wing.dll16,enable_win16)
  2913. WINE_CONFIG_MAKEFILE(dlls/wing32)
  2914. WINE_CONFIG_MAKEFILE(dlls/winhttp)
  2915. WINE_CONFIG_MAKEFILE(dlls/winhttp/tests)
  2916. WINE_CONFIG_MAKEFILE(dlls/wininet)
  2917. WINE_CONFIG_MAKEFILE(dlls/wininet/tests)
  2918. WINE_CONFIG_MAKEFILE(dlls/winmm)
  2919. WINE_CONFIG_MAKEFILE(dlls/winmm/tests)
  2920. WINE_CONFIG_MAKEFILE(dlls/winnls.dll16,enable_win16)
  2921. WINE_CONFIG_MAKEFILE(dlls/winnls32)
  2922. WINE_CONFIG_MAKEFILE(dlls/winscard)
  2923. WINE_CONFIG_MAKEFILE(dlls/winsock.dll16,enable_win16)
  2924. WINE_CONFIG_MAKEFILE(dlls/winspool.drv)
  2925. WINE_CONFIG_MAKEFILE(dlls/winspool.drv/tests)
  2926. WINE_CONFIG_MAKEFILE(dlls/winsta)
  2927. WINE_CONFIG_MAKEFILE(dlls/wintab.dll16,enable_win16)
  2928. WINE_CONFIG_MAKEFILE(dlls/wintab32)
  2929. WINE_CONFIG_MAKEFILE(dlls/wintab32/tests)
  2930. WINE_CONFIG_MAKEFILE(dlls/wintrust)
  2931. WINE_CONFIG_MAKEFILE(dlls/wintrust/tests)
  2932. WINE_CONFIG_MAKEFILE(dlls/winusb)
  2933. WINE_CONFIG_MAKEFILE(dlls/wlanapi)
  2934. WINE_CONFIG_MAKEFILE(dlls/wlanapi/tests)
  2935. WINE_CONFIG_MAKEFILE(dlls/wlanui)
  2936. WINE_CONFIG_MAKEFILE(dlls/wldap32)
  2937. WINE_CONFIG_MAKEFILE(dlls/wldap32/tests)
  2938. WINE_CONFIG_MAKEFILE(dlls/wmadmod)
  2939. WINE_CONFIG_MAKEFILE(dlls/wmadmod/tests)
  2940. WINE_CONFIG_MAKEFILE(dlls/wmasf)
  2941. WINE_CONFIG_MAKEFILE(dlls/wmi)
  2942. WINE_CONFIG_MAKEFILE(dlls/wmiutils)
  2943. WINE_CONFIG_MAKEFILE(dlls/wmiutils/tests)
  2944. WINE_CONFIG_MAKEFILE(dlls/wmp)
  2945. WINE_CONFIG_MAKEFILE(dlls/wmp/tests)
  2946. WINE_CONFIG_MAKEFILE(dlls/wmphoto)
  2947. WINE_CONFIG_MAKEFILE(dlls/wmvcore)
  2948. WINE_CONFIG_MAKEFILE(dlls/wmvcore/tests)
  2949. WINE_CONFIG_MAKEFILE(dlls/wnaspi32)
  2950. WINE_CONFIG_MAKEFILE(dlls/wow32,enable_win16)
  2951. WINE_CONFIG_MAKEFILE(dlls/wow64)
  2952. WINE_CONFIG_MAKEFILE(dlls/wow64cpu)
  2953. WINE_CONFIG_MAKEFILE(dlls/wow64win)
  2954. WINE_CONFIG_MAKEFILE(dlls/wpc)
  2955. WINE_CONFIG_MAKEFILE(dlls/wpc/tests)
  2956. WINE_CONFIG_MAKEFILE(dlls/wpcap)
  2957. WINE_CONFIG_MAKEFILE(dlls/ws2_32)
  2958. WINE_CONFIG_MAKEFILE(dlls/ws2_32/tests)
  2959. WINE_CONFIG_MAKEFILE(dlls/wsdapi)
  2960. WINE_CONFIG_MAKEFILE(dlls/wsdapi/tests)
  2961. WINE_CONFIG_MAKEFILE(dlls/wshom.ocx)
  2962. WINE_CONFIG_MAKEFILE(dlls/wshom.ocx/tests)
  2963. WINE_CONFIG_MAKEFILE(dlls/wsnmp32)
  2964. WINE_CONFIG_MAKEFILE(dlls/wsnmp32/tests)
  2965. WINE_CONFIG_MAKEFILE(dlls/wsock32)
  2966. WINE_CONFIG_MAKEFILE(dlls/wtsapi32)
  2967. WINE_CONFIG_MAKEFILE(dlls/wtsapi32/tests)
  2968. WINE_CONFIG_MAKEFILE(dlls/wuapi)
  2969. WINE_CONFIG_MAKEFILE(dlls/wuaueng)
  2970. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_0)
  2971. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_1)
  2972. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_2)
  2973. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_3)
  2974. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_4)
  2975. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_5)
  2976. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_6)
  2977. WINE_CONFIG_MAKEFILE(dlls/x3daudio1_7)
  2978. WINE_CONFIG_MAKEFILE(dlls/xactengine2_0)
  2979. WINE_CONFIG_MAKEFILE(dlls/xactengine2_4)
  2980. WINE_CONFIG_MAKEFILE(dlls/xactengine2_7)
  2981. WINE_CONFIG_MAKEFILE(dlls/xactengine2_9)
  2982. WINE_CONFIG_MAKEFILE(dlls/xactengine3_0)
  2983. WINE_CONFIG_MAKEFILE(dlls/xactengine3_1)
  2984. WINE_CONFIG_MAKEFILE(dlls/xactengine3_2)
  2985. WINE_CONFIG_MAKEFILE(dlls/xactengine3_3)
  2986. WINE_CONFIG_MAKEFILE(dlls/xactengine3_4)
  2987. WINE_CONFIG_MAKEFILE(dlls/xactengine3_5)
  2988. WINE_CONFIG_MAKEFILE(dlls/xactengine3_6)
  2989. WINE_CONFIG_MAKEFILE(dlls/xactengine3_7)
  2990. WINE_CONFIG_MAKEFILE(dlls/xactengine3_7/tests)
  2991. WINE_CONFIG_MAKEFILE(dlls/xapofx1_1)
  2992. WINE_CONFIG_MAKEFILE(dlls/xapofx1_2)
  2993. WINE_CONFIG_MAKEFILE(dlls/xapofx1_3)
  2994. WINE_CONFIG_MAKEFILE(dlls/xapofx1_4)
  2995. WINE_CONFIG_MAKEFILE(dlls/xapofx1_5)
  2996. WINE_CONFIG_MAKEFILE(dlls/xaudio2_0)
  2997. WINE_CONFIG_MAKEFILE(dlls/xaudio2_1)
  2998. WINE_CONFIG_MAKEFILE(dlls/xaudio2_2)
  2999. WINE_CONFIG_MAKEFILE(dlls/xaudio2_3)
  3000. WINE_CONFIG_MAKEFILE(dlls/xaudio2_4)
  3001. WINE_CONFIG_MAKEFILE(dlls/xaudio2_5)
  3002. WINE_CONFIG_MAKEFILE(dlls/xaudio2_6)
  3003. WINE_CONFIG_MAKEFILE(dlls/xaudio2_7)
  3004. WINE_CONFIG_MAKEFILE(dlls/xaudio2_7/tests)
  3005. WINE_CONFIG_MAKEFILE(dlls/xaudio2_8)
  3006. WINE_CONFIG_MAKEFILE(dlls/xaudio2_9)
  3007. WINE_CONFIG_MAKEFILE(dlls/xinput1_1)
  3008. WINE_CONFIG_MAKEFILE(dlls/xinput1_2)
  3009. WINE_CONFIG_MAKEFILE(dlls/xinput1_3)
  3010. WINE_CONFIG_MAKEFILE(dlls/xinput1_3/tests)
  3011. WINE_CONFIG_MAKEFILE(dlls/xinput1_4)
  3012. WINE_CONFIG_MAKEFILE(dlls/xinput9_1_0)
  3013. WINE_CONFIG_MAKEFILE(dlls/xmllite)
  3014. WINE_CONFIG_MAKEFILE(dlls/xmllite/tests)
  3015. WINE_CONFIG_MAKEFILE(dlls/xolehlp)
  3016. WINE_CONFIG_MAKEFILE(dlls/xpsprint)
  3017. WINE_CONFIG_MAKEFILE(dlls/xpssvcs)
  3018. WINE_CONFIG_MAKEFILE(fonts)
  3019. WINE_CONFIG_MAKEFILE(include)
  3020. WINE_CONFIG_MAKEFILE(libs/adsiid)
  3021. WINE_CONFIG_MAKEFILE(libs/dmoguids)
  3022. WINE_CONFIG_MAKEFILE(libs/dxerr8)
  3023. WINE_CONFIG_MAKEFILE(libs/dxerr9)
  3024. WINE_CONFIG_MAKEFILE(libs/dxguid)
  3025. WINE_CONFIG_MAKEFILE(libs/faudio)
  3026. WINE_CONFIG_MAKEFILE(libs/gsm)
  3027. WINE_CONFIG_MAKEFILE(libs/jpeg)
  3028. WINE_CONFIG_MAKEFILE(libs/jxr)
  3029. WINE_CONFIG_MAKEFILE(libs/lcms2)
  3030. WINE_CONFIG_MAKEFILE(libs/mfuuid)
  3031. WINE_CONFIG_MAKEFILE(libs/mpg123)
  3032. WINE_CONFIG_MAKEFILE(libs/png)
  3033. WINE_CONFIG_MAKEFILE(libs/strmbase)
  3034. WINE_CONFIG_MAKEFILE(libs/strmiids)
  3035. WINE_CONFIG_MAKEFILE(libs/tiff)
  3036. WINE_CONFIG_MAKEFILE(libs/uuid)
  3037. WINE_CONFIG_MAKEFILE(libs/vkd3d)
  3038. WINE_CONFIG_MAKEFILE(libs/wbemuuid)
  3039. WINE_CONFIG_MAKEFILE(libs/wine)
  3040. WINE_CONFIG_MAKEFILE(libs/wmcodecdspuuid)
  3041. WINE_CONFIG_MAKEFILE(libs/xml2)
  3042. WINE_CONFIG_MAKEFILE(libs/xslt)
  3043. WINE_CONFIG_MAKEFILE(libs/zlib)
  3044. WINE_CONFIG_MAKEFILE(loader)
  3045. WINE_CONFIG_MAKEFILE(nls)
  3046. WINE_CONFIG_MAKEFILE(po)
  3047. WINE_CONFIG_MAKEFILE(programs/arp)
  3048. WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
  3049. WINE_CONFIG_MAKEFILE(programs/attrib)
  3050. WINE_CONFIG_MAKEFILE(programs/cabarc)
  3051. WINE_CONFIG_MAKEFILE(programs/cacls)
  3052. WINE_CONFIG_MAKEFILE(programs/chcp.com)
  3053. WINE_CONFIG_MAKEFILE(programs/clock)
  3054. WINE_CONFIG_MAKEFILE(programs/cmd)
  3055. WINE_CONFIG_MAKEFILE(programs/cmd/tests)
  3056. WINE_CONFIG_MAKEFILE(programs/conhost)
  3057. WINE_CONFIG_MAKEFILE(programs/conhost/tests)
  3058. WINE_CONFIG_MAKEFILE(programs/control)
  3059. WINE_CONFIG_MAKEFILE(programs/cscript)
  3060. WINE_CONFIG_MAKEFILE(programs/dism)
  3061. WINE_CONFIG_MAKEFILE(programs/dllhost)
  3062. WINE_CONFIG_MAKEFILE(programs/dplaysvr)
  3063. WINE_CONFIG_MAKEFILE(programs/dpnsvr)
  3064. WINE_CONFIG_MAKEFILE(programs/dpvsetup)
  3065. WINE_CONFIG_MAKEFILE(programs/dxdiag)
  3066. WINE_CONFIG_MAKEFILE(programs/eject)
  3067. WINE_CONFIG_MAKEFILE(programs/expand)
  3068. WINE_CONFIG_MAKEFILE(programs/explorer)
  3069. WINE_CONFIG_MAKEFILE(programs/extrac32)
  3070. WINE_CONFIG_MAKEFILE(programs/fc)
  3071. WINE_CONFIG_MAKEFILE(programs/find)
  3072. WINE_CONFIG_MAKEFILE(programs/find/tests)
  3073. WINE_CONFIG_MAKEFILE(programs/findstr)
  3074. WINE_CONFIG_MAKEFILE(programs/fsutil)
  3075. WINE_CONFIG_MAKEFILE(programs/fsutil/tests)
  3076. WINE_CONFIG_MAKEFILE(programs/hh)
  3077. WINE_CONFIG_MAKEFILE(programs/hostname)
  3078. WINE_CONFIG_MAKEFILE(programs/icacls)
  3079. WINE_CONFIG_MAKEFILE(programs/icinfo)
  3080. WINE_CONFIG_MAKEFILE(programs/iexplore)
  3081. WINE_CONFIG_MAKEFILE(programs/ipconfig)
  3082. WINE_CONFIG_MAKEFILE(programs/lodctr)
  3083. WINE_CONFIG_MAKEFILE(programs/mofcomp)
  3084. WINE_CONFIG_MAKEFILE(programs/mshta)
  3085. WINE_CONFIG_MAKEFILE(programs/msidb)
  3086. WINE_CONFIG_MAKEFILE(programs/msiexec)
  3087. WINE_CONFIG_MAKEFILE(programs/msinfo32)
  3088. WINE_CONFIG_MAKEFILE(programs/net)
  3089. WINE_CONFIG_MAKEFILE(programs/netsh)
  3090. WINE_CONFIG_MAKEFILE(programs/netstat)
  3091. WINE_CONFIG_MAKEFILE(programs/ngen)
  3092. WINE_CONFIG_MAKEFILE(programs/notepad)
  3093. WINE_CONFIG_MAKEFILE(programs/oleview)
  3094. WINE_CONFIG_MAKEFILE(programs/ping)
  3095. WINE_CONFIG_MAKEFILE(programs/plugplay)
  3096. WINE_CONFIG_MAKEFILE(programs/powershell)
  3097. WINE_CONFIG_MAKEFILE(programs/presentationfontcache)
  3098. WINE_CONFIG_MAKEFILE(programs/progman)
  3099. WINE_CONFIG_MAKEFILE(programs/reg)
  3100. WINE_CONFIG_MAKEFILE(programs/reg/tests)
  3101. WINE_CONFIG_MAKEFILE(programs/regasm)
  3102. WINE_CONFIG_MAKEFILE(programs/regedit)
  3103. WINE_CONFIG_MAKEFILE(programs/regedit/tests)
  3104. WINE_CONFIG_MAKEFILE(programs/regini)
  3105. WINE_CONFIG_MAKEFILE(programs/regsvcs)
  3106. WINE_CONFIG_MAKEFILE(programs/regsvr32)
  3107. WINE_CONFIG_MAKEFILE(programs/robocopy)
  3108. WINE_CONFIG_MAKEFILE(programs/rpcss)
  3109. WINE_CONFIG_MAKEFILE(programs/rundll.exe16,enable_win16)
  3110. WINE_CONFIG_MAKEFILE(programs/rundll32)
  3111. WINE_CONFIG_MAKEFILE(programs/sc)
  3112. WINE_CONFIG_MAKEFILE(programs/schtasks)
  3113. WINE_CONFIG_MAKEFILE(programs/schtasks/tests)
  3114. WINE_CONFIG_MAKEFILE(programs/sdbinst)
  3115. WINE_CONFIG_MAKEFILE(programs/secedit)
  3116. WINE_CONFIG_MAKEFILE(programs/servicemodelreg)
  3117. WINE_CONFIG_MAKEFILE(programs/services)
  3118. WINE_CONFIG_MAKEFILE(programs/services/tests)
  3119. WINE_CONFIG_MAKEFILE(programs/shutdown)
  3120. WINE_CONFIG_MAKEFILE(programs/spoolsv)
  3121. WINE_CONFIG_MAKEFILE(programs/start)
  3122. WINE_CONFIG_MAKEFILE(programs/subst)
  3123. WINE_CONFIG_MAKEFILE(programs/svchost)
  3124. WINE_CONFIG_MAKEFILE(programs/systeminfo)
  3125. WINE_CONFIG_MAKEFILE(programs/taskkill)
  3126. WINE_CONFIG_MAKEFILE(programs/tasklist)
  3127. WINE_CONFIG_MAKEFILE(programs/taskmgr)
  3128. WINE_CONFIG_MAKEFILE(programs/termsv)
  3129. WINE_CONFIG_MAKEFILE(programs/uninstaller)
  3130. WINE_CONFIG_MAKEFILE(programs/unlodctr)
  3131. WINE_CONFIG_MAKEFILE(programs/view)
  3132. WINE_CONFIG_MAKEFILE(programs/wevtutil)
  3133. WINE_CONFIG_MAKEFILE(programs/where)
  3134. WINE_CONFIG_MAKEFILE(programs/whoami)
  3135. WINE_CONFIG_MAKEFILE(programs/wineboot)
  3136. WINE_CONFIG_MAKEFILE(programs/winebrowser)
  3137. WINE_CONFIG_MAKEFILE(programs/winecfg)
  3138. WINE_CONFIG_MAKEFILE(programs/wineconsole)
  3139. WINE_CONFIG_MAKEFILE(programs/winedbg)
  3140. WINE_CONFIG_MAKEFILE(programs/winedevice)
  3141. WINE_CONFIG_MAKEFILE(programs/winefile)
  3142. WINE_CONFIG_MAKEFILE(programs/winemenubuilder)
  3143. WINE_CONFIG_MAKEFILE(programs/winemine)
  3144. WINE_CONFIG_MAKEFILE(programs/winemsibuilder)
  3145. WINE_CONFIG_MAKEFILE(programs/winepath)
  3146. WINE_CONFIG_MAKEFILE(programs/winetest)
  3147. WINE_CONFIG_MAKEFILE(programs/winevdm,enable_win16)
  3148. WINE_CONFIG_MAKEFILE(programs/winhelp.exe16,enable_win16)
  3149. WINE_CONFIG_MAKEFILE(programs/winhlp32)
  3150. WINE_CONFIG_MAKEFILE(programs/winmgmt)
  3151. WINE_CONFIG_MAKEFILE(programs/winoldap.mod16,enable_win16)
  3152. WINE_CONFIG_MAKEFILE(programs/winver)
  3153. WINE_CONFIG_MAKEFILE(programs/wmic)
  3154. WINE_CONFIG_MAKEFILE(programs/wmplayer)
  3155. WINE_CONFIG_MAKEFILE(programs/wordpad)
  3156. WINE_CONFIG_MAKEFILE(programs/write)
  3157. WINE_CONFIG_MAKEFILE(programs/wscript)
  3158. WINE_CONFIG_MAKEFILE(programs/wscript/tests)
  3159. WINE_CONFIG_MAKEFILE(programs/wuauserv)
  3160. WINE_CONFIG_MAKEFILE(programs/wusa)
  3161. WINE_CONFIG_MAKEFILE(programs/xcopy)
  3162. WINE_CONFIG_MAKEFILE(programs/xcopy/tests)
  3163. WINE_CONFIG_MAKEFILE(server)
  3164. WINE_CONFIG_MAKEFILE(tools,,[test "x$enable_tools" = xno])
  3165. WINE_CONFIG_MAKEFILE(tools/sfnt2fon,,[test "x$enable_tools" = xno])
  3166. WINE_CONFIG_MAKEFILE(tools/widl,,[test "x$enable_tools" = xno])
  3167. WINE_CONFIG_MAKEFILE(tools/winebuild,,[test "x$enable_tools" = xno])
  3168. WINE_CONFIG_MAKEFILE(tools/winedump,,[test "x$enable_tools" = xno])
  3169. WINE_CONFIG_MAKEFILE(tools/winegcc,,[test "x$enable_tools" = xno])
  3170. WINE_CONFIG_MAKEFILE(tools/winemaker,,[test "x$enable_tools" = xno])
  3171. WINE_CONFIG_MAKEFILE(tools/wmc,,[test "x$enable_tools" = xno])
  3172. WINE_CONFIG_MAKEFILE(tools/wrc,,[test "x$enable_tools" = xno])
  3173. dnl End of auto-generated output commands
  3174. dnl Main ignore file
  3175. WINE_IGNORE_FILE("TAGS")
  3176. WINE_IGNORE_FILE("tags")
  3177. WINE_IGNORE_FILE("autom4te.cache")
  3178. WINE_IGNORE_FILE("config.log")
  3179. WINE_IGNORE_FILE("config.status")
  3180. WINE_IGNORE_FILE("include/config.h")
  3181. WINE_IGNORE_FILE("include/stamp-h")
  3182. test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine")
  3183. if test "x$enable_tools" != xno
  3184. then
  3185. WINE_IGNORE_FILE("tools/makedep$ac_exeext")
  3186. AC_CONFIG_COMMANDS([tools/makedep],[wine_fn_output_makedep || AS_EXIT],
  3187. [wine_fn_output_makedep ()
  3188. {
  3189. AS_MKDIR_P(tools)
  3190. $CC -I${wine_srcdir}tools -Iinclude -I${wine_srcdir}include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext ${wine_srcdir}tools/makedep.c $LDFLAGS
  3191. }])
  3192. fi
  3193. AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
  3194. [wine_fn_output_makefile ()
  3195. {
  3196. cat <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && "$wine_makedep"$makedep_flags && return
  3197. # This Makefile understands the following targets:
  3198. #
  3199. # all (default): build wine
  3200. # clean: remove all intermediate files
  3201. # distclean: also remove all files created by configure
  3202. # test: run tests
  3203. # testclean: clean test results to force running all tests again
  3204. # install-lib: install libraries needed to run applications
  3205. # install-dev: install development environment
  3206. # install: install everything
  3207. # uninstall: uninstall everything
  3208. # ctags: create a tags file for vim and others.
  3209. # etags: create a TAGS file for Emacs.
  3210. m4_set_foreach([_AC_SUBST_VARS],[var],[var = $var
  3211. ])$SET_MAKE
  3212. $wine_rules
  3213. _WINE_EOF
  3214. AS_ERROR([could not create Makefile])
  3215. }])
  3216. dnl Main makefile
  3217. AC_SUBST(SHELL,[/bin/sh])
  3218. WINE_APPEND_RULE(
  3219. [all: wine
  3220. @echo \"Wine build complete.\"
  3221. .INIT: Makefile
  3222. .MAKEFILEDEPS:
  3223. all: Makefile
  3224. Makefile: config.status \$(MAKEDEP)
  3225. @./config.status Makefile
  3226. depend: \$(MAKEDEP)
  3227. \$(MAKEDEP)$makedep_flags])
  3228. dnl Rules for re-running configure
  3229. WINE_APPEND_RULE(
  3230. [config.status: ${wine_srcdir}configure
  3231. @./config.status --recheck
  3232. include/config.h: include/stamp-h
  3233. include/stamp-h: ${wine_srcdir}include/config.h.in config.status
  3234. @./config.status include/config.h include/stamp-h])
  3235. if test "x$enable_maintainer_mode" = xyes
  3236. then
  3237. WINE_APPEND_RULE(
  3238. [configure: configure.ac aclocal.m4
  3239. autoconf --warnings=all
  3240. include/config.h.in: include/stamp-h.in
  3241. include/stamp-h.in: configure.ac aclocal.m4
  3242. autoheader --warnings=all
  3243. @echo timestamp > \$[@]])
  3244. fi
  3245. if test "x$enable_tools" != xno
  3246. then
  3247. WINE_APPEND_RULE(
  3248. [tools/makedep$ac_exeext: ${wine_srcdir}tools/makedep.c include/config.h config.status
  3249. @./config.status tools/makedep
  3250. Makefile: tools/makedep$ac_exeext])
  3251. else
  3252. WINE_APPEND_RULE(
  3253. [\$(MAKEDEP):
  3254. @echo \"You need to run make in $toolsdir first\" && false])
  3255. fi
  3256. dnl Rules for wineloader
  3257. if test -n "$with_wine64"
  3258. then
  3259. case "$with_wine64" in
  3260. /*) reldir="" ;;
  3261. *) reldir="../" ;;
  3262. esac
  3263. dnl Get rid of old symlinks
  3264. rm -f fonts server 2>/dev/null
  3265. WINE_APPEND_RULE(
  3266. [all: loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader
  3267. loader/wine64 loader/wine64-preloader:
  3268. rm -f \$[@] && \$(LN_S) $reldir$with_wine64/\$[@] \$[@]
  3269. $with_wine64/loader/wine:
  3270. rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@]
  3271. $with_wine64/loader/wine-preloader:
  3272. rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@]
  3273. clean::
  3274. rm -f loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader])
  3275. else
  3276. TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
  3277. TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
  3278. fonts \
  3279. loader/wine.inf \
  3280. nls \
  3281. programs/msidb/msidb \
  3282. programs/msiexec/msiexec \
  3283. programs/notepad/notepad \
  3284. programs/regedit/regedit \
  3285. programs/regsvr32/regsvr32 \
  3286. programs/wineboot/wineboot \
  3287. programs/winecfg/winecfg \
  3288. programs/wineconsole/wineconsole \
  3289. programs/winedbg/winedbg \
  3290. programs/winefile/winefile \
  3291. programs/winemine/winemine \
  3292. programs/winepath/winepath \
  3293. server/wineserver"
  3294. case $host_os in
  3295. cygwin*|mingw32*|darwin*|macosx*|linux-android*) ;;
  3296. *) TOP_INSTALL_LIB="$TOP_INSTALL_LIB loader/wine.desktop" ;;
  3297. esac
  3298. fi
  3299. dnl Rules for cleaning
  3300. WINE_APPEND_RULE(
  3301. [distclean:: clean
  3302. rm -rf autom4te.cache
  3303. maintainer-clean::
  3304. rm -f configure include/config.h.in])
  3305. dnl Rules for generated source files
  3306. WINE_APPEND_RULE(
  3307. [dlls/ntdll/unix/version.c: dummy
  3308. @version=\`(GIT_DIR=${wine_srcdir}.git git describe HEAD 2>/dev/null || echo \"wine-\$(PACKAGE_VERSION)\") | sed -n -e '\$\$s/\(.*\)/const char wine_build[[]] = \"\\1\";/p'\` && (echo \$\$version | cmp -s - \$[@]) || echo \$\$version >\$[@] || (rm -f \$[@] && exit 1)
  3309. programs/winetest/build.rc: dummy
  3310. @build=\"STRINGTABLE { 1 \\\"\`GIT_DIR=${wine_srcdir}.git git rev-parse HEAD 2>/dev/null\`\\\" }\" && (echo \$\$build | cmp -s - \$[@]) || echo \$\$build >\$[@] || (rm -f \$[@] && exit 1)
  3311. programs/winetest/build.nfo:
  3312. @-\$(CC) -v 2>\$[@]
  3313. dlls/wineandroid.drv/wine-debug.apk: dlls/wineandroid.drv/build.gradle ${wine_srcdir}dlls/wineandroid.drv/AndroidManifest.xml ${wine_srcdir}dlls/wineandroid.drv/WineActivity.java ${wine_srcdir}dlls/wineandroid.drv/wine.svg
  3314. cd dlls/wineandroid.drv && gradle -q -Psrcdir=$srcdir assembleDebug
  3315. mv dlls/wineandroid.drv/build/outputs/apk/wine-debug.apk \$[@]])
  3316. dnl Misc rules
  3317. AC_SUBST(TAGSFLAGS,["--langmap='c:+.idl.l.rh,make:(Make*.in)'"])
  3318. WINE_APPEND_RULE(
  3319. [TAGS etags:
  3320. rm -f TAGS
  3321. (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs etags -a \$(TAGSFLAGS)
  3322. tags ctags:
  3323. rm -f tags
  3324. (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs ctags -a \$(TAGSFLAGS)
  3325. dummy:
  3326. .PHONY: depend dummy install-manpages])
  3327. AS_ECHO(" done") >&AS_MESSAGE_FD
  3328. AC_OUTPUT
  3329. if test "$no_create" = "yes"
  3330. then
  3331. exit 0
  3332. fi
  3333. WINE_PRINT_MESSAGES
  3334. AS_ECHO("
  3335. $as_me: Finished. Do '${ac_make}' to compile Wine.
  3336. ") >&AS_MESSAGE_FD
  3337. dnl Local Variables:
  3338. dnl comment-start: "dnl "
  3339. dnl comment-end: ""
  3340. dnl comment-start-skip: "\\bdnl\\b\\s *"
  3341. dnl compile-command: "autoreconf --warnings=all"
  3342. dnl End: