configure 167 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. #
  12. # "Menuselect"
  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. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  252. $0: including any error possibly output before this
  253. $0: message. Then install a modern shell, or manually run
  254. $0: the script under such a shell if you do have one."
  255. fi
  256. exit 1
  257. fi
  258. fi
  259. fi
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261. export SHELL
  262. # Unset more variables known to interfere with behavior of common tools.
  263. CLICOLOR_FORCE= GREP_OPTIONS=
  264. unset CLICOLOR_FORCE GREP_OPTIONS
  265. ## --------------------- ##
  266. ## M4sh Shell Functions. ##
  267. ## --------------------- ##
  268. # as_fn_unset VAR
  269. # ---------------
  270. # Portably unset VAR.
  271. as_fn_unset ()
  272. {
  273. { eval $1=; unset $1;}
  274. }
  275. as_unset=as_fn_unset
  276. # as_fn_set_status STATUS
  277. # -----------------------
  278. # Set $? to STATUS, without forking.
  279. as_fn_set_status ()
  280. {
  281. return $1
  282. } # as_fn_set_status
  283. # as_fn_exit STATUS
  284. # -----------------
  285. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  286. as_fn_exit ()
  287. {
  288. set +e
  289. as_fn_set_status $1
  290. exit $1
  291. } # as_fn_exit
  292. # as_fn_mkdir_p
  293. # -------------
  294. # Create "$as_dir" as a directory, including parents if necessary.
  295. as_fn_mkdir_p ()
  296. {
  297. case $as_dir in #(
  298. -*) as_dir=./$as_dir;;
  299. esac
  300. test -d "$as_dir" || eval $as_mkdir_p || {
  301. as_dirs=
  302. while :; do
  303. case $as_dir in #(
  304. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  305. *) as_qdir=$as_dir;;
  306. esac
  307. as_dirs="'$as_qdir' $as_dirs"
  308. as_dir=`$as_dirname -- "$as_dir" ||
  309. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  310. X"$as_dir" : 'X\(//\)[^/]' \| \
  311. X"$as_dir" : 'X\(//\)$' \| \
  312. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  313. $as_echo X"$as_dir" |
  314. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  315. s//\1/
  316. q
  317. }
  318. /^X\(\/\/\)[^/].*/{
  319. s//\1/
  320. q
  321. }
  322. /^X\(\/\/\)$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\).*/{
  327. s//\1/
  328. q
  329. }
  330. s/.*/./; q'`
  331. test -d "$as_dir" && break
  332. done
  333. test -z "$as_dirs" || eval "mkdir $as_dirs"
  334. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  335. } # as_fn_mkdir_p
  336. # as_fn_executable_p FILE
  337. # -----------------------
  338. # Test if FILE is an executable regular file.
  339. as_fn_executable_p ()
  340. {
  341. test -f "$1" && test -x "$1"
  342. } # as_fn_executable_p
  343. # as_fn_append VAR VALUE
  344. # ----------------------
  345. # Append the text in VALUE to the end of the definition contained in VAR. Take
  346. # advantage of any shell optimizations that allow amortized linear growth over
  347. # repeated appends, instead of the typical quadratic growth present in naive
  348. # implementations.
  349. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  350. eval 'as_fn_append ()
  351. {
  352. eval $1+=\$2
  353. }'
  354. else
  355. as_fn_append ()
  356. {
  357. eval $1=\$$1\$2
  358. }
  359. fi # as_fn_append
  360. # as_fn_arith ARG...
  361. # ------------------
  362. # Perform arithmetic evaluation on the ARGs, and store the result in the
  363. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  364. # must be portable across $(()) and expr.
  365. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  366. eval 'as_fn_arith ()
  367. {
  368. as_val=$(( $* ))
  369. }'
  370. else
  371. as_fn_arith ()
  372. {
  373. as_val=`expr "$@" || test $? -eq 1`
  374. }
  375. fi # as_fn_arith
  376. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  377. # ----------------------------------------
  378. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  379. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  380. # script with STATUS, using 1 if that was 0.
  381. as_fn_error ()
  382. {
  383. as_status=$1; test $as_status -eq 0 && as_status=1
  384. if test "$4"; then
  385. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  386. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  387. fi
  388. $as_echo "$as_me: error: $2" >&2
  389. as_fn_exit $as_status
  390. } # as_fn_error
  391. if expr a : '\(a\)' >/dev/null 2>&1 &&
  392. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  393. as_expr=expr
  394. else
  395. as_expr=false
  396. fi
  397. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  398. as_basename=basename
  399. else
  400. as_basename=false
  401. fi
  402. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  403. as_dirname=dirname
  404. else
  405. as_dirname=false
  406. fi
  407. as_me=`$as_basename -- "$0" ||
  408. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  409. X"$0" : 'X\(//\)$' \| \
  410. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  411. $as_echo X/"$0" |
  412. sed '/^.*\/\([^/][^/]*\)\/*$/{
  413. s//\1/
  414. q
  415. }
  416. /^X\/\(\/\/\)$/{
  417. s//\1/
  418. q
  419. }
  420. /^X\/\(\/\).*/{
  421. s//\1/
  422. q
  423. }
  424. s/.*/./; q'`
  425. # Avoid depending upon Character Ranges.
  426. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  427. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  428. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  429. as_cr_digits='0123456789'
  430. as_cr_alnum=$as_cr_Letters$as_cr_digits
  431. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  432. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  433. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  434. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  435. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  436. sed -n '
  437. p
  438. /[$]LINENO/=
  439. ' <$as_myself |
  440. sed '
  441. s/[$]LINENO.*/&-/
  442. t lineno
  443. b
  444. :lineno
  445. N
  446. :loop
  447. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  448. t loop
  449. s/-\n.*//
  450. ' >$as_me.lineno &&
  451. chmod +x "$as_me.lineno" ||
  452. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  453. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  454. # already done that, so ensure we don't try to do so again and fall
  455. # in an infinite loop. This has already happened in practice.
  456. _as_can_reexec=no; export _as_can_reexec
  457. # Don't try to exec as it changes $[0], causing all sort of problems
  458. # (the dirname of $[0] is not the place where we might find the
  459. # original and so on. Autoconf is especially sensitive to this).
  460. . "./$as_me.lineno"
  461. # Exit status is that of the last command.
  462. exit
  463. }
  464. ECHO_C= ECHO_N= ECHO_T=
  465. case `echo -n x` in #(((((
  466. -n*)
  467. case `echo 'xy\c'` in
  468. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  469. xy) ECHO_C='\c';;
  470. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  471. ECHO_T=' ';;
  472. esac;;
  473. *)
  474. ECHO_N='-n';;
  475. esac
  476. rm -f conf$$ conf$$.exe conf$$.file
  477. if test -d conf$$.dir; then
  478. rm -f conf$$.dir/conf$$.file
  479. else
  480. rm -f conf$$.dir
  481. mkdir conf$$.dir 2>/dev/null
  482. fi
  483. if (echo >conf$$.file) 2>/dev/null; then
  484. if ln -s conf$$.file conf$$ 2>/dev/null; then
  485. as_ln_s='ln -s'
  486. # ... but there are two gotchas:
  487. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  488. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  489. # In both cases, we have to default to `cp -pR'.
  490. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  491. as_ln_s='cp -pR'
  492. elif ln conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s=ln
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. else
  498. as_ln_s='cp -pR'
  499. fi
  500. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  501. rmdir conf$$.dir 2>/dev/null
  502. if mkdir -p . 2>/dev/null; then
  503. as_mkdir_p='mkdir -p "$as_dir"'
  504. else
  505. test -d ./-p && rmdir ./-p
  506. as_mkdir_p=false
  507. fi
  508. as_test_x='test -x'
  509. as_executable_p=as_fn_executable_p
  510. # Sed expression to map a string onto a valid CPP name.
  511. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  512. # Sed expression to map a string onto a valid variable name.
  513. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  514. test -n "$DJDIR" || exec 7<&0 </dev/null
  515. exec 6>&1
  516. # Name of the host.
  517. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  518. # so uname gets run too.
  519. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  520. #
  521. # Initializations.
  522. #
  523. ac_default_prefix=/usr/local
  524. ac_clean_files=
  525. ac_config_libobj_dir=.
  526. LIBOBJS=
  527. cross_compiling=no
  528. subdirs=
  529. MFLAGS=
  530. MAKEFLAGS=
  531. # Identity of this package.
  532. PACKAGE_NAME=
  533. PACKAGE_TARNAME=
  534. PACKAGE_VERSION=
  535. PACKAGE_STRING=
  536. PACKAGE_BUGREPORT=
  537. PACKAGE_URL=
  538. ac_unique_file="menuselect"
  539. ac_unique_file="menuselect.c"
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_subst_vars='LTLIBOBJS
  576. LIBOBJS
  577. GTK2_LIB
  578. GTK2_INCLUDE
  579. PBX_GTK2
  580. GTK2_LIBS
  581. GTK2_CFLAGS
  582. PKG_CONFIG_LIBDIR
  583. PKG_CONFIG_PATH
  584. PKG_CONFIG
  585. CONFIG_LIBXML2
  586. SED
  587. HAVE_NCURSES_SUBDIR
  588. PBX_LIBXML2
  589. LIBXML2_DIR
  590. LIBXML2_INCLUDE
  591. LIBXML2_LIB
  592. PBX_NCURSES
  593. NCURSES_DIR
  594. NCURSES_INCLUDE
  595. NCURSES_LIB
  596. PBX_CURSES
  597. CURSES_DIR
  598. CURSES_INCLUDE
  599. CURSES_LIB
  600. PBX_NEWT
  601. NEWT_DIR
  602. NEWT_INCLUDE
  603. NEWT_LIB
  604. ALLOCA
  605. EGREP
  606. GREP
  607. CPP
  608. MENUSELECT_DEBUG
  609. GNU_MAKE
  610. OBJEXT
  611. EXEEXT
  612. ac_ct_CC
  613. CPPFLAGS
  614. LDFLAGS
  615. CFLAGS
  616. CC
  617. HOST_OS
  618. host_os
  619. host_vendor
  620. host_cpu
  621. host
  622. build_os
  623. build_vendor
  624. build_cpu
  625. build
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_debug
  668. with_newt
  669. with_curses
  670. with_ncurses
  671. with_libxml2
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CC
  677. CFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CPP
  682. PKG_CONFIG
  683. PKG_CONFIG_PATH
  684. PKG_CONFIG_LIBDIR
  685. GTK2_CFLAGS
  686. GTK2_LIBS'
  687. # Initialize some variables set by options.
  688. ac_init_help=
  689. ac_init_version=false
  690. ac_unrecognized_opts=
  691. ac_unrecognized_sep=
  692. # The variables have the same names as the options, with
  693. # dashes changed to underlines.
  694. cache_file=/dev/null
  695. exec_prefix=NONE
  696. no_create=
  697. no_recursion=
  698. prefix=NONE
  699. program_prefix=NONE
  700. program_suffix=NONE
  701. program_transform_name=s,x,x,
  702. silent=
  703. site=
  704. srcdir=
  705. verbose=
  706. x_includes=NONE
  707. x_libraries=NONE
  708. # Installation directory options.
  709. # These are left unexpanded so users can "make install exec_prefix=/foo"
  710. # and all the variables that are supposed to be based on exec_prefix
  711. # by default will actually change.
  712. # Use braces instead of parens because sh, perl, etc. also accept them.
  713. # (The list follows the same order as the GNU Coding Standards.)
  714. bindir='${exec_prefix}/bin'
  715. sbindir='${exec_prefix}/sbin'
  716. libexecdir='${exec_prefix}/libexec'
  717. datarootdir='${prefix}/share'
  718. datadir='${datarootdir}'
  719. sysconfdir='${prefix}/etc'
  720. sharedstatedir='${prefix}/com'
  721. localstatedir='${prefix}/var'
  722. includedir='${prefix}/include'
  723. oldincludedir='/usr/include'
  724. docdir='${datarootdir}/doc/${PACKAGE}'
  725. infodir='${datarootdir}/info'
  726. htmldir='${docdir}'
  727. dvidir='${docdir}'
  728. pdfdir='${docdir}'
  729. psdir='${docdir}'
  730. libdir='${exec_prefix}/lib'
  731. localedir='${datarootdir}/locale'
  732. mandir='${datarootdir}/man'
  733. ac_prev=
  734. ac_dashdash=
  735. for ac_option
  736. do
  737. # If the previous option needs an argument, assign it.
  738. if test -n "$ac_prev"; then
  739. eval $ac_prev=\$ac_option
  740. ac_prev=
  741. continue
  742. fi
  743. case $ac_option in
  744. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  745. *=) ac_optarg= ;;
  746. *) ac_optarg=yes ;;
  747. esac
  748. # Accept the important Cygnus configure options, so we can diagnose typos.
  749. case $ac_dashdash$ac_option in
  750. --)
  751. ac_dashdash=yes ;;
  752. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  753. ac_prev=bindir ;;
  754. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  755. bindir=$ac_optarg ;;
  756. -build | --build | --buil | --bui | --bu)
  757. ac_prev=build_alias ;;
  758. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  759. build_alias=$ac_optarg ;;
  760. -cache-file | --cache-file | --cache-fil | --cache-fi \
  761. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  762. ac_prev=cache_file ;;
  763. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  764. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  765. cache_file=$ac_optarg ;;
  766. --config-cache | -C)
  767. cache_file=config.cache ;;
  768. -datadir | --datadir | --datadi | --datad)
  769. ac_prev=datadir ;;
  770. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  771. datadir=$ac_optarg ;;
  772. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  773. | --dataroo | --dataro | --datar)
  774. ac_prev=datarootdir ;;
  775. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  776. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  777. datarootdir=$ac_optarg ;;
  778. -disable-* | --disable-*)
  779. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  780. # Reject names that are not valid shell variable names.
  781. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  782. as_fn_error $? "invalid feature name: $ac_useropt"
  783. ac_useropt_orig=$ac_useropt
  784. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  785. case $ac_user_opts in
  786. *"
  787. "enable_$ac_useropt"
  788. "*) ;;
  789. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  790. ac_unrecognized_sep=', ';;
  791. esac
  792. eval enable_$ac_useropt=no ;;
  793. -docdir | --docdir | --docdi | --doc | --do)
  794. ac_prev=docdir ;;
  795. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  796. docdir=$ac_optarg ;;
  797. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  798. ac_prev=dvidir ;;
  799. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  800. dvidir=$ac_optarg ;;
  801. -enable-* | --enable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error $? "invalid feature name: $ac_useropt"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=\$ac_optarg ;;
  816. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  817. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  818. | --exec | --exe | --ex)
  819. ac_prev=exec_prefix ;;
  820. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  821. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  822. | --exec=* | --exe=* | --ex=*)
  823. exec_prefix=$ac_optarg ;;
  824. -gas | --gas | --ga | --g)
  825. # Obsolete; use --with-gas.
  826. with_gas=yes ;;
  827. -help | --help | --hel | --he | -h)
  828. ac_init_help=long ;;
  829. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  830. ac_init_help=recursive ;;
  831. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  832. ac_init_help=short ;;
  833. -host | --host | --hos | --ho)
  834. ac_prev=host_alias ;;
  835. -host=* | --host=* | --hos=* | --ho=*)
  836. host_alias=$ac_optarg ;;
  837. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  838. ac_prev=htmldir ;;
  839. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  840. | --ht=*)
  841. htmldir=$ac_optarg ;;
  842. -includedir | --includedir | --includedi | --included | --include \
  843. | --includ | --inclu | --incl | --inc)
  844. ac_prev=includedir ;;
  845. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  846. | --includ=* | --inclu=* | --incl=* | --inc=*)
  847. includedir=$ac_optarg ;;
  848. -infodir | --infodir | --infodi | --infod | --info | --inf)
  849. ac_prev=infodir ;;
  850. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  851. infodir=$ac_optarg ;;
  852. -libdir | --libdir | --libdi | --libd)
  853. ac_prev=libdir ;;
  854. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  855. libdir=$ac_optarg ;;
  856. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  857. | --libexe | --libex | --libe)
  858. ac_prev=libexecdir ;;
  859. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  860. | --libexe=* | --libex=* | --libe=*)
  861. libexecdir=$ac_optarg ;;
  862. -localedir | --localedir | --localedi | --localed | --locale)
  863. ac_prev=localedir ;;
  864. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  865. localedir=$ac_optarg ;;
  866. -localstatedir | --localstatedir | --localstatedi | --localstated \
  867. | --localstate | --localstat | --localsta | --localst | --locals)
  868. ac_prev=localstatedir ;;
  869. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  870. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  871. localstatedir=$ac_optarg ;;
  872. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  873. ac_prev=mandir ;;
  874. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  875. mandir=$ac_optarg ;;
  876. -nfp | --nfp | --nf)
  877. # Obsolete; use --without-fp.
  878. with_fp=no ;;
  879. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  880. | --no-cr | --no-c | -n)
  881. no_create=yes ;;
  882. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  883. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  884. no_recursion=yes ;;
  885. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  886. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  887. | --oldin | --oldi | --old | --ol | --o)
  888. ac_prev=oldincludedir ;;
  889. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  890. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  891. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  892. oldincludedir=$ac_optarg ;;
  893. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  894. ac_prev=prefix ;;
  895. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  896. prefix=$ac_optarg ;;
  897. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  898. | --program-pre | --program-pr | --program-p)
  899. ac_prev=program_prefix ;;
  900. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  901. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  902. program_prefix=$ac_optarg ;;
  903. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  904. | --program-suf | --program-su | --program-s)
  905. ac_prev=program_suffix ;;
  906. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  907. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  908. program_suffix=$ac_optarg ;;
  909. -program-transform-name | --program-transform-name \
  910. | --program-transform-nam | --program-transform-na \
  911. | --program-transform-n | --program-transform- \
  912. | --program-transform | --program-transfor \
  913. | --program-transfo | --program-transf \
  914. | --program-trans | --program-tran \
  915. | --progr-tra | --program-tr | --program-t)
  916. ac_prev=program_transform_name ;;
  917. -program-transform-name=* | --program-transform-name=* \
  918. | --program-transform-nam=* | --program-transform-na=* \
  919. | --program-transform-n=* | --program-transform-=* \
  920. | --program-transform=* | --program-transfor=* \
  921. | --program-transfo=* | --program-transf=* \
  922. | --program-trans=* | --program-tran=* \
  923. | --progr-tra=* | --program-tr=* | --program-t=*)
  924. program_transform_name=$ac_optarg ;;
  925. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  926. ac_prev=pdfdir ;;
  927. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  928. pdfdir=$ac_optarg ;;
  929. -psdir | --psdir | --psdi | --psd | --ps)
  930. ac_prev=psdir ;;
  931. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  932. psdir=$ac_optarg ;;
  933. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  934. | -silent | --silent | --silen | --sile | --sil)
  935. silent=yes ;;
  936. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  937. ac_prev=sbindir ;;
  938. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  939. | --sbi=* | --sb=*)
  940. sbindir=$ac_optarg ;;
  941. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  942. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  943. | --sharedst | --shareds | --shared | --share | --shar \
  944. | --sha | --sh)
  945. ac_prev=sharedstatedir ;;
  946. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  947. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  948. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  949. | --sha=* | --sh=*)
  950. sharedstatedir=$ac_optarg ;;
  951. -site | --site | --sit)
  952. ac_prev=site ;;
  953. -site=* | --site=* | --sit=*)
  954. site=$ac_optarg ;;
  955. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  956. ac_prev=srcdir ;;
  957. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  958. srcdir=$ac_optarg ;;
  959. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  960. | --syscon | --sysco | --sysc | --sys | --sy)
  961. ac_prev=sysconfdir ;;
  962. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  963. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  964. sysconfdir=$ac_optarg ;;
  965. -target | --target | --targe | --targ | --tar | --ta | --t)
  966. ac_prev=target_alias ;;
  967. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  968. target_alias=$ac_optarg ;;
  969. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  970. verbose=yes ;;
  971. -version | --version | --versio | --versi | --vers | -V)
  972. ac_init_version=: ;;
  973. -with-* | --with-*)
  974. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  975. # Reject names that are not valid shell variable names.
  976. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  977. as_fn_error $? "invalid package name: $ac_useropt"
  978. ac_useropt_orig=$ac_useropt
  979. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  980. case $ac_user_opts in
  981. *"
  982. "with_$ac_useropt"
  983. "*) ;;
  984. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  985. ac_unrecognized_sep=', ';;
  986. esac
  987. eval with_$ac_useropt=\$ac_optarg ;;
  988. -without-* | --without-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=no ;;
  1003. --x)
  1004. # Obsolete; use --with-x.
  1005. with_x=yes ;;
  1006. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1007. | --x-incl | --x-inc | --x-in | --x-i)
  1008. ac_prev=x_includes ;;
  1009. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1010. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1011. x_includes=$ac_optarg ;;
  1012. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1013. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1014. ac_prev=x_libraries ;;
  1015. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1016. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1017. x_libraries=$ac_optarg ;;
  1018. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1019. Try \`$0 --help' for more information"
  1020. ;;
  1021. *=*)
  1022. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1023. # Reject names that are not valid shell variable names.
  1024. case $ac_envvar in #(
  1025. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1026. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1027. esac
  1028. eval $ac_envvar=\$ac_optarg
  1029. export $ac_envvar ;;
  1030. *)
  1031. # FIXME: should be removed in autoconf 3.0.
  1032. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1033. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1034. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1035. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1036. ;;
  1037. esac
  1038. done
  1039. if test -n "$ac_prev"; then
  1040. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1041. as_fn_error $? "missing argument to $ac_option"
  1042. fi
  1043. if test -n "$ac_unrecognized_opts"; then
  1044. case $enable_option_checking in
  1045. no) ;;
  1046. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1047. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1048. esac
  1049. fi
  1050. # Check all directory arguments for consistency.
  1051. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1052. datadir sysconfdir sharedstatedir localstatedir includedir \
  1053. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1054. libdir localedir mandir
  1055. do
  1056. eval ac_val=\$$ac_var
  1057. # Remove trailing slashes.
  1058. case $ac_val in
  1059. */ )
  1060. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1061. eval $ac_var=\$ac_val;;
  1062. esac
  1063. # Be sure to have absolute directory names.
  1064. case $ac_val in
  1065. [\\/$]* | ?:[\\/]* ) continue;;
  1066. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1067. esac
  1068. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1069. done
  1070. # There might be people who depend on the old broken behavior: `$host'
  1071. # used to hold the argument of --host etc.
  1072. # FIXME: To remove some day.
  1073. build=$build_alias
  1074. host=$host_alias
  1075. target=$target_alias
  1076. # FIXME: To remove some day.
  1077. if test "x$host_alias" != x; then
  1078. if test "x$build_alias" = x; then
  1079. cross_compiling=maybe
  1080. elif test "x$build_alias" != "x$host_alias"; then
  1081. cross_compiling=yes
  1082. fi
  1083. fi
  1084. ac_tool_prefix=
  1085. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1086. test "$silent" = yes && exec 6>/dev/null
  1087. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1088. ac_ls_di=`ls -di .` &&
  1089. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1090. as_fn_error $? "working directory cannot be determined"
  1091. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1092. as_fn_error $? "pwd does not report name of working directory"
  1093. # Find the source files, if location was not specified.
  1094. if test -z "$srcdir"; then
  1095. ac_srcdir_defaulted=yes
  1096. # Try the directory containing this script, then the parent directory.
  1097. ac_confdir=`$as_dirname -- "$as_myself" ||
  1098. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1099. X"$as_myself" : 'X\(//\)[^/]' \| \
  1100. X"$as_myself" : 'X\(//\)$' \| \
  1101. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1102. $as_echo X"$as_myself" |
  1103. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)[^/].*/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\/\)$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\).*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. s/.*/./; q'`
  1120. srcdir=$ac_confdir
  1121. if test ! -r "$srcdir/$ac_unique_file"; then
  1122. srcdir=..
  1123. fi
  1124. else
  1125. ac_srcdir_defaulted=no
  1126. fi
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1129. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1130. fi
  1131. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1132. ac_abs_confdir=`(
  1133. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1134. pwd)`
  1135. # When building in place, set srcdir=.
  1136. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1137. srcdir=.
  1138. fi
  1139. # Remove unnecessary trailing slashes from srcdir.
  1140. # Double slashes in file names in object file debugging info
  1141. # mess up M-x gdb in Emacs.
  1142. case $srcdir in
  1143. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1144. esac
  1145. for ac_var in $ac_precious_vars; do
  1146. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_env_${ac_var}_value=\$${ac_var}
  1148. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1149. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1150. done
  1151. #
  1152. # Report the --help message.
  1153. #
  1154. if test "$ac_init_help" = "long"; then
  1155. # Omit some internal or obsolete options to make the list less imposing.
  1156. # This message is too long to be a string in the A/UX 3.1 sh.
  1157. cat <<_ACEOF
  1158. \`configure' configures this package to adapt to many kinds of systems.
  1159. Usage: $0 [OPTION]... [VAR=VALUE]...
  1160. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1161. VAR=VALUE. See below for descriptions of some of the useful variables.
  1162. Defaults for the options are specified in brackets.
  1163. Configuration:
  1164. -h, --help display this help and exit
  1165. --help=short display options specific to this package
  1166. --help=recursive display the short help of all the included packages
  1167. -V, --version display version information and exit
  1168. -q, --quiet, --silent do not print \`checking ...' messages
  1169. --cache-file=FILE cache test results in FILE [disabled]
  1170. -C, --config-cache alias for \`--cache-file=config.cache'
  1171. -n, --no-create do not create output files
  1172. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1173. Installation directories:
  1174. --prefix=PREFIX install architecture-independent files in PREFIX
  1175. [$ac_default_prefix]
  1176. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1177. [PREFIX]
  1178. By default, \`make install' will install all the files in
  1179. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1180. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1181. for instance \`--prefix=\$HOME'.
  1182. For better control, use the options below.
  1183. Fine tuning of the installation directories:
  1184. --bindir=DIR user executables [EPREFIX/bin]
  1185. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1186. --libexecdir=DIR program executables [EPREFIX/libexec]
  1187. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1188. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1189. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1190. --libdir=DIR object code libraries [EPREFIX/lib]
  1191. --includedir=DIR C header files [PREFIX/include]
  1192. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1193. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1194. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1195. --infodir=DIR info documentation [DATAROOTDIR/info]
  1196. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1197. --mandir=DIR man documentation [DATAROOTDIR/man]
  1198. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1199. --htmldir=DIR html documentation [DOCDIR]
  1200. --dvidir=DIR dvi documentation [DOCDIR]
  1201. --pdfdir=DIR pdf documentation [DOCDIR]
  1202. --psdir=DIR ps documentation [DOCDIR]
  1203. _ACEOF
  1204. cat <<\_ACEOF
  1205. System types:
  1206. --build=BUILD configure for building on BUILD [guessed]
  1207. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1208. _ACEOF
  1209. fi
  1210. if test -n "$ac_init_help"; then
  1211. cat <<\_ACEOF
  1212. Optional Features:
  1213. --disable-option-checking ignore unrecognized --enable/--with options
  1214. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1215. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1216. --enable-debug Turn on debug mode
  1217. Optional Packages:
  1218. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1219. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1220. --with-newt=PATH use newt files in PATH
  1221. --with-curses=PATH use curses files in PATH
  1222. --with-ncurses=PATH use ncurses files in PATH
  1223. --with-libxml2=PATH use LibXML2 files in PATH
  1224. Some influential environment variables:
  1225. CC C compiler command
  1226. CFLAGS C compiler flags
  1227. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1228. nonstandard directory <lib dir>
  1229. LIBS libraries to pass to the linker, e.g. -l<library>
  1230. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1231. you have headers in a nonstandard directory <include dir>
  1232. CPP C preprocessor
  1233. PKG_CONFIG path to pkg-config utility
  1234. PKG_CONFIG_PATH
  1235. directories to add to pkg-config's search path
  1236. PKG_CONFIG_LIBDIR
  1237. path overriding pkg-config's built-in search path
  1238. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  1239. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  1240. Use these variables to override the choices made by `configure' or to help
  1241. it to find libraries and programs with nonstandard names/locations.
  1242. Report bugs to the package provider.
  1243. _ACEOF
  1244. ac_status=$?
  1245. fi
  1246. if test "$ac_init_help" = "recursive"; then
  1247. # If there are subdirs, report their specific --help.
  1248. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1249. test -d "$ac_dir" ||
  1250. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1251. continue
  1252. ac_builddir=.
  1253. case "$ac_dir" in
  1254. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1255. *)
  1256. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1257. # A ".." for each directory in $ac_dir_suffix.
  1258. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1259. case $ac_top_builddir_sub in
  1260. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1261. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1262. esac ;;
  1263. esac
  1264. ac_abs_top_builddir=$ac_pwd
  1265. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1266. # for backward compatibility:
  1267. ac_top_builddir=$ac_top_build_prefix
  1268. case $srcdir in
  1269. .) # We are building in place.
  1270. ac_srcdir=.
  1271. ac_top_srcdir=$ac_top_builddir_sub
  1272. ac_abs_top_srcdir=$ac_pwd ;;
  1273. [\\/]* | ?:[\\/]* ) # Absolute name.
  1274. ac_srcdir=$srcdir$ac_dir_suffix;
  1275. ac_top_srcdir=$srcdir
  1276. ac_abs_top_srcdir=$srcdir ;;
  1277. *) # Relative name.
  1278. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1279. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1280. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1281. esac
  1282. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1283. cd "$ac_dir" || { ac_status=$?; continue; }
  1284. # Check for guested configure.
  1285. if test -f "$ac_srcdir/configure.gnu"; then
  1286. echo &&
  1287. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1288. elif test -f "$ac_srcdir/configure"; then
  1289. echo &&
  1290. $SHELL "$ac_srcdir/configure" --help=recursive
  1291. else
  1292. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1293. fi || ac_status=$?
  1294. cd "$ac_pwd" || { ac_status=$?; break; }
  1295. done
  1296. fi
  1297. test -n "$ac_init_help" && exit $ac_status
  1298. if $ac_init_version; then
  1299. cat <<\_ACEOF
  1300. configure
  1301. generated by GNU Autoconf 2.69
  1302. Copyright (C) 2012 Free Software Foundation, Inc.
  1303. This configure script is free software; the Free Software Foundation
  1304. gives unlimited permission to copy, distribute and modify it.
  1305. "Menuselect"
  1306. _ACEOF
  1307. exit
  1308. fi
  1309. ## ------------------------ ##
  1310. ## Autoconf initialization. ##
  1311. ## ------------------------ ##
  1312. # ac_fn_c_try_compile LINENO
  1313. # --------------------------
  1314. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1315. ac_fn_c_try_compile ()
  1316. {
  1317. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1318. rm -f conftest.$ac_objext
  1319. if { { ac_try="$ac_compile"
  1320. case "(($ac_try" in
  1321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1322. *) ac_try_echo=$ac_try;;
  1323. esac
  1324. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1325. $as_echo "$ac_try_echo"; } >&5
  1326. (eval "$ac_compile") 2>conftest.err
  1327. ac_status=$?
  1328. if test -s conftest.err; then
  1329. grep -v '^ *+' conftest.err >conftest.er1
  1330. cat conftest.er1 >&5
  1331. mv -f conftest.er1 conftest.err
  1332. fi
  1333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1334. test $ac_status = 0; } && {
  1335. test -z "$ac_c_werror_flag" ||
  1336. test ! -s conftest.err
  1337. } && test -s conftest.$ac_objext; then :
  1338. ac_retval=0
  1339. else
  1340. $as_echo "$as_me: failed program was:" >&5
  1341. sed 's/^/| /' conftest.$ac_ext >&5
  1342. ac_retval=1
  1343. fi
  1344. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1345. as_fn_set_status $ac_retval
  1346. } # ac_fn_c_try_compile
  1347. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1348. # -------------------------------------------
  1349. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1350. # variable VAR accordingly.
  1351. ac_fn_c_check_type ()
  1352. {
  1353. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1355. $as_echo_n "checking for $2... " >&6; }
  1356. if eval \${$3+:} false; then :
  1357. $as_echo_n "(cached) " >&6
  1358. else
  1359. eval "$3=no"
  1360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1361. /* end confdefs.h. */
  1362. $4
  1363. int
  1364. main ()
  1365. {
  1366. if (sizeof ($2))
  1367. return 0;
  1368. ;
  1369. return 0;
  1370. }
  1371. _ACEOF
  1372. if ac_fn_c_try_compile "$LINENO"; then :
  1373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1374. /* end confdefs.h. */
  1375. $4
  1376. int
  1377. main ()
  1378. {
  1379. if (sizeof (($2)))
  1380. return 0;
  1381. ;
  1382. return 0;
  1383. }
  1384. _ACEOF
  1385. if ac_fn_c_try_compile "$LINENO"; then :
  1386. else
  1387. eval "$3=yes"
  1388. fi
  1389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1390. fi
  1391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1392. fi
  1393. eval ac_res=\$$3
  1394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1395. $as_echo "$ac_res" >&6; }
  1396. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1397. } # ac_fn_c_check_type
  1398. # ac_fn_c_try_cpp LINENO
  1399. # ----------------------
  1400. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_cpp ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1405. case "(($ac_try" in
  1406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1407. *) ac_try_echo=$ac_try;;
  1408. esac
  1409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1410. $as_echo "$ac_try_echo"; } >&5
  1411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1412. ac_status=$?
  1413. if test -s conftest.err; then
  1414. grep -v '^ *+' conftest.err >conftest.er1
  1415. cat conftest.er1 >&5
  1416. mv -f conftest.er1 conftest.err
  1417. fi
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } > conftest.i && {
  1420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1421. test ! -s conftest.err
  1422. }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1430. as_fn_set_status $ac_retval
  1431. } # ac_fn_c_try_cpp
  1432. # ac_fn_c_try_run LINENO
  1433. # ----------------------
  1434. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1435. # that executables *can* be run.
  1436. ac_fn_c_try_run ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_link"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_link") 2>&5
  1447. ac_status=$?
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1450. { { case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_try") 2>&5
  1457. ac_status=$?
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; }; }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: program exited with status $ac_status" >&5
  1463. $as_echo "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=$ac_status
  1466. fi
  1467. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_run
  1471. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1472. # -------------------------------------------------------
  1473. # Tests whether HEADER exists and can be compiled using the include files in
  1474. # INCLUDES, setting the cache variable VAR accordingly.
  1475. ac_fn_c_check_header_compile ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. $as_echo_n "checking for $2... " >&6; }
  1480. if eval \${$3+:} false; then :
  1481. $as_echo_n "(cached) " >&6
  1482. else
  1483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1484. /* end confdefs.h. */
  1485. $4
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_compile "$LINENO"; then :
  1489. eval "$3=yes"
  1490. else
  1491. eval "$3=no"
  1492. fi
  1493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. } # ac_fn_c_check_header_compile
  1500. # ac_fn_c_try_link LINENO
  1501. # -----------------------
  1502. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_link ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext conftest$ac_exeext
  1507. if { { ac_try="$ac_link"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_link") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest$ac_exeext && {
  1526. test "$cross_compiling" = yes ||
  1527. test -x conftest$ac_exeext
  1528. }; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=1
  1534. fi
  1535. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1536. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1537. # interfere with the next link command; also delete a directory that is
  1538. # left behind by Apple's compiler. We do this before executing the actions.
  1539. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_link
  1543. # ac_fn_c_check_func LINENO FUNC VAR
  1544. # ----------------------------------
  1545. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1546. ac_fn_c_check_func ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1550. $as_echo_n "checking for $2... " >&6; }
  1551. if eval \${$3+:} false; then :
  1552. $as_echo_n "(cached) " >&6
  1553. else
  1554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1555. /* end confdefs.h. */
  1556. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1557. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1558. #define $2 innocuous_$2
  1559. /* System header to define __stub macros and hopefully few prototypes,
  1560. which can conflict with char $2 (); below.
  1561. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1562. <limits.h> exists even on freestanding compilers. */
  1563. #ifdef __STDC__
  1564. # include <limits.h>
  1565. #else
  1566. # include <assert.h>
  1567. #endif
  1568. #undef $2
  1569. /* Override any GCC internal prototype to avoid an error.
  1570. Use char because int might match the return type of a GCC
  1571. builtin and then its argument prototype would still apply. */
  1572. #ifdef __cplusplus
  1573. extern "C"
  1574. #endif
  1575. char $2 ();
  1576. /* The GNU C library defines this for functions which it implements
  1577. to always fail with ENOSYS. Some functions are actually named
  1578. something starting with __ and the normal name is an alias. */
  1579. #if defined __stub_$2 || defined __stub___$2
  1580. choke me
  1581. #endif
  1582. int
  1583. main ()
  1584. {
  1585. return $2 ();
  1586. ;
  1587. return 0;
  1588. }
  1589. _ACEOF
  1590. if ac_fn_c_try_link "$LINENO"; then :
  1591. eval "$3=yes"
  1592. else
  1593. eval "$3=no"
  1594. fi
  1595. rm -f core conftest.err conftest.$ac_objext \
  1596. conftest$ac_exeext conftest.$ac_ext
  1597. fi
  1598. eval ac_res=\$$3
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1600. $as_echo "$ac_res" >&6; }
  1601. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1602. } # ac_fn_c_check_func
  1603. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1606. # the include files in INCLUDES and setting the cache variable VAR
  1607. # accordingly.
  1608. ac_fn_c_check_header_mongrel ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. if eval \${$3+:} false; then :
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1613. $as_echo_n "checking for $2... " >&6; }
  1614. if eval \${$3+:} false; then :
  1615. $as_echo_n "(cached) " >&6
  1616. fi
  1617. eval ac_res=\$$3
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1619. $as_echo "$ac_res" >&6; }
  1620. else
  1621. # Is the header compilable?
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1623. $as_echo_n "checking $2 usability... " >&6; }
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_compile "$LINENO"; then :
  1630. ac_header_compiler=yes
  1631. else
  1632. ac_header_compiler=no
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1636. $as_echo "$ac_header_compiler" >&6; }
  1637. # Is the header present?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1639. $as_echo_n "checking $2 presence... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. #include <$2>
  1643. _ACEOF
  1644. if ac_fn_c_try_cpp "$LINENO"; then :
  1645. ac_header_preproc=yes
  1646. else
  1647. ac_header_preproc=no
  1648. fi
  1649. rm -f conftest.err conftest.i conftest.$ac_ext
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1651. $as_echo "$ac_header_preproc" >&6; }
  1652. # So? What about this header?
  1653. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1654. yes:no: )
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1656. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1658. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1659. ;;
  1660. no:yes:* )
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1662. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1664. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1666. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1668. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1670. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1671. ;;
  1672. esac
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. eval "$3=\$ac_header_compiler"
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. fi
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. } # ac_fn_c_check_header_mongrel
  1686. cat >config.log <<_ACEOF
  1687. This file contains any messages produced by compilers while
  1688. running configure, to aid debugging if configure makes a mistake.
  1689. It was created by $as_me, which was
  1690. generated by GNU Autoconf 2.69. Invocation command line was
  1691. $ $0 $@
  1692. _ACEOF
  1693. exec 5>>config.log
  1694. {
  1695. cat <<_ASUNAME
  1696. ## --------- ##
  1697. ## Platform. ##
  1698. ## --------- ##
  1699. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1700. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1701. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1702. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1703. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1704. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1705. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1706. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1707. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1708. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1709. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1710. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1711. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1712. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1713. _ASUNAME
  1714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1715. for as_dir in $PATH
  1716. do
  1717. IFS=$as_save_IFS
  1718. test -z "$as_dir" && as_dir=.
  1719. $as_echo "PATH: $as_dir"
  1720. done
  1721. IFS=$as_save_IFS
  1722. } >&5
  1723. cat >&5 <<_ACEOF
  1724. ## ----------- ##
  1725. ## Core tests. ##
  1726. ## ----------- ##
  1727. _ACEOF
  1728. # Keep a trace of the command line.
  1729. # Strip out --no-create and --no-recursion so they do not pile up.
  1730. # Strip out --silent because we don't want to record it for future runs.
  1731. # Also quote any args containing shell meta-characters.
  1732. # Make two passes to allow for proper duplicate-argument suppression.
  1733. ac_configure_args=
  1734. ac_configure_args0=
  1735. ac_configure_args1=
  1736. ac_must_keep_next=false
  1737. for ac_pass in 1 2
  1738. do
  1739. for ac_arg
  1740. do
  1741. case $ac_arg in
  1742. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1743. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1744. | -silent | --silent | --silen | --sile | --sil)
  1745. continue ;;
  1746. *\'*)
  1747. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1748. esac
  1749. case $ac_pass in
  1750. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1751. 2)
  1752. as_fn_append ac_configure_args1 " '$ac_arg'"
  1753. if test $ac_must_keep_next = true; then
  1754. ac_must_keep_next=false # Got value, back to normal.
  1755. else
  1756. case $ac_arg in
  1757. *=* | --config-cache | -C | -disable-* | --disable-* \
  1758. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1759. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1760. | -with-* | --with-* | -without-* | --without-* | --x)
  1761. case "$ac_configure_args0 " in
  1762. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1763. esac
  1764. ;;
  1765. -* ) ac_must_keep_next=true ;;
  1766. esac
  1767. fi
  1768. as_fn_append ac_configure_args " '$ac_arg'"
  1769. ;;
  1770. esac
  1771. done
  1772. done
  1773. { ac_configure_args0=; unset ac_configure_args0;}
  1774. { ac_configure_args1=; unset ac_configure_args1;}
  1775. # When interrupted or exit'd, cleanup temporary files, and complete
  1776. # config.log. We remove comments because anyway the quotes in there
  1777. # would cause problems or look ugly.
  1778. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1779. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1780. trap 'exit_status=$?
  1781. # Save into config.log some information that might help in debugging.
  1782. {
  1783. echo
  1784. $as_echo "## ---------------- ##
  1785. ## Cache variables. ##
  1786. ## ---------------- ##"
  1787. echo
  1788. # The following way of writing the cache mishandles newlines in values,
  1789. (
  1790. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1791. eval ac_val=\$$ac_var
  1792. case $ac_val in #(
  1793. *${as_nl}*)
  1794. case $ac_var in #(
  1795. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1796. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1797. esac
  1798. case $ac_var in #(
  1799. _ | IFS | as_nl) ;; #(
  1800. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1801. *) { eval $ac_var=; unset $ac_var;} ;;
  1802. esac ;;
  1803. esac
  1804. done
  1805. (set) 2>&1 |
  1806. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1807. *${as_nl}ac_space=\ *)
  1808. sed -n \
  1809. "s/'\''/'\''\\\\'\'''\''/g;
  1810. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1811. ;; #(
  1812. *)
  1813. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1814. ;;
  1815. esac |
  1816. sort
  1817. )
  1818. echo
  1819. $as_echo "## ----------------- ##
  1820. ## Output variables. ##
  1821. ## ----------------- ##"
  1822. echo
  1823. for ac_var in $ac_subst_vars
  1824. do
  1825. eval ac_val=\$$ac_var
  1826. case $ac_val in
  1827. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1828. esac
  1829. $as_echo "$ac_var='\''$ac_val'\''"
  1830. done | sort
  1831. echo
  1832. if test -n "$ac_subst_files"; then
  1833. $as_echo "## ------------------- ##
  1834. ## File substitutions. ##
  1835. ## ------------------- ##"
  1836. echo
  1837. for ac_var in $ac_subst_files
  1838. do
  1839. eval ac_val=\$$ac_var
  1840. case $ac_val in
  1841. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1842. esac
  1843. $as_echo "$ac_var='\''$ac_val'\''"
  1844. done | sort
  1845. echo
  1846. fi
  1847. if test -s confdefs.h; then
  1848. $as_echo "## ----------- ##
  1849. ## confdefs.h. ##
  1850. ## ----------- ##"
  1851. echo
  1852. cat confdefs.h
  1853. echo
  1854. fi
  1855. test "$ac_signal" != 0 &&
  1856. $as_echo "$as_me: caught signal $ac_signal"
  1857. $as_echo "$as_me: exit $exit_status"
  1858. } >&5
  1859. rm -f core *.core core.conftest.* &&
  1860. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1861. exit $exit_status
  1862. ' 0
  1863. for ac_signal in 1 2 13 15; do
  1864. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1865. done
  1866. ac_signal=0
  1867. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1868. rm -f -r conftest* confdefs.h
  1869. $as_echo "/* confdefs.h */" > confdefs.h
  1870. # Predefined preprocessor variables.
  1871. cat >>confdefs.h <<_ACEOF
  1872. #define PACKAGE_NAME "$PACKAGE_NAME"
  1873. _ACEOF
  1874. cat >>confdefs.h <<_ACEOF
  1875. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1876. _ACEOF
  1877. cat >>confdefs.h <<_ACEOF
  1878. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1879. _ACEOF
  1880. cat >>confdefs.h <<_ACEOF
  1881. #define PACKAGE_STRING "$PACKAGE_STRING"
  1882. _ACEOF
  1883. cat >>confdefs.h <<_ACEOF
  1884. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1885. _ACEOF
  1886. cat >>confdefs.h <<_ACEOF
  1887. #define PACKAGE_URL "$PACKAGE_URL"
  1888. _ACEOF
  1889. # Let the site file select an alternate cache file if it wants to.
  1890. # Prefer an explicitly selected file to automatically selected ones.
  1891. ac_site_file1=NONE
  1892. ac_site_file2=NONE
  1893. if test -n "$CONFIG_SITE"; then
  1894. # We do not want a PATH search for config.site.
  1895. case $CONFIG_SITE in #((
  1896. -*) ac_site_file1=./$CONFIG_SITE;;
  1897. */*) ac_site_file1=$CONFIG_SITE;;
  1898. *) ac_site_file1=./$CONFIG_SITE;;
  1899. esac
  1900. elif test "x$prefix" != xNONE; then
  1901. ac_site_file1=$prefix/share/config.site
  1902. ac_site_file2=$prefix/etc/config.site
  1903. else
  1904. ac_site_file1=$ac_default_prefix/share/config.site
  1905. ac_site_file2=$ac_default_prefix/etc/config.site
  1906. fi
  1907. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1908. do
  1909. test "x$ac_site_file" = xNONE && continue
  1910. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1912. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1913. sed 's/^/| /' "$ac_site_file" >&5
  1914. . "$ac_site_file" \
  1915. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1916. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1917. as_fn_error $? "failed to load site script $ac_site_file
  1918. See \`config.log' for more details" "$LINENO" 5; }
  1919. fi
  1920. done
  1921. if test -r "$cache_file"; then
  1922. # Some versions of bash will fail to source /dev/null (special files
  1923. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1924. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1926. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1927. case $cache_file in
  1928. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1929. *) . "./$cache_file";;
  1930. esac
  1931. fi
  1932. else
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1934. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1935. >$cache_file
  1936. fi
  1937. # Check that the precious variables saved in the cache have kept the same
  1938. # value.
  1939. ac_cache_corrupted=false
  1940. for ac_var in $ac_precious_vars; do
  1941. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1942. eval ac_new_set=\$ac_env_${ac_var}_set
  1943. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1944. eval ac_new_val=\$ac_env_${ac_var}_value
  1945. case $ac_old_set,$ac_new_set in
  1946. set,)
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1948. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1949. ac_cache_corrupted=: ;;
  1950. ,set)
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1952. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1953. ac_cache_corrupted=: ;;
  1954. ,);;
  1955. *)
  1956. if test "x$ac_old_val" != "x$ac_new_val"; then
  1957. # differences in whitespace do not lead to failure.
  1958. ac_old_val_w=`echo x $ac_old_val`
  1959. ac_new_val_w=`echo x $ac_new_val`
  1960. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1962. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1963. ac_cache_corrupted=:
  1964. else
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1966. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1967. eval $ac_var=\$ac_old_val
  1968. fi
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1970. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1972. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1973. fi;;
  1974. esac
  1975. # Pass precious variables to config.status.
  1976. if test "$ac_new_set" = set; then
  1977. case $ac_new_val in
  1978. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1979. *) ac_arg=$ac_var=$ac_new_val ;;
  1980. esac
  1981. case " $ac_configure_args " in
  1982. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1983. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1984. esac
  1985. fi
  1986. done
  1987. if $ac_cache_corrupted; then
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1991. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1992. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1993. fi
  1994. ## -------------------- ##
  1995. ## Main body of script. ##
  1996. ## -------------------- ##
  1997. ac_ext=c
  1998. ac_cpp='$CPP $CPPFLAGS'
  1999. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2000. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2001. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2002. # check existence of the package
  2003. # specify output header file
  2004. ac_config_headers="$ac_config_headers autoconfig.h"
  2005. ac_aux_dir=
  2006. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2007. if test -f "$ac_dir/install-sh"; then
  2008. ac_aux_dir=$ac_dir
  2009. ac_install_sh="$ac_aux_dir/install-sh -c"
  2010. break
  2011. elif test -f "$ac_dir/install.sh"; then
  2012. ac_aux_dir=$ac_dir
  2013. ac_install_sh="$ac_aux_dir/install.sh -c"
  2014. break
  2015. elif test -f "$ac_dir/shtool"; then
  2016. ac_aux_dir=$ac_dir
  2017. ac_install_sh="$ac_aux_dir/shtool install -c"
  2018. break
  2019. fi
  2020. done
  2021. if test -z "$ac_aux_dir"; then
  2022. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2023. fi
  2024. # These three variables are undocumented and unsupported,
  2025. # and are intended to be withdrawn in a future Autoconf release.
  2026. # They can cause serious problems if a builder's source tree is in a directory
  2027. # whose full name contains unusual characters.
  2028. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2029. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2030. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2031. # Make sure we can run config.sub.
  2032. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2033. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2035. $as_echo_n "checking build system type... " >&6; }
  2036. if ${ac_cv_build+:} false; then :
  2037. $as_echo_n "(cached) " >&6
  2038. else
  2039. ac_build_alias=$build_alias
  2040. test "x$ac_build_alias" = x &&
  2041. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2042. test "x$ac_build_alias" = x &&
  2043. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2044. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2045. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2046. fi
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2048. $as_echo "$ac_cv_build" >&6; }
  2049. case $ac_cv_build in
  2050. *-*-*) ;;
  2051. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2052. esac
  2053. build=$ac_cv_build
  2054. ac_save_IFS=$IFS; IFS='-'
  2055. set x $ac_cv_build
  2056. shift
  2057. build_cpu=$1
  2058. build_vendor=$2
  2059. shift; shift
  2060. # Remember, the first character of IFS is used to create $*,
  2061. # except with old shells:
  2062. build_os=$*
  2063. IFS=$ac_save_IFS
  2064. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2066. $as_echo_n "checking host system type... " >&6; }
  2067. if ${ac_cv_host+:} false; then :
  2068. $as_echo_n "(cached) " >&6
  2069. else
  2070. if test "x$host_alias" = x; then
  2071. ac_cv_host=$ac_cv_build
  2072. else
  2073. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2074. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2075. fi
  2076. fi
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2078. $as_echo "$ac_cv_host" >&6; }
  2079. case $ac_cv_host in
  2080. *-*-*) ;;
  2081. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2082. esac
  2083. host=$ac_cv_host
  2084. ac_save_IFS=$IFS; IFS='-'
  2085. set x $ac_cv_host
  2086. shift
  2087. host_cpu=$1
  2088. host_vendor=$2
  2089. shift; shift
  2090. # Remember, the first character of IFS is used to create $*,
  2091. # except with old shells:
  2092. host_os=$*
  2093. IFS=$ac_save_IFS
  2094. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2095. HOST_OS=${host_os}
  2096. case "${host_os}" in
  2097. *dragonfly*)
  2098. CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
  2099. LDFLAGS="${LDFLAGS} -L/usr/local/lib"
  2100. ;;
  2101. *netbsd*)
  2102. CPPFLAGS="${CPPFLAGS} -I/usr/pkg/include"
  2103. LDFLAGS="${LDFLAGS} -L/usr/pkg/lib"
  2104. ;;
  2105. *bsd*)
  2106. CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
  2107. LDFLAGS="${LDFLAGS} -L/usr/local/lib"
  2108. ;;
  2109. esac
  2110. # Checks for programs.
  2111. ac_ext=c
  2112. ac_cpp='$CPP $CPPFLAGS'
  2113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2116. if test -n "$ac_tool_prefix"; then
  2117. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2118. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2120. $as_echo_n "checking for $ac_word... " >&6; }
  2121. if ${ac_cv_prog_CC+:} false; then :
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. if test -n "$CC"; then
  2125. ac_cv_prog_CC="$CC" # Let the user override the test.
  2126. else
  2127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2128. for as_dir in $PATH
  2129. do
  2130. IFS=$as_save_IFS
  2131. test -z "$as_dir" && as_dir=.
  2132. for ac_exec_ext in '' $ac_executable_extensions; do
  2133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2134. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. break 2
  2137. fi
  2138. done
  2139. done
  2140. IFS=$as_save_IFS
  2141. fi
  2142. fi
  2143. CC=$ac_cv_prog_CC
  2144. if test -n "$CC"; then
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2146. $as_echo "$CC" >&6; }
  2147. else
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2149. $as_echo "no" >&6; }
  2150. fi
  2151. fi
  2152. if test -z "$ac_cv_prog_CC"; then
  2153. ac_ct_CC=$CC
  2154. # Extract the first word of "gcc", so it can be a program name with args.
  2155. set dummy gcc; ac_word=$2
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2157. $as_echo_n "checking for $ac_word... " >&6; }
  2158. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. if test -n "$ac_ct_CC"; then
  2162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2163. else
  2164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2165. for as_dir in $PATH
  2166. do
  2167. IFS=$as_save_IFS
  2168. test -z "$as_dir" && as_dir=.
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2171. ac_cv_prog_ac_ct_CC="gcc"
  2172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2173. break 2
  2174. fi
  2175. done
  2176. done
  2177. IFS=$as_save_IFS
  2178. fi
  2179. fi
  2180. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2181. if test -n "$ac_ct_CC"; then
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2183. $as_echo "$ac_ct_CC" >&6; }
  2184. else
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2186. $as_echo "no" >&6; }
  2187. fi
  2188. if test "x$ac_ct_CC" = x; then
  2189. CC=""
  2190. else
  2191. case $cross_compiling:$ac_tool_warned in
  2192. yes:)
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2195. ac_tool_warned=yes ;;
  2196. esac
  2197. CC=$ac_ct_CC
  2198. fi
  2199. else
  2200. CC="$ac_cv_prog_CC"
  2201. fi
  2202. if test -z "$CC"; then
  2203. if test -n "$ac_tool_prefix"; then
  2204. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2205. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2207. $as_echo_n "checking for $ac_word... " >&6; }
  2208. if ${ac_cv_prog_CC+:} false; then :
  2209. $as_echo_n "(cached) " >&6
  2210. else
  2211. if test -n "$CC"; then
  2212. ac_cv_prog_CC="$CC" # Let the user override the test.
  2213. else
  2214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2215. for as_dir in $PATH
  2216. do
  2217. IFS=$as_save_IFS
  2218. test -z "$as_dir" && as_dir=.
  2219. for ac_exec_ext in '' $ac_executable_extensions; do
  2220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2221. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2223. break 2
  2224. fi
  2225. done
  2226. done
  2227. IFS=$as_save_IFS
  2228. fi
  2229. fi
  2230. CC=$ac_cv_prog_CC
  2231. if test -n "$CC"; then
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2233. $as_echo "$CC" >&6; }
  2234. else
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2236. $as_echo "no" >&6; }
  2237. fi
  2238. fi
  2239. fi
  2240. if test -z "$CC"; then
  2241. # Extract the first word of "cc", so it can be a program name with args.
  2242. set dummy cc; ac_word=$2
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2244. $as_echo_n "checking for $ac_word... " >&6; }
  2245. if ${ac_cv_prog_CC+:} false; then :
  2246. $as_echo_n "(cached) " >&6
  2247. else
  2248. if test -n "$CC"; then
  2249. ac_cv_prog_CC="$CC" # Let the user override the test.
  2250. else
  2251. ac_prog_rejected=no
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. for ac_exec_ext in '' $ac_executable_extensions; do
  2258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2259. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2260. ac_prog_rejected=yes
  2261. continue
  2262. fi
  2263. ac_cv_prog_CC="cc"
  2264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2265. break 2
  2266. fi
  2267. done
  2268. done
  2269. IFS=$as_save_IFS
  2270. if test $ac_prog_rejected = yes; then
  2271. # We found a bogon in the path, so make sure we never use it.
  2272. set dummy $ac_cv_prog_CC
  2273. shift
  2274. if test $# != 0; then
  2275. # We chose a different compiler from the bogus one.
  2276. # However, it has the same basename, so the bogon will be chosen
  2277. # first if we set CC to just the basename; use the full file name.
  2278. shift
  2279. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2280. fi
  2281. fi
  2282. fi
  2283. fi
  2284. CC=$ac_cv_prog_CC
  2285. if test -n "$CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2287. $as_echo "$CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. fi
  2293. if test -z "$CC"; then
  2294. if test -n "$ac_tool_prefix"; then
  2295. for ac_prog in cl.exe
  2296. do
  2297. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2298. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2300. $as_echo_n "checking for $ac_word... " >&6; }
  2301. if ${ac_cv_prog_CC+:} false; then :
  2302. $as_echo_n "(cached) " >&6
  2303. else
  2304. if test -n "$CC"; then
  2305. ac_cv_prog_CC="$CC" # Let the user override the test.
  2306. else
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. for ac_exec_ext in '' $ac_executable_extensions; do
  2313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2314. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2316. break 2
  2317. fi
  2318. done
  2319. done
  2320. IFS=$as_save_IFS
  2321. fi
  2322. fi
  2323. CC=$ac_cv_prog_CC
  2324. if test -n "$CC"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2326. $as_echo "$CC" >&6; }
  2327. else
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2329. $as_echo "no" >&6; }
  2330. fi
  2331. test -n "$CC" && break
  2332. done
  2333. fi
  2334. if test -z "$CC"; then
  2335. ac_ct_CC=$CC
  2336. for ac_prog in cl.exe
  2337. do
  2338. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2339. set dummy $ac_prog; ac_word=$2
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2341. $as_echo_n "checking for $ac_word... " >&6; }
  2342. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2343. $as_echo_n "(cached) " >&6
  2344. else
  2345. if test -n "$ac_ct_CC"; then
  2346. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2347. else
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. for as_dir in $PATH
  2350. do
  2351. IFS=$as_save_IFS
  2352. test -z "$as_dir" && as_dir=.
  2353. for ac_exec_ext in '' $ac_executable_extensions; do
  2354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2355. ac_cv_prog_ac_ct_CC="$ac_prog"
  2356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2357. break 2
  2358. fi
  2359. done
  2360. done
  2361. IFS=$as_save_IFS
  2362. fi
  2363. fi
  2364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2365. if test -n "$ac_ct_CC"; then
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2367. $as_echo "$ac_ct_CC" >&6; }
  2368. else
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2370. $as_echo "no" >&6; }
  2371. fi
  2372. test -n "$ac_ct_CC" && break
  2373. done
  2374. if test "x$ac_ct_CC" = x; then
  2375. CC=""
  2376. else
  2377. case $cross_compiling:$ac_tool_warned in
  2378. yes:)
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2381. ac_tool_warned=yes ;;
  2382. esac
  2383. CC=$ac_ct_CC
  2384. fi
  2385. fi
  2386. fi
  2387. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2389. as_fn_error $? "no acceptable C compiler found in \$PATH
  2390. See \`config.log' for more details" "$LINENO" 5; }
  2391. # Provide some information about the compiler.
  2392. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2393. set X $ac_compile
  2394. ac_compiler=$2
  2395. for ac_option in --version -v -V -qversion; do
  2396. { { ac_try="$ac_compiler $ac_option >&5"
  2397. case "(($ac_try" in
  2398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2399. *) ac_try_echo=$ac_try;;
  2400. esac
  2401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2402. $as_echo "$ac_try_echo"; } >&5
  2403. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2404. ac_status=$?
  2405. if test -s conftest.err; then
  2406. sed '10a\
  2407. ... rest of stderr output deleted ...
  2408. 10q' conftest.err >conftest.er1
  2409. cat conftest.er1 >&5
  2410. fi
  2411. rm -f conftest.er1 conftest.err
  2412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2413. test $ac_status = 0; }
  2414. done
  2415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2416. /* end confdefs.h. */
  2417. int
  2418. main ()
  2419. {
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. ac_clean_files_save=$ac_clean_files
  2425. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2426. # Try to create an executable without -o first, disregard a.out.
  2427. # It will help us diagnose broken compilers, and finding out an intuition
  2428. # of exeext.
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2430. $as_echo_n "checking whether the C compiler works... " >&6; }
  2431. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2432. # The possible output files:
  2433. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2434. ac_rmfiles=
  2435. for ac_file in $ac_files
  2436. do
  2437. case $ac_file in
  2438. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2439. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2440. esac
  2441. done
  2442. rm -f $ac_rmfiles
  2443. if { { ac_try="$ac_link_default"
  2444. case "(($ac_try" in
  2445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2446. *) ac_try_echo=$ac_try;;
  2447. esac
  2448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2449. $as_echo "$ac_try_echo"; } >&5
  2450. (eval "$ac_link_default") 2>&5
  2451. ac_status=$?
  2452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2453. test $ac_status = 0; }; then :
  2454. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2455. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2456. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2457. # so that the user can short-circuit this test for compilers unknown to
  2458. # Autoconf.
  2459. for ac_file in $ac_files ''
  2460. do
  2461. test -f "$ac_file" || continue
  2462. case $ac_file in
  2463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2464. ;;
  2465. [ab].out )
  2466. # We found the default executable, but exeext='' is most
  2467. # certainly right.
  2468. break;;
  2469. *.* )
  2470. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2471. then :; else
  2472. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2473. fi
  2474. # We set ac_cv_exeext here because the later test for it is not
  2475. # safe: cross compilers may not add the suffix if given an `-o'
  2476. # argument, so we may need to know it at that point already.
  2477. # Even if this section looks crufty: it has the advantage of
  2478. # actually working.
  2479. break;;
  2480. * )
  2481. break;;
  2482. esac
  2483. done
  2484. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2485. else
  2486. ac_file=''
  2487. fi
  2488. if test -z "$ac_file"; then :
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. $as_echo "$as_me: failed program was:" >&5
  2492. sed 's/^/| /' conftest.$ac_ext >&5
  2493. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2495. as_fn_error 77 "C compiler cannot create executables
  2496. See \`config.log' for more details" "$LINENO" 5; }
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2499. $as_echo "yes" >&6; }
  2500. fi
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2502. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2504. $as_echo "$ac_file" >&6; }
  2505. ac_exeext=$ac_cv_exeext
  2506. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2507. ac_clean_files=$ac_clean_files_save
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2509. $as_echo_n "checking for suffix of executables... " >&6; }
  2510. if { { ac_try="$ac_link"
  2511. case "(($ac_try" in
  2512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2513. *) ac_try_echo=$ac_try;;
  2514. esac
  2515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2516. $as_echo "$ac_try_echo"; } >&5
  2517. (eval "$ac_link") 2>&5
  2518. ac_status=$?
  2519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2520. test $ac_status = 0; }; then :
  2521. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2522. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2523. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2524. # `rm'.
  2525. for ac_file in conftest.exe conftest conftest.*; do
  2526. test -f "$ac_file" || continue
  2527. case $ac_file in
  2528. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2529. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2530. break;;
  2531. * ) break;;
  2532. esac
  2533. done
  2534. else
  2535. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2537. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2538. See \`config.log' for more details" "$LINENO" 5; }
  2539. fi
  2540. rm -f conftest conftest$ac_cv_exeext
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2542. $as_echo "$ac_cv_exeext" >&6; }
  2543. rm -f conftest.$ac_ext
  2544. EXEEXT=$ac_cv_exeext
  2545. ac_exeext=$EXEEXT
  2546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2547. /* end confdefs.h. */
  2548. #include <stdio.h>
  2549. int
  2550. main ()
  2551. {
  2552. FILE *f = fopen ("conftest.out", "w");
  2553. return ferror (f) || fclose (f) != 0;
  2554. ;
  2555. return 0;
  2556. }
  2557. _ACEOF
  2558. ac_clean_files="$ac_clean_files conftest.out"
  2559. # Check that the compiler produces executables we can run. If not, either
  2560. # the compiler is broken, or we cross compile.
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2562. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2563. if test "$cross_compiling" != yes; then
  2564. { { ac_try="$ac_link"
  2565. case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2570. $as_echo "$ac_try_echo"; } >&5
  2571. (eval "$ac_link") 2>&5
  2572. ac_status=$?
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2574. test $ac_status = 0; }
  2575. if { ac_try='./conftest$ac_cv_exeext'
  2576. { { case "(($ac_try" in
  2577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2578. *) ac_try_echo=$ac_try;;
  2579. esac
  2580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2581. $as_echo "$ac_try_echo"; } >&5
  2582. (eval "$ac_try") 2>&5
  2583. ac_status=$?
  2584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2585. test $ac_status = 0; }; }; then
  2586. cross_compiling=no
  2587. else
  2588. if test "$cross_compiling" = maybe; then
  2589. cross_compiling=yes
  2590. else
  2591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2593. as_fn_error $? "cannot run C compiled programs.
  2594. If you meant to cross compile, use \`--host'.
  2595. See \`config.log' for more details" "$LINENO" 5; }
  2596. fi
  2597. fi
  2598. fi
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2600. $as_echo "$cross_compiling" >&6; }
  2601. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2602. ac_clean_files=$ac_clean_files_save
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2604. $as_echo_n "checking for suffix of object files... " >&6; }
  2605. if ${ac_cv_objext+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2609. /* end confdefs.h. */
  2610. int
  2611. main ()
  2612. {
  2613. ;
  2614. return 0;
  2615. }
  2616. _ACEOF
  2617. rm -f conftest.o conftest.obj
  2618. if { { ac_try="$ac_compile"
  2619. case "(($ac_try" in
  2620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2621. *) ac_try_echo=$ac_try;;
  2622. esac
  2623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2624. $as_echo "$ac_try_echo"; } >&5
  2625. (eval "$ac_compile") 2>&5
  2626. ac_status=$?
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2628. test $ac_status = 0; }; then :
  2629. for ac_file in conftest.o conftest.obj conftest.*; do
  2630. test -f "$ac_file" || continue;
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2633. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2634. break;;
  2635. esac
  2636. done
  2637. else
  2638. $as_echo "$as_me: failed program was:" >&5
  2639. sed 's/^/| /' conftest.$ac_ext >&5
  2640. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2642. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2643. See \`config.log' for more details" "$LINENO" 5; }
  2644. fi
  2645. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2648. $as_echo "$ac_cv_objext" >&6; }
  2649. OBJEXT=$ac_cv_objext
  2650. ac_objext=$OBJEXT
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2652. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2653. if ${ac_cv_c_compiler_gnu+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end confdefs.h. */
  2658. int
  2659. main ()
  2660. {
  2661. #ifndef __GNUC__
  2662. choke me
  2663. #endif
  2664. ;
  2665. return 0;
  2666. }
  2667. _ACEOF
  2668. if ac_fn_c_try_compile "$LINENO"; then :
  2669. ac_compiler_gnu=yes
  2670. else
  2671. ac_compiler_gnu=no
  2672. fi
  2673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2674. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2675. fi
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2677. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2678. if test $ac_compiler_gnu = yes; then
  2679. GCC=yes
  2680. else
  2681. GCC=
  2682. fi
  2683. ac_test_CFLAGS=${CFLAGS+set}
  2684. ac_save_CFLAGS=$CFLAGS
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2686. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2687. if ${ac_cv_prog_cc_g+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. ac_save_c_werror_flag=$ac_c_werror_flag
  2691. ac_c_werror_flag=yes
  2692. ac_cv_prog_cc_g=no
  2693. CFLAGS="-g"
  2694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2695. /* end confdefs.h. */
  2696. int
  2697. main ()
  2698. {
  2699. ;
  2700. return 0;
  2701. }
  2702. _ACEOF
  2703. if ac_fn_c_try_compile "$LINENO"; then :
  2704. ac_cv_prog_cc_g=yes
  2705. else
  2706. CFLAGS=""
  2707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2708. /* end confdefs.h. */
  2709. int
  2710. main ()
  2711. {
  2712. ;
  2713. return 0;
  2714. }
  2715. _ACEOF
  2716. if ac_fn_c_try_compile "$LINENO"; then :
  2717. else
  2718. ac_c_werror_flag=$ac_save_c_werror_flag
  2719. CFLAGS="-g"
  2720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2721. /* end confdefs.h. */
  2722. int
  2723. main ()
  2724. {
  2725. ;
  2726. return 0;
  2727. }
  2728. _ACEOF
  2729. if ac_fn_c_try_compile "$LINENO"; then :
  2730. ac_cv_prog_cc_g=yes
  2731. fi
  2732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2733. fi
  2734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2735. fi
  2736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2737. ac_c_werror_flag=$ac_save_c_werror_flag
  2738. fi
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2740. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2741. if test "$ac_test_CFLAGS" = set; then
  2742. CFLAGS=$ac_save_CFLAGS
  2743. elif test $ac_cv_prog_cc_g = yes; then
  2744. if test "$GCC" = yes; then
  2745. CFLAGS="-g -O2"
  2746. else
  2747. CFLAGS="-g"
  2748. fi
  2749. else
  2750. if test "$GCC" = yes; then
  2751. CFLAGS="-O2"
  2752. else
  2753. CFLAGS=
  2754. fi
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2757. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2758. if ${ac_cv_prog_cc_c89+:} false; then :
  2759. $as_echo_n "(cached) " >&6
  2760. else
  2761. ac_cv_prog_cc_c89=no
  2762. ac_save_CC=$CC
  2763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2764. /* end confdefs.h. */
  2765. #include <stdarg.h>
  2766. #include <stdio.h>
  2767. struct stat;
  2768. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2769. struct buf { int x; };
  2770. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2771. static char *e (p, i)
  2772. char **p;
  2773. int i;
  2774. {
  2775. return p[i];
  2776. }
  2777. static char *f (char * (*g) (char **, int), char **p, ...)
  2778. {
  2779. char *s;
  2780. va_list v;
  2781. va_start (v,p);
  2782. s = g (p, va_arg (v,int));
  2783. va_end (v);
  2784. return s;
  2785. }
  2786. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2787. function prototypes and stuff, but not '\xHH' hex character constants.
  2788. These don't provoke an error unfortunately, instead are silently treated
  2789. as 'x'. The following induces an error, until -std is added to get
  2790. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2791. array size at least. It's necessary to write '\x00'==0 to get something
  2792. that's true only with -std. */
  2793. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2794. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2795. inside strings and character constants. */
  2796. #define FOO(x) 'x'
  2797. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2798. int test (int i, double x);
  2799. struct s1 {int (*f) (int a);};
  2800. struct s2 {int (*f) (double a);};
  2801. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2802. int argc;
  2803. char **argv;
  2804. int
  2805. main ()
  2806. {
  2807. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2813. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2814. do
  2815. CC="$ac_save_CC $ac_arg"
  2816. if ac_fn_c_try_compile "$LINENO"; then :
  2817. ac_cv_prog_cc_c89=$ac_arg
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext
  2820. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2821. done
  2822. rm -f conftest.$ac_ext
  2823. CC=$ac_save_CC
  2824. fi
  2825. # AC_CACHE_VAL
  2826. case "x$ac_cv_prog_cc_c89" in
  2827. x)
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2829. $as_echo "none needed" >&6; } ;;
  2830. xno)
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2832. $as_echo "unsupported" >&6; } ;;
  2833. *)
  2834. CC="$CC $ac_cv_prog_cc_c89"
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2836. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2837. esac
  2838. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2839. fi
  2840. ac_ext=c
  2841. ac_cpp='$CPP $CPPFLAGS'
  2842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  2846. $as_echo_n "checking for GNU make... " >&6; }
  2847. if ${ac_cv_GNU_MAKE+:} false; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. ac_cv_GNU_MAKE='Not Found' ;
  2851. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  2852. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  2853. for a in make gmake gnumake ; do
  2854. if test -z "$a" ; then continue ; fi ;
  2855. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  2856. ac_cv_GNU_MAKE=$a ;
  2857. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  2858. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  2859. break;
  2860. fi
  2861. done ;
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  2864. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  2865. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  2866. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  2867. exit 1
  2868. fi
  2869. GNU_MAKE=$ac_cv_GNU_MAKE
  2870. ac_ext=c
  2871. ac_cpp='$CPP $CPPFLAGS'
  2872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2875. # Check whether --enable-debug was given.
  2876. if test "${enable_debug+set}" = set; then :
  2877. enableval=$enable_debug; case "${enableval}" in
  2878. y|ye|yes) MENUSELECT_DEBUG=yes ;;
  2879. n|no) MENUSELECT_DEBUG=no ;;
  2880. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  2881. esac
  2882. fi
  2883. ac_ext=c
  2884. ac_cpp='$CPP $CPPFLAGS'
  2885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2889. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2890. # On Suns, sometimes $CPP names a directory.
  2891. if test -n "$CPP" && test -d "$CPP"; then
  2892. CPP=
  2893. fi
  2894. if test -z "$CPP"; then
  2895. if ${ac_cv_prog_CPP+:} false; then :
  2896. $as_echo_n "(cached) " >&6
  2897. else
  2898. # Double quotes because CPP needs to be expanded
  2899. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2900. do
  2901. ac_preproc_ok=false
  2902. for ac_c_preproc_warn_flag in '' yes
  2903. do
  2904. # Use a header file that comes with gcc, so configuring glibc
  2905. # with a fresh cross-compiler works.
  2906. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2907. # <limits.h> exists even on freestanding compilers.
  2908. # On the NeXT, cc -E runs the code through the compiler's parser,
  2909. # not just through cpp. "Syntax error" is here to catch this case.
  2910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2911. /* end confdefs.h. */
  2912. #ifdef __STDC__
  2913. # include <limits.h>
  2914. #else
  2915. # include <assert.h>
  2916. #endif
  2917. Syntax error
  2918. _ACEOF
  2919. if ac_fn_c_try_cpp "$LINENO"; then :
  2920. else
  2921. # Broken: fails on valid input.
  2922. continue
  2923. fi
  2924. rm -f conftest.err conftest.i conftest.$ac_ext
  2925. # OK, works on sane cases. Now check whether nonexistent headers
  2926. # can be detected and how.
  2927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2928. /* end confdefs.h. */
  2929. #include <ac_nonexistent.h>
  2930. _ACEOF
  2931. if ac_fn_c_try_cpp "$LINENO"; then :
  2932. # Broken: success on invalid input.
  2933. continue
  2934. else
  2935. # Passes both tests.
  2936. ac_preproc_ok=:
  2937. break
  2938. fi
  2939. rm -f conftest.err conftest.i conftest.$ac_ext
  2940. done
  2941. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2942. rm -f conftest.i conftest.err conftest.$ac_ext
  2943. if $ac_preproc_ok; then :
  2944. break
  2945. fi
  2946. done
  2947. ac_cv_prog_CPP=$CPP
  2948. fi
  2949. CPP=$ac_cv_prog_CPP
  2950. else
  2951. ac_cv_prog_CPP=$CPP
  2952. fi
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2954. $as_echo "$CPP" >&6; }
  2955. ac_preproc_ok=false
  2956. for ac_c_preproc_warn_flag in '' yes
  2957. do
  2958. # Use a header file that comes with gcc, so configuring glibc
  2959. # with a fresh cross-compiler works.
  2960. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2961. # <limits.h> exists even on freestanding compilers.
  2962. # On the NeXT, cc -E runs the code through the compiler's parser,
  2963. # not just through cpp. "Syntax error" is here to catch this case.
  2964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2965. /* end confdefs.h. */
  2966. #ifdef __STDC__
  2967. # include <limits.h>
  2968. #else
  2969. # include <assert.h>
  2970. #endif
  2971. Syntax error
  2972. _ACEOF
  2973. if ac_fn_c_try_cpp "$LINENO"; then :
  2974. else
  2975. # Broken: fails on valid input.
  2976. continue
  2977. fi
  2978. rm -f conftest.err conftest.i conftest.$ac_ext
  2979. # OK, works on sane cases. Now check whether nonexistent headers
  2980. # can be detected and how.
  2981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2982. /* end confdefs.h. */
  2983. #include <ac_nonexistent.h>
  2984. _ACEOF
  2985. if ac_fn_c_try_cpp "$LINENO"; then :
  2986. # Broken: success on invalid input.
  2987. continue
  2988. else
  2989. # Passes both tests.
  2990. ac_preproc_ok=:
  2991. break
  2992. fi
  2993. rm -f conftest.err conftest.i conftest.$ac_ext
  2994. done
  2995. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2996. rm -f conftest.i conftest.err conftest.$ac_ext
  2997. if $ac_preproc_ok; then :
  2998. else
  2999. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3000. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3001. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3002. See \`config.log' for more details" "$LINENO" 5; }
  3003. fi
  3004. ac_ext=c
  3005. ac_cpp='$CPP $CPPFLAGS'
  3006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3010. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3011. if ${ac_cv_path_GREP+:} false; then :
  3012. $as_echo_n "(cached) " >&6
  3013. else
  3014. if test -z "$GREP"; then
  3015. ac_path_GREP_found=false
  3016. # Loop through the user's path and test for each of PROGNAME-LIST
  3017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3018. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3019. do
  3020. IFS=$as_save_IFS
  3021. test -z "$as_dir" && as_dir=.
  3022. for ac_prog in grep ggrep; do
  3023. for ac_exec_ext in '' $ac_executable_extensions; do
  3024. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3025. as_fn_executable_p "$ac_path_GREP" || continue
  3026. # Check for GNU ac_path_GREP and select it if it is found.
  3027. # Check for GNU $ac_path_GREP
  3028. case `"$ac_path_GREP" --version 2>&1` in
  3029. *GNU*)
  3030. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3031. *)
  3032. ac_count=0
  3033. $as_echo_n 0123456789 >"conftest.in"
  3034. while :
  3035. do
  3036. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3037. mv "conftest.tmp" "conftest.in"
  3038. cp "conftest.in" "conftest.nl"
  3039. $as_echo 'GREP' >> "conftest.nl"
  3040. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3041. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3042. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3043. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3044. # Best one so far, save it but keep looking for a better one
  3045. ac_cv_path_GREP="$ac_path_GREP"
  3046. ac_path_GREP_max=$ac_count
  3047. fi
  3048. # 10*(2^10) chars as input seems more than enough
  3049. test $ac_count -gt 10 && break
  3050. done
  3051. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3052. esac
  3053. $ac_path_GREP_found && break 3
  3054. done
  3055. done
  3056. done
  3057. IFS=$as_save_IFS
  3058. if test -z "$ac_cv_path_GREP"; then
  3059. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3060. fi
  3061. else
  3062. ac_cv_path_GREP=$GREP
  3063. fi
  3064. fi
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3066. $as_echo "$ac_cv_path_GREP" >&6; }
  3067. GREP="$ac_cv_path_GREP"
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3069. $as_echo_n "checking for egrep... " >&6; }
  3070. if ${ac_cv_path_EGREP+:} false; then :
  3071. $as_echo_n "(cached) " >&6
  3072. else
  3073. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3074. then ac_cv_path_EGREP="$GREP -E"
  3075. else
  3076. if test -z "$EGREP"; then
  3077. ac_path_EGREP_found=false
  3078. # Loop through the user's path and test for each of PROGNAME-LIST
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_prog in egrep; do
  3085. for ac_exec_ext in '' $ac_executable_extensions; do
  3086. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3087. as_fn_executable_p "$ac_path_EGREP" || continue
  3088. # Check for GNU ac_path_EGREP and select it if it is found.
  3089. # Check for GNU $ac_path_EGREP
  3090. case `"$ac_path_EGREP" --version 2>&1` in
  3091. *GNU*)
  3092. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3093. *)
  3094. ac_count=0
  3095. $as_echo_n 0123456789 >"conftest.in"
  3096. while :
  3097. do
  3098. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3099. mv "conftest.tmp" "conftest.in"
  3100. cp "conftest.in" "conftest.nl"
  3101. $as_echo 'EGREP' >> "conftest.nl"
  3102. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3103. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3104. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3105. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3106. # Best one so far, save it but keep looking for a better one
  3107. ac_cv_path_EGREP="$ac_path_EGREP"
  3108. ac_path_EGREP_max=$ac_count
  3109. fi
  3110. # 10*(2^10) chars as input seems more than enough
  3111. test $ac_count -gt 10 && break
  3112. done
  3113. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3114. esac
  3115. $ac_path_EGREP_found && break 3
  3116. done
  3117. done
  3118. done
  3119. IFS=$as_save_IFS
  3120. if test -z "$ac_cv_path_EGREP"; then
  3121. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3122. fi
  3123. else
  3124. ac_cv_path_EGREP=$EGREP
  3125. fi
  3126. fi
  3127. fi
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3129. $as_echo "$ac_cv_path_EGREP" >&6; }
  3130. EGREP="$ac_cv_path_EGREP"
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3132. $as_echo_n "checking for ANSI C header files... " >&6; }
  3133. if ${ac_cv_header_stdc+:} false; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. #include <stdlib.h>
  3139. #include <stdarg.h>
  3140. #include <string.h>
  3141. #include <float.h>
  3142. int
  3143. main ()
  3144. {
  3145. ;
  3146. return 0;
  3147. }
  3148. _ACEOF
  3149. if ac_fn_c_try_compile "$LINENO"; then :
  3150. ac_cv_header_stdc=yes
  3151. else
  3152. ac_cv_header_stdc=no
  3153. fi
  3154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3155. if test $ac_cv_header_stdc = yes; then
  3156. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. #include <string.h>
  3160. _ACEOF
  3161. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3162. $EGREP "memchr" >/dev/null 2>&1; then :
  3163. else
  3164. ac_cv_header_stdc=no
  3165. fi
  3166. rm -f conftest*
  3167. fi
  3168. if test $ac_cv_header_stdc = yes; then
  3169. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. #include <stdlib.h>
  3173. _ACEOF
  3174. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3175. $EGREP "free" >/dev/null 2>&1; then :
  3176. else
  3177. ac_cv_header_stdc=no
  3178. fi
  3179. rm -f conftest*
  3180. fi
  3181. if test $ac_cv_header_stdc = yes; then
  3182. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3183. if test "$cross_compiling" = yes; then :
  3184. :
  3185. else
  3186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3187. /* end confdefs.h. */
  3188. #include <ctype.h>
  3189. #include <stdlib.h>
  3190. #if ((' ' & 0x0FF) == 0x020)
  3191. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3192. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3193. #else
  3194. # define ISLOWER(c) \
  3195. (('a' <= (c) && (c) <= 'i') \
  3196. || ('j' <= (c) && (c) <= 'r') \
  3197. || ('s' <= (c) && (c) <= 'z'))
  3198. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3199. #endif
  3200. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3201. int
  3202. main ()
  3203. {
  3204. int i;
  3205. for (i = 0; i < 256; i++)
  3206. if (XOR (islower (i), ISLOWER (i))
  3207. || toupper (i) != TOUPPER (i))
  3208. return 2;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. if ac_fn_c_try_run "$LINENO"; then :
  3213. else
  3214. ac_cv_header_stdc=no
  3215. fi
  3216. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3217. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3218. fi
  3219. fi
  3220. fi
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3222. $as_echo "$ac_cv_header_stdc" >&6; }
  3223. if test $ac_cv_header_stdc = yes; then
  3224. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3225. fi
  3226. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3227. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3228. inttypes.h stdint.h unistd.h
  3229. do :
  3230. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3231. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3232. "
  3233. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3234. cat >>confdefs.h <<_ACEOF
  3235. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3236. _ACEOF
  3237. fi
  3238. done
  3239. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3240. if test "x$ac_cv_type_size_t" = xyes; then :
  3241. else
  3242. cat >>confdefs.h <<_ACEOF
  3243. #define size_t unsigned int
  3244. _ACEOF
  3245. fi
  3246. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3247. # for constant arguments. Useless!
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  3249. $as_echo_n "checking for working alloca.h... " >&6; }
  3250. if ${ac_cv_working_alloca_h+:} false; then :
  3251. $as_echo_n "(cached) " >&6
  3252. else
  3253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3254. /* end confdefs.h. */
  3255. #include <alloca.h>
  3256. int
  3257. main ()
  3258. {
  3259. char *p = (char *) alloca (2 * sizeof (int));
  3260. if (p) return 0;
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. if ac_fn_c_try_link "$LINENO"; then :
  3266. ac_cv_working_alloca_h=yes
  3267. else
  3268. ac_cv_working_alloca_h=no
  3269. fi
  3270. rm -f core conftest.err conftest.$ac_objext \
  3271. conftest$ac_exeext conftest.$ac_ext
  3272. fi
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  3274. $as_echo "$ac_cv_working_alloca_h" >&6; }
  3275. if test $ac_cv_working_alloca_h = yes; then
  3276. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  3279. $as_echo_n "checking for alloca... " >&6; }
  3280. if ${ac_cv_func_alloca_works+:} false; then :
  3281. $as_echo_n "(cached) " >&6
  3282. else
  3283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h. */
  3285. #ifdef __GNUC__
  3286. # define alloca __builtin_alloca
  3287. #else
  3288. # ifdef _MSC_VER
  3289. # include <malloc.h>
  3290. # define alloca _alloca
  3291. # else
  3292. # ifdef HAVE_ALLOCA_H
  3293. # include <alloca.h>
  3294. # else
  3295. # ifdef _AIX
  3296. #pragma alloca
  3297. # else
  3298. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3299. void *alloca (size_t);
  3300. # endif
  3301. # endif
  3302. # endif
  3303. # endif
  3304. #endif
  3305. int
  3306. main ()
  3307. {
  3308. char *p = (char *) alloca (1);
  3309. if (p) return 0;
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_link "$LINENO"; then :
  3315. ac_cv_func_alloca_works=yes
  3316. else
  3317. ac_cv_func_alloca_works=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext \
  3320. conftest$ac_exeext conftest.$ac_ext
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  3323. $as_echo "$ac_cv_func_alloca_works" >&6; }
  3324. if test $ac_cv_func_alloca_works = yes; then
  3325. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  3326. else
  3327. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3328. # that cause trouble. Some versions do not even contain alloca or
  3329. # contain a buggy version. If you still want to use their alloca,
  3330. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3331. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  3332. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  3334. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  3335. if ${ac_cv_os_cray+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. #if defined CRAY && ! defined CRAY2
  3341. webecray
  3342. #else
  3343. wenotbecray
  3344. #endif
  3345. _ACEOF
  3346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3347. $EGREP "webecray" >/dev/null 2>&1; then :
  3348. ac_cv_os_cray=yes
  3349. else
  3350. ac_cv_os_cray=no
  3351. fi
  3352. rm -f conftest*
  3353. fi
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  3355. $as_echo "$ac_cv_os_cray" >&6; }
  3356. if test $ac_cv_os_cray = yes; then
  3357. for ac_func in _getb67 GETB67 getb67; do
  3358. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3359. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3360. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3361. cat >>confdefs.h <<_ACEOF
  3362. #define CRAY_STACKSEG_END $ac_func
  3363. _ACEOF
  3364. break
  3365. fi
  3366. done
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  3369. $as_echo_n "checking stack direction for C alloca... " >&6; }
  3370. if ${ac_cv_c_stack_direction+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. if test "$cross_compiling" = yes; then :
  3374. ac_cv_c_stack_direction=0
  3375. else
  3376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3377. /* end confdefs.h. */
  3378. $ac_includes_default
  3379. int
  3380. find_stack_direction (int *addr, int depth)
  3381. {
  3382. int dir, dummy = 0;
  3383. if (! addr)
  3384. addr = &dummy;
  3385. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  3386. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  3387. return dir + dummy;
  3388. }
  3389. int
  3390. main (int argc, char **argv)
  3391. {
  3392. return find_stack_direction (0, argc + !argv + 20) < 0;
  3393. }
  3394. _ACEOF
  3395. if ac_fn_c_try_run "$LINENO"; then :
  3396. ac_cv_c_stack_direction=1
  3397. else
  3398. ac_cv_c_stack_direction=-1
  3399. fi
  3400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  3405. $as_echo "$ac_cv_c_stack_direction" >&6; }
  3406. cat >>confdefs.h <<_ACEOF
  3407. #define STACK_DIRECTION $ac_cv_c_stack_direction
  3408. _ACEOF
  3409. fi
  3410. for ac_func in asprintf getloadavg setenv strcasestr strndup strnlen strsep unsetenv vasprintf
  3411. do :
  3412. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3413. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3414. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3415. cat >>confdefs.h <<_ACEOF
  3416. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3417. _ACEOF
  3418. fi
  3419. done
  3420. # The frontend can use curses, ncurses, newt or GTK2 so check for all of them
  3421. NEWT_DESCRIP="newt"
  3422. NEWT_OPTION="newt"
  3423. PBX_NEWT=0
  3424. # Check whether --with-newt was given.
  3425. if test "${with_newt+set}" = set; then :
  3426. withval=$with_newt;
  3427. case ${withval} in
  3428. n|no)
  3429. USE_NEWT=no
  3430. # -1 is a magic value used by menuselect to know that the package
  3431. # was disabled, other than 'not found'
  3432. PBX_NEWT=-1
  3433. ;;
  3434. y|ye|yes)
  3435. ac_mandatory_list="${ac_mandatory_list} NEWT"
  3436. ;;
  3437. *)
  3438. NEWT_DIR="${withval}"
  3439. ac_mandatory_list="${ac_mandatory_list} NEWT"
  3440. ;;
  3441. esac
  3442. fi
  3443. CURSES_DESCRIP="curses"
  3444. CURSES_OPTION="curses"
  3445. PBX_CURSES=0
  3446. # Check whether --with-curses was given.
  3447. if test "${with_curses+set}" = set; then :
  3448. withval=$with_curses;
  3449. case ${withval} in
  3450. n|no)
  3451. USE_CURSES=no
  3452. # -1 is a magic value used by menuselect to know that the package
  3453. # was disabled, other than 'not found'
  3454. PBX_CURSES=-1
  3455. ;;
  3456. y|ye|yes)
  3457. ac_mandatory_list="${ac_mandatory_list} CURSES"
  3458. ;;
  3459. *)
  3460. CURSES_DIR="${withval}"
  3461. ac_mandatory_list="${ac_mandatory_list} CURSES"
  3462. ;;
  3463. esac
  3464. fi
  3465. NCURSES_DESCRIP="ncurses"
  3466. NCURSES_OPTION="ncurses"
  3467. PBX_NCURSES=0
  3468. # Check whether --with-ncurses was given.
  3469. if test "${with_ncurses+set}" = set; then :
  3470. withval=$with_ncurses;
  3471. case ${withval} in
  3472. n|no)
  3473. USE_NCURSES=no
  3474. # -1 is a magic value used by menuselect to know that the package
  3475. # was disabled, other than 'not found'
  3476. PBX_NCURSES=-1
  3477. ;;
  3478. y|ye|yes)
  3479. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  3480. ;;
  3481. *)
  3482. NCURSES_DIR="${withval}"
  3483. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  3484. ;;
  3485. esac
  3486. fi
  3487. LIBXML2_DESCRIP="LibXML2"
  3488. LIBXML2_OPTION="libxml2"
  3489. PBX_LIBXML2=0
  3490. # Check whether --with-libxml2 was given.
  3491. if test "${with_libxml2+set}" = set; then :
  3492. withval=$with_libxml2;
  3493. case ${withval} in
  3494. n|no)
  3495. USE_LIBXML2=no
  3496. # -1 is a magic value used by menuselect to know that the package
  3497. # was disabled, other than 'not found'
  3498. PBX_LIBXML2=-1
  3499. ;;
  3500. y|ye|yes)
  3501. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  3502. ;;
  3503. *)
  3504. LIBXML2_DIR="${withval}"
  3505. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  3506. ;;
  3507. esac
  3508. fi
  3509. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  3510. pbxlibdir=""
  3511. # if --with-NEWT=DIR has been specified, use it.
  3512. if test "x${NEWT_DIR}" != "x"; then
  3513. if test -d ${NEWT_DIR}/lib; then
  3514. pbxlibdir="-L${NEWT_DIR}/lib"
  3515. else
  3516. pbxlibdir="-L${NEWT_DIR}"
  3517. fi
  3518. fi
  3519. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3520. CFLAGS="${CFLAGS} "
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for newtBell in -lnewt" >&5
  3522. $as_echo_n "checking for newtBell in -lnewt... " >&6; }
  3523. if ${ac_cv_lib_newt_newtBell+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. ac_check_lib_save_LIBS=$LIBS
  3527. LIBS="-lnewt ${pbxlibdir} $LIBS"
  3528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3529. /* end confdefs.h. */
  3530. /* Override any GCC internal prototype to avoid an error.
  3531. Use char because int might match the return type of a GCC
  3532. builtin and then its argument prototype would still apply. */
  3533. #ifdef __cplusplus
  3534. extern "C"
  3535. #endif
  3536. char newtBell ();
  3537. int
  3538. main ()
  3539. {
  3540. return newtBell ();
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. if ac_fn_c_try_link "$LINENO"; then :
  3546. ac_cv_lib_newt_newtBell=yes
  3547. else
  3548. ac_cv_lib_newt_newtBell=no
  3549. fi
  3550. rm -f core conftest.err conftest.$ac_objext \
  3551. conftest$ac_exeext conftest.$ac_ext
  3552. LIBS=$ac_check_lib_save_LIBS
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtBell" >&5
  3555. $as_echo "$ac_cv_lib_newt_newtBell" >&6; }
  3556. if test "x$ac_cv_lib_newt_newtBell" = xyes; then :
  3557. AST_NEWT_FOUND=yes
  3558. else
  3559. AST_NEWT_FOUND=no
  3560. fi
  3561. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3562. # now check for the header.
  3563. if test "${AST_NEWT_FOUND}" = "yes"; then
  3564. NEWT_LIB="${pbxlibdir} -lnewt "
  3565. # if --with-NEWT=DIR has been specified, use it.
  3566. if test "x${NEWT_DIR}" != "x"; then
  3567. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  3568. fi
  3569. NEWT_INCLUDE="${NEWT_INCLUDE} "
  3570. # check for the header
  3571. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3572. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  3573. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  3574. if test "x$ac_cv_header_newt_h" = xyes; then :
  3575. NEWT_HEADER_FOUND=1
  3576. else
  3577. NEWT_HEADER_FOUND=0
  3578. fi
  3579. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3580. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  3581. NEWT_LIB=""
  3582. NEWT_INCLUDE=""
  3583. else
  3584. PBX_NEWT=1
  3585. cat >>confdefs.h <<_ACEOF
  3586. #define HAVE_NEWT 1
  3587. _ACEOF
  3588. fi
  3589. fi
  3590. fi
  3591. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  3592. pbxlibdir=""
  3593. # if --with-NCURSES=DIR has been specified, use it.
  3594. if test "x${NCURSES_DIR}" != "x"; then
  3595. if test -d ${NCURSES_DIR}/lib; then
  3596. pbxlibdir="-L${NCURSES_DIR}/lib"
  3597. else
  3598. pbxlibdir="-L${NCURSES_DIR}"
  3599. fi
  3600. fi
  3601. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3602. CFLAGS="${CFLAGS} "
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
  3604. $as_echo_n "checking for initscr in -lncurses... " >&6; }
  3605. if ${ac_cv_lib_ncurses_initscr+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. ac_check_lib_save_LIBS=$LIBS
  3609. LIBS="-lncurses ${pbxlibdir} $LIBS"
  3610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3611. /* end confdefs.h. */
  3612. /* Override any GCC internal prototype to avoid an error.
  3613. Use char because int might match the return type of a GCC
  3614. builtin and then its argument prototype would still apply. */
  3615. #ifdef __cplusplus
  3616. extern "C"
  3617. #endif
  3618. char initscr ();
  3619. int
  3620. main ()
  3621. {
  3622. return initscr ();
  3623. ;
  3624. return 0;
  3625. }
  3626. _ACEOF
  3627. if ac_fn_c_try_link "$LINENO"; then :
  3628. ac_cv_lib_ncurses_initscr=yes
  3629. else
  3630. ac_cv_lib_ncurses_initscr=no
  3631. fi
  3632. rm -f core conftest.err conftest.$ac_objext \
  3633. conftest$ac_exeext conftest.$ac_ext
  3634. LIBS=$ac_check_lib_save_LIBS
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
  3637. $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
  3638. if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
  3639. AST_NCURSES_FOUND=yes
  3640. else
  3641. AST_NCURSES_FOUND=no
  3642. fi
  3643. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3644. # now check for the header.
  3645. if test "${AST_NCURSES_FOUND}" = "yes"; then
  3646. NCURSES_LIB="${pbxlibdir} -lncurses "
  3647. # if --with-NCURSES=DIR has been specified, use it.
  3648. if test "x${NCURSES_DIR}" != "x"; then
  3649. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  3650. fi
  3651. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  3652. # check for the header
  3653. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3654. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  3655. ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
  3656. if test "x$ac_cv_header_ncurses_h" = xyes; then :
  3657. NCURSES_HEADER_FOUND=1
  3658. else
  3659. NCURSES_HEADER_FOUND=0
  3660. fi
  3661. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3662. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  3663. NCURSES_LIB=""
  3664. NCURSES_INCLUDE=""
  3665. else
  3666. PBX_NCURSES=1
  3667. cat >>confdefs.h <<_ACEOF
  3668. #define HAVE_NCURSES 1
  3669. _ACEOF
  3670. fi
  3671. fi
  3672. fi
  3673. if test "${PBX_NCURSES}" != 1; then
  3674. # some platforms have the header in a sub-directory, for example Solaris
  3675. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  3676. pbxlibdir=""
  3677. # if --with-NCURSES=DIR has been specified, use it.
  3678. if test "x${NCURSES_DIR}" != "x"; then
  3679. if test -d ${NCURSES_DIR}/lib; then
  3680. pbxlibdir="-L${NCURSES_DIR}/lib"
  3681. else
  3682. pbxlibdir="-L${NCURSES_DIR}"
  3683. fi
  3684. fi
  3685. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3686. CFLAGS="${CFLAGS} "
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
  3688. $as_echo_n "checking for initscr in -lncurses... " >&6; }
  3689. if ${ac_cv_lib_ncurses_initscr+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. ac_check_lib_save_LIBS=$LIBS
  3693. LIBS="-lncurses ${pbxlibdir} $LIBS"
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. /* Override any GCC internal prototype to avoid an error.
  3697. Use char because int might match the return type of a GCC
  3698. builtin and then its argument prototype would still apply. */
  3699. #ifdef __cplusplus
  3700. extern "C"
  3701. #endif
  3702. char initscr ();
  3703. int
  3704. main ()
  3705. {
  3706. return initscr ();
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. if ac_fn_c_try_link "$LINENO"; then :
  3712. ac_cv_lib_ncurses_initscr=yes
  3713. else
  3714. ac_cv_lib_ncurses_initscr=no
  3715. fi
  3716. rm -f core conftest.err conftest.$ac_objext \
  3717. conftest$ac_exeext conftest.$ac_ext
  3718. LIBS=$ac_check_lib_save_LIBS
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
  3721. $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
  3722. if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
  3723. AST_NCURSES_FOUND=yes
  3724. else
  3725. AST_NCURSES_FOUND=no
  3726. fi
  3727. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3728. # now check for the header.
  3729. if test "${AST_NCURSES_FOUND}" = "yes"; then
  3730. NCURSES_LIB="${pbxlibdir} -lncurses "
  3731. # if --with-NCURSES=DIR has been specified, use it.
  3732. if test "x${NCURSES_DIR}" != "x"; then
  3733. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  3734. fi
  3735. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  3736. # check for the header
  3737. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3738. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  3739. ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
  3740. if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then :
  3741. NCURSES_HEADER_FOUND=1
  3742. else
  3743. NCURSES_HEADER_FOUND=0
  3744. fi
  3745. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3746. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  3747. NCURSES_LIB=""
  3748. NCURSES_INCLUDE=""
  3749. else
  3750. PBX_NCURSES=1
  3751. cat >>confdefs.h <<_ACEOF
  3752. #define HAVE_NCURSES 1
  3753. _ACEOF
  3754. fi
  3755. fi
  3756. fi
  3757. if test "${PBX_NCURSES}" != 1; then
  3758. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  3759. pbxlibdir=""
  3760. # if --with-CURSES=DIR has been specified, use it.
  3761. if test "x${CURSES_DIR}" != "x"; then
  3762. if test -d ${CURSES_DIR}/lib; then
  3763. pbxlibdir="-L${CURSES_DIR}/lib"
  3764. else
  3765. pbxlibdir="-L${CURSES_DIR}"
  3766. fi
  3767. fi
  3768. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3769. CFLAGS="${CFLAGS} "
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
  3771. $as_echo_n "checking for initscr in -lcurses... " >&6; }
  3772. if ${ac_cv_lib_curses_initscr+:} false; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. ac_check_lib_save_LIBS=$LIBS
  3776. LIBS="-lcurses ${pbxlibdir} $LIBS"
  3777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3778. /* end confdefs.h. */
  3779. /* Override any GCC internal prototype to avoid an error.
  3780. Use char because int might match the return type of a GCC
  3781. builtin and then its argument prototype would still apply. */
  3782. #ifdef __cplusplus
  3783. extern "C"
  3784. #endif
  3785. char initscr ();
  3786. int
  3787. main ()
  3788. {
  3789. return initscr ();
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. if ac_fn_c_try_link "$LINENO"; then :
  3795. ac_cv_lib_curses_initscr=yes
  3796. else
  3797. ac_cv_lib_curses_initscr=no
  3798. fi
  3799. rm -f core conftest.err conftest.$ac_objext \
  3800. conftest$ac_exeext conftest.$ac_ext
  3801. LIBS=$ac_check_lib_save_LIBS
  3802. fi
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
  3804. $as_echo "$ac_cv_lib_curses_initscr" >&6; }
  3805. if test "x$ac_cv_lib_curses_initscr" = xyes; then :
  3806. AST_CURSES_FOUND=yes
  3807. else
  3808. AST_CURSES_FOUND=no
  3809. fi
  3810. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3811. # now check for the header.
  3812. if test "${AST_CURSES_FOUND}" = "yes"; then
  3813. CURSES_LIB="${pbxlibdir} -lcurses "
  3814. # if --with-CURSES=DIR has been specified, use it.
  3815. if test "x${CURSES_DIR}" != "x"; then
  3816. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  3817. fi
  3818. CURSES_INCLUDE="${CURSES_INCLUDE} "
  3819. # check for the header
  3820. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3821. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  3822. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  3823. if test "x$ac_cv_header_curses_h" = xyes; then :
  3824. CURSES_HEADER_FOUND=1
  3825. else
  3826. CURSES_HEADER_FOUND=0
  3827. fi
  3828. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3829. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  3830. CURSES_LIB=""
  3831. CURSES_INCLUDE=""
  3832. else
  3833. PBX_CURSES=1
  3834. cat >>confdefs.h <<_ACEOF
  3835. #define HAVE_CURSES 1
  3836. _ACEOF
  3837. fi
  3838. fi
  3839. fi
  3840. else
  3841. HAVE_NCURSES_SUBDIR=yes
  3842. fi
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3845. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3846. if ${ac_cv_path_SED+:} false; then :
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3850. for ac_i in 1 2 3 4 5 6 7; do
  3851. ac_script="$ac_script$as_nl$ac_script"
  3852. done
  3853. echo "$ac_script" | sed 99q >conftest.sed
  3854. $as_unset ac_script || ac_script=
  3855. if test -z "$SED"; then
  3856. ac_path_SED_found=false
  3857. # Loop through the user's path and test for each of PROGNAME-LIST
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_prog in sed gsed; do
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3866. as_fn_executable_p "$ac_path_SED" || continue
  3867. # Check for GNU ac_path_SED and select it if it is found.
  3868. # Check for GNU $ac_path_SED
  3869. case `"$ac_path_SED" --version 2>&1` in
  3870. *GNU*)
  3871. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3872. *)
  3873. ac_count=0
  3874. $as_echo_n 0123456789 >"conftest.in"
  3875. while :
  3876. do
  3877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3878. mv "conftest.tmp" "conftest.in"
  3879. cp "conftest.in" "conftest.nl"
  3880. $as_echo '' >> "conftest.nl"
  3881. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3883. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3884. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3885. # Best one so far, save it but keep looking for a better one
  3886. ac_cv_path_SED="$ac_path_SED"
  3887. ac_path_SED_max=$ac_count
  3888. fi
  3889. # 10*(2^10) chars as input seems more than enough
  3890. test $ac_count -gt 10 && break
  3891. done
  3892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3893. esac
  3894. $ac_path_SED_found && break 3
  3895. done
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. if test -z "$ac_cv_path_SED"; then
  3900. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3901. fi
  3902. else
  3903. ac_cv_path_SED=$SED
  3904. fi
  3905. fi
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3907. $as_echo "$ac_cv_path_SED" >&6; }
  3908. SED="$ac_cv_path_SED"
  3909. rm -f conftest.sed
  3910. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  3911. PBX_LIBXML2=0
  3912. if test -n "$ac_tool_prefix"; then
  3913. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  3914. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3916. $as_echo_n "checking for $ac_word... " >&6; }
  3917. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. case $CONFIG_LIBXML2 in
  3921. [\\/]* | ?:[\\/]*)
  3922. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  3923. ;;
  3924. *)
  3925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3926. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  3927. for as_dir in $as_dummy
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3933. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  3934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3935. break 2
  3936. fi
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. ;;
  3941. esac
  3942. fi
  3943. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  3944. if test -n "$CONFIG_LIBXML2"; then
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  3946. $as_echo "$CONFIG_LIBXML2" >&6; }
  3947. else
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. fi
  3952. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  3953. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  3954. # Extract the first word of "xml2-config", so it can be a program name with args.
  3955. set dummy xml2-config; ac_word=$2
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3957. $as_echo_n "checking for $ac_word... " >&6; }
  3958. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. case $ac_pt_CONFIG_LIBXML2 in
  3962. [\\/]* | ?:[\\/]*)
  3963. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  3964. ;;
  3965. *)
  3966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3967. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  3968. for as_dir in $as_dummy
  3969. do
  3970. IFS=$as_save_IFS
  3971. test -z "$as_dir" && as_dir=.
  3972. for ac_exec_ext in '' $ac_executable_extensions; do
  3973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3974. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  3975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3976. break 2
  3977. fi
  3978. done
  3979. done
  3980. IFS=$as_save_IFS
  3981. ;;
  3982. esac
  3983. fi
  3984. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  3985. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  3987. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3990. $as_echo "no" >&6; }
  3991. fi
  3992. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  3993. CONFIG_LIBXML2="No"
  3994. else
  3995. case $cross_compiling:$ac_tool_warned in
  3996. yes:)
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3999. ac_tool_warned=yes ;;
  4000. esac
  4001. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  4002. fi
  4003. else
  4004. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  4005. fi
  4006. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  4007. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} --cflags)
  4008. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g" -e "s|-std=c99||g")
  4009. LIBXML2_LIB=$(${CONFIG_LIBXML2} --libs)
  4010. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  4011. saved_cppflags="${CPPFLAGS}"
  4012. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  4013. saved_libs="${LIBS}"
  4014. LIBS=${LIBXML2_LIB}
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. #include <libxml/tree.h>
  4018. #include <libxml/parser.h>
  4019. int
  4020. main ()
  4021. {
  4022. LIBXML_TEST_VERSION;
  4023. ;
  4024. return 0;
  4025. }
  4026. _ACEOF
  4027. if ac_fn_c_try_link "$LINENO"; then :
  4028. PBX_LIBXML2=1
  4029. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  4030. fi
  4031. rm -f core conftest.err conftest.$ac_objext \
  4032. conftest$ac_exeext conftest.$ac_ext
  4033. CPPFLAGS="${saved_cppflags}"
  4034. LIBS="${saved_libs}"
  4035. fi
  4036. fi
  4037. if test "${PBX_LIBXML2}" != 1; then
  4038. as_fn_error $? "Could not find required 'Libxml2' development package" "$LINENO" 5
  4039. fi
  4040. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4041. if test -n "$ac_tool_prefix"; then
  4042. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4043. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4045. $as_echo_n "checking for $ac_word... " >&6; }
  4046. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4047. $as_echo_n "(cached) " >&6
  4048. else
  4049. case $PKG_CONFIG in
  4050. [\\/]* | ?:[\\/]*)
  4051. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4052. ;;
  4053. *)
  4054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4055. for as_dir in $PATH
  4056. do
  4057. IFS=$as_save_IFS
  4058. test -z "$as_dir" && as_dir=.
  4059. for ac_exec_ext in '' $ac_executable_extensions; do
  4060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4061. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4063. break 2
  4064. fi
  4065. done
  4066. done
  4067. IFS=$as_save_IFS
  4068. ;;
  4069. esac
  4070. fi
  4071. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4072. if test -n "$PKG_CONFIG"; then
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4074. $as_echo "$PKG_CONFIG" >&6; }
  4075. else
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4077. $as_echo "no" >&6; }
  4078. fi
  4079. fi
  4080. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4081. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4082. # Extract the first word of "pkg-config", so it can be a program name with args.
  4083. set dummy pkg-config; ac_word=$2
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4085. $as_echo_n "checking for $ac_word... " >&6; }
  4086. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. case $ac_pt_PKG_CONFIG in
  4090. [\\/]* | ?:[\\/]*)
  4091. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4092. ;;
  4093. *)
  4094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4095. for as_dir in $PATH
  4096. do
  4097. IFS=$as_save_IFS
  4098. test -z "$as_dir" && as_dir=.
  4099. for ac_exec_ext in '' $ac_executable_extensions; do
  4100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4101. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4103. break 2
  4104. fi
  4105. done
  4106. done
  4107. IFS=$as_save_IFS
  4108. ;;
  4109. esac
  4110. fi
  4111. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4112. if test -n "$ac_pt_PKG_CONFIG"; then
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4114. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4115. else
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4117. $as_echo "no" >&6; }
  4118. fi
  4119. if test "x$ac_pt_PKG_CONFIG" = x; then
  4120. PKG_CONFIG=""
  4121. else
  4122. case $cross_compiling:$ac_tool_warned in
  4123. yes:)
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4125. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4126. ac_tool_warned=yes ;;
  4127. esac
  4128. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4129. fi
  4130. else
  4131. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4132. fi
  4133. fi
  4134. if test -n "$PKG_CONFIG"; then
  4135. _pkg_min_version=0.9.0
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4137. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4138. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4140. $as_echo "yes" >&6; }
  4141. else
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4143. $as_echo "no" >&6; }
  4144. PKG_CONFIG=""
  4145. fi
  4146. fi
  4147. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  4148. pkg_failed=no
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
  4150. $as_echo_n "checking for GTK2... " >&6; }
  4151. if test -n "$GTK2_CFLAGS"; then
  4152. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  4153. elif test -n "$PKG_CONFIG"; then
  4154. if test -n "$PKG_CONFIG" && \
  4155. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  4156. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  4157. ac_status=$?
  4158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4159. test $ac_status = 0; }; then
  4160. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  4161. test "x$?" != "x0" && pkg_failed=yes
  4162. else
  4163. pkg_failed=yes
  4164. fi
  4165. else
  4166. pkg_failed=untried
  4167. fi
  4168. if test -n "$GTK2_LIBS"; then
  4169. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  4170. elif test -n "$PKG_CONFIG"; then
  4171. if test -n "$PKG_CONFIG" && \
  4172. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  4173. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  4174. ac_status=$?
  4175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4176. test $ac_status = 0; }; then
  4177. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  4178. test "x$?" != "x0" && pkg_failed=yes
  4179. else
  4180. pkg_failed=yes
  4181. fi
  4182. else
  4183. pkg_failed=untried
  4184. fi
  4185. if test $pkg_failed = yes; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4187. $as_echo "no" >&6; }
  4188. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  4189. _pkg_short_errors_supported=yes
  4190. else
  4191. _pkg_short_errors_supported=no
  4192. fi
  4193. if test $_pkg_short_errors_supported = yes; then
  4194. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  4195. else
  4196. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  4197. fi
  4198. # Put the nasty error message in config.log where it belongs
  4199. echo "$GTK2_PKG_ERRORS" >&5
  4200. PBX_GTK2=0
  4201. elif test $pkg_failed = untried; then
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4203. $as_echo "no" >&6; }
  4204. PBX_GTK2=0
  4205. else
  4206. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  4207. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4209. $as_echo "yes" >&6; }
  4210. PBX_GTK2=1
  4211. GTK2_INCLUDE=$(echo ${GTK2_CFLAGS} | $SED -e "s|-std=c99||g")
  4212. GTK2_LIB="$GTK2_LIBS"
  4213. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  4214. fi
  4215. fi
  4216. test "$silent"=yes && ac_sub_configure_args="${ac_sub_configure_args} --silent"
  4217. ac_config_files="$ac_config_files makeopts"
  4218. cat >confcache <<\_ACEOF
  4219. # This file is a shell script that caches the results of configure
  4220. # tests run on this system so they can be shared between configure
  4221. # scripts and configure runs, see configure's option --config-cache.
  4222. # It is not useful on other systems. If it contains results you don't
  4223. # want to keep, you may remove or edit it.
  4224. #
  4225. # config.status only pays attention to the cache file if you give it
  4226. # the --recheck option to rerun configure.
  4227. #
  4228. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4229. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4230. # following values.
  4231. _ACEOF
  4232. # The following way of writing the cache mishandles newlines in values,
  4233. # but we know of no workaround that is simple, portable, and efficient.
  4234. # So, we kill variables containing newlines.
  4235. # Ultrix sh set writes to stderr and can't be redirected directly,
  4236. # and sets the high bit in the cache file unless we assign to the vars.
  4237. (
  4238. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4239. eval ac_val=\$$ac_var
  4240. case $ac_val in #(
  4241. *${as_nl}*)
  4242. case $ac_var in #(
  4243. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4244. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4245. esac
  4246. case $ac_var in #(
  4247. _ | IFS | as_nl) ;; #(
  4248. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4249. *) { eval $ac_var=; unset $ac_var;} ;;
  4250. esac ;;
  4251. esac
  4252. done
  4253. (set) 2>&1 |
  4254. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4255. *${as_nl}ac_space=\ *)
  4256. # `set' does not quote correctly, so add quotes: double-quote
  4257. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4258. sed -n \
  4259. "s/'/'\\\\''/g;
  4260. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4261. ;; #(
  4262. *)
  4263. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4264. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4265. ;;
  4266. esac |
  4267. sort
  4268. ) |
  4269. sed '
  4270. /^ac_cv_env_/b end
  4271. t clear
  4272. :clear
  4273. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4274. t end
  4275. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4276. :end' >>confcache
  4277. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4278. if test -w "$cache_file"; then
  4279. if test "x$cache_file" != "x/dev/null"; then
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4281. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4282. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4283. cat confcache >"$cache_file"
  4284. else
  4285. case $cache_file in #(
  4286. */* | ?:*)
  4287. mv -f confcache "$cache_file"$$ &&
  4288. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4289. *)
  4290. mv -f confcache "$cache_file" ;;
  4291. esac
  4292. fi
  4293. fi
  4294. else
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4296. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4297. fi
  4298. fi
  4299. rm -f confcache
  4300. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4301. # Let make expand exec_prefix.
  4302. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4303. DEFS=-DHAVE_CONFIG_H
  4304. ac_libobjs=
  4305. ac_ltlibobjs=
  4306. U=
  4307. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4308. # 1. Remove the extension, and $U if already installed.
  4309. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4310. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4311. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4312. # will be set to the directory where LIBOBJS objects are built.
  4313. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4314. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4315. done
  4316. LIBOBJS=$ac_libobjs
  4317. LTLIBOBJS=$ac_ltlibobjs
  4318. : "${CONFIG_STATUS=./config.status}"
  4319. ac_write_fail=0
  4320. ac_clean_files_save=$ac_clean_files
  4321. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4323. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4324. as_write_fail=0
  4325. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4326. #! $SHELL
  4327. # Generated by $as_me.
  4328. # Run this file to recreate the current configuration.
  4329. # Compiler output produced by configure, useful for debugging
  4330. # configure, is in config.log if it exists.
  4331. debug=false
  4332. ac_cs_recheck=false
  4333. ac_cs_silent=false
  4334. SHELL=\${CONFIG_SHELL-$SHELL}
  4335. export SHELL
  4336. _ASEOF
  4337. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4338. ## -------------------- ##
  4339. ## M4sh Initialization. ##
  4340. ## -------------------- ##
  4341. # Be more Bourne compatible
  4342. DUALCASE=1; export DUALCASE # for MKS sh
  4343. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4344. emulate sh
  4345. NULLCMD=:
  4346. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4347. # is contrary to our usage. Disable this feature.
  4348. alias -g '${1+"$@"}'='"$@"'
  4349. setopt NO_GLOB_SUBST
  4350. else
  4351. case `(set -o) 2>/dev/null` in #(
  4352. *posix*) :
  4353. set -o posix ;; #(
  4354. *) :
  4355. ;;
  4356. esac
  4357. fi
  4358. as_nl='
  4359. '
  4360. export as_nl
  4361. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4362. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4363. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4364. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4365. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4366. # but without wasting forks for bash or zsh.
  4367. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4368. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4369. as_echo='print -r --'
  4370. as_echo_n='print -rn --'
  4371. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4372. as_echo='printf %s\n'
  4373. as_echo_n='printf %s'
  4374. else
  4375. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4376. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4377. as_echo_n='/usr/ucb/echo -n'
  4378. else
  4379. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4380. as_echo_n_body='eval
  4381. arg=$1;
  4382. case $arg in #(
  4383. *"$as_nl"*)
  4384. expr "X$arg" : "X\\(.*\\)$as_nl";
  4385. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4386. esac;
  4387. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4388. '
  4389. export as_echo_n_body
  4390. as_echo_n='sh -c $as_echo_n_body as_echo'
  4391. fi
  4392. export as_echo_body
  4393. as_echo='sh -c $as_echo_body as_echo'
  4394. fi
  4395. # The user is always right.
  4396. if test "${PATH_SEPARATOR+set}" != set; then
  4397. PATH_SEPARATOR=:
  4398. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4399. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4400. PATH_SEPARATOR=';'
  4401. }
  4402. fi
  4403. # IFS
  4404. # We need space, tab and new line, in precisely that order. Quoting is
  4405. # there to prevent editors from complaining about space-tab.
  4406. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4407. # splitting by setting IFS to empty value.)
  4408. IFS=" "" $as_nl"
  4409. # Find who we are. Look in the path if we contain no directory separator.
  4410. as_myself=
  4411. case $0 in #((
  4412. *[\\/]* ) as_myself=$0 ;;
  4413. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4414. for as_dir in $PATH
  4415. do
  4416. IFS=$as_save_IFS
  4417. test -z "$as_dir" && as_dir=.
  4418. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4419. done
  4420. IFS=$as_save_IFS
  4421. ;;
  4422. esac
  4423. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4424. # in which case we are not to be found in the path.
  4425. if test "x$as_myself" = x; then
  4426. as_myself=$0
  4427. fi
  4428. if test ! -f "$as_myself"; then
  4429. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4430. exit 1
  4431. fi
  4432. # Unset variables that we do not need and which cause bugs (e.g. in
  4433. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4434. # suppresses any "Segmentation fault" message there. '((' could
  4435. # trigger a bug in pdksh 5.2.14.
  4436. for as_var in BASH_ENV ENV MAIL MAILPATH
  4437. do eval test x\${$as_var+set} = xset \
  4438. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4439. done
  4440. PS1='$ '
  4441. PS2='> '
  4442. PS4='+ '
  4443. # NLS nuisances.
  4444. LC_ALL=C
  4445. export LC_ALL
  4446. LANGUAGE=C
  4447. export LANGUAGE
  4448. # CDPATH.
  4449. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4450. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4451. # ----------------------------------------
  4452. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4453. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4454. # script with STATUS, using 1 if that was 0.
  4455. as_fn_error ()
  4456. {
  4457. as_status=$1; test $as_status -eq 0 && as_status=1
  4458. if test "$4"; then
  4459. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4461. fi
  4462. $as_echo "$as_me: error: $2" >&2
  4463. as_fn_exit $as_status
  4464. } # as_fn_error
  4465. # as_fn_set_status STATUS
  4466. # -----------------------
  4467. # Set $? to STATUS, without forking.
  4468. as_fn_set_status ()
  4469. {
  4470. return $1
  4471. } # as_fn_set_status
  4472. # as_fn_exit STATUS
  4473. # -----------------
  4474. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4475. as_fn_exit ()
  4476. {
  4477. set +e
  4478. as_fn_set_status $1
  4479. exit $1
  4480. } # as_fn_exit
  4481. # as_fn_unset VAR
  4482. # ---------------
  4483. # Portably unset VAR.
  4484. as_fn_unset ()
  4485. {
  4486. { eval $1=; unset $1;}
  4487. }
  4488. as_unset=as_fn_unset
  4489. # as_fn_append VAR VALUE
  4490. # ----------------------
  4491. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4492. # advantage of any shell optimizations that allow amortized linear growth over
  4493. # repeated appends, instead of the typical quadratic growth present in naive
  4494. # implementations.
  4495. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4496. eval 'as_fn_append ()
  4497. {
  4498. eval $1+=\$2
  4499. }'
  4500. else
  4501. as_fn_append ()
  4502. {
  4503. eval $1=\$$1\$2
  4504. }
  4505. fi # as_fn_append
  4506. # as_fn_arith ARG...
  4507. # ------------------
  4508. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4509. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4510. # must be portable across $(()) and expr.
  4511. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4512. eval 'as_fn_arith ()
  4513. {
  4514. as_val=$(( $* ))
  4515. }'
  4516. else
  4517. as_fn_arith ()
  4518. {
  4519. as_val=`expr "$@" || test $? -eq 1`
  4520. }
  4521. fi # as_fn_arith
  4522. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4523. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4524. as_expr=expr
  4525. else
  4526. as_expr=false
  4527. fi
  4528. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4529. as_basename=basename
  4530. else
  4531. as_basename=false
  4532. fi
  4533. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4534. as_dirname=dirname
  4535. else
  4536. as_dirname=false
  4537. fi
  4538. as_me=`$as_basename -- "$0" ||
  4539. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4540. X"$0" : 'X\(//\)$' \| \
  4541. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4542. $as_echo X/"$0" |
  4543. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4544. s//\1/
  4545. q
  4546. }
  4547. /^X\/\(\/\/\)$/{
  4548. s//\1/
  4549. q
  4550. }
  4551. /^X\/\(\/\).*/{
  4552. s//\1/
  4553. q
  4554. }
  4555. s/.*/./; q'`
  4556. # Avoid depending upon Character Ranges.
  4557. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4558. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4559. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4560. as_cr_digits='0123456789'
  4561. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4562. ECHO_C= ECHO_N= ECHO_T=
  4563. case `echo -n x` in #(((((
  4564. -n*)
  4565. case `echo 'xy\c'` in
  4566. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4567. xy) ECHO_C='\c';;
  4568. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4569. ECHO_T=' ';;
  4570. esac;;
  4571. *)
  4572. ECHO_N='-n';;
  4573. esac
  4574. rm -f conf$$ conf$$.exe conf$$.file
  4575. if test -d conf$$.dir; then
  4576. rm -f conf$$.dir/conf$$.file
  4577. else
  4578. rm -f conf$$.dir
  4579. mkdir conf$$.dir 2>/dev/null
  4580. fi
  4581. if (echo >conf$$.file) 2>/dev/null; then
  4582. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4583. as_ln_s='ln -s'
  4584. # ... but there are two gotchas:
  4585. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4586. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4587. # In both cases, we have to default to `cp -pR'.
  4588. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4589. as_ln_s='cp -pR'
  4590. elif ln conf$$.file conf$$ 2>/dev/null; then
  4591. as_ln_s=ln
  4592. else
  4593. as_ln_s='cp -pR'
  4594. fi
  4595. else
  4596. as_ln_s='cp -pR'
  4597. fi
  4598. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4599. rmdir conf$$.dir 2>/dev/null
  4600. # as_fn_mkdir_p
  4601. # -------------
  4602. # Create "$as_dir" as a directory, including parents if necessary.
  4603. as_fn_mkdir_p ()
  4604. {
  4605. case $as_dir in #(
  4606. -*) as_dir=./$as_dir;;
  4607. esac
  4608. test -d "$as_dir" || eval $as_mkdir_p || {
  4609. as_dirs=
  4610. while :; do
  4611. case $as_dir in #(
  4612. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4613. *) as_qdir=$as_dir;;
  4614. esac
  4615. as_dirs="'$as_qdir' $as_dirs"
  4616. as_dir=`$as_dirname -- "$as_dir" ||
  4617. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4618. X"$as_dir" : 'X\(//\)[^/]' \| \
  4619. X"$as_dir" : 'X\(//\)$' \| \
  4620. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4621. $as_echo X"$as_dir" |
  4622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4623. s//\1/
  4624. q
  4625. }
  4626. /^X\(\/\/\)[^/].*/{
  4627. s//\1/
  4628. q
  4629. }
  4630. /^X\(\/\/\)$/{
  4631. s//\1/
  4632. q
  4633. }
  4634. /^X\(\/\).*/{
  4635. s//\1/
  4636. q
  4637. }
  4638. s/.*/./; q'`
  4639. test -d "$as_dir" && break
  4640. done
  4641. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4642. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4643. } # as_fn_mkdir_p
  4644. if mkdir -p . 2>/dev/null; then
  4645. as_mkdir_p='mkdir -p "$as_dir"'
  4646. else
  4647. test -d ./-p && rmdir ./-p
  4648. as_mkdir_p=false
  4649. fi
  4650. # as_fn_executable_p FILE
  4651. # -----------------------
  4652. # Test if FILE is an executable regular file.
  4653. as_fn_executable_p ()
  4654. {
  4655. test -f "$1" && test -x "$1"
  4656. } # as_fn_executable_p
  4657. as_test_x='test -x'
  4658. as_executable_p=as_fn_executable_p
  4659. # Sed expression to map a string onto a valid CPP name.
  4660. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4661. # Sed expression to map a string onto a valid variable name.
  4662. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4663. exec 6>&1
  4664. ## ----------------------------------- ##
  4665. ## Main body of $CONFIG_STATUS script. ##
  4666. ## ----------------------------------- ##
  4667. _ASEOF
  4668. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4670. # Save the log message, to keep $0 and so on meaningful, and to
  4671. # report actual input values of CONFIG_FILES etc. instead of their
  4672. # values after options handling.
  4673. ac_log="
  4674. This file was extended by $as_me, which was
  4675. generated by GNU Autoconf 2.69. Invocation command line was
  4676. CONFIG_FILES = $CONFIG_FILES
  4677. CONFIG_HEADERS = $CONFIG_HEADERS
  4678. CONFIG_LINKS = $CONFIG_LINKS
  4679. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4680. $ $0 $@
  4681. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4682. "
  4683. _ACEOF
  4684. case $ac_config_files in *"
  4685. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4686. esac
  4687. case $ac_config_headers in *"
  4688. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4689. esac
  4690. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4691. # Files that config.status was made for.
  4692. config_files="$ac_config_files"
  4693. config_headers="$ac_config_headers"
  4694. _ACEOF
  4695. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4696. ac_cs_usage="\
  4697. \`$as_me' instantiates files and other configuration actions
  4698. from templates according to the current configuration. Unless the files
  4699. and actions are specified as TAGs, all are instantiated by default.
  4700. Usage: $0 [OPTION]... [TAG]...
  4701. -h, --help print this help, then exit
  4702. -V, --version print version number and configuration settings, then exit
  4703. --config print configuration, then exit
  4704. -q, --quiet, --silent
  4705. do not print progress messages
  4706. -d, --debug don't remove temporary files
  4707. --recheck update $as_me by reconfiguring in the same conditions
  4708. --file=FILE[:TEMPLATE]
  4709. instantiate the configuration file FILE
  4710. --header=FILE[:TEMPLATE]
  4711. instantiate the configuration header FILE
  4712. Configuration files:
  4713. $config_files
  4714. Configuration headers:
  4715. $config_headers
  4716. Report bugs to the package provider."
  4717. _ACEOF
  4718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4719. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4720. ac_cs_version="\\
  4721. config.status
  4722. configured by $0, generated by GNU Autoconf 2.69,
  4723. with options \\"\$ac_cs_config\\"
  4724. Copyright (C) 2012 Free Software Foundation, Inc.
  4725. This config.status script is free software; the Free Software Foundation
  4726. gives unlimited permission to copy, distribute and modify it."
  4727. ac_pwd='$ac_pwd'
  4728. srcdir='$srcdir'
  4729. test -n "\$AWK" || AWK=awk
  4730. _ACEOF
  4731. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4732. # The default lists apply if the user does not specify any file.
  4733. ac_need_defaults=:
  4734. while test $# != 0
  4735. do
  4736. case $1 in
  4737. --*=?*)
  4738. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4739. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4740. ac_shift=:
  4741. ;;
  4742. --*=)
  4743. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4744. ac_optarg=
  4745. ac_shift=:
  4746. ;;
  4747. *)
  4748. ac_option=$1
  4749. ac_optarg=$2
  4750. ac_shift=shift
  4751. ;;
  4752. esac
  4753. case $ac_option in
  4754. # Handling of the options.
  4755. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4756. ac_cs_recheck=: ;;
  4757. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4758. $as_echo "$ac_cs_version"; exit ;;
  4759. --config | --confi | --conf | --con | --co | --c )
  4760. $as_echo "$ac_cs_config"; exit ;;
  4761. --debug | --debu | --deb | --de | --d | -d )
  4762. debug=: ;;
  4763. --file | --fil | --fi | --f )
  4764. $ac_shift
  4765. case $ac_optarg in
  4766. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4767. '') as_fn_error $? "missing file argument" ;;
  4768. esac
  4769. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4770. ac_need_defaults=false;;
  4771. --header | --heade | --head | --hea )
  4772. $ac_shift
  4773. case $ac_optarg in
  4774. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4775. esac
  4776. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4777. ac_need_defaults=false;;
  4778. --he | --h)
  4779. # Conflict between --help and --header
  4780. as_fn_error $? "ambiguous option: \`$1'
  4781. Try \`$0 --help' for more information.";;
  4782. --help | --hel | -h )
  4783. $as_echo "$ac_cs_usage"; exit ;;
  4784. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4785. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4786. ac_cs_silent=: ;;
  4787. # This is an error.
  4788. -*) as_fn_error $? "unrecognized option: \`$1'
  4789. Try \`$0 --help' for more information." ;;
  4790. *) as_fn_append ac_config_targets " $1"
  4791. ac_need_defaults=false ;;
  4792. esac
  4793. shift
  4794. done
  4795. ac_configure_extra_args=
  4796. if $ac_cs_silent; then
  4797. exec 6>/dev/null
  4798. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4799. fi
  4800. _ACEOF
  4801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4802. if \$ac_cs_recheck; then
  4803. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4804. shift
  4805. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4806. CONFIG_SHELL='$SHELL'
  4807. export CONFIG_SHELL
  4808. exec "\$@"
  4809. fi
  4810. _ACEOF
  4811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4812. exec 5>>config.log
  4813. {
  4814. echo
  4815. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4816. ## Running $as_me. ##
  4817. _ASBOX
  4818. $as_echo "$ac_log"
  4819. } >&5
  4820. _ACEOF
  4821. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4822. _ACEOF
  4823. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4824. # Handling of arguments.
  4825. for ac_config_target in $ac_config_targets
  4826. do
  4827. case $ac_config_target in
  4828. "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
  4829. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  4830. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4831. esac
  4832. done
  4833. # If the user did not use the arguments to specify the items to instantiate,
  4834. # then the envvar interface is used. Set only those that are not.
  4835. # We use the long form for the default assignment because of an extremely
  4836. # bizarre bug on SunOS 4.1.3.
  4837. if $ac_need_defaults; then
  4838. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4839. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4840. fi
  4841. # Have a temporary directory for convenience. Make it in the build tree
  4842. # simply because there is no reason against having it here, and in addition,
  4843. # creating and moving files from /tmp can sometimes cause problems.
  4844. # Hook for its removal unless debugging.
  4845. # Note that there is a small window in which the directory will not be cleaned:
  4846. # after its creation but before its name has been assigned to `$tmp'.
  4847. $debug ||
  4848. {
  4849. tmp= ac_tmp=
  4850. trap 'exit_status=$?
  4851. : "${ac_tmp:=$tmp}"
  4852. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4853. ' 0
  4854. trap 'as_fn_exit 1' 1 2 13 15
  4855. }
  4856. # Create a (secure) tmp directory for tmp files.
  4857. {
  4858. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4859. test -d "$tmp"
  4860. } ||
  4861. {
  4862. tmp=./conf$$-$RANDOM
  4863. (umask 077 && mkdir "$tmp")
  4864. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4865. ac_tmp=$tmp
  4866. # Set up the scripts for CONFIG_FILES section.
  4867. # No need to generate them if there are no CONFIG_FILES.
  4868. # This happens for instance with `./config.status config.h'.
  4869. if test -n "$CONFIG_FILES"; then
  4870. ac_cr=`echo X | tr X '\015'`
  4871. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4872. # But we know of no other shell where ac_cr would be empty at this
  4873. # point, so we can use a bashism as a fallback.
  4874. if test "x$ac_cr" = x; then
  4875. eval ac_cr=\$\'\\r\'
  4876. fi
  4877. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4878. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4879. ac_cs_awk_cr='\\r'
  4880. else
  4881. ac_cs_awk_cr=$ac_cr
  4882. fi
  4883. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4884. _ACEOF
  4885. {
  4886. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4887. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4888. echo "_ACEOF"
  4889. } >conf$$subs.sh ||
  4890. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4891. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4892. ac_delim='%!_!# '
  4893. for ac_last_try in false false false false false :; do
  4894. . ./conf$$subs.sh ||
  4895. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4896. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4897. if test $ac_delim_n = $ac_delim_num; then
  4898. break
  4899. elif $ac_last_try; then
  4900. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4901. else
  4902. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4903. fi
  4904. done
  4905. rm -f conf$$subs.sh
  4906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4907. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4908. _ACEOF
  4909. sed -n '
  4910. h
  4911. s/^/S["/; s/!.*/"]=/
  4912. p
  4913. g
  4914. s/^[^!]*!//
  4915. :repl
  4916. t repl
  4917. s/'"$ac_delim"'$//
  4918. t delim
  4919. :nl
  4920. h
  4921. s/\(.\{148\}\)..*/\1/
  4922. t more1
  4923. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4924. p
  4925. n
  4926. b repl
  4927. :more1
  4928. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4929. p
  4930. g
  4931. s/.\{148\}//
  4932. t nl
  4933. :delim
  4934. h
  4935. s/\(.\{148\}\)..*/\1/
  4936. t more2
  4937. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4938. p
  4939. b
  4940. :more2
  4941. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4942. p
  4943. g
  4944. s/.\{148\}//
  4945. t delim
  4946. ' <conf$$subs.awk | sed '
  4947. /^[^""]/{
  4948. N
  4949. s/\n//
  4950. }
  4951. ' >>$CONFIG_STATUS || ac_write_fail=1
  4952. rm -f conf$$subs.awk
  4953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4954. _ACAWK
  4955. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4956. for (key in S) S_is_set[key] = 1
  4957. FS = ""
  4958. }
  4959. {
  4960. line = $ 0
  4961. nfields = split(line, field, "@")
  4962. substed = 0
  4963. len = length(field[1])
  4964. for (i = 2; i < nfields; i++) {
  4965. key = field[i]
  4966. keylen = length(key)
  4967. if (S_is_set[key]) {
  4968. value = S[key]
  4969. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4970. len += length(value) + length(field[++i])
  4971. substed = 1
  4972. } else
  4973. len += 1 + keylen
  4974. }
  4975. print line
  4976. }
  4977. _ACAWK
  4978. _ACEOF
  4979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4980. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4981. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4982. else
  4983. cat
  4984. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4985. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4986. _ACEOF
  4987. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4988. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4989. # trailing colons and then remove the whole line if VPATH becomes empty
  4990. # (actually we leave an empty line to preserve line numbers).
  4991. if test "x$srcdir" = x.; then
  4992. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4993. h
  4994. s///
  4995. s/^/:/
  4996. s/[ ]*$/:/
  4997. s/:\$(srcdir):/:/g
  4998. s/:\${srcdir}:/:/g
  4999. s/:@srcdir@:/:/g
  5000. s/^:*//
  5001. s/:*$//
  5002. x
  5003. s/\(=[ ]*\).*/\1/
  5004. G
  5005. s/\n//
  5006. s/^[^=]*=[ ]*$//
  5007. }'
  5008. fi
  5009. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5010. fi # test -n "$CONFIG_FILES"
  5011. # Set up the scripts for CONFIG_HEADERS section.
  5012. # No need to generate them if there are no CONFIG_HEADERS.
  5013. # This happens for instance with `./config.status Makefile'.
  5014. if test -n "$CONFIG_HEADERS"; then
  5015. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5016. BEGIN {
  5017. _ACEOF
  5018. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5019. # here-document in config.status, that substitutes the proper values into
  5020. # config.h.in to produce config.h.
  5021. # Create a delimiter string that does not exist in confdefs.h, to ease
  5022. # handling of long lines.
  5023. ac_delim='%!_!# '
  5024. for ac_last_try in false false :; do
  5025. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5026. if test -z "$ac_tt"; then
  5027. break
  5028. elif $ac_last_try; then
  5029. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5030. else
  5031. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5032. fi
  5033. done
  5034. # For the awk script, D is an array of macro values keyed by name,
  5035. # likewise P contains macro parameters if any. Preserve backslash
  5036. # newline sequences.
  5037. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5038. sed -n '
  5039. s/.\{148\}/&'"$ac_delim"'/g
  5040. t rset
  5041. :rset
  5042. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5043. t def
  5044. d
  5045. :def
  5046. s/\\$//
  5047. t bsnl
  5048. s/["\\]/\\&/g
  5049. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5050. D["\1"]=" \3"/p
  5051. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5052. d
  5053. :bsnl
  5054. s/["\\]/\\&/g
  5055. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5056. D["\1"]=" \3\\\\\\n"\\/p
  5057. t cont
  5058. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5059. t cont
  5060. d
  5061. :cont
  5062. n
  5063. s/.\{148\}/&'"$ac_delim"'/g
  5064. t clear
  5065. :clear
  5066. s/\\$//
  5067. t bsnlc
  5068. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5069. d
  5070. :bsnlc
  5071. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5072. b cont
  5073. ' <confdefs.h | sed '
  5074. s/'"$ac_delim"'/"\\\
  5075. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5077. for (key in D) D_is_set[key] = 1
  5078. FS = ""
  5079. }
  5080. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5081. line = \$ 0
  5082. split(line, arg, " ")
  5083. if (arg[1] == "#") {
  5084. defundef = arg[2]
  5085. mac1 = arg[3]
  5086. } else {
  5087. defundef = substr(arg[1], 2)
  5088. mac1 = arg[2]
  5089. }
  5090. split(mac1, mac2, "(") #)
  5091. macro = mac2[1]
  5092. prefix = substr(line, 1, index(line, defundef) - 1)
  5093. if (D_is_set[macro]) {
  5094. # Preserve the white space surrounding the "#".
  5095. print prefix "define", macro P[macro] D[macro]
  5096. next
  5097. } else {
  5098. # Replace #undef with comments. This is necessary, for example,
  5099. # in the case of _POSIX_SOURCE, which is predefined and required
  5100. # on some systems where configure will not decide to define it.
  5101. if (defundef == "undef") {
  5102. print "/*", prefix defundef, macro, "*/"
  5103. next
  5104. }
  5105. }
  5106. }
  5107. { print }
  5108. _ACAWK
  5109. _ACEOF
  5110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5111. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5112. fi # test -n "$CONFIG_HEADERS"
  5113. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5114. shift
  5115. for ac_tag
  5116. do
  5117. case $ac_tag in
  5118. :[FHLC]) ac_mode=$ac_tag; continue;;
  5119. esac
  5120. case $ac_mode$ac_tag in
  5121. :[FHL]*:*);;
  5122. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5123. :[FH]-) ac_tag=-:-;;
  5124. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5125. esac
  5126. ac_save_IFS=$IFS
  5127. IFS=:
  5128. set x $ac_tag
  5129. IFS=$ac_save_IFS
  5130. shift
  5131. ac_file=$1
  5132. shift
  5133. case $ac_mode in
  5134. :L) ac_source=$1;;
  5135. :[FH])
  5136. ac_file_inputs=
  5137. for ac_f
  5138. do
  5139. case $ac_f in
  5140. -) ac_f="$ac_tmp/stdin";;
  5141. *) # Look for the file first in the build tree, then in the source tree
  5142. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5143. # because $ac_f cannot contain `:'.
  5144. test -f "$ac_f" ||
  5145. case $ac_f in
  5146. [\\/$]*) false;;
  5147. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5148. esac ||
  5149. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5150. esac
  5151. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5152. as_fn_append ac_file_inputs " '$ac_f'"
  5153. done
  5154. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5155. # use $as_me), people would be surprised to read:
  5156. # /* config.h. Generated by config.status. */
  5157. configure_input='Generated from '`
  5158. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5159. `' by configure.'
  5160. if test x"$ac_file" != x-; then
  5161. configure_input="$ac_file. $configure_input"
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5163. $as_echo "$as_me: creating $ac_file" >&6;}
  5164. fi
  5165. # Neutralize special characters interpreted by sed in replacement strings.
  5166. case $configure_input in #(
  5167. *\&* | *\|* | *\\* )
  5168. ac_sed_conf_input=`$as_echo "$configure_input" |
  5169. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5170. *) ac_sed_conf_input=$configure_input;;
  5171. esac
  5172. case $ac_tag in
  5173. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5174. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5175. esac
  5176. ;;
  5177. esac
  5178. ac_dir=`$as_dirname -- "$ac_file" ||
  5179. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5180. X"$ac_file" : 'X\(//\)[^/]' \| \
  5181. X"$ac_file" : 'X\(//\)$' \| \
  5182. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5183. $as_echo X"$ac_file" |
  5184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5185. s//\1/
  5186. q
  5187. }
  5188. /^X\(\/\/\)[^/].*/{
  5189. s//\1/
  5190. q
  5191. }
  5192. /^X\(\/\/\)$/{
  5193. s//\1/
  5194. q
  5195. }
  5196. /^X\(\/\).*/{
  5197. s//\1/
  5198. q
  5199. }
  5200. s/.*/./; q'`
  5201. as_dir="$ac_dir"; as_fn_mkdir_p
  5202. ac_builddir=.
  5203. case "$ac_dir" in
  5204. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5205. *)
  5206. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5207. # A ".." for each directory in $ac_dir_suffix.
  5208. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5209. case $ac_top_builddir_sub in
  5210. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5211. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5212. esac ;;
  5213. esac
  5214. ac_abs_top_builddir=$ac_pwd
  5215. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5216. # for backward compatibility:
  5217. ac_top_builddir=$ac_top_build_prefix
  5218. case $srcdir in
  5219. .) # We are building in place.
  5220. ac_srcdir=.
  5221. ac_top_srcdir=$ac_top_builddir_sub
  5222. ac_abs_top_srcdir=$ac_pwd ;;
  5223. [\\/]* | ?:[\\/]* ) # Absolute name.
  5224. ac_srcdir=$srcdir$ac_dir_suffix;
  5225. ac_top_srcdir=$srcdir
  5226. ac_abs_top_srcdir=$srcdir ;;
  5227. *) # Relative name.
  5228. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5229. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5230. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5231. esac
  5232. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5233. case $ac_mode in
  5234. :F)
  5235. #
  5236. # CONFIG_FILE
  5237. #
  5238. _ACEOF
  5239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5240. # If the template does not know about datarootdir, expand it.
  5241. # FIXME: This hack should be removed a few years after 2.60.
  5242. ac_datarootdir_hack=; ac_datarootdir_seen=
  5243. ac_sed_dataroot='
  5244. /datarootdir/ {
  5245. p
  5246. q
  5247. }
  5248. /@datadir@/p
  5249. /@docdir@/p
  5250. /@infodir@/p
  5251. /@localedir@/p
  5252. /@mandir@/p'
  5253. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5254. *datarootdir*) ac_datarootdir_seen=yes;;
  5255. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5257. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5258. _ACEOF
  5259. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5260. ac_datarootdir_hack='
  5261. s&@datadir@&$datadir&g
  5262. s&@docdir@&$docdir&g
  5263. s&@infodir@&$infodir&g
  5264. s&@localedir@&$localedir&g
  5265. s&@mandir@&$mandir&g
  5266. s&\\\${datarootdir}&$datarootdir&g' ;;
  5267. esac
  5268. _ACEOF
  5269. # Neutralize VPATH when `$srcdir' = `.'.
  5270. # Shell code in configure.ac might set extrasub.
  5271. # FIXME: do we really want to maintain this feature?
  5272. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5273. ac_sed_extra="$ac_vpsub
  5274. $extrasub
  5275. _ACEOF
  5276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5277. :t
  5278. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5279. s|@configure_input@|$ac_sed_conf_input|;t t
  5280. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5281. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5282. s&@srcdir@&$ac_srcdir&;t t
  5283. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5284. s&@top_srcdir@&$ac_top_srcdir&;t t
  5285. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5286. s&@builddir@&$ac_builddir&;t t
  5287. s&@abs_builddir@&$ac_abs_builddir&;t t
  5288. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5289. $ac_datarootdir_hack
  5290. "
  5291. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5292. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5293. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5294. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5295. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5296. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5298. which seems to be undefined. Please make sure it is defined" >&5
  5299. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5300. which seems to be undefined. Please make sure it is defined" >&2;}
  5301. rm -f "$ac_tmp/stdin"
  5302. case $ac_file in
  5303. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5304. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5305. esac \
  5306. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5307. ;;
  5308. :H)
  5309. #
  5310. # CONFIG_HEADER
  5311. #
  5312. if test x"$ac_file" != x-; then
  5313. {
  5314. $as_echo "/* $configure_input */" \
  5315. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5316. } >"$ac_tmp/config.h" \
  5317. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5318. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5320. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5321. else
  5322. rm -f "$ac_file"
  5323. mv "$ac_tmp/config.h" "$ac_file" \
  5324. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5325. fi
  5326. else
  5327. $as_echo "/* $configure_input */" \
  5328. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5329. || as_fn_error $? "could not create -" "$LINENO" 5
  5330. fi
  5331. ;;
  5332. esac
  5333. done # for ac_tag
  5334. as_fn_exit 0
  5335. _ACEOF
  5336. ac_clean_files=$ac_clean_files_save
  5337. test $ac_write_fail = 0 ||
  5338. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5339. # configure is writing to config.log, and then calls config.status.
  5340. # config.status does its own redirection, appending to config.log.
  5341. # Unfortunately, on DOS this fails, as config.log is still kept open
  5342. # by configure, so config.status won't be able to write to it; its
  5343. # output is simply discarded. So we exec the FD to /dev/null,
  5344. # effectively closing config.log, so it can be properly (re)opened and
  5345. # appended to by config.status. When coming back to configure, we
  5346. # need to make the FD available again.
  5347. if test "$no_create" != yes; then
  5348. ac_cs_success=:
  5349. ac_config_status_args=
  5350. test "$silent" = yes &&
  5351. ac_config_status_args="$ac_config_status_args --quiet"
  5352. exec 5>/dev/null
  5353. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5354. exec 5>>config.log
  5355. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5356. # would make configure fail if this is the last instruction.
  5357. $ac_cs_success || as_fn_exit 1
  5358. fi
  5359. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5361. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5362. fi
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: Menuselect build configuration successfully completed" >&5
  5364. $as_echo "$as_me: Menuselect build configuration successfully completed" >&6;}