configure 264 KB

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