configure 360 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011
  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: yes)"
  39. ac_help="$ac_help
  40. --with-opengl support OpenGL functionality (default: yes)"
  41. ac_help="$ac_help
  42. --with-odbc support ODBC functionality (default: no)"
  43. ac_help="$ac_help
  44. --with-fftw support FFTW functionality (default: yes)"
  45. ac_help="$ac_help
  46. --with-blas support BLAS functionality (default: no)"
  47. ac_help="$ac_help
  48. --with-lapack support LAPACK functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-cairo support Cairo functionality (default: yes)"
  51. ac_help="$ac_help
  52. --with-freetype support FreeType functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-nls support NLS functionality (default: no)"
  55. ac_help="$ac_help
  56. --with-readline support Readline functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-opendwg support openDWG functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-regex support regex functionality (default: yes)"
  61. ac_help="$ac_help
  62. --with-pthread support POSIX threads functionality (default: no)"
  63. ac_help="$ac_help
  64. --with-openmp support OpenMP functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-opencl support OpenCL functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-gdal[=path/gdal-config]
  69. enable GDAL/OGR support (gdal-config with path,
  70. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  71. ac_help="$ac_help
  72. --with-liblas[=path/liblas-config]
  73. enable libLAS support (liblas-config with path,
  74. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  75. default: no)"
  76. ac_help="$ac_help
  77. --with-wxwidgets[=path/wx-config]
  78. enable wxWidgets support (wx-config with path,
  79. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  80. default: no)"
  81. ac_help="$ac_help
  82. --with-netcdf[=path/nc-config]
  83. enable NetCDF support (nc-config with path,
  84. e.g. '--with-nc=/usr/local/bin/nc-config',
  85. default: no)"
  86. ac_help="$ac_help
  87. --with-geos[=path/geos-config]
  88. enable GEOS support (geos-config with path,
  89. e.g. '--with-geos=/usr/local/bin/geos-config',
  90. default: no)"
  91. ac_help="$ac_help
  92. --with-includes=DIRS site include files are in DIRS"
  93. ac_help="$ac_help
  94. --with-libs=DIRS site library files are in DIRS"
  95. ac_help="$ac_help
  96. --with-zlib-includes=DIRS
  97. zlib include files are in DIRS"
  98. ac_help="$ac_help
  99. --with-zlib-libs=DIRS zlib library files are in DIRS"
  100. ac_help="$ac_help
  101. --with-readline-includes=DIRS
  102. Readline include files are in DIRS"
  103. ac_help="$ac_help
  104. --with-readline-libs=DIRS
  105. Readline library files are in DIRS"
  106. ac_help="$ac_help
  107. --with-tiff-includes=DIRS
  108. TIFF include files are in DIRS"
  109. ac_help="$ac_help
  110. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  111. ac_help="$ac_help
  112. --with-png-includes=DIRS
  113. PNG include files are in DIRS"
  114. ac_help="$ac_help
  115. --with-png-libs=DIRS PNG library files are in DIRS"
  116. ac_help="$ac_help
  117. --with-postgres-includes=DIRS
  118. PostgreSQL include files are in DIRS"
  119. ac_help="$ac_help
  120. --with-postgres-libs=DIRS
  121. PostgreSQL library files are in DIRS"
  122. ac_help="$ac_help
  123. --with-mysql-includes=DIRS
  124. MySQL include files are in DIRS"
  125. ac_help="$ac_help
  126. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  127. ac_help="$ac_help
  128. --with-sqlite-includes=DIRS
  129. SQLite include files are in DIRS"
  130. ac_help="$ac_help
  131. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  132. ac_help="$ac_help
  133. --with-opengl-includes=DIRS
  134. OpenGL include files are in DIRS"
  135. ac_help="$ac_help
  136. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  137. ac_help="$ac_help
  138. --with-opengl-framework=DIR
  139. OpenGL framework is in DIR"
  140. ac_help="$ac_help
  141. --with-odbc-includes=DIRS
  142. ODBC include files are in DIRS"
  143. ac_help="$ac_help
  144. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  145. ac_help="$ac_help
  146. --with-fftw-includes=DIRS
  147. FFTW include files are in DIRS"
  148. ac_help="$ac_help
  149. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  150. ac_help="$ac_help
  151. --with-blas-includes=DIRS
  152. BLAS include files are in DIRS"
  153. ac_help="$ac_help
  154. --with-blas-libs=DIRS BLAS library files are in DIRS"
  155. ac_help="$ac_help
  156. --with-lapack-includes=DIRS
  157. LAPACK include files are in DIRS"
  158. ac_help="$ac_help
  159. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  160. ac_help="$ac_help
  161. --with-cairo-includes=DIRS
  162. cairo include files are in DIRS"
  163. ac_help="$ac_help
  164. --with-cairo-libs=DIRS cairo library files are in DIRS"
  165. ac_help="$ac_help
  166. --with-cairo-ldflags=FLAGS
  167. cairo needs FLAGS when linking"
  168. ac_help="$ac_help
  169. --with-freetype-includes=DIRS
  170. FreeType include files are in DIRS"
  171. ac_help="$ac_help
  172. --with-freetype-libs=DIRS
  173. FreeType library files are in DIRS"
  174. ac_help="$ac_help
  175. --with-proj-includes=DIRS
  176. External PROJ.4 include files are in DIRS"
  177. ac_help="$ac_help
  178. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  179. ac_help="$ac_help
  180. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  181. ac_help="$ac_help
  182. --with-opendwg-includes=DIRS
  183. openDWG include files are in DIRS"
  184. ac_help="$ac_help
  185. --with-opendwg-libs=DIRS
  186. openDWG library files are in DIRS"
  187. ac_help="$ac_help
  188. --with-regex-includes=DIRS
  189. regex include files are in DIRS"
  190. ac_help="$ac_help
  191. --with-regex-libs=DIRS regex library files are in DIRS"
  192. ac_help="$ac_help
  193. --with-pthread-includes=DIRS
  194. POSIX threads include files are in DIRS"
  195. ac_help="$ac_help
  196. --with-pthread-libs=DIRS
  197. POSIX threads library files are in DIRS"
  198. ac_help="$ac_help
  199. --with-openmp-includes=DIRS
  200. OpenMP include files are in DIRS"
  201. ac_help="$ac_help
  202. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  203. ac_help="$ac_help
  204. --with-opencl-includes=DIRS
  205. OpenCL include files are in DIRS"
  206. ac_help="$ac_help
  207. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  208. ac_help="$ac_help
  209. --with-x use the X Window System"
  210. ac_help="$ac_help
  211. --disable-largefile omit support for large files (LFS)"
  212. # Initialize some variables set by options.
  213. # The variables have the same names as the options, with
  214. # dashes changed to underlines.
  215. build=NONE
  216. cache_file=./config.cache
  217. exec_prefix=NONE
  218. host=NONE
  219. no_create=
  220. nonopt=NONE
  221. no_recursion=
  222. prefix=NONE
  223. program_prefix=NONE
  224. program_suffix=NONE
  225. program_transform_name=s,x,x,
  226. silent=
  227. site=
  228. srcdir=
  229. target=NONE
  230. verbose=
  231. x_includes=NONE
  232. x_libraries=NONE
  233. bindir='${exec_prefix}/bin'
  234. sbindir='${exec_prefix}/sbin'
  235. libexecdir='${exec_prefix}/libexec'
  236. datadir='${prefix}/share'
  237. sysconfdir='${prefix}/etc'
  238. sharedstatedir='${prefix}/com'
  239. localstatedir='${prefix}/var'
  240. libdir='${exec_prefix}/lib'
  241. includedir='${prefix}/include'
  242. oldincludedir='/usr/include'
  243. infodir='${prefix}/info'
  244. mandir='${prefix}/man'
  245. # Initialize some other variables.
  246. subdirs=
  247. MFLAGS= MAKEFLAGS=
  248. SHELL=${CONFIG_SHELL-/bin/sh}
  249. # Maximum number of lines to put in a shell here document.
  250. ac_max_here_lines=12
  251. ac_prev=
  252. for ac_option
  253. do
  254. # If the previous option needs an argument, assign it.
  255. if test -n "$ac_prev"; then
  256. eval "$ac_prev=\$ac_option"
  257. ac_prev=
  258. continue
  259. fi
  260. case "$ac_option" in
  261. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  262. *) ac_optarg= ;;
  263. esac
  264. # Accept the important Cygnus configure options, so we can diagnose typos.
  265. case "$ac_option" in
  266. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  267. ac_prev=bindir ;;
  268. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  269. bindir="$ac_optarg" ;;
  270. -build | --build | --buil | --bui | --bu)
  271. ac_prev=build ;;
  272. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  273. build="$ac_optarg" ;;
  274. -cache-file | --cache-file | --cache-fil | --cache-fi \
  275. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  276. ac_prev=cache_file ;;
  277. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  278. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  279. cache_file="$ac_optarg" ;;
  280. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  281. ac_prev=datadir ;;
  282. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  283. | --da=*)
  284. datadir="$ac_optarg" ;;
  285. -disable-* | --disable-*)
  286. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  287. # Reject names that are not valid shell variable names.
  288. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  289. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  290. fi
  291. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  292. eval "enable_${ac_feature}=no" ;;
  293. -enable-* | --enable-*)
  294. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  295. # Reject names that are not valid shell variable names.
  296. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  297. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  298. fi
  299. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  300. case "$ac_option" in
  301. *=*) ;;
  302. *) ac_optarg=yes ;;
  303. esac
  304. eval "enable_${ac_feature}='$ac_optarg'" ;;
  305. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  306. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  307. | --exec | --exe | --ex)
  308. ac_prev=exec_prefix ;;
  309. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  310. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  311. | --exec=* | --exe=* | --ex=*)
  312. exec_prefix="$ac_optarg" ;;
  313. -gas | --gas | --ga | --g)
  314. # Obsolete; use --with-gas.
  315. with_gas=yes ;;
  316. -help | --help | --hel | --he)
  317. # Omit some internal or obsolete options to make the list less imposing.
  318. # This message is too long to be a string in the A/UX 3.1 sh.
  319. cat << EOF
  320. Usage: configure [options] [host]
  321. Options: [defaults in brackets after descriptions]
  322. Configuration:
  323. --cache-file=FILE cache test results in FILE
  324. --help print this message
  325. --no-create do not create output files
  326. --quiet, --silent do not print \`checking...' messages
  327. --version print the version of autoconf that created configure
  328. Directory and file names:
  329. --prefix=PREFIX install architecture-independent files in PREFIX
  330. [$ac_default_prefix]
  331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  332. [same as prefix]
  333. --bindir=DIR user executables in DIR [EPREFIX/bin]
  334. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  335. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  336. --datadir=DIR read-only architecture-independent data in DIR
  337. [PREFIX/share]
  338. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  339. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  340. [PREFIX/com]
  341. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  342. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  343. --includedir=DIR C header files in DIR [PREFIX/include]
  344. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  345. --infodir=DIR info documentation in DIR [PREFIX/info]
  346. --mandir=DIR man documentation in DIR [PREFIX/man]
  347. --srcdir=DIR find the sources in DIR [configure dir or ..]
  348. --program-prefix=PREFIX prepend PREFIX to installed program names
  349. --program-suffix=SUFFIX append SUFFIX to installed program names
  350. --program-transform-name=PROGRAM
  351. run sed PROGRAM on installed program names
  352. EOF
  353. cat << EOF
  354. Host type:
  355. --build=BUILD configure for building on BUILD [BUILD=HOST]
  356. --host=HOST configure for HOST [guessed]
  357. --target=TARGET configure for TARGET [TARGET=HOST]
  358. Features and packages:
  359. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  360. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  361. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  362. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  363. --x-includes=DIR X include files are in DIR
  364. --x-libraries=DIR X library files are in DIR
  365. EOF
  366. if test -n "$ac_help"; then
  367. echo "--enable and --with options recognized:$ac_help"
  368. fi
  369. exit 0 ;;
  370. -host | --host | --hos | --ho)
  371. ac_prev=host ;;
  372. -host=* | --host=* | --hos=* | --ho=*)
  373. host="$ac_optarg" ;;
  374. -includedir | --includedir | --includedi | --included | --include \
  375. | --includ | --inclu | --incl | --inc)
  376. ac_prev=includedir ;;
  377. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  378. | --includ=* | --inclu=* | --incl=* | --inc=*)
  379. includedir="$ac_optarg" ;;
  380. -infodir | --infodir | --infodi | --infod | --info | --inf)
  381. ac_prev=infodir ;;
  382. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  383. infodir="$ac_optarg" ;;
  384. -libdir | --libdir | --libdi | --libd)
  385. ac_prev=libdir ;;
  386. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  387. libdir="$ac_optarg" ;;
  388. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  389. | --libexe | --libex | --libe)
  390. ac_prev=libexecdir ;;
  391. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  392. | --libexe=* | --libex=* | --libe=*)
  393. libexecdir="$ac_optarg" ;;
  394. -localstatedir | --localstatedir | --localstatedi | --localstated \
  395. | --localstate | --localstat | --localsta | --localst \
  396. | --locals | --local | --loca | --loc | --lo)
  397. ac_prev=localstatedir ;;
  398. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  399. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  400. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  401. localstatedir="$ac_optarg" ;;
  402. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  403. ac_prev=mandir ;;
  404. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  405. mandir="$ac_optarg" ;;
  406. -nfp | --nfp | --nf)
  407. # Obsolete; use --without-fp.
  408. with_fp=no ;;
  409. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  410. | --no-cr | --no-c)
  411. no_create=yes ;;
  412. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  413. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  414. no_recursion=yes ;;
  415. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  416. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  417. | --oldin | --oldi | --old | --ol | --o)
  418. ac_prev=oldincludedir ;;
  419. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  420. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  421. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  422. oldincludedir="$ac_optarg" ;;
  423. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  424. ac_prev=prefix ;;
  425. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  426. prefix="$ac_optarg" ;;
  427. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  428. | --program-pre | --program-pr | --program-p)
  429. ac_prev=program_prefix ;;
  430. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  431. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  432. program_prefix="$ac_optarg" ;;
  433. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  434. | --program-suf | --program-su | --program-s)
  435. ac_prev=program_suffix ;;
  436. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  437. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  438. program_suffix="$ac_optarg" ;;
  439. -program-transform-name | --program-transform-name \
  440. | --program-transform-nam | --program-transform-na \
  441. | --program-transform-n | --program-transform- \
  442. | --program-transform | --program-transfor \
  443. | --program-transfo | --program-transf \
  444. | --program-trans | --program-tran \
  445. | --progr-tra | --program-tr | --program-t)
  446. ac_prev=program_transform_name ;;
  447. -program-transform-name=* | --program-transform-name=* \
  448. | --program-transform-nam=* | --program-transform-na=* \
  449. | --program-transform-n=* | --program-transform-=* \
  450. | --program-transform=* | --program-transfor=* \
  451. | --program-transfo=* | --program-transf=* \
  452. | --program-trans=* | --program-tran=* \
  453. | --progr-tra=* | --program-tr=* | --program-t=*)
  454. program_transform_name="$ac_optarg" ;;
  455. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  456. | -silent | --silent | --silen | --sile | --sil)
  457. silent=yes ;;
  458. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  459. ac_prev=sbindir ;;
  460. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  461. | --sbi=* | --sb=*)
  462. sbindir="$ac_optarg" ;;
  463. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  464. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  465. | --sharedst | --shareds | --shared | --share | --shar \
  466. | --sha | --sh)
  467. ac_prev=sharedstatedir ;;
  468. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  469. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  470. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  471. | --sha=* | --sh=*)
  472. sharedstatedir="$ac_optarg" ;;
  473. -site | --site | --sit)
  474. ac_prev=site ;;
  475. -site=* | --site=* | --sit=*)
  476. site="$ac_optarg" ;;
  477. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  478. ac_prev=srcdir ;;
  479. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  480. srcdir="$ac_optarg" ;;
  481. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  482. | --syscon | --sysco | --sysc | --sys | --sy)
  483. ac_prev=sysconfdir ;;
  484. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  485. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  486. sysconfdir="$ac_optarg" ;;
  487. -target | --target | --targe | --targ | --tar | --ta | --t)
  488. ac_prev=target ;;
  489. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  490. target="$ac_optarg" ;;
  491. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  492. verbose=yes ;;
  493. -version | --version | --versio | --versi | --vers)
  494. echo "configure generated by autoconf version 2.13"
  495. exit 0 ;;
  496. -with-* | --with-*)
  497. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  498. # Reject names that are not valid shell variable names.
  499. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  500. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  501. fi
  502. ac_package=`echo $ac_package| sed 's/-/_/g'`
  503. case "$ac_option" in
  504. *=*) ;;
  505. *) ac_optarg=yes ;;
  506. esac
  507. eval "with_${ac_package}='$ac_optarg'" ;;
  508. -without-* | --without-*)
  509. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  510. # Reject names that are not valid shell variable names.
  511. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  512. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  513. fi
  514. ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. eval "with_${ac_package}=no" ;;
  516. --x)
  517. # Obsolete; use --with-x.
  518. with_x=yes ;;
  519. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  520. | --x-incl | --x-inc | --x-in | --x-i)
  521. ac_prev=x_includes ;;
  522. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  523. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  524. x_includes="$ac_optarg" ;;
  525. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  526. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  527. ac_prev=x_libraries ;;
  528. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  529. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  530. x_libraries="$ac_optarg" ;;
  531. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  532. ;;
  533. *)
  534. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  535. echo "configure: warning: $ac_option: invalid host type" 1>&2
  536. fi
  537. if test "x$nonopt" != xNONE; then
  538. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  539. fi
  540. nonopt="$ac_option"
  541. ;;
  542. esac
  543. done
  544. if test -n "$ac_prev"; then
  545. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  546. fi
  547. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  548. # File descriptor usage:
  549. # 0 standard input
  550. # 1 file creation
  551. # 2 errors and warnings
  552. # 3 some systems may open it to /dev/tty
  553. # 4 used on the Kubota Titan
  554. # 6 checking for... messages and results
  555. # 5 compiler messages saved in config.log
  556. if test "$silent" = yes; then
  557. exec 6>/dev/null
  558. else
  559. exec 6>&1
  560. fi
  561. exec 5>./config.log
  562. echo "\
  563. This file contains any messages produced by compilers while
  564. running configure, to aid debugging if configure makes a mistake.
  565. " 1>&5
  566. # Strip out --no-create and --no-recursion so they do not pile up.
  567. # Also quote any args containing shell metacharacters.
  568. ac_configure_args=
  569. for ac_arg
  570. do
  571. case "$ac_arg" in
  572. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  573. | --no-cr | --no-c) ;;
  574. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  575. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  576. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  577. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  578. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  579. esac
  580. done
  581. # NLS nuisances.
  582. # Only set these to C if already set. These must not be set unconditionally
  583. # because not all systems understand e.g. LANG=C (notably SCO).
  584. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  585. # Non-C LC_CTYPE values break the ctype check.
  586. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  587. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  588. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  589. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  590. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  591. rm -rf conftest* confdefs.h
  592. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  593. echo > confdefs.h
  594. # A filename unique to this package, relative to the directory that
  595. # configure is in, which we can look for to find out if srcdir is correct.
  596. ac_unique_file=configure.in
  597. # Find the source files, if location was not specified.
  598. if test -z "$srcdir"; then
  599. ac_srcdir_defaulted=yes
  600. # Try the directory containing this script, then its parent.
  601. ac_prog=$0
  602. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  603. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  604. srcdir=$ac_confdir
  605. if test ! -r $srcdir/$ac_unique_file; then
  606. srcdir=..
  607. fi
  608. else
  609. ac_srcdir_defaulted=no
  610. fi
  611. if test ! -r $srcdir/$ac_unique_file; then
  612. if test "$ac_srcdir_defaulted" = yes; then
  613. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  614. else
  615. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  616. fi
  617. fi
  618. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  619. # Prefer explicitly selected file to automatically selected ones.
  620. if test -z "$CONFIG_SITE"; then
  621. if test "x$prefix" != xNONE; then
  622. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  623. else
  624. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  625. fi
  626. fi
  627. for ac_site_file in $CONFIG_SITE; do
  628. if test -r "$ac_site_file"; then
  629. echo "loading site script $ac_site_file"
  630. . "$ac_site_file"
  631. fi
  632. done
  633. ac_ext=c
  634. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  635. ac_cpp='$CPP $CPPFLAGS'
  636. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  637. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  638. cross_compiling=$ac_cv_prog_cc_cross
  639. ac_exeext=
  640. ac_objext=o
  641. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  642. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  643. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  644. ac_n= ac_c='
  645. ' ac_t=' '
  646. else
  647. ac_n=-n ac_c= ac_t=
  648. fi
  649. else
  650. ac_n= ac_c='\c' ac_t=
  651. fi
  652. ac_aux_dir=
  653. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  654. if test -f $ac_dir/install-sh; then
  655. ac_aux_dir=$ac_dir
  656. ac_install_sh="$ac_aux_dir/install-sh -c"
  657. break
  658. elif test -f $ac_dir/install.sh; then
  659. ac_aux_dir=$ac_dir
  660. ac_install_sh="$ac_aux_dir/install.sh -c"
  661. break
  662. fi
  663. done
  664. if test -z "$ac_aux_dir"; then
  665. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  666. fi
  667. ac_config_guess=$ac_aux_dir/config.guess
  668. ac_config_sub=$ac_aux_dir/config.sub
  669. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  670. # Make sure we can run config.sub.
  671. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  672. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  673. fi
  674. echo $ac_n "checking host system type""... $ac_c" 1>&6
  675. echo "configure:747: checking host system type" >&5
  676. host_alias=$host
  677. case "$host_alias" in
  678. NONE)
  679. case $nonopt in
  680. NONE)
  681. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  682. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  683. fi ;;
  684. *) host_alias=$nonopt ;;
  685. esac ;;
  686. esac
  687. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  688. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  689. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  690. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  691. echo "$ac_t""$host" 1>&6
  692. # Extract the first word of "gcc", so it can be a program name with args.
  693. set dummy gcc; ac_word=$2
  694. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  695. echo "configure:770: checking for $ac_word" >&5
  696. if test -n "$CC"; then
  697. ac_cv_prog_CC="$CC" # Let the user override the test.
  698. else
  699. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  700. ac_dummy="$PATH"
  701. for ac_dir in $ac_dummy; do
  702. test -z "$ac_dir" && ac_dir=.
  703. if test -f $ac_dir/$ac_word; then
  704. ac_cv_prog_CC="gcc"
  705. break
  706. fi
  707. done
  708. IFS="$ac_save_ifs"
  709. fi
  710. CC="$ac_cv_prog_CC"
  711. if test -n "$CC"; then
  712. echo "$ac_t""$CC" 1>&6
  713. else
  714. echo "$ac_t""no" 1>&6
  715. fi
  716. if test -z "$CC"; then
  717. # Extract the first word of "cc", so it can be a program name with args.
  718. set dummy cc; ac_word=$2
  719. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  720. echo "configure:797: checking for $ac_word" >&5
  721. if test -n "$CC"; then
  722. ac_cv_prog_CC="$CC" # Let the user override the test.
  723. else
  724. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  725. ac_prog_rejected=no
  726. ac_dummy="$PATH"
  727. for ac_dir in $ac_dummy; do
  728. test -z "$ac_dir" && ac_dir=.
  729. if test -f $ac_dir/$ac_word; then
  730. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  731. ac_prog_rejected=yes
  732. continue
  733. fi
  734. ac_cv_prog_CC="cc"
  735. break
  736. fi
  737. done
  738. IFS="$ac_save_ifs"
  739. if test $ac_prog_rejected = yes; then
  740. # We found a bogon in the path, so make sure we never use it.
  741. set dummy $ac_cv_prog_CC
  742. shift
  743. if test $# -gt 0; then
  744. # We chose a different compiler from the bogus one.
  745. # However, it has the same basename, so the bogon will be chosen
  746. # first if we set CC to just the basename; use the full file name.
  747. shift
  748. set dummy "$ac_dir/$ac_word" "$@"
  749. shift
  750. ac_cv_prog_CC="$@"
  751. fi
  752. fi
  753. fi
  754. CC="$ac_cv_prog_CC"
  755. if test -n "$CC"; then
  756. echo "$ac_t""$CC" 1>&6
  757. else
  758. echo "$ac_t""no" 1>&6
  759. fi
  760. if test -z "$CC"; then
  761. case "`uname -s`" in
  762. *win32* | *WIN32*)
  763. # Extract the first word of "cl", so it can be a program name with args.
  764. set dummy cl; ac_word=$2
  765. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  766. echo "configure:845: checking for $ac_word" >&5
  767. if test -n "$CC"; then
  768. ac_cv_prog_CC="$CC" # Let the user override the test.
  769. else
  770. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  771. ac_dummy="$PATH"
  772. for ac_dir in $ac_dummy; do
  773. test -z "$ac_dir" && ac_dir=.
  774. if test -f $ac_dir/$ac_word; then
  775. ac_cv_prog_CC="cl"
  776. break
  777. fi
  778. done
  779. IFS="$ac_save_ifs"
  780. fi
  781. CC="$ac_cv_prog_CC"
  782. if test -n "$CC"; then
  783. echo "$ac_t""$CC" 1>&6
  784. else
  785. echo "$ac_t""no" 1>&6
  786. fi
  787. ;;
  788. esac
  789. fi
  790. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  791. fi
  792. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  793. echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  794. ac_ext=c
  795. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  796. ac_cpp='$CPP $CPPFLAGS'
  797. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  798. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  799. cross_compiling=$ac_cv_prog_cc_cross
  800. cat > conftest.$ac_ext << EOF
  801. #line 885 "configure"
  802. #include "confdefs.h"
  803. main(){return(0);}
  804. EOF
  805. if { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  806. ac_cv_prog_cc_works=yes
  807. # If we can't run a trivial program, we are probably using a cross compiler.
  808. if (./conftest; exit) 2>/dev/null; then
  809. ac_cv_prog_cc_cross=no
  810. else
  811. ac_cv_prog_cc_cross=yes
  812. fi
  813. else
  814. echo "configure: failed program was:" >&5
  815. cat conftest.$ac_ext >&5
  816. ac_cv_prog_cc_works=no
  817. fi
  818. rm -fr conftest*
  819. ac_ext=c
  820. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  821. ac_cpp='$CPP $CPPFLAGS'
  822. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  823. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  824. cross_compiling=$ac_cv_prog_cc_cross
  825. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  826. if test $ac_cv_prog_cc_works = no; then
  827. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  828. fi
  829. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  830. echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  831. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  832. cross_compiling=$ac_cv_prog_cc_cross
  833. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  834. echo "configure:921: checking whether we are using GNU C" >&5
  835. cat > conftest.c <<EOF
  836. #ifdef __GNUC__
  837. yes;
  838. #endif
  839. EOF
  840. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  841. ac_cv_prog_gcc=yes
  842. else
  843. ac_cv_prog_gcc=no
  844. fi
  845. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  846. if test $ac_cv_prog_gcc = yes; then
  847. GCC=yes
  848. else
  849. GCC=
  850. fi
  851. ac_test_CFLAGS="${CFLAGS+set}"
  852. ac_save_CFLAGS="$CFLAGS"
  853. CFLAGS=
  854. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  855. echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
  856. echo 'void f(){}' > conftest.c
  857. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  858. ac_cv_prog_cc_g=yes
  859. else
  860. ac_cv_prog_cc_g=no
  861. fi
  862. rm -f conftest*
  863. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  864. if test "$ac_test_CFLAGS" = set; then
  865. CFLAGS="$ac_save_CFLAGS"
  866. elif test $ac_cv_prog_cc_g = yes; then
  867. if test "$GCC" = yes; then
  868. CFLAGS="-g -O2"
  869. else
  870. CFLAGS="-g"
  871. fi
  872. else
  873. if test "$GCC" = yes; then
  874. CFLAGS="-O2"
  875. else
  876. CFLAGS=
  877. fi
  878. fi
  879. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  880. echo "configure:975: checking for Cygwin environment" >&5
  881. cat > conftest.$ac_ext <<EOF
  882. #line 978 "configure"
  883. #include "confdefs.h"
  884. int main() {
  885. #ifndef __CYGWIN__
  886. #define __CYGWIN__ __CYGWIN32__
  887. #endif
  888. return __CYGWIN__;
  889. ; return 0; }
  890. EOF
  891. if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  892. rm -rf conftest*
  893. ac_cv_cygwin=yes
  894. else
  895. echo "configure: failed program was:" >&5
  896. cat conftest.$ac_ext >&5
  897. rm -rf conftest*
  898. ac_cv_cygwin=no
  899. fi
  900. rm -f conftest*
  901. rm -f conftest*
  902. echo "$ac_t""$ac_cv_cygwin" 1>&6
  903. CYGWIN=
  904. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  905. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  906. echo "configure:1005: checking for mingw32 environment" >&5
  907. cat > conftest.$ac_ext <<EOF
  908. #line 1008 "configure"
  909. #include "confdefs.h"
  910. int main() {
  911. return __MINGW32__;
  912. ; return 0; }
  913. EOF
  914. if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  915. rm -rf conftest*
  916. ac_cv_mingw32=yes
  917. else
  918. echo "configure: failed program was:" >&5
  919. cat conftest.$ac_ext >&5
  920. rm -rf conftest*
  921. ac_cv_mingw32=no
  922. fi
  923. rm -f conftest*
  924. rm -f conftest*
  925. echo "$ac_t""$ac_cv_mingw32" 1>&6
  926. MINGW32=
  927. test "$ac_cv_mingw32" = yes && MINGW32=yes
  928. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  929. echo "configure:1033: checking for executable suffix" >&5
  930. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  931. ac_cv_exeext=.exe
  932. else
  933. ac_cv_exeext=no
  934. fi
  935. EXEEXT=""
  936. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  937. echo "$ac_t""${ac_cv_exeext}" 1>&6
  938. ac_exeext=$EXEEXT
  939. # Check for full floating-point support, including Infinity and NaN
  940. IEEEFLAG=
  941. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  942. echo "configure:1052: checking for full floating-point support" >&5
  943. if test "$cross_compiling" = yes; then
  944. echo "$ac_t""unknown (cross-compiling)" 1>&6
  945. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  946. echo "configure:1057: checking whether "cc -mieee" works" >&5
  947. ac_save_cflags=${CFLAGS}
  948. CFLAGS="$CFLAGS -mieee"
  949. cat > conftest.$ac_ext <<EOF
  950. #line 1061 "configure"
  951. #include "confdefs.h"
  952. int main() {
  953. ; return 0; }
  954. EOF
  955. if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  956. rm -rf conftest*
  957. echo "$ac_t""yes" 1>&6
  958. IEEEFLAG="-mieee"
  959. else
  960. echo "configure: failed program was:" >&5
  961. cat conftest.$ac_ext >&5
  962. rm -rf conftest*
  963. echo "$ac_t""no" 1>&6
  964. fi
  965. rm -f conftest*
  966. CFLAGS=${ac_save_cflags}
  967. else
  968. cat > conftest.$ac_ext <<EOF
  969. #line 1084 "configure"
  970. #include "confdefs.h"
  971. #include <float.h>
  972. int main(void) {
  973. double one = 1.0;
  974. double zero = 0.0;
  975. if (one/zero > DBL_MAX) /* infinity */
  976. if (zero/zero != zero/zero) /* NaN */
  977. return 0;
  978. return 1;
  979. }
  980. EOF
  981. if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  982. then
  983. echo "$ac_t""yes" 1>&6
  984. else
  985. echo "configure: failed program was:" >&5
  986. cat conftest.$ac_ext >&5
  987. rm -fr conftest*
  988. echo "$ac_t""no" 1>&6
  989. ac_save_cflags=${CFLAGS}
  990. CFLAGS=-mieee
  991. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  992. echo "configure:1111: checking for full floating-point support with -mieee" >&5
  993. if test "$cross_compiling" = yes; then
  994. echo "$ac_t""unknown (cross-compiling)" 1>&6
  995. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  996. else
  997. cat > conftest.$ac_ext <<EOF
  998. #line 1118 "configure"
  999. #include "confdefs.h"
  1000. #include <float.h>
  1001. int main(void) {
  1002. double one = 1.0;
  1003. double zero = 0.0;
  1004. if (one/zero > DBL_MAX) /* infinity */
  1005. if (zero/zero != zero/zero) /* NaN */
  1006. return 0;
  1007. return 1;
  1008. }
  1009. EOF
  1010. if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1011. then
  1012. echo "$ac_t""yes" 1>&6
  1013. IEEEFLAG="-mieee"
  1014. else
  1015. echo "configure: failed program was:" >&5
  1016. cat conftest.$ac_ext >&5
  1017. rm -fr conftest*
  1018. echo "$ac_t""no" 1>&6
  1019. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1020. fi
  1021. rm -fr conftest*
  1022. fi
  1023. CFLAGS=${ac_save_cflags}
  1024. fi
  1025. rm -fr conftest*
  1026. fi
  1027. CFLAGS="$CFLAGS $IEEEFLAG"
  1028. # Set BINDIR
  1029. if test -n "${bindir}"; then
  1030. BINDIR="${bindir}"
  1031. else
  1032. BINDIR=/usr/local/bin
  1033. fi
  1034. # Set SRCDIR and DSTDIR
  1035. # Extract the first word of "pwd", so it can be a program name with args.
  1036. set dummy pwd; ac_word=$2
  1037. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1038. echo "configure:1169: checking for $ac_word" >&5
  1039. case "$pwd" in
  1040. /*)
  1041. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1042. ;;
  1043. ?:/*)
  1044. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1045. ;;
  1046. *)
  1047. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1048. ac_dummy="$PATH"
  1049. for ac_dir in $ac_dummy; do
  1050. test -z "$ac_dir" && ac_dir=.
  1051. if test -f $ac_dir/$ac_word; then
  1052. ac_cv_path_pwd="$ac_dir/$ac_word"
  1053. break
  1054. fi
  1055. done
  1056. IFS="$ac_save_ifs"
  1057. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1058. ;;
  1059. esac
  1060. pwd="$ac_cv_path_pwd"
  1061. if test -n "$pwd"; then
  1062. echo "$ac_t""$pwd" 1>&6
  1063. else
  1064. echo "$ac_t""no" 1>&6
  1065. fi
  1066. if test "$MINGW32" = yes ; then
  1067. winpwd="pwd -W"
  1068. else
  1069. winpwd="$pwd"
  1070. fi
  1071. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1072. echo "configure:1207: checking for source directory" >&5
  1073. if test -z "$srcdir" ; then
  1074. SRCDIR=`$pwd`
  1075. else
  1076. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1077. fi
  1078. echo "$ac_t"""$SRCDIR"" 1>&6
  1079. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1080. echo "configure:1218: checking for build directory" >&5
  1081. DSTDIR=`$pwd`
  1082. WINDSTDIR=`$winpwd`
  1083. echo "$ac_t"""$DSTDIR"" 1>&6
  1084. # Set ARCH
  1085. ARCH=
  1086. if test -z "${host}"; then
  1087. ARCH="unknown"
  1088. else
  1089. ARCH="${host}"
  1090. fi
  1091. # Use absolute path for aux directory so that install-sh works
  1092. ac_aux_dir=
  1093. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1094. if test -f $ac_dir/install-sh; then
  1095. ac_aux_dir=$ac_dir
  1096. ac_install_sh="$ac_aux_dir/install-sh -c"
  1097. break
  1098. elif test -f $ac_dir/install.sh; then
  1099. ac_aux_dir=$ac_dir
  1100. ac_install_sh="$ac_aux_dir/install.sh -c"
  1101. break
  1102. fi
  1103. done
  1104. if test -z "$ac_aux_dir"; then
  1105. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1106. fi
  1107. ac_config_guess=$ac_aux_dir/config.guess
  1108. ac_config_sub=$ac_aux_dir/config.sub
  1109. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1110. # Set GISBASE and GRASS_BIN
  1111. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1112. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1113. # Set GRASS_VERSION_*
  1114. GRASS_VERSION_FILE=include/VERSION
  1115. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1116. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1117. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1118. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1119. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1120. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1121. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1122. GRASS_VERSION_SVN=00000
  1123. # Extract the first word of "svnversion", so it can be a program name with args.
  1124. set dummy svnversion; ac_word=$2
  1125. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1126. echo "configure:1286: checking for $ac_word" >&5
  1127. case "$SVN_VERSION" in
  1128. /*)
  1129. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1130. ;;
  1131. ?:/*)
  1132. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1133. ;;
  1134. *)
  1135. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1136. ac_dummy="$PATH"
  1137. for ac_dir in $ac_dummy; do
  1138. test -z "$ac_dir" && ac_dir=.
  1139. if test -f $ac_dir/$ac_word; then
  1140. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1141. break
  1142. fi
  1143. done
  1144. IFS="$ac_save_ifs"
  1145. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1146. ;;
  1147. esac
  1148. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1149. if test -n "$SVN_VERSION"; then
  1150. echo "$ac_t""$SVN_VERSION" 1>&6
  1151. else
  1152. echo "$ac_t""no" 1>&6
  1153. fi
  1154. if test "$SVN_VERSION" != "no" ; then
  1155. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1156. if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
  1157. GRASS_VERSION_SVN=00000
  1158. fi
  1159. fi
  1160. # Check for MacOSX App
  1161. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1162. if test "${enable_macosx_app+set}" = set; then
  1163. enableval="$enable_macosx_app"
  1164. :
  1165. else
  1166. enable_macosx_app=no
  1167. fi
  1168. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1169. echo "configure:1345: checking for MacOSX App" >&5
  1170. case "$enable_macosx_app" in
  1171. yes) MACOSX_APP=1 ;;
  1172. no) MACOSX_APP= ;;
  1173. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1174. esac
  1175. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1176. # Check for MacOSX archs
  1177. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1178. echo "configure:1357: checking for MacOSX architectures" >&5
  1179. MACOSX_ARCHS=
  1180. if test -z "$with_macosx_archs" ; then
  1181. echo "$ac_t""no" 1>&6
  1182. else
  1183. for a in $with_macosx_archs
  1184. do
  1185. # check if valid arch?
  1186. case "$a" in
  1187. i386|ppc|x86_64|ppc64)
  1188. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1189. ;;
  1190. esac
  1191. done
  1192. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1193. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1194. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1195. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1196. fi
  1197. # Done checking MacOSX archs
  1198. # Check for MacOSX SDK
  1199. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1200. echo "configure:1386: checking for MacOSX SDK" >&5
  1201. MACOSX_SDK=
  1202. if test -z "$with_macosx_sdk" ; then
  1203. echo "$ac_t""no" 1>&6
  1204. else
  1205. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1206. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1207. echo "configure:1396: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1208. if test "$cross_compiling" = yes; then
  1209. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1210. else
  1211. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1212. eval "ac_cv_file_$ac_safe=yes"
  1213. else
  1214. eval "ac_cv_file_$ac_safe=no"
  1215. fi
  1216. fi
  1217. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1218. echo "$ac_t""yes" 1>&6
  1219. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1220. else
  1221. echo "$ac_t""no" 1>&6
  1222. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1223. fi
  1224. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1225. CFLAGS="$CFLAGS $MACOSX_SDK"
  1226. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1227. fi
  1228. # Done checking MacOSX SDK
  1229. # Set INST_DIR
  1230. if test -n "$MACOSX_APP" ; then
  1231. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1232. else
  1233. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1234. fi
  1235. # Get flags for building shared libraries
  1236. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1237. echo "configure:1440: checking how to build libraries" >&5
  1238. # Check whether --enable-shared or --disable-shared was given.
  1239. if test "${enable_shared+set}" = set; then
  1240. enableval="$enable_shared"
  1241. shared_ok=$enableval
  1242. else
  1243. shared_ok=yes
  1244. fi
  1245. if test "${enable_shared+set}" = set; then
  1246. enableval="$enable_shared"
  1247. shared_ok=$enableval
  1248. else
  1249. shared_ok=yes
  1250. fi
  1251. if test "$shared_ok" = "yes" ; then
  1252. echo "$ac_t""shared" 1>&6
  1253. SHARED_BUILD=1
  1254. GRASS_LIBRARY_TYPE='shlib'
  1255. else
  1256. echo "$ac_t""static" 1>&6
  1257. SHARED_BUILD=0
  1258. cat >> confdefs.h <<\EOF
  1259. #define STATIC_BUILD 1
  1260. EOF
  1261. GRASS_LIBRARY_TYPE='stlib'
  1262. fi
  1263. ac_save_ldflags="$LDFLAGS"
  1264. SHLIB_CFLAGS=""
  1265. SHLIB_LD_FLAGS=""
  1266. SHLIB_SUFFIX=""
  1267. SHLIB_LD=""
  1268. STLIB_LD='${AR} cr'
  1269. STLIB_SUFFIX='.a'
  1270. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1271. GRASS_LIB_VERSIONS_OK=ok
  1272. LDFLAGS=""
  1273. LD_SEARCH_FLAGS=""
  1274. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1275. case $host in
  1276. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  1277. SHLIB_CFLAGS="-fPIC"
  1278. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  1279. SHLIB_SUFFIX=".so"
  1280. SHLIB_LD="${CC} -shared"
  1281. LDFLAGS="-Wl,--export-dynamic"
  1282. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1283. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1284. ;;
  1285. *-pc-cygwin)
  1286. SHLIB_SUFFIX=".dll"
  1287. SHLIB_LD="${CC} -shared"
  1288. LDFLAGS="-Wl,--export-dynamic"
  1289. LD_LIBRARY_PATH_VAR="PATH"
  1290. ;;
  1291. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  1292. SHLIB_SUFFIX=".dll"
  1293. SHLIB_LD="${CC} -shared"
  1294. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1295. LD_LIBRARY_PATH_VAR="PATH"
  1296. ;;
  1297. *-apple-darwin*)
  1298. SHLIB_CFLAGS="-fno-common"
  1299. SHLIB_SUFFIX=".dylib"
  1300. 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}"
  1301. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1302. ;;
  1303. *-sun-solaris*)
  1304. # Note: If _REENTRANT isn't defined, then Solaris
  1305. # won't define thread-safe library routines.
  1306. cat >> confdefs.h <<\EOF
  1307. #define _REENTRANT 1
  1308. EOF
  1309. cat >> confdefs.h <<\EOF
  1310. #define _POSIX_PTHREAD_SEMANTICS 1
  1311. EOF
  1312. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1313. # symbols when dynamically loaded into tclsh.
  1314. if test "$GCC" = "yes" ; then
  1315. SHLIB_CFLAGS="-fPIC"
  1316. SHLIB_LD="$CC -shared"
  1317. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1318. else
  1319. SHLIB_CFLAGS="-KPIC"
  1320. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1321. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1322. fi
  1323. SHLIB_SUFFIX=".so"
  1324. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1325. ;;
  1326. *-solaris2*)
  1327. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1328. # Oracle Solaris derives from Solaris 2
  1329. # derives from SunOS 5
  1330. # derives from UNIX System V Release 4
  1331. # Note: If _REENTRANT isn't defined, then Solaris
  1332. # won't define thread-safe library routines.
  1333. cat >> confdefs.h <<\EOF
  1334. #define _REENTRANT 1
  1335. EOF
  1336. cat >> confdefs.h <<\EOF
  1337. #define _POSIX_PTHREAD_SEMANTICS 1
  1338. EOF
  1339. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1340. # symbols when dynamically loaded into tclsh.
  1341. if test "$GCC" = "yes" ; then
  1342. SHLIB_CFLAGS="-fPIC"
  1343. SHLIB_LD="$CC -shared"
  1344. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1345. else
  1346. SHLIB_CFLAGS="-KPIC"
  1347. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1348. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1349. fi
  1350. SHLIB_SUFFIX=".so"
  1351. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1352. ;;
  1353. *-freebsd*)
  1354. # NOTE: only FreeBSD 4+ is supported
  1355. # FreeBSD 3.* and greater have ELF.
  1356. SHLIB_CFLAGS="-fPIC"
  1357. #SHLIB_LD="ld -Bshareable -x"
  1358. SHLIB_LD="${CC} -shared"
  1359. SHLIB_SUFFIX=".so"
  1360. LDFLAGS="-export-dynamic"
  1361. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1362. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1363. # TODO: add optional pthread support with any combination of:
  1364. # CFLAGS="$CFLAGS -pthread"
  1365. # LDFLAGS="$LDFLAGS -lpthread"
  1366. # AC_DEFINE(_REENTRANT)
  1367. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1368. ;;
  1369. *-netbsd*)
  1370. # NetBSD has ELF.
  1371. SHLIB_CFLAGS="-fPIC"
  1372. SHLIB_LD="${CC} -shared"
  1373. SHLIB_LD_LIBS="${LIBS}"
  1374. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1375. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1376. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1377. # some older NetBSD versions do not handle version numbers with dots.
  1378. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1379. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1380. #GRASS_LIB_VERSIONS_OK=nodots
  1381. # NetBSD 6 does handle version numbers with dots.
  1382. STLIB_SUFFIX=".a"
  1383. SHLIB_SUFFIX=".so"
  1384. # TODO: add optional pthread support with any combination of:
  1385. # CFLAGS="$CFLAGS -pthread"
  1386. # LDFLAGS="$LDFLAGS -lpthread"
  1387. # AC_DEFINE(_REENTRANT)
  1388. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1389. ;;
  1390. *aix*)
  1391. # NOTE: do we need to support aix < 6 ?
  1392. LIBS="$LIBS -lc"
  1393. SHLIB_CFLAGS=""
  1394. LDFLAGS=""
  1395. if test "$GCC" = "yes" ; then
  1396. SHLIB_CFLAGS="-fPIC"
  1397. SHLIB_LD="$CC -shared"
  1398. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1399. else
  1400. # assume xlc
  1401. SHLIB_CFLAGS="-qmkshrobj"
  1402. SHLIB_LD="$CC -shared"
  1403. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1404. fi
  1405. SHLIB_SUFFIX=".so"
  1406. LD_LIBRARY_PATH_VAR="LIBPATH"
  1407. GRASS_NEEDS_EXP_FILE=1
  1408. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1409. ;;
  1410. *)
  1411. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1412. ;;
  1413. esac
  1414. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1415. # Enable options
  1416. # Check whether --enable-w11 or --disable-w11 was given.
  1417. if test "${enable_w11+set}" = set; then
  1418. enableval="$enable_w11"
  1419. :
  1420. else
  1421. enable_w11=no
  1422. fi
  1423. # With options
  1424. # Check whether --with-cxx or --without-cxx was given.
  1425. if test "${with_cxx+set}" = set; then
  1426. withval="$with_cxx"
  1427. :
  1428. else
  1429. with_cxx=yes
  1430. fi
  1431. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1432. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1433. if test "${with_macosx_archs+set}" = set; then
  1434. withval="$with_macosx_archs"
  1435. :
  1436. else
  1437. with_macosx_archs="no"
  1438. fi
  1439. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1440. if test "${with_macosx_sdk+set}" = set; then
  1441. withval="$with_macosx_sdk"
  1442. :
  1443. else
  1444. with_macosx_sdk="no"
  1445. fi
  1446. # Check whether --with-tiff or --without-tiff was given.
  1447. if test "${with_tiff+set}" = set; then
  1448. withval="$with_tiff"
  1449. :
  1450. else
  1451. with_tiff=yes
  1452. fi
  1453. # Check whether --with-png or --without-png was given.
  1454. if test "${with_png+set}" = set; then
  1455. withval="$with_png"
  1456. :
  1457. else
  1458. with_png=yes
  1459. fi
  1460. # Check whether --with-postgres or --without-postgres was given.
  1461. if test "${with_postgres+set}" = set; then
  1462. withval="$with_postgres"
  1463. :
  1464. else
  1465. with_postgres=no
  1466. fi
  1467. # Check whether --with-mysql or --without-mysql was given.
  1468. if test "${with_mysql+set}" = set; then
  1469. withval="$with_mysql"
  1470. :
  1471. else
  1472. with_mysql=no
  1473. fi
  1474. # Check whether --with-sqlite or --without-sqlite was given.
  1475. if test "${with_sqlite+set}" = set; then
  1476. withval="$with_sqlite"
  1477. :
  1478. else
  1479. with_sqlite=yes
  1480. fi
  1481. # Check whether --with-opengl or --without-opengl was given.
  1482. if test "${with_opengl+set}" = set; then
  1483. withval="$with_opengl"
  1484. :
  1485. else
  1486. with_opengl=yes
  1487. fi
  1488. # Check whether --with-odbc or --without-odbc was given.
  1489. if test "${with_odbc+set}" = set; then
  1490. withval="$with_odbc"
  1491. :
  1492. else
  1493. with_odbc=no
  1494. fi
  1495. # Check whether --with-fftw or --without-fftw was given.
  1496. if test "${with_fftw+set}" = set; then
  1497. withval="$with_fftw"
  1498. :
  1499. else
  1500. with_fftw=yes
  1501. fi
  1502. # Check whether --with-blas or --without-blas was given.
  1503. if test "${with_blas+set}" = set; then
  1504. withval="$with_blas"
  1505. :
  1506. else
  1507. with_blas=no
  1508. fi
  1509. # Check whether --with-lapack or --without-lapack was given.
  1510. if test "${with_lapack+set}" = set; then
  1511. withval="$with_lapack"
  1512. :
  1513. else
  1514. with_lapack=no
  1515. fi
  1516. # Check whether --with-cairo or --without-cairo was given.
  1517. if test "${with_cairo+set}" = set; then
  1518. withval="$with_cairo"
  1519. :
  1520. else
  1521. with_cairo=yes
  1522. fi
  1523. # Check whether --with-freetype or --without-freetype was given.
  1524. if test "${with_freetype+set}" = set; then
  1525. withval="$with_freetype"
  1526. :
  1527. else
  1528. with_freetype=yes
  1529. fi
  1530. # Check whether --with-nls or --without-nls was given.
  1531. if test "${with_nls+set}" = set; then
  1532. withval="$with_nls"
  1533. :
  1534. else
  1535. with_nls=no
  1536. fi
  1537. # Check whether --with-readline or --without-readline was given.
  1538. if test "${with_readline+set}" = set; then
  1539. withval="$with_readline"
  1540. :
  1541. else
  1542. with_readline=no
  1543. fi
  1544. # Check whether --with-opendwg or --without-opendwg was given.
  1545. if test "${with_opendwg+set}" = set; then
  1546. withval="$with_opendwg"
  1547. :
  1548. else
  1549. with_opendwg=no
  1550. fi
  1551. # Check whether --with-regex or --without-regex was given.
  1552. if test "${with_regex+set}" = set; then
  1553. withval="$with_regex"
  1554. :
  1555. else
  1556. with_regex=yes
  1557. fi
  1558. # Check whether --with-pthread or --without-pthread was given.
  1559. if test "${with_pthread+set}" = set; then
  1560. withval="$with_pthread"
  1561. :
  1562. else
  1563. with_pthread=no
  1564. fi
  1565. # Check whether --with-openmp or --without-openmp was given.
  1566. if test "${with_openmp+set}" = set; then
  1567. withval="$with_openmp"
  1568. :
  1569. else
  1570. with_openmp=no
  1571. fi
  1572. # Check whether --with-opencl or --without-opencl was given.
  1573. if test "${with_opencl+set}" = set; then
  1574. withval="$with_opencl"
  1575. :
  1576. else
  1577. with_opencl=no
  1578. fi
  1579. # Check whether --with-gdal or --without-gdal was given.
  1580. if test "${with_gdal+set}" = set; then
  1581. withval="$with_gdal"
  1582. :
  1583. fi
  1584. # Check whether --with-liblas or --without-liblas was given.
  1585. if test "${with_liblas+set}" = set; then
  1586. withval="$with_liblas"
  1587. :
  1588. else
  1589. with_liblas="no"
  1590. fi
  1591. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1592. if test "${with_wxwidgets+set}" = set; then
  1593. withval="$with_wxwidgets"
  1594. :
  1595. else
  1596. with_wxwidgets="no"
  1597. fi
  1598. # Check whether --with-netcdf or --without-netcdf was given.
  1599. if test "${with_netcdf+set}" = set; then
  1600. withval="$with_netcdf"
  1601. :
  1602. else
  1603. with_netcdf="no"
  1604. fi
  1605. # With includes and libs options
  1606. # Check whether --with-geos or --without-geos was given.
  1607. if test "${with_geos+set}" = set; then
  1608. withval="$with_geos"
  1609. :
  1610. else
  1611. with_geos="no"
  1612. fi
  1613. # Check whether --with-includes or --without-includes was given.
  1614. if test "${with_includes+set}" = set; then
  1615. withval="$with_includes"
  1616. :
  1617. fi
  1618. # Check whether --with-libs or --without-libs was given.
  1619. if test "${with_libs+set}" = set; then
  1620. withval="$with_libs"
  1621. :
  1622. fi
  1623. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1624. if test "${with_zlib_includes+set}" = set; then
  1625. withval="$with_zlib_includes"
  1626. :
  1627. fi
  1628. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1629. if test "${with_zlib_libs+set}" = set; then
  1630. withval="$with_zlib_libs"
  1631. :
  1632. fi
  1633. # Check whether --with-readline-includes or --without-readline-includes was given.
  1634. if test "${with_readline_includes+set}" = set; then
  1635. withval="$with_readline_includes"
  1636. :
  1637. fi
  1638. # Check whether --with-readline-libs or --without-readline-libs was given.
  1639. if test "${with_readline_libs+set}" = set; then
  1640. withval="$with_readline_libs"
  1641. :
  1642. fi
  1643. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1644. if test "${with_tiff_includes+set}" = set; then
  1645. withval="$with_tiff_includes"
  1646. :
  1647. fi
  1648. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1649. if test "${with_tiff_libs+set}" = set; then
  1650. withval="$with_tiff_libs"
  1651. :
  1652. fi
  1653. # Check whether --with-png-includes or --without-png-includes was given.
  1654. if test "${with_png_includes+set}" = set; then
  1655. withval="$with_png_includes"
  1656. :
  1657. fi
  1658. # Check whether --with-png-libs or --without-png-libs was given.
  1659. if test "${with_png_libs+set}" = set; then
  1660. withval="$with_png_libs"
  1661. :
  1662. fi
  1663. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1664. if test "${with_postgres_includes+set}" = set; then
  1665. withval="$with_postgres_includes"
  1666. :
  1667. fi
  1668. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1669. if test "${with_postgres_libs+set}" = set; then
  1670. withval="$with_postgres_libs"
  1671. :
  1672. fi
  1673. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1674. if test "${with_mysql_includes+set}" = set; then
  1675. withval="$with_mysql_includes"
  1676. :
  1677. fi
  1678. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1679. if test "${with_mysql_libs+set}" = set; then
  1680. withval="$with_mysql_libs"
  1681. :
  1682. fi
  1683. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1684. if test "${with_sqlite_includes+set}" = set; then
  1685. withval="$with_sqlite_includes"
  1686. :
  1687. fi
  1688. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1689. if test "${with_sqlite_libs+set}" = set; then
  1690. withval="$with_sqlite_libs"
  1691. :
  1692. fi
  1693. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1694. if test "${with_opengl_includes+set}" = set; then
  1695. withval="$with_opengl_includes"
  1696. :
  1697. fi
  1698. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1699. if test "${with_opengl_libs+set}" = set; then
  1700. withval="$with_opengl_libs"
  1701. :
  1702. fi
  1703. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1704. if test "${with_opengl_framework+set}" = set; then
  1705. withval="$with_opengl_framework"
  1706. :
  1707. fi
  1708. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1709. if test "${with_odbc_includes+set}" = set; then
  1710. withval="$with_odbc_includes"
  1711. :
  1712. fi
  1713. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1714. if test "${with_odbc_libs+set}" = set; then
  1715. withval="$with_odbc_libs"
  1716. :
  1717. fi
  1718. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1719. if test "${with_fftw_includes+set}" = set; then
  1720. withval="$with_fftw_includes"
  1721. :
  1722. fi
  1723. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1724. if test "${with_fftw_libs+set}" = set; then
  1725. withval="$with_fftw_libs"
  1726. :
  1727. fi
  1728. # Check whether --with-blas-includes or --without-blas-includes was given.
  1729. if test "${with_blas_includes+set}" = set; then
  1730. withval="$with_blas_includes"
  1731. :
  1732. fi
  1733. # Check whether --with-blas-libs or --without-blas-libs was given.
  1734. if test "${with_blas_libs+set}" = set; then
  1735. withval="$with_blas_libs"
  1736. :
  1737. fi
  1738. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1739. if test "${with_lapack_includes+set}" = set; then
  1740. withval="$with_lapack_includes"
  1741. :
  1742. fi
  1743. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1744. if test "${with_lapack_libs+set}" = set; then
  1745. withval="$with_lapack_libs"
  1746. :
  1747. fi
  1748. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1749. if test "${with_cairo_includes+set}" = set; then
  1750. withval="$with_cairo_includes"
  1751. :
  1752. fi
  1753. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1754. if test "${with_cairo_libs+set}" = set; then
  1755. withval="$with_cairo_libs"
  1756. :
  1757. fi
  1758. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1759. if test "${with_cairo_ldflags+set}" = set; then
  1760. withval="$with_cairo_ldflags"
  1761. :
  1762. fi
  1763. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1764. if test "${with_freetype_includes+set}" = set; then
  1765. withval="$with_freetype_includes"
  1766. :
  1767. fi
  1768. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1769. if test "${with_freetype_libs+set}" = set; then
  1770. withval="$with_freetype_libs"
  1771. :
  1772. fi
  1773. # Check whether --with-proj-includes or --without-proj-includes was given.
  1774. if test "${with_proj_includes+set}" = set; then
  1775. withval="$with_proj_includes"
  1776. :
  1777. fi
  1778. # Check whether --with-proj-libs or --without-proj-libs was given.
  1779. if test "${with_proj_libs+set}" = set; then
  1780. withval="$with_proj_libs"
  1781. :
  1782. fi
  1783. # Check whether --with-proj-share or --without-proj-share was given.
  1784. if test "${with_proj_share+set}" = set; then
  1785. withval="$with_proj_share"
  1786. :
  1787. fi
  1788. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1789. if test "${with_opendwg_includes+set}" = set; then
  1790. withval="$with_opendwg_includes"
  1791. :
  1792. fi
  1793. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1794. if test "${with_opendwg_libs+set}" = set; then
  1795. withval="$with_opendwg_libs"
  1796. :
  1797. fi
  1798. # Check whether --with-regex-includes or --without-regex-includes was given.
  1799. if test "${with_regex_includes+set}" = set; then
  1800. withval="$with_regex_includes"
  1801. :
  1802. fi
  1803. # Check whether --with-regex-libs or --without-regex-libs was given.
  1804. if test "${with_regex_libs+set}" = set; then
  1805. withval="$with_regex_libs"
  1806. :
  1807. fi
  1808. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1809. if test "${with_pthread_includes+set}" = set; then
  1810. withval="$with_pthread_includes"
  1811. :
  1812. fi
  1813. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1814. if test "${with_pthread_libs+set}" = set; then
  1815. withval="$with_pthread_libs"
  1816. :
  1817. fi
  1818. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1819. if test "${with_openmp_includes+set}" = set; then
  1820. withval="$with_openmp_includes"
  1821. :
  1822. fi
  1823. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1824. if test "${with_openmp_libs+set}" = set; then
  1825. withval="$with_openmp_libs"
  1826. :
  1827. fi
  1828. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1829. if test "${with_opencl_includes+set}" = set; then
  1830. withval="$with_opencl_includes"
  1831. :
  1832. fi
  1833. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1834. if test "${with_opencl_libs+set}" = set; then
  1835. withval="$with_opencl_libs"
  1836. :
  1837. fi
  1838. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  1839. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1840. # With includes option
  1841. # Handle Fortran compiler choice
  1842. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1843. # Done checking fortran
  1844. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1845. echo "configure:2310: checking for additional include dirs" >&5
  1846. case "$with_includes" in
  1847. y | ye | yes | n | no)
  1848. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1849. ;;
  1850. esac
  1851. echo "$ac_t""$with_includes" 1>&6
  1852. if test -n "$with_includes"; then
  1853. for dir in $with_includes; do
  1854. if test -d "$dir"; then
  1855. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1856. else
  1857. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1858. fi
  1859. done
  1860. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1861. fi
  1862. # With libs option
  1863. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1864. echo "configure:2333: checking for additional library dirs" >&5
  1865. case "$with_libs" in
  1866. y | ye | yes | n | no)
  1867. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1868. ;;
  1869. esac
  1870. echo "$ac_t""$with_libs" 1>&6
  1871. if test -n "$with_libs"; then
  1872. for dir in $with_libs; do
  1873. if test -d "$dir"; then
  1874. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1875. else
  1876. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1877. fi
  1878. done
  1879. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1880. fi
  1881. # Programs and standard headers, libraries, functions
  1882. # Find a good install program. We prefer a C program (faster),
  1883. # so one script is as good as another. But avoid the broken or
  1884. # incompatible versions:
  1885. # SysV /etc/install, /usr/sbin/install
  1886. # SunOS /usr/etc/install
  1887. # IRIX /sbin/install
  1888. # AIX /bin/install
  1889. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1890. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1891. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1892. # ./install, which can be erroneously created by make from ./install.sh.
  1893. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1894. echo "configure:2367: checking for a BSD compatible install" >&5
  1895. if test -z "$INSTALL"; then
  1896. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1897. for ac_dir in $PATH; do
  1898. # Account for people who put trailing slashes in PATH elements.
  1899. case "$ac_dir/" in
  1900. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1901. *)
  1902. # OSF1 and SCO ODT 3.0 have their own names for install.
  1903. # Don't use installbsd from OSF since it installs stuff as root
  1904. # by default.
  1905. for ac_prog in ginstall scoinst install; do
  1906. if test -f $ac_dir/$ac_prog; then
  1907. if test $ac_prog = install &&
  1908. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1909. # AIX install. It has an incompatible calling convention.
  1910. :
  1911. else
  1912. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1913. break 2
  1914. fi
  1915. fi
  1916. done
  1917. ;;
  1918. esac
  1919. done
  1920. IFS="$ac_save_IFS"
  1921. if test "${ac_cv_path_install+set}" = set; then
  1922. INSTALL="$ac_cv_path_install"
  1923. else
  1924. # As a last resort, use the slow shell script. We don't cache a
  1925. # path for INSTALL within a source directory, because that will
  1926. # break other packages using the cache if that directory is
  1927. # removed, or if the path is relative.
  1928. INSTALL="$ac_install_sh"
  1929. fi
  1930. fi
  1931. echo "$ac_t""$INSTALL" 1>&6
  1932. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1933. # It thinks the first close brace ends the variable substitution.
  1934. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1935. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1936. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1937. # Extract the first word of "flex", so it can be a program name with args.
  1938. set dummy flex; ac_word=$2
  1939. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1940. echo "configure:2420: checking for $ac_word" >&5
  1941. if test -n "$LEX"; then
  1942. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1943. else
  1944. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1945. ac_dummy="$PATH"
  1946. for ac_dir in $ac_dummy; do
  1947. test -z "$ac_dir" && ac_dir=.
  1948. if test -f $ac_dir/$ac_word; then
  1949. ac_cv_prog_LEX="flex"
  1950. break
  1951. fi
  1952. done
  1953. IFS="$ac_save_ifs"
  1954. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1955. fi
  1956. LEX="$ac_cv_prog_LEX"
  1957. if test -n "$LEX"; then
  1958. echo "$ac_t""$LEX" 1>&6
  1959. else
  1960. echo "$ac_t""no" 1>&6
  1961. fi
  1962. if test -z "$LEXLIB"
  1963. then
  1964. case "$LEX" in
  1965. flex*) ac_lib=fl ;;
  1966. *) ac_lib=l ;;
  1967. esac
  1968. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1969. echo "configure:2451: checking for yywrap in -l$ac_lib" >&5
  1970. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1971. ac_save_LIBS="$LIBS"
  1972. LIBS="-l$ac_lib $LIBS"
  1973. cat > conftest.$ac_ext <<EOF
  1974. #line 2457 "configure"
  1975. #include "confdefs.h"
  1976. /* Override any gcc2 internal prototype to avoid an error. */
  1977. /* We use char because int might match the return type of a gcc2
  1978. builtin and then its argument prototype would still apply. */
  1979. char yywrap();
  1980. int main() {
  1981. yywrap()
  1982. ; return 0; }
  1983. EOF
  1984. if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1985. rm -rf conftest*
  1986. eval "ac_cv_lib_$ac_lib_var=yes"
  1987. else
  1988. echo "configure: failed program was:" >&5
  1989. cat conftest.$ac_ext >&5
  1990. rm -rf conftest*
  1991. eval "ac_cv_lib_$ac_lib_var=no"
  1992. fi
  1993. rm -f conftest*
  1994. LIBS="$ac_save_LIBS"
  1995. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1996. echo "$ac_t""yes" 1>&6
  1997. LEXLIB="-l$ac_lib"
  1998. else
  1999. echo "$ac_t""no" 1>&6
  2000. fi
  2001. fi
  2002. if test "$LEX" = "lex"; then
  2003. # Extract the first word of "lex", so it can be a program name with args.
  2004. set dummy lex; ac_word=$2
  2005. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2006. echo "configure:2493: checking for $ac_word" >&5
  2007. case "$LEXPATH" in
  2008. /*)
  2009. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2010. ;;
  2011. ?:/*)
  2012. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2013. ;;
  2014. *)
  2015. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2016. ac_dummy="$PATH"
  2017. for ac_dir in $ac_dummy; do
  2018. test -z "$ac_dir" && ac_dir=.
  2019. if test -f $ac_dir/$ac_word; then
  2020. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2021. break
  2022. fi
  2023. done
  2024. IFS="$ac_save_ifs"
  2025. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2026. ;;
  2027. esac
  2028. LEXPATH="$ac_cv_path_LEXPATH"
  2029. if test -n "$LEXPATH"; then
  2030. echo "$ac_t""$LEXPATH" 1>&6
  2031. else
  2032. echo "$ac_t""no" 1>&6
  2033. fi
  2034. if test "$LEXPATH" = "no"; then
  2035. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2036. fi
  2037. fi
  2038. for ac_prog in 'bison -y' byacc
  2039. do
  2040. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2041. set dummy $ac_prog; ac_word=$2
  2042. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2043. echo "configure:2533: checking for $ac_word" >&5
  2044. if test -n "$YACC"; then
  2045. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2046. else
  2047. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2048. ac_dummy="$PATH"
  2049. for ac_dir in $ac_dummy; do
  2050. test -z "$ac_dir" && ac_dir=.
  2051. if test -f $ac_dir/$ac_word; then
  2052. ac_cv_prog_YACC="$ac_prog"
  2053. break
  2054. fi
  2055. done
  2056. IFS="$ac_save_ifs"
  2057. fi
  2058. YACC="$ac_cv_prog_YACC"
  2059. if test -n "$YACC"; then
  2060. echo "$ac_t""$YACC" 1>&6
  2061. else
  2062. echo "$ac_t""no" 1>&6
  2063. fi
  2064. test -n "$YACC" && break
  2065. done
  2066. test -n "$YACC" || YACC="yacc"
  2067. if test "$YACC" = "yacc"; then
  2068. # Extract the first word of "yacc", so it can be a program name with args.
  2069. set dummy yacc; ac_word=$2
  2070. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2071. echo "configure:2564: checking for $ac_word" >&5
  2072. case "$YACCPATH" in
  2073. /*)
  2074. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2075. ;;
  2076. ?:/*)
  2077. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2078. ;;
  2079. *)
  2080. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2081. ac_dummy="$PATH"
  2082. for ac_dir in $ac_dummy; do
  2083. test -z "$ac_dir" && ac_dir=.
  2084. if test -f $ac_dir/$ac_word; then
  2085. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2086. break
  2087. fi
  2088. done
  2089. IFS="$ac_save_ifs"
  2090. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2091. ;;
  2092. esac
  2093. YACCPATH="$ac_cv_path_YACCPATH"
  2094. if test -n "$YACCPATH"; then
  2095. echo "$ac_t""$YACCPATH" 1>&6
  2096. else
  2097. echo "$ac_t""no" 1>&6
  2098. fi
  2099. if test "$YACCPATH" = "no"; then
  2100. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2101. fi
  2102. fi
  2103. # Extract the first word of "ranlib", so it can be a program name with args.
  2104. set dummy ranlib; ac_word=$2
  2105. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2106. echo "configure:2602: checking for $ac_word" >&5
  2107. if test -n "$RANLIB"; then
  2108. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2109. else
  2110. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2111. ac_dummy="$PATH"
  2112. for ac_dir in $ac_dummy; do
  2113. test -z "$ac_dir" && ac_dir=.
  2114. if test -f $ac_dir/$ac_word; then
  2115. ac_cv_prog_RANLIB="ranlib"
  2116. break
  2117. fi
  2118. done
  2119. IFS="$ac_save_ifs"
  2120. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2121. fi
  2122. RANLIB="$ac_cv_prog_RANLIB"
  2123. if test -n "$RANLIB"; then
  2124. echo "$ac_t""$RANLIB" 1>&6
  2125. else
  2126. echo "$ac_t""no" 1>&6
  2127. fi
  2128. for ac_prog in ar
  2129. do
  2130. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2131. set dummy $ac_prog; ac_word=$2
  2132. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2133. echo "configure:2631: checking for $ac_word" >&5
  2134. if test -n "$AR"; then
  2135. ac_cv_prog_AR="$AR" # Let the user override the test.
  2136. else
  2137. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2138. ac_dummy="$PATH"
  2139. for ac_dir in $ac_dummy; do
  2140. test -z "$ac_dir" && ac_dir=.
  2141. if test -f $ac_dir/$ac_word; then
  2142. ac_cv_prog_AR="$ac_prog"
  2143. break
  2144. fi
  2145. done
  2146. IFS="$ac_save_ifs"
  2147. fi
  2148. AR="$ac_cv_prog_AR"
  2149. if test -n "$AR"; then
  2150. echo "$ac_t""$AR" 1>&6
  2151. else
  2152. echo "$ac_t""no" 1>&6
  2153. fi
  2154. test -n "$AR" && break
  2155. done
  2156. for ac_prog in env
  2157. do
  2158. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2159. set dummy $ac_prog; ac_word=$2
  2160. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2161. echo "configure:2662: checking for $ac_word" >&5
  2162. if test -n "$ENV"; then
  2163. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2164. else
  2165. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2166. ac_dummy="$PATH"
  2167. for ac_dir in $ac_dummy; do
  2168. test -z "$ac_dir" && ac_dir=.
  2169. if test -f $ac_dir/$ac_word; then
  2170. ac_cv_prog_ENV="$ac_prog"
  2171. break
  2172. fi
  2173. done
  2174. IFS="$ac_save_ifs"
  2175. fi
  2176. ENV="$ac_cv_prog_ENV"
  2177. if test -n "$ENV"; then
  2178. echo "$ac_t""$ENV" 1>&6
  2179. else
  2180. echo "$ac_t""no" 1>&6
  2181. fi
  2182. test -n "$ENV" && break
  2183. done
  2184. # Extract the first word of "perl", so it can be a program name with args.
  2185. set dummy perl; ac_word=$2
  2186. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2187. echo "configure:2691: checking for $ac_word" >&5
  2188. case "$PERL" in
  2189. /*)
  2190. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2191. ;;
  2192. ?:/*)
  2193. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2194. ;;
  2195. *)
  2196. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2197. ac_dummy="$PATH"
  2198. for ac_dir in $ac_dummy; do
  2199. test -z "$ac_dir" && ac_dir=.
  2200. if test -f $ac_dir/$ac_word; then
  2201. ac_cv_path_PERL="$ac_dir/$ac_word"
  2202. break
  2203. fi
  2204. done
  2205. IFS="$ac_save_ifs"
  2206. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2207. ;;
  2208. esac
  2209. PERL="$ac_cv_path_PERL"
  2210. if test -n "$PERL"; then
  2211. echo "$ac_t""$PERL" 1>&6
  2212. else
  2213. echo "$ac_t""no" 1>&6
  2214. fi
  2215. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2216. echo "configure:2722: checking how to run the C preprocessor" >&5
  2217. # On Suns, sometimes $CPP names a directory.
  2218. if test -n "$CPP" && test -d "$CPP"; then
  2219. CPP=
  2220. fi
  2221. if test -z "$CPP"; then
  2222. # This must be in double quotes, not single quotes, because CPP may get
  2223. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2224. CPP="${CC-cc} -E"
  2225. # On the NeXT, cc -E runs the code through the compiler's parser,
  2226. # not just through cpp.
  2227. cat > conftest.$ac_ext <<EOF
  2228. #line 2735 "configure"
  2229. #include "confdefs.h"
  2230. #include <assert.h>
  2231. Syntax Error
  2232. EOF
  2233. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2234. { (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2235. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2236. if test -z "$ac_err"; then
  2237. :
  2238. else
  2239. echo "$ac_err" >&5
  2240. echo "configure: failed program was:" >&5
  2241. cat conftest.$ac_ext >&5
  2242. rm -rf conftest*
  2243. CPP="${CC-cc} -E -traditional-cpp"
  2244. cat > conftest.$ac_ext <<EOF
  2245. #line 2752 "configure"
  2246. #include "confdefs.h"
  2247. #include <assert.h>
  2248. Syntax Error
  2249. EOF
  2250. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2251. { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2252. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2253. if test -z "$ac_err"; then
  2254. :
  2255. else
  2256. echo "$ac_err" >&5
  2257. echo "configure: failed program was:" >&5
  2258. cat conftest.$ac_ext >&5
  2259. rm -rf conftest*
  2260. CPP="${CC-cc} -nologo -E"
  2261. cat > conftest.$ac_ext <<EOF
  2262. #line 2769 "configure"
  2263. #include "confdefs.h"
  2264. #include <assert.h>
  2265. Syntax Error
  2266. EOF
  2267. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2268. { (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2269. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2270. if test -z "$ac_err"; then
  2271. :
  2272. else
  2273. echo "$ac_err" >&5
  2274. echo "configure: failed program was:" >&5
  2275. cat conftest.$ac_ext >&5
  2276. rm -rf conftest*
  2277. CPP=/lib/cpp
  2278. fi
  2279. rm -f conftest*
  2280. fi
  2281. rm -f conftest*
  2282. fi
  2283. rm -f conftest*
  2284. ac_cv_prog_CPP="$CPP"
  2285. CPP="$ac_cv_prog_CPP"
  2286. else
  2287. ac_cv_prog_CPP="$CPP"
  2288. fi
  2289. echo "$ac_t""$CPP" 1>&6
  2290. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2291. echo "configure:2799: checking for ANSI C header files" >&5
  2292. cat > conftest.$ac_ext <<EOF
  2293. #line 2802 "configure"
  2294. #include "confdefs.h"
  2295. #include <stdlib.h>
  2296. #include <stdarg.h>
  2297. #include <string.h>
  2298. #include <float.h>
  2299. EOF
  2300. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2301. { (eval echo configure:2810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2302. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2303. if test -z "$ac_err"; then
  2304. rm -rf conftest*
  2305. ac_cv_header_stdc=yes
  2306. else
  2307. echo "$ac_err" >&5
  2308. echo "configure: failed program was:" >&5
  2309. cat conftest.$ac_ext >&5
  2310. rm -rf conftest*
  2311. ac_cv_header_stdc=no
  2312. fi
  2313. rm -f conftest*
  2314. if test $ac_cv_header_stdc = yes; then
  2315. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2316. cat > conftest.$ac_ext <<EOF
  2317. #line 2827 "configure"
  2318. #include "confdefs.h"
  2319. #include <string.h>
  2320. EOF
  2321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2322. egrep "memchr" >/dev/null 2>&1; then
  2323. :
  2324. else
  2325. rm -rf conftest*
  2326. ac_cv_header_stdc=no
  2327. fi
  2328. rm -f conftest*
  2329. fi
  2330. if test $ac_cv_header_stdc = yes; then
  2331. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2332. cat > conftest.$ac_ext <<EOF
  2333. #line 2845 "configure"
  2334. #include "confdefs.h"
  2335. #include <stdlib.h>
  2336. EOF
  2337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2338. egrep "free" >/dev/null 2>&1; then
  2339. :
  2340. else
  2341. rm -rf conftest*
  2342. ac_cv_header_stdc=no
  2343. fi
  2344. rm -f conftest*
  2345. fi
  2346. if test $ac_cv_header_stdc = yes; then
  2347. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2348. if test "$cross_compiling" = yes; then
  2349. :
  2350. else
  2351. cat > conftest.$ac_ext <<EOF
  2352. #line 2866 "configure"
  2353. #include "confdefs.h"
  2354. #include <ctype.h>
  2355. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2356. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2357. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2358. int main () { int i; for (i = 0; i < 256; i++)
  2359. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2360. exit (0); }
  2361. EOF
  2362. if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2363. then
  2364. :
  2365. else
  2366. echo "configure: failed program was:" >&5
  2367. cat conftest.$ac_ext >&5
  2368. rm -fr conftest*
  2369. ac_cv_header_stdc=no
  2370. fi
  2371. rm -fr conftest*
  2372. fi
  2373. fi
  2374. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2375. if test $ac_cv_header_stdc = yes; then
  2376. cat >> confdefs.h <<\EOF
  2377. #define STDC_HEADERS 1
  2378. EOF
  2379. fi
  2380. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2381. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2382. do
  2383. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2384. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2385. echo "configure:2904: checking for $ac_hdr" >&5
  2386. cat > conftest.$ac_ext <<EOF
  2387. #line 2907 "configure"
  2388. #include "confdefs.h"
  2389. #include <$ac_hdr>
  2390. EOF
  2391. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2392. { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2393. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2394. if test -z "$ac_err"; then
  2395. rm -rf conftest*
  2396. eval "ac_cv_header_$ac_safe=yes"
  2397. else
  2398. echo "$ac_err" >&5
  2399. echo "configure: failed program was:" >&5
  2400. cat conftest.$ac_ext >&5
  2401. rm -rf conftest*
  2402. eval "ac_cv_header_$ac_safe=no"
  2403. fi
  2404. rm -f conftest*
  2405. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2406. echo "$ac_t""yes" 1>&6
  2407. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2408. cat >> confdefs.h <<EOF
  2409. #define $ac_tr_hdr 1
  2410. EOF
  2411. else
  2412. echo "$ac_t""no" 1>&6
  2413. fi
  2414. done
  2415. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2416. do
  2417. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2418. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2419. echo "configure:2941: checking for $ac_hdr" >&5
  2420. cat > conftest.$ac_ext <<EOF
  2421. #line 2944 "configure"
  2422. #include "confdefs.h"
  2423. #include <$ac_hdr>
  2424. EOF
  2425. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2426. { (eval echo configure:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2427. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2428. if test -z "$ac_err"; then
  2429. rm -rf conftest*
  2430. eval "ac_cv_header_$ac_safe=yes"
  2431. else
  2432. echo "$ac_err" >&5
  2433. echo "configure: failed program was:" >&5
  2434. cat conftest.$ac_ext >&5
  2435. rm -rf conftest*
  2436. eval "ac_cv_header_$ac_safe=no"
  2437. fi
  2438. rm -f conftest*
  2439. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2440. echo "$ac_t""yes" 1>&6
  2441. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2442. cat >> confdefs.h <<EOF
  2443. #define $ac_tr_hdr 1
  2444. EOF
  2445. else
  2446. echo "$ac_t""no" 1>&6
  2447. fi
  2448. done
  2449. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2450. do
  2451. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2452. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2453. echo "configure:2978: checking for $ac_hdr" >&5
  2454. cat > conftest.$ac_ext <<EOF
  2455. #line 2981 "configure"
  2456. #include "confdefs.h"
  2457. #include <$ac_hdr>
  2458. EOF
  2459. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2460. { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2461. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2462. if test -z "$ac_err"; then
  2463. rm -rf conftest*
  2464. eval "ac_cv_header_$ac_safe=yes"
  2465. else
  2466. echo "$ac_err" >&5
  2467. echo "configure: failed program was:" >&5
  2468. cat conftest.$ac_ext >&5
  2469. rm -rf conftest*
  2470. eval "ac_cv_header_$ac_safe=no"
  2471. fi
  2472. rm -f conftest*
  2473. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2474. echo "$ac_t""yes" 1>&6
  2475. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2476. cat >> confdefs.h <<EOF
  2477. #define $ac_tr_hdr 1
  2478. EOF
  2479. else
  2480. echo "$ac_t""no" 1>&6
  2481. fi
  2482. done
  2483. for ac_hdr in libintl.h iconv.h
  2484. do
  2485. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2486. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2487. echo "configure:3015: checking for $ac_hdr" >&5
  2488. cat > conftest.$ac_ext <<EOF
  2489. #line 3018 "configure"
  2490. #include "confdefs.h"
  2491. #include <$ac_hdr>
  2492. EOF
  2493. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2494. { (eval echo configure:3023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2495. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2496. if test -z "$ac_err"; then
  2497. rm -rf conftest*
  2498. eval "ac_cv_header_$ac_safe=yes"
  2499. else
  2500. echo "$ac_err" >&5
  2501. echo "configure: failed program was:" >&5
  2502. cat conftest.$ac_ext >&5
  2503. rm -rf conftest*
  2504. eval "ac_cv_header_$ac_safe=no"
  2505. fi
  2506. rm -f conftest*
  2507. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2508. echo "$ac_t""yes" 1>&6
  2509. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2510. cat >> confdefs.h <<EOF
  2511. #define $ac_tr_hdr 1
  2512. EOF
  2513. else
  2514. echo "$ac_t""no" 1>&6
  2515. fi
  2516. done
  2517. for ac_hdr in langinfo.h
  2518. do
  2519. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2520. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2521. echo "configure:3052: checking for $ac_hdr" >&5
  2522. cat > conftest.$ac_ext <<EOF
  2523. #line 3055 "configure"
  2524. #include "confdefs.h"
  2525. #include <$ac_hdr>
  2526. EOF
  2527. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2528. { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2529. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2530. if test -z "$ac_err"; then
  2531. rm -rf conftest*
  2532. eval "ac_cv_header_$ac_safe=yes"
  2533. else
  2534. echo "$ac_err" >&5
  2535. echo "configure: failed program was:" >&5
  2536. cat conftest.$ac_ext >&5
  2537. rm -rf conftest*
  2538. eval "ac_cv_header_$ac_safe=no"
  2539. fi
  2540. rm -f conftest*
  2541. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2542. echo "$ac_t""yes" 1>&6
  2543. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2544. cat >> confdefs.h <<EOF
  2545. #define $ac_tr_hdr 1
  2546. EOF
  2547. else
  2548. echo "$ac_t""no" 1>&6
  2549. fi
  2550. done
  2551. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2552. echo "configure:3086: checking whether time.h and sys/time.h may both be included" >&5
  2553. cat > conftest.$ac_ext <<EOF
  2554. #line 3089 "configure"
  2555. #include "confdefs.h"
  2556. #include <sys/types.h>
  2557. #include <sys/time.h>
  2558. #include <time.h>
  2559. int main() {
  2560. struct tm *tp;
  2561. ; return 0; }
  2562. EOF
  2563. if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2564. rm -rf conftest*
  2565. ac_cv_header_time=yes
  2566. else
  2567. echo "configure: failed program was:" >&5
  2568. cat conftest.$ac_ext >&5
  2569. rm -rf conftest*
  2570. ac_cv_header_time=no
  2571. fi
  2572. rm -f conftest*
  2573. echo "$ac_t""$ac_cv_header_time" 1>&6
  2574. if test $ac_cv_header_time = yes; then
  2575. cat >> confdefs.h <<\EOF
  2576. #define TIME_WITH_SYS_TIME 1
  2577. EOF
  2578. fi
  2579. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2580. echo "configure:3118: checking for off_t" >&5
  2581. cat > conftest.$ac_ext <<EOF
  2582. #line 3121 "configure"
  2583. #include "confdefs.h"
  2584. #include <sys/types.h>
  2585. #if STDC_HEADERS
  2586. #include <stdlib.h>
  2587. #include <stddef.h>
  2588. #endif
  2589. EOF
  2590. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2591. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2592. rm -rf conftest*
  2593. ac_cv_type_off_t=yes
  2594. else
  2595. rm -rf conftest*
  2596. ac_cv_type_off_t=no
  2597. fi
  2598. rm -f conftest*
  2599. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2600. if test $ac_cv_type_off_t = no; then
  2601. cat >> confdefs.h <<\EOF
  2602. #define off_t long
  2603. EOF
  2604. fi
  2605. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2606. echo "configure:3148: checking for uid_t in sys/types.h" >&5
  2607. cat > conftest.$ac_ext <<EOF
  2608. #line 3151 "configure"
  2609. #include "confdefs.h"
  2610. #include <sys/types.h>
  2611. EOF
  2612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2613. egrep "uid_t" >/dev/null 2>&1; then
  2614. rm -rf conftest*
  2615. ac_cv_type_uid_t=yes
  2616. else
  2617. rm -rf conftest*
  2618. ac_cv_type_uid_t=no
  2619. fi
  2620. rm -f conftest*
  2621. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2622. if test $ac_cv_type_uid_t = no; then
  2623. cat >> confdefs.h <<\EOF
  2624. #define uid_t int
  2625. EOF
  2626. cat >> confdefs.h <<\EOF
  2627. #define gid_t int
  2628. EOF
  2629. fi
  2630. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2631. echo "configure:3179: checking return type of signal handlers" >&5
  2632. cat > conftest.$ac_ext <<EOF
  2633. #line 3182 "configure"
  2634. #include "confdefs.h"
  2635. #include <sys/types.h>
  2636. #include <signal.h>
  2637. #ifdef signal
  2638. #undef signal
  2639. #endif
  2640. #ifdef __cplusplus
  2641. extern "C" void (*signal (int, void (*)(int)))(int);
  2642. #else
  2643. void (*signal ()) ();
  2644. #endif
  2645. int main() {
  2646. int i;
  2647. ; return 0; }
  2648. EOF
  2649. if { (eval echo configure:3199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2650. rm -rf conftest*
  2651. ac_cv_type_signal=void
  2652. else
  2653. echo "configure: failed program was:" >&5
  2654. cat conftest.$ac_ext >&5
  2655. rm -rf conftest*
  2656. ac_cv_type_signal=int
  2657. fi
  2658. rm -f conftest*
  2659. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2660. cat >> confdefs.h <<EOF
  2661. #define RETSIGTYPE $ac_cv_type_signal
  2662. EOF
  2663. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2664. echo "configure:3217: checking for Cygwin environment" >&5
  2665. cat > conftest.$ac_ext <<EOF
  2666. #line 3220 "configure"
  2667. #include "confdefs.h"
  2668. int main() {
  2669. #ifndef __CYGWIN__
  2670. #define __CYGWIN__ __CYGWIN32__
  2671. #endif
  2672. return __CYGWIN__;
  2673. ; return 0; }
  2674. EOF
  2675. if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2676. rm -rf conftest*
  2677. ac_cv_cygwin=yes
  2678. else
  2679. echo "configure: failed program was:" >&5
  2680. cat conftest.$ac_ext >&5
  2681. rm -rf conftest*
  2682. ac_cv_cygwin=no
  2683. fi
  2684. rm -f conftest*
  2685. rm -f conftest*
  2686. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2687. CYGWIN=
  2688. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2689. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2690. do
  2691. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2692. echo "configure:3249: checking for $ac_func" >&5
  2693. cat > conftest.$ac_ext <<EOF
  2694. #line 3252 "configure"
  2695. #include "confdefs.h"
  2696. /* System header to define __stub macros and hopefully few prototypes,
  2697. which can conflict with char $ac_func(); below. */
  2698. #include <assert.h>
  2699. /* Override any gcc2 internal prototype to avoid an error. */
  2700. /* We use char because int might match the return type of a gcc2
  2701. builtin and then its argument prototype would still apply. */
  2702. char $ac_func();
  2703. int main() {
  2704. /* The GNU C library defines this for functions which it implements
  2705. to always fail with ENOSYS. Some functions are actually named
  2706. something starting with __ and the normal name is an alias. */
  2707. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2708. choke me
  2709. #else
  2710. $ac_func();
  2711. #endif
  2712. ; return 0; }
  2713. EOF
  2714. if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2715. rm -rf conftest*
  2716. eval "ac_cv_func_$ac_func=yes"
  2717. else
  2718. echo "configure: failed program was:" >&5
  2719. cat conftest.$ac_ext >&5
  2720. rm -rf conftest*
  2721. eval "ac_cv_func_$ac_func=no"
  2722. fi
  2723. rm -f conftest*
  2724. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2725. echo "$ac_t""yes" 1>&6
  2726. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2727. cat >> confdefs.h <<EOF
  2728. #define $ac_tr_func 1
  2729. EOF
  2730. else
  2731. echo "$ac_t""no" 1>&6
  2732. fi
  2733. done
  2734. for ac_func in seteuid setpriority setreuid setruid
  2735. do
  2736. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2737. echo "configure:3301: checking for $ac_func" >&5
  2738. cat > conftest.$ac_ext <<EOF
  2739. #line 3304 "configure"
  2740. #include "confdefs.h"
  2741. /* System header to define __stub macros and hopefully few prototypes,
  2742. which can conflict with char $ac_func(); below. */
  2743. #include <assert.h>
  2744. /* Override any gcc2 internal prototype to avoid an error. */
  2745. /* We use char because int might match the return type of a gcc2
  2746. builtin and then its argument prototype would still apply. */
  2747. char $ac_func();
  2748. int main() {
  2749. /* The GNU C library defines this for functions which it implements
  2750. to always fail with ENOSYS. Some functions are actually named
  2751. something starting with __ and the normal name is an alias. */
  2752. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2753. choke me
  2754. #else
  2755. $ac_func();
  2756. #endif
  2757. ; return 0; }
  2758. EOF
  2759. if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2760. rm -rf conftest*
  2761. eval "ac_cv_func_$ac_func=yes"
  2762. else
  2763. echo "configure: failed program was:" >&5
  2764. cat conftest.$ac_ext >&5
  2765. rm -rf conftest*
  2766. eval "ac_cv_func_$ac_func=no"
  2767. fi
  2768. rm -f conftest*
  2769. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2770. echo "$ac_t""yes" 1>&6
  2771. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2772. cat >> confdefs.h <<EOF
  2773. #define $ac_tr_func 1
  2774. EOF
  2775. else
  2776. echo "$ac_t""no" 1>&6
  2777. fi
  2778. done
  2779. for ac_func in drand48
  2780. do
  2781. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2782. echo "configure:3353: checking for $ac_func" >&5
  2783. cat > conftest.$ac_ext <<EOF
  2784. #line 3356 "configure"
  2785. #include "confdefs.h"
  2786. /* System header to define __stub macros and hopefully few prototypes,
  2787. which can conflict with char $ac_func(); below. */
  2788. #include <assert.h>
  2789. /* Override any gcc2 internal prototype to avoid an error. */
  2790. /* We use char because int might match the return type of a gcc2
  2791. builtin and then its argument prototype would still apply. */
  2792. char $ac_func();
  2793. int main() {
  2794. /* The GNU C library defines this for functions which it implements
  2795. to always fail with ENOSYS. Some functions are actually named
  2796. something starting with __ and the normal name is an alias. */
  2797. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2798. choke me
  2799. #else
  2800. $ac_func();
  2801. #endif
  2802. ; return 0; }
  2803. EOF
  2804. if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2805. rm -rf conftest*
  2806. eval "ac_cv_func_$ac_func=yes"
  2807. else
  2808. echo "configure: failed program was:" >&5
  2809. cat conftest.$ac_ext >&5
  2810. rm -rf conftest*
  2811. eval "ac_cv_func_$ac_func=no"
  2812. fi
  2813. rm -f conftest*
  2814. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2815. echo "$ac_t""yes" 1>&6
  2816. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2817. cat >> confdefs.h <<EOF
  2818. #define $ac_tr_func 1
  2819. EOF
  2820. else
  2821. echo "$ac_t""no" 1>&6
  2822. fi
  2823. done
  2824. for ac_func in putenv setenv
  2825. do
  2826. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2827. echo "configure:3405: checking for $ac_func" >&5
  2828. cat > conftest.$ac_ext <<EOF
  2829. #line 3408 "configure"
  2830. #include "confdefs.h"
  2831. /* System header to define __stub macros and hopefully few prototypes,
  2832. which can conflict with char $ac_func(); below. */
  2833. #include <assert.h>
  2834. /* Override any gcc2 internal prototype to avoid an error. */
  2835. /* We use char because int might match the return type of a gcc2
  2836. builtin and then its argument prototype would still apply. */
  2837. char $ac_func();
  2838. int main() {
  2839. /* The GNU C library defines this for functions which it implements
  2840. to always fail with ENOSYS. Some functions are actually named
  2841. something starting with __ and the normal name is an alias. */
  2842. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2843. choke me
  2844. #else
  2845. $ac_func();
  2846. #endif
  2847. ; return 0; }
  2848. EOF
  2849. if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2850. rm -rf conftest*
  2851. eval "ac_cv_func_$ac_func=yes"
  2852. else
  2853. echo "configure: failed program was:" >&5
  2854. cat conftest.$ac_ext >&5
  2855. rm -rf conftest*
  2856. eval "ac_cv_func_$ac_func=no"
  2857. fi
  2858. rm -f conftest*
  2859. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2860. echo "$ac_t""yes" 1>&6
  2861. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2862. cat >> confdefs.h <<EOF
  2863. #define $ac_tr_func 1
  2864. EOF
  2865. else
  2866. echo "$ac_t""no" 1>&6
  2867. fi
  2868. done
  2869. for ac_func in nanosleep
  2870. do
  2871. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2872. echo "configure:3457: checking for $ac_func" >&5
  2873. cat > conftest.$ac_ext <<EOF
  2874. #line 3460 "configure"
  2875. #include "confdefs.h"
  2876. /* System header to define __stub macros and hopefully few prototypes,
  2877. which can conflict with char $ac_func(); below. */
  2878. #include <assert.h>
  2879. /* Override any gcc2 internal prototype to avoid an error. */
  2880. /* We use char because int might match the return type of a gcc2
  2881. builtin and then its argument prototype would still apply. */
  2882. char $ac_func();
  2883. int main() {
  2884. /* The GNU C library defines this for functions which it implements
  2885. to always fail with ENOSYS. Some functions are actually named
  2886. something starting with __ and the normal name is an alias. */
  2887. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2888. choke me
  2889. #else
  2890. $ac_func();
  2891. #endif
  2892. ; return 0; }
  2893. EOF
  2894. if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2895. rm -rf conftest*
  2896. eval "ac_cv_func_$ac_func=yes"
  2897. else
  2898. echo "configure: failed program was:" >&5
  2899. cat conftest.$ac_ext >&5
  2900. rm -rf conftest*
  2901. eval "ac_cv_func_$ac_func=no"
  2902. fi
  2903. rm -f conftest*
  2904. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2905. echo "$ac_t""yes" 1>&6
  2906. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2907. cat >> confdefs.h <<EOF
  2908. #define $ac_tr_func 1
  2909. EOF
  2910. else
  2911. echo "$ac_t""no" 1>&6
  2912. fi
  2913. done
  2914. if test "$cross_compiling" != "yes" ; then
  2915. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2916. echo "configure:3508: checking whether setpgrp takes no argument" >&5
  2917. if test "$cross_compiling" = yes; then
  2918. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2919. else
  2920. cat > conftest.$ac_ext <<EOF
  2921. #line 3514 "configure"
  2922. #include "confdefs.h"
  2923. #ifdef HAVE_UNISTD_H
  2924. #include <unistd.h>
  2925. #endif
  2926. /*
  2927. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2928. * successfully.
  2929. */
  2930. main()
  2931. {
  2932. if (setpgrp(1,1) == -1)
  2933. exit(0);
  2934. else
  2935. exit(1);
  2936. }
  2937. EOF
  2938. if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2939. then
  2940. ac_cv_func_setpgrp_void=no
  2941. else
  2942. echo "configure: failed program was:" >&5
  2943. cat conftest.$ac_ext >&5
  2944. rm -fr conftest*
  2945. ac_cv_func_setpgrp_void=yes
  2946. fi
  2947. rm -fr conftest*
  2948. fi
  2949. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2950. if test $ac_cv_func_setpgrp_void = yes; then
  2951. cat >> confdefs.h <<\EOF
  2952. #define SETPGRP_VOID 1
  2953. EOF
  2954. fi
  2955. else
  2956. CROSS_COMPILING=1
  2957. fi
  2958. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2959. echo "configure:3562: checking for long long int" >&5
  2960. cat > conftest.$ac_ext <<EOF
  2961. #line 3564 "configure"
  2962. #include "confdefs.h"
  2963. int main() {
  2964. long long int x;
  2965. ; return 0; }
  2966. EOF
  2967. if { (eval echo configure:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2968. rm -rf conftest*
  2969. echo "$ac_t""yes" 1>&6
  2970. cat >> confdefs.h <<\EOF
  2971. #define HAVE_LONG_LONG_INT 1
  2972. EOF
  2973. else
  2974. echo "configure: failed program was:" >&5
  2975. cat conftest.$ac_ext >&5
  2976. rm -rf conftest*
  2977. echo "$ac_t""no" 1>&6
  2978. fi
  2979. rm -f conftest*
  2980. echo $ac_n "checking for W11""... $ac_c" 1>&6
  2981. echo "configure:3591: checking for W11" >&5
  2982. case "$enable_w11" in
  2983. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  2984. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  2985. esac
  2986. USE_X11=
  2987. USE_W11=
  2988. XLIB=
  2989. XTLIB=
  2990. if test "$enable_w11" = "yes" ; then
  2991. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  2992. X_LIBS='-L$(LIBDIR)'
  2993. USE_W11="1"
  2994. USE_X11="1"
  2995. XLIB=-lX11
  2996. CFLAGS="$CFLAGS -D__W98__"
  2997. else
  2998. # If we find X, set shell vars x_includes and x_libraries to the
  2999. # paths, otherwise set no_x=yes.
  3000. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3001. # --without-x overrides everything else, but does not touch the cache.
  3002. echo $ac_n "checking for X""... $ac_c" 1>&6
  3003. echo "configure:3619: checking for X" >&5
  3004. # Check whether --with-x or --without-x was given.
  3005. if test "${with_x+set}" = set; then
  3006. withval="$with_x"
  3007. :
  3008. fi
  3009. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3010. if test "x$with_x" = xno; then
  3011. # The user explicitly disabled X.
  3012. have_x=disabled
  3013. else
  3014. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3015. # Both variables are already set.
  3016. have_x=yes
  3017. else
  3018. # One or both of the vars are not set, and there is no cached value.
  3019. ac_x_includes=NO ac_x_libraries=NO
  3020. rm -fr conftestdir
  3021. if mkdir conftestdir; then
  3022. cd conftestdir
  3023. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3024. cat > Imakefile <<'EOF'
  3025. acfindx:
  3026. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3027. EOF
  3028. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3029. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3030. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3031. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3032. for ac_extension in a so sl; do
  3033. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3034. test -f $ac_im_libdir/libX11.$ac_extension; then
  3035. ac_im_usrlibdir=$ac_im_libdir; break
  3036. fi
  3037. done
  3038. # Screen out bogus values from the imake configuration. They are
  3039. # bogus both because they are the default anyway, and because
  3040. # using them would break gcc on systems where it needs fixed includes.
  3041. case "$ac_im_incroot" in
  3042. /usr/include) ;;
  3043. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3044. esac
  3045. case "$ac_im_usrlibdir" in
  3046. /usr/lib | /lib) ;;
  3047. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3048. esac
  3049. fi
  3050. cd ..
  3051. rm -fr conftestdir
  3052. fi
  3053. if test "$ac_x_includes" = NO; then
  3054. # Guess where to find include files, by looking for this one X11 .h file.
  3055. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3056. # First, try using that file with no special directory specified.
  3057. cat > conftest.$ac_ext <<EOF
  3058. #line 3679 "configure"
  3059. #include "confdefs.h"
  3060. #include <$x_direct_test_include>
  3061. EOF
  3062. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3063. { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3064. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3065. if test -z "$ac_err"; then
  3066. rm -rf conftest*
  3067. # We can compile using X headers with no special include directory.
  3068. ac_x_includes=
  3069. else
  3070. echo "$ac_err" >&5
  3071. echo "configure: failed program was:" >&5
  3072. cat conftest.$ac_ext >&5
  3073. rm -rf conftest*
  3074. # Look for the header file in a standard set of common directories.
  3075. # Check X11 before X11Rn because it is often a symlink to the current release.
  3076. for ac_dir in \
  3077. /usr/X11/include \
  3078. /usr/X11R6/include \
  3079. /usr/X11R5/include \
  3080. /usr/X11R4/include \
  3081. \
  3082. /usr/include/X11 \
  3083. /usr/include/X11R6 \
  3084. /usr/include/X11R5 \
  3085. /usr/include/X11R4 \
  3086. \
  3087. /usr/local/X11/include \
  3088. /usr/local/X11R6/include \
  3089. /usr/local/X11R5/include \
  3090. /usr/local/X11R4/include \
  3091. \
  3092. /usr/local/include/X11 \
  3093. /usr/local/include/X11R6 \
  3094. /usr/local/include/X11R5 \
  3095. /usr/local/include/X11R4 \
  3096. \
  3097. /usr/X386/include \
  3098. /usr/x386/include \
  3099. /usr/XFree86/include/X11 \
  3100. \
  3101. /usr/include \
  3102. /usr/local/include \
  3103. /usr/unsupported/include \
  3104. /usr/athena/include \
  3105. /usr/local/x11r5/include \
  3106. /usr/lpp/Xamples/include \
  3107. \
  3108. /usr/openwin/include \
  3109. /usr/openwin/share/include \
  3110. ; \
  3111. do
  3112. if test -r "$ac_dir/$x_direct_test_include"; then
  3113. ac_x_includes=$ac_dir
  3114. break
  3115. fi
  3116. done
  3117. fi
  3118. rm -f conftest*
  3119. fi # $ac_x_includes = NO
  3120. if test "$ac_x_libraries" = NO; then
  3121. # Check for the libraries.
  3122. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3123. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3124. # See if we find them without any special options.
  3125. # Don't add to $LIBS permanently.
  3126. ac_save_LIBS="$LIBS"
  3127. LIBS="-l$x_direct_test_library $LIBS"
  3128. cat > conftest.$ac_ext <<EOF
  3129. #line 3753 "configure"
  3130. #include "confdefs.h"
  3131. int main() {
  3132. ${x_direct_test_function}()
  3133. ; return 0; }
  3134. EOF
  3135. if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3136. rm -rf conftest*
  3137. LIBS="$ac_save_LIBS"
  3138. # We can link X programs with no special library path.
  3139. ac_x_libraries=
  3140. else
  3141. echo "configure: failed program was:" >&5
  3142. cat conftest.$ac_ext >&5
  3143. rm -rf conftest*
  3144. LIBS="$ac_save_LIBS"
  3145. # First see if replacing the include by lib works.
  3146. # Check X11 before X11Rn because it is often a symlink to the current release.
  3147. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3148. /usr/X11/lib \
  3149. /usr/X11R6/lib \
  3150. /usr/X11R5/lib \
  3151. /usr/X11R4/lib \
  3152. \
  3153. /usr/lib/X11 \
  3154. /usr/lib/X11R6 \
  3155. /usr/lib/X11R5 \
  3156. /usr/lib/X11R4 \
  3157. \
  3158. /usr/local/X11/lib \
  3159. /usr/local/X11R6/lib \
  3160. /usr/local/X11R5/lib \
  3161. /usr/local/X11R4/lib \
  3162. \
  3163. /usr/local/lib/X11 \
  3164. /usr/local/lib/X11R6 \
  3165. /usr/local/lib/X11R5 \
  3166. /usr/local/lib/X11R4 \
  3167. \
  3168. /usr/X386/lib \
  3169. /usr/x386/lib \
  3170. /usr/XFree86/lib/X11 \
  3171. \
  3172. /usr/lib \
  3173. /usr/local/lib \
  3174. /usr/unsupported/lib \
  3175. /usr/athena/lib \
  3176. /usr/local/x11r5/lib \
  3177. /usr/lpp/Xamples/lib \
  3178. /lib/usr/lib/X11 \
  3179. \
  3180. /usr/openwin/lib \
  3181. /usr/openwin/share/lib \
  3182. ; \
  3183. do
  3184. for ac_extension in a so sl; do
  3185. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3186. ac_x_libraries=$ac_dir
  3187. break 2
  3188. fi
  3189. done
  3190. done
  3191. fi
  3192. rm -f conftest*
  3193. fi # $ac_x_libraries = NO
  3194. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3195. # Didn't find X anywhere. Cache the known absence of X.
  3196. ac_cv_have_x="have_x=no"
  3197. else
  3198. # Record where we found X for the cache.
  3199. ac_cv_have_x="have_x=yes \
  3200. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3201. fi
  3202. fi
  3203. eval "$ac_cv_have_x"
  3204. fi # $with_x != no
  3205. if test "$have_x" != yes; then
  3206. echo "$ac_t""$have_x" 1>&6
  3207. no_x=yes
  3208. else
  3209. # If each of the values was on the command line, it overrides each guess.
  3210. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3211. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3212. # Update the cache value to reflect the command line values.
  3213. ac_cv_have_x="have_x=yes \
  3214. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3215. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3216. fi
  3217. if test "$no_x" = yes; then
  3218. # Not all programs may use this symbol, but it does not hurt to define it.
  3219. cat >> confdefs.h <<\EOF
  3220. #define X_DISPLAY_MISSING 1
  3221. EOF
  3222. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3223. else
  3224. if test -n "$x_includes"; then
  3225. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3226. fi
  3227. # It would also be nice to do this for all -L options, not just this one.
  3228. if test -n "$x_libraries"; then
  3229. X_LIBS="$X_LIBS -L$x_libraries"
  3230. # For Solaris; some versions of Sun CC require a space after -R and
  3231. # others require no space. Words are not sufficient . . . .
  3232. case "`(uname -sr) 2>/dev/null`" in
  3233. "SunOS 5"*)
  3234. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3235. echo "configure:3865: checking whether -R must be followed by a space" >&5
  3236. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3237. cat > conftest.$ac_ext <<EOF
  3238. #line 3868 "configure"
  3239. #include "confdefs.h"
  3240. int main() {
  3241. ; return 0; }
  3242. EOF
  3243. if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3244. rm -rf conftest*
  3245. ac_R_nospace=yes
  3246. else
  3247. echo "configure: failed program was:" >&5
  3248. cat conftest.$ac_ext >&5
  3249. rm -rf conftest*
  3250. ac_R_nospace=no
  3251. fi
  3252. rm -f conftest*
  3253. if test $ac_R_nospace = yes; then
  3254. echo "$ac_t""no" 1>&6
  3255. X_LIBS="$X_LIBS -R$x_libraries"
  3256. else
  3257. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3258. cat > conftest.$ac_ext <<EOF
  3259. #line 3891 "configure"
  3260. #include "confdefs.h"
  3261. int main() {
  3262. ; return 0; }
  3263. EOF
  3264. if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3265. rm -rf conftest*
  3266. ac_R_space=yes
  3267. else
  3268. echo "configure: failed program was:" >&5
  3269. cat conftest.$ac_ext >&5
  3270. rm -rf conftest*
  3271. ac_R_space=no
  3272. fi
  3273. rm -f conftest*
  3274. if test $ac_R_space = yes; then
  3275. echo "$ac_t""yes" 1>&6
  3276. X_LIBS="$X_LIBS -R $x_libraries"
  3277. else
  3278. echo "$ac_t""neither works" 1>&6
  3279. fi
  3280. fi
  3281. LIBS="$ac_xsave_LIBS"
  3282. esac
  3283. fi
  3284. # Check for system-dependent libraries X programs must link with.
  3285. # Do this before checking for the system-independent R6 libraries
  3286. # (-lICE), since we may need -lsocket or whatever for X linking.
  3287. if test "$ISC" = yes; then
  3288. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3289. else
  3290. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3291. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3292. # the Alpha needs dnet_stub (dnet does not exist).
  3293. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3294. echo "configure:3930: checking for dnet_ntoa in -ldnet" >&5
  3295. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3296. ac_save_LIBS="$LIBS"
  3297. LIBS="-ldnet $LIBS"
  3298. cat > conftest.$ac_ext <<EOF
  3299. #line 3936 "configure"
  3300. #include "confdefs.h"
  3301. /* Override any gcc2 internal prototype to avoid an error. */
  3302. /* We use char because int might match the return type of a gcc2
  3303. builtin and then its argument prototype would still apply. */
  3304. char dnet_ntoa();
  3305. int main() {
  3306. dnet_ntoa()
  3307. ; return 0; }
  3308. EOF
  3309. if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3310. rm -rf conftest*
  3311. eval "ac_cv_lib_$ac_lib_var=yes"
  3312. else
  3313. echo "configure: failed program was:" >&5
  3314. cat conftest.$ac_ext >&5
  3315. rm -rf conftest*
  3316. eval "ac_cv_lib_$ac_lib_var=no"
  3317. fi
  3318. rm -f conftest*
  3319. LIBS="$ac_save_LIBS"
  3320. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3321. echo "$ac_t""yes" 1>&6
  3322. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3323. else
  3324. echo "$ac_t""no" 1>&6
  3325. fi
  3326. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3327. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3328. echo "configure:3968: checking for dnet_ntoa in -ldnet_stub" >&5
  3329. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3330. ac_save_LIBS="$LIBS"
  3331. LIBS="-ldnet_stub $LIBS"
  3332. cat > conftest.$ac_ext <<EOF
  3333. #line 3974 "configure"
  3334. #include "confdefs.h"
  3335. /* Override any gcc2 internal prototype to avoid an error. */
  3336. /* We use char because int might match the return type of a gcc2
  3337. builtin and then its argument prototype would still apply. */
  3338. char dnet_ntoa();
  3339. int main() {
  3340. dnet_ntoa()
  3341. ; return 0; }
  3342. EOF
  3343. if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3344. rm -rf conftest*
  3345. eval "ac_cv_lib_$ac_lib_var=yes"
  3346. else
  3347. echo "configure: failed program was:" >&5
  3348. cat conftest.$ac_ext >&5
  3349. rm -rf conftest*
  3350. eval "ac_cv_lib_$ac_lib_var=no"
  3351. fi
  3352. rm -f conftest*
  3353. LIBS="$ac_save_LIBS"
  3354. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3355. echo "$ac_t""yes" 1>&6
  3356. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3357. else
  3358. echo "$ac_t""no" 1>&6
  3359. fi
  3360. fi
  3361. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3362. # to get the SysV transport functions.
  3363. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3364. # needs -lnsl.
  3365. # The nsl library prevents programs from opening the X display
  3366. # on Irix 5.2, according to dickey@clark.net.
  3367. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3368. echo "configure:4013: checking for gethostbyname" >&5
  3369. cat > conftest.$ac_ext <<EOF
  3370. #line 4016 "configure"
  3371. #include "confdefs.h"
  3372. /* System header to define __stub macros and hopefully few prototypes,
  3373. which can conflict with char gethostbyname(); below. */
  3374. #include <assert.h>
  3375. /* Override any gcc2 internal prototype to avoid an error. */
  3376. /* We use char because int might match the return type of a gcc2
  3377. builtin and then its argument prototype would still apply. */
  3378. char gethostbyname();
  3379. int main() {
  3380. /* The GNU C library defines this for functions which it implements
  3381. to always fail with ENOSYS. Some functions are actually named
  3382. something starting with __ and the normal name is an alias. */
  3383. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3384. choke me
  3385. #else
  3386. gethostbyname();
  3387. #endif
  3388. ; return 0; }
  3389. EOF
  3390. if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3391. rm -rf conftest*
  3392. eval "ac_cv_func_gethostbyname=yes"
  3393. else
  3394. echo "configure: failed program was:" >&5
  3395. cat conftest.$ac_ext >&5
  3396. rm -rf conftest*
  3397. eval "ac_cv_func_gethostbyname=no"
  3398. fi
  3399. rm -f conftest*
  3400. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3401. echo "$ac_t""yes" 1>&6
  3402. :
  3403. else
  3404. echo "$ac_t""no" 1>&6
  3405. fi
  3406. if test $ac_cv_func_gethostbyname = no; then
  3407. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3408. echo "configure:4059: checking for gethostbyname in -lnsl" >&5
  3409. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3410. ac_save_LIBS="$LIBS"
  3411. LIBS="-lnsl $LIBS"
  3412. cat > conftest.$ac_ext <<EOF
  3413. #line 4065 "configure"
  3414. #include "confdefs.h"
  3415. /* Override any gcc2 internal prototype to avoid an error. */
  3416. /* We use char because int might match the return type of a gcc2
  3417. builtin and then its argument prototype would still apply. */
  3418. char gethostbyname();
  3419. int main() {
  3420. gethostbyname()
  3421. ; return 0; }
  3422. EOF
  3423. if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3424. rm -rf conftest*
  3425. eval "ac_cv_lib_$ac_lib_var=yes"
  3426. else
  3427. echo "configure: failed program was:" >&5
  3428. cat conftest.$ac_ext >&5
  3429. rm -rf conftest*
  3430. eval "ac_cv_lib_$ac_lib_var=no"
  3431. fi
  3432. rm -f conftest*
  3433. LIBS="$ac_save_LIBS"
  3434. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3435. echo "$ac_t""yes" 1>&6
  3436. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3437. else
  3438. echo "$ac_t""no" 1>&6
  3439. fi
  3440. fi
  3441. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3442. # socket/setsockopt and other routines are undefined under SCO ODT
  3443. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3444. # on later versions), says simon@lia.di.epfl.ch: it contains
  3445. # gethostby* variants that don't use the nameserver (or something).
  3446. # -lsocket must be given before -lnsl if both are needed.
  3447. # We assume that if connect needs -lnsl, so does gethostbyname.
  3448. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3449. echo "configure:4105: checking for connect" >&5
  3450. cat > conftest.$ac_ext <<EOF
  3451. #line 4108 "configure"
  3452. #include "confdefs.h"
  3453. /* System header to define __stub macros and hopefully few prototypes,
  3454. which can conflict with char connect(); below. */
  3455. #include <assert.h>
  3456. /* Override any gcc2 internal prototype to avoid an error. */
  3457. /* We use char because int might match the return type of a gcc2
  3458. builtin and then its argument prototype would still apply. */
  3459. char connect();
  3460. int main() {
  3461. /* The GNU C library defines this for functions which it implements
  3462. to always fail with ENOSYS. Some functions are actually named
  3463. something starting with __ and the normal name is an alias. */
  3464. #if defined (__stub_connect) || defined (__stub___connect)
  3465. choke me
  3466. #else
  3467. connect();
  3468. #endif
  3469. ; return 0; }
  3470. EOF
  3471. if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3472. rm -rf conftest*
  3473. eval "ac_cv_func_connect=yes"
  3474. else
  3475. echo "configure: failed program was:" >&5
  3476. cat conftest.$ac_ext >&5
  3477. rm -rf conftest*
  3478. eval "ac_cv_func_connect=no"
  3479. fi
  3480. rm -f conftest*
  3481. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3482. echo "$ac_t""yes" 1>&6
  3483. :
  3484. else
  3485. echo "$ac_t""no" 1>&6
  3486. fi
  3487. if test $ac_cv_func_connect = no; then
  3488. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3489. echo "configure:4151: checking for connect in -lsocket" >&5
  3490. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3491. ac_save_LIBS="$LIBS"
  3492. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3493. cat > conftest.$ac_ext <<EOF
  3494. #line 4157 "configure"
  3495. #include "confdefs.h"
  3496. /* Override any gcc2 internal prototype to avoid an error. */
  3497. /* We use char because int might match the return type of a gcc2
  3498. builtin and then its argument prototype would still apply. */
  3499. char connect();
  3500. int main() {
  3501. connect()
  3502. ; return 0; }
  3503. EOF
  3504. if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3505. rm -rf conftest*
  3506. eval "ac_cv_lib_$ac_lib_var=yes"
  3507. else
  3508. echo "configure: failed program was:" >&5
  3509. cat conftest.$ac_ext >&5
  3510. rm -rf conftest*
  3511. eval "ac_cv_lib_$ac_lib_var=no"
  3512. fi
  3513. rm -f conftest*
  3514. LIBS="$ac_save_LIBS"
  3515. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3516. echo "$ac_t""yes" 1>&6
  3517. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3518. else
  3519. echo "$ac_t""no" 1>&6
  3520. fi
  3521. fi
  3522. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3523. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3524. echo "configure:4191: checking for remove" >&5
  3525. cat > conftest.$ac_ext <<EOF
  3526. #line 4194 "configure"
  3527. #include "confdefs.h"
  3528. /* System header to define __stub macros and hopefully few prototypes,
  3529. which can conflict with char remove(); below. */
  3530. #include <assert.h>
  3531. /* Override any gcc2 internal prototype to avoid an error. */
  3532. /* We use char because int might match the return type of a gcc2
  3533. builtin and then its argument prototype would still apply. */
  3534. char remove();
  3535. int main() {
  3536. /* The GNU C library defines this for functions which it implements
  3537. to always fail with ENOSYS. Some functions are actually named
  3538. something starting with __ and the normal name is an alias. */
  3539. #if defined (__stub_remove) || defined (__stub___remove)
  3540. choke me
  3541. #else
  3542. remove();
  3543. #endif
  3544. ; return 0; }
  3545. EOF
  3546. if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3547. rm -rf conftest*
  3548. eval "ac_cv_func_remove=yes"
  3549. else
  3550. echo "configure: failed program was:" >&5
  3551. cat conftest.$ac_ext >&5
  3552. rm -rf conftest*
  3553. eval "ac_cv_func_remove=no"
  3554. fi
  3555. rm -f conftest*
  3556. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3557. echo "$ac_t""yes" 1>&6
  3558. :
  3559. else
  3560. echo "$ac_t""no" 1>&6
  3561. fi
  3562. if test $ac_cv_func_remove = no; then
  3563. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3564. echo "configure:4237: checking for remove in -lposix" >&5
  3565. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3566. ac_save_LIBS="$LIBS"
  3567. LIBS="-lposix $LIBS"
  3568. cat > conftest.$ac_ext <<EOF
  3569. #line 4243 "configure"
  3570. #include "confdefs.h"
  3571. /* Override any gcc2 internal prototype to avoid an error. */
  3572. /* We use char because int might match the return type of a gcc2
  3573. builtin and then its argument prototype would still apply. */
  3574. char remove();
  3575. int main() {
  3576. remove()
  3577. ; return 0; }
  3578. EOF
  3579. if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3580. rm -rf conftest*
  3581. eval "ac_cv_lib_$ac_lib_var=yes"
  3582. else
  3583. echo "configure: failed program was:" >&5
  3584. cat conftest.$ac_ext >&5
  3585. rm -rf conftest*
  3586. eval "ac_cv_lib_$ac_lib_var=no"
  3587. fi
  3588. rm -f conftest*
  3589. LIBS="$ac_save_LIBS"
  3590. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3591. echo "$ac_t""yes" 1>&6
  3592. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3593. else
  3594. echo "$ac_t""no" 1>&6
  3595. fi
  3596. fi
  3597. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3598. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3599. echo "configure:4277: checking for shmat" >&5
  3600. cat > conftest.$ac_ext <<EOF
  3601. #line 4280 "configure"
  3602. #include "confdefs.h"
  3603. /* System header to define __stub macros and hopefully few prototypes,
  3604. which can conflict with char shmat(); below. */
  3605. #include <assert.h>
  3606. /* Override any gcc2 internal prototype to avoid an error. */
  3607. /* We use char because int might match the return type of a gcc2
  3608. builtin and then its argument prototype would still apply. */
  3609. char shmat();
  3610. int main() {
  3611. /* The GNU C library defines this for functions which it implements
  3612. to always fail with ENOSYS. Some functions are actually named
  3613. something starting with __ and the normal name is an alias. */
  3614. #if defined (__stub_shmat) || defined (__stub___shmat)
  3615. choke me
  3616. #else
  3617. shmat();
  3618. #endif
  3619. ; return 0; }
  3620. EOF
  3621. if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3622. rm -rf conftest*
  3623. eval "ac_cv_func_shmat=yes"
  3624. else
  3625. echo "configure: failed program was:" >&5
  3626. cat conftest.$ac_ext >&5
  3627. rm -rf conftest*
  3628. eval "ac_cv_func_shmat=no"
  3629. fi
  3630. rm -f conftest*
  3631. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3632. echo "$ac_t""yes" 1>&6
  3633. :
  3634. else
  3635. echo "$ac_t""no" 1>&6
  3636. fi
  3637. if test $ac_cv_func_shmat = no; then
  3638. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3639. echo "configure:4323: checking for shmat in -lipc" >&5
  3640. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3641. ac_save_LIBS="$LIBS"
  3642. LIBS="-lipc $LIBS"
  3643. cat > conftest.$ac_ext <<EOF
  3644. #line 4329 "configure"
  3645. #include "confdefs.h"
  3646. /* Override any gcc2 internal prototype to avoid an error. */
  3647. /* We use char because int might match the return type of a gcc2
  3648. builtin and then its argument prototype would still apply. */
  3649. char shmat();
  3650. int main() {
  3651. shmat()
  3652. ; return 0; }
  3653. EOF
  3654. if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3655. rm -rf conftest*
  3656. eval "ac_cv_lib_$ac_lib_var=yes"
  3657. else
  3658. echo "configure: failed program was:" >&5
  3659. cat conftest.$ac_ext >&5
  3660. rm -rf conftest*
  3661. eval "ac_cv_lib_$ac_lib_var=no"
  3662. fi
  3663. rm -f conftest*
  3664. LIBS="$ac_save_LIBS"
  3665. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3666. echo "$ac_t""yes" 1>&6
  3667. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3668. else
  3669. echo "$ac_t""no" 1>&6
  3670. fi
  3671. fi
  3672. fi
  3673. # Check for libraries that X11R6 Xt/Xaw programs need.
  3674. ac_save_LDFLAGS="$LDFLAGS"
  3675. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3676. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3677. # check for ICE first), but we must link in the order -lSM -lICE or
  3678. # we get undefined symbols. So assume we have SM if we have ICE.
  3679. # These have to be linked with before -lX11, unlike the other
  3680. # libraries we check for below, so use a different variable.
  3681. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3682. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3683. echo "configure:4372: checking for IceConnectionNumber in -lICE" >&5
  3684. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3685. ac_save_LIBS="$LIBS"
  3686. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3687. cat > conftest.$ac_ext <<EOF
  3688. #line 4378 "configure"
  3689. #include "confdefs.h"
  3690. /* Override any gcc2 internal prototype to avoid an error. */
  3691. /* We use char because int might match the return type of a gcc2
  3692. builtin and then its argument prototype would still apply. */
  3693. char IceConnectionNumber();
  3694. int main() {
  3695. IceConnectionNumber()
  3696. ; return 0; }
  3697. EOF
  3698. if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3699. rm -rf conftest*
  3700. eval "ac_cv_lib_$ac_lib_var=yes"
  3701. else
  3702. echo "configure: failed program was:" >&5
  3703. cat conftest.$ac_ext >&5
  3704. rm -rf conftest*
  3705. eval "ac_cv_lib_$ac_lib_var=no"
  3706. fi
  3707. rm -f conftest*
  3708. LIBS="$ac_save_LIBS"
  3709. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3710. echo "$ac_t""yes" 1>&6
  3711. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3712. else
  3713. echo "$ac_t""no" 1>&6
  3714. fi
  3715. LDFLAGS="$ac_save_LDFLAGS"
  3716. fi
  3717. if test "$no_x" != "yes"; then
  3718. USE_X11="1"
  3719. XLIB=-lX11
  3720. XTLIB=-lXt
  3721. fi
  3722. fi
  3723. # Note that some systems (FreeBSD for example) need an extra library for
  3724. # cuserid
  3725. ac_save_libs="$LIBS"
  3726. LIBS=""
  3727. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3728. echo "configure:4429: checking for library containing cuserid" >&5
  3729. ac_func_search_save_LIBS="$LIBS"
  3730. ac_cv_search_cuserid="no"
  3731. cat > conftest.$ac_ext <<EOF
  3732. #line 4434 "configure"
  3733. #include "confdefs.h"
  3734. /* Override any gcc2 internal prototype to avoid an error. */
  3735. /* We use char because int might match the return type of a gcc2
  3736. builtin and then its argument prototype would still apply. */
  3737. char cuserid();
  3738. int main() {
  3739. cuserid()
  3740. ; return 0; }
  3741. EOF
  3742. if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3743. rm -rf conftest*
  3744. ac_cv_search_cuserid="none required"
  3745. else
  3746. echo "configure: failed program was:" >&5
  3747. cat conftest.$ac_ext >&5
  3748. fi
  3749. rm -f conftest*
  3750. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3751. LIBS="-l$i $ac_func_search_save_LIBS"
  3752. cat > conftest.$ac_ext <<EOF
  3753. #line 4456 "configure"
  3754. #include "confdefs.h"
  3755. /* Override any gcc2 internal prototype to avoid an error. */
  3756. /* We use char because int might match the return type of a gcc2
  3757. builtin and then its argument prototype would still apply. */
  3758. char cuserid();
  3759. int main() {
  3760. cuserid()
  3761. ; return 0; }
  3762. EOF
  3763. if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3764. rm -rf conftest*
  3765. ac_cv_search_cuserid="-l$i"
  3766. break
  3767. else
  3768. echo "configure: failed program was:" >&5
  3769. cat conftest.$ac_ext >&5
  3770. fi
  3771. rm -f conftest*
  3772. done
  3773. LIBS="$ac_func_search_save_LIBS"
  3774. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3775. if test "$ac_cv_search_cuserid" != "no"; then
  3776. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3777. else :
  3778. fi
  3779. DBMIEXTRALIB="$LIBS"
  3780. LIBS="$ac_save_libs"
  3781. for ac_func in asprintf
  3782. do
  3783. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3784. echo "configure:4493: checking for $ac_func" >&5
  3785. cat > conftest.$ac_ext <<EOF
  3786. #line 4496 "configure"
  3787. #include "confdefs.h"
  3788. /* System header to define __stub macros and hopefully few prototypes,
  3789. which can conflict with char $ac_func(); below. */
  3790. #include <assert.h>
  3791. /* Override any gcc2 internal prototype to avoid an error. */
  3792. /* We use char because int might match the return type of a gcc2
  3793. builtin and then its argument prototype would still apply. */
  3794. char $ac_func();
  3795. int main() {
  3796. /* The GNU C library defines this for functions which it implements
  3797. to always fail with ENOSYS. Some functions are actually named
  3798. something starting with __ and the normal name is an alias. */
  3799. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3800. choke me
  3801. #else
  3802. $ac_func();
  3803. #endif
  3804. ; return 0; }
  3805. EOF
  3806. if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3807. rm -rf conftest*
  3808. eval "ac_cv_func_$ac_func=yes"
  3809. else
  3810. echo "configure: failed program was:" >&5
  3811. cat conftest.$ac_ext >&5
  3812. rm -rf conftest*
  3813. eval "ac_cv_func_$ac_func=no"
  3814. fi
  3815. rm -f conftest*
  3816. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3817. echo "$ac_t""yes" 1>&6
  3818. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3819. cat >> confdefs.h <<EOF
  3820. #define $ac_tr_func 1
  3821. EOF
  3822. else
  3823. echo "$ac_t""no" 1>&6
  3824. fi
  3825. done
  3826. # Test if mathlib needs -lm flag or is included with libc
  3827. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3828. echo "configure:4546: checking for atan" >&5
  3829. cat > conftest.$ac_ext <<EOF
  3830. #line 4549 "configure"
  3831. #include "confdefs.h"
  3832. /* System header to define __stub macros and hopefully few prototypes,
  3833. which can conflict with char atan(); below. */
  3834. #include <assert.h>
  3835. /* Override any gcc2 internal prototype to avoid an error. */
  3836. /* We use char because int might match the return type of a gcc2
  3837. builtin and then its argument prototype would still apply. */
  3838. char atan();
  3839. int main() {
  3840. /* The GNU C library defines this for functions which it implements
  3841. to always fail with ENOSYS. Some functions are actually named
  3842. something starting with __ and the normal name is an alias. */
  3843. #if defined (__stub_atan) || defined (__stub___atan)
  3844. choke me
  3845. #else
  3846. atan();
  3847. #endif
  3848. ; return 0; }
  3849. EOF
  3850. if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3851. rm -rf conftest*
  3852. eval "ac_cv_func_atan=yes"
  3853. else
  3854. echo "configure: failed program was:" >&5
  3855. cat conftest.$ac_ext >&5
  3856. rm -rf conftest*
  3857. eval "ac_cv_func_atan=no"
  3858. fi
  3859. rm -f conftest*
  3860. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3861. echo "$ac_t""yes" 1>&6
  3862. MATHLIB=
  3863. else
  3864. echo "$ac_t""no" 1>&6
  3865. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3866. echo "configure:4590: checking for atan in -lm" >&5
  3867. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3868. ac_save_LIBS="$LIBS"
  3869. LIBS="-lm $LIBS"
  3870. cat > conftest.$ac_ext <<EOF
  3871. #line 4596 "configure"
  3872. #include "confdefs.h"
  3873. /* Override any gcc2 internal prototype to avoid an error. */
  3874. /* We use char because int might match the return type of a gcc2
  3875. builtin and then its argument prototype would still apply. */
  3876. char atan();
  3877. int main() {
  3878. atan()
  3879. ; return 0; }
  3880. EOF
  3881. if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3882. rm -rf conftest*
  3883. eval "ac_cv_lib_$ac_lib_var=yes"
  3884. else
  3885. echo "configure: failed program was:" >&5
  3886. cat conftest.$ac_ext >&5
  3887. rm -rf conftest*
  3888. eval "ac_cv_lib_$ac_lib_var=no"
  3889. fi
  3890. rm -f conftest*
  3891. LIBS="$ac_save_LIBS"
  3892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3893. echo "$ac_t""yes" 1>&6
  3894. MATHLIB=-lm
  3895. else
  3896. echo "$ac_t""no" 1>&6
  3897. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3898. fi
  3899. fi
  3900. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3901. echo "configure:4634: checking for dlsym" >&5
  3902. cat > conftest.$ac_ext <<EOF
  3903. #line 4637 "configure"
  3904. #include "confdefs.h"
  3905. /* System header to define __stub macros and hopefully few prototypes,
  3906. which can conflict with char dlsym(); below. */
  3907. #include <assert.h>
  3908. /* Override any gcc2 internal prototype to avoid an error. */
  3909. /* We use char because int might match the return type of a gcc2
  3910. builtin and then its argument prototype would still apply. */
  3911. char dlsym();
  3912. int main() {
  3913. /* The GNU C library defines this for functions which it implements
  3914. to always fail with ENOSYS. Some functions are actually named
  3915. something starting with __ and the normal name is an alias. */
  3916. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3917. choke me
  3918. #else
  3919. dlsym();
  3920. #endif
  3921. ; return 0; }
  3922. EOF
  3923. if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3924. rm -rf conftest*
  3925. eval "ac_cv_func_dlsym=yes"
  3926. else
  3927. echo "configure: failed program was:" >&5
  3928. cat conftest.$ac_ext >&5
  3929. rm -rf conftest*
  3930. eval "ac_cv_func_dlsym=no"
  3931. fi
  3932. rm -f conftest*
  3933. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3934. echo "$ac_t""yes" 1>&6
  3935. DLLIB=
  3936. else
  3937. echo "$ac_t""no" 1>&6
  3938. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3939. echo "configure:4678: checking for dlsym in -ldl" >&5
  3940. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3941. ac_save_LIBS="$LIBS"
  3942. LIBS="-ldl $LIBS"
  3943. cat > conftest.$ac_ext <<EOF
  3944. #line 4684 "configure"
  3945. #include "confdefs.h"
  3946. /* Override any gcc2 internal prototype to avoid an error. */
  3947. /* We use char because int might match the return type of a gcc2
  3948. builtin and then its argument prototype would still apply. */
  3949. char dlsym();
  3950. int main() {
  3951. dlsym()
  3952. ; return 0; }
  3953. EOF
  3954. if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3955. rm -rf conftest*
  3956. eval "ac_cv_lib_$ac_lib_var=yes"
  3957. else
  3958. echo "configure: failed program was:" >&5
  3959. cat conftest.$ac_ext >&5
  3960. rm -rf conftest*
  3961. eval "ac_cv_lib_$ac_lib_var=no"
  3962. fi
  3963. rm -f conftest*
  3964. LIBS="$ac_save_LIBS"
  3965. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3966. echo "$ac_t""yes" 1>&6
  3967. DLLIB=-ldl
  3968. else
  3969. echo "$ac_t""no" 1>&6
  3970. DLLIB=
  3971. fi
  3972. fi
  3973. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3974. echo "configure:4722: checking for iconv" >&5
  3975. cat > conftest.$ac_ext <<EOF
  3976. #line 4725 "configure"
  3977. #include "confdefs.h"
  3978. /* System header to define __stub macros and hopefully few prototypes,
  3979. which can conflict with char iconv(); below. */
  3980. #include <assert.h>
  3981. /* Override any gcc2 internal prototype to avoid an error. */
  3982. /* We use char because int might match the return type of a gcc2
  3983. builtin and then its argument prototype would still apply. */
  3984. char iconv();
  3985. int main() {
  3986. /* The GNU C library defines this for functions which it implements
  3987. to always fail with ENOSYS. Some functions are actually named
  3988. something starting with __ and the normal name is an alias. */
  3989. #if defined (__stub_iconv) || defined (__stub___iconv)
  3990. choke me
  3991. #else
  3992. iconv();
  3993. #endif
  3994. ; return 0; }
  3995. EOF
  3996. if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3997. rm -rf conftest*
  3998. eval "ac_cv_func_iconv=yes"
  3999. else
  4000. echo "configure: failed program was:" >&5
  4001. cat conftest.$ac_ext >&5
  4002. rm -rf conftest*
  4003. eval "ac_cv_func_iconv=no"
  4004. fi
  4005. rm -f conftest*
  4006. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4007. echo "$ac_t""yes" 1>&6
  4008. ICONVLIB=
  4009. else
  4010. echo "$ac_t""no" 1>&6
  4011. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4012. echo "configure:4766: checking for iconv in -liconv" >&5
  4013. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4014. ac_save_LIBS="$LIBS"
  4015. LIBS="-liconv $LIBS"
  4016. cat > conftest.$ac_ext <<EOF
  4017. #line 4772 "configure"
  4018. #include "confdefs.h"
  4019. /* Override any gcc2 internal prototype to avoid an error. */
  4020. /* We use char because int might match the return type of a gcc2
  4021. builtin and then its argument prototype would still apply. */
  4022. char iconv();
  4023. int main() {
  4024. iconv()
  4025. ; return 0; }
  4026. EOF
  4027. if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4028. rm -rf conftest*
  4029. eval "ac_cv_lib_$ac_lib_var=yes"
  4030. else
  4031. echo "configure: failed program was:" >&5
  4032. cat conftest.$ac_ext >&5
  4033. rm -rf conftest*
  4034. eval "ac_cv_lib_$ac_lib_var=no"
  4035. fi
  4036. rm -f conftest*
  4037. LIBS="$ac_save_LIBS"
  4038. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4039. echo "$ac_t""yes" 1>&6
  4040. ICONVLIB=-liconv
  4041. else
  4042. echo "$ac_t""no" 1>&6
  4043. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4044. echo "configure:4802: checking for iconv in -lgiconv" >&5
  4045. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4046. ac_save_LIBS="$LIBS"
  4047. LIBS="-lgiconv $LIBS"
  4048. cat > conftest.$ac_ext <<EOF
  4049. #line 4808 "configure"
  4050. #include "confdefs.h"
  4051. /* Override any gcc2 internal prototype to avoid an error. */
  4052. /* We use char because int might match the return type of a gcc2
  4053. builtin and then its argument prototype would still apply. */
  4054. char iconv();
  4055. int main() {
  4056. iconv()
  4057. ; return 0; }
  4058. EOF
  4059. if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4060. rm -rf conftest*
  4061. eval "ac_cv_lib_$ac_lib_var=yes"
  4062. else
  4063. echo "configure: failed program was:" >&5
  4064. cat conftest.$ac_ext >&5
  4065. rm -rf conftest*
  4066. eval "ac_cv_lib_$ac_lib_var=no"
  4067. fi
  4068. rm -f conftest*
  4069. LIBS="$ac_save_LIBS"
  4070. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4071. echo "$ac_t""yes" 1>&6
  4072. ICONVLIB=-lgiconv
  4073. else
  4074. echo "$ac_t""no" 1>&6
  4075. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4076. echo "configure:4838: checking for libiconv" >&5
  4077. cat > conftest.$ac_ext <<EOF
  4078. #line 4841 "configure"
  4079. #include "confdefs.h"
  4080. /* System header to define __stub macros and hopefully few prototypes,
  4081. which can conflict with char libiconv(); below. */
  4082. #include <assert.h>
  4083. /* Override any gcc2 internal prototype to avoid an error. */
  4084. /* We use char because int might match the return type of a gcc2
  4085. builtin and then its argument prototype would still apply. */
  4086. char libiconv();
  4087. int main() {
  4088. /* The GNU C library defines this for functions which it implements
  4089. to always fail with ENOSYS. Some functions are actually named
  4090. something starting with __ and the normal name is an alias. */
  4091. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4092. choke me
  4093. #else
  4094. libiconv();
  4095. #endif
  4096. ; return 0; }
  4097. EOF
  4098. if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4099. rm -rf conftest*
  4100. eval "ac_cv_func_libiconv=yes"
  4101. else
  4102. echo "configure: failed program was:" >&5
  4103. cat conftest.$ac_ext >&5
  4104. rm -rf conftest*
  4105. eval "ac_cv_func_libiconv=no"
  4106. fi
  4107. rm -f conftest*
  4108. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4109. echo "$ac_t""yes" 1>&6
  4110. ICONVLIB=
  4111. else
  4112. echo "$ac_t""no" 1>&6
  4113. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4114. echo "configure:4882: checking for libiconv in -liconv" >&5
  4115. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4116. ac_save_LIBS="$LIBS"
  4117. LIBS="-liconv $LIBS"
  4118. cat > conftest.$ac_ext <<EOF
  4119. #line 4888 "configure"
  4120. #include "confdefs.h"
  4121. /* Override any gcc2 internal prototype to avoid an error. */
  4122. /* We use char because int might match the return type of a gcc2
  4123. builtin and then its argument prototype would still apply. */
  4124. char libiconv();
  4125. int main() {
  4126. libiconv()
  4127. ; return 0; }
  4128. EOF
  4129. if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4130. rm -rf conftest*
  4131. eval "ac_cv_lib_$ac_lib_var=yes"
  4132. else
  4133. echo "configure: failed program was:" >&5
  4134. cat conftest.$ac_ext >&5
  4135. rm -rf conftest*
  4136. eval "ac_cv_lib_$ac_lib_var=no"
  4137. fi
  4138. rm -f conftest*
  4139. LIBS="$ac_save_LIBS"
  4140. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4141. echo "$ac_t""yes" 1>&6
  4142. ICONVLIB=-liconv
  4143. else
  4144. echo "$ac_t""no" 1>&6
  4145. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4146. echo "configure:4918: checking for libiconv in -lgiconv" >&5
  4147. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4148. ac_save_LIBS="$LIBS"
  4149. LIBS="-lgiconv $LIBS"
  4150. cat > conftest.$ac_ext <<EOF
  4151. #line 4924 "configure"
  4152. #include "confdefs.h"
  4153. /* Override any gcc2 internal prototype to avoid an error. */
  4154. /* We use char because int might match the return type of a gcc2
  4155. builtin and then its argument prototype would still apply. */
  4156. char libiconv();
  4157. int main() {
  4158. libiconv()
  4159. ; return 0; }
  4160. EOF
  4161. if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4162. rm -rf conftest*
  4163. eval "ac_cv_lib_$ac_lib_var=yes"
  4164. else
  4165. echo "configure: failed program was:" >&5
  4166. cat conftest.$ac_ext >&5
  4167. rm -rf conftest*
  4168. eval "ac_cv_lib_$ac_lib_var=no"
  4169. fi
  4170. rm -f conftest*
  4171. LIBS="$ac_save_LIBS"
  4172. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4173. echo "$ac_t""yes" 1>&6
  4174. ICONVLIB=-lgiconv
  4175. else
  4176. echo "$ac_t""no" 1>&6
  4177. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4178. ICONVLIB=
  4179. fi
  4180. fi
  4181. fi
  4182. fi
  4183. fi
  4184. fi
  4185. have_socket=1
  4186. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4187. echo "configure:4972: checking for socket" >&5
  4188. cat > conftest.$ac_ext <<EOF
  4189. #line 4975 "configure"
  4190. #include "confdefs.h"
  4191. /* System header to define __stub macros and hopefully few prototypes,
  4192. which can conflict with char socket(); below. */
  4193. #include <assert.h>
  4194. /* Override any gcc2 internal prototype to avoid an error. */
  4195. /* We use char because int might match the return type of a gcc2
  4196. builtin and then its argument prototype would still apply. */
  4197. char socket();
  4198. int main() {
  4199. /* The GNU C library defines this for functions which it implements
  4200. to always fail with ENOSYS. Some functions are actually named
  4201. something starting with __ and the normal name is an alias. */
  4202. #if defined (__stub_socket) || defined (__stub___socket)
  4203. choke me
  4204. #else
  4205. socket();
  4206. #endif
  4207. ; return 0; }
  4208. EOF
  4209. if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4210. rm -rf conftest*
  4211. eval "ac_cv_func_socket=yes"
  4212. else
  4213. echo "configure: failed program was:" >&5
  4214. cat conftest.$ac_ext >&5
  4215. rm -rf conftest*
  4216. eval "ac_cv_func_socket=no"
  4217. fi
  4218. rm -f conftest*
  4219. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4220. echo "$ac_t""yes" 1>&6
  4221. SOCKLIB=
  4222. else
  4223. echo "$ac_t""no" 1>&6
  4224. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4225. echo "configure:5016: checking for socket in -lsocket" >&5
  4226. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4227. ac_save_LIBS="$LIBS"
  4228. LIBS="-lsocket $LIBS"
  4229. cat > conftest.$ac_ext <<EOF
  4230. #line 5022 "configure"
  4231. #include "confdefs.h"
  4232. /* Override any gcc2 internal prototype to avoid an error. */
  4233. /* We use char because int might match the return type of a gcc2
  4234. builtin and then its argument prototype would still apply. */
  4235. char socket();
  4236. int main() {
  4237. socket()
  4238. ; return 0; }
  4239. EOF
  4240. if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4241. rm -rf conftest*
  4242. eval "ac_cv_lib_$ac_lib_var=yes"
  4243. else
  4244. echo "configure: failed program was:" >&5
  4245. cat conftest.$ac_ext >&5
  4246. rm -rf conftest*
  4247. eval "ac_cv_lib_$ac_lib_var=no"
  4248. fi
  4249. rm -f conftest*
  4250. LIBS="$ac_save_LIBS"
  4251. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4252. echo "$ac_t""yes" 1>&6
  4253. SOCKLIB=-lsocket
  4254. else
  4255. echo "$ac_t""no" 1>&6
  4256. have_socket=0
  4257. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4258. fi
  4259. fi
  4260. if test "$have_socket" = 1 ; then
  4261. HAVE_SOCKET=1
  4262. cat >> confdefs.h <<\EOF
  4263. #define HAVE_SOCKET 1
  4264. EOF
  4265. else
  4266. HAVE_SOCKET=
  4267. fi
  4268. # Mandatory zlib dependency
  4269. ZLIBLIBPATH=
  4270. ZLIBINCPATH=
  4271. ZLIB=
  4272. # With zlib includes directory
  4273. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4274. echo "configure:5081: checking for location of zlib includes" >&5
  4275. case "$with_zlib_includes" in
  4276. y | ye | yes | n | no)
  4277. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4278. ;;
  4279. esac
  4280. echo "$ac_t""$with_zlib_includes" 1>&6
  4281. if test -n "$with_zlib_includes" ; then
  4282. for dir in $with_zlib_includes; do
  4283. if test -d "$dir"; then
  4284. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4285. else
  4286. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4287. fi
  4288. done
  4289. fi
  4290. ac_save_cppflags="$CPPFLAGS"
  4291. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4292. for ac_hdr in zlib.h
  4293. do
  4294. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4295. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4296. echo "configure:5107: checking for $ac_hdr" >&5
  4297. cat > conftest.$ac_ext <<EOF
  4298. #line 5110 "configure"
  4299. #include "confdefs.h"
  4300. #include <$ac_hdr>
  4301. EOF
  4302. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4303. { (eval echo configure:5115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4304. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4305. if test -z "$ac_err"; then
  4306. rm -rf conftest*
  4307. eval "ac_cv_header_$ac_safe=yes"
  4308. else
  4309. echo "$ac_err" >&5
  4310. echo "configure: failed program was:" >&5
  4311. cat conftest.$ac_ext >&5
  4312. rm -rf conftest*
  4313. eval "ac_cv_header_$ac_safe=no"
  4314. fi
  4315. rm -f conftest*
  4316. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4317. echo "$ac_t""yes" 1>&6
  4318. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4319. cat >> confdefs.h <<EOF
  4320. #define $ac_tr_hdr 1
  4321. EOF
  4322. else
  4323. echo "$ac_t""no" 1>&6
  4324. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4325. fi
  4326. done
  4327. CPPFLAGS=$ac_save_cppflags
  4328. # With zlib library directory
  4329. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4330. echo "configure:5149: checking for location of zlib library" >&5
  4331. case "$with_zlib_libs" in
  4332. y | ye | yes | n | no)
  4333. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4334. ;;
  4335. esac
  4336. echo "$ac_t""$with_zlib_libs" 1>&6
  4337. if test -n "$with_zlib_libs"; then
  4338. for dir in $with_zlib_libs; do
  4339. if test -d "$dir"; then
  4340. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4341. else
  4342. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4343. fi
  4344. done
  4345. fi
  4346. ac_save_ldflags="$LDFLAGS"
  4347. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4348. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4349. echo "configure:5174: checking for deflate in -lz" >&5
  4350. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4351. ac_save_LIBS="$LIBS"
  4352. LIBS="-lz $LIBS"
  4353. cat > conftest.$ac_ext <<EOF
  4354. #line 5180 "configure"
  4355. #include "confdefs.h"
  4356. /* Override any gcc2 internal prototype to avoid an error. */
  4357. /* We use char because int might match the return type of a gcc2
  4358. builtin and then its argument prototype would still apply. */
  4359. char deflate();
  4360. int main() {
  4361. deflate()
  4362. ; return 0; }
  4363. EOF
  4364. if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4365. rm -rf conftest*
  4366. eval "ac_cv_lib_$ac_lib_var=yes"
  4367. else
  4368. echo "configure: failed program was:" >&5
  4369. cat conftest.$ac_ext >&5
  4370. rm -rf conftest*
  4371. eval "ac_cv_lib_$ac_lib_var=no"
  4372. fi
  4373. rm -f conftest*
  4374. LIBS="$ac_save_LIBS"
  4375. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4376. echo "$ac_t""yes" 1>&6
  4377. ZLIB="$ZLIB -lz "
  4378. else
  4379. echo "$ac_t""no" 1>&6
  4380. LDFLAGS=${ac_save_ldflags}
  4381. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4382. fi
  4383. LDFLAGS=${ac_save_ldflags}
  4384. #
  4385. # Done checking zlib
  4386. # Mandatory PROJ dependency
  4387. PROJINC=
  4388. PROJLIB=
  4389. PROJSHARE=
  4390. # With PROJ includes directory
  4391. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4392. echo "configure:5239: checking for location of External PROJ.4 includes" >&5
  4393. case "$with_proj_includes" in
  4394. y | ye | yes | n | no)
  4395. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4396. ;;
  4397. esac
  4398. echo "$ac_t""$with_proj_includes" 1>&6
  4399. if test -n "$with_proj_includes" ; then
  4400. for dir in $with_proj_includes; do
  4401. if test -d "$dir"; then
  4402. PROJINC="$PROJINC -I$dir"
  4403. else
  4404. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4405. fi
  4406. done
  4407. fi
  4408. ac_save_cppflags="$CPPFLAGS"
  4409. CPPFLAGS="$PROJINC $CPPFLAGS"
  4410. for ac_hdr in proj_api.h
  4411. do
  4412. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4413. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4414. echo "configure:5265: checking for $ac_hdr" >&5
  4415. cat > conftest.$ac_ext <<EOF
  4416. #line 5268 "configure"
  4417. #include "confdefs.h"
  4418. #include <$ac_hdr>
  4419. EOF
  4420. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4421. { (eval echo configure:5273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4422. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4423. if test -z "$ac_err"; then
  4424. rm -rf conftest*
  4425. eval "ac_cv_header_$ac_safe=yes"
  4426. else
  4427. echo "$ac_err" >&5
  4428. echo "configure: failed program was:" >&5
  4429. cat conftest.$ac_ext >&5
  4430. rm -rf conftest*
  4431. eval "ac_cv_header_$ac_safe=no"
  4432. fi
  4433. rm -f conftest*
  4434. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4435. echo "$ac_t""yes" 1>&6
  4436. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4437. cat >> confdefs.h <<EOF
  4438. #define $ac_tr_hdr 1
  4439. EOF
  4440. else
  4441. echo "$ac_t""no" 1>&6
  4442. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4443. fi
  4444. done
  4445. CPPFLAGS=$ac_save_cppflags
  4446. # PROJ version check
  4447. if test "$cross_compiling" = yes; then
  4448. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4449. else
  4450. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4451. echo "configure:5310: checking External PROJ.4 version" >&5
  4452. ac_save_cppflags="$CPPFLAGS"
  4453. CPPFLAGS="$PROJINC $CPPFLAGS"
  4454. if test "$cross_compiling" = yes; then
  4455. proj_ver=0
  4456. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4457. else
  4458. cat > conftest.$ac_ext <<EOF
  4459. #line 5318 "configure"
  4460. #include "confdefs.h"
  4461. #include <stdio.h>
  4462. #include <proj_api.h>
  4463. int main(void) {
  4464. FILE *fp = fopen("conftestdata","w");
  4465. fprintf(fp, "%d", PJ_VERSION);
  4466. return 0;
  4467. }
  4468. EOF
  4469. if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4470. then
  4471. proj_ver=`cat conftestdata`
  4472. echo "$ac_t""$proj_ver" 1>&6
  4473. else
  4474. echo "configure: failed program was:" >&5
  4475. cat conftest.$ac_ext >&5
  4476. rm -fr conftest*
  4477. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4478. fi
  4479. rm -fr conftest*
  4480. fi
  4481. CPPFLAGS=$ac_save_cppflags
  4482. if test `expr "$proj_ver" \< 446` = 1 ; then
  4483. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4484. fi
  4485. fi
  4486. # With PROJ library directory
  4487. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4488. echo "configure:5355: checking for location of External PROJ.4 library" >&5
  4489. case "$with_proj_libs" in
  4490. y | ye | yes | n | no)
  4491. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4492. ;;
  4493. esac
  4494. echo "$ac_t""$with_proj_libs" 1>&6
  4495. if test -n "$with_proj_libs"; then
  4496. for dir in $with_proj_libs; do
  4497. if test -d "$dir"; then
  4498. PROJLIB="$PROJLIB -L$dir"
  4499. else
  4500. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4501. fi
  4502. done
  4503. fi
  4504. ac_save_ldflags="$LDFLAGS"
  4505. LDFLAGS="$PROJLIB $LDFLAGS"
  4506. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4507. echo "configure:5380: checking for pj_get_def in -lproj" >&5
  4508. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4509. ac_save_LIBS="$LIBS"
  4510. LIBS="-lproj $LIBS"
  4511. cat > conftest.$ac_ext <<EOF
  4512. #line 5386 "configure"
  4513. #include "confdefs.h"
  4514. /* Override any gcc2 internal prototype to avoid an error. */
  4515. /* We use char because int might match the return type of a gcc2
  4516. builtin and then its argument prototype would still apply. */
  4517. char pj_get_def();
  4518. int main() {
  4519. pj_get_def()
  4520. ; return 0; }
  4521. EOF
  4522. if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4523. rm -rf conftest*
  4524. eval "ac_cv_lib_$ac_lib_var=yes"
  4525. else
  4526. echo "configure: failed program was:" >&5
  4527. cat conftest.$ac_ext >&5
  4528. rm -rf conftest*
  4529. eval "ac_cv_lib_$ac_lib_var=no"
  4530. fi
  4531. rm -f conftest*
  4532. LIBS="$ac_save_LIBS"
  4533. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4534. echo "$ac_t""yes" 1>&6
  4535. PROJLIB="$PROJLIB -lproj "
  4536. else
  4537. echo "$ac_t""no" 1>&6
  4538. LDFLAGS=${ac_save_ldflags}
  4539. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4540. fi
  4541. LDFLAGS=${ac_save_ldflags}
  4542. # With PROJ share directory
  4543. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4544. echo "configure:5431: checking for location of External PROJ.4 data files" >&5
  4545. case "$with_proj_share" in
  4546. y | ye | yes | n | no)
  4547. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4548. ;;
  4549. esac
  4550. echo "$ac_t""$with_proj_share" 1>&6
  4551. if test -n "$with_proj_share" ; then
  4552. if test -d "$with_proj_share"; then
  4553. PROJSHARE="$with_proj_share"
  4554. else
  4555. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4556. fi
  4557. fi
  4558. if test -z "$PROJSHARE" ; then
  4559. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4560. PROJSHARE=/usr/share/proj
  4561. fi
  4562. # LOC_CHECK_SHARE does not work when cross compiling
  4563. if test "$cross_compiling" = "yes" ; then
  4564. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4565. echo "configure:5455: checking for epsg" >&5
  4566. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4567. else
  4568. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4569. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4570. echo "configure:5462: checking for $PROJSHARE/epsg" >&5
  4571. if test "$cross_compiling" = yes; then
  4572. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4573. else
  4574. if test -r $PROJSHARE/epsg; then
  4575. eval "ac_cv_file_$ac_safe=yes"
  4576. else
  4577. eval "ac_cv_file_$ac_safe=no"
  4578. fi
  4579. fi
  4580. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4581. echo "$ac_t""yes" 1>&6
  4582. :
  4583. else
  4584. echo "$ac_t""no" 1>&6
  4585. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4586. fi
  4587. fi
  4588. # nad2bin needs to be in path for installing datum gridshift files
  4589. # Extract the first word of "nad2bin", so it can be a program name with args.
  4590. set dummy nad2bin; ac_word=$2
  4591. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4592. echo "configure:5494: checking for $ac_word" >&5
  4593. case "$NAD2BIN" in
  4594. /*)
  4595. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4596. ;;
  4597. ?:/*)
  4598. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4599. ;;
  4600. *)
  4601. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4602. ac_dummy="$PATH"
  4603. for ac_dir in $ac_dummy; do
  4604. test -z "$ac_dir" && ac_dir=.
  4605. if test -f $ac_dir/$ac_word; then
  4606. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4607. break
  4608. fi
  4609. done
  4610. IFS="$ac_save_ifs"
  4611. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4612. ;;
  4613. esac
  4614. NAD2BIN="$ac_cv_path_NAD2BIN"
  4615. if test -n "$NAD2BIN"; then
  4616. echo "$ac_t""$NAD2BIN" 1>&6
  4617. else
  4618. echo "$ac_t""no" 1>&6
  4619. fi
  4620. if test "$NAD2BIN" = "no"; then
  4621. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4622. fi
  4623. # Done checking PROJ
  4624. # Enable regex option
  4625. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4626. echo "configure:5534: checking whether to use regex" >&5
  4627. echo "$ac_t"""$with_regex"" 1>&6
  4628. case "$with_regex" in
  4629. "no") USE_REGEX= ;;
  4630. "yes") USE_REGEX="1" ;;
  4631. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4632. esac
  4633. REGEXINCPATH=
  4634. REGEXLIBPATH=
  4635. REGEXLIB=
  4636. if test -n "$USE_REGEX"; then
  4637. # With regex includes directory
  4638. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4639. echo "configure:5554: checking for location of regex includes" >&5
  4640. case "$with_regex_includes" in
  4641. y | ye | yes | n | no)
  4642. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4643. ;;
  4644. esac
  4645. echo "$ac_t""$with_regex_includes" 1>&6
  4646. if test -n "$with_regex_includes" ; then
  4647. for dir in $with_regex_includes; do
  4648. if test -d "$dir"; then
  4649. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4650. else
  4651. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4652. fi
  4653. done
  4654. fi
  4655. ac_save_cppflags="$CPPFLAGS"
  4656. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4657. for ac_hdr in regex.h
  4658. do
  4659. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4660. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4661. echo "configure:5580: checking for $ac_hdr" >&5
  4662. cat > conftest.$ac_ext <<EOF
  4663. #line 5583 "configure"
  4664. #include "confdefs.h"
  4665. #include <$ac_hdr>
  4666. EOF
  4667. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4668. { (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4669. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4670. if test -z "$ac_err"; then
  4671. rm -rf conftest*
  4672. eval "ac_cv_header_$ac_safe=yes"
  4673. else
  4674. echo "$ac_err" >&5
  4675. echo "configure: failed program was:" >&5
  4676. cat conftest.$ac_ext >&5
  4677. rm -rf conftest*
  4678. eval "ac_cv_header_$ac_safe=no"
  4679. fi
  4680. rm -f conftest*
  4681. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4682. echo "$ac_t""yes" 1>&6
  4683. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4684. cat >> confdefs.h <<EOF
  4685. #define $ac_tr_hdr 1
  4686. EOF
  4687. else
  4688. echo "$ac_t""no" 1>&6
  4689. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4690. fi
  4691. done
  4692. CPPFLAGS=$ac_save_cppflags
  4693. # With regex library directory
  4694. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4695. echo "configure:5622: checking for location of regex library" >&5
  4696. case "$with_regex_libs" in
  4697. y | ye | yes | n | no)
  4698. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4699. ;;
  4700. esac
  4701. echo "$ac_t""$with_regex_libs" 1>&6
  4702. if test -n "$with_regex_libs"; then
  4703. for dir in $with_regex_libs; do
  4704. if test -d "$dir"; then
  4705. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4706. else
  4707. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4708. fi
  4709. done
  4710. fi
  4711. ac_save_libs="$LIBS"
  4712. ac_save_ldflags="$LDFLAGS"
  4713. LIBS=" $LIBS"
  4714. LDFLAGS=" $LDFLAGS"
  4715. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4716. echo "configure:5647: checking for regcomp" >&5
  4717. cat > conftest.$ac_ext <<EOF
  4718. #line 5650 "configure"
  4719. #include "confdefs.h"
  4720. /* System header to define __stub macros and hopefully few prototypes,
  4721. which can conflict with char regcomp(); below. */
  4722. #include <assert.h>
  4723. /* Override any gcc2 internal prototype to avoid an error. */
  4724. /* We use char because int might match the return type of a gcc2
  4725. builtin and then its argument prototype would still apply. */
  4726. char regcomp();
  4727. int main() {
  4728. /* The GNU C library defines this for functions which it implements
  4729. to always fail with ENOSYS. Some functions are actually named
  4730. something starting with __ and the normal name is an alias. */
  4731. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4732. choke me
  4733. #else
  4734. regcomp();
  4735. #endif
  4736. ; return 0; }
  4737. EOF
  4738. if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4739. rm -rf conftest*
  4740. eval "ac_cv_func_regcomp=yes"
  4741. else
  4742. echo "configure: failed program was:" >&5
  4743. cat conftest.$ac_ext >&5
  4744. rm -rf conftest*
  4745. eval "ac_cv_func_regcomp=no"
  4746. fi
  4747. rm -f conftest*
  4748. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4749. echo "$ac_t""yes" 1>&6
  4750. REGEXLIB="$REGEXLIB "
  4751. else
  4752. echo "$ac_t""no" 1>&6
  4753. ac_save_ldflags="$LDFLAGS"
  4754. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4755. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4756. echo "configure:5700: checking for regcomp in -lregex" >&5
  4757. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4758. ac_save_LIBS="$LIBS"
  4759. LIBS="-lregex $LIBS"
  4760. cat > conftest.$ac_ext <<EOF
  4761. #line 5706 "configure"
  4762. #include "confdefs.h"
  4763. /* Override any gcc2 internal prototype to avoid an error. */
  4764. /* We use char because int might match the return type of a gcc2
  4765. builtin and then its argument prototype would still apply. */
  4766. char regcomp();
  4767. int main() {
  4768. regcomp()
  4769. ; return 0; }
  4770. EOF
  4771. if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4772. rm -rf conftest*
  4773. eval "ac_cv_lib_$ac_lib_var=yes"
  4774. else
  4775. echo "configure: failed program was:" >&5
  4776. cat conftest.$ac_ext >&5
  4777. rm -rf conftest*
  4778. eval "ac_cv_lib_$ac_lib_var=no"
  4779. fi
  4780. rm -f conftest*
  4781. LIBS="$ac_save_LIBS"
  4782. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4783. echo "$ac_t""yes" 1>&6
  4784. REGEXLIB="$REGEXLIB -lregex "
  4785. else
  4786. echo "$ac_t""no" 1>&6
  4787. LDFLAGS=${ac_save_ldflags}
  4788. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4789. fi
  4790. LDFLAGS=${ac_save_ldflags}
  4791. fi
  4792. LIBS=${ac_save_libs}
  4793. LDFLAGS=${ac_save_ldflags}
  4794. fi # $USE_REGEX
  4795. # Done checking regex
  4796. # Enable Readline option
  4797. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4798. echo "configure:5767: checking whether to use Readline" >&5
  4799. echo "$ac_t"""$with_readline"" 1>&6
  4800. case "$with_readline" in
  4801. "no") USE_READLINE= ;;
  4802. "yes") USE_READLINE="1" ;;
  4803. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4804. esac
  4805. READLINEINCPATH=
  4806. READLINELIBPATH=
  4807. READLINELIB=
  4808. HISTORYLIB=
  4809. if test -n "$USE_READLINE"; then
  4810. # With Readline includes directory
  4811. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4812. echo "configure:5788: checking for location of Readline includes" >&5
  4813. case "$with_readline_includes" in
  4814. y | ye | yes | n | no)
  4815. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4816. ;;
  4817. esac
  4818. echo "$ac_t""$with_readline_includes" 1>&6
  4819. if test -n "$with_readline_includes" ; then
  4820. for dir in $with_readline_includes; do
  4821. if test -d "$dir"; then
  4822. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4823. else
  4824. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4825. fi
  4826. done
  4827. fi
  4828. ac_save_cppflags="$CPPFLAGS"
  4829. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4830. for ac_hdr in readline/readline.h
  4831. do
  4832. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4833. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4834. echo "configure:5814: checking for $ac_hdr" >&5
  4835. cat > conftest.$ac_ext <<EOF
  4836. #line 5817 "configure"
  4837. #include "confdefs.h"
  4838. #include <$ac_hdr>
  4839. EOF
  4840. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4841. { (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4842. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4843. if test -z "$ac_err"; then
  4844. rm -rf conftest*
  4845. eval "ac_cv_header_$ac_safe=yes"
  4846. else
  4847. echo "$ac_err" >&5
  4848. echo "configure: failed program was:" >&5
  4849. cat conftest.$ac_ext >&5
  4850. rm -rf conftest*
  4851. eval "ac_cv_header_$ac_safe=no"
  4852. fi
  4853. rm -f conftest*
  4854. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4855. echo "$ac_t""yes" 1>&6
  4856. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4857. cat >> confdefs.h <<EOF
  4858. #define $ac_tr_hdr 1
  4859. EOF
  4860. else
  4861. echo "$ac_t""no" 1>&6
  4862. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4863. fi
  4864. done
  4865. CPPFLAGS=$ac_save_cppflags
  4866. ac_save_cppflags="$CPPFLAGS"
  4867. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4868. for ac_hdr in readline/history.h
  4869. do
  4870. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4871. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4872. echo "configure:5858: checking for $ac_hdr" >&5
  4873. cat > conftest.$ac_ext <<EOF
  4874. #line 5861 "configure"
  4875. #include "confdefs.h"
  4876. #include <$ac_hdr>
  4877. EOF
  4878. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4879. { (eval echo configure:5866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4880. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4881. if test -z "$ac_err"; then
  4882. rm -rf conftest*
  4883. eval "ac_cv_header_$ac_safe=yes"
  4884. else
  4885. echo "$ac_err" >&5
  4886. echo "configure: failed program was:" >&5
  4887. cat conftest.$ac_ext >&5
  4888. rm -rf conftest*
  4889. eval "ac_cv_header_$ac_safe=no"
  4890. fi
  4891. rm -f conftest*
  4892. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4893. echo "$ac_t""yes" 1>&6
  4894. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4895. cat >> confdefs.h <<EOF
  4896. #define $ac_tr_hdr 1
  4897. EOF
  4898. else
  4899. echo "$ac_t""no" 1>&6
  4900. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4901. fi
  4902. done
  4903. CPPFLAGS=$ac_save_cppflags
  4904. # With Readline library directory
  4905. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4906. echo "configure:5900: checking for location of Readline library" >&5
  4907. case "$with_readline_libs" in
  4908. y | ye | yes | n | no)
  4909. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4910. ;;
  4911. esac
  4912. echo "$ac_t""$with_readline_libs" 1>&6
  4913. if test -n "$with_readline_libs"; then
  4914. for dir in $with_readline_libs; do
  4915. if test -d "$dir"; then
  4916. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4917. else
  4918. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4919. fi
  4920. done
  4921. fi
  4922. ac_save_ldflags="$LDFLAGS"
  4923. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4924. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4925. echo "configure:5925: checking for readline in -lreadline" >&5
  4926. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4927. ac_save_LIBS="$LIBS"
  4928. LIBS="-lreadline $LIBS"
  4929. cat > conftest.$ac_ext <<EOF
  4930. #line 5931 "configure"
  4931. #include "confdefs.h"
  4932. /* Override any gcc2 internal prototype to avoid an error. */
  4933. /* We use char because int might match the return type of a gcc2
  4934. builtin and then its argument prototype would still apply. */
  4935. char readline();
  4936. int main() {
  4937. readline()
  4938. ; return 0; }
  4939. EOF
  4940. if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4941. rm -rf conftest*
  4942. eval "ac_cv_lib_$ac_lib_var=yes"
  4943. else
  4944. echo "configure: failed program was:" >&5
  4945. cat conftest.$ac_ext >&5
  4946. rm -rf conftest*
  4947. eval "ac_cv_lib_$ac_lib_var=no"
  4948. fi
  4949. rm -f conftest*
  4950. LIBS="$ac_save_LIBS"
  4951. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4952. echo "$ac_t""yes" 1>&6
  4953. READLINELIB="$READLINELIB -lreadline "
  4954. else
  4955. echo "$ac_t""no" 1>&6
  4956. LDFLAGS=${ac_save_ldflags}
  4957. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4958. fi
  4959. LDFLAGS=${ac_save_ldflags}
  4960. ac_save_ldflags="$LDFLAGS"
  4961. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4962. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4963. echo "configure:5977: checking for add_history in -lhistory" >&5
  4964. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4965. ac_save_LIBS="$LIBS"
  4966. LIBS="-lhistory $LIBS"
  4967. cat > conftest.$ac_ext <<EOF
  4968. #line 5983 "configure"
  4969. #include "confdefs.h"
  4970. /* Override any gcc2 internal prototype to avoid an error. */
  4971. /* We use char because int might match the return type of a gcc2
  4972. builtin and then its argument prototype would still apply. */
  4973. char add_history();
  4974. int main() {
  4975. add_history()
  4976. ; return 0; }
  4977. EOF
  4978. if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4979. rm -rf conftest*
  4980. eval "ac_cv_lib_$ac_lib_var=yes"
  4981. else
  4982. echo "configure: failed program was:" >&5
  4983. cat conftest.$ac_ext >&5
  4984. rm -rf conftest*
  4985. eval "ac_cv_lib_$ac_lib_var=no"
  4986. fi
  4987. rm -f conftest*
  4988. LIBS="$ac_save_LIBS"
  4989. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4990. echo "$ac_t""yes" 1>&6
  4991. HISTORYLIB="$HISTORYLIB -lhistory "
  4992. else
  4993. echo "$ac_t""no" 1>&6
  4994. LDFLAGS=${ac_save_ldflags}
  4995. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  4996. fi
  4997. LDFLAGS=${ac_save_ldflags}
  4998. fi # $USE_READLINE
  4999. # Done checking Readline
  5000. # GDAL option
  5001. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5002. echo "configure:6036: checking whether to use GDAL" >&5
  5003. GDAL_LIBS=
  5004. GDAL_CFLAGS=
  5005. USE_GDAL=
  5006. USE_OGR=
  5007. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5008. GDAL_CONFIG="$with_gdal"
  5009. fi
  5010. if test "$with_gdal" = "no" ; then
  5011. echo "$ac_t""no" 1>&6
  5012. else
  5013. echo "$ac_t""yes" 1>&6
  5014. # Extract the first word of "gdal-config", so it can be a program name with args.
  5015. set dummy gdal-config; ac_word=$2
  5016. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5017. echo "configure:6054: checking for $ac_word" >&5
  5018. case "$GDAL_CONFIG" in
  5019. /*)
  5020. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5021. ;;
  5022. ?:/*)
  5023. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5024. ;;
  5025. *)
  5026. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5027. ac_dummy="$PATH"
  5028. for ac_dir in $ac_dummy; do
  5029. test -z "$ac_dir" && ac_dir=.
  5030. if test -f $ac_dir/$ac_word; then
  5031. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5032. break
  5033. fi
  5034. done
  5035. IFS="$ac_save_ifs"
  5036. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5037. ;;
  5038. esac
  5039. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5040. if test -n "$GDAL_CONFIG"; then
  5041. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5042. else
  5043. echo "$ac_t""no" 1>&6
  5044. fi
  5045. if test "$GDAL_CONFIG" = "no" ; then
  5046. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5047. fi
  5048. if test "$GDAL_CONFIG" != "" ; then
  5049. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5050. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5051. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5052. USE_GDAL=1
  5053. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5054. cat >> confdefs.h <<\EOF
  5055. #define HAVE_OGR 1
  5056. EOF
  5057. USE_OGR=1
  5058. fi
  5059. fi
  5060. GDAL=
  5061. ac_save_libs="$LIBS"
  5062. ac_save_cflags="$CFLAGS"
  5063. LIBS="$LIBS $GDAL_LIBS"
  5064. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5065. cat > conftest.$ac_ext <<EOF
  5066. #line 6109 "configure"
  5067. #include "confdefs.h"
  5068. #include <gdal.h>
  5069. int main() {
  5070. GDALOpen("foo", GA_ReadOnly);
  5071. ; return 0; }
  5072. EOF
  5073. if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5074. :
  5075. else
  5076. echo "configure: failed program was:" >&5
  5077. cat conftest.$ac_ext >&5
  5078. rm -rf conftest*
  5079. LIBS="$LIBS $GDAL_DEP_LIBS"
  5080. cat > conftest.$ac_ext <<EOF
  5081. #line 6125 "configure"
  5082. #include "confdefs.h"
  5083. #include <gdal.h>
  5084. int main() {
  5085. GDALOpen("foo", GA_ReadOnly);
  5086. ; return 0; }
  5087. EOF
  5088. if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5089. rm -rf conftest*
  5090. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5091. else
  5092. echo "configure: failed program was:" >&5
  5093. cat conftest.$ac_ext >&5
  5094. rm -rf conftest*
  5095. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5096. fi
  5097. rm -f conftest*
  5098. fi
  5099. rm -f conftest*
  5100. LIBS=${ac_save_libs}
  5101. CFLAGS=${ac_save_cflags}
  5102. cat >> confdefs.h <<\EOF
  5103. #define HAVE_GDAL 1
  5104. EOF
  5105. fi
  5106. # libLAS option
  5107. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5108. echo "configure:6164: checking whether to use libLAS" >&5
  5109. LIBLAS_LIBS=
  5110. LIBLAS_CFLAGS=
  5111. USE_LIBLAS=
  5112. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5113. LIBLAS_CONFIG="$with_liblas"
  5114. fi
  5115. if test "$with_liblas" = "no" ; then
  5116. echo "$ac_t""no" 1>&6
  5117. else
  5118. echo "$ac_t""yes" 1>&6
  5119. # Extract the first word of "liblas-config", so it can be a program name with args.
  5120. set dummy liblas-config; ac_word=$2
  5121. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5122. echo "configure:6181: checking for $ac_word" >&5
  5123. case "$LIBLAS_CONFIG" in
  5124. /*)
  5125. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5126. ;;
  5127. ?:/*)
  5128. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5129. ;;
  5130. *)
  5131. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5132. ac_dummy="$PATH"
  5133. for ac_dir in $ac_dummy; do
  5134. test -z "$ac_dir" && ac_dir=.
  5135. if test -f $ac_dir/$ac_word; then
  5136. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5137. break
  5138. fi
  5139. done
  5140. IFS="$ac_save_ifs"
  5141. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5142. ;;
  5143. esac
  5144. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5145. if test -n "$LIBLAS_CONFIG"; then
  5146. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5147. else
  5148. echo "$ac_t""no" 1>&6
  5149. fi
  5150. if test "$LIBLAS_CONFIG" = "no" ; then
  5151. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5152. fi
  5153. if test "$LIBLAS_CONFIG" != "" ; then
  5154. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5155. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5156. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5157. USE_LIBLAS=1
  5158. fi
  5159. LIBLAS=
  5160. ac_save_libs="$LIBS"
  5161. ac_save_cflags="$CFLAGS"
  5162. ac_save_cppflags="$CPPFLAGS"
  5163. LIBS="$LIBS $LIBLAS_LIBS"
  5164. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5165. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  5166. cat > conftest.$ac_ext <<EOF
  5167. #line 6231 "configure"
  5168. #include "confdefs.h"
  5169. #include <liblas/capi/liblas.h>
  5170. int main() {
  5171. LASReader_Create("foo");
  5172. ; return 0; }
  5173. EOF
  5174. if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5175. :
  5176. else
  5177. echo "configure: failed program was:" >&5
  5178. cat conftest.$ac_ext >&5
  5179. rm -rf conftest*
  5180. cat > conftest.$ac_ext <<EOF
  5181. #line 6246 "configure"
  5182. #include "confdefs.h"
  5183. #include <liblas/capi/liblas.h>
  5184. int main() {
  5185. LASReader_Create("foo");
  5186. ; return 0; }
  5187. EOF
  5188. if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5189. rm -rf conftest*
  5190. LAS_LIBS="$LAS_LIBS"
  5191. else
  5192. echo "configure: failed program was:" >&5
  5193. cat conftest.$ac_ext >&5
  5194. rm -rf conftest*
  5195. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5196. fi
  5197. rm -f conftest*
  5198. fi
  5199. rm -f conftest*
  5200. LIBS=${ac_save_libs}
  5201. CFLAGS=${ac_save_cflags}
  5202. CPPFLAGS=${ac_save_cppflags}
  5203. cat >> confdefs.h <<\EOF
  5204. #define HAVE_LIBLAS 1
  5205. EOF
  5206. fi
  5207. # NetCDF option
  5208. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5209. echo "configure:6286: checking whether to use NetCDF" >&5
  5210. NETCDF_LIBS=
  5211. NETCDF_CFLAGS=
  5212. USE_NETCDF=
  5213. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5214. NETCDF_CONFIG="$with_netcdf"
  5215. fi
  5216. if test "$with_netcdf" = "no" ; then
  5217. echo "$ac_t""no" 1>&6
  5218. else
  5219. echo "$ac_t""yes" 1>&6
  5220. # Extract the first word of "nc-config", so it can be a program name with args.
  5221. set dummy nc-config; ac_word=$2
  5222. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5223. echo "configure:6303: checking for $ac_word" >&5
  5224. case "$NETCDF_CONFIG" in
  5225. /*)
  5226. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5227. ;;
  5228. ?:/*)
  5229. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5230. ;;
  5231. *)
  5232. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5233. ac_dummy="$PATH"
  5234. for ac_dir in $ac_dummy; do
  5235. test -z "$ac_dir" && ac_dir=.
  5236. if test -f $ac_dir/$ac_word; then
  5237. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5238. break
  5239. fi
  5240. done
  5241. IFS="$ac_save_ifs"
  5242. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5243. ;;
  5244. esac
  5245. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5246. if test -n "$NETCDF_CONFIG"; then
  5247. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5248. else
  5249. echo "$ac_t""no" 1>&6
  5250. fi
  5251. if test "$NETCDF_CONFIG" = "no" ; then
  5252. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5253. fi
  5254. if test "$NETCDF_CONFIG" != "" ; then
  5255. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5256. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5257. USE_NETCDF=1
  5258. fi
  5259. NETCDF=
  5260. ac_save_libs="$LIBS"
  5261. ac_save_cflags="$CFLAGS"
  5262. LIBS="$LIBS $NETCDF_LIBS"
  5263. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5264. cat > conftest.$ac_ext <<EOF
  5265. #line 6350 "configure"
  5266. #include "confdefs.h"
  5267. #include <netcdf.h>
  5268. int main() {
  5269. nc_create("foo", NC_CLOBBER, NULL);
  5270. ; return 0; }
  5271. EOF
  5272. if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5273. :
  5274. else
  5275. echo "configure: failed program was:" >&5
  5276. cat conftest.$ac_ext >&5
  5277. rm -rf conftest*
  5278. cat > conftest.$ac_ext <<EOF
  5279. #line 6365 "configure"
  5280. #include "confdefs.h"
  5281. #include <netcdf.h>
  5282. int main() {
  5283. nc_create("foo", NC_CLOBBER, NULL);
  5284. ; return 0; }
  5285. EOF
  5286. if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5287. rm -rf conftest*
  5288. NETCDF_LIBS="$NETCDF_LIBS"
  5289. else
  5290. echo "configure: failed program was:" >&5
  5291. cat conftest.$ac_ext >&5
  5292. rm -rf conftest*
  5293. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5294. fi
  5295. rm -f conftest*
  5296. fi
  5297. rm -f conftest*
  5298. LIBS=${ac_save_libs}
  5299. CFLAGS=${ac_save_cflags}
  5300. cat >> confdefs.h <<\EOF
  5301. #define HAVE_NETCDF 1
  5302. EOF
  5303. fi
  5304. # GEOS option
  5305. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5306. echo "configure:6403: checking whether to use GEOS" >&5
  5307. GEOS_LIBS=
  5308. GEOS_CFLAGS=
  5309. USE_GEOS=
  5310. # FIXME: "quote" $with_geos ?
  5311. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5312. GEOS_CONFIG="$with_geos"
  5313. fi
  5314. if test "$with_geos" = "no" ; then
  5315. echo "$ac_t""no" 1>&6
  5316. else
  5317. echo "$ac_t""yes" 1>&6
  5318. # Extract the first word of "geos-config", so it can be a program name with args.
  5319. set dummy geos-config; ac_word=$2
  5320. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5321. echo "configure:6421: checking for $ac_word" >&5
  5322. case "$GEOS_CONFIG" in
  5323. /*)
  5324. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5325. ;;
  5326. ?:/*)
  5327. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5328. ;;
  5329. *)
  5330. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5331. ac_dummy="$PATH"
  5332. for ac_dir in $ac_dummy; do
  5333. test -z "$ac_dir" && ac_dir=.
  5334. if test -f $ac_dir/$ac_word; then
  5335. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5336. break
  5337. fi
  5338. done
  5339. IFS="$ac_save_ifs"
  5340. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5341. ;;
  5342. esac
  5343. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5344. if test -n "$GEOS_CONFIG"; then
  5345. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5346. else
  5347. echo "$ac_t""no" 1>&6
  5348. fi
  5349. if test "$GEOS_CONFIG" = "no" ; then
  5350. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5351. fi
  5352. if test "$GEOS_CONFIG" != "" ; then
  5353. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5354. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5355. USE_GEOS=1
  5356. fi
  5357. ac_save_cppflags="$CPPFLAGS"
  5358. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5359. for ac_hdr in geos_c.h
  5360. do
  5361. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5362. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5363. echo "configure:6469: checking for $ac_hdr" >&5
  5364. cat > conftest.$ac_ext <<EOF
  5365. #line 6472 "configure"
  5366. #include "confdefs.h"
  5367. #include <$ac_hdr>
  5368. EOF
  5369. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5370. { (eval echo configure:6477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5371. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5372. if test -z "$ac_err"; then
  5373. rm -rf conftest*
  5374. eval "ac_cv_header_$ac_safe=yes"
  5375. else
  5376. echo "$ac_err" >&5
  5377. echo "configure: failed program was:" >&5
  5378. cat conftest.$ac_ext >&5
  5379. rm -rf conftest*
  5380. eval "ac_cv_header_$ac_safe=no"
  5381. fi
  5382. rm -f conftest*
  5383. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5384. echo "$ac_t""yes" 1>&6
  5385. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5386. cat >> confdefs.h <<EOF
  5387. #define $ac_tr_hdr 1
  5388. EOF
  5389. else
  5390. echo "$ac_t""no" 1>&6
  5391. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5392. fi
  5393. done
  5394. CPPFLAGS=$ac_save_cppflags
  5395. ### 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
  5396. # if test "$MINGW32" = yes ; then
  5397. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5398. # else
  5399. ac_save_ldflags="$LDFLAGS"
  5400. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5401. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5402. echo "configure:6516: checking for initGEOS in -lgeos_c" >&5
  5403. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5404. ac_save_LIBS="$LIBS"
  5405. LIBS="-lgeos_c $LIBS"
  5406. cat > conftest.$ac_ext <<EOF
  5407. #line 6522 "configure"
  5408. #include "confdefs.h"
  5409. /* Override any gcc2 internal prototype to avoid an error. */
  5410. /* We use char because int might match the return type of a gcc2
  5411. builtin and then its argument prototype would still apply. */
  5412. char initGEOS();
  5413. int main() {
  5414. initGEOS()
  5415. ; return 0; }
  5416. EOF
  5417. if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5418. rm -rf conftest*
  5419. eval "ac_cv_lib_$ac_lib_var=yes"
  5420. else
  5421. echo "configure: failed program was:" >&5
  5422. cat conftest.$ac_ext >&5
  5423. rm -rf conftest*
  5424. eval "ac_cv_lib_$ac_lib_var=no"
  5425. fi
  5426. rm -f conftest*
  5427. LIBS="$ac_save_LIBS"
  5428. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5429. echo "$ac_t""yes" 1>&6
  5430. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5431. else
  5432. echo "$ac_t""no" 1>&6
  5433. LDFLAGS=${ac_save_ldflags}
  5434. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5435. fi
  5436. LDFLAGS=${ac_save_ldflags}
  5437. # fi
  5438. cat >> confdefs.h <<\EOF
  5439. #define HAVE_GEOS 1
  5440. EOF
  5441. fi
  5442. # Enable TIFF option
  5443. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5444. echo "configure:6577: checking whether to use TIFF" >&5
  5445. echo "$ac_t"""$with_tiff"" 1>&6
  5446. case "$with_tiff" in
  5447. "no") USE_TIFF= ;;
  5448. "yes") USE_TIFF="1" ;;
  5449. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5450. esac
  5451. TIFF_INCLUDE_DIRS=
  5452. TIFF_LIBRARY_DIRS=
  5453. TIFFLIB=
  5454. if test -n "$USE_TIFF"; then
  5455. # With TIFF includes directory
  5456. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5457. echo "configure:6597: checking for location of TIFF includes" >&5
  5458. case "$with_tiff_includes" in
  5459. y | ye | yes | n | no)
  5460. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5461. ;;
  5462. esac
  5463. echo "$ac_t""$with_tiff_includes" 1>&6
  5464. if test -n "$with_tiff_includes" ; then
  5465. for dir in $with_tiff_includes; do
  5466. if test -d "$dir"; then
  5467. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5468. else
  5469. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5470. fi
  5471. done
  5472. fi
  5473. ac_save_cppflags="$CPPFLAGS"
  5474. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5475. for ac_hdr in tiffio.h
  5476. do
  5477. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5478. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5479. echo "configure:6623: checking for $ac_hdr" >&5
  5480. cat > conftest.$ac_ext <<EOF
  5481. #line 6626 "configure"
  5482. #include "confdefs.h"
  5483. #include <$ac_hdr>
  5484. EOF
  5485. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5486. { (eval echo configure:6631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5487. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5488. if test -z "$ac_err"; then
  5489. rm -rf conftest*
  5490. eval "ac_cv_header_$ac_safe=yes"
  5491. else
  5492. echo "$ac_err" >&5
  5493. echo "configure: failed program was:" >&5
  5494. cat conftest.$ac_ext >&5
  5495. rm -rf conftest*
  5496. eval "ac_cv_header_$ac_safe=no"
  5497. fi
  5498. rm -f conftest*
  5499. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5500. echo "$ac_t""yes" 1>&6
  5501. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5502. cat >> confdefs.h <<EOF
  5503. #define $ac_tr_hdr 1
  5504. EOF
  5505. else
  5506. echo "$ac_t""no" 1>&6
  5507. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5508. fi
  5509. done
  5510. CPPFLAGS=$ac_save_cppflags
  5511. # With TIFF library directory
  5512. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5513. echo "configure:6665: checking for location of TIFF library" >&5
  5514. case "$with_tiff_libs" in
  5515. y | ye | yes | n | no)
  5516. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5517. ;;
  5518. esac
  5519. echo "$ac_t""$with_tiff_libs" 1>&6
  5520. if test -n "$with_tiff_libs"; then
  5521. for dir in $with_tiff_libs; do
  5522. if test -d "$dir"; then
  5523. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5524. else
  5525. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5526. fi
  5527. done
  5528. fi
  5529. ac_save_ldflags="$LDFLAGS"
  5530. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5531. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5532. echo "configure:6696: checking for TIFFOpen in -ltiff" >&5
  5533. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5534. ac_save_LIBS="$LIBS"
  5535. LIBS="-ltiff $LIBS"
  5536. cat > conftest.$ac_ext <<EOF
  5537. #line 6702 "configure"
  5538. #include "confdefs.h"
  5539. /* Override any gcc2 internal prototype to avoid an error. */
  5540. /* We use char because int might match the return type of a gcc2
  5541. builtin and then its argument prototype would still apply. */
  5542. char TIFFOpen();
  5543. int main() {
  5544. TIFFOpen()
  5545. ; return 0; }
  5546. EOF
  5547. if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5548. rm -rf conftest*
  5549. eval "ac_cv_lib_$ac_lib_var=yes"
  5550. else
  5551. echo "configure: failed program was:" >&5
  5552. cat conftest.$ac_ext >&5
  5553. rm -rf conftest*
  5554. eval "ac_cv_lib_$ac_lib_var=no"
  5555. fi
  5556. rm -f conftest*
  5557. LIBS="$ac_save_LIBS"
  5558. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5559. echo "$ac_t""yes" 1>&6
  5560. TIFFLIB="$TIFFLIB -ltiff "
  5561. else
  5562. echo "$ac_t""no" 1>&6
  5563. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5564. echo "configure:6732: checking for TIFFOpen in -ltiff" >&5
  5565. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5566. ac_save_LIBS="$LIBS"
  5567. LIBS="-ltiff $MATHLIB $LIBS"
  5568. cat > conftest.$ac_ext <<EOF
  5569. #line 6738 "configure"
  5570. #include "confdefs.h"
  5571. /* Override any gcc2 internal prototype to avoid an error. */
  5572. /* We use char because int might match the return type of a gcc2
  5573. builtin and then its argument prototype would still apply. */
  5574. char TIFFOpen();
  5575. int main() {
  5576. TIFFOpen()
  5577. ; return 0; }
  5578. EOF
  5579. if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5580. rm -rf conftest*
  5581. eval "ac_cv_lib_$ac_lib_var=yes"
  5582. else
  5583. echo "configure: failed program was:" >&5
  5584. cat conftest.$ac_ext >&5
  5585. rm -rf conftest*
  5586. eval "ac_cv_lib_$ac_lib_var=no"
  5587. fi
  5588. rm -f conftest*
  5589. LIBS="$ac_save_LIBS"
  5590. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5591. echo "$ac_t""yes" 1>&6
  5592. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5593. else
  5594. echo "$ac_t""no" 1>&6
  5595. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5596. echo "configure:6768: checking for TIFFOpen in -ltiff" >&5
  5597. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5598. ac_save_LIBS="$LIBS"
  5599. LIBS="-ltiff $ZLIB $LIBS"
  5600. cat > conftest.$ac_ext <<EOF
  5601. #line 6774 "configure"
  5602. #include "confdefs.h"
  5603. /* Override any gcc2 internal prototype to avoid an error. */
  5604. /* We use char because int might match the return type of a gcc2
  5605. builtin and then its argument prototype would still apply. */
  5606. char TIFFOpen();
  5607. int main() {
  5608. TIFFOpen()
  5609. ; return 0; }
  5610. EOF
  5611. if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5612. rm -rf conftest*
  5613. eval "ac_cv_lib_$ac_lib_var=yes"
  5614. else
  5615. echo "configure: failed program was:" >&5
  5616. cat conftest.$ac_ext >&5
  5617. rm -rf conftest*
  5618. eval "ac_cv_lib_$ac_lib_var=no"
  5619. fi
  5620. rm -f conftest*
  5621. LIBS="$ac_save_LIBS"
  5622. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5623. echo "$ac_t""yes" 1>&6
  5624. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5625. else
  5626. echo "$ac_t""no" 1>&6
  5627. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5628. echo "configure:6804: checking for TIFFOpen in -ltiff" >&5
  5629. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5630. ac_save_LIBS="$LIBS"
  5631. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5632. cat > conftest.$ac_ext <<EOF
  5633. #line 6810 "configure"
  5634. #include "confdefs.h"
  5635. /* Override any gcc2 internal prototype to avoid an error. */
  5636. /* We use char because int might match the return type of a gcc2
  5637. builtin and then its argument prototype would still apply. */
  5638. char TIFFOpen();
  5639. int main() {
  5640. TIFFOpen()
  5641. ; return 0; }
  5642. EOF
  5643. if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5644. rm -rf conftest*
  5645. eval "ac_cv_lib_$ac_lib_var=yes"
  5646. else
  5647. echo "configure: failed program was:" >&5
  5648. cat conftest.$ac_ext >&5
  5649. rm -rf conftest*
  5650. eval "ac_cv_lib_$ac_lib_var=no"
  5651. fi
  5652. rm -f conftest*
  5653. LIBS="$ac_save_LIBS"
  5654. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5655. echo "$ac_t""yes" 1>&6
  5656. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5657. else
  5658. echo "$ac_t""no" 1>&6
  5659. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5660. echo "configure:6840: checking for TIFFOpen in -ltiff" >&5
  5661. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5662. ac_save_LIBS="$LIBS"
  5663. LIBS="-ltiff -ljpeg $LIBS"
  5664. cat > conftest.$ac_ext <<EOF
  5665. #line 6846 "configure"
  5666. #include "confdefs.h"
  5667. /* Override any gcc2 internal prototype to avoid an error. */
  5668. /* We use char because int might match the return type of a gcc2
  5669. builtin and then its argument prototype would still apply. */
  5670. char TIFFOpen();
  5671. int main() {
  5672. TIFFOpen()
  5673. ; return 0; }
  5674. EOF
  5675. if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5676. rm -rf conftest*
  5677. eval "ac_cv_lib_$ac_lib_var=yes"
  5678. else
  5679. echo "configure: failed program was:" >&5
  5680. cat conftest.$ac_ext >&5
  5681. rm -rf conftest*
  5682. eval "ac_cv_lib_$ac_lib_var=no"
  5683. fi
  5684. rm -f conftest*
  5685. LIBS="$ac_save_LIBS"
  5686. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5687. echo "$ac_t""yes" 1>&6
  5688. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5689. else
  5690. echo "$ac_t""no" 1>&6
  5691. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5692. echo "configure:6876: checking for TIFFOpen in -ltiff" >&5
  5693. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5694. ac_save_LIBS="$LIBS"
  5695. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5696. cat > conftest.$ac_ext <<EOF
  5697. #line 6882 "configure"
  5698. #include "confdefs.h"
  5699. /* Override any gcc2 internal prototype to avoid an error. */
  5700. /* We use char because int might match the return type of a gcc2
  5701. builtin and then its argument prototype would still apply. */
  5702. char TIFFOpen();
  5703. int main() {
  5704. TIFFOpen()
  5705. ; return 0; }
  5706. EOF
  5707. if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5708. rm -rf conftest*
  5709. eval "ac_cv_lib_$ac_lib_var=yes"
  5710. else
  5711. echo "configure: failed program was:" >&5
  5712. cat conftest.$ac_ext >&5
  5713. rm -rf conftest*
  5714. eval "ac_cv_lib_$ac_lib_var=no"
  5715. fi
  5716. rm -f conftest*
  5717. LIBS="$ac_save_LIBS"
  5718. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5719. echo "$ac_t""yes" 1>&6
  5720. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5721. else
  5722. echo "$ac_t""no" 1>&6
  5723. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5724. echo "configure:6912: checking for TIFFOpen in -ltiff" >&5
  5725. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5726. ac_save_LIBS="$LIBS"
  5727. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5728. cat > conftest.$ac_ext <<EOF
  5729. #line 6918 "configure"
  5730. #include "confdefs.h"
  5731. /* Override any gcc2 internal prototype to avoid an error. */
  5732. /* We use char because int might match the return type of a gcc2
  5733. builtin and then its argument prototype would still apply. */
  5734. char TIFFOpen();
  5735. int main() {
  5736. TIFFOpen()
  5737. ; return 0; }
  5738. EOF
  5739. if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5740. rm -rf conftest*
  5741. eval "ac_cv_lib_$ac_lib_var=yes"
  5742. else
  5743. echo "configure: failed program was:" >&5
  5744. cat conftest.$ac_ext >&5
  5745. rm -rf conftest*
  5746. eval "ac_cv_lib_$ac_lib_var=no"
  5747. fi
  5748. rm -f conftest*
  5749. LIBS="$ac_save_LIBS"
  5750. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5751. echo "$ac_t""yes" 1>&6
  5752. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5753. else
  5754. echo "$ac_t""no" 1>&6
  5755. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5756. echo "configure:6948: checking for TIFFOpen in -ltiff" >&5
  5757. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5758. ac_save_LIBS="$LIBS"
  5759. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5760. cat > conftest.$ac_ext <<EOF
  5761. #line 6954 "configure"
  5762. #include "confdefs.h"
  5763. /* Override any gcc2 internal prototype to avoid an error. */
  5764. /* We use char because int might match the return type of a gcc2
  5765. builtin and then its argument prototype would still apply. */
  5766. char TIFFOpen();
  5767. int main() {
  5768. TIFFOpen()
  5769. ; return 0; }
  5770. EOF
  5771. if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5772. rm -rf conftest*
  5773. eval "ac_cv_lib_$ac_lib_var=yes"
  5774. else
  5775. echo "configure: failed program was:" >&5
  5776. cat conftest.$ac_ext >&5
  5777. rm -rf conftest*
  5778. eval "ac_cv_lib_$ac_lib_var=no"
  5779. fi
  5780. rm -f conftest*
  5781. LIBS="$ac_save_LIBS"
  5782. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5783. echo "$ac_t""yes" 1>&6
  5784. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5785. else
  5786. echo "$ac_t""no" 1>&6
  5787. LDFLAGS=${ac_save_ldflags}
  5788. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5789. fi
  5790. fi
  5791. fi
  5792. fi
  5793. fi
  5794. fi
  5795. fi
  5796. fi
  5797. LDFLAGS=${ac_save_ldflags}
  5798. fi # $USE_TIFF
  5799. # Done checking TIFF
  5800. # Enable PNG option
  5801. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5802. echo "configure:7063: checking whether to use PNG" >&5
  5803. echo "$ac_t"""$with_png"" 1>&6
  5804. case "$with_png" in
  5805. "no") USE_PNG= ;;
  5806. "yes") USE_PNG="1" ;;
  5807. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5808. esac
  5809. PNGINC=
  5810. PNGLIB=
  5811. if test -n "$USE_PNG"; then
  5812. # With PNG includes directory
  5813. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5814. echo "configure:7082: checking for location of PNG includes" >&5
  5815. case "$with_png_includes" in
  5816. y | ye | yes | n | no)
  5817. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5818. ;;
  5819. esac
  5820. echo "$ac_t""$with_png_includes" 1>&6
  5821. if test -n "$with_png_includes" ; then
  5822. for dir in $with_png_includes; do
  5823. if test -d "$dir"; then
  5824. PNGINC="$PNGINC -I$dir"
  5825. else
  5826. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5827. fi
  5828. done
  5829. fi
  5830. ac_save_cppflags="$CPPFLAGS"
  5831. CPPFLAGS="$PNGINC $CPPFLAGS"
  5832. for ac_hdr in png.h
  5833. do
  5834. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5835. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5836. echo "configure:7108: checking for $ac_hdr" >&5
  5837. cat > conftest.$ac_ext <<EOF
  5838. #line 7111 "configure"
  5839. #include "confdefs.h"
  5840. #include <$ac_hdr>
  5841. EOF
  5842. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5843. { (eval echo configure:7116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5844. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5845. if test -z "$ac_err"; then
  5846. rm -rf conftest*
  5847. eval "ac_cv_header_$ac_safe=yes"
  5848. else
  5849. echo "$ac_err" >&5
  5850. echo "configure: failed program was:" >&5
  5851. cat conftest.$ac_ext >&5
  5852. rm -rf conftest*
  5853. eval "ac_cv_header_$ac_safe=no"
  5854. fi
  5855. rm -f conftest*
  5856. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5857. echo "$ac_t""yes" 1>&6
  5858. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5859. cat >> confdefs.h <<EOF
  5860. #define $ac_tr_hdr 1
  5861. EOF
  5862. else
  5863. echo "$ac_t""no" 1>&6
  5864. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5865. fi
  5866. done
  5867. CPPFLAGS=$ac_save_cppflags
  5868. # With PNG library directory
  5869. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5870. echo "configure:7150: checking for location of PNG library" >&5
  5871. case "$with_png_libs" in
  5872. y | ye | yes | n | no)
  5873. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5874. ;;
  5875. esac
  5876. echo "$ac_t""$with_png_libs" 1>&6
  5877. if test -n "$with_png_libs"; then
  5878. for dir in $with_png_libs; do
  5879. if test -d "$dir"; then
  5880. PNGLIB="$PNGLIB -L$dir"
  5881. else
  5882. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5883. fi
  5884. done
  5885. fi
  5886. ac_save_ldflags="$LDFLAGS"
  5887. LDFLAGS="$PNGLIB $LDFLAGS"
  5888. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5889. echo "configure:7175: checking for png_read_image in -lpng" >&5
  5890. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5891. ac_save_LIBS="$LIBS"
  5892. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5893. cat > conftest.$ac_ext <<EOF
  5894. #line 7181 "configure"
  5895. #include "confdefs.h"
  5896. /* Override any gcc2 internal prototype to avoid an error. */
  5897. /* We use char because int might match the return type of a gcc2
  5898. builtin and then its argument prototype would still apply. */
  5899. char png_read_image();
  5900. int main() {
  5901. png_read_image()
  5902. ; return 0; }
  5903. EOF
  5904. if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5905. rm -rf conftest*
  5906. eval "ac_cv_lib_$ac_lib_var=yes"
  5907. else
  5908. echo "configure: failed program was:" >&5
  5909. cat conftest.$ac_ext >&5
  5910. rm -rf conftest*
  5911. eval "ac_cv_lib_$ac_lib_var=no"
  5912. fi
  5913. rm -f conftest*
  5914. LIBS="$ac_save_LIBS"
  5915. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5916. echo "$ac_t""yes" 1>&6
  5917. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5918. else
  5919. echo "$ac_t""no" 1>&6
  5920. LDFLAGS=${ac_save_ldflags}
  5921. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5922. fi
  5923. LDFLAGS=${ac_save_ldflags}
  5924. fi # $USE_PNG
  5925. # Done checking PNG
  5926. # Enable PostgreSQL option
  5927. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5928. echo "configure:7234: checking whether to use PostgreSQL" >&5
  5929. echo "$ac_t"""$with_postgres"" 1>&6
  5930. case "$with_postgres" in
  5931. "no") USE_POSTGRES= ;;
  5932. "yes") USE_POSTGRES="1" ;;
  5933. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5934. esac
  5935. if test -n "$USE_POSTGRES"; then
  5936. cat >> confdefs.h <<\EOF
  5937. #define HAVE_POSTGRES 1
  5938. EOF
  5939. fi # $USE_POSTGRES
  5940. PQINCPATH=
  5941. PQLIBPATH=
  5942. PQLIB=
  5943. if test -n "$USE_POSTGRES"; then
  5944. # With PostgreSQL includes directory
  5945. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5946. echo "configure:7261: checking for location of PostgreSQL includes" >&5
  5947. case "$with_postgres_includes" in
  5948. y | ye | yes | n | no)
  5949. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5950. ;;
  5951. esac
  5952. echo "$ac_t""$with_postgres_includes" 1>&6
  5953. if test -n "$with_postgres_includes" ; then
  5954. for dir in $with_postgres_includes; do
  5955. if test -d "$dir"; then
  5956. PQINCPATH="$PQINCPATH -I$dir"
  5957. else
  5958. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5959. fi
  5960. done
  5961. fi
  5962. ac_save_cppflags="$CPPFLAGS"
  5963. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5964. for ac_hdr in libpq-fe.h
  5965. do
  5966. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5967. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5968. echo "configure:7287: checking for $ac_hdr" >&5
  5969. cat > conftest.$ac_ext <<EOF
  5970. #line 7290 "configure"
  5971. #include "confdefs.h"
  5972. #include <$ac_hdr>
  5973. EOF
  5974. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5975. { (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5976. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5977. if test -z "$ac_err"; then
  5978. rm -rf conftest*
  5979. eval "ac_cv_header_$ac_safe=yes"
  5980. else
  5981. echo "$ac_err" >&5
  5982. echo "configure: failed program was:" >&5
  5983. cat conftest.$ac_ext >&5
  5984. rm -rf conftest*
  5985. eval "ac_cv_header_$ac_safe=no"
  5986. fi
  5987. rm -f conftest*
  5988. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5989. echo "$ac_t""yes" 1>&6
  5990. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5991. cat >> confdefs.h <<EOF
  5992. #define $ac_tr_hdr 1
  5993. EOF
  5994. else
  5995. echo "$ac_t""no" 1>&6
  5996. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  5997. fi
  5998. done
  5999. CPPFLAGS=$ac_save_cppflags
  6000. fi # $USE_POSTGRES
  6001. if test -n "$USE_POSTGRES"; then
  6002. # With PostgreSQL library directory
  6003. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6004. echo "configure:7333: checking for location of PostgreSQL library" >&5
  6005. case "$with_postgres_libs" in
  6006. y | ye | yes | n | no)
  6007. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6008. ;;
  6009. esac
  6010. echo "$ac_t""$with_postgres_libs" 1>&6
  6011. if test -n "$with_postgres_libs"; then
  6012. for dir in $with_postgres_libs; do
  6013. if test -d "$dir"; then
  6014. PQLIBPATH="$PQLIBPATH -L$dir"
  6015. else
  6016. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6017. fi
  6018. done
  6019. fi
  6020. ac_save_ldflags="$LDFLAGS"
  6021. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6022. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6023. echo "configure:7362: checking for PQsetdbLogin in -lpq" >&5
  6024. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6025. ac_save_LIBS="$LIBS"
  6026. LIBS="-lpq $LIBS"
  6027. cat > conftest.$ac_ext <<EOF
  6028. #line 7368 "configure"
  6029. #include "confdefs.h"
  6030. /* Override any gcc2 internal prototype to avoid an error. */
  6031. /* We use char because int might match the return type of a gcc2
  6032. builtin and then its argument prototype would still apply. */
  6033. char PQsetdbLogin();
  6034. int main() {
  6035. PQsetdbLogin()
  6036. ; return 0; }
  6037. EOF
  6038. if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6039. rm -rf conftest*
  6040. eval "ac_cv_lib_$ac_lib_var=yes"
  6041. else
  6042. echo "configure: failed program was:" >&5
  6043. cat conftest.$ac_ext >&5
  6044. rm -rf conftest*
  6045. eval "ac_cv_lib_$ac_lib_var=no"
  6046. fi
  6047. rm -f conftest*
  6048. LIBS="$ac_save_LIBS"
  6049. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6050. echo "$ac_t""yes" 1>&6
  6051. PQLIB="$PQLIB -lpq "
  6052. else
  6053. echo "$ac_t""no" 1>&6
  6054. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6055. echo "configure:7398: checking for PQsetdbLogin in -lpq" >&5
  6056. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6057. ac_save_LIBS="$LIBS"
  6058. LIBS="-lpq -lssl -lcrypto $LIBS"
  6059. cat > conftest.$ac_ext <<EOF
  6060. #line 7404 "configure"
  6061. #include "confdefs.h"
  6062. /* Override any gcc2 internal prototype to avoid an error. */
  6063. /* We use char because int might match the return type of a gcc2
  6064. builtin and then its argument prototype would still apply. */
  6065. char PQsetdbLogin();
  6066. int main() {
  6067. PQsetdbLogin()
  6068. ; return 0; }
  6069. EOF
  6070. if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6071. rm -rf conftest*
  6072. eval "ac_cv_lib_$ac_lib_var=yes"
  6073. else
  6074. echo "configure: failed program was:" >&5
  6075. cat conftest.$ac_ext >&5
  6076. rm -rf conftest*
  6077. eval "ac_cv_lib_$ac_lib_var=no"
  6078. fi
  6079. rm -f conftest*
  6080. LIBS="$ac_save_LIBS"
  6081. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6082. echo "$ac_t""yes" 1>&6
  6083. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6084. else
  6085. echo "$ac_t""no" 1>&6
  6086. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6087. echo "configure:7434: checking for PQsetdbLogin in -lpq" >&5
  6088. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6089. ac_save_LIBS="$LIBS"
  6090. LIBS="-lpq -lcrypt $LIBS"
  6091. cat > conftest.$ac_ext <<EOF
  6092. #line 7440 "configure"
  6093. #include "confdefs.h"
  6094. /* Override any gcc2 internal prototype to avoid an error. */
  6095. /* We use char because int might match the return type of a gcc2
  6096. builtin and then its argument prototype would still apply. */
  6097. char PQsetdbLogin();
  6098. int main() {
  6099. PQsetdbLogin()
  6100. ; return 0; }
  6101. EOF
  6102. if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6103. rm -rf conftest*
  6104. eval "ac_cv_lib_$ac_lib_var=yes"
  6105. else
  6106. echo "configure: failed program was:" >&5
  6107. cat conftest.$ac_ext >&5
  6108. rm -rf conftest*
  6109. eval "ac_cv_lib_$ac_lib_var=no"
  6110. fi
  6111. rm -f conftest*
  6112. LIBS="$ac_save_LIBS"
  6113. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6114. echo "$ac_t""yes" 1>&6
  6115. PQLIB="$PQLIB -lpq -lcrypt"
  6116. else
  6117. echo "$ac_t""no" 1>&6
  6118. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6119. echo "configure:7470: checking for PQsetdbLogin in -lpq" >&5
  6120. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6121. ac_save_LIBS="$LIBS"
  6122. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6123. cat > conftest.$ac_ext <<EOF
  6124. #line 7476 "configure"
  6125. #include "confdefs.h"
  6126. /* Override any gcc2 internal prototype to avoid an error. */
  6127. /* We use char because int might match the return type of a gcc2
  6128. builtin and then its argument prototype would still apply. */
  6129. char PQsetdbLogin();
  6130. int main() {
  6131. PQsetdbLogin()
  6132. ; return 0; }
  6133. EOF
  6134. if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6135. rm -rf conftest*
  6136. eval "ac_cv_lib_$ac_lib_var=yes"
  6137. else
  6138. echo "configure: failed program was:" >&5
  6139. cat conftest.$ac_ext >&5
  6140. rm -rf conftest*
  6141. eval "ac_cv_lib_$ac_lib_var=no"
  6142. fi
  6143. rm -f conftest*
  6144. LIBS="$ac_save_LIBS"
  6145. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6146. echo "$ac_t""yes" 1>&6
  6147. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6148. else
  6149. echo "$ac_t""no" 1>&6
  6150. LDFLAGS=${ac_save_ldflags}
  6151. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6152. fi
  6153. fi
  6154. fi
  6155. fi
  6156. LDFLAGS=${ac_save_ldflags}
  6157. ac_save_ldflags="$LDFLAGS"
  6158. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6159. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6160. echo "configure:7544: checking for PQcmdTuples in -lpq" >&5
  6161. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6162. ac_save_LIBS="$LIBS"
  6163. LIBS="-lpq $LIBS"
  6164. cat > conftest.$ac_ext <<EOF
  6165. #line 7550 "configure"
  6166. #include "confdefs.h"
  6167. /* Override any gcc2 internal prototype to avoid an error. */
  6168. /* We use char because int might match the return type of a gcc2
  6169. builtin and then its argument prototype would still apply. */
  6170. char PQcmdTuples();
  6171. int main() {
  6172. PQcmdTuples()
  6173. ; return 0; }
  6174. EOF
  6175. if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6176. rm -rf conftest*
  6177. eval "ac_cv_lib_$ac_lib_var=yes"
  6178. else
  6179. echo "configure: failed program was:" >&5
  6180. cat conftest.$ac_ext >&5
  6181. rm -rf conftest*
  6182. eval "ac_cv_lib_$ac_lib_var=no"
  6183. fi
  6184. rm -f conftest*
  6185. LIBS="$ac_save_LIBS"
  6186. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6187. echo "$ac_t""yes" 1>&6
  6188. cat >> confdefs.h <<\EOF
  6189. #define HAVE_PQCMDTUPLES 1
  6190. EOF
  6191. else
  6192. echo "$ac_t""no" 1>&6
  6193. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6194. echo "configure:7583: checking for PQcmdTuples in -lpq" >&5
  6195. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6196. ac_save_LIBS="$LIBS"
  6197. LIBS="-lpq -lcrypt $LIBS"
  6198. cat > conftest.$ac_ext <<EOF
  6199. #line 7589 "configure"
  6200. #include "confdefs.h"
  6201. /* Override any gcc2 internal prototype to avoid an error. */
  6202. /* We use char because int might match the return type of a gcc2
  6203. builtin and then its argument prototype would still apply. */
  6204. char PQcmdTuples();
  6205. int main() {
  6206. PQcmdTuples()
  6207. ; return 0; }
  6208. EOF
  6209. if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6210. rm -rf conftest*
  6211. eval "ac_cv_lib_$ac_lib_var=yes"
  6212. else
  6213. echo "configure: failed program was:" >&5
  6214. cat conftest.$ac_ext >&5
  6215. rm -rf conftest*
  6216. eval "ac_cv_lib_$ac_lib_var=no"
  6217. fi
  6218. rm -f conftest*
  6219. LIBS="$ac_save_LIBS"
  6220. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6221. echo "$ac_t""yes" 1>&6
  6222. cat >> confdefs.h <<\EOF
  6223. #define HAVE_PQCMDTUPLES 1
  6224. EOF
  6225. else
  6226. echo "$ac_t""no" 1>&6
  6227. fi
  6228. fi
  6229. LDFLAGS="${ac_save_ldflags}"
  6230. fi # $USE_POSTGRES
  6231. # Done checking PostgreSQL
  6232. # Enable MySQL option
  6233. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6234. echo "configure:7643: checking whether to use MySQL" >&5
  6235. echo "$ac_t"""$with_mysql"" 1>&6
  6236. case "$with_mysql" in
  6237. "no") USE_MYSQL= ;;
  6238. "yes") USE_MYSQL="1" ;;
  6239. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6240. esac
  6241. MYSQLINCPATH=
  6242. MYSQLLIBPATH=
  6243. MYSQLLIB=
  6244. if test -n "$USE_MYSQL"; then
  6245. # With MySQL includes directory
  6246. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6247. echo "configure:7663: checking for location of MySQL includes" >&5
  6248. case "$with_mysql_includes" in
  6249. y | ye | yes | n | no)
  6250. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6251. ;;
  6252. esac
  6253. echo "$ac_t""$with_mysql_includes" 1>&6
  6254. if test -n "$with_mysql_includes" ; then
  6255. for dir in $with_mysql_includes; do
  6256. if test -d "$dir"; then
  6257. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6258. else
  6259. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6260. fi
  6261. done
  6262. fi
  6263. ac_save_cppflags="$CPPFLAGS"
  6264. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6265. for ac_hdr in mysql.h
  6266. do
  6267. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6268. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6269. echo "configure:7689: checking for $ac_hdr" >&5
  6270. cat > conftest.$ac_ext <<EOF
  6271. #line 7692 "configure"
  6272. #include "confdefs.h"
  6273. #include <$ac_hdr>
  6274. EOF
  6275. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6276. { (eval echo configure:7697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6277. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6278. if test -z "$ac_err"; then
  6279. rm -rf conftest*
  6280. eval "ac_cv_header_$ac_safe=yes"
  6281. else
  6282. echo "$ac_err" >&5
  6283. echo "configure: failed program was:" >&5
  6284. cat conftest.$ac_ext >&5
  6285. rm -rf conftest*
  6286. eval "ac_cv_header_$ac_safe=no"
  6287. fi
  6288. rm -f conftest*
  6289. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6290. echo "$ac_t""yes" 1>&6
  6291. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6292. cat >> confdefs.h <<EOF
  6293. #define $ac_tr_hdr 1
  6294. EOF
  6295. else
  6296. echo "$ac_t""no" 1>&6
  6297. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6298. fi
  6299. done
  6300. CPPFLAGS=$ac_save_cppflags
  6301. fi # $USE_MYSQL
  6302. if test -n "$USE_MYSQL"; then
  6303. # With MySQL library directory
  6304. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6305. echo "configure:7734: checking for location of MySQL library" >&5
  6306. case "$with_mysql_libs" in
  6307. y | ye | yes | n | no)
  6308. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6309. ;;
  6310. esac
  6311. echo "$ac_t""$with_mysql_libs" 1>&6
  6312. if test -n "$with_mysql_libs"; then
  6313. for dir in $with_mysql_libs; do
  6314. if test -d "$dir"; then
  6315. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6316. else
  6317. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6318. fi
  6319. done
  6320. fi
  6321. ac_save_ldflags="$LDFLAGS"
  6322. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6323. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6324. echo "configure:7765: checking for mysql_query in -lmysqlclient" >&5
  6325. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6326. ac_save_LIBS="$LIBS"
  6327. LIBS="-lmysqlclient $LIBS"
  6328. cat > conftest.$ac_ext <<EOF
  6329. #line 7771 "configure"
  6330. #include "confdefs.h"
  6331. /* Override any gcc2 internal prototype to avoid an error. */
  6332. /* We use char because int might match the return type of a gcc2
  6333. builtin and then its argument prototype would still apply. */
  6334. char mysql_query();
  6335. int main() {
  6336. mysql_query()
  6337. ; return 0; }
  6338. EOF
  6339. if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6340. rm -rf conftest*
  6341. eval "ac_cv_lib_$ac_lib_var=yes"
  6342. else
  6343. echo "configure: failed program was:" >&5
  6344. cat conftest.$ac_ext >&5
  6345. rm -rf conftest*
  6346. eval "ac_cv_lib_$ac_lib_var=no"
  6347. fi
  6348. rm -f conftest*
  6349. LIBS="$ac_save_LIBS"
  6350. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6351. echo "$ac_t""yes" 1>&6
  6352. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6353. else
  6354. echo "$ac_t""no" 1>&6
  6355. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6356. echo "configure:7801: checking for mysql_query in -lmysqlclient" >&5
  6357. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6358. ac_save_LIBS="$LIBS"
  6359. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6360. cat > conftest.$ac_ext <<EOF
  6361. #line 7807 "configure"
  6362. #include "confdefs.h"
  6363. /* Override any gcc2 internal prototype to avoid an error. */
  6364. /* We use char because int might match the return type of a gcc2
  6365. builtin and then its argument prototype would still apply. */
  6366. char mysql_query();
  6367. int main() {
  6368. mysql_query()
  6369. ; return 0; }
  6370. EOF
  6371. if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6372. rm -rf conftest*
  6373. eval "ac_cv_lib_$ac_lib_var=yes"
  6374. else
  6375. echo "configure: failed program was:" >&5
  6376. cat conftest.$ac_ext >&5
  6377. rm -rf conftest*
  6378. eval "ac_cv_lib_$ac_lib_var=no"
  6379. fi
  6380. rm -f conftest*
  6381. LIBS="$ac_save_LIBS"
  6382. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6383. echo "$ac_t""yes" 1>&6
  6384. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6385. else
  6386. echo "$ac_t""no" 1>&6
  6387. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6388. echo "configure:7837: checking for mysql_query in -lmysqlclient" >&5
  6389. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6390. ac_save_LIBS="$LIBS"
  6391. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6392. cat > conftest.$ac_ext <<EOF
  6393. #line 7843 "configure"
  6394. #include "confdefs.h"
  6395. /* Override any gcc2 internal prototype to avoid an error. */
  6396. /* We use char because int might match the return type of a gcc2
  6397. builtin and then its argument prototype would still apply. */
  6398. char mysql_query();
  6399. int main() {
  6400. mysql_query()
  6401. ; return 0; }
  6402. EOF
  6403. if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6404. rm -rf conftest*
  6405. eval "ac_cv_lib_$ac_lib_var=yes"
  6406. else
  6407. echo "configure: failed program was:" >&5
  6408. cat conftest.$ac_ext >&5
  6409. rm -rf conftest*
  6410. eval "ac_cv_lib_$ac_lib_var=no"
  6411. fi
  6412. rm -f conftest*
  6413. LIBS="$ac_save_LIBS"
  6414. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6415. echo "$ac_t""yes" 1>&6
  6416. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6417. else
  6418. echo "$ac_t""no" 1>&6
  6419. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6420. echo "configure:7873: checking for mysql_query in -lmysqlclient" >&5
  6421. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6422. ac_save_LIBS="$LIBS"
  6423. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6424. cat > conftest.$ac_ext <<EOF
  6425. #line 7879 "configure"
  6426. #include "confdefs.h"
  6427. /* Override any gcc2 internal prototype to avoid an error. */
  6428. /* We use char because int might match the return type of a gcc2
  6429. builtin and then its argument prototype would still apply. */
  6430. char mysql_query();
  6431. int main() {
  6432. mysql_query()
  6433. ; return 0; }
  6434. EOF
  6435. if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6436. rm -rf conftest*
  6437. eval "ac_cv_lib_$ac_lib_var=yes"
  6438. else
  6439. echo "configure: failed program was:" >&5
  6440. cat conftest.$ac_ext >&5
  6441. rm -rf conftest*
  6442. eval "ac_cv_lib_$ac_lib_var=no"
  6443. fi
  6444. rm -f conftest*
  6445. LIBS="$ac_save_LIBS"
  6446. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6447. echo "$ac_t""yes" 1>&6
  6448. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6449. else
  6450. echo "$ac_t""no" 1>&6
  6451. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6452. echo "configure:7909: checking for mysql_query in -lmysqlclient" >&5
  6453. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6454. ac_save_LIBS="$LIBS"
  6455. LIBS="-lmysqlclient $ZLIB $LIBS"
  6456. cat > conftest.$ac_ext <<EOF
  6457. #line 7915 "configure"
  6458. #include "confdefs.h"
  6459. /* Override any gcc2 internal prototype to avoid an error. */
  6460. /* We use char because int might match the return type of a gcc2
  6461. builtin and then its argument prototype would still apply. */
  6462. char mysql_query();
  6463. int main() {
  6464. mysql_query()
  6465. ; return 0; }
  6466. EOF
  6467. if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6468. rm -rf conftest*
  6469. eval "ac_cv_lib_$ac_lib_var=yes"
  6470. else
  6471. echo "configure: failed program was:" >&5
  6472. cat conftest.$ac_ext >&5
  6473. rm -rf conftest*
  6474. eval "ac_cv_lib_$ac_lib_var=no"
  6475. fi
  6476. rm -f conftest*
  6477. LIBS="$ac_save_LIBS"
  6478. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6479. echo "$ac_t""yes" 1>&6
  6480. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6481. else
  6482. echo "$ac_t""no" 1>&6
  6483. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6484. echo "configure:7945: checking for mysql_query in -lmysqlclient" >&5
  6485. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6486. ac_save_LIBS="$LIBS"
  6487. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6488. cat > conftest.$ac_ext <<EOF
  6489. #line 7951 "configure"
  6490. #include "confdefs.h"
  6491. /* Override any gcc2 internal prototype to avoid an error. */
  6492. /* We use char because int might match the return type of a gcc2
  6493. builtin and then its argument prototype would still apply. */
  6494. char mysql_query();
  6495. int main() {
  6496. mysql_query()
  6497. ; return 0; }
  6498. EOF
  6499. if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6500. rm -rf conftest*
  6501. eval "ac_cv_lib_$ac_lib_var=yes"
  6502. else
  6503. echo "configure: failed program was:" >&5
  6504. cat conftest.$ac_ext >&5
  6505. rm -rf conftest*
  6506. eval "ac_cv_lib_$ac_lib_var=no"
  6507. fi
  6508. rm -f conftest*
  6509. LIBS="$ac_save_LIBS"
  6510. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6511. echo "$ac_t""yes" 1>&6
  6512. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6513. else
  6514. echo "$ac_t""no" 1>&6
  6515. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6516. echo "configure:7981: checking for mysql_query in -lmysqlclient" >&5
  6517. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6518. ac_save_LIBS="$LIBS"
  6519. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6520. cat > conftest.$ac_ext <<EOF
  6521. #line 7987 "configure"
  6522. #include "confdefs.h"
  6523. /* Override any gcc2 internal prototype to avoid an error. */
  6524. /* We use char because int might match the return type of a gcc2
  6525. builtin and then its argument prototype would still apply. */
  6526. char mysql_query();
  6527. int main() {
  6528. mysql_query()
  6529. ; return 0; }
  6530. EOF
  6531. if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6532. rm -rf conftest*
  6533. eval "ac_cv_lib_$ac_lib_var=yes"
  6534. else
  6535. echo "configure: failed program was:" >&5
  6536. cat conftest.$ac_ext >&5
  6537. rm -rf conftest*
  6538. eval "ac_cv_lib_$ac_lib_var=no"
  6539. fi
  6540. rm -f conftest*
  6541. LIBS="$ac_save_LIBS"
  6542. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6543. echo "$ac_t""yes" 1>&6
  6544. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6545. else
  6546. echo "$ac_t""no" 1>&6
  6547. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6548. echo "configure:8017: checking for mysql_query in -lmysqlclient" >&5
  6549. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6550. ac_save_LIBS="$LIBS"
  6551. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6552. cat > conftest.$ac_ext <<EOF
  6553. #line 8023 "configure"
  6554. #include "confdefs.h"
  6555. /* Override any gcc2 internal prototype to avoid an error. */
  6556. /* We use char because int might match the return type of a gcc2
  6557. builtin and then its argument prototype would still apply. */
  6558. char mysql_query();
  6559. int main() {
  6560. mysql_query()
  6561. ; return 0; }
  6562. EOF
  6563. if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6564. rm -rf conftest*
  6565. eval "ac_cv_lib_$ac_lib_var=yes"
  6566. else
  6567. echo "configure: failed program was:" >&5
  6568. cat conftest.$ac_ext >&5
  6569. rm -rf conftest*
  6570. eval "ac_cv_lib_$ac_lib_var=no"
  6571. fi
  6572. rm -f conftest*
  6573. LIBS="$ac_save_LIBS"
  6574. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6575. echo "$ac_t""yes" 1>&6
  6576. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6577. else
  6578. echo "$ac_t""no" 1>&6
  6579. LDFLAGS=${ac_save_ldflags}
  6580. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6581. fi
  6582. fi
  6583. fi
  6584. fi
  6585. fi
  6586. fi
  6587. fi
  6588. fi
  6589. LDFLAGS=${ac_save_ldflags}
  6590. # Check for libmysqld (for embeded version of the driver)
  6591. # Extract the first word of "mysql_config", so it can be a program name with args.
  6592. set dummy mysql_config; ac_word=$2
  6593. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6594. echo "configure:8124: checking for $ac_word" >&5
  6595. case "$MYSQLD_CONFIG" in
  6596. /*)
  6597. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6598. ;;
  6599. ?:/*)
  6600. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6601. ;;
  6602. *)
  6603. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6604. ac_dummy="$PATH"
  6605. for ac_dir in $ac_dummy; do
  6606. test -z "$ac_dir" && ac_dir=.
  6607. if test -f $ac_dir/$ac_word; then
  6608. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6609. break
  6610. fi
  6611. done
  6612. IFS="$ac_save_ifs"
  6613. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6614. ;;
  6615. esac
  6616. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6617. if test -n "$MYSQLD_CONFIG"; then
  6618. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6619. else
  6620. echo "$ac_t""no" 1>&6
  6621. fi
  6622. if test "$MYSQLD_CONFIG" = "no" ; then
  6623. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6624. fi
  6625. if test "$MYSQLD_CONFIG" != "" ; then
  6626. ac_ext=C
  6627. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6628. ac_cpp='$CXXCPP $CPPFLAGS'
  6629. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6630. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6631. cross_compiling=$ac_cv_prog_cxx_cross
  6632. ac_save_libs="$LIBS"
  6633. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6634. LIBS="$MYSQLDLIB $LIBS"
  6635. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6636. echo "configure:8173: checking for mysql_server_init" >&5
  6637. cat > conftest.$ac_ext <<EOF
  6638. #line 8176 "configure"
  6639. #include "confdefs.h"
  6640. /* System header to define __stub macros and hopefully few prototypes,
  6641. which can conflict with char mysql_server_init(); below. */
  6642. #include <assert.h>
  6643. /* Override any gcc2 internal prototype to avoid an error. */
  6644. #ifdef __cplusplus
  6645. extern "C"
  6646. #endif
  6647. /* We use char because int might match the return type of a gcc2
  6648. builtin and then its argument prototype would still apply. */
  6649. char mysql_server_init();
  6650. int main() {
  6651. /* The GNU C library defines this for functions which it implements
  6652. to always fail with ENOSYS. Some functions are actually named
  6653. something starting with __ and the normal name is an alias. */
  6654. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6655. choke me
  6656. #else
  6657. mysql_server_init();
  6658. #endif
  6659. ; return 0; }
  6660. EOF
  6661. if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6662. rm -rf conftest*
  6663. eval "ac_cv_func_mysql_server_init=yes"
  6664. else
  6665. echo "configure: failed program was:" >&5
  6666. cat conftest.$ac_ext >&5
  6667. rm -rf conftest*
  6668. eval "ac_cv_func_mysql_server_init=no"
  6669. fi
  6670. rm -f conftest*
  6671. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6672. echo "$ac_t""yes" 1>&6
  6673. :
  6674. else
  6675. echo "$ac_t""no" 1>&6
  6676. MYSQLDLIB="";
  6677. echo "configure: warning: libmysqld not found" 1>&2
  6678. fi
  6679. LIBS=$ac_save_libs
  6680. ac_ext=c
  6681. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6682. ac_cpp='$CPP $CPPFLAGS'
  6683. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6684. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6685. cross_compiling=$ac_cv_prog_cc_cross
  6686. ac_ext=c
  6687. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6688. ac_cpp='$CPP $CPPFLAGS'
  6689. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6690. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6691. cross_compiling=$ac_cv_prog_cc_cross
  6692. fi
  6693. fi # $USE_MYSQL
  6694. # Done checking MySQL
  6695. # Enable SQLite option
  6696. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6697. echo "configure:8254: checking whether to use SQLite" >&5
  6698. echo "$ac_t"""$with_sqlite"" 1>&6
  6699. case "$with_sqlite" in
  6700. "no") USE_SQLITE= ;;
  6701. "yes") USE_SQLITE="1" ;;
  6702. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6703. esac
  6704. SQLITEINCPATH=
  6705. SQLITELIBPATH=
  6706. SQLITELIB=
  6707. if test -n "$USE_SQLITE"; then
  6708. # With SQLite includes directory
  6709. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6710. echo "configure:8274: checking for location of SQLite includes" >&5
  6711. case "$with_sqlite_includes" in
  6712. y | ye | yes | n | no)
  6713. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6714. ;;
  6715. esac
  6716. echo "$ac_t""$with_sqlite_includes" 1>&6
  6717. if test -n "$with_sqlite_includes" ; then
  6718. for dir in $with_sqlite_includes; do
  6719. if test -d "$dir"; then
  6720. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6721. else
  6722. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6723. fi
  6724. done
  6725. fi
  6726. ac_save_cppflags="$CPPFLAGS"
  6727. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6728. for ac_hdr in sqlite3.h
  6729. do
  6730. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6731. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6732. echo "configure:8300: checking for $ac_hdr" >&5
  6733. cat > conftest.$ac_ext <<EOF
  6734. #line 8303 "configure"
  6735. #include "confdefs.h"
  6736. #include <$ac_hdr>
  6737. EOF
  6738. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6739. { (eval echo configure:8308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6740. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6741. if test -z "$ac_err"; then
  6742. rm -rf conftest*
  6743. eval "ac_cv_header_$ac_safe=yes"
  6744. else
  6745. echo "$ac_err" >&5
  6746. echo "configure: failed program was:" >&5
  6747. cat conftest.$ac_ext >&5
  6748. rm -rf conftest*
  6749. eval "ac_cv_header_$ac_safe=no"
  6750. fi
  6751. rm -f conftest*
  6752. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6753. echo "$ac_t""yes" 1>&6
  6754. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6755. cat >> confdefs.h <<EOF
  6756. #define $ac_tr_hdr 1
  6757. EOF
  6758. else
  6759. echo "$ac_t""no" 1>&6
  6760. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6761. fi
  6762. done
  6763. CPPFLAGS=$ac_save_cppflags
  6764. cat >> confdefs.h <<\EOF
  6765. #define HAVE_SQLITE 1
  6766. EOF
  6767. fi # $USE_SQLITE
  6768. if test -n "$USE_SQLITE"; then
  6769. # With SQLite library directory
  6770. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6771. echo "configure:8351: checking for location of SQLite library" >&5
  6772. case "$with_sqlite_libs" in
  6773. y | ye | yes | n | no)
  6774. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6775. ;;
  6776. esac
  6777. echo "$ac_t""$with_sqlite_libs" 1>&6
  6778. if test -n "$with_sqlite_libs"; then
  6779. for dir in $with_sqlite_libs; do
  6780. if test -d "$dir"; then
  6781. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6782. else
  6783. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6784. fi
  6785. done
  6786. fi
  6787. ac_save_ldflags="$LDFLAGS"
  6788. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6789. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6790. echo "configure:8380: checking for sqlite3_open in -lsqlite3" >&5
  6791. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6792. ac_save_LIBS="$LIBS"
  6793. LIBS="-lsqlite3 $LIBS"
  6794. cat > conftest.$ac_ext <<EOF
  6795. #line 8386 "configure"
  6796. #include "confdefs.h"
  6797. /* Override any gcc2 internal prototype to avoid an error. */
  6798. /* We use char because int might match the return type of a gcc2
  6799. builtin and then its argument prototype would still apply. */
  6800. char sqlite3_open();
  6801. int main() {
  6802. sqlite3_open()
  6803. ; return 0; }
  6804. EOF
  6805. if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6806. rm -rf conftest*
  6807. eval "ac_cv_lib_$ac_lib_var=yes"
  6808. else
  6809. echo "configure: failed program was:" >&5
  6810. cat conftest.$ac_ext >&5
  6811. rm -rf conftest*
  6812. eval "ac_cv_lib_$ac_lib_var=no"
  6813. fi
  6814. rm -f conftest*
  6815. LIBS="$ac_save_LIBS"
  6816. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6817. echo "$ac_t""yes" 1>&6
  6818. SQLITELIB="$SQLITELIB -lsqlite3 "
  6819. else
  6820. echo "$ac_t""no" 1>&6
  6821. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6822. echo "configure:8416: checking for sqlite3_open in -lsqlite3" >&5
  6823. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6824. ac_save_LIBS="$LIBS"
  6825. LIBS="-lsqlite3 $DLLIB $LIBS"
  6826. cat > conftest.$ac_ext <<EOF
  6827. #line 8422 "configure"
  6828. #include "confdefs.h"
  6829. /* Override any gcc2 internal prototype to avoid an error. */
  6830. /* We use char because int might match the return type of a gcc2
  6831. builtin and then its argument prototype would still apply. */
  6832. char sqlite3_open();
  6833. int main() {
  6834. sqlite3_open()
  6835. ; return 0; }
  6836. EOF
  6837. if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6838. rm -rf conftest*
  6839. eval "ac_cv_lib_$ac_lib_var=yes"
  6840. else
  6841. echo "configure: failed program was:" >&5
  6842. cat conftest.$ac_ext >&5
  6843. rm -rf conftest*
  6844. eval "ac_cv_lib_$ac_lib_var=no"
  6845. fi
  6846. rm -f conftest*
  6847. LIBS="$ac_save_LIBS"
  6848. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6849. echo "$ac_t""yes" 1>&6
  6850. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6851. else
  6852. echo "$ac_t""no" 1>&6
  6853. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6854. echo "configure:8452: checking for sqlite3_open in -lsqlite3" >&5
  6855. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6856. ac_save_LIBS="$LIBS"
  6857. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6858. cat > conftest.$ac_ext <<EOF
  6859. #line 8458 "configure"
  6860. #include "confdefs.h"
  6861. /* Override any gcc2 internal prototype to avoid an error. */
  6862. /* We use char because int might match the return type of a gcc2
  6863. builtin and then its argument prototype would still apply. */
  6864. char sqlite3_open();
  6865. int main() {
  6866. sqlite3_open()
  6867. ; return 0; }
  6868. EOF
  6869. if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6870. rm -rf conftest*
  6871. eval "ac_cv_lib_$ac_lib_var=yes"
  6872. else
  6873. echo "configure: failed program was:" >&5
  6874. cat conftest.$ac_ext >&5
  6875. rm -rf conftest*
  6876. eval "ac_cv_lib_$ac_lib_var=no"
  6877. fi
  6878. rm -f conftest*
  6879. LIBS="$ac_save_LIBS"
  6880. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6881. echo "$ac_t""yes" 1>&6
  6882. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6883. else
  6884. echo "$ac_t""no" 1>&6
  6885. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6886. echo "configure:8488: checking for sqlite3_open in -lsqlite3" >&5
  6887. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6888. ac_save_LIBS="$LIBS"
  6889. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6890. cat > conftest.$ac_ext <<EOF
  6891. #line 8494 "configure"
  6892. #include "confdefs.h"
  6893. /* Override any gcc2 internal prototype to avoid an error. */
  6894. /* We use char because int might match the return type of a gcc2
  6895. builtin and then its argument prototype would still apply. */
  6896. char sqlite3_open();
  6897. int main() {
  6898. sqlite3_open()
  6899. ; return 0; }
  6900. EOF
  6901. if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6902. rm -rf conftest*
  6903. eval "ac_cv_lib_$ac_lib_var=yes"
  6904. else
  6905. echo "configure: failed program was:" >&5
  6906. cat conftest.$ac_ext >&5
  6907. rm -rf conftest*
  6908. eval "ac_cv_lib_$ac_lib_var=no"
  6909. fi
  6910. rm -f conftest*
  6911. LIBS="$ac_save_LIBS"
  6912. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6913. echo "$ac_t""yes" 1>&6
  6914. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6915. else
  6916. echo "$ac_t""no" 1>&6
  6917. LDFLAGS=${ac_save_ldflags}
  6918. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6919. fi
  6920. fi
  6921. fi
  6922. fi
  6923. LDFLAGS=${ac_save_ldflags}
  6924. fi # $USE_SQLITE
  6925. # Done checking SQLite
  6926. # Enable OpenGL option
  6927. OPENGLINC=
  6928. OPENGLLIB=
  6929. OPENGLULIB=
  6930. USE_OPENGL=
  6931. OPENGL_X11=
  6932. OPENGL_AQUA=
  6933. OPENGL_WINDOWS=
  6934. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  6935. echo "configure:8580: checking whether to use OpenGL" >&5
  6936. echo "$ac_t"""$with_opengl"" 1>&6
  6937. case "$with_opengl" in
  6938. n|no)
  6939. OPENGL_TYPE=none
  6940. ;;
  6941. y|yes|x|x11|glx)
  6942. OPENGL_TYPE=X11
  6943. USE_OPENGL=1
  6944. OPENGL_X11=1
  6945. ;;
  6946. aqua|mac|osx|macosx|agl)
  6947. OPENGL_TYPE=Aqua
  6948. USE_OPENGL=1
  6949. OPENGL_AQUA=1
  6950. ;;
  6951. win|windows|mswin|wgl)
  6952. OPENGL_TYPE=Windows
  6953. USE_OPENGL=1
  6954. OPENGL_WINDOWS=1
  6955. ;;
  6956. *)
  6957. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  6958. ;;
  6959. esac
  6960. if test -n "$USE_OPENGL" ; then
  6961. if test "$OPENGL_X11" = 1 ; then
  6962. # With OpenGL includes directory
  6963. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  6964. echo "configure:8614: checking for location of OpenGL includes" >&5
  6965. case "$with_opengl_includes" in
  6966. y | ye | yes | n | no)
  6967. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  6968. ;;
  6969. esac
  6970. echo "$ac_t""$with_opengl_includes" 1>&6
  6971. if test -n "$with_opengl_includes" ; then
  6972. for dir in $with_opengl_includes; do
  6973. if test -d "$dir"; then
  6974. OPENGLINC="$OPENGLINC -I$dir"
  6975. else
  6976. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  6977. fi
  6978. done
  6979. fi
  6980. ac_save_cppflags="$CPPFLAGS"
  6981. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  6982. for ac_hdr in GL/gl.h GL/glu.h
  6983. do
  6984. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6985. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6986. echo "configure:8640: checking for $ac_hdr" >&5
  6987. cat > conftest.$ac_ext <<EOF
  6988. #line 8643 "configure"
  6989. #include "confdefs.h"
  6990. #include <$ac_hdr>
  6991. EOF
  6992. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6993. { (eval echo configure:8648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6994. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6995. if test -z "$ac_err"; then
  6996. rm -rf conftest*
  6997. eval "ac_cv_header_$ac_safe=yes"
  6998. else
  6999. echo "$ac_err" >&5
  7000. echo "configure: failed program was:" >&5
  7001. cat conftest.$ac_ext >&5
  7002. rm -rf conftest*
  7003. eval "ac_cv_header_$ac_safe=no"
  7004. fi
  7005. rm -f conftest*
  7006. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7007. echo "$ac_t""yes" 1>&6
  7008. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7009. cat >> confdefs.h <<EOF
  7010. #define $ac_tr_hdr 1
  7011. EOF
  7012. else
  7013. echo "$ac_t""no" 1>&6
  7014. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7015. fi
  7016. done
  7017. CPPFLAGS=$ac_save_cppflags
  7018. # With OpenGL library directory
  7019. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7020. echo "configure:8682: checking for location of OpenGL library" >&5
  7021. case "$with_opengl_libs" in
  7022. y | ye | yes | n | no)
  7023. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7024. ;;
  7025. esac
  7026. echo "$ac_t""$with_opengl_libs" 1>&6
  7027. if test -n "$with_opengl_libs"; then
  7028. for dir in $with_opengl_libs; do
  7029. if test -d "$dir"; then
  7030. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7031. else
  7032. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7033. fi
  7034. done
  7035. fi
  7036. ac_save_ldflags="$LDFLAGS"
  7037. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7038. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7039. echo "configure:8711: checking for glBegin in -lGL" >&5
  7040. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7041. ac_save_LIBS="$LIBS"
  7042. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7043. cat > conftest.$ac_ext <<EOF
  7044. #line 8717 "configure"
  7045. #include "confdefs.h"
  7046. /* Override any gcc2 internal prototype to avoid an error. */
  7047. /* We use char because int might match the return type of a gcc2
  7048. builtin and then its argument prototype would still apply. */
  7049. char glBegin();
  7050. int main() {
  7051. glBegin()
  7052. ; return 0; }
  7053. EOF
  7054. if { (eval echo configure:8728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7055. rm -rf conftest*
  7056. eval "ac_cv_lib_$ac_lib_var=yes"
  7057. else
  7058. echo "configure: failed program was:" >&5
  7059. cat conftest.$ac_ext >&5
  7060. rm -rf conftest*
  7061. eval "ac_cv_lib_$ac_lib_var=no"
  7062. fi
  7063. rm -f conftest*
  7064. LIBS="$ac_save_LIBS"
  7065. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7066. echo "$ac_t""yes" 1>&6
  7067. OPENGLLIB="$OPENGLLIB -lGL "
  7068. else
  7069. echo "$ac_t""no" 1>&6
  7070. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7071. echo "configure:8747: checking for glBegin in -lGL" >&5
  7072. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7073. ac_save_LIBS="$LIBS"
  7074. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7075. cat > conftest.$ac_ext <<EOF
  7076. #line 8753 "configure"
  7077. #include "confdefs.h"
  7078. /* Override any gcc2 internal prototype to avoid an error. */
  7079. /* We use char because int might match the return type of a gcc2
  7080. builtin and then its argument prototype would still apply. */
  7081. char glBegin();
  7082. int main() {
  7083. glBegin()
  7084. ; return 0; }
  7085. EOF
  7086. if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7087. rm -rf conftest*
  7088. eval "ac_cv_lib_$ac_lib_var=yes"
  7089. else
  7090. echo "configure: failed program was:" >&5
  7091. cat conftest.$ac_ext >&5
  7092. rm -rf conftest*
  7093. eval "ac_cv_lib_$ac_lib_var=no"
  7094. fi
  7095. rm -f conftest*
  7096. LIBS="$ac_save_LIBS"
  7097. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7098. echo "$ac_t""yes" 1>&6
  7099. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7100. else
  7101. echo "$ac_t""no" 1>&6
  7102. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7103. echo "configure:8783: checking for glBegin in -lGL" >&5
  7104. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7105. ac_save_LIBS="$LIBS"
  7106. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7107. cat > conftest.$ac_ext <<EOF
  7108. #line 8789 "configure"
  7109. #include "confdefs.h"
  7110. /* Override any gcc2 internal prototype to avoid an error. */
  7111. /* We use char because int might match the return type of a gcc2
  7112. builtin and then its argument prototype would still apply. */
  7113. char glBegin();
  7114. int main() {
  7115. glBegin()
  7116. ; return 0; }
  7117. EOF
  7118. if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7119. rm -rf conftest*
  7120. eval "ac_cv_lib_$ac_lib_var=yes"
  7121. else
  7122. echo "configure: failed program was:" >&5
  7123. cat conftest.$ac_ext >&5
  7124. rm -rf conftest*
  7125. eval "ac_cv_lib_$ac_lib_var=no"
  7126. fi
  7127. rm -f conftest*
  7128. LIBS="$ac_save_LIBS"
  7129. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7130. echo "$ac_t""yes" 1>&6
  7131. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7132. else
  7133. echo "$ac_t""no" 1>&6
  7134. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7135. echo "configure:8819: checking for glBegin in -lGL" >&5
  7136. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7137. ac_save_LIBS="$LIBS"
  7138. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7139. cat > conftest.$ac_ext <<EOF
  7140. #line 8825 "configure"
  7141. #include "confdefs.h"
  7142. /* Override any gcc2 internal prototype to avoid an error. */
  7143. /* We use char because int might match the return type of a gcc2
  7144. builtin and then its argument prototype would still apply. */
  7145. char glBegin();
  7146. int main() {
  7147. glBegin()
  7148. ; return 0; }
  7149. EOF
  7150. if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7151. rm -rf conftest*
  7152. eval "ac_cv_lib_$ac_lib_var=yes"
  7153. else
  7154. echo "configure: failed program was:" >&5
  7155. cat conftest.$ac_ext >&5
  7156. rm -rf conftest*
  7157. eval "ac_cv_lib_$ac_lib_var=no"
  7158. fi
  7159. rm -f conftest*
  7160. LIBS="$ac_save_LIBS"
  7161. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7162. echo "$ac_t""yes" 1>&6
  7163. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7164. else
  7165. echo "$ac_t""no" 1>&6
  7166. LDFLAGS=${ac_save_ldflags}
  7167. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7168. fi
  7169. fi
  7170. fi
  7171. fi
  7172. LDFLAGS=${ac_save_ldflags}
  7173. ac_save_ldflags="$LDFLAGS"
  7174. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7175. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7176. echo "configure:8898: checking for gluBeginCurve in -lGLU" >&5
  7177. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7178. ac_save_LIBS="$LIBS"
  7179. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7180. cat > conftest.$ac_ext <<EOF
  7181. #line 8904 "configure"
  7182. #include "confdefs.h"
  7183. /* Override any gcc2 internal prototype to avoid an error. */
  7184. /* We use char because int might match the return type of a gcc2
  7185. builtin and then its argument prototype would still apply. */
  7186. char gluBeginCurve();
  7187. int main() {
  7188. gluBeginCurve()
  7189. ; return 0; }
  7190. EOF
  7191. if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7192. rm -rf conftest*
  7193. eval "ac_cv_lib_$ac_lib_var=yes"
  7194. else
  7195. echo "configure: failed program was:" >&5
  7196. cat conftest.$ac_ext >&5
  7197. rm -rf conftest*
  7198. eval "ac_cv_lib_$ac_lib_var=no"
  7199. fi
  7200. rm -f conftest*
  7201. LIBS="$ac_save_LIBS"
  7202. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7203. echo "$ac_t""yes" 1>&6
  7204. OPENGLULIB="$OPENGLULIB -lGLU "
  7205. else
  7206. echo "$ac_t""no" 1>&6
  7207. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7208. echo "configure:8934: checking for gluBeginCurve in -lGLU" >&5
  7209. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7210. ac_save_LIBS="$LIBS"
  7211. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7212. cat > conftest.$ac_ext <<EOF
  7213. #line 8940 "configure"
  7214. #include "confdefs.h"
  7215. /* Override any gcc2 internal prototype to avoid an error. */
  7216. /* We use char because int might match the return type of a gcc2
  7217. builtin and then its argument prototype would still apply. */
  7218. char gluBeginCurve();
  7219. int main() {
  7220. gluBeginCurve()
  7221. ; return 0; }
  7222. EOF
  7223. if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7224. rm -rf conftest*
  7225. eval "ac_cv_lib_$ac_lib_var=yes"
  7226. else
  7227. echo "configure: failed program was:" >&5
  7228. cat conftest.$ac_ext >&5
  7229. rm -rf conftest*
  7230. eval "ac_cv_lib_$ac_lib_var=no"
  7231. fi
  7232. rm -f conftest*
  7233. LIBS="$ac_save_LIBS"
  7234. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7235. echo "$ac_t""yes" 1>&6
  7236. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7237. else
  7238. echo "$ac_t""no" 1>&6
  7239. LDFLAGS=${ac_save_ldflags}
  7240. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7241. fi
  7242. fi
  7243. LDFLAGS=${ac_save_ldflags}
  7244. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7245. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7246. ac_save_libs="$LIBS"
  7247. ac_save_ldflags="$LDFLAGS"
  7248. LIBS=" $OPENGLLIB $LIBS"
  7249. LDFLAGS=" $LDFLAGS"
  7250. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7251. echo "configure:8998: checking for glXCreatePbuffer" >&5
  7252. cat > conftest.$ac_ext <<EOF
  7253. #line 9001 "configure"
  7254. #include "confdefs.h"
  7255. /* System header to define __stub macros and hopefully few prototypes,
  7256. which can conflict with char glXCreatePbuffer(); below. */
  7257. #include <assert.h>
  7258. /* Override any gcc2 internal prototype to avoid an error. */
  7259. /* We use char because int might match the return type of a gcc2
  7260. builtin and then its argument prototype would still apply. */
  7261. char glXCreatePbuffer();
  7262. int main() {
  7263. /* The GNU C library defines this for functions which it implements
  7264. to always fail with ENOSYS. Some functions are actually named
  7265. something starting with __ and the normal name is an alias. */
  7266. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7267. choke me
  7268. #else
  7269. glXCreatePbuffer();
  7270. #endif
  7271. ; return 0; }
  7272. EOF
  7273. if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7274. rm -rf conftest*
  7275. eval "ac_cv_func_glXCreatePbuffer=yes"
  7276. else
  7277. echo "configure: failed program was:" >&5
  7278. cat conftest.$ac_ext >&5
  7279. rm -rf conftest*
  7280. eval "ac_cv_func_glXCreatePbuffer=no"
  7281. fi
  7282. rm -f conftest*
  7283. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7284. echo "$ac_t""yes" 1>&6
  7285. cat >> confdefs.h <<\EOF
  7286. #define HAVE_PBUFFERS 1
  7287. EOF
  7288. else
  7289. echo "$ac_t""no" 1>&6
  7290. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7291. fi
  7292. LIBS=${ac_save_libs}
  7293. LDFLAGS=${ac_save_ldflags}
  7294. ac_save_libs="$LIBS"
  7295. ac_save_ldflags="$LDFLAGS"
  7296. LIBS=" $OPENGLLIB $LIBS"
  7297. LDFLAGS=" $LDFLAGS"
  7298. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7299. echo "configure:9061: checking for glXCreateGLXPixmap" >&5
  7300. cat > conftest.$ac_ext <<EOF
  7301. #line 9064 "configure"
  7302. #include "confdefs.h"
  7303. /* System header to define __stub macros and hopefully few prototypes,
  7304. which can conflict with char glXCreateGLXPixmap(); below. */
  7305. #include <assert.h>
  7306. /* Override any gcc2 internal prototype to avoid an error. */
  7307. /* We use char because int might match the return type of a gcc2
  7308. builtin and then its argument prototype would still apply. */
  7309. char glXCreateGLXPixmap();
  7310. int main() {
  7311. /* The GNU C library defines this for functions which it implements
  7312. to always fail with ENOSYS. Some functions are actually named
  7313. something starting with __ and the normal name is an alias. */
  7314. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7315. choke me
  7316. #else
  7317. glXCreateGLXPixmap();
  7318. #endif
  7319. ; return 0; }
  7320. EOF
  7321. if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7322. rm -rf conftest*
  7323. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7324. else
  7325. echo "configure: failed program was:" >&5
  7326. cat conftest.$ac_ext >&5
  7327. rm -rf conftest*
  7328. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7329. fi
  7330. rm -f conftest*
  7331. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7332. echo "$ac_t""yes" 1>&6
  7333. cat >> confdefs.h <<\EOF
  7334. #define HAVE_PIXMAPS 1
  7335. EOF
  7336. else
  7337. echo "$ac_t""no" 1>&6
  7338. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7339. fi
  7340. LIBS=${ac_save_libs}
  7341. LDFLAGS=${ac_save_ldflags}
  7342. cat >> confdefs.h <<\EOF
  7343. #define OPENGL_X11 1
  7344. EOF
  7345. fi # $OPENGL_X11
  7346. if test "$OPENGL_AQUA" = 1 ; then
  7347. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7348. echo "configure:9130: checking for location of OpenGL framework" >&5
  7349. case "$with_opengl_framework" in
  7350. y | ye | yes | n | no)
  7351. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7352. ;;
  7353. esac
  7354. echo "$ac_t""$with_opengl_framework" 1>&6
  7355. if test -n "$with_opengl_framework"; then
  7356. if test -d $with_opengl_framework; then
  7357. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7358. else
  7359. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7360. fi
  7361. fi
  7362. ac_save_cppflags="$CPPFLAGS"
  7363. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7364. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7365. do
  7366. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7367. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7368. echo "configure:9154: checking for $ac_hdr" >&5
  7369. cat > conftest.$ac_ext <<EOF
  7370. #line 9157 "configure"
  7371. #include "confdefs.h"
  7372. #include <$ac_hdr>
  7373. EOF
  7374. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7375. { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7376. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7377. if test -z "$ac_err"; then
  7378. rm -rf conftest*
  7379. eval "ac_cv_header_$ac_safe=yes"
  7380. else
  7381. echo "$ac_err" >&5
  7382. echo "configure: failed program was:" >&5
  7383. cat conftest.$ac_ext >&5
  7384. rm -rf conftest*
  7385. eval "ac_cv_header_$ac_safe=no"
  7386. fi
  7387. rm -f conftest*
  7388. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7389. echo "$ac_t""yes" 1>&6
  7390. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7391. cat >> confdefs.h <<EOF
  7392. #define $ac_tr_hdr 1
  7393. EOF
  7394. else
  7395. echo "$ac_t""no" 1>&6
  7396. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7397. fi
  7398. done
  7399. CPPFLAGS=$ac_save_cppflags
  7400. ac_save_libs="$LIBS"
  7401. ac_save_ldflags="$LDFLAGS"
  7402. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7403. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7404. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7405. echo "configure:9198: checking for glBegin" >&5
  7406. cat > conftest.$ac_ext <<EOF
  7407. #line 9201 "configure"
  7408. #include "confdefs.h"
  7409. /* System header to define __stub macros and hopefully few prototypes,
  7410. which can conflict with char glBegin(); below. */
  7411. #include <assert.h>
  7412. /* Override any gcc2 internal prototype to avoid an error. */
  7413. /* We use char because int might match the return type of a gcc2
  7414. builtin and then its argument prototype would still apply. */
  7415. char glBegin();
  7416. int main() {
  7417. /* The GNU C library defines this for functions which it implements
  7418. to always fail with ENOSYS. Some functions are actually named
  7419. something starting with __ and the normal name is an alias. */
  7420. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7421. choke me
  7422. #else
  7423. glBegin();
  7424. #endif
  7425. ; return 0; }
  7426. EOF
  7427. if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7428. rm -rf conftest*
  7429. eval "ac_cv_func_glBegin=yes"
  7430. else
  7431. echo "configure: failed program was:" >&5
  7432. cat conftest.$ac_ext >&5
  7433. rm -rf conftest*
  7434. eval "ac_cv_func_glBegin=no"
  7435. fi
  7436. rm -f conftest*
  7437. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7438. echo "$ac_t""yes" 1>&6
  7439. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7440. else
  7441. echo "$ac_t""no" 1>&6
  7442. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7443. fi
  7444. LIBS=${ac_save_libs}
  7445. LDFLAGS=${ac_save_ldflags}
  7446. ac_save_libs="$LIBS"
  7447. ac_save_ldflags="$LDFLAGS"
  7448. LIBS=" $OPENGLLIB $LIBS"
  7449. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7450. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7451. echo "configure:9261: checking for gluBeginCurve" >&5
  7452. cat > conftest.$ac_ext <<EOF
  7453. #line 9264 "configure"
  7454. #include "confdefs.h"
  7455. /* System header to define __stub macros and hopefully few prototypes,
  7456. which can conflict with char gluBeginCurve(); below. */
  7457. #include <assert.h>
  7458. /* Override any gcc2 internal prototype to avoid an error. */
  7459. /* We use char because int might match the return type of a gcc2
  7460. builtin and then its argument prototype would still apply. */
  7461. char gluBeginCurve();
  7462. int main() {
  7463. /* The GNU C library defines this for functions which it implements
  7464. to always fail with ENOSYS. Some functions are actually named
  7465. something starting with __ and the normal name is an alias. */
  7466. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7467. choke me
  7468. #else
  7469. gluBeginCurve();
  7470. #endif
  7471. ; return 0; }
  7472. EOF
  7473. if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7474. rm -rf conftest*
  7475. eval "ac_cv_func_gluBeginCurve=yes"
  7476. else
  7477. echo "configure: failed program was:" >&5
  7478. cat conftest.$ac_ext >&5
  7479. rm -rf conftest*
  7480. eval "ac_cv_func_gluBeginCurve=no"
  7481. fi
  7482. rm -f conftest*
  7483. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7484. echo "$ac_t""yes" 1>&6
  7485. OPENGLLIB="$OPENGLLIB "
  7486. else
  7487. echo "$ac_t""no" 1>&6
  7488. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7489. fi
  7490. LIBS=${ac_save_libs}
  7491. LDFLAGS=${ac_save_ldflags}
  7492. OPENGLINC="$OPENGLPATH"
  7493. OPENGLLIBPATH="$OPENGLPATH"
  7494. cat >> confdefs.h <<\EOF
  7495. #define OPENGL_AQUA 1
  7496. EOF
  7497. fi # $OPENGL_AQUA
  7498. if test "$OPENGL_WINDOWS" = 1 ; then
  7499. # With OpenGL includes directory
  7500. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7501. echo "configure:9335: checking for location of OpenGL includes" >&5
  7502. case "$with_opengl_includes" in
  7503. y | ye | yes | n | no)
  7504. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7505. ;;
  7506. esac
  7507. echo "$ac_t""$with_opengl_includes" 1>&6
  7508. if test -n "$with_opengl_includes" ; then
  7509. for dir in $with_opengl_includes; do
  7510. if test -d "$dir"; then
  7511. OPENGLINC="$OPENGLINC -I$dir"
  7512. else
  7513. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7514. fi
  7515. done
  7516. fi
  7517. ac_save_cppflags="$CPPFLAGS"
  7518. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7519. for ac_hdr in GL/gl.h GL/glu.h
  7520. do
  7521. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7522. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7523. echo "configure:9361: checking for $ac_hdr" >&5
  7524. cat > conftest.$ac_ext <<EOF
  7525. #line 9364 "configure"
  7526. #include "confdefs.h"
  7527. #include <$ac_hdr>
  7528. EOF
  7529. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7530. { (eval echo configure:9369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7531. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7532. if test -z "$ac_err"; then
  7533. rm -rf conftest*
  7534. eval "ac_cv_header_$ac_safe=yes"
  7535. else
  7536. echo "$ac_err" >&5
  7537. echo "configure: failed program was:" >&5
  7538. cat conftest.$ac_ext >&5
  7539. rm -rf conftest*
  7540. eval "ac_cv_header_$ac_safe=no"
  7541. fi
  7542. rm -f conftest*
  7543. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7544. echo "$ac_t""yes" 1>&6
  7545. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7546. cat >> confdefs.h <<EOF
  7547. #define $ac_tr_hdr 1
  7548. EOF
  7549. else
  7550. echo "$ac_t""no" 1>&6
  7551. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7552. fi
  7553. done
  7554. CPPFLAGS=$ac_save_cppflags
  7555. # With OpenGL library directory
  7556. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7557. echo "configure:9403: checking for location of OpenGL library" >&5
  7558. case "$with_opengl_libs" in
  7559. y | ye | yes | n | no)
  7560. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7561. ;;
  7562. esac
  7563. echo "$ac_t""$with_opengl_libs" 1>&6
  7564. if test -n "$with_opengl_libs"; then
  7565. for dir in $with_opengl_libs; do
  7566. if test -d "$dir"; then
  7567. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7568. else
  7569. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7570. fi
  7571. done
  7572. fi
  7573. ac_save_cflags="$CFLAGS"
  7574. CFLAGS="$CFLAGS $OPENGLINC"
  7575. ac_save_ldflags="$LDFLAGS"
  7576. ac_save_libs="$LIBS"
  7577. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7578. echo "configure:9428: checking for OpenGL library" >&5
  7579. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7580. LIBS="-lopengl32 "
  7581. cat > conftest.$ac_ext <<EOF
  7582. #line 9432 "configure"
  7583. #include "confdefs.h"
  7584. #include <GL/gl.h>
  7585. int main() {
  7586. glEnd();
  7587. ; return 0; }
  7588. EOF
  7589. if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7590. rm -rf conftest*
  7591. echo "$ac_t""found" 1>&6
  7592. OPENGLLIB="$OPENGLLIB -lopengl32 "
  7593. else
  7594. echo "configure: failed program was:" >&5
  7595. cat conftest.$ac_ext >&5
  7596. rm -rf conftest*
  7597. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7598. fi
  7599. rm -f conftest*
  7600. LIBS=${ac_save_libs}
  7601. LDFLAGS=${ac_save_ldflags}
  7602. ac_save_ldflags="$LDFLAGS"
  7603. ac_save_libs="$LIBS"
  7604. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  7605. echo "configure:9463: checking for GLU library" >&5
  7606. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7607. LIBS="-lglu32 $OPENGLLIB "
  7608. cat > conftest.$ac_ext <<EOF
  7609. #line 9467 "configure"
  7610. #include "confdefs.h"
  7611. #include <GL/glu.h>
  7612. int main() {
  7613. gluNewQuadric();
  7614. ; return 0; }
  7615. EOF
  7616. if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7617. rm -rf conftest*
  7618. echo "$ac_t""found" 1>&6
  7619. OPENGLULIB="$OPENGLULIB -lglu32 "
  7620. else
  7621. echo "configure: failed program was:" >&5
  7622. cat conftest.$ac_ext >&5
  7623. rm -rf conftest*
  7624. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7625. fi
  7626. rm -f conftest*
  7627. LIBS=${ac_save_libs}
  7628. LDFLAGS=${ac_save_ldflags}
  7629. CFLAGS="${ac_save_cflags}"
  7630. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7631. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7632. cat >> confdefs.h <<\EOF
  7633. #define OPENGL_WINDOWS 1
  7634. EOF
  7635. fi # $OPENGL_WINDOWS
  7636. fi # $USE_OPENGL
  7637. # Done checking OpenGL
  7638. # Enable ODBC option
  7639. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  7640. echo "configure:9523: checking whether to use ODBC" >&5
  7641. echo "$ac_t"""$with_odbc"" 1>&6
  7642. case "$with_odbc" in
  7643. "no") USE_ODBC= ;;
  7644. "yes") USE_ODBC="1" ;;
  7645. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7646. esac
  7647. ODBCINC=
  7648. ODBCLIB=
  7649. if test -n "$USE_ODBC"; then
  7650. # With ODBC includes directory
  7651. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  7652. echo "configure:9542: checking for location of ODBC includes" >&5
  7653. case "$with_odbc_includes" in
  7654. y | ye | yes | n | no)
  7655. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  7656. ;;
  7657. esac
  7658. echo "$ac_t""$with_odbc_includes" 1>&6
  7659. if test -n "$with_odbc_includes" ; then
  7660. for dir in $with_odbc_includes; do
  7661. if test -d "$dir"; then
  7662. ODBCINC="$ODBCINC -I$dir"
  7663. else
  7664. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  7665. fi
  7666. done
  7667. fi
  7668. ac_save_cppflags="$CPPFLAGS"
  7669. CPPFLAGS="$ODBCINC $CPPFLAGS"
  7670. for ac_hdr in sql.h
  7671. do
  7672. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7673. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7674. echo "configure:9568: checking for $ac_hdr" >&5
  7675. cat > conftest.$ac_ext <<EOF
  7676. #line 9571 "configure"
  7677. #include "confdefs.h"
  7678. #include <$ac_hdr>
  7679. EOF
  7680. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7681. { (eval echo configure:9576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7682. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7683. if test -z "$ac_err"; then
  7684. rm -rf conftest*
  7685. eval "ac_cv_header_$ac_safe=yes"
  7686. else
  7687. echo "$ac_err" >&5
  7688. echo "configure: failed program was:" >&5
  7689. cat conftest.$ac_ext >&5
  7690. rm -rf conftest*
  7691. eval "ac_cv_header_$ac_safe=no"
  7692. fi
  7693. rm -f conftest*
  7694. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7695. echo "$ac_t""yes" 1>&6
  7696. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7697. cat >> confdefs.h <<EOF
  7698. #define $ac_tr_hdr 1
  7699. EOF
  7700. else
  7701. echo "$ac_t""no" 1>&6
  7702. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  7703. fi
  7704. done
  7705. CPPFLAGS=$ac_save_cppflags
  7706. # With ODBC library directory
  7707. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  7708. echo "configure:9610: checking for location of ODBC library" >&5
  7709. case "$with_odbc_libs" in
  7710. y | ye | yes | n | no)
  7711. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  7712. ;;
  7713. esac
  7714. echo "$ac_t""$with_odbc_libs" 1>&6
  7715. if test -n "$with_odbc_libs"; then
  7716. for dir in $with_odbc_libs; do
  7717. if test -d "$dir"; then
  7718. ODBCLIB="$ODBCLIB -L$dir"
  7719. else
  7720. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  7721. fi
  7722. done
  7723. fi
  7724. ac_save_ldflags="$LDFLAGS"
  7725. LDFLAGS="$ODBCLIB $LDFLAGS"
  7726. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  7727. echo "configure:9635: checking for SQLConnect in -lodbc" >&5
  7728. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  7729. ac_save_LIBS="$LIBS"
  7730. LIBS="-lodbc $ICONVLIB $LIBS"
  7731. cat > conftest.$ac_ext <<EOF
  7732. #line 9641 "configure"
  7733. #include "confdefs.h"
  7734. /* Override any gcc2 internal prototype to avoid an error. */
  7735. /* We use char because int might match the return type of a gcc2
  7736. builtin and then its argument prototype would still apply. */
  7737. char SQLConnect();
  7738. int main() {
  7739. SQLConnect()
  7740. ; return 0; }
  7741. EOF
  7742. if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7743. rm -rf conftest*
  7744. eval "ac_cv_lib_$ac_lib_var=yes"
  7745. else
  7746. echo "configure: failed program was:" >&5
  7747. cat conftest.$ac_ext >&5
  7748. rm -rf conftest*
  7749. eval "ac_cv_lib_$ac_lib_var=no"
  7750. fi
  7751. rm -f conftest*
  7752. LIBS="$ac_save_LIBS"
  7753. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7754. echo "$ac_t""yes" 1>&6
  7755. ODBCLIB="$ODBCLIB -lodbc "
  7756. else
  7757. echo "$ac_t""no" 1>&6
  7758. LDFLAGS=${ac_save_ldflags}
  7759. ac_save_ldflags="$LDFLAGS"
  7760. LDFLAGS="$ODBCLIB $LDFLAGS"
  7761. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  7762. echo "configure:9677: checking for SQLConnect in -liodbc" >&5
  7763. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  7764. ac_save_LIBS="$LIBS"
  7765. LIBS="-liodbc $LIBS"
  7766. cat > conftest.$ac_ext <<EOF
  7767. #line 9683 "configure"
  7768. #include "confdefs.h"
  7769. /* Override any gcc2 internal prototype to avoid an error. */
  7770. /* We use char because int might match the return type of a gcc2
  7771. builtin and then its argument prototype would still apply. */
  7772. char SQLConnect();
  7773. int main() {
  7774. SQLConnect()
  7775. ; return 0; }
  7776. EOF
  7777. if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7778. rm -rf conftest*
  7779. eval "ac_cv_lib_$ac_lib_var=yes"
  7780. else
  7781. echo "configure: failed program was:" >&5
  7782. cat conftest.$ac_ext >&5
  7783. rm -rf conftest*
  7784. eval "ac_cv_lib_$ac_lib_var=no"
  7785. fi
  7786. rm -f conftest*
  7787. LIBS="$ac_save_LIBS"
  7788. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7789. echo "$ac_t""yes" 1>&6
  7790. ODBCLIB="$ODBCLIB -liodbc "
  7791. else
  7792. echo "$ac_t""no" 1>&6
  7793. LDFLAGS=${ac_save_ldflags}
  7794. ac_save_cflags="$CFLAGS"
  7795. CFLAGS="$CFLAGS $ODBCINC"
  7796. ac_save_ldflags="$LDFLAGS"
  7797. ac_save_libs="$LIBS"
  7798. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  7799. echo "configure:9719: checking for ODBC library" >&5
  7800. LDFLAGS="$ODBCLIB $LDFLAGS"
  7801. LIBS="-lodbc32 "
  7802. cat > conftest.$ac_ext <<EOF
  7803. #line 9723 "configure"
  7804. #include "confdefs.h"
  7805. #include <windows.h>
  7806. #include <sql.h>
  7807. int main() {
  7808. SQLAllocEnv((SQLHENV *)0);
  7809. ; return 0; }
  7810. EOF
  7811. if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7812. rm -rf conftest*
  7813. echo "$ac_t""found" 1>&6
  7814. ODBCLIB="$ODBCLIB -lodbc32 "
  7815. else
  7816. echo "configure: failed program was:" >&5
  7817. cat conftest.$ac_ext >&5
  7818. rm -rf conftest*
  7819. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  7820. fi
  7821. rm -f conftest*
  7822. LIBS=${ac_save_libs}
  7823. LDFLAGS=${ac_save_ldflags}
  7824. CFLAGS="${ac_save_cflags}"
  7825. fi
  7826. LDFLAGS=${ac_save_ldflags}
  7827. fi
  7828. LDFLAGS=${ac_save_ldflags}
  7829. fi # $USE_ODBC
  7830. # Done checking ODBC
  7831. # Enable FFTW option
  7832. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  7833. echo "configure:9780: checking whether to use FFTW" >&5
  7834. echo "$ac_t"""$with_fftw"" 1>&6
  7835. case "$with_fftw" in
  7836. "no") USE_FFTW= ;;
  7837. "yes") USE_FFTW="1" ;;
  7838. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  7839. esac
  7840. FFTWINC=
  7841. FFTWLIB=
  7842. if test -n "$USE_FFTW"; then
  7843. # With FFTW includes directory
  7844. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  7845. echo "configure:9799: checking for location of FFTW includes" >&5
  7846. case "$with_fftw_includes" in
  7847. y | ye | yes | n | no)
  7848. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  7849. ;;
  7850. esac
  7851. echo "$ac_t""$with_fftw_includes" 1>&6
  7852. if test -n "$with_fftw_includes" ; then
  7853. for dir in $with_fftw_includes; do
  7854. if test -d "$dir"; then
  7855. FFTWINC="$FFTWINC -I$dir"
  7856. else
  7857. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  7858. fi
  7859. done
  7860. fi
  7861. ac_save_cppflags="$CPPFLAGS"
  7862. CPPFLAGS="$FFTWINC $CPPFLAGS"
  7863. for ac_hdr in fftw3.h
  7864. do
  7865. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7866. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7867. echo "configure:9825: checking for $ac_hdr" >&5
  7868. cat > conftest.$ac_ext <<EOF
  7869. #line 9828 "configure"
  7870. #include "confdefs.h"
  7871. #include <$ac_hdr>
  7872. EOF
  7873. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7874. { (eval echo configure:9833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7875. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7876. if test -z "$ac_err"; then
  7877. rm -rf conftest*
  7878. eval "ac_cv_header_$ac_safe=yes"
  7879. else
  7880. echo "$ac_err" >&5
  7881. echo "configure: failed program was:" >&5
  7882. cat conftest.$ac_ext >&5
  7883. rm -rf conftest*
  7884. eval "ac_cv_header_$ac_safe=no"
  7885. fi
  7886. rm -f conftest*
  7887. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7888. echo "$ac_t""yes" 1>&6
  7889. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7890. cat >> confdefs.h <<EOF
  7891. #define $ac_tr_hdr 1
  7892. EOF
  7893. else
  7894. echo "$ac_t""no" 1>&6
  7895. ac_save_cppflags="$CPPFLAGS"
  7896. CPPFLAGS=" $CPPFLAGS"
  7897. for ac_hdr in fftw.h
  7898. do
  7899. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7900. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7901. echo "configure:9861: checking for $ac_hdr" >&5
  7902. cat > conftest.$ac_ext <<EOF
  7903. #line 9864 "configure"
  7904. #include "confdefs.h"
  7905. #include <$ac_hdr>
  7906. EOF
  7907. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7908. { (eval echo configure:9869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7909. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7910. if test -z "$ac_err"; then
  7911. rm -rf conftest*
  7912. eval "ac_cv_header_$ac_safe=yes"
  7913. else
  7914. echo "$ac_err" >&5
  7915. echo "configure: failed program was:" >&5
  7916. cat conftest.$ac_ext >&5
  7917. rm -rf conftest*
  7918. eval "ac_cv_header_$ac_safe=no"
  7919. fi
  7920. rm -f conftest*
  7921. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7922. echo "$ac_t""yes" 1>&6
  7923. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7924. cat >> confdefs.h <<EOF
  7925. #define $ac_tr_hdr 1
  7926. EOF
  7927. else
  7928. echo "$ac_t""no" 1>&6
  7929. ac_save_cppflags="$CPPFLAGS"
  7930. CPPFLAGS=" $CPPFLAGS"
  7931. for ac_hdr in dfftw.h
  7932. do
  7933. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7934. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7935. echo "configure:9897: checking for $ac_hdr" >&5
  7936. cat > conftest.$ac_ext <<EOF
  7937. #line 9900 "configure"
  7938. #include "confdefs.h"
  7939. #include <$ac_hdr>
  7940. EOF
  7941. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7942. { (eval echo configure:9905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7943. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7944. if test -z "$ac_err"; then
  7945. rm -rf conftest*
  7946. eval "ac_cv_header_$ac_safe=yes"
  7947. else
  7948. echo "$ac_err" >&5
  7949. echo "configure: failed program was:" >&5
  7950. cat conftest.$ac_ext >&5
  7951. rm -rf conftest*
  7952. eval "ac_cv_header_$ac_safe=no"
  7953. fi
  7954. rm -f conftest*
  7955. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7956. echo "$ac_t""yes" 1>&6
  7957. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7958. cat >> confdefs.h <<EOF
  7959. #define $ac_tr_hdr 1
  7960. EOF
  7961. else
  7962. echo "$ac_t""no" 1>&6
  7963. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  7964. fi
  7965. done
  7966. CPPFLAGS=$ac_save_cppflags
  7967. fi
  7968. done
  7969. CPPFLAGS=$ac_save_cppflags
  7970. fi
  7971. done
  7972. CPPFLAGS=$ac_save_cppflags
  7973. # With FFTW library directory
  7974. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  7975. echo "configure:9951: checking for location of FFTW library" >&5
  7976. case "$with_fftw_libs" in
  7977. y | ye | yes | n | no)
  7978. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  7979. ;;
  7980. esac
  7981. echo "$ac_t""$with_fftw_libs" 1>&6
  7982. if test -n "$with_fftw_libs"; then
  7983. for dir in $with_fftw_libs; do
  7984. if test -d "$dir"; then
  7985. FFTWLIB="$FFTWLIB -L$dir"
  7986. else
  7987. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  7988. fi
  7989. done
  7990. fi
  7991. ac_save_ldflags="$LDFLAGS"
  7992. LDFLAGS="$FFTWLIB $LDFLAGS"
  7993. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  7994. echo "configure:9976: checking for fftw_execute in -lfftw3" >&5
  7995. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  7996. ac_save_LIBS="$LIBS"
  7997. LIBS="-lfftw3 $MATHLIB $LIBS"
  7998. cat > conftest.$ac_ext <<EOF
  7999. #line 9982 "configure"
  8000. #include "confdefs.h"
  8001. /* Override any gcc2 internal prototype to avoid an error. */
  8002. /* We use char because int might match the return type of a gcc2
  8003. builtin and then its argument prototype would still apply. */
  8004. char fftw_execute();
  8005. int main() {
  8006. fftw_execute()
  8007. ; return 0; }
  8008. EOF
  8009. if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8010. rm -rf conftest*
  8011. eval "ac_cv_lib_$ac_lib_var=yes"
  8012. else
  8013. echo "configure: failed program was:" >&5
  8014. cat conftest.$ac_ext >&5
  8015. rm -rf conftest*
  8016. eval "ac_cv_lib_$ac_lib_var=no"
  8017. fi
  8018. rm -f conftest*
  8019. LIBS="$ac_save_LIBS"
  8020. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8021. echo "$ac_t""yes" 1>&6
  8022. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8023. else
  8024. echo "$ac_t""no" 1>&6
  8025. LDFLAGS=${ac_save_ldflags}
  8026. ac_save_ldflags="$LDFLAGS"
  8027. LDFLAGS="$FFTWLIB $LDFLAGS"
  8028. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8029. echo "configure:10018: checking for fftwnd_one in -lfftw" >&5
  8030. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8031. ac_save_LIBS="$LIBS"
  8032. LIBS="-lfftw $MATHLIB $LIBS"
  8033. cat > conftest.$ac_ext <<EOF
  8034. #line 10024 "configure"
  8035. #include "confdefs.h"
  8036. /* Override any gcc2 internal prototype to avoid an error. */
  8037. /* We use char because int might match the return type of a gcc2
  8038. builtin and then its argument prototype would still apply. */
  8039. char fftwnd_one();
  8040. int main() {
  8041. fftwnd_one()
  8042. ; return 0; }
  8043. EOF
  8044. if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8045. rm -rf conftest*
  8046. eval "ac_cv_lib_$ac_lib_var=yes"
  8047. else
  8048. echo "configure: failed program was:" >&5
  8049. cat conftest.$ac_ext >&5
  8050. rm -rf conftest*
  8051. eval "ac_cv_lib_$ac_lib_var=no"
  8052. fi
  8053. rm -f conftest*
  8054. LIBS="$ac_save_LIBS"
  8055. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8056. echo "$ac_t""yes" 1>&6
  8057. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8058. else
  8059. echo "$ac_t""no" 1>&6
  8060. LDFLAGS=${ac_save_ldflags}
  8061. ac_save_ldflags="$LDFLAGS"
  8062. LDFLAGS="$FFTWLIB $LDFLAGS"
  8063. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8064. echo "configure:10060: checking for fftwnd_one in -ldfftw" >&5
  8065. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8066. ac_save_LIBS="$LIBS"
  8067. LIBS="-ldfftw $MATHLIB $LIBS"
  8068. cat > conftest.$ac_ext <<EOF
  8069. #line 10066 "configure"
  8070. #include "confdefs.h"
  8071. /* Override any gcc2 internal prototype to avoid an error. */
  8072. /* We use char because int might match the return type of a gcc2
  8073. builtin and then its argument prototype would still apply. */
  8074. char fftwnd_one();
  8075. int main() {
  8076. fftwnd_one()
  8077. ; return 0; }
  8078. EOF
  8079. if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8080. rm -rf conftest*
  8081. eval "ac_cv_lib_$ac_lib_var=yes"
  8082. else
  8083. echo "configure: failed program was:" >&5
  8084. cat conftest.$ac_ext >&5
  8085. rm -rf conftest*
  8086. eval "ac_cv_lib_$ac_lib_var=no"
  8087. fi
  8088. rm -f conftest*
  8089. LIBS="$ac_save_LIBS"
  8090. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8091. echo "$ac_t""yes" 1>&6
  8092. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8093. else
  8094. echo "$ac_t""no" 1>&6
  8095. LDFLAGS=${ac_save_ldflags}
  8096. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8097. fi
  8098. LDFLAGS=${ac_save_ldflags}
  8099. fi
  8100. LDFLAGS=${ac_save_ldflags}
  8101. fi
  8102. LDFLAGS=${ac_save_ldflags}
  8103. fi # $USE_FFTW
  8104. # Done checking FFTW
  8105. # Enable BLAS option
  8106. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8107. echo "configure:10134: checking whether to use BLAS" >&5
  8108. echo "$ac_t"""$with_blas"" 1>&6
  8109. case "$with_blas" in
  8110. "no") USE_BLAS= ;;
  8111. "yes") USE_BLAS="1" ;;
  8112. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8113. esac
  8114. BLASLIB=
  8115. BLASINC=
  8116. if test -n "$USE_BLAS"; then
  8117. # With BLAS includes directory
  8118. # BLAS doesn't have includes (FORTRAN library)
  8119. # With BLAS library directory
  8120. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8121. echo "configure:10155: checking for location of BLAS includes" >&5
  8122. case "$with_blas_includes" in
  8123. y | ye | yes | n | no)
  8124. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8125. ;;
  8126. esac
  8127. echo "$ac_t""$with_blas_includes" 1>&6
  8128. if test -n "$with_blas_includes" ; then
  8129. for dir in $with_blas_includes; do
  8130. if test -d "$dir"; then
  8131. BLASINC="$BLASINC -I$dir"
  8132. else
  8133. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8134. fi
  8135. done
  8136. fi
  8137. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8138. echo "configure:10175: checking for location of BLAS library" >&5
  8139. case "$with_blas_libs" in
  8140. y | ye | yes | n | no)
  8141. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8142. ;;
  8143. esac
  8144. echo "$ac_t""$with_blas_libs" 1>&6
  8145. if test -n "$with_blas_libs"; then
  8146. for dir in $with_blas_libs; do
  8147. if test -d "$dir"; then
  8148. BLASLIB="$BLASLIB -L$dir"
  8149. else
  8150. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8151. fi
  8152. done
  8153. fi
  8154. # See if cblas.h exists (CBLAS,ATLAS,others)
  8155. save_CPPFLAGS="$CPPFLAGS"
  8156. CPPFLAGS="$BLASINC $CPPFLAGS"
  8157. for ac_hdr in cblas.h
  8158. do
  8159. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8160. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8161. echo "configure:10201: checking for $ac_hdr" >&5
  8162. cat > conftest.$ac_ext <<EOF
  8163. #line 10204 "configure"
  8164. #include "confdefs.h"
  8165. #include <$ac_hdr>
  8166. EOF
  8167. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8168. { (eval echo configure:10209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8169. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8170. if test -z "$ac_err"; then
  8171. rm -rf conftest*
  8172. eval "ac_cv_header_$ac_safe=yes"
  8173. else
  8174. echo "$ac_err" >&5
  8175. echo "configure: failed program was:" >&5
  8176. cat conftest.$ac_ext >&5
  8177. rm -rf conftest*
  8178. eval "ac_cv_header_$ac_safe=no"
  8179. fi
  8180. rm -f conftest*
  8181. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8182. echo "$ac_t""yes" 1>&6
  8183. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8184. cat >> confdefs.h <<EOF
  8185. #define $ac_tr_hdr 1
  8186. EOF
  8187. else
  8188. echo "$ac_t""no" 1>&6
  8189. fi
  8190. done
  8191. CPPFLAGS="$save_CPPFLAGS"
  8192. ac_save_ldflags="$LDFLAGS"
  8193. LDFLAGS="$BLASLIB $LDFLAGS"
  8194. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8195. echo "configure:10244: checking for dnrm2_ in -lblas" >&5
  8196. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8197. ac_save_LIBS="$LIBS"
  8198. LIBS="-lblas $MATHLIB $LIBS"
  8199. cat > conftest.$ac_ext <<EOF
  8200. #line 10250 "configure"
  8201. #include "confdefs.h"
  8202. /* Override any gcc2 internal prototype to avoid an error. */
  8203. /* We use char because int might match the return type of a gcc2
  8204. builtin and then its argument prototype would still apply. */
  8205. char dnrm2_();
  8206. int main() {
  8207. dnrm2_()
  8208. ; return 0; }
  8209. EOF
  8210. if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8211. rm -rf conftest*
  8212. eval "ac_cv_lib_$ac_lib_var=yes"
  8213. else
  8214. echo "configure: failed program was:" >&5
  8215. cat conftest.$ac_ext >&5
  8216. rm -rf conftest*
  8217. eval "ac_cv_lib_$ac_lib_var=no"
  8218. fi
  8219. rm -f conftest*
  8220. LIBS="$ac_save_LIBS"
  8221. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8222. echo "$ac_t""yes" 1>&6
  8223. BLASLIB="$BLASLIB -lblas "
  8224. else
  8225. echo "$ac_t""no" 1>&6
  8226. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8227. echo "configure:10280: checking for dnrm2_ in -lblas" >&5
  8228. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8229. ac_save_LIBS="$LIBS"
  8230. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8231. cat > conftest.$ac_ext <<EOF
  8232. #line 10286 "configure"
  8233. #include "confdefs.h"
  8234. /* Override any gcc2 internal prototype to avoid an error. */
  8235. /* We use char because int might match the return type of a gcc2
  8236. builtin and then its argument prototype would still apply. */
  8237. char dnrm2_();
  8238. int main() {
  8239. dnrm2_()
  8240. ; return 0; }
  8241. EOF
  8242. if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8243. rm -rf conftest*
  8244. eval "ac_cv_lib_$ac_lib_var=yes"
  8245. else
  8246. echo "configure: failed program was:" >&5
  8247. cat conftest.$ac_ext >&5
  8248. rm -rf conftest*
  8249. eval "ac_cv_lib_$ac_lib_var=no"
  8250. fi
  8251. rm -f conftest*
  8252. LIBS="$ac_save_LIBS"
  8253. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8254. echo "$ac_t""yes" 1>&6
  8255. BLASLIB="$BLASLIB -lblas -lg2c"
  8256. else
  8257. echo "$ac_t""no" 1>&6
  8258. LDFLAGS=${ac_save_ldflags}
  8259. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8260. fi
  8261. fi
  8262. LDFLAGS=${ac_save_ldflags}
  8263. blas_ok=no
  8264. # Check for ATLAS
  8265. save_LDFLAGS="$LDFLAGS"
  8266. LDFLAGS="$BLASLIB $LDFLAGS"
  8267. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8268. echo "configure:10341: checking for ATL_xerbla in -latlas" >&5
  8269. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8270. ac_save_LIBS="$LIBS"
  8271. LIBS="-latlas $LIBS"
  8272. cat > conftest.$ac_ext <<EOF
  8273. #line 10347 "configure"
  8274. #include "confdefs.h"
  8275. /* Override any gcc2 internal prototype to avoid an error. */
  8276. /* We use char because int might match the return type of a gcc2
  8277. builtin and then its argument prototype would still apply. */
  8278. char ATL_xerbla();
  8279. int main() {
  8280. ATL_xerbla()
  8281. ; return 0; }
  8282. EOF
  8283. if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8284. rm -rf conftest*
  8285. eval "ac_cv_lib_$ac_lib_var=yes"
  8286. else
  8287. echo "configure: failed program was:" >&5
  8288. cat conftest.$ac_ext >&5
  8289. rm -rf conftest*
  8290. eval "ac_cv_lib_$ac_lib_var=no"
  8291. fi
  8292. rm -f conftest*
  8293. LIBS="$ac_save_LIBS"
  8294. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8295. echo "$ac_t""yes" 1>&6
  8296. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8297. echo "configure:10373: checking for sgemm_ in -lf77blas" >&5
  8298. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8299. ac_save_LIBS="$LIBS"
  8300. LIBS="-lf77blas -latlas $LIBS"
  8301. cat > conftest.$ac_ext <<EOF
  8302. #line 10379 "configure"
  8303. #include "confdefs.h"
  8304. /* Override any gcc2 internal prototype to avoid an error. */
  8305. /* We use char because int might match the return type of a gcc2
  8306. builtin and then its argument prototype would still apply. */
  8307. char sgemm_();
  8308. int main() {
  8309. sgemm_()
  8310. ; return 0; }
  8311. EOF
  8312. if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8313. rm -rf conftest*
  8314. eval "ac_cv_lib_$ac_lib_var=yes"
  8315. else
  8316. echo "configure: failed program was:" >&5
  8317. cat conftest.$ac_ext >&5
  8318. rm -rf conftest*
  8319. eval "ac_cv_lib_$ac_lib_var=no"
  8320. fi
  8321. rm -f conftest*
  8322. LIBS="$ac_save_LIBS"
  8323. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8324. echo "$ac_t""yes" 1>&6
  8325. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8326. echo "configure:10405: checking for cblas_dgemm in -lcblas" >&5
  8327. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8328. ac_save_LIBS="$LIBS"
  8329. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8330. cat > conftest.$ac_ext <<EOF
  8331. #line 10411 "configure"
  8332. #include "confdefs.h"
  8333. /* Override any gcc2 internal prototype to avoid an error. */
  8334. /* We use char because int might match the return type of a gcc2
  8335. builtin and then its argument prototype would still apply. */
  8336. char cblas_dgemm();
  8337. int main() {
  8338. cblas_dgemm()
  8339. ; return 0; }
  8340. EOF
  8341. if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8342. rm -rf conftest*
  8343. eval "ac_cv_lib_$ac_lib_var=yes"
  8344. else
  8345. echo "configure: failed program was:" >&5
  8346. cat conftest.$ac_ext >&5
  8347. rm -rf conftest*
  8348. eval "ac_cv_lib_$ac_lib_var=no"
  8349. fi
  8350. rm -f conftest*
  8351. LIBS="$ac_save_LIBS"
  8352. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8353. echo "$ac_t""yes" 1>&6
  8354. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8355. else
  8356. echo "$ac_t""no" 1>&6
  8357. fi
  8358. else
  8359. echo "$ac_t""no" 1>&6
  8360. fi
  8361. else
  8362. echo "$ac_t""no" 1>&6
  8363. fi
  8364. LDFLAGS="$save_LDFLAGS"
  8365. # Do we have ATLAS?
  8366. if test $blas_ok = yes; then
  8367. cat >> confdefs.h <<\EOF
  8368. #define HAVE_LIBATLAS 1
  8369. EOF
  8370. fi
  8371. # BLAS in Apple vecLib framework? (Mac OS-X)
  8372. # not dependent on APP build
  8373. #if test -n "$MACOSX_APP"; then
  8374. if test $blas_ok = no; then
  8375. vlib_flags="-framework vecLib"
  8376. save_LIBS="$LIBS"
  8377. LIBS="$vlib_flags $LIBS"
  8378. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8379. echo "configure:10468: checking for sgemm in $vlib_flags" >&5
  8380. cat > conftest.$ac_ext <<EOF
  8381. #line 10470 "configure"
  8382. #include "confdefs.h"
  8383. int main() {
  8384. sgemm
  8385. ; return 0; }
  8386. EOF
  8387. if { (eval echo configure:10477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8388. rm -rf conftest*
  8389. blas_ok=yes; BLASLIB="$vlib_flags"
  8390. else
  8391. echo "configure: failed program was:" >&5
  8392. cat conftest.$ac_ext >&5
  8393. rm -rf conftest*
  8394. BLASLIB=""
  8395. fi
  8396. rm -f conftest*
  8397. echo "$ac_t""$blas_ok" 1>&6
  8398. LIBS="$save_LIBS"
  8399. fi
  8400. #fi # $MACOSX_APP
  8401. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8402. if test $blas_ok = no; then
  8403. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8404. echo "configure:10495: checking for sgemm_ in -lblas" >&5
  8405. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8406. ac_save_LIBS="$LIBS"
  8407. LIBS="-lblas $LIBS"
  8408. cat > conftest.$ac_ext <<EOF
  8409. #line 10501 "configure"
  8410. #include "confdefs.h"
  8411. /* Override any gcc2 internal prototype to avoid an error. */
  8412. /* We use char because int might match the return type of a gcc2
  8413. builtin and then its argument prototype would still apply. */
  8414. char sgemm_();
  8415. int main() {
  8416. sgemm_()
  8417. ; return 0; }
  8418. EOF
  8419. if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8420. rm -rf conftest*
  8421. eval "ac_cv_lib_$ac_lib_var=yes"
  8422. else
  8423. echo "configure: failed program was:" >&5
  8424. cat conftest.$ac_ext >&5
  8425. rm -rf conftest*
  8426. eval "ac_cv_lib_$ac_lib_var=no"
  8427. fi
  8428. rm -f conftest*
  8429. LIBS="$ac_save_LIBS"
  8430. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8431. echo "$ac_t""yes" 1>&6
  8432. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8433. echo "configure:10527: checking for dgemm_ in -ldgemm" >&5
  8434. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8435. ac_save_LIBS="$LIBS"
  8436. LIBS="-ldgemm -lblas $LIBS"
  8437. cat > conftest.$ac_ext <<EOF
  8438. #line 10533 "configure"
  8439. #include "confdefs.h"
  8440. /* Override any gcc2 internal prototype to avoid an error. */
  8441. /* We use char because int might match the return type of a gcc2
  8442. builtin and then its argument prototype would still apply. */
  8443. char dgemm_();
  8444. int main() {
  8445. dgemm_()
  8446. ; return 0; }
  8447. EOF
  8448. if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8449. rm -rf conftest*
  8450. eval "ac_cv_lib_$ac_lib_var=yes"
  8451. else
  8452. echo "configure: failed program was:" >&5
  8453. cat conftest.$ac_ext >&5
  8454. rm -rf conftest*
  8455. eval "ac_cv_lib_$ac_lib_var=no"
  8456. fi
  8457. rm -f conftest*
  8458. LIBS="$ac_save_LIBS"
  8459. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8460. echo "$ac_t""yes" 1>&6
  8461. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8462. echo "configure:10559: checking for sgemm_ in -lsgemm" >&5
  8463. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8464. ac_save_LIBS="$LIBS"
  8465. LIBS="-lsgemm -lblas $LIBS"
  8466. cat > conftest.$ac_ext <<EOF
  8467. #line 10565 "configure"
  8468. #include "confdefs.h"
  8469. /* Override any gcc2 internal prototype to avoid an error. */
  8470. /* We use char because int might match the return type of a gcc2
  8471. builtin and then its argument prototype would still apply. */
  8472. char sgemm_();
  8473. int main() {
  8474. sgemm_()
  8475. ; return 0; }
  8476. EOF
  8477. if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8478. rm -rf conftest*
  8479. eval "ac_cv_lib_$ac_lib_var=yes"
  8480. else
  8481. echo "configure: failed program was:" >&5
  8482. cat conftest.$ac_ext >&5
  8483. rm -rf conftest*
  8484. eval "ac_cv_lib_$ac_lib_var=no"
  8485. fi
  8486. rm -f conftest*
  8487. LIBS="$ac_save_LIBS"
  8488. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8489. echo "$ac_t""yes" 1>&6
  8490. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8491. else
  8492. echo "$ac_t""no" 1>&6
  8493. fi
  8494. else
  8495. echo "$ac_t""no" 1>&6
  8496. fi
  8497. else
  8498. echo "$ac_t""no" 1>&6
  8499. fi
  8500. fi
  8501. # BLAS in Sun Performance library?
  8502. if test $blas_ok = no; then
  8503. if test "x$GCC" != xyes; then # only works with Sun CC
  8504. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8505. echo "configure:10610: checking for acosp in -lsunmath" >&5
  8506. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8507. ac_save_LIBS="$LIBS"
  8508. LIBS="-lsunmath $LIBS"
  8509. cat > conftest.$ac_ext <<EOF
  8510. #line 10616 "configure"
  8511. #include "confdefs.h"
  8512. /* Override any gcc2 internal prototype to avoid an error. */
  8513. /* We use char because int might match the return type of a gcc2
  8514. builtin and then its argument prototype would still apply. */
  8515. char acosp();
  8516. int main() {
  8517. acosp()
  8518. ; return 0; }
  8519. EOF
  8520. if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8521. rm -rf conftest*
  8522. eval "ac_cv_lib_$ac_lib_var=yes"
  8523. else
  8524. echo "configure: failed program was:" >&5
  8525. cat conftest.$ac_ext >&5
  8526. rm -rf conftest*
  8527. eval "ac_cv_lib_$ac_lib_var=no"
  8528. fi
  8529. rm -f conftest*
  8530. LIBS="$ac_save_LIBS"
  8531. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8532. echo "$ac_t""yes" 1>&6
  8533. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8534. echo "configure:10642: checking for sgemm_ in -lsunperf" >&5
  8535. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8536. ac_save_LIBS="$LIBS"
  8537. LIBS="-lsunperf -lsunmath $LIBS"
  8538. cat > conftest.$ac_ext <<EOF
  8539. #line 10648 "configure"
  8540. #include "confdefs.h"
  8541. /* Override any gcc2 internal prototype to avoid an error. */
  8542. /* We use char because int might match the return type of a gcc2
  8543. builtin and then its argument prototype would still apply. */
  8544. char sgemm_();
  8545. int main() {
  8546. sgemm_()
  8547. ; return 0; }
  8548. EOF
  8549. if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8550. rm -rf conftest*
  8551. eval "ac_cv_lib_$ac_lib_var=yes"
  8552. else
  8553. echo "configure: failed program was:" >&5
  8554. cat conftest.$ac_ext >&5
  8555. rm -rf conftest*
  8556. eval "ac_cv_lib_$ac_lib_var=no"
  8557. fi
  8558. rm -f conftest*
  8559. LIBS="$ac_save_LIBS"
  8560. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8561. echo "$ac_t""yes" 1>&6
  8562. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8563. else
  8564. echo "$ac_t""no" 1>&6
  8565. fi
  8566. else
  8567. echo "$ac_t""no" 1>&6
  8568. fi
  8569. fi
  8570. fi
  8571. # Generic BLAS library
  8572. if test $blas_ok = no; then
  8573. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8574. echo "configure:10689: checking for sgemm_ in -lblas" >&5
  8575. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8576. ac_save_LIBS="$LIBS"
  8577. LIBS="-lblas $LIBS"
  8578. cat > conftest.$ac_ext <<EOF
  8579. #line 10695 "configure"
  8580. #include "confdefs.h"
  8581. /* Override any gcc2 internal prototype to avoid an error. */
  8582. /* We use char because int might match the return type of a gcc2
  8583. builtin and then its argument prototype would still apply. */
  8584. char sgemm_();
  8585. int main() {
  8586. sgemm_()
  8587. ; return 0; }
  8588. EOF
  8589. if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8590. rm -rf conftest*
  8591. eval "ac_cv_lib_$ac_lib_var=yes"
  8592. else
  8593. echo "configure: failed program was:" >&5
  8594. cat conftest.$ac_ext >&5
  8595. rm -rf conftest*
  8596. eval "ac_cv_lib_$ac_lib_var=no"
  8597. fi
  8598. rm -f conftest*
  8599. LIBS="$ac_save_LIBS"
  8600. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8601. echo "$ac_t""yes" 1>&6
  8602. blas_ok=yes; BLASLIB="-lblas"
  8603. else
  8604. echo "$ac_t""no" 1>&6
  8605. fi
  8606. fi
  8607. if test $blas_ok = yes; then
  8608. cat >> confdefs.h <<\EOF
  8609. #define HAVE_LIBBLAS 1
  8610. EOF
  8611. fi
  8612. fi # $USE_BLAS
  8613. # Done checking BLAS
  8614. # Enable LAPACK option
  8615. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  8616. echo "configure:10745: checking whether to use LAPACK" >&5
  8617. echo "$ac_t"""$with_lapack"" 1>&6
  8618. case "$with_lapack" in
  8619. "no") USE_LAPACK= ;;
  8620. "yes") USE_LAPACK="1" ;;
  8621. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8622. esac
  8623. LAPACKLIB=
  8624. LAPACKINC=
  8625. # LAPACK is useless without BLAS
  8626. if test -n "$USE_BLAS"; then
  8627. if test -n "$USE_LAPACK"; then
  8628. # With LAPACK includes directory
  8629. # LAPACK doesn't have includes (FORTRAN library)
  8630. # With LAPACK library directory
  8631. lapack_ok=no
  8632. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  8633. echo "configure:10770: checking for location of LAPACK includes" >&5
  8634. case "$with_lapack_includes" in
  8635. y | ye | yes | n | no)
  8636. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  8637. ;;
  8638. esac
  8639. echo "$ac_t""$with_lapack_includes" 1>&6
  8640. if test -n "$with_lapack_includes" ; then
  8641. for dir in $with_lapack_includes; do
  8642. if test -d "$dir"; then
  8643. LAPACKINC="$LAPACKINC -I$dir"
  8644. else
  8645. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  8646. fi
  8647. done
  8648. fi
  8649. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  8650. echo "configure:10790: checking for location of LAPACK library" >&5
  8651. case "$with_lapack_libs" in
  8652. y | ye | yes | n | no)
  8653. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  8654. ;;
  8655. esac
  8656. echo "$ac_t""$with_lapack_libs" 1>&6
  8657. if test -n "$with_lapack_libs"; then
  8658. for dir in $with_lapack_libs; do
  8659. if test -d "$dir"; then
  8660. LAPACKLIB="$LAPACKLIB -L$dir"
  8661. else
  8662. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  8663. fi
  8664. done
  8665. fi
  8666. # See if clapack.h exists (ATLAS)
  8667. save_CPPFLAGS="$CPPFLAGS"
  8668. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  8669. for ac_hdr in clapack.h
  8670. do
  8671. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8672. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8673. echo "configure:10816: checking for $ac_hdr" >&5
  8674. cat > conftest.$ac_ext <<EOF
  8675. #line 10819 "configure"
  8676. #include "confdefs.h"
  8677. #include <$ac_hdr>
  8678. EOF
  8679. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8680. { (eval echo configure:10824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8681. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8682. if test -z "$ac_err"; then
  8683. rm -rf conftest*
  8684. eval "ac_cv_header_$ac_safe=yes"
  8685. else
  8686. echo "$ac_err" >&5
  8687. echo "configure: failed program was:" >&5
  8688. cat conftest.$ac_ext >&5
  8689. rm -rf conftest*
  8690. eval "ac_cv_header_$ac_safe=no"
  8691. fi
  8692. rm -f conftest*
  8693. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8694. echo "$ac_t""yes" 1>&6
  8695. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8696. cat >> confdefs.h <<EOF
  8697. #define $ac_tr_hdr 1
  8698. EOF
  8699. else
  8700. echo "$ac_t""no" 1>&6
  8701. fi
  8702. done
  8703. CPPFLAGS="$save_CPPFLAGS"
  8704. # LAPACK linked to by default?
  8705. if test lapack_ok=no; then
  8706. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  8707. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  8708. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  8709. echo "configure:10856: checking for dsegv_" >&5
  8710. cat > conftest.$ac_ext <<EOF
  8711. #line 10859 "configure"
  8712. #include "confdefs.h"
  8713. /* System header to define __stub macros and hopefully few prototypes,
  8714. which can conflict with char dsegv_(); below. */
  8715. #include <assert.h>
  8716. /* Override any gcc2 internal prototype to avoid an error. */
  8717. /* We use char because int might match the return type of a gcc2
  8718. builtin and then its argument prototype would still apply. */
  8719. char dsegv_();
  8720. int main() {
  8721. /* The GNU C library defines this for functions which it implements
  8722. to always fail with ENOSYS. Some functions are actually named
  8723. something starting with __ and the normal name is an alias. */
  8724. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  8725. choke me
  8726. #else
  8727. dsegv_();
  8728. #endif
  8729. ; return 0; }
  8730. EOF
  8731. if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8732. rm -rf conftest*
  8733. eval "ac_cv_func_dsegv_=yes"
  8734. else
  8735. echo "configure: failed program was:" >&5
  8736. cat conftest.$ac_ext >&5
  8737. rm -rf conftest*
  8738. eval "ac_cv_func_dsegv_=no"
  8739. fi
  8740. rm -f conftest*
  8741. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  8742. echo "$ac_t""yes" 1>&6
  8743. lapack_ok=yes
  8744. else
  8745. echo "$ac_t""no" 1>&6
  8746. fi
  8747. LIBS="$save_LIBS"
  8748. LDFLAGS="$save_LDFLAGS"
  8749. fi
  8750. # Generic LAPACK library?
  8751. if test $lapack_ok = no; then
  8752. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  8753. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  8754. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  8755. echo "configure:10909: checking for desgv_ in -llapack" >&5
  8756. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  8757. ac_save_LIBS="$LIBS"
  8758. LIBS="-llapack $FLIBS $LIBS"
  8759. cat > conftest.$ac_ext <<EOF
  8760. #line 10915 "configure"
  8761. #include "confdefs.h"
  8762. /* Override any gcc2 internal prototype to avoid an error. */
  8763. /* We use char because int might match the return type of a gcc2
  8764. builtin and then its argument prototype would still apply. */
  8765. char desgv_();
  8766. int main() {
  8767. desgv_()
  8768. ; return 0; }
  8769. EOF
  8770. if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8771. rm -rf conftest*
  8772. eval "ac_cv_lib_$ac_lib_var=yes"
  8773. else
  8774. echo "configure: failed program was:" >&5
  8775. cat conftest.$ac_ext >&5
  8776. rm -rf conftest*
  8777. eval "ac_cv_lib_$ac_lib_var=no"
  8778. fi
  8779. rm -f conftest*
  8780. LIBS="$ac_save_LIBS"
  8781. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8782. echo "$ac_t""yes" 1>&6
  8783. lapack_ok=yes; LAPACKLIB="-llapack"
  8784. else
  8785. echo "$ac_t""no" 1>&6
  8786. fi
  8787. LIBS="$save_LIBS"
  8788. LDFLAGS="$save_LDFLAGS"
  8789. fi
  8790. if test $lapack_ok = no; then
  8791. ac_save_ldflags="$LDFLAGS"
  8792. LDFLAGS="$LAPACKLIB $LDFLAGS"
  8793. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  8794. echo "configure:10958: checking for dgesv_ in -llapack" >&5
  8795. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  8796. ac_save_LIBS="$LIBS"
  8797. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  8798. cat > conftest.$ac_ext <<EOF
  8799. #line 10964 "configure"
  8800. #include "confdefs.h"
  8801. /* Override any gcc2 internal prototype to avoid an error. */
  8802. /* We use char because int might match the return type of a gcc2
  8803. builtin and then its argument prototype would still apply. */
  8804. char dgesv_();
  8805. int main() {
  8806. dgesv_()
  8807. ; return 0; }
  8808. EOF
  8809. if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8810. rm -rf conftest*
  8811. eval "ac_cv_lib_$ac_lib_var=yes"
  8812. else
  8813. echo "configure: failed program was:" >&5
  8814. cat conftest.$ac_ext >&5
  8815. rm -rf conftest*
  8816. eval "ac_cv_lib_$ac_lib_var=no"
  8817. fi
  8818. rm -f conftest*
  8819. LIBS="$ac_save_LIBS"
  8820. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8821. echo "$ac_t""yes" 1>&6
  8822. LAPACKLIB="$LAPACKLIB -llapack "
  8823. else
  8824. echo "$ac_t""no" 1>&6
  8825. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  8826. echo "configure:10994: checking for dgesv_ in -llapack" >&5
  8827. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  8828. ac_save_LIBS="$LIBS"
  8829. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  8830. cat > conftest.$ac_ext <<EOF
  8831. #line 11000 "configure"
  8832. #include "confdefs.h"
  8833. /* Override any gcc2 internal prototype to avoid an error. */
  8834. /* We use char because int might match the return type of a gcc2
  8835. builtin and then its argument prototype would still apply. */
  8836. char dgesv_();
  8837. int main() {
  8838. dgesv_()
  8839. ; return 0; }
  8840. EOF
  8841. if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8842. rm -rf conftest*
  8843. eval "ac_cv_lib_$ac_lib_var=yes"
  8844. else
  8845. echo "configure: failed program was:" >&5
  8846. cat conftest.$ac_ext >&5
  8847. rm -rf conftest*
  8848. eval "ac_cv_lib_$ac_lib_var=no"
  8849. fi
  8850. rm -f conftest*
  8851. LIBS="$ac_save_LIBS"
  8852. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8853. echo "$ac_t""yes" 1>&6
  8854. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  8855. else
  8856. echo "$ac_t""no" 1>&6
  8857. LDFLAGS=${ac_save_ldflags}
  8858. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  8859. fi
  8860. fi
  8861. LDFLAGS=${ac_save_ldflags}
  8862. fi
  8863. cat >> confdefs.h <<\EOF
  8864. #define HAVE_LIBLAPACK 1
  8865. EOF
  8866. fi # $USE_LAPACK
  8867. fi # $USE_BLAS
  8868. # Done checking LAPACK
  8869. # Enable Cairo display driver option
  8870. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  8871. echo "configure:11067: checking whether to use Cairo" >&5
  8872. echo "$ac_t"""$with_cairo"" 1>&6
  8873. case "$with_cairo" in
  8874. "no") USE_CAIRO= ;;
  8875. "yes") USE_CAIRO="1" ;;
  8876. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8877. esac
  8878. CAIROINC=
  8879. CAIROLIB=
  8880. if test -n "$USE_CAIRO"; then
  8881. cairo="cairo"
  8882. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  8883. if test -n "$USE_X11"; then
  8884. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  8885. fi
  8886. for pkg in $pkgs ; do
  8887. if pkg-config --exists $pkg ; then
  8888. cairo="$cairo $pkg"
  8889. fi
  8890. done
  8891. # With Cairo includes directory
  8892. #FIXME: somehow quote dirs with spaces in $cairo ?
  8893. CAIROINC=`pkg-config --cflags $cairo`
  8894. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  8895. echo "configure:11099: checking for location of cairo includes" >&5
  8896. case "$with_cairo_includes" in
  8897. y | ye | yes | n | no)
  8898. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  8899. ;;
  8900. esac
  8901. echo "$ac_t""$with_cairo_includes" 1>&6
  8902. if test -n "$with_cairo_includes" ; then
  8903. for dir in $with_cairo_includes; do
  8904. if test -d "$dir"; then
  8905. CAIROINC="$CAIROINC -I$dir"
  8906. else
  8907. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  8908. fi
  8909. done
  8910. fi
  8911. ac_save_cppflags="$CPPFLAGS"
  8912. CPPFLAGS="$CAIROINC $CPPFLAGS"
  8913. for ac_hdr in cairo.h
  8914. do
  8915. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8916. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8917. echo "configure:11125: checking for $ac_hdr" >&5
  8918. cat > conftest.$ac_ext <<EOF
  8919. #line 11128 "configure"
  8920. #include "confdefs.h"
  8921. #include <$ac_hdr>
  8922. EOF
  8923. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8924. { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8925. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8926. if test -z "$ac_err"; then
  8927. rm -rf conftest*
  8928. eval "ac_cv_header_$ac_safe=yes"
  8929. else
  8930. echo "$ac_err" >&5
  8931. echo "configure: failed program was:" >&5
  8932. cat conftest.$ac_ext >&5
  8933. rm -rf conftest*
  8934. eval "ac_cv_header_$ac_safe=no"
  8935. fi
  8936. rm -f conftest*
  8937. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8938. echo "$ac_t""yes" 1>&6
  8939. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8940. cat >> confdefs.h <<EOF
  8941. #define $ac_tr_hdr 1
  8942. EOF
  8943. else
  8944. echo "$ac_t""no" 1>&6
  8945. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  8946. fi
  8947. done
  8948. CPPFLAGS=$ac_save_cppflags
  8949. # With Cairo library directory
  8950. CAIROLIB=`pkg-config --libs $cairo`
  8951. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  8952. echo "configure:11169: checking for location of cairo library" >&5
  8953. case "$with_cairo_libs" in
  8954. y | ye | yes | n | no)
  8955. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  8956. ;;
  8957. esac
  8958. echo "$ac_t""$with_cairo_libs" 1>&6
  8959. if test -n "$with_cairo_libs"; then
  8960. for dir in $with_cairo_libs; do
  8961. if test -d "$dir"; then
  8962. CAIROLIB="$CAIROLIB -L$dir"
  8963. else
  8964. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  8965. fi
  8966. done
  8967. fi
  8968. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  8969. echo "configure:11189: checking for cairo linking flags" >&5
  8970. case "$with_cairo_ldflags" in
  8971. y | ye | yes | n | no)
  8972. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  8973. ;;
  8974. esac
  8975. echo "$ac_t""$with_cairo_ldflags" 1>&6
  8976. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  8977. ac_save_libs="$LIBS"
  8978. ac_save_ldflags="$LDFLAGS"
  8979. LIBS=" $CAIROLIB $LIBS"
  8980. LDFLAGS=" $LDFLAGS"
  8981. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  8982. echo "configure:11205: checking for cairo_create" >&5
  8983. cat > conftest.$ac_ext <<EOF
  8984. #line 11208 "configure"
  8985. #include "confdefs.h"
  8986. /* System header to define __stub macros and hopefully few prototypes,
  8987. which can conflict with char cairo_create(); below. */
  8988. #include <assert.h>
  8989. /* Override any gcc2 internal prototype to avoid an error. */
  8990. /* We use char because int might match the return type of a gcc2
  8991. builtin and then its argument prototype would still apply. */
  8992. char cairo_create();
  8993. int main() {
  8994. /* The GNU C library defines this for functions which it implements
  8995. to always fail with ENOSYS. Some functions are actually named
  8996. something starting with __ and the normal name is an alias. */
  8997. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  8998. choke me
  8999. #else
  9000. cairo_create();
  9001. #endif
  9002. ; return 0; }
  9003. EOF
  9004. if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9005. rm -rf conftest*
  9006. eval "ac_cv_func_cairo_create=yes"
  9007. else
  9008. echo "configure: failed program was:" >&5
  9009. cat conftest.$ac_ext >&5
  9010. rm -rf conftest*
  9011. eval "ac_cv_func_cairo_create=no"
  9012. fi
  9013. rm -f conftest*
  9014. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9015. echo "$ac_t""yes" 1>&6
  9016. :
  9017. else
  9018. echo "$ac_t""no" 1>&6
  9019. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9020. fi
  9021. LIBS=${ac_save_libs}
  9022. LDFLAGS=${ac_save_ldflags}
  9023. ac_save_libs="$LIBS"
  9024. ac_save_ldflags="$LDFLAGS"
  9025. LIBS=" $CAIROLIB $LIBS"
  9026. LDFLAGS=" $LDFLAGS"
  9027. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9028. echo "configure:11265: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9029. cat > conftest.$ac_ext <<EOF
  9030. #line 11268 "configure"
  9031. #include "confdefs.h"
  9032. /* System header to define __stub macros and hopefully few prototypes,
  9033. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9034. #include <assert.h>
  9035. /* Override any gcc2 internal prototype to avoid an error. */
  9036. /* We use char because int might match the return type of a gcc2
  9037. builtin and then its argument prototype would still apply. */
  9038. char cairo_xlib_surface_create_with_xrender_format();
  9039. int main() {
  9040. /* The GNU C library defines this for functions which it implements
  9041. to always fail with ENOSYS. Some functions are actually named
  9042. something starting with __ and the normal name is an alias. */
  9043. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9044. choke me
  9045. #else
  9046. cairo_xlib_surface_create_with_xrender_format();
  9047. #endif
  9048. ; return 0; }
  9049. EOF
  9050. if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9051. rm -rf conftest*
  9052. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9053. else
  9054. echo "configure: failed program was:" >&5
  9055. cat conftest.$ac_ext >&5
  9056. rm -rf conftest*
  9057. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9058. fi
  9059. rm -f conftest*
  9060. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9061. echo "$ac_t""yes" 1>&6
  9062. CAIRO_HAS_XRENDER=1
  9063. else
  9064. echo "$ac_t""no" 1>&6
  9065. CAIRO_HAS_XRENDER=
  9066. fi
  9067. LIBS=${ac_save_libs}
  9068. LDFLAGS=${ac_save_ldflags}
  9069. ac_save_libs="$LIBS"
  9070. ac_save_ldflags="$LDFLAGS"
  9071. LIBS=" $CAIROLIB $LIBS"
  9072. LDFLAGS=" $LDFLAGS"
  9073. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9074. echo "configure:11324: checking for cairo_xlib_surface_get_xrender_format" >&5
  9075. cat > conftest.$ac_ext <<EOF
  9076. #line 11327 "configure"
  9077. #include "confdefs.h"
  9078. /* System header to define __stub macros and hopefully few prototypes,
  9079. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9080. #include <assert.h>
  9081. /* Override any gcc2 internal prototype to avoid an error. */
  9082. /* We use char because int might match the return type of a gcc2
  9083. builtin and then its argument prototype would still apply. */
  9084. char cairo_xlib_surface_get_xrender_format();
  9085. int main() {
  9086. /* The GNU C library defines this for functions which it implements
  9087. to always fail with ENOSYS. Some functions are actually named
  9088. something starting with __ and the normal name is an alias. */
  9089. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9090. choke me
  9091. #else
  9092. cairo_xlib_surface_get_xrender_format();
  9093. #endif
  9094. ; return 0; }
  9095. EOF
  9096. if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9097. rm -rf conftest*
  9098. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9099. else
  9100. echo "configure: failed program was:" >&5
  9101. cat conftest.$ac_ext >&5
  9102. rm -rf conftest*
  9103. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9104. fi
  9105. rm -f conftest*
  9106. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9107. echo "$ac_t""yes" 1>&6
  9108. CAIRO_HAS_XRENDER_SURFACE=1
  9109. else
  9110. echo "$ac_t""no" 1>&6
  9111. CAIRO_HAS_XRENDER_SURFACE=
  9112. fi
  9113. LIBS=${ac_save_libs}
  9114. LDFLAGS=${ac_save_ldflags}
  9115. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9116. fi # $USE_CAIRO
  9117. # Done checking Cairo
  9118. # Enable FreeType option
  9119. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9120. echo "configure:11392: checking whether to use FreeType" >&5
  9121. echo "$ac_t"""$with_freetype"" 1>&6
  9122. case "$with_freetype" in
  9123. "no") USE_FREETYPE= ;;
  9124. "yes") USE_FREETYPE="1" ;;
  9125. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9126. esac
  9127. FTINC=
  9128. FTLIB=
  9129. if test -n "$USE_FREETYPE"; then
  9130. # With FreeType includes directory
  9131. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9132. echo "configure:11411: checking for location of FreeType includes" >&5
  9133. case "$with_freetype_includes" in
  9134. y | ye | yes | n | no)
  9135. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9136. ;;
  9137. esac
  9138. echo "$ac_t""$with_freetype_includes" 1>&6
  9139. if test -n "$with_freetype_includes" ; then
  9140. for dir in $with_freetype_includes; do
  9141. if test -d "$dir"; then
  9142. FTINC="$FTINC -I$dir"
  9143. else
  9144. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9145. fi
  9146. done
  9147. fi
  9148. ac_save_cppflags="$CPPFLAGS"
  9149. CPPFLAGS="$FTINC $CPPFLAGS"
  9150. for ac_hdr in ft2build.h
  9151. do
  9152. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9153. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9154. echo "configure:11437: checking for $ac_hdr" >&5
  9155. cat > conftest.$ac_ext <<EOF
  9156. #line 11440 "configure"
  9157. #include "confdefs.h"
  9158. #include <$ac_hdr>
  9159. EOF
  9160. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9161. { (eval echo configure:11445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9162. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9163. if test -z "$ac_err"; then
  9164. rm -rf conftest*
  9165. eval "ac_cv_header_$ac_safe=yes"
  9166. else
  9167. echo "$ac_err" >&5
  9168. echo "configure: failed program was:" >&5
  9169. cat conftest.$ac_ext >&5
  9170. rm -rf conftest*
  9171. eval "ac_cv_header_$ac_safe=no"
  9172. fi
  9173. rm -f conftest*
  9174. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9175. echo "$ac_t""yes" 1>&6
  9176. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9177. cat >> confdefs.h <<EOF
  9178. #define $ac_tr_hdr 1
  9179. EOF
  9180. else
  9181. echo "$ac_t""no" 1>&6
  9182. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9183. fi
  9184. done
  9185. CPPFLAGS=$ac_save_cppflags
  9186. # With FreeType library directory
  9187. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9188. echo "configure:11479: checking for location of FreeType library" >&5
  9189. case "$with_freetype_libs" in
  9190. y | ye | yes | n | no)
  9191. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9192. ;;
  9193. esac
  9194. echo "$ac_t""$with_freetype_libs" 1>&6
  9195. if test -n "$with_freetype_libs"; then
  9196. for dir in $with_freetype_libs; do
  9197. if test -d "$dir"; then
  9198. FTLIB="$FTLIB -L$dir"
  9199. else
  9200. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9201. fi
  9202. done
  9203. fi
  9204. ac_save_ldflags="$LDFLAGS"
  9205. LDFLAGS="$FTLIB $LDFLAGS"
  9206. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9207. echo "configure:11504: checking for FT_Init_FreeType in -lfreetype" >&5
  9208. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9209. ac_save_LIBS="$LIBS"
  9210. LIBS="-lfreetype $LIBS"
  9211. cat > conftest.$ac_ext <<EOF
  9212. #line 11510 "configure"
  9213. #include "confdefs.h"
  9214. /* Override any gcc2 internal prototype to avoid an error. */
  9215. /* We use char because int might match the return type of a gcc2
  9216. builtin and then its argument prototype would still apply. */
  9217. char FT_Init_FreeType();
  9218. int main() {
  9219. FT_Init_FreeType()
  9220. ; return 0; }
  9221. EOF
  9222. if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9223. rm -rf conftest*
  9224. eval "ac_cv_lib_$ac_lib_var=yes"
  9225. else
  9226. echo "configure: failed program was:" >&5
  9227. cat conftest.$ac_ext >&5
  9228. rm -rf conftest*
  9229. eval "ac_cv_lib_$ac_lib_var=no"
  9230. fi
  9231. rm -f conftest*
  9232. LIBS="$ac_save_LIBS"
  9233. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9234. echo "$ac_t""yes" 1>&6
  9235. FTLIB="$FTLIB -lfreetype "
  9236. else
  9237. echo "$ac_t""no" 1>&6
  9238. LDFLAGS=${ac_save_ldflags}
  9239. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9240. fi
  9241. LDFLAGS=${ac_save_ldflags}
  9242. fi # $USE_FREETYPE
  9243. # Done checking FreeType
  9244. # Enable NLS option
  9245. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9246. echo "configure:11562: checking whether to use NLS" >&5
  9247. echo "$ac_t"""$with_nls"" 1>&6
  9248. case "$with_nls" in
  9249. "no") USE_NLS= ;;
  9250. "yes") USE_NLS="1" ;;
  9251. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9252. esac
  9253. INTLLIB=
  9254. HAVE_NLS=
  9255. if test -n "${USE_NLS}" ; then
  9256. cat >> confdefs.h <<\EOF
  9257. #define USE_NLS 1
  9258. EOF
  9259. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9260. echo "configure:11582: checking for gettext" >&5
  9261. cat > conftest.$ac_ext <<EOF
  9262. #line 11585 "configure"
  9263. #include "confdefs.h"
  9264. /* System header to define __stub macros and hopefully few prototypes,
  9265. which can conflict with char gettext(); below. */
  9266. #include <assert.h>
  9267. /* Override any gcc2 internal prototype to avoid an error. */
  9268. /* We use char because int might match the return type of a gcc2
  9269. builtin and then its argument prototype would still apply. */
  9270. char gettext();
  9271. int main() {
  9272. /* The GNU C library defines this for functions which it implements
  9273. to always fail with ENOSYS. Some functions are actually named
  9274. something starting with __ and the normal name is an alias. */
  9275. #if defined (__stub_gettext) || defined (__stub___gettext)
  9276. choke me
  9277. #else
  9278. gettext();
  9279. #endif
  9280. ; return 0; }
  9281. EOF
  9282. if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9283. rm -rf conftest*
  9284. eval "ac_cv_func_gettext=yes"
  9285. else
  9286. echo "configure: failed program was:" >&5
  9287. cat conftest.$ac_ext >&5
  9288. rm -rf conftest*
  9289. eval "ac_cv_func_gettext=no"
  9290. fi
  9291. rm -f conftest*
  9292. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9293. echo "$ac_t""yes" 1>&6
  9294. INTLLIB=
  9295. else
  9296. echo "$ac_t""no" 1>&6
  9297. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9298. echo "configure:11626: checking for gettext in -lintl" >&5
  9299. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9300. ac_save_LIBS="$LIBS"
  9301. LIBS="-lintl $LIBS"
  9302. cat > conftest.$ac_ext <<EOF
  9303. #line 11632 "configure"
  9304. #include "confdefs.h"
  9305. /* Override any gcc2 internal prototype to avoid an error. */
  9306. /* We use char because int might match the return type of a gcc2
  9307. builtin and then its argument prototype would still apply. */
  9308. char gettext();
  9309. int main() {
  9310. gettext()
  9311. ; return 0; }
  9312. EOF
  9313. if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9314. rm -rf conftest*
  9315. eval "ac_cv_lib_$ac_lib_var=yes"
  9316. else
  9317. echo "configure: failed program was:" >&5
  9318. cat conftest.$ac_ext >&5
  9319. rm -rf conftest*
  9320. eval "ac_cv_lib_$ac_lib_var=no"
  9321. fi
  9322. rm -f conftest*
  9323. LIBS="$ac_save_LIBS"
  9324. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9325. echo "$ac_t""yes" 1>&6
  9326. INTLLIB=-lintl
  9327. else
  9328. echo "$ac_t""no" 1>&6
  9329. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9330. fi
  9331. fi
  9332. HAVE_NLS=1
  9333. fi
  9334. # Enable C++ option
  9335. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9336. echo "configure:11678: checking whether to use C++" >&5
  9337. echo "$ac_t"""$with_cxx"" 1>&6
  9338. case "$with_cxx" in
  9339. "no") USE_CXX= ;;
  9340. "yes") USE_CXX="1" ;;
  9341. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9342. esac
  9343. if test -n "$USE_CXX"; then
  9344. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9345. do
  9346. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9347. set dummy $ac_prog; ac_word=$2
  9348. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9349. echo "configure:11694: checking for $ac_word" >&5
  9350. if test -n "$CXX"; then
  9351. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9352. else
  9353. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9354. ac_dummy="$PATH"
  9355. for ac_dir in $ac_dummy; do
  9356. test -z "$ac_dir" && ac_dir=.
  9357. if test -f $ac_dir/$ac_word; then
  9358. ac_cv_prog_CXX="$ac_prog"
  9359. break
  9360. fi
  9361. done
  9362. IFS="$ac_save_ifs"
  9363. fi
  9364. CXX="$ac_cv_prog_CXX"
  9365. if test -n "$CXX"; then
  9366. echo "$ac_t""$CXX" 1>&6
  9367. else
  9368. echo "$ac_t""no" 1>&6
  9369. fi
  9370. test -n "$CXX" && break
  9371. done
  9372. test -n "$CXX" || CXX="gcc"
  9373. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9374. echo "configure:11723: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9375. ac_ext=C
  9376. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9377. ac_cpp='$CXXCPP $CPPFLAGS'
  9378. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9379. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9380. cross_compiling=$ac_cv_prog_cxx_cross
  9381. cat > conftest.$ac_ext << EOF
  9382. #line 11734 "configure"
  9383. #include "confdefs.h"
  9384. int main(){return(0);}
  9385. EOF
  9386. if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9387. ac_cv_prog_cxx_works=yes
  9388. # If we can't run a trivial program, we are probably using a cross compiler.
  9389. if (./conftest; exit) 2>/dev/null; then
  9390. ac_cv_prog_cxx_cross=no
  9391. else
  9392. ac_cv_prog_cxx_cross=yes
  9393. fi
  9394. else
  9395. echo "configure: failed program was:" >&5
  9396. cat conftest.$ac_ext >&5
  9397. ac_cv_prog_cxx_works=no
  9398. fi
  9399. rm -fr conftest*
  9400. ac_ext=c
  9401. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9402. ac_cpp='$CPP $CPPFLAGS'
  9403. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9404. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9405. cross_compiling=$ac_cv_prog_cc_cross
  9406. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9407. if test $ac_cv_prog_cxx_works = no; then
  9408. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9409. fi
  9410. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9411. echo "configure:11765: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9412. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9413. cross_compiling=$ac_cv_prog_cxx_cross
  9414. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9415. echo "configure:11770: checking whether we are using GNU C++" >&5
  9416. cat > conftest.C <<EOF
  9417. #ifdef __GNUC__
  9418. yes;
  9419. #endif
  9420. EOF
  9421. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:11777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9422. ac_cv_prog_gxx=yes
  9423. else
  9424. ac_cv_prog_gxx=no
  9425. fi
  9426. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9427. if test $ac_cv_prog_gxx = yes; then
  9428. GXX=yes
  9429. else
  9430. GXX=
  9431. fi
  9432. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9433. ac_save_CXXFLAGS="$CXXFLAGS"
  9434. CXXFLAGS=
  9435. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9436. echo "configure:11795: checking whether ${CXX-g++} accepts -g" >&5
  9437. echo 'void f(){}' > conftest.cc
  9438. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9439. ac_cv_prog_cxx_g=yes
  9440. else
  9441. ac_cv_prog_cxx_g=no
  9442. fi
  9443. rm -f conftest*
  9444. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9445. if test "$ac_test_CXXFLAGS" = set; then
  9446. CXXFLAGS="$ac_save_CXXFLAGS"
  9447. elif test $ac_cv_prog_cxx_g = yes; then
  9448. if test "$GXX" = yes; then
  9449. CXXFLAGS="-g -O2"
  9450. else
  9451. CXXFLAGS="-g"
  9452. fi
  9453. else
  9454. if test "$GXX" = yes; then
  9455. CXXFLAGS="-O2"
  9456. else
  9457. CXXFLAGS=
  9458. fi
  9459. fi
  9460. for ac_declaration in \
  9461. ''\
  9462. '#include <stdlib.h>' \
  9463. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  9464. 'extern "C" void std::exit (int); using std::exit;' \
  9465. 'extern "C" void exit (int) throw ();' \
  9466. 'extern "C" void exit (int);' \
  9467. 'void exit (int);'
  9468. do
  9469. cat > conftest.$ac_ext <<EOF
  9470. #line 11833 "configure"
  9471. #include "confdefs.h"
  9472. #include <stdlib.h>
  9473. $ac_declaration
  9474. int main() {
  9475. exit (42);
  9476. ; return 0; }
  9477. EOF
  9478. if { (eval echo configure:11841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9479. :
  9480. else
  9481. echo "configure: failed program was:" >&5
  9482. cat conftest.$ac_ext >&5
  9483. rm -rf conftest*
  9484. continue
  9485. fi
  9486. rm -f conftest*
  9487. cat > conftest.$ac_ext <<EOF
  9488. #line 11851 "configure"
  9489. #include "confdefs.h"
  9490. $ac_declaration
  9491. int main() {
  9492. exit (42);
  9493. ; return 0; }
  9494. EOF
  9495. if { (eval echo configure:11858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9496. rm -rf conftest*
  9497. break
  9498. else
  9499. echo "configure: failed program was:" >&5
  9500. cat conftest.$ac_ext >&5
  9501. fi
  9502. rm -f conftest*
  9503. done
  9504. if test -n "$ac_declaration"; then
  9505. echo '#ifdef __cplusplus' >>confdefs.h
  9506. echo $ac_declaration >>confdefs.h
  9507. echo '#endif' >>confdefs.h
  9508. fi
  9509. else
  9510. CXX=
  9511. CXXFLAGS=
  9512. fi
  9513. # Done checking C++
  9514. # Enable openDWG option
  9515. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9516. echo "configure:11887: checking whether to use openDWG" >&5
  9517. echo "$ac_t"""$with_opendwg"" 1>&6
  9518. case "$with_opendwg" in
  9519. "no") USE_OPENDWG= ;;
  9520. "yes") USE_OPENDWG="1" ;;
  9521. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9522. esac
  9523. OPENDWGINCPATH=
  9524. OPENDWGLIBPATH=
  9525. OPENDWGLIB=
  9526. if test -n "${USE_OPENDWG}"; then
  9527. # With OPENDWG includes directory
  9528. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9529. echo "configure:11907: checking for location of openDGW includes" >&5
  9530. case "$with_opendwg_includes" in
  9531. y | ye | yes | n | no)
  9532. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9533. ;;
  9534. esac
  9535. echo "$ac_t""$with_opendwg_includes" 1>&6
  9536. if test -n "$with_opendwg_includes" ; then
  9537. for dir in $with_opendwg_includes; do
  9538. if test -d "$dir"; then
  9539. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9540. else
  9541. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9542. fi
  9543. done
  9544. fi
  9545. ac_save_cppflags="$CPPFLAGS"
  9546. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9547. for ac_hdr in ad2.h
  9548. do
  9549. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9550. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9551. echo "configure:11933: checking for $ac_hdr" >&5
  9552. cat > conftest.$ac_ext <<EOF
  9553. #line 11936 "configure"
  9554. #include "confdefs.h"
  9555. #include <$ac_hdr>
  9556. EOF
  9557. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9558. { (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9559. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9560. if test -z "$ac_err"; then
  9561. rm -rf conftest*
  9562. eval "ac_cv_header_$ac_safe=yes"
  9563. else
  9564. echo "$ac_err" >&5
  9565. echo "configure: failed program was:" >&5
  9566. cat conftest.$ac_ext >&5
  9567. rm -rf conftest*
  9568. eval "ac_cv_header_$ac_safe=no"
  9569. fi
  9570. rm -f conftest*
  9571. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9572. echo "$ac_t""yes" 1>&6
  9573. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9574. cat >> confdefs.h <<EOF
  9575. #define $ac_tr_hdr 1
  9576. EOF
  9577. else
  9578. echo "$ac_t""no" 1>&6
  9579. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9580. fi
  9581. done
  9582. CPPFLAGS=$ac_save_cppflags
  9583. # With OPENDWG library directory
  9584. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9585. echo "configure:11975: checking for location of openDWG library" >&5
  9586. case "$with_opendwg_libs" in
  9587. y | ye | yes | n | no)
  9588. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9589. ;;
  9590. esac
  9591. echo "$ac_t""$with_opendwg_libs" 1>&6
  9592. if test -n "$with_opendwg_libs"; then
  9593. for dir in $with_opendwg_libs; do
  9594. if test -d "$dir"; then
  9595. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9596. else
  9597. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9598. fi
  9599. done
  9600. fi
  9601. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9602. #FIX ME how to program this test??
  9603. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9604. #
  9605. #for now hack (but working):
  9606. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9607. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9608. OPENDWGLIB="$adlib"
  9609. fi # $USE_OPENDWG
  9610. # Done checking OPENDWG
  9611. # Enable pthread option
  9612. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9613. echo "configure:12016: checking whether to use POSIX threads" >&5
  9614. echo "$ac_t"""$with_pthread"" 1>&6
  9615. case "$with_pthread" in
  9616. "no") USE_PTHREAD= ;;
  9617. "yes") USE_PTHREAD="1" ;;
  9618. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9619. esac
  9620. PTHREADINCPATH=
  9621. PTHREADLIBPATH=
  9622. PTHREADLIB=
  9623. if test -n "$USE_PTHREAD"; then
  9624. # With pthread includes directory
  9625. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9626. echo "configure:12036: checking for location of POSIX threads includes" >&5
  9627. case "$with_pthread_includes" in
  9628. y | ye | yes | n | no)
  9629. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9630. ;;
  9631. esac
  9632. echo "$ac_t""$with_pthread_includes" 1>&6
  9633. if test -n "$with_pthread_includes" ; then
  9634. for dir in $with_pthread_includes; do
  9635. if test -d "$dir"; then
  9636. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9637. else
  9638. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9639. fi
  9640. done
  9641. fi
  9642. ac_save_cppflags="$CPPFLAGS"
  9643. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  9644. for ac_hdr in pthread.h
  9645. do
  9646. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9647. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9648. echo "configure:12062: checking for $ac_hdr" >&5
  9649. cat > conftest.$ac_ext <<EOF
  9650. #line 12065 "configure"
  9651. #include "confdefs.h"
  9652. #include <$ac_hdr>
  9653. EOF
  9654. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9655. { (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9656. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9657. if test -z "$ac_err"; then
  9658. rm -rf conftest*
  9659. eval "ac_cv_header_$ac_safe=yes"
  9660. else
  9661. echo "$ac_err" >&5
  9662. echo "configure: failed program was:" >&5
  9663. cat conftest.$ac_ext >&5
  9664. rm -rf conftest*
  9665. eval "ac_cv_header_$ac_safe=no"
  9666. fi
  9667. rm -f conftest*
  9668. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9669. echo "$ac_t""yes" 1>&6
  9670. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9671. cat >> confdefs.h <<EOF
  9672. #define $ac_tr_hdr 1
  9673. EOF
  9674. else
  9675. echo "$ac_t""no" 1>&6
  9676. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  9677. fi
  9678. done
  9679. CPPFLAGS=$ac_save_cppflags
  9680. # With pthread library directory
  9681. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  9682. echo "configure:12104: checking for location of POSIX threads library" >&5
  9683. case "$with_pthread_libs" in
  9684. y | ye | yes | n | no)
  9685. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  9686. ;;
  9687. esac
  9688. echo "$ac_t""$with_pthread_libs" 1>&6
  9689. if test -n "$with_pthread_libs"; then
  9690. for dir in $with_pthread_libs; do
  9691. if test -d "$dir"; then
  9692. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  9693. else
  9694. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  9695. fi
  9696. done
  9697. fi
  9698. ac_save_libs="$LIBS"
  9699. ac_save_ldflags="$LDFLAGS"
  9700. LIBS=" $LIBS"
  9701. LDFLAGS=" $LDFLAGS"
  9702. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  9703. echo "configure:12129: checking for pthread_create" >&5
  9704. cat > conftest.$ac_ext <<EOF
  9705. #line 12132 "configure"
  9706. #include "confdefs.h"
  9707. /* System header to define __stub macros and hopefully few prototypes,
  9708. which can conflict with char pthread_create(); below. */
  9709. #include <assert.h>
  9710. /* Override any gcc2 internal prototype to avoid an error. */
  9711. /* We use char because int might match the return type of a gcc2
  9712. builtin and then its argument prototype would still apply. */
  9713. char pthread_create();
  9714. int main() {
  9715. /* The GNU C library defines this for functions which it implements
  9716. to always fail with ENOSYS. Some functions are actually named
  9717. something starting with __ and the normal name is an alias. */
  9718. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  9719. choke me
  9720. #else
  9721. pthread_create();
  9722. #endif
  9723. ; return 0; }
  9724. EOF
  9725. if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9726. rm -rf conftest*
  9727. eval "ac_cv_func_pthread_create=yes"
  9728. else
  9729. echo "configure: failed program was:" >&5
  9730. cat conftest.$ac_ext >&5
  9731. rm -rf conftest*
  9732. eval "ac_cv_func_pthread_create=no"
  9733. fi
  9734. rm -f conftest*
  9735. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  9736. echo "$ac_t""yes" 1>&6
  9737. PTHREADLIB="$PTHREADLIB "
  9738. else
  9739. echo "$ac_t""no" 1>&6
  9740. ac_save_ldflags="$LDFLAGS"
  9741. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  9742. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  9743. echo "configure:12182: checking for pthread_create in -lpthread" >&5
  9744. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  9745. ac_save_LIBS="$LIBS"
  9746. LIBS="-lpthread $LIBS"
  9747. cat > conftest.$ac_ext <<EOF
  9748. #line 12188 "configure"
  9749. #include "confdefs.h"
  9750. /* Override any gcc2 internal prototype to avoid an error. */
  9751. /* We use char because int might match the return type of a gcc2
  9752. builtin and then its argument prototype would still apply. */
  9753. char pthread_create();
  9754. int main() {
  9755. pthread_create()
  9756. ; return 0; }
  9757. EOF
  9758. if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9759. rm -rf conftest*
  9760. eval "ac_cv_lib_$ac_lib_var=yes"
  9761. else
  9762. echo "configure: failed program was:" >&5
  9763. cat conftest.$ac_ext >&5
  9764. rm -rf conftest*
  9765. eval "ac_cv_lib_$ac_lib_var=no"
  9766. fi
  9767. rm -f conftest*
  9768. LIBS="$ac_save_LIBS"
  9769. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9770. echo "$ac_t""yes" 1>&6
  9771. PTHREADLIB="$PTHREADLIB -lpthread "
  9772. else
  9773. echo "$ac_t""no" 1>&6
  9774. LDFLAGS=${ac_save_ldflags}
  9775. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  9776. fi
  9777. LDFLAGS=${ac_save_ldflags}
  9778. fi
  9779. LIBS=${ac_save_libs}
  9780. LDFLAGS=${ac_save_ldflags}
  9781. fi # $USE_PTHREAD
  9782. # Done checking pthread
  9783. # Enable OpenMP option
  9784. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  9785. echo "configure:12249: checking whether to use OpenMP" >&5
  9786. echo "$ac_t"""$with_openmp"" 1>&6
  9787. case "$with_openmp" in
  9788. "no") USE_OPENMP= ;;
  9789. "yes") USE_OPENMP="1" ;;
  9790. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9791. esac
  9792. OMPINCPATH=
  9793. OMPLIBPATH=
  9794. OMPLIB=
  9795. OMPCFLAGS=
  9796. if test -n "$USE_OPENMP"; then
  9797. # With OpenMP includes directory
  9798. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  9799. echo "configure:12270: checking for location of OpenMP includes" >&5
  9800. case "$with_openmp_includes" in
  9801. y | ye | yes | n | no)
  9802. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  9803. ;;
  9804. esac
  9805. echo "$ac_t""$with_openmp_includes" 1>&6
  9806. if test -n "$with_openmp_includes" ; then
  9807. for dir in $with_openmp_includes; do
  9808. if test -d "$dir"; then
  9809. OMPINCPATH="$OMPINCPATH -I$dir"
  9810. else
  9811. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  9812. fi
  9813. done
  9814. fi
  9815. ac_save_cppflags="$CPPFLAGS"
  9816. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  9817. for ac_hdr in omp.h
  9818. do
  9819. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9820. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9821. echo "configure:12296: checking for $ac_hdr" >&5
  9822. cat > conftest.$ac_ext <<EOF
  9823. #line 12299 "configure"
  9824. #include "confdefs.h"
  9825. #include <$ac_hdr>
  9826. EOF
  9827. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9828. { (eval echo configure:12304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9829. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9830. if test -z "$ac_err"; then
  9831. rm -rf conftest*
  9832. eval "ac_cv_header_$ac_safe=yes"
  9833. else
  9834. echo "$ac_err" >&5
  9835. echo "configure: failed program was:" >&5
  9836. cat conftest.$ac_ext >&5
  9837. rm -rf conftest*
  9838. eval "ac_cv_header_$ac_safe=no"
  9839. fi
  9840. rm -f conftest*
  9841. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9842. echo "$ac_t""yes" 1>&6
  9843. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9844. cat >> confdefs.h <<EOF
  9845. #define $ac_tr_hdr 1
  9846. EOF
  9847. else
  9848. echo "$ac_t""no" 1>&6
  9849. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  9850. fi
  9851. done
  9852. CPPFLAGS=$ac_save_cppflags
  9853. # With OpenMP library directory
  9854. # GCC et al.: -lgomp
  9855. # Solaris cc: -lmtsk
  9856. # AIX xlc: -lxlsmp
  9857. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  9858. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  9859. echo "configure:12342: checking for location of OpenMP library" >&5
  9860. case "$with_openmp_libs" in
  9861. y | ye | yes | n | no)
  9862. { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
  9863. ;;
  9864. esac
  9865. echo "$ac_t""$with_openmp_libs" 1>&6
  9866. if test -n "$with_openmp_libs"; then
  9867. for dir in $with_openmp_libs; do
  9868. if test -d "$dir"; then
  9869. OMPLIBPATH="$OMPLIBPATH -L$dir"
  9870. else
  9871. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  9872. fi
  9873. done
  9874. fi
  9875. ac_save_libs="$LIBS"
  9876. ac_save_ldflags="$LDFLAGS"
  9877. LIBS=" $LIBS"
  9878. LDFLAGS=" $LDFLAGS"
  9879. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  9880. echo "configure:12367: checking for GOMP_parallel_start" >&5
  9881. cat > conftest.$ac_ext <<EOF
  9882. #line 12370 "configure"
  9883. #include "confdefs.h"
  9884. /* System header to define __stub macros and hopefully few prototypes,
  9885. which can conflict with char GOMP_parallel_start(); below. */
  9886. #include <assert.h>
  9887. /* Override any gcc2 internal prototype to avoid an error. */
  9888. /* We use char because int might match the return type of a gcc2
  9889. builtin and then its argument prototype would still apply. */
  9890. char GOMP_parallel_start();
  9891. int main() {
  9892. /* The GNU C library defines this for functions which it implements
  9893. to always fail with ENOSYS. Some functions are actually named
  9894. something starting with __ and the normal name is an alias. */
  9895. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  9896. choke me
  9897. #else
  9898. GOMP_parallel_start();
  9899. #endif
  9900. ; return 0; }
  9901. EOF
  9902. if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9903. rm -rf conftest*
  9904. eval "ac_cv_func_GOMP_parallel_start=yes"
  9905. else
  9906. echo "configure: failed program was:" >&5
  9907. cat conftest.$ac_ext >&5
  9908. rm -rf conftest*
  9909. eval "ac_cv_func_GOMP_parallel_start=no"
  9910. fi
  9911. rm -f conftest*
  9912. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  9913. echo "$ac_t""yes" 1>&6
  9914. OMPLIB="$OMPLIB "
  9915. else
  9916. echo "$ac_t""no" 1>&6
  9917. ac_save_ldflags="$LDFLAGS"
  9918. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  9919. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  9920. echo "configure:12420: checking for GOMP_parallel_start in -lgomp" >&5
  9921. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  9922. ac_save_LIBS="$LIBS"
  9923. LIBS="-lgomp $LIBS"
  9924. cat > conftest.$ac_ext <<EOF
  9925. #line 12426 "configure"
  9926. #include "confdefs.h"
  9927. /* Override any gcc2 internal prototype to avoid an error. */
  9928. /* We use char because int might match the return type of a gcc2
  9929. builtin and then its argument prototype would still apply. */
  9930. char GOMP_parallel_start();
  9931. int main() {
  9932. GOMP_parallel_start()
  9933. ; return 0; }
  9934. EOF
  9935. if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9936. rm -rf conftest*
  9937. eval "ac_cv_lib_$ac_lib_var=yes"
  9938. else
  9939. echo "configure: failed program was:" >&5
  9940. cat conftest.$ac_ext >&5
  9941. rm -rf conftest*
  9942. eval "ac_cv_lib_$ac_lib_var=no"
  9943. fi
  9944. rm -f conftest*
  9945. LIBS="$ac_save_LIBS"
  9946. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9947. echo "$ac_t""yes" 1>&6
  9948. OMPLIB="$OMPLIB -lgomp "
  9949. else
  9950. echo "$ac_t""no" 1>&6
  9951. LDFLAGS=${ac_save_ldflags}
  9952. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  9953. fi
  9954. LDFLAGS=${ac_save_ldflags}
  9955. fi
  9956. LIBS=${ac_save_libs}
  9957. LDFLAGS=${ac_save_ldflags}
  9958. # compiler dependent
  9959. #if test ${CC} = "gcc" ; then
  9960. if test x$GCC = xyes ; then
  9961. # GNU C compiler (>= 4.2.1)
  9962. OMPCFLAGS=-fopenmp
  9963. elif test ${CC} = "icc" ; then
  9964. # Intel compiler
  9965. OMPCFLAGS=-openmp
  9966. elif test ${CC} = "opencc" ; then
  9967. # AMD's x86 Open64 compiler
  9968. OMPCFLAGS=-mp
  9969. elif test ${CC} = "pgcc" ; then
  9970. # Portland Group's compiler
  9971. OMPCFLAGS=-mp
  9972. # ... anybody else?
  9973. fi
  9974. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  9975. #...how?
  9976. #echo "int main() {return 0;}" > test.c
  9977. #$CC $OMPCLFAGS test.c -o test
  9978. fi # $USE_OPENMP
  9979. # Done checking OpenMP
  9980. # Enable OpenCL option
  9981. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  9982. echo "configure:12510: checking whether to use OpenCL" >&5
  9983. echo "$ac_t"""$with_opencl"" 1>&6
  9984. case "$with_opencl" in
  9985. "no") USE_OPENCL= ;;
  9986. "yes") USE_OPENCL="1" ;;
  9987. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9988. esac
  9989. OCLINCPATH=
  9990. OCLLIBPATH=
  9991. OCLLIB=
  9992. if test -n "$USE_OPENCL"; then
  9993. # With OpenCL includes directory
  9994. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  9995. echo "configure:12530: checking for location of OpenCL includes" >&5
  9996. case "$with_opencl_includes" in
  9997. y | ye | yes | n | no)
  9998. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  9999. ;;
  10000. esac
  10001. echo "$ac_t""$with_opencl_includes" 1>&6
  10002. if test -n "$with_opencl_includes" ; then
  10003. for dir in $with_opencl_includes; do
  10004. if test -d "$dir"; then
  10005. OCLINCPATH="$OCLINCPATH -I$dir"
  10006. else
  10007. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10008. fi
  10009. done
  10010. fi
  10011. if test -n "$MACOSX_APP" ; then
  10012. ac_save_cppflags="$CPPFLAGS"
  10013. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10014. for ac_hdr in OpenCL/opencl.h
  10015. do
  10016. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10017. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10018. echo "configure:12557: checking for $ac_hdr" >&5
  10019. cat > conftest.$ac_ext <<EOF
  10020. #line 12560 "configure"
  10021. #include "confdefs.h"
  10022. #include <$ac_hdr>
  10023. EOF
  10024. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10025. { (eval echo configure:12565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10026. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10027. if test -z "$ac_err"; then
  10028. rm -rf conftest*
  10029. eval "ac_cv_header_$ac_safe=yes"
  10030. else
  10031. echo "$ac_err" >&5
  10032. echo "configure: failed program was:" >&5
  10033. cat conftest.$ac_ext >&5
  10034. rm -rf conftest*
  10035. eval "ac_cv_header_$ac_safe=no"
  10036. fi
  10037. rm -f conftest*
  10038. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10039. echo "$ac_t""yes" 1>&6
  10040. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10041. cat >> confdefs.h <<EOF
  10042. #define $ac_tr_hdr 1
  10043. EOF
  10044. else
  10045. echo "$ac_t""no" 1>&6
  10046. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10047. fi
  10048. done
  10049. CPPFLAGS=$ac_save_cppflags
  10050. # With OpenCL library directory
  10051. ### FIXME: ###
  10052. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  10053. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  10054. ac_save_libs="$LIBS"
  10055. ac_save_ldflags="$LDFLAGS"
  10056. LIBS="-framework OpenCL $LIBS"
  10057. LDFLAGS=" $LDFLAGS"
  10058. echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
  10059. echo "configure:12605: checking for clGetPlatformInfo" >&5
  10060. cat > conftest.$ac_ext <<EOF
  10061. #line 12608 "configure"
  10062. #include "confdefs.h"
  10063. /* System header to define __stub macros and hopefully few prototypes,
  10064. which can conflict with char clGetPlatformInfo(); below. */
  10065. #include <assert.h>
  10066. /* Override any gcc2 internal prototype to avoid an error. */
  10067. /* We use char because int might match the return type of a gcc2
  10068. builtin and then its argument prototype would still apply. */
  10069. char clGetPlatformInfo();
  10070. int main() {
  10071. /* The GNU C library defines this for functions which it implements
  10072. to always fail with ENOSYS. Some functions are actually named
  10073. something starting with __ and the normal name is an alias. */
  10074. #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
  10075. choke me
  10076. #else
  10077. clGetPlatformInfo();
  10078. #endif
  10079. ; return 0; }
  10080. EOF
  10081. if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10082. rm -rf conftest*
  10083. eval "ac_cv_func_clGetPlatformInfo=yes"
  10084. else
  10085. echo "configure: failed program was:" >&5
  10086. cat conftest.$ac_ext >&5
  10087. rm -rf conftest*
  10088. eval "ac_cv_func_clGetPlatformInfo=no"
  10089. fi
  10090. rm -f conftest*
  10091. if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
  10092. echo "$ac_t""yes" 1>&6
  10093. OCLLIB="$OCLLIB -framework OpenCL"
  10094. else
  10095. echo "$ac_t""no" 1>&6
  10096. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10097. fi
  10098. LIBS=${ac_save_libs}
  10099. LDFLAGS=${ac_save_ldflags}
  10100. else
  10101. ac_save_cppflags="$CPPFLAGS"
  10102. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10103. for ac_hdr in CL/cl.h
  10104. do
  10105. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10106. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10107. echo "configure:12670: checking for $ac_hdr" >&5
  10108. cat > conftest.$ac_ext <<EOF
  10109. #line 12673 "configure"
  10110. #include "confdefs.h"
  10111. #include <$ac_hdr>
  10112. EOF
  10113. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10114. { (eval echo configure:12678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10115. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10116. if test -z "$ac_err"; then
  10117. rm -rf conftest*
  10118. eval "ac_cv_header_$ac_safe=yes"
  10119. else
  10120. echo "$ac_err" >&5
  10121. echo "configure: failed program was:" >&5
  10122. cat conftest.$ac_ext >&5
  10123. rm -rf conftest*
  10124. eval "ac_cv_header_$ac_safe=no"
  10125. fi
  10126. rm -f conftest*
  10127. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10128. echo "$ac_t""yes" 1>&6
  10129. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10130. cat >> confdefs.h <<EOF
  10131. #define $ac_tr_hdr 1
  10132. EOF
  10133. else
  10134. echo "$ac_t""no" 1>&6
  10135. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10136. fi
  10137. done
  10138. CPPFLAGS=$ac_save_cppflags
  10139. # With OpenCL library directory
  10140. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10141. echo "configure:12711: checking for location of OpenCL library" >&5
  10142. case "$with_opencl_libs" in
  10143. y | ye | yes | n | no)
  10144. { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
  10145. ;;
  10146. esac
  10147. echo "$ac_t""$with_opencl_libs" 1>&6
  10148. if test -n "$with_opencl_libs"; then
  10149. for dir in $with_opencl_libs; do
  10150. if test -d "$dir"; then
  10151. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10152. else
  10153. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10154. fi
  10155. done
  10156. fi
  10157. ac_save_ldflags="$LDFLAGS"
  10158. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10159. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10160. echo "configure:12735: checking for clGetPlatformInfo in -lOpenCL" >&5
  10161. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10162. ac_save_LIBS="$LIBS"
  10163. LIBS="-lOpenCL $LIBS"
  10164. cat > conftest.$ac_ext <<EOF
  10165. #line 12741 "configure"
  10166. #include "confdefs.h"
  10167. /* Override any gcc2 internal prototype to avoid an error. */
  10168. /* We use char because int might match the return type of a gcc2
  10169. builtin and then its argument prototype would still apply. */
  10170. char clGetPlatformInfo();
  10171. int main() {
  10172. clGetPlatformInfo()
  10173. ; return 0; }
  10174. EOF
  10175. if { (eval echo configure:12752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10176. rm -rf conftest*
  10177. eval "ac_cv_lib_$ac_lib_var=yes"
  10178. else
  10179. echo "configure: failed program was:" >&5
  10180. cat conftest.$ac_ext >&5
  10181. rm -rf conftest*
  10182. eval "ac_cv_lib_$ac_lib_var=no"
  10183. fi
  10184. rm -f conftest*
  10185. LIBS="$ac_save_LIBS"
  10186. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10187. echo "$ac_t""yes" 1>&6
  10188. OCLLIB="$OCLLIB -lOpenCL "
  10189. else
  10190. echo "$ac_t""no" 1>&6
  10191. LDFLAGS=${ac_save_ldflags}
  10192. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10193. fi
  10194. LDFLAGS=${ac_save_ldflags}
  10195. # expanded symbol check: yes? no?
  10196. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10197. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10198. #])
  10199. fi
  10200. fi # $USE_OPENCL
  10201. # Done checking OpenCL
  10202. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  10203. # Check whether --enable-largefile or --disable-largefile was given.
  10204. if test "${enable_largefile+set}" = set; then
  10205. enableval="$enable_largefile"
  10206. :
  10207. fi
  10208. LFS_CFLAGS=
  10209. if test "$enable_largefile" != no; then
  10210. ac_save_cflags=$CFLAGS
  10211. if test "`which getconf 2>&5`" ; then
  10212. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  10213. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10214. fi
  10215. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10216. echo "configure:12812: checking for special C compiler options needed for large files" >&5
  10217. ac_cv_sys_largefile_CC=no
  10218. largefile_cc_opt=""
  10219. if test "$GCC" != yes; then
  10220. # IRIX 6.2 and later do not support large files by default,
  10221. # so use the C compiler's -n32 option if that helps.
  10222. cat > conftest.$ac_ext <<EOF
  10223. #line 12820 "configure"
  10224. #include "confdefs.h"
  10225. #include <sys/types.h>
  10226. /* Check that off_t can represent 2**63 - 1 correctly.
  10227. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10228. since some C++ compilers masquerading as C compilers
  10229. incorrectly reject 9223372036854775807. */
  10230. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10231. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10232. && LARGE_OFF_T % 2147483647 == 1)
  10233. ? 1 : -1];
  10234. int main() {
  10235. ; return 0; }
  10236. EOF
  10237. if { (eval echo configure:12836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10238. :
  10239. else
  10240. echo "configure: failed program was:" >&5
  10241. cat conftest.$ac_ext >&5
  10242. rm -rf conftest*
  10243. ac_save_CC="${CC-cc}"
  10244. CC="$CC -n32"
  10245. cat > conftest.$ac_ext <<EOF
  10246. #line 12845 "configure"
  10247. #include "confdefs.h"
  10248. #include <sys/types.h>
  10249. /* Check that off_t can represent 2**63 - 1 correctly.
  10250. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10251. since some C++ compilers masquerading as C compilers
  10252. incorrectly reject 9223372036854775807. */
  10253. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10254. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10255. && LARGE_OFF_T % 2147483647 == 1)
  10256. ? 1 : -1];
  10257. int main() {
  10258. ; return 0; }
  10259. EOF
  10260. if { (eval echo configure:12861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10261. rm -rf conftest*
  10262. ac_cv_sys_largefile_CC=' -n32'
  10263. else
  10264. echo "configure: failed program was:" >&5
  10265. cat conftest.$ac_ext >&5
  10266. fi
  10267. rm -f conftest*
  10268. CC="$ac_save_CC"
  10269. fi
  10270. rm -f conftest*
  10271. fi
  10272. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10273. if test "$ac_cv_sys_largefile_CC" != no; then
  10274. CC="$CC$ac_cv_sys_largefile_CC"
  10275. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10276. if test "$LFS_CFLAGS" ; then
  10277. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  10278. else
  10279. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  10280. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10281. fi
  10282. fi
  10283. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10284. echo "configure:12888: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10285. ac_cv_sys_file_offset_bits=no
  10286. cat > conftest.$ac_ext <<EOF
  10287. #line 12892 "configure"
  10288. #include "confdefs.h"
  10289. #include <sys/types.h>
  10290. /* Check that off_t can represent 2**63 - 1 correctly.
  10291. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10292. since some C++ compilers masquerading as C compilers
  10293. incorrectly reject 9223372036854775807. */
  10294. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10295. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10296. && LARGE_OFF_T % 2147483647 == 1)
  10297. ? 1 : -1];
  10298. int main() {
  10299. ; return 0; }
  10300. EOF
  10301. if { (eval echo configure:12908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10302. :
  10303. else
  10304. echo "configure: failed program was:" >&5
  10305. cat conftest.$ac_ext >&5
  10306. rm -rf conftest*
  10307. cat > conftest.$ac_ext <<EOF
  10308. #line 12915 "configure"
  10309. #include "confdefs.h"
  10310. #define _FILE_OFFSET_BITS 64
  10311. #include <sys/types.h>
  10312. /* Check that off_t can represent 2**63 - 1 correctly.
  10313. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10314. since some C++ compilers masquerading as C compilers
  10315. incorrectly reject 9223372036854775807. */
  10316. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10317. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10318. && LARGE_OFF_T % 2147483647 == 1)
  10319. ? 1 : -1];
  10320. int main() {
  10321. ; return 0; }
  10322. EOF
  10323. if { (eval echo configure:12933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10324. rm -rf conftest*
  10325. ac_cv_sys_file_offset_bits=64
  10326. else
  10327. echo "configure: failed program was:" >&5
  10328. cat conftest.$ac_ext >&5
  10329. fi
  10330. rm -f conftest*
  10331. fi
  10332. rm -f conftest*
  10333. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10334. if test "$ac_cv_sys_file_offset_bits" != no; then
  10335. cat >> confdefs.h <<EOF
  10336. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10337. EOF
  10338. if test "$LFS_CFLAGS" ; then
  10339. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10340. else
  10341. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10342. fi
  10343. fi
  10344. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10345. echo "configure:12959: checking for _LARGE_FILES value needed for large files" >&5
  10346. ac_cv_sys_large_files=no
  10347. cat > conftest.$ac_ext <<EOF
  10348. #line 12963 "configure"
  10349. #include "confdefs.h"
  10350. #include <sys/types.h>
  10351. /* Check that off_t can represent 2**63 - 1 correctly.
  10352. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10353. since some C++ compilers masquerading as C compilers
  10354. incorrectly reject 9223372036854775807. */
  10355. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10356. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10357. && LARGE_OFF_T % 2147483647 == 1)
  10358. ? 1 : -1];
  10359. int main() {
  10360. ; return 0; }
  10361. EOF
  10362. if { (eval echo configure:12979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10363. :
  10364. else
  10365. echo "configure: failed program was:" >&5
  10366. cat conftest.$ac_ext >&5
  10367. rm -rf conftest*
  10368. cat > conftest.$ac_ext <<EOF
  10369. #line 12986 "configure"
  10370. #include "confdefs.h"
  10371. #define _LARGE_FILES 1
  10372. #include <sys/types.h>
  10373. /* Check that off_t can represent 2**63 - 1 correctly.
  10374. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10375. since some C++ compilers masquerading as C compilers
  10376. incorrectly reject 9223372036854775807. */
  10377. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10378. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10379. && LARGE_OFF_T % 2147483647 == 1)
  10380. ? 1 : -1];
  10381. int main() {
  10382. ; return 0; }
  10383. EOF
  10384. if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10385. rm -rf conftest*
  10386. ac_cv_sys_large_files=1
  10387. else
  10388. echo "configure: failed program was:" >&5
  10389. cat conftest.$ac_ext >&5
  10390. fi
  10391. rm -f conftest*
  10392. fi
  10393. rm -f conftest*
  10394. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10395. if test "$ac_cv_sys_large_files" != no; then
  10396. cat >> confdefs.h <<EOF
  10397. #define _LARGE_FILES $ac_cv_sys_large_files
  10398. EOF
  10399. if test "$LFS_CFLAGS" ; then
  10400. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  10401. else
  10402. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  10403. fi
  10404. fi
  10405. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10406. echo "configure:13030: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10407. ac_cv_sys_largefile_source=no
  10408. cat > conftest.$ac_ext <<EOF
  10409. #line 13034 "configure"
  10410. #include "confdefs.h"
  10411. #include <stdio.h>
  10412. int main() {
  10413. return !fseeko;
  10414. ; return 0; }
  10415. EOF
  10416. if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10417. :
  10418. else
  10419. echo "configure: failed program was:" >&5
  10420. cat conftest.$ac_ext >&5
  10421. rm -rf conftest*
  10422. cat > conftest.$ac_ext <<EOF
  10423. #line 13048 "configure"
  10424. #include "confdefs.h"
  10425. #define _LARGEFILE_SOURCE 1
  10426. #include <stdio.h>
  10427. int main() {
  10428. return !fseeko;
  10429. ; return 0; }
  10430. EOF
  10431. if { (eval echo configure:13057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10432. rm -rf conftest*
  10433. ac_cv_sys_largefile_source=1
  10434. else
  10435. echo "configure: failed program was:" >&5
  10436. cat conftest.$ac_ext >&5
  10437. fi
  10438. rm -f conftest*
  10439. fi
  10440. rm -f conftest*
  10441. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10442. if test "$ac_cv_sys_largefile_source" != no; then
  10443. cat >> confdefs.h <<EOF
  10444. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10445. EOF
  10446. if test "$LFS_CFLAGS" ; then
  10447. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10448. else
  10449. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10450. fi
  10451. fi
  10452. CFLAGS=$ac_save_cflags
  10453. fi
  10454. ac_save_cflags=${CFLAGS}
  10455. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  10456. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10457. echo "configure:13089: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10458. ac_cv_sys_largefile_source=no
  10459. cat > conftest.$ac_ext <<EOF
  10460. #line 13093 "configure"
  10461. #include "confdefs.h"
  10462. #include <stdio.h>
  10463. int main() {
  10464. return !fseeko;
  10465. ; return 0; }
  10466. EOF
  10467. if { (eval echo configure:13100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10468. :
  10469. else
  10470. echo "configure: failed program was:" >&5
  10471. cat conftest.$ac_ext >&5
  10472. rm -rf conftest*
  10473. cat > conftest.$ac_ext <<EOF
  10474. #line 13107 "configure"
  10475. #include "confdefs.h"
  10476. #define _LARGEFILE_SOURCE 1
  10477. #include <stdio.h>
  10478. int main() {
  10479. return !fseeko;
  10480. ; return 0; }
  10481. EOF
  10482. if { (eval echo configure:13116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10483. rm -rf conftest*
  10484. ac_cv_sys_largefile_source=1
  10485. else
  10486. echo "configure: failed program was:" >&5
  10487. cat conftest.$ac_ext >&5
  10488. fi
  10489. rm -f conftest*
  10490. fi
  10491. rm -f conftest*
  10492. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10493. if test "$ac_cv_sys_largefile_source" != no; then
  10494. cat >> confdefs.h <<EOF
  10495. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10496. EOF
  10497. if test "$LFS_CFLAGS" ; then
  10498. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10499. else
  10500. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10501. fi
  10502. fi
  10503. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10504. # in glibc 2.1.3, but that breaks too many other things.
  10505. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10506. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10507. echo "configure:13146: checking for fseeko" >&5
  10508. ac_cv_func_fseeko=no
  10509. cat > conftest.$ac_ext <<EOF
  10510. #line 13150 "configure"
  10511. #include "confdefs.h"
  10512. #include <stdio.h>
  10513. int main() {
  10514. return fseeko && fseeko (stdin, 0, 0);
  10515. ; return 0; }
  10516. EOF
  10517. if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10518. rm -rf conftest*
  10519. ac_cv_func_fseeko=yes
  10520. else
  10521. echo "configure: failed program was:" >&5
  10522. cat conftest.$ac_ext >&5
  10523. fi
  10524. rm -f conftest*
  10525. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10526. if test $ac_cv_func_fseeko != no; then
  10527. cat >> confdefs.h <<\EOF
  10528. #define HAVE_FSEEKO 1
  10529. EOF
  10530. fi
  10531. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10532. echo "configure:13174: checking if system supports Large Files at all" >&5
  10533. cat > conftest.$ac_ext <<EOF
  10534. #line 13177 "configure"
  10535. #include "confdefs.h"
  10536. #include <stdio.h>
  10537. #include <sys/types.h>
  10538. int main() {
  10539. /*
  10540. * Check that off_t can represent 2**63 - 1 correctly.
  10541. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10542. * since some C++ compilers masquerading as C compilers
  10543. * incorrectly reject 9223372036854775807.
  10544. *
  10545. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10546. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10547. */
  10548. #ifdef __MINGW32__
  10549. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10550. #else
  10551. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10552. #endif
  10553. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10554. && LARGE_OFF_T % 2147483647 == 1)
  10555. ? 1 : -1];
  10556. #ifdef __MINGW32__
  10557. return !fseeko64;
  10558. return !ftello64;
  10559. #else
  10560. return !fseeko;
  10561. return !ftello;
  10562. #endif
  10563. ; return 0; }
  10564. EOF
  10565. if { (eval echo configure:13209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10566. rm -rf conftest*
  10567. ac_cv_largefiles=yes
  10568. else
  10569. echo "configure: failed program was:" >&5
  10570. cat conftest.$ac_ext >&5
  10571. rm -rf conftest*
  10572. ac_cv_largefiles=no
  10573. fi
  10574. rm -f conftest*
  10575. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10576. if test $ac_cv_largefiles = yes; then
  10577. cat >> confdefs.h <<\EOF
  10578. #define HAVE_LARGEFILES 1
  10579. EOF
  10580. USE_LARGEFILES=1
  10581. else
  10582. USE_LARGEFILES=
  10583. LFS_CFLAGS=
  10584. fi
  10585. CFLAGS=${ac_save_cflags}
  10586. # Done large file support
  10587. # Enable wxWidgets support (for wxGUI)
  10588. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  10589. echo "configure:13240: checking whether to use wxWidgets" >&5
  10590. WXVERSION=
  10591. WXWIDGETSCXXFLAGS=
  10592. WXWIDGETSCPPFLAGS=
  10593. WXWIDGETSLIB=
  10594. USE_WXWIDGETS=
  10595. MACOSX_ARCHS_WXPYTHON=
  10596. if test "$with_wxwidgets" = "no" ; then
  10597. echo "$ac_t""no" 1>&6
  10598. else
  10599. echo "$ac_t""yes" 1>&6
  10600. USE_WXWIDGETS="1"
  10601. if test "$with_wxwidgets" != "yes" ; then
  10602. WX_CONFIG="$with_wxwidgets"
  10603. fi
  10604. # Extract the first word of "wx-config", so it can be a program name with args.
  10605. set dummy wx-config; ac_word=$2
  10606. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10607. echo "configure:13261: checking for $ac_word" >&5
  10608. case "$WX_CONFIG" in
  10609. /*)
  10610. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  10611. ;;
  10612. ?:/*)
  10613. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  10614. ;;
  10615. *)
  10616. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10617. ac_dummy="$PATH"
  10618. for ac_dir in $ac_dummy; do
  10619. test -z "$ac_dir" && ac_dir=.
  10620. if test -f $ac_dir/$ac_word; then
  10621. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  10622. break
  10623. fi
  10624. done
  10625. IFS="$ac_save_ifs"
  10626. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  10627. ;;
  10628. esac
  10629. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  10630. if test -n "$WX_CONFIG"; then
  10631. echo "$ac_t""$WX_CONFIG" 1>&6
  10632. else
  10633. echo "$ac_t""no" 1>&6
  10634. fi
  10635. if test "$WX_CONFIG" = "no" ; then
  10636. { echo "configure: error: *** couldn't find wx-config
  10637. wxWidgets must be installed on your system.
  10638. Please check that wx-config is in path, the directory
  10639. where wxWidgets libraries are installed (returned by
  10640. 'wx-config --libs' or 'wx-config --static --libs' command)
  10641. is in LD_LIBRARY_PATH or equivalent variable and
  10642. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  10643. fi
  10644. # Check wxWidgets version
  10645. REQWX="2.8.1"
  10646. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  10647. echo "configure:13309: checking wxWidgets version" >&5
  10648. if WXVERSION=`"$WX_CONFIG" --version`; then
  10649. echo "$ac_t""$WXVERSION" 1>&6
  10650. else
  10651. echo "$ac_t""not found" 1>&6
  10652. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  10653. fi
  10654. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  10655. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  10656. fi
  10657. # With wxWidgets includes directory
  10658. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  10659. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  10660. ac_save_cppflags="$CPPFLAGS"
  10661. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  10662. for ac_hdr in wx/wxprec.h
  10663. do
  10664. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10665. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10666. echo "configure:13332: checking for $ac_hdr" >&5
  10667. cat > conftest.$ac_ext <<EOF
  10668. #line 13335 "configure"
  10669. #include "confdefs.h"
  10670. #include <$ac_hdr>
  10671. EOF
  10672. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10673. { (eval echo configure:13340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10674. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10675. if test -z "$ac_err"; then
  10676. rm -rf conftest*
  10677. eval "ac_cv_header_$ac_safe=yes"
  10678. else
  10679. echo "$ac_err" >&5
  10680. echo "configure: failed program was:" >&5
  10681. cat conftest.$ac_ext >&5
  10682. rm -rf conftest*
  10683. eval "ac_cv_header_$ac_safe=no"
  10684. fi
  10685. rm -f conftest*
  10686. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10687. echo "$ac_t""yes" 1>&6
  10688. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10689. cat >> confdefs.h <<EOF
  10690. #define $ac_tr_hdr 1
  10691. EOF
  10692. else
  10693. echo "$ac_t""no" 1>&6
  10694. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  10695. fi
  10696. done
  10697. CPPFLAGS=$ac_save_cppflags
  10698. # With wxWidgets library directory
  10699. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  10700. # shouldn't have arch flags in C/LD flags on OSX
  10701. for a in i386 ppc x86_64 ppc64
  10702. do
  10703. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  10704. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  10705. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  10706. done
  10707. # check for available OSX archs in wxPython
  10708. if test -n "$MACOSX_ARCHS" ; then
  10709. wxver=`"$WX_CONFIG" --version`
  10710. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  10711. wxlibinfo=`file "$wxlib"`
  10712. for a in i386 ppc x86_64 ppc64
  10713. do
  10714. # add only if in MACOSX_ARCHS
  10715. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  10716. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  10717. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  10718. fi
  10719. fi
  10720. done
  10721. fi
  10722. fi # $USE_WXWIDGETS
  10723. # Done checking wxWidgets
  10724. USE_TERMIO=
  10725. STRIPFLAG=
  10726. GRASS_HOME="${DSTDIR}"
  10727. trap '' 1 2 15
  10728. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10729. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10730. # Let make expand exec_prefix.
  10731. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10732. # Any assignment to VPATH causes Sun make to only execute
  10733. # the first set of double-colon rules, so remove it if not needed.
  10734. # If there is a colon in the path, we need to keep it.
  10735. if test "x$srcdir" = x.; then
  10736. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10737. fi
  10738. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10739. DEFS=-DHAVE_CONFIG_H
  10740. # Without the "./", some shells look in PATH for config.status.
  10741. : ${CONFIG_STATUS=./config.status}
  10742. echo creating $CONFIG_STATUS
  10743. rm -f $CONFIG_STATUS
  10744. cat > $CONFIG_STATUS <<EOF
  10745. #! /bin/sh
  10746. # Generated automatically by configure.
  10747. # Run this file to recreate the current configuration.
  10748. # This directory was configured as follows,
  10749. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10750. #
  10751. # $0 $ac_configure_args
  10752. #
  10753. # Compiler output produced by configure, useful for debugging
  10754. # configure, is in ./config.log if it exists.
  10755. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10756. for ac_option
  10757. do
  10758. case "\$ac_option" in
  10759. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10760. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10761. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10762. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10763. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10764. exit 0 ;;
  10765. -help | --help | --hel | --he | --h)
  10766. echo "\$ac_cs_usage"; exit 0 ;;
  10767. *) echo "\$ac_cs_usage"; exit 1 ;;
  10768. esac
  10769. done
  10770. ac_given_srcdir=$srcdir
  10771. ac_given_INSTALL="$INSTALL"
  10772. 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
  10773. EOF
  10774. cat >> $CONFIG_STATUS <<EOF
  10775. # Protect against being on the right side of a sed subst in config.status.
  10776. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10777. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10778. $ac_vpsub
  10779. $extrasub
  10780. s%@SHELL@%$SHELL%g
  10781. s%@CFLAGS@%$CFLAGS%g
  10782. s%@CPPFLAGS@%$CPPFLAGS%g
  10783. s%@CXXFLAGS@%$CXXFLAGS%g
  10784. s%@FFLAGS@%$FFLAGS%g
  10785. s%@DEFS@%$DEFS%g
  10786. s%@LDFLAGS@%$LDFLAGS%g
  10787. s%@LIBS@%$LIBS%g
  10788. s%@exec_prefix@%$exec_prefix%g
  10789. s%@prefix@%$prefix%g
  10790. s%@program_transform_name@%$program_transform_name%g
  10791. s%@bindir@%$bindir%g
  10792. s%@sbindir@%$sbindir%g
  10793. s%@libexecdir@%$libexecdir%g
  10794. s%@datadir@%$datadir%g
  10795. s%@sysconfdir@%$sysconfdir%g
  10796. s%@sharedstatedir@%$sharedstatedir%g
  10797. s%@localstatedir@%$localstatedir%g
  10798. s%@libdir@%$libdir%g
  10799. s%@includedir@%$includedir%g
  10800. s%@oldincludedir@%$oldincludedir%g
  10801. s%@infodir@%$infodir%g
  10802. s%@mandir@%$mandir%g
  10803. s%@host@%$host%g
  10804. s%@host_alias@%$host_alias%g
  10805. s%@host_cpu@%$host_cpu%g
  10806. s%@host_vendor@%$host_vendor%g
  10807. s%@host_os@%$host_os%g
  10808. s%@CC@%$CC%g
  10809. s%@EXEEXT@%$EXEEXT%g
  10810. s%@MINGW32@%$MINGW32%g
  10811. s%@BINDIR@%$BINDIR%g
  10812. s%@pwd@%$pwd%g
  10813. s%@SRCDIR@%$SRCDIR%g
  10814. s%@DSTDIR@%$DSTDIR%g
  10815. s%@ARCH@%$ARCH%g
  10816. s%@GISBASE@%$GISBASE%g
  10817. s%@GRASS_BIN@%$GRASS_BIN%g
  10818. s%@SVN_VERSION@%$SVN_VERSION%g
  10819. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  10820. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  10821. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  10822. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  10823. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  10824. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  10825. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  10826. s%@NAME_VER@%$NAME_VER%g
  10827. s%@LIB_VER@%$LIB_VER%g
  10828. s%@MACOSX_APP@%$MACOSX_APP%g
  10829. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  10830. s%@MACOSX_SDK@%$MACOSX_SDK%g
  10831. s%@INSTDIR@%$INSTDIR%g
  10832. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  10833. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  10834. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  10835. s%@SHLIB_LD@%$SHLIB_LD%g
  10836. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  10837. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  10838. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  10839. s%@STLIB_LD@%$STLIB_LD%g
  10840. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  10841. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  10842. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  10843. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10844. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10845. s%@INSTALL_DATA@%$INSTALL_DATA%g
  10846. s%@LEX@%$LEX%g
  10847. s%@LEXLIB@%$LEXLIB%g
  10848. s%@LEXPATH@%$LEXPATH%g
  10849. s%@YACC@%$YACC%g
  10850. s%@YACCPATH@%$YACCPATH%g
  10851. s%@RANLIB@%$RANLIB%g
  10852. s%@AR@%$AR%g
  10853. s%@ENV@%$ENV%g
  10854. s%@PERL@%$PERL%g
  10855. s%@CPP@%$CPP%g
  10856. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  10857. s%@X_CFLAGS@%$X_CFLAGS%g
  10858. s%@X_LIBS@%$X_LIBS%g
  10859. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  10860. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  10861. s%@XLIB@%$XLIB%g
  10862. s%@XTLIB@%$XTLIB%g
  10863. s%@USE_X11@%$USE_X11%g
  10864. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  10865. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  10866. s%@MATHLIB@%$MATHLIB%g
  10867. s%@DLLIB@%$DLLIB%g
  10868. s%@ICONVLIB@%$ICONVLIB%g
  10869. s%@SOCKLIB@%$SOCKLIB%g
  10870. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  10871. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  10872. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  10873. s%@ZLIB@%$ZLIB%g
  10874. s%@PROJINC@%$PROJINC%g
  10875. s%@PROJLIB@%$PROJLIB%g
  10876. s%@PROJSHARE@%$PROJSHARE%g
  10877. s%@NAD2BIN@%$NAD2BIN%g
  10878. s%@REGEXINCPATH@%$REGEXINCPATH%g
  10879. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  10880. s%@REGEXLIB@%$REGEXLIB%g
  10881. s%@USE_REGEX@%$USE_REGEX%g
  10882. s%@READLINEINCPATH@%$READLINEINCPATH%g
  10883. s%@READLINELIBPATH@%$READLINELIBPATH%g
  10884. s%@READLINELIB@%$READLINELIB%g
  10885. s%@HISTORYLIB@%$HISTORYLIB%g
  10886. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  10887. s%@GDAL_LIBS@%$GDAL_LIBS%g
  10888. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  10889. s%@USE_GDAL@%$USE_GDAL%g
  10890. s%@USE_OGR@%$USE_OGR%g
  10891. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  10892. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  10893. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  10894. s%@LIBLAS_INC@%$LIBLAS_INC%g
  10895. s%@USE_LIBLAS@%$USE_LIBLAS%g
  10896. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  10897. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  10898. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  10899. s%@USE_NETCDF@%$USE_NETCDF%g
  10900. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  10901. s%@GEOS_LIBS@%$GEOS_LIBS%g
  10902. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  10903. s%@USE_GEOS@%$USE_GEOS%g
  10904. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  10905. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  10906. s%@TIFFLIB@%$TIFFLIB%g
  10907. s%@PNGINC@%$PNGINC%g
  10908. s%@PNGLIB@%$PNGLIB%g
  10909. s%@USE_PNG@%$USE_PNG%g
  10910. s%@USE_POSTGRES@%$USE_POSTGRES%g
  10911. s%@PQINCPATH@%$PQINCPATH%g
  10912. s%@PQLIBPATH@%$PQLIBPATH%g
  10913. s%@PQLIB@%$PQLIB%g
  10914. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  10915. s%@USE_MYSQL@%$USE_MYSQL%g
  10916. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  10917. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  10918. s%@MYSQLLIB@%$MYSQLLIB%g
  10919. s%@MYSQLDLIB@%$MYSQLDLIB%g
  10920. s%@USE_SQLITE@%$USE_SQLITE%g
  10921. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  10922. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  10923. s%@SQLITELIB@%$SQLITELIB%g
  10924. s%@USE_OPENGL@%$USE_OPENGL%g
  10925. s%@OPENGL_X11@%$OPENGL_X11%g
  10926. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  10927. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  10928. s%@OPENGLINC@%$OPENGLINC%g
  10929. s%@OPENGLLIB@%$OPENGLLIB%g
  10930. s%@OPENGLULIB@%$OPENGLULIB%g
  10931. s%@ODBCINC@%$ODBCINC%g
  10932. s%@ODBCLIB@%$ODBCLIB%g
  10933. s%@FFTWINC@%$FFTWINC%g
  10934. s%@FFTWLIB@%$FFTWLIB%g
  10935. s%@BLASLIB@%$BLASLIB%g
  10936. s%@BLASINC@%$BLASINC%g
  10937. s%@LAPACKLIB@%$LAPACKLIB%g
  10938. s%@LAPACKINC@%$LAPACKINC%g
  10939. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  10940. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  10941. s%@CAIROINC@%$CAIROINC%g
  10942. s%@CAIROLIB@%$CAIROLIB%g
  10943. s%@USE_CAIRO@%$USE_CAIRO%g
  10944. s%@FTINC@%$FTINC%g
  10945. s%@FTLIB@%$FTLIB%g
  10946. s%@INTLLIB@%$INTLLIB%g
  10947. s%@HAVE_NLS@%$HAVE_NLS%g
  10948. s%@CXX@%$CXX%g
  10949. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  10950. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  10951. s%@OPENDWGLIB@%$OPENDWGLIB%g
  10952. s%@USE_OPENDWG@%$USE_OPENDWG%g
  10953. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  10954. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  10955. s%@PTHREADLIB@%$PTHREADLIB%g
  10956. s%@USE_PTHREAD@%$USE_PTHREAD%g
  10957. s%@OMPINCPATH@%$OMPINCPATH%g
  10958. s%@OMPLIBPATH@%$OMPLIBPATH%g
  10959. s%@OMPLIB@%$OMPLIB%g
  10960. s%@OMPCFLAGS@%$OMPCFLAGS%g
  10961. s%@USE_OPENMP@%$USE_OPENMP%g
  10962. s%@OCLINCPATH@%$OCLINCPATH%g
  10963. s%@OCLLIBPATH@%$OCLLIBPATH%g
  10964. s%@OCLLIB@%$OCLLIB%g
  10965. s%@USE_OPENCL@%$USE_OPENCL%g
  10966. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  10967. s%@LFS_CFLAGS@%$LFS_CFLAGS%g
  10968. s%@WX_CONFIG@%$WX_CONFIG%g
  10969. s%@WXVERSION@%$WXVERSION%g
  10970. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  10971. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  10972. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  10973. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  10974. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  10975. s%@USE_TERMIO@%$USE_TERMIO%g
  10976. s%@STRIPFLAG@%$STRIPFLAG%g
  10977. s%@GRASS_HOME@%$GRASS_HOME%g
  10978. CEOF
  10979. EOF
  10980. cat >> $CONFIG_STATUS <<\EOF
  10981. # Split the substitutions into bite-sized pieces for seds with
  10982. # small command number limits, like on Digital OSF/1 and HP-UX.
  10983. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  10984. ac_file=1 # Number of current file.
  10985. ac_beg=1 # First line for current file.
  10986. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  10987. ac_more_lines=:
  10988. ac_sed_cmds=""
  10989. while $ac_more_lines; do
  10990. if test $ac_beg -gt 1; then
  10991. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  10992. else
  10993. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  10994. fi
  10995. if test ! -s conftest.s$ac_file; then
  10996. ac_more_lines=false
  10997. rm -f conftest.s$ac_file
  10998. else
  10999. if test -z "$ac_sed_cmds"; then
  11000. ac_sed_cmds="sed -f conftest.s$ac_file"
  11001. else
  11002. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11003. fi
  11004. ac_file=`expr $ac_file + 1`
  11005. ac_beg=$ac_end
  11006. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11007. fi
  11008. done
  11009. if test -z "$ac_sed_cmds"; then
  11010. ac_sed_cmds=cat
  11011. fi
  11012. EOF
  11013. cat >> $CONFIG_STATUS <<EOF
  11014. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11015. EOF
  11016. cat >> $CONFIG_STATUS <<\EOF
  11017. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11018. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11019. case "$ac_file" in
  11020. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11021. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11022. *) ac_file_in="${ac_file}.in" ;;
  11023. esac
  11024. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11025. # Remove last slash and all that follows it. Not all systems have dirname.
  11026. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11027. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11028. # The file is in a subdirectory.
  11029. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11030. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11031. # A "../" for each directory in $ac_dir_suffix.
  11032. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11033. else
  11034. ac_dir_suffix= ac_dots=
  11035. fi
  11036. case "$ac_given_srcdir" in
  11037. .) srcdir=.
  11038. if test -z "$ac_dots"; then top_srcdir=.
  11039. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11040. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11041. *) # Relative path.
  11042. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11043. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11044. esac
  11045. case "$ac_given_INSTALL" in
  11046. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11047. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11048. esac
  11049. echo creating "$ac_file"
  11050. rm -f "$ac_file"
  11051. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11052. case "$ac_file" in
  11053. *Makefile*) ac_comsub="1i\\
  11054. # $configure_input" ;;
  11055. *) ac_comsub= ;;
  11056. esac
  11057. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11058. sed -e "$ac_comsub
  11059. s%@configure_input@%$configure_input%g
  11060. s%@srcdir@%$srcdir%g
  11061. s%@top_srcdir@%$top_srcdir%g
  11062. s%@INSTALL@%$INSTALL%g
  11063. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11064. fi; done
  11065. rm -f conftest.s*
  11066. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11067. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11068. #
  11069. # ac_d sets the value in "#define NAME VALUE" lines.
  11070. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11071. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11072. ac_dC='\3'
  11073. ac_dD='%g'
  11074. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11075. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11076. ac_uB='\([ ]\)%\1#\2define\3'
  11077. ac_uC=' '
  11078. ac_uD='\4%g'
  11079. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11080. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11081. ac_eB='$%\1#\2define\3'
  11082. ac_eC=' '
  11083. ac_eD='%g'
  11084. if test "${CONFIG_HEADERS+set}" != set; then
  11085. EOF
  11086. cat >> $CONFIG_STATUS <<EOF
  11087. CONFIG_HEADERS="include/config.h"
  11088. EOF
  11089. cat >> $CONFIG_STATUS <<\EOF
  11090. fi
  11091. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11092. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11093. case "$ac_file" in
  11094. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11095. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11096. *) ac_file_in="${ac_file}.in" ;;
  11097. esac
  11098. echo creating $ac_file
  11099. rm -f conftest.frag conftest.in conftest.out
  11100. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11101. cat $ac_file_inputs > conftest.in
  11102. EOF
  11103. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11104. # the proper values into config.h.in to produce config.h. And first:
  11105. # Protect against being on the right side of a sed subst in config.status.
  11106. # Protect against being in an unquoted here document in config.status.
  11107. rm -f conftest.vals
  11108. cat > conftest.hdr <<\EOF
  11109. s/[\\&%]/\\&/g
  11110. s%[\\$`]%\\&%g
  11111. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11112. s%ac_d%ac_u%gp
  11113. s%ac_u%ac_e%gp
  11114. EOF
  11115. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11116. rm -f conftest.hdr
  11117. # This sed command replaces #undef with comments. This is necessary, for
  11118. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11119. # on some systems where configure will not decide to define it.
  11120. cat >> conftest.vals <<\EOF
  11121. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11122. EOF
  11123. # Break up conftest.vals because some shells have a limit on
  11124. # the size of here documents, and old seds have small limits too.
  11125. rm -f conftest.tail
  11126. while :
  11127. do
  11128. ac_lines=`grep -c . conftest.vals`
  11129. # grep -c gives empty output for an empty file on some AIX systems.
  11130. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11131. # Write a limited-size here document to conftest.frag.
  11132. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11133. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11134. echo 'CEOF
  11135. sed -f conftest.frag conftest.in > conftest.out
  11136. rm -f conftest.in
  11137. mv conftest.out conftest.in
  11138. ' >> $CONFIG_STATUS
  11139. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11140. rm -f conftest.vals
  11141. mv conftest.tail conftest.vals
  11142. done
  11143. rm -f conftest.vals
  11144. cat >> $CONFIG_STATUS <<\EOF
  11145. rm -f conftest.frag conftest.h
  11146. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11147. cat conftest.in >> conftest.h
  11148. rm -f conftest.in
  11149. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11150. echo "$ac_file is unchanged"
  11151. rm -f conftest.h
  11152. else
  11153. # Remove last slash and all that follows it. Not all systems have dirname.
  11154. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11155. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11156. # The file is in a subdirectory.
  11157. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11158. fi
  11159. rm -f $ac_file
  11160. mv conftest.h $ac_file
  11161. fi
  11162. fi; done
  11163. EOF
  11164. cat >> $CONFIG_STATUS <<EOF
  11165. EOF
  11166. cat >> $CONFIG_STATUS <<\EOF
  11167. exit 0
  11168. EOF
  11169. chmod +x $CONFIG_STATUS
  11170. rm -fr confdefs* $ac_clean_files
  11171. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11172. echo "Copying config.status to config.status.${ARCH}"
  11173. cp -f config.status config.status.${ARCH}
  11174. # Display configuration status
  11175. echo ""
  11176. echo "GRASS is now configured for: ${host}"
  11177. echo ""
  11178. echo " Source directory: ${SRCDIR}"
  11179. echo " Build directory: ${DSTDIR}"
  11180. echo " Installation directory: ${INSTDIR}"
  11181. echo " Startup script in directory:${bindir}"
  11182. echo " C compiler: ${CC} ${CFLAGS}"
  11183. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11184. echo " Building shared libraries: ${shared_ok}"
  11185. echo " OpenGL platform: ${OPENGL_TYPE}"
  11186. echo ""
  11187. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11188. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11189. echo " MacOSX SDK: ${MACOSX_SDK}"
  11190. echo ""
  11191. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11192. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11193. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11194. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11195. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11196. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11197. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11198. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11199. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11200. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11201. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11202. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11203. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11204. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11205. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11206. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11207. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11208. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11209. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11210. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11211. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11212. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11213. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11214. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11215. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11216. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11217. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11218. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11219. echo ""