configure 368 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local
  13. ac_help="$ac_help
  14. --enable-macosx-app create a MacOSX application"
  15. ac_help="$ac_help
  16. --enable-shared build and link with shared libraries [--enable-shared]"
  17. ac_help="$ac_help
  18. --enable-w11 use W11 library for Windows X11 emulation"
  19. ac_help="$ac_help
  20. --with-cxx support C++ functionality (default: yes)"
  21. ac_help="$ac_help
  22. --with-macosx-archs[=arch list]
  23. compile multiple architectures on MacOSX, ie.
  24. universal. Valid architectures are i386, ppc,
  25. x86_64 and ppc64. (default: no [native])"
  26. ac_help="$ac_help
  27. --with-macosx-sdk[=path/sdk]
  28. compile with a system SDK on MacOSX. (default: no)"
  29. ac_help="$ac_help
  30. --with-tiff support TIFF functionality (default: yes)"
  31. ac_help="$ac_help
  32. --with-png support PNG functionality (default: yes)"
  33. ac_help="$ac_help
  34. --with-postgres support PostgreSQL functionality (default: no)"
  35. ac_help="$ac_help
  36. --with-mysql support MySQL functionality (default: no)"
  37. ac_help="$ac_help
  38. --with-sqlite support SQLite functionality (default: no)"
  39. ac_help="$ac_help
  40. --with-ffmpeg support FFMPEG functionality (default: no)"
  41. ac_help="$ac_help
  42. --with-opengl support OpenGL functionality (default: yes)"
  43. ac_help="$ac_help
  44. --with-odbc support ODBC functionality (default: no)"
  45. ac_help="$ac_help
  46. --with-fftw support FFTW functionality (default: yes)"
  47. ac_help="$ac_help
  48. --with-blas support BLAS functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-lapack support LAPACK functionality (default: no)"
  51. ac_help="$ac_help
  52. --with-cairo support Cairo functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-freetype support FreeType functionality (default: yes)"
  55. ac_help="$ac_help
  56. --with-nls support NLS functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-readline support Readline functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-opendwg support openDWG functionality (default: no)"
  61. ac_help="$ac_help
  62. --with-regex support regex functionality (default: yes)"
  63. ac_help="$ac_help
  64. --with-pthread support POSIX threads functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-openmp support OpenMP functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-opencl support OpenCL functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-wxwidgets[=path/wx-config]
  80. enable wxWidgets support (wx-config with path,
  81. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-netcdf[=path/nc-config]
  85. enable NetCDF support (nc-config with path,
  86. e.g. '--with-nc=/usr/local/bin/nc-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-geos[=path/geos-config]
  90. enable GEOS support (geos-config with path,
  91. e.g. '--with-geos=/usr/local/bin/geos-config',
  92. default: no)"
  93. ac_help="$ac_help
  94. --with-includes=DIRS site include files are in DIRS"
  95. ac_help="$ac_help
  96. --with-libs=DIRS site library files are in DIRS"
  97. ac_help="$ac_help
  98. --with-zlib-includes=DIRS
  99. zlib include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-zlib-libs=DIRS zlib library files are in DIRS"
  102. ac_help="$ac_help
  103. --with-readline-includes=DIRS
  104. Readline include files are in DIRS"
  105. ac_help="$ac_help
  106. --with-readline-libs=DIRS
  107. Readline library files are in DIRS"
  108. ac_help="$ac_help
  109. --with-tiff-includes=DIRS
  110. TIFF include files are in DIRS"
  111. ac_help="$ac_help
  112. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  113. ac_help="$ac_help
  114. --with-png-includes=DIRS
  115. PNG include files are in DIRS"
  116. ac_help="$ac_help
  117. --with-png-libs=DIRS PNG library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-postgres-includes=DIRS
  120. PostgreSQL include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-postgres-libs=DIRS
  123. PostgreSQL library files are in DIRS"
  124. ac_help="$ac_help
  125. --with-mysql-includes=DIRS
  126. MySQL include files are in DIRS"
  127. ac_help="$ac_help
  128. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  129. ac_help="$ac_help
  130. --with-sqlite-includes=DIRS
  131. SQLite include files are in DIRS"
  132. ac_help="$ac_help
  133. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-ffmpeg-includes=DIRS
  136. FFMPEG include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-opengl-includes=DIRS
  141. OpenGL include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-framework=DIR
  146. OpenGL framework is in DIR"
  147. ac_help="$ac_help
  148. --with-odbc-includes=DIRS
  149. ODBC include files are in DIRS"
  150. ac_help="$ac_help
  151. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  152. ac_help="$ac_help
  153. --with-fftw-includes=DIRS
  154. FFTW include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-blas-includes=DIRS
  159. BLAS include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-blas-libs=DIRS BLAS library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-lapack-includes=DIRS
  164. LAPACK include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-cairo-includes=DIRS
  169. cairo include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-cairo-libs=DIRS cairo library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-ldflags=FLAGS
  174. cairo needs FLAGS when linking"
  175. ac_help="$ac_help
  176. --with-freetype-includes=DIRS
  177. FreeType include files are in DIRS"
  178. ac_help="$ac_help
  179. --with-freetype-libs=DIRS
  180. FreeType library files are in DIRS"
  181. ac_help="$ac_help
  182. --with-proj-includes=DIRS
  183. External PROJ.4 include files are in DIRS"
  184. ac_help="$ac_help
  185. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  188. ac_help="$ac_help
  189. --with-opendwg-includes=DIRS
  190. openDWG include files are in DIRS"
  191. ac_help="$ac_help
  192. --with-opendwg-libs=DIRS
  193. openDWG library files are in DIRS"
  194. ac_help="$ac_help
  195. --with-regex-includes=DIRS
  196. regex include files are in DIRS"
  197. ac_help="$ac_help
  198. --with-regex-libs=DIRS regex library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-pthread-includes=DIRS
  201. POSIX threads include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-pthread-libs=DIRS
  204. POSIX threads library files are in DIRS"
  205. ac_help="$ac_help
  206. --with-openmp-includes=DIRS
  207. OpenMP include files are in DIRS"
  208. ac_help="$ac_help
  209. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-opencl-includes=DIRS
  212. OpenCL include files are in DIRS"
  213. ac_help="$ac_help
  214. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  215. ac_help="$ac_help
  216. --with-x use the X Window System"
  217. ac_help="$ac_help
  218. --enable-largefile enable support for large files (LFS)"
  219. # Initialize some variables set by options.
  220. # The variables have the same names as the options, with
  221. # dashes changed to underlines.
  222. build=NONE
  223. cache_file=./config.cache
  224. exec_prefix=NONE
  225. host=NONE
  226. no_create=
  227. nonopt=NONE
  228. no_recursion=
  229. prefix=NONE
  230. program_prefix=NONE
  231. program_suffix=NONE
  232. program_transform_name=s,x,x,
  233. silent=
  234. site=
  235. srcdir=
  236. target=NONE
  237. verbose=
  238. x_includes=NONE
  239. x_libraries=NONE
  240. bindir='${exec_prefix}/bin'
  241. sbindir='${exec_prefix}/sbin'
  242. libexecdir='${exec_prefix}/libexec'
  243. datadir='${prefix}/share'
  244. sysconfdir='${prefix}/etc'
  245. sharedstatedir='${prefix}/com'
  246. localstatedir='${prefix}/var'
  247. libdir='${exec_prefix}/lib'
  248. includedir='${prefix}/include'
  249. oldincludedir='/usr/include'
  250. infodir='${prefix}/info'
  251. mandir='${prefix}/man'
  252. # Initialize some other variables.
  253. subdirs=
  254. MFLAGS= MAKEFLAGS=
  255. SHELL=${CONFIG_SHELL-/bin/sh}
  256. # Maximum number of lines to put in a shell here document.
  257. ac_max_here_lines=12
  258. ac_prev=
  259. for ac_option
  260. do
  261. # If the previous option needs an argument, assign it.
  262. if test -n "$ac_prev"; then
  263. eval "$ac_prev=\$ac_option"
  264. ac_prev=
  265. continue
  266. fi
  267. case "$ac_option" in
  268. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  269. *) ac_optarg= ;;
  270. esac
  271. # Accept the important Cygnus configure options, so we can diagnose typos.
  272. case "$ac_option" in
  273. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  274. ac_prev=bindir ;;
  275. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  276. bindir="$ac_optarg" ;;
  277. -build | --build | --buil | --bui | --bu)
  278. ac_prev=build ;;
  279. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  280. build="$ac_optarg" ;;
  281. -cache-file | --cache-file | --cache-fil | --cache-fi \
  282. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  283. ac_prev=cache_file ;;
  284. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  285. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  286. cache_file="$ac_optarg" ;;
  287. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  288. ac_prev=datadir ;;
  289. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  290. | --da=*)
  291. datadir="$ac_optarg" ;;
  292. -disable-* | --disable-*)
  293. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  294. # Reject names that are not valid shell variable names.
  295. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  296. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  297. fi
  298. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  299. eval "enable_${ac_feature}=no" ;;
  300. -enable-* | --enable-*)
  301. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  305. fi
  306. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "enable_${ac_feature}='$ac_optarg'" ;;
  312. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  313. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  314. | --exec | --exe | --ex)
  315. ac_prev=exec_prefix ;;
  316. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  317. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  318. | --exec=* | --exe=* | --ex=*)
  319. exec_prefix="$ac_optarg" ;;
  320. -gas | --gas | --ga | --g)
  321. # Obsolete; use --with-gas.
  322. with_gas=yes ;;
  323. -help | --help | --hel | --he)
  324. # Omit some internal or obsolete options to make the list less imposing.
  325. # This message is too long to be a string in the A/UX 3.1 sh.
  326. cat << EOF
  327. Usage: configure [options] [host]
  328. Options: [defaults in brackets after descriptions]
  329. Configuration:
  330. --cache-file=FILE cache test results in FILE
  331. --help print this message
  332. --no-create do not create output files
  333. --quiet, --silent do not print \`checking...' messages
  334. --version print the version of autoconf that created configure
  335. Directory and file names:
  336. --prefix=PREFIX install architecture-independent files in PREFIX
  337. [$ac_default_prefix]
  338. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  339. [same as prefix]
  340. --bindir=DIR user executables in DIR [EPREFIX/bin]
  341. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  342. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  343. --datadir=DIR read-only architecture-independent data in DIR
  344. [PREFIX/share]
  345. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  346. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  347. [PREFIX/com]
  348. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  349. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  350. --includedir=DIR C header files in DIR [PREFIX/include]
  351. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  352. --infodir=DIR info documentation in DIR [PREFIX/info]
  353. --mandir=DIR man documentation in DIR [PREFIX/man]
  354. --srcdir=DIR find the sources in DIR [configure dir or ..]
  355. --program-prefix=PREFIX prepend PREFIX to installed program names
  356. --program-suffix=SUFFIX append SUFFIX to installed program names
  357. --program-transform-name=PROGRAM
  358. run sed PROGRAM on installed program names
  359. EOF
  360. cat << EOF
  361. Host type:
  362. --build=BUILD configure for building on BUILD [BUILD=HOST]
  363. --host=HOST configure for HOST [guessed]
  364. --target=TARGET configure for TARGET [TARGET=HOST]
  365. Features and packages:
  366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  368. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  369. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  370. --x-includes=DIR X include files are in DIR
  371. --x-libraries=DIR X library files are in DIR
  372. EOF
  373. if test -n "$ac_help"; then
  374. echo "--enable and --with options recognized:$ac_help"
  375. fi
  376. exit 0 ;;
  377. -host | --host | --hos | --ho)
  378. ac_prev=host ;;
  379. -host=* | --host=* | --hos=* | --ho=*)
  380. host="$ac_optarg" ;;
  381. -includedir | --includedir | --includedi | --included | --include \
  382. | --includ | --inclu | --incl | --inc)
  383. ac_prev=includedir ;;
  384. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  385. | --includ=* | --inclu=* | --incl=* | --inc=*)
  386. includedir="$ac_optarg" ;;
  387. -infodir | --infodir | --infodi | --infod | --info | --inf)
  388. ac_prev=infodir ;;
  389. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  390. infodir="$ac_optarg" ;;
  391. -libdir | --libdir | --libdi | --libd)
  392. ac_prev=libdir ;;
  393. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  394. libdir="$ac_optarg" ;;
  395. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  396. | --libexe | --libex | --libe)
  397. ac_prev=libexecdir ;;
  398. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  399. | --libexe=* | --libex=* | --libe=*)
  400. libexecdir="$ac_optarg" ;;
  401. -localstatedir | --localstatedir | --localstatedi | --localstated \
  402. | --localstate | --localstat | --localsta | --localst \
  403. | --locals | --local | --loca | --loc | --lo)
  404. ac_prev=localstatedir ;;
  405. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  406. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  407. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  408. localstatedir="$ac_optarg" ;;
  409. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  410. ac_prev=mandir ;;
  411. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  412. mandir="$ac_optarg" ;;
  413. -nfp | --nfp | --nf)
  414. # Obsolete; use --without-fp.
  415. with_fp=no ;;
  416. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  417. | --no-cr | --no-c)
  418. no_create=yes ;;
  419. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  420. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  421. no_recursion=yes ;;
  422. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  423. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  424. | --oldin | --oldi | --old | --ol | --o)
  425. ac_prev=oldincludedir ;;
  426. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  427. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  428. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  429. oldincludedir="$ac_optarg" ;;
  430. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  431. ac_prev=prefix ;;
  432. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  433. prefix="$ac_optarg" ;;
  434. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  435. | --program-pre | --program-pr | --program-p)
  436. ac_prev=program_prefix ;;
  437. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  438. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  439. program_prefix="$ac_optarg" ;;
  440. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  441. | --program-suf | --program-su | --program-s)
  442. ac_prev=program_suffix ;;
  443. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  444. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  445. program_suffix="$ac_optarg" ;;
  446. -program-transform-name | --program-transform-name \
  447. | --program-transform-nam | --program-transform-na \
  448. | --program-transform-n | --program-transform- \
  449. | --program-transform | --program-transfor \
  450. | --program-transfo | --program-transf \
  451. | --program-trans | --program-tran \
  452. | --progr-tra | --program-tr | --program-t)
  453. ac_prev=program_transform_name ;;
  454. -program-transform-name=* | --program-transform-name=* \
  455. | --program-transform-nam=* | --program-transform-na=* \
  456. | --program-transform-n=* | --program-transform-=* \
  457. | --program-transform=* | --program-transfor=* \
  458. | --program-transfo=* | --program-transf=* \
  459. | --program-trans=* | --program-tran=* \
  460. | --progr-tra=* | --program-tr=* | --program-t=*)
  461. program_transform_name="$ac_optarg" ;;
  462. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  463. | -silent | --silent | --silen | --sile | --sil)
  464. silent=yes ;;
  465. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  466. ac_prev=sbindir ;;
  467. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  468. | --sbi=* | --sb=*)
  469. sbindir="$ac_optarg" ;;
  470. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  471. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  472. | --sharedst | --shareds | --shared | --share | --shar \
  473. | --sha | --sh)
  474. ac_prev=sharedstatedir ;;
  475. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  476. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  477. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  478. | --sha=* | --sh=*)
  479. sharedstatedir="$ac_optarg" ;;
  480. -site | --site | --sit)
  481. ac_prev=site ;;
  482. -site=* | --site=* | --sit=*)
  483. site="$ac_optarg" ;;
  484. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  485. ac_prev=srcdir ;;
  486. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  487. srcdir="$ac_optarg" ;;
  488. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  489. | --syscon | --sysco | --sysc | --sys | --sy)
  490. ac_prev=sysconfdir ;;
  491. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  492. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  493. sysconfdir="$ac_optarg" ;;
  494. -target | --target | --targe | --targ | --tar | --ta | --t)
  495. ac_prev=target ;;
  496. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  497. target="$ac_optarg" ;;
  498. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  499. verbose=yes ;;
  500. -version | --version | --versio | --versi | --vers)
  501. echo "configure generated by autoconf version 2.13"
  502. exit 0 ;;
  503. -with-* | --with-*)
  504. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  505. # Reject names that are not valid shell variable names.
  506. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  507. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  508. fi
  509. ac_package=`echo $ac_package| sed 's/-/_/g'`
  510. case "$ac_option" in
  511. *=*) ;;
  512. *) ac_optarg=yes ;;
  513. esac
  514. eval "with_${ac_package}='$ac_optarg'" ;;
  515. -without-* | --without-*)
  516. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  517. # Reject names that are not valid shell variable names.
  518. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  519. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  520. fi
  521. ac_package=`echo $ac_package| sed 's/-/_/g'`
  522. eval "with_${ac_package}=no" ;;
  523. --x)
  524. # Obsolete; use --with-x.
  525. with_x=yes ;;
  526. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  527. | --x-incl | --x-inc | --x-in | --x-i)
  528. ac_prev=x_includes ;;
  529. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  530. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  531. x_includes="$ac_optarg" ;;
  532. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  533. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  534. ac_prev=x_libraries ;;
  535. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  536. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  537. x_libraries="$ac_optarg" ;;
  538. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  539. ;;
  540. *)
  541. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  542. echo "configure: warning: $ac_option: invalid host type" 1>&2
  543. fi
  544. if test "x$nonopt" != xNONE; then
  545. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  546. fi
  547. nonopt="$ac_option"
  548. ;;
  549. esac
  550. done
  551. if test -n "$ac_prev"; then
  552. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  553. fi
  554. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  555. # File descriptor usage:
  556. # 0 standard input
  557. # 1 file creation
  558. # 2 errors and warnings
  559. # 3 some systems may open it to /dev/tty
  560. # 4 used on the Kubota Titan
  561. # 6 checking for... messages and results
  562. # 5 compiler messages saved in config.log
  563. if test "$silent" = yes; then
  564. exec 6>/dev/null
  565. else
  566. exec 6>&1
  567. fi
  568. exec 5>./config.log
  569. echo "\
  570. This file contains any messages produced by compilers while
  571. running configure, to aid debugging if configure makes a mistake.
  572. " 1>&5
  573. # Strip out --no-create and --no-recursion so they do not pile up.
  574. # Also quote any args containing shell metacharacters.
  575. ac_configure_args=
  576. for ac_arg
  577. do
  578. case "$ac_arg" in
  579. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  580. | --no-cr | --no-c) ;;
  581. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  582. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  583. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  584. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  585. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  586. esac
  587. done
  588. # NLS nuisances.
  589. # Only set these to C if already set. These must not be set unconditionally
  590. # because not all systems understand e.g. LANG=C (notably SCO).
  591. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  592. # Non-C LC_CTYPE values break the ctype check.
  593. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  594. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  595. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  596. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  597. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  598. rm -rf conftest* confdefs.h
  599. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  600. echo > confdefs.h
  601. # A filename unique to this package, relative to the directory that
  602. # configure is in, which we can look for to find out if srcdir is correct.
  603. ac_unique_file=configure.in
  604. # Find the source files, if location was not specified.
  605. if test -z "$srcdir"; then
  606. ac_srcdir_defaulted=yes
  607. # Try the directory containing this script, then its parent.
  608. ac_prog=$0
  609. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  610. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  611. srcdir=$ac_confdir
  612. if test ! -r $srcdir/$ac_unique_file; then
  613. srcdir=..
  614. fi
  615. else
  616. ac_srcdir_defaulted=no
  617. fi
  618. if test ! -r $srcdir/$ac_unique_file; then
  619. if test "$ac_srcdir_defaulted" = yes; then
  620. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  621. else
  622. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  623. fi
  624. fi
  625. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  626. # Prefer explicitly selected file to automatically selected ones.
  627. if test -z "$CONFIG_SITE"; then
  628. if test "x$prefix" != xNONE; then
  629. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  630. else
  631. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  632. fi
  633. fi
  634. for ac_site_file in $CONFIG_SITE; do
  635. if test -r "$ac_site_file"; then
  636. echo "loading site script $ac_site_file"
  637. . "$ac_site_file"
  638. fi
  639. done
  640. ac_ext=c
  641. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  642. ac_cpp='$CPP $CPPFLAGS'
  643. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  644. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  645. cross_compiling=$ac_cv_prog_cc_cross
  646. ac_exeext=
  647. ac_objext=o
  648. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  649. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  650. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  651. ac_n= ac_c='
  652. ' ac_t=' '
  653. else
  654. ac_n=-n ac_c= ac_t=
  655. fi
  656. else
  657. ac_n= ac_c='\c' ac_t=
  658. fi
  659. ac_aux_dir=
  660. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  661. if test -f $ac_dir/install-sh; then
  662. ac_aux_dir=$ac_dir
  663. ac_install_sh="$ac_aux_dir/install-sh -c"
  664. break
  665. elif test -f $ac_dir/install.sh; then
  666. ac_aux_dir=$ac_dir
  667. ac_install_sh="$ac_aux_dir/install.sh -c"
  668. break
  669. fi
  670. done
  671. if test -z "$ac_aux_dir"; then
  672. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  673. fi
  674. ac_config_guess=$ac_aux_dir/config.guess
  675. ac_config_sub=$ac_aux_dir/config.sub
  676. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  677. # Make sure we can run config.sub.
  678. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  679. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  680. fi
  681. echo $ac_n "checking host system type""... $ac_c" 1>&6
  682. echo "configure:754: checking host system type" >&5
  683. host_alias=$host
  684. case "$host_alias" in
  685. NONE)
  686. case $nonopt in
  687. NONE)
  688. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  689. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  690. fi ;;
  691. *) host_alias=$nonopt ;;
  692. esac ;;
  693. esac
  694. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  695. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  696. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  697. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  698. echo "$ac_t""$host" 1>&6
  699. # Extract the first word of "gcc", so it can be a program name with args.
  700. set dummy gcc; ac_word=$2
  701. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  702. echo "configure:777: checking for $ac_word" >&5
  703. if test -n "$CC"; then
  704. ac_cv_prog_CC="$CC" # Let the user override the test.
  705. else
  706. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  707. ac_dummy="$PATH"
  708. for ac_dir in $ac_dummy; do
  709. test -z "$ac_dir" && ac_dir=.
  710. if test -f $ac_dir/$ac_word; then
  711. ac_cv_prog_CC="gcc"
  712. break
  713. fi
  714. done
  715. IFS="$ac_save_ifs"
  716. fi
  717. CC="$ac_cv_prog_CC"
  718. if test -n "$CC"; then
  719. echo "$ac_t""$CC" 1>&6
  720. else
  721. echo "$ac_t""no" 1>&6
  722. fi
  723. if test -z "$CC"; then
  724. # Extract the first word of "cc", so it can be a program name with args.
  725. set dummy cc; ac_word=$2
  726. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  727. echo "configure:804: checking for $ac_word" >&5
  728. if test -n "$CC"; then
  729. ac_cv_prog_CC="$CC" # Let the user override the test.
  730. else
  731. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  732. ac_prog_rejected=no
  733. ac_dummy="$PATH"
  734. for ac_dir in $ac_dummy; do
  735. test -z "$ac_dir" && ac_dir=.
  736. if test -f $ac_dir/$ac_word; then
  737. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  738. ac_prog_rejected=yes
  739. continue
  740. fi
  741. ac_cv_prog_CC="cc"
  742. break
  743. fi
  744. done
  745. IFS="$ac_save_ifs"
  746. if test $ac_prog_rejected = yes; then
  747. # We found a bogon in the path, so make sure we never use it.
  748. set dummy $ac_cv_prog_CC
  749. shift
  750. if test $# -gt 0; then
  751. # We chose a different compiler from the bogus one.
  752. # However, it has the same basename, so the bogon will be chosen
  753. # first if we set CC to just the basename; use the full file name.
  754. shift
  755. set dummy "$ac_dir/$ac_word" "$@"
  756. shift
  757. ac_cv_prog_CC="$@"
  758. fi
  759. fi
  760. fi
  761. CC="$ac_cv_prog_CC"
  762. if test -n "$CC"; then
  763. echo "$ac_t""$CC" 1>&6
  764. else
  765. echo "$ac_t""no" 1>&6
  766. fi
  767. if test -z "$CC"; then
  768. case "`uname -s`" in
  769. *win32* | *WIN32*)
  770. # Extract the first word of "cl", so it can be a program name with args.
  771. set dummy cl; ac_word=$2
  772. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  773. echo "configure:852: checking for $ac_word" >&5
  774. if test -n "$CC"; then
  775. ac_cv_prog_CC="$CC" # Let the user override the test.
  776. else
  777. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  778. ac_dummy="$PATH"
  779. for ac_dir in $ac_dummy; do
  780. test -z "$ac_dir" && ac_dir=.
  781. if test -f $ac_dir/$ac_word; then
  782. ac_cv_prog_CC="cl"
  783. break
  784. fi
  785. done
  786. IFS="$ac_save_ifs"
  787. fi
  788. CC="$ac_cv_prog_CC"
  789. if test -n "$CC"; then
  790. echo "$ac_t""$CC" 1>&6
  791. else
  792. echo "$ac_t""no" 1>&6
  793. fi
  794. ;;
  795. esac
  796. fi
  797. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  798. fi
  799. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  800. echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  801. ac_ext=c
  802. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  803. ac_cpp='$CPP $CPPFLAGS'
  804. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  805. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  806. cross_compiling=$ac_cv_prog_cc_cross
  807. cat > conftest.$ac_ext << EOF
  808. #line 892 "configure"
  809. #include "confdefs.h"
  810. main(){return(0);}
  811. EOF
  812. if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  813. ac_cv_prog_cc_works=yes
  814. # If we can't run a trivial program, we are probably using a cross compiler.
  815. if (./conftest; exit) 2>/dev/null; then
  816. ac_cv_prog_cc_cross=no
  817. else
  818. ac_cv_prog_cc_cross=yes
  819. fi
  820. else
  821. echo "configure: failed program was:" >&5
  822. cat conftest.$ac_ext >&5
  823. ac_cv_prog_cc_works=no
  824. fi
  825. rm -fr conftest*
  826. ac_ext=c
  827. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  828. ac_cpp='$CPP $CPPFLAGS'
  829. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  830. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  831. cross_compiling=$ac_cv_prog_cc_cross
  832. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  833. if test $ac_cv_prog_cc_works = no; then
  834. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  835. fi
  836. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  837. echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  838. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  839. cross_compiling=$ac_cv_prog_cc_cross
  840. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  841. echo "configure:928: checking whether we are using GNU C" >&5
  842. cat > conftest.c <<EOF
  843. #ifdef __GNUC__
  844. yes;
  845. #endif
  846. EOF
  847. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  848. ac_cv_prog_gcc=yes
  849. else
  850. ac_cv_prog_gcc=no
  851. fi
  852. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  853. if test $ac_cv_prog_gcc = yes; then
  854. GCC=yes
  855. else
  856. GCC=
  857. fi
  858. ac_test_CFLAGS="${CFLAGS+set}"
  859. ac_save_CFLAGS="$CFLAGS"
  860. CFLAGS=
  861. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  862. echo "configure:953: checking whether ${CC-cc} accepts -g" >&5
  863. echo 'void f(){}' > conftest.c
  864. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  865. ac_cv_prog_cc_g=yes
  866. else
  867. ac_cv_prog_cc_g=no
  868. fi
  869. rm -f conftest*
  870. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  871. if test "$ac_test_CFLAGS" = set; then
  872. CFLAGS="$ac_save_CFLAGS"
  873. elif test $ac_cv_prog_cc_g = yes; then
  874. if test "$GCC" = yes; then
  875. CFLAGS="-g -O2"
  876. else
  877. CFLAGS="-g"
  878. fi
  879. else
  880. if test "$GCC" = yes; then
  881. CFLAGS="-O2"
  882. else
  883. CFLAGS=
  884. fi
  885. fi
  886. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  887. echo "configure:982: checking for Cygwin environment" >&5
  888. cat > conftest.$ac_ext <<EOF
  889. #line 985 "configure"
  890. #include "confdefs.h"
  891. int main() {
  892. #ifndef __CYGWIN__
  893. #define __CYGWIN__ __CYGWIN32__
  894. #endif
  895. return __CYGWIN__;
  896. ; return 0; }
  897. EOF
  898. if { (eval echo configure:996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  899. rm -rf conftest*
  900. ac_cv_cygwin=yes
  901. else
  902. echo "configure: failed program was:" >&5
  903. cat conftest.$ac_ext >&5
  904. rm -rf conftest*
  905. ac_cv_cygwin=no
  906. fi
  907. rm -f conftest*
  908. rm -f conftest*
  909. echo "$ac_t""$ac_cv_cygwin" 1>&6
  910. CYGWIN=
  911. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  912. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  913. echo "configure:1012: checking for mingw32 environment" >&5
  914. cat > conftest.$ac_ext <<EOF
  915. #line 1015 "configure"
  916. #include "confdefs.h"
  917. int main() {
  918. return __MINGW32__;
  919. ; return 0; }
  920. EOF
  921. if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  922. rm -rf conftest*
  923. ac_cv_mingw32=yes
  924. else
  925. echo "configure: failed program was:" >&5
  926. cat conftest.$ac_ext >&5
  927. rm -rf conftest*
  928. ac_cv_mingw32=no
  929. fi
  930. rm -f conftest*
  931. rm -f conftest*
  932. echo "$ac_t""$ac_cv_mingw32" 1>&6
  933. MINGW32=
  934. test "$ac_cv_mingw32" = yes && MINGW32=yes
  935. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  936. echo "configure:1040: checking for executable suffix" >&5
  937. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  938. ac_cv_exeext=.exe
  939. else
  940. ac_cv_exeext=no
  941. fi
  942. EXEEXT=""
  943. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  944. echo "$ac_t""${ac_cv_exeext}" 1>&6
  945. ac_exeext=$EXEEXT
  946. # Check for full floating-point support, including Infinity and NaN
  947. IEEEFLAG=
  948. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  949. echo "configure:1059: checking for full floating-point support" >&5
  950. if test "$cross_compiling" = yes; then
  951. echo "$ac_t""unknown (cross-compiling)" 1>&6
  952. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  953. echo "configure:1064: checking whether "cc -mieee" works" >&5
  954. ac_save_cflags=${CFLAGS}
  955. CFLAGS="$CFLAGS -mieee"
  956. cat > conftest.$ac_ext <<EOF
  957. #line 1068 "configure"
  958. #include "confdefs.h"
  959. int main() {
  960. ; return 0; }
  961. EOF
  962. if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  963. rm -rf conftest*
  964. echo "$ac_t""yes" 1>&6
  965. IEEEFLAG="-mieee"
  966. else
  967. echo "configure: failed program was:" >&5
  968. cat conftest.$ac_ext >&5
  969. rm -rf conftest*
  970. echo "$ac_t""no" 1>&6
  971. fi
  972. rm -f conftest*
  973. CFLAGS=${ac_save_cflags}
  974. else
  975. cat > conftest.$ac_ext <<EOF
  976. #line 1091 "configure"
  977. #include "confdefs.h"
  978. #include <float.h>
  979. int main(void) {
  980. double one = 1.0;
  981. double zero = 0.0;
  982. if (one/zero > DBL_MAX) /* infinity */
  983. if (zero/zero != zero/zero) /* NaN */
  984. return 0;
  985. return 1;
  986. }
  987. EOF
  988. if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  989. then
  990. echo "$ac_t""yes" 1>&6
  991. else
  992. echo "configure: failed program was:" >&5
  993. cat conftest.$ac_ext >&5
  994. rm -fr conftest*
  995. echo "$ac_t""no" 1>&6
  996. ac_save_cflags=${CFLAGS}
  997. CFLAGS=-mieee
  998. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  999. echo "configure:1118: checking for full floating-point support with -mieee" >&5
  1000. if test "$cross_compiling" = yes; then
  1001. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1002. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1003. else
  1004. cat > conftest.$ac_ext <<EOF
  1005. #line 1125 "configure"
  1006. #include "confdefs.h"
  1007. #include <float.h>
  1008. int main(void) {
  1009. double one = 1.0;
  1010. double zero = 0.0;
  1011. if (one/zero > DBL_MAX) /* infinity */
  1012. if (zero/zero != zero/zero) /* NaN */
  1013. return 0;
  1014. return 1;
  1015. }
  1016. EOF
  1017. if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1018. then
  1019. echo "$ac_t""yes" 1>&6
  1020. IEEEFLAG="-mieee"
  1021. else
  1022. echo "configure: failed program was:" >&5
  1023. cat conftest.$ac_ext >&5
  1024. rm -fr conftest*
  1025. echo "$ac_t""no" 1>&6
  1026. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1027. fi
  1028. rm -fr conftest*
  1029. fi
  1030. CFLAGS=${ac_save_cflags}
  1031. fi
  1032. rm -fr conftest*
  1033. fi
  1034. CFLAGS="$CFLAGS $IEEEFLAG"
  1035. # Set BINDIR
  1036. if test -n "${bindir}"; then
  1037. BINDIR="${bindir}"
  1038. else
  1039. BINDIR=/usr/local/bin
  1040. fi
  1041. # Set SRCDIR and DSTDIR
  1042. # Extract the first word of "pwd", so it can be a program name with args.
  1043. set dummy pwd; ac_word=$2
  1044. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1045. echo "configure:1176: checking for $ac_word" >&5
  1046. case "$pwd" in
  1047. /*)
  1048. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1049. ;;
  1050. ?:/*)
  1051. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1052. ;;
  1053. *)
  1054. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1055. ac_dummy="$PATH"
  1056. for ac_dir in $ac_dummy; do
  1057. test -z "$ac_dir" && ac_dir=.
  1058. if test -f $ac_dir/$ac_word; then
  1059. ac_cv_path_pwd="$ac_dir/$ac_word"
  1060. break
  1061. fi
  1062. done
  1063. IFS="$ac_save_ifs"
  1064. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1065. ;;
  1066. esac
  1067. pwd="$ac_cv_path_pwd"
  1068. if test -n "$pwd"; then
  1069. echo "$ac_t""$pwd" 1>&6
  1070. else
  1071. echo "$ac_t""no" 1>&6
  1072. fi
  1073. if test "$MINGW32" = yes ; then
  1074. winpwd="$pwd -W"
  1075. else
  1076. winpwd="$pwd"
  1077. fi
  1078. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1079. echo "configure:1214: checking for source directory" >&5
  1080. if test -z "$srcdir" ; then
  1081. SRCDIR=`$pwd`
  1082. else
  1083. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1084. fi
  1085. echo "$ac_t"""$SRCDIR"" 1>&6
  1086. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1087. echo "configure:1225: checking for build directory" >&5
  1088. DSTDIR=`$pwd`
  1089. WINDSTDIR=`$winpwd`
  1090. echo "$ac_t"""$DSTDIR"" 1>&6
  1091. # Set ARCH
  1092. ARCH=
  1093. if test -z "${host}"; then
  1094. ARCH="unknown"
  1095. else
  1096. ARCH="${host}"
  1097. fi
  1098. # Use absolute path for aux directory so that install-sh works
  1099. ac_aux_dir=
  1100. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1101. if test -f $ac_dir/install-sh; then
  1102. ac_aux_dir=$ac_dir
  1103. ac_install_sh="$ac_aux_dir/install-sh -c"
  1104. break
  1105. elif test -f $ac_dir/install.sh; then
  1106. ac_aux_dir=$ac_dir
  1107. ac_install_sh="$ac_aux_dir/install.sh -c"
  1108. break
  1109. fi
  1110. done
  1111. if test -z "$ac_aux_dir"; then
  1112. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1113. fi
  1114. ac_config_guess=$ac_aux_dir/config.guess
  1115. ac_config_sub=$ac_aux_dir/config.sub
  1116. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1117. # Set GISBASE and GRASS_BIN
  1118. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1119. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1120. # Set GRASS_VERSION_*
  1121. GRASS_VERSION_FILE=include/VERSION
  1122. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1123. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1124. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1125. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1126. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1127. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1128. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1129. GRASS_VERSION_SVN=
  1130. # Extract the first word of "svnversion", so it can be a program name with args.
  1131. set dummy svnversion; ac_word=$2
  1132. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1133. echo "configure:1293: checking for $ac_word" >&5
  1134. case "$SVN_VERSION" in
  1135. /*)
  1136. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1137. ;;
  1138. ?:/*)
  1139. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1140. ;;
  1141. *)
  1142. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1143. ac_dummy="$PATH"
  1144. for ac_dir in $ac_dummy; do
  1145. test -z "$ac_dir" && ac_dir=.
  1146. if test -f $ac_dir/$ac_word; then
  1147. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1148. break
  1149. fi
  1150. done
  1151. IFS="$ac_save_ifs"
  1152. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1153. ;;
  1154. esac
  1155. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1156. if test -n "$SVN_VERSION"; then
  1157. echo "$ac_t""$SVN_VERSION" 1>&6
  1158. else
  1159. echo "$ac_t""no" 1>&6
  1160. fi
  1161. if test "$SVN_VERSION" != "no" ; then
  1162. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1163. if test "$GRASS_VERSION_SVN" = "exported" ; then
  1164. GRASS_VERSION_SVN=
  1165. fi
  1166. fi
  1167. # Check for MacOSX App
  1168. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1169. if test "${enable_macosx_app+set}" = set; then
  1170. enableval="$enable_macosx_app"
  1171. :
  1172. else
  1173. enable_macosx_app=no
  1174. fi
  1175. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1176. echo "configure:1352: checking for MacOSX App" >&5
  1177. case "$enable_macosx_app" in
  1178. yes) MACOSX_APP=1 ;;
  1179. no) MACOSX_APP= ;;
  1180. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1181. esac
  1182. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1183. # Check for MacOSX archs
  1184. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1185. echo "configure:1364: checking for MacOSX architectures" >&5
  1186. MACOSX_ARCHS=
  1187. if test -z "$with_macosx_archs" ; then
  1188. echo "$ac_t""no" 1>&6
  1189. else
  1190. for a in $with_macosx_archs
  1191. do
  1192. # check if valid arch?
  1193. case "$a" in
  1194. i386|ppc|x86_64|ppc64)
  1195. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1196. ;;
  1197. esac
  1198. done
  1199. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1200. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1201. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1202. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1203. fi
  1204. # Done checking MacOSX archs
  1205. # Check for MacOSX SDK
  1206. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1207. echo "configure:1393: checking for MacOSX SDK" >&5
  1208. MACOSX_SDK=
  1209. if test -z "$with_macosx_sdk" ; then
  1210. echo "$ac_t""no" 1>&6
  1211. else
  1212. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1213. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1214. echo "configure:1403: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1215. if test "$cross_compiling" = yes; then
  1216. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1217. else
  1218. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1219. eval "ac_cv_file_$ac_safe=yes"
  1220. else
  1221. eval "ac_cv_file_$ac_safe=no"
  1222. fi
  1223. fi
  1224. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1225. echo "$ac_t""yes" 1>&6
  1226. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1227. else
  1228. echo "$ac_t""no" 1>&6
  1229. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1230. fi
  1231. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1232. CFLAGS="$CFLAGS $MACOSX_SDK"
  1233. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1234. fi
  1235. # Done checking MacOSX SDK
  1236. # Set INST_DIR
  1237. if test -n "$MACOSX_APP" ; then
  1238. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1239. else
  1240. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1241. fi
  1242. # Get flags for building shared libraries
  1243. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1244. echo "configure:1447: checking how to build libraries" >&5
  1245. # Check whether --enable-shared or --disable-shared was given.
  1246. if test "${enable_shared+set}" = set; then
  1247. enableval="$enable_shared"
  1248. shared_ok=$enableval
  1249. else
  1250. shared_ok=yes
  1251. fi
  1252. if test "${enable_shared+set}" = set; then
  1253. enableval="$enable_shared"
  1254. shared_ok=$enableval
  1255. else
  1256. shared_ok=yes
  1257. fi
  1258. if test "$shared_ok" = "yes" ; then
  1259. echo "$ac_t""shared" 1>&6
  1260. SHARED_BUILD=1
  1261. GRASS_LIBRARY_TYPE='shlib'
  1262. else
  1263. echo "$ac_t""static" 1>&6
  1264. SHARED_BUILD=0
  1265. cat >> confdefs.h <<\EOF
  1266. #define STATIC_BUILD 1
  1267. EOF
  1268. GRASS_LIBRARY_TYPE='stlib'
  1269. fi
  1270. ac_save_ldflags="$LDFLAGS"
  1271. SHLIB_CFLAGS=""
  1272. SHLIB_LD_FLAGS=""
  1273. SHLIB_SUFFIX=""
  1274. SHLIB_LD=""
  1275. STLIB_LD='${AR} cr'
  1276. STLIB_SUFFIX='.a'
  1277. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1278. GRASS_LIB_VERSIONS_OK=ok
  1279. LDFLAGS=""
  1280. LD_SEARCH_FLAGS=""
  1281. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1282. case $host in
  1283. *-linux-*)
  1284. SHLIB_CFLAGS="-fPIC"
  1285. SHLIB_LD_FLAGS=""
  1286. SHLIB_SUFFIX=".so"
  1287. SHLIB_LD="${CC} -shared"
  1288. LDFLAGS="-Wl,--export-dynamic"
  1289. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1290. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1291. ;;
  1292. *-pc-cygwin)
  1293. SHLIB_SUFFIX=".dll"
  1294. SHLIB_LD="${CC} -shared"
  1295. LDFLAGS="-Wl,--export-dynamic"
  1296. LD_LIBRARY_PATH_VAR="PATH"
  1297. ;;
  1298. *-pc-mingw32 | *-pc-msys)
  1299. SHLIB_SUFFIX=".dll"
  1300. SHLIB_LD="${CC} -shared"
  1301. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1302. LD_LIBRARY_PATH_VAR="PATH"
  1303. ;;
  1304. *-apple-darwin*)
  1305. SHLIB_CFLAGS="-fno-common"
  1306. SHLIB_SUFFIX=".dylib"
  1307. SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
  1308. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1309. ;;
  1310. *-sun-solaris*)
  1311. # Note: If _REENTRANT isn't defined, then Solaris
  1312. # won't define thread-safe library routines.
  1313. cat >> confdefs.h <<\EOF
  1314. #define _REENTRANT 1
  1315. EOF
  1316. cat >> confdefs.h <<\EOF
  1317. #define _POSIX_PTHREAD_SEMANTICS 1
  1318. EOF
  1319. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1320. # symbols when dynamically loaded into tclsh.
  1321. if test "$GCC" = "yes" ; then
  1322. SHLIB_CFLAGS="-fPIC"
  1323. SHLIB_LD="$CC -shared"
  1324. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1325. else
  1326. SHLIB_CFLAGS="-KPIC"
  1327. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1328. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1329. fi
  1330. SHLIB_SUFFIX=".so"
  1331. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1332. ;;
  1333. *-solaris2*)
  1334. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1335. # Oracle Solaris derives from Solaris 2
  1336. # derives from SunOS 5
  1337. # derives from UNIX System V Release 4
  1338. # Note: If _REENTRANT isn't defined, then Solaris
  1339. # won't define thread-safe library routines.
  1340. cat >> confdefs.h <<\EOF
  1341. #define _REENTRANT 1
  1342. EOF
  1343. cat >> confdefs.h <<\EOF
  1344. #define _POSIX_PTHREAD_SEMANTICS 1
  1345. EOF
  1346. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1347. # symbols when dynamically loaded into tclsh.
  1348. if test "$GCC" = "yes" ; then
  1349. SHLIB_CFLAGS="-fPIC"
  1350. SHLIB_LD="$CC -shared"
  1351. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1352. else
  1353. SHLIB_CFLAGS="-KPIC"
  1354. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1355. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1356. fi
  1357. SHLIB_SUFFIX=".so"
  1358. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1359. ;;
  1360. *-freebsd*)
  1361. # NOTE: only FreeBSD 4+ is supported
  1362. # FreeBSD 3.* and greater have ELF.
  1363. SHLIB_CFLAGS="-fPIC"
  1364. #SHLIB_LD="ld -Bshareable -x"
  1365. SHLIB_LD="${CC} -shared"
  1366. SHLIB_SUFFIX=".so"
  1367. LDFLAGS="-export-dynamic"
  1368. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1369. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1370. # TODO: add optional pthread support with any combination of:
  1371. # CFLAGS="$CFLAGS -pthread"
  1372. # LDFLAGS="$LDFLAGS -lpthread"
  1373. # AC_DEFINE(_REENTRANT)
  1374. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1375. ;;
  1376. *-netbsd*)
  1377. # NetBSD has ELF.
  1378. SHLIB_CFLAGS="-fPIC"
  1379. SHLIB_LD="${CC} -shared"
  1380. SHLIB_LD_LIBS="${LIBS}"
  1381. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1382. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1383. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1384. # some older NetBSD versions do not handle version numbers with dots.
  1385. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1386. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1387. #GRASS_LIB_VERSIONS_OK=nodots
  1388. # NetBSD 6 does handle version numbers with dots.
  1389. STLIB_SUFFIX=".a"
  1390. SHLIB_SUFFIX=".so"
  1391. # TODO: add optional pthread support with any combination of:
  1392. # CFLAGS="$CFLAGS -pthread"
  1393. # LDFLAGS="$LDFLAGS -lpthread"
  1394. # AC_DEFINE(_REENTRANT)
  1395. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1396. ;;
  1397. *aix*)
  1398. # NOTE: do we need to support aix < 6 ?
  1399. LIBS="$LIBS -lc"
  1400. SHLIB_CFLAGS=""
  1401. SHLIB_SUFFIX=".so"
  1402. LDFLAGS=""
  1403. LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
  1404. LD_LIBRARY_PATH_VAR="LIBPATH"
  1405. GRASS_NEEDS_EXP_FILE=1
  1406. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1407. ;;
  1408. *)
  1409. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1410. ;;
  1411. esac
  1412. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1413. # Enable options
  1414. # Check whether --enable-w11 or --disable-w11 was given.
  1415. if test "${enable_w11+set}" = set; then
  1416. enableval="$enable_w11"
  1417. :
  1418. else
  1419. enable_w11=no
  1420. fi
  1421. # With options
  1422. # Check whether --with-cxx or --without-cxx was given.
  1423. if test "${with_cxx+set}" = set; then
  1424. withval="$with_cxx"
  1425. :
  1426. else
  1427. with_cxx=yes
  1428. fi
  1429. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1430. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1431. if test "${with_macosx_archs+set}" = set; then
  1432. withval="$with_macosx_archs"
  1433. :
  1434. else
  1435. with_macosx_archs="no"
  1436. fi
  1437. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1438. if test "${with_macosx_sdk+set}" = set; then
  1439. withval="$with_macosx_sdk"
  1440. :
  1441. else
  1442. with_macosx_sdk="no"
  1443. fi
  1444. # Check whether --with-tiff or --without-tiff was given.
  1445. if test "${with_tiff+set}" = set; then
  1446. withval="$with_tiff"
  1447. :
  1448. else
  1449. with_tiff=yes
  1450. fi
  1451. # Check whether --with-png or --without-png was given.
  1452. if test "${with_png+set}" = set; then
  1453. withval="$with_png"
  1454. :
  1455. else
  1456. with_png=yes
  1457. fi
  1458. # Check whether --with-postgres or --without-postgres was given.
  1459. if test "${with_postgres+set}" = set; then
  1460. withval="$with_postgres"
  1461. :
  1462. else
  1463. with_postgres=no
  1464. fi
  1465. # Check whether --with-mysql or --without-mysql was given.
  1466. if test "${with_mysql+set}" = set; then
  1467. withval="$with_mysql"
  1468. :
  1469. else
  1470. with_mysql=no
  1471. fi
  1472. # Check whether --with-sqlite or --without-sqlite was given.
  1473. if test "${with_sqlite+set}" = set; then
  1474. withval="$with_sqlite"
  1475. :
  1476. else
  1477. with_sqlite=no
  1478. fi
  1479. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1480. if test "${with_ffmpeg+set}" = set; then
  1481. withval="$with_ffmpeg"
  1482. :
  1483. else
  1484. with_ffmpeg=no
  1485. fi
  1486. # Check whether --with-opengl or --without-opengl was given.
  1487. if test "${with_opengl+set}" = set; then
  1488. withval="$with_opengl"
  1489. :
  1490. else
  1491. with_opengl=yes
  1492. fi
  1493. # Check whether --with-odbc or --without-odbc was given.
  1494. if test "${with_odbc+set}" = set; then
  1495. withval="$with_odbc"
  1496. :
  1497. else
  1498. with_odbc=no
  1499. fi
  1500. # Check whether --with-fftw or --without-fftw was given.
  1501. if test "${with_fftw+set}" = set; then
  1502. withval="$with_fftw"
  1503. :
  1504. else
  1505. with_fftw=yes
  1506. fi
  1507. # Check whether --with-blas or --without-blas was given.
  1508. if test "${with_blas+set}" = set; then
  1509. withval="$with_blas"
  1510. :
  1511. else
  1512. with_blas=no
  1513. fi
  1514. # Check whether --with-lapack or --without-lapack was given.
  1515. if test "${with_lapack+set}" = set; then
  1516. withval="$with_lapack"
  1517. :
  1518. else
  1519. with_lapack=no
  1520. fi
  1521. # Check whether --with-cairo or --without-cairo was given.
  1522. if test "${with_cairo+set}" = set; then
  1523. withval="$with_cairo"
  1524. :
  1525. else
  1526. with_cairo=yes
  1527. fi
  1528. # Check whether --with-freetype or --without-freetype was given.
  1529. if test "${with_freetype+set}" = set; then
  1530. withval="$with_freetype"
  1531. :
  1532. else
  1533. with_freetype=yes
  1534. fi
  1535. # Check whether --with-nls or --without-nls was given.
  1536. if test "${with_nls+set}" = set; then
  1537. withval="$with_nls"
  1538. :
  1539. else
  1540. with_nls=no
  1541. fi
  1542. # Check whether --with-readline or --without-readline was given.
  1543. if test "${with_readline+set}" = set; then
  1544. withval="$with_readline"
  1545. :
  1546. else
  1547. with_readline=no
  1548. fi
  1549. # Check whether --with-opendwg or --without-opendwg was given.
  1550. if test "${with_opendwg+set}" = set; then
  1551. withval="$with_opendwg"
  1552. :
  1553. else
  1554. with_opendwg=no
  1555. fi
  1556. # Check whether --with-regex or --without-regex was given.
  1557. if test "${with_regex+set}" = set; then
  1558. withval="$with_regex"
  1559. :
  1560. else
  1561. with_regex=yes
  1562. fi
  1563. # Check whether --with-pthread or --without-pthread was given.
  1564. if test "${with_pthread+set}" = set; then
  1565. withval="$with_pthread"
  1566. :
  1567. else
  1568. with_pthread=no
  1569. fi
  1570. # Check whether --with-openmp or --without-openmp was given.
  1571. if test "${with_openmp+set}" = set; then
  1572. withval="$with_openmp"
  1573. :
  1574. else
  1575. with_openmp=no
  1576. fi
  1577. # Check whether --with-opencl or --without-opencl was given.
  1578. if test "${with_opencl+set}" = set; then
  1579. withval="$with_opencl"
  1580. :
  1581. else
  1582. with_opencl=no
  1583. fi
  1584. # Check whether --with-gdal or --without-gdal was given.
  1585. if test "${with_gdal+set}" = set; then
  1586. withval="$with_gdal"
  1587. :
  1588. fi
  1589. # Check whether --with-liblas or --without-liblas was given.
  1590. if test "${with_liblas+set}" = set; then
  1591. withval="$with_liblas"
  1592. :
  1593. else
  1594. with_liblas="no"
  1595. fi
  1596. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1597. if test "${with_wxwidgets+set}" = set; then
  1598. withval="$with_wxwidgets"
  1599. :
  1600. else
  1601. with_wxwidgets="no"
  1602. fi
  1603. # Check whether --with-netcdf or --without-netcdf was given.
  1604. if test "${with_netcdf+set}" = set; then
  1605. withval="$with_netcdf"
  1606. :
  1607. else
  1608. with_netcdf="no"
  1609. fi
  1610. # With includes and libs options
  1611. # Check whether --with-geos or --without-geos was given.
  1612. if test "${with_geos+set}" = set; then
  1613. withval="$with_geos"
  1614. :
  1615. else
  1616. with_geos="no"
  1617. fi
  1618. # Check whether --with-includes or --without-includes was given.
  1619. if test "${with_includes+set}" = set; then
  1620. withval="$with_includes"
  1621. :
  1622. fi
  1623. # Check whether --with-libs or --without-libs was given.
  1624. if test "${with_libs+set}" = set; then
  1625. withval="$with_libs"
  1626. :
  1627. fi
  1628. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1629. if test "${with_zlib_includes+set}" = set; then
  1630. withval="$with_zlib_includes"
  1631. :
  1632. fi
  1633. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1634. if test "${with_zlib_libs+set}" = set; then
  1635. withval="$with_zlib_libs"
  1636. :
  1637. fi
  1638. # Check whether --with-readline-includes or --without-readline-includes was given.
  1639. if test "${with_readline_includes+set}" = set; then
  1640. withval="$with_readline_includes"
  1641. :
  1642. fi
  1643. # Check whether --with-readline-libs or --without-readline-libs was given.
  1644. if test "${with_readline_libs+set}" = set; then
  1645. withval="$with_readline_libs"
  1646. :
  1647. fi
  1648. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1649. if test "${with_tiff_includes+set}" = set; then
  1650. withval="$with_tiff_includes"
  1651. :
  1652. fi
  1653. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1654. if test "${with_tiff_libs+set}" = set; then
  1655. withval="$with_tiff_libs"
  1656. :
  1657. fi
  1658. # Check whether --with-png-includes or --without-png-includes was given.
  1659. if test "${with_png_includes+set}" = set; then
  1660. withval="$with_png_includes"
  1661. :
  1662. fi
  1663. # Check whether --with-png-libs or --without-png-libs was given.
  1664. if test "${with_png_libs+set}" = set; then
  1665. withval="$with_png_libs"
  1666. :
  1667. fi
  1668. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1669. if test "${with_postgres_includes+set}" = set; then
  1670. withval="$with_postgres_includes"
  1671. :
  1672. fi
  1673. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1674. if test "${with_postgres_libs+set}" = set; then
  1675. withval="$with_postgres_libs"
  1676. :
  1677. fi
  1678. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1679. if test "${with_mysql_includes+set}" = set; then
  1680. withval="$with_mysql_includes"
  1681. :
  1682. fi
  1683. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1684. if test "${with_mysql_libs+set}" = set; then
  1685. withval="$with_mysql_libs"
  1686. :
  1687. fi
  1688. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1689. if test "${with_sqlite_includes+set}" = set; then
  1690. withval="$with_sqlite_includes"
  1691. :
  1692. fi
  1693. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1694. if test "${with_sqlite_libs+set}" = set; then
  1695. withval="$with_sqlite_libs"
  1696. :
  1697. fi
  1698. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1699. if test "${with_ffmpeg_includes+set}" = set; then
  1700. withval="$with_ffmpeg_includes"
  1701. :
  1702. fi
  1703. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1704. if test "${with_ffmpeg_libs+set}" = set; then
  1705. withval="$with_ffmpeg_libs"
  1706. :
  1707. fi
  1708. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1709. if test "${with_opengl_includes+set}" = set; then
  1710. withval="$with_opengl_includes"
  1711. :
  1712. fi
  1713. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1714. if test "${with_opengl_libs+set}" = set; then
  1715. withval="$with_opengl_libs"
  1716. :
  1717. fi
  1718. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1719. if test "${with_opengl_framework+set}" = set; then
  1720. withval="$with_opengl_framework"
  1721. :
  1722. fi
  1723. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1724. if test "${with_odbc_includes+set}" = set; then
  1725. withval="$with_odbc_includes"
  1726. :
  1727. fi
  1728. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1729. if test "${with_odbc_libs+set}" = set; then
  1730. withval="$with_odbc_libs"
  1731. :
  1732. fi
  1733. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1734. if test "${with_fftw_includes+set}" = set; then
  1735. withval="$with_fftw_includes"
  1736. :
  1737. fi
  1738. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1739. if test "${with_fftw_libs+set}" = set; then
  1740. withval="$with_fftw_libs"
  1741. :
  1742. fi
  1743. # Check whether --with-blas-includes or --without-blas-includes was given.
  1744. if test "${with_blas_includes+set}" = set; then
  1745. withval="$with_blas_includes"
  1746. :
  1747. fi
  1748. # Check whether --with-blas-libs or --without-blas-libs was given.
  1749. if test "${with_blas_libs+set}" = set; then
  1750. withval="$with_blas_libs"
  1751. :
  1752. fi
  1753. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1754. if test "${with_lapack_includes+set}" = set; then
  1755. withval="$with_lapack_includes"
  1756. :
  1757. fi
  1758. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1759. if test "${with_lapack_libs+set}" = set; then
  1760. withval="$with_lapack_libs"
  1761. :
  1762. fi
  1763. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1764. if test "${with_cairo_includes+set}" = set; then
  1765. withval="$with_cairo_includes"
  1766. :
  1767. fi
  1768. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1769. if test "${with_cairo_libs+set}" = set; then
  1770. withval="$with_cairo_libs"
  1771. :
  1772. fi
  1773. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1774. if test "${with_cairo_ldflags+set}" = set; then
  1775. withval="$with_cairo_ldflags"
  1776. :
  1777. fi
  1778. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1779. if test "${with_freetype_includes+set}" = set; then
  1780. withval="$with_freetype_includes"
  1781. :
  1782. fi
  1783. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1784. if test "${with_freetype_libs+set}" = set; then
  1785. withval="$with_freetype_libs"
  1786. :
  1787. fi
  1788. # Check whether --with-proj-includes or --without-proj-includes was given.
  1789. if test "${with_proj_includes+set}" = set; then
  1790. withval="$with_proj_includes"
  1791. :
  1792. fi
  1793. # Check whether --with-proj-libs or --without-proj-libs was given.
  1794. if test "${with_proj_libs+set}" = set; then
  1795. withval="$with_proj_libs"
  1796. :
  1797. fi
  1798. # Check whether --with-proj-share or --without-proj-share was given.
  1799. if test "${with_proj_share+set}" = set; then
  1800. withval="$with_proj_share"
  1801. :
  1802. fi
  1803. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1804. if test "${with_opendwg_includes+set}" = set; then
  1805. withval="$with_opendwg_includes"
  1806. :
  1807. fi
  1808. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1809. if test "${with_opendwg_libs+set}" = set; then
  1810. withval="$with_opendwg_libs"
  1811. :
  1812. fi
  1813. # Check whether --with-regex-includes or --without-regex-includes was given.
  1814. if test "${with_regex_includes+set}" = set; then
  1815. withval="$with_regex_includes"
  1816. :
  1817. fi
  1818. # Check whether --with-regex-libs or --without-regex-libs was given.
  1819. if test "${with_regex_libs+set}" = set; then
  1820. withval="$with_regex_libs"
  1821. :
  1822. fi
  1823. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1824. if test "${with_pthread_includes+set}" = set; then
  1825. withval="$with_pthread_includes"
  1826. :
  1827. fi
  1828. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1829. if test "${with_pthread_libs+set}" = set; then
  1830. withval="$with_pthread_libs"
  1831. :
  1832. fi
  1833. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1834. if test "${with_openmp_includes+set}" = set; then
  1835. withval="$with_openmp_includes"
  1836. :
  1837. fi
  1838. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1839. if test "${with_openmp_libs+set}" = set; then
  1840. withval="$with_openmp_libs"
  1841. :
  1842. fi
  1843. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1844. if test "${with_opencl_includes+set}" = set; then
  1845. withval="$with_opencl_includes"
  1846. :
  1847. fi
  1848. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1849. if test "${with_opencl_libs+set}" = set; then
  1850. withval="$with_opencl_libs"
  1851. :
  1852. fi
  1853. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1854. # With includes option
  1855. # Handle Fortran compiler choice
  1856. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1857. # Done checking fortran
  1858. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1859. echo "configure:2334: checking for additional include dirs" >&5
  1860. case "$with_includes" in
  1861. y | ye | yes | n | no)
  1862. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1863. ;;
  1864. esac
  1865. echo "$ac_t""$with_includes" 1>&6
  1866. if test -n "$with_includes"; then
  1867. for dir in $with_includes; do
  1868. if test -d "$dir"; then
  1869. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1870. else
  1871. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1872. fi
  1873. done
  1874. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1875. fi
  1876. # With libs option
  1877. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1878. echo "configure:2357: checking for additional library dirs" >&5
  1879. case "$with_libs" in
  1880. y | ye | yes | n | no)
  1881. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1882. ;;
  1883. esac
  1884. echo "$ac_t""$with_libs" 1>&6
  1885. if test -n "$with_libs"; then
  1886. for dir in $with_libs; do
  1887. if test -d "$dir"; then
  1888. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1889. else
  1890. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1891. fi
  1892. done
  1893. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1894. fi
  1895. # Programs and standard headers, libraries, functions
  1896. # Find a good install program. We prefer a C program (faster),
  1897. # so one script is as good as another. But avoid the broken or
  1898. # incompatible versions:
  1899. # SysV /etc/install, /usr/sbin/install
  1900. # SunOS /usr/etc/install
  1901. # IRIX /sbin/install
  1902. # AIX /bin/install
  1903. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1904. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1905. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1906. # ./install, which can be erroneously created by make from ./install.sh.
  1907. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1908. echo "configure:2391: checking for a BSD compatible install" >&5
  1909. if test -z "$INSTALL"; then
  1910. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1911. for ac_dir in $PATH; do
  1912. # Account for people who put trailing slashes in PATH elements.
  1913. case "$ac_dir/" in
  1914. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1915. *)
  1916. # OSF1 and SCO ODT 3.0 have their own names for install.
  1917. # Don't use installbsd from OSF since it installs stuff as root
  1918. # by default.
  1919. for ac_prog in ginstall scoinst install; do
  1920. if test -f $ac_dir/$ac_prog; then
  1921. if test $ac_prog = install &&
  1922. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1923. # AIX install. It has an incompatible calling convention.
  1924. :
  1925. else
  1926. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1927. break 2
  1928. fi
  1929. fi
  1930. done
  1931. ;;
  1932. esac
  1933. done
  1934. IFS="$ac_save_IFS"
  1935. if test "${ac_cv_path_install+set}" = set; then
  1936. INSTALL="$ac_cv_path_install"
  1937. else
  1938. # As a last resort, use the slow shell script. We don't cache a
  1939. # path for INSTALL within a source directory, because that will
  1940. # break other packages using the cache if that directory is
  1941. # removed, or if the path is relative.
  1942. INSTALL="$ac_install_sh"
  1943. fi
  1944. fi
  1945. echo "$ac_t""$INSTALL" 1>&6
  1946. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1947. # It thinks the first close brace ends the variable substitution.
  1948. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1949. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1950. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1951. # Extract the first word of "flex", so it can be a program name with args.
  1952. set dummy flex; ac_word=$2
  1953. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1954. echo "configure:2444: checking for $ac_word" >&5
  1955. if test -n "$LEX"; then
  1956. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1957. else
  1958. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1959. ac_dummy="$PATH"
  1960. for ac_dir in $ac_dummy; do
  1961. test -z "$ac_dir" && ac_dir=.
  1962. if test -f $ac_dir/$ac_word; then
  1963. ac_cv_prog_LEX="flex"
  1964. break
  1965. fi
  1966. done
  1967. IFS="$ac_save_ifs"
  1968. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1969. fi
  1970. LEX="$ac_cv_prog_LEX"
  1971. if test -n "$LEX"; then
  1972. echo "$ac_t""$LEX" 1>&6
  1973. else
  1974. echo "$ac_t""no" 1>&6
  1975. fi
  1976. if test -z "$LEXLIB"
  1977. then
  1978. case "$LEX" in
  1979. flex*) ac_lib=fl ;;
  1980. *) ac_lib=l ;;
  1981. esac
  1982. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1983. echo "configure:2475: checking for yywrap in -l$ac_lib" >&5
  1984. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1985. ac_save_LIBS="$LIBS"
  1986. LIBS="-l$ac_lib $LIBS"
  1987. cat > conftest.$ac_ext <<EOF
  1988. #line 2481 "configure"
  1989. #include "confdefs.h"
  1990. /* Override any gcc2 internal prototype to avoid an error. */
  1991. /* We use char because int might match the return type of a gcc2
  1992. builtin and then its argument prototype would still apply. */
  1993. char yywrap();
  1994. int main() {
  1995. yywrap()
  1996. ; return 0; }
  1997. EOF
  1998. if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1999. rm -rf conftest*
  2000. eval "ac_cv_lib_$ac_lib_var=yes"
  2001. else
  2002. echo "configure: failed program was:" >&5
  2003. cat conftest.$ac_ext >&5
  2004. rm -rf conftest*
  2005. eval "ac_cv_lib_$ac_lib_var=no"
  2006. fi
  2007. rm -f conftest*
  2008. LIBS="$ac_save_LIBS"
  2009. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2010. echo "$ac_t""yes" 1>&6
  2011. LEXLIB="-l$ac_lib"
  2012. else
  2013. echo "$ac_t""no" 1>&6
  2014. fi
  2015. fi
  2016. if test "$LEX" = "lex"; then
  2017. # Extract the first word of "lex", so it can be a program name with args.
  2018. set dummy lex; ac_word=$2
  2019. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2020. echo "configure:2517: checking for $ac_word" >&5
  2021. case "$LEXPATH" in
  2022. /*)
  2023. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2024. ;;
  2025. ?:/*)
  2026. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2027. ;;
  2028. *)
  2029. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2030. ac_dummy="$PATH"
  2031. for ac_dir in $ac_dummy; do
  2032. test -z "$ac_dir" && ac_dir=.
  2033. if test -f $ac_dir/$ac_word; then
  2034. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2035. break
  2036. fi
  2037. done
  2038. IFS="$ac_save_ifs"
  2039. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2040. ;;
  2041. esac
  2042. LEXPATH="$ac_cv_path_LEXPATH"
  2043. if test -n "$LEXPATH"; then
  2044. echo "$ac_t""$LEXPATH" 1>&6
  2045. else
  2046. echo "$ac_t""no" 1>&6
  2047. fi
  2048. if test "$LEXPATH" = "no"; then
  2049. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2050. fi
  2051. fi
  2052. for ac_prog in 'bison -y' byacc
  2053. do
  2054. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2055. set dummy $ac_prog; ac_word=$2
  2056. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2057. echo "configure:2557: checking for $ac_word" >&5
  2058. if test -n "$YACC"; then
  2059. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2060. else
  2061. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2062. ac_dummy="$PATH"
  2063. for ac_dir in $ac_dummy; do
  2064. test -z "$ac_dir" && ac_dir=.
  2065. if test -f $ac_dir/$ac_word; then
  2066. ac_cv_prog_YACC="$ac_prog"
  2067. break
  2068. fi
  2069. done
  2070. IFS="$ac_save_ifs"
  2071. fi
  2072. YACC="$ac_cv_prog_YACC"
  2073. if test -n "$YACC"; then
  2074. echo "$ac_t""$YACC" 1>&6
  2075. else
  2076. echo "$ac_t""no" 1>&6
  2077. fi
  2078. test -n "$YACC" && break
  2079. done
  2080. test -n "$YACC" || YACC="yacc"
  2081. if test "$YACC" = "yacc"; then
  2082. # Extract the first word of "yacc", so it can be a program name with args.
  2083. set dummy yacc; ac_word=$2
  2084. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2085. echo "configure:2588: checking for $ac_word" >&5
  2086. case "$YACCPATH" in
  2087. /*)
  2088. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2089. ;;
  2090. ?:/*)
  2091. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2092. ;;
  2093. *)
  2094. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2095. ac_dummy="$PATH"
  2096. for ac_dir in $ac_dummy; do
  2097. test -z "$ac_dir" && ac_dir=.
  2098. if test -f $ac_dir/$ac_word; then
  2099. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2100. break
  2101. fi
  2102. done
  2103. IFS="$ac_save_ifs"
  2104. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2105. ;;
  2106. esac
  2107. YACCPATH="$ac_cv_path_YACCPATH"
  2108. if test -n "$YACCPATH"; then
  2109. echo "$ac_t""$YACCPATH" 1>&6
  2110. else
  2111. echo "$ac_t""no" 1>&6
  2112. fi
  2113. if test "$YACCPATH" = "no"; then
  2114. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2115. fi
  2116. fi
  2117. # Extract the first word of "ranlib", so it can be a program name with args.
  2118. set dummy ranlib; ac_word=$2
  2119. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2120. echo "configure:2626: checking for $ac_word" >&5
  2121. if test -n "$RANLIB"; then
  2122. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2123. else
  2124. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2125. ac_dummy="$PATH"
  2126. for ac_dir in $ac_dummy; do
  2127. test -z "$ac_dir" && ac_dir=.
  2128. if test -f $ac_dir/$ac_word; then
  2129. ac_cv_prog_RANLIB="ranlib"
  2130. break
  2131. fi
  2132. done
  2133. IFS="$ac_save_ifs"
  2134. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2135. fi
  2136. RANLIB="$ac_cv_prog_RANLIB"
  2137. if test -n "$RANLIB"; then
  2138. echo "$ac_t""$RANLIB" 1>&6
  2139. else
  2140. echo "$ac_t""no" 1>&6
  2141. fi
  2142. for ac_prog in ar
  2143. do
  2144. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2145. set dummy $ac_prog; ac_word=$2
  2146. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2147. echo "configure:2655: checking for $ac_word" >&5
  2148. if test -n "$AR"; then
  2149. ac_cv_prog_AR="$AR" # Let the user override the test.
  2150. else
  2151. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2152. ac_dummy="$PATH"
  2153. for ac_dir in $ac_dummy; do
  2154. test -z "$ac_dir" && ac_dir=.
  2155. if test -f $ac_dir/$ac_word; then
  2156. ac_cv_prog_AR="$ac_prog"
  2157. break
  2158. fi
  2159. done
  2160. IFS="$ac_save_ifs"
  2161. fi
  2162. AR="$ac_cv_prog_AR"
  2163. if test -n "$AR"; then
  2164. echo "$ac_t""$AR" 1>&6
  2165. else
  2166. echo "$ac_t""no" 1>&6
  2167. fi
  2168. test -n "$AR" && break
  2169. done
  2170. for ac_prog in env
  2171. do
  2172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2173. set dummy $ac_prog; ac_word=$2
  2174. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2175. echo "configure:2686: checking for $ac_word" >&5
  2176. if test -n "$ENV"; then
  2177. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2178. else
  2179. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2180. ac_dummy="$PATH"
  2181. for ac_dir in $ac_dummy; do
  2182. test -z "$ac_dir" && ac_dir=.
  2183. if test -f $ac_dir/$ac_word; then
  2184. ac_cv_prog_ENV="$ac_prog"
  2185. break
  2186. fi
  2187. done
  2188. IFS="$ac_save_ifs"
  2189. fi
  2190. ENV="$ac_cv_prog_ENV"
  2191. if test -n "$ENV"; then
  2192. echo "$ac_t""$ENV" 1>&6
  2193. else
  2194. echo "$ac_t""no" 1>&6
  2195. fi
  2196. test -n "$ENV" && break
  2197. done
  2198. # Extract the first word of "perl", so it can be a program name with args.
  2199. set dummy perl; ac_word=$2
  2200. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2201. echo "configure:2715: checking for $ac_word" >&5
  2202. case "$PERL" in
  2203. /*)
  2204. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2205. ;;
  2206. ?:/*)
  2207. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2208. ;;
  2209. *)
  2210. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2211. ac_dummy="$PATH"
  2212. for ac_dir in $ac_dummy; do
  2213. test -z "$ac_dir" && ac_dir=.
  2214. if test -f $ac_dir/$ac_word; then
  2215. ac_cv_path_PERL="$ac_dir/$ac_word"
  2216. break
  2217. fi
  2218. done
  2219. IFS="$ac_save_ifs"
  2220. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2221. ;;
  2222. esac
  2223. PERL="$ac_cv_path_PERL"
  2224. if test -n "$PERL"; then
  2225. echo "$ac_t""$PERL" 1>&6
  2226. else
  2227. echo "$ac_t""no" 1>&6
  2228. fi
  2229. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2230. echo "configure:2746: checking how to run the C preprocessor" >&5
  2231. # On Suns, sometimes $CPP names a directory.
  2232. if test -n "$CPP" && test -d "$CPP"; then
  2233. CPP=
  2234. fi
  2235. if test -z "$CPP"; then
  2236. # This must be in double quotes, not single quotes, because CPP may get
  2237. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2238. CPP="${CC-cc} -E"
  2239. # On the NeXT, cc -E runs the code through the compiler's parser,
  2240. # not just through cpp.
  2241. cat > conftest.$ac_ext <<EOF
  2242. #line 2759 "configure"
  2243. #include "confdefs.h"
  2244. #include <assert.h>
  2245. Syntax Error
  2246. EOF
  2247. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2248. { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2249. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2250. if test -z "$ac_err"; then
  2251. :
  2252. else
  2253. echo "$ac_err" >&5
  2254. echo "configure: failed program was:" >&5
  2255. cat conftest.$ac_ext >&5
  2256. rm -rf conftest*
  2257. CPP="${CC-cc} -E -traditional-cpp"
  2258. cat > conftest.$ac_ext <<EOF
  2259. #line 2776 "configure"
  2260. #include "confdefs.h"
  2261. #include <assert.h>
  2262. Syntax Error
  2263. EOF
  2264. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2265. { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2266. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2267. if test -z "$ac_err"; then
  2268. :
  2269. else
  2270. echo "$ac_err" >&5
  2271. echo "configure: failed program was:" >&5
  2272. cat conftest.$ac_ext >&5
  2273. rm -rf conftest*
  2274. CPP="${CC-cc} -nologo -E"
  2275. cat > conftest.$ac_ext <<EOF
  2276. #line 2793 "configure"
  2277. #include "confdefs.h"
  2278. #include <assert.h>
  2279. Syntax Error
  2280. EOF
  2281. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2282. { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2283. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2284. if test -z "$ac_err"; then
  2285. :
  2286. else
  2287. echo "$ac_err" >&5
  2288. echo "configure: failed program was:" >&5
  2289. cat conftest.$ac_ext >&5
  2290. rm -rf conftest*
  2291. CPP=/lib/cpp
  2292. fi
  2293. rm -f conftest*
  2294. fi
  2295. rm -f conftest*
  2296. fi
  2297. rm -f conftest*
  2298. ac_cv_prog_CPP="$CPP"
  2299. CPP="$ac_cv_prog_CPP"
  2300. else
  2301. ac_cv_prog_CPP="$CPP"
  2302. fi
  2303. echo "$ac_t""$CPP" 1>&6
  2304. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2305. echo "configure:2823: checking for ANSI C header files" >&5
  2306. cat > conftest.$ac_ext <<EOF
  2307. #line 2826 "configure"
  2308. #include "confdefs.h"
  2309. #include <stdlib.h>
  2310. #include <stdarg.h>
  2311. #include <string.h>
  2312. #include <float.h>
  2313. EOF
  2314. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2315. { (eval echo configure:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2316. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2317. if test -z "$ac_err"; then
  2318. rm -rf conftest*
  2319. ac_cv_header_stdc=yes
  2320. else
  2321. echo "$ac_err" >&5
  2322. echo "configure: failed program was:" >&5
  2323. cat conftest.$ac_ext >&5
  2324. rm -rf conftest*
  2325. ac_cv_header_stdc=no
  2326. fi
  2327. rm -f conftest*
  2328. if test $ac_cv_header_stdc = yes; then
  2329. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2330. cat > conftest.$ac_ext <<EOF
  2331. #line 2851 "configure"
  2332. #include "confdefs.h"
  2333. #include <string.h>
  2334. EOF
  2335. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2336. egrep "memchr" >/dev/null 2>&1; then
  2337. :
  2338. else
  2339. rm -rf conftest*
  2340. ac_cv_header_stdc=no
  2341. fi
  2342. rm -f conftest*
  2343. fi
  2344. if test $ac_cv_header_stdc = yes; then
  2345. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2346. cat > conftest.$ac_ext <<EOF
  2347. #line 2869 "configure"
  2348. #include "confdefs.h"
  2349. #include <stdlib.h>
  2350. EOF
  2351. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2352. egrep "free" >/dev/null 2>&1; then
  2353. :
  2354. else
  2355. rm -rf conftest*
  2356. ac_cv_header_stdc=no
  2357. fi
  2358. rm -f conftest*
  2359. fi
  2360. if test $ac_cv_header_stdc = yes; then
  2361. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2362. if test "$cross_compiling" = yes; then
  2363. :
  2364. else
  2365. cat > conftest.$ac_ext <<EOF
  2366. #line 2890 "configure"
  2367. #include "confdefs.h"
  2368. #include <ctype.h>
  2369. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2370. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2371. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2372. int main () { int i; for (i = 0; i < 256; i++)
  2373. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2374. exit (0); }
  2375. EOF
  2376. if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2377. then
  2378. :
  2379. else
  2380. echo "configure: failed program was:" >&5
  2381. cat conftest.$ac_ext >&5
  2382. rm -fr conftest*
  2383. ac_cv_header_stdc=no
  2384. fi
  2385. rm -fr conftest*
  2386. fi
  2387. fi
  2388. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2389. if test $ac_cv_header_stdc = yes; then
  2390. cat >> confdefs.h <<\EOF
  2391. #define STDC_HEADERS 1
  2392. EOF
  2393. fi
  2394. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2395. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2396. do
  2397. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2398. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2399. echo "configure:2928: checking for $ac_hdr" >&5
  2400. cat > conftest.$ac_ext <<EOF
  2401. #line 2931 "configure"
  2402. #include "confdefs.h"
  2403. #include <$ac_hdr>
  2404. EOF
  2405. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2406. { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2407. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2408. if test -z "$ac_err"; then
  2409. rm -rf conftest*
  2410. eval "ac_cv_header_$ac_safe=yes"
  2411. else
  2412. echo "$ac_err" >&5
  2413. echo "configure: failed program was:" >&5
  2414. cat conftest.$ac_ext >&5
  2415. rm -rf conftest*
  2416. eval "ac_cv_header_$ac_safe=no"
  2417. fi
  2418. rm -f conftest*
  2419. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2420. echo "$ac_t""yes" 1>&6
  2421. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2422. cat >> confdefs.h <<EOF
  2423. #define $ac_tr_hdr 1
  2424. EOF
  2425. else
  2426. echo "$ac_t""no" 1>&6
  2427. fi
  2428. done
  2429. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2430. do
  2431. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2432. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2433. echo "configure:2965: checking for $ac_hdr" >&5
  2434. cat > conftest.$ac_ext <<EOF
  2435. #line 2968 "configure"
  2436. #include "confdefs.h"
  2437. #include <$ac_hdr>
  2438. EOF
  2439. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2440. { (eval echo configure:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2441. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2442. if test -z "$ac_err"; then
  2443. rm -rf conftest*
  2444. eval "ac_cv_header_$ac_safe=yes"
  2445. else
  2446. echo "$ac_err" >&5
  2447. echo "configure: failed program was:" >&5
  2448. cat conftest.$ac_ext >&5
  2449. rm -rf conftest*
  2450. eval "ac_cv_header_$ac_safe=no"
  2451. fi
  2452. rm -f conftest*
  2453. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2454. echo "$ac_t""yes" 1>&6
  2455. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2456. cat >> confdefs.h <<EOF
  2457. #define $ac_tr_hdr 1
  2458. EOF
  2459. else
  2460. echo "$ac_t""no" 1>&6
  2461. fi
  2462. done
  2463. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2464. do
  2465. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2466. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2467. echo "configure:3002: checking for $ac_hdr" >&5
  2468. cat > conftest.$ac_ext <<EOF
  2469. #line 3005 "configure"
  2470. #include "confdefs.h"
  2471. #include <$ac_hdr>
  2472. EOF
  2473. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2474. { (eval echo configure:3010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2475. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2476. if test -z "$ac_err"; then
  2477. rm -rf conftest*
  2478. eval "ac_cv_header_$ac_safe=yes"
  2479. else
  2480. echo "$ac_err" >&5
  2481. echo "configure: failed program was:" >&5
  2482. cat conftest.$ac_ext >&5
  2483. rm -rf conftest*
  2484. eval "ac_cv_header_$ac_safe=no"
  2485. fi
  2486. rm -f conftest*
  2487. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2488. echo "$ac_t""yes" 1>&6
  2489. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2490. cat >> confdefs.h <<EOF
  2491. #define $ac_tr_hdr 1
  2492. EOF
  2493. else
  2494. echo "$ac_t""no" 1>&6
  2495. fi
  2496. done
  2497. for ac_hdr in libintl.h iconv.h
  2498. do
  2499. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2500. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2501. echo "configure:3039: checking for $ac_hdr" >&5
  2502. cat > conftest.$ac_ext <<EOF
  2503. #line 3042 "configure"
  2504. #include "confdefs.h"
  2505. #include <$ac_hdr>
  2506. EOF
  2507. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2508. { (eval echo configure:3047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2509. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2510. if test -z "$ac_err"; then
  2511. rm -rf conftest*
  2512. eval "ac_cv_header_$ac_safe=yes"
  2513. else
  2514. echo "$ac_err" >&5
  2515. echo "configure: failed program was:" >&5
  2516. cat conftest.$ac_ext >&5
  2517. rm -rf conftest*
  2518. eval "ac_cv_header_$ac_safe=no"
  2519. fi
  2520. rm -f conftest*
  2521. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2522. echo "$ac_t""yes" 1>&6
  2523. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2524. cat >> confdefs.h <<EOF
  2525. #define $ac_tr_hdr 1
  2526. EOF
  2527. else
  2528. echo "$ac_t""no" 1>&6
  2529. fi
  2530. done
  2531. for ac_hdr in langinfo.h
  2532. do
  2533. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2534. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2535. echo "configure:3076: checking for $ac_hdr" >&5
  2536. cat > conftest.$ac_ext <<EOF
  2537. #line 3079 "configure"
  2538. #include "confdefs.h"
  2539. #include <$ac_hdr>
  2540. EOF
  2541. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2542. { (eval echo configure:3084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2543. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2544. if test -z "$ac_err"; then
  2545. rm -rf conftest*
  2546. eval "ac_cv_header_$ac_safe=yes"
  2547. else
  2548. echo "$ac_err" >&5
  2549. echo "configure: failed program was:" >&5
  2550. cat conftest.$ac_ext >&5
  2551. rm -rf conftest*
  2552. eval "ac_cv_header_$ac_safe=no"
  2553. fi
  2554. rm -f conftest*
  2555. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2556. echo "$ac_t""yes" 1>&6
  2557. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2558. cat >> confdefs.h <<EOF
  2559. #define $ac_tr_hdr 1
  2560. EOF
  2561. else
  2562. echo "$ac_t""no" 1>&6
  2563. fi
  2564. done
  2565. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2566. echo "configure:3110: checking whether time.h and sys/time.h may both be included" >&5
  2567. cat > conftest.$ac_ext <<EOF
  2568. #line 3113 "configure"
  2569. #include "confdefs.h"
  2570. #include <sys/types.h>
  2571. #include <sys/time.h>
  2572. #include <time.h>
  2573. int main() {
  2574. struct tm *tp;
  2575. ; return 0; }
  2576. EOF
  2577. if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2578. rm -rf conftest*
  2579. ac_cv_header_time=yes
  2580. else
  2581. echo "configure: failed program was:" >&5
  2582. cat conftest.$ac_ext >&5
  2583. rm -rf conftest*
  2584. ac_cv_header_time=no
  2585. fi
  2586. rm -f conftest*
  2587. echo "$ac_t""$ac_cv_header_time" 1>&6
  2588. if test $ac_cv_header_time = yes; then
  2589. cat >> confdefs.h <<\EOF
  2590. #define TIME_WITH_SYS_TIME 1
  2591. EOF
  2592. fi
  2593. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2594. echo "configure:3142: checking for off_t" >&5
  2595. cat > conftest.$ac_ext <<EOF
  2596. #line 3145 "configure"
  2597. #include "confdefs.h"
  2598. #include <sys/types.h>
  2599. #if STDC_HEADERS
  2600. #include <stdlib.h>
  2601. #include <stddef.h>
  2602. #endif
  2603. EOF
  2604. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2605. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2606. rm -rf conftest*
  2607. ac_cv_type_off_t=yes
  2608. else
  2609. rm -rf conftest*
  2610. ac_cv_type_off_t=no
  2611. fi
  2612. rm -f conftest*
  2613. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2614. if test $ac_cv_type_off_t = no; then
  2615. cat >> confdefs.h <<\EOF
  2616. #define off_t long
  2617. EOF
  2618. fi
  2619. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2620. echo "configure:3172: checking for uid_t in sys/types.h" >&5
  2621. cat > conftest.$ac_ext <<EOF
  2622. #line 3175 "configure"
  2623. #include "confdefs.h"
  2624. #include <sys/types.h>
  2625. EOF
  2626. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2627. egrep "uid_t" >/dev/null 2>&1; then
  2628. rm -rf conftest*
  2629. ac_cv_type_uid_t=yes
  2630. else
  2631. rm -rf conftest*
  2632. ac_cv_type_uid_t=no
  2633. fi
  2634. rm -f conftest*
  2635. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2636. if test $ac_cv_type_uid_t = no; then
  2637. cat >> confdefs.h <<\EOF
  2638. #define uid_t int
  2639. EOF
  2640. cat >> confdefs.h <<\EOF
  2641. #define gid_t int
  2642. EOF
  2643. fi
  2644. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2645. echo "configure:3203: checking return type of signal handlers" >&5
  2646. cat > conftest.$ac_ext <<EOF
  2647. #line 3206 "configure"
  2648. #include "confdefs.h"
  2649. #include <sys/types.h>
  2650. #include <signal.h>
  2651. #ifdef signal
  2652. #undef signal
  2653. #endif
  2654. #ifdef __cplusplus
  2655. extern "C" void (*signal (int, void (*)(int)))(int);
  2656. #else
  2657. void (*signal ()) ();
  2658. #endif
  2659. int main() {
  2660. int i;
  2661. ; return 0; }
  2662. EOF
  2663. if { (eval echo configure:3223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2664. rm -rf conftest*
  2665. ac_cv_type_signal=void
  2666. else
  2667. echo "configure: failed program was:" >&5
  2668. cat conftest.$ac_ext >&5
  2669. rm -rf conftest*
  2670. ac_cv_type_signal=int
  2671. fi
  2672. rm -f conftest*
  2673. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2674. cat >> confdefs.h <<EOF
  2675. #define RETSIGTYPE $ac_cv_type_signal
  2676. EOF
  2677. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2678. echo "configure:3241: checking for Cygwin environment" >&5
  2679. cat > conftest.$ac_ext <<EOF
  2680. #line 3244 "configure"
  2681. #include "confdefs.h"
  2682. int main() {
  2683. #ifndef __CYGWIN__
  2684. #define __CYGWIN__ __CYGWIN32__
  2685. #endif
  2686. return __CYGWIN__;
  2687. ; return 0; }
  2688. EOF
  2689. if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2690. rm -rf conftest*
  2691. ac_cv_cygwin=yes
  2692. else
  2693. echo "configure: failed program was:" >&5
  2694. cat conftest.$ac_ext >&5
  2695. rm -rf conftest*
  2696. ac_cv_cygwin=no
  2697. fi
  2698. rm -f conftest*
  2699. rm -f conftest*
  2700. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2701. CYGWIN=
  2702. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2703. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2704. do
  2705. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2706. echo "configure:3273: checking for $ac_func" >&5
  2707. cat > conftest.$ac_ext <<EOF
  2708. #line 3276 "configure"
  2709. #include "confdefs.h"
  2710. /* System header to define __stub macros and hopefully few prototypes,
  2711. which can conflict with char $ac_func(); below. */
  2712. #include <assert.h>
  2713. /* Override any gcc2 internal prototype to avoid an error. */
  2714. /* We use char because int might match the return type of a gcc2
  2715. builtin and then its argument prototype would still apply. */
  2716. char $ac_func();
  2717. int main() {
  2718. /* The GNU C library defines this for functions which it implements
  2719. to always fail with ENOSYS. Some functions are actually named
  2720. something starting with __ and the normal name is an alias. */
  2721. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2722. choke me
  2723. #else
  2724. $ac_func();
  2725. #endif
  2726. ; return 0; }
  2727. EOF
  2728. if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2729. rm -rf conftest*
  2730. eval "ac_cv_func_$ac_func=yes"
  2731. else
  2732. echo "configure: failed program was:" >&5
  2733. cat conftest.$ac_ext >&5
  2734. rm -rf conftest*
  2735. eval "ac_cv_func_$ac_func=no"
  2736. fi
  2737. rm -f conftest*
  2738. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2739. echo "$ac_t""yes" 1>&6
  2740. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2741. cat >> confdefs.h <<EOF
  2742. #define $ac_tr_func 1
  2743. EOF
  2744. else
  2745. echo "$ac_t""no" 1>&6
  2746. fi
  2747. done
  2748. for ac_func in seteuid setpriority setreuid setruid
  2749. do
  2750. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2751. echo "configure:3325: checking for $ac_func" >&5
  2752. cat > conftest.$ac_ext <<EOF
  2753. #line 3328 "configure"
  2754. #include "confdefs.h"
  2755. /* System header to define __stub macros and hopefully few prototypes,
  2756. which can conflict with char $ac_func(); below. */
  2757. #include <assert.h>
  2758. /* Override any gcc2 internal prototype to avoid an error. */
  2759. /* We use char because int might match the return type of a gcc2
  2760. builtin and then its argument prototype would still apply. */
  2761. char $ac_func();
  2762. int main() {
  2763. /* The GNU C library defines this for functions which it implements
  2764. to always fail with ENOSYS. Some functions are actually named
  2765. something starting with __ and the normal name is an alias. */
  2766. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2767. choke me
  2768. #else
  2769. $ac_func();
  2770. #endif
  2771. ; return 0; }
  2772. EOF
  2773. if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2774. rm -rf conftest*
  2775. eval "ac_cv_func_$ac_func=yes"
  2776. else
  2777. echo "configure: failed program was:" >&5
  2778. cat conftest.$ac_ext >&5
  2779. rm -rf conftest*
  2780. eval "ac_cv_func_$ac_func=no"
  2781. fi
  2782. rm -f conftest*
  2783. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2784. echo "$ac_t""yes" 1>&6
  2785. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2786. cat >> confdefs.h <<EOF
  2787. #define $ac_tr_func 1
  2788. EOF
  2789. else
  2790. echo "$ac_t""no" 1>&6
  2791. fi
  2792. done
  2793. for ac_func in drand48
  2794. do
  2795. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2796. echo "configure:3377: checking for $ac_func" >&5
  2797. cat > conftest.$ac_ext <<EOF
  2798. #line 3380 "configure"
  2799. #include "confdefs.h"
  2800. /* System header to define __stub macros and hopefully few prototypes,
  2801. which can conflict with char $ac_func(); below. */
  2802. #include <assert.h>
  2803. /* Override any gcc2 internal prototype to avoid an error. */
  2804. /* We use char because int might match the return type of a gcc2
  2805. builtin and then its argument prototype would still apply. */
  2806. char $ac_func();
  2807. int main() {
  2808. /* The GNU C library defines this for functions which it implements
  2809. to always fail with ENOSYS. Some functions are actually named
  2810. something starting with __ and the normal name is an alias. */
  2811. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2812. choke me
  2813. #else
  2814. $ac_func();
  2815. #endif
  2816. ; return 0; }
  2817. EOF
  2818. if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2819. rm -rf conftest*
  2820. eval "ac_cv_func_$ac_func=yes"
  2821. else
  2822. echo "configure: failed program was:" >&5
  2823. cat conftest.$ac_ext >&5
  2824. rm -rf conftest*
  2825. eval "ac_cv_func_$ac_func=no"
  2826. fi
  2827. rm -f conftest*
  2828. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2829. echo "$ac_t""yes" 1>&6
  2830. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2831. cat >> confdefs.h <<EOF
  2832. #define $ac_tr_func 1
  2833. EOF
  2834. else
  2835. echo "$ac_t""no" 1>&6
  2836. fi
  2837. done
  2838. for ac_func in putenv setenv
  2839. do
  2840. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2841. echo "configure:3429: checking for $ac_func" >&5
  2842. cat > conftest.$ac_ext <<EOF
  2843. #line 3432 "configure"
  2844. #include "confdefs.h"
  2845. /* System header to define __stub macros and hopefully few prototypes,
  2846. which can conflict with char $ac_func(); below. */
  2847. #include <assert.h>
  2848. /* Override any gcc2 internal prototype to avoid an error. */
  2849. /* We use char because int might match the return type of a gcc2
  2850. builtin and then its argument prototype would still apply. */
  2851. char $ac_func();
  2852. int main() {
  2853. /* The GNU C library defines this for functions which it implements
  2854. to always fail with ENOSYS. Some functions are actually named
  2855. something starting with __ and the normal name is an alias. */
  2856. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2857. choke me
  2858. #else
  2859. $ac_func();
  2860. #endif
  2861. ; return 0; }
  2862. EOF
  2863. if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2864. rm -rf conftest*
  2865. eval "ac_cv_func_$ac_func=yes"
  2866. else
  2867. echo "configure: failed program was:" >&5
  2868. cat conftest.$ac_ext >&5
  2869. rm -rf conftest*
  2870. eval "ac_cv_func_$ac_func=no"
  2871. fi
  2872. rm -f conftest*
  2873. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2874. echo "$ac_t""yes" 1>&6
  2875. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2876. cat >> confdefs.h <<EOF
  2877. #define $ac_tr_func 1
  2878. EOF
  2879. else
  2880. echo "$ac_t""no" 1>&6
  2881. fi
  2882. done
  2883. for ac_func in nanosleep
  2884. do
  2885. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2886. echo "configure:3481: checking for $ac_func" >&5
  2887. cat > conftest.$ac_ext <<EOF
  2888. #line 3484 "configure"
  2889. #include "confdefs.h"
  2890. /* System header to define __stub macros and hopefully few prototypes,
  2891. which can conflict with char $ac_func(); below. */
  2892. #include <assert.h>
  2893. /* Override any gcc2 internal prototype to avoid an error. */
  2894. /* We use char because int might match the return type of a gcc2
  2895. builtin and then its argument prototype would still apply. */
  2896. char $ac_func();
  2897. int main() {
  2898. /* The GNU C library defines this for functions which it implements
  2899. to always fail with ENOSYS. Some functions are actually named
  2900. something starting with __ and the normal name is an alias. */
  2901. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2902. choke me
  2903. #else
  2904. $ac_func();
  2905. #endif
  2906. ; return 0; }
  2907. EOF
  2908. if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2909. rm -rf conftest*
  2910. eval "ac_cv_func_$ac_func=yes"
  2911. else
  2912. echo "configure: failed program was:" >&5
  2913. cat conftest.$ac_ext >&5
  2914. rm -rf conftest*
  2915. eval "ac_cv_func_$ac_func=no"
  2916. fi
  2917. rm -f conftest*
  2918. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2919. echo "$ac_t""yes" 1>&6
  2920. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2921. cat >> confdefs.h <<EOF
  2922. #define $ac_tr_func 1
  2923. EOF
  2924. else
  2925. echo "$ac_t""no" 1>&6
  2926. fi
  2927. done
  2928. if test "$cross_compiling" != "yes" ; then
  2929. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2930. echo "configure:3532: checking whether setpgrp takes no argument" >&5
  2931. if test "$cross_compiling" = yes; then
  2932. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2933. else
  2934. cat > conftest.$ac_ext <<EOF
  2935. #line 3538 "configure"
  2936. #include "confdefs.h"
  2937. #ifdef HAVE_UNISTD_H
  2938. #include <unistd.h>
  2939. #endif
  2940. /*
  2941. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2942. * successfully.
  2943. */
  2944. main()
  2945. {
  2946. if (setpgrp(1,1) == -1)
  2947. exit(0);
  2948. else
  2949. exit(1);
  2950. }
  2951. EOF
  2952. if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2953. then
  2954. ac_cv_func_setpgrp_void=no
  2955. else
  2956. echo "configure: failed program was:" >&5
  2957. cat conftest.$ac_ext >&5
  2958. rm -fr conftest*
  2959. ac_cv_func_setpgrp_void=yes
  2960. fi
  2961. rm -fr conftest*
  2962. fi
  2963. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2964. if test $ac_cv_func_setpgrp_void = yes; then
  2965. cat >> confdefs.h <<\EOF
  2966. #define SETPGRP_VOID 1
  2967. EOF
  2968. fi
  2969. else
  2970. CROSS_COMPILING=1
  2971. fi
  2972. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2973. echo "configure:3586: checking for long long int" >&5
  2974. cat > conftest.$ac_ext <<EOF
  2975. #line 3588 "configure"
  2976. #include "confdefs.h"
  2977. int main() {
  2978. long long int x;
  2979. ; return 0; }
  2980. EOF
  2981. if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2982. rm -rf conftest*
  2983. echo "$ac_t""yes" 1>&6
  2984. cat >> confdefs.h <<\EOF
  2985. #define HAVE_LONG_LONG_INT 1
  2986. EOF
  2987. else
  2988. echo "configure: failed program was:" >&5
  2989. cat conftest.$ac_ext >&5
  2990. rm -rf conftest*
  2991. echo "$ac_t""no" 1>&6
  2992. fi
  2993. rm -f conftest*
  2994. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2995. echo "configure:3615: checking for W11" >&5
  2996. case "$enable_w11" in
  2997. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2998. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2999. esac
  3000. USE_X11=
  3001. USE_W11=
  3002. XLIB=
  3003. XTLIB=
  3004. if test "$enable_w11" = "yes" ; then
  3005. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  3006. X_LIBS='-L$(LIBDIR)'
  3007. USE_W11="1"
  3008. USE_X11="1"
  3009. XLIB=-lX11
  3010. CFLAGS="$CFLAGS -D__W98__"
  3011. else
  3012. # If we find X, set shell vars x_includes and x_libraries to the
  3013. # paths, otherwise set no_x=yes.
  3014. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3015. # --without-x overrides everything else, but does not touch the cache.
  3016. echo $ac_n "checking for X""... $ac_c" 1>&6
  3017. echo "configure:3643: checking for X" >&5
  3018. # Check whether --with-x or --without-x was given.
  3019. if test "${with_x+set}" = set; then
  3020. withval="$with_x"
  3021. :
  3022. fi
  3023. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3024. if test "x$with_x" = xno; then
  3025. # The user explicitly disabled X.
  3026. have_x=disabled
  3027. else
  3028. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3029. # Both variables are already set.
  3030. have_x=yes
  3031. else
  3032. # One or both of the vars are not set, and there is no cached value.
  3033. ac_x_includes=NO ac_x_libraries=NO
  3034. rm -fr conftestdir
  3035. if mkdir conftestdir; then
  3036. cd conftestdir
  3037. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3038. cat > Imakefile <<'EOF'
  3039. acfindx:
  3040. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3041. EOF
  3042. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3043. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3044. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3045. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3046. for ac_extension in a so sl; do
  3047. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3048. test -f $ac_im_libdir/libX11.$ac_extension; then
  3049. ac_im_usrlibdir=$ac_im_libdir; break
  3050. fi
  3051. done
  3052. # Screen out bogus values from the imake configuration. They are
  3053. # bogus both because they are the default anyway, and because
  3054. # using them would break gcc on systems where it needs fixed includes.
  3055. case "$ac_im_incroot" in
  3056. /usr/include) ;;
  3057. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3058. esac
  3059. case "$ac_im_usrlibdir" in
  3060. /usr/lib | /lib) ;;
  3061. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3062. esac
  3063. fi
  3064. cd ..
  3065. rm -fr conftestdir
  3066. fi
  3067. if test "$ac_x_includes" = NO; then
  3068. # Guess where to find include files, by looking for this one X11 .h file.
  3069. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3070. # First, try using that file with no special directory specified.
  3071. cat > conftest.$ac_ext <<EOF
  3072. #line 3703 "configure"
  3073. #include "confdefs.h"
  3074. #include <$x_direct_test_include>
  3075. EOF
  3076. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3077. { (eval echo configure:3708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3078. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3079. if test -z "$ac_err"; then
  3080. rm -rf conftest*
  3081. # We can compile using X headers with no special include directory.
  3082. ac_x_includes=
  3083. else
  3084. echo "$ac_err" >&5
  3085. echo "configure: failed program was:" >&5
  3086. cat conftest.$ac_ext >&5
  3087. rm -rf conftest*
  3088. # Look for the header file in a standard set of common directories.
  3089. # Check X11 before X11Rn because it is often a symlink to the current release.
  3090. for ac_dir in \
  3091. /usr/X11/include \
  3092. /usr/X11R6/include \
  3093. /usr/X11R5/include \
  3094. /usr/X11R4/include \
  3095. \
  3096. /usr/include/X11 \
  3097. /usr/include/X11R6 \
  3098. /usr/include/X11R5 \
  3099. /usr/include/X11R4 \
  3100. \
  3101. /usr/local/X11/include \
  3102. /usr/local/X11R6/include \
  3103. /usr/local/X11R5/include \
  3104. /usr/local/X11R4/include \
  3105. \
  3106. /usr/local/include/X11 \
  3107. /usr/local/include/X11R6 \
  3108. /usr/local/include/X11R5 \
  3109. /usr/local/include/X11R4 \
  3110. \
  3111. /usr/X386/include \
  3112. /usr/x386/include \
  3113. /usr/XFree86/include/X11 \
  3114. \
  3115. /usr/include \
  3116. /usr/local/include \
  3117. /usr/unsupported/include \
  3118. /usr/athena/include \
  3119. /usr/local/x11r5/include \
  3120. /usr/lpp/Xamples/include \
  3121. \
  3122. /usr/openwin/include \
  3123. /usr/openwin/share/include \
  3124. ; \
  3125. do
  3126. if test -r "$ac_dir/$x_direct_test_include"; then
  3127. ac_x_includes=$ac_dir
  3128. break
  3129. fi
  3130. done
  3131. fi
  3132. rm -f conftest*
  3133. fi # $ac_x_includes = NO
  3134. if test "$ac_x_libraries" = NO; then
  3135. # Check for the libraries.
  3136. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3137. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3138. # See if we find them without any special options.
  3139. # Don't add to $LIBS permanently.
  3140. ac_save_LIBS="$LIBS"
  3141. LIBS="-l$x_direct_test_library $LIBS"
  3142. cat > conftest.$ac_ext <<EOF
  3143. #line 3777 "configure"
  3144. #include "confdefs.h"
  3145. int main() {
  3146. ${x_direct_test_function}()
  3147. ; return 0; }
  3148. EOF
  3149. if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3150. rm -rf conftest*
  3151. LIBS="$ac_save_LIBS"
  3152. # We can link X programs with no special library path.
  3153. ac_x_libraries=
  3154. else
  3155. echo "configure: failed program was:" >&5
  3156. cat conftest.$ac_ext >&5
  3157. rm -rf conftest*
  3158. LIBS="$ac_save_LIBS"
  3159. # First see if replacing the include by lib works.
  3160. # Check X11 before X11Rn because it is often a symlink to the current release.
  3161. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3162. /usr/X11/lib \
  3163. /usr/X11R6/lib \
  3164. /usr/X11R5/lib \
  3165. /usr/X11R4/lib \
  3166. \
  3167. /usr/lib/X11 \
  3168. /usr/lib/X11R6 \
  3169. /usr/lib/X11R5 \
  3170. /usr/lib/X11R4 \
  3171. \
  3172. /usr/local/X11/lib \
  3173. /usr/local/X11R6/lib \
  3174. /usr/local/X11R5/lib \
  3175. /usr/local/X11R4/lib \
  3176. \
  3177. /usr/local/lib/X11 \
  3178. /usr/local/lib/X11R6 \
  3179. /usr/local/lib/X11R5 \
  3180. /usr/local/lib/X11R4 \
  3181. \
  3182. /usr/X386/lib \
  3183. /usr/x386/lib \
  3184. /usr/XFree86/lib/X11 \
  3185. \
  3186. /usr/lib \
  3187. /usr/local/lib \
  3188. /usr/unsupported/lib \
  3189. /usr/athena/lib \
  3190. /usr/local/x11r5/lib \
  3191. /usr/lpp/Xamples/lib \
  3192. /lib/usr/lib/X11 \
  3193. \
  3194. /usr/openwin/lib \
  3195. /usr/openwin/share/lib \
  3196. ; \
  3197. do
  3198. for ac_extension in a so sl; do
  3199. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3200. ac_x_libraries=$ac_dir
  3201. break 2
  3202. fi
  3203. done
  3204. done
  3205. fi
  3206. rm -f conftest*
  3207. fi # $ac_x_libraries = NO
  3208. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3209. # Didn't find X anywhere. Cache the known absence of X.
  3210. ac_cv_have_x="have_x=no"
  3211. else
  3212. # Record where we found X for the cache.
  3213. ac_cv_have_x="have_x=yes \
  3214. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3215. fi
  3216. fi
  3217. eval "$ac_cv_have_x"
  3218. fi # $with_x != no
  3219. if test "$have_x" != yes; then
  3220. echo "$ac_t""$have_x" 1>&6
  3221. no_x=yes
  3222. else
  3223. # If each of the values was on the command line, it overrides each guess.
  3224. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3225. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3226. # Update the cache value to reflect the command line values.
  3227. ac_cv_have_x="have_x=yes \
  3228. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3229. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3230. fi
  3231. if test "$no_x" = yes; then
  3232. # Not all programs may use this symbol, but it does not hurt to define it.
  3233. cat >> confdefs.h <<\EOF
  3234. #define X_DISPLAY_MISSING 1
  3235. EOF
  3236. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3237. else
  3238. if test -n "$x_includes"; then
  3239. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3240. fi
  3241. # It would also be nice to do this for all -L options, not just this one.
  3242. if test -n "$x_libraries"; then
  3243. X_LIBS="$X_LIBS -L$x_libraries"
  3244. # For Solaris; some versions of Sun CC require a space after -R and
  3245. # others require no space. Words are not sufficient . . . .
  3246. case "`(uname -sr) 2>/dev/null`" in
  3247. "SunOS 5"*)
  3248. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3249. echo "configure:3889: checking whether -R must be followed by a space" >&5
  3250. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3251. cat > conftest.$ac_ext <<EOF
  3252. #line 3892 "configure"
  3253. #include "confdefs.h"
  3254. int main() {
  3255. ; return 0; }
  3256. EOF
  3257. if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3258. rm -rf conftest*
  3259. ac_R_nospace=yes
  3260. else
  3261. echo "configure: failed program was:" >&5
  3262. cat conftest.$ac_ext >&5
  3263. rm -rf conftest*
  3264. ac_R_nospace=no
  3265. fi
  3266. rm -f conftest*
  3267. if test $ac_R_nospace = yes; then
  3268. echo "$ac_t""no" 1>&6
  3269. X_LIBS="$X_LIBS -R$x_libraries"
  3270. else
  3271. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3272. cat > conftest.$ac_ext <<EOF
  3273. #line 3915 "configure"
  3274. #include "confdefs.h"
  3275. int main() {
  3276. ; return 0; }
  3277. EOF
  3278. if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3279. rm -rf conftest*
  3280. ac_R_space=yes
  3281. else
  3282. echo "configure: failed program was:" >&5
  3283. cat conftest.$ac_ext >&5
  3284. rm -rf conftest*
  3285. ac_R_space=no
  3286. fi
  3287. rm -f conftest*
  3288. if test $ac_R_space = yes; then
  3289. echo "$ac_t""yes" 1>&6
  3290. X_LIBS="$X_LIBS -R $x_libraries"
  3291. else
  3292. echo "$ac_t""neither works" 1>&6
  3293. fi
  3294. fi
  3295. LIBS="$ac_xsave_LIBS"
  3296. esac
  3297. fi
  3298. # Check for system-dependent libraries X programs must link with.
  3299. # Do this before checking for the system-independent R6 libraries
  3300. # (-lICE), since we may need -lsocket or whatever for X linking.
  3301. if test "$ISC" = yes; then
  3302. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3303. else
  3304. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3305. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3306. # the Alpha needs dnet_stub (dnet does not exist).
  3307. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3308. echo "configure:3954: checking for dnet_ntoa in -ldnet" >&5
  3309. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3310. ac_save_LIBS="$LIBS"
  3311. LIBS="-ldnet $LIBS"
  3312. cat > conftest.$ac_ext <<EOF
  3313. #line 3960 "configure"
  3314. #include "confdefs.h"
  3315. /* Override any gcc2 internal prototype to avoid an error. */
  3316. /* We use char because int might match the return type of a gcc2
  3317. builtin and then its argument prototype would still apply. */
  3318. char dnet_ntoa();
  3319. int main() {
  3320. dnet_ntoa()
  3321. ; return 0; }
  3322. EOF
  3323. if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3324. rm -rf conftest*
  3325. eval "ac_cv_lib_$ac_lib_var=yes"
  3326. else
  3327. echo "configure: failed program was:" >&5
  3328. cat conftest.$ac_ext >&5
  3329. rm -rf conftest*
  3330. eval "ac_cv_lib_$ac_lib_var=no"
  3331. fi
  3332. rm -f conftest*
  3333. LIBS="$ac_save_LIBS"
  3334. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3335. echo "$ac_t""yes" 1>&6
  3336. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3337. else
  3338. echo "$ac_t""no" 1>&6
  3339. fi
  3340. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3341. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3342. echo "configure:3992: checking for dnet_ntoa in -ldnet_stub" >&5
  3343. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3344. ac_save_LIBS="$LIBS"
  3345. LIBS="-ldnet_stub $LIBS"
  3346. cat > conftest.$ac_ext <<EOF
  3347. #line 3998 "configure"
  3348. #include "confdefs.h"
  3349. /* Override any gcc2 internal prototype to avoid an error. */
  3350. /* We use char because int might match the return type of a gcc2
  3351. builtin and then its argument prototype would still apply. */
  3352. char dnet_ntoa();
  3353. int main() {
  3354. dnet_ntoa()
  3355. ; return 0; }
  3356. EOF
  3357. if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3358. rm -rf conftest*
  3359. eval "ac_cv_lib_$ac_lib_var=yes"
  3360. else
  3361. echo "configure: failed program was:" >&5
  3362. cat conftest.$ac_ext >&5
  3363. rm -rf conftest*
  3364. eval "ac_cv_lib_$ac_lib_var=no"
  3365. fi
  3366. rm -f conftest*
  3367. LIBS="$ac_save_LIBS"
  3368. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3369. echo "$ac_t""yes" 1>&6
  3370. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3371. else
  3372. echo "$ac_t""no" 1>&6
  3373. fi
  3374. fi
  3375. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3376. # to get the SysV transport functions.
  3377. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3378. # needs -lnsl.
  3379. # The nsl library prevents programs from opening the X display
  3380. # on Irix 5.2, according to dickey@clark.net.
  3381. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3382. echo "configure:4037: checking for gethostbyname" >&5
  3383. cat > conftest.$ac_ext <<EOF
  3384. #line 4040 "configure"
  3385. #include "confdefs.h"
  3386. /* System header to define __stub macros and hopefully few prototypes,
  3387. which can conflict with char gethostbyname(); below. */
  3388. #include <assert.h>
  3389. /* Override any gcc2 internal prototype to avoid an error. */
  3390. /* We use char because int might match the return type of a gcc2
  3391. builtin and then its argument prototype would still apply. */
  3392. char gethostbyname();
  3393. int main() {
  3394. /* The GNU C library defines this for functions which it implements
  3395. to always fail with ENOSYS. Some functions are actually named
  3396. something starting with __ and the normal name is an alias. */
  3397. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3398. choke me
  3399. #else
  3400. gethostbyname();
  3401. #endif
  3402. ; return 0; }
  3403. EOF
  3404. if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3405. rm -rf conftest*
  3406. eval "ac_cv_func_gethostbyname=yes"
  3407. else
  3408. echo "configure: failed program was:" >&5
  3409. cat conftest.$ac_ext >&5
  3410. rm -rf conftest*
  3411. eval "ac_cv_func_gethostbyname=no"
  3412. fi
  3413. rm -f conftest*
  3414. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3415. echo "$ac_t""yes" 1>&6
  3416. :
  3417. else
  3418. echo "$ac_t""no" 1>&6
  3419. fi
  3420. if test $ac_cv_func_gethostbyname = no; then
  3421. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3422. echo "configure:4083: checking for gethostbyname in -lnsl" >&5
  3423. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3424. ac_save_LIBS="$LIBS"
  3425. LIBS="-lnsl $LIBS"
  3426. cat > conftest.$ac_ext <<EOF
  3427. #line 4089 "configure"
  3428. #include "confdefs.h"
  3429. /* Override any gcc2 internal prototype to avoid an error. */
  3430. /* We use char because int might match the return type of a gcc2
  3431. builtin and then its argument prototype would still apply. */
  3432. char gethostbyname();
  3433. int main() {
  3434. gethostbyname()
  3435. ; return 0; }
  3436. EOF
  3437. if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3438. rm -rf conftest*
  3439. eval "ac_cv_lib_$ac_lib_var=yes"
  3440. else
  3441. echo "configure: failed program was:" >&5
  3442. cat conftest.$ac_ext >&5
  3443. rm -rf conftest*
  3444. eval "ac_cv_lib_$ac_lib_var=no"
  3445. fi
  3446. rm -f conftest*
  3447. LIBS="$ac_save_LIBS"
  3448. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3449. echo "$ac_t""yes" 1>&6
  3450. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3451. else
  3452. echo "$ac_t""no" 1>&6
  3453. fi
  3454. fi
  3455. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3456. # socket/setsockopt and other routines are undefined under SCO ODT
  3457. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3458. # on later versions), says simon@lia.di.epfl.ch: it contains
  3459. # gethostby* variants that don't use the nameserver (or something).
  3460. # -lsocket must be given before -lnsl if both are needed.
  3461. # We assume that if connect needs -lnsl, so does gethostbyname.
  3462. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3463. echo "configure:4129: checking for connect" >&5
  3464. cat > conftest.$ac_ext <<EOF
  3465. #line 4132 "configure"
  3466. #include "confdefs.h"
  3467. /* System header to define __stub macros and hopefully few prototypes,
  3468. which can conflict with char connect(); below. */
  3469. #include <assert.h>
  3470. /* Override any gcc2 internal prototype to avoid an error. */
  3471. /* We use char because int might match the return type of a gcc2
  3472. builtin and then its argument prototype would still apply. */
  3473. char connect();
  3474. int main() {
  3475. /* The GNU C library defines this for functions which it implements
  3476. to always fail with ENOSYS. Some functions are actually named
  3477. something starting with __ and the normal name is an alias. */
  3478. #if defined (__stub_connect) || defined (__stub___connect)
  3479. choke me
  3480. #else
  3481. connect();
  3482. #endif
  3483. ; return 0; }
  3484. EOF
  3485. if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3486. rm -rf conftest*
  3487. eval "ac_cv_func_connect=yes"
  3488. else
  3489. echo "configure: failed program was:" >&5
  3490. cat conftest.$ac_ext >&5
  3491. rm -rf conftest*
  3492. eval "ac_cv_func_connect=no"
  3493. fi
  3494. rm -f conftest*
  3495. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3496. echo "$ac_t""yes" 1>&6
  3497. :
  3498. else
  3499. echo "$ac_t""no" 1>&6
  3500. fi
  3501. if test $ac_cv_func_connect = no; then
  3502. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3503. echo "configure:4175: checking for connect in -lsocket" >&5
  3504. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3505. ac_save_LIBS="$LIBS"
  3506. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3507. cat > conftest.$ac_ext <<EOF
  3508. #line 4181 "configure"
  3509. #include "confdefs.h"
  3510. /* Override any gcc2 internal prototype to avoid an error. */
  3511. /* We use char because int might match the return type of a gcc2
  3512. builtin and then its argument prototype would still apply. */
  3513. char connect();
  3514. int main() {
  3515. connect()
  3516. ; return 0; }
  3517. EOF
  3518. if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3519. rm -rf conftest*
  3520. eval "ac_cv_lib_$ac_lib_var=yes"
  3521. else
  3522. echo "configure: failed program was:" >&5
  3523. cat conftest.$ac_ext >&5
  3524. rm -rf conftest*
  3525. eval "ac_cv_lib_$ac_lib_var=no"
  3526. fi
  3527. rm -f conftest*
  3528. LIBS="$ac_save_LIBS"
  3529. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3530. echo "$ac_t""yes" 1>&6
  3531. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3532. else
  3533. echo "$ac_t""no" 1>&6
  3534. fi
  3535. fi
  3536. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3537. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3538. echo "configure:4215: checking for remove" >&5
  3539. cat > conftest.$ac_ext <<EOF
  3540. #line 4218 "configure"
  3541. #include "confdefs.h"
  3542. /* System header to define __stub macros and hopefully few prototypes,
  3543. which can conflict with char remove(); below. */
  3544. #include <assert.h>
  3545. /* Override any gcc2 internal prototype to avoid an error. */
  3546. /* We use char because int might match the return type of a gcc2
  3547. builtin and then its argument prototype would still apply. */
  3548. char remove();
  3549. int main() {
  3550. /* The GNU C library defines this for functions which it implements
  3551. to always fail with ENOSYS. Some functions are actually named
  3552. something starting with __ and the normal name is an alias. */
  3553. #if defined (__stub_remove) || defined (__stub___remove)
  3554. choke me
  3555. #else
  3556. remove();
  3557. #endif
  3558. ; return 0; }
  3559. EOF
  3560. if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3561. rm -rf conftest*
  3562. eval "ac_cv_func_remove=yes"
  3563. else
  3564. echo "configure: failed program was:" >&5
  3565. cat conftest.$ac_ext >&5
  3566. rm -rf conftest*
  3567. eval "ac_cv_func_remove=no"
  3568. fi
  3569. rm -f conftest*
  3570. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3571. echo "$ac_t""yes" 1>&6
  3572. :
  3573. else
  3574. echo "$ac_t""no" 1>&6
  3575. fi
  3576. if test $ac_cv_func_remove = no; then
  3577. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3578. echo "configure:4261: checking for remove in -lposix" >&5
  3579. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3580. ac_save_LIBS="$LIBS"
  3581. LIBS="-lposix $LIBS"
  3582. cat > conftest.$ac_ext <<EOF
  3583. #line 4267 "configure"
  3584. #include "confdefs.h"
  3585. /* Override any gcc2 internal prototype to avoid an error. */
  3586. /* We use char because int might match the return type of a gcc2
  3587. builtin and then its argument prototype would still apply. */
  3588. char remove();
  3589. int main() {
  3590. remove()
  3591. ; return 0; }
  3592. EOF
  3593. if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3594. rm -rf conftest*
  3595. eval "ac_cv_lib_$ac_lib_var=yes"
  3596. else
  3597. echo "configure: failed program was:" >&5
  3598. cat conftest.$ac_ext >&5
  3599. rm -rf conftest*
  3600. eval "ac_cv_lib_$ac_lib_var=no"
  3601. fi
  3602. rm -f conftest*
  3603. LIBS="$ac_save_LIBS"
  3604. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3605. echo "$ac_t""yes" 1>&6
  3606. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3607. else
  3608. echo "$ac_t""no" 1>&6
  3609. fi
  3610. fi
  3611. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3612. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3613. echo "configure:4301: checking for shmat" >&5
  3614. cat > conftest.$ac_ext <<EOF
  3615. #line 4304 "configure"
  3616. #include "confdefs.h"
  3617. /* System header to define __stub macros and hopefully few prototypes,
  3618. which can conflict with char shmat(); below. */
  3619. #include <assert.h>
  3620. /* Override any gcc2 internal prototype to avoid an error. */
  3621. /* We use char because int might match the return type of a gcc2
  3622. builtin and then its argument prototype would still apply. */
  3623. char shmat();
  3624. int main() {
  3625. /* The GNU C library defines this for functions which it implements
  3626. to always fail with ENOSYS. Some functions are actually named
  3627. something starting with __ and the normal name is an alias. */
  3628. #if defined (__stub_shmat) || defined (__stub___shmat)
  3629. choke me
  3630. #else
  3631. shmat();
  3632. #endif
  3633. ; return 0; }
  3634. EOF
  3635. if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3636. rm -rf conftest*
  3637. eval "ac_cv_func_shmat=yes"
  3638. else
  3639. echo "configure: failed program was:" >&5
  3640. cat conftest.$ac_ext >&5
  3641. rm -rf conftest*
  3642. eval "ac_cv_func_shmat=no"
  3643. fi
  3644. rm -f conftest*
  3645. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3646. echo "$ac_t""yes" 1>&6
  3647. :
  3648. else
  3649. echo "$ac_t""no" 1>&6
  3650. fi
  3651. if test $ac_cv_func_shmat = no; then
  3652. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3653. echo "configure:4347: checking for shmat in -lipc" >&5
  3654. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3655. ac_save_LIBS="$LIBS"
  3656. LIBS="-lipc $LIBS"
  3657. cat > conftest.$ac_ext <<EOF
  3658. #line 4353 "configure"
  3659. #include "confdefs.h"
  3660. /* Override any gcc2 internal prototype to avoid an error. */
  3661. /* We use char because int might match the return type of a gcc2
  3662. builtin and then its argument prototype would still apply. */
  3663. char shmat();
  3664. int main() {
  3665. shmat()
  3666. ; return 0; }
  3667. EOF
  3668. if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3669. rm -rf conftest*
  3670. eval "ac_cv_lib_$ac_lib_var=yes"
  3671. else
  3672. echo "configure: failed program was:" >&5
  3673. cat conftest.$ac_ext >&5
  3674. rm -rf conftest*
  3675. eval "ac_cv_lib_$ac_lib_var=no"
  3676. fi
  3677. rm -f conftest*
  3678. LIBS="$ac_save_LIBS"
  3679. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3680. echo "$ac_t""yes" 1>&6
  3681. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3682. else
  3683. echo "$ac_t""no" 1>&6
  3684. fi
  3685. fi
  3686. fi
  3687. # Check for libraries that X11R6 Xt/Xaw programs need.
  3688. ac_save_LDFLAGS="$LDFLAGS"
  3689. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3690. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3691. # check for ICE first), but we must link in the order -lSM -lICE or
  3692. # we get undefined symbols. So assume we have SM if we have ICE.
  3693. # These have to be linked with before -lX11, unlike the other
  3694. # libraries we check for below, so use a different variable.
  3695. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3696. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3697. echo "configure:4396: checking for IceConnectionNumber in -lICE" >&5
  3698. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3699. ac_save_LIBS="$LIBS"
  3700. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3701. cat > conftest.$ac_ext <<EOF
  3702. #line 4402 "configure"
  3703. #include "confdefs.h"
  3704. /* Override any gcc2 internal prototype to avoid an error. */
  3705. /* We use char because int might match the return type of a gcc2
  3706. builtin and then its argument prototype would still apply. */
  3707. char IceConnectionNumber();
  3708. int main() {
  3709. IceConnectionNumber()
  3710. ; return 0; }
  3711. EOF
  3712. if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3713. rm -rf conftest*
  3714. eval "ac_cv_lib_$ac_lib_var=yes"
  3715. else
  3716. echo "configure: failed program was:" >&5
  3717. cat conftest.$ac_ext >&5
  3718. rm -rf conftest*
  3719. eval "ac_cv_lib_$ac_lib_var=no"
  3720. fi
  3721. rm -f conftest*
  3722. LIBS="$ac_save_LIBS"
  3723. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3724. echo "$ac_t""yes" 1>&6
  3725. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3726. else
  3727. echo "$ac_t""no" 1>&6
  3728. fi
  3729. LDFLAGS="$ac_save_LDFLAGS"
  3730. fi
  3731. if test "$no_x" != "yes"; then
  3732. USE_X11="1"
  3733. XLIB=-lX11
  3734. XTLIB=-lXt
  3735. fi
  3736. fi
  3737. # Note that some systems (FreeBSD for example) need an extra library for
  3738. # cuserid
  3739. ac_save_libs="$LIBS"
  3740. LIBS=""
  3741. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3742. echo "configure:4453: checking for library containing cuserid" >&5
  3743. ac_func_search_save_LIBS="$LIBS"
  3744. ac_cv_search_cuserid="no"
  3745. cat > conftest.$ac_ext <<EOF
  3746. #line 4458 "configure"
  3747. #include "confdefs.h"
  3748. /* Override any gcc2 internal prototype to avoid an error. */
  3749. /* We use char because int might match the return type of a gcc2
  3750. builtin and then its argument prototype would still apply. */
  3751. char cuserid();
  3752. int main() {
  3753. cuserid()
  3754. ; return 0; }
  3755. EOF
  3756. if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3757. rm -rf conftest*
  3758. ac_cv_search_cuserid="none required"
  3759. else
  3760. echo "configure: failed program was:" >&5
  3761. cat conftest.$ac_ext >&5
  3762. fi
  3763. rm -f conftest*
  3764. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3765. LIBS="-l$i $ac_func_search_save_LIBS"
  3766. cat > conftest.$ac_ext <<EOF
  3767. #line 4480 "configure"
  3768. #include "confdefs.h"
  3769. /* Override any gcc2 internal prototype to avoid an error. */
  3770. /* We use char because int might match the return type of a gcc2
  3771. builtin and then its argument prototype would still apply. */
  3772. char cuserid();
  3773. int main() {
  3774. cuserid()
  3775. ; return 0; }
  3776. EOF
  3777. if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3778. rm -rf conftest*
  3779. ac_cv_search_cuserid="-l$i"
  3780. break
  3781. else
  3782. echo "configure: failed program was:" >&5
  3783. cat conftest.$ac_ext >&5
  3784. fi
  3785. rm -f conftest*
  3786. done
  3787. LIBS="$ac_func_search_save_LIBS"
  3788. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3789. if test "$ac_cv_search_cuserid" != "no"; then
  3790. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3791. else :
  3792. fi
  3793. DBMIEXTRALIB="$LIBS"
  3794. LIBS="$ac_save_libs"
  3795. for ac_func in asprintf
  3796. do
  3797. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3798. echo "configure:4517: checking for $ac_func" >&5
  3799. cat > conftest.$ac_ext <<EOF
  3800. #line 4520 "configure"
  3801. #include "confdefs.h"
  3802. /* System header to define __stub macros and hopefully few prototypes,
  3803. which can conflict with char $ac_func(); below. */
  3804. #include <assert.h>
  3805. /* Override any gcc2 internal prototype to avoid an error. */
  3806. /* We use char because int might match the return type of a gcc2
  3807. builtin and then its argument prototype would still apply. */
  3808. char $ac_func();
  3809. int main() {
  3810. /* The GNU C library defines this for functions which it implements
  3811. to always fail with ENOSYS. Some functions are actually named
  3812. something starting with __ and the normal name is an alias. */
  3813. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3814. choke me
  3815. #else
  3816. $ac_func();
  3817. #endif
  3818. ; return 0; }
  3819. EOF
  3820. if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3821. rm -rf conftest*
  3822. eval "ac_cv_func_$ac_func=yes"
  3823. else
  3824. echo "configure: failed program was:" >&5
  3825. cat conftest.$ac_ext >&5
  3826. rm -rf conftest*
  3827. eval "ac_cv_func_$ac_func=no"
  3828. fi
  3829. rm -f conftest*
  3830. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3831. echo "$ac_t""yes" 1>&6
  3832. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3833. cat >> confdefs.h <<EOF
  3834. #define $ac_tr_func 1
  3835. EOF
  3836. else
  3837. echo "$ac_t""no" 1>&6
  3838. fi
  3839. done
  3840. # Test if mathlib needs -lm flag or is included with libc
  3841. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3842. echo "configure:4570: checking for atan" >&5
  3843. cat > conftest.$ac_ext <<EOF
  3844. #line 4573 "configure"
  3845. #include "confdefs.h"
  3846. /* System header to define __stub macros and hopefully few prototypes,
  3847. which can conflict with char atan(); below. */
  3848. #include <assert.h>
  3849. /* Override any gcc2 internal prototype to avoid an error. */
  3850. /* We use char because int might match the return type of a gcc2
  3851. builtin and then its argument prototype would still apply. */
  3852. char atan();
  3853. int main() {
  3854. /* The GNU C library defines this for functions which it implements
  3855. to always fail with ENOSYS. Some functions are actually named
  3856. something starting with __ and the normal name is an alias. */
  3857. #if defined (__stub_atan) || defined (__stub___atan)
  3858. choke me
  3859. #else
  3860. atan();
  3861. #endif
  3862. ; return 0; }
  3863. EOF
  3864. if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3865. rm -rf conftest*
  3866. eval "ac_cv_func_atan=yes"
  3867. else
  3868. echo "configure: failed program was:" >&5
  3869. cat conftest.$ac_ext >&5
  3870. rm -rf conftest*
  3871. eval "ac_cv_func_atan=no"
  3872. fi
  3873. rm -f conftest*
  3874. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3875. echo "$ac_t""yes" 1>&6
  3876. MATHLIB=
  3877. else
  3878. echo "$ac_t""no" 1>&6
  3879. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3880. echo "configure:4614: checking for atan in -lm" >&5
  3881. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3882. ac_save_LIBS="$LIBS"
  3883. LIBS="-lm $LIBS"
  3884. cat > conftest.$ac_ext <<EOF
  3885. #line 4620 "configure"
  3886. #include "confdefs.h"
  3887. /* Override any gcc2 internal prototype to avoid an error. */
  3888. /* We use char because int might match the return type of a gcc2
  3889. builtin and then its argument prototype would still apply. */
  3890. char atan();
  3891. int main() {
  3892. atan()
  3893. ; return 0; }
  3894. EOF
  3895. if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3896. rm -rf conftest*
  3897. eval "ac_cv_lib_$ac_lib_var=yes"
  3898. else
  3899. echo "configure: failed program was:" >&5
  3900. cat conftest.$ac_ext >&5
  3901. rm -rf conftest*
  3902. eval "ac_cv_lib_$ac_lib_var=no"
  3903. fi
  3904. rm -f conftest*
  3905. LIBS="$ac_save_LIBS"
  3906. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3907. echo "$ac_t""yes" 1>&6
  3908. MATHLIB=-lm
  3909. else
  3910. echo "$ac_t""no" 1>&6
  3911. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3912. fi
  3913. fi
  3914. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3915. echo "configure:4658: checking for dlsym" >&5
  3916. cat > conftest.$ac_ext <<EOF
  3917. #line 4661 "configure"
  3918. #include "confdefs.h"
  3919. /* System header to define __stub macros and hopefully few prototypes,
  3920. which can conflict with char dlsym(); below. */
  3921. #include <assert.h>
  3922. /* Override any gcc2 internal prototype to avoid an error. */
  3923. /* We use char because int might match the return type of a gcc2
  3924. builtin and then its argument prototype would still apply. */
  3925. char dlsym();
  3926. int main() {
  3927. /* The GNU C library defines this for functions which it implements
  3928. to always fail with ENOSYS. Some functions are actually named
  3929. something starting with __ and the normal name is an alias. */
  3930. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3931. choke me
  3932. #else
  3933. dlsym();
  3934. #endif
  3935. ; return 0; }
  3936. EOF
  3937. if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3938. rm -rf conftest*
  3939. eval "ac_cv_func_dlsym=yes"
  3940. else
  3941. echo "configure: failed program was:" >&5
  3942. cat conftest.$ac_ext >&5
  3943. rm -rf conftest*
  3944. eval "ac_cv_func_dlsym=no"
  3945. fi
  3946. rm -f conftest*
  3947. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3948. echo "$ac_t""yes" 1>&6
  3949. DLLIB=
  3950. else
  3951. echo "$ac_t""no" 1>&6
  3952. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3953. echo "configure:4702: checking for dlsym in -ldl" >&5
  3954. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3955. ac_save_LIBS="$LIBS"
  3956. LIBS="-ldl $LIBS"
  3957. cat > conftest.$ac_ext <<EOF
  3958. #line 4708 "configure"
  3959. #include "confdefs.h"
  3960. /* Override any gcc2 internal prototype to avoid an error. */
  3961. /* We use char because int might match the return type of a gcc2
  3962. builtin and then its argument prototype would still apply. */
  3963. char dlsym();
  3964. int main() {
  3965. dlsym()
  3966. ; return 0; }
  3967. EOF
  3968. if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3969. rm -rf conftest*
  3970. eval "ac_cv_lib_$ac_lib_var=yes"
  3971. else
  3972. echo "configure: failed program was:" >&5
  3973. cat conftest.$ac_ext >&5
  3974. rm -rf conftest*
  3975. eval "ac_cv_lib_$ac_lib_var=no"
  3976. fi
  3977. rm -f conftest*
  3978. LIBS="$ac_save_LIBS"
  3979. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3980. echo "$ac_t""yes" 1>&6
  3981. DLLIB=-ldl
  3982. else
  3983. echo "$ac_t""no" 1>&6
  3984. DLLIB=
  3985. fi
  3986. fi
  3987. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3988. echo "configure:4746: checking for iconv" >&5
  3989. cat > conftest.$ac_ext <<EOF
  3990. #line 4749 "configure"
  3991. #include "confdefs.h"
  3992. /* System header to define __stub macros and hopefully few prototypes,
  3993. which can conflict with char iconv(); below. */
  3994. #include <assert.h>
  3995. /* Override any gcc2 internal prototype to avoid an error. */
  3996. /* We use char because int might match the return type of a gcc2
  3997. builtin and then its argument prototype would still apply. */
  3998. char iconv();
  3999. int main() {
  4000. /* The GNU C library defines this for functions which it implements
  4001. to always fail with ENOSYS. Some functions are actually named
  4002. something starting with __ and the normal name is an alias. */
  4003. #if defined (__stub_iconv) || defined (__stub___iconv)
  4004. choke me
  4005. #else
  4006. iconv();
  4007. #endif
  4008. ; return 0; }
  4009. EOF
  4010. if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4011. rm -rf conftest*
  4012. eval "ac_cv_func_iconv=yes"
  4013. else
  4014. echo "configure: failed program was:" >&5
  4015. cat conftest.$ac_ext >&5
  4016. rm -rf conftest*
  4017. eval "ac_cv_func_iconv=no"
  4018. fi
  4019. rm -f conftest*
  4020. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4021. echo "$ac_t""yes" 1>&6
  4022. ICONVLIB=
  4023. else
  4024. echo "$ac_t""no" 1>&6
  4025. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4026. echo "configure:4790: checking for iconv in -liconv" >&5
  4027. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4028. ac_save_LIBS="$LIBS"
  4029. LIBS="-liconv $LIBS"
  4030. cat > conftest.$ac_ext <<EOF
  4031. #line 4796 "configure"
  4032. #include "confdefs.h"
  4033. /* Override any gcc2 internal prototype to avoid an error. */
  4034. /* We use char because int might match the return type of a gcc2
  4035. builtin and then its argument prototype would still apply. */
  4036. char iconv();
  4037. int main() {
  4038. iconv()
  4039. ; return 0; }
  4040. EOF
  4041. if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4042. rm -rf conftest*
  4043. eval "ac_cv_lib_$ac_lib_var=yes"
  4044. else
  4045. echo "configure: failed program was:" >&5
  4046. cat conftest.$ac_ext >&5
  4047. rm -rf conftest*
  4048. eval "ac_cv_lib_$ac_lib_var=no"
  4049. fi
  4050. rm -f conftest*
  4051. LIBS="$ac_save_LIBS"
  4052. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4053. echo "$ac_t""yes" 1>&6
  4054. ICONVLIB=-liconv
  4055. else
  4056. echo "$ac_t""no" 1>&6
  4057. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4058. echo "configure:4826: checking for iconv in -lgiconv" >&5
  4059. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4060. ac_save_LIBS="$LIBS"
  4061. LIBS="-lgiconv $LIBS"
  4062. cat > conftest.$ac_ext <<EOF
  4063. #line 4832 "configure"
  4064. #include "confdefs.h"
  4065. /* Override any gcc2 internal prototype to avoid an error. */
  4066. /* We use char because int might match the return type of a gcc2
  4067. builtin and then its argument prototype would still apply. */
  4068. char iconv();
  4069. int main() {
  4070. iconv()
  4071. ; return 0; }
  4072. EOF
  4073. if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4074. rm -rf conftest*
  4075. eval "ac_cv_lib_$ac_lib_var=yes"
  4076. else
  4077. echo "configure: failed program was:" >&5
  4078. cat conftest.$ac_ext >&5
  4079. rm -rf conftest*
  4080. eval "ac_cv_lib_$ac_lib_var=no"
  4081. fi
  4082. rm -f conftest*
  4083. LIBS="$ac_save_LIBS"
  4084. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4085. echo "$ac_t""yes" 1>&6
  4086. ICONVLIB=-lgiconv
  4087. else
  4088. echo "$ac_t""no" 1>&6
  4089. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4090. echo "configure:4862: checking for libiconv" >&5
  4091. cat > conftest.$ac_ext <<EOF
  4092. #line 4865 "configure"
  4093. #include "confdefs.h"
  4094. /* System header to define __stub macros and hopefully few prototypes,
  4095. which can conflict with char libiconv(); below. */
  4096. #include <assert.h>
  4097. /* Override any gcc2 internal prototype to avoid an error. */
  4098. /* We use char because int might match the return type of a gcc2
  4099. builtin and then its argument prototype would still apply. */
  4100. char libiconv();
  4101. int main() {
  4102. /* The GNU C library defines this for functions which it implements
  4103. to always fail with ENOSYS. Some functions are actually named
  4104. something starting with __ and the normal name is an alias. */
  4105. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4106. choke me
  4107. #else
  4108. libiconv();
  4109. #endif
  4110. ; return 0; }
  4111. EOF
  4112. if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4113. rm -rf conftest*
  4114. eval "ac_cv_func_libiconv=yes"
  4115. else
  4116. echo "configure: failed program was:" >&5
  4117. cat conftest.$ac_ext >&5
  4118. rm -rf conftest*
  4119. eval "ac_cv_func_libiconv=no"
  4120. fi
  4121. rm -f conftest*
  4122. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4123. echo "$ac_t""yes" 1>&6
  4124. ICONVLIB=
  4125. else
  4126. echo "$ac_t""no" 1>&6
  4127. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4128. echo "configure:4906: checking for libiconv in -liconv" >&5
  4129. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4130. ac_save_LIBS="$LIBS"
  4131. LIBS="-liconv $LIBS"
  4132. cat > conftest.$ac_ext <<EOF
  4133. #line 4912 "configure"
  4134. #include "confdefs.h"
  4135. /* Override any gcc2 internal prototype to avoid an error. */
  4136. /* We use char because int might match the return type of a gcc2
  4137. builtin and then its argument prototype would still apply. */
  4138. char libiconv();
  4139. int main() {
  4140. libiconv()
  4141. ; return 0; }
  4142. EOF
  4143. if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4144. rm -rf conftest*
  4145. eval "ac_cv_lib_$ac_lib_var=yes"
  4146. else
  4147. echo "configure: failed program was:" >&5
  4148. cat conftest.$ac_ext >&5
  4149. rm -rf conftest*
  4150. eval "ac_cv_lib_$ac_lib_var=no"
  4151. fi
  4152. rm -f conftest*
  4153. LIBS="$ac_save_LIBS"
  4154. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4155. echo "$ac_t""yes" 1>&6
  4156. ICONVLIB=-liconv
  4157. else
  4158. echo "$ac_t""no" 1>&6
  4159. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4160. echo "configure:4942: checking for libiconv in -lgiconv" >&5
  4161. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4162. ac_save_LIBS="$LIBS"
  4163. LIBS="-lgiconv $LIBS"
  4164. cat > conftest.$ac_ext <<EOF
  4165. #line 4948 "configure"
  4166. #include "confdefs.h"
  4167. /* Override any gcc2 internal prototype to avoid an error. */
  4168. /* We use char because int might match the return type of a gcc2
  4169. builtin and then its argument prototype would still apply. */
  4170. char libiconv();
  4171. int main() {
  4172. libiconv()
  4173. ; return 0; }
  4174. EOF
  4175. if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4176. rm -rf conftest*
  4177. eval "ac_cv_lib_$ac_lib_var=yes"
  4178. else
  4179. echo "configure: failed program was:" >&5
  4180. cat conftest.$ac_ext >&5
  4181. rm -rf conftest*
  4182. eval "ac_cv_lib_$ac_lib_var=no"
  4183. fi
  4184. rm -f conftest*
  4185. LIBS="$ac_save_LIBS"
  4186. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4187. echo "$ac_t""yes" 1>&6
  4188. ICONVLIB=-lgiconv
  4189. else
  4190. echo "$ac_t""no" 1>&6
  4191. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4192. ICONVLIB=
  4193. fi
  4194. fi
  4195. fi
  4196. fi
  4197. fi
  4198. fi
  4199. have_socket=1
  4200. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4201. echo "configure:4996: checking for socket" >&5
  4202. cat > conftest.$ac_ext <<EOF
  4203. #line 4999 "configure"
  4204. #include "confdefs.h"
  4205. /* System header to define __stub macros and hopefully few prototypes,
  4206. which can conflict with char socket(); below. */
  4207. #include <assert.h>
  4208. /* Override any gcc2 internal prototype to avoid an error. */
  4209. /* We use char because int might match the return type of a gcc2
  4210. builtin and then its argument prototype would still apply. */
  4211. char socket();
  4212. int main() {
  4213. /* The GNU C library defines this for functions which it implements
  4214. to always fail with ENOSYS. Some functions are actually named
  4215. something starting with __ and the normal name is an alias. */
  4216. #if defined (__stub_socket) || defined (__stub___socket)
  4217. choke me
  4218. #else
  4219. socket();
  4220. #endif
  4221. ; return 0; }
  4222. EOF
  4223. if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4224. rm -rf conftest*
  4225. eval "ac_cv_func_socket=yes"
  4226. else
  4227. echo "configure: failed program was:" >&5
  4228. cat conftest.$ac_ext >&5
  4229. rm -rf conftest*
  4230. eval "ac_cv_func_socket=no"
  4231. fi
  4232. rm -f conftest*
  4233. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4234. echo "$ac_t""yes" 1>&6
  4235. SOCKLIB=
  4236. else
  4237. echo "$ac_t""no" 1>&6
  4238. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4239. echo "configure:5040: checking for socket in -lsocket" >&5
  4240. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4241. ac_save_LIBS="$LIBS"
  4242. LIBS="-lsocket $LIBS"
  4243. cat > conftest.$ac_ext <<EOF
  4244. #line 5046 "configure"
  4245. #include "confdefs.h"
  4246. /* Override any gcc2 internal prototype to avoid an error. */
  4247. /* We use char because int might match the return type of a gcc2
  4248. builtin and then its argument prototype would still apply. */
  4249. char socket();
  4250. int main() {
  4251. socket()
  4252. ; return 0; }
  4253. EOF
  4254. if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4255. rm -rf conftest*
  4256. eval "ac_cv_lib_$ac_lib_var=yes"
  4257. else
  4258. echo "configure: failed program was:" >&5
  4259. cat conftest.$ac_ext >&5
  4260. rm -rf conftest*
  4261. eval "ac_cv_lib_$ac_lib_var=no"
  4262. fi
  4263. rm -f conftest*
  4264. LIBS="$ac_save_LIBS"
  4265. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4266. echo "$ac_t""yes" 1>&6
  4267. SOCKLIB=-lsocket
  4268. else
  4269. echo "$ac_t""no" 1>&6
  4270. have_socket=0
  4271. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4272. fi
  4273. fi
  4274. if test "$have_socket" = 1 ; then
  4275. HAVE_SOCKET=1
  4276. cat >> confdefs.h <<\EOF
  4277. #define HAVE_SOCKET 1
  4278. EOF
  4279. else
  4280. HAVE_SOCKET=
  4281. fi
  4282. # Mandatory zlib dependency
  4283. ZLIBLIBPATH=
  4284. ZLIBINCPATH=
  4285. ZLIB=
  4286. # With zlib includes directory
  4287. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4288. echo "configure:5105: checking for location of zlib includes" >&5
  4289. case "$with_zlib_includes" in
  4290. y | ye | yes | n | no)
  4291. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4292. ;;
  4293. esac
  4294. echo "$ac_t""$with_zlib_includes" 1>&6
  4295. if test -n "$with_zlib_includes" ; then
  4296. for dir in $with_zlib_includes; do
  4297. if test -d "$dir"; then
  4298. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4299. else
  4300. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4301. fi
  4302. done
  4303. fi
  4304. ac_save_cppflags="$CPPFLAGS"
  4305. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4306. for ac_hdr in zlib.h
  4307. do
  4308. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4309. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4310. echo "configure:5131: checking for $ac_hdr" >&5
  4311. cat > conftest.$ac_ext <<EOF
  4312. #line 5134 "configure"
  4313. #include "confdefs.h"
  4314. #include <$ac_hdr>
  4315. EOF
  4316. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4317. { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4318. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4319. if test -z "$ac_err"; then
  4320. rm -rf conftest*
  4321. eval "ac_cv_header_$ac_safe=yes"
  4322. else
  4323. echo "$ac_err" >&5
  4324. echo "configure: failed program was:" >&5
  4325. cat conftest.$ac_ext >&5
  4326. rm -rf conftest*
  4327. eval "ac_cv_header_$ac_safe=no"
  4328. fi
  4329. rm -f conftest*
  4330. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4331. echo "$ac_t""yes" 1>&6
  4332. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4333. cat >> confdefs.h <<EOF
  4334. #define $ac_tr_hdr 1
  4335. EOF
  4336. else
  4337. echo "$ac_t""no" 1>&6
  4338. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4339. fi
  4340. done
  4341. CPPFLAGS=$ac_save_cppflags
  4342. # With zlib library directory
  4343. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4344. echo "configure:5173: checking for location of zlib library" >&5
  4345. case "$with_zlib_libs" in
  4346. y | ye | yes | n | no)
  4347. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4348. ;;
  4349. esac
  4350. echo "$ac_t""$with_zlib_libs" 1>&6
  4351. if test -n "$with_zlib_libs"; then
  4352. for dir in $with_zlib_libs; do
  4353. if test -d "$dir"; then
  4354. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4355. else
  4356. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4357. fi
  4358. done
  4359. fi
  4360. ac_save_ldflags="$LDFLAGS"
  4361. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4362. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4363. echo "configure:5198: checking for deflate in -lz" >&5
  4364. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4365. ac_save_LIBS="$LIBS"
  4366. LIBS="-lz $LIBS"
  4367. cat > conftest.$ac_ext <<EOF
  4368. #line 5204 "configure"
  4369. #include "confdefs.h"
  4370. /* Override any gcc2 internal prototype to avoid an error. */
  4371. /* We use char because int might match the return type of a gcc2
  4372. builtin and then its argument prototype would still apply. */
  4373. char deflate();
  4374. int main() {
  4375. deflate()
  4376. ; return 0; }
  4377. EOF
  4378. if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4379. rm -rf conftest*
  4380. eval "ac_cv_lib_$ac_lib_var=yes"
  4381. else
  4382. echo "configure: failed program was:" >&5
  4383. cat conftest.$ac_ext >&5
  4384. rm -rf conftest*
  4385. eval "ac_cv_lib_$ac_lib_var=no"
  4386. fi
  4387. rm -f conftest*
  4388. LIBS="$ac_save_LIBS"
  4389. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4390. echo "$ac_t""yes" 1>&6
  4391. ZLIB="$ZLIB -lz "
  4392. else
  4393. echo "$ac_t""no" 1>&6
  4394. LDFLAGS=${ac_save_ldflags}
  4395. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4396. fi
  4397. LDFLAGS=${ac_save_ldflags}
  4398. #
  4399. # Done checking zlib
  4400. # Mandatory PROJ dependency
  4401. PROJINC=
  4402. PROJLIB=
  4403. PROJSHARE=
  4404. # With PROJ includes directory
  4405. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4406. echo "configure:5263: checking for location of External PROJ.4 includes" >&5
  4407. case "$with_proj_includes" in
  4408. y | ye | yes | n | no)
  4409. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4410. ;;
  4411. esac
  4412. echo "$ac_t""$with_proj_includes" 1>&6
  4413. if test -n "$with_proj_includes" ; then
  4414. for dir in $with_proj_includes; do
  4415. if test -d "$dir"; then
  4416. PROJINC="$PROJINC -I$dir"
  4417. else
  4418. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4419. fi
  4420. done
  4421. fi
  4422. ac_save_cppflags="$CPPFLAGS"
  4423. CPPFLAGS="$PROJINC $CPPFLAGS"
  4424. for ac_hdr in proj_api.h
  4425. do
  4426. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4427. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4428. echo "configure:5289: checking for $ac_hdr" >&5
  4429. cat > conftest.$ac_ext <<EOF
  4430. #line 5292 "configure"
  4431. #include "confdefs.h"
  4432. #include <$ac_hdr>
  4433. EOF
  4434. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4435. { (eval echo configure:5297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4436. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4437. if test -z "$ac_err"; then
  4438. rm -rf conftest*
  4439. eval "ac_cv_header_$ac_safe=yes"
  4440. else
  4441. echo "$ac_err" >&5
  4442. echo "configure: failed program was:" >&5
  4443. cat conftest.$ac_ext >&5
  4444. rm -rf conftest*
  4445. eval "ac_cv_header_$ac_safe=no"
  4446. fi
  4447. rm -f conftest*
  4448. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4449. echo "$ac_t""yes" 1>&6
  4450. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4451. cat >> confdefs.h <<EOF
  4452. #define $ac_tr_hdr 1
  4453. EOF
  4454. else
  4455. echo "$ac_t""no" 1>&6
  4456. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4457. fi
  4458. done
  4459. CPPFLAGS=$ac_save_cppflags
  4460. # PROJ version check
  4461. if test "$cross_compiling" = yes; then
  4462. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4463. else
  4464. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4465. echo "configure:5334: checking External PROJ.4 version" >&5
  4466. ac_save_cppflags="$CPPFLAGS"
  4467. CPPFLAGS="$PROJINC $CPPFLAGS"
  4468. if test "$cross_compiling" = yes; then
  4469. proj_ver=0
  4470. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4471. else
  4472. cat > conftest.$ac_ext <<EOF
  4473. #line 5342 "configure"
  4474. #include "confdefs.h"
  4475. #include <stdio.h>
  4476. #include <proj_api.h>
  4477. int main(void) {
  4478. FILE *fp = fopen("conftestdata","w");
  4479. fprintf(fp, "%d", PJ_VERSION);
  4480. return 0;
  4481. }
  4482. EOF
  4483. if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4484. then
  4485. proj_ver=`cat conftestdata`
  4486. echo "$ac_t""$proj_ver" 1>&6
  4487. else
  4488. echo "configure: failed program was:" >&5
  4489. cat conftest.$ac_ext >&5
  4490. rm -fr conftest*
  4491. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4492. fi
  4493. rm -fr conftest*
  4494. fi
  4495. CPPFLAGS=$ac_save_cppflags
  4496. if test `expr "$proj_ver" \< 446` = 1 ; then
  4497. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4498. fi
  4499. fi
  4500. # With PROJ library directory
  4501. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4502. echo "configure:5379: checking for location of External PROJ.4 library" >&5
  4503. case "$with_proj_libs" in
  4504. y | ye | yes | n | no)
  4505. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4506. ;;
  4507. esac
  4508. echo "$ac_t""$with_proj_libs" 1>&6
  4509. if test -n "$with_proj_libs"; then
  4510. for dir in $with_proj_libs; do
  4511. if test -d "$dir"; then
  4512. PROJLIB="$PROJLIB -L$dir"
  4513. else
  4514. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4515. fi
  4516. done
  4517. fi
  4518. ac_save_ldflags="$LDFLAGS"
  4519. LDFLAGS="$PROJLIB $LDFLAGS"
  4520. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4521. echo "configure:5404: checking for pj_get_def in -lproj" >&5
  4522. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4523. ac_save_LIBS="$LIBS"
  4524. LIBS="-lproj $LIBS"
  4525. cat > conftest.$ac_ext <<EOF
  4526. #line 5410 "configure"
  4527. #include "confdefs.h"
  4528. /* Override any gcc2 internal prototype to avoid an error. */
  4529. /* We use char because int might match the return type of a gcc2
  4530. builtin and then its argument prototype would still apply. */
  4531. char pj_get_def();
  4532. int main() {
  4533. pj_get_def()
  4534. ; return 0; }
  4535. EOF
  4536. if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4537. rm -rf conftest*
  4538. eval "ac_cv_lib_$ac_lib_var=yes"
  4539. else
  4540. echo "configure: failed program was:" >&5
  4541. cat conftest.$ac_ext >&5
  4542. rm -rf conftest*
  4543. eval "ac_cv_lib_$ac_lib_var=no"
  4544. fi
  4545. rm -f conftest*
  4546. LIBS="$ac_save_LIBS"
  4547. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4548. echo "$ac_t""yes" 1>&6
  4549. PROJLIB="$PROJLIB -lproj "
  4550. else
  4551. echo "$ac_t""no" 1>&6
  4552. LDFLAGS=${ac_save_ldflags}
  4553. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4554. fi
  4555. LDFLAGS=${ac_save_ldflags}
  4556. # With PROJ share directory
  4557. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4558. echo "configure:5455: checking for location of External PROJ.4 data files" >&5
  4559. case "$with_proj_share" in
  4560. y | ye | yes | n | no)
  4561. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4562. ;;
  4563. esac
  4564. echo "$ac_t""$with_proj_share" 1>&6
  4565. if test -n "$with_proj_share" ; then
  4566. if test -d "$with_proj_share"; then
  4567. PROJSHARE="$with_proj_share"
  4568. else
  4569. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4570. fi
  4571. fi
  4572. if test -z "$PROJSHARE" ; then
  4573. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4574. PROJSHARE=/usr/local/share/proj
  4575. fi
  4576. # LOC_CHECK_SHARE does not work when cross compiling
  4577. if test "$cross_compiling" = "yes" ; then
  4578. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4579. echo "configure:5479: checking for epsg" >&5
  4580. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4581. else
  4582. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4583. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4584. echo "configure:5486: checking for $PROJSHARE/epsg" >&5
  4585. if test "$cross_compiling" = yes; then
  4586. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4587. else
  4588. if test -r $PROJSHARE/epsg; then
  4589. eval "ac_cv_file_$ac_safe=yes"
  4590. else
  4591. eval "ac_cv_file_$ac_safe=no"
  4592. fi
  4593. fi
  4594. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4595. echo "$ac_t""yes" 1>&6
  4596. :
  4597. else
  4598. echo "$ac_t""no" 1>&6
  4599. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4600. fi
  4601. fi
  4602. # nad2bin needs to be in path for installing datum gridshift files
  4603. # Extract the first word of "nad2bin", so it can be a program name with args.
  4604. set dummy nad2bin; ac_word=$2
  4605. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4606. echo "configure:5518: checking for $ac_word" >&5
  4607. case "$NAD2BIN" in
  4608. /*)
  4609. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4610. ;;
  4611. ?:/*)
  4612. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4613. ;;
  4614. *)
  4615. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4616. ac_dummy="$PATH"
  4617. for ac_dir in $ac_dummy; do
  4618. test -z "$ac_dir" && ac_dir=.
  4619. if test -f $ac_dir/$ac_word; then
  4620. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4621. break
  4622. fi
  4623. done
  4624. IFS="$ac_save_ifs"
  4625. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4626. ;;
  4627. esac
  4628. NAD2BIN="$ac_cv_path_NAD2BIN"
  4629. if test -n "$NAD2BIN"; then
  4630. echo "$ac_t""$NAD2BIN" 1>&6
  4631. else
  4632. echo "$ac_t""no" 1>&6
  4633. fi
  4634. if test "$NAD2BIN" = "no"; then
  4635. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4636. fi
  4637. # Done checking PROJ
  4638. # Enable regex option
  4639. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4640. echo "configure:5558: checking whether to use regex" >&5
  4641. echo "$ac_t"""$with_regex"" 1>&6
  4642. case "$with_regex" in
  4643. "no") USE_REGEX= ;;
  4644. "yes") USE_REGEX="1" ;;
  4645. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4646. esac
  4647. REGEXINCPATH=
  4648. REGEXLIBPATH=
  4649. REGEXLIB=
  4650. if test -n "$USE_REGEX"; then
  4651. # With regex includes directory
  4652. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4653. echo "configure:5578: checking for location of regex includes" >&5
  4654. case "$with_regex_includes" in
  4655. y | ye | yes | n | no)
  4656. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4657. ;;
  4658. esac
  4659. echo "$ac_t""$with_regex_includes" 1>&6
  4660. if test -n "$with_regex_includes" ; then
  4661. for dir in $with_regex_includes; do
  4662. if test -d "$dir"; then
  4663. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4664. else
  4665. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4666. fi
  4667. done
  4668. fi
  4669. ac_save_cppflags="$CPPFLAGS"
  4670. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4671. for ac_hdr in regex.h
  4672. do
  4673. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4674. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4675. echo "configure:5604: checking for $ac_hdr" >&5
  4676. cat > conftest.$ac_ext <<EOF
  4677. #line 5607 "configure"
  4678. #include "confdefs.h"
  4679. #include <$ac_hdr>
  4680. EOF
  4681. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4682. { (eval echo configure:5612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4683. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4684. if test -z "$ac_err"; then
  4685. rm -rf conftest*
  4686. eval "ac_cv_header_$ac_safe=yes"
  4687. else
  4688. echo "$ac_err" >&5
  4689. echo "configure: failed program was:" >&5
  4690. cat conftest.$ac_ext >&5
  4691. rm -rf conftest*
  4692. eval "ac_cv_header_$ac_safe=no"
  4693. fi
  4694. rm -f conftest*
  4695. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4696. echo "$ac_t""yes" 1>&6
  4697. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4698. cat >> confdefs.h <<EOF
  4699. #define $ac_tr_hdr 1
  4700. EOF
  4701. else
  4702. echo "$ac_t""no" 1>&6
  4703. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4704. fi
  4705. done
  4706. CPPFLAGS=$ac_save_cppflags
  4707. # With regex library directory
  4708. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4709. echo "configure:5646: checking for location of regex library" >&5
  4710. case "$with_regex_libs" in
  4711. y | ye | yes | n | no)
  4712. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4713. ;;
  4714. esac
  4715. echo "$ac_t""$with_regex_libs" 1>&6
  4716. if test -n "$with_regex_libs"; then
  4717. for dir in $with_regex_libs; do
  4718. if test -d "$dir"; then
  4719. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4720. else
  4721. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4722. fi
  4723. done
  4724. fi
  4725. ac_save_libs="$LIBS"
  4726. ac_save_ldflags="$LDFLAGS"
  4727. LIBS=" $LIBS"
  4728. LDFLAGS=" $LDFLAGS"
  4729. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4730. echo "configure:5671: checking for regcomp" >&5
  4731. cat > conftest.$ac_ext <<EOF
  4732. #line 5674 "configure"
  4733. #include "confdefs.h"
  4734. /* System header to define __stub macros and hopefully few prototypes,
  4735. which can conflict with char regcomp(); below. */
  4736. #include <assert.h>
  4737. /* Override any gcc2 internal prototype to avoid an error. */
  4738. /* We use char because int might match the return type of a gcc2
  4739. builtin and then its argument prototype would still apply. */
  4740. char regcomp();
  4741. int main() {
  4742. /* The GNU C library defines this for functions which it implements
  4743. to always fail with ENOSYS. Some functions are actually named
  4744. something starting with __ and the normal name is an alias. */
  4745. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4746. choke me
  4747. #else
  4748. regcomp();
  4749. #endif
  4750. ; return 0; }
  4751. EOF
  4752. if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4753. rm -rf conftest*
  4754. eval "ac_cv_func_regcomp=yes"
  4755. else
  4756. echo "configure: failed program was:" >&5
  4757. cat conftest.$ac_ext >&5
  4758. rm -rf conftest*
  4759. eval "ac_cv_func_regcomp=no"
  4760. fi
  4761. rm -f conftest*
  4762. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4763. echo "$ac_t""yes" 1>&6
  4764. REGEXLIB="$REGEXLIB "
  4765. else
  4766. echo "$ac_t""no" 1>&6
  4767. ac_save_ldflags="$LDFLAGS"
  4768. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4769. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4770. echo "configure:5724: checking for regcomp in -lregex" >&5
  4771. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4772. ac_save_LIBS="$LIBS"
  4773. LIBS="-lregex $LIBS"
  4774. cat > conftest.$ac_ext <<EOF
  4775. #line 5730 "configure"
  4776. #include "confdefs.h"
  4777. /* Override any gcc2 internal prototype to avoid an error. */
  4778. /* We use char because int might match the return type of a gcc2
  4779. builtin and then its argument prototype would still apply. */
  4780. char regcomp();
  4781. int main() {
  4782. regcomp()
  4783. ; return 0; }
  4784. EOF
  4785. if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4786. rm -rf conftest*
  4787. eval "ac_cv_lib_$ac_lib_var=yes"
  4788. else
  4789. echo "configure: failed program was:" >&5
  4790. cat conftest.$ac_ext >&5
  4791. rm -rf conftest*
  4792. eval "ac_cv_lib_$ac_lib_var=no"
  4793. fi
  4794. rm -f conftest*
  4795. LIBS="$ac_save_LIBS"
  4796. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4797. echo "$ac_t""yes" 1>&6
  4798. REGEXLIB="$REGEXLIB -lregex "
  4799. else
  4800. echo "$ac_t""no" 1>&6
  4801. LDFLAGS=${ac_save_ldflags}
  4802. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4803. fi
  4804. LDFLAGS=${ac_save_ldflags}
  4805. fi
  4806. LIBS=${ac_save_libs}
  4807. LDFLAGS=${ac_save_ldflags}
  4808. fi # $USE_REGEX
  4809. # Done checking regex
  4810. # Enable Readline option
  4811. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4812. echo "configure:5791: checking whether to use Readline" >&5
  4813. echo "$ac_t"""$with_readline"" 1>&6
  4814. case "$with_readline" in
  4815. "no") USE_READLINE= ;;
  4816. "yes") USE_READLINE="1" ;;
  4817. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4818. esac
  4819. READLINEINCPATH=
  4820. READLINELIBPATH=
  4821. READLINELIB=
  4822. HISTORYLIB=
  4823. if test -n "$USE_READLINE"; then
  4824. # With Readline includes directory
  4825. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4826. echo "configure:5812: checking for location of Readline includes" >&5
  4827. case "$with_readline_includes" in
  4828. y | ye | yes | n | no)
  4829. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4830. ;;
  4831. esac
  4832. echo "$ac_t""$with_readline_includes" 1>&6
  4833. if test -n "$with_readline_includes" ; then
  4834. for dir in $with_readline_includes; do
  4835. if test -d "$dir"; then
  4836. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4837. else
  4838. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4839. fi
  4840. done
  4841. fi
  4842. ac_save_cppflags="$CPPFLAGS"
  4843. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4844. for ac_hdr in readline/readline.h
  4845. do
  4846. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4847. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4848. echo "configure:5838: checking for $ac_hdr" >&5
  4849. cat > conftest.$ac_ext <<EOF
  4850. #line 5841 "configure"
  4851. #include "confdefs.h"
  4852. #include <$ac_hdr>
  4853. EOF
  4854. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4855. { (eval echo configure:5846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4856. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4857. if test -z "$ac_err"; then
  4858. rm -rf conftest*
  4859. eval "ac_cv_header_$ac_safe=yes"
  4860. else
  4861. echo "$ac_err" >&5
  4862. echo "configure: failed program was:" >&5
  4863. cat conftest.$ac_ext >&5
  4864. rm -rf conftest*
  4865. eval "ac_cv_header_$ac_safe=no"
  4866. fi
  4867. rm -f conftest*
  4868. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4869. echo "$ac_t""yes" 1>&6
  4870. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4871. cat >> confdefs.h <<EOF
  4872. #define $ac_tr_hdr 1
  4873. EOF
  4874. else
  4875. echo "$ac_t""no" 1>&6
  4876. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4877. fi
  4878. done
  4879. CPPFLAGS=$ac_save_cppflags
  4880. ac_save_cppflags="$CPPFLAGS"
  4881. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4882. for ac_hdr in readline/history.h
  4883. do
  4884. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4885. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4886. echo "configure:5882: checking for $ac_hdr" >&5
  4887. cat > conftest.$ac_ext <<EOF
  4888. #line 5885 "configure"
  4889. #include "confdefs.h"
  4890. #include <$ac_hdr>
  4891. EOF
  4892. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4893. { (eval echo configure:5890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4894. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4895. if test -z "$ac_err"; then
  4896. rm -rf conftest*
  4897. eval "ac_cv_header_$ac_safe=yes"
  4898. else
  4899. echo "$ac_err" >&5
  4900. echo "configure: failed program was:" >&5
  4901. cat conftest.$ac_ext >&5
  4902. rm -rf conftest*
  4903. eval "ac_cv_header_$ac_safe=no"
  4904. fi
  4905. rm -f conftest*
  4906. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4907. echo "$ac_t""yes" 1>&6
  4908. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4909. cat >> confdefs.h <<EOF
  4910. #define $ac_tr_hdr 1
  4911. EOF
  4912. else
  4913. echo "$ac_t""no" 1>&6
  4914. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4915. fi
  4916. done
  4917. CPPFLAGS=$ac_save_cppflags
  4918. # With Readline library directory
  4919. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4920. echo "configure:5924: checking for location of Readline library" >&5
  4921. case "$with_readline_libs" in
  4922. y | ye | yes | n | no)
  4923. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4924. ;;
  4925. esac
  4926. echo "$ac_t""$with_readline_libs" 1>&6
  4927. if test -n "$with_readline_libs"; then
  4928. for dir in $with_readline_libs; do
  4929. if test -d "$dir"; then
  4930. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4931. else
  4932. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4933. fi
  4934. done
  4935. fi
  4936. ac_save_ldflags="$LDFLAGS"
  4937. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4938. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4939. echo "configure:5949: checking for readline in -lreadline" >&5
  4940. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4941. ac_save_LIBS="$LIBS"
  4942. LIBS="-lreadline $LIBS"
  4943. cat > conftest.$ac_ext <<EOF
  4944. #line 5955 "configure"
  4945. #include "confdefs.h"
  4946. /* Override any gcc2 internal prototype to avoid an error. */
  4947. /* We use char because int might match the return type of a gcc2
  4948. builtin and then its argument prototype would still apply. */
  4949. char readline();
  4950. int main() {
  4951. readline()
  4952. ; return 0; }
  4953. EOF
  4954. if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4955. rm -rf conftest*
  4956. eval "ac_cv_lib_$ac_lib_var=yes"
  4957. else
  4958. echo "configure: failed program was:" >&5
  4959. cat conftest.$ac_ext >&5
  4960. rm -rf conftest*
  4961. eval "ac_cv_lib_$ac_lib_var=no"
  4962. fi
  4963. rm -f conftest*
  4964. LIBS="$ac_save_LIBS"
  4965. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4966. echo "$ac_t""yes" 1>&6
  4967. READLINELIB="$READLINELIB -lreadline "
  4968. else
  4969. echo "$ac_t""no" 1>&6
  4970. LDFLAGS=${ac_save_ldflags}
  4971. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4972. fi
  4973. LDFLAGS=${ac_save_ldflags}
  4974. ac_save_ldflags="$LDFLAGS"
  4975. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4976. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4977. echo "configure:6001: checking for add_history in -lhistory" >&5
  4978. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4979. ac_save_LIBS="$LIBS"
  4980. LIBS="-lhistory $LIBS"
  4981. cat > conftest.$ac_ext <<EOF
  4982. #line 6007 "configure"
  4983. #include "confdefs.h"
  4984. /* Override any gcc2 internal prototype to avoid an error. */
  4985. /* We use char because int might match the return type of a gcc2
  4986. builtin and then its argument prototype would still apply. */
  4987. char add_history();
  4988. int main() {
  4989. add_history()
  4990. ; return 0; }
  4991. EOF
  4992. if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4993. rm -rf conftest*
  4994. eval "ac_cv_lib_$ac_lib_var=yes"
  4995. else
  4996. echo "configure: failed program was:" >&5
  4997. cat conftest.$ac_ext >&5
  4998. rm -rf conftest*
  4999. eval "ac_cv_lib_$ac_lib_var=no"
  5000. fi
  5001. rm -f conftest*
  5002. LIBS="$ac_save_LIBS"
  5003. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5004. echo "$ac_t""yes" 1>&6
  5005. HISTORYLIB="$HISTORYLIB -lhistory "
  5006. else
  5007. echo "$ac_t""no" 1>&6
  5008. LDFLAGS=${ac_save_ldflags}
  5009. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5010. fi
  5011. LDFLAGS=${ac_save_ldflags}
  5012. fi # $USE_READLINE
  5013. # Done checking Readline
  5014. # GDAL option
  5015. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5016. echo "configure:6060: checking whether to use GDAL" >&5
  5017. GDAL_LIBS=
  5018. GDAL_CFLAGS=
  5019. USE_GDAL=
  5020. USE_OGR=
  5021. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5022. GDAL_CONFIG="$with_gdal"
  5023. fi
  5024. if test "$with_gdal" = "no" ; then
  5025. echo "$ac_t""no" 1>&6
  5026. else
  5027. echo "$ac_t""yes" 1>&6
  5028. # Extract the first word of "gdal-config", so it can be a program name with args.
  5029. set dummy gdal-config; ac_word=$2
  5030. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5031. echo "configure:6078: checking for $ac_word" >&5
  5032. case "$GDAL_CONFIG" in
  5033. /*)
  5034. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5035. ;;
  5036. ?:/*)
  5037. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5038. ;;
  5039. *)
  5040. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5041. ac_dummy="$PATH"
  5042. for ac_dir in $ac_dummy; do
  5043. test -z "$ac_dir" && ac_dir=.
  5044. if test -f $ac_dir/$ac_word; then
  5045. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5046. break
  5047. fi
  5048. done
  5049. IFS="$ac_save_ifs"
  5050. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5051. ;;
  5052. esac
  5053. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5054. if test -n "$GDAL_CONFIG"; then
  5055. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5056. else
  5057. echo "$ac_t""no" 1>&6
  5058. fi
  5059. if test "$GDAL_CONFIG" = "no" ; then
  5060. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5061. fi
  5062. if test "$GDAL_CONFIG" != "" ; then
  5063. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5064. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5065. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5066. USE_GDAL=1
  5067. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5068. cat >> confdefs.h <<\EOF
  5069. #define HAVE_OGR 1
  5070. EOF
  5071. USE_OGR=1
  5072. fi
  5073. fi
  5074. GDAL=
  5075. ac_save_libs="$LIBS"
  5076. ac_save_cflags="$CFLAGS"
  5077. LIBS="$LIBS $GDAL_LIBS"
  5078. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5079. cat > conftest.$ac_ext <<EOF
  5080. #line 6133 "configure"
  5081. #include "confdefs.h"
  5082. #include <gdal.h>
  5083. int main() {
  5084. GDALOpen("foo", GA_ReadOnly);
  5085. ; return 0; }
  5086. EOF
  5087. if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5088. :
  5089. else
  5090. echo "configure: failed program was:" >&5
  5091. cat conftest.$ac_ext >&5
  5092. rm -rf conftest*
  5093. LIBS="$LIBS $GDAL_DEP_LIBS"
  5094. cat > conftest.$ac_ext <<EOF
  5095. #line 6149 "configure"
  5096. #include "confdefs.h"
  5097. #include <gdal.h>
  5098. int main() {
  5099. GDALOpen("foo", GA_ReadOnly);
  5100. ; return 0; }
  5101. EOF
  5102. if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5103. rm -rf conftest*
  5104. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5105. else
  5106. echo "configure: failed program was:" >&5
  5107. cat conftest.$ac_ext >&5
  5108. rm -rf conftest*
  5109. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5110. fi
  5111. rm -f conftest*
  5112. fi
  5113. rm -f conftest*
  5114. LIBS=${ac_save_libs}
  5115. CFLAGS=${ac_save_cflags}
  5116. cat >> confdefs.h <<\EOF
  5117. #define HAVE_GDAL 1
  5118. EOF
  5119. fi
  5120. # libLAS option
  5121. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5122. echo "configure:6188: checking whether to use libLAS" >&5
  5123. LIBLAS_LIBS=
  5124. LIBLAS_CFLAGS=
  5125. USE_LIBLAS=
  5126. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5127. LIBLAS_CONFIG="$with_liblas"
  5128. fi
  5129. if test "$with_liblas" = "no" ; then
  5130. echo "$ac_t""no" 1>&6
  5131. else
  5132. echo "$ac_t""yes" 1>&6
  5133. # Extract the first word of "liblas-config", so it can be a program name with args.
  5134. set dummy liblas-config; ac_word=$2
  5135. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5136. echo "configure:6205: checking for $ac_word" >&5
  5137. case "$LIBLAS_CONFIG" in
  5138. /*)
  5139. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5140. ;;
  5141. ?:/*)
  5142. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5143. ;;
  5144. *)
  5145. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5146. ac_dummy="$PATH"
  5147. for ac_dir in $ac_dummy; do
  5148. test -z "$ac_dir" && ac_dir=.
  5149. if test -f $ac_dir/$ac_word; then
  5150. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5151. break
  5152. fi
  5153. done
  5154. IFS="$ac_save_ifs"
  5155. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5156. ;;
  5157. esac
  5158. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5159. if test -n "$LIBLAS_CONFIG"; then
  5160. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5161. else
  5162. echo "$ac_t""no" 1>&6
  5163. fi
  5164. if test "$LIBLAS_CONFIG" = "no" ; then
  5165. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5166. fi
  5167. if test "$LIBLAS_CONFIG" != "" ; then
  5168. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5169. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5170. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5171. USE_LIBLAS=1
  5172. fi
  5173. LIBLAS=
  5174. ac_save_libs="$LIBS"
  5175. ac_save_cflags="$CFLAGS"
  5176. LIBS="$LIBS $LIBLAS_LIBS"
  5177. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5178. cat > conftest.$ac_ext <<EOF
  5179. #line 6253 "configure"
  5180. #include "confdefs.h"
  5181. #include <liblas/capi/liblas.h>
  5182. int main() {
  5183. LASReader_Create("foo");
  5184. ; return 0; }
  5185. EOF
  5186. if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5187. :
  5188. else
  5189. echo "configure: failed program was:" >&5
  5190. cat conftest.$ac_ext >&5
  5191. rm -rf conftest*
  5192. cat > conftest.$ac_ext <<EOF
  5193. #line 6268 "configure"
  5194. #include "confdefs.h"
  5195. #include <liblas/capi/liblas.h>
  5196. int main() {
  5197. LASReader_Create("foo");
  5198. ; return 0; }
  5199. EOF
  5200. if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5201. rm -rf conftest*
  5202. LAS_LIBS="$LAS_LIBS"
  5203. else
  5204. echo "configure: failed program was:" >&5
  5205. cat conftest.$ac_ext >&5
  5206. rm -rf conftest*
  5207. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5208. fi
  5209. rm -f conftest*
  5210. fi
  5211. rm -f conftest*
  5212. LIBS=${ac_save_libs}
  5213. CFLAGS=${ac_save_cflags}
  5214. cat >> confdefs.h <<\EOF
  5215. #define HAVE_LIBLAS 1
  5216. EOF
  5217. fi
  5218. # NetCDF option
  5219. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5220. echo "configure:6307: checking whether to use NetCDF" >&5
  5221. NETCDF_LIBS=
  5222. NETCDF_CFLAGS=
  5223. USE_NETCDF=
  5224. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5225. NETCDF_CONFIG="$with_netcdf"
  5226. fi
  5227. if test "$with_netcdf" = "no" ; then
  5228. echo "$ac_t""no" 1>&6
  5229. else
  5230. echo "$ac_t""yes" 1>&6
  5231. # Extract the first word of "nc-config", so it can be a program name with args.
  5232. set dummy nc-config; ac_word=$2
  5233. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5234. echo "configure:6324: checking for $ac_word" >&5
  5235. case "$NETCDF_CONFIG" in
  5236. /*)
  5237. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5238. ;;
  5239. ?:/*)
  5240. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5241. ;;
  5242. *)
  5243. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5244. ac_dummy="$PATH"
  5245. for ac_dir in $ac_dummy; do
  5246. test -z "$ac_dir" && ac_dir=.
  5247. if test -f $ac_dir/$ac_word; then
  5248. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5249. break
  5250. fi
  5251. done
  5252. IFS="$ac_save_ifs"
  5253. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5254. ;;
  5255. esac
  5256. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5257. if test -n "$NETCDF_CONFIG"; then
  5258. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5259. else
  5260. echo "$ac_t""no" 1>&6
  5261. fi
  5262. if test "$NETCDF_CONFIG" = "no" ; then
  5263. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5264. fi
  5265. if test "$NETCDF_CONFIG" != "" ; then
  5266. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5267. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5268. USE_NETCDF=1
  5269. fi
  5270. NETCDF=
  5271. ac_save_libs="$LIBS"
  5272. ac_save_cflags="$CFLAGS"
  5273. LIBS="$LIBS $NETCDF_LIBS"
  5274. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5275. cat > conftest.$ac_ext <<EOF
  5276. #line 6371 "configure"
  5277. #include "confdefs.h"
  5278. #include <netcdf.h>
  5279. int main() {
  5280. nc_create("foo", NC_CLOBBER, NULL);
  5281. ; return 0; }
  5282. EOF
  5283. if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5284. :
  5285. else
  5286. echo "configure: failed program was:" >&5
  5287. cat conftest.$ac_ext >&5
  5288. rm -rf conftest*
  5289. cat > conftest.$ac_ext <<EOF
  5290. #line 6386 "configure"
  5291. #include "confdefs.h"
  5292. #include <netcdf.h>
  5293. int main() {
  5294. nc_create("foo", NC_CLOBBER, NULL);
  5295. ; return 0; }
  5296. EOF
  5297. if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5298. rm -rf conftest*
  5299. NETCDF_LIBS="$NETCDF_LIBS"
  5300. else
  5301. echo "configure: failed program was:" >&5
  5302. cat conftest.$ac_ext >&5
  5303. rm -rf conftest*
  5304. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5305. fi
  5306. rm -f conftest*
  5307. fi
  5308. rm -f conftest*
  5309. LIBS=${ac_save_libs}
  5310. CFLAGS=${ac_save_cflags}
  5311. cat >> confdefs.h <<\EOF
  5312. #define HAVE_NETCDF 1
  5313. EOF
  5314. fi
  5315. # GEOS option
  5316. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5317. echo "configure:6424: checking whether to use GEOS" >&5
  5318. GEOS_LIBS=
  5319. GEOS_CFLAGS=
  5320. USE_GEOS=
  5321. # FIXME: "quote" $with_geos ?
  5322. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5323. GEOS_CONFIG="$with_geos"
  5324. fi
  5325. if test "$with_geos" = "no" ; then
  5326. echo "$ac_t""no" 1>&6
  5327. else
  5328. echo "$ac_t""yes" 1>&6
  5329. # Extract the first word of "geos-config", so it can be a program name with args.
  5330. set dummy geos-config; ac_word=$2
  5331. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5332. echo "configure:6442: checking for $ac_word" >&5
  5333. case "$GEOS_CONFIG" in
  5334. /*)
  5335. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5336. ;;
  5337. ?:/*)
  5338. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5339. ;;
  5340. *)
  5341. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5342. ac_dummy="$PATH"
  5343. for ac_dir in $ac_dummy; do
  5344. test -z "$ac_dir" && ac_dir=.
  5345. if test -f $ac_dir/$ac_word; then
  5346. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5347. break
  5348. fi
  5349. done
  5350. IFS="$ac_save_ifs"
  5351. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5352. ;;
  5353. esac
  5354. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5355. if test -n "$GEOS_CONFIG"; then
  5356. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5357. else
  5358. echo "$ac_t""no" 1>&6
  5359. fi
  5360. if test "$GEOS_CONFIG" = "no" ; then
  5361. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5362. fi
  5363. if test "$GEOS_CONFIG" != "" ; then
  5364. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5365. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5366. USE_GEOS=1
  5367. fi
  5368. ac_save_cppflags="$CPPFLAGS"
  5369. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5370. for ac_hdr in geos_c.h
  5371. do
  5372. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5373. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5374. echo "configure:6490: checking for $ac_hdr" >&5
  5375. cat > conftest.$ac_ext <<EOF
  5376. #line 6493 "configure"
  5377. #include "confdefs.h"
  5378. #include <$ac_hdr>
  5379. EOF
  5380. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5381. { (eval echo configure:6498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5382. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5383. if test -z "$ac_err"; then
  5384. rm -rf conftest*
  5385. eval "ac_cv_header_$ac_safe=yes"
  5386. else
  5387. echo "$ac_err" >&5
  5388. echo "configure: failed program was:" >&5
  5389. cat conftest.$ac_ext >&5
  5390. rm -rf conftest*
  5391. eval "ac_cv_header_$ac_safe=no"
  5392. fi
  5393. rm -f conftest*
  5394. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5395. echo "$ac_t""yes" 1>&6
  5396. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5397. cat >> confdefs.h <<EOF
  5398. #define $ac_tr_hdr 1
  5399. EOF
  5400. else
  5401. echo "$ac_t""no" 1>&6
  5402. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5403. fi
  5404. done
  5405. CPPFLAGS=$ac_save_cppflags
  5406. ### geos 3.3.6 installs geos_c.lib, see http://osgeo-org.1560.n6.nabble.com/osgeo4w-329-update-geos-to-3-3-6-td5024605.html
  5407. # if test "$MINGW32" = yes ; then
  5408. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5409. # else
  5410. ac_save_ldflags="$LDFLAGS"
  5411. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5412. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5413. echo "configure:6537: checking for initGEOS in -lgeos_c" >&5
  5414. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5415. ac_save_LIBS="$LIBS"
  5416. LIBS="-lgeos_c $LIBS"
  5417. cat > conftest.$ac_ext <<EOF
  5418. #line 6543 "configure"
  5419. #include "confdefs.h"
  5420. /* Override any gcc2 internal prototype to avoid an error. */
  5421. /* We use char because int might match the return type of a gcc2
  5422. builtin and then its argument prototype would still apply. */
  5423. char initGEOS();
  5424. int main() {
  5425. initGEOS()
  5426. ; return 0; }
  5427. EOF
  5428. if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5429. rm -rf conftest*
  5430. eval "ac_cv_lib_$ac_lib_var=yes"
  5431. else
  5432. echo "configure: failed program was:" >&5
  5433. cat conftest.$ac_ext >&5
  5434. rm -rf conftest*
  5435. eval "ac_cv_lib_$ac_lib_var=no"
  5436. fi
  5437. rm -f conftest*
  5438. LIBS="$ac_save_LIBS"
  5439. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5440. echo "$ac_t""yes" 1>&6
  5441. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5442. else
  5443. echo "$ac_t""no" 1>&6
  5444. LDFLAGS=${ac_save_ldflags}
  5445. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5446. fi
  5447. LDFLAGS=${ac_save_ldflags}
  5448. # fi
  5449. cat >> confdefs.h <<\EOF
  5450. #define HAVE_GEOS 1
  5451. EOF
  5452. fi
  5453. # Enable TIFF option
  5454. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5455. echo "configure:6598: checking whether to use TIFF" >&5
  5456. echo "$ac_t"""$with_tiff"" 1>&6
  5457. case "$with_tiff" in
  5458. "no") USE_TIFF= ;;
  5459. "yes") USE_TIFF="1" ;;
  5460. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5461. esac
  5462. TIFF_INCLUDE_DIRS=
  5463. TIFF_LIBRARY_DIRS=
  5464. TIFFLIB=
  5465. if test -n "$USE_TIFF"; then
  5466. # With TIFF includes directory
  5467. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5468. echo "configure:6618: checking for location of TIFF includes" >&5
  5469. case "$with_tiff_includes" in
  5470. y | ye | yes | n | no)
  5471. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5472. ;;
  5473. esac
  5474. echo "$ac_t""$with_tiff_includes" 1>&6
  5475. if test -n "$with_tiff_includes" ; then
  5476. for dir in $with_tiff_includes; do
  5477. if test -d "$dir"; then
  5478. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5479. else
  5480. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5481. fi
  5482. done
  5483. fi
  5484. ac_save_cppflags="$CPPFLAGS"
  5485. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5486. for ac_hdr in tiffio.h
  5487. do
  5488. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5489. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5490. echo "configure:6644: checking for $ac_hdr" >&5
  5491. cat > conftest.$ac_ext <<EOF
  5492. #line 6647 "configure"
  5493. #include "confdefs.h"
  5494. #include <$ac_hdr>
  5495. EOF
  5496. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5497. { (eval echo configure:6652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5498. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5499. if test -z "$ac_err"; then
  5500. rm -rf conftest*
  5501. eval "ac_cv_header_$ac_safe=yes"
  5502. else
  5503. echo "$ac_err" >&5
  5504. echo "configure: failed program was:" >&5
  5505. cat conftest.$ac_ext >&5
  5506. rm -rf conftest*
  5507. eval "ac_cv_header_$ac_safe=no"
  5508. fi
  5509. rm -f conftest*
  5510. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5511. echo "$ac_t""yes" 1>&6
  5512. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5513. cat >> confdefs.h <<EOF
  5514. #define $ac_tr_hdr 1
  5515. EOF
  5516. else
  5517. echo "$ac_t""no" 1>&6
  5518. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5519. fi
  5520. done
  5521. CPPFLAGS=$ac_save_cppflags
  5522. # With TIFF library directory
  5523. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5524. echo "configure:6686: checking for location of TIFF library" >&5
  5525. case "$with_tiff_libs" in
  5526. y | ye | yes | n | no)
  5527. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5528. ;;
  5529. esac
  5530. echo "$ac_t""$with_tiff_libs" 1>&6
  5531. if test -n "$with_tiff_libs"; then
  5532. for dir in $with_tiff_libs; do
  5533. if test -d "$dir"; then
  5534. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5535. else
  5536. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5537. fi
  5538. done
  5539. fi
  5540. ac_save_ldflags="$LDFLAGS"
  5541. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5542. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5543. echo "configure:6717: checking for TIFFOpen in -ltiff" >&5
  5544. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5545. ac_save_LIBS="$LIBS"
  5546. LIBS="-ltiff $LIBS"
  5547. cat > conftest.$ac_ext <<EOF
  5548. #line 6723 "configure"
  5549. #include "confdefs.h"
  5550. /* Override any gcc2 internal prototype to avoid an error. */
  5551. /* We use char because int might match the return type of a gcc2
  5552. builtin and then its argument prototype would still apply. */
  5553. char TIFFOpen();
  5554. int main() {
  5555. TIFFOpen()
  5556. ; return 0; }
  5557. EOF
  5558. if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5559. rm -rf conftest*
  5560. eval "ac_cv_lib_$ac_lib_var=yes"
  5561. else
  5562. echo "configure: failed program was:" >&5
  5563. cat conftest.$ac_ext >&5
  5564. rm -rf conftest*
  5565. eval "ac_cv_lib_$ac_lib_var=no"
  5566. fi
  5567. rm -f conftest*
  5568. LIBS="$ac_save_LIBS"
  5569. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5570. echo "$ac_t""yes" 1>&6
  5571. TIFFLIB="$TIFFLIB -ltiff "
  5572. else
  5573. echo "$ac_t""no" 1>&6
  5574. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5575. echo "configure:6753: checking for TIFFOpen in -ltiff" >&5
  5576. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5577. ac_save_LIBS="$LIBS"
  5578. LIBS="-ltiff $MATHLIB $LIBS"
  5579. cat > conftest.$ac_ext <<EOF
  5580. #line 6759 "configure"
  5581. #include "confdefs.h"
  5582. /* Override any gcc2 internal prototype to avoid an error. */
  5583. /* We use char because int might match the return type of a gcc2
  5584. builtin and then its argument prototype would still apply. */
  5585. char TIFFOpen();
  5586. int main() {
  5587. TIFFOpen()
  5588. ; return 0; }
  5589. EOF
  5590. if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5591. rm -rf conftest*
  5592. eval "ac_cv_lib_$ac_lib_var=yes"
  5593. else
  5594. echo "configure: failed program was:" >&5
  5595. cat conftest.$ac_ext >&5
  5596. rm -rf conftest*
  5597. eval "ac_cv_lib_$ac_lib_var=no"
  5598. fi
  5599. rm -f conftest*
  5600. LIBS="$ac_save_LIBS"
  5601. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5602. echo "$ac_t""yes" 1>&6
  5603. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5604. else
  5605. echo "$ac_t""no" 1>&6
  5606. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5607. echo "configure:6789: checking for TIFFOpen in -ltiff" >&5
  5608. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5609. ac_save_LIBS="$LIBS"
  5610. LIBS="-ltiff $ZLIB $LIBS"
  5611. cat > conftest.$ac_ext <<EOF
  5612. #line 6795 "configure"
  5613. #include "confdefs.h"
  5614. /* Override any gcc2 internal prototype to avoid an error. */
  5615. /* We use char because int might match the return type of a gcc2
  5616. builtin and then its argument prototype would still apply. */
  5617. char TIFFOpen();
  5618. int main() {
  5619. TIFFOpen()
  5620. ; return 0; }
  5621. EOF
  5622. if { (eval echo configure:6806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5623. rm -rf conftest*
  5624. eval "ac_cv_lib_$ac_lib_var=yes"
  5625. else
  5626. echo "configure: failed program was:" >&5
  5627. cat conftest.$ac_ext >&5
  5628. rm -rf conftest*
  5629. eval "ac_cv_lib_$ac_lib_var=no"
  5630. fi
  5631. rm -f conftest*
  5632. LIBS="$ac_save_LIBS"
  5633. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5634. echo "$ac_t""yes" 1>&6
  5635. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5636. else
  5637. echo "$ac_t""no" 1>&6
  5638. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5639. echo "configure:6825: checking for TIFFOpen in -ltiff" >&5
  5640. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5641. ac_save_LIBS="$LIBS"
  5642. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5643. cat > conftest.$ac_ext <<EOF
  5644. #line 6831 "configure"
  5645. #include "confdefs.h"
  5646. /* Override any gcc2 internal prototype to avoid an error. */
  5647. /* We use char because int might match the return type of a gcc2
  5648. builtin and then its argument prototype would still apply. */
  5649. char TIFFOpen();
  5650. int main() {
  5651. TIFFOpen()
  5652. ; return 0; }
  5653. EOF
  5654. if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5655. rm -rf conftest*
  5656. eval "ac_cv_lib_$ac_lib_var=yes"
  5657. else
  5658. echo "configure: failed program was:" >&5
  5659. cat conftest.$ac_ext >&5
  5660. rm -rf conftest*
  5661. eval "ac_cv_lib_$ac_lib_var=no"
  5662. fi
  5663. rm -f conftest*
  5664. LIBS="$ac_save_LIBS"
  5665. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5666. echo "$ac_t""yes" 1>&6
  5667. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5668. else
  5669. echo "$ac_t""no" 1>&6
  5670. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5671. echo "configure:6861: checking for TIFFOpen in -ltiff" >&5
  5672. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5673. ac_save_LIBS="$LIBS"
  5674. LIBS="-ltiff -ljpeg $LIBS"
  5675. cat > conftest.$ac_ext <<EOF
  5676. #line 6867 "configure"
  5677. #include "confdefs.h"
  5678. /* Override any gcc2 internal prototype to avoid an error. */
  5679. /* We use char because int might match the return type of a gcc2
  5680. builtin and then its argument prototype would still apply. */
  5681. char TIFFOpen();
  5682. int main() {
  5683. TIFFOpen()
  5684. ; return 0; }
  5685. EOF
  5686. if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5687. rm -rf conftest*
  5688. eval "ac_cv_lib_$ac_lib_var=yes"
  5689. else
  5690. echo "configure: failed program was:" >&5
  5691. cat conftest.$ac_ext >&5
  5692. rm -rf conftest*
  5693. eval "ac_cv_lib_$ac_lib_var=no"
  5694. fi
  5695. rm -f conftest*
  5696. LIBS="$ac_save_LIBS"
  5697. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5698. echo "$ac_t""yes" 1>&6
  5699. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5700. else
  5701. echo "$ac_t""no" 1>&6
  5702. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5703. echo "configure:6897: checking for TIFFOpen in -ltiff" >&5
  5704. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5705. ac_save_LIBS="$LIBS"
  5706. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5707. cat > conftest.$ac_ext <<EOF
  5708. #line 6903 "configure"
  5709. #include "confdefs.h"
  5710. /* Override any gcc2 internal prototype to avoid an error. */
  5711. /* We use char because int might match the return type of a gcc2
  5712. builtin and then its argument prototype would still apply. */
  5713. char TIFFOpen();
  5714. int main() {
  5715. TIFFOpen()
  5716. ; return 0; }
  5717. EOF
  5718. if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5719. rm -rf conftest*
  5720. eval "ac_cv_lib_$ac_lib_var=yes"
  5721. else
  5722. echo "configure: failed program was:" >&5
  5723. cat conftest.$ac_ext >&5
  5724. rm -rf conftest*
  5725. eval "ac_cv_lib_$ac_lib_var=no"
  5726. fi
  5727. rm -f conftest*
  5728. LIBS="$ac_save_LIBS"
  5729. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5730. echo "$ac_t""yes" 1>&6
  5731. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5732. else
  5733. echo "$ac_t""no" 1>&6
  5734. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5735. echo "configure:6933: checking for TIFFOpen in -ltiff" >&5
  5736. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5737. ac_save_LIBS="$LIBS"
  5738. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5739. cat > conftest.$ac_ext <<EOF
  5740. #line 6939 "configure"
  5741. #include "confdefs.h"
  5742. /* Override any gcc2 internal prototype to avoid an error. */
  5743. /* We use char because int might match the return type of a gcc2
  5744. builtin and then its argument prototype would still apply. */
  5745. char TIFFOpen();
  5746. int main() {
  5747. TIFFOpen()
  5748. ; return 0; }
  5749. EOF
  5750. if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5751. rm -rf conftest*
  5752. eval "ac_cv_lib_$ac_lib_var=yes"
  5753. else
  5754. echo "configure: failed program was:" >&5
  5755. cat conftest.$ac_ext >&5
  5756. rm -rf conftest*
  5757. eval "ac_cv_lib_$ac_lib_var=no"
  5758. fi
  5759. rm -f conftest*
  5760. LIBS="$ac_save_LIBS"
  5761. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5762. echo "$ac_t""yes" 1>&6
  5763. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5764. else
  5765. echo "$ac_t""no" 1>&6
  5766. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5767. echo "configure:6969: checking for TIFFOpen in -ltiff" >&5
  5768. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5769. ac_save_LIBS="$LIBS"
  5770. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5771. cat > conftest.$ac_ext <<EOF
  5772. #line 6975 "configure"
  5773. #include "confdefs.h"
  5774. /* Override any gcc2 internal prototype to avoid an error. */
  5775. /* We use char because int might match the return type of a gcc2
  5776. builtin and then its argument prototype would still apply. */
  5777. char TIFFOpen();
  5778. int main() {
  5779. TIFFOpen()
  5780. ; return 0; }
  5781. EOF
  5782. if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5783. rm -rf conftest*
  5784. eval "ac_cv_lib_$ac_lib_var=yes"
  5785. else
  5786. echo "configure: failed program was:" >&5
  5787. cat conftest.$ac_ext >&5
  5788. rm -rf conftest*
  5789. eval "ac_cv_lib_$ac_lib_var=no"
  5790. fi
  5791. rm -f conftest*
  5792. LIBS="$ac_save_LIBS"
  5793. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5794. echo "$ac_t""yes" 1>&6
  5795. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5796. else
  5797. echo "$ac_t""no" 1>&6
  5798. LDFLAGS=${ac_save_ldflags}
  5799. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5800. fi
  5801. fi
  5802. fi
  5803. fi
  5804. fi
  5805. fi
  5806. fi
  5807. fi
  5808. LDFLAGS=${ac_save_ldflags}
  5809. fi # $USE_TIFF
  5810. # Done checking TIFF
  5811. # Enable PNG option
  5812. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5813. echo "configure:7084: checking whether to use PNG" >&5
  5814. echo "$ac_t"""$with_png"" 1>&6
  5815. case "$with_png" in
  5816. "no") USE_PNG= ;;
  5817. "yes") USE_PNG="1" ;;
  5818. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5819. esac
  5820. PNGINC=
  5821. PNGLIB=
  5822. if test -n "$USE_PNG"; then
  5823. # With PNG includes directory
  5824. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5825. echo "configure:7103: checking for location of PNG includes" >&5
  5826. case "$with_png_includes" in
  5827. y | ye | yes | n | no)
  5828. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5829. ;;
  5830. esac
  5831. echo "$ac_t""$with_png_includes" 1>&6
  5832. if test -n "$with_png_includes" ; then
  5833. for dir in $with_png_includes; do
  5834. if test -d "$dir"; then
  5835. PNGINC="$PNGINC -I$dir"
  5836. else
  5837. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5838. fi
  5839. done
  5840. fi
  5841. ac_save_cppflags="$CPPFLAGS"
  5842. CPPFLAGS="$PNGINC $CPPFLAGS"
  5843. for ac_hdr in png.h
  5844. do
  5845. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5846. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5847. echo "configure:7129: checking for $ac_hdr" >&5
  5848. cat > conftest.$ac_ext <<EOF
  5849. #line 7132 "configure"
  5850. #include "confdefs.h"
  5851. #include <$ac_hdr>
  5852. EOF
  5853. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5854. { (eval echo configure:7137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5855. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5856. if test -z "$ac_err"; then
  5857. rm -rf conftest*
  5858. eval "ac_cv_header_$ac_safe=yes"
  5859. else
  5860. echo "$ac_err" >&5
  5861. echo "configure: failed program was:" >&5
  5862. cat conftest.$ac_ext >&5
  5863. rm -rf conftest*
  5864. eval "ac_cv_header_$ac_safe=no"
  5865. fi
  5866. rm -f conftest*
  5867. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5868. echo "$ac_t""yes" 1>&6
  5869. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5870. cat >> confdefs.h <<EOF
  5871. #define $ac_tr_hdr 1
  5872. EOF
  5873. else
  5874. echo "$ac_t""no" 1>&6
  5875. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5876. fi
  5877. done
  5878. CPPFLAGS=$ac_save_cppflags
  5879. # With PNG library directory
  5880. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5881. echo "configure:7171: checking for location of PNG library" >&5
  5882. case "$with_png_libs" in
  5883. y | ye | yes | n | no)
  5884. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5885. ;;
  5886. esac
  5887. echo "$ac_t""$with_png_libs" 1>&6
  5888. if test -n "$with_png_libs"; then
  5889. for dir in $with_png_libs; do
  5890. if test -d "$dir"; then
  5891. PNGLIB="$PNGLIB -L$dir"
  5892. else
  5893. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5894. fi
  5895. done
  5896. fi
  5897. ac_save_ldflags="$LDFLAGS"
  5898. LDFLAGS="$PNGLIB $LDFLAGS"
  5899. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5900. echo "configure:7196: checking for png_read_image in -lpng" >&5
  5901. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5902. ac_save_LIBS="$LIBS"
  5903. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5904. cat > conftest.$ac_ext <<EOF
  5905. #line 7202 "configure"
  5906. #include "confdefs.h"
  5907. /* Override any gcc2 internal prototype to avoid an error. */
  5908. /* We use char because int might match the return type of a gcc2
  5909. builtin and then its argument prototype would still apply. */
  5910. char png_read_image();
  5911. int main() {
  5912. png_read_image()
  5913. ; return 0; }
  5914. EOF
  5915. if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5916. rm -rf conftest*
  5917. eval "ac_cv_lib_$ac_lib_var=yes"
  5918. else
  5919. echo "configure: failed program was:" >&5
  5920. cat conftest.$ac_ext >&5
  5921. rm -rf conftest*
  5922. eval "ac_cv_lib_$ac_lib_var=no"
  5923. fi
  5924. rm -f conftest*
  5925. LIBS="$ac_save_LIBS"
  5926. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5927. echo "$ac_t""yes" 1>&6
  5928. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5929. else
  5930. echo "$ac_t""no" 1>&6
  5931. LDFLAGS=${ac_save_ldflags}
  5932. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5933. fi
  5934. LDFLAGS=${ac_save_ldflags}
  5935. fi # $USE_PNG
  5936. # Done checking PNG
  5937. # Enable PostgreSQL option
  5938. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5939. echo "configure:7255: checking whether to use PostgreSQL" >&5
  5940. echo "$ac_t"""$with_postgres"" 1>&6
  5941. case "$with_postgres" in
  5942. "no") USE_POSTGRES= ;;
  5943. "yes") USE_POSTGRES="1" ;;
  5944. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5945. esac
  5946. if test -n "$USE_POSTGRES"; then
  5947. cat >> confdefs.h <<\EOF
  5948. #define HAVE_POSTGRES 1
  5949. EOF
  5950. fi # $USE_POSTGRES
  5951. PQINCPATH=
  5952. PQLIBPATH=
  5953. PQLIB=
  5954. if test -n "$USE_POSTGRES"; then
  5955. # With PostgreSQL includes directory
  5956. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5957. echo "configure:7282: checking for location of PostgreSQL includes" >&5
  5958. case "$with_postgres_includes" in
  5959. y | ye | yes | n | no)
  5960. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5961. ;;
  5962. esac
  5963. echo "$ac_t""$with_postgres_includes" 1>&6
  5964. if test -n "$with_postgres_includes" ; then
  5965. for dir in $with_postgres_includes; do
  5966. if test -d "$dir"; then
  5967. PQINCPATH="$PQINCPATH -I$dir"
  5968. else
  5969. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5970. fi
  5971. done
  5972. fi
  5973. ac_save_cppflags="$CPPFLAGS"
  5974. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5975. for ac_hdr in libpq-fe.h
  5976. do
  5977. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5978. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5979. echo "configure:7308: checking for $ac_hdr" >&5
  5980. cat > conftest.$ac_ext <<EOF
  5981. #line 7311 "configure"
  5982. #include "confdefs.h"
  5983. #include <$ac_hdr>
  5984. EOF
  5985. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5986. { (eval echo configure:7316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5987. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5988. if test -z "$ac_err"; then
  5989. rm -rf conftest*
  5990. eval "ac_cv_header_$ac_safe=yes"
  5991. else
  5992. echo "$ac_err" >&5
  5993. echo "configure: failed program was:" >&5
  5994. cat conftest.$ac_ext >&5
  5995. rm -rf conftest*
  5996. eval "ac_cv_header_$ac_safe=no"
  5997. fi
  5998. rm -f conftest*
  5999. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6000. echo "$ac_t""yes" 1>&6
  6001. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6002. cat >> confdefs.h <<EOF
  6003. #define $ac_tr_hdr 1
  6004. EOF
  6005. else
  6006. echo "$ac_t""no" 1>&6
  6007. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6008. fi
  6009. done
  6010. CPPFLAGS=$ac_save_cppflags
  6011. fi # $USE_POSTGRES
  6012. if test -n "$USE_POSTGRES"; then
  6013. # With PostgreSQL library directory
  6014. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6015. echo "configure:7354: checking for location of PostgreSQL library" >&5
  6016. case "$with_postgres_libs" in
  6017. y | ye | yes | n | no)
  6018. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6019. ;;
  6020. esac
  6021. echo "$ac_t""$with_postgres_libs" 1>&6
  6022. if test -n "$with_postgres_libs"; then
  6023. for dir in $with_postgres_libs; do
  6024. if test -d "$dir"; then
  6025. PQLIBPATH="$PQLIBPATH -L$dir"
  6026. else
  6027. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6028. fi
  6029. done
  6030. fi
  6031. ac_save_ldflags="$LDFLAGS"
  6032. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6033. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6034. echo "configure:7383: checking for PQsetdbLogin in -lpq" >&5
  6035. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6036. ac_save_LIBS="$LIBS"
  6037. LIBS="-lpq $LIBS"
  6038. cat > conftest.$ac_ext <<EOF
  6039. #line 7389 "configure"
  6040. #include "confdefs.h"
  6041. /* Override any gcc2 internal prototype to avoid an error. */
  6042. /* We use char because int might match the return type of a gcc2
  6043. builtin and then its argument prototype would still apply. */
  6044. char PQsetdbLogin();
  6045. int main() {
  6046. PQsetdbLogin()
  6047. ; return 0; }
  6048. EOF
  6049. if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6050. rm -rf conftest*
  6051. eval "ac_cv_lib_$ac_lib_var=yes"
  6052. else
  6053. echo "configure: failed program was:" >&5
  6054. cat conftest.$ac_ext >&5
  6055. rm -rf conftest*
  6056. eval "ac_cv_lib_$ac_lib_var=no"
  6057. fi
  6058. rm -f conftest*
  6059. LIBS="$ac_save_LIBS"
  6060. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6061. echo "$ac_t""yes" 1>&6
  6062. PQLIB="$PQLIB -lpq "
  6063. else
  6064. echo "$ac_t""no" 1>&6
  6065. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6066. echo "configure:7419: checking for PQsetdbLogin in -lpq" >&5
  6067. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6068. ac_save_LIBS="$LIBS"
  6069. LIBS="-lpq -lssl -lcrypto $LIBS"
  6070. cat > conftest.$ac_ext <<EOF
  6071. #line 7425 "configure"
  6072. #include "confdefs.h"
  6073. /* Override any gcc2 internal prototype to avoid an error. */
  6074. /* We use char because int might match the return type of a gcc2
  6075. builtin and then its argument prototype would still apply. */
  6076. char PQsetdbLogin();
  6077. int main() {
  6078. PQsetdbLogin()
  6079. ; return 0; }
  6080. EOF
  6081. if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6082. rm -rf conftest*
  6083. eval "ac_cv_lib_$ac_lib_var=yes"
  6084. else
  6085. echo "configure: failed program was:" >&5
  6086. cat conftest.$ac_ext >&5
  6087. rm -rf conftest*
  6088. eval "ac_cv_lib_$ac_lib_var=no"
  6089. fi
  6090. rm -f conftest*
  6091. LIBS="$ac_save_LIBS"
  6092. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6093. echo "$ac_t""yes" 1>&6
  6094. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6095. else
  6096. echo "$ac_t""no" 1>&6
  6097. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6098. echo "configure:7455: checking for PQsetdbLogin in -lpq" >&5
  6099. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6100. ac_save_LIBS="$LIBS"
  6101. LIBS="-lpq -lcrypt $LIBS"
  6102. cat > conftest.$ac_ext <<EOF
  6103. #line 7461 "configure"
  6104. #include "confdefs.h"
  6105. /* Override any gcc2 internal prototype to avoid an error. */
  6106. /* We use char because int might match the return type of a gcc2
  6107. builtin and then its argument prototype would still apply. */
  6108. char PQsetdbLogin();
  6109. int main() {
  6110. PQsetdbLogin()
  6111. ; return 0; }
  6112. EOF
  6113. if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6114. rm -rf conftest*
  6115. eval "ac_cv_lib_$ac_lib_var=yes"
  6116. else
  6117. echo "configure: failed program was:" >&5
  6118. cat conftest.$ac_ext >&5
  6119. rm -rf conftest*
  6120. eval "ac_cv_lib_$ac_lib_var=no"
  6121. fi
  6122. rm -f conftest*
  6123. LIBS="$ac_save_LIBS"
  6124. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6125. echo "$ac_t""yes" 1>&6
  6126. PQLIB="$PQLIB -lpq -lcrypt"
  6127. else
  6128. echo "$ac_t""no" 1>&6
  6129. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6130. echo "configure:7491: checking for PQsetdbLogin in -lpq" >&5
  6131. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6132. ac_save_LIBS="$LIBS"
  6133. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6134. cat > conftest.$ac_ext <<EOF
  6135. #line 7497 "configure"
  6136. #include "confdefs.h"
  6137. /* Override any gcc2 internal prototype to avoid an error. */
  6138. /* We use char because int might match the return type of a gcc2
  6139. builtin and then its argument prototype would still apply. */
  6140. char PQsetdbLogin();
  6141. int main() {
  6142. PQsetdbLogin()
  6143. ; return 0; }
  6144. EOF
  6145. if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6146. rm -rf conftest*
  6147. eval "ac_cv_lib_$ac_lib_var=yes"
  6148. else
  6149. echo "configure: failed program was:" >&5
  6150. cat conftest.$ac_ext >&5
  6151. rm -rf conftest*
  6152. eval "ac_cv_lib_$ac_lib_var=no"
  6153. fi
  6154. rm -f conftest*
  6155. LIBS="$ac_save_LIBS"
  6156. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6157. echo "$ac_t""yes" 1>&6
  6158. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6159. else
  6160. echo "$ac_t""no" 1>&6
  6161. LDFLAGS=${ac_save_ldflags}
  6162. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6163. fi
  6164. fi
  6165. fi
  6166. fi
  6167. LDFLAGS=${ac_save_ldflags}
  6168. ac_save_ldflags="$LDFLAGS"
  6169. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6170. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6171. echo "configure:7565: checking for PQcmdTuples in -lpq" >&5
  6172. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6173. ac_save_LIBS="$LIBS"
  6174. LIBS="-lpq $LIBS"
  6175. cat > conftest.$ac_ext <<EOF
  6176. #line 7571 "configure"
  6177. #include "confdefs.h"
  6178. /* Override any gcc2 internal prototype to avoid an error. */
  6179. /* We use char because int might match the return type of a gcc2
  6180. builtin and then its argument prototype would still apply. */
  6181. char PQcmdTuples();
  6182. int main() {
  6183. PQcmdTuples()
  6184. ; return 0; }
  6185. EOF
  6186. if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6187. rm -rf conftest*
  6188. eval "ac_cv_lib_$ac_lib_var=yes"
  6189. else
  6190. echo "configure: failed program was:" >&5
  6191. cat conftest.$ac_ext >&5
  6192. rm -rf conftest*
  6193. eval "ac_cv_lib_$ac_lib_var=no"
  6194. fi
  6195. rm -f conftest*
  6196. LIBS="$ac_save_LIBS"
  6197. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6198. echo "$ac_t""yes" 1>&6
  6199. cat >> confdefs.h <<\EOF
  6200. #define HAVE_PQCMDTUPLES 1
  6201. EOF
  6202. else
  6203. echo "$ac_t""no" 1>&6
  6204. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6205. echo "configure:7604: checking for PQcmdTuples in -lpq" >&5
  6206. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6207. ac_save_LIBS="$LIBS"
  6208. LIBS="-lpq -lcrypt $LIBS"
  6209. cat > conftest.$ac_ext <<EOF
  6210. #line 7610 "configure"
  6211. #include "confdefs.h"
  6212. /* Override any gcc2 internal prototype to avoid an error. */
  6213. /* We use char because int might match the return type of a gcc2
  6214. builtin and then its argument prototype would still apply. */
  6215. char PQcmdTuples();
  6216. int main() {
  6217. PQcmdTuples()
  6218. ; return 0; }
  6219. EOF
  6220. if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6221. rm -rf conftest*
  6222. eval "ac_cv_lib_$ac_lib_var=yes"
  6223. else
  6224. echo "configure: failed program was:" >&5
  6225. cat conftest.$ac_ext >&5
  6226. rm -rf conftest*
  6227. eval "ac_cv_lib_$ac_lib_var=no"
  6228. fi
  6229. rm -f conftest*
  6230. LIBS="$ac_save_LIBS"
  6231. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6232. echo "$ac_t""yes" 1>&6
  6233. cat >> confdefs.h <<\EOF
  6234. #define HAVE_PQCMDTUPLES 1
  6235. EOF
  6236. else
  6237. echo "$ac_t""no" 1>&6
  6238. fi
  6239. fi
  6240. LDFLAGS="${ac_save_ldflags}"
  6241. fi # $USE_POSTGRES
  6242. # Done checking PostgreSQL
  6243. # Enable MySQL option
  6244. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6245. echo "configure:7664: checking whether to use MySQL" >&5
  6246. echo "$ac_t"""$with_mysql"" 1>&6
  6247. case "$with_mysql" in
  6248. "no") USE_MYSQL= ;;
  6249. "yes") USE_MYSQL="1" ;;
  6250. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6251. esac
  6252. MYSQLINCPATH=
  6253. MYSQLLIBPATH=
  6254. MYSQLLIB=
  6255. if test -n "$USE_MYSQL"; then
  6256. # With MySQL includes directory
  6257. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6258. echo "configure:7684: checking for location of MySQL includes" >&5
  6259. case "$with_mysql_includes" in
  6260. y | ye | yes | n | no)
  6261. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6262. ;;
  6263. esac
  6264. echo "$ac_t""$with_mysql_includes" 1>&6
  6265. if test -n "$with_mysql_includes" ; then
  6266. for dir in $with_mysql_includes; do
  6267. if test -d "$dir"; then
  6268. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6269. else
  6270. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6271. fi
  6272. done
  6273. fi
  6274. ac_save_cppflags="$CPPFLAGS"
  6275. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6276. for ac_hdr in mysql.h
  6277. do
  6278. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6279. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6280. echo "configure:7710: checking for $ac_hdr" >&5
  6281. cat > conftest.$ac_ext <<EOF
  6282. #line 7713 "configure"
  6283. #include "confdefs.h"
  6284. #include <$ac_hdr>
  6285. EOF
  6286. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6287. { (eval echo configure:7718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6288. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6289. if test -z "$ac_err"; then
  6290. rm -rf conftest*
  6291. eval "ac_cv_header_$ac_safe=yes"
  6292. else
  6293. echo "$ac_err" >&5
  6294. echo "configure: failed program was:" >&5
  6295. cat conftest.$ac_ext >&5
  6296. rm -rf conftest*
  6297. eval "ac_cv_header_$ac_safe=no"
  6298. fi
  6299. rm -f conftest*
  6300. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6301. echo "$ac_t""yes" 1>&6
  6302. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6303. cat >> confdefs.h <<EOF
  6304. #define $ac_tr_hdr 1
  6305. EOF
  6306. else
  6307. echo "$ac_t""no" 1>&6
  6308. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6309. fi
  6310. done
  6311. CPPFLAGS=$ac_save_cppflags
  6312. fi # $USE_MYSQL
  6313. if test -n "$USE_MYSQL"; then
  6314. # With MySQL library directory
  6315. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6316. echo "configure:7755: checking for location of MySQL library" >&5
  6317. case "$with_mysql_libs" in
  6318. y | ye | yes | n | no)
  6319. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6320. ;;
  6321. esac
  6322. echo "$ac_t""$with_mysql_libs" 1>&6
  6323. if test -n "$with_mysql_libs"; then
  6324. for dir in $with_mysql_libs; do
  6325. if test -d "$dir"; then
  6326. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6327. else
  6328. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6329. fi
  6330. done
  6331. fi
  6332. ac_save_ldflags="$LDFLAGS"
  6333. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6334. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6335. echo "configure:7786: checking for mysql_query in -lmysqlclient" >&5
  6336. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6337. ac_save_LIBS="$LIBS"
  6338. LIBS="-lmysqlclient $LIBS"
  6339. cat > conftest.$ac_ext <<EOF
  6340. #line 7792 "configure"
  6341. #include "confdefs.h"
  6342. /* Override any gcc2 internal prototype to avoid an error. */
  6343. /* We use char because int might match the return type of a gcc2
  6344. builtin and then its argument prototype would still apply. */
  6345. char mysql_query();
  6346. int main() {
  6347. mysql_query()
  6348. ; return 0; }
  6349. EOF
  6350. if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6351. rm -rf conftest*
  6352. eval "ac_cv_lib_$ac_lib_var=yes"
  6353. else
  6354. echo "configure: failed program was:" >&5
  6355. cat conftest.$ac_ext >&5
  6356. rm -rf conftest*
  6357. eval "ac_cv_lib_$ac_lib_var=no"
  6358. fi
  6359. rm -f conftest*
  6360. LIBS="$ac_save_LIBS"
  6361. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6362. echo "$ac_t""yes" 1>&6
  6363. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6364. else
  6365. echo "$ac_t""no" 1>&6
  6366. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6367. echo "configure:7822: checking for mysql_query in -lmysqlclient" >&5
  6368. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6369. ac_save_LIBS="$LIBS"
  6370. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6371. cat > conftest.$ac_ext <<EOF
  6372. #line 7828 "configure"
  6373. #include "confdefs.h"
  6374. /* Override any gcc2 internal prototype to avoid an error. */
  6375. /* We use char because int might match the return type of a gcc2
  6376. builtin and then its argument prototype would still apply. */
  6377. char mysql_query();
  6378. int main() {
  6379. mysql_query()
  6380. ; return 0; }
  6381. EOF
  6382. if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6383. rm -rf conftest*
  6384. eval "ac_cv_lib_$ac_lib_var=yes"
  6385. else
  6386. echo "configure: failed program was:" >&5
  6387. cat conftest.$ac_ext >&5
  6388. rm -rf conftest*
  6389. eval "ac_cv_lib_$ac_lib_var=no"
  6390. fi
  6391. rm -f conftest*
  6392. LIBS="$ac_save_LIBS"
  6393. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6394. echo "$ac_t""yes" 1>&6
  6395. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6396. else
  6397. echo "$ac_t""no" 1>&6
  6398. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6399. echo "configure:7858: checking for mysql_query in -lmysqlclient" >&5
  6400. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6401. ac_save_LIBS="$LIBS"
  6402. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6403. cat > conftest.$ac_ext <<EOF
  6404. #line 7864 "configure"
  6405. #include "confdefs.h"
  6406. /* Override any gcc2 internal prototype to avoid an error. */
  6407. /* We use char because int might match the return type of a gcc2
  6408. builtin and then its argument prototype would still apply. */
  6409. char mysql_query();
  6410. int main() {
  6411. mysql_query()
  6412. ; return 0; }
  6413. EOF
  6414. if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6415. rm -rf conftest*
  6416. eval "ac_cv_lib_$ac_lib_var=yes"
  6417. else
  6418. echo "configure: failed program was:" >&5
  6419. cat conftest.$ac_ext >&5
  6420. rm -rf conftest*
  6421. eval "ac_cv_lib_$ac_lib_var=no"
  6422. fi
  6423. rm -f conftest*
  6424. LIBS="$ac_save_LIBS"
  6425. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6426. echo "$ac_t""yes" 1>&6
  6427. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6428. else
  6429. echo "$ac_t""no" 1>&6
  6430. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6431. echo "configure:7894: checking for mysql_query in -lmysqlclient" >&5
  6432. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6433. ac_save_LIBS="$LIBS"
  6434. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6435. cat > conftest.$ac_ext <<EOF
  6436. #line 7900 "configure"
  6437. #include "confdefs.h"
  6438. /* Override any gcc2 internal prototype to avoid an error. */
  6439. /* We use char because int might match the return type of a gcc2
  6440. builtin and then its argument prototype would still apply. */
  6441. char mysql_query();
  6442. int main() {
  6443. mysql_query()
  6444. ; return 0; }
  6445. EOF
  6446. if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6447. rm -rf conftest*
  6448. eval "ac_cv_lib_$ac_lib_var=yes"
  6449. else
  6450. echo "configure: failed program was:" >&5
  6451. cat conftest.$ac_ext >&5
  6452. rm -rf conftest*
  6453. eval "ac_cv_lib_$ac_lib_var=no"
  6454. fi
  6455. rm -f conftest*
  6456. LIBS="$ac_save_LIBS"
  6457. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6458. echo "$ac_t""yes" 1>&6
  6459. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6460. else
  6461. echo "$ac_t""no" 1>&6
  6462. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6463. echo "configure:7930: checking for mysql_query in -lmysqlclient" >&5
  6464. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6465. ac_save_LIBS="$LIBS"
  6466. LIBS="-lmysqlclient $ZLIB $LIBS"
  6467. cat > conftest.$ac_ext <<EOF
  6468. #line 7936 "configure"
  6469. #include "confdefs.h"
  6470. /* Override any gcc2 internal prototype to avoid an error. */
  6471. /* We use char because int might match the return type of a gcc2
  6472. builtin and then its argument prototype would still apply. */
  6473. char mysql_query();
  6474. int main() {
  6475. mysql_query()
  6476. ; return 0; }
  6477. EOF
  6478. if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6479. rm -rf conftest*
  6480. eval "ac_cv_lib_$ac_lib_var=yes"
  6481. else
  6482. echo "configure: failed program was:" >&5
  6483. cat conftest.$ac_ext >&5
  6484. rm -rf conftest*
  6485. eval "ac_cv_lib_$ac_lib_var=no"
  6486. fi
  6487. rm -f conftest*
  6488. LIBS="$ac_save_LIBS"
  6489. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6490. echo "$ac_t""yes" 1>&6
  6491. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6492. else
  6493. echo "$ac_t""no" 1>&6
  6494. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6495. echo "configure:7966: checking for mysql_query in -lmysqlclient" >&5
  6496. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6497. ac_save_LIBS="$LIBS"
  6498. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6499. cat > conftest.$ac_ext <<EOF
  6500. #line 7972 "configure"
  6501. #include "confdefs.h"
  6502. /* Override any gcc2 internal prototype to avoid an error. */
  6503. /* We use char because int might match the return type of a gcc2
  6504. builtin and then its argument prototype would still apply. */
  6505. char mysql_query();
  6506. int main() {
  6507. mysql_query()
  6508. ; return 0; }
  6509. EOF
  6510. if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6511. rm -rf conftest*
  6512. eval "ac_cv_lib_$ac_lib_var=yes"
  6513. else
  6514. echo "configure: failed program was:" >&5
  6515. cat conftest.$ac_ext >&5
  6516. rm -rf conftest*
  6517. eval "ac_cv_lib_$ac_lib_var=no"
  6518. fi
  6519. rm -f conftest*
  6520. LIBS="$ac_save_LIBS"
  6521. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6522. echo "$ac_t""yes" 1>&6
  6523. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6524. else
  6525. echo "$ac_t""no" 1>&6
  6526. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6527. echo "configure:8002: checking for mysql_query in -lmysqlclient" >&5
  6528. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6529. ac_save_LIBS="$LIBS"
  6530. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6531. cat > conftest.$ac_ext <<EOF
  6532. #line 8008 "configure"
  6533. #include "confdefs.h"
  6534. /* Override any gcc2 internal prototype to avoid an error. */
  6535. /* We use char because int might match the return type of a gcc2
  6536. builtin and then its argument prototype would still apply. */
  6537. char mysql_query();
  6538. int main() {
  6539. mysql_query()
  6540. ; return 0; }
  6541. EOF
  6542. if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6543. rm -rf conftest*
  6544. eval "ac_cv_lib_$ac_lib_var=yes"
  6545. else
  6546. echo "configure: failed program was:" >&5
  6547. cat conftest.$ac_ext >&5
  6548. rm -rf conftest*
  6549. eval "ac_cv_lib_$ac_lib_var=no"
  6550. fi
  6551. rm -f conftest*
  6552. LIBS="$ac_save_LIBS"
  6553. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6554. echo "$ac_t""yes" 1>&6
  6555. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6556. else
  6557. echo "$ac_t""no" 1>&6
  6558. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6559. echo "configure:8038: checking for mysql_query in -lmysqlclient" >&5
  6560. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6561. ac_save_LIBS="$LIBS"
  6562. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6563. cat > conftest.$ac_ext <<EOF
  6564. #line 8044 "configure"
  6565. #include "confdefs.h"
  6566. /* Override any gcc2 internal prototype to avoid an error. */
  6567. /* We use char because int might match the return type of a gcc2
  6568. builtin and then its argument prototype would still apply. */
  6569. char mysql_query();
  6570. int main() {
  6571. mysql_query()
  6572. ; return 0; }
  6573. EOF
  6574. if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6575. rm -rf conftest*
  6576. eval "ac_cv_lib_$ac_lib_var=yes"
  6577. else
  6578. echo "configure: failed program was:" >&5
  6579. cat conftest.$ac_ext >&5
  6580. rm -rf conftest*
  6581. eval "ac_cv_lib_$ac_lib_var=no"
  6582. fi
  6583. rm -f conftest*
  6584. LIBS="$ac_save_LIBS"
  6585. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6586. echo "$ac_t""yes" 1>&6
  6587. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6588. else
  6589. echo "$ac_t""no" 1>&6
  6590. LDFLAGS=${ac_save_ldflags}
  6591. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6592. fi
  6593. fi
  6594. fi
  6595. fi
  6596. fi
  6597. fi
  6598. fi
  6599. fi
  6600. LDFLAGS=${ac_save_ldflags}
  6601. # Check for libmysqld (for embeded version of the driver)
  6602. # Extract the first word of "mysql_config", so it can be a program name with args.
  6603. set dummy mysql_config; ac_word=$2
  6604. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6605. echo "configure:8145: checking for $ac_word" >&5
  6606. case "$MYSQLD_CONFIG" in
  6607. /*)
  6608. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6609. ;;
  6610. ?:/*)
  6611. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6612. ;;
  6613. *)
  6614. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6615. ac_dummy="$PATH"
  6616. for ac_dir in $ac_dummy; do
  6617. test -z "$ac_dir" && ac_dir=.
  6618. if test -f $ac_dir/$ac_word; then
  6619. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6620. break
  6621. fi
  6622. done
  6623. IFS="$ac_save_ifs"
  6624. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6625. ;;
  6626. esac
  6627. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6628. if test -n "$MYSQLD_CONFIG"; then
  6629. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6630. else
  6631. echo "$ac_t""no" 1>&6
  6632. fi
  6633. if test "$MYSQLD_CONFIG" = "no" ; then
  6634. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6635. fi
  6636. if test "$MYSQLD_CONFIG" != "" ; then
  6637. ac_ext=C
  6638. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6639. ac_cpp='$CXXCPP $CPPFLAGS'
  6640. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6641. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6642. cross_compiling=$ac_cv_prog_cxx_cross
  6643. ac_save_libs="$LIBS"
  6644. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6645. LIBS="$MYSQLDLIB $LIBS"
  6646. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6647. echo "configure:8194: checking for mysql_server_init" >&5
  6648. cat > conftest.$ac_ext <<EOF
  6649. #line 8197 "configure"
  6650. #include "confdefs.h"
  6651. /* System header to define __stub macros and hopefully few prototypes,
  6652. which can conflict with char mysql_server_init(); below. */
  6653. #include <assert.h>
  6654. /* Override any gcc2 internal prototype to avoid an error. */
  6655. #ifdef __cplusplus
  6656. extern "C"
  6657. #endif
  6658. /* We use char because int might match the return type of a gcc2
  6659. builtin and then its argument prototype would still apply. */
  6660. char mysql_server_init();
  6661. int main() {
  6662. /* The GNU C library defines this for functions which it implements
  6663. to always fail with ENOSYS. Some functions are actually named
  6664. something starting with __ and the normal name is an alias. */
  6665. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6666. choke me
  6667. #else
  6668. mysql_server_init();
  6669. #endif
  6670. ; return 0; }
  6671. EOF
  6672. if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6673. rm -rf conftest*
  6674. eval "ac_cv_func_mysql_server_init=yes"
  6675. else
  6676. echo "configure: failed program was:" >&5
  6677. cat conftest.$ac_ext >&5
  6678. rm -rf conftest*
  6679. eval "ac_cv_func_mysql_server_init=no"
  6680. fi
  6681. rm -f conftest*
  6682. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6683. echo "$ac_t""yes" 1>&6
  6684. :
  6685. else
  6686. echo "$ac_t""no" 1>&6
  6687. MYSQLDLIB="";
  6688. echo "configure: warning: libmysqld not found" 1>&2
  6689. fi
  6690. LIBS=$ac_save_libs
  6691. ac_ext=c
  6692. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6693. ac_cpp='$CPP $CPPFLAGS'
  6694. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6695. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6696. cross_compiling=$ac_cv_prog_cc_cross
  6697. ac_ext=c
  6698. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6699. ac_cpp='$CPP $CPPFLAGS'
  6700. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6701. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6702. cross_compiling=$ac_cv_prog_cc_cross
  6703. fi
  6704. fi # $USE_MYSQL
  6705. # Done checking MySQL
  6706. # Enable SQLite option
  6707. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6708. echo "configure:8275: checking whether to use SQLite" >&5
  6709. echo "$ac_t"""$with_sqlite"" 1>&6
  6710. case "$with_sqlite" in
  6711. "no") USE_SQLITE= ;;
  6712. "yes") USE_SQLITE="1" ;;
  6713. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6714. esac
  6715. SQLITEINCPATH=
  6716. SQLITELIBPATH=
  6717. SQLITELIB=
  6718. if test -n "$USE_SQLITE"; then
  6719. # With SQLite includes directory
  6720. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6721. echo "configure:8295: checking for location of SQLite includes" >&5
  6722. case "$with_sqlite_includes" in
  6723. y | ye | yes | n | no)
  6724. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6725. ;;
  6726. esac
  6727. echo "$ac_t""$with_sqlite_includes" 1>&6
  6728. if test -n "$with_sqlite_includes" ; then
  6729. for dir in $with_sqlite_includes; do
  6730. if test -d "$dir"; then
  6731. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6732. else
  6733. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6734. fi
  6735. done
  6736. fi
  6737. ac_save_cppflags="$CPPFLAGS"
  6738. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6739. for ac_hdr in sqlite3.h
  6740. do
  6741. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6742. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6743. echo "configure:8321: checking for $ac_hdr" >&5
  6744. cat > conftest.$ac_ext <<EOF
  6745. #line 8324 "configure"
  6746. #include "confdefs.h"
  6747. #include <$ac_hdr>
  6748. EOF
  6749. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6750. { (eval echo configure:8329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6751. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6752. if test -z "$ac_err"; then
  6753. rm -rf conftest*
  6754. eval "ac_cv_header_$ac_safe=yes"
  6755. else
  6756. echo "$ac_err" >&5
  6757. echo "configure: failed program was:" >&5
  6758. cat conftest.$ac_ext >&5
  6759. rm -rf conftest*
  6760. eval "ac_cv_header_$ac_safe=no"
  6761. fi
  6762. rm -f conftest*
  6763. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6764. echo "$ac_t""yes" 1>&6
  6765. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6766. cat >> confdefs.h <<EOF
  6767. #define $ac_tr_hdr 1
  6768. EOF
  6769. else
  6770. echo "$ac_t""no" 1>&6
  6771. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6772. fi
  6773. done
  6774. CPPFLAGS=$ac_save_cppflags
  6775. cat >> confdefs.h <<\EOF
  6776. #define HAVE_SQLITE 1
  6777. EOF
  6778. fi # $USE_SQLITE
  6779. if test -n "$USE_SQLITE"; then
  6780. # With SQLite library directory
  6781. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6782. echo "configure:8372: checking for location of SQLite library" >&5
  6783. case "$with_sqlite_libs" in
  6784. y | ye | yes | n | no)
  6785. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6786. ;;
  6787. esac
  6788. echo "$ac_t""$with_sqlite_libs" 1>&6
  6789. if test -n "$with_sqlite_libs"; then
  6790. for dir in $with_sqlite_libs; do
  6791. if test -d "$dir"; then
  6792. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6793. else
  6794. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6795. fi
  6796. done
  6797. fi
  6798. ac_save_ldflags="$LDFLAGS"
  6799. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6800. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6801. echo "configure:8401: checking for sqlite3_open in -lsqlite3" >&5
  6802. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6803. ac_save_LIBS="$LIBS"
  6804. LIBS="-lsqlite3 $LIBS"
  6805. cat > conftest.$ac_ext <<EOF
  6806. #line 8407 "configure"
  6807. #include "confdefs.h"
  6808. /* Override any gcc2 internal prototype to avoid an error. */
  6809. /* We use char because int might match the return type of a gcc2
  6810. builtin and then its argument prototype would still apply. */
  6811. char sqlite3_open();
  6812. int main() {
  6813. sqlite3_open()
  6814. ; return 0; }
  6815. EOF
  6816. if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6817. rm -rf conftest*
  6818. eval "ac_cv_lib_$ac_lib_var=yes"
  6819. else
  6820. echo "configure: failed program was:" >&5
  6821. cat conftest.$ac_ext >&5
  6822. rm -rf conftest*
  6823. eval "ac_cv_lib_$ac_lib_var=no"
  6824. fi
  6825. rm -f conftest*
  6826. LIBS="$ac_save_LIBS"
  6827. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6828. echo "$ac_t""yes" 1>&6
  6829. SQLITELIB="$SQLITELIB -lsqlite3 "
  6830. else
  6831. echo "$ac_t""no" 1>&6
  6832. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6833. echo "configure:8437: checking for sqlite3_open in -lsqlite3" >&5
  6834. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6835. ac_save_LIBS="$LIBS"
  6836. LIBS="-lsqlite3 $DLLIB $LIBS"
  6837. cat > conftest.$ac_ext <<EOF
  6838. #line 8443 "configure"
  6839. #include "confdefs.h"
  6840. /* Override any gcc2 internal prototype to avoid an error. */
  6841. /* We use char because int might match the return type of a gcc2
  6842. builtin and then its argument prototype would still apply. */
  6843. char sqlite3_open();
  6844. int main() {
  6845. sqlite3_open()
  6846. ; return 0; }
  6847. EOF
  6848. if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6849. rm -rf conftest*
  6850. eval "ac_cv_lib_$ac_lib_var=yes"
  6851. else
  6852. echo "configure: failed program was:" >&5
  6853. cat conftest.$ac_ext >&5
  6854. rm -rf conftest*
  6855. eval "ac_cv_lib_$ac_lib_var=no"
  6856. fi
  6857. rm -f conftest*
  6858. LIBS="$ac_save_LIBS"
  6859. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6860. echo "$ac_t""yes" 1>&6
  6861. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6862. else
  6863. echo "$ac_t""no" 1>&6
  6864. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6865. echo "configure:8473: checking for sqlite3_open in -lsqlite3" >&5
  6866. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6867. ac_save_LIBS="$LIBS"
  6868. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6869. cat > conftest.$ac_ext <<EOF
  6870. #line 8479 "configure"
  6871. #include "confdefs.h"
  6872. /* Override any gcc2 internal prototype to avoid an error. */
  6873. /* We use char because int might match the return type of a gcc2
  6874. builtin and then its argument prototype would still apply. */
  6875. char sqlite3_open();
  6876. int main() {
  6877. sqlite3_open()
  6878. ; return 0; }
  6879. EOF
  6880. if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6881. rm -rf conftest*
  6882. eval "ac_cv_lib_$ac_lib_var=yes"
  6883. else
  6884. echo "configure: failed program was:" >&5
  6885. cat conftest.$ac_ext >&5
  6886. rm -rf conftest*
  6887. eval "ac_cv_lib_$ac_lib_var=no"
  6888. fi
  6889. rm -f conftest*
  6890. LIBS="$ac_save_LIBS"
  6891. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6892. echo "$ac_t""yes" 1>&6
  6893. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6894. else
  6895. echo "$ac_t""no" 1>&6
  6896. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6897. echo "configure:8509: checking for sqlite3_open in -lsqlite3" >&5
  6898. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6899. ac_save_LIBS="$LIBS"
  6900. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6901. cat > conftest.$ac_ext <<EOF
  6902. #line 8515 "configure"
  6903. #include "confdefs.h"
  6904. /* Override any gcc2 internal prototype to avoid an error. */
  6905. /* We use char because int might match the return type of a gcc2
  6906. builtin and then its argument prototype would still apply. */
  6907. char sqlite3_open();
  6908. int main() {
  6909. sqlite3_open()
  6910. ; return 0; }
  6911. EOF
  6912. if { (eval echo configure:8526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6913. rm -rf conftest*
  6914. eval "ac_cv_lib_$ac_lib_var=yes"
  6915. else
  6916. echo "configure: failed program was:" >&5
  6917. cat conftest.$ac_ext >&5
  6918. rm -rf conftest*
  6919. eval "ac_cv_lib_$ac_lib_var=no"
  6920. fi
  6921. rm -f conftest*
  6922. LIBS="$ac_save_LIBS"
  6923. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6924. echo "$ac_t""yes" 1>&6
  6925. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6926. else
  6927. echo "$ac_t""no" 1>&6
  6928. LDFLAGS=${ac_save_ldflags}
  6929. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6930. fi
  6931. fi
  6932. fi
  6933. fi
  6934. LDFLAGS=${ac_save_ldflags}
  6935. fi # $USE_SQLITE
  6936. # Done checking SQLite
  6937. # Enable FFMPEG option
  6938. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6939. echo "configure:8595: checking whether to use FFMPEG" >&5
  6940. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6941. case "$with_ffmpeg" in
  6942. "no") USE_FFMPEG= ;;
  6943. "yes") USE_FFMPEG="1" ;;
  6944. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6945. esac
  6946. FFMPEGINCPATH=
  6947. FFMPEGLIBPATH=
  6948. FFMPEGLIB=
  6949. if test -n "$USE_FFMPEG"; then
  6950. # With FFMPEG includes directory
  6951. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6952. echo "configure:8615: checking for location of FFMPEG includes" >&5
  6953. case "$with_ffmpeg_includes" in
  6954. y | ye | yes | n | no)
  6955. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6956. ;;
  6957. esac
  6958. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6959. if test -n "$with_ffmpeg_includes" ; then
  6960. for dir in $with_ffmpeg_includes; do
  6961. if test -d "$dir"; then
  6962. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6963. else
  6964. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6965. fi
  6966. done
  6967. fi
  6968. ac_save_cppflags="$CPPFLAGS"
  6969. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6970. for ac_hdr in avcodec.h
  6971. do
  6972. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6973. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6974. echo "configure:8641: checking for $ac_hdr" >&5
  6975. cat > conftest.$ac_ext <<EOF
  6976. #line 8644 "configure"
  6977. #include "confdefs.h"
  6978. #include <$ac_hdr>
  6979. EOF
  6980. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6981. { (eval echo configure:8649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6982. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6983. if test -z "$ac_err"; then
  6984. rm -rf conftest*
  6985. eval "ac_cv_header_$ac_safe=yes"
  6986. else
  6987. echo "$ac_err" >&5
  6988. echo "configure: failed program was:" >&5
  6989. cat conftest.$ac_ext >&5
  6990. rm -rf conftest*
  6991. eval "ac_cv_header_$ac_safe=no"
  6992. fi
  6993. rm -f conftest*
  6994. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6995. echo "$ac_t""yes" 1>&6
  6996. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6997. cat >> confdefs.h <<EOF
  6998. #define $ac_tr_hdr 1
  6999. EOF
  7000. else
  7001. echo "$ac_t""no" 1>&6
  7002. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7003. fi
  7004. done
  7005. CPPFLAGS=$ac_save_cppflags
  7006. ac_save_cppflags="$CPPFLAGS"
  7007. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7008. for ac_hdr in avformat.h
  7009. do
  7010. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7011. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7012. echo "configure:8685: checking for $ac_hdr" >&5
  7013. cat > conftest.$ac_ext <<EOF
  7014. #line 8688 "configure"
  7015. #include "confdefs.h"
  7016. #include <$ac_hdr>
  7017. EOF
  7018. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7019. { (eval echo configure:8693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7020. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7021. if test -z "$ac_err"; then
  7022. rm -rf conftest*
  7023. eval "ac_cv_header_$ac_safe=yes"
  7024. else
  7025. echo "$ac_err" >&5
  7026. echo "configure: failed program was:" >&5
  7027. cat conftest.$ac_ext >&5
  7028. rm -rf conftest*
  7029. eval "ac_cv_header_$ac_safe=no"
  7030. fi
  7031. rm -f conftest*
  7032. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7033. echo "$ac_t""yes" 1>&6
  7034. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7035. cat >> confdefs.h <<EOF
  7036. #define $ac_tr_hdr 1
  7037. EOF
  7038. else
  7039. echo "$ac_t""no" 1>&6
  7040. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7041. fi
  7042. done
  7043. CPPFLAGS=$ac_save_cppflags
  7044. ac_save_cppflags="$CPPFLAGS"
  7045. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7046. for ac_hdr in swscale.h
  7047. do
  7048. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7049. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7050. echo "configure:8729: checking for $ac_hdr" >&5
  7051. cat > conftest.$ac_ext <<EOF
  7052. #line 8732 "configure"
  7053. #include "confdefs.h"
  7054. #include <$ac_hdr>
  7055. EOF
  7056. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7057. { (eval echo configure:8737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7058. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7059. if test -z "$ac_err"; then
  7060. rm -rf conftest*
  7061. eval "ac_cv_header_$ac_safe=yes"
  7062. else
  7063. echo "$ac_err" >&5
  7064. echo "configure: failed program was:" >&5
  7065. cat conftest.$ac_ext >&5
  7066. rm -rf conftest*
  7067. eval "ac_cv_header_$ac_safe=no"
  7068. fi
  7069. rm -f conftest*
  7070. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7071. echo "$ac_t""yes" 1>&6
  7072. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7073. cat >> confdefs.h <<EOF
  7074. #define $ac_tr_hdr 1
  7075. EOF
  7076. else
  7077. echo "$ac_t""no" 1>&6
  7078. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7079. fi
  7080. done
  7081. CPPFLAGS=$ac_save_cppflags
  7082. cat >> confdefs.h <<\EOF
  7083. #define HAVE_FFMPEG 1
  7084. EOF
  7085. fi # $USE_FFMPEG
  7086. if test -n "$USE_FFMPEG"; then
  7087. # With FFMPEG library directory
  7088. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7089. echo "configure:8780: checking for location of FFMPEG library" >&5
  7090. case "$with_ffmpeg_libs" in
  7091. y | ye | yes | n | no)
  7092. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7093. ;;
  7094. esac
  7095. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7096. if test -n "$with_ffmpeg_libs"; then
  7097. for dir in $with_ffmpeg_libs; do
  7098. if test -d "$dir"; then
  7099. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7100. else
  7101. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7102. fi
  7103. done
  7104. fi
  7105. ac_save_ldflags="$LDFLAGS"
  7106. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7107. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7108. echo "configure:8807: checking for av_free in -lavutil" >&5
  7109. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7110. ac_save_LIBS="$LIBS"
  7111. LIBS="-lavutil $LIBS"
  7112. cat > conftest.$ac_ext <<EOF
  7113. #line 8813 "configure"
  7114. #include "confdefs.h"
  7115. /* Override any gcc2 internal prototype to avoid an error. */
  7116. /* We use char because int might match the return type of a gcc2
  7117. builtin and then its argument prototype would still apply. */
  7118. char av_free();
  7119. int main() {
  7120. av_free()
  7121. ; return 0; }
  7122. EOF
  7123. if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7124. rm -rf conftest*
  7125. eval "ac_cv_lib_$ac_lib_var=yes"
  7126. else
  7127. echo "configure: failed program was:" >&5
  7128. cat conftest.$ac_ext >&5
  7129. rm -rf conftest*
  7130. eval "ac_cv_lib_$ac_lib_var=no"
  7131. fi
  7132. rm -f conftest*
  7133. LIBS="$ac_save_LIBS"
  7134. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7135. echo "$ac_t""yes" 1>&6
  7136. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7137. else
  7138. echo "$ac_t""no" 1>&6
  7139. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7140. echo "configure:8843: checking for av_free in -lavutil" >&5
  7141. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7142. ac_save_LIBS="$LIBS"
  7143. LIBS="-lavutil $MATHLIB $LIBS"
  7144. cat > conftest.$ac_ext <<EOF
  7145. #line 8849 "configure"
  7146. #include "confdefs.h"
  7147. /* Override any gcc2 internal prototype to avoid an error. */
  7148. /* We use char because int might match the return type of a gcc2
  7149. builtin and then its argument prototype would still apply. */
  7150. char av_free();
  7151. int main() {
  7152. av_free()
  7153. ; return 0; }
  7154. EOF
  7155. if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7156. rm -rf conftest*
  7157. eval "ac_cv_lib_$ac_lib_var=yes"
  7158. else
  7159. echo "configure: failed program was:" >&5
  7160. cat conftest.$ac_ext >&5
  7161. rm -rf conftest*
  7162. eval "ac_cv_lib_$ac_lib_var=no"
  7163. fi
  7164. rm -f conftest*
  7165. LIBS="$ac_save_LIBS"
  7166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7167. echo "$ac_t""yes" 1>&6
  7168. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7169. else
  7170. echo "$ac_t""no" 1>&6
  7171. LDFLAGS=${ac_save_ldflags}
  7172. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7173. fi
  7174. fi
  7175. LDFLAGS=${ac_save_ldflags}
  7176. ac_save_ldflags="$LDFLAGS"
  7177. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7178. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7179. echo "configure:8905: checking for avcodec_register in -lavcodec" >&5
  7180. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7181. ac_save_LIBS="$LIBS"
  7182. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7183. cat > conftest.$ac_ext <<EOF
  7184. #line 8911 "configure"
  7185. #include "confdefs.h"
  7186. /* Override any gcc2 internal prototype to avoid an error. */
  7187. /* We use char because int might match the return type of a gcc2
  7188. builtin and then its argument prototype would still apply. */
  7189. char avcodec_register();
  7190. int main() {
  7191. avcodec_register()
  7192. ; return 0; }
  7193. EOF
  7194. if { (eval echo configure:8922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7195. rm -rf conftest*
  7196. eval "ac_cv_lib_$ac_lib_var=yes"
  7197. else
  7198. echo "configure: failed program was:" >&5
  7199. cat conftest.$ac_ext >&5
  7200. rm -rf conftest*
  7201. eval "ac_cv_lib_$ac_lib_var=no"
  7202. fi
  7203. rm -f conftest*
  7204. LIBS="$ac_save_LIBS"
  7205. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7206. echo "$ac_t""yes" 1>&6
  7207. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7208. else
  7209. echo "$ac_t""no" 1>&6
  7210. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7211. echo "configure:8941: checking for avcodec_register in -lavcodec" >&5
  7212. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7213. ac_save_LIBS="$LIBS"
  7214. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7215. cat > conftest.$ac_ext <<EOF
  7216. #line 8947 "configure"
  7217. #include "confdefs.h"
  7218. /* Override any gcc2 internal prototype to avoid an error. */
  7219. /* We use char because int might match the return type of a gcc2
  7220. builtin and then its argument prototype would still apply. */
  7221. char avcodec_register();
  7222. int main() {
  7223. avcodec_register()
  7224. ; return 0; }
  7225. EOF
  7226. if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7227. rm -rf conftest*
  7228. eval "ac_cv_lib_$ac_lib_var=yes"
  7229. else
  7230. echo "configure: failed program was:" >&5
  7231. cat conftest.$ac_ext >&5
  7232. rm -rf conftest*
  7233. eval "ac_cv_lib_$ac_lib_var=no"
  7234. fi
  7235. rm -f conftest*
  7236. LIBS="$ac_save_LIBS"
  7237. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7238. echo "$ac_t""yes" 1>&6
  7239. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7240. else
  7241. echo "$ac_t""no" 1>&6
  7242. LDFLAGS=${ac_save_ldflags}
  7243. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7244. fi
  7245. fi
  7246. LDFLAGS=${ac_save_ldflags}
  7247. ac_save_ldflags="$LDFLAGS"
  7248. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7249. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7250. echo "configure:9003: checking for avformat_alloc_context in -lavformat" >&5
  7251. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7252. ac_save_LIBS="$LIBS"
  7253. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7254. cat > conftest.$ac_ext <<EOF
  7255. #line 9009 "configure"
  7256. #include "confdefs.h"
  7257. /* Override any gcc2 internal prototype to avoid an error. */
  7258. /* We use char because int might match the return type of a gcc2
  7259. builtin and then its argument prototype would still apply. */
  7260. char avformat_alloc_context();
  7261. int main() {
  7262. avformat_alloc_context()
  7263. ; return 0; }
  7264. EOF
  7265. if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7266. rm -rf conftest*
  7267. eval "ac_cv_lib_$ac_lib_var=yes"
  7268. else
  7269. echo "configure: failed program was:" >&5
  7270. cat conftest.$ac_ext >&5
  7271. rm -rf conftest*
  7272. eval "ac_cv_lib_$ac_lib_var=no"
  7273. fi
  7274. rm -f conftest*
  7275. LIBS="$ac_save_LIBS"
  7276. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7277. echo "$ac_t""yes" 1>&6
  7278. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7279. else
  7280. echo "$ac_t""no" 1>&6
  7281. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7282. echo "configure:9039: checking for avformat_alloc_context in -lavformat" >&5
  7283. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7284. ac_save_LIBS="$LIBS"
  7285. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7286. cat > conftest.$ac_ext <<EOF
  7287. #line 9045 "configure"
  7288. #include "confdefs.h"
  7289. /* Override any gcc2 internal prototype to avoid an error. */
  7290. /* We use char because int might match the return type of a gcc2
  7291. builtin and then its argument prototype would still apply. */
  7292. char avformat_alloc_context();
  7293. int main() {
  7294. avformat_alloc_context()
  7295. ; return 0; }
  7296. EOF
  7297. if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7298. rm -rf conftest*
  7299. eval "ac_cv_lib_$ac_lib_var=yes"
  7300. else
  7301. echo "configure: failed program was:" >&5
  7302. cat conftest.$ac_ext >&5
  7303. rm -rf conftest*
  7304. eval "ac_cv_lib_$ac_lib_var=no"
  7305. fi
  7306. rm -f conftest*
  7307. LIBS="$ac_save_LIBS"
  7308. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7309. echo "$ac_t""yes" 1>&6
  7310. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7311. else
  7312. echo "$ac_t""no" 1>&6
  7313. LDFLAGS=${ac_save_ldflags}
  7314. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7315. fi
  7316. fi
  7317. LDFLAGS=${ac_save_ldflags}
  7318. fi # $USE_FFMPEG
  7319. # Done checking FFMPEG
  7320. # Enable OpenGL option
  7321. OPENGLINC=
  7322. OPENGLLIB=
  7323. OPENGLULIB=
  7324. USE_OPENGL=
  7325. OPENGL_X11=
  7326. OPENGL_AQUA=
  7327. OPENGL_WINDOWS=
  7328. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7329. echo "configure:9115: checking whether to use OpenGL" >&5
  7330. echo "$ac_t"""$with_opengl"" 1>&6
  7331. case "$with_opengl" in
  7332. n|no)
  7333. OPENGL_TYPE=none
  7334. ;;
  7335. y|yes|x|x11|glx)
  7336. OPENGL_TYPE=X11
  7337. USE_OPENGL=1
  7338. OPENGL_X11=1
  7339. ;;
  7340. aqua|mac|osx|macosx|agl)
  7341. OPENGL_TYPE=Aqua
  7342. USE_OPENGL=1
  7343. OPENGL_AQUA=1
  7344. ;;
  7345. win|windows|mswin|wgl)
  7346. OPENGL_TYPE=Windows
  7347. USE_OPENGL=1
  7348. OPENGL_WINDOWS=1
  7349. ;;
  7350. *)
  7351. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7352. ;;
  7353. esac
  7354. if test -n "$USE_OPENGL" ; then
  7355. if test "$OPENGL_X11" = 1 ; then
  7356. # With OpenGL includes directory
  7357. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7358. echo "configure:9149: checking for location of OpenGL includes" >&5
  7359. case "$with_opengl_includes" in
  7360. y | ye | yes | n | no)
  7361. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7362. ;;
  7363. esac
  7364. echo "$ac_t""$with_opengl_includes" 1>&6
  7365. if test -n "$with_opengl_includes" ; then
  7366. for dir in $with_opengl_includes; do
  7367. if test -d "$dir"; then
  7368. OPENGLINC="$OPENGLINC -I$dir"
  7369. else
  7370. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7371. fi
  7372. done
  7373. fi
  7374. ac_save_cppflags="$CPPFLAGS"
  7375. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7376. for ac_hdr in GL/gl.h GL/glu.h
  7377. do
  7378. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7379. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7380. echo "configure:9175: checking for $ac_hdr" >&5
  7381. cat > conftest.$ac_ext <<EOF
  7382. #line 9178 "configure"
  7383. #include "confdefs.h"
  7384. #include <$ac_hdr>
  7385. EOF
  7386. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7387. { (eval echo configure:9183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7388. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7389. if test -z "$ac_err"; then
  7390. rm -rf conftest*
  7391. eval "ac_cv_header_$ac_safe=yes"
  7392. else
  7393. echo "$ac_err" >&5
  7394. echo "configure: failed program was:" >&5
  7395. cat conftest.$ac_ext >&5
  7396. rm -rf conftest*
  7397. eval "ac_cv_header_$ac_safe=no"
  7398. fi
  7399. rm -f conftest*
  7400. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7401. echo "$ac_t""yes" 1>&6
  7402. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7403. cat >> confdefs.h <<EOF
  7404. #define $ac_tr_hdr 1
  7405. EOF
  7406. else
  7407. echo "$ac_t""no" 1>&6
  7408. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7409. fi
  7410. done
  7411. CPPFLAGS=$ac_save_cppflags
  7412. # With OpenGL library directory
  7413. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7414. echo "configure:9217: checking for location of OpenGL library" >&5
  7415. case "$with_opengl_libs" in
  7416. y | ye | yes | n | no)
  7417. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7418. ;;
  7419. esac
  7420. echo "$ac_t""$with_opengl_libs" 1>&6
  7421. if test -n "$with_opengl_libs"; then
  7422. for dir in $with_opengl_libs; do
  7423. if test -d "$dir"; then
  7424. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7425. else
  7426. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7427. fi
  7428. done
  7429. fi
  7430. ac_save_ldflags="$LDFLAGS"
  7431. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7432. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7433. echo "configure:9246: checking for glBegin in -lGL" >&5
  7434. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7435. ac_save_LIBS="$LIBS"
  7436. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7437. cat > conftest.$ac_ext <<EOF
  7438. #line 9252 "configure"
  7439. #include "confdefs.h"
  7440. /* Override any gcc2 internal prototype to avoid an error. */
  7441. /* We use char because int might match the return type of a gcc2
  7442. builtin and then its argument prototype would still apply. */
  7443. char glBegin();
  7444. int main() {
  7445. glBegin()
  7446. ; return 0; }
  7447. EOF
  7448. if { (eval echo configure:9263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7449. rm -rf conftest*
  7450. eval "ac_cv_lib_$ac_lib_var=yes"
  7451. else
  7452. echo "configure: failed program was:" >&5
  7453. cat conftest.$ac_ext >&5
  7454. rm -rf conftest*
  7455. eval "ac_cv_lib_$ac_lib_var=no"
  7456. fi
  7457. rm -f conftest*
  7458. LIBS="$ac_save_LIBS"
  7459. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7460. echo "$ac_t""yes" 1>&6
  7461. OPENGLLIB="$OPENGLLIB -lGL "
  7462. else
  7463. echo "$ac_t""no" 1>&6
  7464. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7465. echo "configure:9282: checking for glBegin in -lGL" >&5
  7466. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7467. ac_save_LIBS="$LIBS"
  7468. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7469. cat > conftest.$ac_ext <<EOF
  7470. #line 9288 "configure"
  7471. #include "confdefs.h"
  7472. /* Override any gcc2 internal prototype to avoid an error. */
  7473. /* We use char because int might match the return type of a gcc2
  7474. builtin and then its argument prototype would still apply. */
  7475. char glBegin();
  7476. int main() {
  7477. glBegin()
  7478. ; return 0; }
  7479. EOF
  7480. if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7481. rm -rf conftest*
  7482. eval "ac_cv_lib_$ac_lib_var=yes"
  7483. else
  7484. echo "configure: failed program was:" >&5
  7485. cat conftest.$ac_ext >&5
  7486. rm -rf conftest*
  7487. eval "ac_cv_lib_$ac_lib_var=no"
  7488. fi
  7489. rm -f conftest*
  7490. LIBS="$ac_save_LIBS"
  7491. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7492. echo "$ac_t""yes" 1>&6
  7493. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7494. else
  7495. echo "$ac_t""no" 1>&6
  7496. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7497. echo "configure:9318: checking for glBegin in -lGL" >&5
  7498. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7499. ac_save_LIBS="$LIBS"
  7500. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7501. cat > conftest.$ac_ext <<EOF
  7502. #line 9324 "configure"
  7503. #include "confdefs.h"
  7504. /* Override any gcc2 internal prototype to avoid an error. */
  7505. /* We use char because int might match the return type of a gcc2
  7506. builtin and then its argument prototype would still apply. */
  7507. char glBegin();
  7508. int main() {
  7509. glBegin()
  7510. ; return 0; }
  7511. EOF
  7512. if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7513. rm -rf conftest*
  7514. eval "ac_cv_lib_$ac_lib_var=yes"
  7515. else
  7516. echo "configure: failed program was:" >&5
  7517. cat conftest.$ac_ext >&5
  7518. rm -rf conftest*
  7519. eval "ac_cv_lib_$ac_lib_var=no"
  7520. fi
  7521. rm -f conftest*
  7522. LIBS="$ac_save_LIBS"
  7523. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7524. echo "$ac_t""yes" 1>&6
  7525. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7526. else
  7527. echo "$ac_t""no" 1>&6
  7528. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7529. echo "configure:9354: checking for glBegin in -lGL" >&5
  7530. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7531. ac_save_LIBS="$LIBS"
  7532. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7533. cat > conftest.$ac_ext <<EOF
  7534. #line 9360 "configure"
  7535. #include "confdefs.h"
  7536. /* Override any gcc2 internal prototype to avoid an error. */
  7537. /* We use char because int might match the return type of a gcc2
  7538. builtin and then its argument prototype would still apply. */
  7539. char glBegin();
  7540. int main() {
  7541. glBegin()
  7542. ; return 0; }
  7543. EOF
  7544. if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7545. rm -rf conftest*
  7546. eval "ac_cv_lib_$ac_lib_var=yes"
  7547. else
  7548. echo "configure: failed program was:" >&5
  7549. cat conftest.$ac_ext >&5
  7550. rm -rf conftest*
  7551. eval "ac_cv_lib_$ac_lib_var=no"
  7552. fi
  7553. rm -f conftest*
  7554. LIBS="$ac_save_LIBS"
  7555. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7556. echo "$ac_t""yes" 1>&6
  7557. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7558. else
  7559. echo "$ac_t""no" 1>&6
  7560. LDFLAGS=${ac_save_ldflags}
  7561. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7562. fi
  7563. fi
  7564. fi
  7565. fi
  7566. LDFLAGS=${ac_save_ldflags}
  7567. ac_save_ldflags="$LDFLAGS"
  7568. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7569. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7570. echo "configure:9433: checking for gluBeginCurve in -lGLU" >&5
  7571. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7572. ac_save_LIBS="$LIBS"
  7573. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7574. cat > conftest.$ac_ext <<EOF
  7575. #line 9439 "configure"
  7576. #include "confdefs.h"
  7577. /* Override any gcc2 internal prototype to avoid an error. */
  7578. /* We use char because int might match the return type of a gcc2
  7579. builtin and then its argument prototype would still apply. */
  7580. char gluBeginCurve();
  7581. int main() {
  7582. gluBeginCurve()
  7583. ; return 0; }
  7584. EOF
  7585. if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7586. rm -rf conftest*
  7587. eval "ac_cv_lib_$ac_lib_var=yes"
  7588. else
  7589. echo "configure: failed program was:" >&5
  7590. cat conftest.$ac_ext >&5
  7591. rm -rf conftest*
  7592. eval "ac_cv_lib_$ac_lib_var=no"
  7593. fi
  7594. rm -f conftest*
  7595. LIBS="$ac_save_LIBS"
  7596. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7597. echo "$ac_t""yes" 1>&6
  7598. OPENGLULIB="$OPENGLULIB -lGLU "
  7599. else
  7600. echo "$ac_t""no" 1>&6
  7601. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7602. echo "configure:9469: checking for gluBeginCurve in -lGLU" >&5
  7603. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7604. ac_save_LIBS="$LIBS"
  7605. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7606. cat > conftest.$ac_ext <<EOF
  7607. #line 9475 "configure"
  7608. #include "confdefs.h"
  7609. /* Override any gcc2 internal prototype to avoid an error. */
  7610. /* We use char because int might match the return type of a gcc2
  7611. builtin and then its argument prototype would still apply. */
  7612. char gluBeginCurve();
  7613. int main() {
  7614. gluBeginCurve()
  7615. ; return 0; }
  7616. EOF
  7617. if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7618. rm -rf conftest*
  7619. eval "ac_cv_lib_$ac_lib_var=yes"
  7620. else
  7621. echo "configure: failed program was:" >&5
  7622. cat conftest.$ac_ext >&5
  7623. rm -rf conftest*
  7624. eval "ac_cv_lib_$ac_lib_var=no"
  7625. fi
  7626. rm -f conftest*
  7627. LIBS="$ac_save_LIBS"
  7628. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7629. echo "$ac_t""yes" 1>&6
  7630. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7631. else
  7632. echo "$ac_t""no" 1>&6
  7633. LDFLAGS=${ac_save_ldflags}
  7634. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7635. fi
  7636. fi
  7637. LDFLAGS=${ac_save_ldflags}
  7638. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7639. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7640. ac_save_libs="$LIBS"
  7641. ac_save_ldflags="$LDFLAGS"
  7642. LIBS=" $OPENGLLIB $LIBS"
  7643. LDFLAGS=" $LDFLAGS"
  7644. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7645. echo "configure:9533: checking for glXCreatePbuffer" >&5
  7646. cat > conftest.$ac_ext <<EOF
  7647. #line 9536 "configure"
  7648. #include "confdefs.h"
  7649. /* System header to define __stub macros and hopefully few prototypes,
  7650. which can conflict with char glXCreatePbuffer(); below. */
  7651. #include <assert.h>
  7652. /* Override any gcc2 internal prototype to avoid an error. */
  7653. /* We use char because int might match the return type of a gcc2
  7654. builtin and then its argument prototype would still apply. */
  7655. char glXCreatePbuffer();
  7656. int main() {
  7657. /* The GNU C library defines this for functions which it implements
  7658. to always fail with ENOSYS. Some functions are actually named
  7659. something starting with __ and the normal name is an alias. */
  7660. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7661. choke me
  7662. #else
  7663. glXCreatePbuffer();
  7664. #endif
  7665. ; return 0; }
  7666. EOF
  7667. if { (eval echo configure:9559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7668. rm -rf conftest*
  7669. eval "ac_cv_func_glXCreatePbuffer=yes"
  7670. else
  7671. echo "configure: failed program was:" >&5
  7672. cat conftest.$ac_ext >&5
  7673. rm -rf conftest*
  7674. eval "ac_cv_func_glXCreatePbuffer=no"
  7675. fi
  7676. rm -f conftest*
  7677. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7678. echo "$ac_t""yes" 1>&6
  7679. cat >> confdefs.h <<\EOF
  7680. #define HAVE_PBUFFERS 1
  7681. EOF
  7682. else
  7683. echo "$ac_t""no" 1>&6
  7684. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7685. fi
  7686. LIBS=${ac_save_libs}
  7687. LDFLAGS=${ac_save_ldflags}
  7688. ac_save_libs="$LIBS"
  7689. ac_save_ldflags="$LDFLAGS"
  7690. LIBS=" $OPENGLLIB $LIBS"
  7691. LDFLAGS=" $LDFLAGS"
  7692. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7693. echo "configure:9596: checking for glXCreateGLXPixmap" >&5
  7694. cat > conftest.$ac_ext <<EOF
  7695. #line 9599 "configure"
  7696. #include "confdefs.h"
  7697. /* System header to define __stub macros and hopefully few prototypes,
  7698. which can conflict with char glXCreateGLXPixmap(); below. */
  7699. #include <assert.h>
  7700. /* Override any gcc2 internal prototype to avoid an error. */
  7701. /* We use char because int might match the return type of a gcc2
  7702. builtin and then its argument prototype would still apply. */
  7703. char glXCreateGLXPixmap();
  7704. int main() {
  7705. /* The GNU C library defines this for functions which it implements
  7706. to always fail with ENOSYS. Some functions are actually named
  7707. something starting with __ and the normal name is an alias. */
  7708. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7709. choke me
  7710. #else
  7711. glXCreateGLXPixmap();
  7712. #endif
  7713. ; return 0; }
  7714. EOF
  7715. if { (eval echo configure:9622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7716. rm -rf conftest*
  7717. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7718. else
  7719. echo "configure: failed program was:" >&5
  7720. cat conftest.$ac_ext >&5
  7721. rm -rf conftest*
  7722. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7723. fi
  7724. rm -f conftest*
  7725. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7726. echo "$ac_t""yes" 1>&6
  7727. cat >> confdefs.h <<\EOF
  7728. #define HAVE_PIXMAPS 1
  7729. EOF
  7730. else
  7731. echo "$ac_t""no" 1>&6
  7732. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7733. fi
  7734. LIBS=${ac_save_libs}
  7735. LDFLAGS=${ac_save_ldflags}
  7736. cat >> confdefs.h <<\EOF
  7737. #define OPENGL_X11 1
  7738. EOF
  7739. fi # $OPENGL_X11
  7740. if test "$OPENGL_AQUA" = 1 ; then
  7741. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7742. echo "configure:9665: checking for location of OpenGL framework" >&5
  7743. case "$with_opengl_framework" in
  7744. y | ye | yes | n | no)
  7745. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7746. ;;
  7747. esac
  7748. echo "$ac_t""$with_opengl_framework" 1>&6
  7749. if test -n "$with_opengl_framework"; then
  7750. if test -d $with_opengl_framework; then
  7751. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7752. else
  7753. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7754. fi
  7755. fi
  7756. ac_save_cppflags="$CPPFLAGS"
  7757. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7758. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7759. do
  7760. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7761. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7762. echo "configure:9689: checking for $ac_hdr" >&5
  7763. cat > conftest.$ac_ext <<EOF
  7764. #line 9692 "configure"
  7765. #include "confdefs.h"
  7766. #include <$ac_hdr>
  7767. EOF
  7768. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7769. { (eval echo configure:9697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7770. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7771. if test -z "$ac_err"; then
  7772. rm -rf conftest*
  7773. eval "ac_cv_header_$ac_safe=yes"
  7774. else
  7775. echo "$ac_err" >&5
  7776. echo "configure: failed program was:" >&5
  7777. cat conftest.$ac_ext >&5
  7778. rm -rf conftest*
  7779. eval "ac_cv_header_$ac_safe=no"
  7780. fi
  7781. rm -f conftest*
  7782. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7783. echo "$ac_t""yes" 1>&6
  7784. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7785. cat >> confdefs.h <<EOF
  7786. #define $ac_tr_hdr 1
  7787. EOF
  7788. else
  7789. echo "$ac_t""no" 1>&6
  7790. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7791. fi
  7792. done
  7793. CPPFLAGS=$ac_save_cppflags
  7794. ac_save_libs="$LIBS"
  7795. ac_save_ldflags="$LDFLAGS"
  7796. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7797. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7798. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7799. echo "configure:9733: checking for glBegin" >&5
  7800. cat > conftest.$ac_ext <<EOF
  7801. #line 9736 "configure"
  7802. #include "confdefs.h"
  7803. /* System header to define __stub macros and hopefully few prototypes,
  7804. which can conflict with char glBegin(); below. */
  7805. #include <assert.h>
  7806. /* Override any gcc2 internal prototype to avoid an error. */
  7807. /* We use char because int might match the return type of a gcc2
  7808. builtin and then its argument prototype would still apply. */
  7809. char glBegin();
  7810. int main() {
  7811. /* The GNU C library defines this for functions which it implements
  7812. to always fail with ENOSYS. Some functions are actually named
  7813. something starting with __ and the normal name is an alias. */
  7814. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7815. choke me
  7816. #else
  7817. glBegin();
  7818. #endif
  7819. ; return 0; }
  7820. EOF
  7821. if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7822. rm -rf conftest*
  7823. eval "ac_cv_func_glBegin=yes"
  7824. else
  7825. echo "configure: failed program was:" >&5
  7826. cat conftest.$ac_ext >&5
  7827. rm -rf conftest*
  7828. eval "ac_cv_func_glBegin=no"
  7829. fi
  7830. rm -f conftest*
  7831. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7832. echo "$ac_t""yes" 1>&6
  7833. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7834. else
  7835. echo "$ac_t""no" 1>&6
  7836. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7837. fi
  7838. LIBS=${ac_save_libs}
  7839. LDFLAGS=${ac_save_ldflags}
  7840. ac_save_libs="$LIBS"
  7841. ac_save_ldflags="$LDFLAGS"
  7842. LIBS=" $OPENGLLIB $LIBS"
  7843. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7844. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7845. echo "configure:9796: checking for gluBeginCurve" >&5
  7846. cat > conftest.$ac_ext <<EOF
  7847. #line 9799 "configure"
  7848. #include "confdefs.h"
  7849. /* System header to define __stub macros and hopefully few prototypes,
  7850. which can conflict with char gluBeginCurve(); below. */
  7851. #include <assert.h>
  7852. /* Override any gcc2 internal prototype to avoid an error. */
  7853. /* We use char because int might match the return type of a gcc2
  7854. builtin and then its argument prototype would still apply. */
  7855. char gluBeginCurve();
  7856. int main() {
  7857. /* The GNU C library defines this for functions which it implements
  7858. to always fail with ENOSYS. Some functions are actually named
  7859. something starting with __ and the normal name is an alias. */
  7860. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7861. choke me
  7862. #else
  7863. gluBeginCurve();
  7864. #endif
  7865. ; return 0; }
  7866. EOF
  7867. if { (eval echo configure:9822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7868. rm -rf conftest*
  7869. eval "ac_cv_func_gluBeginCurve=yes"
  7870. else
  7871. echo "configure: failed program was:" >&5
  7872. cat conftest.$ac_ext >&5
  7873. rm -rf conftest*
  7874. eval "ac_cv_func_gluBeginCurve=no"
  7875. fi
  7876. rm -f conftest*
  7877. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7878. echo "$ac_t""yes" 1>&6
  7879. OPENGLLIB="$OPENGLLIB "
  7880. else
  7881. echo "$ac_t""no" 1>&6
  7882. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7883. fi
  7884. LIBS=${ac_save_libs}
  7885. LDFLAGS=${ac_save_ldflags}
  7886. OPENGLINC="$OPENGLPATH"
  7887. OPENGLLIBPATH="$OPENGLPATH"
  7888. cat >> confdefs.h <<\EOF
  7889. #define OPENGL_AQUA 1
  7890. EOF
  7891. fi # $OPENGL_AQUA
  7892. if test "$OPENGL_WINDOWS" = 1 ; then
  7893. # With OpenGL includes directory
  7894. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7895. echo "configure:9870: checking for location of OpenGL includes" >&5
  7896. case "$with_opengl_includes" in
  7897. y | ye | yes | n | no)
  7898. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7899. ;;
  7900. esac
  7901. echo "$ac_t""$with_opengl_includes" 1>&6
  7902. if test -n "$with_opengl_includes" ; then
  7903. for dir in $with_opengl_includes; do
  7904. if test -d "$dir"; then
  7905. OPENGLINC="$OPENGLINC -I$dir"
  7906. else
  7907. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7908. fi
  7909. done
  7910. fi
  7911. ac_save_cppflags="$CPPFLAGS"
  7912. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7913. for ac_hdr in GL/gl.h GL/glu.h
  7914. do
  7915. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7916. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7917. echo "configure:9896: checking for $ac_hdr" >&5
  7918. cat > conftest.$ac_ext <<EOF
  7919. #line 9899 "configure"
  7920. #include "confdefs.h"
  7921. #include <$ac_hdr>
  7922. EOF
  7923. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7924. { (eval echo configure:9904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7925. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7926. if test -z "$ac_err"; then
  7927. rm -rf conftest*
  7928. eval "ac_cv_header_$ac_safe=yes"
  7929. else
  7930. echo "$ac_err" >&5
  7931. echo "configure: failed program was:" >&5
  7932. cat conftest.$ac_ext >&5
  7933. rm -rf conftest*
  7934. eval "ac_cv_header_$ac_safe=no"
  7935. fi
  7936. rm -f conftest*
  7937. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7938. echo "$ac_t""yes" 1>&6
  7939. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7940. cat >> confdefs.h <<EOF
  7941. #define $ac_tr_hdr 1
  7942. EOF
  7943. else
  7944. echo "$ac_t""no" 1>&6
  7945. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7946. fi
  7947. done
  7948. CPPFLAGS=$ac_save_cppflags
  7949. # With OpenGL library directory
  7950. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7951. echo "configure:9938: checking for location of OpenGL library" >&5
  7952. case "$with_opengl_libs" in
  7953. y | ye | yes | n | no)
  7954. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7955. ;;
  7956. esac
  7957. echo "$ac_t""$with_opengl_libs" 1>&6
  7958. if test -n "$with_opengl_libs"; then
  7959. for dir in $with_opengl_libs; do
  7960. if test -d "$dir"; then
  7961. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7962. else
  7963. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7964. fi
  7965. done
  7966. fi
  7967. ac_save_cflags="$CFLAGS"
  7968. CFLAGS="$CFLAGS $OPENGLINC"
  7969. ac_save_ldflags="$LDFLAGS"
  7970. ac_save_libs="$LIBS"
  7971. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7972. echo "configure:9963: checking for OpenGL library" >&5
  7973. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7974. LIBS="-lopengl32 "
  7975. cat > conftest.$ac_ext <<EOF
  7976. #line 9967 "configure"
  7977. #include "confdefs.h"
  7978. #include <GL/gl.h>
  7979. int main() {
  7980. glEnd();
  7981. ; return 0; }
  7982. EOF
  7983. if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7984. rm -rf conftest*
  7985. echo "$ac_t""found" 1>&6
  7986. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7987. else
  7988. echo "configure: failed program was:" >&5
  7989. cat conftest.$ac_ext >&5
  7990. rm -rf conftest*
  7991. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7992. fi
  7993. rm -f conftest*
  7994. LIBS=${ac_save_libs}
  7995. LDFLAGS=${ac_save_ldflags}
  7996. ac_save_ldflags="$LDFLAGS"
  7997. ac_save_libs="$LIBS"
  7998. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7999. echo "configure:9998: checking for GLU library" >&5
  8000. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8001. LIBS="-lglu32 $OPENGLLIB "
  8002. cat > conftest.$ac_ext <<EOF
  8003. #line 10002 "configure"
  8004. #include "confdefs.h"
  8005. #include <GL/glu.h>
  8006. int main() {
  8007. gluNewQuadric();
  8008. ; return 0; }
  8009. EOF
  8010. if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8011. rm -rf conftest*
  8012. echo "$ac_t""found" 1>&6
  8013. OPENGLULIB="$OPENGLULIB -lglu32 "
  8014. else
  8015. echo "configure: failed program was:" >&5
  8016. cat conftest.$ac_ext >&5
  8017. rm -rf conftest*
  8018. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8019. fi
  8020. rm -f conftest*
  8021. LIBS=${ac_save_libs}
  8022. LDFLAGS=${ac_save_ldflags}
  8023. CFLAGS="${ac_save_cflags}"
  8024. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8025. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8026. cat >> confdefs.h <<\EOF
  8027. #define OPENGL_WINDOWS 1
  8028. EOF
  8029. fi # $OPENGL_WINDOWS
  8030. fi # $USE_OPENGL
  8031. # Done checking OpenGL
  8032. # Enable ODBC option
  8033. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8034. echo "configure:10058: checking whether to use ODBC" >&5
  8035. echo "$ac_t"""$with_odbc"" 1>&6
  8036. case "$with_odbc" in
  8037. "no") USE_ODBC= ;;
  8038. "yes") USE_ODBC="1" ;;
  8039. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8040. esac
  8041. ODBCINC=
  8042. ODBCLIB=
  8043. if test -n "$USE_ODBC"; then
  8044. # With ODBC includes directory
  8045. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8046. echo "configure:10077: checking for location of ODBC includes" >&5
  8047. case "$with_odbc_includes" in
  8048. y | ye | yes | n | no)
  8049. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8050. ;;
  8051. esac
  8052. echo "$ac_t""$with_odbc_includes" 1>&6
  8053. if test -n "$with_odbc_includes" ; then
  8054. for dir in $with_odbc_includes; do
  8055. if test -d "$dir"; then
  8056. ODBCINC="$ODBCINC -I$dir"
  8057. else
  8058. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8059. fi
  8060. done
  8061. fi
  8062. ac_save_cppflags="$CPPFLAGS"
  8063. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8064. for ac_hdr in sql.h
  8065. do
  8066. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8067. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8068. echo "configure:10103: checking for $ac_hdr" >&5
  8069. cat > conftest.$ac_ext <<EOF
  8070. #line 10106 "configure"
  8071. #include "confdefs.h"
  8072. #include <$ac_hdr>
  8073. EOF
  8074. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8075. { (eval echo configure:10111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8076. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8077. if test -z "$ac_err"; then
  8078. rm -rf conftest*
  8079. eval "ac_cv_header_$ac_safe=yes"
  8080. else
  8081. echo "$ac_err" >&5
  8082. echo "configure: failed program was:" >&5
  8083. cat conftest.$ac_ext >&5
  8084. rm -rf conftest*
  8085. eval "ac_cv_header_$ac_safe=no"
  8086. fi
  8087. rm -f conftest*
  8088. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8089. echo "$ac_t""yes" 1>&6
  8090. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8091. cat >> confdefs.h <<EOF
  8092. #define $ac_tr_hdr 1
  8093. EOF
  8094. else
  8095. echo "$ac_t""no" 1>&6
  8096. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8097. fi
  8098. done
  8099. CPPFLAGS=$ac_save_cppflags
  8100. # With ODBC library directory
  8101. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8102. echo "configure:10145: checking for location of ODBC library" >&5
  8103. case "$with_odbc_libs" in
  8104. y | ye | yes | n | no)
  8105. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8106. ;;
  8107. esac
  8108. echo "$ac_t""$with_odbc_libs" 1>&6
  8109. if test -n "$with_odbc_libs"; then
  8110. for dir in $with_odbc_libs; do
  8111. if test -d "$dir"; then
  8112. ODBCLIB="$ODBCLIB -L$dir"
  8113. else
  8114. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8115. fi
  8116. done
  8117. fi
  8118. ac_save_ldflags="$LDFLAGS"
  8119. LDFLAGS="$ODBCLIB $LDFLAGS"
  8120. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8121. echo "configure:10170: checking for SQLConnect in -lodbc" >&5
  8122. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8123. ac_save_LIBS="$LIBS"
  8124. LIBS="-lodbc $ICONVLIB $LIBS"
  8125. cat > conftest.$ac_ext <<EOF
  8126. #line 10176 "configure"
  8127. #include "confdefs.h"
  8128. /* Override any gcc2 internal prototype to avoid an error. */
  8129. /* We use char because int might match the return type of a gcc2
  8130. builtin and then its argument prototype would still apply. */
  8131. char SQLConnect();
  8132. int main() {
  8133. SQLConnect()
  8134. ; return 0; }
  8135. EOF
  8136. if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8137. rm -rf conftest*
  8138. eval "ac_cv_lib_$ac_lib_var=yes"
  8139. else
  8140. echo "configure: failed program was:" >&5
  8141. cat conftest.$ac_ext >&5
  8142. rm -rf conftest*
  8143. eval "ac_cv_lib_$ac_lib_var=no"
  8144. fi
  8145. rm -f conftest*
  8146. LIBS="$ac_save_LIBS"
  8147. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8148. echo "$ac_t""yes" 1>&6
  8149. ODBCLIB="$ODBCLIB -lodbc "
  8150. else
  8151. echo "$ac_t""no" 1>&6
  8152. LDFLAGS=${ac_save_ldflags}
  8153. ac_save_ldflags="$LDFLAGS"
  8154. LDFLAGS="$ODBCLIB $LDFLAGS"
  8155. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8156. echo "configure:10212: checking for SQLConnect in -liodbc" >&5
  8157. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8158. ac_save_LIBS="$LIBS"
  8159. LIBS="-liodbc $LIBS"
  8160. cat > conftest.$ac_ext <<EOF
  8161. #line 10218 "configure"
  8162. #include "confdefs.h"
  8163. /* Override any gcc2 internal prototype to avoid an error. */
  8164. /* We use char because int might match the return type of a gcc2
  8165. builtin and then its argument prototype would still apply. */
  8166. char SQLConnect();
  8167. int main() {
  8168. SQLConnect()
  8169. ; return 0; }
  8170. EOF
  8171. if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8172. rm -rf conftest*
  8173. eval "ac_cv_lib_$ac_lib_var=yes"
  8174. else
  8175. echo "configure: failed program was:" >&5
  8176. cat conftest.$ac_ext >&5
  8177. rm -rf conftest*
  8178. eval "ac_cv_lib_$ac_lib_var=no"
  8179. fi
  8180. rm -f conftest*
  8181. LIBS="$ac_save_LIBS"
  8182. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8183. echo "$ac_t""yes" 1>&6
  8184. ODBCLIB="$ODBCLIB -liodbc "
  8185. else
  8186. echo "$ac_t""no" 1>&6
  8187. LDFLAGS=${ac_save_ldflags}
  8188. ac_save_cflags="$CFLAGS"
  8189. CFLAGS="$CFLAGS $ODBCINC"
  8190. ac_save_ldflags="$LDFLAGS"
  8191. ac_save_libs="$LIBS"
  8192. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8193. echo "configure:10254: checking for ODBC library" >&5
  8194. LDFLAGS="$ODBCLIB $LDFLAGS"
  8195. LIBS="-lodbc32 "
  8196. cat > conftest.$ac_ext <<EOF
  8197. #line 10258 "configure"
  8198. #include "confdefs.h"
  8199. #include <windows.h>
  8200. #include <sql.h>
  8201. int main() {
  8202. SQLAllocEnv((SQLHENV *)0);
  8203. ; return 0; }
  8204. EOF
  8205. if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8206. rm -rf conftest*
  8207. echo "$ac_t""found" 1>&6
  8208. ODBCLIB="$ODBCLIB -lodbc32 "
  8209. else
  8210. echo "configure: failed program was:" >&5
  8211. cat conftest.$ac_ext >&5
  8212. rm -rf conftest*
  8213. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8214. fi
  8215. rm -f conftest*
  8216. LIBS=${ac_save_libs}
  8217. LDFLAGS=${ac_save_ldflags}
  8218. CFLAGS="${ac_save_cflags}"
  8219. fi
  8220. LDFLAGS=${ac_save_ldflags}
  8221. fi
  8222. LDFLAGS=${ac_save_ldflags}
  8223. fi # $USE_ODBC
  8224. # Done checking ODBC
  8225. # Enable FFTW option
  8226. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8227. echo "configure:10315: checking whether to use FFTW" >&5
  8228. echo "$ac_t"""$with_fftw"" 1>&6
  8229. case "$with_fftw" in
  8230. "no") USE_FFTW= ;;
  8231. "yes") USE_FFTW="1" ;;
  8232. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8233. esac
  8234. FFTWINC=
  8235. FFTWLIB=
  8236. if test -n "$USE_FFTW"; then
  8237. # With FFTW includes directory
  8238. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8239. echo "configure:10334: checking for location of FFTW includes" >&5
  8240. case "$with_fftw_includes" in
  8241. y | ye | yes | n | no)
  8242. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8243. ;;
  8244. esac
  8245. echo "$ac_t""$with_fftw_includes" 1>&6
  8246. if test -n "$with_fftw_includes" ; then
  8247. for dir in $with_fftw_includes; do
  8248. if test -d "$dir"; then
  8249. FFTWINC="$FFTWINC -I$dir"
  8250. else
  8251. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8252. fi
  8253. done
  8254. fi
  8255. ac_save_cppflags="$CPPFLAGS"
  8256. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8257. for ac_hdr in fftw3.h
  8258. do
  8259. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8260. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8261. echo "configure:10360: checking for $ac_hdr" >&5
  8262. cat > conftest.$ac_ext <<EOF
  8263. #line 10363 "configure"
  8264. #include "confdefs.h"
  8265. #include <$ac_hdr>
  8266. EOF
  8267. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8268. { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8269. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8270. if test -z "$ac_err"; then
  8271. rm -rf conftest*
  8272. eval "ac_cv_header_$ac_safe=yes"
  8273. else
  8274. echo "$ac_err" >&5
  8275. echo "configure: failed program was:" >&5
  8276. cat conftest.$ac_ext >&5
  8277. rm -rf conftest*
  8278. eval "ac_cv_header_$ac_safe=no"
  8279. fi
  8280. rm -f conftest*
  8281. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8282. echo "$ac_t""yes" 1>&6
  8283. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8284. cat >> confdefs.h <<EOF
  8285. #define $ac_tr_hdr 1
  8286. EOF
  8287. else
  8288. echo "$ac_t""no" 1>&6
  8289. ac_save_cppflags="$CPPFLAGS"
  8290. CPPFLAGS=" $CPPFLAGS"
  8291. for ac_hdr in fftw.h
  8292. do
  8293. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8294. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8295. echo "configure:10396: checking for $ac_hdr" >&5
  8296. cat > conftest.$ac_ext <<EOF
  8297. #line 10399 "configure"
  8298. #include "confdefs.h"
  8299. #include <$ac_hdr>
  8300. EOF
  8301. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8302. { (eval echo configure:10404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8303. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8304. if test -z "$ac_err"; then
  8305. rm -rf conftest*
  8306. eval "ac_cv_header_$ac_safe=yes"
  8307. else
  8308. echo "$ac_err" >&5
  8309. echo "configure: failed program was:" >&5
  8310. cat conftest.$ac_ext >&5
  8311. rm -rf conftest*
  8312. eval "ac_cv_header_$ac_safe=no"
  8313. fi
  8314. rm -f conftest*
  8315. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8316. echo "$ac_t""yes" 1>&6
  8317. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8318. cat >> confdefs.h <<EOF
  8319. #define $ac_tr_hdr 1
  8320. EOF
  8321. else
  8322. echo "$ac_t""no" 1>&6
  8323. ac_save_cppflags="$CPPFLAGS"
  8324. CPPFLAGS=" $CPPFLAGS"
  8325. for ac_hdr in dfftw.h
  8326. do
  8327. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8328. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8329. echo "configure:10432: checking for $ac_hdr" >&5
  8330. cat > conftest.$ac_ext <<EOF
  8331. #line 10435 "configure"
  8332. #include "confdefs.h"
  8333. #include <$ac_hdr>
  8334. EOF
  8335. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8336. { (eval echo configure:10440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8337. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8338. if test -z "$ac_err"; then
  8339. rm -rf conftest*
  8340. eval "ac_cv_header_$ac_safe=yes"
  8341. else
  8342. echo "$ac_err" >&5
  8343. echo "configure: failed program was:" >&5
  8344. cat conftest.$ac_ext >&5
  8345. rm -rf conftest*
  8346. eval "ac_cv_header_$ac_safe=no"
  8347. fi
  8348. rm -f conftest*
  8349. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8350. echo "$ac_t""yes" 1>&6
  8351. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8352. cat >> confdefs.h <<EOF
  8353. #define $ac_tr_hdr 1
  8354. EOF
  8355. else
  8356. echo "$ac_t""no" 1>&6
  8357. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8358. fi
  8359. done
  8360. CPPFLAGS=$ac_save_cppflags
  8361. fi
  8362. done
  8363. CPPFLAGS=$ac_save_cppflags
  8364. fi
  8365. done
  8366. CPPFLAGS=$ac_save_cppflags
  8367. # With FFTW library directory
  8368. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8369. echo "configure:10486: checking for location of FFTW library" >&5
  8370. case "$with_fftw_libs" in
  8371. y | ye | yes | n | no)
  8372. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8373. ;;
  8374. esac
  8375. echo "$ac_t""$with_fftw_libs" 1>&6
  8376. if test -n "$with_fftw_libs"; then
  8377. for dir in $with_fftw_libs; do
  8378. if test -d "$dir"; then
  8379. FFTWLIB="$FFTWLIB -L$dir"
  8380. else
  8381. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8382. fi
  8383. done
  8384. fi
  8385. ac_save_ldflags="$LDFLAGS"
  8386. LDFLAGS="$FFTWLIB $LDFLAGS"
  8387. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8388. echo "configure:10511: checking for fftw_execute in -lfftw3" >&5
  8389. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8390. ac_save_LIBS="$LIBS"
  8391. LIBS="-lfftw3 $MATHLIB $LIBS"
  8392. cat > conftest.$ac_ext <<EOF
  8393. #line 10517 "configure"
  8394. #include "confdefs.h"
  8395. /* Override any gcc2 internal prototype to avoid an error. */
  8396. /* We use char because int might match the return type of a gcc2
  8397. builtin and then its argument prototype would still apply. */
  8398. char fftw_execute();
  8399. int main() {
  8400. fftw_execute()
  8401. ; return 0; }
  8402. EOF
  8403. if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8404. rm -rf conftest*
  8405. eval "ac_cv_lib_$ac_lib_var=yes"
  8406. else
  8407. echo "configure: failed program was:" >&5
  8408. cat conftest.$ac_ext >&5
  8409. rm -rf conftest*
  8410. eval "ac_cv_lib_$ac_lib_var=no"
  8411. fi
  8412. rm -f conftest*
  8413. LIBS="$ac_save_LIBS"
  8414. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8415. echo "$ac_t""yes" 1>&6
  8416. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8417. else
  8418. echo "$ac_t""no" 1>&6
  8419. LDFLAGS=${ac_save_ldflags}
  8420. ac_save_ldflags="$LDFLAGS"
  8421. LDFLAGS="$FFTWLIB $LDFLAGS"
  8422. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8423. echo "configure:10553: checking for fftwnd_one in -lfftw" >&5
  8424. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8425. ac_save_LIBS="$LIBS"
  8426. LIBS="-lfftw $MATHLIB $LIBS"
  8427. cat > conftest.$ac_ext <<EOF
  8428. #line 10559 "configure"
  8429. #include "confdefs.h"
  8430. /* Override any gcc2 internal prototype to avoid an error. */
  8431. /* We use char because int might match the return type of a gcc2
  8432. builtin and then its argument prototype would still apply. */
  8433. char fftwnd_one();
  8434. int main() {
  8435. fftwnd_one()
  8436. ; return 0; }
  8437. EOF
  8438. if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8439. rm -rf conftest*
  8440. eval "ac_cv_lib_$ac_lib_var=yes"
  8441. else
  8442. echo "configure: failed program was:" >&5
  8443. cat conftest.$ac_ext >&5
  8444. rm -rf conftest*
  8445. eval "ac_cv_lib_$ac_lib_var=no"
  8446. fi
  8447. rm -f conftest*
  8448. LIBS="$ac_save_LIBS"
  8449. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8450. echo "$ac_t""yes" 1>&6
  8451. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8452. else
  8453. echo "$ac_t""no" 1>&6
  8454. LDFLAGS=${ac_save_ldflags}
  8455. ac_save_ldflags="$LDFLAGS"
  8456. LDFLAGS="$FFTWLIB $LDFLAGS"
  8457. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8458. echo "configure:10595: checking for fftwnd_one in -ldfftw" >&5
  8459. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8460. ac_save_LIBS="$LIBS"
  8461. LIBS="-ldfftw $MATHLIB $LIBS"
  8462. cat > conftest.$ac_ext <<EOF
  8463. #line 10601 "configure"
  8464. #include "confdefs.h"
  8465. /* Override any gcc2 internal prototype to avoid an error. */
  8466. /* We use char because int might match the return type of a gcc2
  8467. builtin and then its argument prototype would still apply. */
  8468. char fftwnd_one();
  8469. int main() {
  8470. fftwnd_one()
  8471. ; return 0; }
  8472. EOF
  8473. if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8474. rm -rf conftest*
  8475. eval "ac_cv_lib_$ac_lib_var=yes"
  8476. else
  8477. echo "configure: failed program was:" >&5
  8478. cat conftest.$ac_ext >&5
  8479. rm -rf conftest*
  8480. eval "ac_cv_lib_$ac_lib_var=no"
  8481. fi
  8482. rm -f conftest*
  8483. LIBS="$ac_save_LIBS"
  8484. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8485. echo "$ac_t""yes" 1>&6
  8486. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8487. else
  8488. echo "$ac_t""no" 1>&6
  8489. LDFLAGS=${ac_save_ldflags}
  8490. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8491. fi
  8492. LDFLAGS=${ac_save_ldflags}
  8493. fi
  8494. LDFLAGS=${ac_save_ldflags}
  8495. fi
  8496. LDFLAGS=${ac_save_ldflags}
  8497. fi # $USE_FFTW
  8498. # Done checking FFTW
  8499. # Enable BLAS option
  8500. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8501. echo "configure:10669: checking whether to use BLAS" >&5
  8502. echo "$ac_t"""$with_blas"" 1>&6
  8503. case "$with_blas" in
  8504. "no") USE_BLAS= ;;
  8505. "yes") USE_BLAS="1" ;;
  8506. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8507. esac
  8508. BLASLIB=
  8509. BLASINC=
  8510. if test -n "$USE_BLAS"; then
  8511. # With BLAS includes directory
  8512. # BLAS doesn't have includes (FORTRAN library)
  8513. # With BLAS library directory
  8514. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8515. echo "configure:10690: checking for location of BLAS includes" >&5
  8516. case "$with_blas_includes" in
  8517. y | ye | yes | n | no)
  8518. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8519. ;;
  8520. esac
  8521. echo "$ac_t""$with_blas_includes" 1>&6
  8522. if test -n "$with_blas_includes" ; then
  8523. for dir in $with_blas_includes; do
  8524. if test -d "$dir"; then
  8525. BLASINC="$BLASINC -I$dir"
  8526. else
  8527. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8528. fi
  8529. done
  8530. fi
  8531. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8532. echo "configure:10710: checking for location of BLAS library" >&5
  8533. case "$with_blas_libs" in
  8534. y | ye | yes | n | no)
  8535. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8536. ;;
  8537. esac
  8538. echo "$ac_t""$with_blas_libs" 1>&6
  8539. if test -n "$with_blas_libs"; then
  8540. for dir in $with_blas_libs; do
  8541. if test -d "$dir"; then
  8542. BLASLIB="$BLASLIB -L$dir"
  8543. else
  8544. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8545. fi
  8546. done
  8547. fi
  8548. # See if cblas.h exists (CBLAS,ATLAS,others)
  8549. save_CPPFLAGS="$CPPFLAGS"
  8550. CPPFLAGS="$BLASINC $CPPFLAGS"
  8551. for ac_hdr in cblas.h
  8552. do
  8553. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8554. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8555. echo "configure:10736: checking for $ac_hdr" >&5
  8556. cat > conftest.$ac_ext <<EOF
  8557. #line 10739 "configure"
  8558. #include "confdefs.h"
  8559. #include <$ac_hdr>
  8560. EOF
  8561. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8562. { (eval echo configure:10744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8563. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8564. if test -z "$ac_err"; then
  8565. rm -rf conftest*
  8566. eval "ac_cv_header_$ac_safe=yes"
  8567. else
  8568. echo "$ac_err" >&5
  8569. echo "configure: failed program was:" >&5
  8570. cat conftest.$ac_ext >&5
  8571. rm -rf conftest*
  8572. eval "ac_cv_header_$ac_safe=no"
  8573. fi
  8574. rm -f conftest*
  8575. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8576. echo "$ac_t""yes" 1>&6
  8577. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8578. cat >> confdefs.h <<EOF
  8579. #define $ac_tr_hdr 1
  8580. EOF
  8581. else
  8582. echo "$ac_t""no" 1>&6
  8583. fi
  8584. done
  8585. CPPFLAGS="$save_CPPFLAGS"
  8586. ac_save_ldflags="$LDFLAGS"
  8587. LDFLAGS="$BLASLIB $LDFLAGS"
  8588. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8589. echo "configure:10779: checking for dnrm2_ in -lblas" >&5
  8590. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8591. ac_save_LIBS="$LIBS"
  8592. LIBS="-lblas $MATHLIB $LIBS"
  8593. cat > conftest.$ac_ext <<EOF
  8594. #line 10785 "configure"
  8595. #include "confdefs.h"
  8596. /* Override any gcc2 internal prototype to avoid an error. */
  8597. /* We use char because int might match the return type of a gcc2
  8598. builtin and then its argument prototype would still apply. */
  8599. char dnrm2_();
  8600. int main() {
  8601. dnrm2_()
  8602. ; return 0; }
  8603. EOF
  8604. if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8605. rm -rf conftest*
  8606. eval "ac_cv_lib_$ac_lib_var=yes"
  8607. else
  8608. echo "configure: failed program was:" >&5
  8609. cat conftest.$ac_ext >&5
  8610. rm -rf conftest*
  8611. eval "ac_cv_lib_$ac_lib_var=no"
  8612. fi
  8613. rm -f conftest*
  8614. LIBS="$ac_save_LIBS"
  8615. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8616. echo "$ac_t""yes" 1>&6
  8617. BLASLIB="$BLASLIB -lblas "
  8618. else
  8619. echo "$ac_t""no" 1>&6
  8620. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8621. echo "configure:10815: checking for dnrm2_ in -lblas" >&5
  8622. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8623. ac_save_LIBS="$LIBS"
  8624. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8625. cat > conftest.$ac_ext <<EOF
  8626. #line 10821 "configure"
  8627. #include "confdefs.h"
  8628. /* Override any gcc2 internal prototype to avoid an error. */
  8629. /* We use char because int might match the return type of a gcc2
  8630. builtin and then its argument prototype would still apply. */
  8631. char dnrm2_();
  8632. int main() {
  8633. dnrm2_()
  8634. ; return 0; }
  8635. EOF
  8636. if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8637. rm -rf conftest*
  8638. eval "ac_cv_lib_$ac_lib_var=yes"
  8639. else
  8640. echo "configure: failed program was:" >&5
  8641. cat conftest.$ac_ext >&5
  8642. rm -rf conftest*
  8643. eval "ac_cv_lib_$ac_lib_var=no"
  8644. fi
  8645. rm -f conftest*
  8646. LIBS="$ac_save_LIBS"
  8647. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8648. echo "$ac_t""yes" 1>&6
  8649. BLASLIB="$BLASLIB -lblas -lg2c"
  8650. else
  8651. echo "$ac_t""no" 1>&6
  8652. LDFLAGS=${ac_save_ldflags}
  8653. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8654. fi
  8655. fi
  8656. LDFLAGS=${ac_save_ldflags}
  8657. blas_ok=no
  8658. # Check for ATLAS
  8659. save_LDFLAGS="$LDFLAGS"
  8660. LDFLAGS="$BLASLIB $LDFLAGS"
  8661. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8662. echo "configure:10876: checking for ATL_xerbla in -latlas" >&5
  8663. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8664. ac_save_LIBS="$LIBS"
  8665. LIBS="-latlas $LIBS"
  8666. cat > conftest.$ac_ext <<EOF
  8667. #line 10882 "configure"
  8668. #include "confdefs.h"
  8669. /* Override any gcc2 internal prototype to avoid an error. */
  8670. /* We use char because int might match the return type of a gcc2
  8671. builtin and then its argument prototype would still apply. */
  8672. char ATL_xerbla();
  8673. int main() {
  8674. ATL_xerbla()
  8675. ; return 0; }
  8676. EOF
  8677. if { (eval echo configure:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8678. rm -rf conftest*
  8679. eval "ac_cv_lib_$ac_lib_var=yes"
  8680. else
  8681. echo "configure: failed program was:" >&5
  8682. cat conftest.$ac_ext >&5
  8683. rm -rf conftest*
  8684. eval "ac_cv_lib_$ac_lib_var=no"
  8685. fi
  8686. rm -f conftest*
  8687. LIBS="$ac_save_LIBS"
  8688. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8689. echo "$ac_t""yes" 1>&6
  8690. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8691. echo "configure:10908: checking for sgemm_ in -lf77blas" >&5
  8692. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8693. ac_save_LIBS="$LIBS"
  8694. LIBS="-lf77blas -latlas $LIBS"
  8695. cat > conftest.$ac_ext <<EOF
  8696. #line 10914 "configure"
  8697. #include "confdefs.h"
  8698. /* Override any gcc2 internal prototype to avoid an error. */
  8699. /* We use char because int might match the return type of a gcc2
  8700. builtin and then its argument prototype would still apply. */
  8701. char sgemm_();
  8702. int main() {
  8703. sgemm_()
  8704. ; return 0; }
  8705. EOF
  8706. if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8707. rm -rf conftest*
  8708. eval "ac_cv_lib_$ac_lib_var=yes"
  8709. else
  8710. echo "configure: failed program was:" >&5
  8711. cat conftest.$ac_ext >&5
  8712. rm -rf conftest*
  8713. eval "ac_cv_lib_$ac_lib_var=no"
  8714. fi
  8715. rm -f conftest*
  8716. LIBS="$ac_save_LIBS"
  8717. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8718. echo "$ac_t""yes" 1>&6
  8719. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8720. echo "configure:10940: checking for cblas_dgemm in -lcblas" >&5
  8721. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8722. ac_save_LIBS="$LIBS"
  8723. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8724. cat > conftest.$ac_ext <<EOF
  8725. #line 10946 "configure"
  8726. #include "confdefs.h"
  8727. /* Override any gcc2 internal prototype to avoid an error. */
  8728. /* We use char because int might match the return type of a gcc2
  8729. builtin and then its argument prototype would still apply. */
  8730. char cblas_dgemm();
  8731. int main() {
  8732. cblas_dgemm()
  8733. ; return 0; }
  8734. EOF
  8735. if { (eval echo configure:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8736. rm -rf conftest*
  8737. eval "ac_cv_lib_$ac_lib_var=yes"
  8738. else
  8739. echo "configure: failed program was:" >&5
  8740. cat conftest.$ac_ext >&5
  8741. rm -rf conftest*
  8742. eval "ac_cv_lib_$ac_lib_var=no"
  8743. fi
  8744. rm -f conftest*
  8745. LIBS="$ac_save_LIBS"
  8746. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8747. echo "$ac_t""yes" 1>&6
  8748. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8749. else
  8750. echo "$ac_t""no" 1>&6
  8751. fi
  8752. else
  8753. echo "$ac_t""no" 1>&6
  8754. fi
  8755. else
  8756. echo "$ac_t""no" 1>&6
  8757. fi
  8758. LDFLAGS="$save_LDFLAGS"
  8759. # Do we have ATLAS?
  8760. if test $blas_ok = yes; then
  8761. cat >> confdefs.h <<\EOF
  8762. #define HAVE_LIBATLAS 1
  8763. EOF
  8764. fi
  8765. # BLAS in Apple vecLib framework? (Mac OS-X)
  8766. # not dependent on APP build
  8767. #if test -n "$MACOSX_APP"; then
  8768. if test $blas_ok = no; then
  8769. vlib_flags="-framework vecLib"
  8770. save_LIBS="$LIBS"
  8771. LIBS="$vlib_flags $LIBS"
  8772. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8773. echo "configure:11003: checking for sgemm in $vlib_flags" >&5
  8774. cat > conftest.$ac_ext <<EOF
  8775. #line 11005 "configure"
  8776. #include "confdefs.h"
  8777. int main() {
  8778. sgemm
  8779. ; return 0; }
  8780. EOF
  8781. if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8782. rm -rf conftest*
  8783. blas_ok=yes; BLASLIB="$vlib_flags"
  8784. else
  8785. echo "configure: failed program was:" >&5
  8786. cat conftest.$ac_ext >&5
  8787. rm -rf conftest*
  8788. BLASLIB=""
  8789. fi
  8790. rm -f conftest*
  8791. echo "$ac_t""$blas_ok" 1>&6
  8792. LIBS="$save_LIBS"
  8793. fi
  8794. #fi # $MACOSX_APP
  8795. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8796. if test $blas_ok = no; then
  8797. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8798. echo "configure:11030: checking for sgemm_ in -lblas" >&5
  8799. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8800. ac_save_LIBS="$LIBS"
  8801. LIBS="-lblas $LIBS"
  8802. cat > conftest.$ac_ext <<EOF
  8803. #line 11036 "configure"
  8804. #include "confdefs.h"
  8805. /* Override any gcc2 internal prototype to avoid an error. */
  8806. /* We use char because int might match the return type of a gcc2
  8807. builtin and then its argument prototype would still apply. */
  8808. char sgemm_();
  8809. int main() {
  8810. sgemm_()
  8811. ; return 0; }
  8812. EOF
  8813. if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8814. rm -rf conftest*
  8815. eval "ac_cv_lib_$ac_lib_var=yes"
  8816. else
  8817. echo "configure: failed program was:" >&5
  8818. cat conftest.$ac_ext >&5
  8819. rm -rf conftest*
  8820. eval "ac_cv_lib_$ac_lib_var=no"
  8821. fi
  8822. rm -f conftest*
  8823. LIBS="$ac_save_LIBS"
  8824. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8825. echo "$ac_t""yes" 1>&6
  8826. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8827. echo "configure:11062: checking for dgemm_ in -ldgemm" >&5
  8828. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8829. ac_save_LIBS="$LIBS"
  8830. LIBS="-ldgemm -lblas $LIBS"
  8831. cat > conftest.$ac_ext <<EOF
  8832. #line 11068 "configure"
  8833. #include "confdefs.h"
  8834. /* Override any gcc2 internal prototype to avoid an error. */
  8835. /* We use char because int might match the return type of a gcc2
  8836. builtin and then its argument prototype would still apply. */
  8837. char dgemm_();
  8838. int main() {
  8839. dgemm_()
  8840. ; return 0; }
  8841. EOF
  8842. if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8843. rm -rf conftest*
  8844. eval "ac_cv_lib_$ac_lib_var=yes"
  8845. else
  8846. echo "configure: failed program was:" >&5
  8847. cat conftest.$ac_ext >&5
  8848. rm -rf conftest*
  8849. eval "ac_cv_lib_$ac_lib_var=no"
  8850. fi
  8851. rm -f conftest*
  8852. LIBS="$ac_save_LIBS"
  8853. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8854. echo "$ac_t""yes" 1>&6
  8855. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8856. echo "configure:11094: checking for sgemm_ in -lsgemm" >&5
  8857. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8858. ac_save_LIBS="$LIBS"
  8859. LIBS="-lsgemm -lblas $LIBS"
  8860. cat > conftest.$ac_ext <<EOF
  8861. #line 11100 "configure"
  8862. #include "confdefs.h"
  8863. /* Override any gcc2 internal prototype to avoid an error. */
  8864. /* We use char because int might match the return type of a gcc2
  8865. builtin and then its argument prototype would still apply. */
  8866. char sgemm_();
  8867. int main() {
  8868. sgemm_()
  8869. ; return 0; }
  8870. EOF
  8871. if { (eval echo configure:11111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8872. rm -rf conftest*
  8873. eval "ac_cv_lib_$ac_lib_var=yes"
  8874. else
  8875. echo "configure: failed program was:" >&5
  8876. cat conftest.$ac_ext >&5
  8877. rm -rf conftest*
  8878. eval "ac_cv_lib_$ac_lib_var=no"
  8879. fi
  8880. rm -f conftest*
  8881. LIBS="$ac_save_LIBS"
  8882. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8883. echo "$ac_t""yes" 1>&6
  8884. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8885. else
  8886. echo "$ac_t""no" 1>&6
  8887. fi
  8888. else
  8889. echo "$ac_t""no" 1>&6
  8890. fi
  8891. else
  8892. echo "$ac_t""no" 1>&6
  8893. fi
  8894. fi
  8895. # BLAS in Sun Performance library?
  8896. if test $blas_ok = no; then
  8897. if test "x$GCC" != xyes; then # only works with Sun CC
  8898. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8899. echo "configure:11145: checking for acosp in -lsunmath" >&5
  8900. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8901. ac_save_LIBS="$LIBS"
  8902. LIBS="-lsunmath $LIBS"
  8903. cat > conftest.$ac_ext <<EOF
  8904. #line 11151 "configure"
  8905. #include "confdefs.h"
  8906. /* Override any gcc2 internal prototype to avoid an error. */
  8907. /* We use char because int might match the return type of a gcc2
  8908. builtin and then its argument prototype would still apply. */
  8909. char acosp();
  8910. int main() {
  8911. acosp()
  8912. ; return 0; }
  8913. EOF
  8914. if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8915. rm -rf conftest*
  8916. eval "ac_cv_lib_$ac_lib_var=yes"
  8917. else
  8918. echo "configure: failed program was:" >&5
  8919. cat conftest.$ac_ext >&5
  8920. rm -rf conftest*
  8921. eval "ac_cv_lib_$ac_lib_var=no"
  8922. fi
  8923. rm -f conftest*
  8924. LIBS="$ac_save_LIBS"
  8925. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8926. echo "$ac_t""yes" 1>&6
  8927. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8928. echo "configure:11177: checking for sgemm_ in -lsunperf" >&5
  8929. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8930. ac_save_LIBS="$LIBS"
  8931. LIBS="-lsunperf -lsunmath $LIBS"
  8932. cat > conftest.$ac_ext <<EOF
  8933. #line 11183 "configure"
  8934. #include "confdefs.h"
  8935. /* Override any gcc2 internal prototype to avoid an error. */
  8936. /* We use char because int might match the return type of a gcc2
  8937. builtin and then its argument prototype would still apply. */
  8938. char sgemm_();
  8939. int main() {
  8940. sgemm_()
  8941. ; return 0; }
  8942. EOF
  8943. if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8944. rm -rf conftest*
  8945. eval "ac_cv_lib_$ac_lib_var=yes"
  8946. else
  8947. echo "configure: failed program was:" >&5
  8948. cat conftest.$ac_ext >&5
  8949. rm -rf conftest*
  8950. eval "ac_cv_lib_$ac_lib_var=no"
  8951. fi
  8952. rm -f conftest*
  8953. LIBS="$ac_save_LIBS"
  8954. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8955. echo "$ac_t""yes" 1>&6
  8956. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8957. else
  8958. echo "$ac_t""no" 1>&6
  8959. fi
  8960. else
  8961. echo "$ac_t""no" 1>&6
  8962. fi
  8963. fi
  8964. fi
  8965. # Generic BLAS library
  8966. if test $blas_ok = no; then
  8967. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8968. echo "configure:11224: checking for sgemm_ in -lblas" >&5
  8969. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8970. ac_save_LIBS="$LIBS"
  8971. LIBS="-lblas $LIBS"
  8972. cat > conftest.$ac_ext <<EOF
  8973. #line 11230 "configure"
  8974. #include "confdefs.h"
  8975. /* Override any gcc2 internal prototype to avoid an error. */
  8976. /* We use char because int might match the return type of a gcc2
  8977. builtin and then its argument prototype would still apply. */
  8978. char sgemm_();
  8979. int main() {
  8980. sgemm_()
  8981. ; return 0; }
  8982. EOF
  8983. if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8984. rm -rf conftest*
  8985. eval "ac_cv_lib_$ac_lib_var=yes"
  8986. else
  8987. echo "configure: failed program was:" >&5
  8988. cat conftest.$ac_ext >&5
  8989. rm -rf conftest*
  8990. eval "ac_cv_lib_$ac_lib_var=no"
  8991. fi
  8992. rm -f conftest*
  8993. LIBS="$ac_save_LIBS"
  8994. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8995. echo "$ac_t""yes" 1>&6
  8996. blas_ok=yes; BLASLIB="-lblas"
  8997. else
  8998. echo "$ac_t""no" 1>&6
  8999. fi
  9000. fi
  9001. if test $blas_ok = yes; then
  9002. cat >> confdefs.h <<\EOF
  9003. #define HAVE_LIBBLAS 1
  9004. EOF
  9005. fi
  9006. fi # $USE_BLAS
  9007. # Done checking BLAS
  9008. # Enable LAPACK option
  9009. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9010. echo "configure:11280: checking whether to use LAPACK" >&5
  9011. echo "$ac_t"""$with_lapack"" 1>&6
  9012. case "$with_lapack" in
  9013. "no") USE_LAPACK= ;;
  9014. "yes") USE_LAPACK="1" ;;
  9015. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9016. esac
  9017. LAPACKLIB=
  9018. LAPACKINC=
  9019. # LAPACK is useless without BLAS
  9020. if test -n "$USE_BLAS"; then
  9021. if test -n "$USE_LAPACK"; then
  9022. # With LAPACK includes directory
  9023. # LAPACK doesn't have includes (FORTRAN library)
  9024. # With LAPACK library directory
  9025. lapack_ok=no
  9026. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9027. echo "configure:11305: checking for location of LAPACK includes" >&5
  9028. case "$with_lapack_includes" in
  9029. y | ye | yes | n | no)
  9030. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9031. ;;
  9032. esac
  9033. echo "$ac_t""$with_lapack_includes" 1>&6
  9034. if test -n "$with_lapack_includes" ; then
  9035. for dir in $with_lapack_includes; do
  9036. if test -d "$dir"; then
  9037. LAPACKINC="$LAPACKINC -I$dir"
  9038. else
  9039. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9040. fi
  9041. done
  9042. fi
  9043. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9044. echo "configure:11325: checking for location of LAPACK library" >&5
  9045. case "$with_lapack_libs" in
  9046. y | ye | yes | n | no)
  9047. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9048. ;;
  9049. esac
  9050. echo "$ac_t""$with_lapack_libs" 1>&6
  9051. if test -n "$with_lapack_libs"; then
  9052. for dir in $with_lapack_libs; do
  9053. if test -d "$dir"; then
  9054. LAPACKLIB="$LAPACKLIB -L$dir"
  9055. else
  9056. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9057. fi
  9058. done
  9059. fi
  9060. # See if clapack.h exists (ATLAS)
  9061. save_CPPFLAGS="$CPPFLAGS"
  9062. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9063. for ac_hdr in clapack.h
  9064. do
  9065. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9066. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9067. echo "configure:11351: checking for $ac_hdr" >&5
  9068. cat > conftest.$ac_ext <<EOF
  9069. #line 11354 "configure"
  9070. #include "confdefs.h"
  9071. #include <$ac_hdr>
  9072. EOF
  9073. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9074. { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9075. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9076. if test -z "$ac_err"; then
  9077. rm -rf conftest*
  9078. eval "ac_cv_header_$ac_safe=yes"
  9079. else
  9080. echo "$ac_err" >&5
  9081. echo "configure: failed program was:" >&5
  9082. cat conftest.$ac_ext >&5
  9083. rm -rf conftest*
  9084. eval "ac_cv_header_$ac_safe=no"
  9085. fi
  9086. rm -f conftest*
  9087. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9088. echo "$ac_t""yes" 1>&6
  9089. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9090. cat >> confdefs.h <<EOF
  9091. #define $ac_tr_hdr 1
  9092. EOF
  9093. else
  9094. echo "$ac_t""no" 1>&6
  9095. fi
  9096. done
  9097. CPPFLAGS="$save_CPPFLAGS"
  9098. # LAPACK linked to by default?
  9099. if test lapack_ok=no; then
  9100. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9101. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9102. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9103. echo "configure:11391: checking for dsegv_" >&5
  9104. cat > conftest.$ac_ext <<EOF
  9105. #line 11394 "configure"
  9106. #include "confdefs.h"
  9107. /* System header to define __stub macros and hopefully few prototypes,
  9108. which can conflict with char dsegv_(); below. */
  9109. #include <assert.h>
  9110. /* Override any gcc2 internal prototype to avoid an error. */
  9111. /* We use char because int might match the return type of a gcc2
  9112. builtin and then its argument prototype would still apply. */
  9113. char dsegv_();
  9114. int main() {
  9115. /* The GNU C library defines this for functions which it implements
  9116. to always fail with ENOSYS. Some functions are actually named
  9117. something starting with __ and the normal name is an alias. */
  9118. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9119. choke me
  9120. #else
  9121. dsegv_();
  9122. #endif
  9123. ; return 0; }
  9124. EOF
  9125. if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9126. rm -rf conftest*
  9127. eval "ac_cv_func_dsegv_=yes"
  9128. else
  9129. echo "configure: failed program was:" >&5
  9130. cat conftest.$ac_ext >&5
  9131. rm -rf conftest*
  9132. eval "ac_cv_func_dsegv_=no"
  9133. fi
  9134. rm -f conftest*
  9135. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9136. echo "$ac_t""yes" 1>&6
  9137. lapack_ok=yes
  9138. else
  9139. echo "$ac_t""no" 1>&6
  9140. fi
  9141. LIBS="$save_LIBS"
  9142. LDFLAGS="$save_LDFLAGS"
  9143. fi
  9144. # Generic LAPACK library?
  9145. if test $lapack_ok = no; then
  9146. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9147. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9148. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9149. echo "configure:11444: checking for desgv_ in -llapack" >&5
  9150. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9151. ac_save_LIBS="$LIBS"
  9152. LIBS="-llapack $FLIBS $LIBS"
  9153. cat > conftest.$ac_ext <<EOF
  9154. #line 11450 "configure"
  9155. #include "confdefs.h"
  9156. /* Override any gcc2 internal prototype to avoid an error. */
  9157. /* We use char because int might match the return type of a gcc2
  9158. builtin and then its argument prototype would still apply. */
  9159. char desgv_();
  9160. int main() {
  9161. desgv_()
  9162. ; return 0; }
  9163. EOF
  9164. if { (eval echo configure:11461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9165. rm -rf conftest*
  9166. eval "ac_cv_lib_$ac_lib_var=yes"
  9167. else
  9168. echo "configure: failed program was:" >&5
  9169. cat conftest.$ac_ext >&5
  9170. rm -rf conftest*
  9171. eval "ac_cv_lib_$ac_lib_var=no"
  9172. fi
  9173. rm -f conftest*
  9174. LIBS="$ac_save_LIBS"
  9175. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9176. echo "$ac_t""yes" 1>&6
  9177. lapack_ok=yes; LAPACKLIB="-llapack"
  9178. else
  9179. echo "$ac_t""no" 1>&6
  9180. fi
  9181. LIBS="$save_LIBS"
  9182. LDFLAGS="$save_LDFLAGS"
  9183. fi
  9184. if test $lapack_ok = no; then
  9185. ac_save_ldflags="$LDFLAGS"
  9186. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9187. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9188. echo "configure:11493: checking for dgesv_ in -llapack" >&5
  9189. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9190. ac_save_LIBS="$LIBS"
  9191. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9192. cat > conftest.$ac_ext <<EOF
  9193. #line 11499 "configure"
  9194. #include "confdefs.h"
  9195. /* Override any gcc2 internal prototype to avoid an error. */
  9196. /* We use char because int might match the return type of a gcc2
  9197. builtin and then its argument prototype would still apply. */
  9198. char dgesv_();
  9199. int main() {
  9200. dgesv_()
  9201. ; return 0; }
  9202. EOF
  9203. if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9204. rm -rf conftest*
  9205. eval "ac_cv_lib_$ac_lib_var=yes"
  9206. else
  9207. echo "configure: failed program was:" >&5
  9208. cat conftest.$ac_ext >&5
  9209. rm -rf conftest*
  9210. eval "ac_cv_lib_$ac_lib_var=no"
  9211. fi
  9212. rm -f conftest*
  9213. LIBS="$ac_save_LIBS"
  9214. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9215. echo "$ac_t""yes" 1>&6
  9216. LAPACKLIB="$LAPACKLIB -llapack "
  9217. else
  9218. echo "$ac_t""no" 1>&6
  9219. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9220. echo "configure:11529: checking for dgesv_ in -llapack" >&5
  9221. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9222. ac_save_LIBS="$LIBS"
  9223. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9224. cat > conftest.$ac_ext <<EOF
  9225. #line 11535 "configure"
  9226. #include "confdefs.h"
  9227. /* Override any gcc2 internal prototype to avoid an error. */
  9228. /* We use char because int might match the return type of a gcc2
  9229. builtin and then its argument prototype would still apply. */
  9230. char dgesv_();
  9231. int main() {
  9232. dgesv_()
  9233. ; return 0; }
  9234. EOF
  9235. if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9236. rm -rf conftest*
  9237. eval "ac_cv_lib_$ac_lib_var=yes"
  9238. else
  9239. echo "configure: failed program was:" >&5
  9240. cat conftest.$ac_ext >&5
  9241. rm -rf conftest*
  9242. eval "ac_cv_lib_$ac_lib_var=no"
  9243. fi
  9244. rm -f conftest*
  9245. LIBS="$ac_save_LIBS"
  9246. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9247. echo "$ac_t""yes" 1>&6
  9248. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9249. else
  9250. echo "$ac_t""no" 1>&6
  9251. LDFLAGS=${ac_save_ldflags}
  9252. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9253. fi
  9254. fi
  9255. LDFLAGS=${ac_save_ldflags}
  9256. fi
  9257. cat >> confdefs.h <<\EOF
  9258. #define HAVE_LIBLAPACK 1
  9259. EOF
  9260. fi # $USE_LAPACK
  9261. fi # $USE_BLAS
  9262. # Done checking LAPACK
  9263. # Enable Cairo display driver option
  9264. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9265. echo "configure:11602: checking whether to use Cairo" >&5
  9266. echo "$ac_t"""$with_cairo"" 1>&6
  9267. case "$with_cairo" in
  9268. "no") USE_CAIRO= ;;
  9269. "yes") USE_CAIRO="1" ;;
  9270. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9271. esac
  9272. CAIROINC=
  9273. CAIROLIB=
  9274. if test -n "$USE_CAIRO"; then
  9275. cairo="cairo"
  9276. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9277. if test -n "$USE_X11"; then
  9278. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9279. fi
  9280. for pkg in $pkgs ; do
  9281. if pkg-config --exists $pkg ; then
  9282. cairo="$cairo $pkg"
  9283. fi
  9284. done
  9285. # With Cairo includes directory
  9286. #FIXME: somehow quote dirs with spaces in $cairo ?
  9287. CAIROINC=`pkg-config --cflags $cairo`
  9288. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9289. echo "configure:11634: checking for location of cairo includes" >&5
  9290. case "$with_cairo_includes" in
  9291. y | ye | yes | n | no)
  9292. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9293. ;;
  9294. esac
  9295. echo "$ac_t""$with_cairo_includes" 1>&6
  9296. if test -n "$with_cairo_includes" ; then
  9297. for dir in $with_cairo_includes; do
  9298. if test -d "$dir"; then
  9299. CAIROINC="$CAIROINC -I$dir"
  9300. else
  9301. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9302. fi
  9303. done
  9304. fi
  9305. ac_save_cppflags="$CPPFLAGS"
  9306. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9307. for ac_hdr in cairo.h
  9308. do
  9309. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9310. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9311. echo "configure:11660: checking for $ac_hdr" >&5
  9312. cat > conftest.$ac_ext <<EOF
  9313. #line 11663 "configure"
  9314. #include "confdefs.h"
  9315. #include <$ac_hdr>
  9316. EOF
  9317. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9318. { (eval echo configure:11668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9319. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9320. if test -z "$ac_err"; then
  9321. rm -rf conftest*
  9322. eval "ac_cv_header_$ac_safe=yes"
  9323. else
  9324. echo "$ac_err" >&5
  9325. echo "configure: failed program was:" >&5
  9326. cat conftest.$ac_ext >&5
  9327. rm -rf conftest*
  9328. eval "ac_cv_header_$ac_safe=no"
  9329. fi
  9330. rm -f conftest*
  9331. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9332. echo "$ac_t""yes" 1>&6
  9333. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9334. cat >> confdefs.h <<EOF
  9335. #define $ac_tr_hdr 1
  9336. EOF
  9337. else
  9338. echo "$ac_t""no" 1>&6
  9339. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9340. fi
  9341. done
  9342. CPPFLAGS=$ac_save_cppflags
  9343. # With Cairo library directory
  9344. CAIROLIB=`pkg-config --libs $cairo`
  9345. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9346. echo "configure:11704: checking for location of cairo library" >&5
  9347. case "$with_cairo_libs" in
  9348. y | ye | yes | n | no)
  9349. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9350. ;;
  9351. esac
  9352. echo "$ac_t""$with_cairo_libs" 1>&6
  9353. if test -n "$with_cairo_libs"; then
  9354. for dir in $with_cairo_libs; do
  9355. if test -d "$dir"; then
  9356. CAIROLIB="$CAIROLIB -L$dir"
  9357. else
  9358. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9359. fi
  9360. done
  9361. fi
  9362. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9363. echo "configure:11724: checking for cairo linking flags" >&5
  9364. case "$with_cairo_ldflags" in
  9365. y | ye | yes | n | no)
  9366. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9367. ;;
  9368. esac
  9369. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9370. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9371. ac_save_libs="$LIBS"
  9372. ac_save_ldflags="$LDFLAGS"
  9373. LIBS=" $CAIROLIB $LIBS"
  9374. LDFLAGS=" $LDFLAGS"
  9375. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9376. echo "configure:11740: checking for cairo_create" >&5
  9377. cat > conftest.$ac_ext <<EOF
  9378. #line 11743 "configure"
  9379. #include "confdefs.h"
  9380. /* System header to define __stub macros and hopefully few prototypes,
  9381. which can conflict with char cairo_create(); below. */
  9382. #include <assert.h>
  9383. /* Override any gcc2 internal prototype to avoid an error. */
  9384. /* We use char because int might match the return type of a gcc2
  9385. builtin and then its argument prototype would still apply. */
  9386. char cairo_create();
  9387. int main() {
  9388. /* The GNU C library defines this for functions which it implements
  9389. to always fail with ENOSYS. Some functions are actually named
  9390. something starting with __ and the normal name is an alias. */
  9391. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9392. choke me
  9393. #else
  9394. cairo_create();
  9395. #endif
  9396. ; return 0; }
  9397. EOF
  9398. if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9399. rm -rf conftest*
  9400. eval "ac_cv_func_cairo_create=yes"
  9401. else
  9402. echo "configure: failed program was:" >&5
  9403. cat conftest.$ac_ext >&5
  9404. rm -rf conftest*
  9405. eval "ac_cv_func_cairo_create=no"
  9406. fi
  9407. rm -f conftest*
  9408. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9409. echo "$ac_t""yes" 1>&6
  9410. :
  9411. else
  9412. echo "$ac_t""no" 1>&6
  9413. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9414. fi
  9415. LIBS=${ac_save_libs}
  9416. LDFLAGS=${ac_save_ldflags}
  9417. ac_save_libs="$LIBS"
  9418. ac_save_ldflags="$LDFLAGS"
  9419. LIBS=" $CAIROLIB $LIBS"
  9420. LDFLAGS=" $LDFLAGS"
  9421. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9422. echo "configure:11800: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9423. cat > conftest.$ac_ext <<EOF
  9424. #line 11803 "configure"
  9425. #include "confdefs.h"
  9426. /* System header to define __stub macros and hopefully few prototypes,
  9427. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9428. #include <assert.h>
  9429. /* Override any gcc2 internal prototype to avoid an error. */
  9430. /* We use char because int might match the return type of a gcc2
  9431. builtin and then its argument prototype would still apply. */
  9432. char cairo_xlib_surface_create_with_xrender_format();
  9433. int main() {
  9434. /* The GNU C library defines this for functions which it implements
  9435. to always fail with ENOSYS. Some functions are actually named
  9436. something starting with __ and the normal name is an alias. */
  9437. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9438. choke me
  9439. #else
  9440. cairo_xlib_surface_create_with_xrender_format();
  9441. #endif
  9442. ; return 0; }
  9443. EOF
  9444. if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9445. rm -rf conftest*
  9446. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9447. else
  9448. echo "configure: failed program was:" >&5
  9449. cat conftest.$ac_ext >&5
  9450. rm -rf conftest*
  9451. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9452. fi
  9453. rm -f conftest*
  9454. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9455. echo "$ac_t""yes" 1>&6
  9456. CAIRO_HAS_XRENDER=1
  9457. else
  9458. echo "$ac_t""no" 1>&6
  9459. CAIRO_HAS_XRENDER=
  9460. fi
  9461. LIBS=${ac_save_libs}
  9462. LDFLAGS=${ac_save_ldflags}
  9463. ac_save_libs="$LIBS"
  9464. ac_save_ldflags="$LDFLAGS"
  9465. LIBS=" $CAIROLIB $LIBS"
  9466. LDFLAGS=" $LDFLAGS"
  9467. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9468. echo "configure:11859: checking for cairo_xlib_surface_get_xrender_format" >&5
  9469. cat > conftest.$ac_ext <<EOF
  9470. #line 11862 "configure"
  9471. #include "confdefs.h"
  9472. /* System header to define __stub macros and hopefully few prototypes,
  9473. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9474. #include <assert.h>
  9475. /* Override any gcc2 internal prototype to avoid an error. */
  9476. /* We use char because int might match the return type of a gcc2
  9477. builtin and then its argument prototype would still apply. */
  9478. char cairo_xlib_surface_get_xrender_format();
  9479. int main() {
  9480. /* The GNU C library defines this for functions which it implements
  9481. to always fail with ENOSYS. Some functions are actually named
  9482. something starting with __ and the normal name is an alias. */
  9483. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9484. choke me
  9485. #else
  9486. cairo_xlib_surface_get_xrender_format();
  9487. #endif
  9488. ; return 0; }
  9489. EOF
  9490. if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9491. rm -rf conftest*
  9492. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9493. else
  9494. echo "configure: failed program was:" >&5
  9495. cat conftest.$ac_ext >&5
  9496. rm -rf conftest*
  9497. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9498. fi
  9499. rm -f conftest*
  9500. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9501. echo "$ac_t""yes" 1>&6
  9502. CAIRO_HAS_XRENDER_SURFACE=1
  9503. else
  9504. echo "$ac_t""no" 1>&6
  9505. CAIRO_HAS_XRENDER_SURFACE=
  9506. fi
  9507. LIBS=${ac_save_libs}
  9508. LDFLAGS=${ac_save_ldflags}
  9509. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9510. fi # $USE_CAIRO
  9511. # Done checking Cairo
  9512. # Enable FreeType option
  9513. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9514. echo "configure:11927: checking whether to use FreeType" >&5
  9515. echo "$ac_t"""$with_freetype"" 1>&6
  9516. case "$with_freetype" in
  9517. "no") USE_FREETYPE= ;;
  9518. "yes") USE_FREETYPE="1" ;;
  9519. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9520. esac
  9521. FTINC=
  9522. FTLIB=
  9523. if test -n "$USE_FREETYPE"; then
  9524. # With FreeType includes directory
  9525. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9526. echo "configure:11946: checking for location of FreeType includes" >&5
  9527. case "$with_freetype_includes" in
  9528. y | ye | yes | n | no)
  9529. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9530. ;;
  9531. esac
  9532. echo "$ac_t""$with_freetype_includes" 1>&6
  9533. if test -n "$with_freetype_includes" ; then
  9534. for dir in $with_freetype_includes; do
  9535. if test -d "$dir"; then
  9536. FTINC="$FTINC -I$dir"
  9537. else
  9538. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9539. fi
  9540. done
  9541. fi
  9542. ac_save_cppflags="$CPPFLAGS"
  9543. CPPFLAGS="$FTINC $CPPFLAGS"
  9544. for ac_hdr in ft2build.h
  9545. do
  9546. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9547. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9548. echo "configure:11972: checking for $ac_hdr" >&5
  9549. cat > conftest.$ac_ext <<EOF
  9550. #line 11975 "configure"
  9551. #include "confdefs.h"
  9552. #include <$ac_hdr>
  9553. EOF
  9554. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9555. { (eval echo configure:11980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9556. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9557. if test -z "$ac_err"; then
  9558. rm -rf conftest*
  9559. eval "ac_cv_header_$ac_safe=yes"
  9560. else
  9561. echo "$ac_err" >&5
  9562. echo "configure: failed program was:" >&5
  9563. cat conftest.$ac_ext >&5
  9564. rm -rf conftest*
  9565. eval "ac_cv_header_$ac_safe=no"
  9566. fi
  9567. rm -f conftest*
  9568. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9569. echo "$ac_t""yes" 1>&6
  9570. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9571. cat >> confdefs.h <<EOF
  9572. #define $ac_tr_hdr 1
  9573. EOF
  9574. else
  9575. echo "$ac_t""no" 1>&6
  9576. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9577. fi
  9578. done
  9579. CPPFLAGS=$ac_save_cppflags
  9580. # With FreeType library directory
  9581. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9582. echo "configure:12014: checking for location of FreeType library" >&5
  9583. case "$with_freetype_libs" in
  9584. y | ye | yes | n | no)
  9585. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9586. ;;
  9587. esac
  9588. echo "$ac_t""$with_freetype_libs" 1>&6
  9589. if test -n "$with_freetype_libs"; then
  9590. for dir in $with_freetype_libs; do
  9591. if test -d "$dir"; then
  9592. FTLIB="$FTLIB -L$dir"
  9593. else
  9594. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9595. fi
  9596. done
  9597. fi
  9598. ac_save_ldflags="$LDFLAGS"
  9599. LDFLAGS="$FTLIB $LDFLAGS"
  9600. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9601. echo "configure:12039: checking for FT_Init_FreeType in -lfreetype" >&5
  9602. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9603. ac_save_LIBS="$LIBS"
  9604. LIBS="-lfreetype $LIBS"
  9605. cat > conftest.$ac_ext <<EOF
  9606. #line 12045 "configure"
  9607. #include "confdefs.h"
  9608. /* Override any gcc2 internal prototype to avoid an error. */
  9609. /* We use char because int might match the return type of a gcc2
  9610. builtin and then its argument prototype would still apply. */
  9611. char FT_Init_FreeType();
  9612. int main() {
  9613. FT_Init_FreeType()
  9614. ; return 0; }
  9615. EOF
  9616. if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9617. rm -rf conftest*
  9618. eval "ac_cv_lib_$ac_lib_var=yes"
  9619. else
  9620. echo "configure: failed program was:" >&5
  9621. cat conftest.$ac_ext >&5
  9622. rm -rf conftest*
  9623. eval "ac_cv_lib_$ac_lib_var=no"
  9624. fi
  9625. rm -f conftest*
  9626. LIBS="$ac_save_LIBS"
  9627. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9628. echo "$ac_t""yes" 1>&6
  9629. FTLIB="$FTLIB -lfreetype "
  9630. else
  9631. echo "$ac_t""no" 1>&6
  9632. LDFLAGS=${ac_save_ldflags}
  9633. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9634. fi
  9635. LDFLAGS=${ac_save_ldflags}
  9636. fi # $USE_FREETYPE
  9637. # Done checking FreeType
  9638. # Enable NLS option
  9639. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9640. echo "configure:12097: checking whether to use NLS" >&5
  9641. echo "$ac_t"""$with_nls"" 1>&6
  9642. case "$with_nls" in
  9643. "no") USE_NLS= ;;
  9644. "yes") USE_NLS="1" ;;
  9645. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9646. esac
  9647. INTLLIB=
  9648. HAVE_NLS=
  9649. if test -n "${USE_NLS}" ; then
  9650. cat >> confdefs.h <<\EOF
  9651. #define USE_NLS 1
  9652. EOF
  9653. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9654. echo "configure:12117: checking for gettext" >&5
  9655. cat > conftest.$ac_ext <<EOF
  9656. #line 12120 "configure"
  9657. #include "confdefs.h"
  9658. /* System header to define __stub macros and hopefully few prototypes,
  9659. which can conflict with char gettext(); below. */
  9660. #include <assert.h>
  9661. /* Override any gcc2 internal prototype to avoid an error. */
  9662. /* We use char because int might match the return type of a gcc2
  9663. builtin and then its argument prototype would still apply. */
  9664. char gettext();
  9665. int main() {
  9666. /* The GNU C library defines this for functions which it implements
  9667. to always fail with ENOSYS. Some functions are actually named
  9668. something starting with __ and the normal name is an alias. */
  9669. #if defined (__stub_gettext) || defined (__stub___gettext)
  9670. choke me
  9671. #else
  9672. gettext();
  9673. #endif
  9674. ; return 0; }
  9675. EOF
  9676. if { (eval echo configure:12143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9677. rm -rf conftest*
  9678. eval "ac_cv_func_gettext=yes"
  9679. else
  9680. echo "configure: failed program was:" >&5
  9681. cat conftest.$ac_ext >&5
  9682. rm -rf conftest*
  9683. eval "ac_cv_func_gettext=no"
  9684. fi
  9685. rm -f conftest*
  9686. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9687. echo "$ac_t""yes" 1>&6
  9688. INTLLIB=
  9689. else
  9690. echo "$ac_t""no" 1>&6
  9691. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9692. echo "configure:12161: checking for gettext in -lintl" >&5
  9693. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9694. ac_save_LIBS="$LIBS"
  9695. LIBS="-lintl $LIBS"
  9696. cat > conftest.$ac_ext <<EOF
  9697. #line 12167 "configure"
  9698. #include "confdefs.h"
  9699. /* Override any gcc2 internal prototype to avoid an error. */
  9700. /* We use char because int might match the return type of a gcc2
  9701. builtin and then its argument prototype would still apply. */
  9702. char gettext();
  9703. int main() {
  9704. gettext()
  9705. ; return 0; }
  9706. EOF
  9707. if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9708. rm -rf conftest*
  9709. eval "ac_cv_lib_$ac_lib_var=yes"
  9710. else
  9711. echo "configure: failed program was:" >&5
  9712. cat conftest.$ac_ext >&5
  9713. rm -rf conftest*
  9714. eval "ac_cv_lib_$ac_lib_var=no"
  9715. fi
  9716. rm -f conftest*
  9717. LIBS="$ac_save_LIBS"
  9718. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9719. echo "$ac_t""yes" 1>&6
  9720. INTLLIB=-lintl
  9721. else
  9722. echo "$ac_t""no" 1>&6
  9723. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9724. fi
  9725. fi
  9726. HAVE_NLS=1
  9727. fi
  9728. # Enable C++ option
  9729. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9730. echo "configure:12213: checking whether to use C++" >&5
  9731. echo "$ac_t"""$with_cxx"" 1>&6
  9732. case "$with_cxx" in
  9733. "no") USE_CXX= ;;
  9734. "yes") USE_CXX="1" ;;
  9735. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9736. esac
  9737. if test -n "$USE_CXX"; then
  9738. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9739. do
  9740. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9741. set dummy $ac_prog; ac_word=$2
  9742. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9743. echo "configure:12229: checking for $ac_word" >&5
  9744. if test -n "$CXX"; then
  9745. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9746. else
  9747. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9748. ac_dummy="$PATH"
  9749. for ac_dir in $ac_dummy; do
  9750. test -z "$ac_dir" && ac_dir=.
  9751. if test -f $ac_dir/$ac_word; then
  9752. ac_cv_prog_CXX="$ac_prog"
  9753. break
  9754. fi
  9755. done
  9756. IFS="$ac_save_ifs"
  9757. fi
  9758. CXX="$ac_cv_prog_CXX"
  9759. if test -n "$CXX"; then
  9760. echo "$ac_t""$CXX" 1>&6
  9761. else
  9762. echo "$ac_t""no" 1>&6
  9763. fi
  9764. test -n "$CXX" && break
  9765. done
  9766. test -n "$CXX" || CXX="gcc"
  9767. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9768. echo "configure:12258: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9769. ac_ext=C
  9770. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9771. ac_cpp='$CXXCPP $CPPFLAGS'
  9772. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9773. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9774. cross_compiling=$ac_cv_prog_cxx_cross
  9775. cat > conftest.$ac_ext << EOF
  9776. #line 12269 "configure"
  9777. #include "confdefs.h"
  9778. int main(){return(0);}
  9779. EOF
  9780. if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9781. ac_cv_prog_cxx_works=yes
  9782. # If we can't run a trivial program, we are probably using a cross compiler.
  9783. if (./conftest; exit) 2>/dev/null; then
  9784. ac_cv_prog_cxx_cross=no
  9785. else
  9786. ac_cv_prog_cxx_cross=yes
  9787. fi
  9788. else
  9789. echo "configure: failed program was:" >&5
  9790. cat conftest.$ac_ext >&5
  9791. ac_cv_prog_cxx_works=no
  9792. fi
  9793. rm -fr conftest*
  9794. ac_ext=c
  9795. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9796. ac_cpp='$CPP $CPPFLAGS'
  9797. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9798. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9799. cross_compiling=$ac_cv_prog_cc_cross
  9800. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9801. if test $ac_cv_prog_cxx_works = no; then
  9802. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9803. fi
  9804. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9805. echo "configure:12300: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9806. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9807. cross_compiling=$ac_cv_prog_cxx_cross
  9808. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9809. echo "configure:12305: checking whether we are using GNU C++" >&5
  9810. cat > conftest.C <<EOF
  9811. #ifdef __GNUC__
  9812. yes;
  9813. #endif
  9814. EOF
  9815. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9816. ac_cv_prog_gxx=yes
  9817. else
  9818. ac_cv_prog_gxx=no
  9819. fi
  9820. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9821. if test $ac_cv_prog_gxx = yes; then
  9822. GXX=yes
  9823. else
  9824. GXX=
  9825. fi
  9826. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9827. ac_save_CXXFLAGS="$CXXFLAGS"
  9828. CXXFLAGS=
  9829. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9830. echo "configure:12330: checking whether ${CXX-g++} accepts -g" >&5
  9831. echo 'void f(){}' > conftest.cc
  9832. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9833. ac_cv_prog_cxx_g=yes
  9834. else
  9835. ac_cv_prog_cxx_g=no
  9836. fi
  9837. rm -f conftest*
  9838. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9839. if test "$ac_test_CXXFLAGS" = set; then
  9840. CXXFLAGS="$ac_save_CXXFLAGS"
  9841. elif test $ac_cv_prog_cxx_g = yes; then
  9842. if test "$GXX" = yes; then
  9843. CXXFLAGS="-g -O2"
  9844. else
  9845. CXXFLAGS="-g"
  9846. fi
  9847. else
  9848. if test "$GXX" = yes; then
  9849. CXXFLAGS="-O2"
  9850. else
  9851. CXXFLAGS=
  9852. fi
  9853. fi
  9854. else
  9855. CXX=
  9856. CXXFLAGS=
  9857. fi
  9858. # Done checking C++
  9859. # Enable openDWG option
  9860. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9861. echo "configure:12371: checking whether to use openDWG" >&5
  9862. echo "$ac_t"""$with_opendwg"" 1>&6
  9863. case "$with_opendwg" in
  9864. "no") USE_OPENDWG= ;;
  9865. "yes") USE_OPENDWG="1" ;;
  9866. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9867. esac
  9868. OPENDWGINCPATH=
  9869. OPENDWGLIBPATH=
  9870. OPENDWGLIB=
  9871. if test -n "${USE_OPENDWG}"; then
  9872. # With OPENDWG includes directory
  9873. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9874. echo "configure:12391: checking for location of openDGW includes" >&5
  9875. case "$with_opendwg_includes" in
  9876. y | ye | yes | n | no)
  9877. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9878. ;;
  9879. esac
  9880. echo "$ac_t""$with_opendwg_includes" 1>&6
  9881. if test -n "$with_opendwg_includes" ; then
  9882. for dir in $with_opendwg_includes; do
  9883. if test -d "$dir"; then
  9884. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9885. else
  9886. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9887. fi
  9888. done
  9889. fi
  9890. ac_save_cppflags="$CPPFLAGS"
  9891. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9892. for ac_hdr in ad2.h
  9893. do
  9894. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9895. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9896. echo "configure:12417: checking for $ac_hdr" >&5
  9897. cat > conftest.$ac_ext <<EOF
  9898. #line 12420 "configure"
  9899. #include "confdefs.h"
  9900. #include <$ac_hdr>
  9901. EOF
  9902. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9903. { (eval echo configure:12425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9904. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9905. if test -z "$ac_err"; then
  9906. rm -rf conftest*
  9907. eval "ac_cv_header_$ac_safe=yes"
  9908. else
  9909. echo "$ac_err" >&5
  9910. echo "configure: failed program was:" >&5
  9911. cat conftest.$ac_ext >&5
  9912. rm -rf conftest*
  9913. eval "ac_cv_header_$ac_safe=no"
  9914. fi
  9915. rm -f conftest*
  9916. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9917. echo "$ac_t""yes" 1>&6
  9918. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9919. cat >> confdefs.h <<EOF
  9920. #define $ac_tr_hdr 1
  9921. EOF
  9922. else
  9923. echo "$ac_t""no" 1>&6
  9924. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9925. fi
  9926. done
  9927. CPPFLAGS=$ac_save_cppflags
  9928. # With OPENDWG library directory
  9929. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9930. echo "configure:12459: checking for location of openDWG library" >&5
  9931. case "$with_opendwg_libs" in
  9932. y | ye | yes | n | no)
  9933. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9934. ;;
  9935. esac
  9936. echo "$ac_t""$with_opendwg_libs" 1>&6
  9937. if test -n "$with_opendwg_libs"; then
  9938. for dir in $with_opendwg_libs; do
  9939. if test -d "$dir"; then
  9940. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9941. else
  9942. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9943. fi
  9944. done
  9945. fi
  9946. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9947. #FIX ME how to program this test??
  9948. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9949. #
  9950. #for now hack (but working):
  9951. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9952. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9953. OPENDWGLIB="$adlib"
  9954. fi # $USE_OPENDWG
  9955. # Done checking OPENDWG
  9956. # Enable pthread option
  9957. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9958. echo "configure:12500: checking whether to use POSIX threads" >&5
  9959. echo "$ac_t"""$with_pthread"" 1>&6
  9960. case "$with_pthread" in
  9961. "no") USE_PTHREAD= ;;
  9962. "yes") USE_PTHREAD="1" ;;
  9963. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9964. esac
  9965. PTHREADINCPATH=
  9966. PTHREADLIBPATH=
  9967. PTHREADLIB=
  9968. if test -n "$USE_PTHREAD"; then
  9969. # With pthread includes directory
  9970. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9971. echo "configure:12520: checking for location of POSIX threads includes" >&5
  9972. case "$with_pthread_includes" in
  9973. y | ye | yes | n | no)
  9974. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9975. ;;
  9976. esac
  9977. echo "$ac_t""$with_pthread_includes" 1>&6
  9978. if test -n "$with_pthread_includes" ; then
  9979. for dir in $with_pthread_includes; do
  9980. if test -d "$dir"; then
  9981. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9982. else
  9983. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9984. fi
  9985. done
  9986. fi
  9987. ac_save_cppflags="$CPPFLAGS"
  9988. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  9989. for ac_hdr in pthread.h
  9990. do
  9991. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9992. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9993. echo "configure:12546: checking for $ac_hdr" >&5
  9994. cat > conftest.$ac_ext <<EOF
  9995. #line 12549 "configure"
  9996. #include "confdefs.h"
  9997. #include <$ac_hdr>
  9998. EOF
  9999. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10000. { (eval echo configure:12554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10001. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10002. if test -z "$ac_err"; then
  10003. rm -rf conftest*
  10004. eval "ac_cv_header_$ac_safe=yes"
  10005. else
  10006. echo "$ac_err" >&5
  10007. echo "configure: failed program was:" >&5
  10008. cat conftest.$ac_ext >&5
  10009. rm -rf conftest*
  10010. eval "ac_cv_header_$ac_safe=no"
  10011. fi
  10012. rm -f conftest*
  10013. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10014. echo "$ac_t""yes" 1>&6
  10015. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10016. cat >> confdefs.h <<EOF
  10017. #define $ac_tr_hdr 1
  10018. EOF
  10019. else
  10020. echo "$ac_t""no" 1>&6
  10021. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10022. fi
  10023. done
  10024. CPPFLAGS=$ac_save_cppflags
  10025. # With pthread library directory
  10026. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10027. echo "configure:12588: checking for location of POSIX threads library" >&5
  10028. case "$with_pthread_libs" in
  10029. y | ye | yes | n | no)
  10030. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10031. ;;
  10032. esac
  10033. echo "$ac_t""$with_pthread_libs" 1>&6
  10034. if test -n "$with_pthread_libs"; then
  10035. for dir in $with_pthread_libs; do
  10036. if test -d "$dir"; then
  10037. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10038. else
  10039. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10040. fi
  10041. done
  10042. fi
  10043. ac_save_libs="$LIBS"
  10044. ac_save_ldflags="$LDFLAGS"
  10045. LIBS=" $LIBS"
  10046. LDFLAGS=" $LDFLAGS"
  10047. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10048. echo "configure:12613: checking for pthread_create" >&5
  10049. cat > conftest.$ac_ext <<EOF
  10050. #line 12616 "configure"
  10051. #include "confdefs.h"
  10052. /* System header to define __stub macros and hopefully few prototypes,
  10053. which can conflict with char pthread_create(); below. */
  10054. #include <assert.h>
  10055. /* Override any gcc2 internal prototype to avoid an error. */
  10056. /* We use char because int might match the return type of a gcc2
  10057. builtin and then its argument prototype would still apply. */
  10058. char pthread_create();
  10059. int main() {
  10060. /* The GNU C library defines this for functions which it implements
  10061. to always fail with ENOSYS. Some functions are actually named
  10062. something starting with __ and the normal name is an alias. */
  10063. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10064. choke me
  10065. #else
  10066. pthread_create();
  10067. #endif
  10068. ; return 0; }
  10069. EOF
  10070. if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10071. rm -rf conftest*
  10072. eval "ac_cv_func_pthread_create=yes"
  10073. else
  10074. echo "configure: failed program was:" >&5
  10075. cat conftest.$ac_ext >&5
  10076. rm -rf conftest*
  10077. eval "ac_cv_func_pthread_create=no"
  10078. fi
  10079. rm -f conftest*
  10080. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10081. echo "$ac_t""yes" 1>&6
  10082. PTHREADLIB="$PTHREADLIB "
  10083. else
  10084. echo "$ac_t""no" 1>&6
  10085. ac_save_ldflags="$LDFLAGS"
  10086. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10087. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10088. echo "configure:12666: checking for pthread_create in -lpthread" >&5
  10089. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10090. ac_save_LIBS="$LIBS"
  10091. LIBS="-lpthread $LIBS"
  10092. cat > conftest.$ac_ext <<EOF
  10093. #line 12672 "configure"
  10094. #include "confdefs.h"
  10095. /* Override any gcc2 internal prototype to avoid an error. */
  10096. /* We use char because int might match the return type of a gcc2
  10097. builtin and then its argument prototype would still apply. */
  10098. char pthread_create();
  10099. int main() {
  10100. pthread_create()
  10101. ; return 0; }
  10102. EOF
  10103. if { (eval echo configure:12683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10104. rm -rf conftest*
  10105. eval "ac_cv_lib_$ac_lib_var=yes"
  10106. else
  10107. echo "configure: failed program was:" >&5
  10108. cat conftest.$ac_ext >&5
  10109. rm -rf conftest*
  10110. eval "ac_cv_lib_$ac_lib_var=no"
  10111. fi
  10112. rm -f conftest*
  10113. LIBS="$ac_save_LIBS"
  10114. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10115. echo "$ac_t""yes" 1>&6
  10116. PTHREADLIB="$PTHREADLIB -lpthread "
  10117. else
  10118. echo "$ac_t""no" 1>&6
  10119. LDFLAGS=${ac_save_ldflags}
  10120. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10121. fi
  10122. LDFLAGS=${ac_save_ldflags}
  10123. fi
  10124. LIBS=${ac_save_libs}
  10125. LDFLAGS=${ac_save_ldflags}
  10126. fi # $USE_PTHREAD
  10127. # Done checking pthread
  10128. # Enable OpenMP option
  10129. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10130. echo "configure:12733: checking whether to use OpenMP" >&5
  10131. echo "$ac_t"""$with_openmp"" 1>&6
  10132. case "$with_openmp" in
  10133. "no") USE_OPENMP= ;;
  10134. "yes") USE_OPENMP="1" ;;
  10135. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10136. esac
  10137. OMPINCPATH=
  10138. OMPLIBPATH=
  10139. OMPLIB=
  10140. OMPCFLAGS=
  10141. if test -n "$USE_OPENMP"; then
  10142. # With OpenMP includes directory
  10143. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10144. echo "configure:12754: checking for location of OpenMP includes" >&5
  10145. case "$with_openmp_includes" in
  10146. y | ye | yes | n | no)
  10147. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10148. ;;
  10149. esac
  10150. echo "$ac_t""$with_openmp_includes" 1>&6
  10151. if test -n "$with_openmp_includes" ; then
  10152. for dir in $with_openmp_includes; do
  10153. if test -d "$dir"; then
  10154. OMPINCPATH="$OMPINCPATH -I$dir"
  10155. else
  10156. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10157. fi
  10158. done
  10159. fi
  10160. ac_save_cppflags="$CPPFLAGS"
  10161. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10162. for ac_hdr in omp.h
  10163. do
  10164. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10165. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10166. echo "configure:12780: checking for $ac_hdr" >&5
  10167. cat > conftest.$ac_ext <<EOF
  10168. #line 12783 "configure"
  10169. #include "confdefs.h"
  10170. #include <$ac_hdr>
  10171. EOF
  10172. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10173. { (eval echo configure:12788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10174. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10175. if test -z "$ac_err"; then
  10176. rm -rf conftest*
  10177. eval "ac_cv_header_$ac_safe=yes"
  10178. else
  10179. echo "$ac_err" >&5
  10180. echo "configure: failed program was:" >&5
  10181. cat conftest.$ac_ext >&5
  10182. rm -rf conftest*
  10183. eval "ac_cv_header_$ac_safe=no"
  10184. fi
  10185. rm -f conftest*
  10186. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10187. echo "$ac_t""yes" 1>&6
  10188. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10189. cat >> confdefs.h <<EOF
  10190. #define $ac_tr_hdr 1
  10191. EOF
  10192. else
  10193. echo "$ac_t""no" 1>&6
  10194. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10195. fi
  10196. done
  10197. CPPFLAGS=$ac_save_cppflags
  10198. # With OpenMP library directory
  10199. # GCC et al.: -lgomp
  10200. # Solaris cc: -lmtsk
  10201. # AIX xlc: -lxlsmp
  10202. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10203. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10204. echo "configure:12826: checking for location of OpenMP library" >&5
  10205. case "$with_gomp_libs" in
  10206. y | ye | yes | n | no)
  10207. { echo "configure: error: *** You must supply a directory to --with-gomp-libs." 1>&2; exit 1; }
  10208. ;;
  10209. esac
  10210. echo "$ac_t""$with_gomp_libs" 1>&6
  10211. if test -n "$with_gomp_libs"; then
  10212. for dir in $with_gomp_libs; do
  10213. if test -d "$dir"; then
  10214. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10215. else
  10216. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10217. fi
  10218. done
  10219. fi
  10220. ac_save_libs="$LIBS"
  10221. ac_save_ldflags="$LDFLAGS"
  10222. LIBS=" $LIBS"
  10223. LDFLAGS=" $LDFLAGS"
  10224. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10225. echo "configure:12851: checking for GOMP_parallel_start" >&5
  10226. cat > conftest.$ac_ext <<EOF
  10227. #line 12854 "configure"
  10228. #include "confdefs.h"
  10229. /* System header to define __stub macros and hopefully few prototypes,
  10230. which can conflict with char GOMP_parallel_start(); below. */
  10231. #include <assert.h>
  10232. /* Override any gcc2 internal prototype to avoid an error. */
  10233. /* We use char because int might match the return type of a gcc2
  10234. builtin and then its argument prototype would still apply. */
  10235. char GOMP_parallel_start();
  10236. int main() {
  10237. /* The GNU C library defines this for functions which it implements
  10238. to always fail with ENOSYS. Some functions are actually named
  10239. something starting with __ and the normal name is an alias. */
  10240. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10241. choke me
  10242. #else
  10243. GOMP_parallel_start();
  10244. #endif
  10245. ; return 0; }
  10246. EOF
  10247. if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10248. rm -rf conftest*
  10249. eval "ac_cv_func_GOMP_parallel_start=yes"
  10250. else
  10251. echo "configure: failed program was:" >&5
  10252. cat conftest.$ac_ext >&5
  10253. rm -rf conftest*
  10254. eval "ac_cv_func_GOMP_parallel_start=no"
  10255. fi
  10256. rm -f conftest*
  10257. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10258. echo "$ac_t""yes" 1>&6
  10259. OMPLIB="$OMPLIB "
  10260. else
  10261. echo "$ac_t""no" 1>&6
  10262. ac_save_ldflags="$LDFLAGS"
  10263. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10264. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10265. echo "configure:12904: checking for GOMP_parallel_start in -lgomp" >&5
  10266. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10267. ac_save_LIBS="$LIBS"
  10268. LIBS="-lgomp $LIBS"
  10269. cat > conftest.$ac_ext <<EOF
  10270. #line 12910 "configure"
  10271. #include "confdefs.h"
  10272. /* Override any gcc2 internal prototype to avoid an error. */
  10273. /* We use char because int might match the return type of a gcc2
  10274. builtin and then its argument prototype would still apply. */
  10275. char GOMP_parallel_start();
  10276. int main() {
  10277. GOMP_parallel_start()
  10278. ; return 0; }
  10279. EOF
  10280. if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10281. rm -rf conftest*
  10282. eval "ac_cv_lib_$ac_lib_var=yes"
  10283. else
  10284. echo "configure: failed program was:" >&5
  10285. cat conftest.$ac_ext >&5
  10286. rm -rf conftest*
  10287. eval "ac_cv_lib_$ac_lib_var=no"
  10288. fi
  10289. rm -f conftest*
  10290. LIBS="$ac_save_LIBS"
  10291. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10292. echo "$ac_t""yes" 1>&6
  10293. OMPLIB="$OMPLIB -lgomp "
  10294. else
  10295. echo "$ac_t""no" 1>&6
  10296. LDFLAGS=${ac_save_ldflags}
  10297. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10298. fi
  10299. LDFLAGS=${ac_save_ldflags}
  10300. fi
  10301. LIBS=${ac_save_libs}
  10302. LDFLAGS=${ac_save_ldflags}
  10303. # compiler dependent
  10304. #if test ${CC} = "gcc" ; then
  10305. if test x$GCC = xyes ; then
  10306. # GNU C compiler (>= 4.2.1)
  10307. OMPCFLAGS=-fopenmp
  10308. elif test ${CC} = "icc" ; then
  10309. # Intel compiler
  10310. OMPCFLAGS=-openmp
  10311. elif test ${CC} = "opencc" ; then
  10312. # AMD's x86 Open64 compiler
  10313. OMPCFLAGS=-mp
  10314. elif test ${CC} = "pgcc" ; then
  10315. # Portland Group's compiler
  10316. OMPCFLAGS=-mp
  10317. # ... anybody else?
  10318. fi
  10319. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10320. #...how?
  10321. #echo "int main() {return 0;}" > test.c
  10322. #$CC $OMPCLFAGS test.c -o test
  10323. fi # $USE_OPENMP
  10324. # Done checking OpenMP
  10325. # Enable OpenCL option
  10326. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  10327. echo "configure:12994: checking whether to use OpenCL" >&5
  10328. echo "$ac_t"""$with_opencl"" 1>&6
  10329. case "$with_opencl" in
  10330. "no") USE_OPENCL= ;;
  10331. "yes") USE_OPENCL="1" ;;
  10332. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10333. esac
  10334. OCLINCPATH=
  10335. OCLLIBPATH=
  10336. OCLLIB=
  10337. if test -n "$USE_OPENCL"; then
  10338. # With OpenCL includes directory
  10339. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  10340. echo "configure:13014: checking for location of OpenCL includes" >&5
  10341. case "$with_opencl_includes" in
  10342. y | ye | yes | n | no)
  10343. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  10344. ;;
  10345. esac
  10346. echo "$ac_t""$with_opencl_includes" 1>&6
  10347. if test -n "$with_opencl_includes" ; then
  10348. for dir in $with_opencl_includes; do
  10349. if test -d "$dir"; then
  10350. OCLINCPATH="$OCLINCPATH -I$dir"
  10351. else
  10352. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10353. fi
  10354. done
  10355. fi
  10356. if test -n "$MACOSX_APP" ; then
  10357. ac_save_cppflags="$CPPFLAGS"
  10358. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10359. for ac_hdr in OpenCL/opencl.h
  10360. do
  10361. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10362. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10363. echo "configure:13041: checking for $ac_hdr" >&5
  10364. cat > conftest.$ac_ext <<EOF
  10365. #line 13044 "configure"
  10366. #include "confdefs.h"
  10367. #include <$ac_hdr>
  10368. EOF
  10369. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10370. { (eval echo configure:13049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10371. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10372. if test -z "$ac_err"; then
  10373. rm -rf conftest*
  10374. eval "ac_cv_header_$ac_safe=yes"
  10375. else
  10376. echo "$ac_err" >&5
  10377. echo "configure: failed program was:" >&5
  10378. cat conftest.$ac_ext >&5
  10379. rm -rf conftest*
  10380. eval "ac_cv_header_$ac_safe=no"
  10381. fi
  10382. rm -f conftest*
  10383. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10384. echo "$ac_t""yes" 1>&6
  10385. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10386. cat >> confdefs.h <<EOF
  10387. #define $ac_tr_hdr 1
  10388. EOF
  10389. else
  10390. echo "$ac_t""no" 1>&6
  10391. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10392. fi
  10393. done
  10394. CPPFLAGS=$ac_save_cppflags
  10395. else
  10396. ac_save_cppflags="$CPPFLAGS"
  10397. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10398. for ac_hdr in CL/cl.h
  10399. do
  10400. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10401. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10402. echo "configure:13086: checking for $ac_hdr" >&5
  10403. cat > conftest.$ac_ext <<EOF
  10404. #line 13089 "configure"
  10405. #include "confdefs.h"
  10406. #include <$ac_hdr>
  10407. EOF
  10408. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10409. { (eval echo configure:13094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10410. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10411. if test -z "$ac_err"; then
  10412. rm -rf conftest*
  10413. eval "ac_cv_header_$ac_safe=yes"
  10414. else
  10415. echo "$ac_err" >&5
  10416. echo "configure: failed program was:" >&5
  10417. cat conftest.$ac_ext >&5
  10418. rm -rf conftest*
  10419. eval "ac_cv_header_$ac_safe=no"
  10420. fi
  10421. rm -f conftest*
  10422. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10423. echo "$ac_t""yes" 1>&6
  10424. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10425. cat >> confdefs.h <<EOF
  10426. #define $ac_tr_hdr 1
  10427. EOF
  10428. else
  10429. echo "$ac_t""no" 1>&6
  10430. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10431. fi
  10432. done
  10433. CPPFLAGS=$ac_save_cppflags
  10434. fi
  10435. # With OpenCL library directory
  10436. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10437. echo "configure:13129: checking for location of OpenCL library" >&5
  10438. case "$with_OpenCL_libs" in
  10439. y | ye | yes | n | no)
  10440. { echo "configure: error: *** You must supply a directory to --with-OpenCL-libs." 1>&2; exit 1; }
  10441. ;;
  10442. esac
  10443. echo "$ac_t""$with_OpenCL_libs" 1>&6
  10444. if test -n "$with_OpenCL_libs"; then
  10445. for dir in $with_OpenCL_libs; do
  10446. if test -d "$dir"; then
  10447. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10448. else
  10449. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10450. fi
  10451. done
  10452. fi
  10453. # FIXME: -L${OCLLIBPATH} is not being added to the gcc conftest.c command. why not? (trac #1943?)
  10454. ac_save_ldflags="$LDFLAGS"
  10455. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10456. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10457. echo "configure:13154: checking for clGetPlatformInfo in -lOpenCL" >&5
  10458. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10459. ac_save_LIBS="$LIBS"
  10460. LIBS="-lOpenCL $LIBS"
  10461. cat > conftest.$ac_ext <<EOF
  10462. #line 13160 "configure"
  10463. #include "confdefs.h"
  10464. /* Override any gcc2 internal prototype to avoid an error. */
  10465. /* We use char because int might match the return type of a gcc2
  10466. builtin and then its argument prototype would still apply. */
  10467. char clGetPlatformInfo();
  10468. int main() {
  10469. clGetPlatformInfo()
  10470. ; return 0; }
  10471. EOF
  10472. if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10473. rm -rf conftest*
  10474. eval "ac_cv_lib_$ac_lib_var=yes"
  10475. else
  10476. echo "configure: failed program was:" >&5
  10477. cat conftest.$ac_ext >&5
  10478. rm -rf conftest*
  10479. eval "ac_cv_lib_$ac_lib_var=no"
  10480. fi
  10481. rm -f conftest*
  10482. LIBS="$ac_save_LIBS"
  10483. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10484. echo "$ac_t""yes" 1>&6
  10485. OCLLIB="$OCLLIB -lOpenCL "
  10486. else
  10487. echo "$ac_t""no" 1>&6
  10488. LDFLAGS=${ac_save_ldflags}
  10489. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10490. fi
  10491. LDFLAGS=${ac_save_ldflags}
  10492. # expanded symbol check: yes? no?
  10493. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10494. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10495. #])
  10496. fi # $USE_OPENCL
  10497. # Done checking OpenCL
  10498. # Enable LFS (from cdr-tools)
  10499. # Check whether --enable-largefile or --disable-largefile was given.
  10500. if test "${enable_largefile+set}" = set; then
  10501. enableval="$enable_largefile"
  10502. :
  10503. fi
  10504. if test "$enable_largefile" = yes; then
  10505. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10506. echo "configure:13225: checking for special C compiler options needed for large files" >&5
  10507. ac_cv_sys_largefile_CC=no
  10508. largefile_cc_opt=""
  10509. if test "$GCC" != yes; then
  10510. # IRIX 6.2 and later do not support large files by default,
  10511. # so use the C compiler's -n32 option if that helps.
  10512. cat > conftest.$ac_ext <<EOF
  10513. #line 13233 "configure"
  10514. #include "confdefs.h"
  10515. #include <sys/types.h>
  10516. /* Check that off_t can represent 2**63 - 1 correctly.
  10517. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10518. since some C++ compilers masquerading as C compilers
  10519. incorrectly reject 9223372036854775807. */
  10520. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10521. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10522. && LARGE_OFF_T % 2147483647 == 1)
  10523. ? 1 : -1];
  10524. int main() {
  10525. ; return 0; }
  10526. EOF
  10527. if { (eval echo configure:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10528. :
  10529. else
  10530. echo "configure: failed program was:" >&5
  10531. cat conftest.$ac_ext >&5
  10532. rm -rf conftest*
  10533. ac_save_CC="${CC-cc}"
  10534. CC="$CC -n32"
  10535. cat > conftest.$ac_ext <<EOF
  10536. #line 13258 "configure"
  10537. #include "confdefs.h"
  10538. #include <sys/types.h>
  10539. /* Check that off_t can represent 2**63 - 1 correctly.
  10540. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10541. since some C++ compilers masquerading as C compilers
  10542. incorrectly reject 9223372036854775807. */
  10543. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10544. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10545. && LARGE_OFF_T % 2147483647 == 1)
  10546. ? 1 : -1];
  10547. int main() {
  10548. ; return 0; }
  10549. EOF
  10550. if { (eval echo configure:13274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10551. rm -rf conftest*
  10552. ac_cv_sys_largefile_CC=' -n32'
  10553. else
  10554. echo "configure: failed program was:" >&5
  10555. cat conftest.$ac_ext >&5
  10556. fi
  10557. rm -f conftest*
  10558. CC="$ac_save_CC"
  10559. fi
  10560. rm -f conftest*
  10561. fi
  10562. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10563. if test "$ac_cv_sys_largefile_CC" != no; then
  10564. CC="$CC$ac_cv_sys_largefile_CC"
  10565. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10566. fi
  10567. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10568. echo "configure:13294: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10569. ac_cv_sys_file_offset_bits=no
  10570. cat > conftest.$ac_ext <<EOF
  10571. #line 13298 "configure"
  10572. #include "confdefs.h"
  10573. #include <sys/types.h>
  10574. /* Check that off_t can represent 2**63 - 1 correctly.
  10575. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10576. since some C++ compilers masquerading as C compilers
  10577. incorrectly reject 9223372036854775807. */
  10578. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10579. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10580. && LARGE_OFF_T % 2147483647 == 1)
  10581. ? 1 : -1];
  10582. int main() {
  10583. ; return 0; }
  10584. EOF
  10585. if { (eval echo configure:13314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10586. :
  10587. else
  10588. echo "configure: failed program was:" >&5
  10589. cat conftest.$ac_ext >&5
  10590. rm -rf conftest*
  10591. cat > conftest.$ac_ext <<EOF
  10592. #line 13321 "configure"
  10593. #include "confdefs.h"
  10594. #define _FILE_OFFSET_BITS 64
  10595. #include <sys/types.h>
  10596. /* Check that off_t can represent 2**63 - 1 correctly.
  10597. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10598. since some C++ compilers masquerading as C compilers
  10599. incorrectly reject 9223372036854775807. */
  10600. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10601. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10602. && LARGE_OFF_T % 2147483647 == 1)
  10603. ? 1 : -1];
  10604. int main() {
  10605. ; return 0; }
  10606. EOF
  10607. if { (eval echo configure:13339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10608. rm -rf conftest*
  10609. ac_cv_sys_file_offset_bits=64
  10610. else
  10611. echo "configure: failed program was:" >&5
  10612. cat conftest.$ac_ext >&5
  10613. fi
  10614. rm -f conftest*
  10615. fi
  10616. rm -f conftest*
  10617. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10618. if test "$ac_cv_sys_file_offset_bits" != no; then
  10619. cat >> confdefs.h <<EOF
  10620. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10621. EOF
  10622. fi
  10623. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10624. echo "configure:13358: checking for _LARGE_FILES value needed for large files" >&5
  10625. ac_cv_sys_large_files=no
  10626. cat > conftest.$ac_ext <<EOF
  10627. #line 13362 "configure"
  10628. #include "confdefs.h"
  10629. #include <sys/types.h>
  10630. /* Check that off_t can represent 2**63 - 1 correctly.
  10631. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10632. since some C++ compilers masquerading as C compilers
  10633. incorrectly reject 9223372036854775807. */
  10634. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10635. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10636. && LARGE_OFF_T % 2147483647 == 1)
  10637. ? 1 : -1];
  10638. int main() {
  10639. ; return 0; }
  10640. EOF
  10641. if { (eval echo configure:13378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10642. :
  10643. else
  10644. echo "configure: failed program was:" >&5
  10645. cat conftest.$ac_ext >&5
  10646. rm -rf conftest*
  10647. cat > conftest.$ac_ext <<EOF
  10648. #line 13385 "configure"
  10649. #include "confdefs.h"
  10650. #define _LARGE_FILES 1
  10651. #include <sys/types.h>
  10652. /* Check that off_t can represent 2**63 - 1 correctly.
  10653. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10654. since some C++ compilers masquerading as C compilers
  10655. incorrectly reject 9223372036854775807. */
  10656. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10657. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10658. && LARGE_OFF_T % 2147483647 == 1)
  10659. ? 1 : -1];
  10660. int main() {
  10661. ; return 0; }
  10662. EOF
  10663. if { (eval echo configure:13403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10664. rm -rf conftest*
  10665. ac_cv_sys_large_files=1
  10666. else
  10667. echo "configure: failed program was:" >&5
  10668. cat conftest.$ac_ext >&5
  10669. fi
  10670. rm -f conftest*
  10671. fi
  10672. rm -f conftest*
  10673. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10674. if test "$ac_cv_sys_large_files" != no; then
  10675. cat >> confdefs.h <<EOF
  10676. #define _LARGE_FILES $ac_cv_sys_large_files
  10677. EOF
  10678. fi
  10679. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10680. echo "configure:13422: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10681. ac_cv_sys_largefile_source=no
  10682. cat > conftest.$ac_ext <<EOF
  10683. #line 13426 "configure"
  10684. #include "confdefs.h"
  10685. #include <stdio.h>
  10686. int main() {
  10687. return !fseeko;
  10688. ; return 0; }
  10689. EOF
  10690. if { (eval echo configure:13433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10691. :
  10692. else
  10693. echo "configure: failed program was:" >&5
  10694. cat conftest.$ac_ext >&5
  10695. rm -rf conftest*
  10696. cat > conftest.$ac_ext <<EOF
  10697. #line 13440 "configure"
  10698. #include "confdefs.h"
  10699. #define _LARGEFILE_SOURCE 1
  10700. #include <stdio.h>
  10701. int main() {
  10702. return !fseeko;
  10703. ; return 0; }
  10704. EOF
  10705. if { (eval echo configure:13449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10706. rm -rf conftest*
  10707. ac_cv_sys_largefile_source=1
  10708. else
  10709. echo "configure: failed program was:" >&5
  10710. cat conftest.$ac_ext >&5
  10711. fi
  10712. rm -f conftest*
  10713. fi
  10714. rm -f conftest*
  10715. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10716. if test "$ac_cv_sys_largefile_source" != no; then
  10717. cat >> confdefs.h <<EOF
  10718. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10719. EOF
  10720. fi
  10721. fi
  10722. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10723. echo "configure:13470: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10724. ac_cv_sys_largefile_source=no
  10725. cat > conftest.$ac_ext <<EOF
  10726. #line 13474 "configure"
  10727. #include "confdefs.h"
  10728. #include <stdio.h>
  10729. int main() {
  10730. return !fseeko;
  10731. ; return 0; }
  10732. EOF
  10733. if { (eval echo configure:13481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10734. :
  10735. else
  10736. echo "configure: failed program was:" >&5
  10737. cat conftest.$ac_ext >&5
  10738. rm -rf conftest*
  10739. cat > conftest.$ac_ext <<EOF
  10740. #line 13488 "configure"
  10741. #include "confdefs.h"
  10742. #define _LARGEFILE_SOURCE 1
  10743. #include <stdio.h>
  10744. int main() {
  10745. return !fseeko;
  10746. ; return 0; }
  10747. EOF
  10748. if { (eval echo configure:13497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10749. rm -rf conftest*
  10750. ac_cv_sys_largefile_source=1
  10751. else
  10752. echo "configure: failed program was:" >&5
  10753. cat conftest.$ac_ext >&5
  10754. fi
  10755. rm -f conftest*
  10756. fi
  10757. rm -f conftest*
  10758. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10759. if test "$ac_cv_sys_largefile_source" != no; then
  10760. cat >> confdefs.h <<EOF
  10761. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10762. EOF
  10763. fi
  10764. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10765. # in glibc 2.1.3, but that breaks too many other things.
  10766. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10767. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10768. echo "configure:13520: checking for fseeko" >&5
  10769. ac_cv_func_fseeko=no
  10770. cat > conftest.$ac_ext <<EOF
  10771. #line 13524 "configure"
  10772. #include "confdefs.h"
  10773. #include <stdio.h>
  10774. int main() {
  10775. return fseeko && fseeko (stdin, 0, 0);
  10776. ; return 0; }
  10777. EOF
  10778. if { (eval echo configure:13531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10779. rm -rf conftest*
  10780. ac_cv_func_fseeko=yes
  10781. else
  10782. echo "configure: failed program was:" >&5
  10783. cat conftest.$ac_ext >&5
  10784. fi
  10785. rm -f conftest*
  10786. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10787. if test $ac_cv_func_fseeko != no; then
  10788. cat >> confdefs.h <<\EOF
  10789. #define HAVE_FSEEKO 1
  10790. EOF
  10791. fi
  10792. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10793. echo "configure:13548: checking if system supports Large Files at all" >&5
  10794. cat > conftest.$ac_ext <<EOF
  10795. #line 13551 "configure"
  10796. #include "confdefs.h"
  10797. #include <stdio.h>
  10798. #include <sys/types.h>
  10799. int main() {
  10800. /*
  10801. * Check that off_t can represent 2**63 - 1 correctly.
  10802. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10803. * since some C++ compilers masquerading as C compilers
  10804. * incorrectly reject 9223372036854775807.
  10805. *
  10806. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10807. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10808. */
  10809. #ifdef __MINGW32__
  10810. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10811. #else
  10812. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10813. #endif
  10814. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10815. && LARGE_OFF_T % 2147483647 == 1)
  10816. ? 1 : -1];
  10817. #ifdef __MINGW32__
  10818. return !fseeko64;
  10819. return !ftello64;
  10820. #else
  10821. return !fseeko;
  10822. return !ftello;
  10823. #endif
  10824. ; return 0; }
  10825. EOF
  10826. if { (eval echo configure:13583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10827. rm -rf conftest*
  10828. ac_cv_largefiles=yes
  10829. else
  10830. echo "configure: failed program was:" >&5
  10831. cat conftest.$ac_ext >&5
  10832. rm -rf conftest*
  10833. ac_cv_largefiles=no
  10834. fi
  10835. rm -f conftest*
  10836. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10837. if test $ac_cv_largefiles = yes; then
  10838. cat >> confdefs.h <<\EOF
  10839. #define HAVE_LARGEFILES 1
  10840. EOF
  10841. fi
  10842. USE_LARGEFILES=
  10843. if test $ac_cv_largefiles = yes; then
  10844. USE_LARGEFILES=1
  10845. fi
  10846. # Done large file support
  10847. # Enable wxWidgets support (for wxGUI)
  10848. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  10849. echo "configure:13612: checking whether to use wxWidgets" >&5
  10850. WXVERSION=
  10851. WXWIDGETSCXXFLAGS=
  10852. WXWIDGETSCPPFLAGS=
  10853. WXWIDGETSLIB=
  10854. USE_WXWIDGETS=
  10855. MACOSX_ARCHS_WXPYTHON=
  10856. if test "$with_wxwidgets" = "no" ; then
  10857. echo "$ac_t""no" 1>&6
  10858. else
  10859. echo "$ac_t""yes" 1>&6
  10860. USE_WXWIDGETS="1"
  10861. if test "$with_wxwidgets" != "yes" ; then
  10862. WX_CONFIG="$with_wxwidgets"
  10863. fi
  10864. # Extract the first word of "wx-config", so it can be a program name with args.
  10865. set dummy wx-config; ac_word=$2
  10866. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10867. echo "configure:13633: checking for $ac_word" >&5
  10868. case "$WX_CONFIG" in
  10869. /*)
  10870. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  10871. ;;
  10872. ?:/*)
  10873. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  10874. ;;
  10875. *)
  10876. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10877. ac_dummy="$PATH"
  10878. for ac_dir in $ac_dummy; do
  10879. test -z "$ac_dir" && ac_dir=.
  10880. if test -f $ac_dir/$ac_word; then
  10881. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  10882. break
  10883. fi
  10884. done
  10885. IFS="$ac_save_ifs"
  10886. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  10887. ;;
  10888. esac
  10889. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  10890. if test -n "$WX_CONFIG"; then
  10891. echo "$ac_t""$WX_CONFIG" 1>&6
  10892. else
  10893. echo "$ac_t""no" 1>&6
  10894. fi
  10895. if test "$WX_CONFIG" = "no" ; then
  10896. { echo "configure: error: *** couldn't find wx-config
  10897. wxWidgets must be installed on your system.
  10898. Please check that wx-config is in path, the directory
  10899. where wxWidgets libraries are installed (returned by
  10900. 'wx-config --libs' or 'wx-config --static --libs' command)
  10901. is in LD_LIBRARY_PATH or equivalent variable and
  10902. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  10903. fi
  10904. # Check wxWidgets version
  10905. REQWX="2.8.1"
  10906. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  10907. echo "configure:13681: checking wxWidgets version" >&5
  10908. if WXVERSION=`"$WX_CONFIG" --version`; then
  10909. echo "$ac_t""$WXVERSION" 1>&6
  10910. else
  10911. echo "$ac_t""not found" 1>&6
  10912. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  10913. fi
  10914. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  10915. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  10916. fi
  10917. # With wxWidgets includes directory
  10918. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  10919. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  10920. ac_save_cppflags="$CPPFLAGS"
  10921. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  10922. for ac_hdr in wx/wxprec.h
  10923. do
  10924. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10925. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10926. echo "configure:13704: checking for $ac_hdr" >&5
  10927. cat > conftest.$ac_ext <<EOF
  10928. #line 13707 "configure"
  10929. #include "confdefs.h"
  10930. #include <$ac_hdr>
  10931. EOF
  10932. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10933. { (eval echo configure:13712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10934. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10935. if test -z "$ac_err"; then
  10936. rm -rf conftest*
  10937. eval "ac_cv_header_$ac_safe=yes"
  10938. else
  10939. echo "$ac_err" >&5
  10940. echo "configure: failed program was:" >&5
  10941. cat conftest.$ac_ext >&5
  10942. rm -rf conftest*
  10943. eval "ac_cv_header_$ac_safe=no"
  10944. fi
  10945. rm -f conftest*
  10946. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10947. echo "$ac_t""yes" 1>&6
  10948. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10949. cat >> confdefs.h <<EOF
  10950. #define $ac_tr_hdr 1
  10951. EOF
  10952. else
  10953. echo "$ac_t""no" 1>&6
  10954. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  10955. fi
  10956. done
  10957. CPPFLAGS=$ac_save_cppflags
  10958. # With wxWidgets library directory
  10959. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  10960. # shouldn't have arch flags in C/LD flags on OSX
  10961. for a in i386 ppc x86_64 ppc64
  10962. do
  10963. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  10964. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  10965. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  10966. done
  10967. # check for available OSX archs in wxPython
  10968. if test -n "$MACOSX_ARCHS" ; then
  10969. wxver=`"$WX_CONFIG" --version`
  10970. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  10971. wxlibinfo=`file "$wxlib"`
  10972. for a in i386 ppc x86_64 ppc64
  10973. do
  10974. # add only if in MACOSX_ARCHS
  10975. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  10976. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  10977. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  10978. fi
  10979. fi
  10980. done
  10981. fi
  10982. fi # $USE_WXWIDGETS
  10983. # Done checking wxWidgets
  10984. USE_TERMIO=
  10985. STRIPFLAG=
  10986. GRASS_HOME="${DSTDIR}"
  10987. trap '' 1 2 15
  10988. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10989. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10990. # Let make expand exec_prefix.
  10991. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10992. # Any assignment to VPATH causes Sun make to only execute
  10993. # the first set of double-colon rules, so remove it if not needed.
  10994. # If there is a colon in the path, we need to keep it.
  10995. if test "x$srcdir" = x.; then
  10996. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10997. fi
  10998. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10999. DEFS=-DHAVE_CONFIG_H
  11000. # Without the "./", some shells look in PATH for config.status.
  11001. : ${CONFIG_STATUS=./config.status}
  11002. echo creating $CONFIG_STATUS
  11003. rm -f $CONFIG_STATUS
  11004. cat > $CONFIG_STATUS <<EOF
  11005. #! /bin/sh
  11006. # Generated automatically by configure.
  11007. # Run this file to recreate the current configuration.
  11008. # This directory was configured as follows,
  11009. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11010. #
  11011. # $0 $ac_configure_args
  11012. #
  11013. # Compiler output produced by configure, useful for debugging
  11014. # configure, is in ./config.log if it exists.
  11015. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11016. for ac_option
  11017. do
  11018. case "\$ac_option" in
  11019. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11020. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11021. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11022. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11023. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11024. exit 0 ;;
  11025. -help | --help | --hel | --he | --h)
  11026. echo "\$ac_cs_usage"; exit 0 ;;
  11027. *) echo "\$ac_cs_usage"; exit 1 ;;
  11028. esac
  11029. done
  11030. ac_given_srcdir=$srcdir
  11031. ac_given_INSTALL="$INSTALL"
  11032. trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11033. EOF
  11034. cat >> $CONFIG_STATUS <<EOF
  11035. # Protect against being on the right side of a sed subst in config.status.
  11036. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11037. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11038. $ac_vpsub
  11039. $extrasub
  11040. s%@SHELL@%$SHELL%g
  11041. s%@CFLAGS@%$CFLAGS%g
  11042. s%@CPPFLAGS@%$CPPFLAGS%g
  11043. s%@CXXFLAGS@%$CXXFLAGS%g
  11044. s%@FFLAGS@%$FFLAGS%g
  11045. s%@DEFS@%$DEFS%g
  11046. s%@LDFLAGS@%$LDFLAGS%g
  11047. s%@LIBS@%$LIBS%g
  11048. s%@exec_prefix@%$exec_prefix%g
  11049. s%@prefix@%$prefix%g
  11050. s%@program_transform_name@%$program_transform_name%g
  11051. s%@bindir@%$bindir%g
  11052. s%@sbindir@%$sbindir%g
  11053. s%@libexecdir@%$libexecdir%g
  11054. s%@datadir@%$datadir%g
  11055. s%@sysconfdir@%$sysconfdir%g
  11056. s%@sharedstatedir@%$sharedstatedir%g
  11057. s%@localstatedir@%$localstatedir%g
  11058. s%@libdir@%$libdir%g
  11059. s%@includedir@%$includedir%g
  11060. s%@oldincludedir@%$oldincludedir%g
  11061. s%@infodir@%$infodir%g
  11062. s%@mandir@%$mandir%g
  11063. s%@host@%$host%g
  11064. s%@host_alias@%$host_alias%g
  11065. s%@host_cpu@%$host_cpu%g
  11066. s%@host_vendor@%$host_vendor%g
  11067. s%@host_os@%$host_os%g
  11068. s%@CC@%$CC%g
  11069. s%@EXEEXT@%$EXEEXT%g
  11070. s%@MINGW32@%$MINGW32%g
  11071. s%@BINDIR@%$BINDIR%g
  11072. s%@pwd@%$pwd%g
  11073. s%@SRCDIR@%$SRCDIR%g
  11074. s%@DSTDIR@%$DSTDIR%g
  11075. s%@ARCH@%$ARCH%g
  11076. s%@GISBASE@%$GISBASE%g
  11077. s%@GRASS_BIN@%$GRASS_BIN%g
  11078. s%@SVN_VERSION@%$SVN_VERSION%g
  11079. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11080. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11081. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11082. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11083. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11084. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11085. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11086. s%@NAME_VER@%$NAME_VER%g
  11087. s%@LIB_VER@%$LIB_VER%g
  11088. s%@MACOSX_APP@%$MACOSX_APP%g
  11089. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11090. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11091. s%@INSTDIR@%$INSTDIR%g
  11092. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11093. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11094. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11095. s%@SHLIB_LD@%$SHLIB_LD%g
  11096. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11097. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11098. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11099. s%@STLIB_LD@%$STLIB_LD%g
  11100. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11101. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11102. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11103. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11104. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11105. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11106. s%@LEX@%$LEX%g
  11107. s%@LEXLIB@%$LEXLIB%g
  11108. s%@LEXPATH@%$LEXPATH%g
  11109. s%@YACC@%$YACC%g
  11110. s%@YACCPATH@%$YACCPATH%g
  11111. s%@RANLIB@%$RANLIB%g
  11112. s%@AR@%$AR%g
  11113. s%@ENV@%$ENV%g
  11114. s%@PERL@%$PERL%g
  11115. s%@CPP@%$CPP%g
  11116. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11117. s%@X_CFLAGS@%$X_CFLAGS%g
  11118. s%@X_LIBS@%$X_LIBS%g
  11119. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11120. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11121. s%@XLIB@%$XLIB%g
  11122. s%@XTLIB@%$XTLIB%g
  11123. s%@USE_X11@%$USE_X11%g
  11124. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11125. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11126. s%@MATHLIB@%$MATHLIB%g
  11127. s%@DLLIB@%$DLLIB%g
  11128. s%@ICONVLIB@%$ICONVLIB%g
  11129. s%@SOCKLIB@%$SOCKLIB%g
  11130. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11131. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11132. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11133. s%@ZLIB@%$ZLIB%g
  11134. s%@PROJINC@%$PROJINC%g
  11135. s%@PROJLIB@%$PROJLIB%g
  11136. s%@PROJSHARE@%$PROJSHARE%g
  11137. s%@NAD2BIN@%$NAD2BIN%g
  11138. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11139. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11140. s%@REGEXLIB@%$REGEXLIB%g
  11141. s%@USE_REGEX@%$USE_REGEX%g
  11142. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11143. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11144. s%@READLINELIB@%$READLINELIB%g
  11145. s%@HISTORYLIB@%$HISTORYLIB%g
  11146. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11147. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11148. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11149. s%@USE_GDAL@%$USE_GDAL%g
  11150. s%@USE_OGR@%$USE_OGR%g
  11151. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11152. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11153. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11154. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11155. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11156. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11157. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11158. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11159. s%@USE_NETCDF@%$USE_NETCDF%g
  11160. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11161. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11162. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11163. s%@USE_GEOS@%$USE_GEOS%g
  11164. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11165. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11166. s%@TIFFLIB@%$TIFFLIB%g
  11167. s%@PNGINC@%$PNGINC%g
  11168. s%@PNGLIB@%$PNGLIB%g
  11169. s%@USE_PNG@%$USE_PNG%g
  11170. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11171. s%@PQINCPATH@%$PQINCPATH%g
  11172. s%@PQLIBPATH@%$PQLIBPATH%g
  11173. s%@PQLIB@%$PQLIB%g
  11174. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11175. s%@USE_MYSQL@%$USE_MYSQL%g
  11176. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11177. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11178. s%@MYSQLLIB@%$MYSQLLIB%g
  11179. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11180. s%@USE_SQLITE@%$USE_SQLITE%g
  11181. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11182. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11183. s%@SQLITELIB@%$SQLITELIB%g
  11184. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11185. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11186. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11187. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11188. s%@USE_OPENGL@%$USE_OPENGL%g
  11189. s%@OPENGL_X11@%$OPENGL_X11%g
  11190. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11191. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11192. s%@OPENGLINC@%$OPENGLINC%g
  11193. s%@OPENGLLIB@%$OPENGLLIB%g
  11194. s%@OPENGLULIB@%$OPENGLULIB%g
  11195. s%@ODBCINC@%$ODBCINC%g
  11196. s%@ODBCLIB@%$ODBCLIB%g
  11197. s%@FFTWINC@%$FFTWINC%g
  11198. s%@FFTWLIB@%$FFTWLIB%g
  11199. s%@BLASLIB@%$BLASLIB%g
  11200. s%@BLASINC@%$BLASINC%g
  11201. s%@LAPACKLIB@%$LAPACKLIB%g
  11202. s%@LAPACKINC@%$LAPACKINC%g
  11203. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11204. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11205. s%@CAIROINC@%$CAIROINC%g
  11206. s%@CAIROLIB@%$CAIROLIB%g
  11207. s%@USE_CAIRO@%$USE_CAIRO%g
  11208. s%@FTINC@%$FTINC%g
  11209. s%@FTLIB@%$FTLIB%g
  11210. s%@INTLLIB@%$INTLLIB%g
  11211. s%@HAVE_NLS@%$HAVE_NLS%g
  11212. s%@CXX@%$CXX%g
  11213. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11214. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11215. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11216. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11217. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11218. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11219. s%@PTHREADLIB@%$PTHREADLIB%g
  11220. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11221. s%@OMPINCPATH@%$OMPINCPATH%g
  11222. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11223. s%@OMPLIB@%$OMPLIB%g
  11224. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11225. s%@USE_OPENMP@%$USE_OPENMP%g
  11226. s%@OCLINCPATH@%$OCLINCPATH%g
  11227. s%@OCLLIBPATH@%$OCLLIBPATH%g
  11228. s%@OCLLIB@%$OCLLIB%g
  11229. s%@USE_OPENCL@%$USE_OPENCL%g
  11230. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11231. s%@WX_CONFIG@%$WX_CONFIG%g
  11232. s%@WXVERSION@%$WXVERSION%g
  11233. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11234. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11235. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11236. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11237. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11238. s%@USE_TERMIO@%$USE_TERMIO%g
  11239. s%@STRIPFLAG@%$STRIPFLAG%g
  11240. s%@GRASS_HOME@%$GRASS_HOME%g
  11241. CEOF
  11242. EOF
  11243. cat >> $CONFIG_STATUS <<\EOF
  11244. # Split the substitutions into bite-sized pieces for seds with
  11245. # small command number limits, like on Digital OSF/1 and HP-UX.
  11246. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11247. ac_file=1 # Number of current file.
  11248. ac_beg=1 # First line for current file.
  11249. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11250. ac_more_lines=:
  11251. ac_sed_cmds=""
  11252. while $ac_more_lines; do
  11253. if test $ac_beg -gt 1; then
  11254. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11255. else
  11256. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11257. fi
  11258. if test ! -s conftest.s$ac_file; then
  11259. ac_more_lines=false
  11260. rm -f conftest.s$ac_file
  11261. else
  11262. if test -z "$ac_sed_cmds"; then
  11263. ac_sed_cmds="sed -f conftest.s$ac_file"
  11264. else
  11265. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11266. fi
  11267. ac_file=`expr $ac_file + 1`
  11268. ac_beg=$ac_end
  11269. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11270. fi
  11271. done
  11272. if test -z "$ac_sed_cmds"; then
  11273. ac_sed_cmds=cat
  11274. fi
  11275. EOF
  11276. cat >> $CONFIG_STATUS <<EOF
  11277. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11278. EOF
  11279. cat >> $CONFIG_STATUS <<\EOF
  11280. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11281. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11282. case "$ac_file" in
  11283. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11284. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11285. *) ac_file_in="${ac_file}.in" ;;
  11286. esac
  11287. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11288. # Remove last slash and all that follows it. Not all systems have dirname.
  11289. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11290. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11291. # The file is in a subdirectory.
  11292. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11293. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11294. # A "../" for each directory in $ac_dir_suffix.
  11295. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11296. else
  11297. ac_dir_suffix= ac_dots=
  11298. fi
  11299. case "$ac_given_srcdir" in
  11300. .) srcdir=.
  11301. if test -z "$ac_dots"; then top_srcdir=.
  11302. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11303. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11304. *) # Relative path.
  11305. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11306. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11307. esac
  11308. case "$ac_given_INSTALL" in
  11309. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11310. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11311. esac
  11312. echo creating "$ac_file"
  11313. rm -f "$ac_file"
  11314. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11315. case "$ac_file" in
  11316. *Makefile*) ac_comsub="1i\\
  11317. # $configure_input" ;;
  11318. *) ac_comsub= ;;
  11319. esac
  11320. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11321. sed -e "$ac_comsub
  11322. s%@configure_input@%$configure_input%g
  11323. s%@srcdir@%$srcdir%g
  11324. s%@top_srcdir@%$top_srcdir%g
  11325. s%@INSTALL@%$INSTALL%g
  11326. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11327. fi; done
  11328. rm -f conftest.s*
  11329. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11330. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11331. #
  11332. # ac_d sets the value in "#define NAME VALUE" lines.
  11333. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11334. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11335. ac_dC='\3'
  11336. ac_dD='%g'
  11337. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11338. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11339. ac_uB='\([ ]\)%\1#\2define\3'
  11340. ac_uC=' '
  11341. ac_uD='\4%g'
  11342. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11343. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11344. ac_eB='$%\1#\2define\3'
  11345. ac_eC=' '
  11346. ac_eD='%g'
  11347. if test "${CONFIG_HEADERS+set}" != set; then
  11348. EOF
  11349. cat >> $CONFIG_STATUS <<EOF
  11350. CONFIG_HEADERS="include/config.h"
  11351. EOF
  11352. cat >> $CONFIG_STATUS <<\EOF
  11353. fi
  11354. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11355. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11356. case "$ac_file" in
  11357. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11358. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11359. *) ac_file_in="${ac_file}.in" ;;
  11360. esac
  11361. echo creating $ac_file
  11362. rm -f conftest.frag conftest.in conftest.out
  11363. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11364. cat $ac_file_inputs > conftest.in
  11365. EOF
  11366. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11367. # the proper values into config.h.in to produce config.h. And first:
  11368. # Protect against being on the right side of a sed subst in config.status.
  11369. # Protect against being in an unquoted here document in config.status.
  11370. rm -f conftest.vals
  11371. cat > conftest.hdr <<\EOF
  11372. s/[\\&%]/\\&/g
  11373. s%[\\$`]%\\&%g
  11374. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11375. s%ac_d%ac_u%gp
  11376. s%ac_u%ac_e%gp
  11377. EOF
  11378. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11379. rm -f conftest.hdr
  11380. # This sed command replaces #undef with comments. This is necessary, for
  11381. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11382. # on some systems where configure will not decide to define it.
  11383. cat >> conftest.vals <<\EOF
  11384. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11385. EOF
  11386. # Break up conftest.vals because some shells have a limit on
  11387. # the size of here documents, and old seds have small limits too.
  11388. rm -f conftest.tail
  11389. while :
  11390. do
  11391. ac_lines=`grep -c . conftest.vals`
  11392. # grep -c gives empty output for an empty file on some AIX systems.
  11393. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11394. # Write a limited-size here document to conftest.frag.
  11395. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11396. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11397. echo 'CEOF
  11398. sed -f conftest.frag conftest.in > conftest.out
  11399. rm -f conftest.in
  11400. mv conftest.out conftest.in
  11401. ' >> $CONFIG_STATUS
  11402. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11403. rm -f conftest.vals
  11404. mv conftest.tail conftest.vals
  11405. done
  11406. rm -f conftest.vals
  11407. cat >> $CONFIG_STATUS <<\EOF
  11408. rm -f conftest.frag conftest.h
  11409. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11410. cat conftest.in >> conftest.h
  11411. rm -f conftest.in
  11412. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11413. echo "$ac_file is unchanged"
  11414. rm -f conftest.h
  11415. else
  11416. # Remove last slash and all that follows it. Not all systems have dirname.
  11417. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11418. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11419. # The file is in a subdirectory.
  11420. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11421. fi
  11422. rm -f $ac_file
  11423. mv conftest.h $ac_file
  11424. fi
  11425. fi; done
  11426. EOF
  11427. cat >> $CONFIG_STATUS <<EOF
  11428. EOF
  11429. cat >> $CONFIG_STATUS <<\EOF
  11430. exit 0
  11431. EOF
  11432. chmod +x $CONFIG_STATUS
  11433. rm -fr confdefs* $ac_clean_files
  11434. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11435. echo "Copying config.status to config.status.${ARCH}"
  11436. cp -f config.status config.status.${ARCH}
  11437. # Display configuration status
  11438. echo ""
  11439. echo "GRASS is now configured for: ${host}"
  11440. echo ""
  11441. echo " Source directory: ${SRCDIR}"
  11442. echo " Build directory: ${DSTDIR}"
  11443. echo " Installation directory: ${INSTDIR}"
  11444. echo " Startup script in directory:${bindir}"
  11445. echo " C compiler: ${CC} ${CFLAGS}"
  11446. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11447. echo " Building shared libraries: ${shared_ok}"
  11448. echo " OpenGL platform: ${OPENGL_TYPE}"
  11449. echo ""
  11450. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11451. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11452. echo " MacOSX SDK: ${MACOSX_SDK}"
  11453. echo ""
  11454. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11455. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11456. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11457. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11458. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11459. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11460. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11461. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11462. echo " NETCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11463. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11464. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11465. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11466. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11467. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11468. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11469. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11470. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11471. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11472. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11473. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11474. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11475. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11476. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11477. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11478. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11479. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11480. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11481. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11482. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11483. echo ""