configure 277 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176
  1. #! /bin/sh
  2. # Make sure config.{sub,guess} exist
  3. # ** These lines generated by fltk website's snapshot.php ***
  4. #
  5. for file in config.sub config.guess; do
  6. if [ ! -e $file ]; then
  7. echo "configure: $file doesn't exist. Run 'make clean' first" 1>&2
  8. exit 1
  9. fi
  10. done
  11. # Guess values for system-dependent variables and create Makefiles.
  12. # Generated by GNU Autoconf 2.69.
  13. #
  14. #
  15. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  16. #
  17. #
  18. # This configure script is free software; the Free Software Foundation
  19. # gives unlimited permission to copy, distribute and modify it.
  20. ## -------------------- ##
  21. ## M4sh Initialization. ##
  22. ## -------------------- ##
  23. # Be more Bourne compatible
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26. emulate sh
  27. NULLCMD=:
  28. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29. # is contrary to our usage. Disable this feature.
  30. alias -g '${1+"$@"}'='"$@"'
  31. setopt NO_GLOB_SUBST
  32. else
  33. case `(set -o) 2>/dev/null` in #(
  34. *posix*) :
  35. set -o posix ;; #(
  36. *) :
  37. ;;
  38. esac
  39. fi
  40. as_nl='
  41. '
  42. export as_nl
  43. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  44. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  45. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  46. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  47. # Prefer a ksh shell builtin over an external printf program on Solaris,
  48. # but without wasting forks for bash or zsh.
  49. if test -z "$BASH_VERSION$ZSH_VERSION" \
  50. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  51. as_echo='print -r --'
  52. as_echo_n='print -rn --'
  53. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  54. as_echo='printf %s\n'
  55. as_echo_n='printf %s'
  56. else
  57. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  58. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  59. as_echo_n='/usr/ucb/echo -n'
  60. else
  61. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  62. as_echo_n_body='eval
  63. arg=$1;
  64. case $arg in #(
  65. *"$as_nl"*)
  66. expr "X$arg" : "X\\(.*\\)$as_nl";
  67. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  68. esac;
  69. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  70. '
  71. export as_echo_n_body
  72. as_echo_n='sh -c $as_echo_n_body as_echo'
  73. fi
  74. export as_echo_body
  75. as_echo='sh -c $as_echo_body as_echo'
  76. fi
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. PATH_SEPARATOR=:
  80. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  81. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  82. PATH_SEPARATOR=';'
  83. }
  84. fi
  85. # IFS
  86. # We need space, tab and new line, in precisely that order. Quoting is
  87. # there to prevent editors from complaining about space-tab.
  88. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  89. # splitting by setting IFS to empty value.)
  90. IFS=" "" $as_nl"
  91. # Find who we are. Look in the path if we contain no directory separator.
  92. as_myself=
  93. case $0 in #((
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. IFS=$as_save_IFS
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  112. exit 1
  113. fi
  114. # Unset variables that we do not need and which cause bugs (e.g. in
  115. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  116. # suppresses any "Segmentation fault" message there. '((' could
  117. # trigger a bug in pdksh 5.2.14.
  118. for as_var in BASH_ENV ENV MAIL MAILPATH
  119. do eval test x\${$as_var+set} = xset \
  120. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121. done
  122. PS1='$ '
  123. PS2='> '
  124. PS4='+ '
  125. # NLS nuisances.
  126. LC_ALL=C
  127. export LC_ALL
  128. LANGUAGE=C
  129. export LANGUAGE
  130. # CDPATH.
  131. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  132. # Use a proper internal environment variable to ensure we don't fall
  133. # into an infinite loop, continuously re-executing ourselves.
  134. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  135. _as_can_reexec=no; export _as_can_reexec;
  136. # We cannot yet assume a decent shell, so we have to provide a
  137. # neutralization value for shells without unset; and this also
  138. # works around shells that cannot unset nonexistent variables.
  139. # Preserve -v and -x to the replacement shell.
  140. BASH_ENV=/dev/null
  141. ENV=/dev/null
  142. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  143. case $- in # ((((
  144. *v*x* | *x*v* ) as_opts=-vx ;;
  145. *v* ) as_opts=-v ;;
  146. *x* ) as_opts=-x ;;
  147. * ) as_opts= ;;
  148. esac
  149. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  150. # Admittedly, this is quite paranoid, since all the known shells bail
  151. # out after a failed `exec'.
  152. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  153. as_fn_exit 255
  154. fi
  155. # We don't want this to propagate to other subprocesses.
  156. { _as_can_reexec=; unset _as_can_reexec;}
  157. if test "x$CONFIG_SHELL" = x; then
  158. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  159. emulate sh
  160. NULLCMD=:
  161. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  162. # is contrary to our usage. Disable this feature.
  163. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  164. setopt NO_GLOB_SUBST
  165. else
  166. case \`(set -o) 2>/dev/null\` in #(
  167. *posix*) :
  168. set -o posix ;; #(
  169. *) :
  170. ;;
  171. esac
  172. fi
  173. "
  174. as_required="as_fn_return () { (exit \$1); }
  175. as_fn_success () { as_fn_return 0; }
  176. as_fn_failure () { as_fn_return 1; }
  177. as_fn_ret_success () { return 0; }
  178. as_fn_ret_failure () { return 1; }
  179. exitcode=0
  180. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  181. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  182. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  183. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  184. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  185. else
  186. exitcode=1; echo positional parameters were not saved.
  187. fi
  188. test x\$exitcode = x0 || exit 1
  189. test -x / || exit 1"
  190. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  191. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  192. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  193. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] about your system,
  259. $0: including any error possibly output before this
  260. $0: message. Then install a modern shell, or manually run
  261. $0: the script under such a shell if you do have one."
  262. fi
  263. exit 1
  264. fi
  265. fi
  266. fi
  267. SHELL=${CONFIG_SHELL-/bin/sh}
  268. export SHELL
  269. # Unset more variables known to interfere with behavior of common tools.
  270. CLICOLOR_FORCE= GREP_OPTIONS=
  271. unset CLICOLOR_FORCE GREP_OPTIONS
  272. ## --------------------- ##
  273. ## M4sh Shell Functions. ##
  274. ## --------------------- ##
  275. # as_fn_unset VAR
  276. # ---------------
  277. # Portably unset VAR.
  278. as_fn_unset ()
  279. {
  280. { eval $1=; unset $1;}
  281. }
  282. as_unset=as_fn_unset
  283. # as_fn_set_status STATUS
  284. # -----------------------
  285. # Set $? to STATUS, without forking.
  286. as_fn_set_status ()
  287. {
  288. return $1
  289. } # as_fn_set_status
  290. # as_fn_exit STATUS
  291. # -----------------
  292. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  293. as_fn_exit ()
  294. {
  295. set +e
  296. as_fn_set_status $1
  297. exit $1
  298. } # as_fn_exit
  299. # as_fn_mkdir_p
  300. # -------------
  301. # Create "$as_dir" as a directory, including parents if necessary.
  302. as_fn_mkdir_p ()
  303. {
  304. case $as_dir in #(
  305. -*) as_dir=./$as_dir;;
  306. esac
  307. test -d "$as_dir" || eval $as_mkdir_p || {
  308. as_dirs=
  309. while :; do
  310. case $as_dir in #(
  311. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  312. *) as_qdir=$as_dir;;
  313. esac
  314. as_dirs="'$as_qdir' $as_dirs"
  315. as_dir=`$as_dirname -- "$as_dir" ||
  316. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  317. X"$as_dir" : 'X\(//\)[^/]' \| \
  318. X"$as_dir" : 'X\(//\)$' \| \
  319. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  320. $as_echo X"$as_dir" |
  321. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\/\)[^/].*/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\/\)$/{
  330. s//\1/
  331. q
  332. }
  333. /^X\(\/\).*/{
  334. s//\1/
  335. q
  336. }
  337. s/.*/./; q'`
  338. test -d "$as_dir" && break
  339. done
  340. test -z "$as_dirs" || eval "mkdir $as_dirs"
  341. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  342. } # as_fn_mkdir_p
  343. # as_fn_executable_p FILE
  344. # -----------------------
  345. # Test if FILE is an executable regular file.
  346. as_fn_executable_p ()
  347. {
  348. test -f "$1" && test -x "$1"
  349. } # as_fn_executable_p
  350. # as_fn_append VAR VALUE
  351. # ----------------------
  352. # Append the text in VALUE to the end of the definition contained in VAR. Take
  353. # advantage of any shell optimizations that allow amortized linear growth over
  354. # repeated appends, instead of the typical quadratic growth present in naive
  355. # implementations.
  356. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else
  362. as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. }
  366. fi # as_fn_append
  367. # as_fn_arith ARG...
  368. # ------------------
  369. # Perform arithmetic evaluation on the ARGs, and store the result in the
  370. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  371. # must be portable across $(()) and expr.
  372. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  373. eval 'as_fn_arith ()
  374. {
  375. as_val=$(( $* ))
  376. }'
  377. else
  378. as_fn_arith ()
  379. {
  380. as_val=`expr "$@" || test $? -eq 1`
  381. }
  382. fi # as_fn_arith
  383. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  384. # ----------------------------------------
  385. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  386. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  387. # script with STATUS, using 1 if that was 0.
  388. as_fn_error ()
  389. {
  390. as_status=$1; test $as_status -eq 0 && as_status=1
  391. if test "$4"; then
  392. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  393. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  394. fi
  395. $as_echo "$as_me: error: $2" >&2
  396. as_fn_exit $as_status
  397. } # as_fn_error
  398. if expr a : '\(a\)' >/dev/null 2>&1 &&
  399. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  400. as_expr=expr
  401. else
  402. as_expr=false
  403. fi
  404. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  405. as_basename=basename
  406. else
  407. as_basename=false
  408. fi
  409. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  410. as_dirname=dirname
  411. else
  412. as_dirname=false
  413. fi
  414. as_me=`$as_basename -- "$0" ||
  415. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  416. X"$0" : 'X\(//\)$' \| \
  417. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  418. $as_echo X/"$0" |
  419. sed '/^.*\/\([^/][^/]*\)\/*$/{
  420. s//\1/
  421. q
  422. }
  423. /^X\/\(\/\/\)$/{
  424. s//\1/
  425. q
  426. }
  427. /^X\/\(\/\).*/{
  428. s//\1/
  429. q
  430. }
  431. s/.*/./; q'`
  432. # Avoid depending upon Character Ranges.
  433. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  434. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  435. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  436. as_cr_digits='0123456789'
  437. as_cr_alnum=$as_cr_Letters$as_cr_digits
  438. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  439. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  440. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  441. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  442. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  443. sed -n '
  444. p
  445. /[$]LINENO/=
  446. ' <$as_myself |
  447. sed '
  448. s/[$]LINENO.*/&-/
  449. t lineno
  450. b
  451. :lineno
  452. N
  453. :loop
  454. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  455. t loop
  456. s/-\n.*//
  457. ' >$as_me.lineno &&
  458. chmod +x "$as_me.lineno" ||
  459. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  460. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  461. # already done that, so ensure we don't try to do so again and fall
  462. # in an infinite loop. This has already happened in practice.
  463. _as_can_reexec=no; export _as_can_reexec
  464. # Don't try to exec as it changes $[0], causing all sort of problems
  465. # (the dirname of $[0] is not the place where we might find the
  466. # original and so on. Autoconf is especially sensitive to this).
  467. . "./$as_me.lineno"
  468. # Exit status is that of the last command.
  469. exit
  470. }
  471. ECHO_C= ECHO_N= ECHO_T=
  472. case `echo -n x` in #(((((
  473. -n*)
  474. case `echo 'xy\c'` in
  475. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  476. xy) ECHO_C='\c';;
  477. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  478. ECHO_T=' ';;
  479. esac;;
  480. *)
  481. ECHO_N='-n';;
  482. esac
  483. rm -f conf$$ conf$$.exe conf$$.file
  484. if test -d conf$$.dir; then
  485. rm -f conf$$.dir/conf$$.file
  486. else
  487. rm -f conf$$.dir
  488. mkdir conf$$.dir 2>/dev/null
  489. fi
  490. if (echo >conf$$.file) 2>/dev/null; then
  491. if ln -s conf$$.file conf$$ 2>/dev/null; then
  492. as_ln_s='ln -s'
  493. # ... but there are two gotchas:
  494. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  495. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  496. # In both cases, we have to default to `cp -pR'.
  497. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  498. as_ln_s='cp -pR'
  499. elif ln conf$$.file conf$$ 2>/dev/null; then
  500. as_ln_s=ln
  501. else
  502. as_ln_s='cp -pR'
  503. fi
  504. else
  505. as_ln_s='cp -pR'
  506. fi
  507. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  508. rmdir conf$$.dir 2>/dev/null
  509. if mkdir -p . 2>/dev/null; then
  510. as_mkdir_p='mkdir -p "$as_dir"'
  511. else
  512. test -d ./-p && rmdir ./-p
  513. as_mkdir_p=false
  514. fi
  515. as_test_x='test -x'
  516. as_executable_p=as_fn_executable_p
  517. # Sed expression to map a string onto a valid CPP name.
  518. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  519. # Sed expression to map a string onto a valid variable name.
  520. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  521. test -n "$DJDIR" || exec 7<&0 </dev/null
  522. exec 6>&1
  523. # Name of the host.
  524. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  525. # so uname gets run too.
  526. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  527. #
  528. # Initializations.
  529. #
  530. ac_default_prefix=/usr/local
  531. ac_clean_files=
  532. ac_config_libobj_dir=.
  533. LIBOBJS=
  534. cross_compiling=no
  535. subdirs=
  536. MFLAGS=
  537. MAKEFLAGS=
  538. # Identity of this package.
  539. PACKAGE_NAME=
  540. PACKAGE_TARNAME=
  541. PACKAGE_VERSION=
  542. PACKAGE_STRING=
  543. PACKAGE_BUGREPORT=
  544. PACKAGE_URL=
  545. ac_unique_file="src/Fl.cxx"
  546. # Factoring default headers for most tests.
  547. ac_includes_default="\
  548. #include <stdio.h>
  549. #ifdef HAVE_SYS_TYPES_H
  550. # include <sys/types.h>
  551. #endif
  552. #ifdef HAVE_SYS_STAT_H
  553. # include <sys/stat.h>
  554. #endif
  555. #ifdef STDC_HEADERS
  556. # include <stdlib.h>
  557. # include <stddef.h>
  558. #else
  559. # ifdef HAVE_STDLIB_H
  560. # include <stdlib.h>
  561. # endif
  562. #endif
  563. #ifdef HAVE_STRING_H
  564. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  565. # include <memory.h>
  566. # endif
  567. # include <string.h>
  568. #endif
  569. #ifdef HAVE_STRINGS_H
  570. # include <strings.h>
  571. #endif
  572. #ifdef HAVE_INTTYPES_H
  573. # include <inttypes.h>
  574. #endif
  575. #ifdef HAVE_STDINT_H
  576. # include <stdint.h>
  577. #endif
  578. #ifdef HAVE_UNISTD_H
  579. # include <unistd.h>
  580. #endif"
  581. ac_subst_vars='LTLIBOBJS
  582. LIBOBJS
  583. BINARY_DIR
  584. MAKEDEPEND
  585. CAT6EXT
  586. CAT3EXT
  587. CAT1EXT
  588. BUILD
  589. UNINSTALL_DESKTOP
  590. INSTALL_DESKTOP
  591. THREADS
  592. OSX_ONLY
  593. HLINKS
  594. GLLIB
  595. XPROP
  596. FTCONFIG
  597. X_EXTRA_LIBS
  598. X_LIBS
  599. X_PRE_LIBS
  600. X_CFLAGS
  601. XMKMF
  602. PTHREAD_FLAGS
  603. ZLIBINC
  604. ZLIB
  605. PNGINC
  606. PNG
  607. JPEGINC
  608. JPEG
  609. STATICIMAGELIBS
  610. IMAGELIBS
  611. AUDIOLIBS
  612. LARGEFILE
  613. EGREP
  614. GREP
  615. CPP
  616. RC
  617. LIBCOMMAND
  618. AR
  619. RANLIB
  620. DOXYDOC
  621. GROFF
  622. NROFF
  623. INSTALL_DATA
  624. INSTALL_SCRIPT
  625. INSTALL_PROGRAM
  626. FLUID
  627. LINKSHARED
  628. SHAREDSUFFIX
  629. CAIRODSONAME
  630. IMGDSONAME
  631. GLDSONAME
  632. FLDSONAME
  633. DSONAME
  634. DSOLINK
  635. DSOFLAGS
  636. DSOCOMMAND
  637. CAIROLIBBASENAME
  638. IMGLIBBASENAME
  639. GLLIBBASENAME
  640. FLLIBBASENAME
  641. LIBBASENAME
  642. LINKFLTKIMG
  643. LINKFLTKGL
  644. LINKFLTKFORMS
  645. LINKFLTK
  646. LIBNAME
  647. LIBEXT
  648. CAIROLIBNAME
  649. IMGLIBNAME
  650. GLLIBNAME
  651. GLDEMOS
  652. FLLIBNAME
  653. FLTKCAIROOPTION
  654. LINKFLTKCAIRO
  655. CAIROLIBS
  656. CAIROFLAGS
  657. CAIRODIR
  658. OPTIM
  659. ARCHFLAGS
  660. FL_VERSION
  661. FL_ABI_VERSION
  662. FL_DSO_VERSION
  663. FL_PATCH_VERSION
  664. FL_MINOR_VERSION
  665. FL_MAJOR_VERSION
  666. ac_ct_CXX
  667. CXXFLAGS
  668. CXX
  669. OBJEXT
  670. EXEEXT
  671. ac_ct_CC
  672. CPPFLAGS
  673. LDFLAGS
  674. CFLAGS
  675. CC
  676. host_os
  677. host_vendor
  678. host_cpu
  679. host
  680. build_os
  681. build_vendor
  682. build_cpu
  683. build
  684. target_alias
  685. host_alias
  686. build_alias
  687. LIBS
  688. ECHO_T
  689. ECHO_N
  690. ECHO_C
  691. DEFS
  692. mandir
  693. localedir
  694. libdir
  695. psdir
  696. pdfdir
  697. dvidir
  698. htmldir
  699. infodir
  700. docdir
  701. oldincludedir
  702. includedir
  703. localstatedir
  704. sharedstatedir
  705. sysconfdir
  706. datadir
  707. datarootdir
  708. libexecdir
  709. sbindir
  710. bindir
  711. program_transform_name
  712. prefix
  713. exec_prefix
  714. PACKAGE_URL
  715. PACKAGE_BUGREPORT
  716. PACKAGE_STRING
  717. PACKAGE_VERSION
  718. PACKAGE_TARNAME
  719. PACKAGE_NAME
  720. PATH_SEPARATOR
  721. SHELL'
  722. ac_subst_files=''
  723. ac_user_opts='
  724. enable_option_checking
  725. enable_cygwin
  726. enable_x11
  727. enable_cairoext
  728. enable_cairo
  729. with_abiversion
  730. enable_debug
  731. enable_cp936
  732. enable_gl
  733. enable_shared
  734. enable_threads
  735. with_optim
  736. with_archflags
  737. enable_largefile
  738. enable_localjpeg
  739. enable_localzlib
  740. enable_localpng
  741. enable_nanosvg
  742. with_links
  743. with_x
  744. enable_print
  745. enable_xinerama
  746. enable_xft
  747. enable_pango
  748. enable_xdbe
  749. enable_xfixes
  750. enable_xcursor
  751. enable_xrender
  752. '
  753. ac_precious_vars='build_alias
  754. host_alias
  755. target_alias
  756. CC
  757. CFLAGS
  758. LDFLAGS
  759. LIBS
  760. CPPFLAGS
  761. CXX
  762. CXXFLAGS
  763. CCC
  764. CPP
  765. XMKMF'
  766. # Initialize some variables set by options.
  767. ac_init_help=
  768. ac_init_version=false
  769. ac_unrecognized_opts=
  770. ac_unrecognized_sep=
  771. # The variables have the same names as the options, with
  772. # dashes changed to underlines.
  773. cache_file=/dev/null
  774. exec_prefix=NONE
  775. no_create=
  776. no_recursion=
  777. prefix=NONE
  778. program_prefix=NONE
  779. program_suffix=NONE
  780. program_transform_name=s,x,x,
  781. silent=
  782. site=
  783. srcdir=
  784. verbose=
  785. x_includes=NONE
  786. x_libraries=NONE
  787. # Installation directory options.
  788. # These are left unexpanded so users can "make install exec_prefix=/foo"
  789. # and all the variables that are supposed to be based on exec_prefix
  790. # by default will actually change.
  791. # Use braces instead of parens because sh, perl, etc. also accept them.
  792. # (The list follows the same order as the GNU Coding Standards.)
  793. bindir='${exec_prefix}/bin'
  794. sbindir='${exec_prefix}/sbin'
  795. libexecdir='${exec_prefix}/libexec'
  796. datarootdir='${prefix}/share'
  797. datadir='${datarootdir}'
  798. sysconfdir='${prefix}/etc'
  799. sharedstatedir='${prefix}/com'
  800. localstatedir='${prefix}/var'
  801. includedir='${prefix}/include'
  802. oldincludedir='/usr/include'
  803. docdir='${datarootdir}/doc/${PACKAGE}'
  804. infodir='${datarootdir}/info'
  805. htmldir='${docdir}'
  806. dvidir='${docdir}'
  807. pdfdir='${docdir}'
  808. psdir='${docdir}'
  809. libdir='${exec_prefix}/lib'
  810. localedir='${datarootdir}/locale'
  811. mandir='${datarootdir}/man'
  812. ac_prev=
  813. ac_dashdash=
  814. for ac_option
  815. do
  816. # If the previous option needs an argument, assign it.
  817. if test -n "$ac_prev"; then
  818. eval $ac_prev=\$ac_option
  819. ac_prev=
  820. continue
  821. fi
  822. case $ac_option in
  823. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  824. *=) ac_optarg= ;;
  825. *) ac_optarg=yes ;;
  826. esac
  827. # Accept the important Cygnus configure options, so we can diagnose typos.
  828. case $ac_dashdash$ac_option in
  829. --)
  830. ac_dashdash=yes ;;
  831. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  832. ac_prev=bindir ;;
  833. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  834. bindir=$ac_optarg ;;
  835. -build | --build | --buil | --bui | --bu)
  836. ac_prev=build_alias ;;
  837. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  838. build_alias=$ac_optarg ;;
  839. -cache-file | --cache-file | --cache-fil | --cache-fi \
  840. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  841. ac_prev=cache_file ;;
  842. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  843. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  844. cache_file=$ac_optarg ;;
  845. --config-cache | -C)
  846. cache_file=config.cache ;;
  847. -datadir | --datadir | --datadi | --datad)
  848. ac_prev=datadir ;;
  849. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  850. datadir=$ac_optarg ;;
  851. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  852. | --dataroo | --dataro | --datar)
  853. ac_prev=datarootdir ;;
  854. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  855. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  856. datarootdir=$ac_optarg ;;
  857. -disable-* | --disable-*)
  858. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  859. # Reject names that are not valid shell variable names.
  860. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  861. as_fn_error $? "invalid feature name: $ac_useropt"
  862. ac_useropt_orig=$ac_useropt
  863. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  864. case $ac_user_opts in
  865. *"
  866. "enable_$ac_useropt"
  867. "*) ;;
  868. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  869. ac_unrecognized_sep=', ';;
  870. esac
  871. eval enable_$ac_useropt=no ;;
  872. -docdir | --docdir | --docdi | --doc | --do)
  873. ac_prev=docdir ;;
  874. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  875. docdir=$ac_optarg ;;
  876. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  877. ac_prev=dvidir ;;
  878. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  879. dvidir=$ac_optarg ;;
  880. -enable-* | --enable-*)
  881. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  884. as_fn_error $? "invalid feature name: $ac_useropt"
  885. ac_useropt_orig=$ac_useropt
  886. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  887. case $ac_user_opts in
  888. *"
  889. "enable_$ac_useropt"
  890. "*) ;;
  891. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  892. ac_unrecognized_sep=', ';;
  893. esac
  894. eval enable_$ac_useropt=\$ac_optarg ;;
  895. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  896. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  897. | --exec | --exe | --ex)
  898. ac_prev=exec_prefix ;;
  899. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  900. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  901. | --exec=* | --exe=* | --ex=*)
  902. exec_prefix=$ac_optarg ;;
  903. -gas | --gas | --ga | --g)
  904. # Obsolete; use --with-gas.
  905. with_gas=yes ;;
  906. -help | --help | --hel | --he | -h)
  907. ac_init_help=long ;;
  908. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  909. ac_init_help=recursive ;;
  910. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  911. ac_init_help=short ;;
  912. -host | --host | --hos | --ho)
  913. ac_prev=host_alias ;;
  914. -host=* | --host=* | --hos=* | --ho=*)
  915. host_alias=$ac_optarg ;;
  916. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  917. ac_prev=htmldir ;;
  918. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  919. | --ht=*)
  920. htmldir=$ac_optarg ;;
  921. -includedir | --includedir | --includedi | --included | --include \
  922. | --includ | --inclu | --incl | --inc)
  923. ac_prev=includedir ;;
  924. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  925. | --includ=* | --inclu=* | --incl=* | --inc=*)
  926. includedir=$ac_optarg ;;
  927. -infodir | --infodir | --infodi | --infod | --info | --inf)
  928. ac_prev=infodir ;;
  929. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  930. infodir=$ac_optarg ;;
  931. -libdir | --libdir | --libdi | --libd)
  932. ac_prev=libdir ;;
  933. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  934. libdir=$ac_optarg ;;
  935. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  936. | --libexe | --libex | --libe)
  937. ac_prev=libexecdir ;;
  938. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  939. | --libexe=* | --libex=* | --libe=*)
  940. libexecdir=$ac_optarg ;;
  941. -localedir | --localedir | --localedi | --localed | --locale)
  942. ac_prev=localedir ;;
  943. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  944. localedir=$ac_optarg ;;
  945. -localstatedir | --localstatedir | --localstatedi | --localstated \
  946. | --localstate | --localstat | --localsta | --localst | --locals)
  947. ac_prev=localstatedir ;;
  948. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  949. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  950. localstatedir=$ac_optarg ;;
  951. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  952. ac_prev=mandir ;;
  953. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  954. mandir=$ac_optarg ;;
  955. -nfp | --nfp | --nf)
  956. # Obsolete; use --without-fp.
  957. with_fp=no ;;
  958. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  959. | --no-cr | --no-c | -n)
  960. no_create=yes ;;
  961. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  962. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  963. no_recursion=yes ;;
  964. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  965. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  966. | --oldin | --oldi | --old | --ol | --o)
  967. ac_prev=oldincludedir ;;
  968. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  969. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  970. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  971. oldincludedir=$ac_optarg ;;
  972. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  973. ac_prev=prefix ;;
  974. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  975. prefix=$ac_optarg ;;
  976. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  977. | --program-pre | --program-pr | --program-p)
  978. ac_prev=program_prefix ;;
  979. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  980. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  981. program_prefix=$ac_optarg ;;
  982. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  983. | --program-suf | --program-su | --program-s)
  984. ac_prev=program_suffix ;;
  985. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  986. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  987. program_suffix=$ac_optarg ;;
  988. -program-transform-name | --program-transform-name \
  989. | --program-transform-nam | --program-transform-na \
  990. | --program-transform-n | --program-transform- \
  991. | --program-transform | --program-transfor \
  992. | --program-transfo | --program-transf \
  993. | --program-trans | --program-tran \
  994. | --progr-tra | --program-tr | --program-t)
  995. ac_prev=program_transform_name ;;
  996. -program-transform-name=* | --program-transform-name=* \
  997. | --program-transform-nam=* | --program-transform-na=* \
  998. | --program-transform-n=* | --program-transform-=* \
  999. | --program-transform=* | --program-transfor=* \
  1000. | --program-transfo=* | --program-transf=* \
  1001. | --program-trans=* | --program-tran=* \
  1002. | --progr-tra=* | --program-tr=* | --program-t=*)
  1003. program_transform_name=$ac_optarg ;;
  1004. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1005. ac_prev=pdfdir ;;
  1006. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1007. pdfdir=$ac_optarg ;;
  1008. -psdir | --psdir | --psdi | --psd | --ps)
  1009. ac_prev=psdir ;;
  1010. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1011. psdir=$ac_optarg ;;
  1012. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1013. | -silent | --silent | --silen | --sile | --sil)
  1014. silent=yes ;;
  1015. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1016. ac_prev=sbindir ;;
  1017. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1018. | --sbi=* | --sb=*)
  1019. sbindir=$ac_optarg ;;
  1020. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1021. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1022. | --sharedst | --shareds | --shared | --share | --shar \
  1023. | --sha | --sh)
  1024. ac_prev=sharedstatedir ;;
  1025. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1026. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1027. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1028. | --sha=* | --sh=*)
  1029. sharedstatedir=$ac_optarg ;;
  1030. -site | --site | --sit)
  1031. ac_prev=site ;;
  1032. -site=* | --site=* | --sit=*)
  1033. site=$ac_optarg ;;
  1034. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1035. ac_prev=srcdir ;;
  1036. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1037. srcdir=$ac_optarg ;;
  1038. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1039. | --syscon | --sysco | --sysc | --sys | --sy)
  1040. ac_prev=sysconfdir ;;
  1041. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1042. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1043. sysconfdir=$ac_optarg ;;
  1044. -target | --target | --targe | --targ | --tar | --ta | --t)
  1045. ac_prev=target_alias ;;
  1046. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1047. target_alias=$ac_optarg ;;
  1048. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1049. verbose=yes ;;
  1050. -version | --version | --versio | --versi | --vers | -V)
  1051. ac_init_version=: ;;
  1052. -with-* | --with-*)
  1053. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1054. # Reject names that are not valid shell variable names.
  1055. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1056. as_fn_error $? "invalid package name: $ac_useropt"
  1057. ac_useropt_orig=$ac_useropt
  1058. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1059. case $ac_user_opts in
  1060. *"
  1061. "with_$ac_useropt"
  1062. "*) ;;
  1063. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1064. ac_unrecognized_sep=', ';;
  1065. esac
  1066. eval with_$ac_useropt=\$ac_optarg ;;
  1067. -without-* | --without-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error $? "invalid package name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "with_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval with_$ac_useropt=no ;;
  1082. --x)
  1083. # Obsolete; use --with-x.
  1084. with_x=yes ;;
  1085. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1086. | --x-incl | --x-inc | --x-in | --x-i)
  1087. ac_prev=x_includes ;;
  1088. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1089. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1090. x_includes=$ac_optarg ;;
  1091. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1092. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1093. ac_prev=x_libraries ;;
  1094. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1095. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1096. x_libraries=$ac_optarg ;;
  1097. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1098. Try \`$0 --help' for more information"
  1099. ;;
  1100. *=*)
  1101. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1102. # Reject names that are not valid shell variable names.
  1103. case $ac_envvar in #(
  1104. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1105. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1106. esac
  1107. eval $ac_envvar=\$ac_optarg
  1108. export $ac_envvar ;;
  1109. *)
  1110. # FIXME: should be removed in autoconf 3.0.
  1111. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1112. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1113. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1114. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1115. ;;
  1116. esac
  1117. done
  1118. if test -n "$ac_prev"; then
  1119. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1120. as_fn_error $? "missing argument to $ac_option"
  1121. fi
  1122. if test -n "$ac_unrecognized_opts"; then
  1123. case $enable_option_checking in
  1124. no) ;;
  1125. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1126. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1127. esac
  1128. fi
  1129. # Check all directory arguments for consistency.
  1130. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1131. datadir sysconfdir sharedstatedir localstatedir includedir \
  1132. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1133. libdir localedir mandir
  1134. do
  1135. eval ac_val=\$$ac_var
  1136. # Remove trailing slashes.
  1137. case $ac_val in
  1138. */ )
  1139. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1140. eval $ac_var=\$ac_val;;
  1141. esac
  1142. # Be sure to have absolute directory names.
  1143. case $ac_val in
  1144. [\\/$]* | ?:[\\/]* ) continue;;
  1145. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1146. esac
  1147. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1148. done
  1149. # There might be people who depend on the old broken behavior: `$host'
  1150. # used to hold the argument of --host etc.
  1151. # FIXME: To remove some day.
  1152. build=$build_alias
  1153. host=$host_alias
  1154. target=$target_alias
  1155. # FIXME: To remove some day.
  1156. if test "x$host_alias" != x; then
  1157. if test "x$build_alias" = x; then
  1158. cross_compiling=maybe
  1159. elif test "x$build_alias" != "x$host_alias"; then
  1160. cross_compiling=yes
  1161. fi
  1162. fi
  1163. ac_tool_prefix=
  1164. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1165. test "$silent" = yes && exec 6>/dev/null
  1166. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1167. ac_ls_di=`ls -di .` &&
  1168. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1169. as_fn_error $? "working directory cannot be determined"
  1170. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1171. as_fn_error $? "pwd does not report name of working directory"
  1172. # Find the source files, if location was not specified.
  1173. if test -z "$srcdir"; then
  1174. ac_srcdir_defaulted=yes
  1175. # Try the directory containing this script, then the parent directory.
  1176. ac_confdir=`$as_dirname -- "$as_myself" ||
  1177. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1178. X"$as_myself" : 'X\(//\)[^/]' \| \
  1179. X"$as_myself" : 'X\(//\)$' \| \
  1180. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1181. $as_echo X"$as_myself" |
  1182. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1183. s//\1/
  1184. q
  1185. }
  1186. /^X\(\/\/\)[^/].*/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\/\)$/{
  1191. s//\1/
  1192. q
  1193. }
  1194. /^X\(\/\).*/{
  1195. s//\1/
  1196. q
  1197. }
  1198. s/.*/./; q'`
  1199. srcdir=$ac_confdir
  1200. if test ! -r "$srcdir/$ac_unique_file"; then
  1201. srcdir=..
  1202. fi
  1203. else
  1204. ac_srcdir_defaulted=no
  1205. fi
  1206. if test ! -r "$srcdir/$ac_unique_file"; then
  1207. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1208. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1209. fi
  1210. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1211. ac_abs_confdir=`(
  1212. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1213. pwd)`
  1214. # When building in place, set srcdir=.
  1215. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1216. srcdir=.
  1217. fi
  1218. # Remove unnecessary trailing slashes from srcdir.
  1219. # Double slashes in file names in object file debugging info
  1220. # mess up M-x gdb in Emacs.
  1221. case $srcdir in
  1222. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1223. esac
  1224. for ac_var in $ac_precious_vars; do
  1225. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1226. eval ac_env_${ac_var}_value=\$${ac_var}
  1227. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1228. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1229. done
  1230. #
  1231. # Report the --help message.
  1232. #
  1233. if test "$ac_init_help" = "long"; then
  1234. # Omit some internal or obsolete options to make the list less imposing.
  1235. # This message is too long to be a string in the A/UX 3.1 sh.
  1236. cat <<_ACEOF
  1237. \`configure' configures this package to adapt to many kinds of systems.
  1238. Usage: $0 [OPTION]... [VAR=VALUE]...
  1239. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1240. VAR=VALUE. See below for descriptions of some of the useful variables.
  1241. Defaults for the options are specified in brackets.
  1242. Configuration:
  1243. -h, --help display this help and exit
  1244. --help=short display options specific to this package
  1245. --help=recursive display the short help of all the included packages
  1246. -V, --version display version information and exit
  1247. -q, --quiet, --silent do not print \`checking ...' messages
  1248. --cache-file=FILE cache test results in FILE [disabled]
  1249. -C, --config-cache alias for \`--cache-file=config.cache'
  1250. -n, --no-create do not create output files
  1251. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1252. Installation directories:
  1253. --prefix=PREFIX install architecture-independent files in PREFIX
  1254. [$ac_default_prefix]
  1255. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1256. [PREFIX]
  1257. By default, \`make install' will install all the files in
  1258. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1259. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1260. for instance \`--prefix=\$HOME'.
  1261. For better control, use the options below.
  1262. Fine tuning of the installation directories:
  1263. --bindir=DIR user executables [EPREFIX/bin]
  1264. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1265. --libexecdir=DIR program executables [EPREFIX/libexec]
  1266. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1267. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1268. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1269. --libdir=DIR object code libraries [EPREFIX/lib]
  1270. --includedir=DIR C header files [PREFIX/include]
  1271. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1272. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1273. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1274. --infodir=DIR info documentation [DATAROOTDIR/info]
  1275. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1276. --mandir=DIR man documentation [DATAROOTDIR/man]
  1277. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1278. --htmldir=DIR html documentation [DOCDIR]
  1279. --dvidir=DIR dvi documentation [DOCDIR]
  1280. --pdfdir=DIR pdf documentation [DOCDIR]
  1281. --psdir=DIR ps documentation [DOCDIR]
  1282. _ACEOF
  1283. cat <<\_ACEOF
  1284. X features:
  1285. --x-includes=DIR X include files are in DIR
  1286. --x-libraries=DIR X library files are in DIR
  1287. System types:
  1288. --build=BUILD configure for building on BUILD [guessed]
  1289. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1290. _ACEOF
  1291. fi
  1292. if test -n "$ac_init_help"; then
  1293. cat <<\_ACEOF
  1294. Optional Features:
  1295. --disable-option-checking ignore unrecognized --enable/--with options
  1296. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1297. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1298. --enable-cygwin use the Cygwin libraries [default=no]
  1299. --enable-x11 with Cygwin or Mac OS, use X11 [default=no]
  1300. --enable-cairoext use fltk code instrumentation for cairo extended use [default=no]
  1301. --enable-cairo use lib Cairo [default=no]
  1302. --enable-debug turn on debugging [default=no]
  1303. --enable-cp936 turn on CP936 [default=no]
  1304. --enable-gl turn on OpenGL support [default=yes]
  1305. --enable-shared turn on shared libraries [default=no]
  1306. --enable-threads enable multi-threading support [default=yes]
  1307. --disable-largefile omit support for large files
  1308. --enable-localjpeg use local JPEG library [default=auto]
  1309. --enable-localzlib use local ZLIB library [default=auto]
  1310. --enable-localpng use local PNG library [default=auto]
  1311. --enable-nanosvg use nanosvg to support SVG images [default=yes]
  1312. --enable-print turn on print support (X11 platform) [default=yes]
  1313. --enable-xinerama turn on Xinerama support [default=yes]
  1314. --enable-xft turn on Xft support [default=yes]
  1315. --enable-pango turn on Pango support [default=no]
  1316. --enable-xdbe turn on Xdbe support [default=yes]
  1317. --enable-xfixes turn on Xfixes support [default=yes]
  1318. --enable-xcursor turn on Xcursor support [default=yes]
  1319. --enable-xrender turn on Xrender support [default=yes]
  1320. Optional Packages:
  1321. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1322. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1323. --with-abiversion Build with FL_ABI_VERSION, e.g. 10304 for FLTK 1.3.4
  1324. --with-optim="flags" use custom optimization flags
  1325. --with-archflags="flags"
  1326. use custom architecture flags
  1327. (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)
  1328. --with-links make header links for common misspellings [default=no]
  1329. --with-x use the X Window System
  1330. Some influential environment variables:
  1331. CC C compiler command
  1332. CFLAGS C compiler flags
  1333. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1334. nonstandard directory <lib dir>
  1335. LIBS libraries to pass to the linker, e.g. -l<library>
  1336. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1337. you have headers in a nonstandard directory <include dir>
  1338. CXX C++ compiler command
  1339. CXXFLAGS C++ compiler flags
  1340. CPP C preprocessor
  1341. XMKMF Path to xmkmf, Makefile generator for X Window System
  1342. Use these variables to override the choices made by `configure' or to help
  1343. it to find libraries and programs with nonstandard names/locations.
  1344. Report bugs to the package provider.
  1345. _ACEOF
  1346. ac_status=$?
  1347. fi
  1348. if test "$ac_init_help" = "recursive"; then
  1349. # If there are subdirs, report their specific --help.
  1350. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1351. test -d "$ac_dir" ||
  1352. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1353. continue
  1354. ac_builddir=.
  1355. case "$ac_dir" in
  1356. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1357. *)
  1358. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1359. # A ".." for each directory in $ac_dir_suffix.
  1360. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1361. case $ac_top_builddir_sub in
  1362. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1363. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1364. esac ;;
  1365. esac
  1366. ac_abs_top_builddir=$ac_pwd
  1367. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1368. # for backward compatibility:
  1369. ac_top_builddir=$ac_top_build_prefix
  1370. case $srcdir in
  1371. .) # We are building in place.
  1372. ac_srcdir=.
  1373. ac_top_srcdir=$ac_top_builddir_sub
  1374. ac_abs_top_srcdir=$ac_pwd ;;
  1375. [\\/]* | ?:[\\/]* ) # Absolute name.
  1376. ac_srcdir=$srcdir$ac_dir_suffix;
  1377. ac_top_srcdir=$srcdir
  1378. ac_abs_top_srcdir=$srcdir ;;
  1379. *) # Relative name.
  1380. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1381. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1382. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1383. esac
  1384. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1385. cd "$ac_dir" || { ac_status=$?; continue; }
  1386. # Check for guested configure.
  1387. if test -f "$ac_srcdir/configure.gnu"; then
  1388. echo &&
  1389. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1390. elif test -f "$ac_srcdir/configure"; then
  1391. echo &&
  1392. $SHELL "$ac_srcdir/configure" --help=recursive
  1393. else
  1394. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1395. fi || ac_status=$?
  1396. cd "$ac_pwd" || { ac_status=$?; break; }
  1397. done
  1398. fi
  1399. test -n "$ac_init_help" && exit $ac_status
  1400. if $ac_init_version; then
  1401. cat <<\_ACEOF
  1402. configure
  1403. generated by GNU Autoconf 2.69
  1404. Copyright (C) 2012 Free Software Foundation, Inc.
  1405. This configure script is free software; the Free Software Foundation
  1406. gives unlimited permission to copy, distribute and modify it.
  1407. _ACEOF
  1408. exit
  1409. fi
  1410. ## ------------------------ ##
  1411. ## Autoconf initialization. ##
  1412. ## ------------------------ ##
  1413. # ac_fn_c_try_compile LINENO
  1414. # --------------------------
  1415. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_compile ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. rm -f conftest.$ac_objext
  1420. if { { ac_try="$ac_compile"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_compile") 2>conftest.err
  1428. ac_status=$?
  1429. if test -s conftest.err; then
  1430. grep -v '^ *+' conftest.err >conftest.er1
  1431. cat conftest.er1 >&5
  1432. mv -f conftest.er1 conftest.err
  1433. fi
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && {
  1436. test -z "$ac_c_werror_flag" ||
  1437. test ! -s conftest.err
  1438. } && test -s conftest.$ac_objext; then :
  1439. ac_retval=0
  1440. else
  1441. $as_echo "$as_me: failed program was:" >&5
  1442. sed 's/^/| /' conftest.$ac_ext >&5
  1443. ac_retval=1
  1444. fi
  1445. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1446. as_fn_set_status $ac_retval
  1447. } # ac_fn_c_try_compile
  1448. # ac_fn_cxx_try_compile LINENO
  1449. # ----------------------------
  1450. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1451. ac_fn_cxx_try_compile ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. rm -f conftest.$ac_objext
  1455. if { { ac_try="$ac_compile"
  1456. case "(($ac_try" in
  1457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1458. *) ac_try_echo=$ac_try;;
  1459. esac
  1460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1461. $as_echo "$ac_try_echo"; } >&5
  1462. (eval "$ac_compile") 2>conftest.err
  1463. ac_status=$?
  1464. if test -s conftest.err; then
  1465. grep -v '^ *+' conftest.err >conftest.er1
  1466. cat conftest.er1 >&5
  1467. mv -f conftest.er1 conftest.err
  1468. fi
  1469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1470. test $ac_status = 0; } && {
  1471. test -z "$ac_cxx_werror_flag" ||
  1472. test ! -s conftest.err
  1473. } && test -s conftest.$ac_objext; then :
  1474. ac_retval=0
  1475. else
  1476. $as_echo "$as_me: failed program was:" >&5
  1477. sed 's/^/| /' conftest.$ac_ext >&5
  1478. ac_retval=1
  1479. fi
  1480. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1481. as_fn_set_status $ac_retval
  1482. } # ac_fn_cxx_try_compile
  1483. # ac_fn_c_try_run LINENO
  1484. # ----------------------
  1485. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1486. # that executables *can* be run.
  1487. ac_fn_c_try_run ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if { { ac_try="$ac_link"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_link") 2>&5
  1498. ac_status=$?
  1499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1500. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1501. { { case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. $as_echo "$ac_try_echo"; } >&5
  1507. (eval "$ac_try") 2>&5
  1508. ac_status=$?
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; }; }; then :
  1511. ac_retval=0
  1512. else
  1513. $as_echo "$as_me: program exited with status $ac_status" >&5
  1514. $as_echo "$as_me: failed program was:" >&5
  1515. sed 's/^/| /' conftest.$ac_ext >&5
  1516. ac_retval=$ac_status
  1517. fi
  1518. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. as_fn_set_status $ac_retval
  1521. } # ac_fn_c_try_run
  1522. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1523. # --------------------------------------------
  1524. # Tries to find the compile-time value of EXPR in a program that includes
  1525. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1526. # computed
  1527. ac_fn_c_compute_int ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. if test "$cross_compiling" = yes; then
  1531. # Depending upon the size, compute the lo and hi bounds.
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. int
  1536. main ()
  1537. {
  1538. static int test_array [1 - 2 * !(($2) >= 0)];
  1539. test_array [0] = 0;
  1540. return test_array [0];
  1541. ;
  1542. return 0;
  1543. }
  1544. _ACEOF
  1545. if ac_fn_c_try_compile "$LINENO"; then :
  1546. ac_lo=0 ac_mid=0
  1547. while :; do
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. $4
  1551. int
  1552. main ()
  1553. {
  1554. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1555. test_array [0] = 0;
  1556. return test_array [0];
  1557. ;
  1558. return 0;
  1559. }
  1560. _ACEOF
  1561. if ac_fn_c_try_compile "$LINENO"; then :
  1562. ac_hi=$ac_mid; break
  1563. else
  1564. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1565. if test $ac_lo -le $ac_mid; then
  1566. ac_lo= ac_hi=
  1567. break
  1568. fi
  1569. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1570. fi
  1571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1572. done
  1573. else
  1574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1575. /* end confdefs.h. */
  1576. $4
  1577. int
  1578. main ()
  1579. {
  1580. static int test_array [1 - 2 * !(($2) < 0)];
  1581. test_array [0] = 0;
  1582. return test_array [0];
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_c_try_compile "$LINENO"; then :
  1588. ac_hi=-1 ac_mid=-1
  1589. while :; do
  1590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end confdefs.h. */
  1592. $4
  1593. int
  1594. main ()
  1595. {
  1596. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1597. test_array [0] = 0;
  1598. return test_array [0];
  1599. ;
  1600. return 0;
  1601. }
  1602. _ACEOF
  1603. if ac_fn_c_try_compile "$LINENO"; then :
  1604. ac_lo=$ac_mid; break
  1605. else
  1606. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1607. if test $ac_mid -le $ac_hi; then
  1608. ac_lo= ac_hi=
  1609. break
  1610. fi
  1611. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1612. fi
  1613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1614. done
  1615. else
  1616. ac_lo= ac_hi=
  1617. fi
  1618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1619. fi
  1620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1621. # Binary search between lo and hi bounds.
  1622. while test "x$ac_lo" != "x$ac_hi"; do
  1623. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. int
  1628. main ()
  1629. {
  1630. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1631. test_array [0] = 0;
  1632. return test_array [0];
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. if ac_fn_c_try_compile "$LINENO"; then :
  1638. ac_hi=$ac_mid
  1639. else
  1640. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1643. done
  1644. case $ac_lo in #((
  1645. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1646. '') ac_retval=1 ;;
  1647. esac
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $4
  1652. static long int longval () { return $2; }
  1653. static unsigned long int ulongval () { return $2; }
  1654. #include <stdio.h>
  1655. #include <stdlib.h>
  1656. int
  1657. main ()
  1658. {
  1659. FILE *f = fopen ("conftest.val", "w");
  1660. if (! f)
  1661. return 1;
  1662. if (($2) < 0)
  1663. {
  1664. long int i = longval ();
  1665. if (i != ($2))
  1666. return 1;
  1667. fprintf (f, "%ld", i);
  1668. }
  1669. else
  1670. {
  1671. unsigned long int i = ulongval ();
  1672. if (i != ($2))
  1673. return 1;
  1674. fprintf (f, "%lu", i);
  1675. }
  1676. /* Do not output a trailing newline, as this causes \r\n confusion
  1677. on some platforms. */
  1678. return ferror (f) || fclose (f) != 0;
  1679. ;
  1680. return 0;
  1681. }
  1682. _ACEOF
  1683. if ac_fn_c_try_run "$LINENO"; then :
  1684. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1685. else
  1686. ac_retval=1
  1687. fi
  1688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1689. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1690. rm -f conftest.val
  1691. fi
  1692. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1693. as_fn_set_status $ac_retval
  1694. } # ac_fn_c_compute_int
  1695. # ac_fn_c_try_cpp LINENO
  1696. # ----------------------
  1697. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1698. ac_fn_c_try_cpp ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } > conftest.i && {
  1717. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_cpp
  1729. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1730. # -------------------------------------------------------
  1731. # Tests whether HEADER exists and can be compiled using the include files in
  1732. # INCLUDES, setting the cache variable VAR accordingly.
  1733. ac_fn_c_check_header_compile ()
  1734. {
  1735. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1737. $as_echo_n "checking for $2... " >&6; }
  1738. if eval \${$3+:} false; then :
  1739. $as_echo_n "(cached) " >&6
  1740. else
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $4
  1744. #include <$2>
  1745. _ACEOF
  1746. if ac_fn_c_try_compile "$LINENO"; then :
  1747. eval "$3=yes"
  1748. else
  1749. eval "$3=no"
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. fi
  1753. eval ac_res=\$$3
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1755. $as_echo "$ac_res" >&6; }
  1756. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1757. } # ac_fn_c_check_header_compile
  1758. # ac_fn_c_try_link LINENO
  1759. # -----------------------
  1760. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1761. ac_fn_c_try_link ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. rm -f conftest.$ac_objext conftest$ac_exeext
  1765. if { { ac_try="$ac_link"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_link") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } && {
  1781. test -z "$ac_c_werror_flag" ||
  1782. test ! -s conftest.err
  1783. } && test -s conftest$ac_exeext && {
  1784. test "$cross_compiling" = yes ||
  1785. test -x conftest$ac_exeext
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1
  1792. fi
  1793. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1794. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1795. # interfere with the next link command; also delete a directory that is
  1796. # left behind by Apple's compiler. We do this before executing the actions.
  1797. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. as_fn_set_status $ac_retval
  1800. } # ac_fn_c_try_link
  1801. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1802. # -------------------------------------------------------
  1803. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1804. # the include files in INCLUDES and setting the cache variable VAR
  1805. # accordingly.
  1806. ac_fn_c_check_header_mongrel ()
  1807. {
  1808. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1809. if eval \${$3+:} false; then :
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1811. $as_echo_n "checking for $2... " >&6; }
  1812. if eval \${$3+:} false; then :
  1813. $as_echo_n "(cached) " >&6
  1814. fi
  1815. eval ac_res=\$$3
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1817. $as_echo "$ac_res" >&6; }
  1818. else
  1819. # Is the header compilable?
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1821. $as_echo_n "checking $2 usability... " >&6; }
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. #include <$2>
  1826. _ACEOF
  1827. if ac_fn_c_try_compile "$LINENO"; then :
  1828. ac_header_compiler=yes
  1829. else
  1830. ac_header_compiler=no
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1834. $as_echo "$ac_header_compiler" >&6; }
  1835. # Is the header present?
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1837. $as_echo_n "checking $2 presence... " >&6; }
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. #include <$2>
  1841. _ACEOF
  1842. if ac_fn_c_try_cpp "$LINENO"; then :
  1843. ac_header_preproc=yes
  1844. else
  1845. ac_header_preproc=no
  1846. fi
  1847. rm -f conftest.err conftest.i conftest.$ac_ext
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1849. $as_echo "$ac_header_preproc" >&6; }
  1850. # So? What about this header?
  1851. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1852. yes:no: )
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1854. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1856. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1857. ;;
  1858. no:yes:* )
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1860. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1862. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1864. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1866. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1868. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1869. ;;
  1870. esac
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1872. $as_echo_n "checking for $2... " >&6; }
  1873. if eval \${$3+:} false; then :
  1874. $as_echo_n "(cached) " >&6
  1875. else
  1876. eval "$3=\$ac_header_compiler"
  1877. fi
  1878. eval ac_res=\$$3
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1880. $as_echo "$ac_res" >&6; }
  1881. fi
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. } # ac_fn_c_check_header_mongrel
  1884. # ac_fn_c_check_func LINENO FUNC VAR
  1885. # ----------------------------------
  1886. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1887. ac_fn_c_check_func ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. $as_echo_n "checking for $2... " >&6; }
  1892. if eval \${$3+:} false; then :
  1893. $as_echo_n "(cached) " >&6
  1894. else
  1895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1896. /* end confdefs.h. */
  1897. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1898. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1899. #define $2 innocuous_$2
  1900. /* System header to define __stub macros and hopefully few prototypes,
  1901. which can conflict with char $2 (); below.
  1902. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1903. <limits.h> exists even on freestanding compilers. */
  1904. #ifdef __STDC__
  1905. # include <limits.h>
  1906. #else
  1907. # include <assert.h>
  1908. #endif
  1909. #undef $2
  1910. /* Override any GCC internal prototype to avoid an error.
  1911. Use char because int might match the return type of a GCC
  1912. builtin and then its argument prototype would still apply. */
  1913. #ifdef __cplusplus
  1914. extern "C"
  1915. #endif
  1916. char $2 ();
  1917. /* The GNU C library defines this for functions which it implements
  1918. to always fail with ENOSYS. Some functions are actually named
  1919. something starting with __ and the normal name is an alias. */
  1920. #if defined __stub_$2 || defined __stub___$2
  1921. choke me
  1922. #endif
  1923. int
  1924. main ()
  1925. {
  1926. return $2 ();
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_link "$LINENO"; then :
  1932. eval "$3=yes"
  1933. else
  1934. eval "$3=no"
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext \
  1937. conftest$ac_exeext conftest.$ac_ext
  1938. fi
  1939. eval ac_res=\$$3
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1941. $as_echo "$ac_res" >&6; }
  1942. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1943. } # ac_fn_c_check_func
  1944. cat >config.log <<_ACEOF
  1945. This file contains any messages produced by compilers while
  1946. running configure, to aid debugging if configure makes a mistake.
  1947. It was created by $as_me, which was
  1948. generated by GNU Autoconf 2.69. Invocation command line was
  1949. $ $0 $@
  1950. _ACEOF
  1951. exec 5>>config.log
  1952. {
  1953. cat <<_ASUNAME
  1954. ## --------- ##
  1955. ## Platform. ##
  1956. ## --------- ##
  1957. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1958. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1959. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1960. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1961. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1962. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1963. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1964. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1965. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1966. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1967. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1968. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1969. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1970. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1971. _ASUNAME
  1972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1973. for as_dir in $PATH
  1974. do
  1975. IFS=$as_save_IFS
  1976. test -z "$as_dir" && as_dir=.
  1977. $as_echo "PATH: $as_dir"
  1978. done
  1979. IFS=$as_save_IFS
  1980. } >&5
  1981. cat >&5 <<_ACEOF
  1982. ## ----------- ##
  1983. ## Core tests. ##
  1984. ## ----------- ##
  1985. _ACEOF
  1986. # Keep a trace of the command line.
  1987. # Strip out --no-create and --no-recursion so they do not pile up.
  1988. # Strip out --silent because we don't want to record it for future runs.
  1989. # Also quote any args containing shell meta-characters.
  1990. # Make two passes to allow for proper duplicate-argument suppression.
  1991. ac_configure_args=
  1992. ac_configure_args0=
  1993. ac_configure_args1=
  1994. ac_must_keep_next=false
  1995. for ac_pass in 1 2
  1996. do
  1997. for ac_arg
  1998. do
  1999. case $ac_arg in
  2000. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2001. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2002. | -silent | --silent | --silen | --sile | --sil)
  2003. continue ;;
  2004. *\'*)
  2005. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2006. esac
  2007. case $ac_pass in
  2008. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2009. 2)
  2010. as_fn_append ac_configure_args1 " '$ac_arg'"
  2011. if test $ac_must_keep_next = true; then
  2012. ac_must_keep_next=false # Got value, back to normal.
  2013. else
  2014. case $ac_arg in
  2015. *=* | --config-cache | -C | -disable-* | --disable-* \
  2016. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2017. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2018. | -with-* | --with-* | -without-* | --without-* | --x)
  2019. case "$ac_configure_args0 " in
  2020. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2021. esac
  2022. ;;
  2023. -* ) ac_must_keep_next=true ;;
  2024. esac
  2025. fi
  2026. as_fn_append ac_configure_args " '$ac_arg'"
  2027. ;;
  2028. esac
  2029. done
  2030. done
  2031. { ac_configure_args0=; unset ac_configure_args0;}
  2032. { ac_configure_args1=; unset ac_configure_args1;}
  2033. # When interrupted or exit'd, cleanup temporary files, and complete
  2034. # config.log. We remove comments because anyway the quotes in there
  2035. # would cause problems or look ugly.
  2036. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2037. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2038. trap 'exit_status=$?
  2039. # Save into config.log some information that might help in debugging.
  2040. {
  2041. echo
  2042. $as_echo "## ---------------- ##
  2043. ## Cache variables. ##
  2044. ## ---------------- ##"
  2045. echo
  2046. # The following way of writing the cache mishandles newlines in values,
  2047. (
  2048. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2049. eval ac_val=\$$ac_var
  2050. case $ac_val in #(
  2051. *${as_nl}*)
  2052. case $ac_var in #(
  2053. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2054. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2055. esac
  2056. case $ac_var in #(
  2057. _ | IFS | as_nl) ;; #(
  2058. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2059. *) { eval $ac_var=; unset $ac_var;} ;;
  2060. esac ;;
  2061. esac
  2062. done
  2063. (set) 2>&1 |
  2064. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2065. *${as_nl}ac_space=\ *)
  2066. sed -n \
  2067. "s/'\''/'\''\\\\'\'''\''/g;
  2068. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2069. ;; #(
  2070. *)
  2071. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2072. ;;
  2073. esac |
  2074. sort
  2075. )
  2076. echo
  2077. $as_echo "## ----------------- ##
  2078. ## Output variables. ##
  2079. ## ----------------- ##"
  2080. echo
  2081. for ac_var in $ac_subst_vars
  2082. do
  2083. eval ac_val=\$$ac_var
  2084. case $ac_val in
  2085. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2086. esac
  2087. $as_echo "$ac_var='\''$ac_val'\''"
  2088. done | sort
  2089. echo
  2090. if test -n "$ac_subst_files"; then
  2091. $as_echo "## ------------------- ##
  2092. ## File substitutions. ##
  2093. ## ------------------- ##"
  2094. echo
  2095. for ac_var in $ac_subst_files
  2096. do
  2097. eval ac_val=\$$ac_var
  2098. case $ac_val in
  2099. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2100. esac
  2101. $as_echo "$ac_var='\''$ac_val'\''"
  2102. done | sort
  2103. echo
  2104. fi
  2105. if test -s confdefs.h; then
  2106. $as_echo "## ----------- ##
  2107. ## confdefs.h. ##
  2108. ## ----------- ##"
  2109. echo
  2110. cat confdefs.h
  2111. echo
  2112. fi
  2113. test "$ac_signal" != 0 &&
  2114. $as_echo "$as_me: caught signal $ac_signal"
  2115. $as_echo "$as_me: exit $exit_status"
  2116. } >&5
  2117. rm -f core *.core core.conftest.* &&
  2118. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2119. exit $exit_status
  2120. ' 0
  2121. for ac_signal in 1 2 13 15; do
  2122. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2123. done
  2124. ac_signal=0
  2125. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2126. rm -f -r conftest* confdefs.h
  2127. $as_echo "/* confdefs.h */" > confdefs.h
  2128. # Predefined preprocessor variables.
  2129. cat >>confdefs.h <<_ACEOF
  2130. #define PACKAGE_NAME "$PACKAGE_NAME"
  2131. _ACEOF
  2132. cat >>confdefs.h <<_ACEOF
  2133. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2134. _ACEOF
  2135. cat >>confdefs.h <<_ACEOF
  2136. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2137. _ACEOF
  2138. cat >>confdefs.h <<_ACEOF
  2139. #define PACKAGE_STRING "$PACKAGE_STRING"
  2140. _ACEOF
  2141. cat >>confdefs.h <<_ACEOF
  2142. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2143. _ACEOF
  2144. cat >>confdefs.h <<_ACEOF
  2145. #define PACKAGE_URL "$PACKAGE_URL"
  2146. _ACEOF
  2147. # Let the site file select an alternate cache file if it wants to.
  2148. # Prefer an explicitly selected file to automatically selected ones.
  2149. ac_site_file1=NONE
  2150. ac_site_file2=NONE
  2151. if test -n "$CONFIG_SITE"; then
  2152. # We do not want a PATH search for config.site.
  2153. case $CONFIG_SITE in #((
  2154. -*) ac_site_file1=./$CONFIG_SITE;;
  2155. */*) ac_site_file1=$CONFIG_SITE;;
  2156. *) ac_site_file1=./$CONFIG_SITE;;
  2157. esac
  2158. elif test "x$prefix" != xNONE; then
  2159. ac_site_file1=$prefix/share/config.site
  2160. ac_site_file2=$prefix/etc/config.site
  2161. else
  2162. ac_site_file1=$ac_default_prefix/share/config.site
  2163. ac_site_file2=$ac_default_prefix/etc/config.site
  2164. fi
  2165. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2166. do
  2167. test "x$ac_site_file" = xNONE && continue
  2168. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2170. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2171. sed 's/^/| /' "$ac_site_file" >&5
  2172. . "$ac_site_file" \
  2173. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2174. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2175. as_fn_error $? "failed to load site script $ac_site_file
  2176. See \`config.log' for more details" "$LINENO" 5; }
  2177. fi
  2178. done
  2179. if test -r "$cache_file"; then
  2180. # Some versions of bash will fail to source /dev/null (special files
  2181. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2182. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2184. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2185. case $cache_file in
  2186. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2187. *) . "./$cache_file";;
  2188. esac
  2189. fi
  2190. else
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2192. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2193. >$cache_file
  2194. fi
  2195. # Check that the precious variables saved in the cache have kept the same
  2196. # value.
  2197. ac_cache_corrupted=false
  2198. for ac_var in $ac_precious_vars; do
  2199. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2200. eval ac_new_set=\$ac_env_${ac_var}_set
  2201. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2202. eval ac_new_val=\$ac_env_${ac_var}_value
  2203. case $ac_old_set,$ac_new_set in
  2204. set,)
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2206. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2207. ac_cache_corrupted=: ;;
  2208. ,set)
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2210. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2211. ac_cache_corrupted=: ;;
  2212. ,);;
  2213. *)
  2214. if test "x$ac_old_val" != "x$ac_new_val"; then
  2215. # differences in whitespace do not lead to failure.
  2216. ac_old_val_w=`echo x $ac_old_val`
  2217. ac_new_val_w=`echo x $ac_new_val`
  2218. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2220. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2221. ac_cache_corrupted=:
  2222. else
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2224. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2225. eval $ac_var=\$ac_old_val
  2226. fi
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2228. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2230. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2231. fi;;
  2232. esac
  2233. # Pass precious variables to config.status.
  2234. if test "$ac_new_set" = set; then
  2235. case $ac_new_val in
  2236. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2237. *) ac_arg=$ac_var=$ac_new_val ;;
  2238. esac
  2239. case " $ac_configure_args " in
  2240. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2241. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2242. esac
  2243. fi
  2244. done
  2245. if $ac_cache_corrupted; then
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2249. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2250. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2251. fi
  2252. ## -------------------- ##
  2253. ## Main body of script. ##
  2254. ## -------------------- ##
  2255. ac_ext=c
  2256. ac_cpp='$CPP $CPPFLAGS'
  2257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2260. ac_aux_dir=
  2261. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2262. if test -f "$ac_dir/install-sh"; then
  2263. ac_aux_dir=$ac_dir
  2264. ac_install_sh="$ac_aux_dir/install-sh -c"
  2265. break
  2266. elif test -f "$ac_dir/install.sh"; then
  2267. ac_aux_dir=$ac_dir
  2268. ac_install_sh="$ac_aux_dir/install.sh -c"
  2269. break
  2270. elif test -f "$ac_dir/shtool"; then
  2271. ac_aux_dir=$ac_dir
  2272. ac_install_sh="$ac_aux_dir/shtool install -c"
  2273. break
  2274. fi
  2275. done
  2276. if test -z "$ac_aux_dir"; then
  2277. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2278. fi
  2279. # These three variables are undocumented and unsupported,
  2280. # and are intended to be withdrawn in a future Autoconf release.
  2281. # They can cause serious problems if a builder's source tree is in a directory
  2282. # whose full name contains unusual characters.
  2283. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2284. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2285. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2286. # Make sure we can run config.sub.
  2287. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2288. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2290. $as_echo_n "checking build system type... " >&6; }
  2291. if ${ac_cv_build+:} false; then :
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. ac_build_alias=$build_alias
  2295. test "x$ac_build_alias" = x &&
  2296. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2297. test "x$ac_build_alias" = x &&
  2298. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2299. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2300. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2301. fi
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2303. $as_echo "$ac_cv_build" >&6; }
  2304. case $ac_cv_build in
  2305. *-*-*) ;;
  2306. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2307. esac
  2308. build=$ac_cv_build
  2309. ac_save_IFS=$IFS; IFS='-'
  2310. set x $ac_cv_build
  2311. shift
  2312. build_cpu=$1
  2313. build_vendor=$2
  2314. shift; shift
  2315. # Remember, the first character of IFS is used to create $*,
  2316. # except with old shells:
  2317. build_os=$*
  2318. IFS=$ac_save_IFS
  2319. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2321. $as_echo_n "checking host system type... " >&6; }
  2322. if ${ac_cv_host+:} false; then :
  2323. $as_echo_n "(cached) " >&6
  2324. else
  2325. if test "x$host_alias" = x; then
  2326. ac_cv_host=$ac_cv_build
  2327. else
  2328. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2329. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2330. fi
  2331. fi
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2333. $as_echo "$ac_cv_host" >&6; }
  2334. case $ac_cv_host in
  2335. *-*-*) ;;
  2336. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2337. esac
  2338. host=$ac_cv_host
  2339. ac_save_IFS=$IFS; IFS='-'
  2340. set x $ac_cv_host
  2341. shift
  2342. host_cpu=$1
  2343. host_vendor=$2
  2344. shift; shift
  2345. # Remember, the first character of IFS is used to create $*,
  2346. # except with old shells:
  2347. host_os=$*
  2348. IFS=$ac_save_IFS
  2349. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2350. ARCHFLAGS="${ARCHFLAGS:=}"
  2351. CFLAGS="${CFLAGS:=}"
  2352. CPPFLAGS="${CPPFLAGS:=}"
  2353. CXXFLAGS="${CXXFLAGS:=}"
  2354. DSOFLAGS="${DSOFLAGS:=}"
  2355. LDFLAGS="${LDFLAGS:=}"
  2356. OPTIM="${OPTIM:=}"
  2357. ac_ext=c
  2358. ac_cpp='$CPP $CPPFLAGS'
  2359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2362. if test -n "$ac_tool_prefix"; then
  2363. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2364. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if ${ac_cv_prog_CC+:} false; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$CC"; then
  2371. ac_cv_prog_CC="$CC" # Let the user override the test.
  2372. else
  2373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2380. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. fi
  2388. fi
  2389. CC=$ac_cv_prog_CC
  2390. if test -n "$CC"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2392. $as_echo "$CC" >&6; }
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2395. $as_echo "no" >&6; }
  2396. fi
  2397. fi
  2398. if test -z "$ac_cv_prog_CC"; then
  2399. ac_ct_CC=$CC
  2400. # Extract the first word of "gcc", so it can be a program name with args.
  2401. set dummy gcc; ac_word=$2
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2403. $as_echo_n "checking for $ac_word... " >&6; }
  2404. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. if test -n "$ac_ct_CC"; then
  2408. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2417. ac_cv_prog_ac_ct_CC="gcc"
  2418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2427. if test -n "$ac_ct_CC"; then
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2429. $as_echo "$ac_ct_CC" >&6; }
  2430. else
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2432. $as_echo "no" >&6; }
  2433. fi
  2434. if test "x$ac_ct_CC" = x; then
  2435. CC=""
  2436. else
  2437. case $cross_compiling:$ac_tool_warned in
  2438. yes:)
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2441. ac_tool_warned=yes ;;
  2442. esac
  2443. CC=$ac_ct_CC
  2444. fi
  2445. else
  2446. CC="$ac_cv_prog_CC"
  2447. fi
  2448. if test -z "$CC"; then
  2449. if test -n "$ac_tool_prefix"; then
  2450. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2451. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2453. $as_echo_n "checking for $ac_word... " >&6; }
  2454. if ${ac_cv_prog_CC+:} false; then :
  2455. $as_echo_n "(cached) " >&6
  2456. else
  2457. if test -n "$CC"; then
  2458. ac_cv_prog_CC="$CC" # Let the user override the test.
  2459. else
  2460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2461. for as_dir in $PATH
  2462. do
  2463. IFS=$as_save_IFS
  2464. test -z "$as_dir" && as_dir=.
  2465. for ac_exec_ext in '' $ac_executable_extensions; do
  2466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2467. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2469. break 2
  2470. fi
  2471. done
  2472. done
  2473. IFS=$as_save_IFS
  2474. fi
  2475. fi
  2476. CC=$ac_cv_prog_CC
  2477. if test -n "$CC"; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2479. $as_echo "$CC" >&6; }
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2482. $as_echo "no" >&6; }
  2483. fi
  2484. fi
  2485. fi
  2486. if test -z "$CC"; then
  2487. # Extract the first word of "cc", so it can be a program name with args.
  2488. set dummy cc; ac_word=$2
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2490. $as_echo_n "checking for $ac_word... " >&6; }
  2491. if ${ac_cv_prog_CC+:} false; then :
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. if test -n "$CC"; then
  2495. ac_cv_prog_CC="$CC" # Let the user override the test.
  2496. else
  2497. ac_prog_rejected=no
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH
  2500. do
  2501. IFS=$as_save_IFS
  2502. test -z "$as_dir" && as_dir=.
  2503. for ac_exec_ext in '' $ac_executable_extensions; do
  2504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2505. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2506. ac_prog_rejected=yes
  2507. continue
  2508. fi
  2509. ac_cv_prog_CC="cc"
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511. break 2
  2512. fi
  2513. done
  2514. done
  2515. IFS=$as_save_IFS
  2516. if test $ac_prog_rejected = yes; then
  2517. # We found a bogon in the path, so make sure we never use it.
  2518. set dummy $ac_cv_prog_CC
  2519. shift
  2520. if test $# != 0; then
  2521. # We chose a different compiler from the bogus one.
  2522. # However, it has the same basename, so the bogon will be chosen
  2523. # first if we set CC to just the basename; use the full file name.
  2524. shift
  2525. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2526. fi
  2527. fi
  2528. fi
  2529. fi
  2530. CC=$ac_cv_prog_CC
  2531. if test -n "$CC"; then
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2533. $as_echo "$CC" >&6; }
  2534. else
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2536. $as_echo "no" >&6; }
  2537. fi
  2538. fi
  2539. if test -z "$CC"; then
  2540. if test -n "$ac_tool_prefix"; then
  2541. for ac_prog in cl.exe
  2542. do
  2543. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2544. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2546. $as_echo_n "checking for $ac_word... " >&6; }
  2547. if ${ac_cv_prog_CC+:} false; then :
  2548. $as_echo_n "(cached) " >&6
  2549. else
  2550. if test -n "$CC"; then
  2551. ac_cv_prog_CC="$CC" # Let the user override the test.
  2552. else
  2553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554. for as_dir in $PATH
  2555. do
  2556. IFS=$as_save_IFS
  2557. test -z "$as_dir" && as_dir=.
  2558. for ac_exec_ext in '' $ac_executable_extensions; do
  2559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2560. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2562. break 2
  2563. fi
  2564. done
  2565. done
  2566. IFS=$as_save_IFS
  2567. fi
  2568. fi
  2569. CC=$ac_cv_prog_CC
  2570. if test -n "$CC"; then
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2572. $as_echo "$CC" >&6; }
  2573. else
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2575. $as_echo "no" >&6; }
  2576. fi
  2577. test -n "$CC" && break
  2578. done
  2579. fi
  2580. if test -z "$CC"; then
  2581. ac_ct_CC=$CC
  2582. for ac_prog in cl.exe
  2583. do
  2584. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2585. set dummy $ac_prog; ac_word=$2
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2587. $as_echo_n "checking for $ac_word... " >&6; }
  2588. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. if test -n "$ac_ct_CC"; then
  2592. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2593. else
  2594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2595. for as_dir in $PATH
  2596. do
  2597. IFS=$as_save_IFS
  2598. test -z "$as_dir" && as_dir=.
  2599. for ac_exec_ext in '' $ac_executable_extensions; do
  2600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2601. ac_cv_prog_ac_ct_CC="$ac_prog"
  2602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2603. break 2
  2604. fi
  2605. done
  2606. done
  2607. IFS=$as_save_IFS
  2608. fi
  2609. fi
  2610. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2611. if test -n "$ac_ct_CC"; then
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2613. $as_echo "$ac_ct_CC" >&6; }
  2614. else
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2616. $as_echo "no" >&6; }
  2617. fi
  2618. test -n "$ac_ct_CC" && break
  2619. done
  2620. if test "x$ac_ct_CC" = x; then
  2621. CC=""
  2622. else
  2623. case $cross_compiling:$ac_tool_warned in
  2624. yes:)
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2627. ac_tool_warned=yes ;;
  2628. esac
  2629. CC=$ac_ct_CC
  2630. fi
  2631. fi
  2632. fi
  2633. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2635. as_fn_error $? "no acceptable C compiler found in \$PATH
  2636. See \`config.log' for more details" "$LINENO" 5; }
  2637. # Provide some information about the compiler.
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2639. set X $ac_compile
  2640. ac_compiler=$2
  2641. for ac_option in --version -v -V -qversion; do
  2642. { { ac_try="$ac_compiler $ac_option >&5"
  2643. case "(($ac_try" in
  2644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2645. *) ac_try_echo=$ac_try;;
  2646. esac
  2647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2648. $as_echo "$ac_try_echo"; } >&5
  2649. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2650. ac_status=$?
  2651. if test -s conftest.err; then
  2652. sed '10a\
  2653. ... rest of stderr output deleted ...
  2654. 10q' conftest.err >conftest.er1
  2655. cat conftest.er1 >&5
  2656. fi
  2657. rm -f conftest.er1 conftest.err
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2659. test $ac_status = 0; }
  2660. done
  2661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2662. /* end confdefs.h. */
  2663. int
  2664. main ()
  2665. {
  2666. ;
  2667. return 0;
  2668. }
  2669. _ACEOF
  2670. ac_clean_files_save=$ac_clean_files
  2671. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2672. # Try to create an executable without -o first, disregard a.out.
  2673. # It will help us diagnose broken compilers, and finding out an intuition
  2674. # of exeext.
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2676. $as_echo_n "checking whether the C compiler works... " >&6; }
  2677. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2678. # The possible output files:
  2679. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2680. ac_rmfiles=
  2681. for ac_file in $ac_files
  2682. do
  2683. case $ac_file in
  2684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2685. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2686. esac
  2687. done
  2688. rm -f $ac_rmfiles
  2689. if { { ac_try="$ac_link_default"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2695. $as_echo "$ac_try_echo"; } >&5
  2696. (eval "$ac_link_default") 2>&5
  2697. ac_status=$?
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2699. test $ac_status = 0; }; then :
  2700. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2701. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2702. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2703. # so that the user can short-circuit this test for compilers unknown to
  2704. # Autoconf.
  2705. for ac_file in $ac_files ''
  2706. do
  2707. test -f "$ac_file" || continue
  2708. case $ac_file in
  2709. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2710. ;;
  2711. [ab].out )
  2712. # We found the default executable, but exeext='' is most
  2713. # certainly right.
  2714. break;;
  2715. *.* )
  2716. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2717. then :; else
  2718. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2719. fi
  2720. # We set ac_cv_exeext here because the later test for it is not
  2721. # safe: cross compilers may not add the suffix if given an `-o'
  2722. # argument, so we may need to know it at that point already.
  2723. # Even if this section looks crufty: it has the advantage of
  2724. # actually working.
  2725. break;;
  2726. * )
  2727. break;;
  2728. esac
  2729. done
  2730. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2731. else
  2732. ac_file=''
  2733. fi
  2734. if test -z "$ac_file"; then :
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. $as_echo "$as_me: failed program was:" >&5
  2738. sed 's/^/| /' conftest.$ac_ext >&5
  2739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2741. as_fn_error 77 "C compiler cannot create executables
  2742. See \`config.log' for more details" "$LINENO" 5; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2745. $as_echo "yes" >&6; }
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2748. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2750. $as_echo "$ac_file" >&6; }
  2751. ac_exeext=$ac_cv_exeext
  2752. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2753. ac_clean_files=$ac_clean_files_save
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2755. $as_echo_n "checking for suffix of executables... " >&6; }
  2756. if { { ac_try="$ac_link"
  2757. case "(($ac_try" in
  2758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2759. *) ac_try_echo=$ac_try;;
  2760. esac
  2761. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2762. $as_echo "$ac_try_echo"; } >&5
  2763. (eval "$ac_link") 2>&5
  2764. ac_status=$?
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2766. test $ac_status = 0; }; then :
  2767. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2768. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2769. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2770. # `rm'.
  2771. for ac_file in conftest.exe conftest conftest.*; do
  2772. test -f "$ac_file" || continue
  2773. case $ac_file in
  2774. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2775. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2776. break;;
  2777. * ) break;;
  2778. esac
  2779. done
  2780. else
  2781. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2783. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2784. See \`config.log' for more details" "$LINENO" 5; }
  2785. fi
  2786. rm -f conftest conftest$ac_cv_exeext
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2788. $as_echo "$ac_cv_exeext" >&6; }
  2789. rm -f conftest.$ac_ext
  2790. EXEEXT=$ac_cv_exeext
  2791. ac_exeext=$EXEEXT
  2792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2793. /* end confdefs.h. */
  2794. #include <stdio.h>
  2795. int
  2796. main ()
  2797. {
  2798. FILE *f = fopen ("conftest.out", "w");
  2799. return ferror (f) || fclose (f) != 0;
  2800. ;
  2801. return 0;
  2802. }
  2803. _ACEOF
  2804. ac_clean_files="$ac_clean_files conftest.out"
  2805. # Check that the compiler produces executables we can run. If not, either
  2806. # the compiler is broken, or we cross compile.
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2808. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2809. if test "$cross_compiling" != yes; then
  2810. { { ac_try="$ac_link"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2816. $as_echo "$ac_try_echo"; } >&5
  2817. (eval "$ac_link") 2>&5
  2818. ac_status=$?
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2820. test $ac_status = 0; }
  2821. if { ac_try='./conftest$ac_cv_exeext'
  2822. { { case "(($ac_try" in
  2823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2824. *) ac_try_echo=$ac_try;;
  2825. esac
  2826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2827. $as_echo "$ac_try_echo"; } >&5
  2828. (eval "$ac_try") 2>&5
  2829. ac_status=$?
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2831. test $ac_status = 0; }; }; then
  2832. cross_compiling=no
  2833. else
  2834. if test "$cross_compiling" = maybe; then
  2835. cross_compiling=yes
  2836. else
  2837. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2839. as_fn_error $? "cannot run C compiled programs.
  2840. If you meant to cross compile, use \`--host'.
  2841. See \`config.log' for more details" "$LINENO" 5; }
  2842. fi
  2843. fi
  2844. fi
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2846. $as_echo "$cross_compiling" >&6; }
  2847. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2848. ac_clean_files=$ac_clean_files_save
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2850. $as_echo_n "checking for suffix of object files... " >&6; }
  2851. if ${ac_cv_objext+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.o conftest.obj
  2864. if { { ac_try="$ac_compile"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2870. $as_echo "$ac_try_echo"; } >&5
  2871. (eval "$ac_compile") 2>&5
  2872. ac_status=$?
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }; then :
  2875. for ac_file in conftest.o conftest.obj conftest.*; do
  2876. test -f "$ac_file" || continue;
  2877. case $ac_file in
  2878. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2879. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2880. break;;
  2881. esac
  2882. done
  2883. else
  2884. $as_echo "$as_me: failed program was:" >&5
  2885. sed 's/^/| /' conftest.$ac_ext >&5
  2886. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2888. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2889. See \`config.log' for more details" "$LINENO" 5; }
  2890. fi
  2891. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2892. fi
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2894. $as_echo "$ac_cv_objext" >&6; }
  2895. OBJEXT=$ac_cv_objext
  2896. ac_objext=$OBJEXT
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2898. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2899. if ${ac_cv_c_compiler_gnu+:} false; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. #ifndef __GNUC__
  2908. choke me
  2909. #endif
  2910. ;
  2911. return 0;
  2912. }
  2913. _ACEOF
  2914. if ac_fn_c_try_compile "$LINENO"; then :
  2915. ac_compiler_gnu=yes
  2916. else
  2917. ac_compiler_gnu=no
  2918. fi
  2919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2920. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2923. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2924. if test $ac_compiler_gnu = yes; then
  2925. GCC=yes
  2926. else
  2927. GCC=
  2928. fi
  2929. ac_test_CFLAGS=${CFLAGS+set}
  2930. ac_save_CFLAGS=$CFLAGS
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2932. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2933. if ${ac_cv_prog_cc_g+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. ac_save_c_werror_flag=$ac_c_werror_flag
  2937. ac_c_werror_flag=yes
  2938. ac_cv_prog_cc_g=no
  2939. CFLAGS="-g"
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. if ac_fn_c_try_compile "$LINENO"; then :
  2950. ac_cv_prog_cc_g=yes
  2951. else
  2952. CFLAGS=""
  2953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2954. /* end confdefs.h. */
  2955. int
  2956. main ()
  2957. {
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. if ac_fn_c_try_compile "$LINENO"; then :
  2963. else
  2964. ac_c_werror_flag=$ac_save_c_werror_flag
  2965. CFLAGS="-g"
  2966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. ;
  2972. return 0;
  2973. }
  2974. _ACEOF
  2975. if ac_fn_c_try_compile "$LINENO"; then :
  2976. ac_cv_prog_cc_g=yes
  2977. fi
  2978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2979. fi
  2980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2981. fi
  2982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2983. ac_c_werror_flag=$ac_save_c_werror_flag
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2986. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2987. if test "$ac_test_CFLAGS" = set; then
  2988. CFLAGS=$ac_save_CFLAGS
  2989. elif test $ac_cv_prog_cc_g = yes; then
  2990. if test "$GCC" = yes; then
  2991. CFLAGS="-g -O2"
  2992. else
  2993. CFLAGS="-g"
  2994. fi
  2995. else
  2996. if test "$GCC" = yes; then
  2997. CFLAGS="-O2"
  2998. else
  2999. CFLAGS=
  3000. fi
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3003. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3004. if ${ac_cv_prog_cc_c89+:} false; then :
  3005. $as_echo_n "(cached) " >&6
  3006. else
  3007. ac_cv_prog_cc_c89=no
  3008. ac_save_CC=$CC
  3009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3010. /* end confdefs.h. */
  3011. #include <stdarg.h>
  3012. #include <stdio.h>
  3013. struct stat;
  3014. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3015. struct buf { int x; };
  3016. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3017. static char *e (p, i)
  3018. char **p;
  3019. int i;
  3020. {
  3021. return p[i];
  3022. }
  3023. static char *f (char * (*g) (char **, int), char **p, ...)
  3024. {
  3025. char *s;
  3026. va_list v;
  3027. va_start (v,p);
  3028. s = g (p, va_arg (v,int));
  3029. va_end (v);
  3030. return s;
  3031. }
  3032. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3033. function prototypes and stuff, but not '\xHH' hex character constants.
  3034. These don't provoke an error unfortunately, instead are silently treated
  3035. as 'x'. The following induces an error, until -std is added to get
  3036. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3037. array size at least. It's necessary to write '\x00'==0 to get something
  3038. that's true only with -std. */
  3039. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3040. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3041. inside strings and character constants. */
  3042. #define FOO(x) 'x'
  3043. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3044. int test (int i, double x);
  3045. struct s1 {int (*f) (int a);};
  3046. struct s2 {int (*f) (double a);};
  3047. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3048. int argc;
  3049. char **argv;
  3050. int
  3051. main ()
  3052. {
  3053. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3054. ;
  3055. return 0;
  3056. }
  3057. _ACEOF
  3058. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3059. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3060. do
  3061. CC="$ac_save_CC $ac_arg"
  3062. if ac_fn_c_try_compile "$LINENO"; then :
  3063. ac_cv_prog_cc_c89=$ac_arg
  3064. fi
  3065. rm -f core conftest.err conftest.$ac_objext
  3066. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3067. done
  3068. rm -f conftest.$ac_ext
  3069. CC=$ac_save_CC
  3070. fi
  3071. # AC_CACHE_VAL
  3072. case "x$ac_cv_prog_cc_c89" in
  3073. x)
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3075. $as_echo "none needed" >&6; } ;;
  3076. xno)
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3078. $as_echo "unsupported" >&6; } ;;
  3079. *)
  3080. CC="$CC $ac_cv_prog_cc_c89"
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3082. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3083. esac
  3084. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3085. fi
  3086. ac_ext=c
  3087. ac_cpp='$CPP $CPPFLAGS'
  3088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3091. ac_ext=cpp
  3092. ac_cpp='$CXXCPP $CPPFLAGS'
  3093. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3094. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3095. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3096. if test -z "$CXX"; then
  3097. if test -n "$CCC"; then
  3098. CXX=$CCC
  3099. else
  3100. if test -n "$ac_tool_prefix"; then
  3101. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3102. do
  3103. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3104. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3106. $as_echo_n "checking for $ac_word... " >&6; }
  3107. if ${ac_cv_prog_CXX+:} false; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. if test -n "$CXX"; then
  3111. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3112. else
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in $PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for ac_exec_ext in '' $ac_executable_extensions; do
  3119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3120. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3122. break 2
  3123. fi
  3124. done
  3125. done
  3126. IFS=$as_save_IFS
  3127. fi
  3128. fi
  3129. CXX=$ac_cv_prog_CXX
  3130. if test -n "$CXX"; then
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3132. $as_echo "$CXX" >&6; }
  3133. else
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3135. $as_echo "no" >&6; }
  3136. fi
  3137. test -n "$CXX" && break
  3138. done
  3139. fi
  3140. if test -z "$CXX"; then
  3141. ac_ct_CXX=$CXX
  3142. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3143. do
  3144. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3145. set dummy $ac_prog; ac_word=$2
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3147. $as_echo_n "checking for $ac_word... " >&6; }
  3148. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3149. $as_echo_n "(cached) " >&6
  3150. else
  3151. if test -n "$ac_ct_CXX"; then
  3152. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3153. else
  3154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3155. for as_dir in $PATH
  3156. do
  3157. IFS=$as_save_IFS
  3158. test -z "$as_dir" && as_dir=.
  3159. for ac_exec_ext in '' $ac_executable_extensions; do
  3160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3161. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3163. break 2
  3164. fi
  3165. done
  3166. done
  3167. IFS=$as_save_IFS
  3168. fi
  3169. fi
  3170. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3171. if test -n "$ac_ct_CXX"; then
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3173. $as_echo "$ac_ct_CXX" >&6; }
  3174. else
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3176. $as_echo "no" >&6; }
  3177. fi
  3178. test -n "$ac_ct_CXX" && break
  3179. done
  3180. if test "x$ac_ct_CXX" = x; then
  3181. CXX="g++"
  3182. else
  3183. case $cross_compiling:$ac_tool_warned in
  3184. yes:)
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3187. ac_tool_warned=yes ;;
  3188. esac
  3189. CXX=$ac_ct_CXX
  3190. fi
  3191. fi
  3192. fi
  3193. fi
  3194. # Provide some information about the compiler.
  3195. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3196. set X $ac_compile
  3197. ac_compiler=$2
  3198. for ac_option in --version -v -V -qversion; do
  3199. { { ac_try="$ac_compiler $ac_option >&5"
  3200. case "(($ac_try" in
  3201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202. *) ac_try_echo=$ac_try;;
  3203. esac
  3204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3205. $as_echo "$ac_try_echo"; } >&5
  3206. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3207. ac_status=$?
  3208. if test -s conftest.err; then
  3209. sed '10a\
  3210. ... rest of stderr output deleted ...
  3211. 10q' conftest.err >conftest.er1
  3212. cat conftest.er1 >&5
  3213. fi
  3214. rm -f conftest.er1 conftest.err
  3215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3216. test $ac_status = 0; }
  3217. done
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3219. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3220. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3221. $as_echo_n "(cached) " >&6
  3222. else
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main ()
  3227. {
  3228. #ifndef __GNUC__
  3229. choke me
  3230. #endif
  3231. ;
  3232. return 0;
  3233. }
  3234. _ACEOF
  3235. if ac_fn_cxx_try_compile "$LINENO"; then :
  3236. ac_compiler_gnu=yes
  3237. else
  3238. ac_compiler_gnu=no
  3239. fi
  3240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3241. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3244. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3245. if test $ac_compiler_gnu = yes; then
  3246. GXX=yes
  3247. else
  3248. GXX=
  3249. fi
  3250. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3251. ac_save_CXXFLAGS=$CXXFLAGS
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3253. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3254. if ${ac_cv_prog_cxx_g+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3258. ac_cxx_werror_flag=yes
  3259. ac_cv_prog_cxx_g=no
  3260. CXXFLAGS="-g"
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. if ac_fn_cxx_try_compile "$LINENO"; then :
  3271. ac_cv_prog_cxx_g=yes
  3272. else
  3273. CXXFLAGS=""
  3274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end confdefs.h. */
  3276. int
  3277. main ()
  3278. {
  3279. ;
  3280. return 0;
  3281. }
  3282. _ACEOF
  3283. if ac_fn_cxx_try_compile "$LINENO"; then :
  3284. else
  3285. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3286. CXXFLAGS="-g"
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. int
  3290. main ()
  3291. {
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. if ac_fn_cxx_try_compile "$LINENO"; then :
  3297. ac_cv_prog_cxx_g=yes
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. fi
  3301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3302. fi
  3303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3304. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3307. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3308. if test "$ac_test_CXXFLAGS" = set; then
  3309. CXXFLAGS=$ac_save_CXXFLAGS
  3310. elif test $ac_cv_prog_cxx_g = yes; then
  3311. if test "$GXX" = yes; then
  3312. CXXFLAGS="-g -O2"
  3313. else
  3314. CXXFLAGS="-g"
  3315. fi
  3316. else
  3317. if test "$GXX" = yes; then
  3318. CXXFLAGS="-O2"
  3319. else
  3320. CXXFLAGS=
  3321. fi
  3322. fi
  3323. ac_ext=c
  3324. ac_cpp='$CPP $CPPFLAGS'
  3325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3328. case $host_os in
  3329. darwin*)
  3330. if test "x$with_archflags" != x ; then
  3331. CFLAGS="$CFLAGS $with_archflags"
  3332. fi
  3333. ;;
  3334. esac
  3335. FL_MAJOR_VERSION=1
  3336. FL_MINOR_VERSION=4
  3337. FL_PATCH_VERSION=0
  3338. FL_DSO_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
  3339. FL_ABI_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}.0
  3340. FL_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}.${FL_PATCH_VERSION}
  3341. BUILD=""
  3342. host_os_gui=$host_os
  3343. case $host_os in
  3344. cygwin*)
  3345. # Handle Cygwin option *first*, before all other tests.
  3346. # Check whether --enable-cygwin was given.
  3347. if test "${enable_cygwin+set}" = set; then :
  3348. enableval=$enable_cygwin;
  3349. fi
  3350. # Check whether --enable-x11 was given.
  3351. if test "${enable_x11+set}" = set; then :
  3352. enableval=$enable_x11;
  3353. fi
  3354. if test x$enable_cygwin = xyes; then
  3355. # we target Cygwin in combination with X11
  3356. if test x$enable_x11 = xyes; then
  3357. host_os_gui="X11$host_os"
  3358. fi
  3359. fi
  3360. ;;
  3361. darwin*)
  3362. if test x$enable_x11 = xyes; then
  3363. host_os_gui="X11"
  3364. OPTIM="-U__APPLE__ $OPTIM"
  3365. macosversion=`sw_vers -productVersion | cut -d. -f2`
  3366. if test $macosversion -ge "13" ; then
  3367. CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.8"
  3368. fi
  3369. fi
  3370. ;;
  3371. *)
  3372. ;;
  3373. esac
  3374. LINKFLTK="../lib/libfltk.a"
  3375. LINKFLTKFORMS="../lib/libfltk_forms.a"
  3376. LINKFLTKGL="../lib/libfltk_gl.a"
  3377. LINKFLTKIMG="../lib/libfltk_images.a"
  3378. GLDEMOS="gldemos"
  3379. LIBEXT=".a"
  3380. LIBNAME="../lib/libfltk.a"
  3381. FLLIBNAME="../lib/libfltk_forms.a"
  3382. GLLIBNAME="../lib/libfltk_gl.a"
  3383. IMGLIBNAME="../lib/libfltk_images.a"
  3384. CAIROLIBNAME="../lib/libfltk_cairo.a"
  3385. LIBBASENAME="libfltk.a"
  3386. FLLIBBASENAME="libfltk_forms.a"
  3387. GLLIBBASENAME="libfltk_gl.a"
  3388. IMGLIBBASENAME="libfltk_images.a"
  3389. CAIROLIBBASENAME="libfltk_cairo.a"
  3390. CAIRODIR=""
  3391. CAIROFLAGS=""
  3392. LINKFLTKCAIRO=""
  3393. FLTKCAIROOPTION=""
  3394. CAIROLIBS=""
  3395. # Check whether --enable-cairoext was given.
  3396. if test "${enable_cairoext+set}" = set; then :
  3397. enableval=$enable_cairoext;
  3398. fi
  3399. # Check whether --enable-cairo was given.
  3400. if test "${enable_cairo+set}" = set; then :
  3401. enableval=$enable_cairo;
  3402. fi
  3403. if test x$enable_cairoext = xyes; then
  3404. $as_echo "#define FLTK_USE_CAIRO 1" >>confdefs.h
  3405. $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
  3406. CAIRODIR="cairo"
  3407. CAIROFLAGS="`pkg-config --cflags cairo`"
  3408. CAIROLIBS="-lcairo -lpixman-1"
  3409. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  3410. LINKFLTKCAIRO="../lib/libfltk_cairo.a"
  3411. FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
  3412. LIBS="$CAIROLIBS $LIBS"
  3413. LINKFLTK+=" $LINKFLTKCAIRO"
  3414. else
  3415. if test x$enable_cairo = xyes; then
  3416. $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
  3417. CAIRODIR="cairo"
  3418. CAIROFLAGS="`pkg-config --cflags cairo`"
  3419. CAIROLIBS="-lcairo -lpixman-1"
  3420. CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
  3421. LINKFLTKCAIRO="../lib/libfltk_cairo.a"
  3422. FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
  3423. fi
  3424. fi
  3425. has_abiversion=""
  3426. # Check whether --with-abiversion was given.
  3427. if test "${with_abiversion+set}" = set; then :
  3428. withval=$with_abiversion;
  3429. fi
  3430. has_abiversion="$with_abiversion"
  3431. if test "$has_abiversion" = "yes" ; then
  3432. has_abiversion=""
  3433. else
  3434. if test "$has_abiversion" = "no" ; then
  3435. has_abiversion=""
  3436. fi
  3437. fi
  3438. if test ! "$has_abiversion" = "" ; then
  3439. cat >>confdefs.h <<_ACEOF
  3440. #define FL_ABI_VERSION $has_abiversion
  3441. _ACEOF
  3442. fi
  3443. # Check whether --enable-debug was given.
  3444. if test "${enable_debug+set}" = set; then :
  3445. enableval=$enable_debug;
  3446. fi
  3447. if test x$enable_debug = xyes; then
  3448. DEBUGFLAG="-g "
  3449. else
  3450. DEBUGFLAG=""
  3451. fi
  3452. # Check whether --enable-cp936 was given.
  3453. if test "${enable_cp936+set}" = set; then :
  3454. enableval=$enable_cp936;
  3455. fi
  3456. if test x$enable_cp936 = xyes; then
  3457. CFLAGS="$CFLAGS -DCP936"
  3458. fi
  3459. # Check whether --enable-gl was given.
  3460. if test "${enable_gl+set}" = set; then :
  3461. enableval=$enable_gl;
  3462. fi
  3463. # Check whether --enable-shared was given.
  3464. if test "${enable_shared+set}" = set; then :
  3465. enableval=$enable_shared;
  3466. fi
  3467. if test x$enable_shared = xyes; then
  3468. PICFLAG=1
  3469. SHAREDSUFFIX=""
  3470. FLUID="fluid-shared"
  3471. case $host_os in
  3472. darwin*)
  3473. DSONAME="libfltk.$FL_DSO_VERSION.dylib"
  3474. FLDSONAME="libfltk_forms.$FL_DSO_VERSION.dylib"
  3475. GLDSONAME="libfltk_gl.$FL_DSO_VERSION.dylib"
  3476. IMGDSONAME="libfltk_images.$FL_DSO_VERSION.dylib"
  3477. CAIRODSONAME="libfltk_cairo.$FL_DSO_VERSION.dylib"
  3478. DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o"
  3479. ;;
  3480. solaris*)
  3481. DSONAME="libfltk.so.$FL_DSO_VERSION"
  3482. FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
  3483. GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
  3484. IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
  3485. CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
  3486. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
  3487. if test "x$libdir" != "x/usr/lib"; then
  3488. DSOLINK="-R$libdir"
  3489. fi
  3490. ;;
  3491. hpux*)
  3492. DSONAME="libfltk.sl.$FL_DSO_VERSION"
  3493. FLDSONAME="libfltk_forms.sl.$FL_DSO_VERSION"
  3494. GLDSONAME="libfltk_gl.sl.$FL_DSO_VERSION"
  3495. IMGDSONAME="libfltk_images.sl.$FL_DSO_VERSION"
  3496. CAIRODSONAME="libfltk_cairo.sl.$FL_DSO_VERSION"
  3497. DSOCOMMAND="ld \$(DSOFLAGS) -b -z +h \$@ $DEBUGFLAG -o"
  3498. if test "x$libdir" != "x/usr/lib"; then
  3499. DSOLINK="-Wl,-rpath,$libdir"
  3500. fi
  3501. ;;
  3502. irix*)
  3503. DSONAME="libfltk.so.$FL_DSO_VERSION"
  3504. FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
  3505. GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
  3506. IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
  3507. CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
  3508. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@,-set_version,sgi1.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
  3509. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32" -a "x$libdir" != "x/usr/lib64"; then
  3510. DSOLINK="-Wl,-rpath,$libdir"
  3511. fi
  3512. ;;
  3513. osf*)
  3514. DSONAME="libfltk.so.$FL_DSO_VERSION"
  3515. FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
  3516. GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
  3517. IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
  3518. CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
  3519. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  3520. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32"; then
  3521. DSOLINK="-Wl,-rpath,$libdir"
  3522. fi
  3523. ;;
  3524. linux* | *bsd*)
  3525. DSONAME="libfltk.so.$FL_DSO_VERSION"
  3526. FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
  3527. GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
  3528. IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
  3529. CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
  3530. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
  3531. # See if the compiler supports -fvisibility...
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fvisibility" >&5
  3533. $as_echo_n "checking if the compiler supports -fvisibility... " >&6; }
  3534. if ${ac_cv_cxx_fvisibility+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. OLDCXXFLAGS="$CXXFLAGS"
  3538. CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
  3539. ac_ext=cpp
  3540. ac_cpp='$CXXCPP $CPPFLAGS'
  3541. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3542. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3543. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3545. /* end confdefs.h. */
  3546. int
  3547. main ()
  3548. {
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. if ac_fn_cxx_try_compile "$LINENO"; then :
  3554. ac_cv_cxx_fvisibility=yes
  3555. else
  3556. ac_cv_cxx_fvisibility=no
  3557. fi
  3558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3559. CXXFLAGS="$OLDCXXFLAGS"
  3560. ac_ext=c
  3561. ac_cpp='$CPP $CPPFLAGS'
  3562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_fvisibility" >&5
  3567. $as_echo "$ac_cv_cxx_fvisibility" >&6; }
  3568. if test x"$ac_cv_cxx_fvisibility" = xyes; then
  3569. OPTIM="$OPTIM -fvisibility=hidden"
  3570. fi
  3571. # See if the compiler supports -fvisibility-inlines-hidden...
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fvisibility-inlines-hidden" >&5
  3573. $as_echo_n "checking if the compiler supports -fvisibility-inlines-hidden... " >&6; }
  3574. if ${ac_cv_cxx_fvisibility_inlines+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. OLDCXXFLAGS="$CXXFLAGS"
  3578. CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
  3579. ac_ext=cpp
  3580. ac_cpp='$CXXCPP $CPPFLAGS'
  3581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3585. /* end confdefs.h. */
  3586. int
  3587. main ()
  3588. {
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. if ac_fn_cxx_try_compile "$LINENO"; then :
  3594. ac_cv_cxx_fvisibility_inlines=yes
  3595. else
  3596. ac_cv_cxx_fvisibility_inlines=no
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3599. CXXFLAGS="$OLDCXXFLAGS"
  3600. ac_ext=c
  3601. ac_cpp='$CPP $CPPFLAGS'
  3602. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3603. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3604. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_fvisibility_inlines" >&5
  3607. $as_echo "$ac_cv_cxx_fvisibility_inlines" >&6; }
  3608. if test x"$ac_cv_cxx_fvisibility_inlines" = xyes; then
  3609. CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
  3610. fi
  3611. if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then
  3612. DSOLINK="-Wl,-rpath,$libdir"
  3613. fi
  3614. ;;
  3615. aix*)
  3616. DSONAME="libfltk_s.a"
  3617. FLDSONAME="libfltk_forms_s.a"
  3618. GLDSONAME="libfltk_gl_s.a"
  3619. IMGDSONAME="libfltk_images_s.a"
  3620. CAIRODSONAME="libfltk_cairo_s.a"
  3621. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
  3622. SHAREDSUFFIX="_s"
  3623. ;;
  3624. cygwin* | mingw*)
  3625. PICFLAG=0
  3626. if test x$enable_cygwin != xyes; then
  3627. DSONAME="mgwfltknox-$FL_DSO_VERSION.dll"
  3628. FLDSONAME="mgwfltknox_forms-$FL_DSO_VERSION.dll"
  3629. GLDSONAME="mgwfltknox_gl-$FL_DSO_VERSION.dll"
  3630. IMGDSONAME="mgwfltknox_images-$FL_DSO_VERSION.dll"
  3631. CAIRODSONAME="mgwfltknox_cairo-$FL_DSO_VERSION.dll"
  3632. else
  3633. if test x$enable_x11 = xyes; then
  3634. DSONAME="cygfltk-$FL_DSO_VERSION.dll"
  3635. FLDSONAME="cygfltk_forms-$FL_DSO_VERSION.dll"
  3636. GLDSONAME="cygfltk_gl-$FL_DSO_VERSION.dll"
  3637. IMGDSONAME="cygfltk_images-$FL_DSO_VERSION.dll"
  3638. CAIRODSONAME="cygfltk_cairo-$FL_DSO_VERSION.dll"
  3639. else
  3640. DSONAME="cygfltknox-$FL_DSO_VERSION.dll"
  3641. FLDSONAME="cygfltknox_forms-$FL_DSO_VERSION.dll"
  3642. GLDSONAME="cygfltknox_gl-$FL_DSO_VERSION.dll"
  3643. IMGDSONAME="cygfltknox_images-$FL_DSO_VERSION.dll"
  3644. CAIRODSONAME="cygfltknox_cairo-$FL_DSO_VERSION.dll"
  3645. fi
  3646. fi
  3647. #-----------------------------------------------------------
  3648. # -Wl,--enable-runtime-pseudo-reloc: See str 1585
  3649. # appears to be necessary for older binutils versions < 2.16
  3650. #-----------------------------------------------------------
  3651. LDFLAGS="$LDFLAGS -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
  3652. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -shared \
  3653. -Wl,--whole-archive -Wl,--export-all-symbols \
  3654. -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-import \
  3655. -Wl,--enable-auto-image-base -o \$@"
  3656. ;;
  3657. *)
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&5
  3659. $as_echo "$as_me: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&2;}
  3660. DSONAME="libfltk.so.$FL_DSO_VERSION"
  3661. FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
  3662. GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
  3663. IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
  3664. CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
  3665. DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
  3666. ;;
  3667. esac
  3668. LINKSHARED="-L../src $FLTKCAIROOPTION -lfltk_images$SHAREDSUFFIX -lfltk_forms$SHAREDSUFFIX -lfltk$SHAREDSUFFIX"
  3669. else
  3670. DSOCOMMAND="echo"
  3671. DSOLINK=""
  3672. DSONAME=""
  3673. FLDSONAME=""
  3674. GLDSONAME=""
  3675. IMGDSONAME=""
  3676. CAIRODSONAME=""
  3677. PICFLAG=0
  3678. SHAREDSUFFIX=""
  3679. FLUID="fluid"
  3680. LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
  3681. fi
  3682. # Check whether --enable-threads was given.
  3683. if test "${enable_threads+set}" = set; then :
  3684. enableval=$enable_threads;
  3685. fi
  3686. # Check whether --with-optim was given.
  3687. if test "${with_optim+set}" = set; then :
  3688. withval=$with_optim;
  3689. fi
  3690. # Check whether --with-archflags was given.
  3691. if test "${with_archflags+set}" = set; then :
  3692. withval=$with_archflags; ARCHFLAGS="$withval"
  3693. fi
  3694. # Find a good install program. We prefer a C program (faster),
  3695. # so one script is as good as another. But avoid the broken or
  3696. # incompatible versions:
  3697. # SysV /etc/install, /usr/sbin/install
  3698. # SunOS /usr/etc/install
  3699. # IRIX /sbin/install
  3700. # AIX /bin/install
  3701. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3702. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3703. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3704. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3705. # OS/2's system install, which has a completely different semantic
  3706. # ./install, which can be erroneously created by make from ./install.sh.
  3707. # Reject install programs that cannot install multiple files.
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3709. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3710. if test -z "$INSTALL"; then
  3711. if ${ac_cv_path_install+:} false; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3715. for as_dir in $PATH
  3716. do
  3717. IFS=$as_save_IFS
  3718. test -z "$as_dir" && as_dir=.
  3719. # Account for people who put trailing slashes in PATH elements.
  3720. case $as_dir/ in #((
  3721. ./ | .// | /[cC]/* | \
  3722. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3723. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3724. /usr/ucb/* ) ;;
  3725. *)
  3726. # OSF1 and SCO ODT 3.0 have their own names for install.
  3727. # Don't use installbsd from OSF since it installs stuff as root
  3728. # by default.
  3729. for ac_prog in ginstall scoinst install; do
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3732. if test $ac_prog = install &&
  3733. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3734. # AIX install. It has an incompatible calling convention.
  3735. :
  3736. elif test $ac_prog = install &&
  3737. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3738. # program-specific install script used by HP pwplus--don't use.
  3739. :
  3740. else
  3741. rm -rf conftest.one conftest.two conftest.dir
  3742. echo one > conftest.one
  3743. echo two > conftest.two
  3744. mkdir conftest.dir
  3745. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3746. test -s conftest.one && test -s conftest.two &&
  3747. test -s conftest.dir/conftest.one &&
  3748. test -s conftest.dir/conftest.two
  3749. then
  3750. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3751. break 3
  3752. fi
  3753. fi
  3754. fi
  3755. done
  3756. done
  3757. ;;
  3758. esac
  3759. done
  3760. IFS=$as_save_IFS
  3761. rm -rf conftest.one conftest.two conftest.dir
  3762. fi
  3763. if test "${ac_cv_path_install+set}" = set; then
  3764. INSTALL=$ac_cv_path_install
  3765. else
  3766. # As a last resort, use the slow shell script. Don't cache a
  3767. # value for INSTALL within a source directory, because that will
  3768. # break other packages using the cache if that directory is
  3769. # removed, or if the value is a relative name.
  3770. INSTALL=$ac_install_sh
  3771. fi
  3772. fi
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3774. $as_echo "$INSTALL" >&6; }
  3775. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3776. # It thinks the first close brace ends the variable substitution.
  3777. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3778. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3779. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3780. case $host_os in
  3781. osf*)
  3782. INSTALL="`pwd`/install-sh -c"
  3783. ;;
  3784. esac
  3785. if test "$INSTALL" = "$ac_install_sh"; then
  3786. # Use full path to install-sh script...
  3787. INSTALL="`pwd`/install-sh -c"
  3788. fi
  3789. # Extract the first word of "nroff", so it can be a program name with args.
  3790. set dummy nroff; ac_word=$2
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3792. $as_echo_n "checking for $ac_word... " >&6; }
  3793. if ${ac_cv_path_NROFF+:} false; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. case $NROFF in
  3797. [\\/]* | ?:[\\/]*)
  3798. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  3799. ;;
  3800. *)
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3808. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. ;;
  3816. esac
  3817. fi
  3818. NROFF=$ac_cv_path_NROFF
  3819. if test -n "$NROFF"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  3821. $as_echo "$NROFF" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. if test "x$NROFF" = "x:"; then
  3827. # Try groff instead of nroff...
  3828. # Extract the first word of "groff", so it can be a program name with args.
  3829. set dummy groff; ac_word=$2
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. $as_echo_n "checking for $ac_word... " >&6; }
  3832. if ${ac_cv_path_GROFF+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. case $GROFF in
  3836. [\\/]* | ?:[\\/]*)
  3837. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  3838. ;;
  3839. *)
  3840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3841. for as_dir in $PATH
  3842. do
  3843. IFS=$as_save_IFS
  3844. test -z "$as_dir" && as_dir=.
  3845. for ac_exec_ext in '' $ac_executable_extensions; do
  3846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3847. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  3848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3849. break 2
  3850. fi
  3851. done
  3852. done
  3853. IFS=$as_save_IFS
  3854. ;;
  3855. esac
  3856. fi
  3857. GROFF=$ac_cv_path_GROFF
  3858. if test -n "$GROFF"; then
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  3860. $as_echo "$GROFF" >&6; }
  3861. else
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. $as_echo "no" >&6; }
  3864. fi
  3865. if test "x$GROFF" = "x:"; then
  3866. NROFF="echo"
  3867. else
  3868. NROFF="$GROFF -T ascii"
  3869. fi
  3870. fi
  3871. # Extract the first word of "doxygen", so it can be a program name with args.
  3872. set dummy doxygen; ac_word=$2
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3874. $as_echo_n "checking for $ac_word... " >&6; }
  3875. if ${ac_cv_path_DOXYDOC+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. case $DOXYDOC in
  3879. [\\/]* | ?:[\\/]*)
  3880. ac_cv_path_DOXYDOC="$DOXYDOC" # Let the user override the test with a path.
  3881. ;;
  3882. *)
  3883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3884. for as_dir in $PATH
  3885. do
  3886. IFS=$as_save_IFS
  3887. test -z "$as_dir" && as_dir=.
  3888. for ac_exec_ext in '' $ac_executable_extensions; do
  3889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3890. ac_cv_path_DOXYDOC="$as_dir/$ac_word$ac_exec_ext"
  3891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3892. break 2
  3893. fi
  3894. done
  3895. done
  3896. IFS=$as_save_IFS
  3897. ;;
  3898. esac
  3899. fi
  3900. DOXYDOC=$ac_cv_path_DOXYDOC
  3901. if test -n "$DOXYDOC"; then
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYDOC" >&5
  3903. $as_echo "$DOXYDOC" >&6; }
  3904. else
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3906. $as_echo "no" >&6; }
  3907. fi
  3908. if test -n "$ac_tool_prefix"; then
  3909. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3910. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_RANLIB+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$RANLIB"; then
  3917. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. RANLIB=$ac_cv_prog_RANLIB
  3936. if test -n "$RANLIB"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3938. $as_echo "$RANLIB" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. fi
  3944. if test -z "$ac_cv_prog_RANLIB"; then
  3945. ac_ct_RANLIB=$RANLIB
  3946. # Extract the first word of "ranlib", so it can be a program name with args.
  3947. set dummy ranlib; ac_word=$2
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3949. $as_echo_n "checking for $ac_word... " >&6; }
  3950. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3951. $as_echo_n "(cached) " >&6
  3952. else
  3953. if test -n "$ac_ct_RANLIB"; then
  3954. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3955. else
  3956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3957. for as_dir in $PATH
  3958. do
  3959. IFS=$as_save_IFS
  3960. test -z "$as_dir" && as_dir=.
  3961. for ac_exec_ext in '' $ac_executable_extensions; do
  3962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3963. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3965. break 2
  3966. fi
  3967. done
  3968. done
  3969. IFS=$as_save_IFS
  3970. fi
  3971. fi
  3972. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3973. if test -n "$ac_ct_RANLIB"; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3975. $as_echo "$ac_ct_RANLIB" >&6; }
  3976. else
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3978. $as_echo "no" >&6; }
  3979. fi
  3980. if test "x$ac_ct_RANLIB" = x; then
  3981. RANLIB=":"
  3982. else
  3983. case $cross_compiling:$ac_tool_warned in
  3984. yes:)
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3987. ac_tool_warned=yes ;;
  3988. esac
  3989. RANLIB=$ac_ct_RANLIB
  3990. fi
  3991. else
  3992. RANLIB="$ac_cv_prog_RANLIB"
  3993. fi
  3994. if test -n "$ac_tool_prefix"; then
  3995. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3996. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3998. $as_echo_n "checking for $ac_word... " >&6; }
  3999. if ${ac_cv_path_AR+:} false; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. case $AR in
  4003. [\\/]* | ?:[\\/]*)
  4004. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4005. ;;
  4006. *)
  4007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4008. for as_dir in $PATH
  4009. do
  4010. IFS=$as_save_IFS
  4011. test -z "$as_dir" && as_dir=.
  4012. for ac_exec_ext in '' $ac_executable_extensions; do
  4013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4014. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4016. break 2
  4017. fi
  4018. done
  4019. done
  4020. IFS=$as_save_IFS
  4021. ;;
  4022. esac
  4023. fi
  4024. AR=$ac_cv_path_AR
  4025. if test -n "$AR"; then
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4027. $as_echo "$AR" >&6; }
  4028. else
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4030. $as_echo "no" >&6; }
  4031. fi
  4032. fi
  4033. if test -z "$ac_cv_path_AR"; then
  4034. ac_pt_AR=$AR
  4035. # Extract the first word of "ar", so it can be a program name with args.
  4036. set dummy ar; ac_word=$2
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4038. $as_echo_n "checking for $ac_word... " >&6; }
  4039. if ${ac_cv_path_ac_pt_AR+:} false; then :
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. case $ac_pt_AR in
  4043. [\\/]* | ?:[\\/]*)
  4044. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  4045. ;;
  4046. *)
  4047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4048. for as_dir in $PATH
  4049. do
  4050. IFS=$as_save_IFS
  4051. test -z "$as_dir" && as_dir=.
  4052. for ac_exec_ext in '' $ac_executable_extensions; do
  4053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4054. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  4055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4056. break 2
  4057. fi
  4058. done
  4059. done
  4060. IFS=$as_save_IFS
  4061. ;;
  4062. esac
  4063. fi
  4064. ac_pt_AR=$ac_cv_path_ac_pt_AR
  4065. if test -n "$ac_pt_AR"; then
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  4067. $as_echo "$ac_pt_AR" >&6; }
  4068. else
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4070. $as_echo "no" >&6; }
  4071. fi
  4072. if test "x$ac_pt_AR" = x; then
  4073. AR=""
  4074. else
  4075. case $cross_compiling:$ac_tool_warned in
  4076. yes:)
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4079. ac_tool_warned=yes ;;
  4080. esac
  4081. AR=$ac_pt_AR
  4082. fi
  4083. else
  4084. AR="$ac_cv_path_AR"
  4085. fi
  4086. if test "x$AR" = "x:"; then
  4087. as_fn_error $? "Configure could not find the library archiver, aborting." "$LINENO" 5
  4088. fi
  4089. if test "x$RANLIB" != "x:"; then
  4090. LIBCOMMAND="$AR cr"
  4091. else
  4092. LIBCOMMAND="$AR crs"
  4093. fi
  4094. if test -n "$ac_tool_prefix"; then
  4095. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  4096. set dummy ${ac_tool_prefix}windres; ac_word=$2
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4098. $as_echo_n "checking for $ac_word... " >&6; }
  4099. if ${ac_cv_path_RC+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. case $RC in
  4103. [\\/]* | ?:[\\/]*)
  4104. ac_cv_path_RC="$RC" # Let the user override the test with a path.
  4105. ;;
  4106. *)
  4107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4108. for as_dir in $PATH
  4109. do
  4110. IFS=$as_save_IFS
  4111. test -z "$as_dir" && as_dir=.
  4112. for ac_exec_ext in '' $ac_executable_extensions; do
  4113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4114. ac_cv_path_RC="$as_dir/$ac_word$ac_exec_ext"
  4115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4116. break 2
  4117. fi
  4118. done
  4119. done
  4120. IFS=$as_save_IFS
  4121. ;;
  4122. esac
  4123. fi
  4124. RC=$ac_cv_path_RC
  4125. if test -n "$RC"; then
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  4127. $as_echo "$RC" >&6; }
  4128. else
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4130. $as_echo "no" >&6; }
  4131. fi
  4132. fi
  4133. if test -z "$ac_cv_path_RC"; then
  4134. ac_pt_RC=$RC
  4135. # Extract the first word of "windres", so it can be a program name with args.
  4136. set dummy windres; ac_word=$2
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4138. $as_echo_n "checking for $ac_word... " >&6; }
  4139. if ${ac_cv_path_ac_pt_RC+:} false; then :
  4140. $as_echo_n "(cached) " >&6
  4141. else
  4142. case $ac_pt_RC in
  4143. [\\/]* | ?:[\\/]*)
  4144. ac_cv_path_ac_pt_RC="$ac_pt_RC" # Let the user override the test with a path.
  4145. ;;
  4146. *)
  4147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4148. for as_dir in $PATH
  4149. do
  4150. IFS=$as_save_IFS
  4151. test -z "$as_dir" && as_dir=.
  4152. for ac_exec_ext in '' $ac_executable_extensions; do
  4153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4154. ac_cv_path_ac_pt_RC="$as_dir/$ac_word$ac_exec_ext"
  4155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4156. break 2
  4157. fi
  4158. done
  4159. done
  4160. IFS=$as_save_IFS
  4161. ;;
  4162. esac
  4163. fi
  4164. ac_pt_RC=$ac_cv_path_ac_pt_RC
  4165. if test -n "$ac_pt_RC"; then
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RC" >&5
  4167. $as_echo "$ac_pt_RC" >&6; }
  4168. else
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4170. $as_echo "no" >&6; }
  4171. fi
  4172. if test "x$ac_pt_RC" = x; then
  4173. RC=""
  4174. else
  4175. case $cross_compiling:$ac_tool_warned in
  4176. yes:)
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4179. ac_tool_warned=yes ;;
  4180. esac
  4181. RC=$ac_pt_RC
  4182. fi
  4183. else
  4184. RC="$ac_cv_path_RC"
  4185. fi
  4186. ac_ext=c
  4187. ac_cpp='$CPP $CPPFLAGS'
  4188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4192. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4193. # On Suns, sometimes $CPP names a directory.
  4194. if test -n "$CPP" && test -d "$CPP"; then
  4195. CPP=
  4196. fi
  4197. if test -z "$CPP"; then
  4198. if ${ac_cv_prog_CPP+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. # Double quotes because CPP needs to be expanded
  4202. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4203. do
  4204. ac_preproc_ok=false
  4205. for ac_c_preproc_warn_flag in '' yes
  4206. do
  4207. # Use a header file that comes with gcc, so configuring glibc
  4208. # with a fresh cross-compiler works.
  4209. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4210. # <limits.h> exists even on freestanding compilers.
  4211. # On the NeXT, cc -E runs the code through the compiler's parser,
  4212. # not just through cpp. "Syntax error" is here to catch this case.
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. #ifdef __STDC__
  4216. # include <limits.h>
  4217. #else
  4218. # include <assert.h>
  4219. #endif
  4220. Syntax error
  4221. _ACEOF
  4222. if ac_fn_c_try_cpp "$LINENO"; then :
  4223. else
  4224. # Broken: fails on valid input.
  4225. continue
  4226. fi
  4227. rm -f conftest.err conftest.i conftest.$ac_ext
  4228. # OK, works on sane cases. Now check whether nonexistent headers
  4229. # can be detected and how.
  4230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4231. /* end confdefs.h. */
  4232. #include <ac_nonexistent.h>
  4233. _ACEOF
  4234. if ac_fn_c_try_cpp "$LINENO"; then :
  4235. # Broken: success on invalid input.
  4236. continue
  4237. else
  4238. # Passes both tests.
  4239. ac_preproc_ok=:
  4240. break
  4241. fi
  4242. rm -f conftest.err conftest.i conftest.$ac_ext
  4243. done
  4244. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4245. rm -f conftest.i conftest.err conftest.$ac_ext
  4246. if $ac_preproc_ok; then :
  4247. break
  4248. fi
  4249. done
  4250. ac_cv_prog_CPP=$CPP
  4251. fi
  4252. CPP=$ac_cv_prog_CPP
  4253. else
  4254. ac_cv_prog_CPP=$CPP
  4255. fi
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4257. $as_echo "$CPP" >&6; }
  4258. ac_preproc_ok=false
  4259. for ac_c_preproc_warn_flag in '' yes
  4260. do
  4261. # Use a header file that comes with gcc, so configuring glibc
  4262. # with a fresh cross-compiler works.
  4263. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4264. # <limits.h> exists even on freestanding compilers.
  4265. # On the NeXT, cc -E runs the code through the compiler's parser,
  4266. # not just through cpp. "Syntax error" is here to catch this case.
  4267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4268. /* end confdefs.h. */
  4269. #ifdef __STDC__
  4270. # include <limits.h>
  4271. #else
  4272. # include <assert.h>
  4273. #endif
  4274. Syntax error
  4275. _ACEOF
  4276. if ac_fn_c_try_cpp "$LINENO"; then :
  4277. else
  4278. # Broken: fails on valid input.
  4279. continue
  4280. fi
  4281. rm -f conftest.err conftest.i conftest.$ac_ext
  4282. # OK, works on sane cases. Now check whether nonexistent headers
  4283. # can be detected and how.
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. #include <ac_nonexistent.h>
  4287. _ACEOF
  4288. if ac_fn_c_try_cpp "$LINENO"; then :
  4289. # Broken: success on invalid input.
  4290. continue
  4291. else
  4292. # Passes both tests.
  4293. ac_preproc_ok=:
  4294. break
  4295. fi
  4296. rm -f conftest.err conftest.i conftest.$ac_ext
  4297. done
  4298. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4299. rm -f conftest.i conftest.err conftest.$ac_ext
  4300. if $ac_preproc_ok; then :
  4301. else
  4302. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4303. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4304. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4305. See \`config.log' for more details" "$LINENO" 5; }
  4306. fi
  4307. ac_ext=c
  4308. ac_cpp='$CPP $CPPFLAGS'
  4309. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4310. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4311. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4313. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4314. if ${ac_cv_path_GREP+:} false; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. if test -z "$GREP"; then
  4318. ac_path_GREP_found=false
  4319. # Loop through the user's path and test for each of PROGNAME-LIST
  4320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4321. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4322. do
  4323. IFS=$as_save_IFS
  4324. test -z "$as_dir" && as_dir=.
  4325. for ac_prog in grep ggrep; do
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4328. as_fn_executable_p "$ac_path_GREP" || continue
  4329. # Check for GNU ac_path_GREP and select it if it is found.
  4330. # Check for GNU $ac_path_GREP
  4331. case `"$ac_path_GREP" --version 2>&1` in
  4332. *GNU*)
  4333. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4334. *)
  4335. ac_count=0
  4336. $as_echo_n 0123456789 >"conftest.in"
  4337. while :
  4338. do
  4339. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4340. mv "conftest.tmp" "conftest.in"
  4341. cp "conftest.in" "conftest.nl"
  4342. $as_echo 'GREP' >> "conftest.nl"
  4343. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4344. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4345. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4346. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4347. # Best one so far, save it but keep looking for a better one
  4348. ac_cv_path_GREP="$ac_path_GREP"
  4349. ac_path_GREP_max=$ac_count
  4350. fi
  4351. # 10*(2^10) chars as input seems more than enough
  4352. test $ac_count -gt 10 && break
  4353. done
  4354. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4355. esac
  4356. $ac_path_GREP_found && break 3
  4357. done
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. if test -z "$ac_cv_path_GREP"; then
  4362. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4363. fi
  4364. else
  4365. ac_cv_path_GREP=$GREP
  4366. fi
  4367. fi
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4369. $as_echo "$ac_cv_path_GREP" >&6; }
  4370. GREP="$ac_cv_path_GREP"
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4372. $as_echo_n "checking for egrep... " >&6; }
  4373. if ${ac_cv_path_EGREP+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4377. then ac_cv_path_EGREP="$GREP -E"
  4378. else
  4379. if test -z "$EGREP"; then
  4380. ac_path_EGREP_found=false
  4381. # Loop through the user's path and test for each of PROGNAME-LIST
  4382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4384. do
  4385. IFS=$as_save_IFS
  4386. test -z "$as_dir" && as_dir=.
  4387. for ac_prog in egrep; do
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4390. as_fn_executable_p "$ac_path_EGREP" || continue
  4391. # Check for GNU ac_path_EGREP and select it if it is found.
  4392. # Check for GNU $ac_path_EGREP
  4393. case `"$ac_path_EGREP" --version 2>&1` in
  4394. *GNU*)
  4395. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4396. *)
  4397. ac_count=0
  4398. $as_echo_n 0123456789 >"conftest.in"
  4399. while :
  4400. do
  4401. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4402. mv "conftest.tmp" "conftest.in"
  4403. cp "conftest.in" "conftest.nl"
  4404. $as_echo 'EGREP' >> "conftest.nl"
  4405. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4406. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4407. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4408. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4409. # Best one so far, save it but keep looking for a better one
  4410. ac_cv_path_EGREP="$ac_path_EGREP"
  4411. ac_path_EGREP_max=$ac_count
  4412. fi
  4413. # 10*(2^10) chars as input seems more than enough
  4414. test $ac_count -gt 10 && break
  4415. done
  4416. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4417. esac
  4418. $ac_path_EGREP_found && break 3
  4419. done
  4420. done
  4421. done
  4422. IFS=$as_save_IFS
  4423. if test -z "$ac_cv_path_EGREP"; then
  4424. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4425. fi
  4426. else
  4427. ac_cv_path_EGREP=$EGREP
  4428. fi
  4429. fi
  4430. fi
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4432. $as_echo "$ac_cv_path_EGREP" >&6; }
  4433. EGREP="$ac_cv_path_EGREP"
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4435. $as_echo_n "checking for ANSI C header files... " >&6; }
  4436. if ${ac_cv_header_stdc+:} false; then :
  4437. $as_echo_n "(cached) " >&6
  4438. else
  4439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4440. /* end confdefs.h. */
  4441. #include <stdlib.h>
  4442. #include <stdarg.h>
  4443. #include <string.h>
  4444. #include <float.h>
  4445. int
  4446. main ()
  4447. {
  4448. ;
  4449. return 0;
  4450. }
  4451. _ACEOF
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. ac_cv_header_stdc=yes
  4454. else
  4455. ac_cv_header_stdc=no
  4456. fi
  4457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4458. if test $ac_cv_header_stdc = yes; then
  4459. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. #include <string.h>
  4463. _ACEOF
  4464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4465. $EGREP "memchr" >/dev/null 2>&1; then :
  4466. else
  4467. ac_cv_header_stdc=no
  4468. fi
  4469. rm -f conftest*
  4470. fi
  4471. if test $ac_cv_header_stdc = yes; then
  4472. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4474. /* end confdefs.h. */
  4475. #include <stdlib.h>
  4476. _ACEOF
  4477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4478. $EGREP "free" >/dev/null 2>&1; then :
  4479. else
  4480. ac_cv_header_stdc=no
  4481. fi
  4482. rm -f conftest*
  4483. fi
  4484. if test $ac_cv_header_stdc = yes; then
  4485. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4486. if test "$cross_compiling" = yes; then :
  4487. :
  4488. else
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. #include <ctype.h>
  4492. #include <stdlib.h>
  4493. #if ((' ' & 0x0FF) == 0x020)
  4494. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4495. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4496. #else
  4497. # define ISLOWER(c) \
  4498. (('a' <= (c) && (c) <= 'i') \
  4499. || ('j' <= (c) && (c) <= 'r') \
  4500. || ('s' <= (c) && (c) <= 'z'))
  4501. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4502. #endif
  4503. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4504. int
  4505. main ()
  4506. {
  4507. int i;
  4508. for (i = 0; i < 256; i++)
  4509. if (XOR (islower (i), ISLOWER (i))
  4510. || toupper (i) != TOUPPER (i))
  4511. return 2;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. if ac_fn_c_try_run "$LINENO"; then :
  4516. else
  4517. ac_cv_header_stdc=no
  4518. fi
  4519. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4520. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4521. fi
  4522. fi
  4523. fi
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4525. $as_echo "$ac_cv_header_stdc" >&6; }
  4526. if test $ac_cv_header_stdc = yes; then
  4527. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4528. fi
  4529. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4530. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4531. inttypes.h stdint.h unistd.h
  4532. do :
  4533. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4534. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4535. "
  4536. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4537. cat >>confdefs.h <<_ACEOF
  4538. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4539. _ACEOF
  4540. fi
  4541. done
  4542. # The cast to long int works around a bug in the HP C Compiler
  4543. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4544. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4545. # This bug is HP SR number 8606223364.
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  4547. $as_echo_n "checking size of short... " >&6; }
  4548. if ${ac_cv_sizeof_short+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  4552. else
  4553. if test "$ac_cv_type_short" = yes; then
  4554. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4556. as_fn_error 77 "cannot compute sizeof (short)
  4557. See \`config.log' for more details" "$LINENO" 5; }
  4558. else
  4559. ac_cv_sizeof_short=0
  4560. fi
  4561. fi
  4562. fi
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  4564. $as_echo "$ac_cv_sizeof_short" >&6; }
  4565. cat >>confdefs.h <<_ACEOF
  4566. #define SIZEOF_SHORT $ac_cv_sizeof_short
  4567. _ACEOF
  4568. # The cast to long int works around a bug in the HP C Compiler
  4569. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4570. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4571. # This bug is HP SR number 8606223364.
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4573. $as_echo_n "checking size of int... " >&6; }
  4574. if ${ac_cv_sizeof_int+:} false; then :
  4575. $as_echo_n "(cached) " >&6
  4576. else
  4577. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  4578. else
  4579. if test "$ac_cv_type_int" = yes; then
  4580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4582. as_fn_error 77 "cannot compute sizeof (int)
  4583. See \`config.log' for more details" "$LINENO" 5; }
  4584. else
  4585. ac_cv_sizeof_int=0
  4586. fi
  4587. fi
  4588. fi
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4590. $as_echo "$ac_cv_sizeof_int" >&6; }
  4591. cat >>confdefs.h <<_ACEOF
  4592. #define SIZEOF_INT $ac_cv_sizeof_int
  4593. _ACEOF
  4594. # The cast to long int works around a bug in the HP C Compiler
  4595. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4596. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4597. # This bug is HP SR number 8606223364.
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4599. $as_echo_n "checking size of long... " >&6; }
  4600. if ${ac_cv_sizeof_long+:} false; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  4604. else
  4605. if test "$ac_cv_type_long" = yes; then
  4606. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4608. as_fn_error 77 "cannot compute sizeof (long)
  4609. See \`config.log' for more details" "$LINENO" 5; }
  4610. else
  4611. ac_cv_sizeof_long=0
  4612. fi
  4613. fi
  4614. fi
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4616. $as_echo "$ac_cv_sizeof_long" >&6; }
  4617. cat >>confdefs.h <<_ACEOF
  4618. #define SIZEOF_LONG $ac_cv_sizeof_long
  4619. _ACEOF
  4620. if test $ac_cv_sizeof_short -eq 2; then
  4621. $as_echo "#define U16 unsigned short" >>confdefs.h
  4622. fi
  4623. if test $ac_cv_sizeof_int -eq 4; then
  4624. $as_echo "#define U32 unsigned" >>confdefs.h
  4625. else
  4626. if test $ac_cv_sizeof_long -eq 4; then
  4627. $as_echo "#define U32 unsigned long" >>confdefs.h
  4628. fi
  4629. fi
  4630. case $host_os in
  4631. darwin*)
  4632. ;;
  4633. *)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4635. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4636. if ${ac_cv_c_bigendian+:} false; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. ac_cv_c_bigendian=unknown
  4640. # See if we're dealing with a universal compiler.
  4641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4642. /* end confdefs.h. */
  4643. #ifndef __APPLE_CC__
  4644. not a universal capable compiler
  4645. #endif
  4646. typedef int dummy;
  4647. _ACEOF
  4648. if ac_fn_c_try_compile "$LINENO"; then :
  4649. # Check for potential -arch flags. It is not universal unless
  4650. # there are at least two -arch flags with different values.
  4651. ac_arch=
  4652. ac_prev=
  4653. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4654. if test -n "$ac_prev"; then
  4655. case $ac_word in
  4656. i?86 | x86_64 | ppc | ppc64)
  4657. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4658. ac_arch=$ac_word
  4659. else
  4660. ac_cv_c_bigendian=universal
  4661. break
  4662. fi
  4663. ;;
  4664. esac
  4665. ac_prev=
  4666. elif test "x$ac_word" = "x-arch"; then
  4667. ac_prev=arch
  4668. fi
  4669. done
  4670. fi
  4671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4672. if test $ac_cv_c_bigendian = unknown; then
  4673. # See if sys/param.h defines the BYTE_ORDER macro.
  4674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4675. /* end confdefs.h. */
  4676. #include <sys/types.h>
  4677. #include <sys/param.h>
  4678. int
  4679. main ()
  4680. {
  4681. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4682. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4683. && LITTLE_ENDIAN)
  4684. bogus endian macros
  4685. #endif
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. if ac_fn_c_try_compile "$LINENO"; then :
  4691. # It does; now see whether it defined to BIG_ENDIAN or not.
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. #include <sys/types.h>
  4695. #include <sys/param.h>
  4696. int
  4697. main ()
  4698. {
  4699. #if BYTE_ORDER != BIG_ENDIAN
  4700. not big endian
  4701. #endif
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. if ac_fn_c_try_compile "$LINENO"; then :
  4707. ac_cv_c_bigendian=yes
  4708. else
  4709. ac_cv_c_bigendian=no
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4714. fi
  4715. if test $ac_cv_c_bigendian = unknown; then
  4716. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. #include <limits.h>
  4720. int
  4721. main ()
  4722. {
  4723. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4724. bogus endian macros
  4725. #endif
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. #include <limits.h>
  4735. int
  4736. main ()
  4737. {
  4738. #ifndef _BIG_ENDIAN
  4739. not big endian
  4740. #endif
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"; then :
  4746. ac_cv_c_bigendian=yes
  4747. else
  4748. ac_cv_c_bigendian=no
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. fi
  4754. if test $ac_cv_c_bigendian = unknown; then
  4755. # Compile a test program.
  4756. if test "$cross_compiling" = yes; then :
  4757. # Try to guess by grepping values from an object file.
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. short int ascii_mm[] =
  4761. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4762. short int ascii_ii[] =
  4763. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4764. int use_ascii (int i) {
  4765. return ascii_mm[i] + ascii_ii[i];
  4766. }
  4767. short int ebcdic_ii[] =
  4768. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4769. short int ebcdic_mm[] =
  4770. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4771. int use_ebcdic (int i) {
  4772. return ebcdic_mm[i] + ebcdic_ii[i];
  4773. }
  4774. extern int foo;
  4775. int
  4776. main ()
  4777. {
  4778. return use_ascii (foo) == use_ebcdic (foo);
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4785. ac_cv_c_bigendian=yes
  4786. fi
  4787. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4788. if test "$ac_cv_c_bigendian" = unknown; then
  4789. ac_cv_c_bigendian=no
  4790. else
  4791. # finding both strings is unlikely to happen, but who knows?
  4792. ac_cv_c_bigendian=unknown
  4793. fi
  4794. fi
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. else
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. $ac_includes_default
  4801. int
  4802. main ()
  4803. {
  4804. /* Are we little or big endian? From Harbison&Steele. */
  4805. union
  4806. {
  4807. long int l;
  4808. char c[sizeof (long int)];
  4809. } u;
  4810. u.l = 1;
  4811. return u.c[sizeof (long int) - 1] == 1;
  4812. ;
  4813. return 0;
  4814. }
  4815. _ACEOF
  4816. if ac_fn_c_try_run "$LINENO"; then :
  4817. ac_cv_c_bigendian=no
  4818. else
  4819. ac_cv_c_bigendian=yes
  4820. fi
  4821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4822. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4823. fi
  4824. fi
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4827. $as_echo "$ac_cv_c_bigendian" >&6; }
  4828. case $ac_cv_c_bigendian in #(
  4829. yes)
  4830. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4831. ;; #(
  4832. no)
  4833. ;; #(
  4834. universal)
  4835. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4836. ;; #(
  4837. *)
  4838. as_fn_error $? "unknown endianness
  4839. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4840. esac
  4841. if test $ac_cv_sizeof_int -eq 8; then
  4842. $as_echo "#define U64 unsigned" >>confdefs.h
  4843. else
  4844. if test $ac_cv_sizeof_long -eq 8; then
  4845. $as_echo "#define U64 unsigned long" >>confdefs.h
  4846. fi
  4847. fi
  4848. ;;
  4849. esac
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
  4851. $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
  4852. if ${ac_cv_cxx_bool+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. ac_ext=cpp
  4856. ac_cpp='$CXXCPP $CPPFLAGS'
  4857. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4858. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4859. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4861. /* end confdefs.h. */
  4862. int f(int x){return 1;}
  4863. int f(char x){return 1;}
  4864. int f(bool x){return 1;}
  4865. int
  4866. main ()
  4867. {
  4868. bool b = true;
  4869. return f(b);
  4870. ;
  4871. return 0;
  4872. }
  4873. _ACEOF
  4874. if ac_fn_cxx_try_compile "$LINENO"; then :
  4875. ac_cv_cxx_bool=yes
  4876. else
  4877. ac_cv_cxx_bool=no
  4878. fi
  4879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4880. ac_ext=c
  4881. ac_cpp='$CPP $CPPFLAGS'
  4882. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4883. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4884. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4885. fi
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
  4887. $as_echo "$ac_cv_cxx_bool" >&6; }
  4888. if test "$ac_cv_cxx_bool" != yes; then
  4889. CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS"
  4890. fi
  4891. ac_header_dirent=no
  4892. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4893. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4895. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4896. if eval \${$as_ac_Header+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4900. /* end confdefs.h. */
  4901. #include <sys/types.h>
  4902. #include <$ac_hdr>
  4903. int
  4904. main ()
  4905. {
  4906. if ((DIR *) 0)
  4907. return 0;
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. if ac_fn_c_try_compile "$LINENO"; then :
  4913. eval "$as_ac_Header=yes"
  4914. else
  4915. eval "$as_ac_Header=no"
  4916. fi
  4917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4918. fi
  4919. eval ac_res=\$$as_ac_Header
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4921. $as_echo "$ac_res" >&6; }
  4922. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4923. cat >>confdefs.h <<_ACEOF
  4924. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4925. _ACEOF
  4926. ac_header_dirent=$ac_hdr; break
  4927. fi
  4928. done
  4929. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4930. if test $ac_header_dirent = dirent.h; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4932. $as_echo_n "checking for library containing opendir... " >&6; }
  4933. if ${ac_cv_search_opendir+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. ac_func_search_save_LIBS=$LIBS
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939. /* Override any GCC internal prototype to avoid an error.
  4940. Use char because int might match the return type of a GCC
  4941. builtin and then its argument prototype would still apply. */
  4942. #ifdef __cplusplus
  4943. extern "C"
  4944. #endif
  4945. char opendir ();
  4946. int
  4947. main ()
  4948. {
  4949. return opendir ();
  4950. ;
  4951. return 0;
  4952. }
  4953. _ACEOF
  4954. for ac_lib in '' dir; do
  4955. if test -z "$ac_lib"; then
  4956. ac_res="none required"
  4957. else
  4958. ac_res=-l$ac_lib
  4959. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4960. fi
  4961. if ac_fn_c_try_link "$LINENO"; then :
  4962. ac_cv_search_opendir=$ac_res
  4963. fi
  4964. rm -f core conftest.err conftest.$ac_objext \
  4965. conftest$ac_exeext
  4966. if ${ac_cv_search_opendir+:} false; then :
  4967. break
  4968. fi
  4969. done
  4970. if ${ac_cv_search_opendir+:} false; then :
  4971. else
  4972. ac_cv_search_opendir=no
  4973. fi
  4974. rm conftest.$ac_ext
  4975. LIBS=$ac_func_search_save_LIBS
  4976. fi
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4978. $as_echo "$ac_cv_search_opendir" >&6; }
  4979. ac_res=$ac_cv_search_opendir
  4980. if test "$ac_res" != no; then :
  4981. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4982. fi
  4983. else
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4985. $as_echo_n "checking for library containing opendir... " >&6; }
  4986. if ${ac_cv_search_opendir+:} false; then :
  4987. $as_echo_n "(cached) " >&6
  4988. else
  4989. ac_func_search_save_LIBS=$LIBS
  4990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4991. /* end confdefs.h. */
  4992. /* Override any GCC internal prototype to avoid an error.
  4993. Use char because int might match the return type of a GCC
  4994. builtin and then its argument prototype would still apply. */
  4995. #ifdef __cplusplus
  4996. extern "C"
  4997. #endif
  4998. char opendir ();
  4999. int
  5000. main ()
  5001. {
  5002. return opendir ();
  5003. ;
  5004. return 0;
  5005. }
  5006. _ACEOF
  5007. for ac_lib in '' x; do
  5008. if test -z "$ac_lib"; then
  5009. ac_res="none required"
  5010. else
  5011. ac_res=-l$ac_lib
  5012. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5013. fi
  5014. if ac_fn_c_try_link "$LINENO"; then :
  5015. ac_cv_search_opendir=$ac_res
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext \
  5018. conftest$ac_exeext
  5019. if ${ac_cv_search_opendir+:} false; then :
  5020. break
  5021. fi
  5022. done
  5023. if ${ac_cv_search_opendir+:} false; then :
  5024. else
  5025. ac_cv_search_opendir=no
  5026. fi
  5027. rm conftest.$ac_ext
  5028. LIBS=$ac_func_search_save_LIBS
  5029. fi
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5031. $as_echo "$ac_cv_search_opendir" >&6; }
  5032. ac_res=$ac_cv_search_opendir
  5033. if test "$ac_res" != no; then :
  5034. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5035. fi
  5036. fi
  5037. for ac_header in sys/select.h sys/stdtypes.h
  5038. do :
  5039. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5040. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5041. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5042. cat >>confdefs.h <<_ACEOF
  5043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5044. _ACEOF
  5045. fi
  5046. done
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the POSIX compatible scandir() prototype" >&5
  5048. $as_echo_n "checking whether we have the POSIX compatible scandir() prototype... " >&6; }
  5049. if ${ac_cv_cxx_scandir_posix+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. ac_ext=cpp
  5053. ac_cpp='$CXXCPP $CPPFLAGS'
  5054. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5055. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5056. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5058. /* end confdefs.h. */
  5059. #include <dirent.h>
  5060. int func (const char *d, dirent ***list, void *sort) {
  5061. int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
  5062. return n;
  5063. }
  5064. int
  5065. main ()
  5066. {
  5067. ;
  5068. return 0;
  5069. }
  5070. _ACEOF
  5071. if ac_fn_cxx_try_compile "$LINENO"; then :
  5072. ac_cv_cxx_scandir_posix=yes
  5073. else
  5074. ac_cv_cxx_scandir_posix=no
  5075. fi
  5076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5077. ac_ext=c
  5078. ac_cpp='$CPP $CPPFLAGS'
  5079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5082. fi
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_scandir_posix" >&5
  5084. $as_echo "$ac_cv_cxx_scandir_posix" >&6; }
  5085. if test "$ac_cv_cxx_scandir_posix" = yes; then
  5086. $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
  5087. $as_echo "#define HAVE_SCANDIR_POSIX 1" >>confdefs.h
  5088. else
  5089. ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
  5090. if test "x$ac_cv_func_scandir" = xyes; then :
  5091. case $host_os in
  5092. solaris* | *qnx*)
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using $host_os scandir emulation function." >&5
  5094. $as_echo "$as_me: WARNING: Not using $host_os scandir emulation function." >&2;}
  5095. ;;
  5096. *)
  5097. $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
  5098. ;;
  5099. esac
  5100. fi
  5101. fi
  5102. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  5103. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  5104. case $host_os in
  5105. hpux1020)
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&5
  5107. $as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&2;}
  5108. ;;
  5109. osf4)
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&5
  5111. $as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&2;}
  5112. ;;
  5113. *)
  5114. $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
  5115. ;;
  5116. esac
  5117. fi
  5118. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  5119. if test "x$ac_cv_func_snprintf" = xyes; then :
  5120. case $host_os in
  5121. hpux1020)
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&5
  5123. $as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&2;}
  5124. ;;
  5125. osf4)
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&5
  5127. $as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&2;}
  5128. ;;
  5129. *)
  5130. $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
  5131. ;;
  5132. esac
  5133. fi
  5134. for ac_header in strings.h
  5135. do :
  5136. ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  5137. if test "x$ac_cv_header_strings_h" = xyes; then :
  5138. cat >>confdefs.h <<_ACEOF
  5139. #define HAVE_STRINGS_H 1
  5140. _ACEOF
  5141. fi
  5142. done
  5143. for ac_func in strcasecmp strlcat strlcpy
  5144. do :
  5145. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5146. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5147. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5148. cat >>confdefs.h <<_ACEOF
  5149. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5150. _ACEOF
  5151. fi
  5152. done
  5153. for ac_header in locale.h
  5154. do :
  5155. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  5156. if test "x$ac_cv_header_locale_h" = xyes; then :
  5157. cat >>confdefs.h <<_ACEOF
  5158. #define HAVE_LOCALE_H 1
  5159. _ACEOF
  5160. fi
  5161. done
  5162. for ac_func in localeconv
  5163. do :
  5164. ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
  5165. if test "x$ac_cv_func_localeconv" = xyes; then :
  5166. cat >>confdefs.h <<_ACEOF
  5167. #define HAVE_LOCALECONV 1
  5168. _ACEOF
  5169. fi
  5170. done
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
  5172. $as_echo_n "checking for library containing pow... " >&6; }
  5173. if ${ac_cv_search_pow+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. ac_func_search_save_LIBS=$LIBS
  5177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5178. /* end confdefs.h. */
  5179. /* Override any GCC internal prototype to avoid an error.
  5180. Use char because int might match the return type of a GCC
  5181. builtin and then its argument prototype would still apply. */
  5182. #ifdef __cplusplus
  5183. extern "C"
  5184. #endif
  5185. char pow ();
  5186. int
  5187. main ()
  5188. {
  5189. return pow ();
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. for ac_lib in '' m; do
  5195. if test -z "$ac_lib"; then
  5196. ac_res="none required"
  5197. else
  5198. ac_res=-l$ac_lib
  5199. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5200. fi
  5201. if ac_fn_c_try_link "$LINENO"; then :
  5202. ac_cv_search_pow=$ac_res
  5203. fi
  5204. rm -f core conftest.err conftest.$ac_objext \
  5205. conftest$ac_exeext
  5206. if ${ac_cv_search_pow+:} false; then :
  5207. break
  5208. fi
  5209. done
  5210. if ${ac_cv_search_pow+:} false; then :
  5211. else
  5212. ac_cv_search_pow=no
  5213. fi
  5214. rm conftest.$ac_ext
  5215. LIBS=$ac_func_search_save_LIBS
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
  5218. $as_echo "$ac_cv_search_pow" >&6; }
  5219. ac_res=$ac_cv_search_pow
  5220. if test "$ac_res" != no; then :
  5221. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5222. fi
  5223. # Check whether --enable-largefile was given.
  5224. if test "${enable_largefile+set}" = set; then :
  5225. enableval=$enable_largefile;
  5226. fi
  5227. if test "$enable_largefile" != no; then
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5229. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5230. if ${ac_cv_sys_largefile_CC+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. ac_cv_sys_largefile_CC=no
  5234. if test "$GCC" != yes; then
  5235. ac_save_CC=$CC
  5236. while :; do
  5237. # IRIX 6.2 and later do not support large files by default,
  5238. # so use the C compiler's -n32 option if that helps.
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. #include <sys/types.h>
  5242. /* Check that off_t can represent 2**63 - 1 correctly.
  5243. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5244. since some C++ compilers masquerading as C compilers
  5245. incorrectly reject 9223372036854775807. */
  5246. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5247. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5248. && LARGE_OFF_T % 2147483647 == 1)
  5249. ? 1 : -1];
  5250. int
  5251. main ()
  5252. {
  5253. ;
  5254. return 0;
  5255. }
  5256. _ACEOF
  5257. if ac_fn_c_try_compile "$LINENO"; then :
  5258. break
  5259. fi
  5260. rm -f core conftest.err conftest.$ac_objext
  5261. CC="$CC -n32"
  5262. if ac_fn_c_try_compile "$LINENO"; then :
  5263. ac_cv_sys_largefile_CC=' -n32'; break
  5264. fi
  5265. rm -f core conftest.err conftest.$ac_objext
  5266. break
  5267. done
  5268. CC=$ac_save_CC
  5269. rm -f conftest.$ac_ext
  5270. fi
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5273. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5274. if test "$ac_cv_sys_largefile_CC" != no; then
  5275. CC=$CC$ac_cv_sys_largefile_CC
  5276. fi
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5278. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5279. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. while :; do
  5283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5284. /* end confdefs.h. */
  5285. #include <sys/types.h>
  5286. /* Check that off_t can represent 2**63 - 1 correctly.
  5287. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5288. since some C++ compilers masquerading as C compilers
  5289. incorrectly reject 9223372036854775807. */
  5290. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5291. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5292. && LARGE_OFF_T % 2147483647 == 1)
  5293. ? 1 : -1];
  5294. int
  5295. main ()
  5296. {
  5297. ;
  5298. return 0;
  5299. }
  5300. _ACEOF
  5301. if ac_fn_c_try_compile "$LINENO"; then :
  5302. ac_cv_sys_file_offset_bits=no; break
  5303. fi
  5304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5306. /* end confdefs.h. */
  5307. #define _FILE_OFFSET_BITS 64
  5308. #include <sys/types.h>
  5309. /* Check that off_t can represent 2**63 - 1 correctly.
  5310. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5311. since some C++ compilers masquerading as C compilers
  5312. incorrectly reject 9223372036854775807. */
  5313. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5314. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5315. && LARGE_OFF_T % 2147483647 == 1)
  5316. ? 1 : -1];
  5317. int
  5318. main ()
  5319. {
  5320. ;
  5321. return 0;
  5322. }
  5323. _ACEOF
  5324. if ac_fn_c_try_compile "$LINENO"; then :
  5325. ac_cv_sys_file_offset_bits=64; break
  5326. fi
  5327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5328. ac_cv_sys_file_offset_bits=unknown
  5329. break
  5330. done
  5331. fi
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5333. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5334. case $ac_cv_sys_file_offset_bits in #(
  5335. no | unknown) ;;
  5336. *)
  5337. cat >>confdefs.h <<_ACEOF
  5338. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5339. _ACEOF
  5340. ;;
  5341. esac
  5342. rm -rf conftest*
  5343. if test $ac_cv_sys_file_offset_bits = unknown; then
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5345. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5346. if ${ac_cv_sys_large_files+:} false; then :
  5347. $as_echo_n "(cached) " >&6
  5348. else
  5349. while :; do
  5350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5351. /* end confdefs.h. */
  5352. #include <sys/types.h>
  5353. /* Check that off_t can represent 2**63 - 1 correctly.
  5354. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5355. since some C++ compilers masquerading as C compilers
  5356. incorrectly reject 9223372036854775807. */
  5357. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5358. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5359. && LARGE_OFF_T % 2147483647 == 1)
  5360. ? 1 : -1];
  5361. int
  5362. main ()
  5363. {
  5364. ;
  5365. return 0;
  5366. }
  5367. _ACEOF
  5368. if ac_fn_c_try_compile "$LINENO"; then :
  5369. ac_cv_sys_large_files=no; break
  5370. fi
  5371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5373. /* end confdefs.h. */
  5374. #define _LARGE_FILES 1
  5375. #include <sys/types.h>
  5376. /* Check that off_t can represent 2**63 - 1 correctly.
  5377. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5378. since some C++ compilers masquerading as C compilers
  5379. incorrectly reject 9223372036854775807. */
  5380. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5381. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5382. && LARGE_OFF_T % 2147483647 == 1)
  5383. ? 1 : -1];
  5384. int
  5385. main ()
  5386. {
  5387. ;
  5388. return 0;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_c_try_compile "$LINENO"; then :
  5392. ac_cv_sys_large_files=1; break
  5393. fi
  5394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5395. ac_cv_sys_large_files=unknown
  5396. break
  5397. done
  5398. fi
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5400. $as_echo "$ac_cv_sys_large_files" >&6; }
  5401. case $ac_cv_sys_large_files in #(
  5402. no | unknown) ;;
  5403. *)
  5404. cat >>confdefs.h <<_ACEOF
  5405. #define _LARGE_FILES $ac_cv_sys_large_files
  5406. _ACEOF
  5407. ;;
  5408. esac
  5409. rm -rf conftest*
  5410. fi
  5411. fi
  5412. LARGEFILE=""
  5413. if test x$enable_largefile != xno; then
  5414. LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
  5415. if test x$ac_cv_sys_large_files = x1; then
  5416. LARGEFILE="$LARGEFILE -D_LARGE_FILES"
  5417. fi
  5418. if test x$ac_cv_sys_file_offset_bits = x64; then
  5419. LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
  5420. fi
  5421. fi
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5423. $as_echo_n "checking for long long int... " >&6; }
  5424. if ${ac_cv_c_long_long+:} false; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. if test "$GCC" = yes; then
  5428. ac_cv_c_long_long=yes
  5429. else
  5430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5431. /* end confdefs.h. */
  5432. int
  5433. main ()
  5434. {
  5435. long long int i;
  5436. ;
  5437. return 0;
  5438. }
  5439. _ACEOF
  5440. if ac_fn_c_try_compile "$LINENO"; then :
  5441. ac_cv_c_long_long=yes
  5442. else
  5443. ac_cv_c_long_long=no
  5444. fi
  5445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5446. fi
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
  5449. $as_echo "$ac_cv_c_long_long" >&6; }
  5450. if test $ac_cv_c_long_long = yes; then
  5451. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  5452. fi
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  5454. $as_echo_n "checking for library containing dlsym... " >&6; }
  5455. if ${ac_cv_search_dlsym+:} false; then :
  5456. $as_echo_n "(cached) " >&6
  5457. else
  5458. ac_func_search_save_LIBS=$LIBS
  5459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5460. /* end confdefs.h. */
  5461. /* Override any GCC internal prototype to avoid an error.
  5462. Use char because int might match the return type of a GCC
  5463. builtin and then its argument prototype would still apply. */
  5464. #ifdef __cplusplus
  5465. extern "C"
  5466. #endif
  5467. char dlsym ();
  5468. int
  5469. main ()
  5470. {
  5471. return dlsym ();
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. for ac_lib in '' dl; do
  5477. if test -z "$ac_lib"; then
  5478. ac_res="none required"
  5479. else
  5480. ac_res=-l$ac_lib
  5481. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5482. fi
  5483. if ac_fn_c_try_link "$LINENO"; then :
  5484. ac_cv_search_dlsym=$ac_res
  5485. fi
  5486. rm -f core conftest.err conftest.$ac_objext \
  5487. conftest$ac_exeext
  5488. if ${ac_cv_search_dlsym+:} false; then :
  5489. break
  5490. fi
  5491. done
  5492. if ${ac_cv_search_dlsym+:} false; then :
  5493. else
  5494. ac_cv_search_dlsym=no
  5495. fi
  5496. rm conftest.$ac_ext
  5497. LIBS=$ac_func_search_save_LIBS
  5498. fi
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  5500. $as_echo "$ac_cv_search_dlsym" >&6; }
  5501. ac_res=$ac_cv_search_dlsym
  5502. if test "$ac_res" != no; then :
  5503. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5504. $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
  5505. fi
  5506. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5507. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5508. $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
  5509. fi
  5510. AUDIOLIBS=""
  5511. case $host_os in
  5512. cygwin* | mingw*)
  5513. AUDIOLIBS="-lwinmm"
  5514. ;;
  5515. darwin*)
  5516. AUDIOLIBS="-framework CoreAudio"
  5517. ;;
  5518. *)
  5519. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  5520. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  5521. $as_echo "#define HAVE_ALSA_ASOUNDLIB_H 1" >>confdefs.h
  5522. AUDIOLIBS="-lasound"
  5523. fi
  5524. ;;
  5525. esac
  5526. SAVELIBS="$LIBS"
  5527. IMAGELIBS=""
  5528. STATICIMAGELIBS=""
  5529. # Handle the JPEG lib linking mode (use fltk local or system lib)
  5530. # If --enable-(resp. --disable-)localjpeg parameter is not set by user
  5531. # Then we check the JPEG lib usability, with result in sysjpeglib_ok variable
  5532. # Check whether --enable-localjpeg was given.
  5533. if test "${enable_localjpeg+set}" = set; then :
  5534. enableval=$enable_localjpeg;
  5535. fi
  5536. # Check for System lib use if automatic mode or --disable-localjpeg is requested
  5537. sysjpeglib_ok=no
  5538. sysjpeginc_ok=no
  5539. if test x$enable_localjpeg != xyes; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in -ljpeg" >&5
  5541. $as_echo_n "checking for jpeg_CreateCompress in -ljpeg... " >&6; }
  5542. if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. ac_check_lib_save_LIBS=$LIBS
  5546. LIBS="-ljpeg $LIBS"
  5547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5548. /* end confdefs.h. */
  5549. /* Override any GCC internal prototype to avoid an error.
  5550. Use char because int might match the return type of a GCC
  5551. builtin and then its argument prototype would still apply. */
  5552. #ifdef __cplusplus
  5553. extern "C"
  5554. #endif
  5555. char jpeg_CreateCompress ();
  5556. int
  5557. main ()
  5558. {
  5559. return jpeg_CreateCompress ();
  5560. ;
  5561. return 0;
  5562. }
  5563. _ACEOF
  5564. if ac_fn_c_try_link "$LINENO"; then :
  5565. ac_cv_lib_jpeg_jpeg_CreateCompress=yes
  5566. else
  5567. ac_cv_lib_jpeg_jpeg_CreateCompress=no
  5568. fi
  5569. rm -f core conftest.err conftest.$ac_objext \
  5570. conftest$ac_exeext conftest.$ac_ext
  5571. LIBS=$ac_check_lib_save_LIBS
  5572. fi
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
  5574. $as_echo "$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; }
  5575. if test "x$ac_cv_lib_jpeg_jpeg_CreateCompress" = xyes; then :
  5576. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  5577. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  5578. sysjpeginc_ok=yes
  5579. fi
  5580. if test x$sysjpeginc_ok = xyes; then
  5581. sysjpeglib_ok=yes
  5582. fi
  5583. fi
  5584. fi
  5585. # Now set the jpeg lib and include flags according to the requested mode and availability
  5586. if test x$enable_localjpeg = xyes -o x$sysjpeglib_ok = xno; then
  5587. JPEGINC="-I../jpeg"
  5588. JPEG="jpeg"
  5589. IMAGELIBS="-lfltk_jpeg $IMAGELIBS"
  5590. STATICIMAGELIBS="\$libdir/libfltk_jpeg.a $STATICIMAGELIBS"
  5591. $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
  5592. #ac_cv_lib_jpeg_jpeg_CreateCompress=no # from ima: should not be necessary
  5593. # Finally, warn user if system lib was requested but not found
  5594. if test x$enable_localjpeg = xno; then
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&5
  5596. $as_echo "$as_me: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&2;}
  5597. fi
  5598. else
  5599. JPEGINC=""
  5600. JPEG=""
  5601. IMAGELIBS="-ljpeg $IMAGELIBS"
  5602. STATICIMAGELIBS="-ljpeg $STATICIMAGELIBS"
  5603. $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
  5604. fi
  5605. # Handle the ZLIB lib linking mode (use fltk local or system lib)
  5606. # If --enable-(resp. --disable-)localzlib parameter is not set by user
  5607. # Then we check the ZLIB lib usability, with result in syszlib_ok variable
  5608. # Check whether --enable-localzlib was given.
  5609. if test "${enable_localzlib+set}" = set; then :
  5610. enableval=$enable_localzlib;
  5611. fi
  5612. # Check for System lib use if automatic mode or --disable-localzlib is requested
  5613. syszlib_ok=no
  5614. syszinc_ok=no
  5615. if test x$enable_localzlib != xyes; then
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
  5617. $as_echo_n "checking for gzgets in -lz... " >&6; }
  5618. if ${ac_cv_lib_z_gzgets+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. ac_check_lib_save_LIBS=$LIBS
  5622. LIBS="-lz $LIBS"
  5623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5624. /* end confdefs.h. */
  5625. /* Override any GCC internal prototype to avoid an error.
  5626. Use char because int might match the return type of a GCC
  5627. builtin and then its argument prototype would still apply. */
  5628. #ifdef __cplusplus
  5629. extern "C"
  5630. #endif
  5631. char gzgets ();
  5632. int
  5633. main ()
  5634. {
  5635. return gzgets ();
  5636. ;
  5637. return 0;
  5638. }
  5639. _ACEOF
  5640. if ac_fn_c_try_link "$LINENO"; then :
  5641. ac_cv_lib_z_gzgets=yes
  5642. else
  5643. ac_cv_lib_z_gzgets=no
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext \
  5646. conftest$ac_exeext conftest.$ac_ext
  5647. LIBS=$ac_check_lib_save_LIBS
  5648. fi
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
  5650. $as_echo "$ac_cv_lib_z_gzgets" >&6; }
  5651. if test "x$ac_cv_lib_z_gzgets" = xyes; then :
  5652. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5653. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5654. syszinc_ok=yes
  5655. fi
  5656. if test x$syszinc_ok = xyes; then
  5657. syszlib_ok=yes
  5658. fi
  5659. fi
  5660. fi
  5661. # Now set the Z lib and include flags according to the requested mode and availability
  5662. if test x$enable_localzlib = xyes -o x$syszlib_ok = xno ; then
  5663. ZLIBINC="-I../zlib"
  5664. ZLIB="zlib"
  5665. LIBS="-lfltk_z $LIBS"
  5666. IMAGELIBS="-lfltk_z $IMAGELIBS"
  5667. STATICIMAGELIBS="\$libdir/libfltk_z.a $STATICIMAGELIBS"
  5668. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  5669. ac_cv_lib_z_gzgets=no # fc: is still necessary ?
  5670. # Finally, warn user if system lib was requested but not found
  5671. if test x$enable_localzlib = xno; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&5
  5673. $as_echo "$as_me: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&2;}
  5674. fi
  5675. else
  5676. ZLIBINC=""
  5677. ZLIB=""
  5678. LIBS="-lz $LIBS"
  5679. IMAGELIBS="-lz $IMAGELIBS"
  5680. STATICIMAGELIBS="-lz $STATICIMAGELIBS"
  5681. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  5682. fi
  5683. # Handle the PNG lib linking mode (use fltk local or system lib)
  5684. # If --enable-(resp. --disable-)localpng parameter is not set by user
  5685. # Then we check the png lib usability with result in syspng_lib variable
  5686. # Check whether --enable-localpng was given.
  5687. if test "${enable_localpng+set}" = set; then :
  5688. enableval=$enable_localpng;
  5689. fi
  5690. # Now check if system lib is usable, we check Lib AND include availability with inc variant,
  5691. # but only, if the builtin lib is not requested
  5692. syspnglib_ok=no
  5693. syspnginc_ok=no
  5694. if test x$enable_localpng != xyes; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5
  5696. $as_echo_n "checking for png_read_info in -lpng... " >&6; }
  5697. if ${ac_cv_lib_png_png_read_info+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. ac_check_lib_save_LIBS=$LIBS
  5701. LIBS="-lpng $LIBS"
  5702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5703. /* end confdefs.h. */
  5704. /* Override any GCC internal prototype to avoid an error.
  5705. Use char because int might match the return type of a GCC
  5706. builtin and then its argument prototype would still apply. */
  5707. #ifdef __cplusplus
  5708. extern "C"
  5709. #endif
  5710. char png_read_info ();
  5711. int
  5712. main ()
  5713. {
  5714. return png_read_info ();
  5715. ;
  5716. return 0;
  5717. }
  5718. _ACEOF
  5719. if ac_fn_c_try_link "$LINENO"; then :
  5720. ac_cv_lib_png_png_read_info=yes
  5721. else
  5722. ac_cv_lib_png_png_read_info=no
  5723. fi
  5724. rm -f core conftest.err conftest.$ac_objext \
  5725. conftest$ac_exeext conftest.$ac_ext
  5726. LIBS=$ac_check_lib_save_LIBS
  5727. fi
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5
  5729. $as_echo "$ac_cv_lib_png_png_read_info" >&6; }
  5730. if test "x$ac_cv_lib_png_png_read_info" = xyes; then :
  5731. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  5732. if test "x$ac_cv_header_png_h" = xyes; then :
  5733. $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
  5734. syspnginc_ok=yes
  5735. fi
  5736. ac_fn_c_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
  5737. if test "x$ac_cv_header_libpng_png_h" = xyes; then :
  5738. $as_echo "#define HAVE_LIBPNG_PNG_H 1" >>confdefs.h
  5739. syspnginc_ok=yes
  5740. fi
  5741. if test x$syspnginc_ok = xyes; then
  5742. syspnglib_ok=yes
  5743. fi
  5744. fi
  5745. fi
  5746. # The following is executed if the lib was not found usable or if local lib is required explicitly
  5747. if test x$enable_localpng = xyes -o x$syspnglib_ok = xno ; then
  5748. PNGINC="-I../png"
  5749. PNG="png"
  5750. IMAGELIBS="-lfltk_png $IMAGELIBS"
  5751. STATICIMAGELIBS="\$libdir/libfltk_png.a $STATICIMAGELIBS"
  5752. $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
  5753. $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
  5754. $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
  5755. $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
  5756. # Finally, warn user if system lib was requested but not found
  5757. if test x$enable_localpng = xno; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&5
  5759. $as_echo "$as_me: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&2;}
  5760. fi
  5761. else
  5762. PNGINC=""
  5763. PNG=""
  5764. IMAGELIBS="-lpng $IMAGELIBS"
  5765. STATICIMAGELIBS="-lpng $STATICIMAGELIBS"
  5766. $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_valid in -lpng" >&5
  5768. $as_echo_n "checking for png_get_valid in -lpng... " >&6; }
  5769. if ${ac_cv_lib_png_png_get_valid+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. ac_check_lib_save_LIBS=$LIBS
  5773. LIBS="-lpng $LIBS"
  5774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5775. /* end confdefs.h. */
  5776. /* Override any GCC internal prototype to avoid an error.
  5777. Use char because int might match the return type of a GCC
  5778. builtin and then its argument prototype would still apply. */
  5779. #ifdef __cplusplus
  5780. extern "C"
  5781. #endif
  5782. char png_get_valid ();
  5783. int
  5784. main ()
  5785. {
  5786. return png_get_valid ();
  5787. ;
  5788. return 0;
  5789. }
  5790. _ACEOF
  5791. if ac_fn_c_try_link "$LINENO"; then :
  5792. ac_cv_lib_png_png_get_valid=yes
  5793. else
  5794. ac_cv_lib_png_png_get_valid=no
  5795. fi
  5796. rm -f core conftest.err conftest.$ac_objext \
  5797. conftest$ac_exeext conftest.$ac_ext
  5798. LIBS=$ac_check_lib_save_LIBS
  5799. fi
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_valid" >&5
  5801. $as_echo "$ac_cv_lib_png_png_get_valid" >&6; }
  5802. if test "x$ac_cv_lib_png_png_get_valid" = xyes; then :
  5803. $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
  5804. fi
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_tRNS_to_alpha in -lpng" >&5
  5806. $as_echo_n "checking for png_set_tRNS_to_alpha in -lpng... " >&6; }
  5807. if ${ac_cv_lib_png_png_set_tRNS_to_alpha+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. ac_check_lib_save_LIBS=$LIBS
  5811. LIBS="-lpng $LIBS"
  5812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5813. /* end confdefs.h. */
  5814. /* Override any GCC internal prototype to avoid an error.
  5815. Use char because int might match the return type of a GCC
  5816. builtin and then its argument prototype would still apply. */
  5817. #ifdef __cplusplus
  5818. extern "C"
  5819. #endif
  5820. char png_set_tRNS_to_alpha ();
  5821. int
  5822. main ()
  5823. {
  5824. return png_set_tRNS_to_alpha ();
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. if ac_fn_c_try_link "$LINENO"; then :
  5830. ac_cv_lib_png_png_set_tRNS_to_alpha=yes
  5831. else
  5832. ac_cv_lib_png_png_set_tRNS_to_alpha=no
  5833. fi
  5834. rm -f core conftest.err conftest.$ac_objext \
  5835. conftest$ac_exeext conftest.$ac_ext
  5836. LIBS=$ac_check_lib_save_LIBS
  5837. fi
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_tRNS_to_alpha" >&5
  5839. $as_echo "$ac_cv_lib_png_png_set_tRNS_to_alpha" >&6; }
  5840. if test "x$ac_cv_lib_png_png_set_tRNS_to_alpha" = xyes; then :
  5841. $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
  5842. fi
  5843. fi
  5844. # Control the usage of the nanosvg lib
  5845. # Check whether --enable-nanosvg was given.
  5846. if test "${enable_nanosvg+set}" = set; then :
  5847. enableval=$enable_nanosvg;
  5848. fi
  5849. if test x$enable_nanosvg != xno; then
  5850. $as_echo "#define FLTK_USE_NANOSVG 1" >>confdefs.h
  5851. fi
  5852. LIBS="$SAVELIBS"
  5853. have_pthread=no
  5854. PTHREAD_FLAGS=""
  5855. check_pthread=yes
  5856. case $host_os in
  5857. mingw*)
  5858. check_pthread=no
  5859. ;;
  5860. cygwin*)
  5861. if test "x$enable_cygwin" != xyes; then
  5862. check_pthread=no
  5863. fi
  5864. ;;
  5865. *)
  5866. ;;
  5867. esac
  5868. if test "x$enable_threads" != xno -a x$check_pthread = xyes; then
  5869. for ac_header in pthread.h
  5870. do :
  5871. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  5872. if test "x$ac_cv_header_pthread_h" = xyes; then :
  5873. cat >>confdefs.h <<_ACEOF
  5874. #define HAVE_PTHREAD_H 1
  5875. _ACEOF
  5876. fi
  5877. done
  5878. if test x$ac_cv_header_pthread_h = xyes; then
  5879. for flag in -lpthreads -lpthread -pthread; do
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
  5881. $as_echo_n "checking for pthread_create using $flag... " >&6; }
  5882. SAVELIBS="$LIBS"
  5883. LIBS="$flag $LIBS"
  5884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5885. /* end confdefs.h. */
  5886. #include <pthread.h>
  5887. int
  5888. main ()
  5889. {
  5890. pthread_create(0, 0, 0, 0);
  5891. ;
  5892. return 0;
  5893. }
  5894. _ACEOF
  5895. if ac_fn_c_try_link "$LINENO"; then :
  5896. have_pthread=yes
  5897. else
  5898. LIBS="$SAVELIBS"
  5899. fi
  5900. rm -f core conftest.err conftest.$ac_objext \
  5901. conftest$ac_exeext conftest.$ac_ext
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
  5903. $as_echo "$have_pthread" >&6; }
  5904. if test $have_pthread = yes; then
  5905. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5906. PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
  5907. # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
  5908. # be POSIX-compliant... :(
  5909. case $host_os in
  5910. solaris*)
  5911. PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
  5912. ;;
  5913. esac
  5914. break
  5915. fi
  5916. done
  5917. fi
  5918. fi
  5919. HLINKS=
  5920. OSX_ONLY=:
  5921. THREADS=
  5922. # Check whether --with-links was given.
  5923. if test "${with_links+set}" = set; then :
  5924. withval=$with_links;
  5925. fi
  5926. INSTALL_DESKTOP=""
  5927. UNINSTALL_DESKTOP=""
  5928. case $host_os_gui in
  5929. cygwin* | mingw*)
  5930. # Recent versions of Cygwin are seriously broken and the size
  5931. # checks don't work because the shell puts out \r\n instead of
  5932. # \n. Here we just force U32 to be defined to "unsigned"...
  5933. $as_echo "#define U32 unsigned" >>confdefs.h
  5934. CFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CFLAGS"
  5935. CXXFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CXXFLAGS"
  5936. LDFLAGS="-mwindows $LDFLAGS"
  5937. DSOFLAGS="-mwindows $DSOFLAGS"
  5938. LIBS="$LIBS -lole32 -luuid -lcomctl32"
  5939. BUILD="WIN"
  5940. if test "x$with_optim" = x; then
  5941. with_optim="-O3"
  5942. fi
  5943. if test x$enable_gl != xno; then
  5944. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  5945. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  5946. $as_echo "#define HAVE_GL 1" >>confdefs.h
  5947. GLLIB="-lopengl32"
  5948. fi
  5949. ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
  5950. if test "x$ac_cv_header_GL_glu_h" = xyes; then :
  5951. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  5952. GLLIB="-lglu32 $GLLIB"
  5953. fi
  5954. else
  5955. LINKFLTKGL=""
  5956. GLLIBNAME=""
  5957. GLDSONAME=""
  5958. GLDEMOS=""
  5959. fi
  5960. if test "x$enable_threads" != xno; then
  5961. if test x$have_pthread = xyes; then
  5962. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5963. fi
  5964. fi
  5965. THREADS="threads$EXEEXT"
  5966. # Don't make symlinks since Windows is not case sensitive.
  5967. if test "x$with_links" != xyes; then
  5968. HLINKS="#"
  5969. fi
  5970. ;;
  5971. darwin*)
  5972. $as_echo "#define __APPLE_QUARTZ__ 1" >>confdefs.h
  5973. BUILD="OSX"
  5974. # MacOS X uses Cocoa for graphics.
  5975. LIBS="$LIBS -framework Cocoa"
  5976. if test x$have_pthread = xyes; then
  5977. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  5978. THREADS="threads$EXEEXT"
  5979. fi
  5980. if test x$enable_gl != xno; then
  5981. $as_echo "#define HAVE_GL 1" >>confdefs.h
  5982. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  5983. GLLIB="-framework OpenGL"
  5984. else
  5985. LINKFLTKGL=""
  5986. GLLIBNAME=""
  5987. GLDSONAME=""
  5988. GLDEMOS=""
  5989. fi
  5990. # Don't make symlinks because HFS+ is not case sensitive...
  5991. if test "x$with_links" != xyes; then
  5992. HLINKS="#"
  5993. fi
  5994. # Some steps are only done for OS X package management
  5995. OSX_ONLY=
  5996. # Install/Uninstall FLUID application
  5997. INSTALL_DESKTOP="install-osx"
  5998. UNINSTALL_DESKTOP="uninstall-osx"
  5999. ;;
  6000. *)
  6001. # All others are UNIX/X11...
  6002. # This includes Cygwin target combined with X11
  6003. if test x$have_pthread = xyes; then
  6004. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  6005. THREADS="threads$EXEEXT"
  6006. fi
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  6008. $as_echo_n "checking for X... " >&6; }
  6009. # Check whether --with-x was given.
  6010. if test "${with_x+set}" = set; then :
  6011. withval=$with_x;
  6012. fi
  6013. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  6014. if test "x$with_x" = xno; then
  6015. # The user explicitly disabled X.
  6016. have_x=disabled
  6017. else
  6018. case $x_includes,$x_libraries in #(
  6019. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  6020. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  6021. $as_echo_n "(cached) " >&6
  6022. else
  6023. # One or both of the vars are not set, and there is no cached value.
  6024. ac_x_includes=no ac_x_libraries=no
  6025. rm -f -r conftest.dir
  6026. if mkdir conftest.dir; then
  6027. cd conftest.dir
  6028. cat >Imakefile <<'_ACEOF'
  6029. incroot:
  6030. @echo incroot='${INCROOT}'
  6031. usrlibdir:
  6032. @echo usrlibdir='${USRLIBDIR}'
  6033. libdir:
  6034. @echo libdir='${LIBDIR}'
  6035. _ACEOF
  6036. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  6037. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6038. for ac_var in incroot usrlibdir libdir; do
  6039. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  6040. done
  6041. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  6042. for ac_extension in a so sl dylib la dll; do
  6043. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  6044. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  6045. ac_im_usrlibdir=$ac_im_libdir; break
  6046. fi
  6047. done
  6048. # Screen out bogus values from the imake configuration. They are
  6049. # bogus both because they are the default anyway, and because
  6050. # using them would break gcc on systems where it needs fixed includes.
  6051. case $ac_im_incroot in
  6052. /usr/include) ac_x_includes= ;;
  6053. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  6054. esac
  6055. case $ac_im_usrlibdir in
  6056. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  6057. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  6058. esac
  6059. fi
  6060. cd ..
  6061. rm -f -r conftest.dir
  6062. fi
  6063. # Standard set of common directories for X headers.
  6064. # Check X11 before X11Rn because it is often a symlink to the current release.
  6065. ac_x_header_dirs='
  6066. /usr/X11/include
  6067. /usr/X11R7/include
  6068. /usr/X11R6/include
  6069. /usr/X11R5/include
  6070. /usr/X11R4/include
  6071. /usr/include/X11
  6072. /usr/include/X11R7
  6073. /usr/include/X11R6
  6074. /usr/include/X11R5
  6075. /usr/include/X11R4
  6076. /usr/local/X11/include
  6077. /usr/local/X11R7/include
  6078. /usr/local/X11R6/include
  6079. /usr/local/X11R5/include
  6080. /usr/local/X11R4/include
  6081. /usr/local/include/X11
  6082. /usr/local/include/X11R7
  6083. /usr/local/include/X11R6
  6084. /usr/local/include/X11R5
  6085. /usr/local/include/X11R4
  6086. /usr/X386/include
  6087. /usr/x386/include
  6088. /usr/XFree86/include/X11
  6089. /usr/include
  6090. /usr/local/include
  6091. /usr/unsupported/include
  6092. /usr/athena/include
  6093. /usr/local/x11r5/include
  6094. /usr/lpp/Xamples/include
  6095. /usr/openwin/include
  6096. /usr/openwin/share/include'
  6097. if test "$ac_x_includes" = no; then
  6098. # Guess where to find include files, by looking for Xlib.h.
  6099. # First, try using that file with no special directory specified.
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. #include <X11/Xlib.h>
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. # We can compile using X headers with no special include directory.
  6106. ac_x_includes=
  6107. else
  6108. for ac_dir in $ac_x_header_dirs; do
  6109. if test -r "$ac_dir/X11/Xlib.h"; then
  6110. ac_x_includes=$ac_dir
  6111. break
  6112. fi
  6113. done
  6114. fi
  6115. rm -f conftest.err conftest.i conftest.$ac_ext
  6116. fi # $ac_x_includes = no
  6117. if test "$ac_x_libraries" = no; then
  6118. # Check for the libraries.
  6119. # See if we find them without any special options.
  6120. # Don't add to $LIBS permanently.
  6121. ac_save_LIBS=$LIBS
  6122. LIBS="-lX11 $LIBS"
  6123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6124. /* end confdefs.h. */
  6125. #include <X11/Xlib.h>
  6126. int
  6127. main ()
  6128. {
  6129. XrmInitialize ()
  6130. ;
  6131. return 0;
  6132. }
  6133. _ACEOF
  6134. if ac_fn_c_try_link "$LINENO"; then :
  6135. LIBS=$ac_save_LIBS
  6136. # We can link X programs with no special library path.
  6137. ac_x_libraries=
  6138. else
  6139. LIBS=$ac_save_LIBS
  6140. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  6141. do
  6142. # Don't even attempt the hair of trying to link an X program!
  6143. for ac_extension in a so sl dylib la dll; do
  6144. if test -r "$ac_dir/libX11.$ac_extension"; then
  6145. ac_x_libraries=$ac_dir
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. fi
  6151. rm -f core conftest.err conftest.$ac_objext \
  6152. conftest$ac_exeext conftest.$ac_ext
  6153. fi # $ac_x_libraries = no
  6154. case $ac_x_includes,$ac_x_libraries in #(
  6155. no,* | *,no | *\'*)
  6156. # Didn't find X, or a directory has "'" in its name.
  6157. ac_cv_have_x="have_x=no";; #(
  6158. *)
  6159. # Record where we found X for the cache.
  6160. ac_cv_have_x="have_x=yes\
  6161. ac_x_includes='$ac_x_includes'\
  6162. ac_x_libraries='$ac_x_libraries'"
  6163. esac
  6164. fi
  6165. ;; #(
  6166. *) have_x=yes;;
  6167. esac
  6168. eval "$ac_cv_have_x"
  6169. fi # $with_x != no
  6170. if test "$have_x" != yes; then
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  6172. $as_echo "$have_x" >&6; }
  6173. no_x=yes
  6174. else
  6175. # If each of the values was on the command line, it overrides each guess.
  6176. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  6177. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  6178. # Update the cache value to reflect the command line values.
  6179. ac_cv_have_x="have_x=yes\
  6180. ac_x_includes='$x_includes'\
  6181. ac_x_libraries='$x_libraries'"
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  6183. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  6184. fi
  6185. if test "$no_x" = yes; then
  6186. # Not all programs may use this symbol, but it does not hurt to define it.
  6187. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  6188. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  6189. else
  6190. if test -n "$x_includes"; then
  6191. X_CFLAGS="$X_CFLAGS -I$x_includes"
  6192. fi
  6193. # It would also be nice to do this for all -L options, not just this one.
  6194. if test -n "$x_libraries"; then
  6195. X_LIBS="$X_LIBS -L$x_libraries"
  6196. # For Solaris; some versions of Sun CC require a space after -R and
  6197. # others require no space. Words are not sufficient . . . .
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  6199. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  6200. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  6201. ac_xsave_c_werror_flag=$ac_c_werror_flag
  6202. ac_c_werror_flag=yes
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. int
  6206. main ()
  6207. {
  6208. ;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. if ac_fn_c_try_link "$LINENO"; then :
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. X_LIBS="$X_LIBS -R$x_libraries"
  6216. else
  6217. LIBS="$ac_xsave_LIBS -R $x_libraries"
  6218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6219. /* end confdefs.h. */
  6220. int
  6221. main ()
  6222. {
  6223. ;
  6224. return 0;
  6225. }
  6226. _ACEOF
  6227. if ac_fn_c_try_link "$LINENO"; then :
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6229. $as_echo "yes" >&6; }
  6230. X_LIBS="$X_LIBS -R $x_libraries"
  6231. else
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  6233. $as_echo "neither works" >&6; }
  6234. fi
  6235. rm -f core conftest.err conftest.$ac_objext \
  6236. conftest$ac_exeext conftest.$ac_ext
  6237. fi
  6238. rm -f core conftest.err conftest.$ac_objext \
  6239. conftest$ac_exeext conftest.$ac_ext
  6240. ac_c_werror_flag=$ac_xsave_c_werror_flag
  6241. LIBS=$ac_xsave_LIBS
  6242. fi
  6243. # Check for system-dependent libraries X programs must link with.
  6244. # Do this before checking for the system-independent R6 libraries
  6245. # (-lICE), since we may need -lsocket or whatever for X linking.
  6246. if test "$ISC" = yes; then
  6247. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  6248. else
  6249. # Martyn Johnson says this is needed for Ultrix, if the X
  6250. # libraries were built with DECnet support. And Karl Berry says
  6251. # the Alpha needs dnet_stub (dnet does not exist).
  6252. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  6253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6254. /* end confdefs.h. */
  6255. /* Override any GCC internal prototype to avoid an error.
  6256. Use char because int might match the return type of a GCC
  6257. builtin and then its argument prototype would still apply. */
  6258. #ifdef __cplusplus
  6259. extern "C"
  6260. #endif
  6261. char XOpenDisplay ();
  6262. int
  6263. main ()
  6264. {
  6265. return XOpenDisplay ();
  6266. ;
  6267. return 0;
  6268. }
  6269. _ACEOF
  6270. if ac_fn_c_try_link "$LINENO"; then :
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  6273. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  6274. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. ac_check_lib_save_LIBS=$LIBS
  6278. LIBS="-ldnet $LIBS"
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. /* Override any GCC internal prototype to avoid an error.
  6282. Use char because int might match the return type of a GCC
  6283. builtin and then its argument prototype would still apply. */
  6284. #ifdef __cplusplus
  6285. extern "C"
  6286. #endif
  6287. char dnet_ntoa ();
  6288. int
  6289. main ()
  6290. {
  6291. return dnet_ntoa ();
  6292. ;
  6293. return 0;
  6294. }
  6295. _ACEOF
  6296. if ac_fn_c_try_link "$LINENO"; then :
  6297. ac_cv_lib_dnet_dnet_ntoa=yes
  6298. else
  6299. ac_cv_lib_dnet_dnet_ntoa=no
  6300. fi
  6301. rm -f core conftest.err conftest.$ac_objext \
  6302. conftest$ac_exeext conftest.$ac_ext
  6303. LIBS=$ac_check_lib_save_LIBS
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  6306. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  6307. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  6308. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  6309. fi
  6310. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  6312. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  6313. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. ac_check_lib_save_LIBS=$LIBS
  6317. LIBS="-ldnet_stub $LIBS"
  6318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6319. /* end confdefs.h. */
  6320. /* Override any GCC internal prototype to avoid an error.
  6321. Use char because int might match the return type of a GCC
  6322. builtin and then its argument prototype would still apply. */
  6323. #ifdef __cplusplus
  6324. extern "C"
  6325. #endif
  6326. char dnet_ntoa ();
  6327. int
  6328. main ()
  6329. {
  6330. return dnet_ntoa ();
  6331. ;
  6332. return 0;
  6333. }
  6334. _ACEOF
  6335. if ac_fn_c_try_link "$LINENO"; then :
  6336. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  6337. else
  6338. ac_cv_lib_dnet_stub_dnet_ntoa=no
  6339. fi
  6340. rm -f core conftest.err conftest.$ac_objext \
  6341. conftest$ac_exeext conftest.$ac_ext
  6342. LIBS=$ac_check_lib_save_LIBS
  6343. fi
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  6345. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  6346. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  6347. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  6348. fi
  6349. fi
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext \
  6352. conftest$ac_exeext conftest.$ac_ext
  6353. LIBS="$ac_xsave_LIBS"
  6354. # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
  6355. # to get the SysV transport functions.
  6356. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  6357. # needs -lnsl.
  6358. # The nsl library prevents programs from opening the X display
  6359. # on Irix 5.2, according to T.E. Dickey.
  6360. # The functions gethostbyname, getservbyname, and inet_addr are
  6361. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  6362. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  6363. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  6364. fi
  6365. if test $ac_cv_func_gethostbyname = no; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  6367. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  6368. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. ac_check_lib_save_LIBS=$LIBS
  6372. LIBS="-lnsl $LIBS"
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. /* Override any GCC internal prototype to avoid an error.
  6376. Use char because int might match the return type of a GCC
  6377. builtin and then its argument prototype would still apply. */
  6378. #ifdef __cplusplus
  6379. extern "C"
  6380. #endif
  6381. char gethostbyname ();
  6382. int
  6383. main ()
  6384. {
  6385. return gethostbyname ();
  6386. ;
  6387. return 0;
  6388. }
  6389. _ACEOF
  6390. if ac_fn_c_try_link "$LINENO"; then :
  6391. ac_cv_lib_nsl_gethostbyname=yes
  6392. else
  6393. ac_cv_lib_nsl_gethostbyname=no
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext \
  6396. conftest$ac_exeext conftest.$ac_ext
  6397. LIBS=$ac_check_lib_save_LIBS
  6398. fi
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  6400. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  6401. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  6402. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  6403. fi
  6404. if test $ac_cv_lib_nsl_gethostbyname = no; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  6406. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  6407. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. ac_check_lib_save_LIBS=$LIBS
  6411. LIBS="-lbsd $LIBS"
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. /* Override any GCC internal prototype to avoid an error.
  6415. Use char because int might match the return type of a GCC
  6416. builtin and then its argument prototype would still apply. */
  6417. #ifdef __cplusplus
  6418. extern "C"
  6419. #endif
  6420. char gethostbyname ();
  6421. int
  6422. main ()
  6423. {
  6424. return gethostbyname ();
  6425. ;
  6426. return 0;
  6427. }
  6428. _ACEOF
  6429. if ac_fn_c_try_link "$LINENO"; then :
  6430. ac_cv_lib_bsd_gethostbyname=yes
  6431. else
  6432. ac_cv_lib_bsd_gethostbyname=no
  6433. fi
  6434. rm -f core conftest.err conftest.$ac_objext \
  6435. conftest$ac_exeext conftest.$ac_ext
  6436. LIBS=$ac_check_lib_save_LIBS
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  6439. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  6440. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  6441. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  6442. fi
  6443. fi
  6444. fi
  6445. # [email protected] says without -lsocket,
  6446. # socket/setsockopt and other routines are undefined under SCO ODT
  6447. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  6448. # on later versions), says Simon Leinen: it contains gethostby*
  6449. # variants that don't use the name server (or something). -lsocket
  6450. # must be given before -lnsl if both are needed. We assume that
  6451. # if connect needs -lnsl, so does gethostbyname.
  6452. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  6453. if test "x$ac_cv_func_connect" = xyes; then :
  6454. fi
  6455. if test $ac_cv_func_connect = no; then
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  6457. $as_echo_n "checking for connect in -lsocket... " >&6; }
  6458. if ${ac_cv_lib_socket_connect+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. ac_check_lib_save_LIBS=$LIBS
  6462. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. /* Override any GCC internal prototype to avoid an error.
  6466. Use char because int might match the return type of a GCC
  6467. builtin and then its argument prototype would still apply. */
  6468. #ifdef __cplusplus
  6469. extern "C"
  6470. #endif
  6471. char connect ();
  6472. int
  6473. main ()
  6474. {
  6475. return connect ();
  6476. ;
  6477. return 0;
  6478. }
  6479. _ACEOF
  6480. if ac_fn_c_try_link "$LINENO"; then :
  6481. ac_cv_lib_socket_connect=yes
  6482. else
  6483. ac_cv_lib_socket_connect=no
  6484. fi
  6485. rm -f core conftest.err conftest.$ac_objext \
  6486. conftest$ac_exeext conftest.$ac_ext
  6487. LIBS=$ac_check_lib_save_LIBS
  6488. fi
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  6490. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  6491. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  6492. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  6493. fi
  6494. fi
  6495. # Guillermo Gomez says -lposix is necessary on A/UX.
  6496. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  6497. if test "x$ac_cv_func_remove" = xyes; then :
  6498. fi
  6499. if test $ac_cv_func_remove = no; then
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  6501. $as_echo_n "checking for remove in -lposix... " >&6; }
  6502. if ${ac_cv_lib_posix_remove+:} false; then :
  6503. $as_echo_n "(cached) " >&6
  6504. else
  6505. ac_check_lib_save_LIBS=$LIBS
  6506. LIBS="-lposix $LIBS"
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. /* Override any GCC internal prototype to avoid an error.
  6510. Use char because int might match the return type of a GCC
  6511. builtin and then its argument prototype would still apply. */
  6512. #ifdef __cplusplus
  6513. extern "C"
  6514. #endif
  6515. char remove ();
  6516. int
  6517. main ()
  6518. {
  6519. return remove ();
  6520. ;
  6521. return 0;
  6522. }
  6523. _ACEOF
  6524. if ac_fn_c_try_link "$LINENO"; then :
  6525. ac_cv_lib_posix_remove=yes
  6526. else
  6527. ac_cv_lib_posix_remove=no
  6528. fi
  6529. rm -f core conftest.err conftest.$ac_objext \
  6530. conftest$ac_exeext conftest.$ac_ext
  6531. LIBS=$ac_check_lib_save_LIBS
  6532. fi
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  6534. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  6535. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  6536. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  6537. fi
  6538. fi
  6539. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  6540. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  6541. if test "x$ac_cv_func_shmat" = xyes; then :
  6542. fi
  6543. if test $ac_cv_func_shmat = no; then
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  6545. $as_echo_n "checking for shmat in -lipc... " >&6; }
  6546. if ${ac_cv_lib_ipc_shmat+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. ac_check_lib_save_LIBS=$LIBS
  6550. LIBS="-lipc $LIBS"
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. /* Override any GCC internal prototype to avoid an error.
  6554. Use char because int might match the return type of a GCC
  6555. builtin and then its argument prototype would still apply. */
  6556. #ifdef __cplusplus
  6557. extern "C"
  6558. #endif
  6559. char shmat ();
  6560. int
  6561. main ()
  6562. {
  6563. return shmat ();
  6564. ;
  6565. return 0;
  6566. }
  6567. _ACEOF
  6568. if ac_fn_c_try_link "$LINENO"; then :
  6569. ac_cv_lib_ipc_shmat=yes
  6570. else
  6571. ac_cv_lib_ipc_shmat=no
  6572. fi
  6573. rm -f core conftest.err conftest.$ac_objext \
  6574. conftest$ac_exeext conftest.$ac_ext
  6575. LIBS=$ac_check_lib_save_LIBS
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  6578. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  6579. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  6580. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  6581. fi
  6582. fi
  6583. fi
  6584. # Check for libraries that X11R6 Xt/Xaw programs need.
  6585. ac_save_LDFLAGS=$LDFLAGS
  6586. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  6587. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  6588. # check for ICE first), but we must link in the order -lSM -lICE or
  6589. # we get undefined symbols. So assume we have SM if we have ICE.
  6590. # These have to be linked with before -lX11, unlike the other
  6591. # libraries we check for below, so use a different variable.
  6592. # John Interrante, Karl Berry
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  6594. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  6595. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. ac_check_lib_save_LIBS=$LIBS
  6599. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  6600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6601. /* end confdefs.h. */
  6602. /* Override any GCC internal prototype to avoid an error.
  6603. Use char because int might match the return type of a GCC
  6604. builtin and then its argument prototype would still apply. */
  6605. #ifdef __cplusplus
  6606. extern "C"
  6607. #endif
  6608. char IceConnectionNumber ();
  6609. int
  6610. main ()
  6611. {
  6612. return IceConnectionNumber ();
  6613. ;
  6614. return 0;
  6615. }
  6616. _ACEOF
  6617. if ac_fn_c_try_link "$LINENO"; then :
  6618. ac_cv_lib_ICE_IceConnectionNumber=yes
  6619. else
  6620. ac_cv_lib_ICE_IceConnectionNumber=no
  6621. fi
  6622. rm -f core conftest.err conftest.$ac_objext \
  6623. conftest$ac_exeext conftest.$ac_ext
  6624. LIBS=$ac_check_lib_save_LIBS
  6625. fi
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  6627. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  6628. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  6629. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  6630. fi
  6631. LDFLAGS=$ac_save_LDFLAGS
  6632. fi
  6633. if test x$no_x = xyes; then
  6634. as_fn_error $? "Configure could not find required X11 libraries, aborting." "$LINENO" 5
  6635. fi
  6636. if test "x$X_PRE_LIBS" != x; then
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&5
  6638. $as_echo "$as_me: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&2;}
  6639. fi
  6640. LIBS="$LIBS -lX11 $X_EXTRA_LIBS"
  6641. CFLAGS="$CFLAGS $X_CFLAGS"
  6642. CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  6643. LDFLAGS="$X_LIBS $LDFLAGS"
  6644. DSOFLAGS="$X_LIBS $DSOFLAGS"
  6645. $as_echo "#define USE_X11 1" >>confdefs.h
  6646. BUILD="X11"
  6647. if test "x$x_includes" != x; then
  6648. ac_cpp="$ac_cpp -I$x_includes"
  6649. fi
  6650. GLLIB=
  6651. if test x$enable_gl != xno; then
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  6653. $as_echo_n "checking for library containing dlopen... " >&6; }
  6654. if ${ac_cv_search_dlopen+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. ac_func_search_save_LIBS=$LIBS
  6658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6659. /* end confdefs.h. */
  6660. /* Override any GCC internal prototype to avoid an error.
  6661. Use char because int might match the return type of a GCC
  6662. builtin and then its argument prototype would still apply. */
  6663. #ifdef __cplusplus
  6664. extern "C"
  6665. #endif
  6666. char dlopen ();
  6667. int
  6668. main ()
  6669. {
  6670. return dlopen ();
  6671. ;
  6672. return 0;
  6673. }
  6674. _ACEOF
  6675. for ac_lib in '' dl; do
  6676. if test -z "$ac_lib"; then
  6677. ac_res="none required"
  6678. else
  6679. ac_res=-l$ac_lib
  6680. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6681. fi
  6682. if ac_fn_c_try_link "$LINENO"; then :
  6683. ac_cv_search_dlopen=$ac_res
  6684. fi
  6685. rm -f core conftest.err conftest.$ac_objext \
  6686. conftest$ac_exeext
  6687. if ${ac_cv_search_dlopen+:} false; then :
  6688. break
  6689. fi
  6690. done
  6691. if ${ac_cv_search_dlopen+:} false; then :
  6692. else
  6693. ac_cv_search_dlopen=no
  6694. fi
  6695. rm conftest.$ac_ext
  6696. LIBS=$ac_func_search_save_LIBS
  6697. fi
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  6699. $as_echo "$ac_cv_search_dlopen" >&6; }
  6700. ac_res=$ac_cv_search_dlopen
  6701. if test "$ac_res" != no; then :
  6702. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6703. fi
  6704. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  6705. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lGL" >&5
  6707. $as_echo_n "checking for glXMakeCurrent in -lGL... " >&6; }
  6708. if ${ac_cv_lib_GL_glXMakeCurrent+:} false; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. ac_check_lib_save_LIBS=$LIBS
  6712. LIBS="-lGL -lm $LIBS"
  6713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6714. /* end confdefs.h. */
  6715. /* Override any GCC internal prototype to avoid an error.
  6716. Use char because int might match the return type of a GCC
  6717. builtin and then its argument prototype would still apply. */
  6718. #ifdef __cplusplus
  6719. extern "C"
  6720. #endif
  6721. char glXMakeCurrent ();
  6722. int
  6723. main ()
  6724. {
  6725. return glXMakeCurrent ();
  6726. ;
  6727. return 0;
  6728. }
  6729. _ACEOF
  6730. if ac_fn_c_try_link "$LINENO"; then :
  6731. ac_cv_lib_GL_glXMakeCurrent=yes
  6732. else
  6733. ac_cv_lib_GL_glXMakeCurrent=no
  6734. fi
  6735. rm -f core conftest.err conftest.$ac_objext \
  6736. conftest$ac_exeext conftest.$ac_ext
  6737. LIBS=$ac_check_lib_save_LIBS
  6738. fi
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXMakeCurrent" >&5
  6740. $as_echo "$ac_cv_lib_GL_glXMakeCurrent" >&6; }
  6741. if test "x$ac_cv_lib_GL_glXMakeCurrent" = xyes; then :
  6742. $as_echo "#define HAVE_GL 1" >>confdefs.h
  6743. GLLIB="-lGL"
  6744. else
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lMesaGL" >&5
  6746. $as_echo_n "checking for glXMakeCurrent in -lMesaGL... " >&6; }
  6747. if ${ac_cv_lib_MesaGL_glXMakeCurrent+:} false; then :
  6748. $as_echo_n "(cached) " >&6
  6749. else
  6750. ac_check_lib_save_LIBS=$LIBS
  6751. LIBS="-lMesaGL -lm $LIBS"
  6752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6753. /* end confdefs.h. */
  6754. /* Override any GCC internal prototype to avoid an error.
  6755. Use char because int might match the return type of a GCC
  6756. builtin and then its argument prototype would still apply. */
  6757. #ifdef __cplusplus
  6758. extern "C"
  6759. #endif
  6760. char glXMakeCurrent ();
  6761. int
  6762. main ()
  6763. {
  6764. return glXMakeCurrent ();
  6765. ;
  6766. return 0;
  6767. }
  6768. _ACEOF
  6769. if ac_fn_c_try_link "$LINENO"; then :
  6770. ac_cv_lib_MesaGL_glXMakeCurrent=yes
  6771. else
  6772. ac_cv_lib_MesaGL_glXMakeCurrent=no
  6773. fi
  6774. rm -f core conftest.err conftest.$ac_objext \
  6775. conftest$ac_exeext conftest.$ac_ext
  6776. LIBS=$ac_check_lib_save_LIBS
  6777. fi
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXMakeCurrent" >&5
  6779. $as_echo "$ac_cv_lib_MesaGL_glXMakeCurrent" >&6; }
  6780. if test "x$ac_cv_lib_MesaGL_glXMakeCurrent" = xyes; then :
  6781. $as_echo "#define HAVE_GL 1" >>confdefs.h
  6782. GLLIB="-lMesaGL"
  6783. fi
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXGetProcAddressARB in -lGL" >&5
  6786. $as_echo_n "checking for glXGetProcAddressARB in -lGL... " >&6; }
  6787. if ${ac_cv_lib_GL_glXGetProcAddressARB+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. ac_check_lib_save_LIBS=$LIBS
  6791. LIBS="-lGL -lm $LIBS"
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. /* Override any GCC internal prototype to avoid an error.
  6795. Use char because int might match the return type of a GCC
  6796. builtin and then its argument prototype would still apply. */
  6797. #ifdef __cplusplus
  6798. extern "C"
  6799. #endif
  6800. char glXGetProcAddressARB ();
  6801. int
  6802. main ()
  6803. {
  6804. return glXGetProcAddressARB ();
  6805. ;
  6806. return 0;
  6807. }
  6808. _ACEOF
  6809. if ac_fn_c_try_link "$LINENO"; then :
  6810. ac_cv_lib_GL_glXGetProcAddressARB=yes
  6811. else
  6812. ac_cv_lib_GL_glXGetProcAddressARB=no
  6813. fi
  6814. rm -f core conftest.err conftest.$ac_objext \
  6815. conftest$ac_exeext conftest.$ac_ext
  6816. LIBS=$ac_check_lib_save_LIBS
  6817. fi
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
  6819. $as_echo "$ac_cv_lib_GL_glXGetProcAddressARB" >&6; }
  6820. if test "x$ac_cv_lib_GL_glXGetProcAddressARB" = xyes; then :
  6821. $as_echo "#define HAVE_GLXGETPROCADDRESSARB 1" >>confdefs.h
  6822. fi
  6823. fi
  6824. ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
  6825. if test "x$ac_cv_header_GL_glu_h" = xyes; then :
  6826. $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
  6827. if test x$ac_cv_lib_GL_glXMakeCurrent = xyes; then
  6828. GLLIB="-lGLU $GLLIB"
  6829. fi
  6830. if test x$ac_cv_lib_MesaGL_glXMakeCurrent = xyes; then
  6831. GLLIB="-lMesaGLU $GLLIB"
  6832. fi
  6833. fi
  6834. if test x$ac_cv_lib_GL_glXMakeCurrent != xyes -a x$ac_cv_lib_MesaGL_glXMakeCurrent != xyes; then
  6835. LINKFLTKGL=""
  6836. GLLIBNAME=""
  6837. GLDSONAME=""
  6838. GLDEMOS=""
  6839. fi
  6840. else
  6841. LINKFLTKGL=""
  6842. GLLIBNAME=""
  6843. GLDSONAME=""
  6844. GLDEMOS=""
  6845. fi
  6846. # Check whether --enable-print was given.
  6847. if test "${enable_print+set}" = set; then :
  6848. enableval=$enable_print;
  6849. fi
  6850. if test x$enable_print = xno; then
  6851. $as_echo "#define FL_NO_PRINT_SUPPORT 1" >>confdefs.h
  6852. fi
  6853. # Check whether --enable-xinerama was given.
  6854. if test "${enable_xinerama+set}" = set; then :
  6855. enableval=$enable_xinerama;
  6856. fi
  6857. xinerama_found=no
  6858. if test x$enable_xinerama != xno; then
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5
  6860. $as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
  6861. if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. ac_check_lib_save_LIBS=$LIBS
  6865. LIBS="-lXinerama $LIBS"
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. /* Override any GCC internal prototype to avoid an error.
  6869. Use char because int might match the return type of a GCC
  6870. builtin and then its argument prototype would still apply. */
  6871. #ifdef __cplusplus
  6872. extern "C"
  6873. #endif
  6874. char XineramaIsActive ();
  6875. int
  6876. main ()
  6877. {
  6878. return XineramaIsActive ();
  6879. ;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_link "$LINENO"; then :
  6884. ac_cv_lib_Xinerama_XineramaIsActive=yes
  6885. else
  6886. ac_cv_lib_Xinerama_XineramaIsActive=no
  6887. fi
  6888. rm -f core conftest.err conftest.$ac_objext \
  6889. conftest$ac_exeext conftest.$ac_ext
  6890. LIBS=$ac_check_lib_save_LIBS
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
  6893. $as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
  6894. if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then :
  6895. $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
  6896. LIBS="-lXinerama $LIBS"
  6897. xinerama_found=yes
  6898. fi
  6899. fi
  6900. # Check whether --enable-xft was given.
  6901. if test "${enable_xft+set}" = set; then :
  6902. enableval=$enable_xft;
  6903. fi
  6904. xft_found=no
  6905. if test x$enable_xft != xno; then
  6906. # Extract the first word of "freetype-config", so it can be a program name with args.
  6907. set dummy freetype-config; ac_word=$2
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6909. $as_echo_n "checking for $ac_word... " >&6; }
  6910. if ${ac_cv_path_FTCONFIG+:} false; then :
  6911. $as_echo_n "(cached) " >&6
  6912. else
  6913. case $FTCONFIG in
  6914. [\\/]* | ?:[\\/]*)
  6915. ac_cv_path_FTCONFIG="$FTCONFIG" # Let the user override the test with a path.
  6916. ;;
  6917. *)
  6918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6919. for as_dir in $PATH
  6920. do
  6921. IFS=$as_save_IFS
  6922. test -z "$as_dir" && as_dir=.
  6923. for ac_exec_ext in '' $ac_executable_extensions; do
  6924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6925. ac_cv_path_FTCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6927. break 2
  6928. fi
  6929. done
  6930. done
  6931. IFS=$as_save_IFS
  6932. ;;
  6933. esac
  6934. fi
  6935. FTCONFIG=$ac_cv_path_FTCONFIG
  6936. if test -n "$FTCONFIG"; then
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FTCONFIG" >&5
  6938. $as_echo "$FTCONFIG" >&6; }
  6939. else
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. $as_echo "no" >&6; }
  6942. fi
  6943. if test "x$FTCONFIG" != x; then
  6944. CPPFLAGS="`$FTCONFIG --cflags` $CPPFLAGS"
  6945. CFLAGS="`$FTCONFIG --cflags` $CFLAGS"
  6946. CXXFLAGS="`$FTCONFIG --cflags` $CXXFLAGS"
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternCreate in -lfontconfig" >&5
  6948. $as_echo_n "checking for FcPatternCreate in -lfontconfig... " >&6; }
  6949. if ${ac_cv_lib_fontconfig_FcPatternCreate+:} false; then :
  6950. $as_echo_n "(cached) " >&6
  6951. else
  6952. ac_check_lib_save_LIBS=$LIBS
  6953. LIBS="-lfontconfig $LIBS"
  6954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6955. /* end confdefs.h. */
  6956. /* Override any GCC internal prototype to avoid an error.
  6957. Use char because int might match the return type of a GCC
  6958. builtin and then its argument prototype would still apply. */
  6959. #ifdef __cplusplus
  6960. extern "C"
  6961. #endif
  6962. char FcPatternCreate ();
  6963. int
  6964. main ()
  6965. {
  6966. return FcPatternCreate ();
  6967. ;
  6968. return 0;
  6969. }
  6970. _ACEOF
  6971. if ac_fn_c_try_link "$LINENO"; then :
  6972. ac_cv_lib_fontconfig_FcPatternCreate=yes
  6973. else
  6974. ac_cv_lib_fontconfig_FcPatternCreate=no
  6975. fi
  6976. rm -f core conftest.err conftest.$ac_objext \
  6977. conftest$ac_exeext conftest.$ac_ext
  6978. LIBS=$ac_check_lib_save_LIBS
  6979. fi
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5
  6981. $as_echo "$ac_cv_lib_fontconfig_FcPatternCreate" >&6; }
  6982. if test "x$ac_cv_lib_fontconfig_FcPatternCreate" = xyes; then :
  6983. cat >>confdefs.h <<_ACEOF
  6984. #define HAVE_LIBFONTCONFIG 1
  6985. _ACEOF
  6986. LIBS="-lfontconfig $LIBS"
  6987. fi
  6988. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
  6989. if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawCreate in -lXft" >&5
  6991. $as_echo_n "checking for XftDrawCreate in -lXft... " >&6; }
  6992. if ${ac_cv_lib_Xft_XftDrawCreate+:} false; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. ac_check_lib_save_LIBS=$LIBS
  6996. LIBS="-lXft $LIBS"
  6997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6998. /* end confdefs.h. */
  6999. /* Override any GCC internal prototype to avoid an error.
  7000. Use char because int might match the return type of a GCC
  7001. builtin and then its argument prototype would still apply. */
  7002. #ifdef __cplusplus
  7003. extern "C"
  7004. #endif
  7005. char XftDrawCreate ();
  7006. int
  7007. main ()
  7008. {
  7009. return XftDrawCreate ();
  7010. ;
  7011. return 0;
  7012. }
  7013. _ACEOF
  7014. if ac_fn_c_try_link "$LINENO"; then :
  7015. ac_cv_lib_Xft_XftDrawCreate=yes
  7016. else
  7017. ac_cv_lib_Xft_XftDrawCreate=no
  7018. fi
  7019. rm -f core conftest.err conftest.$ac_objext \
  7020. conftest$ac_exeext conftest.$ac_ext
  7021. LIBS=$ac_check_lib_save_LIBS
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
  7024. $as_echo "$ac_cv_lib_Xft_XftDrawCreate" >&6; }
  7025. if test "x$ac_cv_lib_Xft_XftDrawCreate" = xyes; then :
  7026. $as_echo "#define USE_XFT 1" >>confdefs.h
  7027. LIBS="-lXft $LIBS"
  7028. BUILD="XFT"
  7029. xft_found=yes
  7030. fi
  7031. fi
  7032. fi
  7033. fi
  7034. if test x$enable_xft != xno -a x$xft_found != xyes; then
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the required Xft headers and/or libraries." >&5
  7036. $as_echo "$as_me: WARNING: could not find the required Xft headers and/or libraries." >&2;}
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: please install Xft headers and libraries or use 'configure --disable-xft'." >&5
  7038. $as_echo "$as_me: please install Xft headers and libraries or use 'configure --disable-xft'." >&6;}
  7039. if test x$enable_xft = xyes; then
  7040. as_fn_error $? "Aborting." "$LINENO" 5
  7041. fi
  7042. fi
  7043. # Check whether --enable-pango was given.
  7044. if test "${enable_pango+set}" = set; then :
  7045. enableval=$enable_pango;
  7046. fi
  7047. pango_found=no
  7048. if test x$enable_pango = xyes; then
  7049. case $host_os in
  7050. darwin*)
  7051. CXXFLAGS="-I/sw/include/pango-1.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include $CXXFLAGS"
  7052. PANGOLIBDIR="-L/sw/lib"
  7053. ;;
  7054. linux*)
  7055. CXXFLAGS="-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include $CXXFLAGS"
  7056. CXXFLAGS="-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include $CXXFLAGS"
  7057. ;;
  7058. freebsd*)
  7059. CXXFLAGS="-I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include $CXXFLAGS"
  7060. ;;
  7061. netbsd*)
  7062. CXXFLAGS="-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include $CXXFLAGS"
  7063. CXXFLAGS="-I/usr/pkg/include/glib/glib-2.0 $CXXFLAGS"
  7064. PANGOLIBDIR="-L/usr/pkg/lib"
  7065. LDFLAGS="-Wl,-rpath,/usr/pkg/lib $LDFLAGS"
  7066. ;;
  7067. esac
  7068. CPPFLAGS="$PANGOLIBDIR $CXXFLAGS"
  7069. for ac_header in pango/pango.h pango/pangoxft.h
  7070. do :
  7071. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7072. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7073. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7074. cat >>confdefs.h <<_ACEOF
  7075. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7076. _ACEOF
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_layout_new in -lpango-1.0" >&5
  7078. $as_echo_n "checking for pango_layout_new in -lpango-1.0... " >&6; }
  7079. if ${ac_cv_lib_pango_1_0_pango_layout_new+:} false; then :
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. ac_check_lib_save_LIBS=$LIBS
  7083. LIBS="-lpango-1.0 $LIBS"
  7084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7085. /* end confdefs.h. */
  7086. /* Override any GCC internal prototype to avoid an error.
  7087. Use char because int might match the return type of a GCC
  7088. builtin and then its argument prototype would still apply. */
  7089. #ifdef __cplusplus
  7090. extern "C"
  7091. #endif
  7092. char pango_layout_new ();
  7093. int
  7094. main ()
  7095. {
  7096. return pango_layout_new ();
  7097. ;
  7098. return 0;
  7099. }
  7100. _ACEOF
  7101. if ac_fn_c_try_link "$LINENO"; then :
  7102. ac_cv_lib_pango_1_0_pango_layout_new=yes
  7103. else
  7104. ac_cv_lib_pango_1_0_pango_layout_new=no
  7105. fi
  7106. rm -f core conftest.err conftest.$ac_objext \
  7107. conftest$ac_exeext conftest.$ac_ext
  7108. LIBS=$ac_check_lib_save_LIBS
  7109. fi
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pango_1_0_pango_layout_new" >&5
  7111. $as_echo "$ac_cv_lib_pango_1_0_pango_layout_new" >&6; }
  7112. if test "x$ac_cv_lib_pango_1_0_pango_layout_new" = xyes; then :
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_xft_render_layout in -lpangoxft-1.0" >&5
  7114. $as_echo_n "checking for pango_xft_render_layout in -lpangoxft-1.0... " >&6; }
  7115. if ${ac_cv_lib_pangoxft_1_0_pango_xft_render_layout+:} false; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. ac_check_lib_save_LIBS=$LIBS
  7119. LIBS="-lpangoxft-1.0 $LIBS"
  7120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7121. /* end confdefs.h. */
  7122. /* Override any GCC internal prototype to avoid an error.
  7123. Use char because int might match the return type of a GCC
  7124. builtin and then its argument prototype would still apply. */
  7125. #ifdef __cplusplus
  7126. extern "C"
  7127. #endif
  7128. char pango_xft_render_layout ();
  7129. int
  7130. main ()
  7131. {
  7132. return pango_xft_render_layout ();
  7133. ;
  7134. return 0;
  7135. }
  7136. _ACEOF
  7137. if ac_fn_c_try_link "$LINENO"; then :
  7138. ac_cv_lib_pangoxft_1_0_pango_xft_render_layout=yes
  7139. else
  7140. ac_cv_lib_pangoxft_1_0_pango_xft_render_layout=no
  7141. fi
  7142. rm -f core conftest.err conftest.$ac_objext \
  7143. conftest$ac_exeext conftest.$ac_ext
  7144. LIBS=$ac_check_lib_save_LIBS
  7145. fi
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pangoxft_1_0_pango_xft_render_layout" >&5
  7147. $as_echo "$ac_cv_lib_pangoxft_1_0_pango_xft_render_layout" >&6; }
  7148. if test "x$ac_cv_lib_pangoxft_1_0_pango_xft_render_layout" = xyes; then :
  7149. $as_echo "#define USE_PANGO 1" >>confdefs.h
  7150. pango_found=yes
  7151. LIBS="$PANGOLIBDIR -lpango-1.0 -lpangoxft-1.0 -lgobject-2.0 $LIBS"
  7152. fi
  7153. fi
  7154. fi
  7155. done
  7156. CPPFLAGS=$CXXFLAGS
  7157. fi
  7158. # Check whether --enable-xdbe was given.
  7159. if test "${enable_xdbe+set}" = set; then :
  7160. enableval=$enable_xdbe;
  7161. fi
  7162. xdbe_found=no
  7163. if test x$enable_xdbe != xno; then
  7164. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  7165. "
  7166. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5
  7168. $as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; }
  7169. if ${ac_cv_lib_Xext_XdbeQueryExtension+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. ac_check_lib_save_LIBS=$LIBS
  7173. LIBS="-lXext $LIBS"
  7174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7175. /* end confdefs.h. */
  7176. /* Override any GCC internal prototype to avoid an error.
  7177. Use char because int might match the return type of a GCC
  7178. builtin and then its argument prototype would still apply. */
  7179. #ifdef __cplusplus
  7180. extern "C"
  7181. #endif
  7182. char XdbeQueryExtension ();
  7183. int
  7184. main ()
  7185. {
  7186. return XdbeQueryExtension ();
  7187. ;
  7188. return 0;
  7189. }
  7190. _ACEOF
  7191. if ac_fn_c_try_link "$LINENO"; then :
  7192. ac_cv_lib_Xext_XdbeQueryExtension=yes
  7193. else
  7194. ac_cv_lib_Xext_XdbeQueryExtension=no
  7195. fi
  7196. rm -f core conftest.err conftest.$ac_objext \
  7197. conftest$ac_exeext conftest.$ac_ext
  7198. LIBS=$ac_check_lib_save_LIBS
  7199. fi
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
  7201. $as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
  7202. if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = xyes; then :
  7203. $as_echo "#define HAVE_XDBE 1" >>confdefs.h
  7204. LIBS="-lXext $LIBS"
  7205. xdbe_found=yes
  7206. fi
  7207. fi
  7208. fi
  7209. # Check whether --enable-xfixes was given.
  7210. if test "${enable_xfixes+set}" = set; then :
  7211. enableval=$enable_xfixes;
  7212. fi
  7213. xfixes_found=no
  7214. if test x$enable_xfixes != xno; then
  7215. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h>
  7216. "
  7217. if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then :
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesQueryExtension in -lXfixes" >&5
  7219. $as_echo_n "checking for XFixesQueryExtension in -lXfixes... " >&6; }
  7220. if ${ac_cv_lib_Xfixes_XFixesQueryExtension+:} false; then :
  7221. $as_echo_n "(cached) " >&6
  7222. else
  7223. ac_check_lib_save_LIBS=$LIBS
  7224. LIBS="-lXfixes $LIBS"
  7225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7226. /* end confdefs.h. */
  7227. /* Override any GCC internal prototype to avoid an error.
  7228. Use char because int might match the return type of a GCC
  7229. builtin and then its argument prototype would still apply. */
  7230. #ifdef __cplusplus
  7231. extern "C"
  7232. #endif
  7233. char XFixesQueryExtension ();
  7234. int
  7235. main ()
  7236. {
  7237. return XFixesQueryExtension ();
  7238. ;
  7239. return 0;
  7240. }
  7241. _ACEOF
  7242. if ac_fn_c_try_link "$LINENO"; then :
  7243. ac_cv_lib_Xfixes_XFixesQueryExtension=yes
  7244. else
  7245. ac_cv_lib_Xfixes_XFixesQueryExtension=no
  7246. fi
  7247. rm -f core conftest.err conftest.$ac_objext \
  7248. conftest$ac_exeext conftest.$ac_ext
  7249. LIBS=$ac_check_lib_save_LIBS
  7250. fi
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesQueryExtension" >&5
  7252. $as_echo "$ac_cv_lib_Xfixes_XFixesQueryExtension" >&6; }
  7253. if test "x$ac_cv_lib_Xfixes_XFixesQueryExtension" = xyes; then :
  7254. $as_echo "#define HAVE_XFIXES 1" >>confdefs.h
  7255. LIBS="-lXfixes $LIBS"
  7256. xfixes_found=yes
  7257. fi
  7258. fi
  7259. fi
  7260. # Check whether --enable-xcursor was given.
  7261. if test "${enable_xcursor+set}" = set; then :
  7262. enableval=$enable_xcursor;
  7263. fi
  7264. xcursor_found=no
  7265. if test x$enable_xcursor != xno; then
  7266. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  7267. "
  7268. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  7270. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  7271. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. ac_check_lib_save_LIBS=$LIBS
  7275. LIBS="-lXcursor $LIBS"
  7276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7277. /* end confdefs.h. */
  7278. /* Override any GCC internal prototype to avoid an error.
  7279. Use char because int might match the return type of a GCC
  7280. builtin and then its argument prototype would still apply. */
  7281. #ifdef __cplusplus
  7282. extern "C"
  7283. #endif
  7284. char XcursorImageCreate ();
  7285. int
  7286. main ()
  7287. {
  7288. return XcursorImageCreate ();
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. if ac_fn_c_try_link "$LINENO"; then :
  7294. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  7295. else
  7296. ac_cv_lib_Xcursor_XcursorImageCreate=no
  7297. fi
  7298. rm -f core conftest.err conftest.$ac_objext \
  7299. conftest$ac_exeext conftest.$ac_ext
  7300. LIBS=$ac_check_lib_save_LIBS
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  7303. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  7304. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  7305. $as_echo "#define HAVE_XCURSOR 1" >>confdefs.h
  7306. LIBS="-lXcursor $LIBS"
  7307. xcursor_found=yes
  7308. fi
  7309. fi
  7310. fi
  7311. # Check whether --enable-xrender was given.
  7312. if test "${enable_xrender+set}" = set; then :
  7313. enableval=$enable_xrender;
  7314. fi
  7315. xrender_found=no
  7316. if test x$enable_xrender != xno; then
  7317. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
  7318. "
  7319. if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
  7321. $as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
  7322. if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. ac_check_lib_save_LIBS=$LIBS
  7326. LIBS="-lXrender $LIBS"
  7327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7328. /* end confdefs.h. */
  7329. /* Override any GCC internal prototype to avoid an error.
  7330. Use char because int might match the return type of a GCC
  7331. builtin and then its argument prototype would still apply. */
  7332. #ifdef __cplusplus
  7333. extern "C"
  7334. #endif
  7335. char XRenderQueryVersion ();
  7336. int
  7337. main ()
  7338. {
  7339. return XRenderQueryVersion ();
  7340. ;
  7341. return 0;
  7342. }
  7343. _ACEOF
  7344. if ac_fn_c_try_link "$LINENO"; then :
  7345. ac_cv_lib_Xrender_XRenderQueryVersion=yes
  7346. else
  7347. ac_cv_lib_Xrender_XRenderQueryVersion=no
  7348. fi
  7349. rm -f core conftest.err conftest.$ac_objext \
  7350. conftest$ac_exeext conftest.$ac_ext
  7351. LIBS=$ac_check_lib_save_LIBS
  7352. fi
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
  7354. $as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
  7355. if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
  7356. $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
  7357. LIBS="-lXrender $LIBS"
  7358. xrender_found=yes
  7359. fi
  7360. fi
  7361. fi
  7362. ac_fn_c_check_header_compile "$LINENO" "X11/Xregion.h" "ac_cv_header_X11_Xregion_h" "#include <X11/Xlib.h>
  7363. "
  7364. if test "x$ac_cv_header_X11_Xregion_h" = xyes; then :
  7365. $as_echo "#define HAVE_X11_XREGION_H 1" >>confdefs.h
  7366. fi
  7367. # Extract the first word of "xprop", so it can be a program name with args.
  7368. set dummy xprop; ac_word=$2
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7370. $as_echo_n "checking for $ac_word... " >&6; }
  7371. if ${ac_cv_path_XPROP+:} false; then :
  7372. $as_echo_n "(cached) " >&6
  7373. else
  7374. case $XPROP in
  7375. [\\/]* | ?:[\\/]*)
  7376. ac_cv_path_XPROP="$XPROP" # Let the user override the test with a path.
  7377. ;;
  7378. *)
  7379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7380. for as_dir in $PATH
  7381. do
  7382. IFS=$as_save_IFS
  7383. test -z "$as_dir" && as_dir=.
  7384. for ac_exec_ext in '' $ac_executable_extensions; do
  7385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7386. ac_cv_path_XPROP="$as_dir/$ac_word$ac_exec_ext"
  7387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7388. break 2
  7389. fi
  7390. done
  7391. done
  7392. IFS=$as_save_IFS
  7393. ;;
  7394. esac
  7395. fi
  7396. XPROP=$ac_cv_path_XPROP
  7397. if test -n "$XPROP"; then
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPROP" >&5
  7399. $as_echo "$XPROP" >&6; }
  7400. else
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7402. $as_echo "no" >&6; }
  7403. fi
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X overlay visuals" >&5
  7405. $as_echo_n "checking for X overlay visuals... " >&6; }
  7406. if ${ac_cv_have_overlay+:} false; then :
  7407. $as_echo_n "(cached) " >&6
  7408. else
  7409. if test "x$XPROP" != x; then
  7410. if $XPROP -root 2>/dev/null | grep -c "SERVER_OVERLAY_VISUALS" >/dev/null; then
  7411. ac_cv_have_overlay=yes
  7412. else
  7413. ac_cv_have_overlay=no
  7414. fi
  7415. else
  7416. ac_cv_have_overlay=no
  7417. fi
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_overlay" >&5
  7420. $as_echo "$ac_cv_have_overlay" >&6; }
  7421. if test x$ac_cv_have_overlay = xyes; then
  7422. $as_echo "#define HAVE_OVERLAY 1" >>confdefs.h
  7423. fi
  7424. # Make symlinks since UNIX/Linux is case sensitive,
  7425. # but Cygwin in general not.
  7426. case $host_os in
  7427. cygwin*)
  7428. HLINKS="#"
  7429. ;;
  7430. *)
  7431. ;;
  7432. esac
  7433. # Make symlinks since UNIX/Linux is case sensitive,
  7434. # but only if explicitly configured (default=no)
  7435. if test "x$with_links" != xyes; then
  7436. HLINKS="#"
  7437. fi
  7438. # Install/Uninstall FLUID application support files
  7439. INSTALL_DESKTOP="install-linux"
  7440. UNINSTALL_DESKTOP="uninstall-linux"
  7441. ;;
  7442. esac
  7443. case "$host_os" in
  7444. *bsd* | darwin*)
  7445. # *BSD
  7446. CAT1EXT=0
  7447. CAT3EXT=0
  7448. CAT6EXT=0
  7449. ;;
  7450. irix*)
  7451. # SGI IRIX
  7452. CAT1EXT=z
  7453. CAT3EXT=z
  7454. CAT6EXT=z
  7455. ;;
  7456. *)
  7457. # All others
  7458. CAT1EXT=1
  7459. CAT3EXT=3
  7460. CAT6EXT=6
  7461. ;;
  7462. esac
  7463. if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
  7464. case "$host_os" in
  7465. *bsd* | darwin* | linux*)
  7466. # *BSD, Darwin, and Linux
  7467. mandir="\${prefix}/share/man"
  7468. ;;
  7469. irix*)
  7470. # SGI IRIX
  7471. mandir="\${prefix}/share/catman"
  7472. ;;
  7473. esac
  7474. fi
  7475. if test "$prefix" = NONE; then
  7476. prefix=/usr/local
  7477. fi
  7478. if test "$exec_prefix" = NONE; then
  7479. exec_prefix="\${prefix}"
  7480. fi
  7481. case $host_os in
  7482. irix1-5*)
  7483. ;;
  7484. irix*)
  7485. if test "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then
  7486. libdir="/usr/lib32"
  7487. fi
  7488. ;;
  7489. esac
  7490. MAKEDEPEND="\$(CXX) -M"
  7491. if test -n "$GCC"; then
  7492. # Show all standard warnings + unused variables, conversion errors,
  7493. # and inlining problems when compiling...
  7494. OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
  7495. # The following additional warnings are useful for tracking down problems...
  7496. #OPTIM="-Wshadow -Wconversion $OPTIM"
  7497. # We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings
  7498. # we will temporarily disable 'deprecated' warnings on OS X.
  7499. case $host_os in
  7500. darwin1-7)
  7501. ;;
  7502. darwin*)
  7503. OPTIM="-Wno-deprecated-declarations $OPTIM"
  7504. ;;
  7505. esac
  7506. # Set the default compiler optimizations...
  7507. if test -z "$DEBUGFLAG"; then
  7508. #
  7509. # Note: Can't use -fomit-frame-pointer - prevents tools like
  7510. # libsafe from working!
  7511. #
  7512. # Don't use -fforce-mem, -fforce-addr, or -fcaller-saves.
  7513. # They all seem to make either no difference or enlarge
  7514. # the code by a few hundred bytes.
  7515. #
  7516. # "-Os" seems to be the best compromise between speed and
  7517. # code size. "-O3" and higher seem to make no effective
  7518. # difference in the speed of the code, but does bloat the
  7519. # library 10+%.
  7520. #
  7521. if test "x$with_optim" != x; then
  7522. OPTIM="$with_optim $OPTIM"
  7523. else
  7524. OPTIM="-Os $OPTIM"
  7525. fi
  7526. fi
  7527. # Generate position-independent code when needed...
  7528. if test $PICFLAG = 1; then
  7529. OPTIM="$OPTIM -fPIC"
  7530. fi
  7531. # See if GCC supports -fno-exceptions...
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-exceptions" >&5
  7533. $as_echo_n "checking if GCC supports -fno-exceptions... " >&6; }
  7534. OLDCFLAGS="$CFLAGS"
  7535. CFLAGS="$CFLAGS -fno-exceptions"
  7536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7537. /* end confdefs.h. */
  7538. int
  7539. main ()
  7540. {
  7541. ;
  7542. return 0;
  7543. }
  7544. _ACEOF
  7545. if ac_fn_c_try_compile "$LINENO"; then :
  7546. OPTIM="$OPTIM -fno-exceptions"
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7548. $as_echo "yes" >&6; }
  7549. else
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. $as_echo "no" >&6; }
  7552. fi
  7553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. CFLAGS="$OLDCFLAGS"
  7555. # See if GCC supports -fno-strict-aliasing...
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-strict-aliasing" >&5
  7557. $as_echo_n "checking if GCC supports -fno-strict-aliasing... " >&6; }
  7558. OLDCFLAGS="$CFLAGS"
  7559. CFLAGS="$CFLAGS -fno-strict-aliasing"
  7560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7561. /* end confdefs.h. */
  7562. int
  7563. main ()
  7564. {
  7565. ;
  7566. return 0;
  7567. }
  7568. _ACEOF
  7569. if ac_fn_c_try_compile "$LINENO"; then :
  7570. OPTIM="$OPTIM -fno-strict-aliasing"
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7572. $as_echo "yes" >&6; }
  7573. else
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7575. $as_echo "no" >&6; }
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7578. CFLAGS="$OLDCFLAGS"
  7579. # See if ld supports -no-undefined...
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports -no-undefined" >&5
  7581. $as_echo_n "checking if ld supports -no-undefined... " >&6; }
  7582. OLDLDFLAGS="$LDFLAGS"
  7583. LDFLAGS="$LDFLAGS -Wl,-no-undefined"
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. int
  7587. main ()
  7588. {
  7589. ;
  7590. return 0;
  7591. }
  7592. _ACEOF
  7593. if ac_fn_c_try_link "$LINENO"; then :
  7594. DSOFLAGS="$DSOFLAGS -Wl,-no-undefined"
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7596. $as_echo "yes" >&6; }
  7597. else
  7598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7599. $as_echo "no" >&6; }
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext \
  7602. conftest$ac_exeext conftest.$ac_ext
  7603. LDFLAGS="$OLDLDFLAGS"
  7604. # See if ld supports -Bsymbolic-functions...
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports -Bsymbolic-functions" >&5
  7606. $as_echo_n "checking if ld supports -Bsymbolic-functions... " >&6; }
  7607. OLDLDFLAGS="$LDFLAGS"
  7608. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
  7609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7610. /* end confdefs.h. */
  7611. int
  7612. main ()
  7613. {
  7614. ;
  7615. return 0;
  7616. }
  7617. _ACEOF
  7618. if ac_fn_c_try_link "$LINENO"; then :
  7619. DSOFLAGS="$DSOFLAGS -Wl,-Bsymbolic-functions"
  7620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7621. $as_echo "yes" >&6; }
  7622. else
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7624. $as_echo "no" >&6; }
  7625. fi
  7626. rm -f core conftest.err conftest.$ac_objext \
  7627. conftest$ac_exeext conftest.$ac_ext
  7628. LDFLAGS="$OLDLDFLAGS"
  7629. # See if toolchain supports a sectioned build...
  7630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toolchain supports sections" >&5
  7631. $as_echo_n "checking if toolchain supports sections... " >&6; }
  7632. OLDLDFLAGS="$LDFLAGS"
  7633. OLDCFLAGS="$CFLAGS"
  7634. LDFLAGS="$LDFLAGS -Wl,-gc-sections"
  7635. CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
  7636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7637. /* end confdefs.h. */
  7638. int
  7639. main ()
  7640. {
  7641. ;
  7642. return 0;
  7643. }
  7644. _ACEOF
  7645. if ac_fn_c_try_link "$LINENO"; then :
  7646. DSOFLAGS="$DSOFLAGS -Wl,-gc-sections"
  7647. OPTIM="$OPTIM -ffunction-sections -fdata-sections"
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7649. $as_echo "yes" >&6; }
  7650. else
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7652. $as_echo "no" >&6; }
  7653. fi
  7654. rm -f core conftest.err conftest.$ac_objext \
  7655. conftest$ac_exeext conftest.$ac_ext
  7656. LDFLAGS="$OLDLDFLAGS"
  7657. CFLAGS="$OLDCFLAGS"
  7658. # See if we are running Solaris; if so, try the -fpermissive option...
  7659. # This option is required on some versions of Solaris to work around
  7660. # bugs in the X headers up through Solaris 7.
  7661. #
  7662. # Unlike the other compiler/optimization settings, this one is placed
  7663. # in CFLAGS and CXXFLAGS so that fltk-config will provide the option
  7664. # to clients - otherwise client apps will not compile properly...
  7665. case $host_os in
  7666. solaris*)
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fpermissive" >&5
  7668. $as_echo_n "checking if GCC supports -fpermissive... " >&6; }
  7669. OLDCFLAGS="$CFLAGS"
  7670. CFLAGS="$CFLAGS -fpermissive"
  7671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7672. /* end confdefs.h. */
  7673. int
  7674. main ()
  7675. {
  7676. ;
  7677. return 0;
  7678. }
  7679. _ACEOF
  7680. if ac_fn_c_try_compile "$LINENO"; then :
  7681. CXXFLAGS="$CXXFLAGS -fpermissive"
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7683. $as_echo "yes" >&6; }
  7684. else
  7685. CFLAGS="$OLDCFLAGS"
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7687. $as_echo "no" >&6; }
  7688. fi
  7689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7690. ;;
  7691. esac
  7692. else
  7693. case "$host_os" in
  7694. irix*)
  7695. # Running some flavor of IRIX; see which version and
  7696. # set things up according...
  7697. if test "$uversion" -ge 62; then
  7698. # We are running IRIX 6.2 or higher; uncomment the following
  7699. # lines if you don't have IDO 7.2 or higher:
  7700. #
  7701. # CXX="CC -n32 -mips3"
  7702. # CC="cc -n32 -mips3"
  7703. # LD="ld -n32 -mips3"
  7704. # MAKEDEPEND="CC -M"
  7705. if test "x`grep abi=n32 /etc/compiler.defaults`" = x; then
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&5
  7707. $as_echo "$as_me: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&2;}
  7708. fi
  7709. OPTIM="-fullwarn $OPTIM"
  7710. fi
  7711. if test -z "$DEBUGFLAG"; then
  7712. if test "x$with_optim" != x; then
  7713. OPTIM="$with_optim $OPTIM"
  7714. else
  7715. OPTIM="-O2 $OPTIM"
  7716. if test $uversion -gt 62; then
  7717. OPTIM="-OPT:Olimit=4000 $OPTIM"
  7718. fi
  7719. fi
  7720. fi
  7721. ;;
  7722. hpux*)
  7723. # Running HP-UX; these options should work for the HP compilers.
  7724. if test -z "$DEBUGFLAG"; then
  7725. if test "x$with_optim" != x; then
  7726. OPTIM="$with_optim $OPTIM"
  7727. else
  7728. OPTIM="+O2 $OPTIM"
  7729. fi
  7730. fi
  7731. if test $PICFLAG = 1; then
  7732. OPTIM="+z $OPTIM"
  7733. fi
  7734. CXXFLAGS="$CXXFLAGS +W336,501,736,740,749,829"
  7735. ;;
  7736. OSF1*)
  7737. # Running Digital/Tru64 UNIX; these options should work for the
  7738. # Digital/Compaq/NewHP compilers.
  7739. if test -z "$DEBUGFLAG"; then
  7740. if test "x$with_optim" != x; then
  7741. OPTIM="$with_optim $OPTIM"
  7742. else
  7743. OPTIM="-O2 $OPTIM"
  7744. fi
  7745. fi
  7746. ;;
  7747. solaris*)
  7748. # Solaris
  7749. if test -z "$DEBUGFLAG"; then
  7750. if test "x$with_optim" != x; then
  7751. OPTIM="$with_optim $OPTIM"
  7752. else
  7753. OPTIM="-xO3 $OPTIM"
  7754. fi
  7755. fi
  7756. if test $PICFLAG = 1; then
  7757. OPTIM="-KPIC $OPTIM"
  7758. fi
  7759. ;;
  7760. aix*)
  7761. if test -z "$DEBUGFLAG"; then
  7762. if test "x$with_optim" != x; then
  7763. OPTIM="$with_optim $OPTIM"
  7764. else
  7765. OPTIM="-O2 $OPTIM"
  7766. fi
  7767. fi
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&5
  7769. $as_echo "$as_me: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&2;}
  7770. ;;
  7771. *)
  7772. # Running some other operating system; inform the user they
  7773. # should contribute the necessary options via the STR form..
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building FLTK with default compiler optimizations" >&5
  7775. $as_echo "$as_me: WARNING: Building FLTK with default compiler optimizations" >&2;}
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&5
  7777. $as_echo "$as_me: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&2;}
  7778. ;;
  7779. esac
  7780. fi
  7781. OPTIM="$DEBUGFLAG $OPTIM"
  7782. case $host_os in
  7783. darwin*)
  7784. if test "x$with_archflags" != x ; then
  7785. CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`"
  7786. fi
  7787. ;;
  7788. esac
  7789. case $host_os in
  7790. mingw*)
  7791. # Determine the path where MSys has /usr installed
  7792. msyspath=`mount | grep '\/usr ' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'`
  7793. # Then substitute that in the WIN32 path instead of /usr
  7794. cat >>confdefs.h <<_ACEOF
  7795. #define FLTK_DOCDIR "$msyspath/local/share/doc/fltk"
  7796. _ACEOF
  7797. ;;
  7798. *)
  7799. if test x$prefix = xNONE; then
  7800. cat >>confdefs.h <<_ACEOF
  7801. #define FLTK_DOCDIR "/usr/local/share/doc/fltk"
  7802. _ACEOF
  7803. else
  7804. cat >>confdefs.h <<_ACEOF
  7805. #define FLTK_DOCDIR "$prefix/share/doc/fltk"
  7806. _ACEOF
  7807. fi
  7808. ;;
  7809. esac
  7810. if test x$prefix = xNONE; then
  7811. cat >>confdefs.h <<_ACEOF
  7812. #define FLTK_DATADIR "/usr/local/share/fltk"
  7813. _ACEOF
  7814. else
  7815. cat >>confdefs.h <<_ACEOF
  7816. #define FLTK_DATADIR "$prefix/share/fltk"
  7817. _ACEOF
  7818. fi
  7819. echo ""
  7820. echo "Configuration Summary"
  7821. echo "-------------------------------------------------------------------------"
  7822. case $host_os_gui in
  7823. cygwin* | mingw*)
  7824. graphics="GDI"
  7825. ;;
  7826. darwin*)
  7827. graphics="Quartz"
  7828. ;;
  7829. *)
  7830. graphics="X11"
  7831. if test x$xft_found = xyes; then
  7832. graphics="$graphics + Xft"
  7833. fi
  7834. if test x$xdbe_found = xyes; then
  7835. graphics="$graphics + Xdbe"
  7836. fi
  7837. if test x$xfixes_found = xyes; then
  7838. graphics="$graphics + Xfixes"
  7839. fi
  7840. if test x$xinerama_found = xyes; then
  7841. graphics="$graphics + Xinerama"
  7842. fi
  7843. if test x$xcursor_found = xyes; then
  7844. graphics="$graphics + Xcursor"
  7845. fi
  7846. if test x$xrender_found = xyes; then
  7847. graphics="$graphics + Xrender"
  7848. fi
  7849. if test x$pango_found = xyes; then
  7850. graphics="$graphics + pango"
  7851. fi
  7852. ;;
  7853. esac
  7854. echo " Directories: prefix=$prefix"
  7855. echo " bindir=$bindir"
  7856. echo " datadir=$datadir"
  7857. echo " datarootdir=$datarootdir"
  7858. echo " exec_prefix=$exec_prefix"
  7859. echo " includedir=$includedir"
  7860. echo " libdir=$libdir"
  7861. echo " mandir=$mandir"
  7862. case $host_os in
  7863. mingw*)
  7864. echo " MSys docpath=$msyspath/local/share/doc/fltk"
  7865. ;;
  7866. esac
  7867. echo " Graphics: $graphics"
  7868. if test x$JPEG = x; then
  7869. echo "Image Libraries: JPEG=System"
  7870. else
  7871. echo "Image Libraries: JPEG=Builtin"
  7872. fi
  7873. if test x$PNG = x; then
  7874. echo " PNG=System"
  7875. else
  7876. echo " PNG=Builtin"
  7877. fi
  7878. if test x$ZLIB = x; then
  7879. echo " ZLIB=System"
  7880. else
  7881. echo " ZLIB=Builtin"
  7882. fi
  7883. if test x$enable_cairo = xyes; then
  7884. echo " CAIRO=lib"
  7885. fi
  7886. if test x$enable_cairoext = xyes; then
  7887. echo " CAIRO=internal_use"
  7888. fi
  7889. if test x$enable_largefile != xno; then
  7890. echo " Large Files: YES"
  7891. else
  7892. echo " Large Files: NO"
  7893. fi
  7894. if test x$GLDEMOS = x; then
  7895. echo " OpenGL: NO"
  7896. else
  7897. echo " OpenGL: YES"
  7898. fi
  7899. if test x$THREADS = x; then
  7900. echo " Threads: NO"
  7901. else
  7902. echo " Threads: YES"
  7903. fi
  7904. BINARY_DIR=
  7905. ac_config_headers="$ac_config_headers config.h:configh.in"
  7906. ac_config_headers="$ac_config_headers FL/abi-version.h:abi-version.in"
  7907. ac_config_files="$ac_config_files makeinclude fltk.list fltk-config fltk.spec FL/Makefile"
  7908. cat >confcache <<\_ACEOF
  7909. # This file is a shell script that caches the results of configure
  7910. # tests run on this system so they can be shared between configure
  7911. # scripts and configure runs, see configure's option --config-cache.
  7912. # It is not useful on other systems. If it contains results you don't
  7913. # want to keep, you may remove or edit it.
  7914. #
  7915. # config.status only pays attention to the cache file if you give it
  7916. # the --recheck option to rerun configure.
  7917. #
  7918. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7919. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7920. # following values.
  7921. _ACEOF
  7922. # The following way of writing the cache mishandles newlines in values,
  7923. # but we know of no workaround that is simple, portable, and efficient.
  7924. # So, we kill variables containing newlines.
  7925. # Ultrix sh set writes to stderr and can't be redirected directly,
  7926. # and sets the high bit in the cache file unless we assign to the vars.
  7927. (
  7928. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7929. eval ac_val=\$$ac_var
  7930. case $ac_val in #(
  7931. *${as_nl}*)
  7932. case $ac_var in #(
  7933. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7934. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7935. esac
  7936. case $ac_var in #(
  7937. _ | IFS | as_nl) ;; #(
  7938. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7939. *) { eval $ac_var=; unset $ac_var;} ;;
  7940. esac ;;
  7941. esac
  7942. done
  7943. (set) 2>&1 |
  7944. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7945. *${as_nl}ac_space=\ *)
  7946. # `set' does not quote correctly, so add quotes: double-quote
  7947. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7948. sed -n \
  7949. "s/'/'\\\\''/g;
  7950. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7951. ;; #(
  7952. *)
  7953. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7954. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7955. ;;
  7956. esac |
  7957. sort
  7958. ) |
  7959. sed '
  7960. /^ac_cv_env_/b end
  7961. t clear
  7962. :clear
  7963. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7964. t end
  7965. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7966. :end' >>confcache
  7967. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7968. if test -w "$cache_file"; then
  7969. if test "x$cache_file" != "x/dev/null"; then
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7971. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7972. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7973. cat confcache >"$cache_file"
  7974. else
  7975. case $cache_file in #(
  7976. */* | ?:*)
  7977. mv -f confcache "$cache_file"$$ &&
  7978. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7979. *)
  7980. mv -f confcache "$cache_file" ;;
  7981. esac
  7982. fi
  7983. fi
  7984. else
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7986. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7987. fi
  7988. fi
  7989. rm -f confcache
  7990. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7991. # Let make expand exec_prefix.
  7992. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7993. DEFS=-DHAVE_CONFIG_H
  7994. ac_libobjs=
  7995. ac_ltlibobjs=
  7996. U=
  7997. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7998. # 1. Remove the extension, and $U if already installed.
  7999. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8000. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8001. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8002. # will be set to the directory where LIBOBJS objects are built.
  8003. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8004. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8005. done
  8006. LIBOBJS=$ac_libobjs
  8007. LTLIBOBJS=$ac_ltlibobjs
  8008. : "${CONFIG_STATUS=./config.status}"
  8009. ac_write_fail=0
  8010. ac_clean_files_save=$ac_clean_files
  8011. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8012. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8013. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8014. as_write_fail=0
  8015. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8016. #! $SHELL
  8017. # Generated by $as_me.
  8018. # Run this file to recreate the current configuration.
  8019. # Compiler output produced by configure, useful for debugging
  8020. # configure, is in config.log if it exists.
  8021. debug=false
  8022. ac_cs_recheck=false
  8023. ac_cs_silent=false
  8024. SHELL=\${CONFIG_SHELL-$SHELL}
  8025. export SHELL
  8026. _ASEOF
  8027. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8028. ## -------------------- ##
  8029. ## M4sh Initialization. ##
  8030. ## -------------------- ##
  8031. # Be more Bourne compatible
  8032. DUALCASE=1; export DUALCASE # for MKS sh
  8033. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8034. emulate sh
  8035. NULLCMD=:
  8036. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8037. # is contrary to our usage. Disable this feature.
  8038. alias -g '${1+"$@"}'='"$@"'
  8039. setopt NO_GLOB_SUBST
  8040. else
  8041. case `(set -o) 2>/dev/null` in #(
  8042. *posix*) :
  8043. set -o posix ;; #(
  8044. *) :
  8045. ;;
  8046. esac
  8047. fi
  8048. as_nl='
  8049. '
  8050. export as_nl
  8051. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8052. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8053. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8054. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8055. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8056. # but without wasting forks for bash or zsh.
  8057. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8058. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8059. as_echo='print -r --'
  8060. as_echo_n='print -rn --'
  8061. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8062. as_echo='printf %s\n'
  8063. as_echo_n='printf %s'
  8064. else
  8065. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8066. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8067. as_echo_n='/usr/ucb/echo -n'
  8068. else
  8069. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8070. as_echo_n_body='eval
  8071. arg=$1;
  8072. case $arg in #(
  8073. *"$as_nl"*)
  8074. expr "X$arg" : "X\\(.*\\)$as_nl";
  8075. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8076. esac;
  8077. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8078. '
  8079. export as_echo_n_body
  8080. as_echo_n='sh -c $as_echo_n_body as_echo'
  8081. fi
  8082. export as_echo_body
  8083. as_echo='sh -c $as_echo_body as_echo'
  8084. fi
  8085. # The user is always right.
  8086. if test "${PATH_SEPARATOR+set}" != set; then
  8087. PATH_SEPARATOR=:
  8088. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8089. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8090. PATH_SEPARATOR=';'
  8091. }
  8092. fi
  8093. # IFS
  8094. # We need space, tab and new line, in precisely that order. Quoting is
  8095. # there to prevent editors from complaining about space-tab.
  8096. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8097. # splitting by setting IFS to empty value.)
  8098. IFS=" "" $as_nl"
  8099. # Find who we are. Look in the path if we contain no directory separator.
  8100. as_myself=
  8101. case $0 in #((
  8102. *[\\/]* ) as_myself=$0 ;;
  8103. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8104. for as_dir in $PATH
  8105. do
  8106. IFS=$as_save_IFS
  8107. test -z "$as_dir" && as_dir=.
  8108. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8109. done
  8110. IFS=$as_save_IFS
  8111. ;;
  8112. esac
  8113. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8114. # in which case we are not to be found in the path.
  8115. if test "x$as_myself" = x; then
  8116. as_myself=$0
  8117. fi
  8118. if test ! -f "$as_myself"; then
  8119. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8120. exit 1
  8121. fi
  8122. # Unset variables that we do not need and which cause bugs (e.g. in
  8123. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8124. # suppresses any "Segmentation fault" message there. '((' could
  8125. # trigger a bug in pdksh 5.2.14.
  8126. for as_var in BASH_ENV ENV MAIL MAILPATH
  8127. do eval test x\${$as_var+set} = xset \
  8128. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8129. done
  8130. PS1='$ '
  8131. PS2='> '
  8132. PS4='+ '
  8133. # NLS nuisances.
  8134. LC_ALL=C
  8135. export LC_ALL
  8136. LANGUAGE=C
  8137. export LANGUAGE
  8138. # CDPATH.
  8139. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8140. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8141. # ----------------------------------------
  8142. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8143. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8144. # script with STATUS, using 1 if that was 0.
  8145. as_fn_error ()
  8146. {
  8147. as_status=$1; test $as_status -eq 0 && as_status=1
  8148. if test "$4"; then
  8149. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8150. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8151. fi
  8152. $as_echo "$as_me: error: $2" >&2
  8153. as_fn_exit $as_status
  8154. } # as_fn_error
  8155. # as_fn_set_status STATUS
  8156. # -----------------------
  8157. # Set $? to STATUS, without forking.
  8158. as_fn_set_status ()
  8159. {
  8160. return $1
  8161. } # as_fn_set_status
  8162. # as_fn_exit STATUS
  8163. # -----------------
  8164. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8165. as_fn_exit ()
  8166. {
  8167. set +e
  8168. as_fn_set_status $1
  8169. exit $1
  8170. } # as_fn_exit
  8171. # as_fn_unset VAR
  8172. # ---------------
  8173. # Portably unset VAR.
  8174. as_fn_unset ()
  8175. {
  8176. { eval $1=; unset $1;}
  8177. }
  8178. as_unset=as_fn_unset
  8179. # as_fn_append VAR VALUE
  8180. # ----------------------
  8181. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8182. # advantage of any shell optimizations that allow amortized linear growth over
  8183. # repeated appends, instead of the typical quadratic growth present in naive
  8184. # implementations.
  8185. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8186. eval 'as_fn_append ()
  8187. {
  8188. eval $1+=\$2
  8189. }'
  8190. else
  8191. as_fn_append ()
  8192. {
  8193. eval $1=\$$1\$2
  8194. }
  8195. fi # as_fn_append
  8196. # as_fn_arith ARG...
  8197. # ------------------
  8198. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8199. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8200. # must be portable across $(()) and expr.
  8201. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8202. eval 'as_fn_arith ()
  8203. {
  8204. as_val=$(( $* ))
  8205. }'
  8206. else
  8207. as_fn_arith ()
  8208. {
  8209. as_val=`expr "$@" || test $? -eq 1`
  8210. }
  8211. fi # as_fn_arith
  8212. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8213. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8214. as_expr=expr
  8215. else
  8216. as_expr=false
  8217. fi
  8218. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8219. as_basename=basename
  8220. else
  8221. as_basename=false
  8222. fi
  8223. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8224. as_dirname=dirname
  8225. else
  8226. as_dirname=false
  8227. fi
  8228. as_me=`$as_basename -- "$0" ||
  8229. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8230. X"$0" : 'X\(//\)$' \| \
  8231. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8232. $as_echo X/"$0" |
  8233. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8234. s//\1/
  8235. q
  8236. }
  8237. /^X\/\(\/\/\)$/{
  8238. s//\1/
  8239. q
  8240. }
  8241. /^X\/\(\/\).*/{
  8242. s//\1/
  8243. q
  8244. }
  8245. s/.*/./; q'`
  8246. # Avoid depending upon Character Ranges.
  8247. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8248. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8249. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8250. as_cr_digits='0123456789'
  8251. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8252. ECHO_C= ECHO_N= ECHO_T=
  8253. case `echo -n x` in #(((((
  8254. -n*)
  8255. case `echo 'xy\c'` in
  8256. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8257. xy) ECHO_C='\c';;
  8258. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8259. ECHO_T=' ';;
  8260. esac;;
  8261. *)
  8262. ECHO_N='-n';;
  8263. esac
  8264. rm -f conf$$ conf$$.exe conf$$.file
  8265. if test -d conf$$.dir; then
  8266. rm -f conf$$.dir/conf$$.file
  8267. else
  8268. rm -f conf$$.dir
  8269. mkdir conf$$.dir 2>/dev/null
  8270. fi
  8271. if (echo >conf$$.file) 2>/dev/null; then
  8272. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8273. as_ln_s='ln -s'
  8274. # ... but there are two gotchas:
  8275. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8276. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8277. # In both cases, we have to default to `cp -pR'.
  8278. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8279. as_ln_s='cp -pR'
  8280. elif ln conf$$.file conf$$ 2>/dev/null; then
  8281. as_ln_s=ln
  8282. else
  8283. as_ln_s='cp -pR'
  8284. fi
  8285. else
  8286. as_ln_s='cp -pR'
  8287. fi
  8288. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8289. rmdir conf$$.dir 2>/dev/null
  8290. # as_fn_mkdir_p
  8291. # -------------
  8292. # Create "$as_dir" as a directory, including parents if necessary.
  8293. as_fn_mkdir_p ()
  8294. {
  8295. case $as_dir in #(
  8296. -*) as_dir=./$as_dir;;
  8297. esac
  8298. test -d "$as_dir" || eval $as_mkdir_p || {
  8299. as_dirs=
  8300. while :; do
  8301. case $as_dir in #(
  8302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8303. *) as_qdir=$as_dir;;
  8304. esac
  8305. as_dirs="'$as_qdir' $as_dirs"
  8306. as_dir=`$as_dirname -- "$as_dir" ||
  8307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8308. X"$as_dir" : 'X\(//\)[^/]' \| \
  8309. X"$as_dir" : 'X\(//\)$' \| \
  8310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8311. $as_echo X"$as_dir" |
  8312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8313. s//\1/
  8314. q
  8315. }
  8316. /^X\(\/\/\)[^/].*/{
  8317. s//\1/
  8318. q
  8319. }
  8320. /^X\(\/\/\)$/{
  8321. s//\1/
  8322. q
  8323. }
  8324. /^X\(\/\).*/{
  8325. s//\1/
  8326. q
  8327. }
  8328. s/.*/./; q'`
  8329. test -d "$as_dir" && break
  8330. done
  8331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8333. } # as_fn_mkdir_p
  8334. if mkdir -p . 2>/dev/null; then
  8335. as_mkdir_p='mkdir -p "$as_dir"'
  8336. else
  8337. test -d ./-p && rmdir ./-p
  8338. as_mkdir_p=false
  8339. fi
  8340. # as_fn_executable_p FILE
  8341. # -----------------------
  8342. # Test if FILE is an executable regular file.
  8343. as_fn_executable_p ()
  8344. {
  8345. test -f "$1" && test -x "$1"
  8346. } # as_fn_executable_p
  8347. as_test_x='test -x'
  8348. as_executable_p=as_fn_executable_p
  8349. # Sed expression to map a string onto a valid CPP name.
  8350. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8351. # Sed expression to map a string onto a valid variable name.
  8352. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8353. exec 6>&1
  8354. ## ----------------------------------- ##
  8355. ## Main body of $CONFIG_STATUS script. ##
  8356. ## ----------------------------------- ##
  8357. _ASEOF
  8358. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8360. # Save the log message, to keep $0 and so on meaningful, and to
  8361. # report actual input values of CONFIG_FILES etc. instead of their
  8362. # values after options handling.
  8363. ac_log="
  8364. This file was extended by $as_me, which was
  8365. generated by GNU Autoconf 2.69. Invocation command line was
  8366. CONFIG_FILES = $CONFIG_FILES
  8367. CONFIG_HEADERS = $CONFIG_HEADERS
  8368. CONFIG_LINKS = $CONFIG_LINKS
  8369. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8370. $ $0 $@
  8371. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8372. "
  8373. _ACEOF
  8374. case $ac_config_files in *"
  8375. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8376. esac
  8377. case $ac_config_headers in *"
  8378. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8379. esac
  8380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8381. # Files that config.status was made for.
  8382. config_files="$ac_config_files"
  8383. config_headers="$ac_config_headers"
  8384. _ACEOF
  8385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8386. ac_cs_usage="\
  8387. \`$as_me' instantiates files and other configuration actions
  8388. from templates according to the current configuration. Unless the files
  8389. and actions are specified as TAGs, all are instantiated by default.
  8390. Usage: $0 [OPTION]... [TAG]...
  8391. -h, --help print this help, then exit
  8392. -V, --version print version number and configuration settings, then exit
  8393. --config print configuration, then exit
  8394. -q, --quiet, --silent
  8395. do not print progress messages
  8396. -d, --debug don't remove temporary files
  8397. --recheck update $as_me by reconfiguring in the same conditions
  8398. --file=FILE[:TEMPLATE]
  8399. instantiate the configuration file FILE
  8400. --header=FILE[:TEMPLATE]
  8401. instantiate the configuration header FILE
  8402. Configuration files:
  8403. $config_files
  8404. Configuration headers:
  8405. $config_headers
  8406. Report bugs to the package provider."
  8407. _ACEOF
  8408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8409. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8410. ac_cs_version="\\
  8411. config.status
  8412. configured by $0, generated by GNU Autoconf 2.69,
  8413. with options \\"\$ac_cs_config\\"
  8414. Copyright (C) 2012 Free Software Foundation, Inc.
  8415. This config.status script is free software; the Free Software Foundation
  8416. gives unlimited permission to copy, distribute and modify it."
  8417. ac_pwd='$ac_pwd'
  8418. srcdir='$srcdir'
  8419. INSTALL='$INSTALL'
  8420. test -n "\$AWK" || AWK=awk
  8421. _ACEOF
  8422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8423. # The default lists apply if the user does not specify any file.
  8424. ac_need_defaults=:
  8425. while test $# != 0
  8426. do
  8427. case $1 in
  8428. --*=?*)
  8429. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8430. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8431. ac_shift=:
  8432. ;;
  8433. --*=)
  8434. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8435. ac_optarg=
  8436. ac_shift=:
  8437. ;;
  8438. *)
  8439. ac_option=$1
  8440. ac_optarg=$2
  8441. ac_shift=shift
  8442. ;;
  8443. esac
  8444. case $ac_option in
  8445. # Handling of the options.
  8446. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8447. ac_cs_recheck=: ;;
  8448. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8449. $as_echo "$ac_cs_version"; exit ;;
  8450. --config | --confi | --conf | --con | --co | --c )
  8451. $as_echo "$ac_cs_config"; exit ;;
  8452. --debug | --debu | --deb | --de | --d | -d )
  8453. debug=: ;;
  8454. --file | --fil | --fi | --f )
  8455. $ac_shift
  8456. case $ac_optarg in
  8457. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8458. '') as_fn_error $? "missing file argument" ;;
  8459. esac
  8460. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8461. ac_need_defaults=false;;
  8462. --header | --heade | --head | --hea )
  8463. $ac_shift
  8464. case $ac_optarg in
  8465. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8466. esac
  8467. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8468. ac_need_defaults=false;;
  8469. --he | --h)
  8470. # Conflict between --help and --header
  8471. as_fn_error $? "ambiguous option: \`$1'
  8472. Try \`$0 --help' for more information.";;
  8473. --help | --hel | -h )
  8474. $as_echo "$ac_cs_usage"; exit ;;
  8475. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8476. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8477. ac_cs_silent=: ;;
  8478. # This is an error.
  8479. -*) as_fn_error $? "unrecognized option: \`$1'
  8480. Try \`$0 --help' for more information." ;;
  8481. *) as_fn_append ac_config_targets " $1"
  8482. ac_need_defaults=false ;;
  8483. esac
  8484. shift
  8485. done
  8486. ac_configure_extra_args=
  8487. if $ac_cs_silent; then
  8488. exec 6>/dev/null
  8489. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8490. fi
  8491. _ACEOF
  8492. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8493. if \$ac_cs_recheck; then
  8494. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8495. shift
  8496. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8497. CONFIG_SHELL='$SHELL'
  8498. export CONFIG_SHELL
  8499. exec "\$@"
  8500. fi
  8501. _ACEOF
  8502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8503. exec 5>>config.log
  8504. {
  8505. echo
  8506. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8507. ## Running $as_me. ##
  8508. _ASBOX
  8509. $as_echo "$ac_log"
  8510. } >&5
  8511. _ACEOF
  8512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8513. _ACEOF
  8514. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8515. # Handling of arguments.
  8516. for ac_config_target in $ac_config_targets
  8517. do
  8518. case $ac_config_target in
  8519. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
  8520. "FL/abi-version.h") CONFIG_HEADERS="$CONFIG_HEADERS FL/abi-version.h:abi-version.in" ;;
  8521. "makeinclude") CONFIG_FILES="$CONFIG_FILES makeinclude" ;;
  8522. "fltk.list") CONFIG_FILES="$CONFIG_FILES fltk.list" ;;
  8523. "fltk-config") CONFIG_FILES="$CONFIG_FILES fltk-config" ;;
  8524. "fltk.spec") CONFIG_FILES="$CONFIG_FILES fltk.spec" ;;
  8525. "FL/Makefile") CONFIG_FILES="$CONFIG_FILES FL/Makefile" ;;
  8526. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8527. esac
  8528. done
  8529. # If the user did not use the arguments to specify the items to instantiate,
  8530. # then the envvar interface is used. Set only those that are not.
  8531. # We use the long form for the default assignment because of an extremely
  8532. # bizarre bug on SunOS 4.1.3.
  8533. if $ac_need_defaults; then
  8534. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8535. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8536. fi
  8537. # Have a temporary directory for convenience. Make it in the build tree
  8538. # simply because there is no reason against having it here, and in addition,
  8539. # creating and moving files from /tmp can sometimes cause problems.
  8540. # Hook for its removal unless debugging.
  8541. # Note that there is a small window in which the directory will not be cleaned:
  8542. # after its creation but before its name has been assigned to `$tmp'.
  8543. $debug ||
  8544. {
  8545. tmp= ac_tmp=
  8546. trap 'exit_status=$?
  8547. : "${ac_tmp:=$tmp}"
  8548. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8549. ' 0
  8550. trap 'as_fn_exit 1' 1 2 13 15
  8551. }
  8552. # Create a (secure) tmp directory for tmp files.
  8553. {
  8554. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8555. test -d "$tmp"
  8556. } ||
  8557. {
  8558. tmp=./conf$$-$RANDOM
  8559. (umask 077 && mkdir "$tmp")
  8560. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8561. ac_tmp=$tmp
  8562. # Set up the scripts for CONFIG_FILES section.
  8563. # No need to generate them if there are no CONFIG_FILES.
  8564. # This happens for instance with `./config.status config.h'.
  8565. if test -n "$CONFIG_FILES"; then
  8566. ac_cr=`echo X | tr X '\015'`
  8567. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8568. # But we know of no other shell where ac_cr would be empty at this
  8569. # point, so we can use a bashism as a fallback.
  8570. if test "x$ac_cr" = x; then
  8571. eval ac_cr=\$\'\\r\'
  8572. fi
  8573. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8574. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8575. ac_cs_awk_cr='\\r'
  8576. else
  8577. ac_cs_awk_cr=$ac_cr
  8578. fi
  8579. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8580. _ACEOF
  8581. {
  8582. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8583. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8584. echo "_ACEOF"
  8585. } >conf$$subs.sh ||
  8586. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8587. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8588. ac_delim='%!_!# '
  8589. for ac_last_try in false false false false false :; do
  8590. . ./conf$$subs.sh ||
  8591. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8592. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8593. if test $ac_delim_n = $ac_delim_num; then
  8594. break
  8595. elif $ac_last_try; then
  8596. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8597. else
  8598. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8599. fi
  8600. done
  8601. rm -f conf$$subs.sh
  8602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8603. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8604. _ACEOF
  8605. sed -n '
  8606. h
  8607. s/^/S["/; s/!.*/"]=/
  8608. p
  8609. g
  8610. s/^[^!]*!//
  8611. :repl
  8612. t repl
  8613. s/'"$ac_delim"'$//
  8614. t delim
  8615. :nl
  8616. h
  8617. s/\(.\{148\}\)..*/\1/
  8618. t more1
  8619. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8620. p
  8621. n
  8622. b repl
  8623. :more1
  8624. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8625. p
  8626. g
  8627. s/.\{148\}//
  8628. t nl
  8629. :delim
  8630. h
  8631. s/\(.\{148\}\)..*/\1/
  8632. t more2
  8633. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8634. p
  8635. b
  8636. :more2
  8637. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8638. p
  8639. g
  8640. s/.\{148\}//
  8641. t delim
  8642. ' <conf$$subs.awk | sed '
  8643. /^[^""]/{
  8644. N
  8645. s/\n//
  8646. }
  8647. ' >>$CONFIG_STATUS || ac_write_fail=1
  8648. rm -f conf$$subs.awk
  8649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8650. _ACAWK
  8651. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8652. for (key in S) S_is_set[key] = 1
  8653. FS = ""
  8654. }
  8655. {
  8656. line = $ 0
  8657. nfields = split(line, field, "@")
  8658. substed = 0
  8659. len = length(field[1])
  8660. for (i = 2; i < nfields; i++) {
  8661. key = field[i]
  8662. keylen = length(key)
  8663. if (S_is_set[key]) {
  8664. value = S[key]
  8665. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8666. len += length(value) + length(field[++i])
  8667. substed = 1
  8668. } else
  8669. len += 1 + keylen
  8670. }
  8671. print line
  8672. }
  8673. _ACAWK
  8674. _ACEOF
  8675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8676. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8677. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8678. else
  8679. cat
  8680. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8681. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8682. _ACEOF
  8683. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8684. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8685. # trailing colons and then remove the whole line if VPATH becomes empty
  8686. # (actually we leave an empty line to preserve line numbers).
  8687. if test "x$srcdir" = x.; then
  8688. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8689. h
  8690. s///
  8691. s/^/:/
  8692. s/[ ]*$/:/
  8693. s/:\$(srcdir):/:/g
  8694. s/:\${srcdir}:/:/g
  8695. s/:@srcdir@:/:/g
  8696. s/^:*//
  8697. s/:*$//
  8698. x
  8699. s/\(=[ ]*\).*/\1/
  8700. G
  8701. s/\n//
  8702. s/^[^=]*=[ ]*$//
  8703. }'
  8704. fi
  8705. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8706. fi # test -n "$CONFIG_FILES"
  8707. # Set up the scripts for CONFIG_HEADERS section.
  8708. # No need to generate them if there are no CONFIG_HEADERS.
  8709. # This happens for instance with `./config.status Makefile'.
  8710. if test -n "$CONFIG_HEADERS"; then
  8711. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8712. BEGIN {
  8713. _ACEOF
  8714. # Transform confdefs.h into an awk script `defines.awk', embedded as
  8715. # here-document in config.status, that substitutes the proper values into
  8716. # config.h.in to produce config.h.
  8717. # Create a delimiter string that does not exist in confdefs.h, to ease
  8718. # handling of long lines.
  8719. ac_delim='%!_!# '
  8720. for ac_last_try in false false :; do
  8721. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  8722. if test -z "$ac_tt"; then
  8723. break
  8724. elif $ac_last_try; then
  8725. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8726. else
  8727. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8728. fi
  8729. done
  8730. # For the awk script, D is an array of macro values keyed by name,
  8731. # likewise P contains macro parameters if any. Preserve backslash
  8732. # newline sequences.
  8733. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8734. sed -n '
  8735. s/.\{148\}/&'"$ac_delim"'/g
  8736. t rset
  8737. :rset
  8738. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8739. t def
  8740. d
  8741. :def
  8742. s/\\$//
  8743. t bsnl
  8744. s/["\\]/\\&/g
  8745. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8746. D["\1"]=" \3"/p
  8747. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8748. d
  8749. :bsnl
  8750. s/["\\]/\\&/g
  8751. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8752. D["\1"]=" \3\\\\\\n"\\/p
  8753. t cont
  8754. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8755. t cont
  8756. d
  8757. :cont
  8758. n
  8759. s/.\{148\}/&'"$ac_delim"'/g
  8760. t clear
  8761. :clear
  8762. s/\\$//
  8763. t bsnlc
  8764. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8765. d
  8766. :bsnlc
  8767. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8768. b cont
  8769. ' <confdefs.h | sed '
  8770. s/'"$ac_delim"'/"\\\
  8771. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8773. for (key in D) D_is_set[key] = 1
  8774. FS = ""
  8775. }
  8776. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8777. line = \$ 0
  8778. split(line, arg, " ")
  8779. if (arg[1] == "#") {
  8780. defundef = arg[2]
  8781. mac1 = arg[3]
  8782. } else {
  8783. defundef = substr(arg[1], 2)
  8784. mac1 = arg[2]
  8785. }
  8786. split(mac1, mac2, "(") #)
  8787. macro = mac2[1]
  8788. prefix = substr(line, 1, index(line, defundef) - 1)
  8789. if (D_is_set[macro]) {
  8790. # Preserve the white space surrounding the "#".
  8791. print prefix "define", macro P[macro] D[macro]
  8792. next
  8793. } else {
  8794. # Replace #undef with comments. This is necessary, for example,
  8795. # in the case of _POSIX_SOURCE, which is predefined and required
  8796. # on some systems where configure will not decide to define it.
  8797. if (defundef == "undef") {
  8798. print "/*", prefix defundef, macro, "*/"
  8799. next
  8800. }
  8801. }
  8802. }
  8803. { print }
  8804. _ACAWK
  8805. _ACEOF
  8806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8807. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8808. fi # test -n "$CONFIG_HEADERS"
  8809. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8810. shift
  8811. for ac_tag
  8812. do
  8813. case $ac_tag in
  8814. :[FHLC]) ac_mode=$ac_tag; continue;;
  8815. esac
  8816. case $ac_mode$ac_tag in
  8817. :[FHL]*:*);;
  8818. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8819. :[FH]-) ac_tag=-:-;;
  8820. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8821. esac
  8822. ac_save_IFS=$IFS
  8823. IFS=:
  8824. set x $ac_tag
  8825. IFS=$ac_save_IFS
  8826. shift
  8827. ac_file=$1
  8828. shift
  8829. case $ac_mode in
  8830. :L) ac_source=$1;;
  8831. :[FH])
  8832. ac_file_inputs=
  8833. for ac_f
  8834. do
  8835. case $ac_f in
  8836. -) ac_f="$ac_tmp/stdin";;
  8837. *) # Look for the file first in the build tree, then in the source tree
  8838. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8839. # because $ac_f cannot contain `:'.
  8840. test -f "$ac_f" ||
  8841. case $ac_f in
  8842. [\\/$]*) false;;
  8843. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8844. esac ||
  8845. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8846. esac
  8847. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8848. as_fn_append ac_file_inputs " '$ac_f'"
  8849. done
  8850. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8851. # use $as_me), people would be surprised to read:
  8852. # /* config.h. Generated by config.status. */
  8853. configure_input='Generated from '`
  8854. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8855. `' by configure.'
  8856. if test x"$ac_file" != x-; then
  8857. configure_input="$ac_file. $configure_input"
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8859. $as_echo "$as_me: creating $ac_file" >&6;}
  8860. fi
  8861. # Neutralize special characters interpreted by sed in replacement strings.
  8862. case $configure_input in #(
  8863. *\&* | *\|* | *\\* )
  8864. ac_sed_conf_input=`$as_echo "$configure_input" |
  8865. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8866. *) ac_sed_conf_input=$configure_input;;
  8867. esac
  8868. case $ac_tag in
  8869. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8870. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8871. esac
  8872. ;;
  8873. esac
  8874. ac_dir=`$as_dirname -- "$ac_file" ||
  8875. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8876. X"$ac_file" : 'X\(//\)[^/]' \| \
  8877. X"$ac_file" : 'X\(//\)$' \| \
  8878. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8879. $as_echo X"$ac_file" |
  8880. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8881. s//\1/
  8882. q
  8883. }
  8884. /^X\(\/\/\)[^/].*/{
  8885. s//\1/
  8886. q
  8887. }
  8888. /^X\(\/\/\)$/{
  8889. s//\1/
  8890. q
  8891. }
  8892. /^X\(\/\).*/{
  8893. s//\1/
  8894. q
  8895. }
  8896. s/.*/./; q'`
  8897. as_dir="$ac_dir"; as_fn_mkdir_p
  8898. ac_builddir=.
  8899. case "$ac_dir" in
  8900. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8901. *)
  8902. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8903. # A ".." for each directory in $ac_dir_suffix.
  8904. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8905. case $ac_top_builddir_sub in
  8906. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8907. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8908. esac ;;
  8909. esac
  8910. ac_abs_top_builddir=$ac_pwd
  8911. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8912. # for backward compatibility:
  8913. ac_top_builddir=$ac_top_build_prefix
  8914. case $srcdir in
  8915. .) # We are building in place.
  8916. ac_srcdir=.
  8917. ac_top_srcdir=$ac_top_builddir_sub
  8918. ac_abs_top_srcdir=$ac_pwd ;;
  8919. [\\/]* | ?:[\\/]* ) # Absolute name.
  8920. ac_srcdir=$srcdir$ac_dir_suffix;
  8921. ac_top_srcdir=$srcdir
  8922. ac_abs_top_srcdir=$srcdir ;;
  8923. *) # Relative name.
  8924. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8925. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8926. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8927. esac
  8928. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8929. case $ac_mode in
  8930. :F)
  8931. #
  8932. # CONFIG_FILE
  8933. #
  8934. case $INSTALL in
  8935. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8936. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8937. esac
  8938. _ACEOF
  8939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8940. # If the template does not know about datarootdir, expand it.
  8941. # FIXME: This hack should be removed a few years after 2.60.
  8942. ac_datarootdir_hack=; ac_datarootdir_seen=
  8943. ac_sed_dataroot='
  8944. /datarootdir/ {
  8945. p
  8946. q
  8947. }
  8948. /@datadir@/p
  8949. /@docdir@/p
  8950. /@infodir@/p
  8951. /@localedir@/p
  8952. /@mandir@/p'
  8953. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8954. *datarootdir*) ac_datarootdir_seen=yes;;
  8955. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8957. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8958. _ACEOF
  8959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8960. ac_datarootdir_hack='
  8961. s&@datadir@&$datadir&g
  8962. s&@docdir@&$docdir&g
  8963. s&@infodir@&$infodir&g
  8964. s&@localedir@&$localedir&g
  8965. s&@mandir@&$mandir&g
  8966. s&\\\${datarootdir}&$datarootdir&g' ;;
  8967. esac
  8968. _ACEOF
  8969. # Neutralize VPATH when `$srcdir' = `.'.
  8970. # Shell code in configure.ac might set extrasub.
  8971. # FIXME: do we really want to maintain this feature?
  8972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8973. ac_sed_extra="$ac_vpsub
  8974. $extrasub
  8975. _ACEOF
  8976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8977. :t
  8978. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8979. s|@configure_input@|$ac_sed_conf_input|;t t
  8980. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8981. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8982. s&@srcdir@&$ac_srcdir&;t t
  8983. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8984. s&@top_srcdir@&$ac_top_srcdir&;t t
  8985. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8986. s&@builddir@&$ac_builddir&;t t
  8987. s&@abs_builddir@&$ac_abs_builddir&;t t
  8988. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8989. s&@INSTALL@&$ac_INSTALL&;t t
  8990. $ac_datarootdir_hack
  8991. "
  8992. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8993. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8994. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8995. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8996. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8997. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8999. which seems to be undefined. Please make sure it is defined" >&5
  9000. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9001. which seems to be undefined. Please make sure it is defined" >&2;}
  9002. rm -f "$ac_tmp/stdin"
  9003. case $ac_file in
  9004. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9005. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9006. esac \
  9007. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9008. ;;
  9009. :H)
  9010. #
  9011. # CONFIG_HEADER
  9012. #
  9013. if test x"$ac_file" != x-; then
  9014. {
  9015. $as_echo "/* $configure_input */" \
  9016. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9017. } >"$ac_tmp/config.h" \
  9018. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9019. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9021. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9022. else
  9023. rm -f "$ac_file"
  9024. mv "$ac_tmp/config.h" "$ac_file" \
  9025. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9026. fi
  9027. else
  9028. $as_echo "/* $configure_input */" \
  9029. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9030. || as_fn_error $? "could not create -" "$LINENO" 5
  9031. fi
  9032. ;;
  9033. esac
  9034. done # for ac_tag
  9035. as_fn_exit 0
  9036. _ACEOF
  9037. ac_clean_files=$ac_clean_files_save
  9038. test $ac_write_fail = 0 ||
  9039. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9040. # configure is writing to config.log, and then calls config.status.
  9041. # config.status does its own redirection, appending to config.log.
  9042. # Unfortunately, on DOS this fails, as config.log is still kept open
  9043. # by configure, so config.status won't be able to write to it; its
  9044. # output is simply discarded. So we exec the FD to /dev/null,
  9045. # effectively closing config.log, so it can be properly (re)opened and
  9046. # appended to by config.status. When coming back to configure, we
  9047. # need to make the FD available again.
  9048. if test "$no_create" != yes; then
  9049. ac_cs_success=:
  9050. ac_config_status_args=
  9051. test "$silent" = yes &&
  9052. ac_config_status_args="$ac_config_status_args --quiet"
  9053. exec 5>/dev/null
  9054. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9055. exec 5>>config.log
  9056. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9057. # would make configure fail if this is the last instruction.
  9058. $ac_cs_success || as_fn_exit 1
  9059. fi
  9060. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9062. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9063. fi
  9064. chmod +x fltk-config