configure 421 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="configure.ac"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. GRASS_HOME
  575. STRIPFLAG
  576. USE_TERMIO
  577. LFS_CFLAGS
  578. USE_LARGEFILES
  579. USE_OPENCL
  580. OCLLIB
  581. OCLLIBPATH
  582. OCLINCPATH
  583. USE_OPENMP
  584. OMPCFLAGS
  585. OMPLIB
  586. OMPLIBPATH
  587. OMPINCPATH
  588. USE_PTHREAD
  589. PTHREADLIB
  590. PTHREADLIBPATH
  591. PTHREADINCPATH
  592. USE_OPENDWG
  593. OPENDWGLIB
  594. OPENDWGLIBPATH
  595. OPENDWGINCPATH
  596. HAVE_NLS
  597. INTLLIB
  598. FTLIB
  599. FTINC
  600. USE_CAIRO
  601. CAIROLIB
  602. CAIROINC
  603. CAIRO_HAS_XRENDER_SURFACE
  604. CAIRO_HAS_XRENDER
  605. LAPACKINC
  606. LAPACKLIB
  607. BLASINC
  608. BLASLIB
  609. FFTWLIB
  610. FFTWINC
  611. ODBCLIB
  612. ODBCINC
  613. OPENGLULIB
  614. OPENGLLIB
  615. OPENGLINC
  616. OPENGL_WINDOWS
  617. OPENGL_AQUA
  618. OPENGL_X11
  619. USE_OPENGL
  620. SQLITELIB
  621. SQLITELIBPATH
  622. SQLITEINCPATH
  623. USE_SQLITE
  624. MYSQLDLIB
  625. MYSQLLIB
  626. MYSQLLIBPATH
  627. MYSQLINCPATH
  628. USE_MYSQL
  629. MYSQLD_CONFIG
  630. PQLIB
  631. PQLIBPATH
  632. PQINCPATH
  633. USE_POSTGRES
  634. USE_PNG
  635. PNGLIB
  636. PNGINC
  637. TIFFLIB
  638. TIFF_LIBRARY_DIRS
  639. TIFF_INCLUDE_DIRS
  640. USE_GEOS
  641. GEOS_CFLAGS
  642. GEOS_LIBS
  643. GEOS_CONFIG
  644. USE_NETCDF
  645. NETCDF_CFLAGS
  646. NETCDF_LIBS
  647. NETCDF_CONFIG
  648. USE_PDAL
  649. PDAL_INC
  650. PDAL_CPPFLAGS
  651. PDAL_LIBS
  652. ac_ct_CXX
  653. CXXFLAGS
  654. CXX
  655. PDAL_CONFIG
  656. USE_LIBLAS
  657. LIBLAS_INC
  658. LIBLAS_CFLAGS
  659. LIBLAS_LIBS
  660. LIBLAS_CONFIG
  661. USE_OGR
  662. USE_GDAL
  663. GDAL_CFLAGS
  664. GDAL_LIBS
  665. GDAL_CONFIG
  666. HISTORYLIB
  667. READLINELIB
  668. READLINELIBPATH
  669. READLINEINCPATH
  670. USE_REGEX
  671. REGEXLIB
  672. REGEXLIBPATH
  673. REGEXINCPATH
  674. PROJSHARE
  675. PROJLIB
  676. PROJINC
  677. ZSTDLIB
  678. ZSTDLIBPATH
  679. ZSTDINCPATH
  680. BZIP2LIB
  681. BZIP2LIBPATH
  682. BZIP2INCPATH
  683. ZLIB
  684. ZLIBLIBPATH
  685. ZLIBINCPATH
  686. HAVE_SOCKET
  687. SOCKLIB
  688. ICONVLIB
  689. DLLIB
  690. MATHLIB
  691. HAVE_ASPRINTF
  692. DBMIEXTRALIB
  693. USE_X11
  694. XTLIB
  695. XLIB
  696. X_EXTRA_LIBS
  697. X_PRE_LIBS
  698. XMKMF
  699. X_LIBS
  700. X_CFLAGS
  701. CROSS_COMPILING
  702. EGREP
  703. GREP
  704. CPP
  705. PERL
  706. ENV
  707. AR
  708. RANLIB
  709. YACCPATH
  710. YFLAGS
  711. YACC
  712. LEXPATH
  713. LEXLIB
  714. LEX_OUTPUT_ROOT
  715. LEX
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. LIBRARY_DIRS
  720. INCLUDE_DIRS
  721. STLIB_SUFFIX
  722. STLIB_LD
  723. SHLIB_SUFFIX
  724. SHLIB_CFLAGS
  725. SHLIB_LD_FLAGS
  726. SHLIB_LD
  727. LD_LIBRARY_PATH_VAR
  728. LD_SEARCH_FLAGS
  729. GRASS_LIBRARY_TYPE
  730. INSTDIR
  731. MACOSX_SDK
  732. MACOSX_ARCHS
  733. MACOSX_APP
  734. LIB_VER
  735. NAME_VER
  736. GRASS_HEADERS_GIT_DATE
  737. GRASS_HEADERS_GIT_HASH
  738. GRASS_VERSION_GIT
  739. GRASS_VERSION_DATE
  740. GRASS_VERSION_NUMBER
  741. GRASS_VERSION_RELEASE
  742. GRASS_VERSION_MINOR
  743. GRASS_VERSION_MAJOR
  744. GRASS_VERSION_FILE
  745. GIT
  746. GRASS_BIN
  747. GISBASE
  748. ARCH
  749. DSTDIR
  750. SRCDIR
  751. pwd
  752. BINDIR
  753. WINDRES
  754. MINGW32
  755. OBJEXT
  756. EXEEXT
  757. ac_ct_CC
  758. CPPFLAGS
  759. LDFLAGS
  760. CFLAGS
  761. CC
  762. host_os
  763. host_vendor
  764. host_cpu
  765. host
  766. build_os
  767. build_vendor
  768. build_cpu
  769. build
  770. target_alias
  771. host_alias
  772. build_alias
  773. LIBS
  774. ECHO_T
  775. ECHO_N
  776. ECHO_C
  777. DEFS
  778. mandir
  779. localedir
  780. libdir
  781. psdir
  782. pdfdir
  783. dvidir
  784. htmldir
  785. infodir
  786. docdir
  787. oldincludedir
  788. includedir
  789. localstatedir
  790. sharedstatedir
  791. sysconfdir
  792. datadir
  793. datarootdir
  794. libexecdir
  795. sbindir
  796. bindir
  797. program_transform_name
  798. prefix
  799. exec_prefix
  800. PACKAGE_URL
  801. PACKAGE_BUGREPORT
  802. PACKAGE_STRING
  803. PACKAGE_VERSION
  804. PACKAGE_TARNAME
  805. PACKAGE_NAME
  806. PATH_SEPARATOR
  807. SHELL'
  808. ac_subst_files=''
  809. ac_user_opts='
  810. enable_option_checking
  811. enable_macosx_app
  812. enable_shared
  813. enable_w11
  814. with_cxx
  815. with_macosx_archs
  816. with_macosx_sdk
  817. with_tiff
  818. with_png
  819. with_postgres
  820. with_mysql
  821. with_sqlite
  822. with_opengl
  823. with_odbc
  824. with_fftw
  825. with_blas
  826. with_lapack
  827. with_cairo
  828. with_freetype
  829. with_nls
  830. with_readline
  831. with_opendwg
  832. with_regex
  833. with_pthread
  834. with_openmp
  835. with_opencl
  836. with_bzlib
  837. with_zstd
  838. with_gdal
  839. with_liblas
  840. with_pdal
  841. with_wxwidgets
  842. with_netcdf
  843. with_geos
  844. with_includes
  845. with_libs
  846. with_zlib_includes
  847. with_zlib_libs
  848. with_bzlib_includes
  849. with_bzlib_libs
  850. with_zstd_includes
  851. with_zstd_libs
  852. with_readline_includes
  853. with_readline_libs
  854. with_tiff_includes
  855. with_tiff_libs
  856. with_png_includes
  857. with_png_libs
  858. with_postgres_includes
  859. with_postgres_libs
  860. with_mysql_includes
  861. with_mysql_libs
  862. with_sqlite_includes
  863. with_sqlite_libs
  864. with_opengl_includes
  865. with_opengl_libs
  866. with_opengl_framework
  867. with_odbc_includes
  868. with_odbc_libs
  869. with_fftw_includes
  870. with_fftw_libs
  871. with_blas_includes
  872. with_blas_libs
  873. with_lapack_includes
  874. with_lapack_libs
  875. with_cairo_includes
  876. with_cairo_libs
  877. with_cairo_ldflags
  878. with_freetype_includes
  879. with_freetype_libs
  880. with_proj_includes
  881. with_proj_libs
  882. with_proj_share
  883. with_opendwg_includes
  884. with_opendwg_libs
  885. with_regex_includes
  886. with_regex_libs
  887. with_pthread_includes
  888. with_pthread_libs
  889. with_openmp_includes
  890. with_openmp_libs
  891. with_opencl_includes
  892. with_opencl_libs
  893. with_x
  894. enable_largefile
  895. '
  896. ac_precious_vars='build_alias
  897. host_alias
  898. target_alias
  899. CC
  900. CFLAGS
  901. LDFLAGS
  902. LIBS
  903. CPPFLAGS
  904. YACC
  905. YFLAGS
  906. CPP
  907. XMKMF
  908. CXX
  909. CXXFLAGS
  910. CCC'
  911. # Initialize some variables set by options.
  912. ac_init_help=
  913. ac_init_version=false
  914. ac_unrecognized_opts=
  915. ac_unrecognized_sep=
  916. # The variables have the same names as the options, with
  917. # dashes changed to underlines.
  918. cache_file=/dev/null
  919. exec_prefix=NONE
  920. no_create=
  921. no_recursion=
  922. prefix=NONE
  923. program_prefix=NONE
  924. program_suffix=NONE
  925. program_transform_name=s,x,x,
  926. silent=
  927. site=
  928. srcdir=
  929. verbose=
  930. x_includes=NONE
  931. x_libraries=NONE
  932. # Installation directory options.
  933. # These are left unexpanded so users can "make install exec_prefix=/foo"
  934. # and all the variables that are supposed to be based on exec_prefix
  935. # by default will actually change.
  936. # Use braces instead of parens because sh, perl, etc. also accept them.
  937. # (The list follows the same order as the GNU Coding Standards.)
  938. bindir='${exec_prefix}/bin'
  939. sbindir='${exec_prefix}/sbin'
  940. libexecdir='${exec_prefix}/libexec'
  941. datarootdir='${prefix}/share'
  942. datadir='${datarootdir}'
  943. sysconfdir='${prefix}/etc'
  944. sharedstatedir='${prefix}/com'
  945. localstatedir='${prefix}/var'
  946. includedir='${prefix}/include'
  947. oldincludedir='/usr/include'
  948. docdir='${datarootdir}/doc/${PACKAGE}'
  949. infodir='${datarootdir}/info'
  950. htmldir='${docdir}'
  951. dvidir='${docdir}'
  952. pdfdir='${docdir}'
  953. psdir='${docdir}'
  954. libdir='${exec_prefix}/lib'
  955. localedir='${datarootdir}/locale'
  956. mandir='${datarootdir}/man'
  957. ac_prev=
  958. ac_dashdash=
  959. for ac_option
  960. do
  961. # If the previous option needs an argument, assign it.
  962. if test -n "$ac_prev"; then
  963. eval $ac_prev=\$ac_option
  964. ac_prev=
  965. continue
  966. fi
  967. case $ac_option in
  968. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  969. *=) ac_optarg= ;;
  970. *) ac_optarg=yes ;;
  971. esac
  972. # Accept the important Cygnus configure options, so we can diagnose typos.
  973. case $ac_dashdash$ac_option in
  974. --)
  975. ac_dashdash=yes ;;
  976. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  977. ac_prev=bindir ;;
  978. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  979. bindir=$ac_optarg ;;
  980. -build | --build | --buil | --bui | --bu)
  981. ac_prev=build_alias ;;
  982. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  983. build_alias=$ac_optarg ;;
  984. -cache-file | --cache-file | --cache-fil | --cache-fi \
  985. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  986. ac_prev=cache_file ;;
  987. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  988. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  989. cache_file=$ac_optarg ;;
  990. --config-cache | -C)
  991. cache_file=config.cache ;;
  992. -datadir | --datadir | --datadi | --datad)
  993. ac_prev=datadir ;;
  994. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  995. datadir=$ac_optarg ;;
  996. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  997. | --dataroo | --dataro | --datar)
  998. ac_prev=datarootdir ;;
  999. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1000. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1001. datarootdir=$ac_optarg ;;
  1002. -disable-* | --disable-*)
  1003. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1004. # Reject names that are not valid shell variable names.
  1005. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1006. as_fn_error $? "invalid feature name: $ac_useropt"
  1007. ac_useropt_orig=$ac_useropt
  1008. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1009. case $ac_user_opts in
  1010. *"
  1011. "enable_$ac_useropt"
  1012. "*) ;;
  1013. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1014. ac_unrecognized_sep=', ';;
  1015. esac
  1016. eval enable_$ac_useropt=no ;;
  1017. -docdir | --docdir | --docdi | --doc | --do)
  1018. ac_prev=docdir ;;
  1019. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1020. docdir=$ac_optarg ;;
  1021. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1022. ac_prev=dvidir ;;
  1023. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1024. dvidir=$ac_optarg ;;
  1025. -enable-* | --enable-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid feature name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "enable_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval enable_$ac_useropt=\$ac_optarg ;;
  1040. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1041. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1042. | --exec | --exe | --ex)
  1043. ac_prev=exec_prefix ;;
  1044. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1045. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1046. | --exec=* | --exe=* | --ex=*)
  1047. exec_prefix=$ac_optarg ;;
  1048. -gas | --gas | --ga | --g)
  1049. # Obsolete; use --with-gas.
  1050. with_gas=yes ;;
  1051. -help | --help | --hel | --he | -h)
  1052. ac_init_help=long ;;
  1053. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1054. ac_init_help=recursive ;;
  1055. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1056. ac_init_help=short ;;
  1057. -host | --host | --hos | --ho)
  1058. ac_prev=host_alias ;;
  1059. -host=* | --host=* | --hos=* | --ho=*)
  1060. host_alias=$ac_optarg ;;
  1061. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1062. ac_prev=htmldir ;;
  1063. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1064. | --ht=*)
  1065. htmldir=$ac_optarg ;;
  1066. -includedir | --includedir | --includedi | --included | --include \
  1067. | --includ | --inclu | --incl | --inc)
  1068. ac_prev=includedir ;;
  1069. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1070. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1071. includedir=$ac_optarg ;;
  1072. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1073. ac_prev=infodir ;;
  1074. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1075. infodir=$ac_optarg ;;
  1076. -libdir | --libdir | --libdi | --libd)
  1077. ac_prev=libdir ;;
  1078. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1079. libdir=$ac_optarg ;;
  1080. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1081. | --libexe | --libex | --libe)
  1082. ac_prev=libexecdir ;;
  1083. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1084. | --libexe=* | --libex=* | --libe=*)
  1085. libexecdir=$ac_optarg ;;
  1086. -localedir | --localedir | --localedi | --localed | --locale)
  1087. ac_prev=localedir ;;
  1088. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1089. localedir=$ac_optarg ;;
  1090. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1091. | --localstate | --localstat | --localsta | --localst | --locals)
  1092. ac_prev=localstatedir ;;
  1093. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1094. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1095. localstatedir=$ac_optarg ;;
  1096. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1097. ac_prev=mandir ;;
  1098. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1099. mandir=$ac_optarg ;;
  1100. -nfp | --nfp | --nf)
  1101. # Obsolete; use --without-fp.
  1102. with_fp=no ;;
  1103. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1104. | --no-cr | --no-c | -n)
  1105. no_create=yes ;;
  1106. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1107. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1108. no_recursion=yes ;;
  1109. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1110. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1111. | --oldin | --oldi | --old | --ol | --o)
  1112. ac_prev=oldincludedir ;;
  1113. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1114. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1115. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1116. oldincludedir=$ac_optarg ;;
  1117. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1118. ac_prev=prefix ;;
  1119. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1120. prefix=$ac_optarg ;;
  1121. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1122. | --program-pre | --program-pr | --program-p)
  1123. ac_prev=program_prefix ;;
  1124. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1125. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1126. program_prefix=$ac_optarg ;;
  1127. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1128. | --program-suf | --program-su | --program-s)
  1129. ac_prev=program_suffix ;;
  1130. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1131. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1132. program_suffix=$ac_optarg ;;
  1133. -program-transform-name | --program-transform-name \
  1134. | --program-transform-nam | --program-transform-na \
  1135. | --program-transform-n | --program-transform- \
  1136. | --program-transform | --program-transfor \
  1137. | --program-transfo | --program-transf \
  1138. | --program-trans | --program-tran \
  1139. | --progr-tra | --program-tr | --program-t)
  1140. ac_prev=program_transform_name ;;
  1141. -program-transform-name=* | --program-transform-name=* \
  1142. | --program-transform-nam=* | --program-transform-na=* \
  1143. | --program-transform-n=* | --program-transform-=* \
  1144. | --program-transform=* | --program-transfor=* \
  1145. | --program-transfo=* | --program-transf=* \
  1146. | --program-trans=* | --program-tran=* \
  1147. | --progr-tra=* | --program-tr=* | --program-t=*)
  1148. program_transform_name=$ac_optarg ;;
  1149. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1150. ac_prev=pdfdir ;;
  1151. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1152. pdfdir=$ac_optarg ;;
  1153. -psdir | --psdir | --psdi | --psd | --ps)
  1154. ac_prev=psdir ;;
  1155. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1156. psdir=$ac_optarg ;;
  1157. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1158. | -silent | --silent | --silen | --sile | --sil)
  1159. silent=yes ;;
  1160. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1161. ac_prev=sbindir ;;
  1162. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1163. | --sbi=* | --sb=*)
  1164. sbindir=$ac_optarg ;;
  1165. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1166. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1167. | --sharedst | --shareds | --shared | --share | --shar \
  1168. | --sha | --sh)
  1169. ac_prev=sharedstatedir ;;
  1170. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1171. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1172. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1173. | --sha=* | --sh=*)
  1174. sharedstatedir=$ac_optarg ;;
  1175. -site | --site | --sit)
  1176. ac_prev=site ;;
  1177. -site=* | --site=* | --sit=*)
  1178. site=$ac_optarg ;;
  1179. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1180. ac_prev=srcdir ;;
  1181. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1182. srcdir=$ac_optarg ;;
  1183. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1184. | --syscon | --sysco | --sysc | --sys | --sy)
  1185. ac_prev=sysconfdir ;;
  1186. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1187. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1188. sysconfdir=$ac_optarg ;;
  1189. -target | --target | --targe | --targ | --tar | --ta | --t)
  1190. ac_prev=target_alias ;;
  1191. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1192. target_alias=$ac_optarg ;;
  1193. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1194. verbose=yes ;;
  1195. -version | --version | --versio | --versi | --vers | -V)
  1196. ac_init_version=: ;;
  1197. -with-* | --with-*)
  1198. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1199. # Reject names that are not valid shell variable names.
  1200. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1201. as_fn_error $? "invalid package name: $ac_useropt"
  1202. ac_useropt_orig=$ac_useropt
  1203. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1204. case $ac_user_opts in
  1205. *"
  1206. "with_$ac_useropt"
  1207. "*) ;;
  1208. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1209. ac_unrecognized_sep=', ';;
  1210. esac
  1211. eval with_$ac_useropt=\$ac_optarg ;;
  1212. -without-* | --without-*)
  1213. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1214. # Reject names that are not valid shell variable names.
  1215. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1216. as_fn_error $? "invalid package name: $ac_useropt"
  1217. ac_useropt_orig=$ac_useropt
  1218. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1219. case $ac_user_opts in
  1220. *"
  1221. "with_$ac_useropt"
  1222. "*) ;;
  1223. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1224. ac_unrecognized_sep=', ';;
  1225. esac
  1226. eval with_$ac_useropt=no ;;
  1227. --x)
  1228. # Obsolete; use --with-x.
  1229. with_x=yes ;;
  1230. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1231. | --x-incl | --x-inc | --x-in | --x-i)
  1232. ac_prev=x_includes ;;
  1233. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1234. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1235. x_includes=$ac_optarg ;;
  1236. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1237. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1238. ac_prev=x_libraries ;;
  1239. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1240. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1241. x_libraries=$ac_optarg ;;
  1242. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1243. Try \`$0 --help' for more information"
  1244. ;;
  1245. *=*)
  1246. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1247. # Reject names that are not valid shell variable names.
  1248. case $ac_envvar in #(
  1249. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1250. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1251. esac
  1252. eval $ac_envvar=\$ac_optarg
  1253. export $ac_envvar ;;
  1254. *)
  1255. # FIXME: should be removed in autoconf 3.0.
  1256. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1257. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1258. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1259. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1260. ;;
  1261. esac
  1262. done
  1263. if test -n "$ac_prev"; then
  1264. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1265. as_fn_error $? "missing argument to $ac_option"
  1266. fi
  1267. if test -n "$ac_unrecognized_opts"; then
  1268. case $enable_option_checking in
  1269. no) ;;
  1270. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1271. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1272. esac
  1273. fi
  1274. # Check all directory arguments for consistency.
  1275. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1276. datadir sysconfdir sharedstatedir localstatedir includedir \
  1277. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1278. libdir localedir mandir
  1279. do
  1280. eval ac_val=\$$ac_var
  1281. # Remove trailing slashes.
  1282. case $ac_val in
  1283. */ )
  1284. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1285. eval $ac_var=\$ac_val;;
  1286. esac
  1287. # Be sure to have absolute directory names.
  1288. case $ac_val in
  1289. [\\/$]* | ?:[\\/]* ) continue;;
  1290. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1291. esac
  1292. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1293. done
  1294. # There might be people who depend on the old broken behavior: `$host'
  1295. # used to hold the argument of --host etc.
  1296. # FIXME: To remove some day.
  1297. build=$build_alias
  1298. host=$host_alias
  1299. target=$target_alias
  1300. # FIXME: To remove some day.
  1301. if test "x$host_alias" != x; then
  1302. if test "x$build_alias" = x; then
  1303. cross_compiling=maybe
  1304. elif test "x$build_alias" != "x$host_alias"; then
  1305. cross_compiling=yes
  1306. fi
  1307. fi
  1308. ac_tool_prefix=
  1309. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1310. test "$silent" = yes && exec 6>/dev/null
  1311. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1312. ac_ls_di=`ls -di .` &&
  1313. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1314. as_fn_error $? "working directory cannot be determined"
  1315. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1316. as_fn_error $? "pwd does not report name of working directory"
  1317. # Find the source files, if location was not specified.
  1318. if test -z "$srcdir"; then
  1319. ac_srcdir_defaulted=yes
  1320. # Try the directory containing this script, then the parent directory.
  1321. ac_confdir=`$as_dirname -- "$as_myself" ||
  1322. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1323. X"$as_myself" : 'X\(//\)[^/]' \| \
  1324. X"$as_myself" : 'X\(//\)$' \| \
  1325. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1326. $as_echo X"$as_myself" |
  1327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1328. s//\1/
  1329. q
  1330. }
  1331. /^X\(\/\/\)[^/].*/{
  1332. s//\1/
  1333. q
  1334. }
  1335. /^X\(\/\/\)$/{
  1336. s//\1/
  1337. q
  1338. }
  1339. /^X\(\/\).*/{
  1340. s//\1/
  1341. q
  1342. }
  1343. s/.*/./; q'`
  1344. srcdir=$ac_confdir
  1345. if test ! -r "$srcdir/$ac_unique_file"; then
  1346. srcdir=..
  1347. fi
  1348. else
  1349. ac_srcdir_defaulted=no
  1350. fi
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1353. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1354. fi
  1355. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1356. ac_abs_confdir=`(
  1357. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1358. pwd)`
  1359. # When building in place, set srcdir=.
  1360. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1361. srcdir=.
  1362. fi
  1363. # Remove unnecessary trailing slashes from srcdir.
  1364. # Double slashes in file names in object file debugging info
  1365. # mess up M-x gdb in Emacs.
  1366. case $srcdir in
  1367. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1368. esac
  1369. for ac_var in $ac_precious_vars; do
  1370. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1371. eval ac_env_${ac_var}_value=\$${ac_var}
  1372. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1373. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1374. done
  1375. #
  1376. # Report the --help message.
  1377. #
  1378. if test "$ac_init_help" = "long"; then
  1379. # Omit some internal or obsolete options to make the list less imposing.
  1380. # This message is too long to be a string in the A/UX 3.1 sh.
  1381. cat <<_ACEOF
  1382. \`configure' configures this package to adapt to many kinds of systems.
  1383. Usage: $0 [OPTION]... [VAR=VALUE]...
  1384. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1385. VAR=VALUE. See below for descriptions of some of the useful variables.
  1386. Defaults for the options are specified in brackets.
  1387. Configuration:
  1388. -h, --help display this help and exit
  1389. --help=short display options specific to this package
  1390. --help=recursive display the short help of all the included packages
  1391. -V, --version display version information and exit
  1392. -q, --quiet, --silent do not print \`checking ...' messages
  1393. --cache-file=FILE cache test results in FILE [disabled]
  1394. -C, --config-cache alias for \`--cache-file=config.cache'
  1395. -n, --no-create do not create output files
  1396. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1397. Installation directories:
  1398. --prefix=PREFIX install architecture-independent files in PREFIX
  1399. [$ac_default_prefix]
  1400. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1401. [PREFIX]
  1402. By default, \`make install' will install all the files in
  1403. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1404. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1405. for instance \`--prefix=\$HOME'.
  1406. For better control, use the options below.
  1407. Fine tuning of the installation directories:
  1408. --bindir=DIR user executables [EPREFIX/bin]
  1409. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1410. --libexecdir=DIR program executables [EPREFIX/libexec]
  1411. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1412. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1413. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1414. --libdir=DIR object code libraries [EPREFIX/lib]
  1415. --includedir=DIR C header files [PREFIX/include]
  1416. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1417. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1418. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1419. --infodir=DIR info documentation [DATAROOTDIR/info]
  1420. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1421. --mandir=DIR man documentation [DATAROOTDIR/man]
  1422. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1423. --htmldir=DIR html documentation [DOCDIR]
  1424. --dvidir=DIR dvi documentation [DOCDIR]
  1425. --pdfdir=DIR pdf documentation [DOCDIR]
  1426. --psdir=DIR ps documentation [DOCDIR]
  1427. _ACEOF
  1428. cat <<\_ACEOF
  1429. X features:
  1430. --x-includes=DIR X include files are in DIR
  1431. --x-libraries=DIR X library files are in DIR
  1432. System types:
  1433. --build=BUILD configure for building on BUILD [guessed]
  1434. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1435. _ACEOF
  1436. fi
  1437. if test -n "$ac_init_help"; then
  1438. cat <<\_ACEOF
  1439. Optional Features:
  1440. --disable-option-checking ignore unrecognized --enable/--with options
  1441. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1442. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1443. --enable-macosx-app create a MacOSX application
  1444. --enable-shared build and link with shared libraries --enable-shared
  1445. --enable-w11 use W11 library for Windows X11 emulation
  1446. --disable-largefile omit support for large files (LFS)
  1447. Optional Packages:
  1448. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1449. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1450. --with-cxx support C++ functionality (default: yes)
  1451. --with-macosx-archs=arch list
  1452. compile multiple architectures on MacOSX, ie.
  1453. universal. Valid architectures are i386, ppc,
  1454. x86_64 and ppc64. (default: no native)
  1455. --with-macosx-sdk=path/sdk
  1456. compile with a system SDK on MacOSX. (default: no)
  1457. --with-tiff support TIFF functionality (default: yes)
  1458. --with-png support PNG functionality (default: yes)
  1459. --with-postgres support PostgreSQL functionality (default: no)
  1460. --with-mysql support MySQL functionality (default: no)
  1461. --with-sqlite support SQLite functionality (default: yes)
  1462. --with-opengl support OpenGL functionality (default: yes)
  1463. --with-odbc support ODBC functionality (default: no)
  1464. --with-fftw support FFTW functionality (default: yes)
  1465. --with-blas support BLAS functionality (default: no)
  1466. --with-lapack support LAPACK functionality (default: no)
  1467. --with-cairo support Cairo functionality (default: yes)
  1468. --with-freetype support FreeType functionality (default: yes)
  1469. --with-nls support NLS functionality (default: no)
  1470. --with-readline support Readline functionality (default: no)
  1471. --with-opendwg support openDWG functionality (default: no)
  1472. --with-regex support regex functionality (default: yes)
  1473. --with-pthread support POSIX threads functionality (default: no)
  1474. --with-openmp support OpenMP functionality (default: no)
  1475. --with-opencl support OpenCL functionality (default: no)
  1476. --with-bzlib support BZIP2 functionality (default: no)
  1477. --with-zstd support Zstandard functionality (default: yes)
  1478. --with-gdal=path/gdal-config
  1479. enable GDAL/OGR support (gdal-config with path,
  1480. e.g. '--with-gdal=/usr/local/bin/gdal-config')
  1481. --with-liblas=path/liblas-config
  1482. enable libLAS support (liblas-config with path,
  1483. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  1484. default: no)
  1485. --with-pdal=path/pdal-config
  1486. enable PDAL support (pdal-config with path,
  1487. e.g. '--with-pdal=/usr/local/bin/pdal-config',
  1488. default: no)
  1489. --with-wxwidgets=path/wx-config
  1490. enable wxWidgets support (wx-config with path,
  1491. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  1492. default: no)
  1493. --with-netcdf=path/nc-config
  1494. enable NetCDF support (nc-config with path,
  1495. e.g. '--with-nc=/usr/local/bin/nc-config',
  1496. default: no)
  1497. --with-geos=path/geos-config
  1498. enable GEOS support (geos-config with path,
  1499. e.g. '--with-geos=/usr/local/bin/geos-config',
  1500. default: no)
  1501. --with-includes=DIRS site include files are in DIRS
  1502. --with-libs=DIRS site library files are in DIRS
  1503. --with-zlib-includes=DIRS
  1504. zlib include files are in DIRS
  1505. --with-zlib-libs=DIRS zlib library files are in DIRS
  1506. --with-bzlib-includes=DIRS
  1507. BZIP2 include files are in DIRS
  1508. --with-bzlib-libs=DIRS BZIP2 library files are in DIRS
  1509. --with-zstd-includes=DIRS
  1510. ZSTD include files are in DIRS
  1511. --with-zstd-libs=DIRS ZSTD library files are in DIRS
  1512. --with-readline-includes=DIRS
  1513. Readline include files are in DIRS
  1514. --with-readline-libs=DIRS
  1515. Readline library files are in DIRS
  1516. --with-tiff-includes=DIRS
  1517. TIFF include files are in DIRS
  1518. --with-tiff-libs=DIRS TIFF library files are in DIRS
  1519. --with-png-includes=DIRS
  1520. PNG include files are in DIRS
  1521. --with-png-libs=DIRS PNG library files are in DIRS
  1522. --with-postgres-includes=DIRS
  1523. PostgreSQL include files are in DIRS
  1524. --with-postgres-libs=DIRS
  1525. PostgreSQL library files are in DIRS
  1526. --with-mysql-includes=DIRS
  1527. MySQL include files are in DIRS
  1528. --with-mysql-libs=DIRS MySQL library files are in DIRS
  1529. --with-sqlite-includes=DIRS
  1530. SQLite include files are in DIRS
  1531. --with-sqlite-libs=DIRS SQLite library files are in DIRS
  1532. --with-opengl-includes=DIRS
  1533. OpenGL include files are in DIRS
  1534. --with-opengl-libs=DIRS OpenGL library files are in DIRS
  1535. --with-opengl-framework=DIR
  1536. OpenGL framework is in DIR
  1537. --with-odbc-includes=DIRS
  1538. ODBC include files are in DIRS
  1539. --with-odbc-libs=DIRS ODBC library files are in DIRS
  1540. --with-fftw-includes=DIRS
  1541. FFTW include files are in DIRS
  1542. --with-fftw-libs=DIRS FFTW library files are in DIRS
  1543. --with-blas-includes=DIRS
  1544. BLAS include files are in DIRS
  1545. --with-blas-libs=DIRS BLAS library files are in DIRS
  1546. --with-lapack-includes=DIRS
  1547. LAPACK include files are in DIRS
  1548. --with-lapack-libs=DIRS LAPACK library files are in DIRS
  1549. --with-cairo-includes=DIRS
  1550. cairo include files are in DIRS
  1551. --with-cairo-libs=DIRS cairo library files are in DIRS
  1552. --with-cairo-ldflags=FLAGS
  1553. cairo needs FLAGS when linking
  1554. --with-freetype-includes=DIRS
  1555. FreeType include files are in DIRS
  1556. --with-freetype-libs=DIRS
  1557. FreeType library files are in DIRS
  1558. --with-proj-includes=DIRS
  1559. External PROJ.4 include files are in DIRS
  1560. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS
  1561. --with-proj-share=DIR External PROJ.4 data files are in DIR
  1562. --with-opendwg-includes=DIRS
  1563. openDWG include files are in DIRS
  1564. --with-opendwg-libs=DIRS
  1565. openDWG library files are in DIRS
  1566. --with-regex-includes=DIRS
  1567. regex include files are in DIRS
  1568. --with-regex-libs=DIRS regex library files are in DIRS
  1569. --with-pthread-includes=DIRS
  1570. POSIX threads include files are in DIRS
  1571. --with-pthread-libs=DIRS
  1572. POSIX threads library files are in DIRS
  1573. --with-openmp-includes=DIRS
  1574. OpenMP include files are in DIRS
  1575. --with-openmp-libs=DIRS OpenMP library files are in DIRS
  1576. --with-opencl-includes=DIRS
  1577. OpenCL include files are in DIRS
  1578. --with-opencl-libs=DIRS OpenCL library files are in DIRS
  1579. --with-x use the X Window System
  1580. Some influential environment variables:
  1581. CC C compiler command
  1582. CFLAGS C compiler flags
  1583. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1584. nonstandard directory <lib dir>
  1585. LIBS libraries to pass to the linker, e.g. -l<library>
  1586. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1587. you have headers in a nonstandard directory <include dir>
  1588. YACC The `Yet Another Compiler Compiler' implementation to use.
  1589. Defaults to the first program found out of: `bison -y', `byacc',
  1590. `yacc'.
  1591. YFLAGS The list of arguments that will be passed by default to $YACC.
  1592. This script will default YFLAGS to the empty string to avoid a
  1593. default value of `-d' given by some make applications.
  1594. CPP C preprocessor
  1595. XMKMF Path to xmkmf, Makefile generator for X Window System
  1596. CXX C++ compiler command
  1597. CXXFLAGS C++ compiler flags
  1598. Use these variables to override the choices made by `configure' or to help
  1599. it to find libraries and programs with nonstandard names/locations.
  1600. Report bugs to the package provider.
  1601. _ACEOF
  1602. ac_status=$?
  1603. fi
  1604. if test "$ac_init_help" = "recursive"; then
  1605. # If there are subdirs, report their specific --help.
  1606. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1607. test -d "$ac_dir" ||
  1608. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1609. continue
  1610. ac_builddir=.
  1611. case "$ac_dir" in
  1612. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1613. *)
  1614. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1615. # A ".." for each directory in $ac_dir_suffix.
  1616. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1617. case $ac_top_builddir_sub in
  1618. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1619. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1620. esac ;;
  1621. esac
  1622. ac_abs_top_builddir=$ac_pwd
  1623. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1624. # for backward compatibility:
  1625. ac_top_builddir=$ac_top_build_prefix
  1626. case $srcdir in
  1627. .) # We are building in place.
  1628. ac_srcdir=.
  1629. ac_top_srcdir=$ac_top_builddir_sub
  1630. ac_abs_top_srcdir=$ac_pwd ;;
  1631. [\\/]* | ?:[\\/]* ) # Absolute name.
  1632. ac_srcdir=$srcdir$ac_dir_suffix;
  1633. ac_top_srcdir=$srcdir
  1634. ac_abs_top_srcdir=$srcdir ;;
  1635. *) # Relative name.
  1636. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1637. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1638. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1639. esac
  1640. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1641. cd "$ac_dir" || { ac_status=$?; continue; }
  1642. # Check for guested configure.
  1643. if test -f "$ac_srcdir/configure.gnu"; then
  1644. echo &&
  1645. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1646. elif test -f "$ac_srcdir/configure"; then
  1647. echo &&
  1648. $SHELL "$ac_srcdir/configure" --help=recursive
  1649. else
  1650. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1651. fi || ac_status=$?
  1652. cd "$ac_pwd" || { ac_status=$?; break; }
  1653. done
  1654. fi
  1655. test -n "$ac_init_help" && exit $ac_status
  1656. if $ac_init_version; then
  1657. cat <<\_ACEOF
  1658. configure
  1659. generated by GNU Autoconf 2.69
  1660. Copyright (C) 2012 Free Software Foundation, Inc.
  1661. This configure script is free software; the Free Software Foundation
  1662. gives unlimited permission to copy, distribute and modify it.
  1663. _ACEOF
  1664. exit
  1665. fi
  1666. ## ------------------------ ##
  1667. ## Autoconf initialization. ##
  1668. ## ------------------------ ##
  1669. # ac_fn_c_try_compile LINENO
  1670. # --------------------------
  1671. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1672. ac_fn_c_try_compile ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. rm -f conftest.$ac_objext
  1676. if { { ac_try="$ac_compile"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_compile") 2>conftest.err
  1684. ac_status=$?
  1685. if test -s conftest.err; then
  1686. grep -v '^ *+' conftest.err >conftest.er1
  1687. cat conftest.er1 >&5
  1688. mv -f conftest.er1 conftest.err
  1689. fi
  1690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691. test $ac_status = 0; } && {
  1692. test -z "$ac_c_werror_flag" ||
  1693. test ! -s conftest.err
  1694. } && test -s conftest.$ac_objext; then :
  1695. ac_retval=0
  1696. else
  1697. $as_echo "$as_me: failed program was:" >&5
  1698. sed 's/^/| /' conftest.$ac_ext >&5
  1699. ac_retval=1
  1700. fi
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_c_try_compile
  1704. # ac_fn_c_try_run LINENO
  1705. # ----------------------
  1706. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1707. # that executables *can* be run.
  1708. ac_fn_c_try_run ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. if { { ac_try="$ac_link"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_link") 2>&5
  1719. ac_status=$?
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1722. { { case "(($ac_try" in
  1723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1724. *) ac_try_echo=$ac_try;;
  1725. esac
  1726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1727. $as_echo "$ac_try_echo"; } >&5
  1728. (eval "$ac_try") 2>&5
  1729. ac_status=$?
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; }; }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: program exited with status $ac_status" >&5
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=$ac_status
  1738. fi
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_run
  1743. # ac_fn_c_try_link LINENO
  1744. # -----------------------
  1745. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1746. ac_fn_c_try_link ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. rm -f conftest.$ac_objext conftest$ac_exeext
  1750. if { { ac_try="$ac_link"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1756. $as_echo "$ac_try_echo"; } >&5
  1757. (eval "$ac_link") 2>conftest.err
  1758. ac_status=$?
  1759. if test -s conftest.err; then
  1760. grep -v '^ *+' conftest.err >conftest.er1
  1761. cat conftest.er1 >&5
  1762. mv -f conftest.er1 conftest.err
  1763. fi
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; } && {
  1766. test -z "$ac_c_werror_flag" ||
  1767. test ! -s conftest.err
  1768. } && test -s conftest$ac_exeext && {
  1769. test "$cross_compiling" = yes ||
  1770. test -x conftest$ac_exeext
  1771. }; then :
  1772. ac_retval=0
  1773. else
  1774. $as_echo "$as_me: failed program was:" >&5
  1775. sed 's/^/| /' conftest.$ac_ext >&5
  1776. ac_retval=1
  1777. fi
  1778. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1779. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1780. # interfere with the next link command; also delete a directory that is
  1781. # left behind by Apple's compiler. We do this before executing the actions.
  1782. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1783. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1784. as_fn_set_status $ac_retval
  1785. } # ac_fn_c_try_link
  1786. # ac_fn_c_try_cpp LINENO
  1787. # ----------------------
  1788. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1789. ac_fn_c_try_cpp ()
  1790. {
  1791. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1793. case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1800. ac_status=$?
  1801. if test -s conftest.err; then
  1802. grep -v '^ *+' conftest.err >conftest.er1
  1803. cat conftest.er1 >&5
  1804. mv -f conftest.er1 conftest.err
  1805. fi
  1806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1807. test $ac_status = 0; } > conftest.i && {
  1808. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1809. test ! -s conftest.err
  1810. }; then :
  1811. ac_retval=0
  1812. else
  1813. $as_echo "$as_me: failed program was:" >&5
  1814. sed 's/^/| /' conftest.$ac_ext >&5
  1815. ac_retval=1
  1816. fi
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_c_try_cpp
  1820. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1821. # -------------------------------------------------------
  1822. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1823. # the include files in INCLUDES and setting the cache variable VAR
  1824. # accordingly.
  1825. ac_fn_c_check_header_mongrel ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. if eval \${$3+:} false; then :
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1830. $as_echo_n "checking for $2... " >&6; }
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. else
  1835. # Is the header compilable?
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1837. $as_echo_n "checking $2 usability... " >&6; }
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. #include <$2>
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844. ac_header_compiler=yes
  1845. else
  1846. ac_header_compiler=no
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1850. $as_echo "$ac_header_compiler" >&6; }
  1851. # Is the header present?
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1853. $as_echo_n "checking $2 presence... " >&6; }
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. #include <$2>
  1857. _ACEOF
  1858. if ac_fn_c_try_cpp "$LINENO"; then :
  1859. ac_header_preproc=yes
  1860. else
  1861. ac_header_preproc=no
  1862. fi
  1863. rm -f conftest.err conftest.i conftest.$ac_ext
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1865. $as_echo "$ac_header_preproc" >&6; }
  1866. # So? What about this header?
  1867. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1868. yes:no: )
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1870. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1872. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1873. ;;
  1874. no:yes:* )
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1876. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1878. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1880. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1882. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1884. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1885. ;;
  1886. esac
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1888. $as_echo_n "checking for $2... " >&6; }
  1889. eval "$3=\$ac_header_compiler"
  1890. eval ac_res=\$$3
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1892. $as_echo "$ac_res" >&6; }
  1893. fi
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. } # ac_fn_c_check_header_mongrel
  1896. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1897. # -------------------------------------------------------
  1898. # Tests whether HEADER exists and can be compiled using the include files in
  1899. # INCLUDES, setting the cache variable VAR accordingly.
  1900. ac_fn_c_check_header_compile ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1904. $as_echo_n "checking for $2... " >&6; }
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. #include <$2>
  1909. _ACEOF
  1910. if ac_fn_c_try_compile "$LINENO"; then :
  1911. eval "$3=yes"
  1912. else
  1913. eval "$3=no"
  1914. fi
  1915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1916. eval ac_res=\$$3
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1918. $as_echo "$ac_res" >&6; }
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. } # ac_fn_c_check_header_compile
  1921. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1922. # -------------------------------------------
  1923. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1924. # variable VAR accordingly.
  1925. ac_fn_c_check_type ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1929. $as_echo_n "checking for $2... " >&6; }
  1930. eval "$3=no"
  1931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1932. /* end confdefs.h. */
  1933. $4
  1934. int
  1935. main ()
  1936. {
  1937. if (sizeof ($2))
  1938. return 0;
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. if ac_fn_c_try_compile "$LINENO"; then :
  1944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1945. /* end confdefs.h. */
  1946. $4
  1947. int
  1948. main ()
  1949. {
  1950. if (sizeof (($2)))
  1951. return 0;
  1952. ;
  1953. return 0;
  1954. }
  1955. _ACEOF
  1956. if ac_fn_c_try_compile "$LINENO"; then :
  1957. else
  1958. eval "$3=yes"
  1959. fi
  1960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1961. fi
  1962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. } # ac_fn_c_check_type
  1968. # ac_fn_c_check_func LINENO FUNC VAR
  1969. # ----------------------------------
  1970. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1971. ac_fn_c_check_func ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1979. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1980. #define $2 innocuous_$2
  1981. /* System header to define __stub macros and hopefully few prototypes,
  1982. which can conflict with char $2 (); below.
  1983. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1984. <limits.h> exists even on freestanding compilers. */
  1985. #ifdef __STDC__
  1986. # include <limits.h>
  1987. #else
  1988. # include <assert.h>
  1989. #endif
  1990. #undef $2
  1991. /* Override any GCC internal prototype to avoid an error.
  1992. Use char because int might match the return type of a GCC
  1993. builtin and then its argument prototype would still apply. */
  1994. #ifdef __cplusplus
  1995. extern "C"
  1996. #endif
  1997. char $2 ();
  1998. /* The GNU C library defines this for functions which it implements
  1999. to always fail with ENOSYS. Some functions are actually named
  2000. something starting with __ and the normal name is an alias. */
  2001. #if defined __stub_$2 || defined __stub___$2
  2002. choke me
  2003. #endif
  2004. int
  2005. main ()
  2006. {
  2007. return $2 ();
  2008. ;
  2009. return 0;
  2010. }
  2011. _ACEOF
  2012. if ac_fn_c_try_link "$LINENO"; then :
  2013. eval "$3=yes"
  2014. else
  2015. eval "$3=no"
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext \
  2018. conftest$ac_exeext conftest.$ac_ext
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2023. } # ac_fn_c_check_func
  2024. # ac_fn_cxx_try_compile LINENO
  2025. # ----------------------------
  2026. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2027. ac_fn_cxx_try_compile ()
  2028. {
  2029. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2030. rm -f conftest.$ac_objext
  2031. if { { ac_try="$ac_compile"
  2032. case "(($ac_try" in
  2033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2034. *) ac_try_echo=$ac_try;;
  2035. esac
  2036. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2037. $as_echo "$ac_try_echo"; } >&5
  2038. (eval "$ac_compile") 2>conftest.err
  2039. ac_status=$?
  2040. if test -s conftest.err; then
  2041. grep -v '^ *+' conftest.err >conftest.er1
  2042. cat conftest.er1 >&5
  2043. mv -f conftest.er1 conftest.err
  2044. fi
  2045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2046. test $ac_status = 0; } && {
  2047. test -z "$ac_cxx_werror_flag" ||
  2048. test ! -s conftest.err
  2049. } && test -s conftest.$ac_objext; then :
  2050. ac_retval=0
  2051. else
  2052. $as_echo "$as_me: failed program was:" >&5
  2053. sed 's/^/| /' conftest.$ac_ext >&5
  2054. ac_retval=1
  2055. fi
  2056. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2057. as_fn_set_status $ac_retval
  2058. } # ac_fn_cxx_try_compile
  2059. # ac_fn_cxx_try_link LINENO
  2060. # -------------------------
  2061. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2062. ac_fn_cxx_try_link ()
  2063. {
  2064. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2065. rm -f conftest.$ac_objext conftest$ac_exeext
  2066. if { { ac_try="$ac_link"
  2067. case "(($ac_try" in
  2068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2069. *) ac_try_echo=$ac_try;;
  2070. esac
  2071. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2072. $as_echo "$ac_try_echo"; } >&5
  2073. (eval "$ac_link") 2>conftest.err
  2074. ac_status=$?
  2075. if test -s conftest.err; then
  2076. grep -v '^ *+' conftest.err >conftest.er1
  2077. cat conftest.er1 >&5
  2078. mv -f conftest.er1 conftest.err
  2079. fi
  2080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2081. test $ac_status = 0; } && {
  2082. test -z "$ac_cxx_werror_flag" ||
  2083. test ! -s conftest.err
  2084. } && test -s conftest$ac_exeext && {
  2085. test "$cross_compiling" = yes ||
  2086. test -x conftest$ac_exeext
  2087. }; then :
  2088. ac_retval=0
  2089. else
  2090. $as_echo "$as_me: failed program was:" >&5
  2091. sed 's/^/| /' conftest.$ac_ext >&5
  2092. ac_retval=1
  2093. fi
  2094. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2095. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2096. # interfere with the next link command; also delete a directory that is
  2097. # left behind by Apple's compiler. We do this before executing the actions.
  2098. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2099. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2100. as_fn_set_status $ac_retval
  2101. } # ac_fn_cxx_try_link
  2102. # ac_fn_cxx_check_func LINENO FUNC VAR
  2103. # ------------------------------------
  2104. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2105. ac_fn_cxx_check_func ()
  2106. {
  2107. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2109. $as_echo_n "checking for $2... " >&6; }
  2110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2111. /* end confdefs.h. */
  2112. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2113. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2114. #define $2 innocuous_$2
  2115. /* System header to define __stub macros and hopefully few prototypes,
  2116. which can conflict with char $2 (); below.
  2117. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2118. <limits.h> exists even on freestanding compilers. */
  2119. #ifdef __STDC__
  2120. # include <limits.h>
  2121. #else
  2122. # include <assert.h>
  2123. #endif
  2124. #undef $2
  2125. /* Override any GCC internal prototype to avoid an error.
  2126. Use char because int might match the return type of a GCC
  2127. builtin and then its argument prototype would still apply. */
  2128. #ifdef __cplusplus
  2129. extern "C"
  2130. #endif
  2131. char $2 ();
  2132. /* The GNU C library defines this for functions which it implements
  2133. to always fail with ENOSYS. Some functions are actually named
  2134. something starting with __ and the normal name is an alias. */
  2135. #if defined __stub_$2 || defined __stub___$2
  2136. choke me
  2137. #endif
  2138. int
  2139. main ()
  2140. {
  2141. return $2 ();
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_cxx_try_link "$LINENO"; then :
  2147. eval "$3=yes"
  2148. else
  2149. eval "$3=no"
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext \
  2152. conftest$ac_exeext conftest.$ac_ext
  2153. eval ac_res=\$$3
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2155. $as_echo "$ac_res" >&6; }
  2156. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2157. } # ac_fn_cxx_check_func
  2158. cat >config.log <<_ACEOF
  2159. This file contains any messages produced by compilers while
  2160. running configure, to aid debugging if configure makes a mistake.
  2161. It was created by $as_me, which was
  2162. generated by GNU Autoconf 2.69. Invocation command line was
  2163. $ $0 $@
  2164. _ACEOF
  2165. exec 5>>config.log
  2166. {
  2167. cat <<_ASUNAME
  2168. ## --------- ##
  2169. ## Platform. ##
  2170. ## --------- ##
  2171. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2172. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2173. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2174. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2175. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2176. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2177. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2178. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2179. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2180. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2181. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2182. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2183. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2184. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2185. _ASUNAME
  2186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2187. for as_dir in $PATH
  2188. do
  2189. IFS=$as_save_IFS
  2190. test -z "$as_dir" && as_dir=.
  2191. $as_echo "PATH: $as_dir"
  2192. done
  2193. IFS=$as_save_IFS
  2194. } >&5
  2195. cat >&5 <<_ACEOF
  2196. ## ----------- ##
  2197. ## Core tests. ##
  2198. ## ----------- ##
  2199. _ACEOF
  2200. # Keep a trace of the command line.
  2201. # Strip out --no-create and --no-recursion so they do not pile up.
  2202. # Strip out --silent because we don't want to record it for future runs.
  2203. # Also quote any args containing shell meta-characters.
  2204. # Make two passes to allow for proper duplicate-argument suppression.
  2205. ac_configure_args=
  2206. ac_configure_args0=
  2207. ac_configure_args1=
  2208. ac_must_keep_next=false
  2209. for ac_pass in 1 2
  2210. do
  2211. for ac_arg
  2212. do
  2213. case $ac_arg in
  2214. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2215. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2216. | -silent | --silent | --silen | --sile | --sil)
  2217. continue ;;
  2218. *\'*)
  2219. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2220. esac
  2221. case $ac_pass in
  2222. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2223. 2)
  2224. as_fn_append ac_configure_args1 " '$ac_arg'"
  2225. if test $ac_must_keep_next = true; then
  2226. ac_must_keep_next=false # Got value, back to normal.
  2227. else
  2228. case $ac_arg in
  2229. *=* | --config-cache | -C | -disable-* | --disable-* \
  2230. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2231. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2232. | -with-* | --with-* | -without-* | --without-* | --x)
  2233. case "$ac_configure_args0 " in
  2234. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2235. esac
  2236. ;;
  2237. -* ) ac_must_keep_next=true ;;
  2238. esac
  2239. fi
  2240. as_fn_append ac_configure_args " '$ac_arg'"
  2241. ;;
  2242. esac
  2243. done
  2244. done
  2245. { ac_configure_args0=; unset ac_configure_args0;}
  2246. { ac_configure_args1=; unset ac_configure_args1;}
  2247. # When interrupted or exit'd, cleanup temporary files, and complete
  2248. # config.log. We remove comments because anyway the quotes in there
  2249. # would cause problems or look ugly.
  2250. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2251. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2252. trap 'exit_status=$?
  2253. # Save into config.log some information that might help in debugging.
  2254. {
  2255. echo
  2256. $as_echo "## ---------------- ##
  2257. ## Cache variables. ##
  2258. ## ---------------- ##"
  2259. echo
  2260. # The following way of writing the cache mishandles newlines in values,
  2261. (
  2262. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2263. eval ac_val=\$$ac_var
  2264. case $ac_val in #(
  2265. *${as_nl}*)
  2266. case $ac_var in #(
  2267. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2268. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2269. esac
  2270. case $ac_var in #(
  2271. _ | IFS | as_nl) ;; #(
  2272. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2273. *) { eval $ac_var=; unset $ac_var;} ;;
  2274. esac ;;
  2275. esac
  2276. done
  2277. (set) 2>&1 |
  2278. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2279. *${as_nl}ac_space=\ *)
  2280. sed -n \
  2281. "s/'\''/'\''\\\\'\'''\''/g;
  2282. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2283. ;; #(
  2284. *)
  2285. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2286. ;;
  2287. esac |
  2288. sort
  2289. )
  2290. echo
  2291. $as_echo "## ----------------- ##
  2292. ## Output variables. ##
  2293. ## ----------------- ##"
  2294. echo
  2295. for ac_var in $ac_subst_vars
  2296. do
  2297. eval ac_val=\$$ac_var
  2298. case $ac_val in
  2299. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2300. esac
  2301. $as_echo "$ac_var='\''$ac_val'\''"
  2302. done | sort
  2303. echo
  2304. if test -n "$ac_subst_files"; then
  2305. $as_echo "## ------------------- ##
  2306. ## File substitutions. ##
  2307. ## ------------------- ##"
  2308. echo
  2309. for ac_var in $ac_subst_files
  2310. do
  2311. eval ac_val=\$$ac_var
  2312. case $ac_val in
  2313. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2314. esac
  2315. $as_echo "$ac_var='\''$ac_val'\''"
  2316. done | sort
  2317. echo
  2318. fi
  2319. if test -s confdefs.h; then
  2320. $as_echo "## ----------- ##
  2321. ## confdefs.h. ##
  2322. ## ----------- ##"
  2323. echo
  2324. cat confdefs.h
  2325. echo
  2326. fi
  2327. test "$ac_signal" != 0 &&
  2328. $as_echo "$as_me: caught signal $ac_signal"
  2329. $as_echo "$as_me: exit $exit_status"
  2330. } >&5
  2331. rm -f core *.core core.conftest.* &&
  2332. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2333. exit $exit_status
  2334. ' 0
  2335. for ac_signal in 1 2 13 15; do
  2336. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2337. done
  2338. ac_signal=0
  2339. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2340. rm -f -r conftest* confdefs.h
  2341. $as_echo "/* confdefs.h */" > confdefs.h
  2342. # Predefined preprocessor variables.
  2343. cat >>confdefs.h <<_ACEOF
  2344. #define PACKAGE_NAME "$PACKAGE_NAME"
  2345. _ACEOF
  2346. cat >>confdefs.h <<_ACEOF
  2347. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2348. _ACEOF
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2351. _ACEOF
  2352. cat >>confdefs.h <<_ACEOF
  2353. #define PACKAGE_STRING "$PACKAGE_STRING"
  2354. _ACEOF
  2355. cat >>confdefs.h <<_ACEOF
  2356. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2357. _ACEOF
  2358. cat >>confdefs.h <<_ACEOF
  2359. #define PACKAGE_URL "$PACKAGE_URL"
  2360. _ACEOF
  2361. # Let the site file select an alternate cache file if it wants to.
  2362. # Prefer an explicitly selected file to automatically selected ones.
  2363. ac_site_file1=NONE
  2364. ac_site_file2=NONE
  2365. if test -n "$CONFIG_SITE"; then
  2366. # We do not want a PATH search for config.site.
  2367. case $CONFIG_SITE in #((
  2368. -*) ac_site_file1=./$CONFIG_SITE;;
  2369. */*) ac_site_file1=$CONFIG_SITE;;
  2370. *) ac_site_file1=./$CONFIG_SITE;;
  2371. esac
  2372. elif test "x$prefix" != xNONE; then
  2373. ac_site_file1=$prefix/share/config.site
  2374. ac_site_file2=$prefix/etc/config.site
  2375. else
  2376. ac_site_file1=$ac_default_prefix/share/config.site
  2377. ac_site_file2=$ac_default_prefix/etc/config.site
  2378. fi
  2379. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2380. do
  2381. test "x$ac_site_file" = xNONE && continue
  2382. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2384. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2385. sed 's/^/| /' "$ac_site_file" >&5
  2386. . "$ac_site_file" \
  2387. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2389. as_fn_error $? "failed to load site script $ac_site_file
  2390. See \`config.log' for more details" "$LINENO" 5; }
  2391. fi
  2392. done
  2393. # Check that the precious variables saved in the cache have kept the same
  2394. # value.
  2395. ac_cache_corrupted=false
  2396. for ac_var in $ac_precious_vars; do
  2397. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2398. eval ac_new_set=\$ac_env_${ac_var}_set
  2399. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2400. eval ac_new_val=\$ac_env_${ac_var}_value
  2401. case $ac_old_set,$ac_new_set in
  2402. set,)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,set)
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2408. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2409. ac_cache_corrupted=: ;;
  2410. ,);;
  2411. *)
  2412. if test "x$ac_old_val" != "x$ac_new_val"; then
  2413. # differences in whitespace do not lead to failure.
  2414. ac_old_val_w=`echo x $ac_old_val`
  2415. ac_new_val_w=`echo x $ac_new_val`
  2416. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2418. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2419. ac_cache_corrupted=:
  2420. else
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2422. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2423. eval $ac_var=\$ac_old_val
  2424. fi
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2426. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2428. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2429. fi;;
  2430. esac
  2431. # Pass precious variables to config.status.
  2432. if test "$ac_new_set" = set; then
  2433. case $ac_new_val in
  2434. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2435. *) ac_arg=$ac_var=$ac_new_val ;;
  2436. esac
  2437. case " $ac_configure_args " in
  2438. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2439. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2440. esac
  2441. fi
  2442. done
  2443. if $ac_cache_corrupted; then
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2447. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2448. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2449. fi
  2450. ## -------------------- ##
  2451. ## Main body of script. ##
  2452. ## -------------------- ##
  2453. ac_ext=c
  2454. ac_cpp='$CPP $CPPFLAGS'
  2455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2458. ac_config_headers="$ac_config_headers include/grass/config.h"
  2459. ac_aux_dir=
  2460. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2461. if test -f "$ac_dir/install-sh"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/install-sh -c"
  2464. break
  2465. elif test -f "$ac_dir/install.sh"; then
  2466. ac_aux_dir=$ac_dir
  2467. ac_install_sh="$ac_aux_dir/install.sh -c"
  2468. break
  2469. elif test -f "$ac_dir/shtool"; then
  2470. ac_aux_dir=$ac_dir
  2471. ac_install_sh="$ac_aux_dir/shtool install -c"
  2472. break
  2473. fi
  2474. done
  2475. if test -z "$ac_aux_dir"; then
  2476. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2477. fi
  2478. # These three variables are undocumented and unsupported,
  2479. # and are intended to be withdrawn in a future Autoconf release.
  2480. # They can cause serious problems if a builder's source tree is in a directory
  2481. # whose full name contains unusual characters.
  2482. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2483. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2484. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2485. # Make sure we can run config.sub.
  2486. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2487. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2489. $as_echo_n "checking build system type... " >&6; }
  2490. ac_build_alias=$build_alias
  2491. test "x$ac_build_alias" = x &&
  2492. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2493. test "x$ac_build_alias" = x &&
  2494. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2495. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2496. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2498. $as_echo "$ac_cv_build" >&6; }
  2499. case $ac_cv_build in
  2500. *-*-*) ;;
  2501. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2502. esac
  2503. build=$ac_cv_build
  2504. ac_save_IFS=$IFS; IFS='-'
  2505. set x $ac_cv_build
  2506. shift
  2507. build_cpu=$1
  2508. build_vendor=$2
  2509. shift; shift
  2510. # Remember, the first character of IFS is used to create $*,
  2511. # except with old shells:
  2512. build_os=$*
  2513. IFS=$ac_save_IFS
  2514. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2516. $as_echo_n "checking host system type... " >&6; }
  2517. if test "x$host_alias" = x; then
  2518. ac_cv_host=$ac_cv_build
  2519. else
  2520. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2524. $as_echo "$ac_cv_host" >&6; }
  2525. case $ac_cv_host in
  2526. *-*-*) ;;
  2527. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2528. esac
  2529. host=$ac_cv_host
  2530. ac_save_IFS=$IFS; IFS='-'
  2531. set x $ac_cv_host
  2532. shift
  2533. host_cpu=$1
  2534. host_vendor=$2
  2535. shift; shift
  2536. # Remember, the first character of IFS is used to create $*,
  2537. # except with old shells:
  2538. host_os=$*
  2539. IFS=$ac_save_IFS
  2540. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2541. ac_ext=c
  2542. ac_cpp='$CPP $CPPFLAGS'
  2543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2546. if test -n "$ac_tool_prefix"; then
  2547. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2548. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if test -n "$CC"; then
  2552. ac_cv_prog_CC="$CC" # Let the user override the test.
  2553. else
  2554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2555. for as_dir in $PATH
  2556. do
  2557. IFS=$as_save_IFS
  2558. test -z "$as_dir" && as_dir=.
  2559. for ac_exec_ext in '' $ac_executable_extensions; do
  2560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2561. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2563. break 2
  2564. fi
  2565. done
  2566. done
  2567. IFS=$as_save_IFS
  2568. fi
  2569. CC=$ac_cv_prog_CC
  2570. if test -n "$CC"; then
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2572. $as_echo "$CC" >&6; }
  2573. else
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2575. $as_echo "no" >&6; }
  2576. fi
  2577. fi
  2578. if test -z "$ac_cv_prog_CC"; then
  2579. ac_ct_CC=$CC
  2580. # Extract the first word of "gcc", so it can be a program name with args.
  2581. set dummy gcc; ac_word=$2
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2583. $as_echo_n "checking for $ac_word... " >&6; }
  2584. if test -n "$ac_ct_CC"; then
  2585. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2586. else
  2587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2588. for as_dir in $PATH
  2589. do
  2590. IFS=$as_save_IFS
  2591. test -z "$as_dir" && as_dir=.
  2592. for ac_exec_ext in '' $ac_executable_extensions; do
  2593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2594. ac_cv_prog_ac_ct_CC="gcc"
  2595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2596. break 2
  2597. fi
  2598. done
  2599. done
  2600. IFS=$as_save_IFS
  2601. fi
  2602. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2603. if test -n "$ac_ct_CC"; then
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2605. $as_echo "$ac_ct_CC" >&6; }
  2606. else
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2608. $as_echo "no" >&6; }
  2609. fi
  2610. if test "x$ac_ct_CC" = x; then
  2611. CC=""
  2612. else
  2613. case $cross_compiling:$ac_tool_warned in
  2614. yes:)
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2617. ac_tool_warned=yes ;;
  2618. esac
  2619. CC=$ac_ct_CC
  2620. fi
  2621. else
  2622. CC="$ac_cv_prog_CC"
  2623. fi
  2624. if test -z "$CC"; then
  2625. if test -n "$ac_tool_prefix"; then
  2626. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2627. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if test -n "$CC"; then
  2631. ac_cv_prog_CC="$CC" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. CC=$ac_cv_prog_CC
  2649. if test -n "$CC"; then
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2651. $as_echo "$CC" >&6; }
  2652. else
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2654. $as_echo "no" >&6; }
  2655. fi
  2656. fi
  2657. fi
  2658. if test -z "$CC"; then
  2659. # Extract the first word of "cc", so it can be a program name with args.
  2660. set dummy cc; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if test -n "$CC"; then
  2664. ac_cv_prog_CC="$CC" # Let the user override the test.
  2665. else
  2666. ac_prog_rejected=no
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2675. ac_prog_rejected=yes
  2676. continue
  2677. fi
  2678. ac_cv_prog_CC="cc"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. if test $ac_prog_rejected = yes; then
  2686. # We found a bogon in the path, so make sure we never use it.
  2687. set dummy $ac_cv_prog_CC
  2688. shift
  2689. if test $# != 0; then
  2690. # We chose a different compiler from the bogus one.
  2691. # However, it has the same basename, so the bogon will be chosen
  2692. # first if we set CC to just the basename; use the full file name.
  2693. shift
  2694. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2695. fi
  2696. fi
  2697. fi
  2698. CC=$ac_cv_prog_CC
  2699. if test -n "$CC"; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2701. $as_echo "$CC" >&6; }
  2702. else
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2704. $as_echo "no" >&6; }
  2705. fi
  2706. fi
  2707. if test -z "$CC"; then
  2708. if test -n "$ac_tool_prefix"; then
  2709. for ac_prog in cl.exe
  2710. do
  2711. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2712. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if test -n "$CC"; then
  2716. ac_cv_prog_CC="$CC" # Let the user override the test.
  2717. else
  2718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2719. for as_dir in $PATH
  2720. do
  2721. IFS=$as_save_IFS
  2722. test -z "$as_dir" && as_dir=.
  2723. for ac_exec_ext in '' $ac_executable_extensions; do
  2724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2725. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2727. break 2
  2728. fi
  2729. done
  2730. done
  2731. IFS=$as_save_IFS
  2732. fi
  2733. CC=$ac_cv_prog_CC
  2734. if test -n "$CC"; then
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2736. $as_echo "$CC" >&6; }
  2737. else
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2739. $as_echo "no" >&6; }
  2740. fi
  2741. test -n "$CC" && break
  2742. done
  2743. fi
  2744. if test -z "$CC"; then
  2745. ac_ct_CC=$CC
  2746. for ac_prog in cl.exe
  2747. do
  2748. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2749. set dummy $ac_prog; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if test -n "$ac_ct_CC"; then
  2753. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2754. else
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2762. ac_cv_prog_ac_ct_CC="$ac_prog"
  2763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2764. break 2
  2765. fi
  2766. done
  2767. done
  2768. IFS=$as_save_IFS
  2769. fi
  2770. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2771. if test -n "$ac_ct_CC"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2773. $as_echo "$ac_ct_CC" >&6; }
  2774. else
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2776. $as_echo "no" >&6; }
  2777. fi
  2778. test -n "$ac_ct_CC" && break
  2779. done
  2780. if test "x$ac_ct_CC" = x; then
  2781. CC=""
  2782. else
  2783. case $cross_compiling:$ac_tool_warned in
  2784. yes:)
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2787. ac_tool_warned=yes ;;
  2788. esac
  2789. CC=$ac_ct_CC
  2790. fi
  2791. fi
  2792. fi
  2793. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2794. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2795. as_fn_error $? "no acceptable C compiler found in \$PATH
  2796. See \`config.log' for more details" "$LINENO" 5; }
  2797. # Provide some information about the compiler.
  2798. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2799. set X $ac_compile
  2800. ac_compiler=$2
  2801. for ac_option in --version -v -V -qversion; do
  2802. { { ac_try="$ac_compiler $ac_option >&5"
  2803. case "(($ac_try" in
  2804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2805. *) ac_try_echo=$ac_try;;
  2806. esac
  2807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2808. $as_echo "$ac_try_echo"; } >&5
  2809. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2810. ac_status=$?
  2811. if test -s conftest.err; then
  2812. sed '10a\
  2813. ... rest of stderr output deleted ...
  2814. 10q' conftest.err >conftest.er1
  2815. cat conftest.er1 >&5
  2816. fi
  2817. rm -f conftest.er1 conftest.err
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2819. test $ac_status = 0; }
  2820. done
  2821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end confdefs.h. */
  2823. int
  2824. main ()
  2825. {
  2826. ;
  2827. return 0;
  2828. }
  2829. _ACEOF
  2830. ac_clean_files_save=$ac_clean_files
  2831. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2832. # Try to create an executable without -o first, disregard a.out.
  2833. # It will help us diagnose broken compilers, and finding out an intuition
  2834. # of exeext.
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2836. $as_echo_n "checking whether the C compiler works... " >&6; }
  2837. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2838. # The possible output files:
  2839. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2840. ac_rmfiles=
  2841. for ac_file in $ac_files
  2842. do
  2843. case $ac_file in
  2844. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2845. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2846. esac
  2847. done
  2848. rm -f $ac_rmfiles
  2849. if { { ac_try="$ac_link_default"
  2850. case "(($ac_try" in
  2851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2852. *) ac_try_echo=$ac_try;;
  2853. esac
  2854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2855. $as_echo "$ac_try_echo"; } >&5
  2856. (eval "$ac_link_default") 2>&5
  2857. ac_status=$?
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2859. test $ac_status = 0; }; then :
  2860. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2861. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2862. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2863. # so that the user can short-circuit this test for compilers unknown to
  2864. # Autoconf.
  2865. for ac_file in $ac_files ''
  2866. do
  2867. test -f "$ac_file" || continue
  2868. case $ac_file in
  2869. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2870. ;;
  2871. [ab].out )
  2872. # We found the default executable, but exeext='' is most
  2873. # certainly right.
  2874. break;;
  2875. *.* )
  2876. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2877. then :; else
  2878. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2879. fi
  2880. # We set ac_cv_exeext here because the later test for it is not
  2881. # safe: cross compilers may not add the suffix if given an `-o'
  2882. # argument, so we may need to know it at that point already.
  2883. # Even if this section looks crufty: it has the advantage of
  2884. # actually working.
  2885. break;;
  2886. * )
  2887. break;;
  2888. esac
  2889. done
  2890. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2891. else
  2892. ac_file=''
  2893. fi
  2894. if test -z "$ac_file"; then :
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2896. $as_echo "no" >&6; }
  2897. $as_echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2901. as_fn_error 77 "C compiler cannot create executables
  2902. See \`config.log' for more details" "$LINENO" 5; }
  2903. else
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2905. $as_echo "yes" >&6; }
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2908. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2910. $as_echo "$ac_file" >&6; }
  2911. ac_exeext=$ac_cv_exeext
  2912. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2913. ac_clean_files=$ac_clean_files_save
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2915. $as_echo_n "checking for suffix of executables... " >&6; }
  2916. if { { ac_try="$ac_link"
  2917. case "(($ac_try" in
  2918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2919. *) ac_try_echo=$ac_try;;
  2920. esac
  2921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2922. $as_echo "$ac_try_echo"; } >&5
  2923. (eval "$ac_link") 2>&5
  2924. ac_status=$?
  2925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2926. test $ac_status = 0; }; then :
  2927. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2928. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2929. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2930. # `rm'.
  2931. for ac_file in conftest.exe conftest conftest.*; do
  2932. test -f "$ac_file" || continue
  2933. case $ac_file in
  2934. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2935. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2936. break;;
  2937. * ) break;;
  2938. esac
  2939. done
  2940. else
  2941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2943. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2944. See \`config.log' for more details" "$LINENO" 5; }
  2945. fi
  2946. rm -f conftest conftest$ac_cv_exeext
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2948. $as_echo "$ac_cv_exeext" >&6; }
  2949. rm -f conftest.$ac_ext
  2950. EXEEXT=$ac_cv_exeext
  2951. ac_exeext=$EXEEXT
  2952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2953. /* end confdefs.h. */
  2954. #include <stdio.h>
  2955. int
  2956. main ()
  2957. {
  2958. FILE *f = fopen ("conftest.out", "w");
  2959. return ferror (f) || fclose (f) != 0;
  2960. ;
  2961. return 0;
  2962. }
  2963. _ACEOF
  2964. ac_clean_files="$ac_clean_files conftest.out"
  2965. # Check that the compiler produces executables we can run. If not, either
  2966. # the compiler is broken, or we cross compile.
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2968. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2969. if test "$cross_compiling" != yes; then
  2970. { { ac_try="$ac_link"
  2971. case "(($ac_try" in
  2972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2973. *) ac_try_echo=$ac_try;;
  2974. esac
  2975. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2976. $as_echo "$ac_try_echo"; } >&5
  2977. (eval "$ac_link") 2>&5
  2978. ac_status=$?
  2979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2980. test $ac_status = 0; }
  2981. if { ac_try='./conftest$ac_cv_exeext'
  2982. { { case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo"; } >&5
  2988. (eval "$ac_try") 2>&5
  2989. ac_status=$?
  2990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2991. test $ac_status = 0; }; }; then
  2992. cross_compiling=no
  2993. else
  2994. if test "$cross_compiling" = maybe; then
  2995. cross_compiling=yes
  2996. else
  2997. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2999. as_fn_error $? "cannot run C compiled programs.
  3000. If you meant to cross compile, use \`--host'.
  3001. See \`config.log' for more details" "$LINENO" 5; }
  3002. fi
  3003. fi
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3006. $as_echo "$cross_compiling" >&6; }
  3007. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3008. ac_clean_files=$ac_clean_files_save
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3010. $as_echo_n "checking for suffix of object files... " >&6; }
  3011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3012. /* end confdefs.h. */
  3013. int
  3014. main ()
  3015. {
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. rm -f conftest.o conftest.obj
  3021. if { { ac_try="$ac_compile"
  3022. case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_compile") 2>&5
  3029. ac_status=$?
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }; then :
  3032. for ac_file in conftest.o conftest.obj conftest.*; do
  3033. test -f "$ac_file" || continue;
  3034. case $ac_file in
  3035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3036. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3037. break;;
  3038. esac
  3039. done
  3040. else
  3041. $as_echo "$as_me: failed program was:" >&5
  3042. sed 's/^/| /' conftest.$ac_ext >&5
  3043. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3045. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3046. See \`config.log' for more details" "$LINENO" 5; }
  3047. fi
  3048. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3050. $as_echo "$ac_cv_objext" >&6; }
  3051. OBJEXT=$ac_cv_objext
  3052. ac_objext=$OBJEXT
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3054. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. int
  3058. main ()
  3059. {
  3060. #ifndef __GNUC__
  3061. choke me
  3062. #endif
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. if ac_fn_c_try_compile "$LINENO"; then :
  3068. ac_compiler_gnu=yes
  3069. else
  3070. ac_compiler_gnu=no
  3071. fi
  3072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3073. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3075. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3076. if test $ac_compiler_gnu = yes; then
  3077. GCC=yes
  3078. else
  3079. GCC=
  3080. fi
  3081. ac_test_CFLAGS=${CFLAGS+set}
  3082. ac_save_CFLAGS=$CFLAGS
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3084. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3085. ac_save_c_werror_flag=$ac_c_werror_flag
  3086. ac_c_werror_flag=yes
  3087. ac_cv_prog_cc_g=no
  3088. CFLAGS="-g"
  3089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3090. /* end confdefs.h. */
  3091. int
  3092. main ()
  3093. {
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. if ac_fn_c_try_compile "$LINENO"; then :
  3099. ac_cv_prog_cc_g=yes
  3100. else
  3101. CFLAGS=""
  3102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. ;
  3108. return 0;
  3109. }
  3110. _ACEOF
  3111. if ac_fn_c_try_compile "$LINENO"; then :
  3112. else
  3113. ac_c_werror_flag=$ac_save_c_werror_flag
  3114. CFLAGS="-g"
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. if ac_fn_c_try_compile "$LINENO"; then :
  3125. ac_cv_prog_cc_g=yes
  3126. fi
  3127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3128. fi
  3129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3130. fi
  3131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3132. ac_c_werror_flag=$ac_save_c_werror_flag
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3134. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3135. if test "$ac_test_CFLAGS" = set; then
  3136. CFLAGS=$ac_save_CFLAGS
  3137. elif test $ac_cv_prog_cc_g = yes; then
  3138. if test "$GCC" = yes; then
  3139. CFLAGS="-g -O2"
  3140. else
  3141. CFLAGS="-g"
  3142. fi
  3143. else
  3144. if test "$GCC" = yes; then
  3145. CFLAGS="-O2"
  3146. else
  3147. CFLAGS=
  3148. fi
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3151. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3152. ac_cv_prog_cc_c89=no
  3153. ac_save_CC=$CC
  3154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3155. /* end confdefs.h. */
  3156. #include <stdarg.h>
  3157. #include <stdio.h>
  3158. struct stat;
  3159. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3160. struct buf { int x; };
  3161. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3162. static char *e (p, i)
  3163. char **p;
  3164. int i;
  3165. {
  3166. return p[i];
  3167. }
  3168. static char *f (char * (*g) (char **, int), char **p, ...)
  3169. {
  3170. char *s;
  3171. va_list v;
  3172. va_start (v,p);
  3173. s = g (p, va_arg (v,int));
  3174. va_end (v);
  3175. return s;
  3176. }
  3177. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3178. function prototypes and stuff, but not '\xHH' hex character constants.
  3179. These don't provoke an error unfortunately, instead are silently treated
  3180. as 'x'. The following induces an error, until -std is added to get
  3181. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3182. array size at least. It's necessary to write '\x00'==0 to get something
  3183. that's true only with -std. */
  3184. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3185. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3186. inside strings and character constants. */
  3187. #define FOO(x) 'x'
  3188. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3189. int test (int i, double x);
  3190. struct s1 {int (*f) (int a);};
  3191. struct s2 {int (*f) (double a);};
  3192. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3193. int argc;
  3194. char **argv;
  3195. int
  3196. main ()
  3197. {
  3198. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3204. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3205. do
  3206. CC="$ac_save_CC $ac_arg"
  3207. if ac_fn_c_try_compile "$LINENO"; then :
  3208. ac_cv_prog_cc_c89=$ac_arg
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext
  3211. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3212. done
  3213. rm -f conftest.$ac_ext
  3214. CC=$ac_save_CC
  3215. # AC_CACHE_VAL
  3216. case "x$ac_cv_prog_cc_c89" in
  3217. x)
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3219. $as_echo "none needed" >&6; } ;;
  3220. xno)
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3222. $as_echo "unsupported" >&6; } ;;
  3223. *)
  3224. CC="$CC $ac_cv_prog_cc_c89"
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3226. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3227. esac
  3228. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3229. fi
  3230. ac_ext=c
  3231. ac_cpp='$CPP $CPPFLAGS'
  3232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3235. case $host_os in
  3236. *cygwin* ) CYGWIN=yes;;
  3237. esac
  3238. case $host_os in
  3239. *mingw32* ) MINGW32=yes;;
  3240. esac
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix" >&5
  3242. $as_echo_n "checking for executable suffix... " >&6; }
  3243. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  3244. ac_cv_exeext=.exe
  3245. else
  3246. ac_cv_exeext=no
  3247. fi
  3248. EXEEXT=""
  3249. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_exeext}" >&5
  3251. $as_echo "${ac_cv_exeext}" >&6; }
  3252. ac_exeext=$EXEEXT
  3253. # Set WINDRES
  3254. if test "$MINGW32" = yes ; then
  3255. WINDRES=${WINDRES-windres}
  3256. else
  3257. WINDRES=
  3258. fi
  3259. # Check for custom PKG_CONFIG
  3260. PKG_CONFIG=${PKG_CONFIG-pkg-config}
  3261. # Check for full floating-point support, including Infinity and NaN
  3262. IEEEFLAG=
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full floating-point support" >&5
  3264. $as_echo_n "checking for full floating-point support... " >&6; }
  3265. if test "$cross_compiling" = yes; then :
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  3267. $as_echo "unknown (cross-compiling)" >&6; }
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"cc -mieee\" works" >&5
  3269. $as_echo_n "checking whether \"cc -mieee\" works... " >&6; }
  3270. ac_save_cflags=${CFLAGS}
  3271. CFLAGS="$CFLAGS -mieee"
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. int
  3275. main ()
  3276. {
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. if ac_fn_c_try_compile "$LINENO"; then :
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3283. $as_echo "yes" >&6; }
  3284. IEEEFLAG="-mieee"
  3285. else
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3287. $as_echo "no" >&6; }
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. CFLAGS=${ac_save_cflags}
  3291. else
  3292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3293. /* end confdefs.h. */
  3294. #include <float.h>
  3295. int main(void) {
  3296. double one = 1.0;
  3297. double zero = 0.0;
  3298. if (one/zero > DBL_MAX) /* infinity */
  3299. if (zero/zero != zero/zero) /* NaN */
  3300. return 0;
  3301. return 1;
  3302. }
  3303. _ACEOF
  3304. if ac_fn_c_try_run "$LINENO"; then :
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3306. $as_echo "yes" >&6; }
  3307. else
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3309. $as_echo "no" >&6; }
  3310. ac_save_cflags=${CFLAGS}
  3311. CFLAGS=-mieee
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full floating-point support with -mieee" >&5
  3313. $as_echo_n "checking for full floating-point support with -mieee... " >&6; }
  3314. if test "$cross_compiling" = yes; then :
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  3316. $as_echo "unknown (cross-compiling)" >&6; }
  3317. as_fn_error $? "*** INTERNAL CONFIGURE ERROR" "$LINENO" 5
  3318. else
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. #include <float.h>
  3322. int main(void) {
  3323. double one = 1.0;
  3324. double zero = 0.0;
  3325. if (one/zero > DBL_MAX) /* infinity */
  3326. if (zero/zero != zero/zero) /* NaN */
  3327. return 0;
  3328. return 1;
  3329. }
  3330. _ACEOF
  3331. if ac_fn_c_try_run "$LINENO"; then :
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3333. $as_echo "yes" >&6; }
  3334. IEEEFLAG="-mieee"
  3335. else
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3337. $as_echo "no" >&6; }
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Incomplete floating-point support." >&5
  3339. $as_echo "$as_me: WARNING: *** Incomplete floating-point support." >&2;}
  3340. fi
  3341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3343. fi
  3344. CFLAGS=${ac_save_cflags}
  3345. fi
  3346. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3347. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3348. fi
  3349. CFLAGS="$CFLAGS $IEEEFLAG"
  3350. # Set BINDIR
  3351. if test -n "${bindir}"; then
  3352. BINDIR="${bindir}"
  3353. else
  3354. BINDIR=/usr/local/bin
  3355. fi
  3356. # Set SRCDIR and DSTDIR
  3357. # Extract the first word of "pwd", so it can be a program name with args.
  3358. set dummy pwd; ac_word=$2
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3360. $as_echo_n "checking for $ac_word... " >&6; }
  3361. case $pwd in
  3362. [\\/]* | ?:[\\/]*)
  3363. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  3364. ;;
  3365. *)
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. test -z "$as_dir" && as_dir=.
  3371. for ac_exec_ext in '' $ac_executable_extensions; do
  3372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3373. ac_cv_path_pwd="$as_dir/$ac_word$ac_exec_ext"
  3374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3375. break 2
  3376. fi
  3377. done
  3378. done
  3379. IFS=$as_save_IFS
  3380. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  3381. ;;
  3382. esac
  3383. pwd=$ac_cv_path_pwd
  3384. if test -n "$pwd"; then
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pwd" >&5
  3386. $as_echo "$pwd" >&6; }
  3387. else
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3389. $as_echo "no" >&6; }
  3390. fi
  3391. if test "$MINGW32" = yes -a "$cross_compiling" != yes ; then
  3392. winpwd="pwd -W"
  3393. else
  3394. winpwd="$pwd"
  3395. fi
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for source directory" >&5
  3397. $as_echo_n "checking for source directory... " >&6; }
  3398. if test -z "$srcdir" ; then
  3399. SRCDIR=`$pwd`
  3400. else
  3401. SRCDIR=`(cd "$srcdir" ; $pwd)`
  3402. fi
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SRCDIR\"" >&5
  3404. $as_echo "\"$SRCDIR\"" >&6; }
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directory" >&5
  3406. $as_echo_n "checking for build directory... " >&6; }
  3407. DSTDIR=`$pwd`
  3408. WINDSTDIR=`$winpwd`
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$DSTDIR\"" >&5
  3410. $as_echo "\"$DSTDIR\"" >&6; }
  3411. # Set ARCH
  3412. ARCH=
  3413. if test -z "${host}"; then
  3414. ARCH="unknown"
  3415. else
  3416. ARCH="${host}"
  3417. fi
  3418. # Set GISBASE and GRASS_BIN
  3419. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  3420. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  3421. # Set GRASS_VERSION_*
  3422. GRASS_VERSION_FILE=include/VERSION
  3423. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  3424. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  3425. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  3426. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  3427. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  3428. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  3429. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  3430. GRASS_VERSION_GIT="exported"
  3431. # get git short hash + date of last change in GRASS headers
  3432. # (and anything else in include)
  3433. GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3434. GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3435. # Extract the first word of "git", so it can be a program name with args.
  3436. set dummy git; ac_word=$2
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. $as_echo_n "checking for $ac_word... " >&6; }
  3439. case $GIT in
  3440. [\\/]* | ?:[\\/]*)
  3441. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  3442. ;;
  3443. *)
  3444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3445. for as_dir in $PATH
  3446. do
  3447. IFS=$as_save_IFS
  3448. test -z "$as_dir" && as_dir=.
  3449. for ac_exec_ext in '' $ac_executable_extensions; do
  3450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3451. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  3452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3453. break 2
  3454. fi
  3455. done
  3456. done
  3457. IFS=$as_save_IFS
  3458. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
  3459. ;;
  3460. esac
  3461. GIT=$ac_cv_path_GIT
  3462. if test -n "$GIT"; then
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  3464. $as_echo "$GIT" >&6; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. $as_echo "no" >&6; }
  3468. fi
  3469. if test "$GIT" != "no" ; then
  3470. GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null`
  3471. if test -z "$GRASS_VERSION_GIT"; then
  3472. GRASS_VERSION_GIT="exported"
  3473. fi
  3474. GRASS_HEADERS_GIT_HASH=`$GIT log -1 --pretty=format:"%h" -- "${SRCDIR}/include" 2>/dev/null`
  3475. if test -z "$GRASS_HEADERS_GIT_HASH"; then
  3476. GRASS_HEADERS_GIT_HASH=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3477. fi
  3478. GRASS_HEADERS_GIT_DATE=`date -d $($GIT log -1 --pretty=format:"%cI" -- "${SRCDIR}/include") -u +%FT%T%z | sed 's/\(..\)$/:\1/'` 2>/dev/null
  3479. if test -z "$GRASS_HEADERS_GIT_DATE"; then
  3480. GRASS_HEADERS_GIT_DATE=`date -u +%FT%T%z | sed 's/\(..\)$/:\1/'`
  3481. fi
  3482. fi
  3483. # Check for MacOSX App
  3484. # Check whether --enable-macosx-app was given.
  3485. if test "${enable_macosx_app+set}" = set; then :
  3486. enableval=$enable_macosx_app;
  3487. else
  3488. enable_macosx_app=no
  3489. fi
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX App" >&5
  3491. $as_echo_n "checking for MacOSX App... " >&6; }
  3492. case "$enable_macosx_app" in
  3493. yes) MACOSX_APP=1 ;;
  3494. no) MACOSX_APP= ;;
  3495. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  3496. esac
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$enable_macosx_app\"" >&5
  3498. $as_echo "\"$enable_macosx_app\"" >&6; }
  3499. # Check for MacOSX archs
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX architectures" >&5
  3501. $as_echo_n "checking for MacOSX architectures... " >&6; }
  3502. MACOSX_ARCHS=
  3503. if test -z "$with_macosx_archs" ; then
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3505. $as_echo "no" >&6; }
  3506. else
  3507. for a in $with_macosx_archs
  3508. do
  3509. # check if valid arch?
  3510. case "$a" in
  3511. i386|ppc|x86_64|ppc64)
  3512. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  3513. ;;
  3514. esac
  3515. done
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_ARCHS" >&5
  3517. $as_echo "$MACOSX_ARCHS" >&6; }
  3518. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  3519. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  3520. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  3521. fi
  3522. # Done checking MacOSX archs
  3523. # Check for MacOSX SDK
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacOSX SDK" >&5
  3525. $as_echo_n "checking for MacOSX SDK... " >&6; }
  3526. MACOSX_SDK=
  3527. if test -z "$with_macosx_sdk" ; then
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3529. $as_echo "no" >&6; }
  3530. else
  3531. as_ac_File=`$as_echo "ac_cv_file_$with_macosx_sdk/SDKSettings.plist" | $as_tr_sh`
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  3533. $as_echo_n "checking for $with_macosx_sdk/SDKSettings.plist... " >&6; }
  3534. test "$cross_compiling" = yes &&
  3535. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  3536. if test -r "$with_macosx_sdk/SDKSettings.plist"; then
  3537. eval "$as_ac_File=yes"
  3538. else
  3539. eval "$as_ac_File=no"
  3540. fi
  3541. eval ac_res=\$$as_ac_File
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3543. $as_echo "$ac_res" >&6; }
  3544. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  3545. MACOSX_SDK="-isysroot $with_macosx_sdk"
  3546. else
  3547. as_fn_error $? "*** specified SDK does not exist or is not a SDK" "$LINENO" 5
  3548. fi
  3549. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  3550. CFLAGS="$CFLAGS $MACOSX_SDK"
  3551. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  3552. fi
  3553. # Done checking MacOSX SDK
  3554. # Set INST_DIR
  3555. if test -n "$MACOSX_APP" ; then
  3556. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  3557. else
  3558. INSTDIR='${prefix}'"/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}"
  3559. fi
  3560. # Get flags for building shared libraries
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
  3562. $as_echo_n "checking how to build libraries... " >&6; }
  3563. # Check whether --enable-shared was given.
  3564. if test "${enable_shared+set}" = set; then :
  3565. enableval=$enable_shared; shared_ok=$enableval
  3566. else
  3567. shared_ok=yes
  3568. fi
  3569. if test "${enable_shared+set}" = set; then
  3570. enableval="$enable_shared"
  3571. shared_ok=$enableval
  3572. else
  3573. shared_ok=yes
  3574. fi
  3575. if test "$shared_ok" = "yes" ; then
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
  3577. $as_echo "shared" >&6; }
  3578. SHARED_BUILD=1
  3579. GRASS_LIBRARY_TYPE='shlib'
  3580. else
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
  3582. $as_echo "static" >&6; }
  3583. SHARED_BUILD=0
  3584. $as_echo "#define STATIC_BUILD 1" >>confdefs.h
  3585. GRASS_LIBRARY_TYPE='stlib'
  3586. fi
  3587. ac_save_ldflags="$LDFLAGS"
  3588. SHLIB_CFLAGS=""
  3589. SHLIB_LD_FLAGS=""
  3590. SHLIB_SUFFIX=""
  3591. SHLIB_LD=""
  3592. STLIB_LD='${AR} cr'
  3593. STLIB_SUFFIX='.a'
  3594. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  3595. GRASS_LIB_VERSIONS_OK=ok
  3596. LDFLAGS=""
  3597. LD_SEARCH_FLAGS=""
  3598. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3599. case $host in
  3600. *-linux-* | *-gnu* | *-kfreebsd*-gnu)
  3601. SHLIB_CFLAGS="-fPIC"
  3602. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  3603. SHLIB_SUFFIX=".so"
  3604. SHLIB_LD="${CC} -shared"
  3605. LDFLAGS="-Wl,--export-dynamic"
  3606. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  3607. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3608. ;;
  3609. *-pc-cygwin)
  3610. SHLIB_SUFFIX=".dll"
  3611. SHLIB_LD="${CC} -shared"
  3612. LDFLAGS="-Wl,--export-dynamic"
  3613. LD_LIBRARY_PATH_VAR="PATH"
  3614. ;;
  3615. *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
  3616. SHLIB_SUFFIX=".dll"
  3617. SHLIB_LD="${CC} -shared"
  3618. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  3619. LD_LIBRARY_PATH_VAR="PATH"
  3620. ;;
  3621. *-apple-darwin*)
  3622. SHLIB_CFLAGS="-fno-common"
  3623. SHLIB_SUFFIX=".dylib"
  3624. SHLIB_LD="${CC} -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name @rpath/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
  3625. LDFLAGS="-Wl,-rpath,${INSTDIR}/lib,-rpath,\${GISBASE}/lib"
  3626. LD_LIBRARY_PATH_VAR="LD_RUN_PATH"
  3627. ;;
  3628. *-sun-solaris*)
  3629. # Note: If _REENTRANT isn't defined, then Solaris
  3630. # won't define thread-safe library routines.
  3631. $as_echo "#define _REENTRANT 1" >>confdefs.h
  3632. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3633. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  3634. # symbols when dynamically loaded into tclsh.
  3635. if test "$GCC" = "yes" ; then
  3636. SHLIB_CFLAGS="-fPIC"
  3637. SHLIB_LD="$CC -shared"
  3638. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  3639. else
  3640. SHLIB_CFLAGS="-KPIC"
  3641. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  3642. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  3643. fi
  3644. SHLIB_SUFFIX=".so"
  3645. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3646. ;;
  3647. *-solaris2*)
  3648. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  3649. # Oracle Solaris derives from Solaris 2
  3650. # derives from SunOS 5
  3651. # derives from UNIX System V Release 4
  3652. # Note: If _REENTRANT isn't defined, then Solaris
  3653. # won't define thread-safe library routines.
  3654. $as_echo "#define _REENTRANT 1" >>confdefs.h
  3655. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3656. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  3657. # symbols when dynamically loaded into tclsh.
  3658. if test "$GCC" = "yes" ; then
  3659. SHLIB_CFLAGS="-fPIC"
  3660. SHLIB_LD="$CC -shared"
  3661. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  3662. else
  3663. SHLIB_CFLAGS="-KPIC"
  3664. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  3665. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  3666. fi
  3667. SHLIB_SUFFIX=".so"
  3668. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  3669. ;;
  3670. *-freebsd*)
  3671. # NOTE: only FreeBSD 4+ is supported
  3672. # FreeBSD 3.* and greater have ELF.
  3673. SHLIB_CFLAGS="-fPIC"
  3674. #SHLIB_LD="ld -Bshareable -x"
  3675. SHLIB_LD="${CC} -shared"
  3676. SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
  3677. SHLIB_SUFFIX=".so"
  3678. LDFLAGS="-Wl,--export-dynamic"
  3679. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  3680. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  3681. # TODO: add optional pthread support with any combination of:
  3682. # CFLAGS="$CFLAGS -pthread"
  3683. # LDFLAGS="$LDFLAGS -lpthread"
  3684. # AC_DEFINE(_REENTRANT, 1, [define _REENTRANT flag (for SunOS)])
  3685. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [enable threading extensions on Solaris])
  3686. ;;
  3687. *-netbsd*)
  3688. # NetBSD has ELF.
  3689. SHLIB_CFLAGS="-fPIC"
  3690. SHLIB_LD="${CC} -shared"
  3691. SHLIB_LD_LIBS="${LIBS}"
  3692. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  3693. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  3694. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  3695. # some older NetBSD versions do not handle version numbers with dots.
  3696. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  3697. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  3698. #GRASS_LIB_VERSIONS_OK=nodots
  3699. # NetBSD 6 does handle version numbers with dots.
  3700. STLIB_SUFFIX=".a"
  3701. SHLIB_SUFFIX=".so"
  3702. # TODO: add optional pthread support with any combination of:
  3703. # CFLAGS="$CFLAGS -pthread"
  3704. # LDFLAGS="$LDFLAGS -lpthread"
  3705. # AC_DEFINE(_REENTRANT, 1, [define _REENTRANT flag (for SunOS)])
  3706. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [enable threading extensions on Solaris])
  3707. ;;
  3708. *aix*)
  3709. # NOTE: do we need to support aix < 6 ?
  3710. LIBS="$LIBS -lc"
  3711. SHLIB_CFLAGS=""
  3712. LDFLAGS=""
  3713. if test "$GCC" = "yes" ; then
  3714. SHLIB_CFLAGS="-fPIC"
  3715. SHLIB_LD="$CC -shared"
  3716. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  3717. else
  3718. # assume xlc
  3719. SHLIB_CFLAGS="-qmkshrobj"
  3720. SHLIB_LD="$CC -shared"
  3721. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  3722. fi
  3723. SHLIB_SUFFIX=".so"
  3724. LD_LIBRARY_PATH_VAR="LIBPATH"
  3725. GRASS_NEEDS_EXP_FILE=1
  3726. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  3727. ;;
  3728. *)
  3729. as_fn_error $? "***Unknown platform: $host***" "$LINENO" 5
  3730. ;;
  3731. esac
  3732. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  3733. # Enable options
  3734. # Check whether --enable-w11 was given.
  3735. if test "${enable_w11+set}" = set; then :
  3736. enableval=$enable_w11;
  3737. else
  3738. enable_w11=no
  3739. fi
  3740. # With options
  3741. # Check whether --with-cxx was given.
  3742. if test "${with_cxx+set}" = set; then :
  3743. withval=$with_cxx;
  3744. else
  3745. with_cxx=yes
  3746. fi
  3747. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  3748. # Check whether --with-macosx-archs was given.
  3749. if test "${with_macosx_archs+set}" = set; then :
  3750. withval=$with_macosx_archs;
  3751. else
  3752. with_macosx_archs="no"
  3753. fi
  3754. # Check whether --with-macosx-sdk was given.
  3755. if test "${with_macosx_sdk+set}" = set; then :
  3756. withval=$with_macosx_sdk;
  3757. else
  3758. with_macosx_sdk="no"
  3759. fi
  3760. # Check whether --with-tiff was given.
  3761. if test "${with_tiff+set}" = set; then :
  3762. withval=$with_tiff;
  3763. else
  3764. with_tiff=yes
  3765. fi
  3766. # Check whether --with-png was given.
  3767. if test "${with_png+set}" = set; then :
  3768. withval=$with_png;
  3769. else
  3770. with_png=yes
  3771. fi
  3772. # Check whether --with-postgres was given.
  3773. if test "${with_postgres+set}" = set; then :
  3774. withval=$with_postgres;
  3775. else
  3776. with_postgres=no
  3777. fi
  3778. # Check whether --with-mysql was given.
  3779. if test "${with_mysql+set}" = set; then :
  3780. withval=$with_mysql;
  3781. else
  3782. with_mysql=no
  3783. fi
  3784. # Check whether --with-sqlite was given.
  3785. if test "${with_sqlite+set}" = set; then :
  3786. withval=$with_sqlite;
  3787. else
  3788. with_sqlite=yes
  3789. fi
  3790. # Check whether --with-opengl was given.
  3791. if test "${with_opengl+set}" = set; then :
  3792. withval=$with_opengl;
  3793. else
  3794. with_opengl=yes
  3795. fi
  3796. # Check whether --with-odbc was given.
  3797. if test "${with_odbc+set}" = set; then :
  3798. withval=$with_odbc;
  3799. else
  3800. with_odbc=no
  3801. fi
  3802. # Check whether --with-fftw was given.
  3803. if test "${with_fftw+set}" = set; then :
  3804. withval=$with_fftw;
  3805. else
  3806. with_fftw=yes
  3807. fi
  3808. # Check whether --with-blas was given.
  3809. if test "${with_blas+set}" = set; then :
  3810. withval=$with_blas;
  3811. else
  3812. with_blas=no
  3813. fi
  3814. # Check whether --with-lapack was given.
  3815. if test "${with_lapack+set}" = set; then :
  3816. withval=$with_lapack;
  3817. else
  3818. with_lapack=no
  3819. fi
  3820. # Check whether --with-cairo was given.
  3821. if test "${with_cairo+set}" = set; then :
  3822. withval=$with_cairo;
  3823. else
  3824. with_cairo=yes
  3825. fi
  3826. # Check whether --with-freetype was given.
  3827. if test "${with_freetype+set}" = set; then :
  3828. withval=$with_freetype;
  3829. else
  3830. with_freetype=yes
  3831. fi
  3832. # Check whether --with-nls was given.
  3833. if test "${with_nls+set}" = set; then :
  3834. withval=$with_nls;
  3835. else
  3836. with_nls=no
  3837. fi
  3838. # Check whether --with-readline was given.
  3839. if test "${with_readline+set}" = set; then :
  3840. withval=$with_readline;
  3841. else
  3842. with_readline=no
  3843. fi
  3844. # Check whether --with-opendwg was given.
  3845. if test "${with_opendwg+set}" = set; then :
  3846. withval=$with_opendwg;
  3847. else
  3848. with_opendwg=no
  3849. fi
  3850. # Check whether --with-regex was given.
  3851. if test "${with_regex+set}" = set; then :
  3852. withval=$with_regex;
  3853. else
  3854. with_regex=yes
  3855. fi
  3856. # Check whether --with-pthread was given.
  3857. if test "${with_pthread+set}" = set; then :
  3858. withval=$with_pthread;
  3859. else
  3860. with_pthread=no
  3861. fi
  3862. # Check whether --with-openmp was given.
  3863. if test "${with_openmp+set}" = set; then :
  3864. withval=$with_openmp;
  3865. else
  3866. with_openmp=no
  3867. fi
  3868. # Check whether --with-opencl was given.
  3869. if test "${with_opencl+set}" = set; then :
  3870. withval=$with_opencl;
  3871. else
  3872. with_opencl=no
  3873. fi
  3874. # Check whether --with-bzlib was given.
  3875. if test "${with_bzlib+set}" = set; then :
  3876. withval=$with_bzlib;
  3877. else
  3878. with_bzlib=no
  3879. fi
  3880. # Check whether --with-zstd was given.
  3881. if test "${with_zstd+set}" = set; then :
  3882. withval=$with_zstd;
  3883. else
  3884. with_zstd=yes
  3885. fi
  3886. # Check whether --with-gdal was given.
  3887. if test "${with_gdal+set}" = set; then :
  3888. withval=$with_gdal;
  3889. fi
  3890. # Check whether --with-liblas was given.
  3891. if test "${with_liblas+set}" = set; then :
  3892. withval=$with_liblas;
  3893. else
  3894. with_liblas="no"
  3895. fi
  3896. # Check whether --with-pdal was given.
  3897. if test "${with_pdal+set}" = set; then :
  3898. withval=$with_pdal;
  3899. else
  3900. with_pdal="no"
  3901. fi
  3902. # Check whether --with-wxwidgets was given.
  3903. if test "${with_wxwidgets+set}" = set; then :
  3904. withval=$with_wxwidgets;
  3905. else
  3906. with_wxwidgets="no"
  3907. fi
  3908. # Check whether --with-netcdf was given.
  3909. if test "${with_netcdf+set}" = set; then :
  3910. withval=$with_netcdf;
  3911. else
  3912. with_netcdf="no"
  3913. fi
  3914. # With includes and libs options
  3915. # Check whether --with-geos was given.
  3916. if test "${with_geos+set}" = set; then :
  3917. withval=$with_geos;
  3918. else
  3919. with_geos="no"
  3920. fi
  3921. # Check whether --with-includes was given.
  3922. if test "${with_includes+set}" = set; then :
  3923. withval=$with_includes;
  3924. fi
  3925. # Check whether --with-libs was given.
  3926. if test "${with_libs+set}" = set; then :
  3927. withval=$with_libs;
  3928. fi
  3929. # Check whether --with-zlib-includes was given.
  3930. if test "${with_zlib_includes+set}" = set; then :
  3931. withval=$with_zlib_includes;
  3932. fi
  3933. # Check whether --with-zlib-libs was given.
  3934. if test "${with_zlib_libs+set}" = set; then :
  3935. withval=$with_zlib_libs;
  3936. fi
  3937. # Check whether --with-bzlib-includes was given.
  3938. if test "${with_bzlib_includes+set}" = set; then :
  3939. withval=$with_bzlib_includes;
  3940. fi
  3941. # Check whether --with-bzlib-libs was given.
  3942. if test "${with_bzlib_libs+set}" = set; then :
  3943. withval=$with_bzlib_libs;
  3944. fi
  3945. # Check whether --with-zstd-includes was given.
  3946. if test "${with_zstd_includes+set}" = set; then :
  3947. withval=$with_zstd_includes;
  3948. fi
  3949. # Check whether --with-zstd-libs was given.
  3950. if test "${with_zstd_libs+set}" = set; then :
  3951. withval=$with_zstd_libs;
  3952. fi
  3953. # Check whether --with-readline-includes was given.
  3954. if test "${with_readline_includes+set}" = set; then :
  3955. withval=$with_readline_includes;
  3956. fi
  3957. # Check whether --with-readline-libs was given.
  3958. if test "${with_readline_libs+set}" = set; then :
  3959. withval=$with_readline_libs;
  3960. fi
  3961. # Check whether --with-tiff-includes was given.
  3962. if test "${with_tiff_includes+set}" = set; then :
  3963. withval=$with_tiff_includes;
  3964. fi
  3965. # Check whether --with-tiff-libs was given.
  3966. if test "${with_tiff_libs+set}" = set; then :
  3967. withval=$with_tiff_libs;
  3968. fi
  3969. # Check whether --with-png-includes was given.
  3970. if test "${with_png_includes+set}" = set; then :
  3971. withval=$with_png_includes;
  3972. fi
  3973. # Check whether --with-png-libs was given.
  3974. if test "${with_png_libs+set}" = set; then :
  3975. withval=$with_png_libs;
  3976. fi
  3977. # Check whether --with-postgres-includes was given.
  3978. if test "${with_postgres_includes+set}" = set; then :
  3979. withval=$with_postgres_includes;
  3980. fi
  3981. # Check whether --with-postgres-libs was given.
  3982. if test "${with_postgres_libs+set}" = set; then :
  3983. withval=$with_postgres_libs;
  3984. fi
  3985. # Check whether --with-mysql-includes was given.
  3986. if test "${with_mysql_includes+set}" = set; then :
  3987. withval=$with_mysql_includes;
  3988. fi
  3989. # Check whether --with-mysql-libs was given.
  3990. if test "${with_mysql_libs+set}" = set; then :
  3991. withval=$with_mysql_libs;
  3992. fi
  3993. # Check whether --with-sqlite-includes was given.
  3994. if test "${with_sqlite_includes+set}" = set; then :
  3995. withval=$with_sqlite_includes;
  3996. fi
  3997. # Check whether --with-sqlite-libs was given.
  3998. if test "${with_sqlite_libs+set}" = set; then :
  3999. withval=$with_sqlite_libs;
  4000. fi
  4001. # Check whether --with-opengl-includes was given.
  4002. if test "${with_opengl_includes+set}" = set; then :
  4003. withval=$with_opengl_includes;
  4004. fi
  4005. # Check whether --with-opengl-libs was given.
  4006. if test "${with_opengl_libs+set}" = set; then :
  4007. withval=$with_opengl_libs;
  4008. fi
  4009. # Check whether --with-opengl-framework was given.
  4010. if test "${with_opengl_framework+set}" = set; then :
  4011. withval=$with_opengl_framework;
  4012. fi
  4013. # Check whether --with-odbc-includes was given.
  4014. if test "${with_odbc_includes+set}" = set; then :
  4015. withval=$with_odbc_includes;
  4016. fi
  4017. # Check whether --with-odbc-libs was given.
  4018. if test "${with_odbc_libs+set}" = set; then :
  4019. withval=$with_odbc_libs;
  4020. fi
  4021. # Check whether --with-fftw-includes was given.
  4022. if test "${with_fftw_includes+set}" = set; then :
  4023. withval=$with_fftw_includes;
  4024. fi
  4025. # Check whether --with-fftw-libs was given.
  4026. if test "${with_fftw_libs+set}" = set; then :
  4027. withval=$with_fftw_libs;
  4028. fi
  4029. # Check whether --with-blas-includes was given.
  4030. if test "${with_blas_includes+set}" = set; then :
  4031. withval=$with_blas_includes;
  4032. fi
  4033. # Check whether --with-blas-libs was given.
  4034. if test "${with_blas_libs+set}" = set; then :
  4035. withval=$with_blas_libs;
  4036. fi
  4037. # Check whether --with-lapack-includes was given.
  4038. if test "${with_lapack_includes+set}" = set; then :
  4039. withval=$with_lapack_includes;
  4040. fi
  4041. # Check whether --with-lapack-libs was given.
  4042. if test "${with_lapack_libs+set}" = set; then :
  4043. withval=$with_lapack_libs;
  4044. fi
  4045. # Check whether --with-cairo-includes was given.
  4046. if test "${with_cairo_includes+set}" = set; then :
  4047. withval=$with_cairo_includes;
  4048. fi
  4049. # Check whether --with-cairo-libs was given.
  4050. if test "${with_cairo_libs+set}" = set; then :
  4051. withval=$with_cairo_libs;
  4052. fi
  4053. # Check whether --with-cairo-ldflags was given.
  4054. if test "${with_cairo_ldflags+set}" = set; then :
  4055. withval=$with_cairo_ldflags;
  4056. fi
  4057. # Check whether --with-freetype-includes was given.
  4058. if test "${with_freetype_includes+set}" = set; then :
  4059. withval=$with_freetype_includes;
  4060. fi
  4061. # Check whether --with-freetype-libs was given.
  4062. if test "${with_freetype_libs+set}" = set; then :
  4063. withval=$with_freetype_libs;
  4064. fi
  4065. # Check whether --with-proj-includes was given.
  4066. if test "${with_proj_includes+set}" = set; then :
  4067. withval=$with_proj_includes;
  4068. fi
  4069. # Check whether --with-proj-libs was given.
  4070. if test "${with_proj_libs+set}" = set; then :
  4071. withval=$with_proj_libs;
  4072. fi
  4073. # Check whether --with-proj-share was given.
  4074. if test "${with_proj_share+set}" = set; then :
  4075. withval=$with_proj_share;
  4076. fi
  4077. # Check whether --with-opendwg-includes was given.
  4078. if test "${with_opendwg_includes+set}" = set; then :
  4079. withval=$with_opendwg_includes;
  4080. fi
  4081. # Check whether --with-opendwg-libs was given.
  4082. if test "${with_opendwg_libs+set}" = set; then :
  4083. withval=$with_opendwg_libs;
  4084. fi
  4085. # Check whether --with-regex-includes was given.
  4086. if test "${with_regex_includes+set}" = set; then :
  4087. withval=$with_regex_includes;
  4088. fi
  4089. # Check whether --with-regex-libs was given.
  4090. if test "${with_regex_libs+set}" = set; then :
  4091. withval=$with_regex_libs;
  4092. fi
  4093. # Check whether --with-pthread-includes was given.
  4094. if test "${with_pthread_includes+set}" = set; then :
  4095. withval=$with_pthread_includes;
  4096. fi
  4097. # Check whether --with-pthread-libs was given.
  4098. if test "${with_pthread_libs+set}" = set; then :
  4099. withval=$with_pthread_libs;
  4100. fi
  4101. # Check whether --with-openmp-includes was given.
  4102. if test "${with_openmp_includes+set}" = set; then :
  4103. withval=$with_openmp_includes;
  4104. fi
  4105. # Check whether --with-openmp-libs was given.
  4106. if test "${with_openmp_libs+set}" = set; then :
  4107. withval=$with_openmp_libs;
  4108. fi
  4109. # Check whether --with-opencl-includes was given.
  4110. if test "${with_opencl_includes+set}" = set; then :
  4111. withval=$with_opencl_includes;
  4112. fi
  4113. # Check whether --with-opencl-libs was given.
  4114. if test "${with_opencl_libs+set}" = set; then :
  4115. withval=$with_opencl_libs;
  4116. fi
  4117. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  4118. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  4119. # With includes option
  4120. # Handle Fortran compiler choice
  4121. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  4122. # Done checking fortran
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional include dirs" >&5
  4124. $as_echo_n "checking for additional include dirs... " >&6; }
  4125. case "$with_includes" in
  4126. y | ye | yes | n | no)
  4127. as_fn_error $? "*** You must supply a directory to list --with-includes." "$LINENO" 5
  4128. ;;
  4129. esac
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_includes" >&5
  4131. $as_echo "$with_includes" >&6; }
  4132. if test -n "$with_includes"; then
  4133. for dir in $with_includes; do
  4134. if test -d "$dir"; then
  4135. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  4136. else
  4137. as_fn_error $? "*** Include directory $dir does not exist." "$LINENO" 5
  4138. fi
  4139. done
  4140. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  4141. fi
  4142. # With libs option
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional library dirs" >&5
  4144. $as_echo_n "checking for additional library dirs... " >&6; }
  4145. case "$with_libs" in
  4146. y | ye | yes | n | no)
  4147. as_fn_error $? "*** You must supply a directory list to --with-libs." "$LINENO" 5
  4148. ;;
  4149. esac
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libs" >&5
  4151. $as_echo "$with_libs" >&6; }
  4152. if test -n "$with_libs"; then
  4153. for dir in $with_libs; do
  4154. if test -d "$dir"; then
  4155. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  4156. else
  4157. as_fn_error $? "*** Library directory $dir does not exist." "$LINENO" 5
  4158. fi
  4159. done
  4160. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  4161. fi
  4162. # Programs and standard headers, libraries, functions
  4163. # Find a good install program. We prefer a C program (faster),
  4164. # so one script is as good as another. But avoid the broken or
  4165. # incompatible versions:
  4166. # SysV /etc/install, /usr/sbin/install
  4167. # SunOS /usr/etc/install
  4168. # IRIX /sbin/install
  4169. # AIX /bin/install
  4170. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4171. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4172. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4173. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4174. # OS/2's system install, which has a completely different semantic
  4175. # ./install, which can be erroneously created by make from ./install.sh.
  4176. # Reject install programs that cannot install multiple files.
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4178. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4179. if test -z "$INSTALL"; then
  4180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4181. for as_dir in $PATH
  4182. do
  4183. IFS=$as_save_IFS
  4184. test -z "$as_dir" && as_dir=.
  4185. # Account for people who put trailing slashes in PATH elements.
  4186. case $as_dir/ in #((
  4187. ./ | .// | /[cC]/* | \
  4188. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4189. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4190. /usr/ucb/* ) ;;
  4191. *)
  4192. # OSF1 and SCO ODT 3.0 have their own names for install.
  4193. # Don't use installbsd from OSF since it installs stuff as root
  4194. # by default.
  4195. for ac_prog in ginstall scoinst install; do
  4196. for ac_exec_ext in '' $ac_executable_extensions; do
  4197. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4198. if test $ac_prog = install &&
  4199. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4200. # AIX install. It has an incompatible calling convention.
  4201. :
  4202. elif test $ac_prog = install &&
  4203. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4204. # program-specific install script used by HP pwplus--don't use.
  4205. :
  4206. else
  4207. rm -rf conftest.one conftest.two conftest.dir
  4208. echo one > conftest.one
  4209. echo two > conftest.two
  4210. mkdir conftest.dir
  4211. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4212. test -s conftest.one && test -s conftest.two &&
  4213. test -s conftest.dir/conftest.one &&
  4214. test -s conftest.dir/conftest.two
  4215. then
  4216. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4217. break 3
  4218. fi
  4219. fi
  4220. fi
  4221. done
  4222. done
  4223. ;;
  4224. esac
  4225. done
  4226. IFS=$as_save_IFS
  4227. rm -rf conftest.one conftest.two conftest.dir
  4228. if test "${ac_cv_path_install+set}" = set; then
  4229. INSTALL=$ac_cv_path_install
  4230. else
  4231. # As a last resort, use the slow shell script. Don't cache a
  4232. # value for INSTALL within a source directory, because that will
  4233. # break other packages using the cache if that directory is
  4234. # removed, or if the value is a relative name.
  4235. INSTALL=$ac_install_sh
  4236. fi
  4237. fi
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4239. $as_echo "$INSTALL" >&6; }
  4240. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4241. # It thinks the first close brace ends the variable substitution.
  4242. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4243. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4244. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4245. for ac_prog in flex lex
  4246. do
  4247. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4248. set dummy $ac_prog; ac_word=$2
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4250. $as_echo_n "checking for $ac_word... " >&6; }
  4251. if test -n "$LEX"; then
  4252. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4253. else
  4254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4255. for as_dir in $PATH
  4256. do
  4257. IFS=$as_save_IFS
  4258. test -z "$as_dir" && as_dir=.
  4259. for ac_exec_ext in '' $ac_executable_extensions; do
  4260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4261. ac_cv_prog_LEX="$ac_prog"
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4263. break 2
  4264. fi
  4265. done
  4266. done
  4267. IFS=$as_save_IFS
  4268. fi
  4269. LEX=$ac_cv_prog_LEX
  4270. if test -n "$LEX"; then
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  4272. $as_echo "$LEX" >&6; }
  4273. else
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4275. $as_echo "no" >&6; }
  4276. fi
  4277. test -n "$LEX" && break
  4278. done
  4279. test -n "$LEX" || LEX=":"
  4280. if test "x$LEX" != "x:"; then
  4281. cat >conftest.l <<_ACEOF
  4282. %%
  4283. a { ECHO; }
  4284. b { REJECT; }
  4285. c { yymore (); }
  4286. d { yyless (1); }
  4287. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4288. yyless ((input () != 0)); }
  4289. f { unput (yytext[0]); }
  4290. . { BEGIN INITIAL; }
  4291. %%
  4292. #ifdef YYTEXT_POINTER
  4293. extern char *yytext;
  4294. #endif
  4295. int
  4296. main (void)
  4297. {
  4298. return ! yylex () + ! yywrap ();
  4299. }
  4300. _ACEOF
  4301. { { ac_try="$LEX conftest.l"
  4302. case "(($ac_try" in
  4303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4304. *) ac_try_echo=$ac_try;;
  4305. esac
  4306. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4307. $as_echo "$ac_try_echo"; } >&5
  4308. (eval "$LEX conftest.l") 2>&5
  4309. ac_status=$?
  4310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4311. test $ac_status = 0; }
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  4313. $as_echo_n "checking lex output file root... " >&6; }
  4314. if test -f lex.yy.c; then
  4315. ac_cv_prog_lex_root=lex.yy
  4316. elif test -f lexyy.c; then
  4317. ac_cv_prog_lex_root=lexyy
  4318. else
  4319. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  4320. fi
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  4322. $as_echo "$ac_cv_prog_lex_root" >&6; }
  4323. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  4324. if test -z "${LEXLIB+set}"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  4326. $as_echo_n "checking lex library... " >&6; }
  4327. ac_save_LIBS=$LIBS
  4328. ac_cv_lib_lex='none needed'
  4329. for ac_lib in '' -lfl -ll; do
  4330. LIBS="$ac_lib $ac_save_LIBS"
  4331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4332. /* end confdefs.h. */
  4333. `cat $LEX_OUTPUT_ROOT.c`
  4334. _ACEOF
  4335. if ac_fn_c_try_link "$LINENO"; then :
  4336. ac_cv_lib_lex=$ac_lib
  4337. fi
  4338. rm -f core conftest.err conftest.$ac_objext \
  4339. conftest$ac_exeext conftest.$ac_ext
  4340. test "$ac_cv_lib_lex" != 'none needed' && break
  4341. done
  4342. LIBS=$ac_save_LIBS
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  4344. $as_echo "$ac_cv_lib_lex" >&6; }
  4345. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  4348. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  4349. # POSIX says lex can declare yytext either as a pointer or an array; the
  4350. # default is implementation-dependent. Figure out which it is, since
  4351. # not all implementations provide the %pointer and %array declarations.
  4352. ac_cv_prog_lex_yytext_pointer=no
  4353. ac_save_LIBS=$LIBS
  4354. LIBS="$LEXLIB $ac_save_LIBS"
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. #define YYTEXT_POINTER 1
  4358. `cat $LEX_OUTPUT_ROOT.c`
  4359. _ACEOF
  4360. if ac_fn_c_try_link "$LINENO"; then :
  4361. ac_cv_prog_lex_yytext_pointer=yes
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext \
  4364. conftest$ac_exeext conftest.$ac_ext
  4365. LIBS=$ac_save_LIBS
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  4367. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  4368. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  4369. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  4370. fi
  4371. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  4372. fi
  4373. if test "$LEX" = "lex"; then
  4374. # Extract the first word of "lex", so it can be a program name with args.
  4375. set dummy lex; ac_word=$2
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4377. $as_echo_n "checking for $ac_word... " >&6; }
  4378. case $LEXPATH in
  4379. [\\/]* | ?:[\\/]*)
  4380. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  4381. ;;
  4382. *)
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4390. ac_cv_path_LEXPATH="$as_dir/$ac_word$ac_exec_ext"
  4391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4392. break 2
  4393. fi
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  4398. ;;
  4399. esac
  4400. LEXPATH=$ac_cv_path_LEXPATH
  4401. if test -n "$LEXPATH"; then
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEXPATH" >&5
  4403. $as_echo "$LEXPATH" >&6; }
  4404. else
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4406. $as_echo "no" >&6; }
  4407. fi
  4408. if test "$LEXPATH" = "no"; then
  4409. as_fn_error $? "*** Unable to locate lex." "$LINENO" 5
  4410. fi
  4411. fi
  4412. for ac_prog in 'bison -y' byacc
  4413. do
  4414. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4415. set dummy $ac_prog; ac_word=$2
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4417. $as_echo_n "checking for $ac_word... " >&6; }
  4418. if test -n "$YACC"; then
  4419. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4420. else
  4421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4422. for as_dir in $PATH
  4423. do
  4424. IFS=$as_save_IFS
  4425. test -z "$as_dir" && as_dir=.
  4426. for ac_exec_ext in '' $ac_executable_extensions; do
  4427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4428. ac_cv_prog_YACC="$ac_prog"
  4429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4430. break 2
  4431. fi
  4432. done
  4433. done
  4434. IFS=$as_save_IFS
  4435. fi
  4436. YACC=$ac_cv_prog_YACC
  4437. if test -n "$YACC"; then
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4439. $as_echo "$YACC" >&6; }
  4440. else
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4442. $as_echo "no" >&6; }
  4443. fi
  4444. test -n "$YACC" && break
  4445. done
  4446. test -n "$YACC" || YACC="yacc"
  4447. if test "$YACC" = "yacc"; then
  4448. # Extract the first word of "yacc", so it can be a program name with args.
  4449. set dummy yacc; ac_word=$2
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4451. $as_echo_n "checking for $ac_word... " >&6; }
  4452. case $YACCPATH in
  4453. [\\/]* | ?:[\\/]*)
  4454. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  4455. ;;
  4456. *)
  4457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4458. for as_dir in $PATH
  4459. do
  4460. IFS=$as_save_IFS
  4461. test -z "$as_dir" && as_dir=.
  4462. for ac_exec_ext in '' $ac_executable_extensions; do
  4463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4464. ac_cv_path_YACCPATH="$as_dir/$ac_word$ac_exec_ext"
  4465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4466. break 2
  4467. fi
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  4472. ;;
  4473. esac
  4474. YACCPATH=$ac_cv_path_YACCPATH
  4475. if test -n "$YACCPATH"; then
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACCPATH" >&5
  4477. $as_echo "$YACCPATH" >&6; }
  4478. else
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4480. $as_echo "no" >&6; }
  4481. fi
  4482. if test "$YACCPATH" = "no"; then
  4483. as_fn_error $? "*** Unable to locate yacc." "$LINENO" 5
  4484. fi
  4485. fi
  4486. if test -n "$ac_tool_prefix"; then
  4487. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4488. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4490. $as_echo_n "checking for $ac_word... " >&6; }
  4491. if test -n "$RANLIB"; then
  4492. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4493. else
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. test -z "$as_dir" && as_dir=.
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4501. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4503. break 2
  4504. fi
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. fi
  4509. RANLIB=$ac_cv_prog_RANLIB
  4510. if test -n "$RANLIB"; then
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4512. $as_echo "$RANLIB" >&6; }
  4513. else
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4515. $as_echo "no" >&6; }
  4516. fi
  4517. fi
  4518. if test -z "$ac_cv_prog_RANLIB"; then
  4519. ac_ct_RANLIB=$RANLIB
  4520. # Extract the first word of "ranlib", so it can be a program name with args.
  4521. set dummy ranlib; ac_word=$2
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4523. $as_echo_n "checking for $ac_word... " >&6; }
  4524. if test -n "$ac_ct_RANLIB"; then
  4525. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4526. else
  4527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4528. for as_dir in $PATH
  4529. do
  4530. IFS=$as_save_IFS
  4531. test -z "$as_dir" && as_dir=.
  4532. for ac_exec_ext in '' $ac_executable_extensions; do
  4533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4534. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4536. break 2
  4537. fi
  4538. done
  4539. done
  4540. IFS=$as_save_IFS
  4541. fi
  4542. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4543. if test -n "$ac_ct_RANLIB"; then
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4545. $as_echo "$ac_ct_RANLIB" >&6; }
  4546. else
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4548. $as_echo "no" >&6; }
  4549. fi
  4550. if test "x$ac_ct_RANLIB" = x; then
  4551. RANLIB=":"
  4552. else
  4553. case $cross_compiling:$ac_tool_warned in
  4554. yes:)
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4556. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4557. ac_tool_warned=yes ;;
  4558. esac
  4559. RANLIB=$ac_ct_RANLIB
  4560. fi
  4561. else
  4562. RANLIB="$ac_cv_prog_RANLIB"
  4563. fi
  4564. for ac_prog in ar
  4565. do
  4566. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4567. set dummy $ac_prog; ac_word=$2
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4569. $as_echo_n "checking for $ac_word... " >&6; }
  4570. if test -n "$AR"; then
  4571. ac_cv_prog_AR="$AR" # Let the user override the test.
  4572. else
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4580. ac_cv_prog_AR="$ac_prog"
  4581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4582. break 2
  4583. fi
  4584. done
  4585. done
  4586. IFS=$as_save_IFS
  4587. fi
  4588. AR=$ac_cv_prog_AR
  4589. if test -n "$AR"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4591. $as_echo "$AR" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. test -n "$AR" && break
  4597. done
  4598. for ac_prog in env
  4599. do
  4600. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4601. set dummy $ac_prog; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if test -n "$ENV"; then
  4605. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  4606. else
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_exec_ext in '' $ac_executable_extensions; do
  4613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4614. ac_cv_prog_ENV="$ac_prog"
  4615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4616. break 2
  4617. fi
  4618. done
  4619. done
  4620. IFS=$as_save_IFS
  4621. fi
  4622. ENV=$ac_cv_prog_ENV
  4623. if test -n "$ENV"; then
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
  4625. $as_echo "$ENV" >&6; }
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4628. $as_echo "no" >&6; }
  4629. fi
  4630. test -n "$ENV" && break
  4631. done
  4632. # Extract the first word of "perl", so it can be a program name with args.
  4633. set dummy perl; ac_word=$2
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4635. $as_echo_n "checking for $ac_word... " >&6; }
  4636. case $PERL in
  4637. [\\/]* | ?:[\\/]*)
  4638. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4639. ;;
  4640. *)
  4641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4642. for as_dir in $PATH
  4643. do
  4644. IFS=$as_save_IFS
  4645. test -z "$as_dir" && as_dir=.
  4646. for ac_exec_ext in '' $ac_executable_extensions; do
  4647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4648. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4650. break 2
  4651. fi
  4652. done
  4653. done
  4654. IFS=$as_save_IFS
  4655. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  4656. ;;
  4657. esac
  4658. PERL=$ac_cv_path_PERL
  4659. if test -n "$PERL"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4661. $as_echo "$PERL" >&6; }
  4662. else
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4664. $as_echo "no" >&6; }
  4665. fi
  4666. ac_ext=c
  4667. ac_cpp='$CPP $CPPFLAGS'
  4668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4672. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4673. # On Suns, sometimes $CPP names a directory.
  4674. if test -n "$CPP" && test -d "$CPP"; then
  4675. CPP=
  4676. fi
  4677. if test -z "$CPP"; then
  4678. # Double quotes because CPP needs to be expanded
  4679. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4680. do
  4681. ac_preproc_ok=false
  4682. for ac_c_preproc_warn_flag in '' yes
  4683. do
  4684. # Use a header file that comes with gcc, so configuring glibc
  4685. # with a fresh cross-compiler works.
  4686. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4687. # <limits.h> exists even on freestanding compilers.
  4688. # On the NeXT, cc -E runs the code through the compiler's parser,
  4689. # not just through cpp. "Syntax error" is here to catch this case.
  4690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4691. /* end confdefs.h. */
  4692. #ifdef __STDC__
  4693. # include <limits.h>
  4694. #else
  4695. # include <assert.h>
  4696. #endif
  4697. Syntax error
  4698. _ACEOF
  4699. if ac_fn_c_try_cpp "$LINENO"; then :
  4700. else
  4701. # Broken: fails on valid input.
  4702. continue
  4703. fi
  4704. rm -f conftest.err conftest.i conftest.$ac_ext
  4705. # OK, works on sane cases. Now check whether nonexistent headers
  4706. # can be detected and how.
  4707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4708. /* end confdefs.h. */
  4709. #include <ac_nonexistent.h>
  4710. _ACEOF
  4711. if ac_fn_c_try_cpp "$LINENO"; then :
  4712. # Broken: success on invalid input.
  4713. continue
  4714. else
  4715. # Passes both tests.
  4716. ac_preproc_ok=:
  4717. break
  4718. fi
  4719. rm -f conftest.err conftest.i conftest.$ac_ext
  4720. done
  4721. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4722. rm -f conftest.i conftest.err conftest.$ac_ext
  4723. if $ac_preproc_ok; then :
  4724. break
  4725. fi
  4726. done
  4727. ac_cv_prog_CPP=$CPP
  4728. CPP=$ac_cv_prog_CPP
  4729. else
  4730. ac_cv_prog_CPP=$CPP
  4731. fi
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4733. $as_echo "$CPP" >&6; }
  4734. ac_preproc_ok=false
  4735. for ac_c_preproc_warn_flag in '' yes
  4736. do
  4737. # Use a header file that comes with gcc, so configuring glibc
  4738. # with a fresh cross-compiler works.
  4739. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4740. # <limits.h> exists even on freestanding compilers.
  4741. # On the NeXT, cc -E runs the code through the compiler's parser,
  4742. # not just through cpp. "Syntax error" is here to catch this case.
  4743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end confdefs.h. */
  4745. #ifdef __STDC__
  4746. # include <limits.h>
  4747. #else
  4748. # include <assert.h>
  4749. #endif
  4750. Syntax error
  4751. _ACEOF
  4752. if ac_fn_c_try_cpp "$LINENO"; then :
  4753. else
  4754. # Broken: fails on valid input.
  4755. continue
  4756. fi
  4757. rm -f conftest.err conftest.i conftest.$ac_ext
  4758. # OK, works on sane cases. Now check whether nonexistent headers
  4759. # can be detected and how.
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. #include <ac_nonexistent.h>
  4763. _ACEOF
  4764. if ac_fn_c_try_cpp "$LINENO"; then :
  4765. # Broken: success on invalid input.
  4766. continue
  4767. else
  4768. # Passes both tests.
  4769. ac_preproc_ok=:
  4770. break
  4771. fi
  4772. rm -f conftest.err conftest.i conftest.$ac_ext
  4773. done
  4774. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4775. rm -f conftest.i conftest.err conftest.$ac_ext
  4776. if $ac_preproc_ok; then :
  4777. else
  4778. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4779. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4780. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4781. See \`config.log' for more details" "$LINENO" 5; }
  4782. fi
  4783. ac_ext=c
  4784. ac_cpp='$CPP $CPPFLAGS'
  4785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4789. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4790. if test -z "$GREP"; then
  4791. ac_path_GREP_found=false
  4792. # Loop through the user's path and test for each of PROGNAME-LIST
  4793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4794. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4795. do
  4796. IFS=$as_save_IFS
  4797. test -z "$as_dir" && as_dir=.
  4798. for ac_prog in grep ggrep; do
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4801. as_fn_executable_p "$ac_path_GREP" || continue
  4802. # Check for GNU ac_path_GREP and select it if it is found.
  4803. # Check for GNU $ac_path_GREP
  4804. case `"$ac_path_GREP" --version 2>&1` in
  4805. *GNU*)
  4806. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4807. *)
  4808. ac_count=0
  4809. $as_echo_n 0123456789 >"conftest.in"
  4810. while :
  4811. do
  4812. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4813. mv "conftest.tmp" "conftest.in"
  4814. cp "conftest.in" "conftest.nl"
  4815. $as_echo 'GREP' >> "conftest.nl"
  4816. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4817. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4818. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4819. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4820. # Best one so far, save it but keep looking for a better one
  4821. ac_cv_path_GREP="$ac_path_GREP"
  4822. ac_path_GREP_max=$ac_count
  4823. fi
  4824. # 10*(2^10) chars as input seems more than enough
  4825. test $ac_count -gt 10 && break
  4826. done
  4827. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4828. esac
  4829. $ac_path_GREP_found && break 3
  4830. done
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. if test -z "$ac_cv_path_GREP"; then
  4835. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4836. fi
  4837. else
  4838. ac_cv_path_GREP=$GREP
  4839. fi
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4841. $as_echo "$ac_cv_path_GREP" >&6; }
  4842. GREP="$ac_cv_path_GREP"
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4844. $as_echo_n "checking for egrep... " >&6; }
  4845. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4846. then ac_cv_path_EGREP="$GREP -E"
  4847. else
  4848. if test -z "$EGREP"; then
  4849. ac_path_EGREP_found=false
  4850. # Loop through the user's path and test for each of PROGNAME-LIST
  4851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4852. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4853. do
  4854. IFS=$as_save_IFS
  4855. test -z "$as_dir" && as_dir=.
  4856. for ac_prog in egrep; do
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4859. as_fn_executable_p "$ac_path_EGREP" || continue
  4860. # Check for GNU ac_path_EGREP and select it if it is found.
  4861. # Check for GNU $ac_path_EGREP
  4862. case `"$ac_path_EGREP" --version 2>&1` in
  4863. *GNU*)
  4864. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4865. *)
  4866. ac_count=0
  4867. $as_echo_n 0123456789 >"conftest.in"
  4868. while :
  4869. do
  4870. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4871. mv "conftest.tmp" "conftest.in"
  4872. cp "conftest.in" "conftest.nl"
  4873. $as_echo 'EGREP' >> "conftest.nl"
  4874. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4875. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4876. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4877. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4878. # Best one so far, save it but keep looking for a better one
  4879. ac_cv_path_EGREP="$ac_path_EGREP"
  4880. ac_path_EGREP_max=$ac_count
  4881. fi
  4882. # 10*(2^10) chars as input seems more than enough
  4883. test $ac_count -gt 10 && break
  4884. done
  4885. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4886. esac
  4887. $ac_path_EGREP_found && break 3
  4888. done
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. if test -z "$ac_cv_path_EGREP"; then
  4893. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4894. fi
  4895. else
  4896. ac_cv_path_EGREP=$EGREP
  4897. fi
  4898. fi
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4900. $as_echo "$ac_cv_path_EGREP" >&6; }
  4901. EGREP="$ac_cv_path_EGREP"
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4903. $as_echo_n "checking for ANSI C header files... " >&6; }
  4904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4905. /* end confdefs.h. */
  4906. #include <stdlib.h>
  4907. #include <stdarg.h>
  4908. #include <string.h>
  4909. #include <float.h>
  4910. int
  4911. main ()
  4912. {
  4913. ;
  4914. return 0;
  4915. }
  4916. _ACEOF
  4917. if ac_fn_c_try_compile "$LINENO"; then :
  4918. ac_cv_header_stdc=yes
  4919. else
  4920. ac_cv_header_stdc=no
  4921. fi
  4922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4923. if test $ac_cv_header_stdc = yes; then
  4924. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4926. /* end confdefs.h. */
  4927. #include <string.h>
  4928. _ACEOF
  4929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4930. $EGREP "memchr" >/dev/null 2>&1; then :
  4931. else
  4932. ac_cv_header_stdc=no
  4933. fi
  4934. rm -f conftest*
  4935. fi
  4936. if test $ac_cv_header_stdc = yes; then
  4937. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <stdlib.h>
  4941. _ACEOF
  4942. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4943. $EGREP "free" >/dev/null 2>&1; then :
  4944. else
  4945. ac_cv_header_stdc=no
  4946. fi
  4947. rm -f conftest*
  4948. fi
  4949. if test $ac_cv_header_stdc = yes; then
  4950. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4951. if test "$cross_compiling" = yes; then :
  4952. :
  4953. else
  4954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end confdefs.h. */
  4956. #include <ctype.h>
  4957. #include <stdlib.h>
  4958. #if ((' ' & 0x0FF) == 0x020)
  4959. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4960. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4961. #else
  4962. # define ISLOWER(c) \
  4963. (('a' <= (c) && (c) <= 'i') \
  4964. || ('j' <= (c) && (c) <= 'r') \
  4965. || ('s' <= (c) && (c) <= 'z'))
  4966. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4967. #endif
  4968. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4969. int
  4970. main ()
  4971. {
  4972. int i;
  4973. for (i = 0; i < 256; i++)
  4974. if (XOR (islower (i), ISLOWER (i))
  4975. || toupper (i) != TOUPPER (i))
  4976. return 2;
  4977. return 0;
  4978. }
  4979. _ACEOF
  4980. if ac_fn_c_try_run "$LINENO"; then :
  4981. else
  4982. ac_cv_header_stdc=no
  4983. fi
  4984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4985. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4986. fi
  4987. fi
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4989. $as_echo "$ac_cv_header_stdc" >&6; }
  4990. if test $ac_cv_header_stdc = yes; then
  4991. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4992. fi
  4993. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  4994. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4995. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4996. inttypes.h stdint.h unistd.h
  4997. do :
  4998. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4999. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5000. "
  5001. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5002. cat >>confdefs.h <<_ACEOF
  5003. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5004. _ACEOF
  5005. fi
  5006. done
  5007. for ac_header in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  5008. do :
  5009. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5010. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5011. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5012. cat >>confdefs.h <<_ACEOF
  5013. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5014. _ACEOF
  5015. fi
  5016. done
  5017. for ac_header in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  5018. do :
  5019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5020. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5021. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5022. cat >>confdefs.h <<_ACEOF
  5023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5024. _ACEOF
  5025. fi
  5026. done
  5027. for ac_header in sys/timeb.h sys/types.h sys/utsname.h
  5028. do :
  5029. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5030. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5031. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5032. cat >>confdefs.h <<_ACEOF
  5033. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5034. _ACEOF
  5035. fi
  5036. done
  5037. for ac_header in libintl.h iconv.h
  5038. do :
  5039. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5040. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5041. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5042. cat >>confdefs.h <<_ACEOF
  5043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5044. _ACEOF
  5045. fi
  5046. done
  5047. for ac_header in langinfo.h
  5048. do :
  5049. ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
  5050. if test "x$ac_cv_header_langinfo_h" = xyes; then :
  5051. cat >>confdefs.h <<_ACEOF
  5052. #define HAVE_LANGINFO_H 1
  5053. _ACEOF
  5054. fi
  5055. done
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5057. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5059. /* end confdefs.h. */
  5060. #include <sys/types.h>
  5061. #include <sys/time.h>
  5062. #include <time.h>
  5063. int
  5064. main ()
  5065. {
  5066. if ((struct tm *) 0)
  5067. return 0;
  5068. ;
  5069. return 0;
  5070. }
  5071. _ACEOF
  5072. if ac_fn_c_try_compile "$LINENO"; then :
  5073. ac_cv_header_time=yes
  5074. else
  5075. ac_cv_header_time=no
  5076. fi
  5077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5079. $as_echo "$ac_cv_header_time" >&6; }
  5080. if test $ac_cv_header_time = yes; then
  5081. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5082. fi
  5083. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  5084. if test "x$ac_cv_type_off_t" = xyes; then :
  5085. else
  5086. cat >>confdefs.h <<_ACEOF
  5087. #define off_t long int
  5088. _ACEOF
  5089. fi
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5091. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5093. /* end confdefs.h. */
  5094. #include <sys/types.h>
  5095. _ACEOF
  5096. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5097. $EGREP "uid_t" >/dev/null 2>&1; then :
  5098. ac_cv_type_uid_t=yes
  5099. else
  5100. ac_cv_type_uid_t=no
  5101. fi
  5102. rm -f conftest*
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5104. $as_echo "$ac_cv_type_uid_t" >&6; }
  5105. if test $ac_cv_type_uid_t = no; then
  5106. $as_echo "#define uid_t int" >>confdefs.h
  5107. $as_echo "#define gid_t int" >>confdefs.h
  5108. fi
  5109. case $host_os in
  5110. *cygwin* ) CYGWIN=yes;;
  5111. * ) CYGWIN=no;;
  5112. esac
  5113. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  5114. do :
  5115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5116. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5117. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5118. cat >>confdefs.h <<_ACEOF
  5119. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5120. _ACEOF
  5121. fi
  5122. done
  5123. for ac_func in seteuid setpriority setreuid setruid
  5124. do :
  5125. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5126. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5127. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5128. cat >>confdefs.h <<_ACEOF
  5129. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5130. _ACEOF
  5131. fi
  5132. done
  5133. for ac_func in drand48
  5134. do :
  5135. ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48"
  5136. if test "x$ac_cv_func_drand48" = xyes; then :
  5137. cat >>confdefs.h <<_ACEOF
  5138. #define HAVE_DRAND48 1
  5139. _ACEOF
  5140. fi
  5141. done
  5142. for ac_func in putenv setenv
  5143. do :
  5144. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5145. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5146. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5147. cat >>confdefs.h <<_ACEOF
  5148. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5149. _ACEOF
  5150. fi
  5151. done
  5152. for ac_func in nanosleep
  5153. do :
  5154. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  5155. if test "x$ac_cv_func_nanosleep" = xyes; then :
  5156. cat >>confdefs.h <<_ACEOF
  5157. #define HAVE_NANOSLEEP 1
  5158. _ACEOF
  5159. fi
  5160. done
  5161. if test "$cross_compiling" != "yes" ; then
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  5163. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  5164. if test "$cross_compiling" = yes; then :
  5165. as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
  5166. else
  5167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5168. /* end confdefs.h. */
  5169. $ac_includes_default
  5170. int
  5171. main ()
  5172. {
  5173. /* If this system has a BSD-style setpgrp which takes arguments,
  5174. setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  5175. exit successfully. */
  5176. return setpgrp (1,1) != -1;
  5177. ;
  5178. return 0;
  5179. }
  5180. _ACEOF
  5181. if ac_fn_c_try_run "$LINENO"; then :
  5182. ac_cv_func_setpgrp_void=no
  5183. else
  5184. ac_cv_func_setpgrp_void=yes
  5185. fi
  5186. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5187. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5188. fi
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  5190. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  5191. if test $ac_cv_func_setpgrp_void = yes; then
  5192. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  5193. fi
  5194. else
  5195. CROSS_COMPILING=1
  5196. fi
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  5198. $as_echo_n "checking for long long int... " >&6; }
  5199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5200. /* end confdefs.h. */
  5201. int
  5202. main ()
  5203. {
  5204. long long int x;
  5205. ;
  5206. return 0;
  5207. }
  5208. _ACEOF
  5209. if ac_fn_c_try_compile "$LINENO"; then :
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5211. $as_echo "yes" >&6; }
  5212. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  5213. else
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5215. $as_echo "no" >&6; }
  5216. fi
  5217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
  5219. $as_echo_n "checking for int64_t... " >&6; }
  5220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5221. /* end confdefs.h. */
  5222. #include <sys/types.h>
  5223. int
  5224. main ()
  5225. {
  5226. int64_t x;
  5227. ;
  5228. return 0;
  5229. }
  5230. _ACEOF
  5231. if ac_fn_c_try_compile "$LINENO"; then :
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5233. $as_echo "yes" >&6; }
  5234. $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for W11" >&5
  5241. $as_echo_n "checking for W11... " >&6; }
  5242. case "$enable_w11" in
  5243. yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$enable_w11\"" >&5
  5244. $as_echo "\"$enable_w11\"" >&6; } ;;
  5245. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  5246. esac
  5247. USE_X11=
  5248. USE_W11=
  5249. XLIB=
  5250. XTLIB=
  5251. if test "$enable_w11" = "yes" ; then
  5252. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  5253. X_LIBS='-L$(LIBDIR)'
  5254. USE_W11="1"
  5255. USE_X11="1"
  5256. XLIB=-lX11
  5257. CFLAGS="$CFLAGS -D__W98__"
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  5260. $as_echo_n "checking for X... " >&6; }
  5261. # Check whether --with-x was given.
  5262. if test "${with_x+set}" = set; then :
  5263. withval=$with_x;
  5264. fi
  5265. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  5266. if test "x$with_x" = xno; then
  5267. # The user explicitly disabled X.
  5268. have_x=disabled
  5269. else
  5270. case $x_includes,$x_libraries in #(
  5271. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  5272. *,NONE | NONE,*)
  5273. # One or both of the vars are not set, and there is no cached value.
  5274. ac_x_includes=no ac_x_libraries=no
  5275. rm -f -r conftest.dir
  5276. if mkdir conftest.dir; then
  5277. cd conftest.dir
  5278. cat >Imakefile <<'_ACEOF'
  5279. incroot:
  5280. @echo incroot='${INCROOT}'
  5281. usrlibdir:
  5282. @echo usrlibdir='${USRLIBDIR}'
  5283. libdir:
  5284. @echo libdir='${LIBDIR}'
  5285. _ACEOF
  5286. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  5287. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5288. for ac_var in incroot usrlibdir libdir; do
  5289. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  5290. done
  5291. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  5292. for ac_extension in a so sl dylib la dll; do
  5293. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  5294. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  5295. ac_im_usrlibdir=$ac_im_libdir; break
  5296. fi
  5297. done
  5298. # Screen out bogus values from the imake configuration. They are
  5299. # bogus both because they are the default anyway, and because
  5300. # using them would break gcc on systems where it needs fixed includes.
  5301. case $ac_im_incroot in
  5302. /usr/include) ac_x_includes= ;;
  5303. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  5304. esac
  5305. case $ac_im_usrlibdir in
  5306. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  5307. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  5308. esac
  5309. fi
  5310. cd ..
  5311. rm -f -r conftest.dir
  5312. fi
  5313. # Standard set of common directories for X headers.
  5314. # Check X11 before X11Rn because it is often a symlink to the current release.
  5315. ac_x_header_dirs='
  5316. /usr/X11/include
  5317. /usr/X11R7/include
  5318. /usr/X11R6/include
  5319. /usr/X11R5/include
  5320. /usr/X11R4/include
  5321. /usr/include/X11
  5322. /usr/include/X11R7
  5323. /usr/include/X11R6
  5324. /usr/include/X11R5
  5325. /usr/include/X11R4
  5326. /usr/local/X11/include
  5327. /usr/local/X11R7/include
  5328. /usr/local/X11R6/include
  5329. /usr/local/X11R5/include
  5330. /usr/local/X11R4/include
  5331. /usr/local/include/X11
  5332. /usr/local/include/X11R7
  5333. /usr/local/include/X11R6
  5334. /usr/local/include/X11R5
  5335. /usr/local/include/X11R4
  5336. /usr/X386/include
  5337. /usr/x386/include
  5338. /usr/XFree86/include/X11
  5339. /usr/include
  5340. /usr/local/include
  5341. /usr/unsupported/include
  5342. /usr/athena/include
  5343. /usr/local/x11r5/include
  5344. /usr/lpp/Xamples/include
  5345. /usr/openwin/include
  5346. /usr/openwin/share/include'
  5347. if test "$ac_x_includes" = no; then
  5348. # Guess where to find include files, by looking for Xlib.h.
  5349. # First, try using that file with no special directory specified.
  5350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5351. /* end confdefs.h. */
  5352. #include <X11/Xlib.h>
  5353. _ACEOF
  5354. if ac_fn_c_try_cpp "$LINENO"; then :
  5355. # We can compile using X headers with no special include directory.
  5356. ac_x_includes=
  5357. else
  5358. for ac_dir in $ac_x_header_dirs; do
  5359. if test -r "$ac_dir/X11/Xlib.h"; then
  5360. ac_x_includes=$ac_dir
  5361. break
  5362. fi
  5363. done
  5364. fi
  5365. rm -f conftest.err conftest.i conftest.$ac_ext
  5366. fi # $ac_x_includes = no
  5367. if test "$ac_x_libraries" = no; then
  5368. # Check for the libraries.
  5369. # See if we find them without any special options.
  5370. # Don't add to $LIBS permanently.
  5371. ac_save_LIBS=$LIBS
  5372. LIBS="-lX11 $LIBS"
  5373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5374. /* end confdefs.h. */
  5375. #include <X11/Xlib.h>
  5376. int
  5377. main ()
  5378. {
  5379. XrmInitialize ()
  5380. ;
  5381. return 0;
  5382. }
  5383. _ACEOF
  5384. if ac_fn_c_try_link "$LINENO"; then :
  5385. LIBS=$ac_save_LIBS
  5386. # We can link X programs with no special library path.
  5387. ac_x_libraries=
  5388. else
  5389. LIBS=$ac_save_LIBS
  5390. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  5391. do
  5392. # Don't even attempt the hair of trying to link an X program!
  5393. for ac_extension in a so sl dylib la dll; do
  5394. if test -r "$ac_dir/libX11.$ac_extension"; then
  5395. ac_x_libraries=$ac_dir
  5396. break 2
  5397. fi
  5398. done
  5399. done
  5400. fi
  5401. rm -f core conftest.err conftest.$ac_objext \
  5402. conftest$ac_exeext conftest.$ac_ext
  5403. fi # $ac_x_libraries = no
  5404. case $ac_x_includes,$ac_x_libraries in #(
  5405. no,* | *,no | *\'*)
  5406. # Didn't find X, or a directory has "'" in its name.
  5407. ac_cv_have_x="have_x=no";; #(
  5408. *)
  5409. # Record where we found X for the cache.
  5410. ac_cv_have_x="have_x=yes\
  5411. ac_x_includes='$ac_x_includes'\
  5412. ac_x_libraries='$ac_x_libraries'"
  5413. esac
  5414. ;; #(
  5415. *) have_x=yes;;
  5416. esac
  5417. eval "$ac_cv_have_x"
  5418. fi # $with_x != no
  5419. if test "$have_x" != yes; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  5421. $as_echo "$have_x" >&6; }
  5422. no_x=yes
  5423. else
  5424. # If each of the values was on the command line, it overrides each guess.
  5425. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  5426. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  5427. # Update the cache value to reflect the command line values.
  5428. ac_cv_have_x="have_x=yes\
  5429. ac_x_includes='$x_includes'\
  5430. ac_x_libraries='$x_libraries'"
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  5432. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  5433. fi
  5434. if test "$no_x" = yes; then
  5435. # Not all programs may use this symbol, but it does not hurt to define it.
  5436. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  5437. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  5438. else
  5439. if test -n "$x_includes"; then
  5440. X_CFLAGS="$X_CFLAGS -I$x_includes"
  5441. fi
  5442. # It would also be nice to do this for all -L options, not just this one.
  5443. if test -n "$x_libraries"; then
  5444. X_LIBS="$X_LIBS -L$x_libraries"
  5445. # For Solaris; some versions of Sun CC require a space after -R and
  5446. # others require no space. Words are not sufficient . . . .
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  5448. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  5449. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  5450. ac_xsave_c_werror_flag=$ac_c_werror_flag
  5451. ac_c_werror_flag=yes
  5452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5453. /* end confdefs.h. */
  5454. int
  5455. main ()
  5456. {
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. if ac_fn_c_try_link "$LINENO"; then :
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. $as_echo "no" >&6; }
  5464. X_LIBS="$X_LIBS -R$x_libraries"
  5465. else
  5466. LIBS="$ac_xsave_LIBS -R $x_libraries"
  5467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5468. /* end confdefs.h. */
  5469. int
  5470. main ()
  5471. {
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. if ac_fn_c_try_link "$LINENO"; then :
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5478. $as_echo "yes" >&6; }
  5479. X_LIBS="$X_LIBS -R $x_libraries"
  5480. else
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  5482. $as_echo "neither works" >&6; }
  5483. fi
  5484. rm -f core conftest.err conftest.$ac_objext \
  5485. conftest$ac_exeext conftest.$ac_ext
  5486. fi
  5487. rm -f core conftest.err conftest.$ac_objext \
  5488. conftest$ac_exeext conftest.$ac_ext
  5489. ac_c_werror_flag=$ac_xsave_c_werror_flag
  5490. LIBS=$ac_xsave_LIBS
  5491. fi
  5492. # Check for system-dependent libraries X programs must link with.
  5493. # Do this before checking for the system-independent R6 libraries
  5494. # (-lICE), since we may need -lsocket or whatever for X linking.
  5495. if test "$ISC" = yes; then
  5496. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  5497. else
  5498. # Martyn Johnson says this is needed for Ultrix, if the X
  5499. # libraries were built with DECnet support. And Karl Berry says
  5500. # the Alpha needs dnet_stub (dnet does not exist).
  5501. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  5502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5503. /* end confdefs.h. */
  5504. /* Override any GCC internal prototype to avoid an error.
  5505. Use char because int might match the return type of a GCC
  5506. builtin and then its argument prototype would still apply. */
  5507. #ifdef __cplusplus
  5508. extern "C"
  5509. #endif
  5510. char XOpenDisplay ();
  5511. int
  5512. main ()
  5513. {
  5514. return XOpenDisplay ();
  5515. ;
  5516. return 0;
  5517. }
  5518. _ACEOF
  5519. if ac_fn_c_try_link "$LINENO"; then :
  5520. else
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  5522. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  5523. ac_check_lib_save_LIBS=$LIBS
  5524. LIBS="-ldnet $LIBS"
  5525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5526. /* end confdefs.h. */
  5527. /* Override any GCC internal prototype to avoid an error.
  5528. Use char because int might match the return type of a GCC
  5529. builtin and then its argument prototype would still apply. */
  5530. #ifdef __cplusplus
  5531. extern "C"
  5532. #endif
  5533. char dnet_ntoa ();
  5534. int
  5535. main ()
  5536. {
  5537. return dnet_ntoa ();
  5538. ;
  5539. return 0;
  5540. }
  5541. _ACEOF
  5542. if ac_fn_c_try_link "$LINENO"; then :
  5543. ac_cv_lib_dnet_dnet_ntoa=yes
  5544. else
  5545. ac_cv_lib_dnet_dnet_ntoa=no
  5546. fi
  5547. rm -f core conftest.err conftest.$ac_objext \
  5548. conftest$ac_exeext conftest.$ac_ext
  5549. LIBS=$ac_check_lib_save_LIBS
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  5551. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  5552. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  5553. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  5554. fi
  5555. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  5557. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  5558. ac_check_lib_save_LIBS=$LIBS
  5559. LIBS="-ldnet_stub $LIBS"
  5560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5561. /* end confdefs.h. */
  5562. /* Override any GCC internal prototype to avoid an error.
  5563. Use char because int might match the return type of a GCC
  5564. builtin and then its argument prototype would still apply. */
  5565. #ifdef __cplusplus
  5566. extern "C"
  5567. #endif
  5568. char dnet_ntoa ();
  5569. int
  5570. main ()
  5571. {
  5572. return dnet_ntoa ();
  5573. ;
  5574. return 0;
  5575. }
  5576. _ACEOF
  5577. if ac_fn_c_try_link "$LINENO"; then :
  5578. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  5579. else
  5580. ac_cv_lib_dnet_stub_dnet_ntoa=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext \
  5583. conftest$ac_exeext conftest.$ac_ext
  5584. LIBS=$ac_check_lib_save_LIBS
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  5586. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  5587. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  5588. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  5589. fi
  5590. fi
  5591. fi
  5592. rm -f core conftest.err conftest.$ac_objext \
  5593. conftest$ac_exeext conftest.$ac_ext
  5594. LIBS="$ac_xsave_LIBS"
  5595. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  5596. # to get the SysV transport functions.
  5597. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  5598. # needs -lnsl.
  5599. # The nsl library prevents programs from opening the X display
  5600. # on Irix 5.2, according to T.E. Dickey.
  5601. # The functions gethostbyname, getservbyname, and inet_addr are
  5602. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  5603. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  5604. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  5605. fi
  5606. if test $ac_cv_func_gethostbyname = no; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  5608. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  5609. ac_check_lib_save_LIBS=$LIBS
  5610. LIBS="-lnsl $LIBS"
  5611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5612. /* end confdefs.h. */
  5613. /* Override any GCC internal prototype to avoid an error.
  5614. Use char because int might match the return type of a GCC
  5615. builtin and then its argument prototype would still apply. */
  5616. #ifdef __cplusplus
  5617. extern "C"
  5618. #endif
  5619. char gethostbyname ();
  5620. int
  5621. main ()
  5622. {
  5623. return gethostbyname ();
  5624. ;
  5625. return 0;
  5626. }
  5627. _ACEOF
  5628. if ac_fn_c_try_link "$LINENO"; then :
  5629. ac_cv_lib_nsl_gethostbyname=yes
  5630. else
  5631. ac_cv_lib_nsl_gethostbyname=no
  5632. fi
  5633. rm -f core conftest.err conftest.$ac_objext \
  5634. conftest$ac_exeext conftest.$ac_ext
  5635. LIBS=$ac_check_lib_save_LIBS
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5637. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  5638. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  5639. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  5640. fi
  5641. if test $ac_cv_lib_nsl_gethostbyname = no; then
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  5643. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  5644. ac_check_lib_save_LIBS=$LIBS
  5645. LIBS="-lbsd $LIBS"
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. /* Override any GCC internal prototype to avoid an error.
  5649. Use char because int might match the return type of a GCC
  5650. builtin and then its argument prototype would still apply. */
  5651. #ifdef __cplusplus
  5652. extern "C"
  5653. #endif
  5654. char gethostbyname ();
  5655. int
  5656. main ()
  5657. {
  5658. return gethostbyname ();
  5659. ;
  5660. return 0;
  5661. }
  5662. _ACEOF
  5663. if ac_fn_c_try_link "$LINENO"; then :
  5664. ac_cv_lib_bsd_gethostbyname=yes
  5665. else
  5666. ac_cv_lib_bsd_gethostbyname=no
  5667. fi
  5668. rm -f core conftest.err conftest.$ac_objext \
  5669. conftest$ac_exeext conftest.$ac_ext
  5670. LIBS=$ac_check_lib_save_LIBS
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  5672. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  5673. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  5674. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  5675. fi
  5676. fi
  5677. fi
  5678. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  5679. # socket/setsockopt and other routines are undefined under SCO ODT
  5680. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  5681. # on later versions), says Simon Leinen: it contains gethostby*
  5682. # variants that don't use the name server (or something). -lsocket
  5683. # must be given before -lnsl if both are needed. We assume that
  5684. # if connect needs -lnsl, so does gethostbyname.
  5685. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  5686. if test "x$ac_cv_func_connect" = xyes; then :
  5687. fi
  5688. if test $ac_cv_func_connect = no; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  5690. $as_echo_n "checking for connect in -lsocket... " >&6; }
  5691. ac_check_lib_save_LIBS=$LIBS
  5692. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  5693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5694. /* end confdefs.h. */
  5695. /* Override any GCC internal prototype to avoid an error.
  5696. Use char because int might match the return type of a GCC
  5697. builtin and then its argument prototype would still apply. */
  5698. #ifdef __cplusplus
  5699. extern "C"
  5700. #endif
  5701. char connect ();
  5702. int
  5703. main ()
  5704. {
  5705. return connect ();
  5706. ;
  5707. return 0;
  5708. }
  5709. _ACEOF
  5710. if ac_fn_c_try_link "$LINENO"; then :
  5711. ac_cv_lib_socket_connect=yes
  5712. else
  5713. ac_cv_lib_socket_connect=no
  5714. fi
  5715. rm -f core conftest.err conftest.$ac_objext \
  5716. conftest$ac_exeext conftest.$ac_ext
  5717. LIBS=$ac_check_lib_save_LIBS
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  5719. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  5720. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  5721. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  5722. fi
  5723. fi
  5724. # Guillermo Gomez says -lposix is necessary on A/UX.
  5725. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  5726. if test "x$ac_cv_func_remove" = xyes; then :
  5727. fi
  5728. if test $ac_cv_func_remove = no; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  5730. $as_echo_n "checking for remove in -lposix... " >&6; }
  5731. ac_check_lib_save_LIBS=$LIBS
  5732. LIBS="-lposix $LIBS"
  5733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5734. /* end confdefs.h. */
  5735. /* Override any GCC internal prototype to avoid an error.
  5736. Use char because int might match the return type of a GCC
  5737. builtin and then its argument prototype would still apply. */
  5738. #ifdef __cplusplus
  5739. extern "C"
  5740. #endif
  5741. char remove ();
  5742. int
  5743. main ()
  5744. {
  5745. return remove ();
  5746. ;
  5747. return 0;
  5748. }
  5749. _ACEOF
  5750. if ac_fn_c_try_link "$LINENO"; then :
  5751. ac_cv_lib_posix_remove=yes
  5752. else
  5753. ac_cv_lib_posix_remove=no
  5754. fi
  5755. rm -f core conftest.err conftest.$ac_objext \
  5756. conftest$ac_exeext conftest.$ac_ext
  5757. LIBS=$ac_check_lib_save_LIBS
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  5759. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  5760. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  5761. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  5762. fi
  5763. fi
  5764. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  5765. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  5766. if test "x$ac_cv_func_shmat" = xyes; then :
  5767. fi
  5768. if test $ac_cv_func_shmat = no; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  5770. $as_echo_n "checking for shmat in -lipc... " >&6; }
  5771. ac_check_lib_save_LIBS=$LIBS
  5772. LIBS="-lipc $LIBS"
  5773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5774. /* end confdefs.h. */
  5775. /* Override any GCC internal prototype to avoid an error.
  5776. Use char because int might match the return type of a GCC
  5777. builtin and then its argument prototype would still apply. */
  5778. #ifdef __cplusplus
  5779. extern "C"
  5780. #endif
  5781. char shmat ();
  5782. int
  5783. main ()
  5784. {
  5785. return shmat ();
  5786. ;
  5787. return 0;
  5788. }
  5789. _ACEOF
  5790. if ac_fn_c_try_link "$LINENO"; then :
  5791. ac_cv_lib_ipc_shmat=yes
  5792. else
  5793. ac_cv_lib_ipc_shmat=no
  5794. fi
  5795. rm -f core conftest.err conftest.$ac_objext \
  5796. conftest$ac_exeext conftest.$ac_ext
  5797. LIBS=$ac_check_lib_save_LIBS
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  5799. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  5800. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  5801. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  5802. fi
  5803. fi
  5804. fi
  5805. # Check for libraries that X11R6 Xt/Xaw programs need.
  5806. ac_save_LDFLAGS=$LDFLAGS
  5807. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  5808. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  5809. # check for ICE first), but we must link in the order -lSM -lICE or
  5810. # we get undefined symbols. So assume we have SM if we have ICE.
  5811. # These have to be linked with before -lX11, unlike the other
  5812. # libraries we check for below, so use a different variable.
  5813. # John Interrante, Karl Berry
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  5815. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  5816. ac_check_lib_save_LIBS=$LIBS
  5817. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  5818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5819. /* end confdefs.h. */
  5820. /* Override any GCC internal prototype to avoid an error.
  5821. Use char because int might match the return type of a GCC
  5822. builtin and then its argument prototype would still apply. */
  5823. #ifdef __cplusplus
  5824. extern "C"
  5825. #endif
  5826. char IceConnectionNumber ();
  5827. int
  5828. main ()
  5829. {
  5830. return IceConnectionNumber ();
  5831. ;
  5832. return 0;
  5833. }
  5834. _ACEOF
  5835. if ac_fn_c_try_link "$LINENO"; then :
  5836. ac_cv_lib_ICE_IceConnectionNumber=yes
  5837. else
  5838. ac_cv_lib_ICE_IceConnectionNumber=no
  5839. fi
  5840. rm -f core conftest.err conftest.$ac_objext \
  5841. conftest$ac_exeext conftest.$ac_ext
  5842. LIBS=$ac_check_lib_save_LIBS
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  5844. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  5845. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  5846. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  5847. fi
  5848. LDFLAGS=$ac_save_LDFLAGS
  5849. fi
  5850. if test "$no_x" != "yes"; then
  5851. USE_X11="1"
  5852. XLIB=-lX11
  5853. XTLIB=-lXt
  5854. fi
  5855. fi
  5856. # Note that some systems (FreeBSD for example) need an extra library for
  5857. # cuserid
  5858. ac_save_libs="$LIBS"
  5859. LIBS=""
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cuserid" >&5
  5861. $as_echo_n "checking for library containing cuserid... " >&6; }
  5862. ac_func_search_save_LIBS=$LIBS
  5863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5864. /* end confdefs.h. */
  5865. /* Override any GCC internal prototype to avoid an error.
  5866. Use char because int might match the return type of a GCC
  5867. builtin and then its argument prototype would still apply. */
  5868. #ifdef __cplusplus
  5869. extern "C"
  5870. #endif
  5871. char cuserid ();
  5872. int
  5873. main ()
  5874. {
  5875. return cuserid ();
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. for ac_lib in '' compat; do
  5881. if test -z "$ac_lib"; then
  5882. ac_res="none required"
  5883. else
  5884. ac_res=-l$ac_lib
  5885. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5886. fi
  5887. if ac_fn_c_try_link "$LINENO"; then :
  5888. ac_cv_search_cuserid=$ac_res
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext \
  5891. conftest$ac_exeext
  5892. if ${ac_cv_search_cuserid+:} false; then :
  5893. break
  5894. fi
  5895. done
  5896. if ${ac_cv_search_cuserid+:} false; then :
  5897. else
  5898. ac_cv_search_cuserid=no
  5899. fi
  5900. rm conftest.$ac_ext
  5901. LIBS=$ac_func_search_save_LIBS
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cuserid" >&5
  5903. $as_echo "$ac_cv_search_cuserid" >&6; }
  5904. ac_res=$ac_cv_search_cuserid
  5905. if test "$ac_res" != no; then :
  5906. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5907. fi
  5908. DBMIEXTRALIB="$LIBS"
  5909. LIBS="$ac_save_libs"
  5910. for ac_func in asprintf
  5911. do :
  5912. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  5913. if test "x$ac_cv_func_asprintf" = xyes; then :
  5914. cat >>confdefs.h <<_ACEOF
  5915. #define HAVE_ASPRINTF 1
  5916. _ACEOF
  5917. fi
  5918. done
  5919. # Test if mathlib needs -lm flag or is included with libc
  5920. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  5921. if test "x$ac_cv_func_atan" = xyes; then :
  5922. MATHLIB=
  5923. else
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
  5925. $as_echo_n "checking for atan in -lm... " >&6; }
  5926. ac_check_lib_save_LIBS=$LIBS
  5927. LIBS="-lm $LIBS"
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. /* Override any GCC internal prototype to avoid an error.
  5931. Use char because int might match the return type of a GCC
  5932. builtin and then its argument prototype would still apply. */
  5933. #ifdef __cplusplus
  5934. extern "C"
  5935. #endif
  5936. char atan ();
  5937. int
  5938. main ()
  5939. {
  5940. return atan ();
  5941. ;
  5942. return 0;
  5943. }
  5944. _ACEOF
  5945. if ac_fn_c_try_link "$LINENO"; then :
  5946. ac_cv_lib_m_atan=yes
  5947. else
  5948. ac_cv_lib_m_atan=no
  5949. fi
  5950. rm -f core conftest.err conftest.$ac_objext \
  5951. conftest$ac_exeext conftest.$ac_ext
  5952. LIBS=$ac_check_lib_save_LIBS
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
  5954. $as_echo "$ac_cv_lib_m_atan" >&6; }
  5955. if test "x$ac_cv_lib_m_atan" = xyes; then :
  5956. MATHLIB=-lm
  5957. else
  5958. as_fn_error $? "*** Failed check for math library." "$LINENO" 5
  5959. fi
  5960. fi
  5961. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  5962. if test "x$ac_cv_func_dlsym" = xyes; then :
  5963. DLLIB=
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  5966. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  5967. ac_check_lib_save_LIBS=$LIBS
  5968. LIBS="-ldl $LIBS"
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. /* Override any GCC internal prototype to avoid an error.
  5972. Use char because int might match the return type of a GCC
  5973. builtin and then its argument prototype would still apply. */
  5974. #ifdef __cplusplus
  5975. extern "C"
  5976. #endif
  5977. char dlsym ();
  5978. int
  5979. main ()
  5980. {
  5981. return dlsym ();
  5982. ;
  5983. return 0;
  5984. }
  5985. _ACEOF
  5986. if ac_fn_c_try_link "$LINENO"; then :
  5987. ac_cv_lib_dl_dlsym=yes
  5988. else
  5989. ac_cv_lib_dl_dlsym=no
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext \
  5992. conftest$ac_exeext conftest.$ac_ext
  5993. LIBS=$ac_check_lib_save_LIBS
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  5995. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  5996. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  5997. DLLIB=-ldl
  5998. else
  5999. DLLIB=
  6000. fi
  6001. fi
  6002. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  6003. if test "x$ac_cv_func_iconv" = xyes; then :
  6004. ICONVLIB=
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
  6007. $as_echo_n "checking for iconv in -liconv... " >&6; }
  6008. ac_check_lib_save_LIBS=$LIBS
  6009. LIBS="-liconv $LIBS"
  6010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end confdefs.h. */
  6012. /* Override any GCC internal prototype to avoid an error.
  6013. Use char because int might match the return type of a GCC
  6014. builtin and then its argument prototype would still apply. */
  6015. #ifdef __cplusplus
  6016. extern "C"
  6017. #endif
  6018. char iconv ();
  6019. int
  6020. main ()
  6021. {
  6022. return iconv ();
  6023. ;
  6024. return 0;
  6025. }
  6026. _ACEOF
  6027. if ac_fn_c_try_link "$LINENO"; then :
  6028. ac_cv_lib_iconv_iconv=yes
  6029. else
  6030. ac_cv_lib_iconv_iconv=no
  6031. fi
  6032. rm -f core conftest.err conftest.$ac_objext \
  6033. conftest$ac_exeext conftest.$ac_ext
  6034. LIBS=$ac_check_lib_save_LIBS
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
  6036. $as_echo "$ac_cv_lib_iconv_iconv" >&6; }
  6037. if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
  6038. ICONVLIB=-liconv
  6039. else
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -lgiconv" >&5
  6041. $as_echo_n "checking for iconv in -lgiconv... " >&6; }
  6042. ac_check_lib_save_LIBS=$LIBS
  6043. LIBS="-lgiconv $LIBS"
  6044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6045. /* end confdefs.h. */
  6046. /* Override any GCC internal prototype to avoid an error.
  6047. Use char because int might match the return type of a GCC
  6048. builtin and then its argument prototype would still apply. */
  6049. #ifdef __cplusplus
  6050. extern "C"
  6051. #endif
  6052. char iconv ();
  6053. int
  6054. main ()
  6055. {
  6056. return iconv ();
  6057. ;
  6058. return 0;
  6059. }
  6060. _ACEOF
  6061. if ac_fn_c_try_link "$LINENO"; then :
  6062. ac_cv_lib_giconv_iconv=yes
  6063. else
  6064. ac_cv_lib_giconv_iconv=no
  6065. fi
  6066. rm -f core conftest.err conftest.$ac_objext \
  6067. conftest$ac_exeext conftest.$ac_ext
  6068. LIBS=$ac_check_lib_save_LIBS
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_giconv_iconv" >&5
  6070. $as_echo "$ac_cv_lib_giconv_iconv" >&6; }
  6071. if test "x$ac_cv_lib_giconv_iconv" = xyes; then :
  6072. ICONVLIB=-lgiconv
  6073. else
  6074. ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
  6075. if test "x$ac_cv_func_libiconv" = xyes; then :
  6076. ICONVLIB=
  6077. else
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
  6079. $as_echo_n "checking for libiconv in -liconv... " >&6; }
  6080. ac_check_lib_save_LIBS=$LIBS
  6081. LIBS="-liconv $LIBS"
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. /* Override any GCC internal prototype to avoid an error.
  6085. Use char because int might match the return type of a GCC
  6086. builtin and then its argument prototype would still apply. */
  6087. #ifdef __cplusplus
  6088. extern "C"
  6089. #endif
  6090. char libiconv ();
  6091. int
  6092. main ()
  6093. {
  6094. return libiconv ();
  6095. ;
  6096. return 0;
  6097. }
  6098. _ACEOF
  6099. if ac_fn_c_try_link "$LINENO"; then :
  6100. ac_cv_lib_iconv_libiconv=yes
  6101. else
  6102. ac_cv_lib_iconv_libiconv=no
  6103. fi
  6104. rm -f core conftest.err conftest.$ac_objext \
  6105. conftest$ac_exeext conftest.$ac_ext
  6106. LIBS=$ac_check_lib_save_LIBS
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
  6108. $as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
  6109. if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
  6110. ICONVLIB=-liconv
  6111. else
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -lgiconv" >&5
  6113. $as_echo_n "checking for libiconv in -lgiconv... " >&6; }
  6114. ac_check_lib_save_LIBS=$LIBS
  6115. LIBS="-lgiconv $LIBS"
  6116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6117. /* end confdefs.h. */
  6118. /* Override any GCC internal prototype to avoid an error.
  6119. Use char because int might match the return type of a GCC
  6120. builtin and then its argument prototype would still apply. */
  6121. #ifdef __cplusplus
  6122. extern "C"
  6123. #endif
  6124. char libiconv ();
  6125. int
  6126. main ()
  6127. {
  6128. return libiconv ();
  6129. ;
  6130. return 0;
  6131. }
  6132. _ACEOF
  6133. if ac_fn_c_try_link "$LINENO"; then :
  6134. ac_cv_lib_giconv_libiconv=yes
  6135. else
  6136. ac_cv_lib_giconv_libiconv=no
  6137. fi
  6138. rm -f core conftest.err conftest.$ac_objext \
  6139. conftest$ac_exeext conftest.$ac_ext
  6140. LIBS=$ac_check_lib_save_LIBS
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_giconv_libiconv" >&5
  6142. $as_echo "$ac_cv_lib_giconv_libiconv" >&6; }
  6143. if test "x$ac_cv_lib_giconv_libiconv" = xyes; then :
  6144. ICONVLIB=-lgiconv
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate iconv() function." >&5
  6147. $as_echo "$as_me: WARNING: *** Unable to locate iconv() function." >&2;}
  6148. ICONVLIB=
  6149. fi
  6150. fi
  6151. fi
  6152. fi
  6153. fi
  6154. fi
  6155. have_socket=1
  6156. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  6157. if test "x$ac_cv_func_socket" = xyes; then :
  6158. SOCKLIB=
  6159. else
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  6161. $as_echo_n "checking for socket in -lsocket... " >&6; }
  6162. ac_check_lib_save_LIBS=$LIBS
  6163. LIBS="-lsocket $LIBS"
  6164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6165. /* end confdefs.h. */
  6166. /* Override any GCC internal prototype to avoid an error.
  6167. Use char because int might match the return type of a GCC
  6168. builtin and then its argument prototype would still apply. */
  6169. #ifdef __cplusplus
  6170. extern "C"
  6171. #endif
  6172. char socket ();
  6173. int
  6174. main ()
  6175. {
  6176. return socket ();
  6177. ;
  6178. return 0;
  6179. }
  6180. _ACEOF
  6181. if ac_fn_c_try_link "$LINENO"; then :
  6182. ac_cv_lib_socket_socket=yes
  6183. else
  6184. ac_cv_lib_socket_socket=no
  6185. fi
  6186. rm -f core conftest.err conftest.$ac_objext \
  6187. conftest$ac_exeext conftest.$ac_ext
  6188. LIBS=$ac_check_lib_save_LIBS
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  6190. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  6191. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  6192. SOCKLIB=-lsocket
  6193. else
  6194. have_socket=0
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate socket() function." >&5
  6196. $as_echo "$as_me: WARNING: *** Unable to locate socket() function." >&2;}
  6197. fi
  6198. fi
  6199. if test "$have_socket" = 1 ; then
  6200. HAVE_SOCKET=1
  6201. $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
  6202. else
  6203. HAVE_SOCKET=
  6204. fi
  6205. # Mandatory zlib dependency
  6206. ZLIBLIBPATH=
  6207. ZLIBINCPATH=
  6208. ZLIB=
  6209. # With zlib includes directory
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zlib includes" >&5
  6211. $as_echo_n "checking for location of zlib includes... " >&6; }
  6212. case "$with_zlib_includes" in
  6213. y | ye | yes | n | no)
  6214. as_fn_error $? "*** You must supply a directory to --with-zlib-includes." "$LINENO" 5
  6215. ;;
  6216. esac
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_includes" >&5
  6218. $as_echo "$with_zlib_includes" >&6; }
  6219. if test -n "$with_zlib_includes" ; then
  6220. for dir in $with_zlib_includes; do
  6221. if test -d "$dir"; then
  6222. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  6223. else
  6224. as_fn_error $? "*** zlib includes directory $dir does not exist." "$LINENO" 5
  6225. fi
  6226. done
  6227. fi
  6228. ac_save_cppflags="$CPPFLAGS"
  6229. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  6230. for ac_header in zlib.h
  6231. do :
  6232. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  6233. if test "x$ac_cv_header_zlib_h" = xyes; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define HAVE_ZLIB_H 1
  6236. _ACEOF
  6237. else
  6238. as_fn_error $? "*** Unable to locate zlib includes." "$LINENO" 5
  6239. fi
  6240. done
  6241. CPPFLAGS=$ac_save_cppflags
  6242. # With zlib library directory
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zlib library" >&5
  6244. $as_echo_n "checking for location of zlib library... " >&6; }
  6245. case "$with_zlib_libs" in
  6246. y | ye | yes | n | no)
  6247. as_fn_error $? "*** You must supply a directory to --with-zlib-libs." "$LINENO" 5
  6248. ;;
  6249. esac
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libs" >&5
  6251. $as_echo "$with_zlib_libs" >&6; }
  6252. if test -n "$with_zlib_libs"; then
  6253. for dir in $with_zlib_libs; do
  6254. if test -d "$dir"; then
  6255. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  6256. else
  6257. as_fn_error $? "*** zlib library directory $dir does not exist." "$LINENO" 5
  6258. fi
  6259. done
  6260. fi
  6261. ac_save_ldflags="$LDFLAGS"
  6262. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  6264. $as_echo_n "checking for deflate in -lz... " >&6; }
  6265. ac_check_lib_save_LIBS=$LIBS
  6266. LIBS="-lz $LIBS"
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. /* Override any GCC internal prototype to avoid an error.
  6270. Use char because int might match the return type of a GCC
  6271. builtin and then its argument prototype would still apply. */
  6272. #ifdef __cplusplus
  6273. extern "C"
  6274. #endif
  6275. char deflate ();
  6276. int
  6277. main ()
  6278. {
  6279. return deflate ();
  6280. ;
  6281. return 0;
  6282. }
  6283. _ACEOF
  6284. if ac_fn_c_try_link "$LINENO"; then :
  6285. ac_cv_lib_z_deflate=yes
  6286. else
  6287. ac_cv_lib_z_deflate=no
  6288. fi
  6289. rm -f core conftest.err conftest.$ac_objext \
  6290. conftest$ac_exeext conftest.$ac_ext
  6291. LIBS=$ac_check_lib_save_LIBS
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  6293. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  6294. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  6295. ZLIB="$ZLIB -lz "
  6296. else
  6297. LDFLAGS=${ac_save_ldflags}
  6298. as_fn_error $? "*** Unable to locate zlib library." "$LINENO" 5
  6299. fi
  6300. LDFLAGS=${ac_save_ldflags}
  6301. #
  6302. # Done checking zlib
  6303. # bzip2 support
  6304. BZIP2LIBPATH=
  6305. BZIP2INCPATH=
  6306. BZIP2LIB=
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use bzlib" >&5
  6308. $as_echo_n "checking whether to use bzlib... " >&6; }
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_bzlib\"" >&5
  6310. $as_echo "\"$with_bzlib\"" >&6; }
  6311. case "$with_bzlib" in
  6312. "no") USE_BZIP2= ;;
  6313. "yes") USE_BZIP2="1" ;;
  6314. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6315. esac
  6316. if test -n "$USE_BZIP2"; then
  6317. # With bzip2 includes directory
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of bzlib includes" >&5
  6319. $as_echo_n "checking for location of bzlib includes... " >&6; }
  6320. case "$with_bzlib_includes" in
  6321. y | ye | yes | n | no)
  6322. as_fn_error $? "*** You must supply a directory to --with-bzlib-includes." "$LINENO" 5
  6323. ;;
  6324. esac
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bzlib_includes" >&5
  6326. $as_echo "$with_bzlib_includes" >&6; }
  6327. if test -n "$with_bzlib_includes" ; then
  6328. for dir in $with_bzlib_includes; do
  6329. if test -d "$dir"; then
  6330. BZIP2INCPATH="$BZIP2INCPATH -I$dir"
  6331. else
  6332. as_fn_error $? "*** bzlib includes directory $dir does not exist." "$LINENO" 5
  6333. fi
  6334. done
  6335. fi
  6336. ac_save_cppflags="$CPPFLAGS"
  6337. CPPFLAGS="$BZIP2INCPATH $CPPFLAGS"
  6338. for ac_header in bzlib.h
  6339. do :
  6340. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  6341. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  6342. cat >>confdefs.h <<_ACEOF
  6343. #define HAVE_BZLIB_H 1
  6344. _ACEOF
  6345. else
  6346. as_fn_error $? "*** Unable to locate bzlib includes." "$LINENO" 5
  6347. fi
  6348. done
  6349. CPPFLAGS=$ac_save_cppflags
  6350. # With bzip2 library directory
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of bzlib library" >&5
  6352. $as_echo_n "checking for location of bzlib library... " >&6; }
  6353. case "$with_bzlib_libs" in
  6354. y | ye | yes | n | no)
  6355. as_fn_error $? "*** You must supply a directory to --with-bzlib-libs." "$LINENO" 5
  6356. ;;
  6357. esac
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bzlib_libs" >&5
  6359. $as_echo "$with_bzlib_libs" >&6; }
  6360. if test -n "$with_bzlib_libs"; then
  6361. for dir in $with_bzlib_libs; do
  6362. if test -d "$dir"; then
  6363. BZIP2LIBPATH="$BZIP2LIBPATH -L$dir"
  6364. else
  6365. as_fn_error $? "*** bzlib library directory $dir does not exist." "$LINENO" 5
  6366. fi
  6367. done
  6368. fi
  6369. ac_save_ldflags="$LDFLAGS"
  6370. LDFLAGS="$BZIP2LIBPATH $LDFLAGS"
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
  6372. $as_echo_n "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
  6373. ac_check_lib_save_LIBS=$LIBS
  6374. LIBS="-lbz2 $LIBS"
  6375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6376. /* end confdefs.h. */
  6377. /* Override any GCC internal prototype to avoid an error.
  6378. Use char because int might match the return type of a GCC
  6379. builtin and then its argument prototype would still apply. */
  6380. #ifdef __cplusplus
  6381. extern "C"
  6382. #endif
  6383. char BZ2_bzBuffToBuffCompress ();
  6384. int
  6385. main ()
  6386. {
  6387. return BZ2_bzBuffToBuffCompress ();
  6388. ;
  6389. return 0;
  6390. }
  6391. _ACEOF
  6392. if ac_fn_c_try_link "$LINENO"; then :
  6393. ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
  6394. else
  6395. ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
  6396. fi
  6397. rm -f core conftest.err conftest.$ac_objext \
  6398. conftest$ac_exeext conftest.$ac_ext
  6399. LIBS=$ac_check_lib_save_LIBS
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
  6401. $as_echo "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
  6402. if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = xyes; then :
  6403. BZIP2LIB="$BZIP2LIB -lbz2 "
  6404. else
  6405. LDFLAGS=${ac_save_ldflags}
  6406. as_fn_error $? "*** Unable to locate bzlib library." "$LINENO" 5
  6407. fi
  6408. LDFLAGS=${ac_save_ldflags}
  6409. #
  6410. fi # $USE_BZIP2
  6411. # Done checking bzip2
  6412. # zstd support
  6413. ZSTDLIBPATH=
  6414. ZSTDINCPATH=
  6415. ZSTDLIB=
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use zstd" >&5
  6417. $as_echo_n "checking whether to use zstd... " >&6; }
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_zstd\"" >&5
  6419. $as_echo "\"$with_zstd\"" >&6; }
  6420. case "$with_zstd" in
  6421. "no") USE_ZSTD= ;;
  6422. "yes") USE_ZSTD="1" ;;
  6423. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6424. esac
  6425. if test -n "$USE_ZSTD"; then
  6426. # With zstd includes directory
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zstd includes" >&5
  6428. $as_echo_n "checking for location of zstd includes... " >&6; }
  6429. case "$with_zstd_includes" in
  6430. y | ye | yes | n | no)
  6431. as_fn_error $? "*** You must supply a directory to --with-zstd-includes." "$LINENO" 5
  6432. ;;
  6433. esac
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd_includes" >&5
  6435. $as_echo "$with_zstd_includes" >&6; }
  6436. if test -n "$with_zstd_includes" ; then
  6437. for dir in $with_zstd_includes; do
  6438. if test -d "$dir"; then
  6439. ZSTDINCPATH="$ZSTDINCPATH -I$dir"
  6440. else
  6441. as_fn_error $? "*** zstd includes directory $dir does not exist." "$LINENO" 5
  6442. fi
  6443. done
  6444. fi
  6445. ac_save_cppflags="$CPPFLAGS"
  6446. CPPFLAGS="$ZSTDINCPATH $CPPFLAGS"
  6447. for ac_header in zstd.h
  6448. do :
  6449. ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  6450. if test "x$ac_cv_header_zstd_h" = xyes; then :
  6451. cat >>confdefs.h <<_ACEOF
  6452. #define HAVE_ZSTD_H 1
  6453. _ACEOF
  6454. else
  6455. as_fn_error $? "*** Unable to locate zstd includes." "$LINENO" 5
  6456. fi
  6457. done
  6458. CPPFLAGS=$ac_save_cppflags
  6459. # With zstd library directory
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of zstd library" >&5
  6461. $as_echo_n "checking for location of zstd library... " >&6; }
  6462. case "$with_zstd_libs" in
  6463. y | ye | yes | n | no)
  6464. as_fn_error $? "*** You must supply a directory to --with-zstd-libs." "$LINENO" 5
  6465. ;;
  6466. esac
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd_libs" >&5
  6468. $as_echo "$with_zstd_libs" >&6; }
  6469. if test -n "$with_zstd_libs"; then
  6470. for dir in $with_zstd_libs; do
  6471. if test -d "$dir"; then
  6472. ZSTDLIBPATH="$ZSTDLIBPATH -L$dir"
  6473. else
  6474. as_fn_error $? "*** zstd library directory $dir does not exist." "$LINENO" 5
  6475. fi
  6476. done
  6477. fi
  6478. ac_save_ldflags="$LDFLAGS"
  6479. LDFLAGS="$ZSTDLIBPATH $LDFLAGS"
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
  6481. $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
  6482. ac_check_lib_save_LIBS=$LIBS
  6483. LIBS="-lzstd $LIBS"
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. /* Override any GCC internal prototype to avoid an error.
  6487. Use char because int might match the return type of a GCC
  6488. builtin and then its argument prototype would still apply. */
  6489. #ifdef __cplusplus
  6490. extern "C"
  6491. #endif
  6492. char ZSTD_compress ();
  6493. int
  6494. main ()
  6495. {
  6496. return ZSTD_compress ();
  6497. ;
  6498. return 0;
  6499. }
  6500. _ACEOF
  6501. if ac_fn_c_try_link "$LINENO"; then :
  6502. ac_cv_lib_zstd_ZSTD_compress=yes
  6503. else
  6504. ac_cv_lib_zstd_ZSTD_compress=no
  6505. fi
  6506. rm -f core conftest.err conftest.$ac_objext \
  6507. conftest$ac_exeext conftest.$ac_ext
  6508. LIBS=$ac_check_lib_save_LIBS
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
  6510. $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
  6511. if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
  6512. ZSTDLIB="$ZSTDLIB -lzstd "
  6513. else
  6514. LDFLAGS=${ac_save_ldflags}
  6515. as_fn_error $? "*** Unable to locate zstd library." "$LINENO" 5
  6516. fi
  6517. LDFLAGS=${ac_save_ldflags}
  6518. #
  6519. fi # $USE_ZSTD
  6520. # Done checking zstd
  6521. # Mandatory PROJ dependency
  6522. PROJINC=
  6523. PROJLIB=
  6524. PROJSHARE=
  6525. PROJ4API=0
  6526. PROJMAJOR=4
  6527. # With PROJ includes directory
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ includes" >&5
  6529. $as_echo_n "checking for location of External PROJ includes... " >&6; }
  6530. case "$with_proj_includes" in
  6531. y | ye | yes | n | no)
  6532. as_fn_error $? "*** You must supply a directory to --with-proj-includes." "$LINENO" 5
  6533. ;;
  6534. esac
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_includes" >&5
  6536. $as_echo "$with_proj_includes" >&6; }
  6537. if test -n "$with_proj_includes" ; then
  6538. for dir in $with_proj_includes; do
  6539. if test -d "$dir"; then
  6540. PROJINC="$PROJINC -I$dir"
  6541. else
  6542. as_fn_error $? "*** External PROJ includes directory $dir does not exist." "$LINENO" 5
  6543. fi
  6544. done
  6545. fi
  6546. # PROJ version check: if proj.h exists, it must be proj 5+
  6547. ac_save_cppflags="$CPPFLAGS"
  6548. CPPFLAGS="$PROJINC $CPPFLAGS"
  6549. for ac_header in proj.h
  6550. do :
  6551. ac_fn_c_check_header_mongrel "$LINENO" "proj.h" "ac_cv_header_proj_h" "$ac_includes_default"
  6552. if test "x$ac_cv_header_proj_h" = xyes; then :
  6553. cat >>confdefs.h <<_ACEOF
  6554. #define HAVE_PROJ_H 1
  6555. _ACEOF
  6556. else
  6557. PROJ4API=1
  6558. fi
  6559. done
  6560. CPPFLAGS=$ac_save_cppflags
  6561. if test $PROJ4API = 0 ; then
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ major version" >&5
  6563. $as_echo_n "checking External PROJ major version... " >&6; }
  6564. ac_save_cppflags="$CPPFLAGS"
  6565. CPPFLAGS="$PROJINC $CPPFLAGS"
  6566. if test "$cross_compiling" = yes; then :
  6567. proj_ver_major=0
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6569. $as_echo "unknown (cross-compiling)" >&6; }
  6570. else
  6571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end confdefs.h. */
  6573. #include <stdio.h>
  6574. #include <proj.h>
  6575. int main(void) {
  6576. FILE *fp = fopen("conftestdata","w");
  6577. fprintf(fp, "%d", PROJ_VERSION_MAJOR);
  6578. return 0;
  6579. }
  6580. _ACEOF
  6581. if ac_fn_c_try_run "$LINENO"; then :
  6582. proj_ver_major=`cat conftestdata`
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_major" >&5
  6584. $as_echo "$proj_ver_major" >&6; }
  6585. else
  6586. as_fn_error $? "*** Could not determine External PROJ major version." "$LINENO" 5
  6587. fi
  6588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6590. fi
  6591. CPPFLAGS=$ac_save_cppflags
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ minor version" >&5
  6593. $as_echo_n "checking External PROJ minor version... " >&6; }
  6594. ac_save_cppflags="$CPPFLAGS"
  6595. CPPFLAGS="$PROJINC $CPPFLAGS"
  6596. if test "$cross_compiling" = yes; then :
  6597. proj_ver_minor=0
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6599. $as_echo "unknown (cross-compiling)" >&6; }
  6600. else
  6601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6602. /* end confdefs.h. */
  6603. #include <stdio.h>
  6604. #include <proj.h>
  6605. int main(void) {
  6606. FILE *fp = fopen("conftestdata","w");
  6607. fprintf(fp, "%d", PROJ_VERSION_MINOR);
  6608. return 0;
  6609. }
  6610. _ACEOF
  6611. if ac_fn_c_try_run "$LINENO"; then :
  6612. proj_ver_minor=`cat conftestdata`
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_minor" >&5
  6614. $as_echo "$proj_ver_minor" >&6; }
  6615. else
  6616. as_fn_error $? "*** Could not determine External PROJ minor version." "$LINENO" 5
  6617. fi
  6618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6619. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6620. fi
  6621. CPPFLAGS=$ac_save_cppflags
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ patch version" >&5
  6623. $as_echo_n "checking External PROJ patch version... " >&6; }
  6624. ac_save_cppflags="$CPPFLAGS"
  6625. CPPFLAGS="$PROJINC $CPPFLAGS"
  6626. if test "$cross_compiling" = yes; then :
  6627. proj_ver_patch=0
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6629. $as_echo "unknown (cross-compiling)" >&6; }
  6630. else
  6631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6632. /* end confdefs.h. */
  6633. #include <stdio.h>
  6634. #include <proj.h>
  6635. int main(void) {
  6636. FILE *fp = fopen("conftestdata","w");
  6637. fprintf(fp, "%d", PROJ_VERSION_PATCH);
  6638. return 0;
  6639. }
  6640. _ACEOF
  6641. if ac_fn_c_try_run "$LINENO"; then :
  6642. proj_ver_patch=`cat conftestdata`
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver_patch" >&5
  6644. $as_echo "$proj_ver_patch" >&6; }
  6645. else
  6646. as_fn_error $? "*** Could not determine External PROJ patch version." "$LINENO" 5
  6647. fi
  6648. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6649. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6650. fi
  6651. CPPFLAGS=$ac_save_cppflags
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PROJ version \"${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}\"" >&5
  6653. $as_echo "found PROJ version \"${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}\"" >&6; }
  6654. PROJMAJOR=${proj_ver_major}
  6655. # minimum required PROJ 5+ version to use the new PROJ API: 5.1.0
  6656. if test ${proj_ver_major} = 5 && test `expr ${proj_ver_minor} \< 1` = 1 ; then
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: At least PROJ version \"5.1.0\" is required for the new API " >&5
  6658. $as_echo "$as_me: WARNING: At least PROJ version \"5.1.0\" is required for the new API " >&2;}
  6659. PROJ4API=1
  6660. fi
  6661. else
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ.4 version" >&5
  6663. $as_echo_n "checking External PROJ.4 version... " >&6; }
  6664. ac_save_cppflags="$CPPFLAGS"
  6665. CPPFLAGS="$PROJINC $CPPFLAGS"
  6666. if test "$cross_compiling" = yes; then :
  6667. proj_ver=0
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6669. $as_echo "unknown (cross-compiling)" >&6; }
  6670. else
  6671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6672. /* end confdefs.h. */
  6673. #include <stdio.h>
  6674. #include <proj_api.h>
  6675. int main(void) {
  6676. FILE *fp = fopen("conftestdata","w");
  6677. fprintf(fp, "%d", PJ_VERSION);
  6678. return 0;
  6679. }
  6680. _ACEOF
  6681. if ac_fn_c_try_run "$LINENO"; then :
  6682. proj_ver=`cat conftestdata`
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver" >&5
  6684. $as_echo "$proj_ver" >&6; }
  6685. else
  6686. as_fn_error $? "*** Could not determine External PROJ.4 version." "$LINENO" 5
  6687. fi
  6688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6689. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6690. fi
  6691. CPPFLAGS=$ac_save_cppflags
  6692. if test `expr ${proj_ver} \>= 600` = 1 ; then
  6693. PROJMAJOR=6
  6694. elif test `expr ${proj_ver} \>= 500` = 1 ; then
  6695. PROJMAJOR=5
  6696. elif test `expr ${proj_ver} \>= 400` = 1 ; then
  6697. PROJMAJOR=4
  6698. fi
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PROJ version \"${proj_ver}\"" >&5
  6700. $as_echo "found PROJ version \"${proj_ver}\"" >&6; }
  6701. fi
  6702. if test $PROJ4API = 0 ; then
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using new PROJ version 5+ API" >&5
  6704. $as_echo "using new PROJ version 5+ API" >&6; }
  6705. # With PROJ library directory
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ library" >&5
  6707. $as_echo_n "checking for location of External PROJ library... " >&6; }
  6708. case "$with_proj_libs" in
  6709. y | ye | yes | n | no)
  6710. as_fn_error $? "*** You must supply a directory to --with-proj-libs." "$LINENO" 5
  6711. ;;
  6712. esac
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_libs" >&5
  6714. $as_echo "$with_proj_libs" >&6; }
  6715. if test -n "$with_proj_libs"; then
  6716. for dir in $with_proj_libs; do
  6717. if test -d "$dir"; then
  6718. PROJLIB="$PROJLIB -L$dir"
  6719. else
  6720. as_fn_error $? "*** External PROJ library directory $dir does not exist." "$LINENO" 5
  6721. fi
  6722. done
  6723. fi
  6724. ac_save_ldflags="$LDFLAGS"
  6725. LDFLAGS="$PROJLIB $LDFLAGS"
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proj_pj_info in -lproj" >&5
  6727. $as_echo_n "checking for proj_pj_info in -lproj... " >&6; }
  6728. ac_check_lib_save_LIBS=$LIBS
  6729. LIBS="-lproj $LIBS"
  6730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6731. /* end confdefs.h. */
  6732. /* Override any GCC internal prototype to avoid an error.
  6733. Use char because int might match the return type of a GCC
  6734. builtin and then its argument prototype would still apply. */
  6735. #ifdef __cplusplus
  6736. extern "C"
  6737. #endif
  6738. char proj_pj_info ();
  6739. int
  6740. main ()
  6741. {
  6742. return proj_pj_info ();
  6743. ;
  6744. return 0;
  6745. }
  6746. _ACEOF
  6747. if ac_fn_c_try_link "$LINENO"; then :
  6748. ac_cv_lib_proj_proj_pj_info=yes
  6749. else
  6750. ac_cv_lib_proj_proj_pj_info=no
  6751. fi
  6752. rm -f core conftest.err conftest.$ac_objext \
  6753. conftest$ac_exeext conftest.$ac_ext
  6754. LIBS=$ac_check_lib_save_LIBS
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_proj_pj_info" >&5
  6756. $as_echo "$ac_cv_lib_proj_proj_pj_info" >&6; }
  6757. if test "x$ac_cv_lib_proj_proj_pj_info" = xyes; then :
  6758. PROJLIB="$PROJLIB -lproj "
  6759. else
  6760. LDFLAGS=${ac_save_ldflags}
  6761. as_fn_error $? "*** Unable to locate External PROJ library." "$LINENO" 5
  6762. fi
  6763. LDFLAGS=${ac_save_ldflags}
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using old PROJ version 4 API" >&5
  6766. $as_echo "using old PROJ version 4 API" >&6; }
  6767. $as_echo "#define USE_PROJ4API 1" >>confdefs.h
  6768. ac_save_cppflags="$CPPFLAGS"
  6769. CPPFLAGS="$PROJINC $CPPFLAGS"
  6770. for ac_header in proj_api.h
  6771. do :
  6772. ac_fn_c_check_header_mongrel "$LINENO" "proj_api.h" "ac_cv_header_proj_api_h" "$ac_includes_default"
  6773. if test "x$ac_cv_header_proj_api_h" = xyes; then :
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define HAVE_PROJ_API_H 1
  6776. _ACEOF
  6777. else
  6778. as_fn_error $? "*** Unable to locate External PROJ includes." "$LINENO" 5
  6779. fi
  6780. done
  6781. CPPFLAGS=$ac_save_cppflags
  6782. # PROJ version check for v4.x
  6783. if test "$cross_compiling" = yes; then
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Cannot check PROJ.4 version (cross-compiling)." >&5
  6785. $as_echo "$as_me: WARNING: *** Cannot check PROJ.4 version (cross-compiling)." >&2;}
  6786. else
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking External PROJ.4 version" >&5
  6788. $as_echo_n "checking External PROJ.4 version... " >&6; }
  6789. ac_save_cppflags="$CPPFLAGS"
  6790. CPPFLAGS="$PROJINC $CPPFLAGS"
  6791. if test "$cross_compiling" = yes; then :
  6792. proj_ver=0
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6794. $as_echo "unknown (cross-compiling)" >&6; }
  6795. else
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. #include <stdio.h>
  6799. #include <proj_api.h>
  6800. int main(void) {
  6801. FILE *fp = fopen("conftestdata","w");
  6802. fprintf(fp, "%d", PJ_VERSION);
  6803. return 0;
  6804. }
  6805. _ACEOF
  6806. if ac_fn_c_try_run "$LINENO"; then :
  6807. proj_ver=`cat conftestdata`
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proj_ver" >&5
  6809. $as_echo "$proj_ver" >&6; }
  6810. else
  6811. as_fn_error $? "*** Could not determine External PROJ.4 version." "$LINENO" 5
  6812. fi
  6813. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6814. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6815. fi
  6816. CPPFLAGS=$ac_save_cppflags
  6817. if test `expr ${proj_ver} \< 446` = 1 ; then
  6818. as_fn_error $? "*** PROJ.4.4.6 or later is required." "$LINENO" 5
  6819. fi
  6820. fi
  6821. # With PROJ library directory
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ.4 library" >&5
  6823. $as_echo_n "checking for location of External PROJ.4 library... " >&6; }
  6824. case "$with_proj_libs" in
  6825. y | ye | yes | n | no)
  6826. as_fn_error $? "*** You must supply a directory to --with-proj-libs." "$LINENO" 5
  6827. ;;
  6828. esac
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_libs" >&5
  6830. $as_echo "$with_proj_libs" >&6; }
  6831. if test -n "$with_proj_libs"; then
  6832. for dir in $with_proj_libs; do
  6833. if test -d "$dir"; then
  6834. PROJLIB="$PROJLIB -L$dir"
  6835. else
  6836. as_fn_error $? "*** External PROJ.4 library directory $dir does not exist." "$LINENO" 5
  6837. fi
  6838. done
  6839. fi
  6840. ac_save_ldflags="$LDFLAGS"
  6841. LDFLAGS="$PROJLIB $LDFLAGS"
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_get_def in -lproj" >&5
  6843. $as_echo_n "checking for pj_get_def in -lproj... " >&6; }
  6844. ac_check_lib_save_LIBS=$LIBS
  6845. LIBS="-lproj $LIBS"
  6846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6847. /* end confdefs.h. */
  6848. /* Override any GCC internal prototype to avoid an error.
  6849. Use char because int might match the return type of a GCC
  6850. builtin and then its argument prototype would still apply. */
  6851. #ifdef __cplusplus
  6852. extern "C"
  6853. #endif
  6854. char pj_get_def ();
  6855. int
  6856. main ()
  6857. {
  6858. return pj_get_def ();
  6859. ;
  6860. return 0;
  6861. }
  6862. _ACEOF
  6863. if ac_fn_c_try_link "$LINENO"; then :
  6864. ac_cv_lib_proj_pj_get_def=yes
  6865. else
  6866. ac_cv_lib_proj_pj_get_def=no
  6867. fi
  6868. rm -f core conftest.err conftest.$ac_objext \
  6869. conftest$ac_exeext conftest.$ac_ext
  6870. LIBS=$ac_check_lib_save_LIBS
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proj_pj_get_def" >&5
  6872. $as_echo "$ac_cv_lib_proj_pj_get_def" >&6; }
  6873. if test "x$ac_cv_lib_proj_pj_get_def" = xyes; then :
  6874. PROJLIB="$PROJLIB -lproj "
  6875. else
  6876. LDFLAGS=${ac_save_ldflags}
  6877. as_fn_error $? "*** Unable to locate External PROJ.4 library." "$LINENO" 5
  6878. fi
  6879. LDFLAGS=${ac_save_ldflags}
  6880. fi
  6881. # With PROJ share directory
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of External PROJ data files" >&5
  6883. $as_echo_n "checking for location of External PROJ data files... " >&6; }
  6884. case "$with_proj_share" in
  6885. y | ye | yes | n | no)
  6886. as_fn_error $? "*** You must supply a directory to --with-proj-share." "$LINENO" 5
  6887. ;;
  6888. esac
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_proj_share" >&5
  6890. $as_echo "$with_proj_share" >&6; }
  6891. if test -n "$with_proj_share" ; then
  6892. if test -d "$with_proj_share"; then
  6893. PROJSHARE="$with_proj_share"
  6894. else
  6895. as_fn_error $? "*** External PROJ data directory $dir does not exist." "$LINENO" 5
  6896. fi
  6897. fi
  6898. if test -z "$PROJSHARE" ; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External PROJ directory not specified; default will be used" >&5
  6900. $as_echo "$as_me: WARNING: *** External PROJ directory not specified; default will be used" >&2;}
  6901. PROJSHARE=/usr/share/proj
  6902. fi
  6903. # check if share/proj/epsg exists only for PROJ < 6
  6904. if test `expr ${PROJMAJOR} \< 6` = 1 ; then
  6905. # LOC_CHECK_SHARE does not work when cross compiling
  6906. if test "$cross_compiling" = "yes" ; then
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epsg" >&5
  6908. $as_echo_n "checking for epsg... " >&6; }
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
  6910. $as_echo "unknown (cross-compiling)" >&6; }
  6911. else
  6912. as_ac_File=`$as_echo "ac_cv_file_$PROJSHARE/epsg" | $as_tr_sh`
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PROJSHARE/epsg" >&5
  6914. $as_echo_n "checking for $PROJSHARE/epsg... " >&6; }
  6915. test "$cross_compiling" = yes &&
  6916. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  6917. if test -r "$PROJSHARE/epsg"; then
  6918. eval "$as_ac_File=yes"
  6919. else
  6920. eval "$as_ac_File=no"
  6921. fi
  6922. eval ac_res=\$$as_ac_File
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6924. $as_echo "$ac_res" >&6; }
  6925. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  6926. else
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to locate PROJ data files." >&5
  6928. $as_echo "$as_me: WARNING: *** Unable to locate PROJ data files." >&2;}
  6929. fi
  6930. fi
  6931. fi
  6932. # Done checking PROJ
  6933. # Enable regex option
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use regex" >&5
  6935. $as_echo_n "checking whether to use regex... " >&6; }
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_regex\"" >&5
  6937. $as_echo "\"$with_regex\"" >&6; }
  6938. case "$with_regex" in
  6939. "no") USE_REGEX= ;;
  6940. "yes") USE_REGEX="1" ;;
  6941. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  6942. esac
  6943. REGEXINCPATH=
  6944. REGEXLIBPATH=
  6945. REGEXLIB=
  6946. if test -n "$USE_REGEX"; then
  6947. # With regex includes directory
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of regex includes" >&5
  6949. $as_echo_n "checking for location of regex includes... " >&6; }
  6950. case "$with_regex_includes" in
  6951. y | ye | yes | n | no)
  6952. as_fn_error $? "*** You must supply a directory to --with-regex-includes." "$LINENO" 5
  6953. ;;
  6954. esac
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_regex_includes" >&5
  6956. $as_echo "$with_regex_includes" >&6; }
  6957. if test -n "$with_regex_includes" ; then
  6958. for dir in $with_regex_includes; do
  6959. if test -d "$dir"; then
  6960. REGEXINCPATH="$REGEXINCPATH -I$dir"
  6961. else
  6962. as_fn_error $? "*** regex includes directory $dir does not exist." "$LINENO" 5
  6963. fi
  6964. done
  6965. fi
  6966. ac_save_cppflags="$CPPFLAGS"
  6967. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  6968. for ac_header in regex.h
  6969. do :
  6970. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  6971. if test "x$ac_cv_header_regex_h" = xyes; then :
  6972. cat >>confdefs.h <<_ACEOF
  6973. #define HAVE_REGEX_H 1
  6974. _ACEOF
  6975. else
  6976. as_fn_error $? "*** Unable to locate regex includes." "$LINENO" 5
  6977. fi
  6978. done
  6979. CPPFLAGS=$ac_save_cppflags
  6980. # With regex library directory
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of regex library" >&5
  6982. $as_echo_n "checking for location of regex library... " >&6; }
  6983. case "$with_regex_libs" in
  6984. y | ye | yes | n | no)
  6985. as_fn_error $? "*** You must supply a directory to --with-regex-libs." "$LINENO" 5
  6986. ;;
  6987. esac
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_regex_libs" >&5
  6989. $as_echo "$with_regex_libs" >&6; }
  6990. if test -n "$with_regex_libs"; then
  6991. for dir in $with_regex_libs; do
  6992. if test -d "$dir"; then
  6993. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  6994. else
  6995. as_fn_error $? "*** regex library directory $dir does not exist." "$LINENO" 5
  6996. fi
  6997. done
  6998. fi
  6999. ac_save_libs="$LIBS"
  7000. ac_save_ldflags="$LDFLAGS"
  7001. LIBS=" $LIBS"
  7002. LDFLAGS=" $LDFLAGS"
  7003. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  7004. if test "x$ac_cv_func_regcomp" = xyes; then :
  7005. REGEXLIB="$REGEXLIB "
  7006. else
  7007. ac_save_ldflags="$LDFLAGS"
  7008. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
  7010. $as_echo_n "checking for regcomp in -lregex... " >&6; }
  7011. ac_check_lib_save_LIBS=$LIBS
  7012. LIBS="-lregex $LIBS"
  7013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end confdefs.h. */
  7015. /* Override any GCC internal prototype to avoid an error.
  7016. Use char because int might match the return type of a GCC
  7017. builtin and then its argument prototype would still apply. */
  7018. #ifdef __cplusplus
  7019. extern "C"
  7020. #endif
  7021. char regcomp ();
  7022. int
  7023. main ()
  7024. {
  7025. return regcomp ();
  7026. ;
  7027. return 0;
  7028. }
  7029. _ACEOF
  7030. if ac_fn_c_try_link "$LINENO"; then :
  7031. ac_cv_lib_regex_regcomp=yes
  7032. else
  7033. ac_cv_lib_regex_regcomp=no
  7034. fi
  7035. rm -f core conftest.err conftest.$ac_objext \
  7036. conftest$ac_exeext conftest.$ac_ext
  7037. LIBS=$ac_check_lib_save_LIBS
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
  7039. $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
  7040. if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
  7041. REGEXLIB="$REGEXLIB -lregex "
  7042. else
  7043. LDFLAGS=${ac_save_ldflags}
  7044. as_fn_error $? "*** Unable to locate regex library." "$LINENO" 5
  7045. fi
  7046. LDFLAGS=${ac_save_ldflags}
  7047. fi
  7048. LIBS=${ac_save_libs}
  7049. LDFLAGS=${ac_save_ldflags}
  7050. fi # $USE_REGEX
  7051. # Done checking regex
  7052. # Enable Readline option
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Readline" >&5
  7054. $as_echo_n "checking whether to use Readline... " >&6; }
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_readline\"" >&5
  7056. $as_echo "\"$with_readline\"" >&6; }
  7057. case "$with_readline" in
  7058. "no") USE_READLINE= ;;
  7059. "yes") USE_READLINE="1" ;;
  7060. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  7061. esac
  7062. READLINEINCPATH=
  7063. READLINELIBPATH=
  7064. READLINELIB=
  7065. HISTORYLIB=
  7066. if test -n "$USE_READLINE"; then
  7067. # With Readline includes directory
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Readline includes" >&5
  7069. $as_echo_n "checking for location of Readline includes... " >&6; }
  7070. case "$with_readline_includes" in
  7071. y | ye | yes | n | no)
  7072. as_fn_error $? "*** You must supply a directory to --with-readline-includes." "$LINENO" 5
  7073. ;;
  7074. esac
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_readline_includes" >&5
  7076. $as_echo "$with_readline_includes" >&6; }
  7077. if test -n "$with_readline_includes" ; then
  7078. for dir in $with_readline_includes; do
  7079. if test -d "$dir"; then
  7080. READLINEINCPATH="$READLINEINCPATH -I$dir"
  7081. else
  7082. as_fn_error $? "*** Readline includes directory $dir does not exist." "$LINENO" 5
  7083. fi
  7084. done
  7085. fi
  7086. ac_save_cppflags="$CPPFLAGS"
  7087. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  7088. for ac_header in readline/readline.h
  7089. do :
  7090. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  7091. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  7092. cat >>confdefs.h <<_ACEOF
  7093. #define HAVE_READLINE_READLINE_H 1
  7094. _ACEOF
  7095. else
  7096. as_fn_error $? "*** Unable to locate Readline includes." "$LINENO" 5
  7097. fi
  7098. done
  7099. CPPFLAGS=$ac_save_cppflags
  7100. ac_save_cppflags="$CPPFLAGS"
  7101. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  7102. for ac_header in readline/history.h
  7103. do :
  7104. ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  7105. if test "x$ac_cv_header_readline_history_h" = xyes; then :
  7106. cat >>confdefs.h <<_ACEOF
  7107. #define HAVE_READLINE_HISTORY_H 1
  7108. _ACEOF
  7109. else
  7110. as_fn_error $? "*** Unable to locate Readline includes." "$LINENO" 5
  7111. fi
  7112. done
  7113. CPPFLAGS=$ac_save_cppflags
  7114. # With Readline library directory
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Readline library" >&5
  7116. $as_echo_n "checking for location of Readline library... " >&6; }
  7117. case "$with_readline_libs" in
  7118. y | ye | yes | n | no)
  7119. as_fn_error $? "*** You must supply a directory to --with-readline-libs." "$LINENO" 5
  7120. ;;
  7121. esac
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_readline_libs" >&5
  7123. $as_echo "$with_readline_libs" >&6; }
  7124. if test -n "$with_readline_libs"; then
  7125. for dir in $with_readline_libs; do
  7126. if test -d "$dir"; then
  7127. READLINELIBPATH="$READLINELIBPATH -L$dir"
  7128. else
  7129. as_fn_error $? "*** Readline library directory $dir does not exist." "$LINENO" 5
  7130. fi
  7131. done
  7132. fi
  7133. ac_save_ldflags="$LDFLAGS"
  7134. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  7136. $as_echo_n "checking for readline in -lreadline... " >&6; }
  7137. ac_check_lib_save_LIBS=$LIBS
  7138. LIBS="-lreadline $LIBS"
  7139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7140. /* end confdefs.h. */
  7141. /* Override any GCC internal prototype to avoid an error.
  7142. Use char because int might match the return type of a GCC
  7143. builtin and then its argument prototype would still apply. */
  7144. #ifdef __cplusplus
  7145. extern "C"
  7146. #endif
  7147. char readline ();
  7148. int
  7149. main ()
  7150. {
  7151. return readline ();
  7152. ;
  7153. return 0;
  7154. }
  7155. _ACEOF
  7156. if ac_fn_c_try_link "$LINENO"; then :
  7157. ac_cv_lib_readline_readline=yes
  7158. else
  7159. ac_cv_lib_readline_readline=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext \
  7162. conftest$ac_exeext conftest.$ac_ext
  7163. LIBS=$ac_check_lib_save_LIBS
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  7165. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  7166. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  7167. READLINELIB="$READLINELIB -lreadline "
  7168. else
  7169. LDFLAGS=${ac_save_ldflags}
  7170. as_fn_error $? "*** Unable to locate Readline library." "$LINENO" 5
  7171. fi
  7172. LDFLAGS=${ac_save_ldflags}
  7173. ac_save_ldflags="$LDFLAGS"
  7174. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lhistory" >&5
  7176. $as_echo_n "checking for add_history in -lhistory... " >&6; }
  7177. ac_check_lib_save_LIBS=$LIBS
  7178. LIBS="-lhistory $LIBS"
  7179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7180. /* end confdefs.h. */
  7181. /* Override any GCC internal prototype to avoid an error.
  7182. Use char because int might match the return type of a GCC
  7183. builtin and then its argument prototype would still apply. */
  7184. #ifdef __cplusplus
  7185. extern "C"
  7186. #endif
  7187. char add_history ();
  7188. int
  7189. main ()
  7190. {
  7191. return add_history ();
  7192. ;
  7193. return 0;
  7194. }
  7195. _ACEOF
  7196. if ac_fn_c_try_link "$LINENO"; then :
  7197. ac_cv_lib_history_add_history=yes
  7198. else
  7199. ac_cv_lib_history_add_history=no
  7200. fi
  7201. rm -f core conftest.err conftest.$ac_objext \
  7202. conftest$ac_exeext conftest.$ac_ext
  7203. LIBS=$ac_check_lib_save_LIBS
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_add_history" >&5
  7205. $as_echo "$ac_cv_lib_history_add_history" >&6; }
  7206. if test "x$ac_cv_lib_history_add_history" = xyes; then :
  7207. HISTORYLIB="$HISTORYLIB -lhistory "
  7208. else
  7209. LDFLAGS=${ac_save_ldflags}
  7210. as_fn_error $? "*** Unable to locate History library." "$LINENO" 5
  7211. fi
  7212. LDFLAGS=${ac_save_ldflags}
  7213. fi # $USE_READLINE
  7214. # Done checking Readline
  7215. # GDAL option
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDAL" >&5
  7217. $as_echo_n "checking whether to use GDAL... " >&6; }
  7218. GDAL_LIBS=
  7219. GDAL_CFLAGS=
  7220. USE_GDAL=
  7221. USE_OGR=
  7222. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  7223. GDAL_CONFIG="$with_gdal"
  7224. fi
  7225. if test "$with_gdal" = "no" ; then
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7227. $as_echo "no" >&6; }
  7228. else
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7230. $as_echo "yes" >&6; }
  7231. # Extract the first word of "gdal-config", so it can be a program name with args.
  7232. set dummy gdal-config; ac_word=$2
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7234. $as_echo_n "checking for $ac_word... " >&6; }
  7235. case $GDAL_CONFIG in
  7236. [\\/]* | ?:[\\/]*)
  7237. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  7238. ;;
  7239. *)
  7240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. for as_dir in $PATH
  7242. do
  7243. IFS=$as_save_IFS
  7244. test -z "$as_dir" && as_dir=.
  7245. for ac_exec_ext in '' $ac_executable_extensions; do
  7246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7247. ac_cv_path_GDAL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7249. break 2
  7250. fi
  7251. done
  7252. done
  7253. IFS=$as_save_IFS
  7254. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  7255. ;;
  7256. esac
  7257. GDAL_CONFIG=$ac_cv_path_GDAL_CONFIG
  7258. if test -n "$GDAL_CONFIG"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDAL_CONFIG" >&5
  7260. $as_echo "$GDAL_CONFIG" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265. if test "$GDAL_CONFIG" = "no" ; then
  7266. as_fn_error $? "*** couldn't find gdal-config" "$LINENO" 5
  7267. fi
  7268. if test "$GDAL_CONFIG" != "" ; then
  7269. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  7270. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  7271. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  7272. USE_GDAL=1
  7273. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  7274. $as_echo "#define HAVE_OGR 1" >>confdefs.h
  7275. USE_OGR=1
  7276. fi
  7277. fi
  7278. GDAL=
  7279. ac_save_libs="$LIBS"
  7280. ac_save_cflags="$CFLAGS"
  7281. LIBS="$LIBS $GDAL_LIBS"
  7282. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  7283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7284. /* end confdefs.h. */
  7285. #include <gdal.h>
  7286. int
  7287. main ()
  7288. {
  7289. GDALOpen("foo", GA_ReadOnly);
  7290. ;
  7291. return 0;
  7292. }
  7293. _ACEOF
  7294. if ac_fn_c_try_link "$LINENO"; then :
  7295. else
  7296. LIBS="$LIBS $GDAL_DEP_LIBS"
  7297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7298. /* end confdefs.h. */
  7299. #include <gdal.h>
  7300. int
  7301. main ()
  7302. {
  7303. GDALOpen("foo", GA_ReadOnly);
  7304. ;
  7305. return 0;
  7306. }
  7307. _ACEOF
  7308. if ac_fn_c_try_link "$LINENO"; then :
  7309. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  7310. else
  7311. as_fn_error $? "*** Unable to locate GDAL library." "$LINENO" 5
  7312. fi
  7313. rm -f core conftest.err conftest.$ac_objext \
  7314. conftest$ac_exeext conftest.$ac_ext
  7315. fi
  7316. rm -f core conftest.err conftest.$ac_objext \
  7317. conftest$ac_exeext conftest.$ac_ext
  7318. LIBS=${ac_save_libs}
  7319. CFLAGS=${ac_save_cflags}
  7320. $as_echo "#define HAVE_GDAL 1" >>confdefs.h
  7321. fi
  7322. # libLAS option
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libLAS" >&5
  7324. $as_echo_n "checking whether to use libLAS... " >&6; }
  7325. LIBLAS_LIBS=
  7326. LIBLAS_CFLAGS=
  7327. USE_LIBLAS=
  7328. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  7329. LIBLAS_CONFIG="$with_liblas"
  7330. fi
  7331. if test "$with_liblas" = "no" ; then
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7333. $as_echo "no" >&6; }
  7334. else
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7336. $as_echo "yes" >&6; }
  7337. # Extract the first word of "liblas-config", so it can be a program name with args.
  7338. set dummy liblas-config; ac_word=$2
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7340. $as_echo_n "checking for $ac_word... " >&6; }
  7341. case $LIBLAS_CONFIG in
  7342. [\\/]* | ?:[\\/]*)
  7343. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  7344. ;;
  7345. *)
  7346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7347. for as_dir in $PATH
  7348. do
  7349. IFS=$as_save_IFS
  7350. test -z "$as_dir" && as_dir=.
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7353. ac_cv_path_LIBLAS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  7361. ;;
  7362. esac
  7363. LIBLAS_CONFIG=$ac_cv_path_LIBLAS_CONFIG
  7364. if test -n "$LIBLAS_CONFIG"; then
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLAS_CONFIG" >&5
  7366. $as_echo "$LIBLAS_CONFIG" >&6; }
  7367. else
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7369. $as_echo "no" >&6; }
  7370. fi
  7371. if test "$LIBLAS_CONFIG" = "no" ; then
  7372. as_fn_error $? "*** couldn't find liblas-config" "$LINENO" 5
  7373. fi
  7374. if test "$LIBLAS_CONFIG" != "" ; then
  7375. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  7376. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  7377. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  7378. USE_LIBLAS=1
  7379. fi
  7380. LIBLAS=
  7381. ac_save_libs="$LIBS"
  7382. ac_save_cflags="$CFLAGS"
  7383. ac_save_cppflags="$CPPFLAGS"
  7384. LIBS="$LIBS $LIBLAS_LIBS"
  7385. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  7386. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  7387. for ac_header in liblas/capi/liblas.h
  7388. do :
  7389. ac_fn_c_check_header_mongrel "$LINENO" "liblas/capi/liblas.h" "ac_cv_header_liblas_capi_liblas_h" "$ac_includes_default"
  7390. if test "x$ac_cv_header_liblas_capi_liblas_h" = xyes; then :
  7391. cat >>confdefs.h <<_ACEOF
  7392. #define HAVE_LIBLAS_CAPI_LIBLAS_H 1
  7393. _ACEOF
  7394. fi
  7395. done
  7396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7397. /* end confdefs.h. */
  7398. #include <liblas/capi/liblas.h>
  7399. int
  7400. main ()
  7401. {
  7402. LASReader_Create("foo");
  7403. ;
  7404. return 0;
  7405. }
  7406. _ACEOF
  7407. if ac_fn_c_try_link "$LINENO"; then :
  7408. else
  7409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7410. /* end confdefs.h. */
  7411. #include <liblas/capi/liblas.h>
  7412. int
  7413. main ()
  7414. {
  7415. LASReader_Create("foo");
  7416. ;
  7417. return 0;
  7418. }
  7419. _ACEOF
  7420. if ac_fn_c_try_link "$LINENO"; then :
  7421. LAS_LIBS="$LAS_LIBS"
  7422. else
  7423. as_fn_error $? "*** Unable to locate libLAS library." "$LINENO" 5
  7424. fi
  7425. rm -f core conftest.err conftest.$ac_objext \
  7426. conftest$ac_exeext conftest.$ac_ext
  7427. fi
  7428. rm -f core conftest.err conftest.$ac_objext \
  7429. conftest$ac_exeext conftest.$ac_ext
  7430. LIBS=${ac_save_libs}
  7431. CFLAGS=${ac_save_cflags}
  7432. CPPFLAGS=${ac_save_cppflags}
  7433. $as_echo "#define HAVE_LIBLAS 1" >>confdefs.h
  7434. fi
  7435. # PDAL option
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PDAL" >&5
  7437. $as_echo_n "checking whether to use PDAL... " >&6; }
  7438. ac_ext=cpp
  7439. ac_cpp='$CXXCPP $CPPFLAGS'
  7440. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7441. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7442. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7443. PDAL_LIBS=
  7444. PDAL_CPPFLAGS=
  7445. USE_PDAL=
  7446. if test "`basename xx/$with_pdal`" = "pdal-config" ; then
  7447. PDAL_CONFIG="$with_pdal"
  7448. fi
  7449. if test "$with_pdal" = "no" ; then
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. $as_echo "no" >&6; }
  7452. else
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7454. $as_echo "yes" >&6; }
  7455. # Extract the first word of "pdal-config", so it can be a program name with args.
  7456. set dummy pdal-config; ac_word=$2
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7458. $as_echo_n "checking for $ac_word... " >&6; }
  7459. case $PDAL_CONFIG in
  7460. [\\/]* | ?:[\\/]*)
  7461. ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
  7462. ;;
  7463. *)
  7464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7465. for as_dir in $PATH
  7466. do
  7467. IFS=$as_save_IFS
  7468. test -z "$as_dir" && as_dir=.
  7469. for ac_exec_ext in '' $ac_executable_extensions; do
  7470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7471. ac_cv_path_PDAL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7473. break 2
  7474. fi
  7475. done
  7476. done
  7477. IFS=$as_save_IFS
  7478. test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
  7479. ;;
  7480. esac
  7481. PDAL_CONFIG=$ac_cv_path_PDAL_CONFIG
  7482. if test -n "$PDAL_CONFIG"; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDAL_CONFIG" >&5
  7484. $as_echo "$PDAL_CONFIG" >&6; }
  7485. else
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7487. $as_echo "no" >&6; }
  7488. fi
  7489. if test "$PDAL_CONFIG" = "no" ; then
  7490. as_fn_error $? "*** could not find pdal-config" "$LINENO" 5
  7491. fi
  7492. if test "$PDAL_CONFIG" != "" ; then
  7493. PDAL_LIBS=`"$PDAL_CONFIG" --libs`
  7494. PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
  7495. PDAL_INC=`"$PDAL_CONFIG" --includes`
  7496. USE_PDAL=1
  7497. fi
  7498. PDAL=
  7499. ac_save_libs="$LIBS"
  7500. ac_save_cflags="$CFLAGS"
  7501. ac_save_cppflags="$CPPFLAGS"
  7502. LIBS="$LIBS $PDAL_LIBS"
  7503. CFLAGS="$CFLAGS $PDAL_CFLAGS"
  7504. CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
  7505. ac_ext=cpp
  7506. ac_cpp='$CXXCPP $CPPFLAGS'
  7507. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7508. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7509. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7510. if test -z "$CXX"; then
  7511. if test -n "$CCC"; then
  7512. CXX=$CCC
  7513. else
  7514. if test -n "$ac_tool_prefix"; then
  7515. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7516. do
  7517. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7518. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7520. $as_echo_n "checking for $ac_word... " >&6; }
  7521. if test -n "$CXX"; then
  7522. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7523. else
  7524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7525. for as_dir in $PATH
  7526. do
  7527. IFS=$as_save_IFS
  7528. test -z "$as_dir" && as_dir=.
  7529. for ac_exec_ext in '' $ac_executable_extensions; do
  7530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7531. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7533. break 2
  7534. fi
  7535. done
  7536. done
  7537. IFS=$as_save_IFS
  7538. fi
  7539. CXX=$ac_cv_prog_CXX
  7540. if test -n "$CXX"; then
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7542. $as_echo "$CXX" >&6; }
  7543. else
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7545. $as_echo "no" >&6; }
  7546. fi
  7547. test -n "$CXX" && break
  7548. done
  7549. fi
  7550. if test -z "$CXX"; then
  7551. ac_ct_CXX=$CXX
  7552. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7553. do
  7554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7555. set dummy $ac_prog; ac_word=$2
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7557. $as_echo_n "checking for $ac_word... " >&6; }
  7558. if test -n "$ac_ct_CXX"; then
  7559. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7560. else
  7561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7562. for as_dir in $PATH
  7563. do
  7564. IFS=$as_save_IFS
  7565. test -z "$as_dir" && as_dir=.
  7566. for ac_exec_ext in '' $ac_executable_extensions; do
  7567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7568. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7570. break 2
  7571. fi
  7572. done
  7573. done
  7574. IFS=$as_save_IFS
  7575. fi
  7576. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7577. if test -n "$ac_ct_CXX"; then
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7579. $as_echo "$ac_ct_CXX" >&6; }
  7580. else
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7582. $as_echo "no" >&6; }
  7583. fi
  7584. test -n "$ac_ct_CXX" && break
  7585. done
  7586. if test "x$ac_ct_CXX" = x; then
  7587. CXX="g++"
  7588. else
  7589. case $cross_compiling:$ac_tool_warned in
  7590. yes:)
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7593. ac_tool_warned=yes ;;
  7594. esac
  7595. CXX=$ac_ct_CXX
  7596. fi
  7597. fi
  7598. fi
  7599. fi
  7600. # Provide some information about the compiler.
  7601. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7602. set X $ac_compile
  7603. ac_compiler=$2
  7604. for ac_option in --version -v -V -qversion; do
  7605. { { ac_try="$ac_compiler $ac_option >&5"
  7606. case "(($ac_try" in
  7607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7608. *) ac_try_echo=$ac_try;;
  7609. esac
  7610. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7611. $as_echo "$ac_try_echo"; } >&5
  7612. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7613. ac_status=$?
  7614. if test -s conftest.err; then
  7615. sed '10a\
  7616. ... rest of stderr output deleted ...
  7617. 10q' conftest.err >conftest.er1
  7618. cat conftest.er1 >&5
  7619. fi
  7620. rm -f conftest.er1 conftest.err
  7621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7622. test $ac_status = 0; }
  7623. done
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7625. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. int
  7629. main ()
  7630. {
  7631. #ifndef __GNUC__
  7632. choke me
  7633. #endif
  7634. ;
  7635. return 0;
  7636. }
  7637. _ACEOF
  7638. if ac_fn_cxx_try_compile "$LINENO"; then :
  7639. ac_compiler_gnu=yes
  7640. else
  7641. ac_compiler_gnu=no
  7642. fi
  7643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7644. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7646. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7647. if test $ac_compiler_gnu = yes; then
  7648. GXX=yes
  7649. else
  7650. GXX=
  7651. fi
  7652. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7653. ac_save_CXXFLAGS=$CXXFLAGS
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7655. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7656. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7657. ac_cxx_werror_flag=yes
  7658. ac_cv_prog_cxx_g=no
  7659. CXXFLAGS="-g"
  7660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7661. /* end confdefs.h. */
  7662. int
  7663. main ()
  7664. {
  7665. ;
  7666. return 0;
  7667. }
  7668. _ACEOF
  7669. if ac_fn_cxx_try_compile "$LINENO"; then :
  7670. ac_cv_prog_cxx_g=yes
  7671. else
  7672. CXXFLAGS=""
  7673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7674. /* end confdefs.h. */
  7675. int
  7676. main ()
  7677. {
  7678. ;
  7679. return 0;
  7680. }
  7681. _ACEOF
  7682. if ac_fn_cxx_try_compile "$LINENO"; then :
  7683. else
  7684. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7685. CXXFLAGS="-g"
  7686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7687. /* end confdefs.h. */
  7688. int
  7689. main ()
  7690. {
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. if ac_fn_cxx_try_compile "$LINENO"; then :
  7696. ac_cv_prog_cxx_g=yes
  7697. fi
  7698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7699. fi
  7700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7701. fi
  7702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7703. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7705. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7706. if test "$ac_test_CXXFLAGS" = set; then
  7707. CXXFLAGS=$ac_save_CXXFLAGS
  7708. elif test $ac_cv_prog_cxx_g = yes; then
  7709. if test "$GXX" = yes; then
  7710. CXXFLAGS="-g -O2"
  7711. else
  7712. CXXFLAGS="-g"
  7713. fi
  7714. else
  7715. if test "$GXX" = yes; then
  7716. CXXFLAGS="-O2"
  7717. else
  7718. CXXFLAGS=
  7719. fi
  7720. fi
  7721. ac_ext=cpp
  7722. ac_cpp='$CXXCPP $CPPFLAGS'
  7723. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7724. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7725. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7727. /* end confdefs.h. */
  7728. #include <pdal/PointTable.hpp>
  7729. #include <pdal/Streamable.hpp>
  7730. class St:public pdal::Streamable {};
  7731. int
  7732. main ()
  7733. {
  7734. pdal::PointTable table;
  7735. ;
  7736. return 0;
  7737. }
  7738. _ACEOF
  7739. if ac_fn_cxx_try_link "$LINENO"; then :
  7740. else
  7741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7742. /* end confdefs.h. */
  7743. #include <pdal/PointTable.hpp>
  7744. #include <pdal/Streamable.hpp>
  7745. class St:public pdal::Streamable {};
  7746. int
  7747. main ()
  7748. {
  7749. pdal::PointTable table;
  7750. ;
  7751. return 0;
  7752. }
  7753. _ACEOF
  7754. if ac_fn_cxx_try_link "$LINENO"; then :
  7755. PDAL_LIBS="$PDAL_LIBS"
  7756. else
  7757. as_fn_error $? "*** Unable to locate suitable (>=1.7.1) PDAL library." "$LINENO" 5
  7758. fi
  7759. rm -f core conftest.err conftest.$ac_objext \
  7760. conftest$ac_exeext conftest.$ac_ext
  7761. fi
  7762. rm -f core conftest.err conftest.$ac_objext \
  7763. conftest$ac_exeext conftest.$ac_ext
  7764. LIBS=${ac_save_libs}
  7765. CFLAGS=${ac_save_cflags}
  7766. CPPFLAGS=${ac_save_cppflags}
  7767. $as_echo "#define HAVE_PDAL 1" >>confdefs.h
  7768. fi
  7769. ac_ext=c
  7770. ac_cpp='$CPP $CPPFLAGS'
  7771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7774. # NetCDF option
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NetCDF" >&5
  7776. $as_echo_n "checking whether to use NetCDF... " >&6; }
  7777. NETCDF_LIBS=
  7778. NETCDF_CFLAGS=
  7779. USE_NETCDF=
  7780. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  7781. NETCDF_CONFIG="$with_netcdf"
  7782. fi
  7783. if test "$with_netcdf" = "no" ; then
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7785. $as_echo "no" >&6; }
  7786. else
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7788. $as_echo "yes" >&6; }
  7789. # Extract the first word of "nc-config", so it can be a program name with args.
  7790. set dummy nc-config; ac_word=$2
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7792. $as_echo_n "checking for $ac_word... " >&6; }
  7793. case $NETCDF_CONFIG in
  7794. [\\/]* | ?:[\\/]*)
  7795. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  7796. ;;
  7797. *)
  7798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7799. for as_dir in $PATH
  7800. do
  7801. IFS=$as_save_IFS
  7802. test -z "$as_dir" && as_dir=.
  7803. for ac_exec_ext in '' $ac_executable_extensions; do
  7804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7805. ac_cv_path_NETCDF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7807. break 2
  7808. fi
  7809. done
  7810. done
  7811. IFS=$as_save_IFS
  7812. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  7813. ;;
  7814. esac
  7815. NETCDF_CONFIG=$ac_cv_path_NETCDF_CONFIG
  7816. if test -n "$NETCDF_CONFIG"; then
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCDF_CONFIG" >&5
  7818. $as_echo "$NETCDF_CONFIG" >&6; }
  7819. else
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7821. $as_echo "no" >&6; }
  7822. fi
  7823. if test "$NETCDF_CONFIG" = "no" ; then
  7824. as_fn_error $? "*** couldn't find nc-config" "$LINENO" 5
  7825. fi
  7826. if test "$NETCDF_CONFIG" != "" ; then
  7827. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  7828. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  7829. USE_NETCDF=1
  7830. fi
  7831. NETCDF=
  7832. ac_save_libs="$LIBS"
  7833. ac_save_cflags="$CFLAGS"
  7834. LIBS="$LIBS $NETCDF_LIBS"
  7835. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  7836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7837. /* end confdefs.h. */
  7838. #include <netcdf.h>
  7839. int
  7840. main ()
  7841. {
  7842. nc_create("foo", NC_CLOBBER, NULL);
  7843. ;
  7844. return 0;
  7845. }
  7846. _ACEOF
  7847. if ac_fn_c_try_link "$LINENO"; then :
  7848. else
  7849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7850. /* end confdefs.h. */
  7851. #include <netcdf.h>
  7852. int
  7853. main ()
  7854. {
  7855. nc_create("foo", NC_CLOBBER, NULL);
  7856. ;
  7857. return 0;
  7858. }
  7859. _ACEOF
  7860. if ac_fn_c_try_link "$LINENO"; then :
  7861. NETCDF_LIBS="$NETCDF_LIBS"
  7862. else
  7863. as_fn_error $? "*** Unable to locate NetCDF library." "$LINENO" 5
  7864. fi
  7865. rm -f core conftest.err conftest.$ac_objext \
  7866. conftest$ac_exeext conftest.$ac_ext
  7867. fi
  7868. rm -f core conftest.err conftest.$ac_objext \
  7869. conftest$ac_exeext conftest.$ac_ext
  7870. LIBS=${ac_save_libs}
  7871. CFLAGS=${ac_save_cflags}
  7872. $as_echo "#define HAVE_NETCDF 1" >>confdefs.h
  7873. fi
  7874. # GEOS option
  7875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GEOS" >&5
  7876. $as_echo_n "checking whether to use GEOS... " >&6; }
  7877. GEOS_LIBS=
  7878. GEOS_CFLAGS=
  7879. USE_GEOS=
  7880. # FIXME: "quote" $with_geos ?
  7881. if test "`basename xx/$with_geos`" = "geos-config" ; then
  7882. GEOS_CONFIG="$with_geos"
  7883. fi
  7884. if test "$with_geos" = "no" ; then
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7886. $as_echo "no" >&6; }
  7887. else
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7889. $as_echo "yes" >&6; }
  7890. # Extract the first word of "geos-config", so it can be a program name with args.
  7891. set dummy geos-config; ac_word=$2
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7893. $as_echo_n "checking for $ac_word... " >&6; }
  7894. case $GEOS_CONFIG in
  7895. [\\/]* | ?:[\\/]*)
  7896. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  7897. ;;
  7898. *)
  7899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7900. for as_dir in $PATH
  7901. do
  7902. IFS=$as_save_IFS
  7903. test -z "$as_dir" && as_dir=.
  7904. for ac_exec_ext in '' $ac_executable_extensions; do
  7905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7906. ac_cv_path_GEOS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7908. break 2
  7909. fi
  7910. done
  7911. done
  7912. IFS=$as_save_IFS
  7913. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  7914. ;;
  7915. esac
  7916. GEOS_CONFIG=$ac_cv_path_GEOS_CONFIG
  7917. if test -n "$GEOS_CONFIG"; then
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOS_CONFIG" >&5
  7919. $as_echo "$GEOS_CONFIG" >&6; }
  7920. else
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7922. $as_echo "no" >&6; }
  7923. fi
  7924. if test "$GEOS_CONFIG" = "no" ; then
  7925. as_fn_error $? "*** couldn't find geos-config" "$LINENO" 5
  7926. fi
  7927. if test "$GEOS_CONFIG" != "" ; then
  7928. GEOS_LIBS=`"$GEOS_CONFIG" --clibs`
  7929. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  7930. USE_GEOS=1
  7931. fi
  7932. ac_save_cppflags="$CPPFLAGS"
  7933. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  7934. for ac_header in geos_c.h
  7935. do :
  7936. ac_fn_c_check_header_mongrel "$LINENO" "geos_c.h" "ac_cv_header_geos_c_h" "$ac_includes_default"
  7937. if test "x$ac_cv_header_geos_c_h" = xyes; then :
  7938. cat >>confdefs.h <<_ACEOF
  7939. #define HAVE_GEOS_C_H 1
  7940. _ACEOF
  7941. else
  7942. as_fn_error $? "*** Unable to locate GEOS includes." "$LINENO" 5
  7943. fi
  7944. done
  7945. CPPFLAGS=$ac_save_cppflags
  7946. ### 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
  7947. # if test "$MINGW32" = yes ; then
  7948. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  7949. # else
  7950. ac_save_ldflags="$LDFLAGS"
  7951. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initGEOS in -lgeos_c" >&5
  7953. $as_echo_n "checking for initGEOS in -lgeos_c... " >&6; }
  7954. ac_check_lib_save_LIBS=$LIBS
  7955. LIBS="-lgeos_c $LIBS"
  7956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7957. /* end confdefs.h. */
  7958. /* Override any GCC internal prototype to avoid an error.
  7959. Use char because int might match the return type of a GCC
  7960. builtin and then its argument prototype would still apply. */
  7961. #ifdef __cplusplus
  7962. extern "C"
  7963. #endif
  7964. char initGEOS ();
  7965. int
  7966. main ()
  7967. {
  7968. return initGEOS ();
  7969. ;
  7970. return 0;
  7971. }
  7972. _ACEOF
  7973. if ac_fn_c_try_link "$LINENO"; then :
  7974. ac_cv_lib_geos_c_initGEOS=yes
  7975. else
  7976. ac_cv_lib_geos_c_initGEOS=no
  7977. fi
  7978. rm -f core conftest.err conftest.$ac_objext \
  7979. conftest$ac_exeext conftest.$ac_ext
  7980. LIBS=$ac_check_lib_save_LIBS
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geos_c_initGEOS" >&5
  7982. $as_echo "$ac_cv_lib_geos_c_initGEOS" >&6; }
  7983. if test "x$ac_cv_lib_geos_c_initGEOS" = xyes; then :
  7984. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  7985. else
  7986. LDFLAGS=${ac_save_ldflags}
  7987. as_fn_error $? "*** Unable to locate GEOS library." "$LINENO" 5
  7988. fi
  7989. LDFLAGS=${ac_save_ldflags}
  7990. # fi
  7991. $as_echo "#define HAVE_GEOS 1" >>confdefs.h
  7992. fi
  7993. # Enable TIFF option
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use TIFF" >&5
  7995. $as_echo_n "checking whether to use TIFF... " >&6; }
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_tiff\"" >&5
  7997. $as_echo "\"$with_tiff\"" >&6; }
  7998. case "$with_tiff" in
  7999. "no") USE_TIFF= ;;
  8000. "yes") USE_TIFF="1" ;;
  8001. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8002. esac
  8003. TIFF_INCLUDE_DIRS=
  8004. TIFF_LIBRARY_DIRS=
  8005. TIFFLIB=
  8006. if test -n "$USE_TIFF"; then
  8007. # With TIFF includes directory
  8008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of TIFF includes" >&5
  8009. $as_echo_n "checking for location of TIFF includes... " >&6; }
  8010. case "$with_tiff_includes" in
  8011. y | ye | yes | n | no)
  8012. as_fn_error $? "*** You must supply a directory to --with-tiff-includes." "$LINENO" 5
  8013. ;;
  8014. esac
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tiff_includes" >&5
  8016. $as_echo "$with_tiff_includes" >&6; }
  8017. if test -n "$with_tiff_includes" ; then
  8018. for dir in $with_tiff_includes; do
  8019. if test -d "$dir"; then
  8020. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  8021. else
  8022. as_fn_error $? "*** TIFF includes directory $dir does not exist." "$LINENO" 5
  8023. fi
  8024. done
  8025. fi
  8026. ac_save_cppflags="$CPPFLAGS"
  8027. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  8028. for ac_header in tiffio.h
  8029. do :
  8030. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  8031. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  8032. cat >>confdefs.h <<_ACEOF
  8033. #define HAVE_TIFFIO_H 1
  8034. _ACEOF
  8035. else
  8036. as_fn_error $? "*** Unable to locate TIFF includes." "$LINENO" 5
  8037. fi
  8038. done
  8039. CPPFLAGS=$ac_save_cppflags
  8040. # With TIFF library directory
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of TIFF library" >&5
  8042. $as_echo_n "checking for location of TIFF library... " >&6; }
  8043. case "$with_tiff_libs" in
  8044. y | ye | yes | n | no)
  8045. as_fn_error $? "*** You must supply a directory to --with-tiff-libs." "$LINENO" 5
  8046. ;;
  8047. esac
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tiff_libs" >&5
  8049. $as_echo "$with_tiff_libs" >&6; }
  8050. if test -n "$with_tiff_libs"; then
  8051. for dir in $with_tiff_libs; do
  8052. if test -d "$dir"; then
  8053. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  8054. else
  8055. as_fn_error $? "*** TIFF library directory $dir does not exist." "$LINENO" 5
  8056. fi
  8057. done
  8058. fi
  8059. ac_save_ldflags="$LDFLAGS"
  8060. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8062. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8063. ac_check_lib_save_LIBS=$LIBS
  8064. LIBS="-ltiff $LIBS"
  8065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8066. /* end confdefs.h. */
  8067. /* Override any GCC internal prototype to avoid an error.
  8068. Use char because int might match the return type of a GCC
  8069. builtin and then its argument prototype would still apply. */
  8070. #ifdef __cplusplus
  8071. extern "C"
  8072. #endif
  8073. char TIFFOpen ();
  8074. int
  8075. main ()
  8076. {
  8077. return TIFFOpen ();
  8078. ;
  8079. return 0;
  8080. }
  8081. _ACEOF
  8082. if ac_fn_c_try_link "$LINENO"; then :
  8083. ac_cv_lib_tiff_TIFFOpen=yes
  8084. else
  8085. ac_cv_lib_tiff_TIFFOpen=no
  8086. fi
  8087. rm -f core conftest.err conftest.$ac_objext \
  8088. conftest$ac_exeext conftest.$ac_ext
  8089. LIBS=$ac_check_lib_save_LIBS
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8091. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8092. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8093. TIFFLIB="$TIFFLIB -ltiff "
  8094. else
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8096. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8097. ac_check_lib_save_LIBS=$LIBS
  8098. LIBS="-ltiff $MATHLIB $LIBS"
  8099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8100. /* end confdefs.h. */
  8101. /* Override any GCC internal prototype to avoid an error.
  8102. Use char because int might match the return type of a GCC
  8103. builtin and then its argument prototype would still apply. */
  8104. #ifdef __cplusplus
  8105. extern "C"
  8106. #endif
  8107. char TIFFOpen ();
  8108. int
  8109. main ()
  8110. {
  8111. return TIFFOpen ();
  8112. ;
  8113. return 0;
  8114. }
  8115. _ACEOF
  8116. if ac_fn_c_try_link "$LINENO"; then :
  8117. ac_cv_lib_tiff_TIFFOpen=yes
  8118. else
  8119. ac_cv_lib_tiff_TIFFOpen=no
  8120. fi
  8121. rm -f core conftest.err conftest.$ac_objext \
  8122. conftest$ac_exeext conftest.$ac_ext
  8123. LIBS=$ac_check_lib_save_LIBS
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8125. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8126. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8127. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  8128. else
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8130. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8131. ac_check_lib_save_LIBS=$LIBS
  8132. LIBS="-ltiff $ZLIB $LIBS"
  8133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8134. /* end confdefs.h. */
  8135. /* Override any GCC internal prototype to avoid an error.
  8136. Use char because int might match the return type of a GCC
  8137. builtin and then its argument prototype would still apply. */
  8138. #ifdef __cplusplus
  8139. extern "C"
  8140. #endif
  8141. char TIFFOpen ();
  8142. int
  8143. main ()
  8144. {
  8145. return TIFFOpen ();
  8146. ;
  8147. return 0;
  8148. }
  8149. _ACEOF
  8150. if ac_fn_c_try_link "$LINENO"; then :
  8151. ac_cv_lib_tiff_TIFFOpen=yes
  8152. else
  8153. ac_cv_lib_tiff_TIFFOpen=no
  8154. fi
  8155. rm -f core conftest.err conftest.$ac_objext \
  8156. conftest$ac_exeext conftest.$ac_ext
  8157. LIBS=$ac_check_lib_save_LIBS
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8159. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8160. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8161. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  8162. else
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8164. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8165. ac_check_lib_save_LIBS=$LIBS
  8166. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  8167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8168. /* end confdefs.h. */
  8169. /* Override any GCC internal prototype to avoid an error.
  8170. Use char because int might match the return type of a GCC
  8171. builtin and then its argument prototype would still apply. */
  8172. #ifdef __cplusplus
  8173. extern "C"
  8174. #endif
  8175. char TIFFOpen ();
  8176. int
  8177. main ()
  8178. {
  8179. return TIFFOpen ();
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. if ac_fn_c_try_link "$LINENO"; then :
  8185. ac_cv_lib_tiff_TIFFOpen=yes
  8186. else
  8187. ac_cv_lib_tiff_TIFFOpen=no
  8188. fi
  8189. rm -f core conftest.err conftest.$ac_objext \
  8190. conftest$ac_exeext conftest.$ac_ext
  8191. LIBS=$ac_check_lib_save_LIBS
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8193. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8194. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8195. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  8196. else
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8198. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8199. ac_check_lib_save_LIBS=$LIBS
  8200. LIBS="-ltiff -ljpeg $LIBS"
  8201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8202. /* end confdefs.h. */
  8203. /* Override any GCC internal prototype to avoid an error.
  8204. Use char because int might match the return type of a GCC
  8205. builtin and then its argument prototype would still apply. */
  8206. #ifdef __cplusplus
  8207. extern "C"
  8208. #endif
  8209. char TIFFOpen ();
  8210. int
  8211. main ()
  8212. {
  8213. return TIFFOpen ();
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. if ac_fn_c_try_link "$LINENO"; then :
  8219. ac_cv_lib_tiff_TIFFOpen=yes
  8220. else
  8221. ac_cv_lib_tiff_TIFFOpen=no
  8222. fi
  8223. rm -f core conftest.err conftest.$ac_objext \
  8224. conftest$ac_exeext conftest.$ac_ext
  8225. LIBS=$ac_check_lib_save_LIBS
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8227. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8228. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8229. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  8230. else
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8232. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8233. ac_check_lib_save_LIBS=$LIBS
  8234. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  8235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8236. /* end confdefs.h. */
  8237. /* Override any GCC internal prototype to avoid an error.
  8238. Use char because int might match the return type of a GCC
  8239. builtin and then its argument prototype would still apply. */
  8240. #ifdef __cplusplus
  8241. extern "C"
  8242. #endif
  8243. char TIFFOpen ();
  8244. int
  8245. main ()
  8246. {
  8247. return TIFFOpen ();
  8248. ;
  8249. return 0;
  8250. }
  8251. _ACEOF
  8252. if ac_fn_c_try_link "$LINENO"; then :
  8253. ac_cv_lib_tiff_TIFFOpen=yes
  8254. else
  8255. ac_cv_lib_tiff_TIFFOpen=no
  8256. fi
  8257. rm -f core conftest.err conftest.$ac_objext \
  8258. conftest$ac_exeext conftest.$ac_ext
  8259. LIBS=$ac_check_lib_save_LIBS
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8261. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8262. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8263. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  8264. else
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8266. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8267. ac_check_lib_save_LIBS=$LIBS
  8268. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  8269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8270. /* end confdefs.h. */
  8271. /* Override any GCC internal prototype to avoid an error.
  8272. Use char because int might match the return type of a GCC
  8273. builtin and then its argument prototype would still apply. */
  8274. #ifdef __cplusplus
  8275. extern "C"
  8276. #endif
  8277. char TIFFOpen ();
  8278. int
  8279. main ()
  8280. {
  8281. return TIFFOpen ();
  8282. ;
  8283. return 0;
  8284. }
  8285. _ACEOF
  8286. if ac_fn_c_try_link "$LINENO"; then :
  8287. ac_cv_lib_tiff_TIFFOpen=yes
  8288. else
  8289. ac_cv_lib_tiff_TIFFOpen=no
  8290. fi
  8291. rm -f core conftest.err conftest.$ac_objext \
  8292. conftest$ac_exeext conftest.$ac_ext
  8293. LIBS=$ac_check_lib_save_LIBS
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8295. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8296. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8297. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  8298. else
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  8300. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  8301. ac_check_lib_save_LIBS=$LIBS
  8302. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. /* Override any GCC internal prototype to avoid an error.
  8306. Use char because int might match the return type of a GCC
  8307. builtin and then its argument prototype would still apply. */
  8308. #ifdef __cplusplus
  8309. extern "C"
  8310. #endif
  8311. char TIFFOpen ();
  8312. int
  8313. main ()
  8314. {
  8315. return TIFFOpen ();
  8316. ;
  8317. return 0;
  8318. }
  8319. _ACEOF
  8320. if ac_fn_c_try_link "$LINENO"; then :
  8321. ac_cv_lib_tiff_TIFFOpen=yes
  8322. else
  8323. ac_cv_lib_tiff_TIFFOpen=no
  8324. fi
  8325. rm -f core conftest.err conftest.$ac_objext \
  8326. conftest$ac_exeext conftest.$ac_ext
  8327. LIBS=$ac_check_lib_save_LIBS
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  8329. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  8330. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  8331. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  8332. else
  8333. LDFLAGS=${ac_save_ldflags}
  8334. as_fn_error $? "*** Unable to locate TIFF library." "$LINENO" 5
  8335. fi
  8336. fi
  8337. fi
  8338. fi
  8339. fi
  8340. fi
  8341. fi
  8342. fi
  8343. LDFLAGS=${ac_save_ldflags}
  8344. fi # $USE_TIFF
  8345. # Done checking TIFF
  8346. # Enable PNG option
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PNG" >&5
  8348. $as_echo_n "checking whether to use PNG... " >&6; }
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_png\"" >&5
  8350. $as_echo "\"$with_png\"" >&6; }
  8351. case "$with_png" in
  8352. "no") USE_PNG= ;;
  8353. "yes") USE_PNG="1" ;;
  8354. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8355. esac
  8356. PNGINC=
  8357. PNGLIB=
  8358. if test -n "$USE_PNG"; then
  8359. # With PNG includes directory
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PNG includes" >&5
  8361. $as_echo_n "checking for location of PNG includes... " >&6; }
  8362. case "$with_png_includes" in
  8363. y | ye | yes | n | no)
  8364. as_fn_error $? "*** You must supply a directory to --with-png-includes." "$LINENO" 5
  8365. ;;
  8366. esac
  8367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_png_includes" >&5
  8368. $as_echo "$with_png_includes" >&6; }
  8369. if test -n "$with_png_includes" ; then
  8370. for dir in $with_png_includes; do
  8371. if test -d "$dir"; then
  8372. PNGINC="$PNGINC -I$dir"
  8373. else
  8374. as_fn_error $? "*** PNG includes directory $dir does not exist." "$LINENO" 5
  8375. fi
  8376. done
  8377. fi
  8378. ac_save_cppflags="$CPPFLAGS"
  8379. CPPFLAGS="$PNGINC $CPPFLAGS"
  8380. for ac_header in png.h
  8381. do :
  8382. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  8383. if test "x$ac_cv_header_png_h" = xyes; then :
  8384. cat >>confdefs.h <<_ACEOF
  8385. #define HAVE_PNG_H 1
  8386. _ACEOF
  8387. else
  8388. as_fn_error $? "*** Unable to locate PNG includes." "$LINENO" 5
  8389. fi
  8390. done
  8391. CPPFLAGS=$ac_save_cppflags
  8392. # With PNG library directory
  8393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PNG library" >&5
  8394. $as_echo_n "checking for location of PNG library... " >&6; }
  8395. case "$with_png_libs" in
  8396. y | ye | yes | n | no)
  8397. as_fn_error $? "*** You must supply a directory to --with-png-libs." "$LINENO" 5
  8398. ;;
  8399. esac
  8400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_png_libs" >&5
  8401. $as_echo "$with_png_libs" >&6; }
  8402. if test -n "$with_png_libs"; then
  8403. for dir in $with_png_libs; do
  8404. if test -d "$dir"; then
  8405. PNGLIB="$PNGLIB -L$dir"
  8406. else
  8407. as_fn_error $? "*** PNG library directory $dir does not exist." "$LINENO" 5
  8408. fi
  8409. done
  8410. fi
  8411. ac_save_ldflags="$LDFLAGS"
  8412. LDFLAGS="$PNGLIB $LDFLAGS"
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng" >&5
  8414. $as_echo_n "checking for png_read_image in -lpng... " >&6; }
  8415. ac_check_lib_save_LIBS=$LIBS
  8416. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  8417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8418. /* end confdefs.h. */
  8419. /* Override any GCC internal prototype to avoid an error.
  8420. Use char because int might match the return type of a GCC
  8421. builtin and then its argument prototype would still apply. */
  8422. #ifdef __cplusplus
  8423. extern "C"
  8424. #endif
  8425. char png_read_image ();
  8426. int
  8427. main ()
  8428. {
  8429. return png_read_image ();
  8430. ;
  8431. return 0;
  8432. }
  8433. _ACEOF
  8434. if ac_fn_c_try_link "$LINENO"; then :
  8435. ac_cv_lib_png_png_read_image=yes
  8436. else
  8437. ac_cv_lib_png_png_read_image=no
  8438. fi
  8439. rm -f core conftest.err conftest.$ac_objext \
  8440. conftest$ac_exeext conftest.$ac_ext
  8441. LIBS=$ac_check_lib_save_LIBS
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_image" >&5
  8443. $as_echo "$ac_cv_lib_png_png_read_image" >&6; }
  8444. if test "x$ac_cv_lib_png_png_read_image" = xyes; then :
  8445. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  8446. else
  8447. LDFLAGS=${ac_save_ldflags}
  8448. as_fn_error $? "*** Unable to locate PNG library." "$LINENO" 5
  8449. fi
  8450. LDFLAGS=${ac_save_ldflags}
  8451. fi # $USE_PNG
  8452. # Done checking PNG
  8453. # Enable PostgreSQL option
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PostgreSQL" >&5
  8455. $as_echo_n "checking whether to use PostgreSQL... " >&6; }
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_postgres\"" >&5
  8457. $as_echo "\"$with_postgres\"" >&6; }
  8458. case "$with_postgres" in
  8459. "no") USE_POSTGRES= ;;
  8460. "yes") USE_POSTGRES="1" ;;
  8461. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8462. esac
  8463. if test -n "$USE_POSTGRES"; then
  8464. $as_echo "#define HAVE_POSTGRES 1" >>confdefs.h
  8465. fi # $USE_POSTGRES
  8466. PQINCPATH=
  8467. PQLIBPATH=
  8468. PQLIB=
  8469. if test -n "$USE_POSTGRES"; then
  8470. # With PostgreSQL includes directory
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PostgreSQL includes" >&5
  8472. $as_echo_n "checking for location of PostgreSQL includes... " >&6; }
  8473. case "$with_postgres_includes" in
  8474. y | ye | yes | n | no)
  8475. as_fn_error $? "*** You must supply a directory to --with-postgres-includes." "$LINENO" 5
  8476. ;;
  8477. esac
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_postgres_includes" >&5
  8479. $as_echo "$with_postgres_includes" >&6; }
  8480. if test -n "$with_postgres_includes" ; then
  8481. for dir in $with_postgres_includes; do
  8482. if test -d "$dir"; then
  8483. PQINCPATH="$PQINCPATH -I$dir"
  8484. else
  8485. as_fn_error $? "*** PostgreSQL includes directory $dir does not exist." "$LINENO" 5
  8486. fi
  8487. done
  8488. fi
  8489. ac_save_cppflags="$CPPFLAGS"
  8490. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  8491. for ac_header in libpq-fe.h
  8492. do :
  8493. ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
  8494. if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
  8495. cat >>confdefs.h <<_ACEOF
  8496. #define HAVE_LIBPQ_FE_H 1
  8497. _ACEOF
  8498. else
  8499. as_fn_error $? "*** Unable to locate PostgreSQL includes." "$LINENO" 5
  8500. fi
  8501. done
  8502. CPPFLAGS=$ac_save_cppflags
  8503. fi # $USE_POSTGRES
  8504. if test -n "$USE_POSTGRES"; then
  8505. # With PostgreSQL library directory
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of PostgreSQL library" >&5
  8507. $as_echo_n "checking for location of PostgreSQL library... " >&6; }
  8508. case "$with_postgres_libs" in
  8509. y | ye | yes | n | no)
  8510. as_fn_error $? "*** You must supply a directory to --with-postgres-libs." "$LINENO" 5
  8511. ;;
  8512. esac
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_postgres_libs" >&5
  8514. $as_echo "$with_postgres_libs" >&6; }
  8515. if test -n "$with_postgres_libs"; then
  8516. for dir in $with_postgres_libs; do
  8517. if test -d "$dir"; then
  8518. PQLIBPATH="$PQLIBPATH -L$dir"
  8519. else
  8520. as_fn_error $? "*** PostgreSQL library directory $dir does not exist." "$LINENO" 5
  8521. fi
  8522. done
  8523. fi
  8524. ac_save_ldflags="$LDFLAGS"
  8525. LDFLAGS="$PQLIBPATH $LDFLAGS"
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8527. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8528. ac_check_lib_save_LIBS=$LIBS
  8529. LIBS="-lpq $LIBS"
  8530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8531. /* end confdefs.h. */
  8532. /* Override any GCC internal prototype to avoid an error.
  8533. Use char because int might match the return type of a GCC
  8534. builtin and then its argument prototype would still apply. */
  8535. #ifdef __cplusplus
  8536. extern "C"
  8537. #endif
  8538. char PQsetdbLogin ();
  8539. int
  8540. main ()
  8541. {
  8542. return PQsetdbLogin ();
  8543. ;
  8544. return 0;
  8545. }
  8546. _ACEOF
  8547. if ac_fn_c_try_link "$LINENO"; then :
  8548. ac_cv_lib_pq_PQsetdbLogin=yes
  8549. else
  8550. ac_cv_lib_pq_PQsetdbLogin=no
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext \
  8553. conftest$ac_exeext conftest.$ac_ext
  8554. LIBS=$ac_check_lib_save_LIBS
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8556. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8557. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8558. PQLIB="$PQLIB -lpq "
  8559. else
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8561. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8562. ac_check_lib_save_LIBS=$LIBS
  8563. LIBS="-lpq -lssl -lcrypto $LIBS"
  8564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8565. /* end confdefs.h. */
  8566. /* Override any GCC internal prototype to avoid an error.
  8567. Use char because int might match the return type of a GCC
  8568. builtin and then its argument prototype would still apply. */
  8569. #ifdef __cplusplus
  8570. extern "C"
  8571. #endif
  8572. char PQsetdbLogin ();
  8573. int
  8574. main ()
  8575. {
  8576. return PQsetdbLogin ();
  8577. ;
  8578. return 0;
  8579. }
  8580. _ACEOF
  8581. if ac_fn_c_try_link "$LINENO"; then :
  8582. ac_cv_lib_pq_PQsetdbLogin=yes
  8583. else
  8584. ac_cv_lib_pq_PQsetdbLogin=no
  8585. fi
  8586. rm -f core conftest.err conftest.$ac_objext \
  8587. conftest$ac_exeext conftest.$ac_ext
  8588. LIBS=$ac_check_lib_save_LIBS
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8590. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8591. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8592. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  8593. else
  8594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8595. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8596. ac_check_lib_save_LIBS=$LIBS
  8597. LIBS="-lpq -lcrypt $LIBS"
  8598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8599. /* end confdefs.h. */
  8600. /* Override any GCC internal prototype to avoid an error.
  8601. Use char because int might match the return type of a GCC
  8602. builtin and then its argument prototype would still apply. */
  8603. #ifdef __cplusplus
  8604. extern "C"
  8605. #endif
  8606. char PQsetdbLogin ();
  8607. int
  8608. main ()
  8609. {
  8610. return PQsetdbLogin ();
  8611. ;
  8612. return 0;
  8613. }
  8614. _ACEOF
  8615. if ac_fn_c_try_link "$LINENO"; then :
  8616. ac_cv_lib_pq_PQsetdbLogin=yes
  8617. else
  8618. ac_cv_lib_pq_PQsetdbLogin=no
  8619. fi
  8620. rm -f core conftest.err conftest.$ac_objext \
  8621. conftest$ac_exeext conftest.$ac_ext
  8622. LIBS=$ac_check_lib_save_LIBS
  8623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8624. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8625. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8626. PQLIB="$PQLIB -lpq -lcrypt"
  8627. else
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
  8629. $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
  8630. ac_check_lib_save_LIBS=$LIBS
  8631. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  8632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8633. /* end confdefs.h. */
  8634. /* Override any GCC internal prototype to avoid an error.
  8635. Use char because int might match the return type of a GCC
  8636. builtin and then its argument prototype would still apply. */
  8637. #ifdef __cplusplus
  8638. extern "C"
  8639. #endif
  8640. char PQsetdbLogin ();
  8641. int
  8642. main ()
  8643. {
  8644. return PQsetdbLogin ();
  8645. ;
  8646. return 0;
  8647. }
  8648. _ACEOF
  8649. if ac_fn_c_try_link "$LINENO"; then :
  8650. ac_cv_lib_pq_PQsetdbLogin=yes
  8651. else
  8652. ac_cv_lib_pq_PQsetdbLogin=no
  8653. fi
  8654. rm -f core conftest.err conftest.$ac_objext \
  8655. conftest$ac_exeext conftest.$ac_ext
  8656. LIBS=$ac_check_lib_save_LIBS
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
  8658. $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
  8659. if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
  8660. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  8661. else
  8662. LDFLAGS=${ac_save_ldflags}
  8663. as_fn_error $? "*** Unable to locate PostgreSQL library." "$LINENO" 5
  8664. fi
  8665. fi
  8666. fi
  8667. fi
  8668. LDFLAGS=${ac_save_ldflags}
  8669. ac_save_ldflags="$LDFLAGS"
  8670. LDFLAGS="$LDFLAGS $PQLIBPATH"
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
  8672. $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
  8673. ac_check_lib_save_LIBS=$LIBS
  8674. LIBS="-lpq $LIBS"
  8675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8676. /* end confdefs.h. */
  8677. /* Override any GCC internal prototype to avoid an error.
  8678. Use char because int might match the return type of a GCC
  8679. builtin and then its argument prototype would still apply. */
  8680. #ifdef __cplusplus
  8681. extern "C"
  8682. #endif
  8683. char PQcmdTuples ();
  8684. int
  8685. main ()
  8686. {
  8687. return PQcmdTuples ();
  8688. ;
  8689. return 0;
  8690. }
  8691. _ACEOF
  8692. if ac_fn_c_try_link "$LINENO"; then :
  8693. ac_cv_lib_pq_PQcmdTuples=yes
  8694. else
  8695. ac_cv_lib_pq_PQcmdTuples=no
  8696. fi
  8697. rm -f core conftest.err conftest.$ac_objext \
  8698. conftest$ac_exeext conftest.$ac_ext
  8699. LIBS=$ac_check_lib_save_LIBS
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
  8701. $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
  8702. if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
  8703. $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
  8704. else
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
  8706. $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
  8707. ac_check_lib_save_LIBS=$LIBS
  8708. LIBS="-lpq -lcrypt $LIBS"
  8709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8710. /* end confdefs.h. */
  8711. /* Override any GCC internal prototype to avoid an error.
  8712. Use char because int might match the return type of a GCC
  8713. builtin and then its argument prototype would still apply. */
  8714. #ifdef __cplusplus
  8715. extern "C"
  8716. #endif
  8717. char PQcmdTuples ();
  8718. int
  8719. main ()
  8720. {
  8721. return PQcmdTuples ();
  8722. ;
  8723. return 0;
  8724. }
  8725. _ACEOF
  8726. if ac_fn_c_try_link "$LINENO"; then :
  8727. ac_cv_lib_pq_PQcmdTuples=yes
  8728. else
  8729. ac_cv_lib_pq_PQcmdTuples=no
  8730. fi
  8731. rm -f core conftest.err conftest.$ac_objext \
  8732. conftest$ac_exeext conftest.$ac_ext
  8733. LIBS=$ac_check_lib_save_LIBS
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
  8735. $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
  8736. if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
  8737. $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
  8738. fi
  8739. fi
  8740. LDFLAGS="${ac_save_ldflags}"
  8741. fi # $USE_POSTGRES
  8742. # Done checking PostgreSQL
  8743. # Enable MySQL option
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MySQL" >&5
  8745. $as_echo_n "checking whether to use MySQL... " >&6; }
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_mysql\"" >&5
  8747. $as_echo "\"$with_mysql\"" >&6; }
  8748. case "$with_mysql" in
  8749. "no") USE_MYSQL= ;;
  8750. "yes") USE_MYSQL="1" ;;
  8751. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  8752. esac
  8753. MYSQLINCPATH=
  8754. MYSQLLIBPATH=
  8755. MYSQLLIB=
  8756. if test -n "$USE_MYSQL"; then
  8757. # With MySQL includes directory
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of MySQL includes" >&5
  8759. $as_echo_n "checking for location of MySQL includes... " >&6; }
  8760. case "$with_mysql_includes" in
  8761. y | ye | yes | n | no)
  8762. as_fn_error $? "*** You must supply a directory to --with-mysql-includes." "$LINENO" 5
  8763. ;;
  8764. esac
  8765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_includes" >&5
  8766. $as_echo "$with_mysql_includes" >&6; }
  8767. if test -n "$with_mysql_includes" ; then
  8768. for dir in $with_mysql_includes; do
  8769. if test -d "$dir"; then
  8770. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  8771. else
  8772. as_fn_error $? "*** MySQL includes directory $dir does not exist." "$LINENO" 5
  8773. fi
  8774. done
  8775. fi
  8776. ac_save_cppflags="$CPPFLAGS"
  8777. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  8778. for ac_header in mysql.h
  8779. do :
  8780. ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  8781. if test "x$ac_cv_header_mysql_h" = xyes; then :
  8782. cat >>confdefs.h <<_ACEOF
  8783. #define HAVE_MYSQL_H 1
  8784. _ACEOF
  8785. else
  8786. as_fn_error $? "*** Unable to locate MySQL includes." "$LINENO" 5
  8787. fi
  8788. done
  8789. CPPFLAGS=$ac_save_cppflags
  8790. fi # $USE_MYSQL
  8791. if test -n "$USE_MYSQL"; then
  8792. # With MySQL library directory
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of MySQL library" >&5
  8794. $as_echo_n "checking for location of MySQL library... " >&6; }
  8795. case "$with_mysql_libs" in
  8796. y | ye | yes | n | no)
  8797. as_fn_error $? "*** You must supply a directory to --with-mysql-libs." "$LINENO" 5
  8798. ;;
  8799. esac
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_libs" >&5
  8801. $as_echo "$with_mysql_libs" >&6; }
  8802. if test -n "$with_mysql_libs"; then
  8803. for dir in $with_mysql_libs; do
  8804. if test -d "$dir"; then
  8805. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  8806. else
  8807. as_fn_error $? "*** MySQL library directory $dir does not exist." "$LINENO" 5
  8808. fi
  8809. done
  8810. fi
  8811. ac_save_ldflags="$LDFLAGS"
  8812. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8814. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8815. ac_check_lib_save_LIBS=$LIBS
  8816. LIBS="-lmysqlclient $LIBS"
  8817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8818. /* end confdefs.h. */
  8819. /* Override any GCC internal prototype to avoid an error.
  8820. Use char because int might match the return type of a GCC
  8821. builtin and then its argument prototype would still apply. */
  8822. #ifdef __cplusplus
  8823. extern "C"
  8824. #endif
  8825. char mysql_query ();
  8826. int
  8827. main ()
  8828. {
  8829. return mysql_query ();
  8830. ;
  8831. return 0;
  8832. }
  8833. _ACEOF
  8834. if ac_fn_c_try_link "$LINENO"; then :
  8835. ac_cv_lib_mysqlclient_mysql_query=yes
  8836. else
  8837. ac_cv_lib_mysqlclient_mysql_query=no
  8838. fi
  8839. rm -f core conftest.err conftest.$ac_objext \
  8840. conftest$ac_exeext conftest.$ac_ext
  8841. LIBS=$ac_check_lib_save_LIBS
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8843. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8844. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8845. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  8846. else
  8847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8848. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8849. ac_check_lib_save_LIBS=$LIBS
  8850. LIBS="-lmysqlclient $MATHLIB $LIBS"
  8851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8852. /* end confdefs.h. */
  8853. /* Override any GCC internal prototype to avoid an error.
  8854. Use char because int might match the return type of a GCC
  8855. builtin and then its argument prototype would still apply. */
  8856. #ifdef __cplusplus
  8857. extern "C"
  8858. #endif
  8859. char mysql_query ();
  8860. int
  8861. main ()
  8862. {
  8863. return mysql_query ();
  8864. ;
  8865. return 0;
  8866. }
  8867. _ACEOF
  8868. if ac_fn_c_try_link "$LINENO"; then :
  8869. ac_cv_lib_mysqlclient_mysql_query=yes
  8870. else
  8871. ac_cv_lib_mysqlclient_mysql_query=no
  8872. fi
  8873. rm -f core conftest.err conftest.$ac_objext \
  8874. conftest$ac_exeext conftest.$ac_ext
  8875. LIBS=$ac_check_lib_save_LIBS
  8876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8877. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8878. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8879. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  8880. else
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8882. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8883. ac_check_lib_save_LIBS=$LIBS
  8884. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  8885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8886. /* end confdefs.h. */
  8887. /* Override any GCC internal prototype to avoid an error.
  8888. Use char because int might match the return type of a GCC
  8889. builtin and then its argument prototype would still apply. */
  8890. #ifdef __cplusplus
  8891. extern "C"
  8892. #endif
  8893. char mysql_query ();
  8894. int
  8895. main ()
  8896. {
  8897. return mysql_query ();
  8898. ;
  8899. return 0;
  8900. }
  8901. _ACEOF
  8902. if ac_fn_c_try_link "$LINENO"; then :
  8903. ac_cv_lib_mysqlclient_mysql_query=yes
  8904. else
  8905. ac_cv_lib_mysqlclient_mysql_query=no
  8906. fi
  8907. rm -f core conftest.err conftest.$ac_objext \
  8908. conftest$ac_exeext conftest.$ac_ext
  8909. LIBS=$ac_check_lib_save_LIBS
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8911. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8912. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8913. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  8914. else
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8916. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8917. ac_check_lib_save_LIBS=$LIBS
  8918. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  8919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8920. /* end confdefs.h. */
  8921. /* Override any GCC internal prototype to avoid an error.
  8922. Use char because int might match the return type of a GCC
  8923. builtin and then its argument prototype would still apply. */
  8924. #ifdef __cplusplus
  8925. extern "C"
  8926. #endif
  8927. char mysql_query ();
  8928. int
  8929. main ()
  8930. {
  8931. return mysql_query ();
  8932. ;
  8933. return 0;
  8934. }
  8935. _ACEOF
  8936. if ac_fn_c_try_link "$LINENO"; then :
  8937. ac_cv_lib_mysqlclient_mysql_query=yes
  8938. else
  8939. ac_cv_lib_mysqlclient_mysql_query=no
  8940. fi
  8941. rm -f core conftest.err conftest.$ac_objext \
  8942. conftest$ac_exeext conftest.$ac_ext
  8943. LIBS=$ac_check_lib_save_LIBS
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8945. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8946. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8947. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  8948. else
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8950. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8951. ac_check_lib_save_LIBS=$LIBS
  8952. LIBS="-lmysqlclient $ZLIB $LIBS"
  8953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8954. /* end confdefs.h. */
  8955. /* Override any GCC internal prototype to avoid an error.
  8956. Use char because int might match the return type of a GCC
  8957. builtin and then its argument prototype would still apply. */
  8958. #ifdef __cplusplus
  8959. extern "C"
  8960. #endif
  8961. char mysql_query ();
  8962. int
  8963. main ()
  8964. {
  8965. return mysql_query ();
  8966. ;
  8967. return 0;
  8968. }
  8969. _ACEOF
  8970. if ac_fn_c_try_link "$LINENO"; then :
  8971. ac_cv_lib_mysqlclient_mysql_query=yes
  8972. else
  8973. ac_cv_lib_mysqlclient_mysql_query=no
  8974. fi
  8975. rm -f core conftest.err conftest.$ac_objext \
  8976. conftest$ac_exeext conftest.$ac_ext
  8977. LIBS=$ac_check_lib_save_LIBS
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  8979. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  8980. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  8981. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  8982. else
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  8984. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  8985. ac_check_lib_save_LIBS=$LIBS
  8986. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  8987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8988. /* end confdefs.h. */
  8989. /* Override any GCC internal prototype to avoid an error.
  8990. Use char because int might match the return type of a GCC
  8991. builtin and then its argument prototype would still apply. */
  8992. #ifdef __cplusplus
  8993. extern "C"
  8994. #endif
  8995. char mysql_query ();
  8996. int
  8997. main ()
  8998. {
  8999. return mysql_query ();
  9000. ;
  9001. return 0;
  9002. }
  9003. _ACEOF
  9004. if ac_fn_c_try_link "$LINENO"; then :
  9005. ac_cv_lib_mysqlclient_mysql_query=yes
  9006. else
  9007. ac_cv_lib_mysqlclient_mysql_query=no
  9008. fi
  9009. rm -f core conftest.err conftest.$ac_objext \
  9010. conftest$ac_exeext conftest.$ac_ext
  9011. LIBS=$ac_check_lib_save_LIBS
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  9013. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9014. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9015. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  9016. else
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  9018. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  9019. ac_check_lib_save_LIBS=$LIBS
  9020. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  9021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9022. /* end confdefs.h. */
  9023. /* Override any GCC internal prototype to avoid an error.
  9024. Use char because int might match the return type of a GCC
  9025. builtin and then its argument prototype would still apply. */
  9026. #ifdef __cplusplus
  9027. extern "C"
  9028. #endif
  9029. char mysql_query ();
  9030. int
  9031. main ()
  9032. {
  9033. return mysql_query ();
  9034. ;
  9035. return 0;
  9036. }
  9037. _ACEOF
  9038. if ac_fn_c_try_link "$LINENO"; then :
  9039. ac_cv_lib_mysqlclient_mysql_query=yes
  9040. else
  9041. ac_cv_lib_mysqlclient_mysql_query=no
  9042. fi
  9043. rm -f core conftest.err conftest.$ac_objext \
  9044. conftest$ac_exeext conftest.$ac_ext
  9045. LIBS=$ac_check_lib_save_LIBS
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  9047. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9048. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9049. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  9050. else
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5
  9052. $as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; }
  9053. ac_check_lib_save_LIBS=$LIBS
  9054. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  9055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9056. /* end confdefs.h. */
  9057. /* Override any GCC internal prototype to avoid an error.
  9058. Use char because int might match the return type of a GCC
  9059. builtin and then its argument prototype would still apply. */
  9060. #ifdef __cplusplus
  9061. extern "C"
  9062. #endif
  9063. char mysql_query ();
  9064. int
  9065. main ()
  9066. {
  9067. return mysql_query ();
  9068. ;
  9069. return 0;
  9070. }
  9071. _ACEOF
  9072. if ac_fn_c_try_link "$LINENO"; then :
  9073. ac_cv_lib_mysqlclient_mysql_query=yes
  9074. else
  9075. ac_cv_lib_mysqlclient_mysql_query=no
  9076. fi
  9077. rm -f core conftest.err conftest.$ac_objext \
  9078. conftest$ac_exeext conftest.$ac_ext
  9079. LIBS=$ac_check_lib_save_LIBS
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5
  9081. $as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; }
  9082. if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then :
  9083. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  9084. else
  9085. LDFLAGS=${ac_save_ldflags}
  9086. as_fn_error $? "*** Unable to locate MySQL library." "$LINENO" 5
  9087. fi
  9088. fi
  9089. fi
  9090. fi
  9091. fi
  9092. fi
  9093. fi
  9094. fi
  9095. LDFLAGS=${ac_save_ldflags}
  9096. # Check for libmysqld (for embedded version of the driver)
  9097. # Extract the first word of "mysql_config", so it can be a program name with args.
  9098. set dummy mysql_config; ac_word=$2
  9099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9100. $as_echo_n "checking for $ac_word... " >&6; }
  9101. case $MYSQLD_CONFIG in
  9102. [\\/]* | ?:[\\/]*)
  9103. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  9104. ;;
  9105. *)
  9106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9107. for as_dir in $PATH
  9108. do
  9109. IFS=$as_save_IFS
  9110. test -z "$as_dir" && as_dir=.
  9111. for ac_exec_ext in '' $ac_executable_extensions; do
  9112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9113. ac_cv_path_MYSQLD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9115. break 2
  9116. fi
  9117. done
  9118. done
  9119. IFS=$as_save_IFS
  9120. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  9121. ;;
  9122. esac
  9123. MYSQLD_CONFIG=$ac_cv_path_MYSQLD_CONFIG
  9124. if test -n "$MYSQLD_CONFIG"; then
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLD_CONFIG" >&5
  9126. $as_echo "$MYSQLD_CONFIG" >&6; }
  9127. else
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9129. $as_echo "no" >&6; }
  9130. fi
  9131. if test "$MYSQLD_CONFIG" = "no" ; then
  9132. as_fn_error $? "*** couldn't find mysql_config" "$LINENO" 5
  9133. fi
  9134. if test "$MYSQLD_CONFIG" != "" ; then
  9135. ac_ext=cpp
  9136. ac_cpp='$CXXCPP $CPPFLAGS'
  9137. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9138. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9139. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9140. ac_save_libs="$LIBS"
  9141. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  9142. LIBS="$MYSQLDLIB $LIBS"
  9143. ac_fn_cxx_check_func "$LINENO" "mysql_server_init" "ac_cv_func_mysql_server_init"
  9144. if test "x$ac_cv_func_mysql_server_init" = xyes; then :
  9145. else
  9146. MYSQLDLIB="";
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmysqld not found" >&5
  9148. $as_echo "$as_me: WARNING: libmysqld not found" >&2;}
  9149. fi
  9150. LIBS=$ac_save_libs
  9151. ac_ext=c
  9152. ac_cpp='$CPP $CPPFLAGS'
  9153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9156. fi
  9157. fi # $USE_MYSQL
  9158. # Done checking MySQL
  9159. # Enable SQLite option
  9160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SQLite" >&5
  9161. $as_echo_n "checking whether to use SQLite... " >&6; }
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_sqlite\"" >&5
  9163. $as_echo "\"$with_sqlite\"" >&6; }
  9164. case "$with_sqlite" in
  9165. "no") USE_SQLITE= ;;
  9166. "yes") USE_SQLITE="1" ;;
  9167. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  9168. esac
  9169. SQLITEINCPATH=
  9170. SQLITELIBPATH=
  9171. SQLITELIB=
  9172. if test -n "$USE_SQLITE"; then
  9173. # With SQLite includes directory
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SQLite includes" >&5
  9175. $as_echo_n "checking for location of SQLite includes... " >&6; }
  9176. case "$with_sqlite_includes" in
  9177. y | ye | yes | n | no)
  9178. as_fn_error $? "*** You must supply a directory to --with-sqlite-includes." "$LINENO" 5
  9179. ;;
  9180. esac
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sqlite_includes" >&5
  9182. $as_echo "$with_sqlite_includes" >&6; }
  9183. if test -n "$with_sqlite_includes" ; then
  9184. for dir in $with_sqlite_includes; do
  9185. if test -d "$dir"; then
  9186. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  9187. else
  9188. as_fn_error $? "*** SQLite includes directory $dir does not exist." "$LINENO" 5
  9189. fi
  9190. done
  9191. fi
  9192. ac_save_cppflags="$CPPFLAGS"
  9193. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  9194. for ac_header in sqlite3.h
  9195. do :
  9196. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  9197. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  9198. cat >>confdefs.h <<_ACEOF
  9199. #define HAVE_SQLITE3_H 1
  9200. _ACEOF
  9201. else
  9202. as_fn_error $? "*** Unable to locate SQLite includes." "$LINENO" 5
  9203. fi
  9204. done
  9205. CPPFLAGS=$ac_save_cppflags
  9206. $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
  9207. fi # $USE_SQLITE
  9208. if test -n "$USE_SQLITE"; then
  9209. # With SQLite library directory
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SQLite library" >&5
  9211. $as_echo_n "checking for location of SQLite library... " >&6; }
  9212. case "$with_sqlite_libs" in
  9213. y | ye | yes | n | no)
  9214. as_fn_error $? "*** You must supply a directory to --with-sqlite-libs." "$LINENO" 5
  9215. ;;
  9216. esac
  9217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sqlite_libs" >&5
  9218. $as_echo "$with_sqlite_libs" >&6; }
  9219. if test -n "$with_sqlite_libs"; then
  9220. for dir in $with_sqlite_libs; do
  9221. if test -d "$dir"; then
  9222. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  9223. else
  9224. as_fn_error $? "*** SQLite library directory $dir does not exist." "$LINENO" 5
  9225. fi
  9226. done
  9227. fi
  9228. ac_save_ldflags="$LDFLAGS"
  9229. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9231. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9232. ac_check_lib_save_LIBS=$LIBS
  9233. LIBS="-lsqlite3 $LIBS"
  9234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9235. /* end confdefs.h. */
  9236. /* Override any GCC internal prototype to avoid an error.
  9237. Use char because int might match the return type of a GCC
  9238. builtin and then its argument prototype would still apply. */
  9239. #ifdef __cplusplus
  9240. extern "C"
  9241. #endif
  9242. char sqlite3_open ();
  9243. int
  9244. main ()
  9245. {
  9246. return sqlite3_open ();
  9247. ;
  9248. return 0;
  9249. }
  9250. _ACEOF
  9251. if ac_fn_c_try_link "$LINENO"; then :
  9252. ac_cv_lib_sqlite3_sqlite3_open=yes
  9253. else
  9254. ac_cv_lib_sqlite3_sqlite3_open=no
  9255. fi
  9256. rm -f core conftest.err conftest.$ac_objext \
  9257. conftest$ac_exeext conftest.$ac_ext
  9258. LIBS=$ac_check_lib_save_LIBS
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9260. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9261. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9262. SQLITELIB="$SQLITELIB -lsqlite3 "
  9263. else
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9265. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9266. ac_check_lib_save_LIBS=$LIBS
  9267. LIBS="-lsqlite3 $DLLIB $LIBS"
  9268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9269. /* end confdefs.h. */
  9270. /* Override any GCC internal prototype to avoid an error.
  9271. Use char because int might match the return type of a GCC
  9272. builtin and then its argument prototype would still apply. */
  9273. #ifdef __cplusplus
  9274. extern "C"
  9275. #endif
  9276. char sqlite3_open ();
  9277. int
  9278. main ()
  9279. {
  9280. return sqlite3_open ();
  9281. ;
  9282. return 0;
  9283. }
  9284. _ACEOF
  9285. if ac_fn_c_try_link "$LINENO"; then :
  9286. ac_cv_lib_sqlite3_sqlite3_open=yes
  9287. else
  9288. ac_cv_lib_sqlite3_sqlite3_open=no
  9289. fi
  9290. rm -f core conftest.err conftest.$ac_objext \
  9291. conftest$ac_exeext conftest.$ac_ext
  9292. LIBS=$ac_check_lib_save_LIBS
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9294. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9295. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9296. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  9297. else
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9299. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9300. ac_check_lib_save_LIBS=$LIBS
  9301. LIBS="-lsqlite3 $MATHLIB $LIBS"
  9302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9303. /* end confdefs.h. */
  9304. /* Override any GCC internal prototype to avoid an error.
  9305. Use char because int might match the return type of a GCC
  9306. builtin and then its argument prototype would still apply. */
  9307. #ifdef __cplusplus
  9308. extern "C"
  9309. #endif
  9310. char sqlite3_open ();
  9311. int
  9312. main ()
  9313. {
  9314. return sqlite3_open ();
  9315. ;
  9316. return 0;
  9317. }
  9318. _ACEOF
  9319. if ac_fn_c_try_link "$LINENO"; then :
  9320. ac_cv_lib_sqlite3_sqlite3_open=yes
  9321. else
  9322. ac_cv_lib_sqlite3_sqlite3_open=no
  9323. fi
  9324. rm -f core conftest.err conftest.$ac_objext \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. LIBS=$ac_check_lib_save_LIBS
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9328. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9329. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9330. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  9331. else
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  9333. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  9334. ac_check_lib_save_LIBS=$LIBS
  9335. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  9336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9337. /* end confdefs.h. */
  9338. /* Override any GCC internal prototype to avoid an error.
  9339. Use char because int might match the return type of a GCC
  9340. builtin and then its argument prototype would still apply. */
  9341. #ifdef __cplusplus
  9342. extern "C"
  9343. #endif
  9344. char sqlite3_open ();
  9345. int
  9346. main ()
  9347. {
  9348. return sqlite3_open ();
  9349. ;
  9350. return 0;
  9351. }
  9352. _ACEOF
  9353. if ac_fn_c_try_link "$LINENO"; then :
  9354. ac_cv_lib_sqlite3_sqlite3_open=yes
  9355. else
  9356. ac_cv_lib_sqlite3_sqlite3_open=no
  9357. fi
  9358. rm -f core conftest.err conftest.$ac_objext \
  9359. conftest$ac_exeext conftest.$ac_ext
  9360. LIBS=$ac_check_lib_save_LIBS
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  9362. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  9363. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
  9364. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  9365. else
  9366. LDFLAGS=${ac_save_ldflags}
  9367. as_fn_error $? "*** Unable to locate SQLite library." "$LINENO" 5
  9368. fi
  9369. fi
  9370. fi
  9371. fi
  9372. LDFLAGS=${ac_save_ldflags}
  9373. fi # $USE_SQLITE
  9374. # Done checking SQLite
  9375. # Enable OpenGL option
  9376. OPENGLINC=
  9377. OPENGLLIB=
  9378. OPENGLULIB=
  9379. USE_OPENGL=
  9380. OPENGL_X11=
  9381. OPENGL_AQUA=
  9382. OPENGL_WINDOWS=
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenGL" >&5
  9384. $as_echo_n "checking whether to use OpenGL... " >&6; }
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opengl\"" >&5
  9386. $as_echo "\"$with_opengl\"" >&6; }
  9387. case "$with_opengl" in
  9388. n|no)
  9389. OPENGL_TYPE=none
  9390. ;;
  9391. y|yes|x|x11|glx)
  9392. OPENGL_TYPE=X11
  9393. USE_OPENGL=1
  9394. OPENGL_X11=1
  9395. ;;
  9396. aqua|mac|osx|macosx|agl)
  9397. OPENGL_TYPE=Aqua
  9398. USE_OPENGL=1
  9399. OPENGL_AQUA=1
  9400. ;;
  9401. win|windows|mswin|wgl)
  9402. OPENGL_TYPE=Windows
  9403. USE_OPENGL=1
  9404. OPENGL_WINDOWS=1
  9405. ;;
  9406. *)
  9407. as_fn_error $? "*** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." "$LINENO" 5
  9408. ;;
  9409. esac
  9410. if test -n "$USE_OPENGL" ; then
  9411. if test "$OPENGL_X11" = 1 ; then
  9412. # With OpenGL includes directory
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL includes" >&5
  9414. $as_echo_n "checking for location of OpenGL includes... " >&6; }
  9415. case "$with_opengl_includes" in
  9416. y | ye | yes | n | no)
  9417. as_fn_error $? "*** You must supply a directory to --with-opengl-includes." "$LINENO" 5
  9418. ;;
  9419. esac
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_includes" >&5
  9421. $as_echo "$with_opengl_includes" >&6; }
  9422. if test -n "$with_opengl_includes" ; then
  9423. for dir in $with_opengl_includes; do
  9424. if test -d "$dir"; then
  9425. OPENGLINC="$OPENGLINC -I$dir"
  9426. else
  9427. as_fn_error $? "*** OpenGL includes directory $dir does not exist." "$LINENO" 5
  9428. fi
  9429. done
  9430. fi
  9431. ac_save_cppflags="$CPPFLAGS"
  9432. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  9433. for ac_header in GL/gl.h GL/glu.h
  9434. do :
  9435. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9436. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9437. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9438. cat >>confdefs.h <<_ACEOF
  9439. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9440. _ACEOF
  9441. else
  9442. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9443. fi
  9444. done
  9445. CPPFLAGS=$ac_save_cppflags
  9446. # With OpenGL library directory
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL library" >&5
  9448. $as_echo_n "checking for location of OpenGL library... " >&6; }
  9449. case "$with_opengl_libs" in
  9450. y | ye | yes | n | no)
  9451. as_fn_error $? "*** You must supply a directory to --with-opengl-libs." "$LINENO" 5
  9452. ;;
  9453. esac
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_libs" >&5
  9455. $as_echo "$with_opengl_libs" >&6; }
  9456. if test -n "$with_opengl_libs"; then
  9457. for dir in $with_opengl_libs; do
  9458. if test -d "$dir"; then
  9459. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  9460. else
  9461. as_fn_error $? "*** OpenGL library directory $dir does not exist." "$LINENO" 5
  9462. fi
  9463. done
  9464. fi
  9465. ac_save_ldflags="$LDFLAGS"
  9466. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9468. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char glBegin ();
  9480. int
  9481. main ()
  9482. {
  9483. return glBegin ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_GL_glBegin=yes
  9490. else
  9491. ac_cv_lib_GL_glBegin=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9497. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9498. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9499. OPENGLLIB="$OPENGLLIB -lGL "
  9500. else
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9502. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9503. ac_check_lib_save_LIBS=$LIBS
  9504. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  9505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9506. /* end confdefs.h. */
  9507. /* Override any GCC internal prototype to avoid an error.
  9508. Use char because int might match the return type of a GCC
  9509. builtin and then its argument prototype would still apply. */
  9510. #ifdef __cplusplus
  9511. extern "C"
  9512. #endif
  9513. char glBegin ();
  9514. int
  9515. main ()
  9516. {
  9517. return glBegin ();
  9518. ;
  9519. return 0;
  9520. }
  9521. _ACEOF
  9522. if ac_fn_c_try_link "$LINENO"; then :
  9523. ac_cv_lib_GL_glBegin=yes
  9524. else
  9525. ac_cv_lib_GL_glBegin=no
  9526. fi
  9527. rm -f core conftest.err conftest.$ac_objext \
  9528. conftest$ac_exeext conftest.$ac_ext
  9529. LIBS=$ac_check_lib_save_LIBS
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9531. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9532. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9533. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  9534. else
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9536. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9537. ac_check_lib_save_LIBS=$LIBS
  9538. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  9539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9540. /* end confdefs.h. */
  9541. /* Override any GCC internal prototype to avoid an error.
  9542. Use char because int might match the return type of a GCC
  9543. builtin and then its argument prototype would still apply. */
  9544. #ifdef __cplusplus
  9545. extern "C"
  9546. #endif
  9547. char glBegin ();
  9548. int
  9549. main ()
  9550. {
  9551. return glBegin ();
  9552. ;
  9553. return 0;
  9554. }
  9555. _ACEOF
  9556. if ac_fn_c_try_link "$LINENO"; then :
  9557. ac_cv_lib_GL_glBegin=yes
  9558. else
  9559. ac_cv_lib_GL_glBegin=no
  9560. fi
  9561. rm -f core conftest.err conftest.$ac_objext \
  9562. conftest$ac_exeext conftest.$ac_ext
  9563. LIBS=$ac_check_lib_save_LIBS
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9565. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9566. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9567. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  9568. else
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  9570. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  9571. ac_check_lib_save_LIBS=$LIBS
  9572. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  9573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9574. /* end confdefs.h. */
  9575. /* Override any GCC internal prototype to avoid an error.
  9576. Use char because int might match the return type of a GCC
  9577. builtin and then its argument prototype would still apply. */
  9578. #ifdef __cplusplus
  9579. extern "C"
  9580. #endif
  9581. char glBegin ();
  9582. int
  9583. main ()
  9584. {
  9585. return glBegin ();
  9586. ;
  9587. return 0;
  9588. }
  9589. _ACEOF
  9590. if ac_fn_c_try_link "$LINENO"; then :
  9591. ac_cv_lib_GL_glBegin=yes
  9592. else
  9593. ac_cv_lib_GL_glBegin=no
  9594. fi
  9595. rm -f core conftest.err conftest.$ac_objext \
  9596. conftest$ac_exeext conftest.$ac_ext
  9597. LIBS=$ac_check_lib_save_LIBS
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  9599. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  9600. if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
  9601. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  9602. else
  9603. LDFLAGS=${ac_save_ldflags}
  9604. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9605. fi
  9606. fi
  9607. fi
  9608. fi
  9609. LDFLAGS=${ac_save_ldflags}
  9610. ac_save_ldflags="$LDFLAGS"
  9611. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5
  9613. $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; }
  9614. ac_check_lib_save_LIBS=$LIBS
  9615. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  9616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9617. /* end confdefs.h. */
  9618. /* Override any GCC internal prototype to avoid an error.
  9619. Use char because int might match the return type of a GCC
  9620. builtin and then its argument prototype would still apply. */
  9621. #ifdef __cplusplus
  9622. extern "C"
  9623. #endif
  9624. char gluBeginCurve ();
  9625. int
  9626. main ()
  9627. {
  9628. return gluBeginCurve ();
  9629. ;
  9630. return 0;
  9631. }
  9632. _ACEOF
  9633. if ac_fn_c_try_link "$LINENO"; then :
  9634. ac_cv_lib_GLU_gluBeginCurve=yes
  9635. else
  9636. ac_cv_lib_GLU_gluBeginCurve=no
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. LIBS=$ac_check_lib_save_LIBS
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
  9642. $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; }
  9643. if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then :
  9644. OPENGLULIB="$OPENGLULIB -lGLU "
  9645. else
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5
  9647. $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; }
  9648. ac_check_lib_save_LIBS=$LIBS
  9649. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  9650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9651. /* end confdefs.h. */
  9652. /* Override any GCC internal prototype to avoid an error.
  9653. Use char because int might match the return type of a GCC
  9654. builtin and then its argument prototype would still apply. */
  9655. #ifdef __cplusplus
  9656. extern "C"
  9657. #endif
  9658. char gluBeginCurve ();
  9659. int
  9660. main ()
  9661. {
  9662. return gluBeginCurve ();
  9663. ;
  9664. return 0;
  9665. }
  9666. _ACEOF
  9667. if ac_fn_c_try_link "$LINENO"; then :
  9668. ac_cv_lib_GLU_gluBeginCurve=yes
  9669. else
  9670. ac_cv_lib_GLU_gluBeginCurve=no
  9671. fi
  9672. rm -f core conftest.err conftest.$ac_objext \
  9673. conftest$ac_exeext conftest.$ac_ext
  9674. LIBS=$ac_check_lib_save_LIBS
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5
  9676. $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; }
  9677. if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then :
  9678. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  9679. else
  9680. LDFLAGS=${ac_save_ldflags}
  9681. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9682. fi
  9683. fi
  9684. LDFLAGS=${ac_save_ldflags}
  9685. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  9686. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  9687. ac_save_libs="$LIBS"
  9688. ac_save_ldflags="$LDFLAGS"
  9689. LIBS=" $OPENGLLIB $LIBS"
  9690. LDFLAGS=" $LDFLAGS"
  9691. ac_fn_c_check_func "$LINENO" "glXCreatePbuffer" "ac_cv_func_glXCreatePbuffer"
  9692. if test "x$ac_cv_func_glXCreatePbuffer" = xyes; then :
  9693. $as_echo "#define HAVE_PBUFFERS 1" >>confdefs.h
  9694. else
  9695. as_fn_error $? "*** Unable to locate glXCreatePbuffer." "$LINENO" 5
  9696. fi
  9697. LIBS=${ac_save_libs}
  9698. LDFLAGS=${ac_save_ldflags}
  9699. ac_save_libs="$LIBS"
  9700. ac_save_ldflags="$LDFLAGS"
  9701. LIBS=" $OPENGLLIB $LIBS"
  9702. LDFLAGS=" $LDFLAGS"
  9703. ac_fn_c_check_func "$LINENO" "glXCreateGLXPixmap" "ac_cv_func_glXCreateGLXPixmap"
  9704. if test "x$ac_cv_func_glXCreateGLXPixmap" = xyes; then :
  9705. $as_echo "#define HAVE_PIXMAPS 1" >>confdefs.h
  9706. else
  9707. as_fn_error $? "*** Unable to locate glXCreateGLXPixmap." "$LINENO" 5
  9708. fi
  9709. LIBS=${ac_save_libs}
  9710. LDFLAGS=${ac_save_ldflags}
  9711. $as_echo "#define OPENGL_X11 1" >>confdefs.h
  9712. fi # $OPENGL_X11
  9713. if test "$OPENGL_AQUA" = 1 ; then
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL framework" >&5
  9715. $as_echo_n "checking for location of OpenGL framework... " >&6; }
  9716. case "$with_opengl_framework" in
  9717. y | ye | yes | n | no)
  9718. as_fn_error $? "*** You must supply a directory to --with-opengl-framework." "$LINENO" 5
  9719. ;;
  9720. esac
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_framework" >&5
  9722. $as_echo "$with_opengl_framework" >&6; }
  9723. if test -n "$with_opengl_framework"; then
  9724. if test -d $with_opengl_framework; then
  9725. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  9726. else
  9727. as_fn_error $? "*** OpenGL framework directory $dir does not exist." "$LINENO" 5
  9728. fi
  9729. fi
  9730. ac_save_cppflags="$CPPFLAGS"
  9731. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  9732. for ac_header in OpenGL/gl.h OpenGL/glu.h
  9733. do :
  9734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9735. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9736. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9737. cat >>confdefs.h <<_ACEOF
  9738. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9739. _ACEOF
  9740. else
  9741. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9742. fi
  9743. done
  9744. CPPFLAGS=$ac_save_cppflags
  9745. ac_save_libs="$LIBS"
  9746. ac_save_ldflags="$LDFLAGS"
  9747. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  9748. LDFLAGS="$OPENGLPATH $LDFLAGS"
  9749. ac_fn_c_check_func "$LINENO" "glBegin" "ac_cv_func_glBegin"
  9750. if test "x$ac_cv_func_glBegin" = xyes; then :
  9751. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  9752. else
  9753. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9754. fi
  9755. LIBS=${ac_save_libs}
  9756. LDFLAGS=${ac_save_ldflags}
  9757. ac_save_libs="$LIBS"
  9758. ac_save_ldflags="$LDFLAGS"
  9759. LIBS=" $OPENGLLIB $LIBS"
  9760. LDFLAGS="$OPENGLPATH $LDFLAGS"
  9761. ac_fn_c_check_func "$LINENO" "gluBeginCurve" "ac_cv_func_gluBeginCurve"
  9762. if test "x$ac_cv_func_gluBeginCurve" = xyes; then :
  9763. OPENGLLIB="$OPENGLLIB "
  9764. else
  9765. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9766. fi
  9767. LIBS=${ac_save_libs}
  9768. LDFLAGS=${ac_save_ldflags}
  9769. OPENGLINC="$OPENGLPATH"
  9770. OPENGLLIBPATH="$OPENGLPATH"
  9771. $as_echo "#define OPENGL_AQUA 1" >>confdefs.h
  9772. fi # $OPENGL_AQUA
  9773. if test "$OPENGL_WINDOWS" = 1 ; then
  9774. # With OpenGL includes directory
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL includes" >&5
  9776. $as_echo_n "checking for location of OpenGL includes... " >&6; }
  9777. case "$with_opengl_includes" in
  9778. y | ye | yes | n | no)
  9779. as_fn_error $? "*** You must supply a directory to --with-opengl-includes." "$LINENO" 5
  9780. ;;
  9781. esac
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_includes" >&5
  9783. $as_echo "$with_opengl_includes" >&6; }
  9784. if test -n "$with_opengl_includes" ; then
  9785. for dir in $with_opengl_includes; do
  9786. if test -d "$dir"; then
  9787. OPENGLINC="$OPENGLINC -I$dir"
  9788. else
  9789. as_fn_error $? "*** OpenGL includes directory $dir does not exist." "$LINENO" 5
  9790. fi
  9791. done
  9792. fi
  9793. ac_save_cppflags="$CPPFLAGS"
  9794. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  9795. for ac_header in GL/gl.h GL/glu.h
  9796. do :
  9797. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9798. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9799. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9800. cat >>confdefs.h <<_ACEOF
  9801. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9802. _ACEOF
  9803. else
  9804. as_fn_error $? "*** Unable to locate OpenGL includes." "$LINENO" 5
  9805. fi
  9806. done
  9807. CPPFLAGS=$ac_save_cppflags
  9808. # With OpenGL library directory
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenGL library" >&5
  9810. $as_echo_n "checking for location of OpenGL library... " >&6; }
  9811. case "$with_opengl_libs" in
  9812. y | ye | yes | n | no)
  9813. as_fn_error $? "*** You must supply a directory to --with-opengl-libs." "$LINENO" 5
  9814. ;;
  9815. esac
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl_libs" >&5
  9817. $as_echo "$with_opengl_libs" >&6; }
  9818. if test -n "$with_opengl_libs"; then
  9819. for dir in $with_opengl_libs; do
  9820. if test -d "$dir"; then
  9821. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  9822. else
  9823. as_fn_error $? "*** OpenGL library directory $dir does not exist." "$LINENO" 5
  9824. fi
  9825. done
  9826. fi
  9827. ac_save_cflags="$CFLAGS"
  9828. CFLAGS="$CFLAGS $OPENGLINC"
  9829. ac_save_ldflags="$LDFLAGS"
  9830. ac_save_libs="$LIBS"
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
  9832. $as_echo_n "checking for OpenGL library... " >&6; }
  9833. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9834. LIBS="-lopengl32 "
  9835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9836. /* end confdefs.h. */
  9837. #include <GL/gl.h>
  9838. int
  9839. main ()
  9840. {
  9841. glEnd();
  9842. ;
  9843. return 0;
  9844. }
  9845. _ACEOF
  9846. if ac_fn_c_try_link "$LINENO"; then :
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  9848. $as_echo "found" >&6; }
  9849. OPENGLLIB="$OPENGLLIB -lopengl32 "
  9850. else
  9851. as_fn_error $? "*** Unable to locate OpenGL library." "$LINENO" 5
  9852. fi
  9853. rm -f core conftest.err conftest.$ac_objext \
  9854. conftest$ac_exeext conftest.$ac_ext
  9855. LIBS=${ac_save_libs}
  9856. LDFLAGS=${ac_save_ldflags}
  9857. ac_save_ldflags="$LDFLAGS"
  9858. ac_save_libs="$LIBS"
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU library" >&5
  9860. $as_echo_n "checking for GLU library... " >&6; }
  9861. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  9862. LIBS="-lglu32 $OPENGLLIB "
  9863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9864. /* end confdefs.h. */
  9865. #include <GL/glu.h>
  9866. int
  9867. main ()
  9868. {
  9869. gluNewQuadric();
  9870. ;
  9871. return 0;
  9872. }
  9873. _ACEOF
  9874. if ac_fn_c_try_link "$LINENO"; then :
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  9876. $as_echo "found" >&6; }
  9877. OPENGLULIB="$OPENGLULIB -lglu32 "
  9878. else
  9879. as_fn_error $? "*** Unable to locate GLU library." "$LINENO" 5
  9880. fi
  9881. rm -f core conftest.err conftest.$ac_objext \
  9882. conftest$ac_exeext conftest.$ac_ext
  9883. LIBS=${ac_save_libs}
  9884. LDFLAGS=${ac_save_ldflags}
  9885. CFLAGS="${ac_save_cflags}"
  9886. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  9887. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  9888. $as_echo "#define OPENGL_WINDOWS 1" >>confdefs.h
  9889. fi # $OPENGL_WINDOWS
  9890. fi # $USE_OPENGL
  9891. # Done checking OpenGL
  9892. # Enable ODBC option
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ODBC" >&5
  9894. $as_echo_n "checking whether to use ODBC... " >&6; }
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_odbc\"" >&5
  9896. $as_echo "\"$with_odbc\"" >&6; }
  9897. case "$with_odbc" in
  9898. "no") USE_ODBC= ;;
  9899. "yes") USE_ODBC="1" ;;
  9900. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  9901. esac
  9902. ODBCINC=
  9903. ODBCLIB=
  9904. if test -n "$USE_ODBC"; then
  9905. # With ODBC includes directory
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ODBC includes" >&5
  9907. $as_echo_n "checking for location of ODBC includes... " >&6; }
  9908. case "$with_odbc_includes" in
  9909. y | ye | yes | n | no)
  9910. as_fn_error $? "*** You must supply a directory to --with-odbc-includes." "$LINENO" 5
  9911. ;;
  9912. esac
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_odbc_includes" >&5
  9914. $as_echo "$with_odbc_includes" >&6; }
  9915. if test -n "$with_odbc_includes" ; then
  9916. for dir in $with_odbc_includes; do
  9917. if test -d "$dir"; then
  9918. ODBCINC="$ODBCINC -I$dir"
  9919. else
  9920. as_fn_error $? "*** ODBC includes directory $dir does not exist." "$LINENO" 5
  9921. fi
  9922. done
  9923. fi
  9924. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  9925. if test "x$ac_cv_header_windows_h" = xyes; then :
  9926. $as_echo "#define HAVE_WINDOWS_H 1" >>confdefs.h
  9927. fi
  9928. ac_save_cppflags="$CPPFLAGS"
  9929. CPPFLAGS="$ODBCINC $CPPFLAGS"
  9930. ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "#if defined(HAVE_WINDOWS_H)
  9931. # include <windows.h>
  9932. #endif
  9933. "
  9934. if test "x$ac_cv_header_sql_h" = xyes; then :
  9935. $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
  9936. else
  9937. as_fn_error $? "*** Unable to locate <sql.h>." "$LINENO" 5
  9938. fi
  9939. CPPFLAGS=$ac_save_cppflags
  9940. # With ODBC library directory
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ODBC library" >&5
  9942. $as_echo_n "checking for location of ODBC library... " >&6; }
  9943. case "$with_odbc_libs" in
  9944. y | ye | yes | n | no)
  9945. as_fn_error $? "*** You must supply a directory to --with-odbc-libs." "$LINENO" 5
  9946. ;;
  9947. esac
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_odbc_libs" >&5
  9949. $as_echo "$with_odbc_libs" >&6; }
  9950. if test -n "$with_odbc_libs"; then
  9951. for dir in $with_odbc_libs; do
  9952. if test -d "$dir"; then
  9953. ODBCLIB="$ODBCLIB -L$dir"
  9954. else
  9955. as_fn_error $? "*** ODBC library directory $dir does not exist." "$LINENO" 5
  9956. fi
  9957. done
  9958. fi
  9959. ac_save_ldflags="$LDFLAGS"
  9960. LDFLAGS="$ODBCLIB $LDFLAGS"
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
  9962. $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
  9963. ac_check_lib_save_LIBS=$LIBS
  9964. LIBS="-lodbc $ICONVLIB $LIBS"
  9965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9966. /* end confdefs.h. */
  9967. /* Override any GCC internal prototype to avoid an error.
  9968. Use char because int might match the return type of a GCC
  9969. builtin and then its argument prototype would still apply. */
  9970. #ifdef __cplusplus
  9971. extern "C"
  9972. #endif
  9973. char SQLConnect ();
  9974. int
  9975. main ()
  9976. {
  9977. return SQLConnect ();
  9978. ;
  9979. return 0;
  9980. }
  9981. _ACEOF
  9982. if ac_fn_c_try_link "$LINENO"; then :
  9983. ac_cv_lib_odbc_SQLConnect=yes
  9984. else
  9985. ac_cv_lib_odbc_SQLConnect=no
  9986. fi
  9987. rm -f core conftest.err conftest.$ac_objext \
  9988. conftest$ac_exeext conftest.$ac_ext
  9989. LIBS=$ac_check_lib_save_LIBS
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
  9991. $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
  9992. if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
  9993. ODBCLIB="$ODBCLIB -lodbc "
  9994. else
  9995. LDFLAGS=${ac_save_ldflags}
  9996. ac_save_ldflags="$LDFLAGS"
  9997. LDFLAGS="$ODBCLIB $LDFLAGS"
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
  9999. $as_echo_n "checking for SQLConnect in -liodbc... " >&6; }
  10000. ac_check_lib_save_LIBS=$LIBS
  10001. LIBS="-liodbc $LIBS"
  10002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10003. /* end confdefs.h. */
  10004. /* Override any GCC internal prototype to avoid an error.
  10005. Use char because int might match the return type of a GCC
  10006. builtin and then its argument prototype would still apply. */
  10007. #ifdef __cplusplus
  10008. extern "C"
  10009. #endif
  10010. char SQLConnect ();
  10011. int
  10012. main ()
  10013. {
  10014. return SQLConnect ();
  10015. ;
  10016. return 0;
  10017. }
  10018. _ACEOF
  10019. if ac_fn_c_try_link "$LINENO"; then :
  10020. ac_cv_lib_iodbc_SQLConnect=yes
  10021. else
  10022. ac_cv_lib_iodbc_SQLConnect=no
  10023. fi
  10024. rm -f core conftest.err conftest.$ac_objext \
  10025. conftest$ac_exeext conftest.$ac_ext
  10026. LIBS=$ac_check_lib_save_LIBS
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
  10028. $as_echo "$ac_cv_lib_iodbc_SQLConnect" >&6; }
  10029. if test "x$ac_cv_lib_iodbc_SQLConnect" = xyes; then :
  10030. ODBCLIB="$ODBCLIB -liodbc "
  10031. else
  10032. LDFLAGS=${ac_save_ldflags}
  10033. ac_save_cflags="$CFLAGS"
  10034. CFLAGS="$CFLAGS $ODBCINC"
  10035. ac_save_ldflags="$LDFLAGS"
  10036. ac_save_libs="$LIBS"
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC library" >&5
  10038. $as_echo_n "checking for ODBC library... " >&6; }
  10039. LDFLAGS="$ODBCLIB $LDFLAGS"
  10040. LIBS="-lodbc32 "
  10041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10042. /* end confdefs.h. */
  10043. #include <windows.h>
  10044. #include <sql.h>
  10045. int
  10046. main ()
  10047. {
  10048. SQLAllocEnv((SQLHENV *)0);
  10049. ;
  10050. return 0;
  10051. }
  10052. _ACEOF
  10053. if ac_fn_c_try_link "$LINENO"; then :
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  10055. $as_echo "found" >&6; }
  10056. ODBCLIB="$ODBCLIB -lodbc32 "
  10057. else
  10058. as_fn_error $? "*** Unable to locate ODBC library." "$LINENO" 5
  10059. fi
  10060. rm -f core conftest.err conftest.$ac_objext \
  10061. conftest$ac_exeext conftest.$ac_ext
  10062. LIBS=${ac_save_libs}
  10063. LDFLAGS=${ac_save_ldflags}
  10064. CFLAGS="${ac_save_cflags}"
  10065. fi
  10066. LDFLAGS=${ac_save_ldflags}
  10067. fi
  10068. LDFLAGS=${ac_save_ldflags}
  10069. fi # $USE_ODBC
  10070. # Done checking ODBC
  10071. # Enable FFTW option
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FFTW" >&5
  10073. $as_echo_n "checking whether to use FFTW... " >&6; }
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_fftw\"" >&5
  10075. $as_echo "\"$with_fftw\"" >&6; }
  10076. case "$with_fftw" in
  10077. "no") USE_FFTW= ;;
  10078. "yes") USE_FFTW="1" ;;
  10079. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10080. esac
  10081. FFTWINC=
  10082. FFTWLIB=
  10083. if test -n "$USE_FFTW"; then
  10084. # With FFTW includes directory
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FFTW includes" >&5
  10086. $as_echo_n "checking for location of FFTW includes... " >&6; }
  10087. case "$with_fftw_includes" in
  10088. y | ye | yes | n | no)
  10089. as_fn_error $? "*** You must supply a directory to --with-fftw-includes." "$LINENO" 5
  10090. ;;
  10091. esac
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_fftw_includes" >&5
  10093. $as_echo "$with_fftw_includes" >&6; }
  10094. if test -n "$with_fftw_includes" ; then
  10095. for dir in $with_fftw_includes; do
  10096. if test -d "$dir"; then
  10097. FFTWINC="$FFTWINC -I$dir"
  10098. else
  10099. as_fn_error $? "*** FFTW includes directory $dir does not exist." "$LINENO" 5
  10100. fi
  10101. done
  10102. fi
  10103. ac_save_cppflags="$CPPFLAGS"
  10104. CPPFLAGS="$FFTWINC $CPPFLAGS"
  10105. for ac_header in fftw3.h
  10106. do :
  10107. ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
  10108. if test "x$ac_cv_header_fftw3_h" = xyes; then :
  10109. cat >>confdefs.h <<_ACEOF
  10110. #define HAVE_FFTW3_H 1
  10111. _ACEOF
  10112. else
  10113. ac_save_cppflags="$CPPFLAGS"
  10114. CPPFLAGS=" $CPPFLAGS"
  10115. for ac_header in fftw.h
  10116. do :
  10117. ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
  10118. if test "x$ac_cv_header_fftw_h" = xyes; then :
  10119. cat >>confdefs.h <<_ACEOF
  10120. #define HAVE_FFTW_H 1
  10121. _ACEOF
  10122. else
  10123. ac_save_cppflags="$CPPFLAGS"
  10124. CPPFLAGS=" $CPPFLAGS"
  10125. for ac_header in dfftw.h
  10126. do :
  10127. ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
  10128. if test "x$ac_cv_header_dfftw_h" = xyes; then :
  10129. cat >>confdefs.h <<_ACEOF
  10130. #define HAVE_DFFTW_H 1
  10131. _ACEOF
  10132. else
  10133. as_fn_error $? "*** Unable to locate FFTW includes." "$LINENO" 5
  10134. fi
  10135. done
  10136. CPPFLAGS=$ac_save_cppflags
  10137. fi
  10138. done
  10139. CPPFLAGS=$ac_save_cppflags
  10140. fi
  10141. done
  10142. CPPFLAGS=$ac_save_cppflags
  10143. # With FFTW library directory
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FFTW library" >&5
  10145. $as_echo_n "checking for location of FFTW library... " >&6; }
  10146. case "$with_fftw_libs" in
  10147. y | ye | yes | n | no)
  10148. as_fn_error $? "*** You must supply a directory to --with-fftw-libs." "$LINENO" 5
  10149. ;;
  10150. esac
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_fftw_libs" >&5
  10152. $as_echo "$with_fftw_libs" >&6; }
  10153. if test -n "$with_fftw_libs"; then
  10154. for dir in $with_fftw_libs; do
  10155. if test -d "$dir"; then
  10156. FFTWLIB="$FFTWLIB -L$dir"
  10157. else
  10158. as_fn_error $? "*** FFTW library directory $dir does not exist." "$LINENO" 5
  10159. fi
  10160. done
  10161. fi
  10162. ac_save_ldflags="$LDFLAGS"
  10163. LDFLAGS="$FFTWLIB $LDFLAGS"
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
  10165. $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
  10166. ac_check_lib_save_LIBS=$LIBS
  10167. LIBS="-lfftw3 $MATHLIB $LIBS"
  10168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10169. /* end confdefs.h. */
  10170. /* Override any GCC internal prototype to avoid an error.
  10171. Use char because int might match the return type of a GCC
  10172. builtin and then its argument prototype would still apply. */
  10173. #ifdef __cplusplus
  10174. extern "C"
  10175. #endif
  10176. char fftw_execute ();
  10177. int
  10178. main ()
  10179. {
  10180. return fftw_execute ();
  10181. ;
  10182. return 0;
  10183. }
  10184. _ACEOF
  10185. if ac_fn_c_try_link "$LINENO"; then :
  10186. ac_cv_lib_fftw3_fftw_execute=yes
  10187. else
  10188. ac_cv_lib_fftw3_fftw_execute=no
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext \
  10191. conftest$ac_exeext conftest.$ac_ext
  10192. LIBS=$ac_check_lib_save_LIBS
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
  10194. $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
  10195. if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
  10196. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  10197. else
  10198. LDFLAGS=${ac_save_ldflags}
  10199. ac_save_ldflags="$LDFLAGS"
  10200. LDFLAGS="$FFTWLIB $LDFLAGS"
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
  10202. $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
  10203. ac_check_lib_save_LIBS=$LIBS
  10204. LIBS="-lfftw $MATHLIB $LIBS"
  10205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10206. /* end confdefs.h. */
  10207. /* Override any GCC internal prototype to avoid an error.
  10208. Use char because int might match the return type of a GCC
  10209. builtin and then its argument prototype would still apply. */
  10210. #ifdef __cplusplus
  10211. extern "C"
  10212. #endif
  10213. char fftwnd_one ();
  10214. int
  10215. main ()
  10216. {
  10217. return fftwnd_one ();
  10218. ;
  10219. return 0;
  10220. }
  10221. _ACEOF
  10222. if ac_fn_c_try_link "$LINENO"; then :
  10223. ac_cv_lib_fftw_fftwnd_one=yes
  10224. else
  10225. ac_cv_lib_fftw_fftwnd_one=no
  10226. fi
  10227. rm -f core conftest.err conftest.$ac_objext \
  10228. conftest$ac_exeext conftest.$ac_ext
  10229. LIBS=$ac_check_lib_save_LIBS
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
  10231. $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
  10232. if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
  10233. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  10234. else
  10235. LDFLAGS=${ac_save_ldflags}
  10236. ac_save_ldflags="$LDFLAGS"
  10237. LDFLAGS="$FFTWLIB $LDFLAGS"
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
  10239. $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
  10240. ac_check_lib_save_LIBS=$LIBS
  10241. LIBS="-ldfftw $MATHLIB $LIBS"
  10242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10243. /* end confdefs.h. */
  10244. /* Override any GCC internal prototype to avoid an error.
  10245. Use char because int might match the return type of a GCC
  10246. builtin and then its argument prototype would still apply. */
  10247. #ifdef __cplusplus
  10248. extern "C"
  10249. #endif
  10250. char fftwnd_one ();
  10251. int
  10252. main ()
  10253. {
  10254. return fftwnd_one ();
  10255. ;
  10256. return 0;
  10257. }
  10258. _ACEOF
  10259. if ac_fn_c_try_link "$LINENO"; then :
  10260. ac_cv_lib_dfftw_fftwnd_one=yes
  10261. else
  10262. ac_cv_lib_dfftw_fftwnd_one=no
  10263. fi
  10264. rm -f core conftest.err conftest.$ac_objext \
  10265. conftest$ac_exeext conftest.$ac_ext
  10266. LIBS=$ac_check_lib_save_LIBS
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
  10268. $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
  10269. if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
  10270. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  10271. else
  10272. LDFLAGS=${ac_save_ldflags}
  10273. as_fn_error $? "*** Unable to locate FFTW library." "$LINENO" 5
  10274. fi
  10275. LDFLAGS=${ac_save_ldflags}
  10276. fi
  10277. LDFLAGS=${ac_save_ldflags}
  10278. fi
  10279. LDFLAGS=${ac_save_ldflags}
  10280. fi # $USE_FFTW
  10281. # Done checking FFTW
  10282. # Enable BLAS option
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use BLAS" >&5
  10284. $as_echo_n "checking whether to use BLAS... " >&6; }
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_blas\"" >&5
  10286. $as_echo "\"$with_blas\"" >&6; }
  10287. case "$with_blas" in
  10288. "no") USE_BLAS= ;;
  10289. "yes") USE_BLAS="1" ;;
  10290. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10291. esac
  10292. BLASLIB=
  10293. BLASINC=
  10294. if test -n "$USE_BLAS"; then
  10295. # With BLAS includes directory
  10296. # BLAS doesn't have includes (FORTRAN library)
  10297. # With BLAS library directory
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of BLAS includes" >&5
  10299. $as_echo_n "checking for location of BLAS includes... " >&6; }
  10300. case "$with_blas_includes" in
  10301. y | ye | yes | n | no)
  10302. as_fn_error $? "*** You must supply a directory to --with-blas-includes." "$LINENO" 5
  10303. ;;
  10304. esac
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_blas_includes" >&5
  10306. $as_echo "$with_blas_includes" >&6; }
  10307. if test -n "$with_blas_includes" ; then
  10308. for dir in $with_blas_includes; do
  10309. if test -d "$dir"; then
  10310. BLASINC="$BLASINC -I$dir"
  10311. else
  10312. as_fn_error $? "*** BLAS includes directory $dir does not exist." "$LINENO" 5
  10313. fi
  10314. done
  10315. fi
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of BLAS library" >&5
  10317. $as_echo_n "checking for location of BLAS library... " >&6; }
  10318. case "$with_blas_libs" in
  10319. y | ye | yes | n | no)
  10320. as_fn_error $? "*** You must supply a directory to --with-blas-libs." "$LINENO" 5
  10321. ;;
  10322. esac
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_blas_libs" >&5
  10324. $as_echo "$with_blas_libs" >&6; }
  10325. if test -n "$with_blas_libs"; then
  10326. for dir in $with_blas_libs; do
  10327. if test -d "$dir"; then
  10328. BLASLIB="$BLASLIB -L$dir"
  10329. else
  10330. as_fn_error $? "*** BLAS library directory $dir does not exist." "$LINENO" 5
  10331. fi
  10332. done
  10333. fi
  10334. # See if cblas.h exists (CBLAS,ATLAS,others)
  10335. save_CPPFLAGS="$CPPFLAGS"
  10336. CPPFLAGS="$BLASINC $CPPFLAGS"
  10337. for ac_header in cblas.h
  10338. do :
  10339. ac_fn_c_check_header_mongrel "$LINENO" "cblas.h" "ac_cv_header_cblas_h" "$ac_includes_default"
  10340. if test "x$ac_cv_header_cblas_h" = xyes; then :
  10341. cat >>confdefs.h <<_ACEOF
  10342. #define HAVE_CBLAS_H 1
  10343. _ACEOF
  10344. fi
  10345. done
  10346. CPPFLAGS="$save_CPPFLAGS"
  10347. ac_save_ldflags="$LDFLAGS"
  10348. LDFLAGS="$BLASLIB $LDFLAGS"
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnrm2_ in -lblas" >&5
  10350. $as_echo_n "checking for dnrm2_ in -lblas... " >&6; }
  10351. ac_check_lib_save_LIBS=$LIBS
  10352. LIBS="-lblas $MATHLIB $LIBS"
  10353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10354. /* end confdefs.h. */
  10355. /* Override any GCC internal prototype to avoid an error.
  10356. Use char because int might match the return type of a GCC
  10357. builtin and then its argument prototype would still apply. */
  10358. #ifdef __cplusplus
  10359. extern "C"
  10360. #endif
  10361. char dnrm2_ ();
  10362. int
  10363. main ()
  10364. {
  10365. return dnrm2_ ();
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. if ac_fn_c_try_link "$LINENO"; then :
  10371. ac_cv_lib_blas_dnrm2_=yes
  10372. else
  10373. ac_cv_lib_blas_dnrm2_=no
  10374. fi
  10375. rm -f core conftest.err conftest.$ac_objext \
  10376. conftest$ac_exeext conftest.$ac_ext
  10377. LIBS=$ac_check_lib_save_LIBS
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_dnrm2_" >&5
  10379. $as_echo "$ac_cv_lib_blas_dnrm2_" >&6; }
  10380. if test "x$ac_cv_lib_blas_dnrm2_" = xyes; then :
  10381. BLASLIB="$BLASLIB -lblas "
  10382. else
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnrm2_ in -lblas" >&5
  10384. $as_echo_n "checking for dnrm2_ in -lblas... " >&6; }
  10385. ac_check_lib_save_LIBS=$LIBS
  10386. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  10387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10388. /* end confdefs.h. */
  10389. /* Override any GCC internal prototype to avoid an error.
  10390. Use char because int might match the return type of a GCC
  10391. builtin and then its argument prototype would still apply. */
  10392. #ifdef __cplusplus
  10393. extern "C"
  10394. #endif
  10395. char dnrm2_ ();
  10396. int
  10397. main ()
  10398. {
  10399. return dnrm2_ ();
  10400. ;
  10401. return 0;
  10402. }
  10403. _ACEOF
  10404. if ac_fn_c_try_link "$LINENO"; then :
  10405. ac_cv_lib_blas_dnrm2_=yes
  10406. else
  10407. ac_cv_lib_blas_dnrm2_=no
  10408. fi
  10409. rm -f core conftest.err conftest.$ac_objext \
  10410. conftest$ac_exeext conftest.$ac_ext
  10411. LIBS=$ac_check_lib_save_LIBS
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_dnrm2_" >&5
  10413. $as_echo "$ac_cv_lib_blas_dnrm2_" >&6; }
  10414. if test "x$ac_cv_lib_blas_dnrm2_" = xyes; then :
  10415. BLASLIB="$BLASLIB -lblas -lg2c"
  10416. else
  10417. LDFLAGS=${ac_save_ldflags}
  10418. as_fn_error $? "*** Unable to locate BLAS library." "$LINENO" 5
  10419. fi
  10420. fi
  10421. LDFLAGS=${ac_save_ldflags}
  10422. blas_ok=no
  10423. # Check for ATLAS
  10424. save_LDFLAGS="$LDFLAGS"
  10425. LDFLAGS="$BLASLIB $LDFLAGS"
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
  10427. $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
  10428. ac_check_lib_save_LIBS=$LIBS
  10429. LIBS="-latlas $LIBS"
  10430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10431. /* end confdefs.h. */
  10432. /* Override any GCC internal prototype to avoid an error.
  10433. Use char because int might match the return type of a GCC
  10434. builtin and then its argument prototype would still apply. */
  10435. #ifdef __cplusplus
  10436. extern "C"
  10437. #endif
  10438. char ATL_xerbla ();
  10439. int
  10440. main ()
  10441. {
  10442. return ATL_xerbla ();
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_c_try_link "$LINENO"; then :
  10448. ac_cv_lib_atlas_ATL_xerbla=yes
  10449. else
  10450. ac_cv_lib_atlas_ATL_xerbla=no
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext \
  10453. conftest$ac_exeext conftest.$ac_ext
  10454. LIBS=$ac_check_lib_save_LIBS
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
  10456. $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
  10457. if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then :
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lf77blas" >&5
  10459. $as_echo_n "checking for sgemm_ in -lf77blas... " >&6; }
  10460. ac_check_lib_save_LIBS=$LIBS
  10461. LIBS="-lf77blas -latlas $LIBS"
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. /* Override any GCC internal prototype to avoid an error.
  10465. Use char because int might match the return type of a GCC
  10466. builtin and then its argument prototype would still apply. */
  10467. #ifdef __cplusplus
  10468. extern "C"
  10469. #endif
  10470. char sgemm_ ();
  10471. int
  10472. main ()
  10473. {
  10474. return sgemm_ ();
  10475. ;
  10476. return 0;
  10477. }
  10478. _ACEOF
  10479. if ac_fn_c_try_link "$LINENO"; then :
  10480. ac_cv_lib_f77blas_sgemm_=yes
  10481. else
  10482. ac_cv_lib_f77blas_sgemm_=no
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext \
  10485. conftest$ac_exeext conftest.$ac_ext
  10486. LIBS=$ac_check_lib_save_LIBS
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_f77blas_sgemm_" >&5
  10488. $as_echo "$ac_cv_lib_f77blas_sgemm_" >&6; }
  10489. if test "x$ac_cv_lib_f77blas_sgemm_" = xyes; then :
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
  10491. $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
  10492. ac_check_lib_save_LIBS=$LIBS
  10493. LIBS="-lcblas -lf77blas -latlas $LIBS"
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. /* Override any GCC internal prototype to avoid an error.
  10497. Use char because int might match the return type of a GCC
  10498. builtin and then its argument prototype would still apply. */
  10499. #ifdef __cplusplus
  10500. extern "C"
  10501. #endif
  10502. char cblas_dgemm ();
  10503. int
  10504. main ()
  10505. {
  10506. return cblas_dgemm ();
  10507. ;
  10508. return 0;
  10509. }
  10510. _ACEOF
  10511. if ac_fn_c_try_link "$LINENO"; then :
  10512. ac_cv_lib_cblas_cblas_dgemm=yes
  10513. else
  10514. ac_cv_lib_cblas_cblas_dgemm=no
  10515. fi
  10516. rm -f core conftest.err conftest.$ac_objext \
  10517. conftest$ac_exeext conftest.$ac_ext
  10518. LIBS=$ac_check_lib_save_LIBS
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
  10520. $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
  10521. if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
  10522. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  10523. fi
  10524. fi
  10525. fi
  10526. LDFLAGS="$save_LDFLAGS"
  10527. # Do we have ATLAS?
  10528. if test $blas_ok = yes; then
  10529. $as_echo "#define HAVE_LIBATLAS 1" >>confdefs.h
  10530. fi
  10531. # BLAS in Apple vecLib framework? (Mac OS-X)
  10532. # not dependent on APP build
  10533. #if test -n "$MACOSX_APP"; then
  10534. if test $blas_ok = no; then
  10535. vlib_flags="-framework vecLib"
  10536. save_LIBS="$LIBS"
  10537. LIBS="$vlib_flags $LIBS"
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm in $vlib_flags" >&5
  10539. $as_echo_n "checking for sgemm in $vlib_flags... " >&6; }
  10540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10541. /* end confdefs.h. */
  10542. int
  10543. main ()
  10544. {
  10545. sgemm
  10546. ;
  10547. return 0;
  10548. }
  10549. _ACEOF
  10550. if ac_fn_c_try_link "$LINENO"; then :
  10551. blas_ok=yes; BLASLIB="$vlib_flags"
  10552. else
  10553. BLASLIB=""
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext \
  10556. conftest$ac_exeext conftest.$ac_ext
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5
  10558. $as_echo "$blas_ok" >&6; }
  10559. LIBS="$save_LIBS"
  10560. fi
  10561. #fi # $MACOSX_APP
  10562. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  10563. if test $blas_ok = no; then
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lblas" >&5
  10565. $as_echo_n "checking for sgemm_ in -lblas... " >&6; }
  10566. ac_check_lib_save_LIBS=$LIBS
  10567. LIBS="-lblas $LIBS"
  10568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10569. /* end confdefs.h. */
  10570. /* Override any GCC internal prototype to avoid an error.
  10571. Use char because int might match the return type of a GCC
  10572. builtin and then its argument prototype would still apply. */
  10573. #ifdef __cplusplus
  10574. extern "C"
  10575. #endif
  10576. char sgemm_ ();
  10577. int
  10578. main ()
  10579. {
  10580. return sgemm_ ();
  10581. ;
  10582. return 0;
  10583. }
  10584. _ACEOF
  10585. if ac_fn_c_try_link "$LINENO"; then :
  10586. ac_cv_lib_blas_sgemm_=yes
  10587. else
  10588. ac_cv_lib_blas_sgemm_=no
  10589. fi
  10590. rm -f core conftest.err conftest.$ac_objext \
  10591. conftest$ac_exeext conftest.$ac_ext
  10592. LIBS=$ac_check_lib_save_LIBS
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_sgemm_" >&5
  10594. $as_echo "$ac_cv_lib_blas_sgemm_" >&6; }
  10595. if test "x$ac_cv_lib_blas_sgemm_" = xyes; then :
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgemm_ in -ldgemm" >&5
  10597. $as_echo_n "checking for dgemm_ in -ldgemm... " >&6; }
  10598. ac_check_lib_save_LIBS=$LIBS
  10599. LIBS="-ldgemm -lblas $LIBS"
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. /* Override any GCC internal prototype to avoid an error.
  10603. Use char because int might match the return type of a GCC
  10604. builtin and then its argument prototype would still apply. */
  10605. #ifdef __cplusplus
  10606. extern "C"
  10607. #endif
  10608. char dgemm_ ();
  10609. int
  10610. main ()
  10611. {
  10612. return dgemm_ ();
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_c_try_link "$LINENO"; then :
  10618. ac_cv_lib_dgemm_dgemm_=yes
  10619. else
  10620. ac_cv_lib_dgemm_dgemm_=no
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext \
  10623. conftest$ac_exeext conftest.$ac_ext
  10624. LIBS=$ac_check_lib_save_LIBS
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_dgemm_" >&5
  10626. $as_echo "$ac_cv_lib_dgemm_dgemm_" >&6; }
  10627. if test "x$ac_cv_lib_dgemm_dgemm_" = xyes; then :
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lsgemm" >&5
  10629. $as_echo_n "checking for sgemm_ in -lsgemm... " >&6; }
  10630. ac_check_lib_save_LIBS=$LIBS
  10631. LIBS="-lsgemm -lblas $LIBS"
  10632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10633. /* end confdefs.h. */
  10634. /* Override any GCC internal prototype to avoid an error.
  10635. Use char because int might match the return type of a GCC
  10636. builtin and then its argument prototype would still apply. */
  10637. #ifdef __cplusplus
  10638. extern "C"
  10639. #endif
  10640. char sgemm_ ();
  10641. int
  10642. main ()
  10643. {
  10644. return sgemm_ ();
  10645. ;
  10646. return 0;
  10647. }
  10648. _ACEOF
  10649. if ac_fn_c_try_link "$LINENO"; then :
  10650. ac_cv_lib_sgemm_sgemm_=yes
  10651. else
  10652. ac_cv_lib_sgemm_sgemm_=no
  10653. fi
  10654. rm -f core conftest.err conftest.$ac_objext \
  10655. conftest$ac_exeext conftest.$ac_ext
  10656. LIBS=$ac_check_lib_save_LIBS
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgemm_sgemm_" >&5
  10658. $as_echo "$ac_cv_lib_sgemm_sgemm_" >&6; }
  10659. if test "x$ac_cv_lib_sgemm_sgemm_" = xyes; then :
  10660. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  10661. fi
  10662. fi
  10663. fi
  10664. fi
  10665. # BLAS in Sun Performance library?
  10666. if test $blas_ok = no; then
  10667. if test "x$GCC" != xyes; then # only works with Sun CC
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
  10669. $as_echo_n "checking for acosp in -lsunmath... " >&6; }
  10670. ac_check_lib_save_LIBS=$LIBS
  10671. LIBS="-lsunmath $LIBS"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. /* Override any GCC internal prototype to avoid an error.
  10675. Use char because int might match the return type of a GCC
  10676. builtin and then its argument prototype would still apply. */
  10677. #ifdef __cplusplus
  10678. extern "C"
  10679. #endif
  10680. char acosp ();
  10681. int
  10682. main ()
  10683. {
  10684. return acosp ();
  10685. ;
  10686. return 0;
  10687. }
  10688. _ACEOF
  10689. if ac_fn_c_try_link "$LINENO"; then :
  10690. ac_cv_lib_sunmath_acosp=yes
  10691. else
  10692. ac_cv_lib_sunmath_acosp=no
  10693. fi
  10694. rm -f core conftest.err conftest.$ac_objext \
  10695. conftest$ac_exeext conftest.$ac_ext
  10696. LIBS=$ac_check_lib_save_LIBS
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
  10698. $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
  10699. if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lsunperf" >&5
  10701. $as_echo_n "checking for sgemm_ in -lsunperf... " >&6; }
  10702. ac_check_lib_save_LIBS=$LIBS
  10703. LIBS="-lsunperf -lsunmath $LIBS"
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. /* Override any GCC internal prototype to avoid an error.
  10707. Use char because int might match the return type of a GCC
  10708. builtin and then its argument prototype would still apply. */
  10709. #ifdef __cplusplus
  10710. extern "C"
  10711. #endif
  10712. char sgemm_ ();
  10713. int
  10714. main ()
  10715. {
  10716. return sgemm_ ();
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_link "$LINENO"; then :
  10722. ac_cv_lib_sunperf_sgemm_=yes
  10723. else
  10724. ac_cv_lib_sunperf_sgemm_=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext \
  10727. conftest$ac_exeext conftest.$ac_ext
  10728. LIBS=$ac_check_lib_save_LIBS
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunperf_sgemm_" >&5
  10730. $as_echo "$ac_cv_lib_sunperf_sgemm_" >&6; }
  10731. if test "x$ac_cv_lib_sunperf_sgemm_" = xyes; then :
  10732. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  10733. fi
  10734. fi
  10735. fi
  10736. fi
  10737. # Generic BLAS library
  10738. if test $blas_ok = no; then
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lblas" >&5
  10740. $as_echo_n "checking for sgemm_ in -lblas... " >&6; }
  10741. ac_check_lib_save_LIBS=$LIBS
  10742. LIBS="-lblas $LIBS"
  10743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10744. /* end confdefs.h. */
  10745. /* Override any GCC internal prototype to avoid an error.
  10746. Use char because int might match the return type of a GCC
  10747. builtin and then its argument prototype would still apply. */
  10748. #ifdef __cplusplus
  10749. extern "C"
  10750. #endif
  10751. char sgemm_ ();
  10752. int
  10753. main ()
  10754. {
  10755. return sgemm_ ();
  10756. ;
  10757. return 0;
  10758. }
  10759. _ACEOF
  10760. if ac_fn_c_try_link "$LINENO"; then :
  10761. ac_cv_lib_blas_sgemm_=yes
  10762. else
  10763. ac_cv_lib_blas_sgemm_=no
  10764. fi
  10765. rm -f core conftest.err conftest.$ac_objext \
  10766. conftest$ac_exeext conftest.$ac_ext
  10767. LIBS=$ac_check_lib_save_LIBS
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_sgemm_" >&5
  10769. $as_echo "$ac_cv_lib_blas_sgemm_" >&6; }
  10770. if test "x$ac_cv_lib_blas_sgemm_" = xyes; then :
  10771. blas_ok=yes; BLASLIB="-lblas"
  10772. fi
  10773. fi
  10774. if test $blas_ok = yes; then
  10775. $as_echo "#define HAVE_LIBBLAS 1" >>confdefs.h
  10776. fi
  10777. fi # $USE_BLAS
  10778. # Done checking BLAS
  10779. # Enable LAPACK option
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use LAPACK" >&5
  10781. $as_echo_n "checking whether to use LAPACK... " >&6; }
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_lapack\"" >&5
  10783. $as_echo "\"$with_lapack\"" >&6; }
  10784. case "$with_lapack" in
  10785. "no") USE_LAPACK= ;;
  10786. "yes") USE_LAPACK="1" ;;
  10787. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10788. esac
  10789. LAPACKLIB=
  10790. LAPACKINC=
  10791. # LAPACK is useless without BLAS
  10792. if test -n "$USE_BLAS"; then
  10793. if test -n "$USE_LAPACK"; then
  10794. # With LAPACK includes directory
  10795. # LAPACK doesn't have includes (FORTRAN library)
  10796. # With LAPACK library directory
  10797. lapack_ok=no
  10798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of LAPACK includes" >&5
  10799. $as_echo_n "checking for location of LAPACK includes... " >&6; }
  10800. case "$with_lapack_includes" in
  10801. y | ye | yes | n | no)
  10802. as_fn_error $? "*** You must supply a directory to --with-lapack-includes." "$LINENO" 5
  10803. ;;
  10804. esac
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lapack_includes" >&5
  10806. $as_echo "$with_lapack_includes" >&6; }
  10807. if test -n "$with_lapack_includes" ; then
  10808. for dir in $with_lapack_includes; do
  10809. if test -d "$dir"; then
  10810. LAPACKINC="$LAPACKINC -I$dir"
  10811. else
  10812. as_fn_error $? "*** LAPACK includes directory $dir does not exist." "$LINENO" 5
  10813. fi
  10814. done
  10815. fi
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of LAPACK library" >&5
  10817. $as_echo_n "checking for location of LAPACK library... " >&6; }
  10818. case "$with_lapack_libs" in
  10819. y | ye | yes | n | no)
  10820. as_fn_error $? "*** You must supply a directory to --with-lapack-libs." "$LINENO" 5
  10821. ;;
  10822. esac
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lapack_libs" >&5
  10824. $as_echo "$with_lapack_libs" >&6; }
  10825. if test -n "$with_lapack_libs"; then
  10826. for dir in $with_lapack_libs; do
  10827. if test -d "$dir"; then
  10828. LAPACKLIB="$LAPACKLIB -L$dir"
  10829. else
  10830. as_fn_error $? "*** LAPACK library directory $dir does not exist." "$LINENO" 5
  10831. fi
  10832. done
  10833. fi
  10834. # See if clapack.h exists (ATLAS)
  10835. save_CPPFLAGS="$CPPFLAGS"
  10836. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  10837. for ac_header in clapack.h
  10838. do :
  10839. ac_fn_c_check_header_mongrel "$LINENO" "clapack.h" "ac_cv_header_clapack_h" "$ac_includes_default"
  10840. if test "x$ac_cv_header_clapack_h" = xyes; then :
  10841. cat >>confdefs.h <<_ACEOF
  10842. #define HAVE_CLAPACK_H 1
  10843. _ACEOF
  10844. fi
  10845. done
  10846. CPPFLAGS="$save_CPPFLAGS"
  10847. # LAPACK linked to by default?
  10848. if test lapack_ok=no; then
  10849. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  10850. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  10851. ac_fn_c_check_func "$LINENO" "dsegv_" "ac_cv_func_dsegv_"
  10852. if test "x$ac_cv_func_dsegv_" = xyes; then :
  10853. lapack_ok=yes
  10854. fi
  10855. LIBS="$save_LIBS"
  10856. LDFLAGS="$save_LDFLAGS"
  10857. fi
  10858. # Generic LAPACK library?
  10859. if test $lapack_ok = no; then
  10860. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  10861. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for desgv_ in -llapack" >&5
  10863. $as_echo_n "checking for desgv_ in -llapack... " >&6; }
  10864. ac_check_lib_save_LIBS=$LIBS
  10865. LIBS="-llapack $FLIBS $LIBS"
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. /* Override any GCC internal prototype to avoid an error.
  10869. Use char because int might match the return type of a GCC
  10870. builtin and then its argument prototype would still apply. */
  10871. #ifdef __cplusplus
  10872. extern "C"
  10873. #endif
  10874. char desgv_ ();
  10875. int
  10876. main ()
  10877. {
  10878. return desgv_ ();
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. if ac_fn_c_try_link "$LINENO"; then :
  10884. ac_cv_lib_lapack_desgv_=yes
  10885. else
  10886. ac_cv_lib_lapack_desgv_=no
  10887. fi
  10888. rm -f core conftest.err conftest.$ac_objext \
  10889. conftest$ac_exeext conftest.$ac_ext
  10890. LIBS=$ac_check_lib_save_LIBS
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_desgv_" >&5
  10892. $as_echo "$ac_cv_lib_lapack_desgv_" >&6; }
  10893. if test "x$ac_cv_lib_lapack_desgv_" = xyes; then :
  10894. lapack_ok=yes; LAPACKLIB="-llapack"
  10895. fi
  10896. LIBS="$save_LIBS"
  10897. LDFLAGS="$save_LDFLAGS"
  10898. fi
  10899. if test $lapack_ok = no; then
  10900. ac_save_ldflags="$LDFLAGS"
  10901. LDFLAGS="$LAPACKLIB $LDFLAGS"
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv_ in -llapack" >&5
  10903. $as_echo_n "checking for dgesv_ in -llapack... " >&6; }
  10904. ac_check_lib_save_LIBS=$LIBS
  10905. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. /* Override any GCC internal prototype to avoid an error.
  10909. Use char because int might match the return type of a GCC
  10910. builtin and then its argument prototype would still apply. */
  10911. #ifdef __cplusplus
  10912. extern "C"
  10913. #endif
  10914. char dgesv_ ();
  10915. int
  10916. main ()
  10917. {
  10918. return dgesv_ ();
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. if ac_fn_c_try_link "$LINENO"; then :
  10924. ac_cv_lib_lapack_dgesv_=yes
  10925. else
  10926. ac_cv_lib_lapack_dgesv_=no
  10927. fi
  10928. rm -f core conftest.err conftest.$ac_objext \
  10929. conftest$ac_exeext conftest.$ac_ext
  10930. LIBS=$ac_check_lib_save_LIBS
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv_" >&5
  10932. $as_echo "$ac_cv_lib_lapack_dgesv_" >&6; }
  10933. if test "x$ac_cv_lib_lapack_dgesv_" = xyes; then :
  10934. LAPACKLIB="$LAPACKLIB -llapack "
  10935. else
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv_ in -llapack" >&5
  10937. $as_echo_n "checking for dgesv_ in -llapack... " >&6; }
  10938. ac_check_lib_save_LIBS=$LIBS
  10939. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  10940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10941. /* end confdefs.h. */
  10942. /* Override any GCC internal prototype to avoid an error.
  10943. Use char because int might match the return type of a GCC
  10944. builtin and then its argument prototype would still apply. */
  10945. #ifdef __cplusplus
  10946. extern "C"
  10947. #endif
  10948. char dgesv_ ();
  10949. int
  10950. main ()
  10951. {
  10952. return dgesv_ ();
  10953. ;
  10954. return 0;
  10955. }
  10956. _ACEOF
  10957. if ac_fn_c_try_link "$LINENO"; then :
  10958. ac_cv_lib_lapack_dgesv_=yes
  10959. else
  10960. ac_cv_lib_lapack_dgesv_=no
  10961. fi
  10962. rm -f core conftest.err conftest.$ac_objext \
  10963. conftest$ac_exeext conftest.$ac_ext
  10964. LIBS=$ac_check_lib_save_LIBS
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv_" >&5
  10966. $as_echo "$ac_cv_lib_lapack_dgesv_" >&6; }
  10967. if test "x$ac_cv_lib_lapack_dgesv_" = xyes; then :
  10968. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  10969. else
  10970. LDFLAGS=${ac_save_ldflags}
  10971. as_fn_error $? "*** Unable to locate LAPACK library." "$LINENO" 5
  10972. fi
  10973. fi
  10974. LDFLAGS=${ac_save_ldflags}
  10975. fi
  10976. $as_echo "#define HAVE_LIBLAPACK 1" >>confdefs.h
  10977. fi # $USE_LAPACK
  10978. fi # $USE_BLAS
  10979. # Done checking LAPACK
  10980. # Enable Cairo display driver option
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Cairo" >&5
  10982. $as_echo_n "checking whether to use Cairo... " >&6; }
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_cairo\"" >&5
  10984. $as_echo "\"$with_cairo\"" >&6; }
  10985. case "$with_cairo" in
  10986. "no") USE_CAIRO= ;;
  10987. "yes") USE_CAIRO="1" ;;
  10988. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  10989. esac
  10990. CAIROINC=
  10991. CAIROLIB=
  10992. if test -n "$USE_CAIRO"; then
  10993. cairo="cairo"
  10994. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  10995. if test -n "$USE_X11"; then
  10996. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  10997. fi
  10998. for pkg in $pkgs ; do
  10999. if $PKG_CONFIG --exists $pkg ; then
  11000. cairo="$cairo $pkg"
  11001. fi
  11002. done
  11003. # With Cairo includes directory
  11004. #FIXME: somehow quote dirs with spaces in $cairo ?
  11005. CAIROINC=`$PKG_CONFIG --cflags $cairo`
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cairo includes" >&5
  11007. $as_echo_n "checking for location of cairo includes... " >&6; }
  11008. case "$with_cairo_includes" in
  11009. y | ye | yes | n | no)
  11010. as_fn_error $? "*** You must supply a directory to --with-cairo-includes." "$LINENO" 5
  11011. ;;
  11012. esac
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_includes" >&5
  11014. $as_echo "$with_cairo_includes" >&6; }
  11015. if test -n "$with_cairo_includes" ; then
  11016. for dir in $with_cairo_includes; do
  11017. if test -d "$dir"; then
  11018. CAIROINC="$CAIROINC -I$dir"
  11019. else
  11020. as_fn_error $? "*** cairo includes directory $dir does not exist." "$LINENO" 5
  11021. fi
  11022. done
  11023. fi
  11024. ac_save_cppflags="$CPPFLAGS"
  11025. CPPFLAGS="$CAIROINC $CPPFLAGS"
  11026. for ac_header in cairo.h
  11027. do :
  11028. ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
  11029. if test "x$ac_cv_header_cairo_h" = xyes; then :
  11030. cat >>confdefs.h <<_ACEOF
  11031. #define HAVE_CAIRO_H 1
  11032. _ACEOF
  11033. else
  11034. as_fn_error $? "*** Unable to locate Cairo includes." "$LINENO" 5
  11035. fi
  11036. done
  11037. CPPFLAGS=$ac_save_cppflags
  11038. # With Cairo library directory
  11039. CAIROLIB=`$PKG_CONFIG --libs $cairo`
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of cairo library" >&5
  11041. $as_echo_n "checking for location of cairo library... " >&6; }
  11042. case "$with_cairo_libs" in
  11043. y | ye | yes | n | no)
  11044. as_fn_error $? "*** You must supply a directory to --with-cairo-libs." "$LINENO" 5
  11045. ;;
  11046. esac
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_libs" >&5
  11048. $as_echo "$with_cairo_libs" >&6; }
  11049. if test -n "$with_cairo_libs"; then
  11050. for dir in $with_cairo_libs; do
  11051. if test -d "$dir"; then
  11052. CAIROLIB="$CAIROLIB -L$dir"
  11053. else
  11054. as_fn_error $? "*** cairo library directory $dir does not exist." "$LINENO" 5
  11055. fi
  11056. done
  11057. fi
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo linking flags" >&5
  11059. $as_echo_n "checking for cairo linking flags... " >&6; }
  11060. case "$with_cairo_ldflags" in
  11061. y | ye | yes | n | no)
  11062. as_fn_error $? "*** You must supply a directory to --with-cairo-ldflags." "$LINENO" 5
  11063. ;;
  11064. esac
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cairo_ldflags" >&5
  11066. $as_echo "$with_cairo_ldflags" >&6; }
  11067. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  11068. ac_save_libs="$LIBS"
  11069. ac_save_ldflags="$LDFLAGS"
  11070. LIBS=" $CAIROLIB $LIBS"
  11071. LDFLAGS=" $LDFLAGS"
  11072. ac_fn_c_check_func "$LINENO" "cairo_create" "ac_cv_func_cairo_create"
  11073. if test "x$ac_cv_func_cairo_create" = xyes; then :
  11074. :
  11075. else
  11076. as_fn_error $? "*** Unable to locate cairo_create." "$LINENO" 5
  11077. fi
  11078. LIBS=${ac_save_libs}
  11079. LDFLAGS=${ac_save_ldflags}
  11080. ac_save_libs="$LIBS"
  11081. ac_save_ldflags="$LDFLAGS"
  11082. LIBS=" $CAIROLIB $LIBS"
  11083. LDFLAGS=" $LDFLAGS"
  11084. ac_fn_c_check_func "$LINENO" "cairo_xlib_surface_create_with_xrender_format" "ac_cv_func_cairo_xlib_surface_create_with_xrender_format"
  11085. if test "x$ac_cv_func_cairo_xlib_surface_create_with_xrender_format" = xyes; then :
  11086. CAIRO_HAS_XRENDER=1
  11087. else
  11088. CAIRO_HAS_XRENDER=
  11089. fi
  11090. LIBS=${ac_save_libs}
  11091. LDFLAGS=${ac_save_ldflags}
  11092. ac_save_libs="$LIBS"
  11093. ac_save_ldflags="$LDFLAGS"
  11094. LIBS=" $CAIROLIB $LIBS"
  11095. LDFLAGS=" $LDFLAGS"
  11096. ac_fn_c_check_func "$LINENO" "cairo_xlib_surface_get_xrender_format" "ac_cv_func_cairo_xlib_surface_get_xrender_format"
  11097. if test "x$ac_cv_func_cairo_xlib_surface_get_xrender_format" = xyes; then :
  11098. CAIRO_HAS_XRENDER_SURFACE=1
  11099. else
  11100. CAIRO_HAS_XRENDER_SURFACE=
  11101. fi
  11102. LIBS=${ac_save_libs}
  11103. LDFLAGS=${ac_save_ldflags}
  11104. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  11105. fi # $USE_CAIRO
  11106. # Done checking Cairo
  11107. # Enable FreeType option
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FreeType" >&5
  11109. $as_echo_n "checking whether to use FreeType... " >&6; }
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_freetype\"" >&5
  11111. $as_echo "\"$with_freetype\"" >&6; }
  11112. case "$with_freetype" in
  11113. "no") USE_FREETYPE= ;;
  11114. "yes") USE_FREETYPE="1" ;;
  11115. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11116. esac
  11117. FTINC=
  11118. FTLIB=
  11119. if test -n "$USE_FREETYPE"; then
  11120. # With FreeType includes directory
  11121. FTINC=`$PKG_CONFIG --cflags freetype2`
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FreeType includes" >&5
  11123. $as_echo_n "checking for location of FreeType includes... " >&6; }
  11124. case "$with_freetype_includes" in
  11125. y | ye | yes | n | no)
  11126. as_fn_error $? "*** You must supply a directory to --with-freetype-includes." "$LINENO" 5
  11127. ;;
  11128. esac
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_includes" >&5
  11130. $as_echo "$with_freetype_includes" >&6; }
  11131. if test -n "$with_freetype_includes" ; then
  11132. for dir in $with_freetype_includes; do
  11133. if test -d "$dir"; then
  11134. FTINC="$FTINC -I$dir"
  11135. else
  11136. as_fn_error $? "*** FreeType includes directory $dir does not exist." "$LINENO" 5
  11137. fi
  11138. done
  11139. fi
  11140. ac_save_cppflags="$CPPFLAGS"
  11141. CPPFLAGS="$FTINC $CPPFLAGS"
  11142. for ac_header in ft2build.h
  11143. do :
  11144. ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
  11145. if test "x$ac_cv_header_ft2build_h" = xyes; then :
  11146. cat >>confdefs.h <<_ACEOF
  11147. #define HAVE_FT2BUILD_H 1
  11148. _ACEOF
  11149. else
  11150. as_fn_error $? "*** Unable to locate FreeType includes." "$LINENO" 5
  11151. fi
  11152. done
  11153. CPPFLAGS=$ac_save_cppflags
  11154. # With FreeType library directory
  11155. FTLIB=`$PKG_CONFIG --libs freetype2`
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of FreeType library" >&5
  11157. $as_echo_n "checking for location of FreeType library... " >&6; }
  11158. case "$with_freetype_libs" in
  11159. y | ye | yes | n | no)
  11160. as_fn_error $? "*** You must supply a directory to --with-freetype-libs." "$LINENO" 5
  11161. ;;
  11162. esac
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_libs" >&5
  11164. $as_echo "$with_freetype_libs" >&6; }
  11165. if test -n "$with_freetype_libs"; then
  11166. for dir in $with_freetype_libs; do
  11167. if test -d "$dir"; then
  11168. FTLIB="$FTLIB -L$dir"
  11169. else
  11170. as_fn_error $? "*** FreeType library directory $dir does not exist." "$LINENO" 5
  11171. fi
  11172. done
  11173. fi
  11174. ac_save_ldflags="$LDFLAGS"
  11175. LDFLAGS="$FTLIB $LDFLAGS"
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
  11177. $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
  11178. ac_check_lib_save_LIBS=$LIBS
  11179. LIBS="-lfreetype $LIBS"
  11180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11181. /* end confdefs.h. */
  11182. /* Override any GCC internal prototype to avoid an error.
  11183. Use char because int might match the return type of a GCC
  11184. builtin and then its argument prototype would still apply. */
  11185. #ifdef __cplusplus
  11186. extern "C"
  11187. #endif
  11188. char FT_Init_FreeType ();
  11189. int
  11190. main ()
  11191. {
  11192. return FT_Init_FreeType ();
  11193. ;
  11194. return 0;
  11195. }
  11196. _ACEOF
  11197. if ac_fn_c_try_link "$LINENO"; then :
  11198. ac_cv_lib_freetype_FT_Init_FreeType=yes
  11199. else
  11200. ac_cv_lib_freetype_FT_Init_FreeType=no
  11201. fi
  11202. rm -f core conftest.err conftest.$ac_objext \
  11203. conftest$ac_exeext conftest.$ac_ext
  11204. LIBS=$ac_check_lib_save_LIBS
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
  11206. $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
  11207. if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
  11208. FTLIB="$FTLIB -lfreetype "
  11209. else
  11210. LDFLAGS=${ac_save_ldflags}
  11211. as_fn_error $? "*** Unable to locate FreeType library." "$LINENO" 5
  11212. fi
  11213. LDFLAGS=${ac_save_ldflags}
  11214. fi # $USE_FREETYPE
  11215. # Done checking FreeType
  11216. # Enable NLS option
  11217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11218. $as_echo_n "checking whether to use NLS... " >&6; }
  11219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_nls\"" >&5
  11220. $as_echo "\"$with_nls\"" >&6; }
  11221. case "$with_nls" in
  11222. "no") USE_NLS= ;;
  11223. "yes") USE_NLS="1" ;;
  11224. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11225. esac
  11226. INTLLIB=
  11227. HAVE_NLS=
  11228. if test -n "${USE_NLS}" ; then
  11229. $as_echo "#define USE_NLS 1" >>confdefs.h
  11230. ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
  11231. if test "x$ac_cv_func_gettext" = xyes; then :
  11232. INTLLIB=
  11233. else
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  11235. $as_echo_n "checking for gettext in -lintl... " >&6; }
  11236. ac_check_lib_save_LIBS=$LIBS
  11237. LIBS="-lintl $LIBS"
  11238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11239. /* end confdefs.h. */
  11240. /* Override any GCC internal prototype to avoid an error.
  11241. Use char because int might match the return type of a GCC
  11242. builtin and then its argument prototype would still apply. */
  11243. #ifdef __cplusplus
  11244. extern "C"
  11245. #endif
  11246. char gettext ();
  11247. int
  11248. main ()
  11249. {
  11250. return gettext ();
  11251. ;
  11252. return 0;
  11253. }
  11254. _ACEOF
  11255. if ac_fn_c_try_link "$LINENO"; then :
  11256. ac_cv_lib_intl_gettext=yes
  11257. else
  11258. ac_cv_lib_intl_gettext=no
  11259. fi
  11260. rm -f core conftest.err conftest.$ac_objext \
  11261. conftest$ac_exeext conftest.$ac_ext
  11262. LIBS=$ac_check_lib_save_LIBS
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  11264. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  11265. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  11266. INTLLIB=-lintl
  11267. else
  11268. as_fn_error $? "*** Unable to locate gettext() function." "$LINENO" 5
  11269. fi
  11270. fi
  11271. HAVE_NLS=1
  11272. fi
  11273. # Enable C++ option
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
  11275. $as_echo_n "checking whether to use C++... " >&6; }
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_cxx\"" >&5
  11277. $as_echo "\"$with_cxx\"" >&6; }
  11278. case "$with_cxx" in
  11279. "no") USE_CXX= ;;
  11280. "yes") USE_CXX="1" ;;
  11281. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11282. esac
  11283. if test -n "$USE_CXX"; then
  11284. ac_ext=cpp
  11285. ac_cpp='$CXXCPP $CPPFLAGS'
  11286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11289. if test -z "$CXX"; then
  11290. if test -n "$CCC"; then
  11291. CXX=$CCC
  11292. else
  11293. if test -n "$ac_tool_prefix"; then
  11294. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11295. do
  11296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11299. $as_echo_n "checking for $ac_word... " >&6; }
  11300. if test -n "$CXX"; then
  11301. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11302. else
  11303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11304. for as_dir in $PATH
  11305. do
  11306. IFS=$as_save_IFS
  11307. test -z "$as_dir" && as_dir=.
  11308. for ac_exec_ext in '' $ac_executable_extensions; do
  11309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11310. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11312. break 2
  11313. fi
  11314. done
  11315. done
  11316. IFS=$as_save_IFS
  11317. fi
  11318. CXX=$ac_cv_prog_CXX
  11319. if test -n "$CXX"; then
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11321. $as_echo "$CXX" >&6; }
  11322. else
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11324. $as_echo "no" >&6; }
  11325. fi
  11326. test -n "$CXX" && break
  11327. done
  11328. fi
  11329. if test -z "$CXX"; then
  11330. ac_ct_CXX=$CXX
  11331. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11332. do
  11333. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11334. set dummy $ac_prog; ac_word=$2
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11336. $as_echo_n "checking for $ac_word... " >&6; }
  11337. if test -n "$ac_ct_CXX"; then
  11338. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11339. else
  11340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11341. for as_dir in $PATH
  11342. do
  11343. IFS=$as_save_IFS
  11344. test -z "$as_dir" && as_dir=.
  11345. for ac_exec_ext in '' $ac_executable_extensions; do
  11346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11347. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11349. break 2
  11350. fi
  11351. done
  11352. done
  11353. IFS=$as_save_IFS
  11354. fi
  11355. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11356. if test -n "$ac_ct_CXX"; then
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11358. $as_echo "$ac_ct_CXX" >&6; }
  11359. else
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11361. $as_echo "no" >&6; }
  11362. fi
  11363. test -n "$ac_ct_CXX" && break
  11364. done
  11365. if test "x$ac_ct_CXX" = x; then
  11366. CXX="g++"
  11367. else
  11368. case $cross_compiling:$ac_tool_warned in
  11369. yes:)
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11372. ac_tool_warned=yes ;;
  11373. esac
  11374. CXX=$ac_ct_CXX
  11375. fi
  11376. fi
  11377. fi
  11378. fi
  11379. # Provide some information about the compiler.
  11380. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11381. set X $ac_compile
  11382. ac_compiler=$2
  11383. for ac_option in --version -v -V -qversion; do
  11384. { { ac_try="$ac_compiler $ac_option >&5"
  11385. case "(($ac_try" in
  11386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11387. *) ac_try_echo=$ac_try;;
  11388. esac
  11389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11390. $as_echo "$ac_try_echo"; } >&5
  11391. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11392. ac_status=$?
  11393. if test -s conftest.err; then
  11394. sed '10a\
  11395. ... rest of stderr output deleted ...
  11396. 10q' conftest.err >conftest.er1
  11397. cat conftest.er1 >&5
  11398. fi
  11399. rm -f conftest.er1 conftest.err
  11400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11401. test $ac_status = 0; }
  11402. done
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11404. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11406. /* end confdefs.h. */
  11407. int
  11408. main ()
  11409. {
  11410. #ifndef __GNUC__
  11411. choke me
  11412. #endif
  11413. ;
  11414. return 0;
  11415. }
  11416. _ACEOF
  11417. if ac_fn_cxx_try_compile "$LINENO"; then :
  11418. ac_compiler_gnu=yes
  11419. else
  11420. ac_compiler_gnu=no
  11421. fi
  11422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11423. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11425. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11426. if test $ac_compiler_gnu = yes; then
  11427. GXX=yes
  11428. else
  11429. GXX=
  11430. fi
  11431. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11432. ac_save_CXXFLAGS=$CXXFLAGS
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11434. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11435. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11436. ac_cxx_werror_flag=yes
  11437. ac_cv_prog_cxx_g=no
  11438. CXXFLAGS="-g"
  11439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11440. /* end confdefs.h. */
  11441. int
  11442. main ()
  11443. {
  11444. ;
  11445. return 0;
  11446. }
  11447. _ACEOF
  11448. if ac_fn_cxx_try_compile "$LINENO"; then :
  11449. ac_cv_prog_cxx_g=yes
  11450. else
  11451. CXXFLAGS=""
  11452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11453. /* end confdefs.h. */
  11454. int
  11455. main ()
  11456. {
  11457. ;
  11458. return 0;
  11459. }
  11460. _ACEOF
  11461. if ac_fn_cxx_try_compile "$LINENO"; then :
  11462. else
  11463. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11464. CXXFLAGS="-g"
  11465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11466. /* end confdefs.h. */
  11467. int
  11468. main ()
  11469. {
  11470. ;
  11471. return 0;
  11472. }
  11473. _ACEOF
  11474. if ac_fn_cxx_try_compile "$LINENO"; then :
  11475. ac_cv_prog_cxx_g=yes
  11476. fi
  11477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11478. fi
  11479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11480. fi
  11481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11482. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11484. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11485. if test "$ac_test_CXXFLAGS" = set; then
  11486. CXXFLAGS=$ac_save_CXXFLAGS
  11487. elif test $ac_cv_prog_cxx_g = yes; then
  11488. if test "$GXX" = yes; then
  11489. CXXFLAGS="-g -O2"
  11490. else
  11491. CXXFLAGS="-g"
  11492. fi
  11493. else
  11494. if test "$GXX" = yes; then
  11495. CXXFLAGS="-O2"
  11496. else
  11497. CXXFLAGS=
  11498. fi
  11499. fi
  11500. ac_ext=c
  11501. ac_cpp='$CPP $CPPFLAGS'
  11502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11505. else
  11506. CXX=
  11507. CXXFLAGS=
  11508. fi
  11509. # Done checking C++
  11510. # Enable openDWG option
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use openDWG" >&5
  11512. $as_echo_n "checking whether to use openDWG... " >&6; }
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opendwg\"" >&5
  11514. $as_echo "\"$with_opendwg\"" >&6; }
  11515. case "$with_opendwg" in
  11516. "no") USE_OPENDWG= ;;
  11517. "yes") USE_OPENDWG="1" ;;
  11518. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11519. esac
  11520. OPENDWGINCPATH=
  11521. OPENDWGLIBPATH=
  11522. OPENDWGLIB=
  11523. if test -n "${USE_OPENDWG}"; then
  11524. # With OPENDWG includes directory
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of openDGW includes" >&5
  11526. $as_echo_n "checking for location of openDGW includes... " >&6; }
  11527. case "$with_opendwg_includes" in
  11528. y | ye | yes | n | no)
  11529. as_fn_error $? "*** You must supply a directory to --with-opendwg-includes." "$LINENO" 5
  11530. ;;
  11531. esac
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opendwg_includes" >&5
  11533. $as_echo "$with_opendwg_includes" >&6; }
  11534. if test -n "$with_opendwg_includes" ; then
  11535. for dir in $with_opendwg_includes; do
  11536. if test -d "$dir"; then
  11537. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  11538. else
  11539. as_fn_error $? "*** openDGW includes directory $dir does not exist." "$LINENO" 5
  11540. fi
  11541. done
  11542. fi
  11543. ac_save_cppflags="$CPPFLAGS"
  11544. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  11545. for ac_header in ad2.h
  11546. do :
  11547. ac_fn_c_check_header_mongrel "$LINENO" "ad2.h" "ac_cv_header_ad2_h" "$ac_includes_default"
  11548. if test "x$ac_cv_header_ad2_h" = xyes; then :
  11549. cat >>confdefs.h <<_ACEOF
  11550. #define HAVE_AD2_H 1
  11551. _ACEOF
  11552. else
  11553. as_fn_error $? "*** Unable to locate openDWG includes." "$LINENO" 5
  11554. fi
  11555. done
  11556. CPPFLAGS=$ac_save_cppflags
  11557. # With OPENDWG library directory
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of openDWG library" >&5
  11559. $as_echo_n "checking for location of openDWG library... " >&6; }
  11560. case "$with_opendwg_libs" in
  11561. y | ye | yes | n | no)
  11562. as_fn_error $? "*** You must supply a directory to --with-opendwg-libs." "$LINENO" 5
  11563. ;;
  11564. esac
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opendwg_libs" >&5
  11566. $as_echo "$with_opendwg_libs" >&6; }
  11567. if test -n "$with_opendwg_libs"; then
  11568. for dir in $with_opendwg_libs; do
  11569. if test -d "$dir"; then
  11570. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  11571. else
  11572. as_fn_error $? "*** openDWG library directory $dir does not exist." "$LINENO" 5
  11573. fi
  11574. done
  11575. fi
  11576. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  11577. #FIX ME how to program this test??
  11578. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  11579. #
  11580. #for now hack (but working):
  11581. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  11582. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  11583. OPENDWGLIB="$adlib"
  11584. fi # $USE_OPENDWG
  11585. # Done checking OPENDWG
  11586. # Enable pthread option
  11587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads" >&5
  11588. $as_echo_n "checking whether to use POSIX threads... " >&6; }
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_pthread\"" >&5
  11590. $as_echo "\"$with_pthread\"" >&6; }
  11591. case "$with_pthread" in
  11592. "no") USE_PTHREAD= ;;
  11593. "yes") USE_PTHREAD="1" ;;
  11594. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11595. esac
  11596. PTHREADINCPATH=
  11597. PTHREADLIBPATH=
  11598. PTHREADLIB=
  11599. if test -n "$USE_PTHREAD"; then
  11600. # With pthread includes directory
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of POSIX threads includes" >&5
  11602. $as_echo_n "checking for location of POSIX threads includes... " >&6; }
  11603. case "$with_pthread_includes" in
  11604. y | ye | yes | n | no)
  11605. as_fn_error $? "*** You must supply a directory to --with-pthread-includes." "$LINENO" 5
  11606. ;;
  11607. esac
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pthread_includes" >&5
  11609. $as_echo "$with_pthread_includes" >&6; }
  11610. if test -n "$with_pthread_includes" ; then
  11611. for dir in $with_pthread_includes; do
  11612. if test -d "$dir"; then
  11613. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  11614. else
  11615. as_fn_error $? "*** POSIX threads includes directory $dir does not exist." "$LINENO" 5
  11616. fi
  11617. done
  11618. fi
  11619. ac_save_cppflags="$CPPFLAGS"
  11620. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  11621. for ac_header in pthread.h
  11622. do :
  11623. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  11624. if test "x$ac_cv_header_pthread_h" = xyes; then :
  11625. cat >>confdefs.h <<_ACEOF
  11626. #define HAVE_PTHREAD_H 1
  11627. _ACEOF
  11628. else
  11629. as_fn_error $? "*** Unable to locate POSIX threads includes." "$LINENO" 5
  11630. fi
  11631. done
  11632. CPPFLAGS=$ac_save_cppflags
  11633. # With pthread library directory
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of POSIX threads library" >&5
  11635. $as_echo_n "checking for location of POSIX threads library... " >&6; }
  11636. case "$with_pthread_libs" in
  11637. y | ye | yes | n | no)
  11638. as_fn_error $? "*** You must supply a directory to --with-pthread-libs." "$LINENO" 5
  11639. ;;
  11640. esac
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pthread_libs" >&5
  11642. $as_echo "$with_pthread_libs" >&6; }
  11643. if test -n "$with_pthread_libs"; then
  11644. for dir in $with_pthread_libs; do
  11645. if test -d "$dir"; then
  11646. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  11647. else
  11648. as_fn_error $? "*** POSIX threads library directory $dir does not exist." "$LINENO" 5
  11649. fi
  11650. done
  11651. fi
  11652. ac_save_libs="$LIBS"
  11653. ac_save_ldflags="$LDFLAGS"
  11654. LIBS=" $LIBS"
  11655. LDFLAGS=" $LDFLAGS"
  11656. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  11657. if test "x$ac_cv_func_pthread_create" = xyes; then :
  11658. PTHREADLIB="$PTHREADLIB "
  11659. else
  11660. ac_save_ldflags="$LDFLAGS"
  11661. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  11663. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  11664. ac_check_lib_save_LIBS=$LIBS
  11665. LIBS="-lpthread $LIBS"
  11666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11667. /* end confdefs.h. */
  11668. /* Override any GCC internal prototype to avoid an error.
  11669. Use char because int might match the return type of a GCC
  11670. builtin and then its argument prototype would still apply. */
  11671. #ifdef __cplusplus
  11672. extern "C"
  11673. #endif
  11674. char pthread_create ();
  11675. int
  11676. main ()
  11677. {
  11678. return pthread_create ();
  11679. ;
  11680. return 0;
  11681. }
  11682. _ACEOF
  11683. if ac_fn_c_try_link "$LINENO"; then :
  11684. ac_cv_lib_pthread_pthread_create=yes
  11685. else
  11686. ac_cv_lib_pthread_pthread_create=no
  11687. fi
  11688. rm -f core conftest.err conftest.$ac_objext \
  11689. conftest$ac_exeext conftest.$ac_ext
  11690. LIBS=$ac_check_lib_save_LIBS
  11691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  11692. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  11693. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  11694. PTHREADLIB="$PTHREADLIB -lpthread "
  11695. else
  11696. LDFLAGS=${ac_save_ldflags}
  11697. as_fn_error $? "*** Unable to locate POSIX threads library." "$LINENO" 5
  11698. fi
  11699. LDFLAGS=${ac_save_ldflags}
  11700. fi
  11701. LIBS=${ac_save_libs}
  11702. LDFLAGS=${ac_save_ldflags}
  11703. fi # $USE_PTHREAD
  11704. # Done checking pthread
  11705. # Enable OpenMP option
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenMP" >&5
  11707. $as_echo_n "checking whether to use OpenMP... " >&6; }
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_openmp\"" >&5
  11709. $as_echo "\"$with_openmp\"" >&6; }
  11710. case "$with_openmp" in
  11711. "no") USE_OPENMP= ;;
  11712. "yes") USE_OPENMP="1" ;;
  11713. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11714. esac
  11715. OMPINCPATH=
  11716. OMPLIBPATH=
  11717. OMPLIB=
  11718. OMPCFLAGS=
  11719. if test -n "$USE_OPENMP"; then
  11720. # With OpenMP includes directory
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenMP includes" >&5
  11722. $as_echo_n "checking for location of OpenMP includes... " >&6; }
  11723. case "$with_openmp_includes" in
  11724. y | ye | yes | n | no)
  11725. as_fn_error $? "*** You must supply a directory to --with-openmp-includes." "$LINENO" 5
  11726. ;;
  11727. esac
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openmp_includes" >&5
  11729. $as_echo "$with_openmp_includes" >&6; }
  11730. if test -n "$with_openmp_includes" ; then
  11731. for dir in $with_openmp_includes; do
  11732. if test -d "$dir"; then
  11733. OMPINCPATH="$OMPINCPATH -I$dir"
  11734. else
  11735. as_fn_error $? "*** OpenMP includes directory $dir does not exist." "$LINENO" 5
  11736. fi
  11737. done
  11738. fi
  11739. ac_save_cppflags="$CPPFLAGS"
  11740. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  11741. for ac_header in omp.h
  11742. do :
  11743. ac_fn_c_check_header_mongrel "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
  11744. if test "x$ac_cv_header_omp_h" = xyes; then :
  11745. cat >>confdefs.h <<_ACEOF
  11746. #define HAVE_OMP_H 1
  11747. _ACEOF
  11748. else
  11749. as_fn_error $? "*** Unable to locate OpenMP includes." "$LINENO" 5
  11750. fi
  11751. done
  11752. CPPFLAGS=$ac_save_cppflags
  11753. # With OpenMP library directory
  11754. # GCC et al.: -lgomp
  11755. # Solaris cc: -lmtsk
  11756. # AIX xlc: -lxlsmp
  11757. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  11758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenMP library" >&5
  11759. $as_echo_n "checking for location of OpenMP library... " >&6; }
  11760. case "$with_openmp_libs" in
  11761. y | ye | yes | n | no)
  11762. as_fn_error $? "*** You must supply a directory to --with-openmp-libs." "$LINENO" 5
  11763. ;;
  11764. esac
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openmp_libs" >&5
  11766. $as_echo "$with_openmp_libs" >&6; }
  11767. if test -n "$with_openmp_libs"; then
  11768. for dir in $with_openmp_libs; do
  11769. if test -d "$dir"; then
  11770. OMPLIBPATH="$OMPLIBPATH -L$dir"
  11771. else
  11772. as_fn_error $? "*** OpenMP library directory $dir does not exist." "$LINENO" 5
  11773. fi
  11774. done
  11775. fi
  11776. ac_save_libs="$LIBS"
  11777. ac_save_ldflags="$LDFLAGS"
  11778. LIBS=" $LIBS"
  11779. LDFLAGS=" $LDFLAGS"
  11780. ac_fn_c_check_func "$LINENO" "GOMP_parallel_start" "ac_cv_func_GOMP_parallel_start"
  11781. if test "x$ac_cv_func_GOMP_parallel_start" = xyes; then :
  11782. OMPLIB="$OMPLIB "
  11783. else
  11784. ac_save_ldflags="$LDFLAGS"
  11785. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
  11787. $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
  11788. ac_check_lib_save_LIBS=$LIBS
  11789. LIBS="-lgomp $LIBS"
  11790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11791. /* end confdefs.h. */
  11792. /* Override any GCC internal prototype to avoid an error.
  11793. Use char because int might match the return type of a GCC
  11794. builtin and then its argument prototype would still apply. */
  11795. #ifdef __cplusplus
  11796. extern "C"
  11797. #endif
  11798. char GOMP_parallel_start ();
  11799. int
  11800. main ()
  11801. {
  11802. return GOMP_parallel_start ();
  11803. ;
  11804. return 0;
  11805. }
  11806. _ACEOF
  11807. if ac_fn_c_try_link "$LINENO"; then :
  11808. ac_cv_lib_gomp_GOMP_parallel_start=yes
  11809. else
  11810. ac_cv_lib_gomp_GOMP_parallel_start=no
  11811. fi
  11812. rm -f core conftest.err conftest.$ac_objext \
  11813. conftest$ac_exeext conftest.$ac_ext
  11814. LIBS=$ac_check_lib_save_LIBS
  11815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
  11816. $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
  11817. if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
  11818. OMPLIB="$OMPLIB -lgomp "
  11819. else
  11820. LDFLAGS=${ac_save_ldflags}
  11821. as_fn_error $? "*** Unable to locate OpenMP library." "$LINENO" 5
  11822. fi
  11823. LDFLAGS=${ac_save_ldflags}
  11824. fi
  11825. LIBS=${ac_save_libs}
  11826. LDFLAGS=${ac_save_ldflags}
  11827. # compiler dependent
  11828. #if test ${CC} = "gcc" ; then
  11829. if test x$GCC = xyes ; then
  11830. # GNU C compiler (>= 4.2.1)
  11831. OMPCFLAGS=-fopenmp
  11832. elif test ${CC} = "icc" ; then
  11833. # Intel compiler
  11834. OMPCFLAGS=-openmp
  11835. elif test ${CC} = "opencc" ; then
  11836. # AMD's x86 Open64 compiler
  11837. OMPCFLAGS=-mp
  11838. elif test ${CC} = "pgcc" ; then
  11839. # Portland Group's compiler
  11840. OMPCFLAGS=-mp
  11841. # ... anybody else?
  11842. fi
  11843. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  11844. #...how?
  11845. #echo "int main() {return 0;}" > test.c
  11846. #$CC $OMPCLFAGS test.c -o test
  11847. fi # $USE_OPENMP
  11848. # Done checking OpenMP
  11849. # Enable OpenCL option
  11850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenCL" >&5
  11851. $as_echo_n "checking whether to use OpenCL... " >&6; }
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_opencl\"" >&5
  11853. $as_echo "\"$with_opencl\"" >&6; }
  11854. case "$with_opencl" in
  11855. "no") USE_OPENCL= ;;
  11856. "yes") USE_OPENCL="1" ;;
  11857. *) as_fn_error $? "*** You must answer yes or no." "$LINENO" 5 ;;
  11858. esac
  11859. OCLINCPATH=
  11860. OCLLIBPATH=
  11861. OCLLIB=
  11862. if test -n "$USE_OPENCL"; then
  11863. # With OpenCL includes directory
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenCL includes" >&5
  11865. $as_echo_n "checking for location of OpenCL includes... " >&6; }
  11866. case "$with_opencl_includes" in
  11867. y | ye | yes | n | no)
  11868. as_fn_error $? "*** You must supply a directory to --with-opencl-includes." "$LINENO" 5
  11869. ;;
  11870. esac
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opencl_includes" >&5
  11872. $as_echo "$with_opencl_includes" >&6; }
  11873. if test -n "$with_opencl_includes" ; then
  11874. for dir in $with_opencl_includes; do
  11875. if test -d "$dir"; then
  11876. OCLINCPATH="$OCLINCPATH -I$dir"
  11877. else
  11878. as_fn_error $? "*** OpenCL includes directory $dir does not exist." "$LINENO" 5
  11879. fi
  11880. done
  11881. fi
  11882. if test -n "$MACOSX_APP" ; then
  11883. ac_save_cppflags="$CPPFLAGS"
  11884. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  11885. for ac_header in OpenCL/opencl.h
  11886. do :
  11887. ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/opencl.h" "ac_cv_header_OpenCL_opencl_h" "$ac_includes_default"
  11888. if test "x$ac_cv_header_OpenCL_opencl_h" = xyes; then :
  11889. cat >>confdefs.h <<_ACEOF
  11890. #define HAVE_OPENCL_OPENCL_H 1
  11891. _ACEOF
  11892. else
  11893. as_fn_error $? "*** Unable to locate OpenCL includes." "$LINENO" 5
  11894. fi
  11895. done
  11896. CPPFLAGS=$ac_save_cppflags
  11897. # With OpenCL library directory
  11898. ### FIXME: ###
  11899. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  11900. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  11901. ac_save_libs="$LIBS"
  11902. ac_save_ldflags="$LDFLAGS"
  11903. LIBS="-framework OpenCL $LIBS"
  11904. LDFLAGS=" $LDFLAGS"
  11905. ac_fn_c_check_func "$LINENO" "clGetPlatformInfo" "ac_cv_func_clGetPlatformInfo"
  11906. if test "x$ac_cv_func_clGetPlatformInfo" = xyes; then :
  11907. OCLLIB="$OCLLIB -framework OpenCL"
  11908. else
  11909. as_fn_error $? "*** Unable to locate OpenCL library." "$LINENO" 5
  11910. fi
  11911. LIBS=${ac_save_libs}
  11912. LDFLAGS=${ac_save_ldflags}
  11913. else
  11914. ac_save_cppflags="$CPPFLAGS"
  11915. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  11916. for ac_header in CL/cl.h
  11917. do :
  11918. ac_fn_c_check_header_mongrel "$LINENO" "CL/cl.h" "ac_cv_header_CL_cl_h" "$ac_includes_default"
  11919. if test "x$ac_cv_header_CL_cl_h" = xyes; then :
  11920. cat >>confdefs.h <<_ACEOF
  11921. #define HAVE_CL_CL_H 1
  11922. _ACEOF
  11923. else
  11924. as_fn_error $? "*** Unable to locate OpenCL includes." "$LINENO" 5
  11925. fi
  11926. done
  11927. CPPFLAGS=$ac_save_cppflags
  11928. # With OpenCL library directory
  11929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of OpenCL library" >&5
  11930. $as_echo_n "checking for location of OpenCL library... " >&6; }
  11931. case "$with_opencl_libs" in
  11932. y | ye | yes | n | no)
  11933. as_fn_error $? "*** You must supply a directory to --with-opencl-libs." "$LINENO" 5
  11934. ;;
  11935. esac
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opencl_libs" >&5
  11937. $as_echo "$with_opencl_libs" >&6; }
  11938. if test -n "$with_opencl_libs"; then
  11939. for dir in $with_opencl_libs; do
  11940. if test -d "$dir"; then
  11941. OCLLIBPATH="$OCLLIBPATH -L$dir"
  11942. else
  11943. as_fn_error $? "*** OpenCL library directory $dir does not exist." "$LINENO" 5
  11944. fi
  11945. done
  11946. fi
  11947. ac_save_ldflags="$LDFLAGS"
  11948. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  11949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
  11950. $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
  11951. ac_check_lib_save_LIBS=$LIBS
  11952. LIBS="-lOpenCL $LIBS"
  11953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11954. /* end confdefs.h. */
  11955. /* Override any GCC internal prototype to avoid an error.
  11956. Use char because int might match the return type of a GCC
  11957. builtin and then its argument prototype would still apply. */
  11958. #ifdef __cplusplus
  11959. extern "C"
  11960. #endif
  11961. char clGetPlatformInfo ();
  11962. int
  11963. main ()
  11964. {
  11965. return clGetPlatformInfo ();
  11966. ;
  11967. return 0;
  11968. }
  11969. _ACEOF
  11970. if ac_fn_c_try_link "$LINENO"; then :
  11971. ac_cv_lib_OpenCL_clGetPlatformInfo=yes
  11972. else
  11973. ac_cv_lib_OpenCL_clGetPlatformInfo=no
  11974. fi
  11975. rm -f core conftest.err conftest.$ac_objext \
  11976. conftest$ac_exeext conftest.$ac_ext
  11977. LIBS=$ac_check_lib_save_LIBS
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
  11979. $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
  11980. if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
  11981. OCLLIB="$OCLLIB -lOpenCL "
  11982. else
  11983. LDFLAGS=${ac_save_ldflags}
  11984. as_fn_error $? "*** Unable to locate OpenCL library." "$LINENO" 5
  11985. fi
  11986. LDFLAGS=${ac_save_ldflags}
  11987. # expanded symbol check: yes? no?
  11988. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  11989. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  11990. #])
  11991. fi
  11992. fi # $USE_OPENCL
  11993. # Done checking OpenCL
  11994. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  11995. # Check whether --enable-largefile was given.
  11996. if test "${enable_largefile+set}" = set; then :
  11997. enableval=$enable_largefile;
  11998. fi
  11999. LFS_CFLAGS=
  12000. if test "$enable_largefile" != no; then
  12001. ac_save_cflags=$CFLAGS
  12002. if test "`which getconf 2>&5`" ; then
  12003. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  12004. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  12005. fi
  12006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12007. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12008. ac_cv_sys_largefile_CC=no
  12009. largefile_cc_opt=""
  12010. if test "$GCC" != yes; then
  12011. # IRIX 6.2 and later do not support large files by default,
  12012. # so use the C compiler's -n32 option if that helps.
  12013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12014. /* end confdefs.h. */
  12015. #include <sys/types.h>
  12016. /* Check that off_t can represent 2**63 - 1 correctly.
  12017. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12018. since some C++ compilers masquerading as C compilers
  12019. incorrectly reject 9223372036854775807. */
  12020. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12021. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12022. && LARGE_OFF_T % 2147483647 == 1)
  12023. ? 1 : -1];
  12024. int
  12025. main ()
  12026. {
  12027. ;
  12028. return 0;
  12029. }
  12030. _ACEOF
  12031. if ac_fn_c_try_compile "$LINENO"; then :
  12032. else
  12033. ac_save_CC="${CC-cc}"
  12034. CC="$CC -n32"
  12035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12036. /* end confdefs.h. */
  12037. #include <sys/types.h>
  12038. /* Check that off_t can represent 2**63 - 1 correctly.
  12039. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12040. since some C++ compilers masquerading as C compilers
  12041. incorrectly reject 9223372036854775807. */
  12042. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12043. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12044. && LARGE_OFF_T % 2147483647 == 1)
  12045. ? 1 : -1];
  12046. int
  12047. main ()
  12048. {
  12049. ;
  12050. return 0;
  12051. }
  12052. _ACEOF
  12053. if ac_fn_c_try_compile "$LINENO"; then :
  12054. ac_cv_sys_largefile_CC=' -n32'
  12055. fi
  12056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12057. CC="$ac_save_CC"
  12058. fi
  12059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12060. fi
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12062. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12063. if test "$ac_cv_sys_largefile_CC" != no; then
  12064. CC="$CC$ac_cv_sys_largefile_CC"
  12065. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  12066. if test "$LFS_CFLAGS" ; then
  12067. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  12068. else
  12069. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  12070. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  12071. fi
  12072. fi
  12073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12074. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12075. ac_cv_sys_file_offset_bits=no
  12076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12077. /* end confdefs.h. */
  12078. #include <sys/types.h>
  12079. /* Check that off_t can represent 2**63 - 1 correctly.
  12080. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12081. since some C++ compilers masquerading as C compilers
  12082. incorrectly reject 9223372036854775807. */
  12083. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12084. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12085. && LARGE_OFF_T % 2147483647 == 1)
  12086. ? 1 : -1];
  12087. int
  12088. main ()
  12089. {
  12090. ;
  12091. return 0;
  12092. }
  12093. _ACEOF
  12094. if ac_fn_c_try_compile "$LINENO"; then :
  12095. else
  12096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12097. /* end confdefs.h. */
  12098. #define _FILE_OFFSET_BITS 64
  12099. #include <sys/types.h>
  12100. /* Check that off_t can represent 2**63 - 1 correctly.
  12101. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12102. since some C++ compilers masquerading as C compilers
  12103. incorrectly reject 9223372036854775807. */
  12104. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12105. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12106. && LARGE_OFF_T % 2147483647 == 1)
  12107. ? 1 : -1];
  12108. int
  12109. main ()
  12110. {
  12111. ;
  12112. return 0;
  12113. }
  12114. _ACEOF
  12115. if ac_fn_c_try_compile "$LINENO"; then :
  12116. ac_cv_sys_file_offset_bits=64
  12117. fi
  12118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12119. fi
  12120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12122. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12123. if test "$ac_cv_sys_file_offset_bits" != no; then
  12124. cat >>confdefs.h <<_ACEOF
  12125. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12126. _ACEOF
  12127. if test "$LFS_CFLAGS" ; then
  12128. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  12129. else
  12130. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  12131. fi
  12132. fi
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12134. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12135. ac_cv_sys_large_files=no
  12136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12137. /* end confdefs.h. */
  12138. #include <sys/types.h>
  12139. /* Check that off_t can represent 2**63 - 1 correctly.
  12140. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12141. since some C++ compilers masquerading as C compilers
  12142. incorrectly reject 9223372036854775807. */
  12143. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12144. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12145. && LARGE_OFF_T % 2147483647 == 1)
  12146. ? 1 : -1];
  12147. int
  12148. main ()
  12149. {
  12150. ;
  12151. return 0;
  12152. }
  12153. _ACEOF
  12154. if ac_fn_c_try_compile "$LINENO"; then :
  12155. else
  12156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12157. /* end confdefs.h. */
  12158. #define _LARGE_FILES 1
  12159. #include <sys/types.h>
  12160. /* Check that off_t can represent 2**63 - 1 correctly.
  12161. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12162. since some C++ compilers masquerading as C compilers
  12163. incorrectly reject 9223372036854775807. */
  12164. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12165. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12166. && LARGE_OFF_T % 2147483647 == 1)
  12167. ? 1 : -1];
  12168. int
  12169. main ()
  12170. {
  12171. ;
  12172. return 0;
  12173. }
  12174. _ACEOF
  12175. if ac_fn_c_try_compile "$LINENO"; then :
  12176. ac_cv_sys_large_files=1
  12177. fi
  12178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12179. fi
  12180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12182. $as_echo "$ac_cv_sys_large_files" >&6; }
  12183. if test "$ac_cv_sys_large_files" != no; then
  12184. cat >>confdefs.h <<_ACEOF
  12185. #define _LARGE_FILES $ac_cv_sys_large_files
  12186. _ACEOF
  12187. if test "$LFS_CFLAGS" ; then
  12188. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  12189. else
  12190. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  12191. fi
  12192. fi
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12194. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12195. ac_cv_sys_largefile_source=no
  12196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12197. /* end confdefs.h. */
  12198. #include <stdio.h>
  12199. int
  12200. main ()
  12201. {
  12202. return !fseeko;
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if ac_fn_c_try_compile "$LINENO"; then :
  12208. else
  12209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12210. /* end confdefs.h. */
  12211. #define _LARGEFILE_SOURCE 1
  12212. #include <stdio.h>
  12213. int
  12214. main ()
  12215. {
  12216. return !fseeko;
  12217. ;
  12218. return 0;
  12219. }
  12220. _ACEOF
  12221. if ac_fn_c_try_compile "$LINENO"; then :
  12222. ac_cv_sys_largefile_source=1
  12223. fi
  12224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12225. fi
  12226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12228. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12229. if test "$ac_cv_sys_largefile_source" != no; then
  12230. cat >>confdefs.h <<_ACEOF
  12231. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12232. _ACEOF
  12233. if test "$LFS_CFLAGS" ; then
  12234. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12235. else
  12236. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12237. fi
  12238. fi
  12239. CFLAGS=$ac_save_cflags
  12240. fi
  12241. ac_save_cflags=${CFLAGS}
  12242. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12244. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12245. ac_cv_sys_largefile_source=no
  12246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12247. /* end confdefs.h. */
  12248. #include <stdio.h>
  12249. int
  12250. main ()
  12251. {
  12252. return !fseeko;
  12253. ;
  12254. return 0;
  12255. }
  12256. _ACEOF
  12257. if ac_fn_c_try_compile "$LINENO"; then :
  12258. else
  12259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12260. /* end confdefs.h. */
  12261. #define _LARGEFILE_SOURCE 1
  12262. #include <stdio.h>
  12263. int
  12264. main ()
  12265. {
  12266. return !fseeko;
  12267. ;
  12268. return 0;
  12269. }
  12270. _ACEOF
  12271. if ac_fn_c_try_compile "$LINENO"; then :
  12272. ac_cv_sys_largefile_source=1
  12273. fi
  12274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12275. fi
  12276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12278. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12279. if test "$ac_cv_sys_largefile_source" != no; then
  12280. cat >>confdefs.h <<_ACEOF
  12281. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12282. _ACEOF
  12283. if test "$LFS_CFLAGS" ; then
  12284. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12285. else
  12286. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  12287. fi
  12288. fi
  12289. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12290. # in glibc 2.1.3, but that breaks too many other things.
  12291. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
  12293. $as_echo_n "checking for fseeko... " >&6; }
  12294. ac_cv_func_fseeko=no
  12295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12296. /* end confdefs.h. */
  12297. #include <stdio.h>
  12298. int
  12299. main ()
  12300. {
  12301. return fseeko && fseeko (stdin, 0, 0);
  12302. ;
  12303. return 0;
  12304. }
  12305. _ACEOF
  12306. if ac_fn_c_try_link "$LINENO"; then :
  12307. ac_cv_func_fseeko=yes
  12308. fi
  12309. rm -f core conftest.err conftest.$ac_objext \
  12310. conftest$ac_exeext conftest.$ac_ext
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko" >&5
  12312. $as_echo "$ac_cv_func_fseeko" >&6; }
  12313. if test $ac_cv_func_fseeko != no; then
  12314. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12315. fi
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system supports Large Files at all" >&5
  12317. $as_echo_n "checking if system supports Large Files at all... " >&6; }
  12318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12319. /* end confdefs.h. */
  12320. #include <stdio.h>
  12321. #include <sys/types.h>
  12322. int
  12323. main ()
  12324. {
  12325. /*
  12326. * Check that off_t can represent 2**63 - 1 correctly.
  12327. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  12328. * since some C++ compilers masquerading as C compilers
  12329. * incorrectly reject 9223372036854775807.
  12330. *
  12331. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  12332. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  12333. */
  12334. #ifdef __MINGW32__
  12335. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  12336. #else
  12337. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12338. #endif
  12339. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12340. && LARGE_OFF_T % 2147483647 == 1)
  12341. ? 1 : -1];
  12342. #ifdef __MINGW32__
  12343. return !fseeko64;
  12344. return !ftello64;
  12345. #else
  12346. return !fseeko;
  12347. return !ftello;
  12348. #endif
  12349. ;
  12350. return 0;
  12351. }
  12352. _ACEOF
  12353. if ac_fn_c_try_compile "$LINENO"; then :
  12354. ac_cv_largefiles=yes
  12355. else
  12356. ac_cv_largefiles=no
  12357. fi
  12358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_largefiles" >&5
  12360. $as_echo "$ac_cv_largefiles" >&6; }
  12361. if test $ac_cv_largefiles = yes; then
  12362. $as_echo "#define HAVE_LARGEFILES 1" >>confdefs.h
  12363. USE_LARGEFILES=1
  12364. else
  12365. USE_LARGEFILES=
  12366. LFS_CFLAGS=
  12367. fi
  12368. CFLAGS=${ac_save_cflags}
  12369. # Done large file support
  12370. USE_TERMIO=
  12371. STRIPFLAG=
  12372. GRASS_HOME="${DSTDIR}"
  12373. ac_config_files="$ac_config_files include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/grass/version.h grass.pc"
  12374. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12375. # Let make expand exec_prefix.
  12376. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12377. DEFS=-DHAVE_CONFIG_H
  12378. ac_libobjs=
  12379. ac_ltlibobjs=
  12380. U=
  12381. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12382. # 1. Remove the extension, and $U if already installed.
  12383. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12384. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12385. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12386. # will be set to the directory where LIBOBJS objects are built.
  12387. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12388. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12389. done
  12390. LIBOBJS=$ac_libobjs
  12391. LTLIBOBJS=$ac_ltlibobjs
  12392. : "${CONFIG_STATUS=./config.status}"
  12393. ac_write_fail=0
  12394. ac_clean_files_save=$ac_clean_files
  12395. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12397. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12398. as_write_fail=0
  12399. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12400. #! $SHELL
  12401. # Generated by $as_me.
  12402. # Run this file to recreate the current configuration.
  12403. # Compiler output produced by configure, useful for debugging
  12404. # configure, is in config.log if it exists.
  12405. debug=false
  12406. ac_cs_recheck=false
  12407. ac_cs_silent=false
  12408. SHELL=\${CONFIG_SHELL-$SHELL}
  12409. export SHELL
  12410. _ASEOF
  12411. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12412. ## -------------------- ##
  12413. ## M4sh Initialization. ##
  12414. ## -------------------- ##
  12415. # Be more Bourne compatible
  12416. DUALCASE=1; export DUALCASE # for MKS sh
  12417. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12418. emulate sh
  12419. NULLCMD=:
  12420. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12421. # is contrary to our usage. Disable this feature.
  12422. alias -g '${1+"$@"}'='"$@"'
  12423. setopt NO_GLOB_SUBST
  12424. else
  12425. case `(set -o) 2>/dev/null` in #(
  12426. *posix*) :
  12427. set -o posix ;; #(
  12428. *) :
  12429. ;;
  12430. esac
  12431. fi
  12432. as_nl='
  12433. '
  12434. export as_nl
  12435. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12436. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12437. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12438. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12439. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12440. # but without wasting forks for bash or zsh.
  12441. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12442. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12443. as_echo='print -r --'
  12444. as_echo_n='print -rn --'
  12445. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12446. as_echo='printf %s\n'
  12447. as_echo_n='printf %s'
  12448. else
  12449. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12450. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12451. as_echo_n='/usr/ucb/echo -n'
  12452. else
  12453. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12454. as_echo_n_body='eval
  12455. arg=$1;
  12456. case $arg in #(
  12457. *"$as_nl"*)
  12458. expr "X$arg" : "X\\(.*\\)$as_nl";
  12459. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12460. esac;
  12461. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12462. '
  12463. export as_echo_n_body
  12464. as_echo_n='sh -c $as_echo_n_body as_echo'
  12465. fi
  12466. export as_echo_body
  12467. as_echo='sh -c $as_echo_body as_echo'
  12468. fi
  12469. # The user is always right.
  12470. if test "${PATH_SEPARATOR+set}" != set; then
  12471. PATH_SEPARATOR=:
  12472. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12473. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12474. PATH_SEPARATOR=';'
  12475. }
  12476. fi
  12477. # IFS
  12478. # We need space, tab and new line, in precisely that order. Quoting is
  12479. # there to prevent editors from complaining about space-tab.
  12480. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12481. # splitting by setting IFS to empty value.)
  12482. IFS=" "" $as_nl"
  12483. # Find who we are. Look in the path if we contain no directory separator.
  12484. as_myself=
  12485. case $0 in #((
  12486. *[\\/]* ) as_myself=$0 ;;
  12487. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12488. for as_dir in $PATH
  12489. do
  12490. IFS=$as_save_IFS
  12491. test -z "$as_dir" && as_dir=.
  12492. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12493. done
  12494. IFS=$as_save_IFS
  12495. ;;
  12496. esac
  12497. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12498. # in which case we are not to be found in the path.
  12499. if test "x$as_myself" = x; then
  12500. as_myself=$0
  12501. fi
  12502. if test ! -f "$as_myself"; then
  12503. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12504. exit 1
  12505. fi
  12506. # Unset variables that we do not need and which cause bugs (e.g. in
  12507. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12508. # suppresses any "Segmentation fault" message there. '((' could
  12509. # trigger a bug in pdksh 5.2.14.
  12510. for as_var in BASH_ENV ENV MAIL MAILPATH
  12511. do eval test x\${$as_var+set} = xset \
  12512. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12513. done
  12514. PS1='$ '
  12515. PS2='> '
  12516. PS4='+ '
  12517. # NLS nuisances.
  12518. LC_ALL=C
  12519. export LC_ALL
  12520. LANGUAGE=C
  12521. export LANGUAGE
  12522. # CDPATH.
  12523. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12524. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12525. # ----------------------------------------
  12526. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12527. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12528. # script with STATUS, using 1 if that was 0.
  12529. as_fn_error ()
  12530. {
  12531. as_status=$1; test $as_status -eq 0 && as_status=1
  12532. if test "$4"; then
  12533. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12534. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12535. fi
  12536. $as_echo "$as_me: error: $2" >&2
  12537. as_fn_exit $as_status
  12538. } # as_fn_error
  12539. # as_fn_set_status STATUS
  12540. # -----------------------
  12541. # Set $? to STATUS, without forking.
  12542. as_fn_set_status ()
  12543. {
  12544. return $1
  12545. } # as_fn_set_status
  12546. # as_fn_exit STATUS
  12547. # -----------------
  12548. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12549. as_fn_exit ()
  12550. {
  12551. set +e
  12552. as_fn_set_status $1
  12553. exit $1
  12554. } # as_fn_exit
  12555. # as_fn_unset VAR
  12556. # ---------------
  12557. # Portably unset VAR.
  12558. as_fn_unset ()
  12559. {
  12560. { eval $1=; unset $1;}
  12561. }
  12562. as_unset=as_fn_unset
  12563. # as_fn_append VAR VALUE
  12564. # ----------------------
  12565. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12566. # advantage of any shell optimizations that allow amortized linear growth over
  12567. # repeated appends, instead of the typical quadratic growth present in naive
  12568. # implementations.
  12569. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12570. eval 'as_fn_append ()
  12571. {
  12572. eval $1+=\$2
  12573. }'
  12574. else
  12575. as_fn_append ()
  12576. {
  12577. eval $1=\$$1\$2
  12578. }
  12579. fi # as_fn_append
  12580. # as_fn_arith ARG...
  12581. # ------------------
  12582. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12583. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12584. # must be portable across $(()) and expr.
  12585. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12586. eval 'as_fn_arith ()
  12587. {
  12588. as_val=$(( $* ))
  12589. }'
  12590. else
  12591. as_fn_arith ()
  12592. {
  12593. as_val=`expr "$@" || test $? -eq 1`
  12594. }
  12595. fi # as_fn_arith
  12596. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12597. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12598. as_expr=expr
  12599. else
  12600. as_expr=false
  12601. fi
  12602. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12603. as_basename=basename
  12604. else
  12605. as_basename=false
  12606. fi
  12607. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12608. as_dirname=dirname
  12609. else
  12610. as_dirname=false
  12611. fi
  12612. as_me=`$as_basename -- "$0" ||
  12613. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12614. X"$0" : 'X\(//\)$' \| \
  12615. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12616. $as_echo X/"$0" |
  12617. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12618. s//\1/
  12619. q
  12620. }
  12621. /^X\/\(\/\/\)$/{
  12622. s//\1/
  12623. q
  12624. }
  12625. /^X\/\(\/\).*/{
  12626. s//\1/
  12627. q
  12628. }
  12629. s/.*/./; q'`
  12630. # Avoid depending upon Character Ranges.
  12631. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12632. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12633. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12634. as_cr_digits='0123456789'
  12635. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12636. ECHO_C= ECHO_N= ECHO_T=
  12637. case `echo -n x` in #(((((
  12638. -n*)
  12639. case `echo 'xy\c'` in
  12640. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12641. xy) ECHO_C='\c';;
  12642. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12643. ECHO_T=' ';;
  12644. esac;;
  12645. *)
  12646. ECHO_N='-n';;
  12647. esac
  12648. rm -f conf$$ conf$$.exe conf$$.file
  12649. if test -d conf$$.dir; then
  12650. rm -f conf$$.dir/conf$$.file
  12651. else
  12652. rm -f conf$$.dir
  12653. mkdir conf$$.dir 2>/dev/null
  12654. fi
  12655. if (echo >conf$$.file) 2>/dev/null; then
  12656. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12657. as_ln_s='ln -s'
  12658. # ... but there are two gotchas:
  12659. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12660. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12661. # In both cases, we have to default to `cp -pR'.
  12662. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12663. as_ln_s='cp -pR'
  12664. elif ln conf$$.file conf$$ 2>/dev/null; then
  12665. as_ln_s=ln
  12666. else
  12667. as_ln_s='cp -pR'
  12668. fi
  12669. else
  12670. as_ln_s='cp -pR'
  12671. fi
  12672. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12673. rmdir conf$$.dir 2>/dev/null
  12674. # as_fn_mkdir_p
  12675. # -------------
  12676. # Create "$as_dir" as a directory, including parents if necessary.
  12677. as_fn_mkdir_p ()
  12678. {
  12679. case $as_dir in #(
  12680. -*) as_dir=./$as_dir;;
  12681. esac
  12682. test -d "$as_dir" || eval $as_mkdir_p || {
  12683. as_dirs=
  12684. while :; do
  12685. case $as_dir in #(
  12686. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12687. *) as_qdir=$as_dir;;
  12688. esac
  12689. as_dirs="'$as_qdir' $as_dirs"
  12690. as_dir=`$as_dirname -- "$as_dir" ||
  12691. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12692. X"$as_dir" : 'X\(//\)[^/]' \| \
  12693. X"$as_dir" : 'X\(//\)$' \| \
  12694. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12695. $as_echo X"$as_dir" |
  12696. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12697. s//\1/
  12698. q
  12699. }
  12700. /^X\(\/\/\)[^/].*/{
  12701. s//\1/
  12702. q
  12703. }
  12704. /^X\(\/\/\)$/{
  12705. s//\1/
  12706. q
  12707. }
  12708. /^X\(\/\).*/{
  12709. s//\1/
  12710. q
  12711. }
  12712. s/.*/./; q'`
  12713. test -d "$as_dir" && break
  12714. done
  12715. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12716. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12717. } # as_fn_mkdir_p
  12718. if mkdir -p . 2>/dev/null; then
  12719. as_mkdir_p='mkdir -p "$as_dir"'
  12720. else
  12721. test -d ./-p && rmdir ./-p
  12722. as_mkdir_p=false
  12723. fi
  12724. # as_fn_executable_p FILE
  12725. # -----------------------
  12726. # Test if FILE is an executable regular file.
  12727. as_fn_executable_p ()
  12728. {
  12729. test -f "$1" && test -x "$1"
  12730. } # as_fn_executable_p
  12731. as_test_x='test -x'
  12732. as_executable_p=as_fn_executable_p
  12733. # Sed expression to map a string onto a valid CPP name.
  12734. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12735. # Sed expression to map a string onto a valid variable name.
  12736. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12737. exec 6>&1
  12738. ## ----------------------------------- ##
  12739. ## Main body of $CONFIG_STATUS script. ##
  12740. ## ----------------------------------- ##
  12741. _ASEOF
  12742. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12744. # Save the log message, to keep $0 and so on meaningful, and to
  12745. # report actual input values of CONFIG_FILES etc. instead of their
  12746. # values after options handling.
  12747. ac_log="
  12748. This file was extended by $as_me, which was
  12749. generated by GNU Autoconf 2.69. Invocation command line was
  12750. CONFIG_FILES = $CONFIG_FILES
  12751. CONFIG_HEADERS = $CONFIG_HEADERS
  12752. CONFIG_LINKS = $CONFIG_LINKS
  12753. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12754. $ $0 $@
  12755. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12756. "
  12757. _ACEOF
  12758. case $ac_config_files in *"
  12759. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12760. esac
  12761. case $ac_config_headers in *"
  12762. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12763. esac
  12764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12765. # Files that config.status was made for.
  12766. config_files="$ac_config_files"
  12767. config_headers="$ac_config_headers"
  12768. _ACEOF
  12769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12770. ac_cs_usage="\
  12771. \`$as_me' instantiates files and other configuration actions
  12772. from templates according to the current configuration. Unless the files
  12773. and actions are specified as TAGs, all are instantiated by default.
  12774. Usage: $0 [OPTION]... [TAG]...
  12775. -h, --help print this help, then exit
  12776. -V, --version print version number and configuration settings, then exit
  12777. --config print configuration, then exit
  12778. -q, --quiet, --silent
  12779. do not print progress messages
  12780. -d, --debug don't remove temporary files
  12781. --recheck update $as_me by reconfiguring in the same conditions
  12782. --file=FILE[:TEMPLATE]
  12783. instantiate the configuration file FILE
  12784. --header=FILE[:TEMPLATE]
  12785. instantiate the configuration header FILE
  12786. Configuration files:
  12787. $config_files
  12788. Configuration headers:
  12789. $config_headers
  12790. Report bugs to the package provider."
  12791. _ACEOF
  12792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12793. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12794. ac_cs_version="\\
  12795. config.status
  12796. configured by $0, generated by GNU Autoconf 2.69,
  12797. with options \\"\$ac_cs_config\\"
  12798. Copyright (C) 2012 Free Software Foundation, Inc.
  12799. This config.status script is free software; the Free Software Foundation
  12800. gives unlimited permission to copy, distribute and modify it."
  12801. ac_pwd='$ac_pwd'
  12802. srcdir='$srcdir'
  12803. INSTALL='$INSTALL'
  12804. test -n "\$AWK" || AWK=awk
  12805. _ACEOF
  12806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12807. # The default lists apply if the user does not specify any file.
  12808. ac_need_defaults=:
  12809. while test $# != 0
  12810. do
  12811. case $1 in
  12812. --*=?*)
  12813. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12814. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12815. ac_shift=:
  12816. ;;
  12817. --*=)
  12818. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12819. ac_optarg=
  12820. ac_shift=:
  12821. ;;
  12822. *)
  12823. ac_option=$1
  12824. ac_optarg=$2
  12825. ac_shift=shift
  12826. ;;
  12827. esac
  12828. case $ac_option in
  12829. # Handling of the options.
  12830. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12831. ac_cs_recheck=: ;;
  12832. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12833. $as_echo "$ac_cs_version"; exit ;;
  12834. --config | --confi | --conf | --con | --co | --c )
  12835. $as_echo "$ac_cs_config"; exit ;;
  12836. --debug | --debu | --deb | --de | --d | -d )
  12837. debug=: ;;
  12838. --file | --fil | --fi | --f )
  12839. $ac_shift
  12840. case $ac_optarg in
  12841. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12842. '') as_fn_error $? "missing file argument" ;;
  12843. esac
  12844. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12845. ac_need_defaults=false;;
  12846. --header | --heade | --head | --hea )
  12847. $ac_shift
  12848. case $ac_optarg in
  12849. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12850. esac
  12851. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12852. ac_need_defaults=false;;
  12853. --he | --h)
  12854. # Conflict between --help and --header
  12855. as_fn_error $? "ambiguous option: \`$1'
  12856. Try \`$0 --help' for more information.";;
  12857. --help | --hel | -h )
  12858. $as_echo "$ac_cs_usage"; exit ;;
  12859. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12860. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12861. ac_cs_silent=: ;;
  12862. # This is an error.
  12863. -*) as_fn_error $? "unrecognized option: \`$1'
  12864. Try \`$0 --help' for more information." ;;
  12865. *) as_fn_append ac_config_targets " $1"
  12866. ac_need_defaults=false ;;
  12867. esac
  12868. shift
  12869. done
  12870. ac_configure_extra_args=
  12871. if $ac_cs_silent; then
  12872. exec 6>/dev/null
  12873. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12874. fi
  12875. _ACEOF
  12876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12877. if \$ac_cs_recheck; then
  12878. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12879. shift
  12880. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12881. CONFIG_SHELL='$SHELL'
  12882. export CONFIG_SHELL
  12883. exec "\$@"
  12884. fi
  12885. _ACEOF
  12886. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12887. exec 5>>config.log
  12888. {
  12889. echo
  12890. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12891. ## Running $as_me. ##
  12892. _ASBOX
  12893. $as_echo "$ac_log"
  12894. } >&5
  12895. _ACEOF
  12896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12897. _ACEOF
  12898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12899. # Handling of arguments.
  12900. for ac_config_target in $ac_config_targets
  12901. do
  12902. case $ac_config_target in
  12903. "include/grass/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/grass/config.h" ;;
  12904. "include/Make/Platform.make") CONFIG_FILES="$CONFIG_FILES include/Make/Platform.make" ;;
  12905. "include/Make/Doxyfile_arch_html") CONFIG_FILES="$CONFIG_FILES include/Make/Doxyfile_arch_html" ;;
  12906. "include/Make/Doxyfile_arch_latex") CONFIG_FILES="$CONFIG_FILES include/Make/Doxyfile_arch_latex" ;;
  12907. "include/grass/version.h") CONFIG_FILES="$CONFIG_FILES include/grass/version.h" ;;
  12908. "grass.pc") CONFIG_FILES="$CONFIG_FILES grass.pc" ;;
  12909. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12910. esac
  12911. done
  12912. # If the user did not use the arguments to specify the items to instantiate,
  12913. # then the envvar interface is used. Set only those that are not.
  12914. # We use the long form for the default assignment because of an extremely
  12915. # bizarre bug on SunOS 4.1.3.
  12916. if $ac_need_defaults; then
  12917. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12918. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12919. fi
  12920. # Have a temporary directory for convenience. Make it in the build tree
  12921. # simply because there is no reason against having it here, and in addition,
  12922. # creating and moving files from /tmp can sometimes cause problems.
  12923. # Hook for its removal unless debugging.
  12924. # Note that there is a small window in which the directory will not be cleaned:
  12925. # after its creation but before its name has been assigned to `$tmp'.
  12926. $debug ||
  12927. {
  12928. tmp= ac_tmp=
  12929. trap 'exit_status=$?
  12930. : "${ac_tmp:=$tmp}"
  12931. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12932. ' 0
  12933. trap 'as_fn_exit 1' 1 2 13 15
  12934. }
  12935. # Create a (secure) tmp directory for tmp files.
  12936. {
  12937. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12938. test -d "$tmp"
  12939. } ||
  12940. {
  12941. tmp=./conf$$-$RANDOM
  12942. (umask 077 && mkdir "$tmp")
  12943. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12944. ac_tmp=$tmp
  12945. # Set up the scripts for CONFIG_FILES section.
  12946. # No need to generate them if there are no CONFIG_FILES.
  12947. # This happens for instance with `./config.status config.h'.
  12948. if test -n "$CONFIG_FILES"; then
  12949. ac_cr=`echo X | tr X '\015'`
  12950. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12951. # But we know of no other shell where ac_cr would be empty at this
  12952. # point, so we can use a bashism as a fallback.
  12953. if test "x$ac_cr" = x; then
  12954. eval ac_cr=\$\'\\r\'
  12955. fi
  12956. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12957. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12958. ac_cs_awk_cr='\\r'
  12959. else
  12960. ac_cs_awk_cr=$ac_cr
  12961. fi
  12962. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12963. _ACEOF
  12964. {
  12965. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12966. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12967. echo "_ACEOF"
  12968. } >conf$$subs.sh ||
  12969. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12970. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12971. ac_delim='%!_!# '
  12972. for ac_last_try in false false false false false :; do
  12973. . ./conf$$subs.sh ||
  12974. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12975. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12976. if test $ac_delim_n = $ac_delim_num; then
  12977. break
  12978. elif $ac_last_try; then
  12979. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12980. else
  12981. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12982. fi
  12983. done
  12984. rm -f conf$$subs.sh
  12985. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12986. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12987. _ACEOF
  12988. sed -n '
  12989. h
  12990. s/^/S["/; s/!.*/"]=/
  12991. p
  12992. g
  12993. s/^[^!]*!//
  12994. :repl
  12995. t repl
  12996. s/'"$ac_delim"'$//
  12997. t delim
  12998. :nl
  12999. h
  13000. s/\(.\{148\}\)..*/\1/
  13001. t more1
  13002. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13003. p
  13004. n
  13005. b repl
  13006. :more1
  13007. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13008. p
  13009. g
  13010. s/.\{148\}//
  13011. t nl
  13012. :delim
  13013. h
  13014. s/\(.\{148\}\)..*/\1/
  13015. t more2
  13016. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13017. p
  13018. b
  13019. :more2
  13020. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13021. p
  13022. g
  13023. s/.\{148\}//
  13024. t delim
  13025. ' <conf$$subs.awk | sed '
  13026. /^[^""]/{
  13027. N
  13028. s/\n//
  13029. }
  13030. ' >>$CONFIG_STATUS || ac_write_fail=1
  13031. rm -f conf$$subs.awk
  13032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13033. _ACAWK
  13034. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13035. for (key in S) S_is_set[key] = 1
  13036. FS = ""
  13037. }
  13038. {
  13039. line = $ 0
  13040. nfields = split(line, field, "@")
  13041. substed = 0
  13042. len = length(field[1])
  13043. for (i = 2; i < nfields; i++) {
  13044. key = field[i]
  13045. keylen = length(key)
  13046. if (S_is_set[key]) {
  13047. value = S[key]
  13048. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13049. len += length(value) + length(field[++i])
  13050. substed = 1
  13051. } else
  13052. len += 1 + keylen
  13053. }
  13054. print line
  13055. }
  13056. _ACAWK
  13057. _ACEOF
  13058. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13059. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13060. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13061. else
  13062. cat
  13063. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13064. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13065. _ACEOF
  13066. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13067. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13068. # trailing colons and then remove the whole line if VPATH becomes empty
  13069. # (actually we leave an empty line to preserve line numbers).
  13070. if test "x$srcdir" = x.; then
  13071. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13072. h
  13073. s///
  13074. s/^/:/
  13075. s/[ ]*$/:/
  13076. s/:\$(srcdir):/:/g
  13077. s/:\${srcdir}:/:/g
  13078. s/:@srcdir@:/:/g
  13079. s/^:*//
  13080. s/:*$//
  13081. x
  13082. s/\(=[ ]*\).*/\1/
  13083. G
  13084. s/\n//
  13085. s/^[^=]*=[ ]*$//
  13086. }'
  13087. fi
  13088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13089. fi # test -n "$CONFIG_FILES"
  13090. # Set up the scripts for CONFIG_HEADERS section.
  13091. # No need to generate them if there are no CONFIG_HEADERS.
  13092. # This happens for instance with `./config.status Makefile'.
  13093. if test -n "$CONFIG_HEADERS"; then
  13094. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13095. BEGIN {
  13096. _ACEOF
  13097. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13098. # here-document in config.status, that substitutes the proper values into
  13099. # config.h.in to produce config.h.
  13100. # Create a delimiter string that does not exist in confdefs.h, to ease
  13101. # handling of long lines.
  13102. ac_delim='%!_!# '
  13103. for ac_last_try in false false :; do
  13104. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13105. if test -z "$ac_tt"; then
  13106. break
  13107. elif $ac_last_try; then
  13108. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13109. else
  13110. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13111. fi
  13112. done
  13113. # For the awk script, D is an array of macro values keyed by name,
  13114. # likewise P contains macro parameters if any. Preserve backslash
  13115. # newline sequences.
  13116. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13117. sed -n '
  13118. s/.\{148\}/&'"$ac_delim"'/g
  13119. t rset
  13120. :rset
  13121. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13122. t def
  13123. d
  13124. :def
  13125. s/\\$//
  13126. t bsnl
  13127. s/["\\]/\\&/g
  13128. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13129. D["\1"]=" \3"/p
  13130. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13131. d
  13132. :bsnl
  13133. s/["\\]/\\&/g
  13134. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13135. D["\1"]=" \3\\\\\\n"\\/p
  13136. t cont
  13137. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13138. t cont
  13139. d
  13140. :cont
  13141. n
  13142. s/.\{148\}/&'"$ac_delim"'/g
  13143. t clear
  13144. :clear
  13145. s/\\$//
  13146. t bsnlc
  13147. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13148. d
  13149. :bsnlc
  13150. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13151. b cont
  13152. ' <confdefs.h | sed '
  13153. s/'"$ac_delim"'/"\\\
  13154. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13156. for (key in D) D_is_set[key] = 1
  13157. FS = ""
  13158. }
  13159. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13160. line = \$ 0
  13161. split(line, arg, " ")
  13162. if (arg[1] == "#") {
  13163. defundef = arg[2]
  13164. mac1 = arg[3]
  13165. } else {
  13166. defundef = substr(arg[1], 2)
  13167. mac1 = arg[2]
  13168. }
  13169. split(mac1, mac2, "(") #)
  13170. macro = mac2[1]
  13171. prefix = substr(line, 1, index(line, defundef) - 1)
  13172. if (D_is_set[macro]) {
  13173. # Preserve the white space surrounding the "#".
  13174. print prefix "define", macro P[macro] D[macro]
  13175. next
  13176. } else {
  13177. # Replace #undef with comments. This is necessary, for example,
  13178. # in the case of _POSIX_SOURCE, which is predefined and required
  13179. # on some systems where configure will not decide to define it.
  13180. if (defundef == "undef") {
  13181. print "/*", prefix defundef, macro, "*/"
  13182. next
  13183. }
  13184. }
  13185. }
  13186. { print }
  13187. _ACAWK
  13188. _ACEOF
  13189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13190. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13191. fi # test -n "$CONFIG_HEADERS"
  13192. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13193. shift
  13194. for ac_tag
  13195. do
  13196. case $ac_tag in
  13197. :[FHLC]) ac_mode=$ac_tag; continue;;
  13198. esac
  13199. case $ac_mode$ac_tag in
  13200. :[FHL]*:*);;
  13201. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13202. :[FH]-) ac_tag=-:-;;
  13203. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13204. esac
  13205. ac_save_IFS=$IFS
  13206. IFS=:
  13207. set x $ac_tag
  13208. IFS=$ac_save_IFS
  13209. shift
  13210. ac_file=$1
  13211. shift
  13212. case $ac_mode in
  13213. :L) ac_source=$1;;
  13214. :[FH])
  13215. ac_file_inputs=
  13216. for ac_f
  13217. do
  13218. case $ac_f in
  13219. -) ac_f="$ac_tmp/stdin";;
  13220. *) # Look for the file first in the build tree, then in the source tree
  13221. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13222. # because $ac_f cannot contain `:'.
  13223. test -f "$ac_f" ||
  13224. case $ac_f in
  13225. [\\/$]*) false;;
  13226. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13227. esac ||
  13228. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13229. esac
  13230. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13231. as_fn_append ac_file_inputs " '$ac_f'"
  13232. done
  13233. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13234. # use $as_me), people would be surprised to read:
  13235. # /* config.h. Generated by config.status. */
  13236. configure_input='Generated from '`
  13237. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13238. `' by configure.'
  13239. if test x"$ac_file" != x-; then
  13240. configure_input="$ac_file. $configure_input"
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13242. $as_echo "$as_me: creating $ac_file" >&6;}
  13243. fi
  13244. # Neutralize special characters interpreted by sed in replacement strings.
  13245. case $configure_input in #(
  13246. *\&* | *\|* | *\\* )
  13247. ac_sed_conf_input=`$as_echo "$configure_input" |
  13248. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13249. *) ac_sed_conf_input=$configure_input;;
  13250. esac
  13251. case $ac_tag in
  13252. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13253. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13254. esac
  13255. ;;
  13256. esac
  13257. ac_dir=`$as_dirname -- "$ac_file" ||
  13258. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13259. X"$ac_file" : 'X\(//\)[^/]' \| \
  13260. X"$ac_file" : 'X\(//\)$' \| \
  13261. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13262. $as_echo X"$ac_file" |
  13263. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13264. s//\1/
  13265. q
  13266. }
  13267. /^X\(\/\/\)[^/].*/{
  13268. s//\1/
  13269. q
  13270. }
  13271. /^X\(\/\/\)$/{
  13272. s//\1/
  13273. q
  13274. }
  13275. /^X\(\/\).*/{
  13276. s//\1/
  13277. q
  13278. }
  13279. s/.*/./; q'`
  13280. as_dir="$ac_dir"; as_fn_mkdir_p
  13281. ac_builddir=.
  13282. case "$ac_dir" in
  13283. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13284. *)
  13285. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13286. # A ".." for each directory in $ac_dir_suffix.
  13287. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13288. case $ac_top_builddir_sub in
  13289. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13290. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13291. esac ;;
  13292. esac
  13293. ac_abs_top_builddir=$ac_pwd
  13294. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13295. # for backward compatibility:
  13296. ac_top_builddir=$ac_top_build_prefix
  13297. case $srcdir in
  13298. .) # We are building in place.
  13299. ac_srcdir=.
  13300. ac_top_srcdir=$ac_top_builddir_sub
  13301. ac_abs_top_srcdir=$ac_pwd ;;
  13302. [\\/]* | ?:[\\/]* ) # Absolute name.
  13303. ac_srcdir=$srcdir$ac_dir_suffix;
  13304. ac_top_srcdir=$srcdir
  13305. ac_abs_top_srcdir=$srcdir ;;
  13306. *) # Relative name.
  13307. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13308. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13309. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13310. esac
  13311. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13312. case $ac_mode in
  13313. :F)
  13314. #
  13315. # CONFIG_FILE
  13316. #
  13317. case $INSTALL in
  13318. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13319. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13320. esac
  13321. _ACEOF
  13322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13323. # If the template does not know about datarootdir, expand it.
  13324. # FIXME: This hack should be removed a few years after 2.60.
  13325. ac_datarootdir_hack=; ac_datarootdir_seen=
  13326. ac_sed_dataroot='
  13327. /datarootdir/ {
  13328. p
  13329. q
  13330. }
  13331. /@datadir@/p
  13332. /@docdir@/p
  13333. /@infodir@/p
  13334. /@localedir@/p
  13335. /@mandir@/p'
  13336. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13337. *datarootdir*) ac_datarootdir_seen=yes;;
  13338. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13340. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13341. _ACEOF
  13342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13343. ac_datarootdir_hack='
  13344. s&@datadir@&$datadir&g
  13345. s&@docdir@&$docdir&g
  13346. s&@infodir@&$infodir&g
  13347. s&@localedir@&$localedir&g
  13348. s&@mandir@&$mandir&g
  13349. s&\\\${datarootdir}&$datarootdir&g' ;;
  13350. esac
  13351. _ACEOF
  13352. # Neutralize VPATH when `$srcdir' = `.'.
  13353. # Shell code in configure.ac might set extrasub.
  13354. # FIXME: do we really want to maintain this feature?
  13355. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13356. ac_sed_extra="$ac_vpsub
  13357. $extrasub
  13358. _ACEOF
  13359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13360. :t
  13361. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13362. s|@configure_input@|$ac_sed_conf_input|;t t
  13363. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13364. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13365. s&@srcdir@&$ac_srcdir&;t t
  13366. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13367. s&@top_srcdir@&$ac_top_srcdir&;t t
  13368. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13369. s&@builddir@&$ac_builddir&;t t
  13370. s&@abs_builddir@&$ac_abs_builddir&;t t
  13371. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13372. s&@INSTALL@&$ac_INSTALL&;t t
  13373. $ac_datarootdir_hack
  13374. "
  13375. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13376. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13377. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13378. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13379. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13380. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13382. which seems to be undefined. Please make sure it is defined" >&5
  13383. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13384. which seems to be undefined. Please make sure it is defined" >&2;}
  13385. rm -f "$ac_tmp/stdin"
  13386. case $ac_file in
  13387. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13388. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13389. esac \
  13390. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13391. ;;
  13392. :H)
  13393. #
  13394. # CONFIG_HEADER
  13395. #
  13396. if test x"$ac_file" != x-; then
  13397. {
  13398. $as_echo "/* $configure_input */" \
  13399. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13400. } >"$ac_tmp/config.h" \
  13401. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13402. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13404. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13405. else
  13406. rm -f "$ac_file"
  13407. mv "$ac_tmp/config.h" "$ac_file" \
  13408. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13409. fi
  13410. else
  13411. $as_echo "/* $configure_input */" \
  13412. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13413. || as_fn_error $? "could not create -" "$LINENO" 5
  13414. fi
  13415. ;;
  13416. esac
  13417. done # for ac_tag
  13418. as_fn_exit 0
  13419. _ACEOF
  13420. ac_clean_files=$ac_clean_files_save
  13421. test $ac_write_fail = 0 ||
  13422. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13423. # configure is writing to config.log, and then calls config.status.
  13424. # config.status does its own redirection, appending to config.log.
  13425. # Unfortunately, on DOS this fails, as config.log is still kept open
  13426. # by configure, so config.status won't be able to write to it; its
  13427. # output is simply discarded. So we exec the FD to /dev/null,
  13428. # effectively closing config.log, so it can be properly (re)opened and
  13429. # appended to by config.status. When coming back to configure, we
  13430. # need to make the FD available again.
  13431. if test "$no_create" != yes; then
  13432. ac_cs_success=:
  13433. ac_config_status_args=
  13434. test "$silent" = yes &&
  13435. ac_config_status_args="$ac_config_status_args --quiet"
  13436. exec 5>/dev/null
  13437. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13438. exec 5>>config.log
  13439. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13440. # would make configure fail if this is the last instruction.
  13441. $ac_cs_success || as_fn_exit 1
  13442. fi
  13443. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13445. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13446. fi
  13447. echo "Copying config.status to config.status.${ARCH}"
  13448. cp -f config.status config.status.${ARCH}
  13449. # Display configuration status
  13450. echo ""
  13451. echo "GRASS is now configured for: ${host}"
  13452. echo ""
  13453. echo " Source directory: ${SRCDIR}"
  13454. echo " Build directory: ${DSTDIR}"
  13455. echo " Installation directory: ${INSTDIR}"
  13456. echo " Startup script in directory:${bindir}"
  13457. echo " C compiler: ${CC} ${CFLAGS}"
  13458. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  13459. echo " Building shared libraries: ${shared_ok}"
  13460. echo " OpenGL platform: ${OPENGL_TYPE}"
  13461. echo ""
  13462. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  13463. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  13464. echo " MacOSX SDK: ${MACOSX_SDK}"
  13465. echo ""
  13466. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  13467. echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
  13468. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  13469. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  13470. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  13471. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  13472. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  13473. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  13474. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  13475. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  13476. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  13477. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  13478. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  13479. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  13480. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  13481. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  13482. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  13483. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  13484. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  13485. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  13486. echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
  13487. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  13488. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  13489. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  13490. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  13491. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  13492. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  13493. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  13494. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  13495. echo " Zstandard support: `if test -n "${USE_ZSTD}" ; then echo yes ; else echo no ; fi`"
  13496. echo ""
  13497. # remove when the new PROJ API is stable
  13498. if test $PROJ4API = 0 ; then
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using new PROJ 5+ API" >&5
  13500. $as_echo " using new PROJ 5+ API" >&6; }
  13501. else
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using old PROJ 4 API" >&5
  13503. $as_echo " using old PROJ 4 API" >&6; }
  13504. fi
  13505. echo ""